From 1184fe0cd1110fe53c175df6f5f2e77afa26d7fd Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Wed, 28 Feb 2024 17:13:10 -0500 Subject: [PATCH] A big commit with a bunch of node modules so I could run puppeteer for Walmart. Added some todos and Headway's templates. --- .../Headway/_training_session_cta.html.liquid | 2 +- .../Zenjob/_courses_catalog.html.liquid | 6 +- CustomerNotes/G2/G2.md | 16 + CustomerNotes/Walmart/Walmart.md | 49 + .../Auto_Scrape_Screenshots/Customer feedback | Bin 33732 -> 33688 bytes .../CHANGELOG.md | 0 Scripts/node_modules/.package-lock.json | 306 +- Scripts/node_modules/@types/node/README.md | 2 +- Scripts/node_modules/@types/node/buffer.d.ts | 15 +- Scripts/node_modules/@types/node/crypto.d.ts | 35 +- Scripts/node_modules/@types/node/dgram.d.ts | 10 + .../@types/node/diagnostics_channel.d.ts | 356 +- Scripts/node_modules/@types/node/events.d.ts | 53 +- Scripts/node_modules/@types/node/fs.d.ts | 36 +- Scripts/node_modules/@types/node/http.d.ts | 13 +- Scripts/node_modules/@types/node/module.d.ts | 14 + Scripts/node_modules/@types/node/net.d.ts | 11 +- Scripts/node_modules/@types/node/package.json | 7 +- .../node_modules/@types/node/perf_hooks.d.ts | 18 +- Scripts/node_modules/@types/node/process.d.ts | 28 +- .../node_modules/@types/node/querystring.d.ts | 6 +- .../node_modules/@types/node/stream/web.d.ts | 18 +- .../@types/node/string_decoder.d.ts | 4 +- Scripts/node_modules/@types/node/test.d.ts | 113 +- Scripts/node_modules/@types/node/tls.d.ts | 2 +- .../@types/node/ts4.8/buffer.d.ts | 15 +- .../@types/node/ts4.8/crypto.d.ts | 40 +- .../node_modules/@types/node/ts4.8/dgram.d.ts | 10 + .../node/ts4.8/diagnostics_channel.d.ts | 356 +- .../@types/node/ts4.8/events.d.ts | 53 +- .../node_modules/@types/node/ts4.8/fs.d.ts | 36 +- .../node_modules/@types/node/ts4.8/http.d.ts | 13 +- .../@types/node/ts4.8/module.d.ts | 14 + .../node_modules/@types/node/ts4.8/net.d.ts | 11 +- .../@types/node/ts4.8/perf_hooks.d.ts | 20 +- .../@types/node/ts4.8/process.d.ts | 28 +- .../@types/node/ts4.8/querystring.d.ts | 6 +- .../@types/node/ts4.8/stream/web.d.ts | 18 +- .../@types/node/ts4.8/string_decoder.d.ts | 4 +- .../node_modules/@types/node/ts4.8/test.d.ts | 113 +- .../node_modules/@types/node/ts4.8/tls.d.ts | 2 +- .../node_modules/@types/node/ts4.8/url.d.ts | 101 +- .../node_modules/@types/node/ts4.8/util.d.ts | 2 +- .../node_modules/@types/node/ts4.8/v8.d.ts | 139 +- .../node_modules/@types/node/ts4.8/wasi.d.ts | 31 +- Scripts/node_modules/@types/node/url.d.ts | 101 +- Scripts/node_modules/@types/node/v8.d.ts | 139 +- Scripts/node_modules/@types/node/wasi.d.ts | 31 +- Scripts/node_modules/asynckit/LICENSE | 21 + Scripts/node_modules/asynckit/README.md | 233 + Scripts/node_modules/asynckit/bench.js | 76 + Scripts/node_modules/asynckit/index.js | 6 + Scripts/node_modules/asynckit/lib/abort.js | 29 + Scripts/node_modules/asynckit/lib/async.js | 34 + Scripts/node_modules/asynckit/lib/defer.js | 26 + Scripts/node_modules/asynckit/lib/iterate.js | 75 + .../asynckit/lib/readable_asynckit.js | 91 + .../asynckit/lib/readable_parallel.js | 25 + .../asynckit/lib/readable_serial.js | 25 + .../asynckit/lib/readable_serial_ordered.js | 29 + Scripts/node_modules/asynckit/lib/state.js | 37 + .../node_modules/asynckit/lib/streamify.js | 141 + .../node_modules/asynckit/lib/terminator.js | 29 + Scripts/node_modules/asynckit/package.json | 63 + Scripts/node_modules/asynckit/parallel.js | 43 + Scripts/node_modules/asynckit/serial.js | 17 + .../node_modules/asynckit/serialOrdered.js | 75 + Scripts/node_modules/asynckit/stream.js | 21 + Scripts/node_modules/axios/CHANGELOG.md | 855 + Scripts/node_modules/axios/LICENSE | 7 + Scripts/node_modules/axios/MIGRATION_GUIDE.md | 3 + Scripts/node_modules/axios/README.md | 1647 ++ Scripts/node_modules/axios/SECURITY.md | 6 + Scripts/node_modules/axios/dist/axios.js | 3422 ++++ Scripts/node_modules/axios/dist/axios.js.map | 1 + Scripts/node_modules/axios/dist/axios.min.js | 2 + .../node_modules/axios/dist/axios.min.js.map | 1 + .../node_modules/axios/dist/browser/axios.cjs | 3258 ++++ .../axios/dist/browser/axios.cjs.map | 1 + Scripts/node_modules/axios/dist/esm/axios.js | 3281 ++++ .../node_modules/axios/dist/esm/axios.js.map | 1 + .../node_modules/axios/dist/esm/axios.min.js | 2 + .../axios/dist/esm/axios.min.js.map | 1 + .../node_modules/axios/dist/node/axios.cjs | 4355 +++++ .../axios/dist/node/axios.cjs.map | 1 + Scripts/node_modules/axios/index.d.cts | 542 + Scripts/node_modules/axios/index.d.ts | 559 + Scripts/node_modules/axios/index.js | 43 + .../node_modules/axios/lib/adapters/README.md | 37 + .../axios/lib/adapters/adapters.js | 77 + .../node_modules/axios/lib/adapters/http.js | 685 + .../node_modules/axios/lib/adapters/xhr.js | 260 + Scripts/node_modules/axios/lib/axios.js | 89 + .../axios/lib/cancel/CancelToken.js | 121 + .../axios/lib/cancel/CanceledError.js | 25 + .../node_modules/axios/lib/cancel/isCancel.js | 5 + Scripts/node_modules/axios/lib/core/Axios.js | 225 + .../node_modules/axios/lib/core/AxiosError.js | 100 + .../axios/lib/core/AxiosHeaders.js | 298 + .../axios/lib/core/InterceptorManager.js | 71 + Scripts/node_modules/axios/lib/core/README.md | 8 + .../axios/lib/core/buildFullPath.js | 21 + .../axios/lib/core/dispatchRequest.js | 81 + .../axios/lib/core/mergeConfig.js | 106 + Scripts/node_modules/axios/lib/core/settle.js | 27 + .../axios/lib/core/transformData.js | 28 + .../node_modules/axios/lib/defaults/index.js | 156 + .../axios/lib/defaults/transitional.js | 7 + Scripts/node_modules/axios/lib/env/README.md | 3 + .../axios/lib/env/classes/FormData.js | 2 + Scripts/node_modules/axios/lib/env/data.js | 1 + .../axios/lib/helpers/AxiosTransformStream.js | 191 + .../axios/lib/helpers/AxiosURLSearchParams.js | 58 + .../axios/lib/helpers/HttpStatusCode.js | 71 + .../node_modules/axios/lib/helpers/README.md | 7 + .../lib/helpers/ZlibHeaderTransformStream.js | 28 + .../node_modules/axios/lib/helpers/bind.js | 7 + .../axios/lib/helpers/buildURL.js | 63 + .../axios/lib/helpers/callbackify.js | 16 + .../axios/lib/helpers/combineURLs.js | 15 + .../node_modules/axios/lib/helpers/cookies.js | 42 + .../axios/lib/helpers/deprecatedMethod.js | 26 + .../axios/lib/helpers/formDataToJSON.js | 95 + .../axios/lib/helpers/formDataToStream.js | 111 + .../axios/lib/helpers/fromDataURI.js | 53 + .../axios/lib/helpers/isAbsoluteURL.js | 15 + .../axios/lib/helpers/isAxiosError.js | 14 + .../axios/lib/helpers/isURLSameOrigin.js | 67 + .../node_modules/axios/lib/helpers/null.js | 2 + .../axios/lib/helpers/parseHeaders.js | 55 + .../axios/lib/helpers/parseProtocol.js | 6 + .../axios/lib/helpers/readBlob.js | 15 + .../axios/lib/helpers/speedometer.js | 55 + .../node_modules/axios/lib/helpers/spread.js | 28 + .../axios/lib/helpers/throttle.js | 33 + .../axios/lib/helpers/toFormData.js | 219 + .../axios/lib/helpers/toURLEncodedForm.js | 18 + .../axios/lib/helpers/validator.js | 91 + .../lib/platform/browser/classes/Blob.js | 3 + .../lib/platform/browser/classes/FormData.js | 3 + .../browser/classes/URLSearchParams.js | 4 + .../axios/lib/platform/browser/index.js | 13 + .../axios/lib/platform/common/utils.js | 47 + .../node_modules/axios/lib/platform/index.js | 7 + .../lib/platform/node/classes/FormData.js | 3 + .../platform/node/classes/URLSearchParams.js | 4 + .../axios/lib/platform/node/index.js | 12 + Scripts/node_modules/axios/lib/utils.js | 723 + Scripts/node_modules/axios/package.json | 218 + Scripts/node_modules/b4a/LICENSE | 210 +- Scripts/node_modules/b4a/README.md | 2 +- Scripts/node_modules/b4a/package.json | 6 +- Scripts/node_modules/bare-events/LICENSE | 201 + Scripts/node_modules/bare-events/README.md | 25 + Scripts/node_modules/bare-events/index.js | 268 + .../node_modules/bare-events/lib/errors.js | 18 + Scripts/node_modules/bare-events/package.json | 27 + Scripts/node_modules/basic-ftp/README.md | 8 +- .../node_modules/basic-ftp/dist/Client.d.ts | 2 +- Scripts/node_modules/basic-ftp/dist/Client.js | 8 +- .../basic-ftp/dist/FtpContext.d.ts | 2 +- .../node_modules/basic-ftp/dist/FtpContext.js | 6 +- Scripts/node_modules/basic-ftp/package.json | 6 +- Scripts/node_modules/chromium-bidi/.browser | 2 +- .../lib/cjs/bidiMapper/BidiMapper.d.ts | 8 +- .../lib/cjs/bidiMapper/BidiMapper.js.map | 2 +- .../lib/cjs/bidiMapper/BidiNoOpParser.d.ts | 11 +- .../lib/cjs/bidiMapper/BidiNoOpParser.js | 21 + .../lib/cjs/bidiMapper/BidiNoOpParser.js.map | 2 +- .../lib/cjs/bidiMapper/BidiParser.d.ts | 9 +- .../lib/cjs/bidiMapper/BidiServer.d.ts | 11 +- .../lib/cjs/bidiMapper/BidiServer.js | 24 +- .../lib/cjs/bidiMapper/BidiServer.js.map | 2 +- .../lib/cjs/bidiMapper/BidiTransport.d.ts | 2 +- .../lib/cjs/bidiMapper/CommandProcessor.d.ts | 12 +- .../lib/cjs/bidiMapper/CommandProcessor.js | 36 +- .../cjs/bidiMapper/CommandProcessor.js.map | 2 +- .../lib/cjs/bidiMapper/OutgoingMessage.d.ts | 7 +- .../lib/cjs/bidiMapper/OutgoingMessage.js.map | 2 +- .../domains/browser/BrowserProcessor.d.ts | 9 +- .../domains/browser/BrowserProcessor.js | 40 + .../domains/browser/BrowserProcessor.js.map | 2 +- .../bidiMapper/domains/cdp/CdpProcessor.d.ts | 4 +- .../domains/cdp/CdpProcessor.js.map | 2 +- .../domains/context/BrowsingContextImpl.d.ts | 7 +- .../domains/context/BrowsingContextImpl.js | 87 +- .../context/BrowsingContextImpl.js.map | 2 +- .../context/BrowsingContextProcessor.d.ts | 10 +- .../context/BrowsingContextProcessor.js | 79 +- .../context/BrowsingContextProcessor.js.map | 2 +- .../bidiMapper/domains/context/CdpTarget.d.ts | 19 +- .../bidiMapper/domains/context/CdpTarget.js | 27 +- .../domains/context/CdpTarget.js.map | 2 +- .../domains/events/EventManager.js.map | 1 - .../domains/events/SubscriptionManager.js.map | 1 - .../bidiMapper/domains/events/events.js.map | 1 - .../domains/input/InputProcessor.d.ts | 7 +- .../domains/input/InputProcessor.js | 78 +- .../domains/input/InputProcessor.js.map | 2 +- .../bidiMapper/domains/input/InputSource.d.ts | 10 +- .../bidiMapper/domains/log/LogManager.d.ts | 5 +- .../cjs/bidiMapper/domains/log/LogManager.js | 87 +- .../bidiMapper/domains/log/LogManager.js.map | 2 +- .../domains/network/NetworkManager.d.ts | 2 +- .../domains/network/NetworkManager.js | 2 +- .../domains/network/NetworkManager.js.map | 2 +- .../domains/network/NetworkProcessor.d.ts | 2 +- .../domains/network/NetworkProcessor.js | 40 +- .../domains/network/NetworkProcessor.js.map | 2 +- .../domains/network/NetworkRequest.d.ts | 4 +- .../domains/network/NetworkRequest.js | 32 +- .../domains/network/NetworkRequest.js.map | 2 +- .../domains/network/NetworkStorage.d.ts | 27 +- .../domains/network/NetworkStorage.js | 11 +- .../domains/network/NetworkStorage.js.map | 2 +- .../domains/network/NetworkUtils.d.ts | 14 +- .../domains/network/NetworkUtils.js | 110 +- .../domains/network/NetworkUtils.js.map | 2 +- .../permissions/PermissionsProcessor.d.ts | 23 + .../permissions/PermissionsProcessor.js | 49 + .../permissions/PermissionsProcessor.js.map | 1 + .../domains/script/ChannelProxy.d.ts | 2 +- .../bidiMapper/domains/script/ChannelProxy.js | 21 +- .../domains/script/ChannelProxy.js.map | 2 +- .../domains/script/DedicatedWorkerRealm.d.ts | 32 + .../domains/script/DedicatedWorkerRealm.js | 51 + .../script/DedicatedWorkerRealm.js.map | 1 + .../domains/script/PreloadScript.js | 4 +- .../domains/script/PreloadScript.js.map | 2 +- .../domains/script/PreloadScriptStorage.d.ts | 4 +- .../script/PreloadScriptStorage.js.map | 2 +- .../cjs/bidiMapper/domains/script/Realm.d.ts | 38 +- .../cjs/bidiMapper/domains/script/Realm.js | 173 +- .../bidiMapper/domains/script/Realm.js.map | 2 +- .../domains/script/RealmStorage.d.ts | 3 +- .../bidiMapper/domains/script/RealmStorage.js | 14 +- .../domains/script/RealmStorage.js.map | 2 +- .../domains/script/ScriptProcessor.js.map | 2 +- .../bidiMapper/domains/script/SharedId.d.ts | 6 + .../cjs/bidiMapper/domains/script/SharedId.js | 80 + .../bidiMapper/domains/script/SharedId.js.map | 1 + .../domains/script/WindowRealm.d.ts | 39 + .../bidiMapper/domains/script/WindowRealm.js | 142 + .../domains/script/WindowRealm.js.map | 1 + .../{events => session}/EventManager.d.ts | 5 +- .../{events => session}/EventManager.js | 0 .../domains/session/EventManager.js.map | 1 + .../domains/session/SessionProcessor.d.ts | 7 +- .../domains/session/SessionProcessor.js.map | 2 +- .../SubscriptionManager.d.ts | 9 +- .../SubscriptionManager.js | 0 .../session/SubscriptionManager.js.map | 1 + .../domains/{events => session}/events.d.ts | 0 .../domains/{events => session}/events.js | 0 .../bidiMapper/domains/session/events.js.map | 1 + .../domains/storage/StorageProcessor.d.ts | 13 + .../domains/storage/StorageProcessor.js | 132 + .../domains/storage/StorageProcessor.js.map | 1 + .../lib/cjs/bidiServer/BrowserInstance.d.ts | 4 +- .../lib/cjs/bidiServer/BrowserInstance.js | 5 +- .../lib/cjs/bidiServer/BrowserInstance.js.map | 2 +- .../cjs/bidiServer/MapperCdpConnection.d.ts | 6 +- .../lib/cjs/bidiServer/MapperCdpConnection.js | 43 +- .../cjs/bidiServer/MapperCdpConnection.js.map | 2 +- .../lib/cjs/bidiServer/WebSocketServer.d.ts | 8 +- .../lib/cjs/bidiServer/WebSocketServer.js | 416 +- .../lib/cjs/bidiServer/WebSocketServer.js.map | 2 +- .../chromium-bidi/lib/cjs/bidiServer/index.js | 2 +- .../lib/cjs/bidiServer/index.js.map | 2 +- .../lib/cjs/bidiTab/BidiParser.d.ts | 11 +- .../lib/cjs/bidiTab/BidiParser.js | 21 + .../lib/cjs/bidiTab/BidiParser.js.map | 2 +- .../lib/cjs/bidiTab/Transport.d.ts | 6 +- .../lib/cjs/bidiTab/Transport.js.map | 2 +- .../lib/cjs/bidiTab/bidiTab.d.ts | 5 - .../chromium-bidi/lib/cjs/bidiTab/bidiTab.js | 13 +- .../lib/cjs/bidiTab/bidiTab.js.map | 2 +- .../chromium-bidi/lib/cjs/cdp/CdpClient.d.ts | 8 +- .../chromium-bidi/lib/cjs/cdp/CdpClient.js | 6 +- .../lib/cjs/cdp/CdpClient.js.map | 2 +- .../lib/cjs/cdp/CdpConnection.d.ts | 16 +- .../lib/cjs/cdp/CdpConnection.js | 12 +- .../lib/cjs/cdp/CdpConnection.js.map | 2 +- .../generated/webdriver-bidi-permissions.d.ts | 148 + .../generated/webdriver-bidi-permissions.js | 53 + .../webdriver-bidi-permissions.js.map | 1 + .../{ => generated}/webdriver-bidi.d.ts | 13509 +++++++++++++++- .../{ => generated}/webdriver-bidi.js | 231 +- .../generated/webdriver-bidi.js.map | 1 + .../cjs/protocol-parser/protocol-parser.d.ts | 87 +- .../cjs/protocol-parser/protocol-parser.js | 56 +- .../protocol-parser/protocol-parser.js.map | 2 +- .../cjs/protocol-parser/webdriver-bidi.js.map | 1 - .../lib/cjs/protocol/ErrorResponse.d.ts | 19 +- .../lib/cjs/protocol/ErrorResponse.js | 32 +- .../lib/cjs/protocol/ErrorResponse.js.map | 2 +- .../chromium-bidi/lib/cjs/protocol/cdp.d.ts | 2 +- .../lib/cjs/protocol/chromium-bidi.d.ts | 10 +- .../lib/cjs/protocol/chromium-bidi.js.map | 2 +- .../generated/webdriver-bidi-permissions.d.ts | 46 + .../generated/webdriver-bidi-permissions.js | 19 + .../webdriver-bidi-permissions.js.map | 1 + .../{ => generated}/webdriver-bidi.d.ts | 188 +- .../{ => generated}/webdriver-bidi.js | 2 +- .../protocol/generated/webdriver-bidi.js.map | 1 + .../lib/cjs/protocol/protocol.d.ts | 3 +- .../lib/cjs/protocol/protocol.js | 3 +- .../lib/cjs/protocol/protocol.js.map | 2 +- .../lib/cjs/protocol/webdriver-bidi.js.map | 1 - .../lib/cjs/utils/WebsocketTransport.d.ts | 4 +- .../lib/cjs/utils/transport.d.ts | 2 +- .../chromium-bidi/lib/iife/mapperTab.js | 4 +- .../chromium-bidi/lib/iife/mapperTab.js.map | 2 +- .../node_modules/chromium-bidi/package.json | 75 +- Scripts/node_modules/combined-stream/License | 19 + .../node_modules/combined-stream/Readme.md | 138 + .../combined-stream/lib/combined_stream.js | 208 + .../node_modules/combined-stream/package.json | 25 + .../node_modules/combined-stream/yarn.lock | 17 + Scripts/node_modules/cosmiconfig/README.md | 215 +- .../node_modules/cosmiconfig/dist/Explorer.js | 111 +- .../cosmiconfig/dist/Explorer.js.map | 2 +- .../cosmiconfig/dist/ExplorerBase.js | 46 +- .../cosmiconfig/dist/ExplorerBase.js.map | 2 +- .../cosmiconfig/dist/ExplorerSync.js | 110 +- .../cosmiconfig/dist/ExplorerSync.js.map | 2 +- .../cosmiconfig/dist/cacheWrapper.d.ts | 5 + .../cosmiconfig/dist/cacheWrapper.d.ts.map | 1 + .../cosmiconfig/dist/cacheWrapper.js | 32 + .../cosmiconfig/dist/cacheWrapper.js.map | 1 + .../cosmiconfig/dist/canUseDynamicImport.d.ts | 3 + .../dist/canUseDynamicImport.d.ts.map | 1 + .../cosmiconfig/dist/canUseDynamicImport.js | 23 + .../dist/canUseDynamicImport.js.map | 1 + .../cosmiconfig/dist/defaults.d.ts | 25 + .../cosmiconfig/dist/defaults.d.ts.map | 1 + .../node_modules/cosmiconfig/dist/defaults.js | 105 + .../cosmiconfig/dist/defaults.js.map | 1 + .../cosmiconfig/dist/getDirectory.d.ts | 4 + .../cosmiconfig/dist/getDirectory.d.ts.map | 1 + .../cosmiconfig/dist/getDirectory.js | 38 + .../cosmiconfig/dist/getDirectory.js.map | 1 + .../cosmiconfig/dist/getPropertyByPath.d.ts | 5 + .../dist/getPropertyByPath.d.ts.map | 1 + .../cosmiconfig/dist/getPropertyByPath.js | 28 + .../cosmiconfig/dist/getPropertyByPath.js.map | 1 + .../node_modules/cosmiconfig/dist/index.d.ts | 29 +- .../cosmiconfig/dist/index.d.ts.map | 2 +- .../node_modules/cosmiconfig/dist/index.js | 215 +- .../cosmiconfig/dist/index.js.map | 2 +- .../cosmiconfig/dist/loaders.d.ts.map | 2 +- .../node_modules/cosmiconfig/dist/loaders.js | 49 +- .../cosmiconfig/dist/loaders.js.map | 2 +- .../node_modules/cosmiconfig/dist/merge.d.ts | 9 + .../cosmiconfig/dist/merge.d.ts.map | 1 + .../node_modules/cosmiconfig/dist/merge.js | 40 + .../cosmiconfig/dist/merge.js.map | 1 + .../cosmiconfig/dist/readFile.d.ts | 7 + .../cosmiconfig/dist/readFile.d.ts.map | 1 + .../node_modules/cosmiconfig/dist/readFile.js | 56 + .../cosmiconfig/dist/readFile.js.map | 1 + .../node_modules/cosmiconfig/dist/types.d.ts | 21 +- .../cosmiconfig/dist/types.d.ts.map | 2 +- Scripts/node_modules/cosmiconfig/dist/util.js | 60 +- .../node_modules/cosmiconfig/dist/util.js.map | 2 +- Scripts/node_modules/cosmiconfig/package.json | 9 +- .../data-uri-to-buffer/dist/common.d.ts | 17 + .../data-uri-to-buffer/dist/common.d.ts.map | 1 + .../data-uri-to-buffer/dist/common.js | 54 + .../data-uri-to-buffer/dist/common.js.map | 1 + .../data-uri-to-buffer/dist/index.d.ts | 9 +- .../data-uri-to-buffer/dist/index.d.ts.map | 2 +- .../data-uri-to-buffer/dist/index.js | 47 +- .../data-uri-to-buffer/dist/index.js.map | 2 +- .../data-uri-to-buffer/dist/node.d.ts | 8 + .../data-uri-to-buffer/dist/node.d.ts.map | 1 + .../data-uri-to-buffer/dist/node.js | 26 + .../data-uri-to-buffer/dist/node.js.map | 1 + .../data-uri-to-buffer/package.json | 6 +- .../node_modules/delayed-stream/.npmignore | 1 + Scripts/node_modules/delayed-stream/License | 19 + Scripts/node_modules/delayed-stream/Makefile | 7 + Scripts/node_modules/delayed-stream/Readme.md | 141 + .../delayed-stream/lib/delayed_stream.js | 107 + .../node_modules/delayed-stream/package.json | 27 + .../json/browser_protocol.json | 531 +- .../devtools-protocol/package.json | 2 +- .../pdl/browser_protocol.pdl | 256 +- .../types/protocol-mapping.d.ts | 59 +- .../types/protocol-proxy-api.d.ts | 46 +- .../devtools-protocol/types/protocol.d.ts | 279 +- Scripts/node_modules/env-paths/index.d.ts | 101 + Scripts/node_modules/env-paths/index.js | 74 + .../{path-type => env-paths}/license | 0 Scripts/node_modules/env-paths/package.json | 45 + Scripts/node_modules/env-paths/readme.md | 115 + Scripts/node_modules/escalade/package.json | 4 +- Scripts/node_modules/escalade/readme.md | 2 +- Scripts/node_modules/follow-redirects/LICENSE | 18 + .../node_modules/follow-redirects/README.md | 155 + .../node_modules/follow-redirects/debug.js | 15 + Scripts/node_modules/follow-redirects/http.js | 1 + .../node_modules/follow-redirects/https.js | 1 + .../node_modules/follow-redirects/index.js | 672 + .../follow-redirects/package.json | 58 + Scripts/node_modules/form-data/License | 19 + Scripts/node_modules/form-data/README.md.bak | 358 + Scripts/node_modules/form-data/Readme.md | 358 + Scripts/node_modules/form-data/index.d.ts | 62 + Scripts/node_modules/form-data/lib/browser.js | 2 + .../node_modules/form-data/lib/form_data.js | 501 + .../node_modules/form-data/lib/populate.js | 10 + Scripts/node_modules/form-data/package.json | 68 + Scripts/node_modules/fs-extra/README.md | 45 +- .../fs-extra/lib/copy-sync/index.js | 5 - .../lib/{copy-sync => copy}/copy-sync.js | 91 +- .../node_modules/fs-extra/lib/copy/copy.js | 315 +- .../node_modules/fs-extra/lib/copy/index.js | 5 +- .../node_modules/fs-extra/lib/empty/index.js | 31 +- .../node_modules/fs-extra/lib/ensure/file.js | 65 +- .../node_modules/fs-extra/lib/ensure/index.js | 30 +- .../node_modules/fs-extra/lib/ensure/link.js | 65 +- .../fs-extra/lib/ensure/symlink-paths.js | 116 +- .../fs-extra/lib/ensure/symlink-type.js | 31 +- .../fs-extra/lib/ensure/symlink.js | 78 +- Scripts/node_modules/fs-extra/lib/esm.mjs | 68 + Scripts/node_modules/fs-extra/lib/fs/index.js | 61 +- Scripts/node_modules/fs-extra/lib/index.js | 34 +- .../node_modules/fs-extra/lib/json/index.js | 2 +- .../fs-extra/lib/json/jsonfile.js | 5 +- .../fs-extra/lib/json/output-json-sync.js | 14 +- .../fs-extra/lib/json/output-json.js | 25 +- .../node_modules/fs-extra/lib/mkdirs/index.js | 18 +- .../fs-extra/lib/mkdirs/make-dir.js | 27 + .../fs-extra/lib/mkdirs/mkdirs-sync.js | 54 - .../fs-extra/lib/mkdirs/mkdirs.js | 63 - .../node_modules/fs-extra/lib/mkdirs/utils.js | 21 + .../node_modules/fs-extra/lib/mkdirs/win32.js | 25 - .../fs-extra/lib/move-sync/index.js | 5 - .../node_modules/fs-extra/lib/move/index.js | 5 +- .../lib/{move-sync => move}/move-sync.js | 20 +- .../node_modules/fs-extra/lib/move/move.js | 86 +- .../fs-extra/lib/output-file/index.js | 31 + .../node_modules/fs-extra/lib/output/index.js | 40 - .../node_modules/fs-extra/lib/remove/index.js | 14 +- .../fs-extra/lib/remove/rimraf.js | 314 - .../node_modules/fs-extra/lib/util/buffer.js | 12 - .../node_modules/fs-extra/lib/util/stat.js | 202 +- .../node_modules/fs-extra/lib/util/utimes.js | 85 +- Scripts/node_modules/fs-extra/package.json | 36 +- Scripts/node_modules/get-uri/package.json | 6 +- Scripts/node_modules/http-proxy-agent/LICENSE | 5 +- .../node_modules/http-proxy-agent/README.md | 28 +- .../http-proxy-agent/dist/index.d.ts | 3 +- .../http-proxy-agent/dist/index.d.ts.map | 2 +- .../http-proxy-agent/dist/index.js | 5 +- .../http-proxy-agent/dist/index.js.map | 2 +- .../http-proxy-agent/package.json | 2 +- .../node_modules/https-proxy-agent/LICENSE | 22 + .../node_modules/https-proxy-agent/README.md | 27 - .../https-proxy-agent/dist/index.d.ts | 3 +- .../https-proxy-agent/dist/index.d.ts.map | 2 +- .../https-proxy-agent/dist/index.js | 5 +- .../https-proxy-agent/dist/index.js.map | 2 +- .../https-proxy-agent/package.json | 2 +- Scripts/node_modules/ip-address/LICENSE | 19 + Scripts/node_modules/ip-address/README.md | 108 + .../ip-address/dist/address-error.d.ts | 5 + .../ip-address/dist/address-error.d.ts.map | 1 + .../ip-address/dist/address-error.js | 14 + .../ip-address/dist/address-error.js.map | 1 + .../node_modules/ip-address/dist/common.d.ts | 8 + .../ip-address/dist/common.d.ts.map | 1 + .../node_modules/ip-address/dist/common.js | 26 + .../ip-address/dist/common.js.map | 1 + .../ip-address/dist/ip-address.d.ts | 11 + .../ip-address/dist/ip-address.d.ts.map | 1 + .../ip-address/dist/ip-address.js | 35 + .../ip-address/dist/ip-address.js.map | 1 + .../node_modules/ip-address/dist/ipv4.d.ts | 194 + .../ip-address/dist/ipv4.d.ts.map | 1 + Scripts/node_modules/ip-address/dist/ipv4.js | 326 + .../node_modules/ip-address/dist/ipv4.js.map | 1 + .../node_modules/ip-address/dist/ipv6.d.ts | 429 + .../ip-address/dist/ipv6.d.ts.map | 1 + Scripts/node_modules/ip-address/dist/ipv6.js | 998 ++ .../node_modules/ip-address/dist/ipv6.js.map | 1 + .../ip-address/dist/v4/constants.d.ts | 5 + .../ip-address/dist/v4/constants.d.ts.map | 1 + .../ip-address/dist/v4/constants.js | 8 + .../ip-address/dist/v4/constants.js.map | 1 + .../ip-address/dist/v6/constants.d.ts | 45 + .../ip-address/dist/v6/constants.d.ts.map | 1 + .../ip-address/dist/v6/constants.js | 76 + .../ip-address/dist/v6/constants.js.map | 1 + .../ip-address/dist/v6/helpers.d.ts | 18 + .../ip-address/dist/v6/helpers.d.ts.map | 1 + .../ip-address/dist/v6/helpers.js | 48 + .../ip-address/dist/v6/helpers.js.map | 1 + .../dist/v6/regular-expressions.d.ts | 6 + .../dist/v6/regular-expressions.d.ts.map | 1 + .../ip-address/dist/v6/regular-expressions.js | 96 + .../dist/v6/regular-expressions.js.map | 1 + Scripts/node_modules/ip-address/package.json | 87 + .../ip-address/src/address-error.ts | 13 + Scripts/node_modules/ip-address/src/common.ts | 32 + .../node_modules/ip-address/src/ip-address.ts | 11 + Scripts/node_modules/ip-address/src/ipv4.ts | 363 + Scripts/node_modules/ip-address/src/ipv6.ts | 1214 ++ .../ip-address/src/v4/constants.ts | 6 + .../ip-address/src/v6/constants.ts | 79 + .../node_modules/ip-address/src/v6/helpers.ts | 60 + .../ip-address/src/v6/regular-expressions.ts | 99 + Scripts/node_modules/ip/README.md | 90 - Scripts/node_modules/ip/lib/ip.js | 427 - Scripts/node_modules/ip/package.json | 25 - Scripts/node_modules/jsbn/.npmignore | 2 + Scripts/node_modules/jsbn/CHANGELOG.md | 16 + Scripts/node_modules/jsbn/LICENSE | 40 + Scripts/node_modules/jsbn/README.md | 173 + Scripts/node_modules/jsbn/example.html | 11 + Scripts/node_modules/jsbn/example.js | 5 + Scripts/node_modules/jsbn/index.js | 1361 ++ Scripts/node_modules/jsbn/package.json | 21 + Scripts/node_modules/jsbn/test/es6-import.js | 3 + Scripts/node_modules/jsonfile/CHANGELOG.md | 26 + Scripts/node_modules/jsonfile/README.md | 154 +- Scripts/node_modules/jsonfile/index.js | 128 +- Scripts/node_modules/jsonfile/package.json | 13 +- Scripts/node_modules/jsonfile/utils.js | 14 + Scripts/node_modules/mime-db/HISTORY.md | 507 + Scripts/node_modules/mime-db/LICENSE | 23 + Scripts/node_modules/mime-db/README.md | 100 + Scripts/node_modules/mime-db/db.json | 8519 ++++++++++ Scripts/node_modules/mime-db/index.js | 12 + Scripts/node_modules/mime-db/package.json | 60 + Scripts/node_modules/mime-types/HISTORY.md | 397 + Scripts/node_modules/mime-types/LICENSE | 23 + Scripts/node_modules/mime-types/README.md | 113 + Scripts/node_modules/mime-types/index.js | 188 + Scripts/node_modules/mime-types/package.json | 44 + Scripts/node_modules/pac-resolver/LICENSE | 22 + Scripts/node_modules/pac-resolver/README.md | 27 - .../node_modules/pac-resolver/dist/ip.d.ts | 8 + .../pac-resolver/dist/ip.d.ts.map | 1 + Scripts/node_modules/pac-resolver/dist/ip.js | 50 + .../node_modules/pac-resolver/dist/ip.js.map | 1 + .../pac-resolver/dist/myIpAddress.js | 4 +- .../pac-resolver/dist/myIpAddress.js.map | 2 +- .../node_modules/pac-resolver/package.json | 4 +- Scripts/node_modules/path-type/index.d.ts | 51 - Scripts/node_modules/path-type/index.js | 43 - Scripts/node_modules/path-type/package.json | 45 - Scripts/node_modules/path-type/readme.md | 72 - Scripts/node_modules/puppeteer-core/README.md | 8 +- .../lib/cjs/puppeteer/api/Browser.d.ts | 20 +- .../lib/cjs/puppeteer/api/Browser.d.ts.map | 2 +- .../lib/cjs/puppeteer/api/Browser.js | 5 +- .../lib/cjs/puppeteer/api/Browser.js.map | 2 +- .../lib/cjs/puppeteer/api/Dialog.d.ts | 2 +- .../lib/cjs/puppeteer/api/Dialog.d.ts.map | 2 +- .../lib/cjs/puppeteer/api/Dialog.js | 4 +- .../lib/cjs/puppeteer/api/Dialog.js.map | 2 +- .../cjs/puppeteer/api/ElementHandle.d.ts.map | 2 +- .../lib/cjs/puppeteer/api/ElementHandle.js | 87 +- .../cjs/puppeteer/api/ElementHandle.js.map | 2 +- .../lib/cjs/puppeteer/api/Frame.d.ts.map | 2 +- .../lib/cjs/puppeteer/api/Frame.js | 15 +- .../lib/cjs/puppeteer/api/Frame.js.map | 2 +- .../lib/cjs/puppeteer/api/Page.d.ts | 64 +- .../lib/cjs/puppeteer/api/Page.d.ts.map | 2 +- .../lib/cjs/puppeteer/api/Page.js | 206 +- .../lib/cjs/puppeteer/api/Page.js.map | 2 +- .../lib/cjs/puppeteer/bidi/BidiOverCdp.js.map | 2 +- .../lib/cjs/puppeteer/bidi/Browser.d.ts | 9 +- .../lib/cjs/puppeteer/bidi/Browser.d.ts.map | 2 +- .../lib/cjs/puppeteer/bidi/Browser.js | 175 +- .../lib/cjs/puppeteer/bidi/Browser.js.map | 2 +- .../cjs/puppeteer/bidi/BrowserConnector.js | 2 +- .../puppeteer/bidi/BrowserConnector.js.map | 2 +- .../cjs/puppeteer/bidi/BrowserContext.d.ts | 5 +- .../puppeteer/bidi/BrowserContext.d.ts.map | 2 +- .../lib/cjs/puppeteer/bidi/BrowserContext.js | 26 +- .../cjs/puppeteer/bidi/BrowserContext.js.map | 2 +- .../lib/cjs/puppeteer/bidi/Connection.d.ts | 113 +- .../cjs/puppeteer/bidi/Connection.d.ts.map | 2 +- .../lib/cjs/puppeteer/bidi/Connection.js | 13 + .../lib/cjs/puppeteer/bidi/Connection.js.map | 2 +- .../lib/cjs/puppeteer/bidi/Dialog.d.ts | 2 +- .../lib/cjs/puppeteer/bidi/Dialog.d.ts.map | 2 +- .../lib/cjs/puppeteer/bidi/Dialog.js | 2 +- .../lib/cjs/puppeteer/bidi/Dialog.js.map | 2 +- .../puppeteer/bidi/ExposedFunction.d.ts.map | 2 +- .../lib/cjs/puppeteer/bidi/ExposedFunction.js | 15 +- .../cjs/puppeteer/bidi/ExposedFunction.js.map | 2 +- .../lib/cjs/puppeteer/bidi/Frame.d.ts.map | 2 +- .../lib/cjs/puppeteer/bidi/Frame.js | 63 +- .../lib/cjs/puppeteer/bidi/Frame.js.map | 2 +- .../lib/cjs/puppeteer/bidi/Page.d.ts | 20 - .../lib/cjs/puppeteer/bidi/Page.d.ts.map | 2 +- .../lib/cjs/puppeteer/bidi/Page.js | 47 +- .../lib/cjs/puppeteer/bidi/Page.js.map | 2 +- .../lib/cjs/puppeteer/bidi/Target.d.ts | 9 +- .../lib/cjs/puppeteer/bidi/Target.d.ts.map | 2 +- .../lib/cjs/puppeteer/bidi/Target.js | 22 +- .../lib/cjs/puppeteer/bidi/Target.js.map | 2 +- .../lib/cjs/puppeteer/bidi/core/Browser.d.ts | 55 + .../cjs/puppeteer/bidi/core/Browser.d.ts.map | 1 + .../lib/cjs/puppeteer/bidi/core/Browser.js | 272 + .../cjs/puppeteer/bidi/core/Browser.js.map | 1 + .../puppeteer/bidi/core/BrowsingContext.d.ts | 104 + .../bidi/core/BrowsingContext.d.ts.map | 1 + .../puppeteer/bidi/core/BrowsingContext.js | 376 + .../bidi/core/BrowsingContext.js.map | 1 + .../cjs/puppeteer/bidi/core/Connection.d.ts | 140 + .../puppeteer/bidi/core/Connection.d.ts.map | 1 + .../lib/cjs/puppeteer/bidi/core/Connection.js | 8 + .../cjs/puppeteer/bidi/core/Connection.js.map | 1 + .../cjs/puppeteer/bidi/core/Navigation.d.ts | 38 + .../puppeteer/bidi/core/Navigation.d.ts.map | 1 + .../lib/cjs/puppeteer/bidi/core/Navigation.js | 157 + .../cjs/puppeteer/bidi/core/Navigation.js.map | 1 + .../lib/cjs/puppeteer/bidi/core/Realm.d.ts | 86 + .../cjs/puppeteer/bidi/core/Realm.d.ts.map | 1 + .../lib/cjs/puppeteer/bidi/core/Realm.js | 297 + .../lib/cjs/puppeteer/bidi/core/Realm.js.map | 1 + .../lib/cjs/puppeteer/bidi/core/Request.d.ts | 37 + .../cjs/puppeteer/bidi/core/Request.d.ts.map | 1 + .../lib/cjs/puppeteer/bidi/core/Request.js | 167 + .../cjs/puppeteer/bidi/core/Request.js.map | 1 + .../lib/cjs/puppeteer/bidi/core/Session.d.ts | 48 + .../cjs/puppeteer/bidi/core/Session.d.ts.map | 1 + .../lib/cjs/puppeteer/bidi/core/Session.js | 199 + .../cjs/puppeteer/bidi/core/Session.js.map | 1 + .../cjs/puppeteer/bidi/core/UserContext.d.ts | 50 + .../puppeteer/bidi/core/UserContext.d.ts.map | 1 + .../cjs/puppeteer/bidi/core/UserContext.js | 168 + .../puppeteer/bidi/core/UserContext.js.map | 1 + .../cjs/puppeteer/bidi/core/UserPrompt.d.ts | 43 + .../puppeteer/bidi/core/UserPrompt.d.ts.map | 1 + .../lib/cjs/puppeteer/bidi/core/UserPrompt.js | 137 + .../cjs/puppeteer/bidi/core/UserPrompt.js.map | 1 + .../lib/cjs/puppeteer/bidi/core/core.d.ts | 15 + .../lib/cjs/puppeteer/bidi/core/core.d.ts.map | 1 + .../lib/cjs/puppeteer/bidi/core/core.js | 31 + .../lib/cjs/puppeteer/bidi/core/core.js.map | 1 + .../lib/cjs/puppeteer/bidi/util.js | 2 +- .../lib/cjs/puppeteer/bidi/util.js.map | 2 +- .../lib/cjs/puppeteer/cdp/Browser.d.ts | 2 + .../lib/cjs/puppeteer/cdp/Browser.d.ts.map | 2 +- .../lib/cjs/puppeteer/cdp/Browser.js | 5 + .../lib/cjs/puppeteer/cdp/Browser.js.map | 2 +- .../lib/cjs/puppeteer/cdp/CDPSession.d.ts | 4 + .../lib/cjs/puppeteer/cdp/CDPSession.d.ts.map | 2 +- .../lib/cjs/puppeteer/cdp/CDPSession.js | 6 + .../lib/cjs/puppeteer/cdp/CDPSession.js.map | 2 +- .../cdp/ChromeTargetManager.d.ts.map | 2 +- .../cjs/puppeteer/cdp/ChromeTargetManager.js | 7 +- .../puppeteer/cdp/ChromeTargetManager.js.map | 2 +- .../lib/cjs/puppeteer/cdp/Connection.d.ts | 4 + .../lib/cjs/puppeteer/cdp/Connection.d.ts.map | 2 +- .../lib/cjs/puppeteer/cdp/Connection.js | 11 + .../lib/cjs/puppeteer/cdp/Connection.js.map | 2 +- .../lib/cjs/puppeteer/cdp/Dialog.d.ts | 2 +- .../lib/cjs/puppeteer/cdp/Dialog.d.ts.map | 2 +- .../lib/cjs/puppeteer/cdp/Dialog.js | 2 +- .../lib/cjs/puppeteer/cdp/Dialog.js.map | 2 +- .../puppeteer/cdp/ExecutionContext.d.ts.map | 2 +- .../lib/cjs/puppeteer/cdp/ExecutionContext.js | 9 +- .../cjs/puppeteer/cdp/ExecutionContext.js.map | 2 +- .../cdp/FirefoxTargetManager.d.ts.map | 2 +- .../cjs/puppeteer/cdp/FirefoxTargetManager.js | 6 - .../puppeteer/cdp/FirefoxTargetManager.js.map | 2 +- .../cjs/puppeteer/cdp/IsolatedWorld.d.ts.map | 2 +- .../lib/cjs/puppeteer/cdp/IsolatedWorld.js | 3 +- .../cjs/puppeteer/cdp/IsolatedWorld.js.map | 2 +- .../lib/cjs/puppeteer/cdp/JSHandle.d.ts.map | 2 +- .../lib/cjs/puppeteer/cdp/JSHandle.js | 5 +- .../lib/cjs/puppeteer/cdp/JSHandle.js.map | 2 +- .../lib/cjs/puppeteer/cdp/Page.d.ts | 11 - .../lib/cjs/puppeteer/cdp/Page.d.ts.map | 2 +- .../lib/cjs/puppeteer/cdp/Page.js | 23 +- .../lib/cjs/puppeteer/cdp/Page.js.map | 2 +- .../lib/cjs/puppeteer/cdp/Target.js | 4 +- .../lib/cjs/puppeteer/cdp/cdp.d.ts | 3 +- .../lib/cjs/puppeteer/cdp/cdp.d.ts.map | 2 +- .../lib/cjs/puppeteer/cdp/cdp.js | 3 +- .../lib/cjs/puppeteer/cdp/cdp.js.map | 2 +- .../lib/cjs/puppeteer/cdp/utils.d.ts | 27 + .../lib/cjs/puppeteer/cdp/utils.d.ts.map | 1 + .../lib/cjs/puppeteer/cdp/utils.js | 194 + .../lib/cjs/puppeteer/cdp/utils.js.map | 1 + .../puppeteer/common/CallbackRegistry.d.ts | 4 + .../common/CallbackRegistry.d.ts.map | 2 +- .../cjs/puppeteer/common/CallbackRegistry.js | 10 + .../puppeteer/common/CallbackRegistry.js.map | 2 +- .../cjs/puppeteer/common/Configuration.d.ts | 20 +- .../puppeteer/common/Configuration.d.ts.map | 2 +- .../cjs/puppeteer/common/EventEmitter.d.ts | 25 +- .../puppeteer/common/EventEmitter.d.ts.map | 2 +- .../lib/cjs/puppeteer/common/EventEmitter.js | 79 +- .../cjs/puppeteer/common/EventEmitter.js.map | 2 +- .../lib/cjs/puppeteer/common/PDFOptions.d.ts | 14 +- .../cjs/puppeteer/common/PDFOptions.d.ts.map | 2 +- .../cjs/puppeteer/common/PDFOptions.js.map | 2 +- .../cjs/puppeteer/common/bidi/Browser.d.ts | 1 - .../puppeteer/common/bidi/Browser.d.ts.map | 1 - .../lib/cjs/puppeteer/common/bidi/Browser.js | 2 - .../cjs/puppeteer/common/bidi/Browser.js.map | 1 - .../lib/cjs/puppeteer/common/types.d.ts | 4 + .../lib/cjs/puppeteer/common/types.d.ts.map | 2 +- .../lib/cjs/puppeteer/common/util.d.ts | 51 +- .../lib/cjs/puppeteer/common/util.d.ts.map | 2 +- .../lib/cjs/puppeteer/common/util.js | 321 +- .../lib/cjs/puppeteer/common/util.js.map | 2 +- .../lib/cjs/puppeteer/environment.d.ts | 4 - .../lib/cjs/puppeteer/environment.d.ts.map | 2 +- .../lib/cjs/puppeteer/environment.js | 9 +- .../lib/cjs/puppeteer/environment.js.map | 2 +- .../lib/cjs/puppeteer/generated/injected.d.ts | 2 +- .../cjs/puppeteer/generated/injected.d.ts.map | 2 +- .../lib/cjs/puppeteer/generated/injected.js | 2 +- .../cjs/puppeteer/generated/injected.js.map | 2 +- .../lib/cjs/puppeteer/generated/version.d.ts | 2 +- .../cjs/puppeteer/generated/version.d.ts.map | 2 +- .../lib/cjs/puppeteer/generated/version.js | 2 +- .../cjs/puppeteer/generated/version.js.map | 2 +- .../lib/cjs/puppeteer/injected/injected.d.ts | 2 +- .../cjs/puppeteer/node/ChromeLauncher.d.ts | 2 +- .../puppeteer/node/ChromeLauncher.d.ts.map | 2 +- .../lib/cjs/puppeteer/node/ChromeLauncher.js | 7 +- .../cjs/puppeteer/node/ChromeLauncher.js.map | 2 +- .../puppeteer/node/FirefoxLauncher.d.ts.map | 2 +- .../lib/cjs/puppeteer/node/FirefoxLauncher.js | 2 + .../cjs/puppeteer/node/FirefoxLauncher.js.map | 2 +- .../cjs/puppeteer/node/ProductLauncher.d.ts | 2 +- .../puppeteer/node/ProductLauncher.d.ts.map | 2 +- .../lib/cjs/puppeteer/node/ProductLauncher.js | 15 +- .../cjs/puppeteer/node/ProductLauncher.js.map | 2 +- .../puppeteer/node/ScreenRecorder.d.ts.map | 2 +- .../lib/cjs/puppeteer/node/ScreenRecorder.js | 2 +- .../cjs/puppeteer/node/ScreenRecorder.js.map | 2 +- .../lib/cjs/puppeteer/revisions.d.ts | 3 +- .../lib/cjs/puppeteer/revisions.d.ts.map | 2 +- .../lib/cjs/puppeteer/revisions.js | 3 +- .../lib/cjs/puppeteer/revisions.js.map | 2 +- .../puppeteer/util/DebuggableDeferred.d.ts | 9 - .../util/DebuggableDeferred.d.ts.map | 1 - .../cjs/puppeteer/util/DebuggableDeferred.js | 22 - .../puppeteer/util/DebuggableDeferred.js.map | 1 - .../lib/cjs/puppeteer/util/Deferred.d.ts | 4 +- .../lib/cjs/puppeteer/util/Deferred.d.ts.map | 2 +- .../lib/cjs/puppeteer/util/Deferred.js | 111 +- .../lib/cjs/puppeteer/util/Deferred.js.map | 2 +- .../lib/cjs/puppeteer/util/Mutex.d.ts | 2 +- .../lib/cjs/puppeteer/util/decorators.d.ts | 1 + .../cjs/puppeteer/util/decorators.d.ts.map | 2 +- .../lib/cjs/puppeteer/util/decorators.js | 11 +- .../lib/cjs/puppeteer/util/decorators.js.map | 2 +- .../lib/cjs/puppeteer/util/util.d.ts | 1 - .../lib/cjs/puppeteer/util/util.d.ts.map | 2 +- .../lib/cjs/puppeteer/util/util.js | 1 - .../lib/cjs/puppeteer/util/util.js.map | 2 +- .../lib/cjs/third_party/rxjs/rxjs.d.ts | 2 +- .../lib/cjs/third_party/rxjs/rxjs.js | 2 +- .../lib/esm/puppeteer/api/Browser.d.ts | 20 +- .../lib/esm/puppeteer/api/Browser.d.ts.map | 2 +- .../lib/esm/puppeteer/api/Browser.js | 9 +- .../lib/esm/puppeteer/api/Browser.js.map | 2 +- .../lib/esm/puppeteer/api/Dialog.d.ts | 2 +- .../lib/esm/puppeteer/api/Dialog.d.ts.map | 2 +- .../lib/esm/puppeteer/api/Dialog.js | 4 +- .../lib/esm/puppeteer/api/Dialog.js.map | 2 +- .../esm/puppeteer/api/ElementHandle.d.ts.map | 2 +- .../lib/esm/puppeteer/api/ElementHandle.js | 89 +- .../esm/puppeteer/api/ElementHandle.js.map | 2 +- .../lib/esm/puppeteer/api/Frame.d.ts.map | 2 +- .../lib/esm/puppeteer/api/Frame.js | 17 +- .../lib/esm/puppeteer/api/Frame.js.map | 2 +- .../lib/esm/puppeteer/api/Page.d.ts | 64 +- .../lib/esm/puppeteer/api/Page.d.ts.map | 2 +- .../lib/esm/puppeteer/api/Page.js | 208 +- .../lib/esm/puppeteer/api/Page.js.map | 2 +- .../esm/puppeteer/api/locators/locators.js | 2 +- .../puppeteer/api/locators/locators.js.map | 2 +- .../lib/esm/puppeteer/bidi/BidiOverCdp.js.map | 2 +- .../lib/esm/puppeteer/bidi/Browser.d.ts | 9 +- .../lib/esm/puppeteer/bidi/Browser.d.ts.map | 2 +- .../lib/esm/puppeteer/bidi/Browser.js | 175 +- .../lib/esm/puppeteer/bidi/Browser.js.map | 2 +- .../esm/puppeteer/bidi/BrowserConnector.js | 4 +- .../puppeteer/bidi/BrowserConnector.js.map | 2 +- .../esm/puppeteer/bidi/BrowserContext.d.ts | 5 +- .../puppeteer/bidi/BrowserContext.d.ts.map | 2 +- .../lib/esm/puppeteer/bidi/BrowserContext.js | 26 +- .../esm/puppeteer/bidi/BrowserContext.js.map | 2 +- .../lib/esm/puppeteer/bidi/Connection.d.ts | 113 +- .../esm/puppeteer/bidi/Connection.d.ts.map | 2 +- .../lib/esm/puppeteer/bidi/Connection.js | 13 + .../lib/esm/puppeteer/bidi/Connection.js.map | 2 +- .../lib/esm/puppeteer/bidi/Dialog.d.ts | 2 +- .../lib/esm/puppeteer/bidi/Dialog.d.ts.map | 2 +- .../lib/esm/puppeteer/bidi/Dialog.js | 2 +- .../lib/esm/puppeteer/bidi/Dialog.js.map | 2 +- .../puppeteer/bidi/ExposedFunction.d.ts.map | 2 +- .../lib/esm/puppeteer/bidi/ExposedFunction.js | 15 +- .../esm/puppeteer/bidi/ExposedFunction.js.map | 2 +- .../lib/esm/puppeteer/bidi/Frame.d.ts.map | 2 +- .../lib/esm/puppeteer/bidi/Frame.js | 67 +- .../lib/esm/puppeteer/bidi/Frame.js.map | 2 +- .../lib/esm/puppeteer/bidi/Page.d.ts | 20 - .../lib/esm/puppeteer/bidi/Page.d.ts.map | 2 +- .../lib/esm/puppeteer/bidi/Page.js | 51 +- .../lib/esm/puppeteer/bidi/Page.js.map | 2 +- .../lib/esm/puppeteer/bidi/Target.d.ts | 9 +- .../lib/esm/puppeteer/bidi/Target.d.ts.map | 2 +- .../lib/esm/puppeteer/bidi/Target.js | 22 +- .../lib/esm/puppeteer/bidi/Target.js.map | 2 +- .../lib/esm/puppeteer/bidi/core/Browser.d.ts | 55 + .../esm/puppeteer/bidi/core/Browser.d.ts.map | 1 + .../lib/esm/puppeteer/bidi/core/Browser.js | 269 + .../esm/puppeteer/bidi/core/Browser.js.map | 1 + .../puppeteer/bidi/core/BrowsingContext.d.ts | 104 + .../bidi/core/BrowsingContext.d.ts.map | 1 + .../puppeteer/bidi/core/BrowsingContext.js | 373 + .../bidi/core/BrowsingContext.js.map | 1 + .../esm/puppeteer/bidi/core/Connection.d.ts | 140 + .../puppeteer/bidi/core/Connection.d.ts.map | 1 + .../lib/esm/puppeteer/bidi/core/Connection.js | 7 + .../esm/puppeteer/bidi/core/Connection.js.map | 1 + .../esm/puppeteer/bidi/core/Navigation.d.ts | 38 + .../puppeteer/bidi/core/Navigation.d.ts.map | 1 + .../lib/esm/puppeteer/bidi/core/Navigation.js | 154 + .../esm/puppeteer/bidi/core/Navigation.js.map | 1 + .../lib/esm/puppeteer/bidi/core/Realm.d.ts | 86 + .../esm/puppeteer/bidi/core/Realm.d.ts.map | 1 + .../lib/esm/puppeteer/bidi/core/Realm.js | 291 + .../lib/esm/puppeteer/bidi/core/Realm.js.map | 1 + .../lib/esm/puppeteer/bidi/core/Request.d.ts | 37 + .../esm/puppeteer/bidi/core/Request.d.ts.map | 1 + .../lib/esm/puppeteer/bidi/core/Request.js | 164 + .../esm/puppeteer/bidi/core/Request.js.map | 1 + .../lib/esm/puppeteer/bidi/core/Session.d.ts | 48 + .../esm/puppeteer/bidi/core/Session.d.ts.map | 1 + .../lib/esm/puppeteer/bidi/core/Session.js | 196 + .../esm/puppeteer/bidi/core/Session.js.map | 1 + .../esm/puppeteer/bidi/core/UserContext.d.ts | 50 + .../puppeteer/bidi/core/UserContext.d.ts.map | 1 + .../esm/puppeteer/bidi/core/UserContext.js | 165 + .../puppeteer/bidi/core/UserContext.js.map | 1 + .../esm/puppeteer/bidi/core/UserPrompt.d.ts | 43 + .../puppeteer/bidi/core/UserPrompt.d.ts.map | 1 + .../lib/esm/puppeteer/bidi/core/UserPrompt.js | 134 + .../esm/puppeteer/bidi/core/UserPrompt.js.map | 1 + .../lib/esm/puppeteer/bidi/core/core.d.ts | 15 + .../lib/esm/puppeteer/bidi/core/core.d.ts.map | 1 + .../lib/esm/puppeteer/bidi/core/core.js | 15 + .../lib/esm/puppeteer/bidi/core/core.js.map | 1 + .../lib/esm/puppeteer/bidi/util.js | 2 +- .../lib/esm/puppeteer/bidi/util.js.map | 2 +- .../lib/esm/puppeteer/cdp/Browser.d.ts | 2 + .../lib/esm/puppeteer/cdp/Browser.d.ts.map | 2 +- .../lib/esm/puppeteer/cdp/Browser.js | 5 + .../lib/esm/puppeteer/cdp/Browser.js.map | 2 +- .../lib/esm/puppeteer/cdp/CDPSession.d.ts | 4 + .../lib/esm/puppeteer/cdp/CDPSession.d.ts.map | 2 +- .../lib/esm/puppeteer/cdp/CDPSession.js | 6 + .../lib/esm/puppeteer/cdp/CDPSession.js.map | 2 +- .../cdp/ChromeTargetManager.d.ts.map | 2 +- .../esm/puppeteer/cdp/ChromeTargetManager.js | 7 +- .../puppeteer/cdp/ChromeTargetManager.js.map | 2 +- .../lib/esm/puppeteer/cdp/Connection.d.ts | 4 + .../lib/esm/puppeteer/cdp/Connection.d.ts.map | 2 +- .../lib/esm/puppeteer/cdp/Connection.js | 11 + .../lib/esm/puppeteer/cdp/Connection.js.map | 2 +- .../lib/esm/puppeteer/cdp/Dialog.d.ts | 2 +- .../lib/esm/puppeteer/cdp/Dialog.d.ts.map | 2 +- .../lib/esm/puppeteer/cdp/Dialog.js | 2 +- .../lib/esm/puppeteer/cdp/Dialog.js.map | 2 +- .../puppeteer/cdp/ExecutionContext.d.ts.map | 2 +- .../lib/esm/puppeteer/cdp/ExecutionContext.js | 3 +- .../esm/puppeteer/cdp/ExecutionContext.js.map | 2 +- .../cdp/FirefoxTargetManager.d.ts.map | 2 +- .../esm/puppeteer/cdp/FirefoxTargetManager.js | 6 - .../puppeteer/cdp/FirefoxTargetManager.js.map | 2 +- .../esm/puppeteer/cdp/IsolatedWorld.d.ts.map | 2 +- .../lib/esm/puppeteer/cdp/IsolatedWorld.js | 3 +- .../esm/puppeteer/cdp/IsolatedWorld.js.map | 2 +- .../lib/esm/puppeteer/cdp/JSHandle.d.ts.map | 2 +- .../lib/esm/puppeteer/cdp/JSHandle.js | 3 +- .../lib/esm/puppeteer/cdp/JSHandle.js.map | 2 +- .../lib/esm/puppeteer/cdp/Page.d.ts | 11 - .../lib/esm/puppeteer/cdp/Page.d.ts.map | 2 +- .../lib/esm/puppeteer/cdp/Page.js | 19 +- .../lib/esm/puppeteer/cdp/Page.js.map | 2 +- .../lib/esm/puppeteer/cdp/Target.js | 4 +- .../lib/esm/puppeteer/cdp/cdp.d.ts | 3 +- .../lib/esm/puppeteer/cdp/cdp.d.ts.map | 2 +- .../lib/esm/puppeteer/cdp/cdp.js | 3 +- .../lib/esm/puppeteer/cdp/cdp.js.map | 2 +- .../lib/esm/puppeteer/cdp/utils.d.ts | 27 + .../lib/esm/puppeteer/cdp/utils.d.ts.map | 1 + .../lib/esm/puppeteer/cdp/utils.js | 186 + .../lib/esm/puppeteer/cdp/utils.js.map | 1 + .../puppeteer/common/CallbackRegistry.d.ts | 4 + .../common/CallbackRegistry.d.ts.map | 2 +- .../esm/puppeteer/common/CallbackRegistry.js | 10 + .../puppeteer/common/CallbackRegistry.js.map | 2 +- .../esm/puppeteer/common/Configuration.d.ts | 20 +- .../puppeteer/common/Configuration.d.ts.map | 2 +- .../esm/puppeteer/common/EventEmitter.d.ts | 25 +- .../puppeteer/common/EventEmitter.d.ts.map | 2 +- .../lib/esm/puppeteer/common/EventEmitter.js | 79 +- .../esm/puppeteer/common/EventEmitter.js.map | 2 +- .../lib/esm/puppeteer/common/PDFOptions.d.ts | 14 +- .../esm/puppeteer/common/PDFOptions.d.ts.map | 2 +- .../esm/puppeteer/common/PDFOptions.js.map | 2 +- .../esm/puppeteer/common/bidi/Browser.d.ts | 1 - .../puppeteer/common/bidi/Browser.d.ts.map | 1 - .../lib/esm/puppeteer/common/bidi/Browser.js | 2 - .../esm/puppeteer/common/bidi/Browser.js.map | 1 - .../lib/esm/puppeteer/common/types.d.ts | 4 + .../lib/esm/puppeteer/common/types.d.ts.map | 2 +- .../lib/esm/puppeteer/common/util.d.ts | 51 +- .../lib/esm/puppeteer/common/util.d.ts.map | 2 +- .../lib/esm/puppeteer/common/util.js | 310 +- .../lib/esm/puppeteer/common/util.js.map | 2 +- .../lib/esm/puppeteer/environment.d.ts | 4 - .../lib/esm/puppeteer/environment.d.ts.map | 2 +- .../lib/esm/puppeteer/environment.js | 7 - .../lib/esm/puppeteer/environment.js.map | 2 +- .../lib/esm/puppeteer/generated/injected.d.ts | 2 +- .../esm/puppeteer/generated/injected.d.ts.map | 2 +- .../lib/esm/puppeteer/generated/injected.js | 2 +- .../esm/puppeteer/generated/injected.js.map | 2 +- .../lib/esm/puppeteer/generated/version.d.ts | 2 +- .../esm/puppeteer/generated/version.d.ts.map | 2 +- .../lib/esm/puppeteer/generated/version.js | 2 +- .../esm/puppeteer/generated/version.js.map | 2 +- .../lib/esm/puppeteer/injected/injected.d.ts | 2 +- .../esm/puppeteer/node/ChromeLauncher.d.ts | 2 +- .../puppeteer/node/ChromeLauncher.d.ts.map | 2 +- .../lib/esm/puppeteer/node/ChromeLauncher.js | 7 +- .../esm/puppeteer/node/ChromeLauncher.js.map | 2 +- .../puppeteer/node/FirefoxLauncher.d.ts.map | 2 +- .../lib/esm/puppeteer/node/FirefoxLauncher.js | 2 + .../esm/puppeteer/node/FirefoxLauncher.js.map | 2 +- .../esm/puppeteer/node/ProductLauncher.d.ts | 2 +- .../puppeteer/node/ProductLauncher.d.ts.map | 2 +- .../lib/esm/puppeteer/node/ProductLauncher.js | 15 +- .../esm/puppeteer/node/ProductLauncher.js.map | 2 +- .../puppeteer/node/ScreenRecorder.d.ts.map | 2 +- .../lib/esm/puppeteer/node/ScreenRecorder.js | 4 +- .../esm/puppeteer/node/ScreenRecorder.js.map | 2 +- .../lib/esm/puppeteer/revisions.d.ts | 3 +- .../lib/esm/puppeteer/revisions.d.ts.map | 2 +- .../lib/esm/puppeteer/revisions.js | 3 +- .../lib/esm/puppeteer/revisions.js.map | 2 +- .../puppeteer/util/DebuggableDeferred.d.ts | 9 - .../util/DebuggableDeferred.d.ts.map | 1 - .../esm/puppeteer/util/DebuggableDeferred.js | 18 - .../puppeteer/util/DebuggableDeferred.js.map | 1 - .../lib/esm/puppeteer/util/Deferred.d.ts | 4 +- .../lib/esm/puppeteer/util/Deferred.d.ts.map | 2 +- .../lib/esm/puppeteer/util/Deferred.js | 111 +- .../lib/esm/puppeteer/util/Deferred.js.map | 2 +- .../lib/esm/puppeteer/util/Mutex.d.ts | 2 +- .../lib/esm/puppeteer/util/decorators.d.ts | 1 + .../esm/puppeteer/util/decorators.d.ts.map | 2 +- .../lib/esm/puppeteer/util/decorators.js | 8 + .../lib/esm/puppeteer/util/decorators.js.map | 2 +- .../lib/esm/puppeteer/util/util.d.ts | 1 - .../lib/esm/puppeteer/util/util.d.ts.map | 2 +- .../lib/esm/puppeteer/util/util.js | 1 - .../lib/esm/puppeteer/util/util.js.map | 2 +- .../lib/esm/third_party/rxjs/rxjs.d.ts | 2 +- .../lib/esm/third_party/rxjs/rxjs.js | 6 +- .../puppeteer-core/lib/types.d.ts | 190 +- .../node_modules/puppeteer-core/package.json | 8 +- .../puppeteer-core/src/api/Browser.ts | 33 +- .../puppeteer-core/src/api/Dialog.ts | 6 +- .../puppeteer-core/src/api/ElementHandle.ts | 32 +- .../puppeteer-core/src/api/Frame.ts | 17 +- .../puppeteer-core/src/api/Page.ts | 310 +- .../src/api/locators/locators.ts | 18 +- .../puppeteer-core/src/bidi/BidiOverCdp.ts | 6 +- .../puppeteer-core/src/bidi/Browser.ts | 189 +- .../src/bidi/BrowserConnector.ts | 6 +- .../puppeteer-core/src/bidi/BrowserContext.ts | 31 +- .../puppeteer-core/src/bidi/Connection.ts | 144 +- .../puppeteer-core/src/bidi/Dialog.ts | 2 +- .../src/bidi/ExposedFunction.ts | 22 +- .../puppeteer-core/src/bidi/Frame.ts | 131 +- .../puppeteer-core/src/bidi/Page.ts | 116 +- .../puppeteer-core/src/bidi/Target.ts | 29 +- .../puppeteer-core/src/bidi/core/Browser.ts | 240 + .../src/bidi/core/BrowsingContext.ts | 475 + .../src/bidi/core/Connection.ts | 154 + .../src/bidi/core/Navigation.ts | 144 + .../puppeteer-core/src/bidi/core/Realm.ts | 351 + .../puppeteer-core/src/bidi/core/Request.ts | 148 + .../puppeteer-core/src/bidi/core/Session.ts | 180 + .../src/bidi/core/UserContext.ts | 185 + .../src/bidi/core/UserPrompt.ts | 137 + .../puppeteer-core/src/bidi/core/core.ts | 15 + .../puppeteer-core/src/bidi/util.ts | 2 +- .../puppeteer-core/src/cdp/Browser.ts | 7 + .../puppeteer-core/src/cdp/CDPSession.ts | 7 + .../src/cdp/ChromeTargetManager.ts | 6 +- .../puppeteer-core/src/cdp/Connection.ts | 12 + .../puppeteer-core/src/cdp/Dialog.ts | 2 +- .../src/cdp/ExecutionContext.ts | 3 +- .../src/cdp/FirefoxTargetManager.ts | 6 - .../puppeteer-core/src/cdp/IsolatedWorld.ts | 7 +- .../puppeteer-core/src/cdp/JSHandle.ts | 3 +- .../puppeteer-core/src/cdp/Page.ts | 65 +- .../puppeteer-core/src/cdp/Target.ts | 4 +- .../puppeteer-core/src/cdp/cdp.ts | 3 +- .../puppeteer-core/src/cdp/utils.ts | 232 + .../src/common/CallbackRegistry.ts | 13 + .../src/common/Configuration.ts | 20 +- .../puppeteer-core/src/common/EventEmitter.ts | 108 +- .../puppeteer-core/src/common/PDFOptions.ts | 14 +- .../puppeteer-core/src/common/bidi/Browser.ts | 0 .../puppeteer-core/src/common/types.ts | 5 + .../puppeteer-core/src/common/util.ts | 404 +- .../puppeteer-core/src/environment.ts | 9 - .../puppeteer-core/src/generated/injected.ts | 2 +- .../puppeteer-core/src/generated/version.ts | 2 +- .../puppeteer-core/src/node/ChromeLauncher.ts | 10 +- .../src/node/FirefoxLauncher.ts | 2 + .../src/node/ProductLauncher.ts | 28 +- .../puppeteer-core/src/node/ScreenRecorder.ts | 15 +- .../puppeteer-core/src/revisions.ts | 3 +- .../src/util/DebuggableDeferred.ts | 19 - .../puppeteer-core/src/util/Deferred.ts | 131 +- .../puppeteer-core/src/util/decorators.ts | 12 + .../puppeteer-core/src/util/util.ts | 1 - Scripts/node_modules/puppeteer/README.md | 8 +- Scripts/node_modules/puppeteer/install.mjs | 22 +- .../cjs/puppeteer/getConfiguration.d.ts.map | 2 +- .../lib/cjs/puppeteer/getConfiguration.js | 35 +- .../lib/cjs/puppeteer/getConfiguration.js.map | 2 +- .../puppeteer/lib/cjs/puppeteer/node/cli.js | 1 + .../lib/cjs/puppeteer/node/cli.js.map | 2 +- .../lib/cjs/puppeteer/node/install.d.ts.map | 2 +- .../lib/cjs/puppeteer/node/install.js | 62 +- .../lib/cjs/puppeteer/node/install.js.map | 2 +- .../esm/puppeteer/getConfiguration.d.ts.map | 2 +- .../lib/esm/puppeteer/getConfiguration.js | 35 +- .../lib/esm/puppeteer/getConfiguration.js.map | 2 +- .../puppeteer/lib/esm/puppeteer/node/cli.js | 1 + .../lib/esm/puppeteer/node/cli.js.map | 2 +- .../lib/esm/puppeteer/node/install.d.ts.map | 2 +- .../lib/esm/puppeteer/node/install.js | 62 +- .../lib/esm/puppeteer/node/install.js.map | 2 +- Scripts/node_modules/puppeteer/lib/types.d.ts | 190 +- Scripts/node_modules/puppeteer/package.json | 8 +- .../puppeteer/src/getConfiguration.ts | 46 +- .../node_modules/puppeteer/src/node/cli.ts | 1 + .../puppeteer/src/node/install.ts | 93 +- .../socks/build/client/socksclient.js | 28 +- .../socks/build/client/socksclient.js.map | 2 +- .../socks/build/common/constants.js | 26 +- .../socks/build/common/constants.js.map | 2 +- .../socks/build/common/helpers.js | 36 +- .../socks/build/common/helpers.js.map | 2 +- .../socks/build/common/receivebuffer.js.map | 2 +- .../socks/build/common/util.js.map | 2 +- .../socks/node_modules/ip/README.md | 90 - .../socks/node_modules/ip/lib/ip.js | 422 - .../socks/node_modules/ip/package.json | 25 - Scripts/node_modules/socks/package.json | 22 +- .../socks/typings/common/constants.d.ts | 11 +- .../socks/typings/common/helpers.d.ts | 4 + .../socks/typings/common/util.d.ts | 5 +- .../node_modules/sprintf-js/CONTRIBUTORS.md | 26 + Scripts/node_modules/sprintf-js/LICENSE | 24 + Scripts/node_modules/sprintf-js/README.md | 143 + .../sprintf-js/dist/.gitattributes | 4 + .../sprintf-js/dist/angular-sprintf.min.js | 3 + .../dist/angular-sprintf.min.js.map | 1 + .../sprintf-js/dist/sprintf.min.js | 3 + .../sprintf-js/dist/sprintf.min.js.map | 1 + Scripts/node_modules/sprintf-js/package.json | 35 + .../sprintf-js/src/angular-sprintf.js | 24 + .../node_modules/sprintf-js/src/sprintf.js | 231 + Scripts/node_modules/streamx/README.md | 3 + Scripts/node_modules/streamx/index.js | 80 +- Scripts/node_modules/streamx/package.json | 11 +- Scripts/node_modules/tar-stream/headers.js | 4 +- Scripts/node_modules/tar-stream/package.json | 2 +- Scripts/node_modules/universalify/README.md | 4 +- Scripts/node_modules/universalify/index.js | 23 +- .../node_modules/universalify/package.json | 12 +- .../node_modules/urlpattern-polyfill/LICENSE | 0 .../urlpattern-polyfill/README.md | 0 .../urlpattern-polyfill/dist/index.d.ts | 0 .../urlpattern-polyfill/dist/types.d.ts | 0 .../urlpattern-polyfill/dist/urlpattern.cjs | 2 +- .../urlpattern-polyfill/dist/urlpattern.js | 2 +- .../urlpattern-polyfill/index.cjs | 0 .../node_modules/urlpattern-polyfill/index.js | 0 .../urlpattern-polyfill/package.json | 2 +- Scripts/package-lock.json | 309 +- Scripts/package.json | 3 +- Todos.md | 12 + 1107 files changed, 76526 insertions(+), 8934 deletions(-) rename Scripts/node_modules/{fs-extra => .fs-extra-eVFARebK}/CHANGELOG.md (100%) create mode 100644 Scripts/node_modules/asynckit/LICENSE create mode 100644 Scripts/node_modules/asynckit/README.md create mode 100644 Scripts/node_modules/asynckit/bench.js create mode 100644 Scripts/node_modules/asynckit/index.js create mode 100644 Scripts/node_modules/asynckit/lib/abort.js create mode 100644 Scripts/node_modules/asynckit/lib/async.js create mode 100644 Scripts/node_modules/asynckit/lib/defer.js create mode 100644 Scripts/node_modules/asynckit/lib/iterate.js create mode 100644 Scripts/node_modules/asynckit/lib/readable_asynckit.js create mode 100644 Scripts/node_modules/asynckit/lib/readable_parallel.js create mode 100644 Scripts/node_modules/asynckit/lib/readable_serial.js create mode 100644 Scripts/node_modules/asynckit/lib/readable_serial_ordered.js create mode 100644 Scripts/node_modules/asynckit/lib/state.js create mode 100644 Scripts/node_modules/asynckit/lib/streamify.js create mode 100644 Scripts/node_modules/asynckit/lib/terminator.js create mode 100644 Scripts/node_modules/asynckit/package.json create mode 100644 Scripts/node_modules/asynckit/parallel.js create mode 100644 Scripts/node_modules/asynckit/serial.js create mode 100644 Scripts/node_modules/asynckit/serialOrdered.js create mode 100644 Scripts/node_modules/asynckit/stream.js create mode 100644 Scripts/node_modules/axios/CHANGELOG.md create mode 100644 Scripts/node_modules/axios/LICENSE create mode 100644 Scripts/node_modules/axios/MIGRATION_GUIDE.md create mode 100644 Scripts/node_modules/axios/README.md create mode 100644 Scripts/node_modules/axios/SECURITY.md create mode 100644 Scripts/node_modules/axios/dist/axios.js create mode 100644 Scripts/node_modules/axios/dist/axios.js.map create mode 100644 Scripts/node_modules/axios/dist/axios.min.js create mode 100644 Scripts/node_modules/axios/dist/axios.min.js.map create mode 100644 Scripts/node_modules/axios/dist/browser/axios.cjs create mode 100644 Scripts/node_modules/axios/dist/browser/axios.cjs.map create mode 100644 Scripts/node_modules/axios/dist/esm/axios.js create mode 100644 Scripts/node_modules/axios/dist/esm/axios.js.map create mode 100644 Scripts/node_modules/axios/dist/esm/axios.min.js create mode 100644 Scripts/node_modules/axios/dist/esm/axios.min.js.map create mode 100644 Scripts/node_modules/axios/dist/node/axios.cjs create mode 100644 Scripts/node_modules/axios/dist/node/axios.cjs.map create mode 100644 Scripts/node_modules/axios/index.d.cts create mode 100644 Scripts/node_modules/axios/index.d.ts create mode 100644 Scripts/node_modules/axios/index.js create mode 100644 Scripts/node_modules/axios/lib/adapters/README.md create mode 100644 Scripts/node_modules/axios/lib/adapters/adapters.js create mode 100755 Scripts/node_modules/axios/lib/adapters/http.js create mode 100644 Scripts/node_modules/axios/lib/adapters/xhr.js create mode 100644 Scripts/node_modules/axios/lib/axios.js create mode 100644 Scripts/node_modules/axios/lib/cancel/CancelToken.js create mode 100644 Scripts/node_modules/axios/lib/cancel/CanceledError.js create mode 100644 Scripts/node_modules/axios/lib/cancel/isCancel.js create mode 100644 Scripts/node_modules/axios/lib/core/Axios.js create mode 100644 Scripts/node_modules/axios/lib/core/AxiosError.js create mode 100644 Scripts/node_modules/axios/lib/core/AxiosHeaders.js create mode 100644 Scripts/node_modules/axios/lib/core/InterceptorManager.js create mode 100644 Scripts/node_modules/axios/lib/core/README.md create mode 100644 Scripts/node_modules/axios/lib/core/buildFullPath.js create mode 100644 Scripts/node_modules/axios/lib/core/dispatchRequest.js create mode 100644 Scripts/node_modules/axios/lib/core/mergeConfig.js create mode 100644 Scripts/node_modules/axios/lib/core/settle.js create mode 100644 Scripts/node_modules/axios/lib/core/transformData.js create mode 100644 Scripts/node_modules/axios/lib/defaults/index.js create mode 100644 Scripts/node_modules/axios/lib/defaults/transitional.js create mode 100644 Scripts/node_modules/axios/lib/env/README.md create mode 100644 Scripts/node_modules/axios/lib/env/classes/FormData.js create mode 100644 Scripts/node_modules/axios/lib/env/data.js create mode 100644 Scripts/node_modules/axios/lib/helpers/AxiosTransformStream.js create mode 100644 Scripts/node_modules/axios/lib/helpers/AxiosURLSearchParams.js create mode 100644 Scripts/node_modules/axios/lib/helpers/HttpStatusCode.js create mode 100644 Scripts/node_modules/axios/lib/helpers/README.md create mode 100644 Scripts/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js create mode 100644 Scripts/node_modules/axios/lib/helpers/bind.js create mode 100644 Scripts/node_modules/axios/lib/helpers/buildURL.js create mode 100644 Scripts/node_modules/axios/lib/helpers/callbackify.js create mode 100644 Scripts/node_modules/axios/lib/helpers/combineURLs.js create mode 100644 Scripts/node_modules/axios/lib/helpers/cookies.js create mode 100644 Scripts/node_modules/axios/lib/helpers/deprecatedMethod.js create mode 100644 Scripts/node_modules/axios/lib/helpers/formDataToJSON.js create mode 100644 Scripts/node_modules/axios/lib/helpers/formDataToStream.js create mode 100644 Scripts/node_modules/axios/lib/helpers/fromDataURI.js create mode 100644 Scripts/node_modules/axios/lib/helpers/isAbsoluteURL.js create mode 100644 Scripts/node_modules/axios/lib/helpers/isAxiosError.js create mode 100644 Scripts/node_modules/axios/lib/helpers/isURLSameOrigin.js create mode 100644 Scripts/node_modules/axios/lib/helpers/null.js create mode 100644 Scripts/node_modules/axios/lib/helpers/parseHeaders.js create mode 100644 Scripts/node_modules/axios/lib/helpers/parseProtocol.js create mode 100644 Scripts/node_modules/axios/lib/helpers/readBlob.js create mode 100644 Scripts/node_modules/axios/lib/helpers/speedometer.js create mode 100644 Scripts/node_modules/axios/lib/helpers/spread.js create mode 100644 Scripts/node_modules/axios/lib/helpers/throttle.js create mode 100644 Scripts/node_modules/axios/lib/helpers/toFormData.js create mode 100644 Scripts/node_modules/axios/lib/helpers/toURLEncodedForm.js create mode 100644 Scripts/node_modules/axios/lib/helpers/validator.js create mode 100644 Scripts/node_modules/axios/lib/platform/browser/classes/Blob.js create mode 100644 Scripts/node_modules/axios/lib/platform/browser/classes/FormData.js create mode 100644 Scripts/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js create mode 100644 Scripts/node_modules/axios/lib/platform/browser/index.js create mode 100644 Scripts/node_modules/axios/lib/platform/common/utils.js create mode 100644 Scripts/node_modules/axios/lib/platform/index.js create mode 100644 Scripts/node_modules/axios/lib/platform/node/classes/FormData.js create mode 100644 Scripts/node_modules/axios/lib/platform/node/classes/URLSearchParams.js create mode 100644 Scripts/node_modules/axios/lib/platform/node/index.js create mode 100644 Scripts/node_modules/axios/lib/utils.js create mode 100644 Scripts/node_modules/axios/package.json create mode 100644 Scripts/node_modules/bare-events/LICENSE create mode 100644 Scripts/node_modules/bare-events/README.md create mode 100644 Scripts/node_modules/bare-events/index.js create mode 100644 Scripts/node_modules/bare-events/lib/errors.js create mode 100644 Scripts/node_modules/bare-events/package.json delete mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/EventManager.js.map delete mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/SubscriptionManager.js.map delete mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/events.js.map create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/permissions/PermissionsProcessor.d.ts create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/permissions/PermissionsProcessor.js create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/permissions/PermissionsProcessor.js.map create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/DedicatedWorkerRealm.d.ts create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/DedicatedWorkerRealm.js create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/DedicatedWorkerRealm.js.map create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/SharedId.d.ts create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/SharedId.js create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/SharedId.js.map create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/WindowRealm.d.ts create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/WindowRealm.js create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/WindowRealm.js.map rename Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/{events => session}/EventManager.d.ts (88%) rename Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/{events => session}/EventManager.js (100%) create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/EventManager.js.map rename Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/{events => session}/SubscriptionManager.d.ts (82%) rename Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/{events => session}/SubscriptionManager.js (100%) create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SubscriptionManager.js.map rename Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/{events => session}/events.d.ts (100%) rename Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/{events => session}/events.js (100%) create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/events.js.map create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/storage/StorageProcessor.d.ts create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/storage/StorageProcessor.js create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/storage/StorageProcessor.js.map create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.d.ts create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.js create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.js.map rename Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/{ => generated}/webdriver-bidi.d.ts (83%) rename Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/{ => generated}/webdriver-bidi.js (89%) create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.js.map delete mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/webdriver-bidi.js.map create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.d.ts create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js.map rename Scripts/node_modules/chromium-bidi/lib/cjs/protocol/{ => generated}/webdriver-bidi.d.ts (90%) rename Scripts/node_modules/chromium-bidi/lib/cjs/protocol/{ => generated}/webdriver-bidi.js (90%) create mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js.map delete mode 100644 Scripts/node_modules/chromium-bidi/lib/cjs/protocol/webdriver-bidi.js.map create mode 100644 Scripts/node_modules/combined-stream/License create mode 100644 Scripts/node_modules/combined-stream/Readme.md create mode 100644 Scripts/node_modules/combined-stream/lib/combined_stream.js create mode 100644 Scripts/node_modules/combined-stream/package.json create mode 100644 Scripts/node_modules/combined-stream/yarn.lock create mode 100644 Scripts/node_modules/cosmiconfig/dist/cacheWrapper.d.ts create mode 100644 Scripts/node_modules/cosmiconfig/dist/cacheWrapper.d.ts.map create mode 100644 Scripts/node_modules/cosmiconfig/dist/cacheWrapper.js create mode 100644 Scripts/node_modules/cosmiconfig/dist/cacheWrapper.js.map create mode 100644 Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts create mode 100644 Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts.map create mode 100644 Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.js create mode 100644 Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.js.map create mode 100644 Scripts/node_modules/cosmiconfig/dist/defaults.d.ts create mode 100644 Scripts/node_modules/cosmiconfig/dist/defaults.d.ts.map create mode 100644 Scripts/node_modules/cosmiconfig/dist/defaults.js create mode 100644 Scripts/node_modules/cosmiconfig/dist/defaults.js.map create mode 100644 Scripts/node_modules/cosmiconfig/dist/getDirectory.d.ts create mode 100644 Scripts/node_modules/cosmiconfig/dist/getDirectory.d.ts.map create mode 100644 Scripts/node_modules/cosmiconfig/dist/getDirectory.js create mode 100644 Scripts/node_modules/cosmiconfig/dist/getDirectory.js.map create mode 100644 Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts create mode 100644 Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts.map create mode 100644 Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.js create mode 100644 Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.js.map create mode 100644 Scripts/node_modules/cosmiconfig/dist/merge.d.ts create mode 100644 Scripts/node_modules/cosmiconfig/dist/merge.d.ts.map create mode 100644 Scripts/node_modules/cosmiconfig/dist/merge.js create mode 100644 Scripts/node_modules/cosmiconfig/dist/merge.js.map create mode 100644 Scripts/node_modules/cosmiconfig/dist/readFile.d.ts create mode 100644 Scripts/node_modules/cosmiconfig/dist/readFile.d.ts.map create mode 100644 Scripts/node_modules/cosmiconfig/dist/readFile.js create mode 100644 Scripts/node_modules/cosmiconfig/dist/readFile.js.map create mode 100644 Scripts/node_modules/data-uri-to-buffer/dist/common.d.ts create mode 100644 Scripts/node_modules/data-uri-to-buffer/dist/common.d.ts.map create mode 100644 Scripts/node_modules/data-uri-to-buffer/dist/common.js create mode 100644 Scripts/node_modules/data-uri-to-buffer/dist/common.js.map create mode 100644 Scripts/node_modules/data-uri-to-buffer/dist/node.d.ts create mode 100644 Scripts/node_modules/data-uri-to-buffer/dist/node.d.ts.map create mode 100644 Scripts/node_modules/data-uri-to-buffer/dist/node.js create mode 100644 Scripts/node_modules/data-uri-to-buffer/dist/node.js.map create mode 100644 Scripts/node_modules/delayed-stream/.npmignore create mode 100644 Scripts/node_modules/delayed-stream/License create mode 100644 Scripts/node_modules/delayed-stream/Makefile create mode 100644 Scripts/node_modules/delayed-stream/Readme.md create mode 100644 Scripts/node_modules/delayed-stream/lib/delayed_stream.js create mode 100644 Scripts/node_modules/delayed-stream/package.json create mode 100644 Scripts/node_modules/env-paths/index.d.ts create mode 100644 Scripts/node_modules/env-paths/index.js rename Scripts/node_modules/{path-type => env-paths}/license (100%) create mode 100644 Scripts/node_modules/env-paths/package.json create mode 100644 Scripts/node_modules/env-paths/readme.md create mode 100644 Scripts/node_modules/follow-redirects/LICENSE create mode 100644 Scripts/node_modules/follow-redirects/README.md create mode 100644 Scripts/node_modules/follow-redirects/debug.js create mode 100644 Scripts/node_modules/follow-redirects/http.js create mode 100644 Scripts/node_modules/follow-redirects/https.js create mode 100644 Scripts/node_modules/follow-redirects/index.js create mode 100644 Scripts/node_modules/follow-redirects/package.json create mode 100644 Scripts/node_modules/form-data/License create mode 100644 Scripts/node_modules/form-data/README.md.bak create mode 100644 Scripts/node_modules/form-data/Readme.md create mode 100644 Scripts/node_modules/form-data/index.d.ts create mode 100644 Scripts/node_modules/form-data/lib/browser.js create mode 100644 Scripts/node_modules/form-data/lib/form_data.js create mode 100644 Scripts/node_modules/form-data/lib/populate.js create mode 100644 Scripts/node_modules/form-data/package.json delete mode 100644 Scripts/node_modules/fs-extra/lib/copy-sync/index.js rename Scripts/node_modules/fs-extra/lib/{copy-sync => copy}/copy-sync.js (64%) create mode 100644 Scripts/node_modules/fs-extra/lib/esm.mjs create mode 100644 Scripts/node_modules/fs-extra/lib/mkdirs/make-dir.js delete mode 100644 Scripts/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js delete mode 100644 Scripts/node_modules/fs-extra/lib/mkdirs/mkdirs.js create mode 100644 Scripts/node_modules/fs-extra/lib/mkdirs/utils.js delete mode 100644 Scripts/node_modules/fs-extra/lib/mkdirs/win32.js delete mode 100644 Scripts/node_modules/fs-extra/lib/move-sync/index.js rename Scripts/node_modules/fs-extra/lib/{move-sync => move}/move-sync.js (62%) create mode 100644 Scripts/node_modules/fs-extra/lib/output-file/index.js delete mode 100644 Scripts/node_modules/fs-extra/lib/output/index.js delete mode 100644 Scripts/node_modules/fs-extra/lib/remove/rimraf.js delete mode 100644 Scripts/node_modules/fs-extra/lib/util/buffer.js create mode 100644 Scripts/node_modules/https-proxy-agent/LICENSE create mode 100644 Scripts/node_modules/ip-address/LICENSE create mode 100644 Scripts/node_modules/ip-address/README.md create mode 100644 Scripts/node_modules/ip-address/dist/address-error.d.ts create mode 100644 Scripts/node_modules/ip-address/dist/address-error.d.ts.map create mode 100644 Scripts/node_modules/ip-address/dist/address-error.js create mode 100644 Scripts/node_modules/ip-address/dist/address-error.js.map create mode 100644 Scripts/node_modules/ip-address/dist/common.d.ts create mode 100644 Scripts/node_modules/ip-address/dist/common.d.ts.map create mode 100644 Scripts/node_modules/ip-address/dist/common.js create mode 100644 Scripts/node_modules/ip-address/dist/common.js.map create mode 100644 Scripts/node_modules/ip-address/dist/ip-address.d.ts create mode 100644 Scripts/node_modules/ip-address/dist/ip-address.d.ts.map create mode 100644 Scripts/node_modules/ip-address/dist/ip-address.js create mode 100644 Scripts/node_modules/ip-address/dist/ip-address.js.map create mode 100644 Scripts/node_modules/ip-address/dist/ipv4.d.ts create mode 100644 Scripts/node_modules/ip-address/dist/ipv4.d.ts.map create mode 100644 Scripts/node_modules/ip-address/dist/ipv4.js create mode 100644 Scripts/node_modules/ip-address/dist/ipv4.js.map create mode 100644 Scripts/node_modules/ip-address/dist/ipv6.d.ts create mode 100644 Scripts/node_modules/ip-address/dist/ipv6.d.ts.map create mode 100644 Scripts/node_modules/ip-address/dist/ipv6.js create mode 100644 Scripts/node_modules/ip-address/dist/ipv6.js.map create mode 100644 Scripts/node_modules/ip-address/dist/v4/constants.d.ts create mode 100644 Scripts/node_modules/ip-address/dist/v4/constants.d.ts.map create mode 100644 Scripts/node_modules/ip-address/dist/v4/constants.js create mode 100644 Scripts/node_modules/ip-address/dist/v4/constants.js.map create mode 100644 Scripts/node_modules/ip-address/dist/v6/constants.d.ts create mode 100644 Scripts/node_modules/ip-address/dist/v6/constants.d.ts.map create mode 100644 Scripts/node_modules/ip-address/dist/v6/constants.js create mode 100644 Scripts/node_modules/ip-address/dist/v6/constants.js.map create mode 100644 Scripts/node_modules/ip-address/dist/v6/helpers.d.ts create mode 100644 Scripts/node_modules/ip-address/dist/v6/helpers.d.ts.map create mode 100644 Scripts/node_modules/ip-address/dist/v6/helpers.js create mode 100644 Scripts/node_modules/ip-address/dist/v6/helpers.js.map create mode 100644 Scripts/node_modules/ip-address/dist/v6/regular-expressions.d.ts create mode 100644 Scripts/node_modules/ip-address/dist/v6/regular-expressions.d.ts.map create mode 100644 Scripts/node_modules/ip-address/dist/v6/regular-expressions.js create mode 100644 Scripts/node_modules/ip-address/dist/v6/regular-expressions.js.map create mode 100644 Scripts/node_modules/ip-address/package.json create mode 100644 Scripts/node_modules/ip-address/src/address-error.ts create mode 100644 Scripts/node_modules/ip-address/src/common.ts create mode 100644 Scripts/node_modules/ip-address/src/ip-address.ts create mode 100644 Scripts/node_modules/ip-address/src/ipv4.ts create mode 100644 Scripts/node_modules/ip-address/src/ipv6.ts create mode 100644 Scripts/node_modules/ip-address/src/v4/constants.ts create mode 100644 Scripts/node_modules/ip-address/src/v6/constants.ts create mode 100644 Scripts/node_modules/ip-address/src/v6/helpers.ts create mode 100644 Scripts/node_modules/ip-address/src/v6/regular-expressions.ts delete mode 100644 Scripts/node_modules/ip/README.md delete mode 100644 Scripts/node_modules/ip/lib/ip.js delete mode 100644 Scripts/node_modules/ip/package.json create mode 100644 Scripts/node_modules/jsbn/.npmignore create mode 100644 Scripts/node_modules/jsbn/CHANGELOG.md create mode 100644 Scripts/node_modules/jsbn/LICENSE create mode 100644 Scripts/node_modules/jsbn/README.md create mode 100644 Scripts/node_modules/jsbn/example.html create mode 100644 Scripts/node_modules/jsbn/example.js create mode 100644 Scripts/node_modules/jsbn/index.js create mode 100644 Scripts/node_modules/jsbn/package.json create mode 100644 Scripts/node_modules/jsbn/test/es6-import.js create mode 100644 Scripts/node_modules/jsonfile/utils.js create mode 100644 Scripts/node_modules/mime-db/HISTORY.md create mode 100644 Scripts/node_modules/mime-db/LICENSE create mode 100644 Scripts/node_modules/mime-db/README.md create mode 100644 Scripts/node_modules/mime-db/db.json create mode 100644 Scripts/node_modules/mime-db/index.js create mode 100644 Scripts/node_modules/mime-db/package.json create mode 100644 Scripts/node_modules/mime-types/HISTORY.md create mode 100644 Scripts/node_modules/mime-types/LICENSE create mode 100644 Scripts/node_modules/mime-types/README.md create mode 100644 Scripts/node_modules/mime-types/index.js create mode 100644 Scripts/node_modules/mime-types/package.json create mode 100644 Scripts/node_modules/pac-resolver/LICENSE create mode 100644 Scripts/node_modules/pac-resolver/dist/ip.d.ts create mode 100644 Scripts/node_modules/pac-resolver/dist/ip.d.ts.map create mode 100644 Scripts/node_modules/pac-resolver/dist/ip.js create mode 100644 Scripts/node_modules/pac-resolver/dist/ip.js.map delete mode 100644 Scripts/node_modules/path-type/index.d.ts delete mode 100644 Scripts/node_modules/path-type/index.js delete mode 100644 Scripts/node_modules/path-type/package.json delete mode 100644 Scripts/node_modules/path-type/readme.md create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Connection.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Connection.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Connection.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Connection.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Realm.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Realm.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Realm.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Realm.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserPrompt.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserPrompt.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserPrompt.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserPrompt.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/utils.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/utils.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/utils.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/utils.js.map delete mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.d.ts delete mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.d.ts.map delete mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.js delete mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.js.map delete mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.d.ts delete mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.d.ts.map delete mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.js delete mode 100644 Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.js.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.d.ts create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.d.ts.map create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js create mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js.map delete mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.d.ts delete mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.d.ts.map delete mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.js delete mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.js.map delete mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.d.ts delete mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.d.ts.map delete mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.js delete mode 100644 Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.js.map create mode 100644 Scripts/node_modules/puppeteer-core/src/bidi/core/Browser.ts create mode 100644 Scripts/node_modules/puppeteer-core/src/bidi/core/BrowsingContext.ts create mode 100644 Scripts/node_modules/puppeteer-core/src/bidi/core/Connection.ts create mode 100644 Scripts/node_modules/puppeteer-core/src/bidi/core/Navigation.ts create mode 100644 Scripts/node_modules/puppeteer-core/src/bidi/core/Realm.ts create mode 100644 Scripts/node_modules/puppeteer-core/src/bidi/core/Request.ts create mode 100644 Scripts/node_modules/puppeteer-core/src/bidi/core/Session.ts create mode 100644 Scripts/node_modules/puppeteer-core/src/bidi/core/UserContext.ts create mode 100644 Scripts/node_modules/puppeteer-core/src/bidi/core/UserPrompt.ts create mode 100644 Scripts/node_modules/puppeteer-core/src/bidi/core/core.ts create mode 100644 Scripts/node_modules/puppeteer-core/src/cdp/utils.ts delete mode 100644 Scripts/node_modules/puppeteer-core/src/common/bidi/Browser.ts delete mode 100644 Scripts/node_modules/puppeteer-core/src/util/DebuggableDeferred.ts delete mode 100644 Scripts/node_modules/socks/node_modules/ip/README.md delete mode 100644 Scripts/node_modules/socks/node_modules/ip/lib/ip.js delete mode 100644 Scripts/node_modules/socks/node_modules/ip/package.json create mode 100644 Scripts/node_modules/sprintf-js/CONTRIBUTORS.md create mode 100644 Scripts/node_modules/sprintf-js/LICENSE create mode 100644 Scripts/node_modules/sprintf-js/README.md create mode 100644 Scripts/node_modules/sprintf-js/dist/.gitattributes create mode 100644 Scripts/node_modules/sprintf-js/dist/angular-sprintf.min.js create mode 100644 Scripts/node_modules/sprintf-js/dist/angular-sprintf.min.js.map create mode 100644 Scripts/node_modules/sprintf-js/dist/sprintf.min.js create mode 100644 Scripts/node_modules/sprintf-js/dist/sprintf.min.js.map create mode 100644 Scripts/node_modules/sprintf-js/package.json create mode 100644 Scripts/node_modules/sprintf-js/src/angular-sprintf.js create mode 100644 Scripts/node_modules/sprintf-js/src/sprintf.js mode change 100644 => 100755 Scripts/node_modules/urlpattern-polyfill/LICENSE mode change 100644 => 100755 Scripts/node_modules/urlpattern-polyfill/README.md mode change 100644 => 100755 Scripts/node_modules/urlpattern-polyfill/dist/index.d.ts mode change 100644 => 100755 Scripts/node_modules/urlpattern-polyfill/dist/types.d.ts mode change 100644 => 100755 Scripts/node_modules/urlpattern-polyfill/dist/urlpattern.cjs mode change 100644 => 100755 Scripts/node_modules/urlpattern-polyfill/dist/urlpattern.js mode change 100644 => 100755 Scripts/node_modules/urlpattern-polyfill/index.cjs mode change 100644 => 100755 Scripts/node_modules/urlpattern-polyfill/index.js mode change 100644 => 100755 Scripts/node_modules/urlpattern-polyfill/package.json diff --git a/Custom_Templates/customer_templates/Headway/_training_session_cta.html.liquid b/Custom_Templates/customer_templates/Headway/_training_session_cta.html.liquid index 56715919..45e18a37 100644 --- a/Custom_Templates/customer_templates/Headway/_training_session_cta.html.liquid +++ b/Custom_Templates/customer_templates/Headway/_training_session_cta.html.liquid @@ -20,7 +20,7 @@ {% t .no_seats %} {% endif %} -{% if training_event.id == "31702002-9537-4c29-aac8-775120c6c655" %} +{% if training_event.title contains "Clinical Office Hours" %}
diff --git a/Custom_Templates/customer_templates/Zenjob/_courses_catalog.html.liquid b/Custom_Templates/customer_templates/Zenjob/_courses_catalog.html.liquid index 33f2fd70..3f7533d8 100644 --- a/Custom_Templates/customer_templates/Zenjob/_courses_catalog.html.liquid +++ b/Custom_Templates/customer_templates/Zenjob/_courses_catalog.html.liquid @@ -22,9 +22,9 @@ {% assign progress_status_de = "abgeschlossen" %} {% assign progress_status_en = "completed" %} {% endif %} - - {% comment %} {% if course.id == "5df1bb20-3412-4e59-806d-7e7b38b9f5fc" %} {% endif %} {% endcomment %} - {% comment %} {% if current_person.properties.german_test_delay == false %} {% endif %} {% endcomment %} +english test = e47f738f-7a4c-4ff9-9bfc-c51be90e3d81 + {% if course.id == "5df1bb20-3412-4e59-806d-7e7b38b9f5fc" %} + {% if current_person.properties.german_test_delay == false %}
{% include "cards_course" with course %}
diff --git a/CustomerNotes/G2/G2.md b/CustomerNotes/G2/G2.md index 1144c883..f0cf5f56 100644 --- a/CustomerNotes/G2/G2.md +++ b/CustomerNotes/G2/G2.md @@ -525,3 +525,19 @@ Needs it ASAP. * Completion numbers * Course Progress Completion * "Repeats" people that have taken more than 1 course *or* people that have repeated courses. + +## 02/28/2024 + +* Feb 1 laid off a bunch of CSMs and BDR. +* Erin said: "It was shocking what good people they got rid of." +* She is still creating a thought leadership piece for the academy. +* Using People Leader board to get testimonials and info for other marketing materials. +* G2 for marketers course on hold. +* Based on the data I helped her get in early Feb, they did not hit their engagement goal. +* Engagement goal is 20% - Q4: 11%, Q3: 17% +* The 20% is specifically for the academy --> this is based on account not individual. +* QoQ ~95% engagement across all marketing efforts. +* Any interaction from an Enterprise account in G2U is an MQL. +FEAT: Help with reports on monthly basis so they aren't surprised by engagement metrics at EOQ. +* Scaled CS model is being rolled out. +FEAT: Empty groups with people for account-based analytics. diff --git a/CustomerNotes/Walmart/Walmart.md b/CustomerNotes/Walmart/Walmart.md index f21889ef..ba2baeff 100644 --- a/CustomerNotes/Walmart/Walmart.md +++ b/CustomerNotes/Walmart/Walmart.md @@ -965,3 +965,52 @@ What does Travis want to see improve when we pull these numbers next quarter? Sounds like they want us to be more of a CMS. They would like more scrollable content and less clickable content. + +## 02/28/2024 + +### Design Needs + +* Change the accordion styles to add more padding +* Info/Warning/Tip boxes +* Single activity with headers and links that auto-scroll the driver to that heading. + +Travis Design Questions: + +* Remove Course Overview page if you came from the app (context aware, etc) +* For anyone coming from context-aware is it all-or-nothing for skipping the page, or do they have that micro control? +* Context: conversion rates from resource overview into first activity differ by about 20% for on vs off trip. +* Two main items: Resource Overview Skip & Single Activity Courses. + +* It could be the view and design overall (Krystal). Scrolling vs clicking. + +* Resource to clone & merge into a single activity resource? Any with multiple rich text activities. FAQ with accordions in an activity. + +WARN: Videos may not work well with this single activity view. + +Chat from Jessica: +```text +I’m currently conducting an audit of our content and really starting to understand what our resources look like. I think this will be a good opportunity to suggest design changes/ask about functionalities. I will come with more ideas next week. +Also - I tried joining by phone and still can’t unmute myself. Weird. No problem though, I will document my thoughts for next time. +``` + +Deep Links to learning paths from Walmart: This or next quarter. +Last item for Krystal: Is there a way to automatically surface what is/isn't popular and switch it out into the featured/popular section? + +### Content Sync - Jessica able to join + +* First time using NP without help was "pretty intuitive". +* Doing an audit of the content. +* What is she looking for? --> + * Lots of requests and not enough support + * Articles/Courses are "Frankenstein" and weren't fully proofed. + * Need to look strategically at the info and content. + * Just needs to be cleaned and combined. Shortened. + +* "Did Rafi have follow up conversations about that tool?" --> + * It is an AI tool that helps with the search. Quick reply, FAQs, etc + * They want better and more succinct search functionality. + * She saw a Storyline <> ChatGPT presentation + +* Can a person "speak" to a KC bot? +* How does KC bot search work? +* Articulate can layer audio over text diff --git a/Scripts/Auto_Scrape_Screenshots/Customer feedback b/Scripts/Auto_Scrape_Screenshots/Customer feedback index 96f89bff8a270f8a64aec16a28cade6064e4be17..30efb2d1c1b4748423fe6ee40b3d45c8bc1dd167 100644 GIT binary patch literal 33688 zcmdRVRa9J2uw^$SxO>n9LU0QjJZNy2V2uO|?hZ|G55e7n1ShyR!4lkEo8a!!$lT0Z z@9)i8Gi%;_%m)j&>&iKG>g=k$t4@TfvMe?RIR*#>!j}6Wr49mtLqQ!d0 zBBfpZOI*^IRlo0UwU}YO=!~olTIlvw*&M2>SfBo`w7Zep=#l;&Kvw^GSnKbzGl{V? zPhh2u3q|pCqW%hrc<4zcM**3e!-ic?=ibu~BqgGM+L|v`?A!b>1p0Y)sDndGm66GX zWrcfiN90+ak;I|}&WS^r>BQzaX_Q81ZEbwV=^|XcVP?GHdU|}M5*Q~72G^H)Ece}u z1Zq8jMJc_mXRIB91VO8@sG+NvQ|`4M);(7c&fb$IJ2T^63YZPsdEPS)L+>fN_5##4mJ>vJ)7CMc7#cd;e^7zy7fy7q(*)*jxqmSI z`;r{z{kEm?W0d#@)!ubua*Q%uaFoYf{9T6D8JbSM6%t&9gGVmC7(0)FhT7nnn<=2TJ-g zq~SdzwMI~mo_OaB?2qo6-cR99dHRvJ1l&+Foxj@){9rx)XGm?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rCyvqOw9zlwF?6c$ zU$P@{B=(88}r0Zm!p zVb^m0Wl{n!(0V@v&ff*!OnyI@w)F09j+{qx$B7dh$1`V3eebe)joyGvEIKkrB@9h{ z?*H{oT6>APNQwU8h%Nm~KjxN;HmRw$?`INt9W=L{)W4(@y5)Su=FGA);~CO>t7_3( zB0ta1Z0`JxBqHf&8+S6{$0d1=E$?Sye@IG=C{ke-B@i;3^x!)~pFW8s0<-bpF^>M< f5B@h7VZ-h3zs15{QMVeC@E`fI{H3%DHy-^D|29Z0 diff --git a/Scripts/node_modules/fs-extra/CHANGELOG.md b/Scripts/node_modules/.fs-extra-eVFARebK/CHANGELOG.md similarity index 100% rename from Scripts/node_modules/fs-extra/CHANGELOG.md rename to Scripts/node_modules/.fs-extra-eVFARebK/CHANGELOG.md diff --git a/Scripts/node_modules/.package-lock.json b/Scripts/node_modules/.package-lock.json index cecae184..4e7df3b1 100644 --- a/Scripts/node_modules/.package-lock.json +++ b/Scripts/node_modules/.package-lock.json @@ -62,9 +62,9 @@ "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==" }, "node_modules/@types/node": { - "version": "20.10.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.6.tgz", - "integrity": "sha512-Vac8H+NlRNNlAmDfGUP7b5h/KA+AtWIzuXy0E6OyP8f1tCLYAtPvKRRDJjAPqhpCb0t6U2j7/xqAuLEebW2kiw==", + "version": "20.11.22", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.22.tgz", + "integrity": "sha512-/G+IxWxma6V3E+pqK1tSl2Fo1kl41pK1yeCyDsgkF9WlVAme4j5ISYM2zR11bgLFJGLN5sVK40T4RJNuiZbEjA==", "optional": true, "dependencies": { "undici-types": "~5.26.4" @@ -125,10 +125,31 @@ "node": ">=4" } }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/axios": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", + "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", + "dependencies": { + "follow-redirects": "^1.15.4", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/b4a": { - "version": "1.6.4", - "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz", - "integrity": "sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==" + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.6.tgz", + "integrity": "sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==" + }, + "node_modules/bare-events": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.2.0.tgz", + "integrity": "sha512-Yyyqff4PIFfSuthCZqLlPISTWHmnQxoPuAvkmgzsJEmG3CesdIv6Xweayl0JkCZJSB2yYIdJyEz97tpxNhgjbg==", + "optional": true }, "node_modules/base64-js": { "version": "1.5.1", @@ -150,9 +171,9 @@ ] }, "node_modules/basic-ftp": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.4.tgz", - "integrity": "sha512-8PzkB0arJFV4jJWSGOYR+OEic6aeKMu/osRhBULN6RY0ykby6LKhbmuQ5ublvaas5BOwboah5D87nrHyuh8PPA==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.5.tgz", + "integrity": "sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==", "engines": { "node": ">=10.0.0" } @@ -210,12 +231,12 @@ } }, "node_modules/chromium-bidi": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.5.2.tgz", - "integrity": "sha512-PbVOSddxgKyj+JByqavWMNqWPCoCaT6XK5Z1EFe168sxnB/BM51LnZEPXSbFcFAJv/+u2B4XNTs9uXxy4GW3cQ==", + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.5.8.tgz", + "integrity": "sha512-blqh+1cEQbHBKmok3rVJkBlBxt9beKBgOsxbFgs7UJcoVbbeZ+K7+6liAsjgpc8l1Xd55cQUy14fXZdGSb4zIw==", "dependencies": { "mitt": "3.0.1", - "urlpattern-polyfill": "9.0.0" + "urlpattern-polyfill": "10.0.0" }, "peerDependencies": { "devtools-protocol": "*" @@ -247,15 +268,26 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" }, - "node_modules/cosmiconfig": { - "version": "8.3.6", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", - "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/cosmiconfig": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.0.tgz", + "integrity": "sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==", + "dependencies": { + "env-paths": "^2.2.1", "import-fresh": "^3.3.0", "js-yaml": "^4.1.0", - "parse-json": "^5.2.0", - "path-type": "^4.0.0" + "parse-json": "^5.2.0" }, "engines": { "node": ">=14" @@ -281,9 +313,9 @@ } }, "node_modules/data-uri-to-buffer": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.1.tgz", - "integrity": "sha512-MZd3VlchQkp8rdend6vrx7MmVDJzSNTBvghvKjirLkD+WTChA3KUf0jkE68Q4UyctNqI11zZO9/x2Yx+ub5Cvg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz", + "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==", "engines": { "node": ">= 14" } @@ -317,10 +349,18 @@ "node": ">= 14" } }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/devtools-protocol": { - "version": "0.0.1203626", - "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1203626.tgz", - "integrity": "sha512-nEzHZteIUZfGCZtTiS1fRpC8UZmsfD1SiyPvaUNvS13dvKf666OAm8YTi0+Ca3n1nLEyu49Cy4+dPWpaHFJk9g==" + "version": "0.0.1232444", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1232444.tgz", + "integrity": "sha512-pM27vqEfxSxRkTMnF+XCmxSEb6duO5R+t8A9DEEJgy4Wz2RVanje2mmj99B6A3zv2r/qGfYlOvYznUhuokizmg==" }, "node_modules/emoji-regex": { "version": "8.0.0", @@ -335,6 +375,14 @@ "once": "^1.4.0" } }, + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "engines": { + "node": ">=6" + } + }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -344,9 +392,9 @@ } }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", "engines": { "node": ">=6" } @@ -439,17 +487,49 @@ "pend": "~1.2.0" } }, - "node_modules/fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "node_modules/follow-redirects": { + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" }, "engines": { - "node": ">=6 <7 || >=8" + "node": ">= 6" + } + }, + "node_modules/fs-extra": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" } }, "node_modules/get-caller-file": { @@ -475,14 +555,14 @@ } }, "node_modules/get-uri": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.2.tgz", - "integrity": "sha512-5KLucCJobh8vBY1K07EFV4+cPZH3mrV9YeAruUseCQKHB58SGjjT2l9/eA9LD082IiuMjSlFJEcdJ27TXvbZNw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.3.tgz", + "integrity": "sha512-BzUrJBS9EcUb4cFol8r4W3v1cPsSyajLSthNkz5BxbpDcHN5tIrM10E2eNvfnvBn3DaT3DUgx0OpsBKkaOpanw==", "dependencies": { "basic-ftp": "^5.0.2", - "data-uri-to-buffer": "^6.0.0", + "data-uri-to-buffer": "^6.0.2", "debug": "^4.3.4", - "fs-extra": "^8.1.0" + "fs-extra": "^11.2.0" }, "engines": { "node": ">= 14" @@ -502,9 +582,9 @@ } }, "node_modules/http-proxy-agent": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz", - "integrity": "sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", "dependencies": { "agent-base": "^7.1.0", "debug": "^4.3.4" @@ -514,9 +594,9 @@ } }, "node_modules/https-proxy-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz", - "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.4.tgz", + "integrity": "sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==", "dependencies": { "agent-base": "^7.0.2", "debug": "4" @@ -559,10 +639,17 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ip": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", - "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==" + "node_modules/ip-address": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", + "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", + "dependencies": { + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" + }, + "engines": { + "node": ">= 12" + } }, "node_modules/is-arrayish": { "version": "0.2.1", @@ -593,15 +680,23 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/jsbn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", + "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==" + }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" }, "node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dependencies": { + "universalify": "^2.0.0" + }, "optionalDependencies": { "graceful-fs": "^4.1.6" } @@ -619,6 +714,25 @@ "node": ">=12" } }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/mitt": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", @@ -688,12 +802,11 @@ } }, "node_modules/pac-resolver": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.0.tgz", - "integrity": "sha512-Fd9lT9vJbHYRACT8OhCbZBbxr6KRSawSovFpy8nDGshaK99S/EBhVIHp9+crhxrsZOuvLpgL1n23iyPg6Rl2hg==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz", + "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==", "dependencies": { "degenerator": "^5.0.0", - "ip": "^1.1.8", "netmask": "^2.0.2" }, "engines": { @@ -728,14 +841,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "engines": { - "node": ">=8" - } - }, "node_modules/pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", @@ -782,14 +887,14 @@ } }, "node_modules/puppeteer": { - "version": "21.7.0", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.7.0.tgz", - "integrity": "sha512-Yy+UUy0b9siJezbhHO/heYUoZQUwyqDK1yOQgblTt0l97tspvDVFkcW9toBlnSvSfkDmMI3Dx9cZL6R8bDArHA==", + "version": "21.11.0", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.11.0.tgz", + "integrity": "sha512-9jTHuYe22TD3sNxy0nEIzC7ZrlRnDgeX3xPkbS7PnbdwYjl2o/z/YuCrRBwezdKpbTDTJ4VqIggzNyeRcKq3cg==", "hasInstallScript": true, "dependencies": { "@puppeteer/browsers": "1.9.1", - "cosmiconfig": "8.3.6", - "puppeteer-core": "21.7.0" + "cosmiconfig": "9.0.0", + "puppeteer-core": "21.11.0" }, "bin": { "puppeteer": "lib/esm/puppeteer/node/cli.js" @@ -799,15 +904,15 @@ } }, "node_modules/puppeteer-core": { - "version": "21.7.0", - "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.7.0.tgz", - "integrity": "sha512-elPYPozrgiM3phSy7VDUJCVWQ07SPnOm78fpSaaSNFoQx5sur/MqhTSro9Wz8lOEjqCykGC6WRkwxDgmqcy1dQ==", + "version": "21.11.0", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.11.0.tgz", + "integrity": "sha512-ArbnyA3U5SGHokEvkfWjW+O8hOxV1RSJxOgriX/3A4xZRqixt9ZFHD0yPgZQF05Qj0oAqi8H/7stDorjoHY90Q==", "dependencies": { "@puppeteer/browsers": "1.9.1", - "chromium-bidi": "0.5.2", + "chromium-bidi": "0.5.8", "cross-fetch": "4.0.0", "debug": "4.3.4", - "devtools-protocol": "0.0.1203626", + "devtools-protocol": "0.0.1232444", "ws": "8.16.0" }, "engines": { @@ -845,15 +950,15 @@ } }, "node_modules/socks": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", - "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.1.tgz", + "integrity": "sha512-B6w7tkwNid7ToxjZ08rQMT8M9BJAf8DKx8Ft4NivzH0zBUfd6jldGcisJn/RLgxcX3FPNDdNQCUEMMT79b+oCQ==", "dependencies": { - "ip": "^2.0.0", + "ip-address": "^9.0.5", "smart-buffer": "^4.2.0" }, "engines": { - "node": ">= 10.13.0", + "node": ">= 10.0.0", "npm": ">= 3.0.0" } }, @@ -870,11 +975,6 @@ "node": ">= 14" } }, - "node_modules/socks/node_modules/ip": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", - "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" - }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -884,13 +984,21 @@ "node": ">=0.10.0" } }, + "node_modules/sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==" + }, "node_modules/streamx": { - "version": "2.15.6", - "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.6.tgz", - "integrity": "sha512-q+vQL4AAz+FdfT137VF69Cc/APqUbxy+MDOImRrMvchJpigHj9GksgDU2LYbO9rx7RX6osWgxJB2WxhYv4SZAw==", + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.16.1.tgz", + "integrity": "sha512-m9QYj6WygWyWa3H1YY69amr4nVgy61xfjys7xO7kviL5rfIEc2naf+ewFiOA+aEJD7y0JO3h2GoiUv4TDwEGzQ==", "dependencies": { "fast-fifo": "^1.1.0", "queue-tick": "^1.0.1" + }, + "optionalDependencies": { + "bare-events": "^2.2.0" } }, "node_modules/string-width": { @@ -939,9 +1047,9 @@ } }, "node_modules/tar-stream": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.6.tgz", - "integrity": "sha512-B/UyjYwPpMBv+PaFSWAmtYjwdrlEaZQEhMIBFNC5oEG8lpiW8XjcSdmEaClj28ArfKScKHs2nshz3k2le6crsg==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", + "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", "dependencies": { "b4a": "^1.6.4", "fast-fifo": "^1.2.0", @@ -979,17 +1087,17 @@ "optional": true }, "node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "engines": { - "node": ">= 4.0.0" + "node": ">= 10.0.0" } }, "node_modules/urlpattern-polyfill": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-9.0.0.tgz", - "integrity": "sha512-WHN8KDQblxd32odxeIgo83rdVDE2bvdkb86it7bMhYZwWKJz0+O0RK/eZiHYnM+zgt/U7hAHOlCQGfjjvSkw2g==" + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.0.0.tgz", + "integrity": "sha512-H/A06tKD7sS1O1X2SshBVeA5FLycRpjqiBeqGKmBwBDBy28EnRjORxTNe269KSSr5un5qyWi1iL61wLxpd+ZOg==" }, "node_modules/webidl-conversions": { "version": "3.0.1", diff --git a/Scripts/node_modules/@types/node/README.md b/Scripts/node_modules/@types/node/README.md index 4781a1c6..02f8e158 100644 --- a/Scripts/node_modules/@types/node/README.md +++ b/Scripts/node_modules/@types/node/README.md @@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/). Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node. ### Additional Details - * Last updated: Sat, 30 Dec 2023 00:22:50 GMT + * Last updated: Wed, 28 Feb 2024 17:35:47 GMT * Dependencies: [undici-types](https://npmjs.com/package/undici-types) # Credits diff --git a/Scripts/node_modules/@types/node/buffer.d.ts b/Scripts/node_modules/@types/node/buffer.d.ts index 1ee5c013..255e2688 100644 --- a/Scripts/node_modules/@types/node/buffer.d.ts +++ b/Scripts/node_modules/@types/node/buffer.d.ts @@ -128,9 +128,10 @@ declare module "buffer" { */ export interface BlobOptions { /** - * @default 'utf8' + * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts + * will be converted to the platform native line-ending as specified by `require('node:os').EOL`. */ - encoding?: BufferEncoding | undefined; + endings?: "transparent" | "native"; /** * The Blob content-type. The intent is for `type` to convey * the MIME media type of the data, however no validation of the type format @@ -162,7 +163,7 @@ declare module "buffer" { * * String sources are also copied into the `Blob`. */ - constructor(sources: Array, options?: BlobOptions); + constructor(sources: Array, options?: BlobOptions); /** * Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of * the `Blob` data. @@ -415,7 +416,7 @@ declare module "buffer" { * @return The number of bytes contained within `string`. */ byteLength( - string: string | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer, + string: string | Buffer | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer, encoding?: BufferEncoding, ): number; /** @@ -470,7 +471,7 @@ declare module "buffer" { * ``` * @since v19.8.0 * @param view The {TypedArray} to copy. - * @param [offset=': 0'] The starting offset within `view`. + * @param [offset=0] The starting offset within `view`. * @param [length=view.length - offset] The number of elements from `view` to copy. */ copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer; @@ -563,8 +564,8 @@ declare module "buffer" { * A `TypeError` will be thrown if `size` is not a number. * * The `Buffer` module pre-allocates an internal `Buffer` instance of - * size `Buffer.poolSize` that is used as a pool for the fast allocation of new`Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`, - * and `Buffer.concat()` only when `size` is less than or equal to`Buffer.poolSize >> 1` (floor of `Buffer.poolSize` divided by two). + * size `Buffer.poolSize` that is used as a pool for the fast allocation of new `Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`, + * and `Buffer.concat()` only when `size` is less than `Buffer.poolSize >>> 1` (floor of `Buffer.poolSize` divided by two). * * Use of this pre-allocated internal memory pool is a key difference between * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`. diff --git a/Scripts/node_modules/@types/node/crypto.d.ts b/Scripts/node_modules/@types/node/crypto.d.ts index e847507f..718697bc 100644 --- a/Scripts/node_modules/@types/node/crypto.d.ts +++ b/Scripts/node_modules/@types/node/crypto.d.ts @@ -100,6 +100,8 @@ declare module "crypto" { const OPENSSL_VERSION_NUMBER: number; /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */ const SSL_OP_ALL: number; + /** Instructs OpenSSL to allow a non-[EC]DHE-based key exchange mode for TLS v1.3 */ + const SSL_OP_ALLOW_NO_DHE_KEX: number; /** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number; /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ @@ -116,15 +118,29 @@ declare module "crypto" { const SSL_OP_LEGACY_SERVER_CONNECT: number; /** Instructs OpenSSL to disable support for SSL/TLS compression. */ const SSL_OP_NO_COMPRESSION: number; + /** Instructs OpenSSL to disable encrypt-then-MAC. */ + const SSL_OP_NO_ENCRYPT_THEN_MAC: number; const SSL_OP_NO_QUERY_MTU: number; + /** Instructs OpenSSL to disable renegotiation. */ + const SSL_OP_NO_RENEGOTIATION: number; /** Instructs OpenSSL to always start a new session when performing renegotiation. */ const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number; + /** Instructs OpenSSL to turn off SSL v2 */ const SSL_OP_NO_SSLv2: number; + /** Instructs OpenSSL to turn off SSL v3 */ const SSL_OP_NO_SSLv3: number; + /** Instructs OpenSSL to disable use of RFC4507bis tickets. */ const SSL_OP_NO_TICKET: number; + /** Instructs OpenSSL to turn off TLS v1 */ const SSL_OP_NO_TLSv1: number; + /** Instructs OpenSSL to turn off TLS v1.1 */ const SSL_OP_NO_TLSv1_1: number; + /** Instructs OpenSSL to turn off TLS v1.2 */ const SSL_OP_NO_TLSv1_2: number; + /** Instructs OpenSSL to turn off TLS v1.3 */ + const SSL_OP_NO_TLSv1_3: number; + /** Instructs OpenSSL server to prioritize ChaCha20-Poly1305 when the client does. This option has no effect if `SSL_OP_CIPHER_SERVER_PREFERENCE` is not enabled. */ + const SSL_OP_PRIORITIZE_CHACHA: number; /** Instructs OpenSSL to disable version rollback attack detection. */ const SSL_OP_TLS_ROLLBACK_BUG: number; const ENGINE_METHOD_RSA: number; @@ -363,7 +379,7 @@ declare module "crypto" { * @since v13.1.0 * @param options `stream.transform` options */ - copy(options?: stream.TransformOptions): Hash; + copy(options?: HashOptions): Hash; /** * Updates the hash content with the given `data`, the encoding of which * is given in `inputEncoding`. @@ -638,9 +654,10 @@ declare module "crypto" { export(options?: KeyExportOptions<"der">): Buffer; export(options?: JwkKeyExportOptions): JsonWebKey; /** - * Returns `true` or `false` depending on whether the keys have exactly the same type, value, and parameters. - * This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack). - * @since v16.15.0 + * Returns `true` or `false` depending on whether the keys have exactly the same + * type, value, and parameters. This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack). + * @since v17.7.0, v16.15.0 + * @param otherKeyObject A `KeyObject` with which to compare `keyObject`. */ equals(otherKeyObject: KeyObject): boolean; /** @@ -1903,7 +1920,7 @@ declare module "crypto" { * Return a random integer `n` such that `min <= n < max`. This * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias). * - * The range (`max - min`) must be less than 248. `min` and `max` must + * The range (`max - min`) must be less than 2**48. `min` and `max` must * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger). * * If the `callback` function is not provided, the random integer is @@ -4456,6 +4473,14 @@ declare module "crypto" { ): Promise; } } + + global { + var crypto: typeof globalThis extends { + crypto: infer T; + onmessage: any; + } ? T + : webcrypto.Crypto; + } } declare module "node:crypto" { export * from "crypto"; diff --git a/Scripts/node_modules/@types/node/dgram.d.ts b/Scripts/node_modules/@types/node/dgram.d.ts index 692e547f..0b86ae73 100644 --- a/Scripts/node_modules/@types/node/dgram.d.ts +++ b/Scripts/node_modules/@types/node/dgram.d.ts @@ -227,6 +227,16 @@ declare module "dgram" { * @return the `SO_SNDBUF` socket send buffer size in bytes. */ getSendBufferSize(): number; + /** + * @since v18.8.0, v16.19.0 + * @return Number of bytes queued for sending. + */ + getSendQueueSize(): number; + /** + * @since v18.8.0, v16.19.0 + * @return Number of send requests currently in the queue awaiting to be processed. + */ + getSendQueueCount(): number; /** * By default, binding a socket will cause it to block the Node.js process from * exiting as long as the socket is open. The `socket.unref()` method can be used diff --git a/Scripts/node_modules/@types/node/diagnostics_channel.d.ts b/Scripts/node_modules/@types/node/diagnostics_channel.d.ts index b02f5917..cd4bd71b 100644 --- a/Scripts/node_modules/@types/node/diagnostics_channel.d.ts +++ b/Scripts/node_modules/@types/node/diagnostics_channel.d.ts @@ -23,6 +23,7 @@ * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/diagnostics_channel.js) */ declare module "diagnostics_channel" { + import { AsyncLocalStorage } from "node:async_hooks"; /** * Check if there are active subscribers to the named channel. This is helpful if * the message you want to send might be expensive to prepare. @@ -95,6 +96,36 @@ declare module "diagnostics_channel" { * @return `true` if the handler was found, `false` otherwise. */ function unsubscribe(name: string | symbol, onMessage: ChannelListener): boolean; + /** + * Creates a `TracingChannel` wrapper for the given `TracingChannel Channels`. If a name is given, the corresponding tracing + * channels will be created in the form of `tracing:${name}:${eventType}` where`eventType` corresponds to the types of `TracingChannel Channels`. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channelsByName = diagnostics_channel.tracingChannel('my-channel'); + * + * // or... + * + * const channelsByCollection = diagnostics_channel.tracingChannel({ + * start: diagnostics_channel.channel('tracing:my-channel:start'), + * end: diagnostics_channel.channel('tracing:my-channel:end'), + * asyncStart: diagnostics_channel.channel('tracing:my-channel:asyncStart'), + * asyncEnd: diagnostics_channel.channel('tracing:my-channel:asyncEnd'), + * error: diagnostics_channel.channel('tracing:my-channel:error'), + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param nameOrChannels Channel name or object containing all the `TracingChannel Channels` + * @return Collection of channels to trace with + */ + function tracingChannel< + StoreType = unknown, + ContextType extends object = StoreType extends object ? StoreType : object, + >( + nameOrChannels: string | TracingChannelCollection, + ): TracingChannel; /** * The class `Channel` represents an individual named channel within the data * pipeline. It is used to track subscribers and to publish messages when there @@ -104,7 +135,7 @@ declare module "diagnostics_channel" { * with `new Channel(name)` is not supported. * @since v15.1.0, v14.17.0 */ - class Channel { + class Channel { readonly name: string | symbol; /** * Check if there are active subscribers to this channel. This is helpful if @@ -184,6 +215,329 @@ declare module "diagnostics_channel" { * @return `true` if the handler was found, `false` otherwise. */ unsubscribe(onMessage: ChannelListener): void; + /** + * When `channel.runStores(context, ...)` is called, the given context data + * will be applied to any store bound to the channel. If the store has already been + * bound the previous `transform` function will be replaced with the new one. + * The `transform` function may be omitted to set the given context data as the + * context directly. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * import { AsyncLocalStorage } from 'node:async_hooks'; + * + * const store = new AsyncLocalStorage(); + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * channel.bindStore(store, (data) => { + * return { data }; + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param store The store to which to bind the context data + * @param transform Transform context data before setting the store context + */ + bindStore(store: AsyncLocalStorage, transform?: (context: ContextType) => StoreType): void; + /** + * Remove a message handler previously registered to this channel with `channel.bindStore(store)`. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * import { AsyncLocalStorage } from 'node:async_hooks'; + * + * const store = new AsyncLocalStorage(); + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * channel.bindStore(store); + * channel.unbindStore(store); + * ``` + * @since v19.9.0 + * @experimental + * @param store The store to unbind from the channel. + * @return `true` if the store was found, `false` otherwise. + */ + unbindStore(store: any): void; + /** + * Applies the given data to any AsyncLocalStorage instances bound to the channel + * for the duration of the given function, then publishes to the channel within + * the scope of that data is applied to the stores. + * + * If a transform function was given to `channel.bindStore(store)` it will be + * applied to transform the message data before it becomes the context value for + * the store. The prior storage context is accessible from within the transform + * function in cases where context linking is required. + * + * The context applied to the store should be accessible in any async code which + * continues from execution which began during the given function, however + * there are some situations in which `context loss` may occur. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * import { AsyncLocalStorage } from 'node:async_hooks'; + * + * const store = new AsyncLocalStorage(); + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * channel.bindStore(store, (message) => { + * const parent = store.getStore(); + * return new Span(message, parent); + * }); + * channel.runStores({ some: 'message' }, () => { + * store.getStore(); // Span({ some: 'message' }) + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param context Message to send to subscribers and bind to stores + * @param fn Handler to run within the entered storage context + * @param thisArg The receiver to be used for the function call. + * @param args Optional arguments to pass to the function. + */ + runStores(): void; + } + interface TracingChannelSubscribers { + start: (message: ContextType) => void; + end: ( + message: ContextType & { + error?: unknown; + result?: unknown; + }, + ) => void; + asyncStart: ( + message: ContextType & { + error?: unknown; + result?: unknown; + }, + ) => void; + asyncEnd: ( + message: ContextType & { + error?: unknown; + result?: unknown; + }, + ) => void; + error: ( + message: ContextType & { + error: unknown; + }, + ) => void; + } + interface TracingChannelCollection { + start: Channel; + end: Channel; + asyncStart: Channel; + asyncEnd: Channel; + error: Channel; + } + /** + * The class `TracingChannel` is a collection of `TracingChannel Channels` which + * together express a single traceable action. It is used to formalize and + * simplify the process of producing events for tracing application flow.{@link tracingChannel} is used to construct a`TracingChannel`. As with `Channel` it is recommended to create and reuse a + * single `TracingChannel` at the top-level of the file rather than creating them + * dynamically. + * @since v19.9.0 + * @experimental + */ + class TracingChannel implements TracingChannelCollection { + start: Channel; + end: Channel; + asyncStart: Channel; + asyncEnd: Channel; + error: Channel; + /** + * Helper to subscribe a collection of functions to the corresponding channels. + * This is the same as calling `channel.subscribe(onMessage)` on each channel + * individually. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * channels.subscribe({ + * start(message) { + * // Handle start message + * }, + * end(message) { + * // Handle end message + * }, + * asyncStart(message) { + * // Handle asyncStart message + * }, + * asyncEnd(message) { + * // Handle asyncEnd message + * }, + * error(message) { + * // Handle error message + * }, + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param subscribers Set of `TracingChannel Channels` subscribers + */ + subscribe(subscribers: TracingChannelSubscribers): void; + /** + * Helper to unsubscribe a collection of functions from the corresponding channels. + * This is the same as calling `channel.unsubscribe(onMessage)` on each channel + * individually. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * channels.unsubscribe({ + * start(message) { + * // Handle start message + * }, + * end(message) { + * // Handle end message + * }, + * asyncStart(message) { + * // Handle asyncStart message + * }, + * asyncEnd(message) { + * // Handle asyncEnd message + * }, + * error(message) { + * // Handle error message + * }, + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param subscribers Set of `TracingChannel Channels` subscribers + * @return `true` if all handlers were successfully unsubscribed, and `false` otherwise. + */ + unsubscribe(subscribers: TracingChannelSubscribers): void; + /** + * Trace a synchronous function call. This will always produce a `start event` and `end event` around the execution and may produce an `error event` if the given function throws an error. + * This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all + * events should have any bound stores set to match this trace context. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * channels.traceSync(() => { + * // Do something + * }, { + * some: 'thing', + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param fn Function to wrap a trace around + * @param context Shared object to correlate events through + * @param thisArg The receiver to be used for the function call + * @param args Optional arguments to pass to the function + * @return The return value of the given function + */ + traceSync( + fn: (this: ThisArg, ...args: Args) => any, + context?: ContextType, + thisArg?: ThisArg, + ...args: Args + ): void; + /** + * Trace a promise-returning function call. This will always produce a `start event` and `end event` around the synchronous portion of the + * function execution, and will produce an `asyncStart event` and `asyncEnd event` when a promise continuation is reached. It may also + * produce an `error event` if the given function throws an error or the + * returned promise rejects. This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all + * events should have any bound stores set to match this trace context. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * channels.tracePromise(async () => { + * // Do something + * }, { + * some: 'thing', + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param fn Promise-returning function to wrap a trace around + * @param context Shared object to correlate trace events through + * @param thisArg The receiver to be used for the function call + * @param args Optional arguments to pass to the function + * @return Chained from promise returned by the given function + */ + tracePromise( + fn: (this: ThisArg, ...args: Args) => Promise, + context?: ContextType, + thisArg?: ThisArg, + ...args: Args + ): void; + /** + * Trace a callback-receiving function call. This will always produce a `start event` and `end event` around the synchronous portion of the + * function execution, and will produce a `asyncStart event` and `asyncEnd event` around the callback execution. It may also produce an `error event` if the given function throws an error or + * the returned + * promise rejects. This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all + * events should have any bound stores set to match this trace context. + * + * The `position` will be -1 by default to indicate the final argument should + * be used as the callback. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * channels.traceCallback((arg1, callback) => { + * // Do something + * callback(null, 'result'); + * }, 1, { + * some: 'thing', + * }, thisArg, arg1, callback); + * ``` + * + * The callback will also be run with `channel.runStores(context, ...)` which + * enables context loss recovery in some cases. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * import { AsyncLocalStorage } from 'node:async_hooks'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * const myStore = new AsyncLocalStorage(); + * + * // The start channel sets the initial store data to something + * // and stores that store data value on the trace context object + * channels.start.bindStore(myStore, (data) => { + * const span = new Span(data); + * data.span = span; + * return span; + * }); + * + * // Then asyncStart can restore from that data it stored previously + * channels.asyncStart.bindStore(myStore, (data) => { + * return data.span; + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param fn callback using function to wrap a trace around + * @param position Zero-indexed argument position of expected callback + * @param context Shared object to correlate trace events through + * @param thisArg The receiver to be used for the function call + * @param args Optional arguments to pass to the function + * @return The return value of the given function + */ + traceCallback any>( + fn: Fn, + position: number | undefined, + context: ContextType | undefined, + thisArg: any, + ...args: Parameters + ): void; } } declare module "node:diagnostics_channel" { diff --git a/Scripts/node_modules/@types/node/events.d.ts b/Scripts/node_modules/@types/node/events.d.ts index 6ed47c53..87b3ba0b 100644 --- a/Scripts/node_modules/@types/node/events.d.ts +++ b/Scripts/node_modules/@types/node/events.d.ts @@ -92,7 +92,24 @@ declare module "events" { interface StaticEventEmitterOptions { signal?: AbortSignal | undefined; } - interface EventEmitter extends NodeJS.EventEmitter {} + interface EventEmitter = DefaultEventMap> extends NodeJS.EventEmitter {} + type EventMap = Record | DefaultEventMap; + type DefaultEventMap = [never]; + type AnyRest = [...args: any[]]; + type Args = T extends DefaultEventMap ? AnyRest : ( + K extends keyof T ? T[K] : never + ); + type Key = T extends DefaultEventMap ? string | symbol : K | keyof T; + type Key2 = T extends DefaultEventMap ? string | symbol : K & keyof T; + type Listener = T extends DefaultEventMap ? F : ( + K extends keyof T ? ( + T[K] extends unknown[] ? (...args: T[K]) => void : never + ) + : never + ); + type Listener1 = Listener void>; + type Listener2 = Listener; + /** * The `EventEmitter` class is defined and exposed by the `node:events` module: * @@ -106,10 +123,10 @@ declare module "events" { * It supports the following option: * @since v0.1.26 */ - class EventEmitter { + class EventEmitter = DefaultEventMap> { constructor(options?: EventEmitterOptions); - [EventEmitter.captureRejectionSymbol]?(error: Error, event: string, ...args: any[]): void; + [EventEmitter.captureRejectionSymbol]?(error: Error, event: Key, ...args: Args): void; /** * Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given @@ -536,13 +553,13 @@ declare module "events" { } global { namespace NodeJS { - interface EventEmitter { - [EventEmitter.captureRejectionSymbol]?(error: Error, event: string, ...args: any[]): void; + interface EventEmitter = DefaultEventMap> { + [EventEmitter.captureRejectionSymbol]?(error: Error, event: Key, ...args: Args): void; /** * Alias for `emitter.on(eventName, listener)`. * @since v0.1.26 */ - addListener(eventName: string | symbol, listener: (...args: any[]) => void): this; + addListener(eventName: Key, listener: Listener1): this; /** * Adds the `listener` function to the end of the listeners array for the * event named `eventName`. No checks are made to see if the `listener` has @@ -574,7 +591,7 @@ declare module "events" { * @param eventName The name of the event. * @param listener The callback function */ - on(eventName: string | symbol, listener: (...args: any[]) => void): this; + on(eventName: Key, listener: Listener1): this; /** * Adds a **one-time**`listener` function for the event named `eventName`. The * next time `eventName` is triggered, this listener is removed and then invoked. @@ -604,7 +621,7 @@ declare module "events" { * @param eventName The name of the event. * @param listener The callback function */ - once(eventName: string | symbol, listener: (...args: any[]) => void): this; + once(eventName: Key, listener: Listener1): this; /** * Removes the specified `listener` from the listener array for the event named`eventName`. * @@ -687,12 +704,12 @@ declare module "events" { * Returns a reference to the `EventEmitter`, so that calls can be chained. * @since v0.1.26 */ - removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this; + removeListener(eventName: Key, listener: Listener1): this; /** * Alias for `emitter.removeListener()`. * @since v10.0.0 */ - off(eventName: string | symbol, listener: (...args: any[]) => void): this; + off(eventName: Key, listener: Listener1): this; /** * Removes all listeners, or those of the specified `eventName`. * @@ -703,7 +720,7 @@ declare module "events" { * Returns a reference to the `EventEmitter`, so that calls can be chained. * @since v0.1.26 */ - removeAllListeners(event?: string | symbol): this; + removeAllListeners(event?: Key): this; /** * By default `EventEmitter`s will print a warning if more than `10` listeners are * added for a particular event. This is a useful default that helps finding @@ -732,7 +749,7 @@ declare module "events" { * ``` * @since v0.1.26 */ - listeners(eventName: string | symbol): Function[]; + listeners(eventName: Key): Array>; /** * Returns a copy of the array of listeners for the event named `eventName`, * including any wrappers (such as those created by `.once()`). @@ -763,7 +780,7 @@ declare module "events" { * ``` * @since v9.4.0 */ - rawListeners(eventName: string | symbol): Function[]; + rawListeners(eventName: Key): Array>; /** * Synchronously calls each of the listeners registered for the event named`eventName`, in the order they were registered, passing the supplied arguments * to each. @@ -804,7 +821,7 @@ declare module "events" { * ``` * @since v0.1.26 */ - emit(eventName: string | symbol, ...args: any[]): boolean; + emit(eventName: Key, ...args: Args): boolean; /** * Returns the number of listeners listening for the event named `eventName`. * If `listener` is provided, it will return how many times the listener is found @@ -813,7 +830,7 @@ declare module "events" { * @param eventName The name of the event being listened for * @param listener The event handler function */ - listenerCount(eventName: string | symbol, listener?: Function): number; + listenerCount(eventName: Key, listener?: Listener2): number; /** * Adds the `listener` function to the _beginning_ of the listeners array for the * event named `eventName`. No checks are made to see if the `listener` has @@ -831,7 +848,7 @@ declare module "events" { * @param eventName The name of the event. * @param listener The callback function */ - prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this; + prependListener(eventName: Key, listener: Listener1): this; /** * Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this * listener is removed, and then invoked. @@ -847,7 +864,7 @@ declare module "events" { * @param eventName The name of the event. * @param listener The callback function */ - prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(eventName: Key, listener: Listener1): this; /** * Returns an array listing the events for which the emitter has registered * listeners. The values in the array are strings or `Symbol`s. @@ -867,7 +884,7 @@ declare module "events" { * ``` * @since v6.0.0 */ - eventNames(): Array; + eventNames(): Array<(string | symbol) & Key2>; } } } diff --git a/Scripts/node_modules/@types/node/fs.d.ts b/Scripts/node_modules/@types/node/fs.d.ts index f98453a5..5cbca12f 100644 --- a/Scripts/node_modules/@types/node/fs.d.ts +++ b/Scripts/node_modules/@types/node/fs.d.ts @@ -281,7 +281,7 @@ declare module "fs" { * Asynchronously close the directory's underlying resource handle. * Subsequent reads will result in errors. * - * A promise is returned that will be resolved after the resource has been + * A promise is returned that will be fulfilled after the resource has been * closed. * @since v12.12.0 */ @@ -296,7 +296,7 @@ declare module "fs" { /** * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`. * - * A promise is returned that will be resolved with an `fs.Dirent`, or `null`if there are no more directory entries to read. + * A promise is returned that will be fulfilled with an `fs.Dirent`, or `null`if there are no more directory entries to read. * * Directory entries returned by this function are in no particular order as * provided by the operating system's underlying directory mechanisms. @@ -354,31 +354,51 @@ declare module "fs" { * @since v0.5.8 */ close(): void; + /** + * When called, requests that the Node.js event loop _not_ exit so long as the `fs.FSWatcher` is active. Calling `watcher.ref()` multiple times will have + * no effect. + * + * By default, all `fs.FSWatcher` objects are "ref'ed", making it normally + * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been + * called previously. + * @since v14.3.0, v12.20.0 + */ + ref(): this; + /** + * When called, the active `fs.FSWatcher` object will not require the Node.js + * event loop to remain active. If there is no other activity keeping the + * event loop running, the process may exit before the `fs.FSWatcher` object's + * callback is invoked. Calling `watcher.unref()` multiple times will have + * no effect. + * @since v14.3.0, v12.20.0 + */ + unref(): this; /** * events.EventEmitter * 1. change - * 2. error + * 2. close + * 3. error */ addListener(event: string, listener: (...args: any[]) => void): this; addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; - addListener(event: "error", listener: (error: Error) => void): this; addListener(event: "close", listener: () => void): this; + addListener(event: "error", listener: (error: Error) => void): this; on(event: string, listener: (...args: any[]) => void): this; on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; - on(event: "error", listener: (error: Error) => void): this; on(event: "close", listener: () => void): this; + on(event: "error", listener: (error: Error) => void): this; once(event: string, listener: (...args: any[]) => void): this; once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; - once(event: "error", listener: (error: Error) => void): this; once(event: "close", listener: () => void): this; + once(event: "error", listener: (error: Error) => void): this; prependListener(event: string, listener: (...args: any[]) => void): this; prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; - prependListener(event: "error", listener: (error: Error) => void): this; prependListener(event: "close", listener: () => void): this; + prependListener(event: "error", listener: (error: Error) => void): this; prependOnceListener(event: string, listener: (...args: any[]) => void): this; prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; - prependOnceListener(event: "error", listener: (error: Error) => void): this; prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "error", listener: (error: Error) => void): this; } /** * Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function. diff --git a/Scripts/node_modules/@types/node/http.d.ts b/Scripts/node_modules/@types/node/http.d.ts index 9b2c3c2c..710fe594 100644 --- a/Scripts/node_modules/@types/node/http.d.ts +++ b/Scripts/node_modules/@types/node/http.d.ts @@ -9,12 +9,12 @@ * * HTTP message headers are represented by an object like this: * - * ```js - * { 'content-length': '123', - * 'content-type': 'text/plain', - * 'connection': 'keep-alive', - * 'host': 'example.com', - * 'accept': '*' } + * ```json + * { "content-length": "123", + * "content-type": "text/plain", + * "connection": "keep-alive", + * "host": "example.com", + * "accept": "*" } * ``` * * Keys are lowercased. Values are not modified. @@ -1814,7 +1814,6 @@ declare module "http" { * * It is not necessary to use this method before passing headers to an HTTP request * or response. The HTTP module will automatically validate such headers. - * Examples: * * Example: * diff --git a/Scripts/node_modules/@types/node/module.d.ts b/Scripts/node_modules/@types/node/module.d.ts index 68d59c77..c38a9b80 100644 --- a/Scripts/node_modules/@types/node/module.d.ts +++ b/Scripts/node_modules/@types/node/module.d.ts @@ -276,6 +276,20 @@ declare module "module" { } global { interface ImportMeta { + /** + * The directory name of the current module. This is the same as the `path.dirname()` of the `import.meta.filename`. + * **Caveat:** only present on `file:` modules. + */ + dirname: string; + /** + * The full absolute path and filename of the current module, with symlinks resolved. + * This is the same as the `url.fileURLToPath()` of the `import.meta.url`. + * **Caveat:** only local modules support this property. Modules not using the `file:` protocol will not provide it. + */ + filename: string; + /** + * The absolute `file:` URL of the module. + */ url: string; /** * Provides a module-relative resolution function scoped to each module, returning diff --git a/Scripts/node_modules/@types/node/net.d.ts b/Scripts/node_modules/@types/node/net.d.ts index 70789e1b..c09b95d0 100644 --- a/Scripts/node_modules/@types/node/net.d.ts +++ b/Scripts/node_modules/@types/node/net.d.ts @@ -18,8 +18,8 @@ declare module "net" { import * as dns from "node:dns"; type LookupFunction = ( hostname: string, - options: dns.LookupAllOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: dns.LookupAddress[]) => void, + options: dns.LookupOptions, + callback: (err: NodeJS.ErrnoException | null, address: string | dns.LookupAddress[], family?: number) => void, ) => void; interface AddressInfo { address: string; @@ -628,7 +628,7 @@ declare module "net" { * Indicates whether or not the server is listening for connections. * @since v5.7.0 */ - listening: boolean; + readonly listening: boolean; /** * events.EventEmitter * 1. close @@ -736,6 +736,11 @@ declare module "net" { */ check(address: SocketAddress): boolean; check(address: string, type?: IPVersion): boolean; + /** + * The list of rules added to the blocklist. + * @since v15.0.0, v14.18.0 + */ + rules: readonly string[]; } interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { timeout?: number | undefined; diff --git a/Scripts/node_modules/@types/node/package.json b/Scripts/node_modules/@types/node/package.json index 95ee74e6..0b83b25c 100644 --- a/Scripts/node_modules/@types/node/package.json +++ b/Scripts/node_modules/@types/node/package.json @@ -1,6 +1,6 @@ { "name": "@types/node", - "version": "20.10.6", + "version": "20.11.22", "description": "TypeScript definitions for node", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", "license": "MIT", @@ -224,7 +224,6 @@ "dependencies": { "undici-types": "~5.26.4" }, - "typesPublisherContentHash": "edd38cd583269d6ceac07b7b194e2371ed03d1b0eb7a4eda73af46445920fcec", - "typeScriptVersion": "4.6", - "nonNpm": true + "typesPublisherContentHash": "22bca6c00c1ff5a6ee266c15857a090c7538d380d2b735f404ffa90cc67128dd", + "typeScriptVersion": "4.6" } \ No newline at end of file diff --git a/Scripts/node_modules/@types/node/perf_hooks.d.ts b/Scripts/node_modules/@types/node/perf_hooks.d.ts index b369bb69..c0ce852a 100644 --- a/Scripts/node_modules/@types/node/perf_hooks.d.ts +++ b/Scripts/node_modules/@types/node/perf_hooks.d.ts @@ -314,13 +314,15 @@ declare module "perf_hooks" { * * name: 'test', * * entryType: 'mark', * * startTime: 81.465639, - * * duration: 0 + * * duration: 0, + * * detail: null * * }, * * PerformanceEntry { * * name: 'meow', * * entryType: 'mark', * * startTime: 81.860064, - * * duration: 0 + * * duration: 0, + * * detail: null * * } * * ] * @@ -355,7 +357,8 @@ declare module "perf_hooks" { * * name: 'meow', * * entryType: 'mark', * * startTime: 98.545991, - * * duration: 0 + * * duration: 0, + * * detail: null * * } * * ] * @@ -368,7 +371,8 @@ declare module "perf_hooks" { * * name: 'test', * * entryType: 'mark', * * startTime: 63.518931, - * * duration: 0 + * * duration: 0, + * * detail: null * * } * * ] * @@ -404,13 +408,15 @@ declare module "perf_hooks" { * * name: 'test', * * entryType: 'mark', * * startTime: 55.897834, - * * duration: 0 + * * duration: 0, + * * detail: null * * }, * * PerformanceEntry { * * name: 'meow', * * entryType: 'mark', * * startTime: 56.350146, - * * duration: 0 + * * duration: 0, + * * detail: null * * } * * ] * diff --git a/Scripts/node_modules/@types/node/process.d.ts b/Scripts/node_modules/@types/node/process.d.ts index 0e274737..d22308f6 100644 --- a/Scripts/node_modules/@types/node/process.d.ts +++ b/Scripts/node_modules/@types/node/process.d.ts @@ -903,9 +903,14 @@ declare module "process" { */ readonly sourceMapsEnabled: boolean; /** - * This function enables or disables the Source Map v3 support for stack traces. - * It provides same features as launching Node.js process with commandline options --enable-source-maps. - * @since v16.6.0 + * This function enables or disables the [Source Map v3](https://sourcemaps.info/spec.html) support for + * stack traces. + * + * It provides same features as launching Node.js process with commandline options`--enable-source-maps`. + * + * Only source maps in JavaScript files that are loaded after source maps has been + * enabled will be parsed and loaded. + * @since v16.6.0, v14.18.0 * @experimental */ setSourceMapsEnabled(value: boolean): void; @@ -1311,6 +1316,23 @@ declare module "process" { */ uptime(): number; hrtime: HRTime; + /** + * If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel. + * If no IPC channel exists, this property is undefined. + * @since v7.1.0 + */ + channel?: { + /** + * This method makes the IPC channel keep the event loop of the process running if .unref() has been called before. + * @since v7.1.0 + */ + ref(): void; + /** + * This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open. + * @since v7.1.0 + */ + unref(): void; + }; /** * If Node.js is spawned with an IPC channel, the `process.send()` method can be * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object. diff --git a/Scripts/node_modules/@types/node/querystring.d.ts b/Scripts/node_modules/@types/node/querystring.d.ts index 54ecc967..b36ea2c1 100644 --- a/Scripts/node_modules/@types/node/querystring.d.ts +++ b/Scripts/node_modules/@types/node/querystring.d.ts @@ -74,10 +74,10 @@ declare module "querystring" { * * For example, the query string `'foo=bar&abc=xyz&abc=123'` is parsed into: * - * ```js + * ```json * { - * foo: 'bar', - * abc: ['xyz', '123'] + * "foo": "bar", + * "abc": ["xyz", "123"] * } * ``` * diff --git a/Scripts/node_modules/@types/node/stream/web.d.ts b/Scripts/node_modules/@types/node/stream/web.d.ts index 0d916137..361594df 100644 --- a/Scripts/node_modules/@types/node/stream/web.d.ts +++ b/Scripts/node_modules/@types/node/stream/web.d.ts @@ -342,7 +342,23 @@ declare module "stream/web" { } const TextDecoderStream: { prototype: TextDecoderStream; - new(label?: string, options?: TextDecoderOptions): TextDecoderStream; + new(encoding?: string, options?: TextDecoderOptions): TextDecoderStream; + }; + interface CompressionStream { + readonly readable: ReadableStream; + readonly writable: WritableStream; + } + const CompressionStream: { + prototype: CompressionStream; + new(format: string): CompressionStream; + }; + interface DecompressionStream { + readonly readable: ReadableStream; + readonly writable: WritableStream; + } + const DecompressionStream: { + prototype: DecompressionStream; + new(format: string): DecompressionStream; }; } declare module "node:stream/web" { diff --git a/Scripts/node_modules/@types/node/string_decoder.d.ts b/Scripts/node_modules/@types/node/string_decoder.d.ts index b8691e1f..cd76bf86 100644 --- a/Scripts/node_modules/@types/node/string_decoder.d.ts +++ b/Scripts/node_modules/@types/node/string_decoder.d.ts @@ -48,7 +48,7 @@ declare module "string_decoder" { * @since v0.1.99 * @param buffer The bytes to decode. */ - write(buffer: Buffer): string; + write(buffer: string | Buffer | NodeJS.ArrayBufferView): string; /** * Returns any remaining input stored in the internal buffer as a string. Bytes * representing incomplete UTF-8 and UTF-16 characters will be replaced with @@ -59,7 +59,7 @@ declare module "string_decoder" { * @since v0.9.3 * @param buffer The bytes to decode. */ - end(buffer?: Buffer): string; + end(buffer?: string | Buffer | NodeJS.ArrayBufferView): string; } } declare module "node:string_decoder" { diff --git a/Scripts/node_modules/@types/node/test.d.ts b/Scripts/node_modules/@types/node/test.d.ts index 44b6a964..149c9e0b 100644 --- a/Scripts/node_modules/@types/node/test.d.ts +++ b/Scripts/node_modules/@types/node/test.d.ts @@ -82,6 +82,11 @@ declare module "node:test" { import { Readable } from "node:stream"; import { AsyncResource } from "node:async_hooks"; /** + * **Note:**`shard` is used to horizontally parallelize test running across + * machines or processes, ideal for large-scale executions across varied + * environments. It's incompatible with `watch` mode, tailored for rapid + * code iteration by automatically rerunning tests on file changes. + * * ```js * import { tap } from 'node:test/reporters'; * import { run } from 'node:test'; @@ -1007,12 +1012,20 @@ declare module "node:test" { */ restore(): void; } - type Timer = "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout"; + type Timer = "setInterval" | "setTimeout" | "setImmediate" | "Date"; + + interface MockTimersOptions { + apis: Timer[]; + now?: number | Date; + } /** * Mocking timers is a technique commonly used in software testing to simulate and * control the behavior of timers, such as `setInterval` and `setTimeout`, * without actually waiting for the specified time intervals. * + * The MockTimers API also allows for mocking of the `Date` constructor and + * `setImmediate`/`clearImmediate` functions. + * * The `MockTracker` provides a top-level `timers` export * which is a `MockTimers` instance. * @since v20.4.0 @@ -1025,24 +1038,66 @@ declare module "node:test" { * **Note:** When you enable mocking for a specific timer, its associated * clear function will also be implicitly mocked. * - * Example usage: + * **Note:** Mocking `Date` will affect the behavior of the mocked timers + * as they use the same internal clock. + * + * Example usage without setting initial time: * * ```js * import { mock } from 'node:test'; - * mock.timers.enable(['setInterval']); + * mock.timers.enable({ apis: ['setInterval', 'Date'], now: 1234 }); * ``` * - * The above example enables mocking for the `setInterval` timer and - * implicitly mocks the `clearInterval` function. Only the `setInterval`and `clearInterval` functions from `node:timers`,`node:timers/promises`, and`globalThis` will be mocked. + * The above example enables mocking for the `Date` constructor, `setInterval` timer and + * implicitly mocks the `clearInterval` function. Only the `Date` constructor from `globalThis`, + * `setInterval` and `clearInterval` functions from `node:timers`,`node:timers/promises`, and `globalThis` will be mocked. + * + * Example usage with initial time set + * + * ```js + * import { mock } from 'node:test'; + * mock.timers.enable({ apis: ['Date'], now: 1000 }); + * ``` + * + * Example usage with initial Date object as time set + * + * ```js + * import { mock } from 'node:test'; + * mock.timers.enable({ apis: ['Date'], now: new Date() }); + * ``` * * Alternatively, if you call `mock.timers.enable()` without any parameters: * - * All timers (`'setInterval'`, `'clearInterval'`, `'setTimeout'`, and `'clearTimeout'`) - * will be mocked. The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout`functions from `node:timers`, `node:timers/promises`, + * All timers (`'setInterval'`, `'clearInterval'`, `'Date'`, `'setImmediate'`, `'clearImmediate'`, `'setTimeout'`, and `'clearTimeout'`) + * will be mocked. + * + * The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout` functions from `node:timers`, `node:timers/promises`, * and `globalThis` will be mocked. + * The `Date` constructor from `globalThis` will be mocked. + * + * If there is no initial epoch set, the initial date will be based on 0 in the Unix epoch. This is `January 1st, 1970, 00:00:00 UTC`. You can set an initial date by passing a now property to the `.enable()` method. This value will be used as the initial date for the mocked Date object. It can either be a positive integer, or another Date object. * @since v20.4.0 */ - enable(timers?: Timer[]): void; + enable(options?: MockTimersOptions): void; + /** + * You can use the `.setTime()` method to manually move the mocked date to another time. This method only accepts a positive integer. + * Note: This method will execute any mocked timers that are in the past from the new time. + * In the below example we are setting a new time for the mocked date. + * ```js + * import assert from 'node:assert'; + * import { test } from 'node:test'; + * test('sets the time of a date object', (context) => { + * // Optionally choose what to mock + * context.mock.timers.enable({ apis: ['Date'], now: 100 }); + * assert.strictEqual(Date.now(), 100); + * // Advance in time will also advance the date + * context.mock.timers.setTime(1000); + * context.mock.timers.tick(200); + * assert.strictEqual(Date.now(), 1200); + * }); + * ``` + */ + setTime(time: number): void; /** * This function restores the default behavior of all mocks that were previously * created by this `MockTimers` instance and disassociates the mocks @@ -1076,7 +1131,7 @@ declare module "node:test" { * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { * const fn = context.mock.fn(); * - * context.mock.timers.enable(['setTimeout']); + * context.mock.timers.enable({ apis: ['setTimeout'] }); * * setTimeout(fn, 9999); * @@ -1097,7 +1152,7 @@ declare module "node:test" { * * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { * const fn = context.mock.fn(); - * context.mock.timers.enable(['setTimeout']); + * context.mock.timers.enable({ apis: ['setTimeout'] }); * const nineSecs = 9000; * setTimeout(fn, nineSecs); * @@ -1109,11 +1164,35 @@ declare module "node:test" { * assert.strictEqual(fn.mock.callCount(), 1); * }); * ``` + * + * Advancing time using `.tick` will also advance the time for any `Date` object + * created after the mock was enabled (if `Date` was also set to be mocked). + * + * ```js + * import assert from 'node:assert'; + * import { test } from 'node:test'; + * + * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { + * const fn = context.mock.fn(); + * + * context.mock.timers.enable({ apis: ['setTimeout', 'Date'] }); + * setTimeout(fn, 9999); + * + * assert.strictEqual(fn.mock.callCount(), 0); + * assert.strictEqual(Date.now(), 0); + * + * // Advance in time + * context.mock.timers.tick(9999); + * assert.strictEqual(fn.mock.callCount(), 1); + * assert.strictEqual(Date.now(), 9999); + * }); + * ``` * @since v20.4.0 */ tick(milliseconds: number): void; /** - * Triggers all pending mocked timers immediately. + * Triggers all pending mocked timers immediately. If the `Date` object is also + * mocked, it will also advance the `Date` object to the furthest timer's time. * * The example below triggers all pending timers immediately, * causing them to execute without any delay. @@ -1123,7 +1202,7 @@ declare module "node:test" { * import { test } from 'node:test'; * * test('runAll functions following the given order', (context) => { - * context.mock.timers.enable(['setTimeout']); + * context.mock.timers.enable({ apis: ['setTimeout', 'Date'] }); * const results = []; * setTimeout(() => results.push(1), 9999); * @@ -1135,8 +1214,9 @@ declare module "node:test" { * assert.deepStrictEqual(results, []); * * context.mock.timers.runAll(); - * * assert.deepStrictEqual(results, [3, 2, 1]); + * // The Date object is also advanced to the furthest timer's time + * assert.strictEqual(Date.now(), 9999); * }); * ``` * @@ -1343,7 +1423,7 @@ interface TestDequeue extends TestLocationInfo { * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/test/reporters.js) */ declare module "node:test/reporters" { - import { Transform } from "node:stream"; + import { Transform, TransformOptions } from "node:stream"; type TestEvent = | { type: "test:diagnostic"; data: DiagnosticData } @@ -1378,5 +1458,8 @@ declare module "node:test/reporters" { * The `junit` reporter outputs test results in a jUnit XML format */ function junit(source: TestEventGenerator): AsyncGenerator; - export { dot, junit, Spec as spec, tap, TestEvent }; + class Lcov extends Transform { + constructor(opts?: TransformOptions); + } + export { dot, junit, Lcov as lcov, Spec as spec, tap, TestEvent }; } diff --git a/Scripts/node_modules/@types/node/tls.d.ts b/Scripts/node_modules/@types/node/tls.d.ts index b289e841..9f6d6be9 100644 --- a/Scripts/node_modules/@types/node/tls.d.ts +++ b/Scripts/node_modules/@types/node/tls.d.ts @@ -220,7 +220,7 @@ declare module "tls" { /** * Construct a new tls.TLSSocket object from an existing TCP socket. */ - constructor(socket: net.Socket, options?: TLSSocketOptions); + constructor(socket: net.Socket | stream.Duplex, options?: TLSSocketOptions); /** * This property is `true` if the peer certificate was signed by one of the CAs * specified when creating the `tls.TLSSocket` instance, otherwise `false`. diff --git a/Scripts/node_modules/@types/node/ts4.8/buffer.d.ts b/Scripts/node_modules/@types/node/ts4.8/buffer.d.ts index 1ee5c013..255e2688 100644 --- a/Scripts/node_modules/@types/node/ts4.8/buffer.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/buffer.d.ts @@ -128,9 +128,10 @@ declare module "buffer" { */ export interface BlobOptions { /** - * @default 'utf8' + * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts + * will be converted to the platform native line-ending as specified by `require('node:os').EOL`. */ - encoding?: BufferEncoding | undefined; + endings?: "transparent" | "native"; /** * The Blob content-type. The intent is for `type` to convey * the MIME media type of the data, however no validation of the type format @@ -162,7 +163,7 @@ declare module "buffer" { * * String sources are also copied into the `Blob`. */ - constructor(sources: Array, options?: BlobOptions); + constructor(sources: Array, options?: BlobOptions); /** * Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of * the `Blob` data. @@ -415,7 +416,7 @@ declare module "buffer" { * @return The number of bytes contained within `string`. */ byteLength( - string: string | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer, + string: string | Buffer | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer, encoding?: BufferEncoding, ): number; /** @@ -470,7 +471,7 @@ declare module "buffer" { * ``` * @since v19.8.0 * @param view The {TypedArray} to copy. - * @param [offset=': 0'] The starting offset within `view`. + * @param [offset=0] The starting offset within `view`. * @param [length=view.length - offset] The number of elements from `view` to copy. */ copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer; @@ -563,8 +564,8 @@ declare module "buffer" { * A `TypeError` will be thrown if `size` is not a number. * * The `Buffer` module pre-allocates an internal `Buffer` instance of - * size `Buffer.poolSize` that is used as a pool for the fast allocation of new`Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`, - * and `Buffer.concat()` only when `size` is less than or equal to`Buffer.poolSize >> 1` (floor of `Buffer.poolSize` divided by two). + * size `Buffer.poolSize` that is used as a pool for the fast allocation of new `Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`, + * and `Buffer.concat()` only when `size` is less than `Buffer.poolSize >>> 1` (floor of `Buffer.poolSize` divided by two). * * Use of this pre-allocated internal memory pool is a key difference between * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`. diff --git a/Scripts/node_modules/@types/node/ts4.8/crypto.d.ts b/Scripts/node_modules/@types/node/ts4.8/crypto.d.ts index ead4a572..718697bc 100644 --- a/Scripts/node_modules/@types/node/ts4.8/crypto.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/crypto.d.ts @@ -100,6 +100,8 @@ declare module "crypto" { const OPENSSL_VERSION_NUMBER: number; /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */ const SSL_OP_ALL: number; + /** Instructs OpenSSL to allow a non-[EC]DHE-based key exchange mode for TLS v1.3 */ + const SSL_OP_ALLOW_NO_DHE_KEX: number; /** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number; /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ @@ -116,15 +118,29 @@ declare module "crypto" { const SSL_OP_LEGACY_SERVER_CONNECT: number; /** Instructs OpenSSL to disable support for SSL/TLS compression. */ const SSL_OP_NO_COMPRESSION: number; + /** Instructs OpenSSL to disable encrypt-then-MAC. */ + const SSL_OP_NO_ENCRYPT_THEN_MAC: number; const SSL_OP_NO_QUERY_MTU: number; + /** Instructs OpenSSL to disable renegotiation. */ + const SSL_OP_NO_RENEGOTIATION: number; /** Instructs OpenSSL to always start a new session when performing renegotiation. */ const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number; + /** Instructs OpenSSL to turn off SSL v2 */ const SSL_OP_NO_SSLv2: number; + /** Instructs OpenSSL to turn off SSL v3 */ const SSL_OP_NO_SSLv3: number; + /** Instructs OpenSSL to disable use of RFC4507bis tickets. */ const SSL_OP_NO_TICKET: number; + /** Instructs OpenSSL to turn off TLS v1 */ const SSL_OP_NO_TLSv1: number; + /** Instructs OpenSSL to turn off TLS v1.1 */ const SSL_OP_NO_TLSv1_1: number; + /** Instructs OpenSSL to turn off TLS v1.2 */ const SSL_OP_NO_TLSv1_2: number; + /** Instructs OpenSSL to turn off TLS v1.3 */ + const SSL_OP_NO_TLSv1_3: number; + /** Instructs OpenSSL server to prioritize ChaCha20-Poly1305 when the client does. This option has no effect if `SSL_OP_CIPHER_SERVER_PREFERENCE` is not enabled. */ + const SSL_OP_PRIORITIZE_CHACHA: number; /** Instructs OpenSSL to disable version rollback attack detection. */ const SSL_OP_TLS_ROLLBACK_BUG: number; const ENGINE_METHOD_RSA: number; @@ -363,7 +379,7 @@ declare module "crypto" { * @since v13.1.0 * @param options `stream.transform` options */ - copy(options?: stream.TransformOptions): Hash; + copy(options?: HashOptions): Hash; /** * Updates the hash content with the given `data`, the encoding of which * is given in `inputEncoding`. @@ -638,9 +654,10 @@ declare module "crypto" { export(options?: KeyExportOptions<"der">): Buffer; export(options?: JwkKeyExportOptions): JsonWebKey; /** - * Returns `true` or `false` depending on whether the keys have exactly the same type, value, and parameters. - * This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack). - * @since v16.15.0 + * Returns `true` or `false` depending on whether the keys have exactly the same + * type, value, and parameters. This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack). + * @since v17.7.0, v16.15.0 + * @param otherKeyObject A `KeyObject` with which to compare `keyObject`. */ equals(otherKeyObject: KeyObject): boolean; /** @@ -1903,7 +1920,7 @@ declare module "crypto" { * Return a random integer `n` such that `min <= n < max`. This * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias). * - * The range (`max - min`) must be less than 248. `min` and `max` must + * The range (`max - min`) must be less than 2**48. `min` and `max` must * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger). * * If the `callback` function is not provided, the random integer is @@ -3513,12 +3530,13 @@ declare module "crypto" { */ disableEntropyCache?: boolean | undefined; } + type UUID = `${string}-${string}-${string}-${string}-${string}`; /** * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a * cryptographic pseudorandom number generator. * @since v15.6.0, v14.17.0 */ - function randomUUID(options?: RandomUUIDOptions): string; + function randomUUID(options?: RandomUUIDOptions): UUID; interface X509CheckOptions { /** * @default 'always' @@ -4077,7 +4095,7 @@ declare module "crypto" { * The UUID is generated using a cryptographic pseudorandom number generator. * @since v16.7.0 */ - randomUUID(): string; + randomUUID(): UUID; CryptoKey: CryptoKeyConstructor; } // This constructor throws ILLEGAL_CONSTRUCTOR so it should not be newable. @@ -4455,6 +4473,14 @@ declare module "crypto" { ): Promise; } } + + global { + var crypto: typeof globalThis extends { + crypto: infer T; + onmessage: any; + } ? T + : webcrypto.Crypto; + } } declare module "node:crypto" { export * from "crypto"; diff --git a/Scripts/node_modules/@types/node/ts4.8/dgram.d.ts b/Scripts/node_modules/@types/node/ts4.8/dgram.d.ts index 692e547f..0b86ae73 100644 --- a/Scripts/node_modules/@types/node/ts4.8/dgram.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/dgram.d.ts @@ -227,6 +227,16 @@ declare module "dgram" { * @return the `SO_SNDBUF` socket send buffer size in bytes. */ getSendBufferSize(): number; + /** + * @since v18.8.0, v16.19.0 + * @return Number of bytes queued for sending. + */ + getSendQueueSize(): number; + /** + * @since v18.8.0, v16.19.0 + * @return Number of send requests currently in the queue awaiting to be processed. + */ + getSendQueueCount(): number; /** * By default, binding a socket will cause it to block the Node.js process from * exiting as long as the socket is open. The `socket.unref()` method can be used diff --git a/Scripts/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts b/Scripts/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts index b02f5917..cd4bd71b 100644 --- a/Scripts/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts @@ -23,6 +23,7 @@ * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/diagnostics_channel.js) */ declare module "diagnostics_channel" { + import { AsyncLocalStorage } from "node:async_hooks"; /** * Check if there are active subscribers to the named channel. This is helpful if * the message you want to send might be expensive to prepare. @@ -95,6 +96,36 @@ declare module "diagnostics_channel" { * @return `true` if the handler was found, `false` otherwise. */ function unsubscribe(name: string | symbol, onMessage: ChannelListener): boolean; + /** + * Creates a `TracingChannel` wrapper for the given `TracingChannel Channels`. If a name is given, the corresponding tracing + * channels will be created in the form of `tracing:${name}:${eventType}` where`eventType` corresponds to the types of `TracingChannel Channels`. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channelsByName = diagnostics_channel.tracingChannel('my-channel'); + * + * // or... + * + * const channelsByCollection = diagnostics_channel.tracingChannel({ + * start: diagnostics_channel.channel('tracing:my-channel:start'), + * end: diagnostics_channel.channel('tracing:my-channel:end'), + * asyncStart: diagnostics_channel.channel('tracing:my-channel:asyncStart'), + * asyncEnd: diagnostics_channel.channel('tracing:my-channel:asyncEnd'), + * error: diagnostics_channel.channel('tracing:my-channel:error'), + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param nameOrChannels Channel name or object containing all the `TracingChannel Channels` + * @return Collection of channels to trace with + */ + function tracingChannel< + StoreType = unknown, + ContextType extends object = StoreType extends object ? StoreType : object, + >( + nameOrChannels: string | TracingChannelCollection, + ): TracingChannel; /** * The class `Channel` represents an individual named channel within the data * pipeline. It is used to track subscribers and to publish messages when there @@ -104,7 +135,7 @@ declare module "diagnostics_channel" { * with `new Channel(name)` is not supported. * @since v15.1.0, v14.17.0 */ - class Channel { + class Channel { readonly name: string | symbol; /** * Check if there are active subscribers to this channel. This is helpful if @@ -184,6 +215,329 @@ declare module "diagnostics_channel" { * @return `true` if the handler was found, `false` otherwise. */ unsubscribe(onMessage: ChannelListener): void; + /** + * When `channel.runStores(context, ...)` is called, the given context data + * will be applied to any store bound to the channel. If the store has already been + * bound the previous `transform` function will be replaced with the new one. + * The `transform` function may be omitted to set the given context data as the + * context directly. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * import { AsyncLocalStorage } from 'node:async_hooks'; + * + * const store = new AsyncLocalStorage(); + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * channel.bindStore(store, (data) => { + * return { data }; + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param store The store to which to bind the context data + * @param transform Transform context data before setting the store context + */ + bindStore(store: AsyncLocalStorage, transform?: (context: ContextType) => StoreType): void; + /** + * Remove a message handler previously registered to this channel with `channel.bindStore(store)`. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * import { AsyncLocalStorage } from 'node:async_hooks'; + * + * const store = new AsyncLocalStorage(); + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * channel.bindStore(store); + * channel.unbindStore(store); + * ``` + * @since v19.9.0 + * @experimental + * @param store The store to unbind from the channel. + * @return `true` if the store was found, `false` otherwise. + */ + unbindStore(store: any): void; + /** + * Applies the given data to any AsyncLocalStorage instances bound to the channel + * for the duration of the given function, then publishes to the channel within + * the scope of that data is applied to the stores. + * + * If a transform function was given to `channel.bindStore(store)` it will be + * applied to transform the message data before it becomes the context value for + * the store. The prior storage context is accessible from within the transform + * function in cases where context linking is required. + * + * The context applied to the store should be accessible in any async code which + * continues from execution which began during the given function, however + * there are some situations in which `context loss` may occur. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * import { AsyncLocalStorage } from 'node:async_hooks'; + * + * const store = new AsyncLocalStorage(); + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * channel.bindStore(store, (message) => { + * const parent = store.getStore(); + * return new Span(message, parent); + * }); + * channel.runStores({ some: 'message' }, () => { + * store.getStore(); // Span({ some: 'message' }) + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param context Message to send to subscribers and bind to stores + * @param fn Handler to run within the entered storage context + * @param thisArg The receiver to be used for the function call. + * @param args Optional arguments to pass to the function. + */ + runStores(): void; + } + interface TracingChannelSubscribers { + start: (message: ContextType) => void; + end: ( + message: ContextType & { + error?: unknown; + result?: unknown; + }, + ) => void; + asyncStart: ( + message: ContextType & { + error?: unknown; + result?: unknown; + }, + ) => void; + asyncEnd: ( + message: ContextType & { + error?: unknown; + result?: unknown; + }, + ) => void; + error: ( + message: ContextType & { + error: unknown; + }, + ) => void; + } + interface TracingChannelCollection { + start: Channel; + end: Channel; + asyncStart: Channel; + asyncEnd: Channel; + error: Channel; + } + /** + * The class `TracingChannel` is a collection of `TracingChannel Channels` which + * together express a single traceable action. It is used to formalize and + * simplify the process of producing events for tracing application flow.{@link tracingChannel} is used to construct a`TracingChannel`. As with `Channel` it is recommended to create and reuse a + * single `TracingChannel` at the top-level of the file rather than creating them + * dynamically. + * @since v19.9.0 + * @experimental + */ + class TracingChannel implements TracingChannelCollection { + start: Channel; + end: Channel; + asyncStart: Channel; + asyncEnd: Channel; + error: Channel; + /** + * Helper to subscribe a collection of functions to the corresponding channels. + * This is the same as calling `channel.subscribe(onMessage)` on each channel + * individually. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * channels.subscribe({ + * start(message) { + * // Handle start message + * }, + * end(message) { + * // Handle end message + * }, + * asyncStart(message) { + * // Handle asyncStart message + * }, + * asyncEnd(message) { + * // Handle asyncEnd message + * }, + * error(message) { + * // Handle error message + * }, + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param subscribers Set of `TracingChannel Channels` subscribers + */ + subscribe(subscribers: TracingChannelSubscribers): void; + /** + * Helper to unsubscribe a collection of functions from the corresponding channels. + * This is the same as calling `channel.unsubscribe(onMessage)` on each channel + * individually. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * channels.unsubscribe({ + * start(message) { + * // Handle start message + * }, + * end(message) { + * // Handle end message + * }, + * asyncStart(message) { + * // Handle asyncStart message + * }, + * asyncEnd(message) { + * // Handle asyncEnd message + * }, + * error(message) { + * // Handle error message + * }, + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param subscribers Set of `TracingChannel Channels` subscribers + * @return `true` if all handlers were successfully unsubscribed, and `false` otherwise. + */ + unsubscribe(subscribers: TracingChannelSubscribers): void; + /** + * Trace a synchronous function call. This will always produce a `start event` and `end event` around the execution and may produce an `error event` if the given function throws an error. + * This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all + * events should have any bound stores set to match this trace context. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * channels.traceSync(() => { + * // Do something + * }, { + * some: 'thing', + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param fn Function to wrap a trace around + * @param context Shared object to correlate events through + * @param thisArg The receiver to be used for the function call + * @param args Optional arguments to pass to the function + * @return The return value of the given function + */ + traceSync( + fn: (this: ThisArg, ...args: Args) => any, + context?: ContextType, + thisArg?: ThisArg, + ...args: Args + ): void; + /** + * Trace a promise-returning function call. This will always produce a `start event` and `end event` around the synchronous portion of the + * function execution, and will produce an `asyncStart event` and `asyncEnd event` when a promise continuation is reached. It may also + * produce an `error event` if the given function throws an error or the + * returned promise rejects. This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all + * events should have any bound stores set to match this trace context. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * channels.tracePromise(async () => { + * // Do something + * }, { + * some: 'thing', + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param fn Promise-returning function to wrap a trace around + * @param context Shared object to correlate trace events through + * @param thisArg The receiver to be used for the function call + * @param args Optional arguments to pass to the function + * @return Chained from promise returned by the given function + */ + tracePromise( + fn: (this: ThisArg, ...args: Args) => Promise, + context?: ContextType, + thisArg?: ThisArg, + ...args: Args + ): void; + /** + * Trace a callback-receiving function call. This will always produce a `start event` and `end event` around the synchronous portion of the + * function execution, and will produce a `asyncStart event` and `asyncEnd event` around the callback execution. It may also produce an `error event` if the given function throws an error or + * the returned + * promise rejects. This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all + * events should have any bound stores set to match this trace context. + * + * The `position` will be -1 by default to indicate the final argument should + * be used as the callback. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * + * channels.traceCallback((arg1, callback) => { + * // Do something + * callback(null, 'result'); + * }, 1, { + * some: 'thing', + * }, thisArg, arg1, callback); + * ``` + * + * The callback will also be run with `channel.runStores(context, ...)` which + * enables context loss recovery in some cases. + * + * ```js + * import diagnostics_channel from 'node:diagnostics_channel'; + * import { AsyncLocalStorage } from 'node:async_hooks'; + * + * const channels = diagnostics_channel.tracingChannel('my-channel'); + * const myStore = new AsyncLocalStorage(); + * + * // The start channel sets the initial store data to something + * // and stores that store data value on the trace context object + * channels.start.bindStore(myStore, (data) => { + * const span = new Span(data); + * data.span = span; + * return span; + * }); + * + * // Then asyncStart can restore from that data it stored previously + * channels.asyncStart.bindStore(myStore, (data) => { + * return data.span; + * }); + * ``` + * @since v19.9.0 + * @experimental + * @param fn callback using function to wrap a trace around + * @param position Zero-indexed argument position of expected callback + * @param context Shared object to correlate trace events through + * @param thisArg The receiver to be used for the function call + * @param args Optional arguments to pass to the function + * @return The return value of the given function + */ + traceCallback any>( + fn: Fn, + position: number | undefined, + context: ContextType | undefined, + thisArg: any, + ...args: Parameters + ): void; } } declare module "node:diagnostics_channel" { diff --git a/Scripts/node_modules/@types/node/ts4.8/events.d.ts b/Scripts/node_modules/@types/node/ts4.8/events.d.ts index 6ed47c53..87b3ba0b 100644 --- a/Scripts/node_modules/@types/node/ts4.8/events.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/events.d.ts @@ -92,7 +92,24 @@ declare module "events" { interface StaticEventEmitterOptions { signal?: AbortSignal | undefined; } - interface EventEmitter extends NodeJS.EventEmitter {} + interface EventEmitter = DefaultEventMap> extends NodeJS.EventEmitter {} + type EventMap = Record | DefaultEventMap; + type DefaultEventMap = [never]; + type AnyRest = [...args: any[]]; + type Args = T extends DefaultEventMap ? AnyRest : ( + K extends keyof T ? T[K] : never + ); + type Key = T extends DefaultEventMap ? string | symbol : K | keyof T; + type Key2 = T extends DefaultEventMap ? string | symbol : K & keyof T; + type Listener = T extends DefaultEventMap ? F : ( + K extends keyof T ? ( + T[K] extends unknown[] ? (...args: T[K]) => void : never + ) + : never + ); + type Listener1 = Listener void>; + type Listener2 = Listener; + /** * The `EventEmitter` class is defined and exposed by the `node:events` module: * @@ -106,10 +123,10 @@ declare module "events" { * It supports the following option: * @since v0.1.26 */ - class EventEmitter { + class EventEmitter = DefaultEventMap> { constructor(options?: EventEmitterOptions); - [EventEmitter.captureRejectionSymbol]?(error: Error, event: string, ...args: any[]): void; + [EventEmitter.captureRejectionSymbol]?(error: Error, event: Key, ...args: Args): void; /** * Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given @@ -536,13 +553,13 @@ declare module "events" { } global { namespace NodeJS { - interface EventEmitter { - [EventEmitter.captureRejectionSymbol]?(error: Error, event: string, ...args: any[]): void; + interface EventEmitter = DefaultEventMap> { + [EventEmitter.captureRejectionSymbol]?(error: Error, event: Key, ...args: Args): void; /** * Alias for `emitter.on(eventName, listener)`. * @since v0.1.26 */ - addListener(eventName: string | symbol, listener: (...args: any[]) => void): this; + addListener(eventName: Key, listener: Listener1): this; /** * Adds the `listener` function to the end of the listeners array for the * event named `eventName`. No checks are made to see if the `listener` has @@ -574,7 +591,7 @@ declare module "events" { * @param eventName The name of the event. * @param listener The callback function */ - on(eventName: string | symbol, listener: (...args: any[]) => void): this; + on(eventName: Key, listener: Listener1): this; /** * Adds a **one-time**`listener` function for the event named `eventName`. The * next time `eventName` is triggered, this listener is removed and then invoked. @@ -604,7 +621,7 @@ declare module "events" { * @param eventName The name of the event. * @param listener The callback function */ - once(eventName: string | symbol, listener: (...args: any[]) => void): this; + once(eventName: Key, listener: Listener1): this; /** * Removes the specified `listener` from the listener array for the event named`eventName`. * @@ -687,12 +704,12 @@ declare module "events" { * Returns a reference to the `EventEmitter`, so that calls can be chained. * @since v0.1.26 */ - removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this; + removeListener(eventName: Key, listener: Listener1): this; /** * Alias for `emitter.removeListener()`. * @since v10.0.0 */ - off(eventName: string | symbol, listener: (...args: any[]) => void): this; + off(eventName: Key, listener: Listener1): this; /** * Removes all listeners, or those of the specified `eventName`. * @@ -703,7 +720,7 @@ declare module "events" { * Returns a reference to the `EventEmitter`, so that calls can be chained. * @since v0.1.26 */ - removeAllListeners(event?: string | symbol): this; + removeAllListeners(event?: Key): this; /** * By default `EventEmitter`s will print a warning if more than `10` listeners are * added for a particular event. This is a useful default that helps finding @@ -732,7 +749,7 @@ declare module "events" { * ``` * @since v0.1.26 */ - listeners(eventName: string | symbol): Function[]; + listeners(eventName: Key): Array>; /** * Returns a copy of the array of listeners for the event named `eventName`, * including any wrappers (such as those created by `.once()`). @@ -763,7 +780,7 @@ declare module "events" { * ``` * @since v9.4.0 */ - rawListeners(eventName: string | symbol): Function[]; + rawListeners(eventName: Key): Array>; /** * Synchronously calls each of the listeners registered for the event named`eventName`, in the order they were registered, passing the supplied arguments * to each. @@ -804,7 +821,7 @@ declare module "events" { * ``` * @since v0.1.26 */ - emit(eventName: string | symbol, ...args: any[]): boolean; + emit(eventName: Key, ...args: Args): boolean; /** * Returns the number of listeners listening for the event named `eventName`. * If `listener` is provided, it will return how many times the listener is found @@ -813,7 +830,7 @@ declare module "events" { * @param eventName The name of the event being listened for * @param listener The event handler function */ - listenerCount(eventName: string | symbol, listener?: Function): number; + listenerCount(eventName: Key, listener?: Listener2): number; /** * Adds the `listener` function to the _beginning_ of the listeners array for the * event named `eventName`. No checks are made to see if the `listener` has @@ -831,7 +848,7 @@ declare module "events" { * @param eventName The name of the event. * @param listener The callback function */ - prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this; + prependListener(eventName: Key, listener: Listener1): this; /** * Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this * listener is removed, and then invoked. @@ -847,7 +864,7 @@ declare module "events" { * @param eventName The name of the event. * @param listener The callback function */ - prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(eventName: Key, listener: Listener1): this; /** * Returns an array listing the events for which the emitter has registered * listeners. The values in the array are strings or `Symbol`s. @@ -867,7 +884,7 @@ declare module "events" { * ``` * @since v6.0.0 */ - eventNames(): Array; + eventNames(): Array<(string | symbol) & Key2>; } } } diff --git a/Scripts/node_modules/@types/node/ts4.8/fs.d.ts b/Scripts/node_modules/@types/node/ts4.8/fs.d.ts index f98453a5..5cbca12f 100644 --- a/Scripts/node_modules/@types/node/ts4.8/fs.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/fs.d.ts @@ -281,7 +281,7 @@ declare module "fs" { * Asynchronously close the directory's underlying resource handle. * Subsequent reads will result in errors. * - * A promise is returned that will be resolved after the resource has been + * A promise is returned that will be fulfilled after the resource has been * closed. * @since v12.12.0 */ @@ -296,7 +296,7 @@ declare module "fs" { /** * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`. * - * A promise is returned that will be resolved with an `fs.Dirent`, or `null`if there are no more directory entries to read. + * A promise is returned that will be fulfilled with an `fs.Dirent`, or `null`if there are no more directory entries to read. * * Directory entries returned by this function are in no particular order as * provided by the operating system's underlying directory mechanisms. @@ -354,31 +354,51 @@ declare module "fs" { * @since v0.5.8 */ close(): void; + /** + * When called, requests that the Node.js event loop _not_ exit so long as the `fs.FSWatcher` is active. Calling `watcher.ref()` multiple times will have + * no effect. + * + * By default, all `fs.FSWatcher` objects are "ref'ed", making it normally + * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been + * called previously. + * @since v14.3.0, v12.20.0 + */ + ref(): this; + /** + * When called, the active `fs.FSWatcher` object will not require the Node.js + * event loop to remain active. If there is no other activity keeping the + * event loop running, the process may exit before the `fs.FSWatcher` object's + * callback is invoked. Calling `watcher.unref()` multiple times will have + * no effect. + * @since v14.3.0, v12.20.0 + */ + unref(): this; /** * events.EventEmitter * 1. change - * 2. error + * 2. close + * 3. error */ addListener(event: string, listener: (...args: any[]) => void): this; addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; - addListener(event: "error", listener: (error: Error) => void): this; addListener(event: "close", listener: () => void): this; + addListener(event: "error", listener: (error: Error) => void): this; on(event: string, listener: (...args: any[]) => void): this; on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; - on(event: "error", listener: (error: Error) => void): this; on(event: "close", listener: () => void): this; + on(event: "error", listener: (error: Error) => void): this; once(event: string, listener: (...args: any[]) => void): this; once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; - once(event: "error", listener: (error: Error) => void): this; once(event: "close", listener: () => void): this; + once(event: "error", listener: (error: Error) => void): this; prependListener(event: string, listener: (...args: any[]) => void): this; prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; - prependListener(event: "error", listener: (error: Error) => void): this; prependListener(event: "close", listener: () => void): this; + prependListener(event: "error", listener: (error: Error) => void): this; prependOnceListener(event: string, listener: (...args: any[]) => void): this; prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; - prependOnceListener(event: "error", listener: (error: Error) => void): this; prependOnceListener(event: "close", listener: () => void): this; + prependOnceListener(event: "error", listener: (error: Error) => void): this; } /** * Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function. diff --git a/Scripts/node_modules/@types/node/ts4.8/http.d.ts b/Scripts/node_modules/@types/node/ts4.8/http.d.ts index 9b2c3c2c..710fe594 100644 --- a/Scripts/node_modules/@types/node/ts4.8/http.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/http.d.ts @@ -9,12 +9,12 @@ * * HTTP message headers are represented by an object like this: * - * ```js - * { 'content-length': '123', - * 'content-type': 'text/plain', - * 'connection': 'keep-alive', - * 'host': 'example.com', - * 'accept': '*' } + * ```json + * { "content-length": "123", + * "content-type": "text/plain", + * "connection": "keep-alive", + * "host": "example.com", + * "accept": "*" } * ``` * * Keys are lowercased. Values are not modified. @@ -1814,7 +1814,6 @@ declare module "http" { * * It is not necessary to use this method before passing headers to an HTTP request * or response. The HTTP module will automatically validate such headers. - * Examples: * * Example: * diff --git a/Scripts/node_modules/@types/node/ts4.8/module.d.ts b/Scripts/node_modules/@types/node/ts4.8/module.d.ts index 68d59c77..c38a9b80 100644 --- a/Scripts/node_modules/@types/node/ts4.8/module.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/module.d.ts @@ -276,6 +276,20 @@ declare module "module" { } global { interface ImportMeta { + /** + * The directory name of the current module. This is the same as the `path.dirname()` of the `import.meta.filename`. + * **Caveat:** only present on `file:` modules. + */ + dirname: string; + /** + * The full absolute path and filename of the current module, with symlinks resolved. + * This is the same as the `url.fileURLToPath()` of the `import.meta.url`. + * **Caveat:** only local modules support this property. Modules not using the `file:` protocol will not provide it. + */ + filename: string; + /** + * The absolute `file:` URL of the module. + */ url: string; /** * Provides a module-relative resolution function scoped to each module, returning diff --git a/Scripts/node_modules/@types/node/ts4.8/net.d.ts b/Scripts/node_modules/@types/node/ts4.8/net.d.ts index 70789e1b..c09b95d0 100644 --- a/Scripts/node_modules/@types/node/ts4.8/net.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/net.d.ts @@ -18,8 +18,8 @@ declare module "net" { import * as dns from "node:dns"; type LookupFunction = ( hostname: string, - options: dns.LookupAllOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: dns.LookupAddress[]) => void, + options: dns.LookupOptions, + callback: (err: NodeJS.ErrnoException | null, address: string | dns.LookupAddress[], family?: number) => void, ) => void; interface AddressInfo { address: string; @@ -628,7 +628,7 @@ declare module "net" { * Indicates whether or not the server is listening for connections. * @since v5.7.0 */ - listening: boolean; + readonly listening: boolean; /** * events.EventEmitter * 1. close @@ -736,6 +736,11 @@ declare module "net" { */ check(address: SocketAddress): boolean; check(address: string, type?: IPVersion): boolean; + /** + * The list of rules added to the blocklist. + * @since v15.0.0, v14.18.0 + */ + rules: readonly string[]; } interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { timeout?: number | undefined; diff --git a/Scripts/node_modules/@types/node/ts4.8/perf_hooks.d.ts b/Scripts/node_modules/@types/node/ts4.8/perf_hooks.d.ts index 0e16e581..c0ce852a 100644 --- a/Scripts/node_modules/@types/node/ts4.8/perf_hooks.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/perf_hooks.d.ts @@ -31,7 +31,7 @@ */ declare module "perf_hooks" { import { AsyncResource } from "node:async_hooks"; - type EntryType = "node" | "mark" | "measure" | "gc" | "function" | "http2" | "http"; + type EntryType = "node" | "mark" | "measure" | "gc" | "function" | "http2" | "http" | "dns" | "net"; interface NodeGCPerformanceDetail { /** * When `performanceEntry.entryType` is equal to 'gc', `the performance.kind` property identifies @@ -314,13 +314,15 @@ declare module "perf_hooks" { * * name: 'test', * * entryType: 'mark', * * startTime: 81.465639, - * * duration: 0 + * * duration: 0, + * * detail: null * * }, * * PerformanceEntry { * * name: 'meow', * * entryType: 'mark', * * startTime: 81.860064, - * * duration: 0 + * * duration: 0, + * * detail: null * * } * * ] * @@ -355,7 +357,8 @@ declare module "perf_hooks" { * * name: 'meow', * * entryType: 'mark', * * startTime: 98.545991, - * * duration: 0 + * * duration: 0, + * * detail: null * * } * * ] * @@ -368,7 +371,8 @@ declare module "perf_hooks" { * * name: 'test', * * entryType: 'mark', * * startTime: 63.518931, - * * duration: 0 + * * duration: 0, + * * detail: null * * } * * ] * @@ -404,13 +408,15 @@ declare module "perf_hooks" { * * name: 'test', * * entryType: 'mark', * * startTime: 55.897834, - * * duration: 0 + * * duration: 0, + * * detail: null * * }, * * PerformanceEntry { * * name: 'meow', * * entryType: 'mark', * * startTime: 56.350146, - * * duration: 0 + * * duration: 0, + * * detail: null * * } * * ] * diff --git a/Scripts/node_modules/@types/node/ts4.8/process.d.ts b/Scripts/node_modules/@types/node/ts4.8/process.d.ts index 0e274737..d22308f6 100644 --- a/Scripts/node_modules/@types/node/ts4.8/process.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/process.d.ts @@ -903,9 +903,14 @@ declare module "process" { */ readonly sourceMapsEnabled: boolean; /** - * This function enables or disables the Source Map v3 support for stack traces. - * It provides same features as launching Node.js process with commandline options --enable-source-maps. - * @since v16.6.0 + * This function enables or disables the [Source Map v3](https://sourcemaps.info/spec.html) support for + * stack traces. + * + * It provides same features as launching Node.js process with commandline options`--enable-source-maps`. + * + * Only source maps in JavaScript files that are loaded after source maps has been + * enabled will be parsed and loaded. + * @since v16.6.0, v14.18.0 * @experimental */ setSourceMapsEnabled(value: boolean): void; @@ -1311,6 +1316,23 @@ declare module "process" { */ uptime(): number; hrtime: HRTime; + /** + * If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel. + * If no IPC channel exists, this property is undefined. + * @since v7.1.0 + */ + channel?: { + /** + * This method makes the IPC channel keep the event loop of the process running if .unref() has been called before. + * @since v7.1.0 + */ + ref(): void; + /** + * This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open. + * @since v7.1.0 + */ + unref(): void; + }; /** * If Node.js is spawned with an IPC channel, the `process.send()` method can be * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object. diff --git a/Scripts/node_modules/@types/node/ts4.8/querystring.d.ts b/Scripts/node_modules/@types/node/ts4.8/querystring.d.ts index 54ecc967..b36ea2c1 100644 --- a/Scripts/node_modules/@types/node/ts4.8/querystring.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/querystring.d.ts @@ -74,10 +74,10 @@ declare module "querystring" { * * For example, the query string `'foo=bar&abc=xyz&abc=123'` is parsed into: * - * ```js + * ```json * { - * foo: 'bar', - * abc: ['xyz', '123'] + * "foo": "bar", + * "abc": ["xyz", "123"] * } * ``` * diff --git a/Scripts/node_modules/@types/node/ts4.8/stream/web.d.ts b/Scripts/node_modules/@types/node/ts4.8/stream/web.d.ts index 0d916137..361594df 100644 --- a/Scripts/node_modules/@types/node/ts4.8/stream/web.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/stream/web.d.ts @@ -342,7 +342,23 @@ declare module "stream/web" { } const TextDecoderStream: { prototype: TextDecoderStream; - new(label?: string, options?: TextDecoderOptions): TextDecoderStream; + new(encoding?: string, options?: TextDecoderOptions): TextDecoderStream; + }; + interface CompressionStream { + readonly readable: ReadableStream; + readonly writable: WritableStream; + } + const CompressionStream: { + prototype: CompressionStream; + new(format: string): CompressionStream; + }; + interface DecompressionStream { + readonly readable: ReadableStream; + readonly writable: WritableStream; + } + const DecompressionStream: { + prototype: DecompressionStream; + new(format: string): DecompressionStream; }; } declare module "node:stream/web" { diff --git a/Scripts/node_modules/@types/node/ts4.8/string_decoder.d.ts b/Scripts/node_modules/@types/node/ts4.8/string_decoder.d.ts index b8691e1f..cd76bf86 100644 --- a/Scripts/node_modules/@types/node/ts4.8/string_decoder.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/string_decoder.d.ts @@ -48,7 +48,7 @@ declare module "string_decoder" { * @since v0.1.99 * @param buffer The bytes to decode. */ - write(buffer: Buffer): string; + write(buffer: string | Buffer | NodeJS.ArrayBufferView): string; /** * Returns any remaining input stored in the internal buffer as a string. Bytes * representing incomplete UTF-8 and UTF-16 characters will be replaced with @@ -59,7 +59,7 @@ declare module "string_decoder" { * @since v0.9.3 * @param buffer The bytes to decode. */ - end(buffer?: Buffer): string; + end(buffer?: string | Buffer | NodeJS.ArrayBufferView): string; } } declare module "node:string_decoder" { diff --git a/Scripts/node_modules/@types/node/ts4.8/test.d.ts b/Scripts/node_modules/@types/node/ts4.8/test.d.ts index 44b6a964..149c9e0b 100644 --- a/Scripts/node_modules/@types/node/ts4.8/test.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/test.d.ts @@ -82,6 +82,11 @@ declare module "node:test" { import { Readable } from "node:stream"; import { AsyncResource } from "node:async_hooks"; /** + * **Note:**`shard` is used to horizontally parallelize test running across + * machines or processes, ideal for large-scale executions across varied + * environments. It's incompatible with `watch` mode, tailored for rapid + * code iteration by automatically rerunning tests on file changes. + * * ```js * import { tap } from 'node:test/reporters'; * import { run } from 'node:test'; @@ -1007,12 +1012,20 @@ declare module "node:test" { */ restore(): void; } - type Timer = "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout"; + type Timer = "setInterval" | "setTimeout" | "setImmediate" | "Date"; + + interface MockTimersOptions { + apis: Timer[]; + now?: number | Date; + } /** * Mocking timers is a technique commonly used in software testing to simulate and * control the behavior of timers, such as `setInterval` and `setTimeout`, * without actually waiting for the specified time intervals. * + * The MockTimers API also allows for mocking of the `Date` constructor and + * `setImmediate`/`clearImmediate` functions. + * * The `MockTracker` provides a top-level `timers` export * which is a `MockTimers` instance. * @since v20.4.0 @@ -1025,24 +1038,66 @@ declare module "node:test" { * **Note:** When you enable mocking for a specific timer, its associated * clear function will also be implicitly mocked. * - * Example usage: + * **Note:** Mocking `Date` will affect the behavior of the mocked timers + * as they use the same internal clock. + * + * Example usage without setting initial time: * * ```js * import { mock } from 'node:test'; - * mock.timers.enable(['setInterval']); + * mock.timers.enable({ apis: ['setInterval', 'Date'], now: 1234 }); * ``` * - * The above example enables mocking for the `setInterval` timer and - * implicitly mocks the `clearInterval` function. Only the `setInterval`and `clearInterval` functions from `node:timers`,`node:timers/promises`, and`globalThis` will be mocked. + * The above example enables mocking for the `Date` constructor, `setInterval` timer and + * implicitly mocks the `clearInterval` function. Only the `Date` constructor from `globalThis`, + * `setInterval` and `clearInterval` functions from `node:timers`,`node:timers/promises`, and `globalThis` will be mocked. + * + * Example usage with initial time set + * + * ```js + * import { mock } from 'node:test'; + * mock.timers.enable({ apis: ['Date'], now: 1000 }); + * ``` + * + * Example usage with initial Date object as time set + * + * ```js + * import { mock } from 'node:test'; + * mock.timers.enable({ apis: ['Date'], now: new Date() }); + * ``` * * Alternatively, if you call `mock.timers.enable()` without any parameters: * - * All timers (`'setInterval'`, `'clearInterval'`, `'setTimeout'`, and `'clearTimeout'`) - * will be mocked. The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout`functions from `node:timers`, `node:timers/promises`, + * All timers (`'setInterval'`, `'clearInterval'`, `'Date'`, `'setImmediate'`, `'clearImmediate'`, `'setTimeout'`, and `'clearTimeout'`) + * will be mocked. + * + * The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout` functions from `node:timers`, `node:timers/promises`, * and `globalThis` will be mocked. + * The `Date` constructor from `globalThis` will be mocked. + * + * If there is no initial epoch set, the initial date will be based on 0 in the Unix epoch. This is `January 1st, 1970, 00:00:00 UTC`. You can set an initial date by passing a now property to the `.enable()` method. This value will be used as the initial date for the mocked Date object. It can either be a positive integer, or another Date object. * @since v20.4.0 */ - enable(timers?: Timer[]): void; + enable(options?: MockTimersOptions): void; + /** + * You can use the `.setTime()` method to manually move the mocked date to another time. This method only accepts a positive integer. + * Note: This method will execute any mocked timers that are in the past from the new time. + * In the below example we are setting a new time for the mocked date. + * ```js + * import assert from 'node:assert'; + * import { test } from 'node:test'; + * test('sets the time of a date object', (context) => { + * // Optionally choose what to mock + * context.mock.timers.enable({ apis: ['Date'], now: 100 }); + * assert.strictEqual(Date.now(), 100); + * // Advance in time will also advance the date + * context.mock.timers.setTime(1000); + * context.mock.timers.tick(200); + * assert.strictEqual(Date.now(), 1200); + * }); + * ``` + */ + setTime(time: number): void; /** * This function restores the default behavior of all mocks that were previously * created by this `MockTimers` instance and disassociates the mocks @@ -1076,7 +1131,7 @@ declare module "node:test" { * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { * const fn = context.mock.fn(); * - * context.mock.timers.enable(['setTimeout']); + * context.mock.timers.enable({ apis: ['setTimeout'] }); * * setTimeout(fn, 9999); * @@ -1097,7 +1152,7 @@ declare module "node:test" { * * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { * const fn = context.mock.fn(); - * context.mock.timers.enable(['setTimeout']); + * context.mock.timers.enable({ apis: ['setTimeout'] }); * const nineSecs = 9000; * setTimeout(fn, nineSecs); * @@ -1109,11 +1164,35 @@ declare module "node:test" { * assert.strictEqual(fn.mock.callCount(), 1); * }); * ``` + * + * Advancing time using `.tick` will also advance the time for any `Date` object + * created after the mock was enabled (if `Date` was also set to be mocked). + * + * ```js + * import assert from 'node:assert'; + * import { test } from 'node:test'; + * + * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { + * const fn = context.mock.fn(); + * + * context.mock.timers.enable({ apis: ['setTimeout', 'Date'] }); + * setTimeout(fn, 9999); + * + * assert.strictEqual(fn.mock.callCount(), 0); + * assert.strictEqual(Date.now(), 0); + * + * // Advance in time + * context.mock.timers.tick(9999); + * assert.strictEqual(fn.mock.callCount(), 1); + * assert.strictEqual(Date.now(), 9999); + * }); + * ``` * @since v20.4.0 */ tick(milliseconds: number): void; /** - * Triggers all pending mocked timers immediately. + * Triggers all pending mocked timers immediately. If the `Date` object is also + * mocked, it will also advance the `Date` object to the furthest timer's time. * * The example below triggers all pending timers immediately, * causing them to execute without any delay. @@ -1123,7 +1202,7 @@ declare module "node:test" { * import { test } from 'node:test'; * * test('runAll functions following the given order', (context) => { - * context.mock.timers.enable(['setTimeout']); + * context.mock.timers.enable({ apis: ['setTimeout', 'Date'] }); * const results = []; * setTimeout(() => results.push(1), 9999); * @@ -1135,8 +1214,9 @@ declare module "node:test" { * assert.deepStrictEqual(results, []); * * context.mock.timers.runAll(); - * * assert.deepStrictEqual(results, [3, 2, 1]); + * // The Date object is also advanced to the furthest timer's time + * assert.strictEqual(Date.now(), 9999); * }); * ``` * @@ -1343,7 +1423,7 @@ interface TestDequeue extends TestLocationInfo { * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/test/reporters.js) */ declare module "node:test/reporters" { - import { Transform } from "node:stream"; + import { Transform, TransformOptions } from "node:stream"; type TestEvent = | { type: "test:diagnostic"; data: DiagnosticData } @@ -1378,5 +1458,8 @@ declare module "node:test/reporters" { * The `junit` reporter outputs test results in a jUnit XML format */ function junit(source: TestEventGenerator): AsyncGenerator; - export { dot, junit, Spec as spec, tap, TestEvent }; + class Lcov extends Transform { + constructor(opts?: TransformOptions); + } + export { dot, junit, Lcov as lcov, Spec as spec, tap, TestEvent }; } diff --git a/Scripts/node_modules/@types/node/ts4.8/tls.d.ts b/Scripts/node_modules/@types/node/ts4.8/tls.d.ts index b289e841..9f6d6be9 100644 --- a/Scripts/node_modules/@types/node/ts4.8/tls.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/tls.d.ts @@ -220,7 +220,7 @@ declare module "tls" { /** * Construct a new tls.TLSSocket object from an existing TCP socket. */ - constructor(socket: net.Socket, options?: TLSSocketOptions); + constructor(socket: net.Socket | stream.Duplex, options?: TLSSocketOptions); /** * This property is `true` if the peer certificate was signed by one of the CAs * specified when creating the `tls.TLSSocket` instance, otherwise `false`. diff --git a/Scripts/node_modules/@types/node/ts4.8/url.d.ts b/Scripts/node_modules/@types/node/ts4.8/url.d.ts index 20a5d851..dc2d0a0a 100644 --- a/Scripts/node_modules/@types/node/ts4.8/url.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/url.d.ts @@ -5,7 +5,7 @@ * ```js * import url from 'node:url'; * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/url.js) + * @see [source](https://github.com/nodejs/node/blob/v20.11.0/lib/url.js) */ declare module "url" { import { Blob as NodeBlob } from "node:buffer"; @@ -74,7 +74,7 @@ declare module "url" { function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery; function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url; /** - * The `url.format()` method returns a formatted URL string derived from`urlObject`. + * The `url.format()` method returns a formatted URL string derived from `urlObject`. * * ```js * const url = require('node:url'); @@ -100,33 +100,33 @@ declare module "url" { * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown. * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII * colon (`:`) character, the literal string `:` will be appended to `result`. - * * If either of the following conditions is true, then the literal string `//`will be appended to `result`: + * * If either of the following conditions is true, then the literal string `//` will be appended to `result`: * * `urlObject.slashes` property is true; - * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`; - * * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string - * and appended to `result`followed by the literal string `@`. + * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`; + * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string + * and appended to `result` followed by the literal string `@`. * * If the `urlObject.host` property is `undefined` then: * * If the `urlObject.hostname` is a string, it is appended to `result`. * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string, * an `Error` is thrown. - * * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`: + * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`: * * The literal string `:` is appended to `result`, and - * * The value of `urlObject.port` is coerced to a string and appended to`result`. - * * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`. + * * The value of `urlObject.port` is coerced to a string and appended to `result`. + * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`. * * If the `urlObject.pathname` property is a string that is not an empty string: - * * If the `urlObject.pathname`_does not start_ with an ASCII forward slash + * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash * (`/`), then the literal string `'/'` is appended to `result`. * * The value of `urlObject.pathname` is appended to `result`. * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the - * `querystring` module's `stringify()`method passing the value of `urlObject.query`. + * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the + * `querystring` module's `stringify()` method passing the value of `urlObject.query`. * * Otherwise, if `urlObject.search` is a string: - * * If the value of `urlObject.search`_does not start_ with the ASCII question + * * If the value of `urlObject.search` _does not start_ with the ASCII question * mark (`?`) character, the literal string `?` is appended to `result`. * * The value of `urlObject.search` is appended to `result`. * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown. * * If the `urlObject.hash` property is a string: - * * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`) + * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`) * character, the literal string `#` is appended to `result`. * * The value of `urlObject.hash` is appended to `result`. * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a @@ -138,18 +138,18 @@ declare module "url" { */ function format(urlObject: URL, options?: URLFormatOptions): string; /** - * The `url.format()` method returns a formatted URL string derived from`urlObject`. + * The `url.format()` method returns a formatted URL string derived from `urlObject`. * * ```js - * const url = require('url'); + * const url = require('node:url'); * url.format({ * protocol: 'https', * hostname: 'example.com', * pathname: '/some/path', * query: { * page: 1, - * format: 'json' - * } + * format: 'json', + * }, * }); * * // => 'https://example.com/some/path?page=1&format=json' @@ -164,33 +164,33 @@ declare module "url" { * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown. * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII * colon (`:`) character, the literal string `:` will be appended to `result`. - * * If either of the following conditions is true, then the literal string `//`will be appended to `result`: + * * If either of the following conditions is true, then the literal string `//` will be appended to `result`: * * `urlObject.slashes` property is true; - * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`; - * * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string - * and appended to `result`followed by the literal string `@`. + * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`; + * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string + * and appended to `result` followed by the literal string `@`. * * If the `urlObject.host` property is `undefined` then: * * If the `urlObject.hostname` is a string, it is appended to `result`. * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string, * an `Error` is thrown. - * * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`: + * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`: * * The literal string `:` is appended to `result`, and - * * The value of `urlObject.port` is coerced to a string and appended to`result`. - * * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`. + * * The value of `urlObject.port` is coerced to a string and appended to `result`. + * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`. * * If the `urlObject.pathname` property is a string that is not an empty string: - * * If the `urlObject.pathname`_does not start_ with an ASCII forward slash + * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash * (`/`), then the literal string `'/'` is appended to `result`. * * The value of `urlObject.pathname` is appended to `result`. * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the - * `querystring` module's `stringify()`method passing the value of `urlObject.query`. + * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the + * `querystring` module's `stringify()` method passing the value of `urlObject.query`. * * Otherwise, if `urlObject.search` is a string: - * * If the value of `urlObject.search`_does not start_ with the ASCII question + * * If the value of `urlObject.search` _does not start_ with the ASCII question * mark (`?`) character, the literal string `?` is appended to `result`. * * The value of `urlObject.search` is appended to `result`. * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown. * * If the `urlObject.hash` property is a string: - * * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`) + * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`) * character, the literal string `#` is appended to `result`. * * The value of `urlObject.hash` is appended to `result`. * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a @@ -345,9 +345,26 @@ declare module "url" { */ function urlToHttpOptions(url: URL): ClientRequestArgs; interface URLFormatOptions { + /** + * `true` if the serialized URL string should include the username and password, `false` otherwise. + * @default true + */ auth?: boolean | undefined; + /** + * `true` if the serialized URL string should include the fragment, `false` otherwise. + * @default true + */ fragment?: boolean | undefined; + /** + * `true` if the serialized URL string should include the search query, `false` otherwise. + * @default true + */ search?: boolean | undefined; + /** + * `true` if Unicode characters appearing in the host component of the URL string should be encoded directly as opposed to + * being Punycode encoded. + * @default false + */ unicode?: boolean | undefined; } /** @@ -357,7 +374,7 @@ declare module "url" { * * In accordance with browser conventions, all properties of `URL` objects * are implemented as getters and setters on the class prototype, rather than as - * data properties on the object itself. Thus, unlike `legacy urlObject` s, + * data properties on the object itself. Thus, unlike `legacy urlObject`s, * using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still * return `true`. * @since v7.0.0, v6.13.0 @@ -381,7 +398,7 @@ declare module "url" { * console.log(otherBlob.size); * ``` * - * The data stored by the registered `Blob` will be retained in memory until`URL.revokeObjectURL()` is called to remove it. + * The data stored by the registered `Blob` will be retained in memory until `URL.revokeObjectURL()` is called to remove it. * * `Blob` objects are registered within the current thread. If using Worker * Threads, `Blob` objects registered within one Worker will not be available @@ -397,7 +414,7 @@ declare module "url" { * @experimental * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`. */ - static revokeObjectURL(objectUrl: string): void; + static revokeObjectURL(id: string): void; /** * Checks if an `input` relative to the `base` can be parsed to a `URL`. * @@ -412,7 +429,7 @@ declare module "url" { * @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first. */ static canParse(input: string, base?: string): boolean; - constructor(input: string, base?: string | URL); + constructor(input: string | { toString: () => string }, base?: string | URL); /** * Gets and sets the fragment portion of the URL. * @@ -541,14 +558,14 @@ declare module "url" { * // Prints https://example.org/abcdef?123 * ``` * - * Invalid URL characters included in the value assigned to the `pathname`property are `percent-encoded`. The selection of which characters + * Invalid URL characters included in the value assigned to the `pathname` property are `percent-encoded`. The selection of which characters * to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. */ pathname: string; /** * Gets and sets the port portion of the URL. * - * The port value may be a number or a string containing a number in the range`0` to `65535` (inclusive). Setting the value to the default port of the`URL` objects given `protocol` will + * The port value may be a number or a string containing a number in the range `0` to `65535` (inclusive). Setting the value to the default port of the `URL` objects given `protocol` will * result in the `port` value becoming * the empty string (`''`). * @@ -688,7 +705,7 @@ declare module "url" { * // Prints https://123:xyz@example.com/ * ``` * - * Any invalid URL characters appearing in the value assigned the `username`property will be `percent-encoded`. The selection of which + * Any invalid URL characters appearing in the value assigned the `username` property will be `percent-encoded`. The selection of which * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. */ username: string; @@ -716,7 +733,7 @@ declare module "url" { toJSON(): string; } /** - * The `URLSearchParams` API provides read and write access to the query of a`URL`. The `URLSearchParams` class can also be used standalone with one of the + * The `URLSearchParams` API provides read and write access to the query of a `URL`. The `URLSearchParams` class can also be used standalone with one of the * four following constructors. * The `URLSearchParams` class is also available on the global object. * @@ -774,14 +791,14 @@ declare module "url" { append(name: string, value: string): void; /** * If `value` is provided, removes all name-value pairs - * where name is `name` and value is `value`.. + * where name is `name` and value is `value`. * * If `value` is not provided, removes all name-value pairs whose name is `name`. */ delete(name: string, value?: string): void; /** * Returns an ES6 `Iterator` over each of the name-value pairs in the query. - * Each item of the iterator is a JavaScript `Array`. The first item of the `Array`is the `name`, the second item of the `Array` is the `value`. + * Each item of the iterator is a JavaScript `Array`. The first item of the `Array` is the `name`, the second item of the `Array` is the `value`. * * Alias for `urlSearchParams[@@iterator]()`. */ @@ -802,7 +819,7 @@ declare module "url" { * @param thisArg To be used as `this` value for when `fn` is called */ forEach( - callback: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void, + fn: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void, thisArg?: TThis, ): void; /** @@ -817,7 +834,7 @@ declare module "url" { */ getAll(name: string): string[]; /** - * Checks if the `URLSearchParams` object contains key-value pair(s) based on`name` and an optional `value` argument. + * Checks if the `URLSearchParams` object contains key-value pair(s) based on `name` and an optional `value` argument. * * If `value` is provided, returns `true` when name-value pair with * same `name` and `value` exists. diff --git a/Scripts/node_modules/@types/node/ts4.8/util.d.ts b/Scripts/node_modules/@types/node/ts4.8/util.d.ts index ac269ec1..08712f52 100644 --- a/Scripts/node_modules/@types/node/ts4.8/util.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/util.d.ts @@ -1602,7 +1602,7 @@ declare module "util" { * Each item of the iterator is a JavaScript `Array`. The first item of the array * is the `name`, the second item of the array is the `value`. */ - entries(): IterableIterator<[string, string]>; + entries(): IterableIterator<[name: string, value: string]>; /** * Returns the value of the first name-value pair whose name is `name`. If there * are no such pairs, `null` is returned. diff --git a/Scripts/node_modules/@types/node/ts4.8/v8.d.ts b/Scripts/node_modules/@types/node/ts4.8/v8.d.ts index 6790e762..b2aeee27 100644 --- a/Scripts/node_modules/@types/node/ts4.8/v8.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/v8.d.ts @@ -4,7 +4,7 @@ * ```js * const v8 = require('node:v8'); * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/v8.js) + * @see [source](https://github.com/nodejs/node/blob/v20.11.0/lib/v8.js) */ declare module "v8" { import { Readable } from "node:stream"; @@ -38,6 +38,18 @@ declare module "v8" { bytecode_and_metadata_size: number; external_script_source_size: number; } + interface HeapSnapshotOptions { + /** + * If true, expose internals in the heap snapshot. + * @default false + */ + exposeInternals?: boolean; + /** + * If true, expose numeric values in artificial fields. + * @default false + */ + exposeNumericValues?: boolean; + } /** * Returns an integer representing a version tag derived from the V8 version, * command-line flags, and detected CPU features. This is useful for determining @@ -105,7 +117,7 @@ declare module "v8" { * Returns statistics about the V8 heap spaces, i.e. the segments which make up * the V8 heap. Neither the ordering of heap spaces, nor the availability of a * heap space can be guaranteed as the statistics are provided via the - * V8[`GetHeapSpaceStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#ac673576f24fdc7a33378f8f57e1d13a4) function and may change from one V8 version to the + * V8 [`GetHeapSpaceStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#ac673576f24fdc7a33378f8f57e1d13a4) function and may change from one V8 version to the * next. * * The value returned is an array of objects containing the following properties: @@ -194,7 +206,7 @@ declare module "v8" { * @since v11.13.0 * @return A Readable containing the V8 heap snapshot. */ - function getHeapSnapshot(): Readable; + function getHeapSnapshot(options?: HeapSnapshotOptions): Readable; /** * Generates a snapshot of the current V8 heap and writes it to a JSON * file. This file is intended to be used with tools such as Chrome @@ -246,10 +258,10 @@ declare module "v8" { * worker thread. * @return The filename where the snapshot was saved. */ - function writeHeapSnapshot(filename?: string): string; + function writeHeapSnapshot(filename?: string, options?: HeapSnapshotOptions): string; /** * Get statistics about code and its metadata in the heap, see - * V8[`GetHeapCodeAndMetadataStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#a6079122af17612ef54ef3348ce170866) API. Returns an object with the + * V8 [`GetHeapCodeAndMetadataStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#a6079122af17612ef54ef3348ce170866) API. Returns an object with the * following properties: * * ```js @@ -408,6 +420,13 @@ declare module "v8" { * @since v15.1.0, v14.18.0, v12.22.0 */ function stopCoverage(): void; + /** + * The API is a no-op if `--heapsnapshot-near-heap-limit` is already set from the command line or the API is called more than once. + * `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--heapsnapshot-near-heap-limitmax_count) for more information. + * @experimental + * @since v18.10.0, v16.18.0 + */ + function setHeapSnapshotNearHeapLimit(limit: number): void; /** * This API collects GC data in current thread. * @since v19.6.0, v18.15.0 @@ -629,6 +648,116 @@ declare module "v8" { * @since v17.1.0, v16.14.0 */ const promiseHooks: PromiseHooks; + type StartupSnapshotCallbackFn = (args: any) => any; + interface StartupSnapshot { + /** + * Add a callback that will be called when the Node.js instance is about to get serialized into a snapshot and exit. + * This can be used to release resources that should not or cannot be serialized or to convert user data into a form more suitable for serialization. + * @since v18.6.0, v16.17.0 + */ + addSerializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void; + /** + * Add a callback that will be called when the Node.js instance is deserialized from a snapshot. + * The `callback` and the `data` (if provided) will be serialized into the snapshot, they can be used to re-initialize the state of the application or + * to re-acquire resources that the application needs when the application is restarted from the snapshot. + * @since v18.6.0, v16.17.0 + */ + addDeserializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void; + /** + * This sets the entry point of the Node.js application when it is deserialized from a snapshot. This can be called only once in the snapshot building script. + * If called, the deserialized application no longer needs an additional entry point script to start up and will simply invoke the callback along with the deserialized + * data (if provided), otherwise an entry point script still needs to be provided to the deserialized application. + * @since v18.6.0, v16.17.0 + */ + setDeserializeMainFunction(callback: StartupSnapshotCallbackFn, data?: any): void; + /** + * Returns true if the Node.js instance is run to build a snapshot. + * @since v18.6.0, v16.17.0 + */ + isBuildingSnapshot(): boolean; + } + /** + * The `v8.startupSnapshot` interface can be used to add serialization and deserialization hooks for custom startup snapshots. + * + * ```bash + * $ node --snapshot-blob snapshot.blob --build-snapshot entry.js + * # This launches a process with the snapshot + * $ node --snapshot-blob snapshot.blob + * ``` + * + * In the example above, `entry.js` can use methods from the `v8.startupSnapshot` interface to specify how to save information for custom objects + * in the snapshot during serialization and how the information can be used to synchronize these objects during deserialization of the snapshot. + * For example, if the `entry.js` contains the following script: + * + * ```js + * 'use strict'; + * + * const fs = require('node:fs'); + * const zlib = require('node:zlib'); + * const path = require('node:path'); + * const assert = require('node:assert'); + * + * const v8 = require('node:v8'); + * + * class BookShelf { + * storage = new Map(); + * + * // Reading a series of files from directory and store them into storage. + * constructor(directory, books) { + * for (const book of books) { + * this.storage.set(book, fs.readFileSync(path.join(directory, book))); + * } + * } + * + * static compressAll(shelf) { + * for (const [ book, content ] of shelf.storage) { + * shelf.storage.set(book, zlib.gzipSync(content)); + * } + * } + * + * static decompressAll(shelf) { + * for (const [ book, content ] of shelf.storage) { + * shelf.storage.set(book, zlib.gunzipSync(content)); + * } + * } + * } + * + * // __dirname here is where the snapshot script is placed + * // during snapshot building time. + * const shelf = new BookShelf(__dirname, [ + * 'book1.en_US.txt', + * 'book1.es_ES.txt', + * 'book2.zh_CN.txt', + * ]); + * + * assert(v8.startupSnapshot.isBuildingSnapshot()); + * // On snapshot serialization, compress the books to reduce size. + * v8.startupSnapshot.addSerializeCallback(BookShelf.compressAll, shelf); + * // On snapshot deserialization, decompress the books. + * v8.startupSnapshot.addDeserializeCallback(BookShelf.decompressAll, shelf); + * v8.startupSnapshot.setDeserializeMainFunction((shelf) => { + * // process.env and process.argv are refreshed during snapshot + * // deserialization. + * const lang = process.env.BOOK_LANG || 'en_US'; + * const book = process.argv[1]; + * const name = `${book}.${lang}.txt`; + * console.log(shelf.storage.get(name)); + * }, shelf); + * ``` + * + * The resulted binary will get print the data deserialized from the snapshot during start up, using the refreshed `process.env` and `process.argv` of the launched process: + * + * ```bash + * $ BOOK_LANG=es_ES node --snapshot-blob snapshot.blob book1 + * # Prints content of book1.es_ES.txt deserialized from the snapshot. + * ``` + * + * Currently the application deserialized from a user-land snapshot cannot be snapshotted again, so these APIs are only available to applications that are not deserialized from a user-land snapshot. + * + * @experimental + * @since v18.6.0, v16.17.0 + */ + const startupSnapshot: StartupSnapshot; } declare module "node:v8" { export * from "v8"; diff --git a/Scripts/node_modules/@types/node/ts4.8/wasi.d.ts b/Scripts/node_modules/@types/node/ts4.8/wasi.d.ts index caaf6095..e1239fa7 100644 --- a/Scripts/node_modules/@types/node/ts4.8/wasi.d.ts +++ b/Scripts/node_modules/@types/node/ts4.8/wasi.d.ts @@ -1,6 +1,11 @@ /** - * The WASI API provides an implementation of the [WebAssembly System Interface](https://wasi.dev/) specification. WASI gives sandboxed WebAssembly applications access to the - * underlying operating system via a collection of POSIX-like functions. + * **The `node:wasi` module does not currently provide the** + * **comprehensive file system security properties provided by some WASI runtimes.** + * **Full support for secure file system sandboxing may or may not be implemented in** + * **future. In the mean time, do not rely on it to run untrusted code.** + * + * The WASI API provides an implementation of the [WebAssembly System Interface](https://wasi.dev/) specification. WASI gives WebAssembly applications access to the underlying + * operating system via a collection of POSIX-like functions. * * ```js * import { readFile } from 'node:fs/promises'; @@ -12,7 +17,7 @@ * args: argv, * env, * preopens: { - * '/sandbox': '/some/real/path/that/wasm/can/access', + * '/local': '/some/real/path/that/wasm/can/access', * }, * }); * @@ -117,12 +122,28 @@ declare module "wasi" { /** * The `WASI` class provides the WASI system call API and additional convenience * methods for working with WASI-based applications. Each `WASI` instance - * represents a distinct sandbox environment. For security purposes, each `WASI`instance must have its command-line arguments, environment variables, and - * sandbox directory structure configured explicitly. + * represents a distinct environment. * @since v13.3.0, v12.16.0 */ class WASI { constructor(options?: WASIOptions); + /** + * Return an import object that can be passed to `WebAssembly.instantiate()` if no other WASM imports are needed beyond those provided by WASI. + * + * If version `unstable` was passed into the constructor it will return: + * + * ```js + * { wasi_unstable: wasi.wasiImport } + * ``` + * + * If version `preview1` was passed into the constructor or no version was specified it will return: + * + * ```js + * { wasi_snapshot_preview1: wasi.wasiImport } + * ``` + * @since v19.8.0 + */ + getImportObject(): object; /** * Attempt to begin execution of `instance` as a WASI command by invoking its`_start()` export. If `instance` does not contain a `_start()` export, or if`instance` contains an `_initialize()` * export, then an exception is thrown. diff --git a/Scripts/node_modules/@types/node/url.d.ts b/Scripts/node_modules/@types/node/url.d.ts index 20a5d851..dc2d0a0a 100644 --- a/Scripts/node_modules/@types/node/url.d.ts +++ b/Scripts/node_modules/@types/node/url.d.ts @@ -5,7 +5,7 @@ * ```js * import url from 'node:url'; * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/url.js) + * @see [source](https://github.com/nodejs/node/blob/v20.11.0/lib/url.js) */ declare module "url" { import { Blob as NodeBlob } from "node:buffer"; @@ -74,7 +74,7 @@ declare module "url" { function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery; function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url; /** - * The `url.format()` method returns a formatted URL string derived from`urlObject`. + * The `url.format()` method returns a formatted URL string derived from `urlObject`. * * ```js * const url = require('node:url'); @@ -100,33 +100,33 @@ declare module "url" { * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown. * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII * colon (`:`) character, the literal string `:` will be appended to `result`. - * * If either of the following conditions is true, then the literal string `//`will be appended to `result`: + * * If either of the following conditions is true, then the literal string `//` will be appended to `result`: * * `urlObject.slashes` property is true; - * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`; - * * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string - * and appended to `result`followed by the literal string `@`. + * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`; + * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string + * and appended to `result` followed by the literal string `@`. * * If the `urlObject.host` property is `undefined` then: * * If the `urlObject.hostname` is a string, it is appended to `result`. * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string, * an `Error` is thrown. - * * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`: + * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`: * * The literal string `:` is appended to `result`, and - * * The value of `urlObject.port` is coerced to a string and appended to`result`. - * * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`. + * * The value of `urlObject.port` is coerced to a string and appended to `result`. + * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`. * * If the `urlObject.pathname` property is a string that is not an empty string: - * * If the `urlObject.pathname`_does not start_ with an ASCII forward slash + * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash * (`/`), then the literal string `'/'` is appended to `result`. * * The value of `urlObject.pathname` is appended to `result`. * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the - * `querystring` module's `stringify()`method passing the value of `urlObject.query`. + * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the + * `querystring` module's `stringify()` method passing the value of `urlObject.query`. * * Otherwise, if `urlObject.search` is a string: - * * If the value of `urlObject.search`_does not start_ with the ASCII question + * * If the value of `urlObject.search` _does not start_ with the ASCII question * mark (`?`) character, the literal string `?` is appended to `result`. * * The value of `urlObject.search` is appended to `result`. * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown. * * If the `urlObject.hash` property is a string: - * * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`) + * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`) * character, the literal string `#` is appended to `result`. * * The value of `urlObject.hash` is appended to `result`. * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a @@ -138,18 +138,18 @@ declare module "url" { */ function format(urlObject: URL, options?: URLFormatOptions): string; /** - * The `url.format()` method returns a formatted URL string derived from`urlObject`. + * The `url.format()` method returns a formatted URL string derived from `urlObject`. * * ```js - * const url = require('url'); + * const url = require('node:url'); * url.format({ * protocol: 'https', * hostname: 'example.com', * pathname: '/some/path', * query: { * page: 1, - * format: 'json' - * } + * format: 'json', + * }, * }); * * // => 'https://example.com/some/path?page=1&format=json' @@ -164,33 +164,33 @@ declare module "url" { * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown. * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII * colon (`:`) character, the literal string `:` will be appended to `result`. - * * If either of the following conditions is true, then the literal string `//`will be appended to `result`: + * * If either of the following conditions is true, then the literal string `//` will be appended to `result`: * * `urlObject.slashes` property is true; - * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`; - * * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string - * and appended to `result`followed by the literal string `@`. + * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`; + * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string + * and appended to `result` followed by the literal string `@`. * * If the `urlObject.host` property is `undefined` then: * * If the `urlObject.hostname` is a string, it is appended to `result`. * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string, * an `Error` is thrown. - * * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`: + * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`: * * The literal string `:` is appended to `result`, and - * * The value of `urlObject.port` is coerced to a string and appended to`result`. - * * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`. + * * The value of `urlObject.port` is coerced to a string and appended to `result`. + * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`. * * If the `urlObject.pathname` property is a string that is not an empty string: - * * If the `urlObject.pathname`_does not start_ with an ASCII forward slash + * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash * (`/`), then the literal string `'/'` is appended to `result`. * * The value of `urlObject.pathname` is appended to `result`. * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the - * `querystring` module's `stringify()`method passing the value of `urlObject.query`. + * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the + * `querystring` module's `stringify()` method passing the value of `urlObject.query`. * * Otherwise, if `urlObject.search` is a string: - * * If the value of `urlObject.search`_does not start_ with the ASCII question + * * If the value of `urlObject.search` _does not start_ with the ASCII question * mark (`?`) character, the literal string `?` is appended to `result`. * * The value of `urlObject.search` is appended to `result`. * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown. * * If the `urlObject.hash` property is a string: - * * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`) + * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`) * character, the literal string `#` is appended to `result`. * * The value of `urlObject.hash` is appended to `result`. * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a @@ -345,9 +345,26 @@ declare module "url" { */ function urlToHttpOptions(url: URL): ClientRequestArgs; interface URLFormatOptions { + /** + * `true` if the serialized URL string should include the username and password, `false` otherwise. + * @default true + */ auth?: boolean | undefined; + /** + * `true` if the serialized URL string should include the fragment, `false` otherwise. + * @default true + */ fragment?: boolean | undefined; + /** + * `true` if the serialized URL string should include the search query, `false` otherwise. + * @default true + */ search?: boolean | undefined; + /** + * `true` if Unicode characters appearing in the host component of the URL string should be encoded directly as opposed to + * being Punycode encoded. + * @default false + */ unicode?: boolean | undefined; } /** @@ -357,7 +374,7 @@ declare module "url" { * * In accordance with browser conventions, all properties of `URL` objects * are implemented as getters and setters on the class prototype, rather than as - * data properties on the object itself. Thus, unlike `legacy urlObject` s, + * data properties on the object itself. Thus, unlike `legacy urlObject`s, * using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still * return `true`. * @since v7.0.0, v6.13.0 @@ -381,7 +398,7 @@ declare module "url" { * console.log(otherBlob.size); * ``` * - * The data stored by the registered `Blob` will be retained in memory until`URL.revokeObjectURL()` is called to remove it. + * The data stored by the registered `Blob` will be retained in memory until `URL.revokeObjectURL()` is called to remove it. * * `Blob` objects are registered within the current thread. If using Worker * Threads, `Blob` objects registered within one Worker will not be available @@ -397,7 +414,7 @@ declare module "url" { * @experimental * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`. */ - static revokeObjectURL(objectUrl: string): void; + static revokeObjectURL(id: string): void; /** * Checks if an `input` relative to the `base` can be parsed to a `URL`. * @@ -412,7 +429,7 @@ declare module "url" { * @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first. */ static canParse(input: string, base?: string): boolean; - constructor(input: string, base?: string | URL); + constructor(input: string | { toString: () => string }, base?: string | URL); /** * Gets and sets the fragment portion of the URL. * @@ -541,14 +558,14 @@ declare module "url" { * // Prints https://example.org/abcdef?123 * ``` * - * Invalid URL characters included in the value assigned to the `pathname`property are `percent-encoded`. The selection of which characters + * Invalid URL characters included in the value assigned to the `pathname` property are `percent-encoded`. The selection of which characters * to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. */ pathname: string; /** * Gets and sets the port portion of the URL. * - * The port value may be a number or a string containing a number in the range`0` to `65535` (inclusive). Setting the value to the default port of the`URL` objects given `protocol` will + * The port value may be a number or a string containing a number in the range `0` to `65535` (inclusive). Setting the value to the default port of the `URL` objects given `protocol` will * result in the `port` value becoming * the empty string (`''`). * @@ -688,7 +705,7 @@ declare module "url" { * // Prints https://123:xyz@example.com/ * ``` * - * Any invalid URL characters appearing in the value assigned the `username`property will be `percent-encoded`. The selection of which + * Any invalid URL characters appearing in the value assigned the `username` property will be `percent-encoded`. The selection of which * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. */ username: string; @@ -716,7 +733,7 @@ declare module "url" { toJSON(): string; } /** - * The `URLSearchParams` API provides read and write access to the query of a`URL`. The `URLSearchParams` class can also be used standalone with one of the + * The `URLSearchParams` API provides read and write access to the query of a `URL`. The `URLSearchParams` class can also be used standalone with one of the * four following constructors. * The `URLSearchParams` class is also available on the global object. * @@ -774,14 +791,14 @@ declare module "url" { append(name: string, value: string): void; /** * If `value` is provided, removes all name-value pairs - * where name is `name` and value is `value`.. + * where name is `name` and value is `value`. * * If `value` is not provided, removes all name-value pairs whose name is `name`. */ delete(name: string, value?: string): void; /** * Returns an ES6 `Iterator` over each of the name-value pairs in the query. - * Each item of the iterator is a JavaScript `Array`. The first item of the `Array`is the `name`, the second item of the `Array` is the `value`. + * Each item of the iterator is a JavaScript `Array`. The first item of the `Array` is the `name`, the second item of the `Array` is the `value`. * * Alias for `urlSearchParams[@@iterator]()`. */ @@ -802,7 +819,7 @@ declare module "url" { * @param thisArg To be used as `this` value for when `fn` is called */ forEach( - callback: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void, + fn: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void, thisArg?: TThis, ): void; /** @@ -817,7 +834,7 @@ declare module "url" { */ getAll(name: string): string[]; /** - * Checks if the `URLSearchParams` object contains key-value pair(s) based on`name` and an optional `value` argument. + * Checks if the `URLSearchParams` object contains key-value pair(s) based on `name` and an optional `value` argument. * * If `value` is provided, returns `true` when name-value pair with * same `name` and `value` exists. diff --git a/Scripts/node_modules/@types/node/v8.d.ts b/Scripts/node_modules/@types/node/v8.d.ts index 6790e762..b2aeee27 100644 --- a/Scripts/node_modules/@types/node/v8.d.ts +++ b/Scripts/node_modules/@types/node/v8.d.ts @@ -4,7 +4,7 @@ * ```js * const v8 = require('node:v8'); * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/v8.js) + * @see [source](https://github.com/nodejs/node/blob/v20.11.0/lib/v8.js) */ declare module "v8" { import { Readable } from "node:stream"; @@ -38,6 +38,18 @@ declare module "v8" { bytecode_and_metadata_size: number; external_script_source_size: number; } + interface HeapSnapshotOptions { + /** + * If true, expose internals in the heap snapshot. + * @default false + */ + exposeInternals?: boolean; + /** + * If true, expose numeric values in artificial fields. + * @default false + */ + exposeNumericValues?: boolean; + } /** * Returns an integer representing a version tag derived from the V8 version, * command-line flags, and detected CPU features. This is useful for determining @@ -105,7 +117,7 @@ declare module "v8" { * Returns statistics about the V8 heap spaces, i.e. the segments which make up * the V8 heap. Neither the ordering of heap spaces, nor the availability of a * heap space can be guaranteed as the statistics are provided via the - * V8[`GetHeapSpaceStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#ac673576f24fdc7a33378f8f57e1d13a4) function and may change from one V8 version to the + * V8 [`GetHeapSpaceStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#ac673576f24fdc7a33378f8f57e1d13a4) function and may change from one V8 version to the * next. * * The value returned is an array of objects containing the following properties: @@ -194,7 +206,7 @@ declare module "v8" { * @since v11.13.0 * @return A Readable containing the V8 heap snapshot. */ - function getHeapSnapshot(): Readable; + function getHeapSnapshot(options?: HeapSnapshotOptions): Readable; /** * Generates a snapshot of the current V8 heap and writes it to a JSON * file. This file is intended to be used with tools such as Chrome @@ -246,10 +258,10 @@ declare module "v8" { * worker thread. * @return The filename where the snapshot was saved. */ - function writeHeapSnapshot(filename?: string): string; + function writeHeapSnapshot(filename?: string, options?: HeapSnapshotOptions): string; /** * Get statistics about code and its metadata in the heap, see - * V8[`GetHeapCodeAndMetadataStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#a6079122af17612ef54ef3348ce170866) API. Returns an object with the + * V8 [`GetHeapCodeAndMetadataStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#a6079122af17612ef54ef3348ce170866) API. Returns an object with the * following properties: * * ```js @@ -408,6 +420,13 @@ declare module "v8" { * @since v15.1.0, v14.18.0, v12.22.0 */ function stopCoverage(): void; + /** + * The API is a no-op if `--heapsnapshot-near-heap-limit` is already set from the command line or the API is called more than once. + * `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--heapsnapshot-near-heap-limitmax_count) for more information. + * @experimental + * @since v18.10.0, v16.18.0 + */ + function setHeapSnapshotNearHeapLimit(limit: number): void; /** * This API collects GC data in current thread. * @since v19.6.0, v18.15.0 @@ -629,6 +648,116 @@ declare module "v8" { * @since v17.1.0, v16.14.0 */ const promiseHooks: PromiseHooks; + type StartupSnapshotCallbackFn = (args: any) => any; + interface StartupSnapshot { + /** + * Add a callback that will be called when the Node.js instance is about to get serialized into a snapshot and exit. + * This can be used to release resources that should not or cannot be serialized or to convert user data into a form more suitable for serialization. + * @since v18.6.0, v16.17.0 + */ + addSerializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void; + /** + * Add a callback that will be called when the Node.js instance is deserialized from a snapshot. + * The `callback` and the `data` (if provided) will be serialized into the snapshot, they can be used to re-initialize the state of the application or + * to re-acquire resources that the application needs when the application is restarted from the snapshot. + * @since v18.6.0, v16.17.0 + */ + addDeserializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void; + /** + * This sets the entry point of the Node.js application when it is deserialized from a snapshot. This can be called only once in the snapshot building script. + * If called, the deserialized application no longer needs an additional entry point script to start up and will simply invoke the callback along with the deserialized + * data (if provided), otherwise an entry point script still needs to be provided to the deserialized application. + * @since v18.6.0, v16.17.0 + */ + setDeserializeMainFunction(callback: StartupSnapshotCallbackFn, data?: any): void; + /** + * Returns true if the Node.js instance is run to build a snapshot. + * @since v18.6.0, v16.17.0 + */ + isBuildingSnapshot(): boolean; + } + /** + * The `v8.startupSnapshot` interface can be used to add serialization and deserialization hooks for custom startup snapshots. + * + * ```bash + * $ node --snapshot-blob snapshot.blob --build-snapshot entry.js + * # This launches a process with the snapshot + * $ node --snapshot-blob snapshot.blob + * ``` + * + * In the example above, `entry.js` can use methods from the `v8.startupSnapshot` interface to specify how to save information for custom objects + * in the snapshot during serialization and how the information can be used to synchronize these objects during deserialization of the snapshot. + * For example, if the `entry.js` contains the following script: + * + * ```js + * 'use strict'; + * + * const fs = require('node:fs'); + * const zlib = require('node:zlib'); + * const path = require('node:path'); + * const assert = require('node:assert'); + * + * const v8 = require('node:v8'); + * + * class BookShelf { + * storage = new Map(); + * + * // Reading a series of files from directory and store them into storage. + * constructor(directory, books) { + * for (const book of books) { + * this.storage.set(book, fs.readFileSync(path.join(directory, book))); + * } + * } + * + * static compressAll(shelf) { + * for (const [ book, content ] of shelf.storage) { + * shelf.storage.set(book, zlib.gzipSync(content)); + * } + * } + * + * static decompressAll(shelf) { + * for (const [ book, content ] of shelf.storage) { + * shelf.storage.set(book, zlib.gunzipSync(content)); + * } + * } + * } + * + * // __dirname here is where the snapshot script is placed + * // during snapshot building time. + * const shelf = new BookShelf(__dirname, [ + * 'book1.en_US.txt', + * 'book1.es_ES.txt', + * 'book2.zh_CN.txt', + * ]); + * + * assert(v8.startupSnapshot.isBuildingSnapshot()); + * // On snapshot serialization, compress the books to reduce size. + * v8.startupSnapshot.addSerializeCallback(BookShelf.compressAll, shelf); + * // On snapshot deserialization, decompress the books. + * v8.startupSnapshot.addDeserializeCallback(BookShelf.decompressAll, shelf); + * v8.startupSnapshot.setDeserializeMainFunction((shelf) => { + * // process.env and process.argv are refreshed during snapshot + * // deserialization. + * const lang = process.env.BOOK_LANG || 'en_US'; + * const book = process.argv[1]; + * const name = `${book}.${lang}.txt`; + * console.log(shelf.storage.get(name)); + * }, shelf); + * ``` + * + * The resulted binary will get print the data deserialized from the snapshot during start up, using the refreshed `process.env` and `process.argv` of the launched process: + * + * ```bash + * $ BOOK_LANG=es_ES node --snapshot-blob snapshot.blob book1 + * # Prints content of book1.es_ES.txt deserialized from the snapshot. + * ``` + * + * Currently the application deserialized from a user-land snapshot cannot be snapshotted again, so these APIs are only available to applications that are not deserialized from a user-land snapshot. + * + * @experimental + * @since v18.6.0, v16.17.0 + */ + const startupSnapshot: StartupSnapshot; } declare module "node:v8" { export * from "v8"; diff --git a/Scripts/node_modules/@types/node/wasi.d.ts b/Scripts/node_modules/@types/node/wasi.d.ts index caaf6095..e1239fa7 100644 --- a/Scripts/node_modules/@types/node/wasi.d.ts +++ b/Scripts/node_modules/@types/node/wasi.d.ts @@ -1,6 +1,11 @@ /** - * The WASI API provides an implementation of the [WebAssembly System Interface](https://wasi.dev/) specification. WASI gives sandboxed WebAssembly applications access to the - * underlying operating system via a collection of POSIX-like functions. + * **The `node:wasi` module does not currently provide the** + * **comprehensive file system security properties provided by some WASI runtimes.** + * **Full support for secure file system sandboxing may or may not be implemented in** + * **future. In the mean time, do not rely on it to run untrusted code.** + * + * The WASI API provides an implementation of the [WebAssembly System Interface](https://wasi.dev/) specification. WASI gives WebAssembly applications access to the underlying + * operating system via a collection of POSIX-like functions. * * ```js * import { readFile } from 'node:fs/promises'; @@ -12,7 +17,7 @@ * args: argv, * env, * preopens: { - * '/sandbox': '/some/real/path/that/wasm/can/access', + * '/local': '/some/real/path/that/wasm/can/access', * }, * }); * @@ -117,12 +122,28 @@ declare module "wasi" { /** * The `WASI` class provides the WASI system call API and additional convenience * methods for working with WASI-based applications. Each `WASI` instance - * represents a distinct sandbox environment. For security purposes, each `WASI`instance must have its command-line arguments, environment variables, and - * sandbox directory structure configured explicitly. + * represents a distinct environment. * @since v13.3.0, v12.16.0 */ class WASI { constructor(options?: WASIOptions); + /** + * Return an import object that can be passed to `WebAssembly.instantiate()` if no other WASM imports are needed beyond those provided by WASI. + * + * If version `unstable` was passed into the constructor it will return: + * + * ```js + * { wasi_unstable: wasi.wasiImport } + * ``` + * + * If version `preview1` was passed into the constructor or no version was specified it will return: + * + * ```js + * { wasi_snapshot_preview1: wasi.wasiImport } + * ``` + * @since v19.8.0 + */ + getImportObject(): object; /** * Attempt to begin execution of `instance` as a WASI command by invoking its`_start()` export. If `instance` does not contain a `_start()` export, or if`instance` contains an `_initialize()` * export, then an exception is thrown. diff --git a/Scripts/node_modules/asynckit/LICENSE b/Scripts/node_modules/asynckit/LICENSE new file mode 100644 index 00000000..c9eca5dd --- /dev/null +++ b/Scripts/node_modules/asynckit/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 Alex Indigo + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Scripts/node_modules/asynckit/README.md b/Scripts/node_modules/asynckit/README.md new file mode 100644 index 00000000..ddcc7e6b --- /dev/null +++ b/Scripts/node_modules/asynckit/README.md @@ -0,0 +1,233 @@ +# asynckit [![NPM Module](https://img.shields.io/npm/v/asynckit.svg?style=flat)](https://www.npmjs.com/package/asynckit) + +Minimal async jobs utility library, with streams support. + +[![PhantomJS Build](https://img.shields.io/travis/alexindigo/asynckit/v0.4.0.svg?label=browser&style=flat)](https://travis-ci.org/alexindigo/asynckit) +[![Linux Build](https://img.shields.io/travis/alexindigo/asynckit/v0.4.0.svg?label=linux:0.12-6.x&style=flat)](https://travis-ci.org/alexindigo/asynckit) +[![Windows Build](https://img.shields.io/appveyor/ci/alexindigo/asynckit/v0.4.0.svg?label=windows:0.12-6.x&style=flat)](https://ci.appveyor.com/project/alexindigo/asynckit) + +[![Coverage Status](https://img.shields.io/coveralls/alexindigo/asynckit/v0.4.0.svg?label=code+coverage&style=flat)](https://coveralls.io/github/alexindigo/asynckit?branch=master) +[![Dependency Status](https://img.shields.io/david/alexindigo/asynckit/v0.4.0.svg?style=flat)](https://david-dm.org/alexindigo/asynckit) +[![bitHound Overall Score](https://www.bithound.io/github/alexindigo/asynckit/badges/score.svg)](https://www.bithound.io/github/alexindigo/asynckit) + + + +AsyncKit provides harness for `parallel` and `serial` iterators over list of items represented by arrays or objects. +Optionally it accepts abort function (should be synchronously return by iterator for each item), and terminates left over jobs upon an error event. For specific iteration order built-in (`ascending` and `descending`) and custom sort helpers also supported, via `asynckit.serialOrdered` method. + +It ensures async operations to keep behavior more stable and prevent `Maximum call stack size exceeded` errors, from sync iterators. + +| compression | size | +| :----------------- | -------: | +| asynckit.js | 12.34 kB | +| asynckit.min.js | 4.11 kB | +| asynckit.min.js.gz | 1.47 kB | + + +## Install + +```sh +$ npm install --save asynckit +``` + +## Examples + +### Parallel Jobs + +Runs iterator over provided array in parallel. Stores output in the `result` array, +on the matching positions. In unlikely event of an error from one of the jobs, +will terminate rest of the active jobs (if abort function is provided) +and return error along with salvaged data to the main callback function. + +#### Input Array + +```javascript +var parallel = require('asynckit').parallel + , assert = require('assert') + ; + +var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ] + , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ] + , expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ] + , target = [] + ; + +parallel(source, asyncJob, function(err, result) +{ + assert.deepEqual(result, expectedResult); + assert.deepEqual(target, expectedTarget); +}); + +// async job accepts one element from the array +// and a callback function +function asyncJob(item, cb) +{ + // different delays (in ms) per item + var delay = item * 25; + + // pretend different jobs take different time to finish + // and not in consequential order + var timeoutId = setTimeout(function() { + target.push(item); + cb(null, item * 2); + }, delay); + + // allow to cancel "leftover" jobs upon error + // return function, invoking of which will abort this job + return clearTimeout.bind(null, timeoutId); +} +``` + +More examples could be found in [test/test-parallel-array.js](test/test-parallel-array.js). + +#### Input Object + +Also it supports named jobs, listed via object. + +```javascript +var parallel = require('asynckit/parallel') + , assert = require('assert') + ; + +var source = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 } + , expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 } + , expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ] + , expectedKeys = [ 'first', 'one', 'two', 'four', 'eight', 'sixteen', 'thirtyTwo', 'sixtyFour' ] + , target = [] + , keys = [] + ; + +parallel(source, asyncJob, function(err, result) +{ + assert.deepEqual(result, expectedResult); + assert.deepEqual(target, expectedTarget); + assert.deepEqual(keys, expectedKeys); +}); + +// supports full value, key, callback (shortcut) interface +function asyncJob(item, key, cb) +{ + // different delays (in ms) per item + var delay = item * 25; + + // pretend different jobs take different time to finish + // and not in consequential order + var timeoutId = setTimeout(function() { + keys.push(key); + target.push(item); + cb(null, item * 2); + }, delay); + + // allow to cancel "leftover" jobs upon error + // return function, invoking of which will abort this job + return clearTimeout.bind(null, timeoutId); +} +``` + +More examples could be found in [test/test-parallel-object.js](test/test-parallel-object.js). + +### Serial Jobs + +Runs iterator over provided array sequentially. Stores output in the `result` array, +on the matching positions. In unlikely event of an error from one of the jobs, +will not proceed to the rest of the items in the list +and return error along with salvaged data to the main callback function. + +#### Input Array + +```javascript +var serial = require('asynckit/serial') + , assert = require('assert') + ; + +var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ] + , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ] + , expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ] + , target = [] + ; + +serial(source, asyncJob, function(err, result) +{ + assert.deepEqual(result, expectedResult); + assert.deepEqual(target, expectedTarget); +}); + +// extended interface (item, key, callback) +// also supported for arrays +function asyncJob(item, key, cb) +{ + target.push(key); + + // it will be automatically made async + // even it iterator "returns" in the same event loop + cb(null, item * 2); +} +``` + +More examples could be found in [test/test-serial-array.js](test/test-serial-array.js). + +#### Input Object + +Also it supports named jobs, listed via object. + +```javascript +var serial = require('asynckit').serial + , assert = require('assert') + ; + +var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ] + , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ] + , expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ] + , target = [] + ; + +var source = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 } + , expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 } + , expectedTarget = [ 1, 1, 4, 16, 64, 32, 8, 2 ] + , target = [] + ; + + +serial(source, asyncJob, function(err, result) +{ + assert.deepEqual(result, expectedResult); + assert.deepEqual(target, expectedTarget); +}); + +// shortcut interface (item, callback) +// works for object as well as for the arrays +function asyncJob(item, cb) +{ + target.push(item); + + // it will be automatically made async + // even it iterator "returns" in the same event loop + cb(null, item * 2); +} +``` + +More examples could be found in [test/test-serial-object.js](test/test-serial-object.js). + +_Note: Since _object_ is an _unordered_ collection of properties, +it may produce unexpected results with sequential iterations. +Whenever order of the jobs' execution is important please use `serialOrdered` method._ + +### Ordered Serial Iterations + +TBD + +For example [compare-property](compare-property) package. + +### Streaming interface + +TBD + +## Want to Know More? + +More examples can be found in [test folder](test/). + +Or open an [issue](https://github.com/alexindigo/asynckit/issues) with questions and/or suggestions. + +## License + +AsyncKit is licensed under the MIT license. diff --git a/Scripts/node_modules/asynckit/bench.js b/Scripts/node_modules/asynckit/bench.js new file mode 100644 index 00000000..c612f1a5 --- /dev/null +++ b/Scripts/node_modules/asynckit/bench.js @@ -0,0 +1,76 @@ +/* eslint no-console: "off" */ + +var asynckit = require('./') + , async = require('async') + , assert = require('assert') + , expected = 0 + ; + +var Benchmark = require('benchmark'); +var suite = new Benchmark.Suite; + +var source = []; +for (var z = 1; z < 100; z++) +{ + source.push(z); + expected += z; +} + +suite +// add tests + +.add('async.map', function(deferred) +{ + var total = 0; + + async.map(source, + function(i, cb) + { + setImmediate(function() + { + total += i; + cb(null, total); + }); + }, + function(err, result) + { + assert.ifError(err); + assert.equal(result[result.length - 1], expected); + deferred.resolve(); + }); +}, {'defer': true}) + + +.add('asynckit.parallel', function(deferred) +{ + var total = 0; + + asynckit.parallel(source, + function(i, cb) + { + setImmediate(function() + { + total += i; + cb(null, total); + }); + }, + function(err, result) + { + assert.ifError(err); + assert.equal(result[result.length - 1], expected); + deferred.resolve(); + }); +}, {'defer': true}) + + +// add listeners +.on('cycle', function(ev) +{ + console.log(String(ev.target)); +}) +.on('complete', function() +{ + console.log('Fastest is ' + this.filter('fastest').map('name')); +}) +// run async +.run({ 'async': true }); diff --git a/Scripts/node_modules/asynckit/index.js b/Scripts/node_modules/asynckit/index.js new file mode 100644 index 00000000..455f9454 --- /dev/null +++ b/Scripts/node_modules/asynckit/index.js @@ -0,0 +1,6 @@ +module.exports = +{ + parallel : require('./parallel.js'), + serial : require('./serial.js'), + serialOrdered : require('./serialOrdered.js') +}; diff --git a/Scripts/node_modules/asynckit/lib/abort.js b/Scripts/node_modules/asynckit/lib/abort.js new file mode 100644 index 00000000..114367e5 --- /dev/null +++ b/Scripts/node_modules/asynckit/lib/abort.js @@ -0,0 +1,29 @@ +// API +module.exports = abort; + +/** + * Aborts leftover active jobs + * + * @param {object} state - current state object + */ +function abort(state) +{ + Object.keys(state.jobs).forEach(clean.bind(state)); + + // reset leftover jobs + state.jobs = {}; +} + +/** + * Cleans up leftover job by invoking abort function for the provided job id + * + * @this state + * @param {string|number} key - job id to abort + */ +function clean(key) +{ + if (typeof this.jobs[key] == 'function') + { + this.jobs[key](); + } +} diff --git a/Scripts/node_modules/asynckit/lib/async.js b/Scripts/node_modules/asynckit/lib/async.js new file mode 100644 index 00000000..7f1288a4 --- /dev/null +++ b/Scripts/node_modules/asynckit/lib/async.js @@ -0,0 +1,34 @@ +var defer = require('./defer.js'); + +// API +module.exports = async; + +/** + * Runs provided callback asynchronously + * even if callback itself is not + * + * @param {function} callback - callback to invoke + * @returns {function} - augmented callback + */ +function async(callback) +{ + var isAsync = false; + + // check if async happened + defer(function() { isAsync = true; }); + + return function async_callback(err, result) + { + if (isAsync) + { + callback(err, result); + } + else + { + defer(function nextTick_callback() + { + callback(err, result); + }); + } + }; +} diff --git a/Scripts/node_modules/asynckit/lib/defer.js b/Scripts/node_modules/asynckit/lib/defer.js new file mode 100644 index 00000000..b67110c7 --- /dev/null +++ b/Scripts/node_modules/asynckit/lib/defer.js @@ -0,0 +1,26 @@ +module.exports = defer; + +/** + * Runs provided function on next iteration of the event loop + * + * @param {function} fn - function to run + */ +function defer(fn) +{ + var nextTick = typeof setImmediate == 'function' + ? setImmediate + : ( + typeof process == 'object' && typeof process.nextTick == 'function' + ? process.nextTick + : null + ); + + if (nextTick) + { + nextTick(fn); + } + else + { + setTimeout(fn, 0); + } +} diff --git a/Scripts/node_modules/asynckit/lib/iterate.js b/Scripts/node_modules/asynckit/lib/iterate.js new file mode 100644 index 00000000..5d2839a5 --- /dev/null +++ b/Scripts/node_modules/asynckit/lib/iterate.js @@ -0,0 +1,75 @@ +var async = require('./async.js') + , abort = require('./abort.js') + ; + +// API +module.exports = iterate; + +/** + * Iterates over each job object + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {object} state - current job status + * @param {function} callback - invoked when all elements processed + */ +function iterate(list, iterator, state, callback) +{ + // store current index + var key = state['keyedList'] ? state['keyedList'][state.index] : state.index; + + state.jobs[key] = runJob(iterator, key, list[key], function(error, output) + { + // don't repeat yourself + // skip secondary callbacks + if (!(key in state.jobs)) + { + return; + } + + // clean up jobs + delete state.jobs[key]; + + if (error) + { + // don't process rest of the results + // stop still active jobs + // and reset the list + abort(state); + } + else + { + state.results[key] = output; + } + + // return salvaged results + callback(error, state.results); + }); +} + +/** + * Runs iterator over provided job element + * + * @param {function} iterator - iterator to invoke + * @param {string|number} key - key/index of the element in the list of jobs + * @param {mixed} item - job description + * @param {function} callback - invoked after iterator is done with the job + * @returns {function|mixed} - job abort function or something else + */ +function runJob(iterator, key, item, callback) +{ + var aborter; + + // allow shortcut if iterator expects only two arguments + if (iterator.length == 2) + { + aborter = iterator(item, async(callback)); + } + // otherwise go with full three arguments + else + { + aborter = iterator(item, key, async(callback)); + } + + return aborter; +} diff --git a/Scripts/node_modules/asynckit/lib/readable_asynckit.js b/Scripts/node_modules/asynckit/lib/readable_asynckit.js new file mode 100644 index 00000000..78ad240f --- /dev/null +++ b/Scripts/node_modules/asynckit/lib/readable_asynckit.js @@ -0,0 +1,91 @@ +var streamify = require('./streamify.js') + , defer = require('./defer.js') + ; + +// API +module.exports = ReadableAsyncKit; + +/** + * Base constructor for all streams + * used to hold properties/methods + */ +function ReadableAsyncKit() +{ + ReadableAsyncKit.super_.apply(this, arguments); + + // list of active jobs + this.jobs = {}; + + // add stream methods + this.destroy = destroy; + this._start = _start; + this._read = _read; +} + +/** + * Destroys readable stream, + * by aborting outstanding jobs + * + * @returns {void} + */ +function destroy() +{ + if (this.destroyed) + { + return; + } + + this.destroyed = true; + + if (typeof this.terminator == 'function') + { + this.terminator(); + } +} + +/** + * Starts provided jobs in async manner + * + * @private + */ +function _start() +{ + // first argument – runner function + var runner = arguments[0] + // take away first argument + , args = Array.prototype.slice.call(arguments, 1) + // second argument - input data + , input = args[0] + // last argument - result callback + , endCb = streamify.callback.call(this, args[args.length - 1]) + ; + + args[args.length - 1] = endCb; + // third argument - iterator + args[1] = streamify.iterator.call(this, args[1]); + + // allow time for proper setup + defer(function() + { + if (!this.destroyed) + { + this.terminator = runner.apply(null, args); + } + else + { + endCb(null, Array.isArray(input) ? [] : {}); + } + }.bind(this)); +} + + +/** + * Implement _read to comply with Readable streams + * Doesn't really make sense for flowing object mode + * + * @private + */ +function _read() +{ + +} diff --git a/Scripts/node_modules/asynckit/lib/readable_parallel.js b/Scripts/node_modules/asynckit/lib/readable_parallel.js new file mode 100644 index 00000000..5d2929f7 --- /dev/null +++ b/Scripts/node_modules/asynckit/lib/readable_parallel.js @@ -0,0 +1,25 @@ +var parallel = require('../parallel.js'); + +// API +module.exports = ReadableParallel; + +/** + * Streaming wrapper to `asynckit.parallel` + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} callback - invoked when all elements processed + * @returns {stream.Readable#} + */ +function ReadableParallel(list, iterator, callback) +{ + if (!(this instanceof ReadableParallel)) + { + return new ReadableParallel(list, iterator, callback); + } + + // turn on object mode + ReadableParallel.super_.call(this, {objectMode: true}); + + this._start(parallel, list, iterator, callback); +} diff --git a/Scripts/node_modules/asynckit/lib/readable_serial.js b/Scripts/node_modules/asynckit/lib/readable_serial.js new file mode 100644 index 00000000..78226982 --- /dev/null +++ b/Scripts/node_modules/asynckit/lib/readable_serial.js @@ -0,0 +1,25 @@ +var serial = require('../serial.js'); + +// API +module.exports = ReadableSerial; + +/** + * Streaming wrapper to `asynckit.serial` + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} callback - invoked when all elements processed + * @returns {stream.Readable#} + */ +function ReadableSerial(list, iterator, callback) +{ + if (!(this instanceof ReadableSerial)) + { + return new ReadableSerial(list, iterator, callback); + } + + // turn on object mode + ReadableSerial.super_.call(this, {objectMode: true}); + + this._start(serial, list, iterator, callback); +} diff --git a/Scripts/node_modules/asynckit/lib/readable_serial_ordered.js b/Scripts/node_modules/asynckit/lib/readable_serial_ordered.js new file mode 100644 index 00000000..3de89c47 --- /dev/null +++ b/Scripts/node_modules/asynckit/lib/readable_serial_ordered.js @@ -0,0 +1,29 @@ +var serialOrdered = require('../serialOrdered.js'); + +// API +module.exports = ReadableSerialOrdered; +// expose sort helpers +module.exports.ascending = serialOrdered.ascending; +module.exports.descending = serialOrdered.descending; + +/** + * Streaming wrapper to `asynckit.serialOrdered` + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} sortMethod - custom sort function + * @param {function} callback - invoked when all elements processed + * @returns {stream.Readable#} + */ +function ReadableSerialOrdered(list, iterator, sortMethod, callback) +{ + if (!(this instanceof ReadableSerialOrdered)) + { + return new ReadableSerialOrdered(list, iterator, sortMethod, callback); + } + + // turn on object mode + ReadableSerialOrdered.super_.call(this, {objectMode: true}); + + this._start(serialOrdered, list, iterator, sortMethod, callback); +} diff --git a/Scripts/node_modules/asynckit/lib/state.js b/Scripts/node_modules/asynckit/lib/state.js new file mode 100644 index 00000000..cbea7ad8 --- /dev/null +++ b/Scripts/node_modules/asynckit/lib/state.js @@ -0,0 +1,37 @@ +// API +module.exports = state; + +/** + * Creates initial state object + * for iteration over list + * + * @param {array|object} list - list to iterate over + * @param {function|null} sortMethod - function to use for keys sort, + * or `null` to keep them as is + * @returns {object} - initial state object + */ +function state(list, sortMethod) +{ + var isNamedList = !Array.isArray(list) + , initState = + { + index : 0, + keyedList: isNamedList || sortMethod ? Object.keys(list) : null, + jobs : {}, + results : isNamedList ? {} : [], + size : isNamedList ? Object.keys(list).length : list.length + } + ; + + if (sortMethod) + { + // sort array keys based on it's values + // sort object's keys just on own merit + initState.keyedList.sort(isNamedList ? sortMethod : function(a, b) + { + return sortMethod(list[a], list[b]); + }); + } + + return initState; +} diff --git a/Scripts/node_modules/asynckit/lib/streamify.js b/Scripts/node_modules/asynckit/lib/streamify.js new file mode 100644 index 00000000..f56a1c92 --- /dev/null +++ b/Scripts/node_modules/asynckit/lib/streamify.js @@ -0,0 +1,141 @@ +var async = require('./async.js'); + +// API +module.exports = { + iterator: wrapIterator, + callback: wrapCallback +}; + +/** + * Wraps iterators with long signature + * + * @this ReadableAsyncKit# + * @param {function} iterator - function to wrap + * @returns {function} - wrapped function + */ +function wrapIterator(iterator) +{ + var stream = this; + + return function(item, key, cb) + { + var aborter + , wrappedCb = async(wrapIteratorCallback.call(stream, cb, key)) + ; + + stream.jobs[key] = wrappedCb; + + // it's either shortcut (item, cb) + if (iterator.length == 2) + { + aborter = iterator(item, wrappedCb); + } + // or long format (item, key, cb) + else + { + aborter = iterator(item, key, wrappedCb); + } + + return aborter; + }; +} + +/** + * Wraps provided callback function + * allowing to execute snitch function before + * real callback + * + * @this ReadableAsyncKit# + * @param {function} callback - function to wrap + * @returns {function} - wrapped function + */ +function wrapCallback(callback) +{ + var stream = this; + + var wrapped = function(error, result) + { + return finisher.call(stream, error, result, callback); + }; + + return wrapped; +} + +/** + * Wraps provided iterator callback function + * makes sure snitch only called once, + * but passes secondary calls to the original callback + * + * @this ReadableAsyncKit# + * @param {function} callback - callback to wrap + * @param {number|string} key - iteration key + * @returns {function} wrapped callback + */ +function wrapIteratorCallback(callback, key) +{ + var stream = this; + + return function(error, output) + { + // don't repeat yourself + if (!(key in stream.jobs)) + { + callback(error, output); + return; + } + + // clean up jobs + delete stream.jobs[key]; + + return streamer.call(stream, error, {key: key, value: output}, callback); + }; +} + +/** + * Stream wrapper for iterator callback + * + * @this ReadableAsyncKit# + * @param {mixed} error - error response + * @param {mixed} output - iterator output + * @param {function} callback - callback that expects iterator results + */ +function streamer(error, output, callback) +{ + if (error && !this.error) + { + this.error = error; + this.pause(); + this.emit('error', error); + // send back value only, as expected + callback(error, output && output.value); + return; + } + + // stream stuff + this.push(output); + + // back to original track + // send back value only, as expected + callback(error, output && output.value); +} + +/** + * Stream wrapper for finishing callback + * + * @this ReadableAsyncKit# + * @param {mixed} error - error response + * @param {mixed} output - iterator output + * @param {function} callback - callback that expects final results + */ +function finisher(error, output, callback) +{ + // signal end of the stream + // only for successfully finished streams + if (!error) + { + this.push(null); + } + + // back to original track + callback(error, output); +} diff --git a/Scripts/node_modules/asynckit/lib/terminator.js b/Scripts/node_modules/asynckit/lib/terminator.js new file mode 100644 index 00000000..d6eb9921 --- /dev/null +++ b/Scripts/node_modules/asynckit/lib/terminator.js @@ -0,0 +1,29 @@ +var abort = require('./abort.js') + , async = require('./async.js') + ; + +// API +module.exports = terminator; + +/** + * Terminates jobs in the attached state context + * + * @this AsyncKitState# + * @param {function} callback - final callback to invoke after termination + */ +function terminator(callback) +{ + if (!Object.keys(this.jobs).length) + { + return; + } + + // fast forward iteration index + this.index = this.size; + + // abort jobs + abort(this); + + // send back results we have so far + async(callback)(null, this.results); +} diff --git a/Scripts/node_modules/asynckit/package.json b/Scripts/node_modules/asynckit/package.json new file mode 100644 index 00000000..51147d65 --- /dev/null +++ b/Scripts/node_modules/asynckit/package.json @@ -0,0 +1,63 @@ +{ + "name": "asynckit", + "version": "0.4.0", + "description": "Minimal async jobs utility library, with streams support", + "main": "index.js", + "scripts": { + "clean": "rimraf coverage", + "lint": "eslint *.js lib/*.js test/*.js", + "test": "istanbul cover --reporter=json tape -- 'test/test-*.js' | tap-spec", + "win-test": "tape test/test-*.js", + "browser": "browserify -t browserify-istanbul test/lib/browserify_adjustment.js test/test-*.js | obake --coverage | tap-spec", + "report": "istanbul report", + "size": "browserify index.js | size-table asynckit", + "debug": "tape test/test-*.js" + }, + "pre-commit": [ + "clean", + "lint", + "test", + "browser", + "report", + "size" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/alexindigo/asynckit.git" + }, + "keywords": [ + "async", + "jobs", + "parallel", + "serial", + "iterator", + "array", + "object", + "stream", + "destroy", + "terminate", + "abort" + ], + "author": "Alex Indigo ", + "license": "MIT", + "bugs": { + "url": "https://github.com/alexindigo/asynckit/issues" + }, + "homepage": "https://github.com/alexindigo/asynckit#readme", + "devDependencies": { + "browserify": "^13.0.0", + "browserify-istanbul": "^2.0.0", + "coveralls": "^2.11.9", + "eslint": "^2.9.0", + "istanbul": "^0.4.3", + "obake": "^0.1.2", + "phantomjs-prebuilt": "^2.1.7", + "pre-commit": "^1.1.3", + "reamde": "^1.1.0", + "rimraf": "^2.5.2", + "size-table": "^0.2.0", + "tap-spec": "^4.1.1", + "tape": "^4.5.1" + }, + "dependencies": {} +} diff --git a/Scripts/node_modules/asynckit/parallel.js b/Scripts/node_modules/asynckit/parallel.js new file mode 100644 index 00000000..3c50344d --- /dev/null +++ b/Scripts/node_modules/asynckit/parallel.js @@ -0,0 +1,43 @@ +var iterate = require('./lib/iterate.js') + , initState = require('./lib/state.js') + , terminator = require('./lib/terminator.js') + ; + +// Public API +module.exports = parallel; + +/** + * Runs iterator over provided array elements in parallel + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} callback - invoked when all elements processed + * @returns {function} - jobs terminator + */ +function parallel(list, iterator, callback) +{ + var state = initState(list); + + while (state.index < (state['keyedList'] || list).length) + { + iterate(list, iterator, state, function(error, result) + { + if (error) + { + callback(error, result); + return; + } + + // looks like it's the last one + if (Object.keys(state.jobs).length === 0) + { + callback(null, state.results); + return; + } + }); + + state.index++; + } + + return terminator.bind(state, callback); +} diff --git a/Scripts/node_modules/asynckit/serial.js b/Scripts/node_modules/asynckit/serial.js new file mode 100644 index 00000000..6cd949a6 --- /dev/null +++ b/Scripts/node_modules/asynckit/serial.js @@ -0,0 +1,17 @@ +var serialOrdered = require('./serialOrdered.js'); + +// Public API +module.exports = serial; + +/** + * Runs iterator over provided array elements in series + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} callback - invoked when all elements processed + * @returns {function} - jobs terminator + */ +function serial(list, iterator, callback) +{ + return serialOrdered(list, iterator, null, callback); +} diff --git a/Scripts/node_modules/asynckit/serialOrdered.js b/Scripts/node_modules/asynckit/serialOrdered.js new file mode 100644 index 00000000..607eafea --- /dev/null +++ b/Scripts/node_modules/asynckit/serialOrdered.js @@ -0,0 +1,75 @@ +var iterate = require('./lib/iterate.js') + , initState = require('./lib/state.js') + , terminator = require('./lib/terminator.js') + ; + +// Public API +module.exports = serialOrdered; +// sorting helpers +module.exports.ascending = ascending; +module.exports.descending = descending; + +/** + * Runs iterator over provided sorted array elements in series + * + * @param {array|object} list - array or object (named list) to iterate over + * @param {function} iterator - iterator to run + * @param {function} sortMethod - custom sort function + * @param {function} callback - invoked when all elements processed + * @returns {function} - jobs terminator + */ +function serialOrdered(list, iterator, sortMethod, callback) +{ + var state = initState(list, sortMethod); + + iterate(list, iterator, state, function iteratorHandler(error, result) + { + if (error) + { + callback(error, result); + return; + } + + state.index++; + + // are we there yet? + if (state.index < (state['keyedList'] || list).length) + { + iterate(list, iterator, state, iteratorHandler); + return; + } + + // done here + callback(null, state.results); + }); + + return terminator.bind(state, callback); +} + +/* + * -- Sort methods + */ + +/** + * sort helper to sort array elements in ascending order + * + * @param {mixed} a - an item to compare + * @param {mixed} b - an item to compare + * @returns {number} - comparison result + */ +function ascending(a, b) +{ + return a < b ? -1 : a > b ? 1 : 0; +} + +/** + * sort helper to sort array elements in descending order + * + * @param {mixed} a - an item to compare + * @param {mixed} b - an item to compare + * @returns {number} - comparison result + */ +function descending(a, b) +{ + return -1 * ascending(a, b); +} diff --git a/Scripts/node_modules/asynckit/stream.js b/Scripts/node_modules/asynckit/stream.js new file mode 100644 index 00000000..d43465f9 --- /dev/null +++ b/Scripts/node_modules/asynckit/stream.js @@ -0,0 +1,21 @@ +var inherits = require('util').inherits + , Readable = require('stream').Readable + , ReadableAsyncKit = require('./lib/readable_asynckit.js') + , ReadableParallel = require('./lib/readable_parallel.js') + , ReadableSerial = require('./lib/readable_serial.js') + , ReadableSerialOrdered = require('./lib/readable_serial_ordered.js') + ; + +// API +module.exports = +{ + parallel : ReadableParallel, + serial : ReadableSerial, + serialOrdered : ReadableSerialOrdered, +}; + +inherits(ReadableAsyncKit, Readable); + +inherits(ReadableParallel, ReadableAsyncKit); +inherits(ReadableSerial, ReadableAsyncKit); +inherits(ReadableSerialOrdered, ReadableAsyncKit); diff --git a/Scripts/node_modules/axios/CHANGELOG.md b/Scripts/node_modules/axios/CHANGELOG.md new file mode 100644 index 00000000..6fd5c9bb --- /dev/null +++ b/Scripts/node_modules/axios/CHANGELOG.md @@ -0,0 +1,855 @@ +# Changelog + +## [1.6.7](https://github.com/axios/axios/compare/v1.6.6...v1.6.7) (2024-01-25) + + +### Bug Fixes + +* capture async stack only for rejections with native error objects; ([#6203](https://github.com/axios/axios/issues/6203)) ([1a08f90](https://github.com/axios/axios/commit/1a08f90f402336e4d00e9ee82f211c6adb1640b0)) + +### Contributors to this release + +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+30/-26 (#6203 )") +- avatar [zhoulixiang](https://github.com/zh-lx "+0/-3 (#6186 )") + +## [1.6.6](https://github.com/axios/axios/compare/v1.6.5...v1.6.6) (2024-01-24) + + +### Bug Fixes + +* fixed missed dispatchBeforeRedirect argument ([#5778](https://github.com/axios/axios/issues/5778)) ([a1938ff](https://github.com/axios/axios/commit/a1938ff073fcb0f89011f001dfbc1fa1dc995e39)) +* wrap errors to improve async stack trace ([#5987](https://github.com/axios/axios/issues/5987)) ([123f354](https://github.com/axios/axios/commit/123f354b920f154a209ea99f76b7b2ef3d9ebbab)) + +### Contributors to this release + +- avatar [Ilya Priven](https://github.com/ikonst "+91/-8 (#5987 )") +- avatar [Zao Soula](https://github.com/zaosoula "+6/-6 (#5778 )") + +## [1.6.5](https://github.com/axios/axios/compare/v1.6.4...v1.6.5) (2024-01-05) + + +### Bug Fixes + +* **ci:** refactor notify action as a job of publish action; ([#6176](https://github.com/axios/axios/issues/6176)) ([0736f95](https://github.com/axios/axios/commit/0736f95ce8776366dc9ca569f49ba505feb6373c)) +* **dns:** fixed lookup error handling; ([#6175](https://github.com/axios/axios/issues/6175)) ([f4f2b03](https://github.com/axios/axios/commit/f4f2b039dd38eb4829e8583caede4ed6d2dd59be)) + +### Contributors to this release + +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+41/-6 (#6176 #6175 )") +- avatar [Jay](https://github.com/jasonsaayman "+6/-1 ()") + +## [1.6.4](https://github.com/axios/axios/compare/v1.6.3...v1.6.4) (2024-01-03) + + +### Bug Fixes + +* **security:** fixed formToJSON prototype pollution vulnerability; ([#6167](https://github.com/axios/axios/issues/6167)) ([3c0c11c](https://github.com/axios/axios/commit/3c0c11cade045c4412c242b5727308cff9897a0e)) +* **security:** fixed security vulnerability in follow-redirects ([#6163](https://github.com/axios/axios/issues/6163)) ([75af1cd](https://github.com/axios/axios/commit/75af1cdff5b3a6ca3766d3d3afbc3115bb0811b8)) + +### Contributors to this release + +- avatar [Jay](https://github.com/jasonsaayman "+34/-6 ()") +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+34/-3 (#6172 #6167 )") +- avatar [Guy Nesher](https://github.com/gnesher "+10/-10 (#6163 )") + +## [1.6.3](https://github.com/axios/axios/compare/v1.6.2...v1.6.3) (2023-12-26) + + +### Bug Fixes + +* Regular Expression Denial of Service (ReDoS) ([#6132](https://github.com/axios/axios/issues/6132)) ([5e7ad38](https://github.com/axios/axios/commit/5e7ad38fb0f819fceb19fb2ee5d5d38f56aa837d)) + +### Contributors to this release + +- avatar [Jay](https://github.com/jasonsaayman "+15/-6 (#6145 )") +- avatar [Willian Agostini](https://github.com/WillianAgostini "+17/-2 (#6132 )") +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+3/-0 (#6084 )") + +## [1.6.2](https://github.com/axios/axios/compare/v1.6.1...v1.6.2) (2023-11-14) + + +### Features + +* **withXSRFToken:** added withXSRFToken option as a workaround to achieve the old `withCredentials` behavior; ([#6046](https://github.com/axios/axios/issues/6046)) ([cff9967](https://github.com/axios/axios/commit/cff996779b272a5e94c2b52f5503ccf668bc42dc)) + +### PRs +- feat(withXSRFToken): added withXSRFToken option as a workaround to achieve the old `withCredentials` behavior; ( [#6046](https://api.github.com/repos/axios/axios/pulls/6046) ) +``` + +📢 This PR added 'withXSRFToken' option as a replacement for old withCredentials behaviour. +You should now use withXSRFToken along with withCredential to get the old behavior. +This functionality is considered as a fix. +``` + +### Contributors to this release + +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+271/-146 (#6081 #6080 #6079 #6078 #6046 #6064 #6063 )") +- avatar [Ng Choon Khon (CK)](https://github.com/ckng0221 "+4/-4 (#6073 )") +- avatar [Muhammad Noman](https://github.com/mnomanmemon "+2/-2 (#6048 )") + +## [1.6.1](https://github.com/axios/axios/compare/v1.6.0...v1.6.1) (2023-11-08) + + +### Bug Fixes + +* **formdata:** fixed content-type header normalization for non-standard browser environments; ([#6056](https://github.com/axios/axios/issues/6056)) ([dd465ab](https://github.com/axios/axios/commit/dd465ab22bbfa262c6567be6574bf46a057d5288)) +* **platform:** fixed emulated browser detection in node.js environment; ([#6055](https://github.com/axios/axios/issues/6055)) ([3dc8369](https://github.com/axios/axios/commit/3dc8369e505e32a4e12c22f154c55fd63ac67fbb)) + +### Contributors to this release + +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+432/-65 (#6059 #6056 #6055 )") +- avatar [Fabian Meyer](https://github.com/meyfa "+5/-2 (#5835 )") + +### PRs +- feat(withXSRFToken): added withXSRFToken option as a workaround to achieve the old `withCredentials` behavior; ( [#6046](https://api.github.com/repos/axios/axios/pulls/6046) ) +``` + +📢 This PR added 'withXSRFToken' option as a replacement for old withCredentials behaviour. +You should now use withXSRFToken along with withCredential to get the old behavior. +This functionality is considered as a fix. +``` + +# [1.6.0](https://github.com/axios/axios/compare/v1.5.1...v1.6.0) (2023-10-26) + + +### Bug Fixes + +* **CSRF:** fixed CSRF vulnerability CVE-2023-45857 ([#6028](https://github.com/axios/axios/issues/6028)) ([96ee232](https://github.com/axios/axios/commit/96ee232bd3ee4de2e657333d4d2191cd389e14d0)) +* **dns:** fixed lookup function decorator to work properly in node v20; ([#6011](https://github.com/axios/axios/issues/6011)) ([5aaff53](https://github.com/axios/axios/commit/5aaff532a6b820bb9ab6a8cd0f77131b47e2adb8)) +* **types:** fix AxiosHeaders types; ([#5931](https://github.com/axios/axios/issues/5931)) ([a1c8ad0](https://github.com/axios/axios/commit/a1c8ad008b3c13d53e135bbd0862587fb9d3fc09)) + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +### Contributors to this release + +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+449/-114 (#6032 #6021 #6011 #5932 #5931 )") +- avatar [Valentin Panov](https://github.com/valentin-panov "+4/-4 (#6028 )") +- avatar [Rinku Chaudhari](https://github.com/therealrinku "+1/-1 (#5889 )") + +## [1.5.1](https://github.com/axios/axios/compare/v1.5.0...v1.5.1) (2023-09-26) + + +### Bug Fixes + +* **adapters:** improved adapters loading logic to have clear error messages; ([#5919](https://github.com/axios/axios/issues/5919)) ([e410779](https://github.com/axios/axios/commit/e4107797a7a1376f6209fbecfbbce73d3faa7859)) +* **formdata:** fixed automatic addition of the `Content-Type` header for FormData in non-browser environments; ([#5917](https://github.com/axios/axios/issues/5917)) ([bc9af51](https://github.com/axios/axios/commit/bc9af51b1886d1b3529617702f2a21a6c0ed5d92)) +* **headers:** allow `content-encoding` header to handle case-insensitive values ([#5890](https://github.com/axios/axios/issues/5890)) ([#5892](https://github.com/axios/axios/issues/5892)) ([4c89f25](https://github.com/axios/axios/commit/4c89f25196525e90a6e75eda9cb31ae0a2e18acd)) +* **types:** removed duplicated code ([9e62056](https://github.com/axios/axios/commit/9e6205630e1c9cf863adf141c0edb9e6d8d4b149)) + +### Contributors to this release + +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+89/-18 (#5919 #5917 )") +- avatar [David Dallas](https://github.com/DavidJDallas "+11/-5 ()") +- avatar [Sean Sattler](https://github.com/fb-sean "+2/-8 ()") +- avatar [Mustafa Ateş Uzun](https://github.com/0o001 "+4/-4 ()") +- avatar [Przemyslaw Motacki](https://github.com/sfc-gh-pmotacki "+2/-1 (#5892 )") +- avatar [Michael Di Prisco](https://github.com/Cadienvan "+1/-1 ()") + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +# [1.5.0](https://github.com/axios/axios/compare/v1.4.0...v1.5.0) (2023-08-26) + + +### Bug Fixes + +* **adapter:** make adapter loading error more clear by using platform-specific adapters explicitly ([#5837](https://github.com/axios/axios/issues/5837)) ([9a414bb](https://github.com/axios/axios/commit/9a414bb6c81796a95c6c7fe668637825458e8b6d)) +* **dns:** fixed `cacheable-lookup` integration; ([#5836](https://github.com/axios/axios/issues/5836)) ([b3e327d](https://github.com/axios/axios/commit/b3e327dcc9277bdce34c7ef57beedf644b00d628)) +* **headers:** added support for setting header names that overlap with class methods; ([#5831](https://github.com/axios/axios/issues/5831)) ([d8b4ca0](https://github.com/axios/axios/commit/d8b4ca0ea5f2f05efa4edfe1e7684593f9f68273)) +* **headers:** fixed common Content-Type header merging; ([#5832](https://github.com/axios/axios/issues/5832)) ([8fda276](https://github.com/axios/axios/commit/8fda2766b1e6bcb72c3fabc146223083ef13ce17)) + + +### Features + +* export getAdapter function ([#5324](https://github.com/axios/axios/issues/5324)) ([ca73eb8](https://github.com/axios/axios/commit/ca73eb878df0ae2dace81fe3a7f1fb5986231bf1)) +* **export:** export adapters without `unsafe` prefix ([#5839](https://github.com/axios/axios/issues/5839)) ([1601f4a](https://github.com/axios/axios/commit/1601f4a27a81ab47fea228f1e244b2c4e3ce28bf)) + +### Contributors to this release + +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+66/-29 (#5839 #5837 #5836 #5832 #5831 )") +- avatar [夜葬](https://github.com/geekact "+42/-0 (#5324 )") +- avatar [Jonathan Budiman](https://github.com/JBudiman00 "+30/-0 (#5788 )") +- avatar [Michael Di Prisco](https://github.com/Cadienvan "+3/-5 (#5791 )") + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +# [1.4.0](https://github.com/axios/axios/compare/v1.3.6...v1.4.0) (2023-04-27) + + +### Bug Fixes + +* **formdata:** add `multipart/form-data` content type for FormData payload on custom client environments; ([#5678](https://github.com/axios/axios/issues/5678)) ([bbb61e7](https://github.com/axios/axios/commit/bbb61e70cb1185adfb1cbbb86eaf6652c48d89d1)) +* **package:** export package internals with unsafe path prefix; ([#5677](https://github.com/axios/axios/issues/5677)) ([df38c94](https://github.com/axios/axios/commit/df38c949f26414d88ba29ec1e353c4d4f97eaf09)) + + +### Features + +* **dns:** added support for a custom lookup function; ([#5339](https://github.com/axios/axios/issues/5339)) ([2701911](https://github.com/axios/axios/commit/2701911260a1faa5cc5e1afe437121b330a3b7bb)) +* **types:** export `AxiosHeaderValue` type. ([#5525](https://github.com/axios/axios/issues/5525)) ([726f1c8](https://github.com/axios/axios/commit/726f1c8e00cffa0461a8813a9bdcb8f8b9d762cf)) + + +### Performance Improvements + +* **merge-config:** optimize mergeConfig performance by avoiding duplicate key visits; ([#5679](https://github.com/axios/axios/issues/5679)) ([e6f7053](https://github.com/axios/axios/commit/e6f7053bf1a3e87cf1f9da8677e12e3fe829d68e)) + +### Contributors to this release + +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+151/-16 (#5684 #5339 #5679 #5678 #5677 )") +- avatar [Arthur Fiorette](https://github.com/arthurfiorette "+19/-19 (#5525 )") +- avatar [PIYUSH NEGI](https://github.com/npiyush97 "+2/-18 (#5670 )") + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.3.6](https://github.com/axios/axios/compare/v1.3.5...v1.3.6) (2023-04-19) + + +### Bug Fixes + +* **types:** added transport to RawAxiosRequestConfig ([#5445](https://github.com/axios/axios/issues/5445)) ([6f360a2](https://github.com/axios/axios/commit/6f360a2531d8d70363fd9becef6a45a323f170e2)) +* **utils:** make isFormData detection logic stricter to avoid unnecessary calling of the `toString` method on the target; ([#5661](https://github.com/axios/axios/issues/5661)) ([aa372f7](https://github.com/axios/axios/commit/aa372f7306295dfd1100c1c2c77ce95c95808e76)) + +### Contributors to this release + +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+48/-10 (#5665 #5661 #5663 )") +- avatar [Michael Di Prisco](https://github.com/Cadienvan "+2/-0 (#5445 )") + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.3.5](https://github.com/axios/axios/compare/v1.3.4...v1.3.5) (2023-04-05) + + +### Bug Fixes + +* **headers:** fixed isValidHeaderName to support full list of allowed characters; ([#5584](https://github.com/axios/axios/issues/5584)) ([e7decef](https://github.com/axios/axios/commit/e7decef6a99f4627e27ed9ea5b00ce8e201c3841)) +* **params:** re-added the ability to set the function as `paramsSerializer` config; ([#5633](https://github.com/axios/axios/issues/5633)) ([a56c866](https://github.com/axios/axios/commit/a56c8661209d5ce5a645a05f294a0e08a6c1f6b3)) + +### Contributors to this release + +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+28/-10 (#5633 #5584 )") + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.3.4](https://github.com/axios/axios/compare/v1.3.3...v1.3.4) (2023-02-22) + + +### Bug Fixes + +* **blob:** added a check to make sure the Blob class is available in the browser's global scope; ([#5548](https://github.com/axios/axios/issues/5548)) ([3772c8f](https://github.com/axios/axios/commit/3772c8fe74112a56e3e9551f894d899bc3a9443a)) +* **http:** fixed regression bug when handling synchronous errors inside the adapter; ([#5564](https://github.com/axios/axios/issues/5564)) ([a3b246c](https://github.com/axios/axios/commit/a3b246c9de5c3bc4b5a742e15add55b375479451)) + +### Contributors to this release + +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+38/-26 (#5564 )") +- avatar [lcysgsg](https://github.com/lcysgsg "+4/-0 (#5548 )") +- avatar [Michael Di Prisco](https://github.com/Cadienvan "+3/-0 (#5444 )") + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.3.3](https://github.com/axios/axios/compare/v1.3.2...v1.3.3) (2023-02-13) + + +### Bug Fixes + +* **formdata:** added a check to make sure the FormData class is available in the browser's global scope; ([#5545](https://github.com/axios/axios/issues/5545)) ([a6dfa72](https://github.com/axios/axios/commit/a6dfa72010db5ad52db8bd13c0f98e537e8fd05d)) +* **formdata:** fixed setting NaN as Content-Length for form payload in some cases; ([#5535](https://github.com/axios/axios/issues/5535)) ([c19f7bf](https://github.com/axios/axios/commit/c19f7bf770f90ae8307f4ea3104f227056912da1)) +* **headers:** fixed the filtering logic of the clear method; ([#5542](https://github.com/axios/axios/issues/5542)) ([ea87ebf](https://github.com/axios/axios/commit/ea87ebfe6d1699af072b9e7cd40faf8f14b0ab93)) + +### Contributors to this release + +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+11/-7 (#5545 #5535 #5542 )") +- avatar [陈若枫](https://github.com/ruofee "+2/-2 (#5467 )") + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.3.2](https://github.com/axios/axios/compare/v1.3.1...v1.3.2) (2023-02-03) + + +### Bug Fixes + +* **http:** treat http://localhost as base URL for relative paths to avoid `ERR_INVALID_URL` error; ([#5528](https://github.com/axios/axios/issues/5528)) ([128d56f](https://github.com/axios/axios/commit/128d56f4a0fb8f5f2ed6e0dd80bc9225fee9538c)) +* **http:** use explicit import instead of TextEncoder global; ([#5530](https://github.com/axios/axios/issues/5530)) ([6b3c305](https://github.com/axios/axios/commit/6b3c305fc40c56428e0afabedc6f4d29c2830f6f)) + +### Contributors to this release + +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+2/-1 (#5530 #5528 )") + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.3.1](https://github.com/axios/axios/compare/v1.3.0...v1.3.1) (2023-02-01) + + +### Bug Fixes + +* **formdata:** add hotfix to use the asynchronous API to compute the content-length header value; ([#5521](https://github.com/axios/axios/issues/5521)) ([96d336f](https://github.com/axios/axios/commit/96d336f527619f21da012fe1f117eeb53e5a2120)) +* **serializer:** fixed serialization of array-like objects; ([#5518](https://github.com/axios/axios/issues/5518)) ([08104c0](https://github.com/axios/axios/commit/08104c028c0f9353897b1b6691d74c440fd0c32d)) + +### Contributors to this release + +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+27/-8 (#5521 #5518 )") + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +# [1.3.0](https://github.com/axios/axios/compare/v1.2.6...v1.3.0) (2023-01-31) + + +### Bug Fixes + +* **headers:** fixed & optimized clear method; ([#5507](https://github.com/axios/axios/issues/5507)) ([9915635](https://github.com/axios/axios/commit/9915635c69d0ab70daca5738488421f67ca60959)) +* **http:** add zlib headers if missing ([#5497](https://github.com/axios/axios/issues/5497)) ([65e8d1e](https://github.com/axios/axios/commit/65e8d1e28ce829f47a837e45129730e541950d3c)) + + +### Features + +* **fomdata:** added support for spec-compliant FormData & Blob types; ([#5316](https://github.com/axios/axios/issues/5316)) ([6ac574e](https://github.com/axios/axios/commit/6ac574e00a06731288347acea1e8246091196953)) + +### Contributors to this release + +- avatar [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+352/-67 (#5514 #5512 #5510 #5509 #5508 #5316 #5507 )") +- avatar [ItsNotGoodName](https://github.com/ItsNotGoodName "+43/-2 (#5497 )") + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.2.6](https://github.com/axios/axios/compare/v1.2.5...v1.2.6) (2023-01-28) + + +### Bug Fixes + +* **headers:** added missed Authorization accessor; ([#5502](https://github.com/axios/axios/issues/5502)) ([342c0ba](https://github.com/axios/axios/commit/342c0ba9a16ea50f5ed7d2366c5c1a2c877e3f26)) +* **types:** fixed `CommonRequestHeadersList` & `CommonResponseHeadersList` types to be private in commonJS; ([#5503](https://github.com/axios/axios/issues/5503)) ([5a3d0a3](https://github.com/axios/axios/commit/5a3d0a3234d77361a1bc7cedee2da1e11df08e2c)) + +### Contributors to this release + +- ![avatar](https://avatars.githubusercontent.com/u/12586868?v=4&s=16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+24/-9 (#5503 #5502 )") + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.2.5](https://github.com/axios/axios/compare/v1.2.4...v1.2.5) (2023-01-26) + + +### Bug Fixes + +* **types:** fixed AxiosHeaders to handle spread syntax by making all methods non-enumerable; ([#5499](https://github.com/axios/axios/issues/5499)) ([580f1e8](https://github.com/axios/axios/commit/580f1e8033a61baa38149d59fd16019de3932c22)) + +### Contributors to this release + +- ![avatar](https://avatars.githubusercontent.com/u/12586868?v=4&s=16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+82/-54 (#5499 )") +- ![avatar](https://avatars.githubusercontent.com/u/20516159?v=4&s=16) [Elliot Ford](https://github.com/EFord36 "+1/-1 (#5462 )") + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.2.4](https://github.com/axios/axios/compare/v1.2.3...v1.2.4) (2023-01-22) + + +### Bug Fixes + +* **types:** renamed `RawAxiosRequestConfig` back to `AxiosRequestConfig`; ([#5486](https://github.com/axios/axios/issues/5486)) ([2a71f49](https://github.com/axios/axios/commit/2a71f49bc6c68495fa419003a3107ed8bd703ad0)) +* **types:** fix `AxiosRequestConfig` generic; ([#5478](https://github.com/axios/axios/issues/5478)) ([9bce81b](https://github.com/axios/axios/commit/186ea062da8b7d578ae78b1a5c220986b9bce81b)) + +### Contributors to this release + +- ![avatar](https://avatars.githubusercontent.com/u/12586868?v=4&s=16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+242/-108 (#5486 #5482 )") +- ![avatar](https://avatars.githubusercontent.com/u/9430821?v=4&s=16) [Daniel Hillmann](https://github.com/hilleer "+1/-1 (#5478 )") + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.2.3](https://github.com/axios/axios/compare/1.2.2...1.2.3) (2023-01-10) + + +### Bug Fixes + +* **types:** fixed AxiosRequestConfig header interface by refactoring it to RawAxiosRequestConfig; ([#5420](https://github.com/axios/axios/issues/5420)) ([0811963](https://github.com/axios/axios/commit/08119634a22f1d5b19f5c9ea0adccb6d3eebc3bc)) + +### Contributors to this release + +- ![avatar](https://avatars.githubusercontent.com/u/12586868?v=4&s=16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+938/-442 (#5456 #5455 #5453 #5451 #5449 #5447 #5446 #5443 #5442 #5439 #5420 )") + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.2.2] - 2022-12-29 + +### Fixed +- fix(ci): fix release script inputs [#5392](https://github.com/axios/axios/pull/5392) +- fix(ci): prerelease scipts [#5377](https://github.com/axios/axios/pull/5377) +- fix(ci): release scripts [#5376](https://github.com/axios/axios/pull/5376) +- fix(ci): typescript tests [#5375](https://github.com/axios/axios/pull/5375) +- fix: Brotli decompression [#5353](https://github.com/axios/axios/pull/5353) +- fix: add missing HttpStatusCode [#5345](https://github.com/axios/axios/pull/5345) + +### Chores +- chore(ci): set conventional-changelog header config [#5406](https://github.com/axios/axios/pull/5406) +- chore(ci): fix automatic contributors resolving [#5403](https://github.com/axios/axios/pull/5403) +- chore(ci): improved logging for the contributors list generator [#5398](https://github.com/axios/axios/pull/5398) +- chore(ci): fix release action [#5397](https://github.com/axios/axios/pull/5397) +- chore(ci): fix version bump script by adding bump argument for target version [#5393](https://github.com/axios/axios/pull/5393) +- chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 [#5342](https://github.com/axios/axios/pull/5342) +- chore(ci): GitHub Actions Release script [#5384](https://github.com/axios/axios/pull/5384) +- chore(ci): release scripts [#5364](https://github.com/axios/axios/pull/5364) + +### Contributors to this release +- ![avatar](https://avatars.githubusercontent.com/u/12586868?v=4&s=16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS) +- ![avatar](https://avatars.githubusercontent.com/u/1652293?v=4&s=16) [Winnie](https://github.com/winniehell) + +## [1.2.1] - 2022-12-05 + +### Changed +- feat(exports): export mergeConfig [#5151](https://github.com/axios/axios/pull/5151) + +### Fixed +- fix(CancelledError): include config [#4922](https://github.com/axios/axios/pull/4922) +- fix(general): removing multiple/trailing/leading whitespace [#5022](https://github.com/axios/axios/pull/5022) +- fix(headers): decompression for responses without Content-Length header [#5306](https://github.com/axios/axios/pull/5306) +- fix(webWorker): exception to sending form data in web worker [#5139](https://github.com/axios/axios/pull/5139) + +### Refactors +- refactor(types): AxiosProgressEvent.event type to any [#5308](https://github.com/axios/axios/pull/5308) +- refactor(types): add missing types for static AxiosError.from method [#4956](https://github.com/axios/axios/pull/4956) + +### Chores +- chore(docs): remove README link to non-existent upgrade guide [#5307](https://github.com/axios/axios/pull/5307) +- chore(docs): typo in issue template name [#5159](https://github.com/axios/axios/pull/5159) + +### Contributors to this release + +- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS) +- [Zachary Lysobey](https://github.com/zachlysobey) +- [Kevin Ennis](https://github.com/kevincennis) +- [Philipp Loose](https://github.com/phloose) +- [secondl1ght](https://github.com/secondl1ght) +- [wenzheng](https://github.com/0x30) +- [Ivan Barsukov](https://github.com/ovarn) +- [Arthur Fiorette](https://github.com/arthurfiorette) + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.2.0] - 2022-11-10 + +### Changed + +- changed: refactored module exports [#5162](https://github.com/axios/axios/pull/5162) +- change: re-added support for loading Axios with require('axios').default [#5225](https://github.com/axios/axios/pull/5225) + +### Fixed + +- fix: improve AxiosHeaders class [#5224](https://github.com/axios/axios/pull/5224) +- fix: TypeScript type definitions for commonjs [#5196](https://github.com/axios/axios/pull/5196) +- fix: type definition of use method on AxiosInterceptorManager to match the the README [#5071](https://github.com/axios/axios/pull/5071) +- fix: __dirname is not defined in the sandbox [#5269](https://github.com/axios/axios/pull/5269) +- fix: AxiosError.toJSON method to avoid circular references [#5247](https://github.com/axios/axios/pull/5247) +- fix: Z_BUF_ERROR when content-encoding is set but the response body is empty [#5250](https://github.com/axios/axios/pull/5250) + +### Refactors +- refactor: allowing adapters to be loaded by name [#5277](https://github.com/axios/axios/pull/5277) + +### Chores + +- chore: force CI restart [#5243](https://github.com/axios/axios/pull/5243) +- chore: update ECOSYSTEM.md [#5077](https://github.com/axios/axios/pull/5077) +- chore: update get/index.html [#5116](https://github.com/axios/axios/pull/5116) +- chore: update Sandbox UI/UX [#5205](https://github.com/axios/axios/pull/5205) +- chore:(actions): remove git credentials after checkout [#5235](https://github.com/axios/axios/pull/5235) +- chore(actions): bump actions/dependency-review-action from 2 to 3 [#5266](https://github.com/axios/axios/pull/5266) +- chore(packages): bump loader-utils from 1.4.1 to 1.4.2 [#5295](https://github.com/axios/axios/pull/5295) +- chore(packages): bump engine.io from 6.2.0 to 6.2.1 [#5294](https://github.com/axios/axios/pull/5294) +- chore(packages): bump socket.io-parser from 4.0.4 to 4.0.5 [#5241](https://github.com/axios/axios/pull/5241) +- chore(packages): bump loader-utils from 1.4.0 to 1.4.1 [#5245](https://github.com/axios/axios/pull/5245) +- chore(docs): update Resources links in README [#5119](https://github.com/axios/axios/pull/5119) +- chore(docs): update the link for JSON url [#5265](https://github.com/axios/axios/pull/5265) +- chore(docs): fix broken links [#5218](https://github.com/axios/axios/pull/5218) +- chore(docs): update and rename UPGRADE_GUIDE.md to MIGRATION_GUIDE.md [#5170](https://github.com/axios/axios/pull/5170) +- chore(docs): typo fix line #856 and #920 [#5194](https://github.com/axios/axios/pull/5194) +- chore(docs): typo fix #800 [#5193](https://github.com/axios/axios/pull/5193) +- chore(docs): fix typos [#5184](https://github.com/axios/axios/pull/5184) +- chore(docs): fix punctuation in README.md [#5197](https://github.com/axios/axios/pull/5197) +- chore(docs): update readme in the Handling Errors section - issue reference #5260 [#5261](https://github.com/axios/axios/pull/5261) +- chore: remove \b from filename [#5207](https://github.com/axios/axios/pull/5207) +- chore(docs): update CHANGELOG.md [#5137](https://github.com/axios/axios/pull/5137) +- chore: add sideEffects false to package.json [#5025](https://github.com/axios/axios/pull/5025) + +### Contributors to this release + +- [Maddy Miller](https://github.com/me4502) +- [Amit Saini](https://github.com/amitsainii) +- [ecyrbe](https://github.com/ecyrbe) +- [Ikko Ashimine](https://github.com/eltociear) +- [Geeth Gunnampalli](https://github.com/thetechie7) +- [Shreem Asati](https://github.com/shreem-123) +- [Frieder Bluemle](https://github.com/friederbluemle) +- [윤세영](https://github.com/yunseyeong) +- [Claudio Busatto](https://github.com/cjcbusatto) +- [Remco Haszing](https://github.com/remcohaszing) +- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS) +- [Csaba Maulis](https://github.com/om4csaba) +- [MoPaMo](https://github.com/MoPaMo) +- [Daniel Fjeldstad](https://github.com/w3bdesign) +- [Adrien Brunet](https://github.com/adrien-may) +- [Frazer Smith](https://github.com/Fdawgs) +- [HaiTao](https://github.com/836334258) +- [AZM](https://github.com/aziyatali) +- [relbns](https://github.com/relbns) + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.1.3] - 2022-10-15 + +### Added + +- Added custom params serializer support [#5113](https://github.com/axios/axios/pull/5113) + +### Fixed + +- Fixed top-level export to keep them in-line with static properties [#5109](https://github.com/axios/axios/pull/5109) +- Stopped including null values to query string. [#5108](https://github.com/axios/axios/pull/5108) +- Restored proxy config backwards compatibility with 0.x [#5097](https://github.com/axios/axios/pull/5097) +- Added back AxiosHeaders in AxiosHeaderValue [#5103](https://github.com/axios/axios/pull/5103) +- Pin CDN install instructions to a specific version [#5060](https://github.com/axios/axios/pull/5060) +- Handling of array values fixed for AxiosHeaders [#5085](https://github.com/axios/axios/pull/5085) + +### Chores + +- docs: match badge style, add link to them [#5046](https://github.com/axios/axios/pull/5046) +- chore: fixing comments typo [#5054](https://github.com/axios/axios/pull/5054) +- chore: update issue template [#5061](https://github.com/axios/axios/pull/5061) +- chore: added progress capturing section to the docs; [#5084](https://github.com/axios/axios/pull/5084) + +### Contributors to this release + +- [Jason Saayman](https://github.com/jasonsaayman) +- [scarf](https://github.com/scarf005) +- [Lenz Weber-Tronic](https://github.com/phryneas) +- [Arvindh](https://github.com/itsarvindh) +- [Félix Legrelle](https://github.com/FelixLgr) +- [Patrick Petrovic](https://github.com/ppati000) +- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS) +- [littledian](https://github.com/littledian) +- [ChronosMasterOfAllTime](https://github.com/ChronosMasterOfAllTime) + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.1.2] - 2022-10-07 + +### Fixed + +- Fixed broken exports for UMD builds. + +### Contributors to this release + +- [Jason Saayman](https://github.com/jasonsaayman) + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.1.1] - 2022-10-07 + +### Fixed + +- Fixed broken exports for common js. This fix breaks a prior fix, I will fix both issues ASAP but the commonJS use is more impactful. + +### Contributors to this release + +- [Jason Saayman](https://github.com/jasonsaayman) + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.1.0] - 2022-10-06 + +### Fixed + +- Fixed missing exports in type definition index.d.ts [#5003](https://github.com/axios/axios/pull/5003) +- Fixed query params composing [#5018](https://github.com/axios/axios/pull/5018) +- Fixed GenericAbortSignal interface by making it more generic [#5021](https://github.com/axios/axios/pull/5021) +- Fixed adding "clear" to AxiosInterceptorManager [#5010](https://github.com/axios/axios/pull/5010) +- Fixed commonjs & umd exports [#5030](https://github.com/axios/axios/pull/5030) +- Fixed inability to access response headers when using axios 1.x with Jest [#5036](https://github.com/axios/axios/pull/5036) + +### Contributors to this release + +- [Trim21](https://github.com/trim21) +- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS) +- [shingo.sasaki](https://github.com/s-sasaki-0529) +- [Ivan Pepelko](https://github.com/ivanpepelko) +- [Richard Kořínek](https://github.com/risa) + +### PRs +- CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) ) +``` + +⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459 +``` + +## [1.0.0] - 2022-10-04 + +### Added + +- Added stack trace to AxiosError [#4624](https://github.com/axios/axios/pull/4624) +- Add AxiosError to AxiosStatic [#4654](https://github.com/axios/axios/pull/4654) +- Replaced Rollup as our build runner [#4596](https://github.com/axios/axios/pull/4596) +- Added generic TS types for the exposed toFormData helper [#4668](https://github.com/axios/axios/pull/4668) +- Added listen callback function [#4096](https://github.com/axios/axios/pull/4096) +- Added instructions for installing using PNPM [#4207](https://github.com/axios/axios/pull/4207) +- Added generic AxiosAbortSignal TS interface to avoid importing AbortController polyfill [#4229](https://github.com/axios/axios/pull/4229) +- Added axios-url-template in ECOSYSTEM.md [#4238](https://github.com/axios/axios/pull/4238) +- Added a clear() function to the request and response interceptors object so a user can ensure that all interceptors have been removed from an axios instance [#4248](https://github.com/axios/axios/pull/4248) +- Added react hook plugin [#4319](https://github.com/axios/axios/pull/4319) +- Adding HTTP status code for transformResponse [#4580](https://github.com/axios/axios/pull/4580) +- Added blob to the list of protocols supported by the browser [#4678](https://github.com/axios/axios/pull/4678) +- Resolving proxy from env on redirect [#4436](https://github.com/axios/axios/pull/4436) +- Added enhanced toFormData implementation with additional options [4704](https://github.com/axios/axios/pull/4704) +- Adding Canceler parameters config and request [#4711](https://github.com/axios/axios/pull/4711) +- Added automatic payload serialization to application/x-www-form-urlencoded [#4714](https://github.com/axios/axios/pull/4714) +- Added the ability for webpack users to overwrite built-ins [#4715](https://github.com/axios/axios/pull/4715) +- Added string[] to AxiosRequestHeaders type [#4322](https://github.com/axios/axios/pull/4322) +- Added the ability for the url-encoded-form serializer to respect the formSerializer config [#4721](https://github.com/axios/axios/pull/4721) +- Added isCancel type assert [#4293](https://github.com/axios/axios/pull/4293) +- Added data URL support for node.js [#4725](https://github.com/axios/axios/pull/4725) +- Adding types for progress event callbacks [#4675](https://github.com/axios/axios/pull/4675) +- URL params serializer [#4734](https://github.com/axios/axios/pull/4734) +- Added axios.formToJSON method [#4735](https://github.com/axios/axios/pull/4735) +- Bower platform add data protocol [#4804](https://github.com/axios/axios/pull/4804) +- Use WHATWG URL API instead of url.parse() [#4852](https://github.com/axios/axios/pull/4852) +- Add ENUM containing Http Status Codes to typings [#4903](https://github.com/axios/axios/pull/4903) +- Improve typing of timeout in index.d.ts [#4934](https://github.com/axios/axios/pull/4934) + +### Changed + +- Updated AxiosError.config to be optional in the type definition [#4665](https://github.com/axios/axios/pull/4665) +- Updated README emphasizing the URLSearchParam built-in interface over other solutions [#4590](https://github.com/axios/axios/pull/4590) +- Include request and config when creating a CanceledError instance [#4659](https://github.com/axios/axios/pull/4659) +- Changed func-names eslint rule to as-needed [#4492](https://github.com/axios/axios/pull/4492) +- Replacing deprecated substr() with slice() as substr() is deprecated [#4468](https://github.com/axios/axios/pull/4468) +- Updating HTTP links in README.md to use HTTPS [#4387](https://github.com/axios/axios/pull/4387) +- Updated to a better trim() polyfill [#4072](https://github.com/axios/axios/pull/4072) +- Updated types to allow specifying partial default headers on instance create [#4185](https://github.com/axios/axios/pull/4185) +- Expanded isAxiosError types [#4344](https://github.com/axios/axios/pull/4344) +- Updated type definition for axios instance methods [#4224](https://github.com/axios/axios/pull/4224) +- Updated eslint config [#4722](https://github.com/axios/axios/pull/4722) +- Updated Docs [#4742](https://github.com/axios/axios/pull/4742) +- Refactored Axios to use ES2017 [#4787](https://github.com/axios/axios/pull/4787) + + +### Deprecated +- There are multiple deprecations, refactors and fixes provided in this release. Please read through the full release notes to see how this may impact your project and use case. + +### Removed + +- Removed incorrect argument for NetworkError constructor [#4656](https://github.com/axios/axios/pull/4656) +- Removed Webpack [#4596](https://github.com/axios/axios/pull/4596) +- Removed function that transform arguments to array [#4544](https://github.com/axios/axios/pull/4544) + +### Fixed + +- Fixed grammar in README [#4649](https://github.com/axios/axios/pull/4649) +- Fixed code error in README [#4599](https://github.com/axios/axios/pull/4599) +- Optimized the code that checks cancellation [#4587](https://github.com/axios/axios/pull/4587) +- Fix url pointing to defaults.js in README [#4532](https://github.com/axios/axios/pull/4532) +- Use type alias instead of interface for AxiosPromise [#4505](https://github.com/axios/axios/pull/4505) +- Fix some word spelling and lint style in code comments [#4500](https://github.com/axios/axios/pull/4500) +- Edited readme with 3 updated browser icons of Chrome, FireFox and Safari [#4414](https://github.com/axios/axios/pull/4414) +- Bump follow-redirects from 1.14.9 to 1.15.0 [#4673](https://github.com/axios/axios/pull/4673) +- Fixing http tests to avoid hanging when assertions fail [#4435](https://github.com/axios/axios/pull/4435) +- Fix TS definition for AxiosRequestTransformer [#4201](https://github.com/axios/axios/pull/4201) +- Fix grammatical issues in README [#4232](https://github.com/axios/axios/pull/4232) +- Fixing instance.defaults.headers type [#4557](https://github.com/axios/axios/pull/4557) +- Fixed race condition on immediate requests cancellation [#4261](https://github.com/axios/axios/pull/4261) +- Fixing Z_BUF_ERROR when no content [#4701](https://github.com/axios/axios/pull/4701) +- Fixing proxy beforeRedirect regression [#4708](https://github.com/axios/axios/pull/4708) +- Fixed AxiosError status code type [#4717](https://github.com/axios/axios/pull/4717) +- Fixed AxiosError stack capturing [#4718](https://github.com/axios/axios/pull/4718) +- Fixing AxiosRequestHeaders typings [#4334](https://github.com/axios/axios/pull/4334) +- Fixed max body length defaults [#4731](https://github.com/axios/axios/pull/4731) +- Fixed toFormData Blob issue on node>v17 [#4728](https://github.com/axios/axios/pull/4728) +- Bump grunt from 1.5.2 to 1.5.3 [#4743](https://github.com/axios/axios/pull/4743) +- Fixing content-type header repeated [#4745](https://github.com/axios/axios/pull/4745) +- Fixed timeout error message for http [4738](https://github.com/axios/axios/pull/4738) +- Request ignores false, 0 and empty string as body values [#4785](https://github.com/axios/axios/pull/4785) +- Added back missing minified builds [#4805](https://github.com/axios/axios/pull/4805) +- Fixed a type error [#4815](https://github.com/axios/axios/pull/4815) +- Fixed a regression bug with unsubscribing from cancel token; [#4819](https://github.com/axios/axios/pull/4819) +- Remove repeated compression algorithm [#4820](https://github.com/axios/axios/pull/4820) +- The error of calling extend to pass parameters [#4857](https://github.com/axios/axios/pull/4857) +- SerializerOptions.indexes allows boolean | null | undefined [#4862](https://github.com/axios/axios/pull/4862) +- Require interceptors to return values [#4874](https://github.com/axios/axios/pull/4874) +- Removed unused imports [#4949](https://github.com/axios/axios/pull/4949) +- Allow null indexes on formSerializer and paramsSerializer [#4960](https://github.com/axios/axios/pull/4960) + +### Chores +- Set permissions for GitHub actions [#4765](https://github.com/axios/axios/pull/4765) +- Included githubactions in the dependabot config [#4770](https://github.com/axios/axios/pull/4770) +- Included dependency review [#4771](https://github.com/axios/axios/pull/4771) +- Update security.md [#4784](https://github.com/axios/axios/pull/4784) +- Remove unnecessary spaces [#4854](https://github.com/axios/axios/pull/4854) +- Simplify the import path of AxiosError [#4875](https://github.com/axios/axios/pull/4875) +- Fix Gitpod dead link [#4941](https://github.com/axios/axios/pull/4941) +- Enable syntax highlighting for a code block [#4970](https://github.com/axios/axios/pull/4970) +- Using Logo Axios in Readme.md [#4993](https://github.com/axios/axios/pull/4993) +- Fix markup for note in README [#4825](https://github.com/axios/axios/pull/4825) +- Fix typo and formatting, add colons [#4853](https://github.com/axios/axios/pull/4853) +- Fix typo in readme [#4942](https://github.com/axios/axios/pull/4942) + +### Security + +- Update SECURITY.md [#4687](https://github.com/axios/axios/pull/4687) + +### Contributors to this release + +- [Bertrand Marron](https://github.com/tusbar) +- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS) +- [Dan Mooney](https://github.com/danmooney) +- [Michael Li](https://github.com/xiaoyu-tamu) +- [aong](https://github.com/yxwzaxns) +- [Des Preston](https://github.com/despreston) +- [Ted Robertson](https://github.com/tredondo) +- [zhoulixiang](https://github.com/zh-lx) +- [Arthur Fiorette](https://github.com/arthurfiorette) +- [Kumar Shanu](https://github.com/Kr-Shanu) +- [JALAL](https://github.com/JLL32) +- [Jingyi Lin](https://github.com/MageeLin) +- [Philipp Loose](https://github.com/phloose) +- [Alexander Shchukin](https://github.com/sashsvamir) +- [Dave Cardwell](https://github.com/davecardwell) +- [Cat Scarlet](https://github.com/catscarlet) +- [Luca Pizzini](https://github.com/lpizzinidev) +- [Kai](https://github.com/Schweinepriester) +- [Maxime Bargiel](https://github.com/mbargiel) +- [Brian Helba](https://github.com/brianhelba) +- [reslear](https://github.com/reslear) +- [Jamie Slome](https://github.com/JamieSlome) +- [Landro3](https://github.com/Landro3) +- [rafw87](https://github.com/rafw87) +- [Afzal Sayed](https://github.com/afzalsayed96) +- [Koki Oyatsu](https://github.com/kaishuu0123) +- [Dave](https://github.com/wangcch) +- [暴走老七](https://github.com/baozouai) +- [Spencer](https://github.com/spalger) +- [Adrian Wieprzkowicz](https://github.com/Argeento) +- [Jamie Telin](https://github.com/lejahmie) +- [毛呆](https://github.com/aweikalee) +- [Kirill Shakirov](https://github.com/turisap) +- [Rraji Abdelbari](https://github.com/estarossa0) +- [Jelle Schutter](https://github.com/jelleschutter) +- [Tom Ceuppens](https://github.com/KyorCode) +- [Johann Cooper](https://github.com/JohannCooper) +- [Dimitris Halatsis](https://github.com/mitsos1os) +- [chenjigeng](https://github.com/chenjigeng) +- [João Gabriel Quaresma](https://github.com/joaoGabriel55) +- [Victor Augusto](https://github.com/VictorAugDB) +- [neilnaveen](https://github.com/neilnaveen) +- [Pavlos](https://github.com/psmoros) +- [Kiryl Valkovich](https://github.com/visortelle) +- [Naveen](https://github.com/naveensrinivasan) +- [wenzheng](https://github.com/0x30) +- [hcwhan](https://github.com/hcwhan) +- [Bassel Rachid](https://github.com/basselworkforce) +- [Grégoire Pineau](https://github.com/lyrixx) +- [felipedamin](https://github.com/felipedamin) +- [Karl Horky](https://github.com/karlhorky) +- [Yue JIN](https://github.com/kingyue737) +- [Usman Ali Siddiqui](https://github.com/usman250994) +- [WD](https://github.com/techbirds) +- [Günther Foidl](https://github.com/gfoidl) +- [Stephen Jennings](https://github.com/jennings) +- [C.T.Lin](https://github.com/chentsulin) +- [mia-z](https://github.com/mia-z) +- [Parth Banathia](https://github.com/Parth0105) +- [parth0105pluang](https://github.com/parth0105pluang) +- [Marco Weber](https://github.com/mrcwbr) +- [Luca Pizzini](https://github.com/lpizzinidev) +- [Willian Agostini](https://github.com/WillianAgostini) +- [Huyen Nguyen](https://github.com/huyenltnguyen) \ No newline at end of file diff --git a/Scripts/node_modules/axios/LICENSE b/Scripts/node_modules/axios/LICENSE new file mode 100644 index 00000000..05006a51 --- /dev/null +++ b/Scripts/node_modules/axios/LICENSE @@ -0,0 +1,7 @@ +# Copyright (c) 2014-present Matt Zabriskie & Collaborators + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Scripts/node_modules/axios/MIGRATION_GUIDE.md b/Scripts/node_modules/axios/MIGRATION_GUIDE.md new file mode 100644 index 00000000..ec3ae0da --- /dev/null +++ b/Scripts/node_modules/axios/MIGRATION_GUIDE.md @@ -0,0 +1,3 @@ +# Migration Guide + +## 0.x.x -> 1.1.0 diff --git a/Scripts/node_modules/axios/README.md b/Scripts/node_modules/axios/README.md new file mode 100644 index 00000000..f012e446 --- /dev/null +++ b/Scripts/node_modules/axios/README.md @@ -0,0 +1,1647 @@ +

+ Platinum sponsors +
+

+ +
+ +

+ Gold sponsors +

+

+ +
+ + + + + + + +

API-first authentication, authorization, and fraud prevention

+

+ Website • + DocumentationNode.js Backend SDK +

+
+ + +

+
+
+
+ +

Promise based HTTP client for the browser and node.js

+ +

+ Website • + Documentation +

+ +
+ +[![npm version](https://img.shields.io/npm/v/axios.svg?style=flat-square)](https://www.npmjs.org/package/axios) +[![CDNJS](https://img.shields.io/cdnjs/v/axios.svg?style=flat-square)](https://cdnjs.com/libraries/axios) +[![Build status](https://img.shields.io/github/actions/workflow/status/axios/axios/ci.yml?branch=v1.x&label=CI&logo=github&style=flat-square)](https://github.com/axios/axios/actions/workflows/ci.yml) +[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod&style=flat-square)](https://gitpod.io/#https://github.com/axios/axios) +[![code coverage](https://img.shields.io/coveralls/mzabriskie/axios.svg?style=flat-square)](https://coveralls.io/r/mzabriskie/axios) +[![install size](https://img.shields.io/badge/dynamic/json?url=https://packagephobia.com/v2/api.json?p=axios&query=$.install.pretty&label=install%20size&style=flat-square)](https://packagephobia.now.sh/result?p=axios) +[![npm bundle size](https://img.shields.io/bundlephobia/minzip/axios?style=flat-square)](https://bundlephobia.com/package/axios@latest) +[![npm downloads](https://img.shields.io/npm/dm/axios.svg?style=flat-square)](https://npm-stat.com/charts.html?package=axios) +[![gitter chat](https://img.shields.io/gitter/room/mzabriskie/axios.svg?style=flat-square)](https://gitter.im/mzabriskie/axios) +[![code helpers](https://www.codetriage.com/axios/axios/badges/users.svg)](https://www.codetriage.com/axios/axios) +[![Known Vulnerabilities](https://snyk.io/test/npm/axios/badge.svg)](https://snyk.io/test/npm/axios) + + + + +
+ +## Table of Contents + + - [Features](#features) + - [Browser Support](#browser-support) + - [Installing](#installing) + - [Package manager](#package-manager) + - [CDN](#cdn) + - [Example](#example) + - [Axios API](#axios-api) + - [Request method aliases](#request-method-aliases) + - [Concurrency 👎](#concurrency-deprecated) + - [Creating an instance](#creating-an-instance) + - [Instance methods](#instance-methods) + - [Request Config](#request-config) + - [Response Schema](#response-schema) + - [Config Defaults](#config-defaults) + - [Global axios defaults](#global-axios-defaults) + - [Custom instance defaults](#custom-instance-defaults) + - [Config order of precedence](#config-order-of-precedence) + - [Interceptors](#interceptors) + - [Multiple Interceptors](#multiple-interceptors) + - [Handling Errors](#handling-errors) + - [Cancellation](#cancellation) + - [AbortController](#abortcontroller) + - [CancelToken 👎](#canceltoken-deprecated) + - [Using application/x-www-form-urlencoded format](#using-applicationx-www-form-urlencoded-format) + - [URLSearchParams](#urlsearchparams) + - [Query string](#query-string-older-browsers) + - [🆕 Automatic serialization](#-automatic-serialization-to-urlsearchparams) + - [Using multipart/form-data format](#using-multipartform-data-format) + - [FormData](#formdata) + - [🆕 Automatic serialization](#-automatic-serialization-to-formdata) + - [Files Posting](#files-posting) + - [HTML Form Posting](#-html-form-posting-browser) + - [🆕 Progress capturing](#-progress-capturing) + - [🆕 Rate limiting](#-progress-capturing) + - [🆕 AxiosHeaders](#-axiosheaders) + - [Semver](#semver) + - [Promises](#promises) + - [TypeScript](#typescript) + - [Resources](#resources) + - [Credits](#credits) + - [License](#license) + +## Features + +- Make [XMLHttpRequests](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) from the browser +- Make [http](https://nodejs.org/api/http.html) requests from node.js +- Supports the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) API +- Intercept request and response +- Transform request and response data +- Cancel requests +- Automatic transforms for [JSON](https://www.json.org/json-en.html) data +- 🆕 Automatic data object serialization to `multipart/form-data` and `x-www-form-urlencoded` body encodings +- Client side support for protecting against [XSRF](https://en.wikipedia.org/wiki/Cross-site_request_forgery) + +## Browser Support + +![Chrome](https://raw.githubusercontent.com/alrra/browser-logos/main/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.githubusercontent.com/alrra/browser-logos/main/src/firefox/firefox_48x48.png) | ![Safari](https://raw.githubusercontent.com/alrra/browser-logos/main/src/safari/safari_48x48.png) | ![Opera](https://raw.githubusercontent.com/alrra/browser-logos/main/src/opera/opera_48x48.png) | ![Edge](https://raw.githubusercontent.com/alrra/browser-logos/main/src/edge/edge_48x48.png) | ![IE](https://raw.githubusercontent.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) | +--- | --- | --- | --- | --- | --- | +Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ | + +[![Browser Matrix](https://saucelabs.com/open_sauce/build_matrix/axios.svg)](https://saucelabs.com/u/axios) + +## Installing + +### Package manager + +Using npm: + +```bash +$ npm install axios +``` + +Using bower: + +```bash +$ bower install axios +``` + +Using yarn: + +```bash +$ yarn add axios +``` + +Using pnpm: + +```bash +$ pnpm add axios +``` + +Once the package is installed, you can import the library using `import` or `require` approach: + +```js +import axios, {isCancel, AxiosError} from 'axios'; +``` + +You can also use the default export, since the named export is just a re-export from the Axios factory: + +```js +import axios from 'axios'; + +console.log(axios.isCancel('something')); +```` + +If you use `require` for importing, **only default export is available**: + +```js +const axios = require('axios'); + +console.log(axios.isCancel('something')); +``` + +For cases where something went wrong when trying to import a module into a custom or legacy environment, +you can try importing the module package directly: + +```js +const axios = require('axios/dist/browser/axios.cjs'); // browser commonJS bundle (ES2017) +// const axios = require('axios/dist/node/axios.cjs'); // node commonJS bundle (ES2017) +``` + +### CDN + +Using jsDelivr CDN (ES5 UMD browser module): + +```html + +``` + +Using unpkg CDN: + +```html + +``` + +## Example + +> **Note**: CommonJS usage +> In order to gain the TypeScript typings (for intellisense / autocomplete) while using CommonJS imports with `require()`, use the following approach: + +```js +import axios from 'axios'; +//const axios = require('axios'); // legacy way + +// Make a request for a user with a given ID +axios.get('/user?ID=12345') + .then(function (response) { + // handle success + console.log(response); + }) + .catch(function (error) { + // handle error + console.log(error); + }) + .finally(function () { + // always executed + }); + +// Optionally the request above could also be done as +axios.get('/user', { + params: { + ID: 12345 + } + }) + .then(function (response) { + console.log(response); + }) + .catch(function (error) { + console.log(error); + }) + .finally(function () { + // always executed + }); + +// Want to use async/await? Add the `async` keyword to your outer function/method. +async function getUser() { + try { + const response = await axios.get('/user?ID=12345'); + console.log(response); + } catch (error) { + console.error(error); + } +} +``` + +> **Note**: `async/await` is part of ECMAScript 2017 and is not supported in Internet +> Explorer and older browsers, so use with caution. + +Performing a `POST` request + +```js +axios.post('/user', { + firstName: 'Fred', + lastName: 'Flintstone' + }) + .then(function (response) { + console.log(response); + }) + .catch(function (error) { + console.log(error); + }); +``` + +Performing multiple concurrent requests + +```js +function getUserAccount() { + return axios.get('/user/12345'); +} + +function getUserPermissions() { + return axios.get('/user/12345/permissions'); +} + +Promise.all([getUserAccount(), getUserPermissions()]) + .then(function (results) { + const acct = results[0]; + const perm = results[1]; + }); +``` + +## axios API + +Requests can be made by passing the relevant config to `axios`. + +##### axios(config) + +```js +// Send a POST request +axios({ + method: 'post', + url: '/user/12345', + data: { + firstName: 'Fred', + lastName: 'Flintstone' + } +}); +``` + +```js +// GET request for remote image in node.js +axios({ + method: 'get', + url: 'https://bit.ly/2mTM3nY', + responseType: 'stream' +}) + .then(function (response) { + response.data.pipe(fs.createWriteStream('ada_lovelace.jpg')) + }); +``` + +##### axios(url[, config]) + +```js +// Send a GET request (default method) +axios('/user/12345'); +``` + +### Request method aliases + +For convenience, aliases have been provided for all common request methods. + +##### axios.request(config) +##### axios.get(url[, config]) +##### axios.delete(url[, config]) +##### axios.head(url[, config]) +##### axios.options(url[, config]) +##### axios.post(url[, data[, config]]) +##### axios.put(url[, data[, config]]) +##### axios.patch(url[, data[, config]]) + +###### NOTE +When using the alias methods `url`, `method`, and `data` properties don't need to be specified in config. + +### Concurrency (Deprecated) +Please use `Promise.all` to replace the below functions. + +Helper functions for dealing with concurrent requests. + +axios.all(iterable) +axios.spread(callback) + +### Creating an instance + +You can create a new instance of axios with a custom config. + +##### axios.create([config]) + +```js +const instance = axios.create({ + baseURL: 'https://some-domain.com/api/', + timeout: 1000, + headers: {'X-Custom-Header': 'foobar'} +}); +``` + +### Instance methods + +The available instance methods are listed below. The specified config will be merged with the instance config. + +##### axios#request(config) +##### axios#get(url[, config]) +##### axios#delete(url[, config]) +##### axios#head(url[, config]) +##### axios#options(url[, config]) +##### axios#post(url[, data[, config]]) +##### axios#put(url[, data[, config]]) +##### axios#patch(url[, data[, config]]) +##### axios#getUri([config]) + +## Request Config + +These are the available config options for making requests. Only the `url` is required. Requests will default to `GET` if `method` is not specified. + +```js +{ + // `url` is the server URL that will be used for the request + url: '/user', + + // `method` is the request method to be used when making the request + method: 'get', // default + + // `baseURL` will be prepended to `url` unless `url` is absolute. + // It can be convenient to set `baseURL` for an instance of axios to pass relative URLs + // to methods of that instance. + baseURL: 'https://some-domain.com/api/', + + // `transformRequest` allows changes to the request data before it is sent to the server + // This is only applicable for request methods 'PUT', 'POST', 'PATCH' and 'DELETE' + // The last function in the array must return a string or an instance of Buffer, ArrayBuffer, + // FormData or Stream + // You may modify the headers object. + transformRequest: [function (data, headers) { + // Do whatever you want to transform the data + + return data; + }], + + // `transformResponse` allows changes to the response data to be made before + // it is passed to then/catch + transformResponse: [function (data) { + // Do whatever you want to transform the data + + return data; + }], + + // `headers` are custom headers to be sent + headers: {'X-Requested-With': 'XMLHttpRequest'}, + + // `params` are the URL parameters to be sent with the request + // Must be a plain object or a URLSearchParams object + params: { + ID: 12345 + }, + + // `paramsSerializer` is an optional config that allows you to customize serializing `params`. + paramsSerializer: { + + //Custom encoder function which sends key/value pairs in an iterative fashion. + encode?: (param: string): string => { /* Do custom operations here and return transformed string */ }, + + // Custom serializer function for the entire parameter. Allows user to mimic pre 1.x behaviour. + serialize?: (params: Record, options?: ParamsSerializerOptions ), + + //Configuration for formatting array indexes in the params. + indexes: false // Three available options: (1) indexes: null (leads to no brackets), (2) (default) indexes: false (leads to empty brackets), (3) indexes: true (leads to brackets with indexes). + }, + + // `data` is the data to be sent as the request body + // Only applicable for request methods 'PUT', 'POST', 'DELETE , and 'PATCH' + // When no `transformRequest` is set, must be of one of the following types: + // - string, plain object, ArrayBuffer, ArrayBufferView, URLSearchParams + // - Browser only: FormData, File, Blob + // - Node only: Stream, Buffer, FormData (form-data package) + data: { + firstName: 'Fred' + }, + + // syntax alternative to send data into the body + // method post + // only the value is sent, not the key + data: 'Country=Brasil&City=Belo Horizonte', + + // `timeout` specifies the number of milliseconds before the request times out. + // If the request takes longer than `timeout`, the request will be aborted. + timeout: 1000, // default is `0` (no timeout) + + // `withCredentials` indicates whether or not cross-site Access-Control requests + // should be made using credentials + withCredentials: false, // default + + // `adapter` allows custom handling of requests which makes testing easier. + // Return a promise and supply a valid response (see lib/adapters/README.md). + adapter: function (config) { + /* ... */ + }, + + // `auth` indicates that HTTP Basic auth should be used, and supplies credentials. + // This will set an `Authorization` header, overwriting any existing + // `Authorization` custom headers you have set using `headers`. + // Please note that only HTTP Basic auth is configurable through this parameter. + // For Bearer tokens and such, use `Authorization` custom headers instead. + auth: { + username: 'janedoe', + password: 's00pers3cret' + }, + + // `responseType` indicates the type of data that the server will respond with + // options are: 'arraybuffer', 'document', 'json', 'text', 'stream' + // browser only: 'blob' + responseType: 'json', // default + + // `responseEncoding` indicates encoding to use for decoding responses (Node.js only) + // Note: Ignored for `responseType` of 'stream' or client-side requests + responseEncoding: 'utf8', // default + + // `xsrfCookieName` is the name of the cookie to use as a value for xsrf token + xsrfCookieName: 'XSRF-TOKEN', // default + + // `xsrfHeaderName` is the name of the http header that carries the xsrf token value + xsrfHeaderName: 'X-XSRF-TOKEN', // default + + // `undefined` (default) - set XSRF header only for the same origin requests + withXSRFToken: boolean | undefined | ((config: InternalAxiosRequestConfig) => boolean | undefined), + + // `onUploadProgress` allows handling of progress events for uploads + // browser & node.js + onUploadProgress: function ({loaded, total, progress, bytes, estimated, rate, upload = true}) { + // Do whatever you want with the Axios progress event + }, + + // `onDownloadProgress` allows handling of progress events for downloads + // browser & node.js + onDownloadProgress: function ({loaded, total, progress, bytes, estimated, rate, download = true}) { + // Do whatever you want with the Axios progress event + }, + + // `maxContentLength` defines the max size of the http response content in bytes allowed in node.js + maxContentLength: 2000, + + // `maxBodyLength` (Node only option) defines the max size of the http request content in bytes allowed + maxBodyLength: 2000, + + // `validateStatus` defines whether to resolve or reject the promise for a given + // HTTP response status code. If `validateStatus` returns `true` (or is set to `null` + // or `undefined`), the promise will be resolved; otherwise, the promise will be + // rejected. + validateStatus: function (status) { + return status >= 200 && status < 300; // default + }, + + // `maxRedirects` defines the maximum number of redirects to follow in node.js. + // If set to 0, no redirects will be followed. + maxRedirects: 21, // default + + // `beforeRedirect` defines a function that will be called before redirect. + // Use this to adjust the request options upon redirecting, + // to inspect the latest response headers, + // or to cancel the request by throwing an error + // If maxRedirects is set to 0, `beforeRedirect` is not used. + beforeRedirect: (options, { headers }) => { + if (options.hostname === "example.com") { + options.auth = "user:password"; + } + }, + + // `socketPath` defines a UNIX Socket to be used in node.js. + // e.g. '/var/run/docker.sock' to send requests to the docker daemon. + // Only either `socketPath` or `proxy` can be specified. + // If both are specified, `socketPath` is used. + socketPath: null, // default + + // `transport` determines the transport method that will be used to make the request. If defined, it will be used. Otherwise, if `maxRedirects` is 0, the default `http` or `https` library will be used, depending on the protocol specified in `protocol`. Otherwise, the `httpFollow` or `httpsFollow` library will be used, again depending on the protocol, which can handle redirects. + transport: undefined, // default + + // `httpAgent` and `httpsAgent` define a custom agent to be used when performing http + // and https requests, respectively, in node.js. This allows options to be added like + // `keepAlive` that are not enabled by default. + httpAgent: new http.Agent({ keepAlive: true }), + httpsAgent: new https.Agent({ keepAlive: true }), + + // `proxy` defines the hostname, port, and protocol of the proxy server. + // You can also define your proxy using the conventional `http_proxy` and + // `https_proxy` environment variables. If you are using environment variables + // for your proxy configuration, you can also define a `no_proxy` environment + // variable as a comma-separated list of domains that should not be proxied. + // Use `false` to disable proxies, ignoring environment variables. + // `auth` indicates that HTTP Basic auth should be used to connect to the proxy, and + // supplies credentials. + // This will set an `Proxy-Authorization` header, overwriting any existing + // `Proxy-Authorization` custom headers you have set using `headers`. + // If the proxy server uses HTTPS, then you must set the protocol to `https`. + proxy: { + protocol: 'https', + host: '127.0.0.1', + // hostname: '127.0.0.1' // Takes precedence over 'host' if both are defined + port: 9000, + auth: { + username: 'mikeymike', + password: 'rapunz3l' + } + }, + + // `cancelToken` specifies a cancel token that can be used to cancel the request + // (see Cancellation section below for details) + cancelToken: new CancelToken(function (cancel) { + }), + + // an alternative way to cancel Axios requests using AbortController + signal: new AbortController().signal, + + // `decompress` indicates whether or not the response body should be decompressed + // automatically. If set to `true` will also remove the 'content-encoding' header + // from the responses objects of all decompressed responses + // - Node only (XHR cannot turn off decompression) + decompress: true, // default + + // `insecureHTTPParser` boolean. + // Indicates where to use an insecure HTTP parser that accepts invalid HTTP headers. + // This may allow interoperability with non-conformant HTTP implementations. + // Using the insecure parser should be avoided. + // see options https://nodejs.org/dist/latest-v12.x/docs/api/http.html#http_http_request_url_options_callback + // see also https://nodejs.org/en/blog/vulnerability/february-2020-security-releases/#strict-http-header-parsing-none + insecureHTTPParser: undefined, // default + + // transitional options for backward compatibility that may be removed in the newer versions + transitional: { + // silent JSON parsing mode + // `true` - ignore JSON parsing errors and set response.data to null if parsing failed (old behaviour) + // `false` - throw SyntaxError if JSON parsing failed (Note: responseType must be set to 'json') + silentJSONParsing: true, // default value for the current Axios version + + // try to parse the response string as JSON even if `responseType` is not 'json' + forcedJSONParsing: true, + + // throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts + clarifyTimeoutError: false, + }, + + env: { + // The FormData class to be used to automatically serialize the payload into a FormData object + FormData: window?.FormData || global?.FormData + }, + + formSerializer: { + visitor: (value, key, path, helpers) => {}; // custom visitor function to serialize form values + dots: boolean; // use dots instead of brackets format + metaTokens: boolean; // keep special endings like {} in parameter key + indexes: boolean; // array indexes format null - no brackets, false - empty brackets, true - brackets with indexes + }, + + // http adapter only (node.js) + maxRate: [ + 100 * 1024, // 100KB/s upload limit, + 100 * 1024 // 100KB/s download limit + ] +} +``` + +## Response Schema + +The response for a request contains the following information. + +```js +{ + // `data` is the response that was provided by the server + data: {}, + + // `status` is the HTTP status code from the server response + status: 200, + + // `statusText` is the HTTP status message from the server response + statusText: 'OK', + + // `headers` the HTTP headers that the server responded with + // All header names are lowercase and can be accessed using the bracket notation. + // Example: `response.headers['content-type']` + headers: {}, + + // `config` is the config that was provided to `axios` for the request + config: {}, + + // `request` is the request that generated this response + // It is the last ClientRequest instance in node.js (in redirects) + // and an XMLHttpRequest instance in the browser + request: {} +} +``` + +When using `then`, you will receive the response as follows: + +```js +axios.get('/user/12345') + .then(function (response) { + console.log(response.data); + console.log(response.status); + console.log(response.statusText); + console.log(response.headers); + console.log(response.config); + }); +``` + +When using `catch`, or passing a [rejection callback](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then) as second parameter of `then`, the response will be available through the `error` object as explained in the [Handling Errors](#handling-errors) section. + +## Config Defaults + +You can specify config defaults that will be applied to every request. + +### Global axios defaults + +```js +axios.defaults.baseURL = 'https://api.example.com'; + +// Important: If axios is used with multiple domains, the AUTH_TOKEN will be sent to all of them. +// See below for an example using Custom instance defaults instead. +axios.defaults.headers.common['Authorization'] = AUTH_TOKEN; + +axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; +``` + +### Custom instance defaults + +```js +// Set config defaults when creating the instance +const instance = axios.create({ + baseURL: 'https://api.example.com' +}); + +// Alter defaults after instance has been created +instance.defaults.headers.common['Authorization'] = AUTH_TOKEN; +``` + +### Config order of precedence + +Config will be merged with an order of precedence. The order is library defaults found in [lib/defaults.js](https://github.com/axios/axios/blob/master/lib/defaults/index.js#L28), then `defaults` property of the instance, and finally `config` argument for the request. The latter will take precedence over the former. Here's an example. + +```js +// Create an instance using the config defaults provided by the library +// At this point the timeout config value is `0` as is the default for the library +const instance = axios.create(); + +// Override timeout default for the library +// Now all requests using this instance will wait 2.5 seconds before timing out +instance.defaults.timeout = 2500; + +// Override timeout for this request as it's known to take a long time +instance.get('/longRequest', { + timeout: 5000 +}); +``` + +## Interceptors + +You can intercept requests or responses before they are handled by `then` or `catch`. + +```js +// Add a request interceptor +axios.interceptors.request.use(function (config) { + // Do something before request is sent + return config; + }, function (error) { + // Do something with request error + return Promise.reject(error); + }); + +// Add a response interceptor +axios.interceptors.response.use(function (response) { + // Any status code that lie within the range of 2xx cause this function to trigger + // Do something with response data + return response; + }, function (error) { + // Any status codes that falls outside the range of 2xx cause this function to trigger + // Do something with response error + return Promise.reject(error); + }); +``` + +If you need to remove an interceptor later you can. + +```js +const myInterceptor = axios.interceptors.request.use(function () {/*...*/}); +axios.interceptors.request.eject(myInterceptor); +``` + +You can also clear all interceptors for requests or responses. +```js +const instance = axios.create(); +instance.interceptors.request.use(function () {/*...*/}); +instance.interceptors.request.clear(); // Removes interceptors from requests +instance.interceptors.response.use(function () {/*...*/}); +instance.interceptors.response.clear(); // Removes interceptors from responses +``` + +You can add interceptors to a custom instance of axios. + +```js +const instance = axios.create(); +instance.interceptors.request.use(function () {/*...*/}); +``` + +When you add request interceptors, they are presumed to be asynchronous by default. This can cause a delay +in the execution of your axios request when the main thread is blocked (a promise is created under the hood for +the interceptor and your request gets put on the bottom of the call stack). If your request interceptors are synchronous you can add a flag +to the options object that will tell axios to run the code synchronously and avoid any delays in request execution. + +```js +axios.interceptors.request.use(function (config) { + config.headers.test = 'I am only a header!'; + return config; +}, null, { synchronous: true }); +``` + +If you want to execute a particular interceptor based on a runtime check, +you can add a `runWhen` function to the options object. The interceptor will not be executed **if and only if** the return +of `runWhen` is `false`. The function will be called with the config +object (don't forget that you can bind your own arguments to it as well.) This can be handy when you have an +asynchronous request interceptor that only needs to run at certain times. + +```js +function onGetCall(config) { + return config.method === 'get'; +} +axios.interceptors.request.use(function (config) { + config.headers.test = 'special get headers'; + return config; +}, null, { runWhen: onGetCall }); +``` + +### Multiple Interceptors + +Given you add multiple response interceptors +and when the response was fulfilled +- then each interceptor is executed +- then they are executed in the order they were added +- then only the last interceptor's result is returned +- then every interceptor receives the result of its predecessor +- and when the fulfillment-interceptor throws + - then the following fulfillment-interceptor is not called + - then the following rejection-interceptor is called + - once caught, another following fulfill-interceptor is called again (just like in a promise chain). + +Read [the interceptor tests](./test/specs/interceptors.spec.js) for seeing all this in code. + +## Error Types + +There are many different axios error messages that can appear that can provide basic information about the specifics of the error and where opportunities may lie in debugging. + +The general structure of axios errors is as follows: +| Property | Definition | +| -------- | ---------- | +| message | A quick summary of the error message and the status it failed with. | +| name | This defines where the error originated from. For axios, it will always be an 'AxiosError'. | +| stack | Provides the stack trace of the error. | +| config | An axios config object with specific instance configurations defined by the user from when the request was made | +| code | Represents an axios identified error. The table below lists out specific definitions for internal axios error. | +| status | HTTP response status code. See [here](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) for common HTTP response status code meanings. + +Below is a list of potential axios identified error +| Code | Definition | +| -------- | ---------- | +| ERR_BAD_OPTION_VALUE | Invalid or unsupported value provided in axios configuration. | +| ERR_BAD_OPTION | Invalid option provided in axios configuration. | +| ECONNABORTED | Request timed out due to exceeding timeout specified in axios configuration. | +| ETIMEDOUT | Request timed out due to exceeding default axios timelimit. | +| ERR_NETWORK | Network-related issue. +| ERR_FR_TOO_MANY_REDIRECTS | Request is redirected too many times; exceeds max redirects specified in axios configuration. +| ERR_DEPRECATED | Deprecated feature or method used in axios. +| ERR_BAD_RESPONSE | Response cannot be parsed properly or is in an unexpected format. +| ERR_BAD_REQUEST | Requested has unexpected format or missing required parameters. | +| ERR_CANCELED | Feature or method is canceled explicitly by the user. +| ERR_NOT_SUPPORT | Feature or method not supported in the current axios environment. +| ERR_INVALID_URL | Invalid URL provided for axios request. + +## Handling Errors + +the default behavior is to reject every response that returns with a status code that falls out of the range of 2xx and treat it as an error. + +```js +axios.get('/user/12345') + .catch(function (error) { + if (error.response) { + // The request was made and the server responded with a status code + // that falls out of the range of 2xx + console.log(error.response.data); + console.log(error.response.status); + console.log(error.response.headers); + } else if (error.request) { + // The request was made but no response was received + // `error.request` is an instance of XMLHttpRequest in the browser and an instance of + // http.ClientRequest in node.js + console.log(error.request); + } else { + // Something happened in setting up the request that triggered an Error + console.log('Error', error.message); + } + console.log(error.config); + }); +``` + +Using the `validateStatus` config option, you can override the default condition (status >= 200 && status < 300) and define HTTP code(s) that should throw an error. + +```js +axios.get('/user/12345', { + validateStatus: function (status) { + return status < 500; // Resolve only if the status code is less than 500 + } +}) +``` + +Using `toJSON` you get an object with more information about the HTTP error. + +```js +axios.get('/user/12345') + .catch(function (error) { + console.log(error.toJSON()); + }); +``` + +## Cancellation + +### AbortController + +Starting from `v0.22.0` Axios supports AbortController to cancel requests in fetch API way: + +```js +const controller = new AbortController(); + +axios.get('/foo/bar', { + signal: controller.signal +}).then(function(response) { + //... +}); +// cancel the request +controller.abort() +``` + +### CancelToken `👎deprecated` + +You can also cancel a request using a *CancelToken*. + +> The axios cancel token API is based on the withdrawn [cancellable promises proposal](https://github.com/tc39/proposal-cancelable-promises). + +> This API is deprecated since v0.22.0 and shouldn't be used in new projects + +You can create a cancel token using the `CancelToken.source` factory as shown below: + +```js +const CancelToken = axios.CancelToken; +const source = CancelToken.source(); + +axios.get('/user/12345', { + cancelToken: source.token +}).catch(function (thrown) { + if (axios.isCancel(thrown)) { + console.log('Request canceled', thrown.message); + } else { + // handle error + } +}); + +axios.post('/user/12345', { + name: 'new name' +}, { + cancelToken: source.token +}) + +// cancel the request (the message parameter is optional) +source.cancel('Operation canceled by the user.'); +``` + +You can also create a cancel token by passing an executor function to the `CancelToken` constructor: + +```js +const CancelToken = axios.CancelToken; +let cancel; + +axios.get('/user/12345', { + cancelToken: new CancelToken(function executor(c) { + // An executor function receives a cancel function as a parameter + cancel = c; + }) +}); + +// cancel the request +cancel(); +``` + +> **Note:** you can cancel several requests with the same cancel token/abort controller. +> If a cancellation token is already cancelled at the moment of starting an Axios request, then the request is cancelled immediately, without any attempts to make a real request. + +> During the transition period, you can use both cancellation APIs, even for the same request: + +## Using `application/x-www-form-urlencoded` format + +### URLSearchParams + +By default, axios serializes JavaScript objects to `JSON`. To send data in the [`application/x-www-form-urlencoded` format](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) instead, you can use the [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) API, which is [supported](http://www.caniuse.com/#feat=urlsearchparams) in the vast majority of browsers,and [ Node](https://nodejs.org/api/url.html#url_class_urlsearchparams) starting with v10 (released in 2018). + +```js +const params = new URLSearchParams({ foo: 'bar' }); +params.append('extraparam', 'value'); +axios.post('/foo', params); +``` + +### Query string (Older browsers) + +For compatibility with very old browsers, there is a [polyfill](https://github.com/WebReflection/url-search-params) available (make sure to polyfill the global environment). + +Alternatively, you can encode data using the [`qs`](https://github.com/ljharb/qs) library: + +```js +const qs = require('qs'); +axios.post('/foo', qs.stringify({ 'bar': 123 })); +``` + +Or in another way (ES6), + +```js +import qs from 'qs'; +const data = { 'bar': 123 }; +const options = { + method: 'POST', + headers: { 'content-type': 'application/x-www-form-urlencoded' }, + data: qs.stringify(data), + url, +}; +axios(options); +``` + +### Older Node.js versions + +For older Node.js engines, you can use the [`querystring`](https://nodejs.org/api/querystring.html) module as follows: + +```js +const querystring = require('querystring'); +axios.post('https://something.com/', querystring.stringify({ foo: 'bar' })); +``` + +You can also use the [`qs`](https://github.com/ljharb/qs) library. + +> **Note**: The `qs` library is preferable if you need to stringify nested objects, as the `querystring` method has [known issues](https://github.com/nodejs/node-v0.x-archive/issues/1665) with that use case. + +### 🆕 Automatic serialization to URLSearchParams + +Axios will automatically serialize the data object to urlencoded format if the content-type header is set to "application/x-www-form-urlencoded". + +```js +const data = { + x: 1, + arr: [1, 2, 3], + arr2: [1, [2], 3], + users: [{name: 'Peter', surname: 'Griffin'}, {name: 'Thomas', surname: 'Anderson'}], +}; + +await axios.postForm('https://postman-echo.com/post', data, + {headers: {'content-type': 'application/x-www-form-urlencoded'}} +); +``` + +The server will handle it as: + +```js + { + x: '1', + 'arr[]': [ '1', '2', '3' ], + 'arr2[0]': '1', + 'arr2[1][0]': '2', + 'arr2[2]': '3', + 'arr3[]': [ '1', '2', '3' ], + 'users[0][name]': 'Peter', + 'users[0][surname]': 'griffin', + 'users[1][name]': 'Thomas', + 'users[1][surname]': 'Anderson' + } +```` + +If your backend body-parser (like `body-parser` of `express.js`) supports nested objects decoding, you will get the same object on the server-side automatically + +```js + var app = express(); + + app.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies + + app.post('/', function (req, res, next) { + // echo body as JSON + res.send(JSON.stringify(req.body)); + }); + + server = app.listen(3000); +``` + +## Using `multipart/form-data` format + +### FormData + +To send the data as a `multipart/formdata` you need to pass a formData instance as a payload. +Setting the `Content-Type` header is not required as Axios guesses it based on the payload type. + +```js +const formData = new FormData(); +formData.append('foo', 'bar'); + +axios.post('https://httpbin.org/post', formData); +``` + +In node.js, you can use the [`form-data`](https://github.com/form-data/form-data) library as follows: + +```js +const FormData = require('form-data'); + +const form = new FormData(); +form.append('my_field', 'my value'); +form.append('my_buffer', new Buffer(10)); +form.append('my_file', fs.createReadStream('/foo/bar.jpg')); + +axios.post('https://example.com', form) +``` + +### 🆕 Automatic serialization to FormData + +Starting from `v0.27.0`, Axios supports automatic object serialization to a FormData object if the request `Content-Type` +header is set to `multipart/form-data`. + +The following request will submit the data in a FormData format (Browser & Node.js): + +```js +import axios from 'axios'; + +axios.post('https://httpbin.org/post', {x: 1}, { + headers: { + 'Content-Type': 'multipart/form-data' + } +}).then(({data}) => console.log(data)); +``` + +In the `node.js` build, the ([`form-data`](https://github.com/form-data/form-data)) polyfill is used by default. + +You can overload the FormData class by setting the `env.FormData` config variable, +but you probably won't need it in most cases: + +```js +const axios = require('axios'); +var FormData = require('form-data'); + +axios.post('https://httpbin.org/post', {x: 1, buf: new Buffer(10)}, { + headers: { + 'Content-Type': 'multipart/form-data' + } +}).then(({data}) => console.log(data)); +``` + +Axios FormData serializer supports some special endings to perform the following operations: + +- `{}` - serialize the value with JSON.stringify +- `[]` - unwrap the array-like object as separate fields with the same key + +> **Note**: unwrap/expand operation will be used by default on arrays and FileList objects + +FormData serializer supports additional options via `config.formSerializer: object` property to handle rare cases: + +- `visitor: Function` - user-defined visitor function that will be called recursively to serialize the data object +to a `FormData` object by following custom rules. + +- `dots: boolean = false` - use dot notation instead of brackets to serialize arrays and objects; + +- `metaTokens: boolean = true` - add the special ending (e.g `user{}: '{"name": "John"}'`) in the FormData key. +The back-end body-parser could potentially use this meta-information to automatically parse the value as JSON. + +- `indexes: null|false|true = false` - controls how indexes will be added to unwrapped keys of `flat` array-like objects + + - `null` - don't add brackets (`arr: 1`, `arr: 2`, `arr: 3`) + - `false`(default) - add empty brackets (`arr[]: 1`, `arr[]: 2`, `arr[]: 3`) + - `true` - add brackets with indexes (`arr[0]: 1`, `arr[1]: 2`, `arr[2]: 3`) + +Let's say we have an object like this one: + +```js +const obj = { + x: 1, + arr: [1, 2, 3], + arr2: [1, [2], 3], + users: [{name: 'Peter', surname: 'Griffin'}, {name: 'Thomas', surname: 'Anderson'}], + 'obj2{}': [{x:1}] +}; +``` + +The following steps will be executed by the Axios serializer internally: + +```js +const formData = new FormData(); +formData.append('x', '1'); +formData.append('arr[]', '1'); +formData.append('arr[]', '2'); +formData.append('arr[]', '3'); +formData.append('arr2[0]', '1'); +formData.append('arr2[1][0]', '2'); +formData.append('arr2[2]', '3'); +formData.append('users[0][name]', 'Peter'); +formData.append('users[0][surname]', 'Griffin'); +formData.append('users[1][name]', 'Thomas'); +formData.append('users[1][surname]', 'Anderson'); +formData.append('obj2{}', '[{"x":1}]'); +``` + +Axios supports the following shortcut methods: `postForm`, `putForm`, `patchForm` +which are just the corresponding http methods with the `Content-Type` header preset to `multipart/form-data`. + +## Files Posting + +You can easily submit a single file: + +```js +await axios.postForm('https://httpbin.org/post', { + 'myVar' : 'foo', + 'file': document.querySelector('#fileInput').files[0] +}); +``` + +or multiple files as `multipart/form-data`: + +```js +await axios.postForm('https://httpbin.org/post', { + 'files[]': document.querySelector('#fileInput').files +}); +``` + +`FileList` object can be passed directly: + +```js +await axios.postForm('https://httpbin.org/post', document.querySelector('#fileInput').files) +``` + +All files will be sent with the same field names: `files[]`. + +## 🆕 HTML Form Posting (browser) + +Pass HTML Form element as a payload to submit it as `multipart/form-data` content. + +```js +await axios.postForm('https://httpbin.org/post', document.querySelector('#htmlForm')); +``` + +`FormData` and `HTMLForm` objects can also be posted as `JSON` by explicitly setting the `Content-Type` header to `application/json`: + +```js +await axios.post('https://httpbin.org/post', document.querySelector('#htmlForm'), { + headers: { + 'Content-Type': 'application/json' + } +}) +``` + +For example, the Form + +```html +
+ + + + + + + + + +
+``` + +will be submitted as the following JSON object: + +```js +{ + "foo": "1", + "deep": { + "prop": { + "spaced": "3" + } + }, + "baz": [ + "4", + "5" + ], + "user": { + "age": "value2" + } +} +```` + +Sending `Blobs`/`Files` as JSON (`base64`) is not currently supported. + +## 🆕 Progress capturing + +Axios supports both browser and node environments to capture request upload/download progress. + +```js +await axios.post(url, data, { + onUploadProgress: function (axiosProgressEvent) { + /*{ + loaded: number; + total?: number; + progress?: number; // in range [0..1] + bytes: number; // how many bytes have been transferred since the last trigger (delta) + estimated?: number; // estimated time in seconds + rate?: number; // upload speed in bytes + upload: true; // upload sign + }*/ + }, + + onDownloadProgress: function (axiosProgressEvent) { + /*{ + loaded: number; + total?: number; + progress?: number; + bytes: number; + estimated?: number; + rate?: number; // download speed in bytes + download: true; // download sign + }*/ + } +}); +``` + +You can also track stream upload/download progress in node.js: + +```js +const {data} = await axios.post(SERVER_URL, readableStream, { + onUploadProgress: ({progress}) => { + console.log((progress * 100).toFixed(2)); + }, + + headers: { + 'Content-Length': contentLength + }, + + maxRedirects: 0 // avoid buffering the entire stream +}); +```` + +> **Note:** +> Capturing FormData upload progress is not currently supported in node.js environments. + +> **⚠️ Warning** +> It is recommended to disable redirects by setting maxRedirects: 0 to upload the stream in the **node.js** environment, +> as follow-redirects package will buffer the entire stream in RAM without following the "backpressure" algorithm. + + +## 🆕 Rate limiting + +Download and upload rate limits can only be set for the http adapter (node.js): + +```js +const {data} = await axios.post(LOCAL_SERVER_URL, myBuffer, { + onUploadProgress: ({progress, rate}) => { + console.log(`Upload [${(progress*100).toFixed(2)}%]: ${(rate / 1024).toFixed(2)}KB/s`) + }, + + maxRate: [100 * 1024], // 100KB/s limit +}); +``` + +## 🆕 AxiosHeaders + +Axios has its own `AxiosHeaders` class to manipulate headers using a Map-like API that guarantees caseless work. +Although HTTP is case-insensitive in headers, Axios will retain the case of the original header for stylistic reasons +and for a workaround when servers mistakenly consider the header's case. +The old approach of directly manipulating headers object is still available, but deprecated and not recommended for future usage. + +### Working with headers + +An AxiosHeaders object instance can contain different types of internal values. that control setting and merging logic. +The final headers object with string values is obtained by Axios by calling the `toJSON` method. + +> Note: By JSON here we mean an object consisting only of string values intended to be sent over the network. + +The header value can be one of the following types: +- `string` - normal string value that will be sent to the server +- `null` - skip header when rendering to JSON +- `false` - skip header when rendering to JSON, additionally indicates that `set` method must be called with `rewrite` option set to `true` + to overwrite this value (Axios uses this internally to allow users to opt out of installing certain headers like `User-Agent` or `Content-Type`) +- `undefined` - value is not set + +> Note: The header value is considered set if it is not equal to undefined. + +The headers object is always initialized inside interceptors and transformers: + +```ts + axios.interceptors.request.use((request: InternalAxiosRequestConfig) => { + request.headers.set('My-header', 'value'); + + request.headers.set({ + "My-set-header1": "my-set-value1", + "My-set-header2": "my-set-value2" + }); + + request.headers.set('User-Agent', false); // disable subsequent setting the header by Axios + + request.headers.setContentType('text/plain'); + + request.headers['My-set-header2'] = 'newValue' // direct access is deprecated + + return request; + } + ); +```` + +You can iterate over an `AxiosHeaders` instance using a `for...of` statement: + +````js +const headers = new AxiosHeaders({ + foo: '1', + bar: '2', + baz: '3' +}); + +for(const [header, value] of headers) { + console.log(header, value); +} + +// foo 1 +// bar 2 +// baz 3 +```` + +### new AxiosHeaders(headers?) + +Constructs a new `AxiosHeaders` instance. + +``` +constructor(headers?: RawAxiosHeaders | AxiosHeaders | string); +``` + +If the headers object is a string, it will be parsed as RAW HTTP headers. + +````js +const headers = new AxiosHeaders(` +Host: www.bing.com +User-Agent: curl/7.54.0 +Accept: */*`); + +console.log(headers); + +// Object [AxiosHeaders] { +// host: 'www.bing.com', +// 'user-agent': 'curl/7.54.0', +// accept: '*/*' +// } +```` + +### AxiosHeaders#set + +```ts +set(headerName, value: Axios, rewrite?: boolean); +set(headerName, value, rewrite?: (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean); +set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean); +``` + +The `rewrite` argument controls the overwriting behavior: +- `false` - do not overwrite if header's value is set (is not `undefined`) +- `undefined` (default) - overwrite the header unless its value is set to `false` +- `true` - rewrite anyway + +The option can also accept a user-defined function that determines whether the value should be overwritten or not. + +Returns `this`. + +### AxiosHeaders#get(header) + +``` + get(headerName: string, matcher?: true | AxiosHeaderMatcher): AxiosHeaderValue; + get(headerName: string, parser: RegExp): RegExpExecArray | null; +```` + +Returns the internal value of the header. It can take an extra argument to parse the header's value with `RegExp.exec`, +matcher function or internal key-value parser. + +```ts +const headers = new AxiosHeaders({ + 'Content-Type': 'multipart/form-data; boundary=Asrf456BGe4h' +}); + +console.log(headers.get('Content-Type')); +// multipart/form-data; boundary=Asrf456BGe4h + +console.log(headers.get('Content-Type', true)); // parse key-value pairs from a string separated with \s,;= delimiters: +// [Object: null prototype] { +// 'multipart/form-data': undefined, +// boundary: 'Asrf456BGe4h' +// } + + +console.log(headers.get('Content-Type', (value, name, headers) => { + return String(value).replace(/a/g, 'ZZZ'); +})); +// multipZZZrt/form-dZZZtZZZ; boundZZZry=Asrf456BGe4h + +console.log(headers.get('Content-Type', /boundary=(\w+)/)?.[0]); +// boundary=Asrf456BGe4h + +``` + +Returns the value of the header. + +### AxiosHeaders#has(header, matcher?) + +``` +has(header: string, matcher?: AxiosHeaderMatcher): boolean; +``` + +Returns `true` if the header is set (has no `undefined` value). + +### AxiosHeaders#delete(header, matcher?) + +``` +delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean; +``` + +Returns `true` if at least one header has been removed. + +### AxiosHeaders#clear(matcher?) + +``` +clear(matcher?: AxiosHeaderMatcher): boolean; +``` + +Removes all headers. +Unlike the `delete` method matcher, this optional matcher will be used to match against the header name rather than the value. + +```ts +const headers = new AxiosHeaders({ + 'foo': '1', + 'x-foo': '2', + 'x-bar': '3', +}); + +console.log(headers.clear(/^x-/)); // true + +console.log(headers.toJSON()); // [Object: null prototype] { foo: '1' } +``` + +Returns `true` if at least one header has been cleared. + +### AxiosHeaders#normalize(format); + +If the headers object was changed directly, it can have duplicates with the same name but in different cases. +This method normalizes the headers object by combining duplicate keys into one. +Axios uses this method internally after calling each interceptor. +Set `format` to true for converting headers name to lowercase and capitalize the initial letters (`cOntEnt-type` => `Content-Type`) + +```js +const headers = new AxiosHeaders({ + 'foo': '1', +}); + +headers.Foo = '2'; +headers.FOO = '3'; + +console.log(headers.toJSON()); // [Object: null prototype] { foo: '1', Foo: '2', FOO: '3' } +console.log(headers.normalize().toJSON()); // [Object: null prototype] { foo: '3' } +console.log(headers.normalize(true).toJSON()); // [Object: null prototype] { Foo: '3' } +``` + +Returns `this`. + +### AxiosHeaders#concat(...targets) + +``` +concat(...targets: Array): AxiosHeaders; +``` + +Merges the instance with targets into a new `AxiosHeaders` instance. If the target is a string, it will be parsed as RAW HTTP headers. + +Returns a new `AxiosHeaders` instance. + +### AxiosHeaders#toJSON(asStrings?) + +```` +toJSON(asStrings?: boolean): RawAxiosHeaders; +```` + +Resolve all internal headers values into a new null prototype object. +Set `asStrings` to true to resolve arrays as a string containing all elements, separated by commas. + +### AxiosHeaders.from(thing?) + +```` +from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders; +```` + +Returns a new `AxiosHeaders` instance created from the raw headers passed in, +or simply returns the given headers object if it's an `AxiosHeaders` instance. + +### AxiosHeaders.concat(...targets) + +```` +concat(...targets: Array): AxiosHeaders; +```` + +Returns a new `AxiosHeaders` instance created by merging the target objects. + +### Shortcuts + +The following shortcuts are available: + +- `setContentType`, `getContentType`, `hasContentType` + +- `setContentLength`, `getContentLength`, `hasContentLength` + +- `setAccept`, `getAccept`, `hasAccept` + +- `setUserAgent`, `getUserAgent`, `hasUserAgent` + +- `setContentEncoding`, `getContentEncoding`, `hasContentEncoding` + + +## Semver + +Until axios reaches a `1.0` release, breaking changes will be released with a new minor version. For example `0.5.1`, and `0.5.4` will have the same API, but `0.6.0` will have breaking changes. + +## Promises + +axios depends on a native ES6 Promise implementation to be [supported](https://caniuse.com/promises). +If your environment doesn't support ES6 Promises, you can [polyfill](https://github.com/jakearchibald/es6-promise). + +## TypeScript + +axios includes [TypeScript](https://typescriptlang.org) definitions and a type guard for axios errors. + +```typescript +let user: User = null; +try { + const { data } = await axios.get('/user?ID=12345'); + user = data.userDetails; +} catch (error) { + if (axios.isAxiosError(error)) { + handleAxiosError(error); + } else { + handleUnexpectedError(error); + } +} +``` + +Because axios dual publishes with an ESM default export and a CJS `module.exports`, there are some caveats. +The recommended setting is to use `"moduleResolution": "node16"` (this is implied by `"module": "node16"`). Note that this requires TypeScript 4.7 or greater. +If use ESM, your settings should be fine. +If you compile TypeScript to CJS and you can’t use `"moduleResolution": "node 16"`, you have to enable `esModuleInterop`. +If you use TypeScript to type check CJS JavaScript code, your only option is to use `"moduleResolution": "node16"`. + +## Online one-click setup + +You can use Gitpod, an online IDE(which is free for Open Source) for contributing or running the examples online. + +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/axios/axios/blob/main/examples/server.js) + + +## Resources + +* [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) +* [Ecosystem](https://github.com/axios/axios/blob/v1.x/ECOSYSTEM.md) +* [Contributing Guide](https://github.com/axios/axios/blob/v1.x/CONTRIBUTING.md) +* [Code of Conduct](https://github.com/axios/axios/blob/v1.x/CODE_OF_CONDUCT.md) + +## Credits + +axios is heavily inspired by the [$http service](https://docs.angularjs.org/api/ng/service/$http) provided in [AngularJS](https://angularjs.org/). Ultimately axios is an effort to provide a standalone `$http`-like service for use outside of AngularJS. + +## License + +[MIT](LICENSE) diff --git a/Scripts/node_modules/axios/SECURITY.md b/Scripts/node_modules/axios/SECURITY.md new file mode 100644 index 00000000..a5a2b7d2 --- /dev/null +++ b/Scripts/node_modules/axios/SECURITY.md @@ -0,0 +1,6 @@ +# Reporting a Vulnerability + +If you discover a security vulnerability in axios please disclose it via [our huntr page](https://huntr.dev/repos/axios/axios/). Bounty eligibility, CVE assignment, response times and past reports are all there. + + +Thank you for improving the security of axios. diff --git a/Scripts/node_modules/axios/dist/axios.js b/Scripts/node_modules/axios/dist/axios.js new file mode 100644 index 00000000..24a83e53 --- /dev/null +++ b/Scripts/node_modules/axios/dist/axios.js @@ -0,0 +1,3422 @@ +// Axios v1.6.7 Copyright (c) 2024 Matt Zabriskie and contributors +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.axios = factory()); +})(this, (function () { 'use strict'; + + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread2(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { + _defineProperty(target, key, source[key]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; + } + function _regeneratorRuntime() { + _regeneratorRuntime = function () { + return exports; + }; + var exports = {}, + Op = Object.prototype, + hasOwn = Op.hasOwnProperty, + $Symbol = "function" == typeof Symbol ? Symbol : {}, + iteratorSymbol = $Symbol.iterator || "@@iterator", + asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", + toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + function define(obj, key, value) { + return Object.defineProperty(obj, key, { + value: value, + enumerable: !0, + configurable: !0, + writable: !0 + }), obj[key]; + } + try { + define({}, ""); + } catch (err) { + define = function (obj, key, value) { + return obj[key] = value; + }; + } + function wrap(innerFn, outerFn, self, tryLocsList) { + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, + generator = Object.create(protoGenerator.prototype), + context = new Context(tryLocsList || []); + return generator._invoke = function (innerFn, self, context) { + var state = "suspendedStart"; + return function (method, arg) { + if ("executing" === state) throw new Error("Generator is already running"); + if ("completed" === state) { + if ("throw" === method) throw arg; + return doneResult(); + } + for (context.method = method, context.arg = arg;;) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { + if ("suspendedStart" === state) throw state = "completed", context.arg; + context.dispatchException(context.arg); + } else "return" === context.method && context.abrupt("return", context.arg); + state = "executing"; + var record = tryCatch(innerFn, self, context); + if ("normal" === record.type) { + if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; + return { + value: record.arg, + done: context.done + }; + } + "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); + } + }; + }(innerFn, self, context), generator; + } + function tryCatch(fn, obj, arg) { + try { + return { + type: "normal", + arg: fn.call(obj, arg) + }; + } catch (err) { + return { + type: "throw", + arg: err + }; + } + } + exports.wrap = wrap; + var ContinueSentinel = {}; + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + var IteratorPrototype = {}; + define(IteratorPrototype, iteratorSymbol, function () { + return this; + }); + var getProto = Object.getPrototypeOf, + NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); + var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function (method) { + define(prototype, method, function (arg) { + return this._invoke(method, arg); + }); + }); + } + function AsyncIterator(generator, PromiseImpl) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if ("throw" !== record.type) { + var result = record.arg, + value = result.value; + return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { + invoke("next", value, resolve, reject); + }, function (err) { + invoke("throw", err, resolve, reject); + }) : PromiseImpl.resolve(value).then(function (unwrapped) { + result.value = unwrapped, resolve(result); + }, function (error) { + return invoke("throw", error, resolve, reject); + }); + } + reject(record.arg); + } + var previousPromise; + this._invoke = function (method, arg) { + function callInvokeWithMethodAndArg() { + return new PromiseImpl(function (resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); + }; + } + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + if (undefined === method) { + if (context.delegate = null, "throw" === context.method) { + if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; + context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); + } + return ContinueSentinel; + } + var record = tryCatch(method, delegate.iterator, context.arg); + if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; + var info = record.arg; + return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); + } + function pushTryEntry(locs) { + var entry = { + tryLoc: locs[0] + }; + 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); + } + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal", delete record.arg, entry.completion = record; + } + function Context(tryLocsList) { + this.tryEntries = [{ + tryLoc: "root" + }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); + } + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) return iteratorMethod.call(iterable); + if ("function" == typeof iterable.next) return iterable; + if (!isNaN(iterable.length)) { + var i = -1, + next = function next() { + for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; + return next.value = undefined, next.done = !0, next; + }; + return next.next = next; + } + } + return { + next: doneResult + }; + } + function doneResult() { + return { + value: undefined, + done: !0 + }; + } + return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { + var ctor = "function" == typeof genFun && genFun.constructor; + return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); + }, exports.mark = function (genFun) { + return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; + }, exports.awrap = function (arg) { + return { + __await: arg + }; + }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { + return this; + }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { + void 0 === PromiseImpl && (PromiseImpl = Promise); + var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); + return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { + return result.done ? result.value : iter.next(); + }); + }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { + return this; + }), define(Gp, "toString", function () { + return "[object Generator]"; + }), exports.keys = function (object) { + var keys = []; + for (var key in object) keys.push(key); + return keys.reverse(), function next() { + for (; keys.length;) { + var key = keys.pop(); + if (key in object) return next.value = key, next.done = !1, next; + } + return next.done = !0, next; + }; + }, exports.values = values, Context.prototype = { + constructor: Context, + reset: function (skipTempReset) { + if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); + }, + stop: function () { + this.done = !0; + var rootRecord = this.tryEntries[0].completion; + if ("throw" === rootRecord.type) throw rootRecord.arg; + return this.rval; + }, + dispatchException: function (exception) { + if (this.done) throw exception; + var context = this; + function handle(loc, caught) { + return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; + } + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i], + record = entry.completion; + if ("root" === entry.tryLoc) return handle("end"); + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"), + hasFinally = hasOwn.call(entry, "finallyLoc"); + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); + } else if (hasCatch) { + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); + } else { + if (!hasFinally) throw new Error("try statement without catch or finally"); + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); + } + } + } + }, + abrupt: function (type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); + var record = finallyEntry ? finallyEntry.completion : {}; + return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); + }, + complete: function (record, afterLoc) { + if ("throw" === record.type) throw record.arg; + return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; + }, + finish: function (finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; + } + }, + catch: function (tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if ("throw" === record.type) { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + throw new Error("illegal catch attempt"); + }, + delegateYield: function (iterable, resultName, nextLoc) { + return this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }, "next" === this.method && (this.arg = undefined), ContinueSentinel; + } + }, exports; + } + function _typeof(obj) { + "@babel/helpers - typeof"; + + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { + return typeof obj; + } : function (obj) { + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }, _typeof(obj); + } + function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } + } + function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + _next(undefined); + }); + }; + } + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; + } + function _slicedToArray(arr, i) { + return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); + } + function _toArray(arr) { + return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest(); + } + function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); + } + function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _arrayLikeToArray(arr); + } + function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + } + function _iterableToArray(iter) { + if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); + } + function _iterableToArrayLimit(arr, i) { + var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; + if (_i == null) return; + var _arr = []; + var _n = true; + var _d = false; + var _s, _e; + try { + for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + return _arr; + } + function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); + } + function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + + function bind(fn, thisArg) { + return function wrap() { + return fn.apply(thisArg, arguments); + }; + } + + // utils is a library of generic helper functions non-specific to axios + + var toString = Object.prototype.toString; + var getPrototypeOf = Object.getPrototypeOf; + var kindOf = function (cache) { + return function (thing) { + var str = toString.call(thing); + return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); + }; + }(Object.create(null)); + var kindOfTest = function kindOfTest(type) { + type = type.toLowerCase(); + return function (thing) { + return kindOf(thing) === type; + }; + }; + var typeOfTest = function typeOfTest(type) { + return function (thing) { + return _typeof(thing) === type; + }; + }; + + /** + * Determine if a value is an Array + * + * @param {Object} val The value to test + * + * @returns {boolean} True if value is an Array, otherwise false + */ + var isArray = Array.isArray; + + /** + * Determine if a value is undefined + * + * @param {*} val The value to test + * + * @returns {boolean} True if the value is undefined, otherwise false + */ + var isUndefined = typeOfTest('undefined'); + + /** + * Determine if a value is a Buffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Buffer, otherwise false + */ + function isBuffer(val) { + return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); + } + + /** + * Determine if a value is an ArrayBuffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is an ArrayBuffer, otherwise false + */ + var isArrayBuffer = kindOfTest('ArrayBuffer'); + + /** + * Determine if a value is a view on an ArrayBuffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false + */ + function isArrayBufferView(val) { + var result; + if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) { + result = ArrayBuffer.isView(val); + } else { + result = val && val.buffer && isArrayBuffer(val.buffer); + } + return result; + } + + /** + * Determine if a value is a String + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a String, otherwise false + */ + var isString = typeOfTest('string'); + + /** + * Determine if a value is a Function + * + * @param {*} val The value to test + * @returns {boolean} True if value is a Function, otherwise false + */ + var isFunction = typeOfTest('function'); + + /** + * Determine if a value is a Number + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Number, otherwise false + */ + var isNumber = typeOfTest('number'); + + /** + * Determine if a value is an Object + * + * @param {*} thing The value to test + * + * @returns {boolean} True if value is an Object, otherwise false + */ + var isObject = function isObject(thing) { + return thing !== null && _typeof(thing) === 'object'; + }; + + /** + * Determine if a value is a Boolean + * + * @param {*} thing The value to test + * @returns {boolean} True if value is a Boolean, otherwise false + */ + var isBoolean = function isBoolean(thing) { + return thing === true || thing === false; + }; + + /** + * Determine if a value is a plain Object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a plain Object, otherwise false + */ + var isPlainObject = function isPlainObject(val) { + if (kindOf(val) !== 'object') { + return false; + } + var prototype = getPrototypeOf(val); + return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); + }; + + /** + * Determine if a value is a Date + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Date, otherwise false + */ + var isDate = kindOfTest('Date'); + + /** + * Determine if a value is a File + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a File, otherwise false + */ + var isFile = kindOfTest('File'); + + /** + * Determine if a value is a Blob + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Blob, otherwise false + */ + var isBlob = kindOfTest('Blob'); + + /** + * Determine if a value is a FileList + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a File, otherwise false + */ + var isFileList = kindOfTest('FileList'); + + /** + * Determine if a value is a Stream + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Stream, otherwise false + */ + var isStream = function isStream(val) { + return isObject(val) && isFunction(val.pipe); + }; + + /** + * Determine if a value is a FormData + * + * @param {*} thing The value to test + * + * @returns {boolean} True if value is an FormData, otherwise false + */ + var isFormData = function isFormData(thing) { + var kind; + return thing && (typeof FormData === 'function' && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === 'formdata' || + // detect form-data instance + kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')); + }; + + /** + * Determine if a value is a URLSearchParams object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a URLSearchParams object, otherwise false + */ + var isURLSearchParams = kindOfTest('URLSearchParams'); + + /** + * Trim excess whitespace off the beginning and end of a string + * + * @param {String} str The String to trim + * + * @returns {String} The String freed of excess whitespace + */ + var trim = function trim(str) { + return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); + }; + + /** + * Iterate over an Array or an Object invoking a function for each item. + * + * If `obj` is an Array callback will be called passing + * the value, index, and complete array for each item. + * + * If 'obj' is an Object callback will be called passing + * the value, key, and complete object for each property. + * + * @param {Object|Array} obj The object to iterate + * @param {Function} fn The callback to invoke for each item + * + * @param {Boolean} [allOwnKeys = false] + * @returns {any} + */ + function forEach(obj, fn) { + var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, + _ref$allOwnKeys = _ref.allOwnKeys, + allOwnKeys = _ref$allOwnKeys === void 0 ? false : _ref$allOwnKeys; + // Don't bother if no value provided + if (obj === null || typeof obj === 'undefined') { + return; + } + var i; + var l; + + // Force an array if not already something iterable + if (_typeof(obj) !== 'object') { + /*eslint no-param-reassign:0*/ + obj = [obj]; + } + if (isArray(obj)) { + // Iterate over array values + for (i = 0, l = obj.length; i < l; i++) { + fn.call(null, obj[i], i, obj); + } + } else { + // Iterate over object keys + var keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); + var len = keys.length; + var key; + for (i = 0; i < len; i++) { + key = keys[i]; + fn.call(null, obj[key], key, obj); + } + } + } + function findKey(obj, key) { + key = key.toLowerCase(); + var keys = Object.keys(obj); + var i = keys.length; + var _key; + while (i-- > 0) { + _key = keys[i]; + if (key === _key.toLowerCase()) { + return _key; + } + } + return null; + } + var _global = function () { + /*eslint no-undef:0*/ + if (typeof globalThis !== "undefined") return globalThis; + return typeof self !== "undefined" ? self : typeof window !== 'undefined' ? window : global; + }(); + var isContextDefined = function isContextDefined(context) { + return !isUndefined(context) && context !== _global; + }; + + /** + * Accepts varargs expecting each argument to be an object, then + * immutably merges the properties of each object and returns result. + * + * When multiple objects contain the same key the later object in + * the arguments list will take precedence. + * + * Example: + * + * ```js + * var result = merge({foo: 123}, {foo: 456}); + * console.log(result.foo); // outputs 456 + * ``` + * + * @param {Object} obj1 Object to merge + * + * @returns {Object} Result of all merge properties + */ + function /* obj1, obj2, obj3, ... */ + merge() { + var _ref2 = isContextDefined(this) && this || {}, + caseless = _ref2.caseless; + var result = {}; + var assignValue = function assignValue(val, key) { + var targetKey = caseless && findKey(result, key) || key; + if (isPlainObject(result[targetKey]) && isPlainObject(val)) { + result[targetKey] = merge(result[targetKey], val); + } else if (isPlainObject(val)) { + result[targetKey] = merge({}, val); + } else if (isArray(val)) { + result[targetKey] = val.slice(); + } else { + result[targetKey] = val; + } + }; + for (var i = 0, l = arguments.length; i < l; i++) { + arguments[i] && forEach(arguments[i], assignValue); + } + return result; + } + + /** + * Extends object a by mutably adding to it the properties of object b. + * + * @param {Object} a The object to be extended + * @param {Object} b The object to copy properties from + * @param {Object} thisArg The object to bind function to + * + * @param {Boolean} [allOwnKeys] + * @returns {Object} The resulting value of object a + */ + var extend = function extend(a, b, thisArg) { + var _ref3 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}, + allOwnKeys = _ref3.allOwnKeys; + forEach(b, function (val, key) { + if (thisArg && isFunction(val)) { + a[key] = bind(val, thisArg); + } else { + a[key] = val; + } + }, { + allOwnKeys: allOwnKeys + }); + return a; + }; + + /** + * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) + * + * @param {string} content with BOM + * + * @returns {string} content value without BOM + */ + var stripBOM = function stripBOM(content) { + if (content.charCodeAt(0) === 0xFEFF) { + content = content.slice(1); + } + return content; + }; + + /** + * Inherit the prototype methods from one constructor into another + * @param {function} constructor + * @param {function} superConstructor + * @param {object} [props] + * @param {object} [descriptors] + * + * @returns {void} + */ + var inherits = function inherits(constructor, superConstructor, props, descriptors) { + constructor.prototype = Object.create(superConstructor.prototype, descriptors); + constructor.prototype.constructor = constructor; + Object.defineProperty(constructor, 'super', { + value: superConstructor.prototype + }); + props && Object.assign(constructor.prototype, props); + }; + + /** + * Resolve object with deep prototype chain to a flat object + * @param {Object} sourceObj source object + * @param {Object} [destObj] + * @param {Function|Boolean} [filter] + * @param {Function} [propFilter] + * + * @returns {Object} + */ + var toFlatObject = function toFlatObject(sourceObj, destObj, filter, propFilter) { + var props; + var i; + var prop; + var merged = {}; + destObj = destObj || {}; + // eslint-disable-next-line no-eq-null,eqeqeq + if (sourceObj == null) return destObj; + do { + props = Object.getOwnPropertyNames(sourceObj); + i = props.length; + while (i-- > 0) { + prop = props[i]; + if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { + destObj[prop] = sourceObj[prop]; + merged[prop] = true; + } + } + sourceObj = filter !== false && getPrototypeOf(sourceObj); + } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); + return destObj; + }; + + /** + * Determines whether a string ends with the characters of a specified string + * + * @param {String} str + * @param {String} searchString + * @param {Number} [position= 0] + * + * @returns {boolean} + */ + var endsWith = function endsWith(str, searchString, position) { + str = String(str); + if (position === undefined || position > str.length) { + position = str.length; + } + position -= searchString.length; + var lastIndex = str.indexOf(searchString, position); + return lastIndex !== -1 && lastIndex === position; + }; + + /** + * Returns new array from array like object or null if failed + * + * @param {*} [thing] + * + * @returns {?Array} + */ + var toArray = function toArray(thing) { + if (!thing) return null; + if (isArray(thing)) return thing; + var i = thing.length; + if (!isNumber(i)) return null; + var arr = new Array(i); + while (i-- > 0) { + arr[i] = thing[i]; + } + return arr; + }; + + /** + * Checking if the Uint8Array exists and if it does, it returns a function that checks if the + * thing passed in is an instance of Uint8Array + * + * @param {TypedArray} + * + * @returns {Array} + */ + // eslint-disable-next-line func-names + var isTypedArray = function (TypedArray) { + // eslint-disable-next-line func-names + return function (thing) { + return TypedArray && thing instanceof TypedArray; + }; + }(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array)); + + /** + * For each entry in the object, call the function with the key and value. + * + * @param {Object} obj - The object to iterate over. + * @param {Function} fn - The function to call for each entry. + * + * @returns {void} + */ + var forEachEntry = function forEachEntry(obj, fn) { + var generator = obj && obj[Symbol.iterator]; + var iterator = generator.call(obj); + var result; + while ((result = iterator.next()) && !result.done) { + var pair = result.value; + fn.call(obj, pair[0], pair[1]); + } + }; + + /** + * It takes a regular expression and a string, and returns an array of all the matches + * + * @param {string} regExp - The regular expression to match against. + * @param {string} str - The string to search. + * + * @returns {Array} + */ + var matchAll = function matchAll(regExp, str) { + var matches; + var arr = []; + while ((matches = regExp.exec(str)) !== null) { + arr.push(matches); + } + return arr; + }; + + /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */ + var isHTMLForm = kindOfTest('HTMLFormElement'); + var toCamelCase = function toCamelCase(str) { + return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) { + return p1.toUpperCase() + p2; + }); + }; + + /* Creating a function that will check if an object has a property. */ + var hasOwnProperty = function (_ref4) { + var hasOwnProperty = _ref4.hasOwnProperty; + return function (obj, prop) { + return hasOwnProperty.call(obj, prop); + }; + }(Object.prototype); + + /** + * Determine if a value is a RegExp object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a RegExp object, otherwise false + */ + var isRegExp = kindOfTest('RegExp'); + var reduceDescriptors = function reduceDescriptors(obj, reducer) { + var descriptors = Object.getOwnPropertyDescriptors(obj); + var reducedDescriptors = {}; + forEach(descriptors, function (descriptor, name) { + var ret; + if ((ret = reducer(descriptor, name, obj)) !== false) { + reducedDescriptors[name] = ret || descriptor; + } + }); + Object.defineProperties(obj, reducedDescriptors); + }; + + /** + * Makes all methods read-only + * @param {Object} obj + */ + + var freezeMethods = function freezeMethods(obj) { + reduceDescriptors(obj, function (descriptor, name) { + // skip restricted props in strict mode + if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) { + return false; + } + var value = obj[name]; + if (!isFunction(value)) return; + descriptor.enumerable = false; + if ('writable' in descriptor) { + descriptor.writable = false; + return; + } + if (!descriptor.set) { + descriptor.set = function () { + throw Error('Can not rewrite read-only method \'' + name + '\''); + }; + } + }); + }; + var toObjectSet = function toObjectSet(arrayOrString, delimiter) { + var obj = {}; + var define = function define(arr) { + arr.forEach(function (value) { + obj[value] = true; + }); + }; + isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); + return obj; + }; + var noop = function noop() {}; + var toFiniteNumber = function toFiniteNumber(value, defaultValue) { + value = +value; + return Number.isFinite(value) ? value : defaultValue; + }; + var ALPHA = 'abcdefghijklmnopqrstuvwxyz'; + var DIGIT = '0123456789'; + var ALPHABET = { + DIGIT: DIGIT, + ALPHA: ALPHA, + ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT + }; + var generateString = function generateString() { + var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 16; + var alphabet = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ALPHABET.ALPHA_DIGIT; + var str = ''; + var length = alphabet.length; + while (size--) { + str += alphabet[Math.random() * length | 0]; + } + return str; + }; + + /** + * If the thing is a FormData object, return true, otherwise return false. + * + * @param {unknown} thing - The thing to check. + * + * @returns {boolean} + */ + function isSpecCompliantForm(thing) { + return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]); + } + var toJSONObject = function toJSONObject(obj) { + var stack = new Array(10); + var visit = function visit(source, i) { + if (isObject(source)) { + if (stack.indexOf(source) >= 0) { + return; + } + if (!('toJSON' in source)) { + stack[i] = source; + var target = isArray(source) ? [] : {}; + forEach(source, function (value, key) { + var reducedValue = visit(value, i + 1); + !isUndefined(reducedValue) && (target[key] = reducedValue); + }); + stack[i] = undefined; + return target; + } + } + return source; + }; + return visit(obj, 0); + }; + var isAsyncFn = kindOfTest('AsyncFunction'); + var isThenable = function isThenable(thing) { + return thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing["catch"]); + }; + var utils$1 = { + isArray: isArray, + isArrayBuffer: isArrayBuffer, + isBuffer: isBuffer, + isFormData: isFormData, + isArrayBufferView: isArrayBufferView, + isString: isString, + isNumber: isNumber, + isBoolean: isBoolean, + isObject: isObject, + isPlainObject: isPlainObject, + isUndefined: isUndefined, + isDate: isDate, + isFile: isFile, + isBlob: isBlob, + isRegExp: isRegExp, + isFunction: isFunction, + isStream: isStream, + isURLSearchParams: isURLSearchParams, + isTypedArray: isTypedArray, + isFileList: isFileList, + forEach: forEach, + merge: merge, + extend: extend, + trim: trim, + stripBOM: stripBOM, + inherits: inherits, + toFlatObject: toFlatObject, + kindOf: kindOf, + kindOfTest: kindOfTest, + endsWith: endsWith, + toArray: toArray, + forEachEntry: forEachEntry, + matchAll: matchAll, + isHTMLForm: isHTMLForm, + hasOwnProperty: hasOwnProperty, + hasOwnProp: hasOwnProperty, + // an alias to avoid ESLint no-prototype-builtins detection + reduceDescriptors: reduceDescriptors, + freezeMethods: freezeMethods, + toObjectSet: toObjectSet, + toCamelCase: toCamelCase, + noop: noop, + toFiniteNumber: toFiniteNumber, + findKey: findKey, + global: _global, + isContextDefined: isContextDefined, + ALPHABET: ALPHABET, + generateString: generateString, + isSpecCompliantForm: isSpecCompliantForm, + toJSONObject: toJSONObject, + isAsyncFn: isAsyncFn, + isThenable: isThenable + }; + + /** + * Create an Error with the specified message, config, error code, request and response. + * + * @param {string} message The error message. + * @param {string} [code] The error code (for example, 'ECONNABORTED'). + * @param {Object} [config] The config. + * @param {Object} [request] The request. + * @param {Object} [response] The response. + * + * @returns {Error} The created error. + */ + function AxiosError(message, code, config, request, response) { + Error.call(this); + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } else { + this.stack = new Error().stack; + } + this.message = message; + this.name = 'AxiosError'; + code && (this.code = code); + config && (this.config = config); + request && (this.request = request); + response && (this.response = response); + } + utils$1.inherits(AxiosError, Error, { + toJSON: function toJSON() { + return { + // Standard + message: this.message, + name: this.name, + // Microsoft + description: this.description, + number: this.number, + // Mozilla + fileName: this.fileName, + lineNumber: this.lineNumber, + columnNumber: this.columnNumber, + stack: this.stack, + // Axios + config: utils$1.toJSONObject(this.config), + code: this.code, + status: this.response && this.response.status ? this.response.status : null + }; + } + }); + var prototype$1 = AxiosError.prototype; + var descriptors = {}; + ['ERR_BAD_OPTION_VALUE', 'ERR_BAD_OPTION', 'ECONNABORTED', 'ETIMEDOUT', 'ERR_NETWORK', 'ERR_FR_TOO_MANY_REDIRECTS', 'ERR_DEPRECATED', 'ERR_BAD_RESPONSE', 'ERR_BAD_REQUEST', 'ERR_CANCELED', 'ERR_NOT_SUPPORT', 'ERR_INVALID_URL' + // eslint-disable-next-line func-names + ].forEach(function (code) { + descriptors[code] = { + value: code + }; + }); + Object.defineProperties(AxiosError, descriptors); + Object.defineProperty(prototype$1, 'isAxiosError', { + value: true + }); + + // eslint-disable-next-line func-names + AxiosError.from = function (error, code, config, request, response, customProps) { + var axiosError = Object.create(prototype$1); + utils$1.toFlatObject(error, axiosError, function filter(obj) { + return obj !== Error.prototype; + }, function (prop) { + return prop !== 'isAxiosError'; + }); + AxiosError.call(axiosError, error.message, code, config, request, response); + axiosError.cause = error; + axiosError.name = error.name; + customProps && Object.assign(axiosError, customProps); + return axiosError; + }; + + // eslint-disable-next-line strict + var httpAdapter = null; + + /** + * Determines if the given thing is a array or js object. + * + * @param {string} thing - The object or array to be visited. + * + * @returns {boolean} + */ + function isVisitable(thing) { + return utils$1.isPlainObject(thing) || utils$1.isArray(thing); + } + + /** + * It removes the brackets from the end of a string + * + * @param {string} key - The key of the parameter. + * + * @returns {string} the key without the brackets. + */ + function removeBrackets(key) { + return utils$1.endsWith(key, '[]') ? key.slice(0, -2) : key; + } + + /** + * It takes a path, a key, and a boolean, and returns a string + * + * @param {string} path - The path to the current key. + * @param {string} key - The key of the current object being iterated over. + * @param {string} dots - If true, the key will be rendered with dots instead of brackets. + * + * @returns {string} The path to the current key. + */ + function renderKey(path, key, dots) { + if (!path) return key; + return path.concat(key).map(function each(token, i) { + // eslint-disable-next-line no-param-reassign + token = removeBrackets(token); + return !dots && i ? '[' + token + ']' : token; + }).join(dots ? '.' : ''); + } + + /** + * If the array is an array and none of its elements are visitable, then it's a flat array. + * + * @param {Array} arr - The array to check + * + * @returns {boolean} + */ + function isFlatArray(arr) { + return utils$1.isArray(arr) && !arr.some(isVisitable); + } + var predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) { + return /^is[A-Z]/.test(prop); + }); + + /** + * Convert a data object to FormData + * + * @param {Object} obj + * @param {?Object} [formData] + * @param {?Object} [options] + * @param {Function} [options.visitor] + * @param {Boolean} [options.metaTokens = true] + * @param {Boolean} [options.dots = false] + * @param {?Boolean} [options.indexes = false] + * + * @returns {Object} + **/ + + /** + * It converts an object into a FormData object + * + * @param {Object} obj - The object to convert to form data. + * @param {string} formData - The FormData object to append to. + * @param {Object} options + * + * @returns + */ + function toFormData(obj, formData, options) { + if (!utils$1.isObject(obj)) { + throw new TypeError('target must be an object'); + } + + // eslint-disable-next-line no-param-reassign + formData = formData || new (FormData)(); + + // eslint-disable-next-line no-param-reassign + options = utils$1.toFlatObject(options, { + metaTokens: true, + dots: false, + indexes: false + }, false, function defined(option, source) { + // eslint-disable-next-line no-eq-null,eqeqeq + return !utils$1.isUndefined(source[option]); + }); + var metaTokens = options.metaTokens; + // eslint-disable-next-line no-use-before-define + var visitor = options.visitor || defaultVisitor; + var dots = options.dots; + var indexes = options.indexes; + var _Blob = options.Blob || typeof Blob !== 'undefined' && Blob; + var useBlob = _Blob && utils$1.isSpecCompliantForm(formData); + if (!utils$1.isFunction(visitor)) { + throw new TypeError('visitor must be a function'); + } + function convertValue(value) { + if (value === null) return ''; + if (utils$1.isDate(value)) { + return value.toISOString(); + } + if (!useBlob && utils$1.isBlob(value)) { + throw new AxiosError('Blob is not supported. Use a Buffer instead.'); + } + if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) { + return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value); + } + return value; + } + + /** + * Default visitor. + * + * @param {*} value + * @param {String|Number} key + * @param {Array} path + * @this {FormData} + * + * @returns {boolean} return true to visit the each prop of the value recursively + */ + function defaultVisitor(value, key, path) { + var arr = value; + if (value && !path && _typeof(value) === 'object') { + if (utils$1.endsWith(key, '{}')) { + // eslint-disable-next-line no-param-reassign + key = metaTokens ? key : key.slice(0, -2); + // eslint-disable-next-line no-param-reassign + value = JSON.stringify(value); + } else if (utils$1.isArray(value) && isFlatArray(value) || (utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value))) { + // eslint-disable-next-line no-param-reassign + key = removeBrackets(key); + arr.forEach(function each(el, index) { + !(utils$1.isUndefined(el) || el === null) && formData.append( + // eslint-disable-next-line no-nested-ternary + indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + '[]', convertValue(el)); + }); + return false; + } + } + if (isVisitable(value)) { + return true; + } + formData.append(renderKey(path, key, dots), convertValue(value)); + return false; + } + var stack = []; + var exposedHelpers = Object.assign(predicates, { + defaultVisitor: defaultVisitor, + convertValue: convertValue, + isVisitable: isVisitable + }); + function build(value, path) { + if (utils$1.isUndefined(value)) return; + if (stack.indexOf(value) !== -1) { + throw Error('Circular reference detected in ' + path.join('.')); + } + stack.push(value); + utils$1.forEach(value, function each(el, key) { + var result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers); + if (result === true) { + build(el, path ? path.concat(key) : [key]); + } + }); + stack.pop(); + } + if (!utils$1.isObject(obj)) { + throw new TypeError('data must be an object'); + } + build(obj); + return formData; + } + + /** + * It encodes a string by replacing all characters that are not in the unreserved set with + * their percent-encoded equivalents + * + * @param {string} str - The string to encode. + * + * @returns {string} The encoded string. + */ + function encode$1(str) { + var charMap = { + '!': '%21', + "'": '%27', + '(': '%28', + ')': '%29', + '~': '%7E', + '%20': '+', + '%00': '\x00' + }; + return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) { + return charMap[match]; + }); + } + + /** + * It takes a params object and converts it to a FormData object + * + * @param {Object} params - The parameters to be converted to a FormData object. + * @param {Object} options - The options object passed to the Axios constructor. + * + * @returns {void} + */ + function AxiosURLSearchParams(params, options) { + this._pairs = []; + params && toFormData(params, this, options); + } + var prototype = AxiosURLSearchParams.prototype; + prototype.append = function append(name, value) { + this._pairs.push([name, value]); + }; + prototype.toString = function toString(encoder) { + var _encode = encoder ? function (value) { + return encoder.call(this, value, encode$1); + } : encode$1; + return this._pairs.map(function each(pair) { + return _encode(pair[0]) + '=' + _encode(pair[1]); + }, '').join('&'); + }; + + /** + * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their + * URI encoded counterparts + * + * @param {string} val The value to be encoded. + * + * @returns {string} The encoded value. + */ + function encode(val) { + return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']'); + } + + /** + * Build a URL by appending params to the end + * + * @param {string} url The base of the url (e.g., http://www.google.com) + * @param {object} [params] The params to be appended + * @param {?object} options + * + * @returns {string} The formatted url + */ + function buildURL(url, params, options) { + /*eslint no-param-reassign:0*/ + if (!params) { + return url; + } + var _encode = options && options.encode || encode; + var serializeFn = options && options.serialize; + var serializedParams; + if (serializeFn) { + serializedParams = serializeFn(params, options); + } else { + serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode); + } + if (serializedParams) { + var hashmarkIndex = url.indexOf("#"); + if (hashmarkIndex !== -1) { + url = url.slice(0, hashmarkIndex); + } + url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; + } + return url; + } + + var InterceptorManager = /*#__PURE__*/function () { + function InterceptorManager() { + _classCallCheck(this, InterceptorManager); + this.handlers = []; + } + + /** + * Add a new interceptor to the stack + * + * @param {Function} fulfilled The function to handle `then` for a `Promise` + * @param {Function} rejected The function to handle `reject` for a `Promise` + * + * @return {Number} An ID used to remove interceptor later + */ + _createClass(InterceptorManager, [{ + key: "use", + value: function use(fulfilled, rejected, options) { + this.handlers.push({ + fulfilled: fulfilled, + rejected: rejected, + synchronous: options ? options.synchronous : false, + runWhen: options ? options.runWhen : null + }); + return this.handlers.length - 1; + } + + /** + * Remove an interceptor from the stack + * + * @param {Number} id The ID that was returned by `use` + * + * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise + */ + }, { + key: "eject", + value: function eject(id) { + if (this.handlers[id]) { + this.handlers[id] = null; + } + } + + /** + * Clear all interceptors from the stack + * + * @returns {void} + */ + }, { + key: "clear", + value: function clear() { + if (this.handlers) { + this.handlers = []; + } + } + + /** + * Iterate over all the registered interceptors + * + * This method is particularly useful for skipping over any + * interceptors that may have become `null` calling `eject`. + * + * @param {Function} fn The function to call for each interceptor + * + * @returns {void} + */ + }, { + key: "forEach", + value: function forEach(fn) { + utils$1.forEach(this.handlers, function forEachHandler(h) { + if (h !== null) { + fn(h); + } + }); + } + }]); + return InterceptorManager; + }(); + var InterceptorManager$1 = InterceptorManager; + + var transitionalDefaults = { + silentJSONParsing: true, + forcedJSONParsing: true, + clarifyTimeoutError: false + }; + + var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams; + + var FormData$1 = typeof FormData !== 'undefined' ? FormData : null; + + var Blob$1 = typeof Blob !== 'undefined' ? Blob : null; + + var platform$1 = { + isBrowser: true, + classes: { + URLSearchParams: URLSearchParams$1, + FormData: FormData$1, + Blob: Blob$1 + }, + protocols: ['http', 'https', 'file', 'blob', 'url', 'data'] + }; + + var hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined'; + + /** + * Determine if we're running in a standard browser environment + * + * This allows axios to run in a web worker, and react-native. + * Both environments support XMLHttpRequest, but not fully standard globals. + * + * web workers: + * typeof window -> undefined + * typeof document -> undefined + * + * react-native: + * navigator.product -> 'ReactNative' + * nativescript + * navigator.product -> 'NativeScript' or 'NS' + * + * @returns {boolean} + */ + var hasStandardBrowserEnv = function (product) { + return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0; + }(typeof navigator !== 'undefined' && navigator.product); + + /** + * Determine if we're running in a standard browser webWorker environment + * + * Although the `isStandardBrowserEnv` method indicates that + * `allows axios to run in a web worker`, the WebWorker will still be + * filtered out due to its judgment standard + * `typeof window !== 'undefined' && typeof document !== 'undefined'`. + * This leads to a problem when axios post `FormData` in webWorker + */ + var hasStandardBrowserWebWorkerEnv = function () { + return typeof WorkerGlobalScope !== 'undefined' && + // eslint-disable-next-line no-undef + self instanceof WorkerGlobalScope && typeof self.importScripts === 'function'; + }(); + + var utils = /*#__PURE__*/Object.freeze({ + __proto__: null, + hasBrowserEnv: hasBrowserEnv, + hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv, + hasStandardBrowserEnv: hasStandardBrowserEnv + }); + + var platform = _objectSpread2(_objectSpread2({}, utils), platform$1); + + function toURLEncodedForm(data, options) { + return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({ + visitor: function visitor(value, key, path, helpers) { + if (platform.isNode && utils$1.isBuffer(value)) { + this.append(key, value.toString('base64')); + return false; + } + return helpers.defaultVisitor.apply(this, arguments); + } + }, options)); + } + + /** + * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z'] + * + * @param {string} name - The name of the property to get. + * + * @returns An array of strings. + */ + function parsePropPath(name) { + // foo[x][y][z] + // foo.x.y.z + // foo-x-y-z + // foo x y z + return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map(function (match) { + return match[0] === '[]' ? '' : match[1] || match[0]; + }); + } + + /** + * Convert an array to an object. + * + * @param {Array} arr - The array to convert to an object. + * + * @returns An object with the same keys and values as the array. + */ + function arrayToObject(arr) { + var obj = {}; + var keys = Object.keys(arr); + var i; + var len = keys.length; + var key; + for (i = 0; i < len; i++) { + key = keys[i]; + obj[key] = arr[key]; + } + return obj; + } + + /** + * It takes a FormData object and returns a JavaScript object + * + * @param {string} formData The FormData object to convert to JSON. + * + * @returns {Object | null} The converted object. + */ + function formDataToJSON(formData) { + function buildPath(path, value, target, index) { + var name = path[index++]; + if (name === '__proto__') return true; + var isNumericKey = Number.isFinite(+name); + var isLast = index >= path.length; + name = !name && utils$1.isArray(target) ? target.length : name; + if (isLast) { + if (utils$1.hasOwnProp(target, name)) { + target[name] = [target[name], value]; + } else { + target[name] = value; + } + return !isNumericKey; + } + if (!target[name] || !utils$1.isObject(target[name])) { + target[name] = []; + } + var result = buildPath(path, value, target[name], index); + if (result && utils$1.isArray(target[name])) { + target[name] = arrayToObject(target[name]); + } + return !isNumericKey; + } + if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) { + var obj = {}; + utils$1.forEachEntry(formData, function (name, value) { + buildPath(parsePropPath(name), value, obj, 0); + }); + return obj; + } + return null; + } + + /** + * It takes a string, tries to parse it, and if it fails, it returns the stringified version + * of the input + * + * @param {any} rawValue - The value to be stringified. + * @param {Function} parser - A function that parses a string into a JavaScript object. + * @param {Function} encoder - A function that takes a value and returns a string. + * + * @returns {string} A stringified version of the rawValue. + */ + function stringifySafely(rawValue, parser, encoder) { + if (utils$1.isString(rawValue)) { + try { + (parser || JSON.parse)(rawValue); + return utils$1.trim(rawValue); + } catch (e) { + if (e.name !== 'SyntaxError') { + throw e; + } + } + } + return (encoder || JSON.stringify)(rawValue); + } + var defaults = { + transitional: transitionalDefaults, + adapter: ['xhr', 'http'], + transformRequest: [function transformRequest(data, headers) { + var contentType = headers.getContentType() || ''; + var hasJSONContentType = contentType.indexOf('application/json') > -1; + var isObjectPayload = utils$1.isObject(data); + if (isObjectPayload && utils$1.isHTMLForm(data)) { + data = new FormData(data); + } + var isFormData = utils$1.isFormData(data); + if (isFormData) { + return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data; + } + if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data)) { + return data; + } + if (utils$1.isArrayBufferView(data)) { + return data.buffer; + } + if (utils$1.isURLSearchParams(data)) { + headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false); + return data.toString(); + } + var isFileList; + if (isObjectPayload) { + if (contentType.indexOf('application/x-www-form-urlencoded') > -1) { + return toURLEncodedForm(data, this.formSerializer).toString(); + } + if ((isFileList = utils$1.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) { + var _FormData = this.env && this.env.FormData; + return toFormData(isFileList ? { + 'files[]': data + } : data, _FormData && new _FormData(), this.formSerializer); + } + } + if (isObjectPayload || hasJSONContentType) { + headers.setContentType('application/json', false); + return stringifySafely(data); + } + return data; + }], + transformResponse: [function transformResponse(data) { + var transitional = this.transitional || defaults.transitional; + var forcedJSONParsing = transitional && transitional.forcedJSONParsing; + var JSONRequested = this.responseType === 'json'; + if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) { + var silentJSONParsing = transitional && transitional.silentJSONParsing; + var strictJSONParsing = !silentJSONParsing && JSONRequested; + try { + return JSON.parse(data); + } catch (e) { + if (strictJSONParsing) { + if (e.name === 'SyntaxError') { + throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response); + } + throw e; + } + } + } + return data; + }], + /** + * A timeout in milliseconds to abort a request. If set to 0 (default) a + * timeout is not created. + */ + timeout: 0, + xsrfCookieName: 'XSRF-TOKEN', + xsrfHeaderName: 'X-XSRF-TOKEN', + maxContentLength: -1, + maxBodyLength: -1, + env: { + FormData: platform.classes.FormData, + Blob: platform.classes.Blob + }, + validateStatus: function validateStatus(status) { + return status >= 200 && status < 300; + }, + headers: { + common: { + 'Accept': 'application/json, text/plain, */*', + 'Content-Type': undefined + } + } + }; + utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], function (method) { + defaults.headers[method] = {}; + }); + var defaults$1 = defaults; + + // RawAxiosHeaders whose duplicates are ignored by node + // c.f. https://nodejs.org/api/http.html#http_message_headers + var ignoreDuplicateOf = utils$1.toObjectSet(['age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent']); + + /** + * Parse headers into an object + * + * ``` + * Date: Wed, 27 Aug 2014 08:58:49 GMT + * Content-Type: application/json + * Connection: keep-alive + * Transfer-Encoding: chunked + * ``` + * + * @param {String} rawHeaders Headers needing to be parsed + * + * @returns {Object} Headers parsed into an object + */ + var parseHeaders = (function (rawHeaders) { + var parsed = {}; + var key; + var val; + var i; + rawHeaders && rawHeaders.split('\n').forEach(function parser(line) { + i = line.indexOf(':'); + key = line.substring(0, i).trim().toLowerCase(); + val = line.substring(i + 1).trim(); + if (!key || parsed[key] && ignoreDuplicateOf[key]) { + return; + } + if (key === 'set-cookie') { + if (parsed[key]) { + parsed[key].push(val); + } else { + parsed[key] = [val]; + } + } else { + parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; + } + }); + return parsed; + }); + + var $internals = Symbol('internals'); + function normalizeHeader(header) { + return header && String(header).trim().toLowerCase(); + } + function normalizeValue(value) { + if (value === false || value == null) { + return value; + } + return utils$1.isArray(value) ? value.map(normalizeValue) : String(value); + } + function parseTokens(str) { + var tokens = Object.create(null); + var tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; + var match; + while (match = tokensRE.exec(str)) { + tokens[match[1]] = match[2]; + } + return tokens; + } + var isValidHeaderName = function isValidHeaderName(str) { + return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()); + }; + function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) { + if (utils$1.isFunction(filter)) { + return filter.call(this, value, header); + } + if (isHeaderNameFilter) { + value = header; + } + if (!utils$1.isString(value)) return; + if (utils$1.isString(filter)) { + return value.indexOf(filter) !== -1; + } + if (utils$1.isRegExp(filter)) { + return filter.test(value); + } + } + function formatHeader(header) { + return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, function (w, _char, str) { + return _char.toUpperCase() + str; + }); + } + function buildAccessors(obj, header) { + var accessorName = utils$1.toCamelCase(' ' + header); + ['get', 'set', 'has'].forEach(function (methodName) { + Object.defineProperty(obj, methodName + accessorName, { + value: function value(arg1, arg2, arg3) { + return this[methodName].call(this, header, arg1, arg2, arg3); + }, + configurable: true + }); + }); + } + var AxiosHeaders = /*#__PURE__*/function (_Symbol$iterator, _Symbol$toStringTag) { + function AxiosHeaders(headers) { + _classCallCheck(this, AxiosHeaders); + headers && this.set(headers); + } + _createClass(AxiosHeaders, [{ + key: "set", + value: function set(header, valueOrRewrite, rewrite) { + var self = this; + function setHeader(_value, _header, _rewrite) { + var lHeader = normalizeHeader(_header); + if (!lHeader) { + throw new Error('header name must be a non-empty string'); + } + var key = utils$1.findKey(self, lHeader); + if (!key || self[key] === undefined || _rewrite === true || _rewrite === undefined && self[key] !== false) { + self[key || _header] = normalizeValue(_value); + } + } + var setHeaders = function setHeaders(headers, _rewrite) { + return utils$1.forEach(headers, function (_value, _header) { + return setHeader(_value, _header, _rewrite); + }); + }; + if (utils$1.isPlainObject(header) || header instanceof this.constructor) { + setHeaders(header, valueOrRewrite); + } else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { + setHeaders(parseHeaders(header), valueOrRewrite); + } else { + header != null && setHeader(valueOrRewrite, header, rewrite); + } + return this; + } + }, { + key: "get", + value: function get(header, parser) { + header = normalizeHeader(header); + if (header) { + var key = utils$1.findKey(this, header); + if (key) { + var value = this[key]; + if (!parser) { + return value; + } + if (parser === true) { + return parseTokens(value); + } + if (utils$1.isFunction(parser)) { + return parser.call(this, value, key); + } + if (utils$1.isRegExp(parser)) { + return parser.exec(value); + } + throw new TypeError('parser must be boolean|regexp|function'); + } + } + } + }, { + key: "has", + value: function has(header, matcher) { + header = normalizeHeader(header); + if (header) { + var key = utils$1.findKey(this, header); + return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher))); + } + return false; + } + }, { + key: "delete", + value: function _delete(header, matcher) { + var self = this; + var deleted = false; + function deleteHeader(_header) { + _header = normalizeHeader(_header); + if (_header) { + var key = utils$1.findKey(self, _header); + if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) { + delete self[key]; + deleted = true; + } + } + } + if (utils$1.isArray(header)) { + header.forEach(deleteHeader); + } else { + deleteHeader(header); + } + return deleted; + } + }, { + key: "clear", + value: function clear(matcher) { + var keys = Object.keys(this); + var i = keys.length; + var deleted = false; + while (i--) { + var key = keys[i]; + if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) { + delete this[key]; + deleted = true; + } + } + return deleted; + } + }, { + key: "normalize", + value: function normalize(format) { + var self = this; + var headers = {}; + utils$1.forEach(this, function (value, header) { + var key = utils$1.findKey(headers, header); + if (key) { + self[key] = normalizeValue(value); + delete self[header]; + return; + } + var normalized = format ? formatHeader(header) : String(header).trim(); + if (normalized !== header) { + delete self[header]; + } + self[normalized] = normalizeValue(value); + headers[normalized] = true; + }); + return this; + } + }, { + key: "concat", + value: function concat() { + var _this$constructor; + for (var _len = arguments.length, targets = new Array(_len), _key = 0; _key < _len; _key++) { + targets[_key] = arguments[_key]; + } + return (_this$constructor = this.constructor).concat.apply(_this$constructor, [this].concat(targets)); + } + }, { + key: "toJSON", + value: function toJSON(asStrings) { + var obj = Object.create(null); + utils$1.forEach(this, function (value, header) { + value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value); + }); + return obj; + } + }, { + key: _Symbol$iterator, + value: function value() { + return Object.entries(this.toJSON())[Symbol.iterator](); + } + }, { + key: "toString", + value: function toString() { + return Object.entries(this.toJSON()).map(function (_ref) { + var _ref2 = _slicedToArray(_ref, 2), + header = _ref2[0], + value = _ref2[1]; + return header + ': ' + value; + }).join('\n'); + } + }, { + key: _Symbol$toStringTag, + get: function get() { + return 'AxiosHeaders'; + } + }], [{ + key: "from", + value: function from(thing) { + return thing instanceof this ? thing : new this(thing); + } + }, { + key: "concat", + value: function concat(first) { + var computed = new this(first); + for (var _len2 = arguments.length, targets = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + targets[_key2 - 1] = arguments[_key2]; + } + targets.forEach(function (target) { + return computed.set(target); + }); + return computed; + } + }, { + key: "accessor", + value: function accessor(header) { + var internals = this[$internals] = this[$internals] = { + accessors: {} + }; + var accessors = internals.accessors; + var prototype = this.prototype; + function defineAccessor(_header) { + var lHeader = normalizeHeader(_header); + if (!accessors[lHeader]) { + buildAccessors(prototype, _header); + accessors[lHeader] = true; + } + } + utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header); + return this; + } + }]); + return AxiosHeaders; + }(Symbol.iterator, Symbol.toStringTag); + AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']); + + // reserved names hotfix + utils$1.reduceDescriptors(AxiosHeaders.prototype, function (_ref3, key) { + var value = _ref3.value; + var mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set` + return { + get: function get() { + return value; + }, + set: function set(headerValue) { + this[mapped] = headerValue; + } + }; + }); + utils$1.freezeMethods(AxiosHeaders); + var AxiosHeaders$1 = AxiosHeaders; + + /** + * Transform the data for a request or a response + * + * @param {Array|Function} fns A single function or Array of functions + * @param {?Object} response The response object + * + * @returns {*} The resulting transformed data + */ + function transformData(fns, response) { + var config = this || defaults$1; + var context = response || config; + var headers = AxiosHeaders$1.from(context.headers); + var data = context.data; + utils$1.forEach(fns, function transform(fn) { + data = fn.call(config, data, headers.normalize(), response ? response.status : undefined); + }); + headers.normalize(); + return data; + } + + function isCancel(value) { + return !!(value && value.__CANCEL__); + } + + /** + * A `CanceledError` is an object that is thrown when an operation is canceled. + * + * @param {string=} message The message. + * @param {Object=} config The config. + * @param {Object=} request The request. + * + * @returns {CanceledError} The created error. + */ + function CanceledError(message, config, request) { + // eslint-disable-next-line no-eq-null,eqeqeq + AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request); + this.name = 'CanceledError'; + } + utils$1.inherits(CanceledError, AxiosError, { + __CANCEL__: true + }); + + /** + * Resolve or reject a Promise based on response status. + * + * @param {Function} resolve A function that resolves the promise. + * @param {Function} reject A function that rejects the promise. + * @param {object} response The response. + * + * @returns {object} The response. + */ + function settle(resolve, reject, response) { + var validateStatus = response.config.validateStatus; + if (!response.status || !validateStatus || validateStatus(response.status)) { + resolve(response); + } else { + reject(new AxiosError('Request failed with status code ' + response.status, [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response)); + } + } + + var cookies = platform.hasStandardBrowserEnv ? + // Standard browser envs support document.cookie + { + write: function write(name, value, expires, path, domain, secure) { + var cookie = [name + '=' + encodeURIComponent(value)]; + utils$1.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString()); + utils$1.isString(path) && cookie.push('path=' + path); + utils$1.isString(domain) && cookie.push('domain=' + domain); + secure === true && cookie.push('secure'); + document.cookie = cookie.join('; '); + }, + read: function read(name) { + var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); + return match ? decodeURIComponent(match[3]) : null; + }, + remove: function remove(name) { + this.write(name, '', Date.now() - 86400000); + } + } : + // Non-standard browser env (web workers, react-native) lack needed support. + { + write: function write() {}, + read: function read() { + return null; + }, + remove: function remove() {} + }; + + /** + * Determines whether the specified URL is absolute + * + * @param {string} url The URL to test + * + * @returns {boolean} True if the specified URL is absolute, otherwise false + */ + function isAbsoluteURL(url) { + // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). + // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed + // by any combination of letters, digits, plus, period, or hyphen. + return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); + } + + /** + * Creates a new URL by combining the specified URLs + * + * @param {string} baseURL The base URL + * @param {string} relativeURL The relative URL + * + * @returns {string} The combined URL + */ + function combineURLs(baseURL, relativeURL) { + return relativeURL ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL; + } + + /** + * Creates a new URL by combining the baseURL with the requestedURL, + * only when the requestedURL is not already an absolute URL. + * If the requestURL is absolute, this function returns the requestedURL untouched. + * + * @param {string} baseURL The base URL + * @param {string} requestedURL Absolute or relative URL to combine + * + * @returns {string} The combined full path + */ + function buildFullPath(baseURL, requestedURL) { + if (baseURL && !isAbsoluteURL(requestedURL)) { + return combineURLs(baseURL, requestedURL); + } + return requestedURL; + } + + var isURLSameOrigin = platform.hasStandardBrowserEnv ? + // Standard browser envs have full support of the APIs needed to test + // whether the request URL is of the same origin as current location. + function standardBrowserEnv() { + var msie = /(msie|trident)/i.test(navigator.userAgent); + var urlParsingNode = document.createElement('a'); + var originURL; + + /** + * Parse a URL to discover its components + * + * @param {String} url The URL to be parsed + * @returns {Object} + */ + function resolveURL(url) { + var href = url; + if (msie) { + // IE needs attribute set twice to normalize properties + urlParsingNode.setAttribute('href', href); + href = urlParsingNode.href; + } + urlParsingNode.setAttribute('href', href); + + // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils + return { + href: urlParsingNode.href, + protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', + host: urlParsingNode.host, + search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', + hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', + hostname: urlParsingNode.hostname, + port: urlParsingNode.port, + pathname: urlParsingNode.pathname.charAt(0) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname + }; + } + originURL = resolveURL(window.location.href); + + /** + * Determine if a URL shares the same origin as the current location + * + * @param {String} requestURL The URL to test + * @returns {boolean} True if URL shares the same origin, otherwise false + */ + return function isURLSameOrigin(requestURL) { + var parsed = utils$1.isString(requestURL) ? resolveURL(requestURL) : requestURL; + return parsed.protocol === originURL.protocol && parsed.host === originURL.host; + }; + }() : + // Non standard browser envs (web workers, react-native) lack needed support. + function nonStandardBrowserEnv() { + return function isURLSameOrigin() { + return true; + }; + }(); + + function parseProtocol(url) { + var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); + return match && match[1] || ''; + } + + /** + * Calculate data maxRate + * @param {Number} [samplesCount= 10] + * @param {Number} [min= 1000] + * @returns {Function} + */ + function speedometer(samplesCount, min) { + samplesCount = samplesCount || 10; + var bytes = new Array(samplesCount); + var timestamps = new Array(samplesCount); + var head = 0; + var tail = 0; + var firstSampleTS; + min = min !== undefined ? min : 1000; + return function push(chunkLength) { + var now = Date.now(); + var startedAt = timestamps[tail]; + if (!firstSampleTS) { + firstSampleTS = now; + } + bytes[head] = chunkLength; + timestamps[head] = now; + var i = tail; + var bytesCount = 0; + while (i !== head) { + bytesCount += bytes[i++]; + i = i % samplesCount; + } + head = (head + 1) % samplesCount; + if (head === tail) { + tail = (tail + 1) % samplesCount; + } + if (now - firstSampleTS < min) { + return; + } + var passed = startedAt && now - startedAt; + return passed ? Math.round(bytesCount * 1000 / passed) : undefined; + }; + } + + function progressEventReducer(listener, isDownloadStream) { + var bytesNotified = 0; + var _speedometer = speedometer(50, 250); + return function (e) { + var loaded = e.loaded; + var total = e.lengthComputable ? e.total : undefined; + var progressBytes = loaded - bytesNotified; + var rate = _speedometer(progressBytes); + var inRange = loaded <= total; + bytesNotified = loaded; + var data = { + loaded: loaded, + total: total, + progress: total ? loaded / total : undefined, + bytes: progressBytes, + rate: rate ? rate : undefined, + estimated: rate && total && inRange ? (total - loaded) / rate : undefined, + event: e + }; + data[isDownloadStream ? 'download' : 'upload'] = true; + listener(data); + }; + } + var isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined'; + var xhrAdapter = isXHRAdapterSupported && function (config) { + return new Promise(function dispatchXhrRequest(resolve, reject) { + var requestData = config.data; + var requestHeaders = AxiosHeaders$1.from(config.headers).normalize(); + var responseType = config.responseType, + withXSRFToken = config.withXSRFToken; + var onCanceled; + function done() { + if (config.cancelToken) { + config.cancelToken.unsubscribe(onCanceled); + } + if (config.signal) { + config.signal.removeEventListener('abort', onCanceled); + } + } + var contentType; + if (utils$1.isFormData(requestData)) { + if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) { + requestHeaders.setContentType(false); // Let the browser set it + } else if ((contentType = requestHeaders.getContentType()) !== false) { + // fix semicolon duplication issue for ReactNative FormData implementation + var _ref = contentType ? contentType.split(';').map(function (token) { + return token.trim(); + }).filter(Boolean) : [], + _ref2 = _toArray(_ref), + type = _ref2[0], + tokens = _ref2.slice(1); + requestHeaders.setContentType([type || 'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; ')); + } + } + var request = new XMLHttpRequest(); + + // HTTP basic authentication + if (config.auth) { + var username = config.auth.username || ''; + var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; + requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password)); + } + var fullPath = buildFullPath(config.baseURL, config.url); + request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); + + // Set the request timeout in MS + request.timeout = config.timeout; + function onloadend() { + if (!request) { + return; + } + // Prepare the response + var responseHeaders = AxiosHeaders$1.from('getAllResponseHeaders' in request && request.getAllResponseHeaders()); + var responseData = !responseType || responseType === 'text' || responseType === 'json' ? request.responseText : request.response; + var response = { + data: responseData, + status: request.status, + statusText: request.statusText, + headers: responseHeaders, + config: config, + request: request + }; + settle(function _resolve(value) { + resolve(value); + done(); + }, function _reject(err) { + reject(err); + done(); + }, response); + + // Clean up request + request = null; + } + if ('onloadend' in request) { + // Use onloadend if available + request.onloadend = onloadend; + } else { + // Listen for ready state to emulate onloadend + request.onreadystatechange = function handleLoad() { + if (!request || request.readyState !== 4) { + return; + } + + // The request errored out and we didn't get a response, this will be + // handled by onerror instead + // With one exception: request that using file: protocol, most browsers + // will return status as 0 even though it's a successful request + if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { + return; + } + // readystate handler is calling before onerror or ontimeout handlers, + // so we should call onloadend on the next 'tick' + setTimeout(onloadend); + }; + } + + // Handle browser request cancellation (as opposed to a manual cancellation) + request.onabort = function handleAbort() { + if (!request) { + return; + } + reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request)); + + // Clean up request + request = null; + }; + + // Handle low level network errors + request.onerror = function handleError() { + // Real errors are hidden from us by the browser + // onerror should only fire if it's a network error + reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request)); + + // Clean up request + request = null; + }; + + // Handle timeout + request.ontimeout = function handleTimeout() { + var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; + var transitional = config.transitional || transitionalDefaults; + if (config.timeoutErrorMessage) { + timeoutErrorMessage = config.timeoutErrorMessage; + } + reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request)); + + // Clean up request + request = null; + }; + + // Add xsrf header + // This is only done if running in a standard browser environment. + // Specifically not if we're in a web worker, or react-native. + if (platform.hasStandardBrowserEnv) { + withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config)); + if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin(fullPath)) { + // Add xsrf header + var xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName); + if (xsrfValue) { + requestHeaders.set(config.xsrfHeaderName, xsrfValue); + } + } + } + + // Remove Content-Type if data is undefined + requestData === undefined && requestHeaders.setContentType(null); + + // Add headers to the request + if ('setRequestHeader' in request) { + utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) { + request.setRequestHeader(key, val); + }); + } + + // Add withCredentials to request if needed + if (!utils$1.isUndefined(config.withCredentials)) { + request.withCredentials = !!config.withCredentials; + } + + // Add responseType to request if needed + if (responseType && responseType !== 'json') { + request.responseType = config.responseType; + } + + // Handle progress if needed + if (typeof config.onDownloadProgress === 'function') { + request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true)); + } + + // Not all browsers support upload events + if (typeof config.onUploadProgress === 'function' && request.upload) { + request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress)); + } + if (config.cancelToken || config.signal) { + // Handle cancellation + // eslint-disable-next-line func-names + onCanceled = function onCanceled(cancel) { + if (!request) { + return; + } + reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel); + request.abort(); + request = null; + }; + config.cancelToken && config.cancelToken.subscribe(onCanceled); + if (config.signal) { + config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); + } + } + var protocol = parseProtocol(fullPath); + if (protocol && platform.protocols.indexOf(protocol) === -1) { + reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config)); + return; + } + + // Send the request + request.send(requestData || null); + }); + }; + + var knownAdapters = { + http: httpAdapter, + xhr: xhrAdapter + }; + utils$1.forEach(knownAdapters, function (fn, value) { + if (fn) { + try { + Object.defineProperty(fn, 'name', { + value: value + }); + } catch (e) { + // eslint-disable-next-line no-empty + } + Object.defineProperty(fn, 'adapterName', { + value: value + }); + } + }); + var renderReason = function renderReason(reason) { + return "- ".concat(reason); + }; + var isResolvedHandle = function isResolvedHandle(adapter) { + return utils$1.isFunction(adapter) || adapter === null || adapter === false; + }; + var adapters = { + getAdapter: function getAdapter(adapters) { + adapters = utils$1.isArray(adapters) ? adapters : [adapters]; + var _adapters = adapters, + length = _adapters.length; + var nameOrAdapter; + var adapter; + var rejectedReasons = {}; + for (var i = 0; i < length; i++) { + nameOrAdapter = adapters[i]; + var id = void 0; + adapter = nameOrAdapter; + if (!isResolvedHandle(nameOrAdapter)) { + adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()]; + if (adapter === undefined) { + throw new AxiosError("Unknown adapter '".concat(id, "'")); + } + } + if (adapter) { + break; + } + rejectedReasons[id || '#' + i] = adapter; + } + if (!adapter) { + var reasons = Object.entries(rejectedReasons).map(function (_ref) { + var _ref2 = _slicedToArray(_ref, 2), + id = _ref2[0], + state = _ref2[1]; + return "adapter ".concat(id, " ") + (state === false ? 'is not supported by the environment' : 'is not available in the build'); + }); + var s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified'; + throw new AxiosError("There is no suitable adapter to dispatch the request " + s, 'ERR_NOT_SUPPORT'); + } + return adapter; + }, + adapters: knownAdapters + }; + + /** + * Throws a `CanceledError` if cancellation has been requested. + * + * @param {Object} config The config that is to be used for the request + * + * @returns {void} + */ + function throwIfCancellationRequested(config) { + if (config.cancelToken) { + config.cancelToken.throwIfRequested(); + } + if (config.signal && config.signal.aborted) { + throw new CanceledError(null, config); + } + } + + /** + * Dispatch a request to the server using the configured adapter. + * + * @param {object} config The config that is to be used for the request + * + * @returns {Promise} The Promise to be fulfilled + */ + function dispatchRequest(config) { + throwIfCancellationRequested(config); + config.headers = AxiosHeaders$1.from(config.headers); + + // Transform request data + config.data = transformData.call(config, config.transformRequest); + if (['post', 'put', 'patch'].indexOf(config.method) !== -1) { + config.headers.setContentType('application/x-www-form-urlencoded', false); + } + var adapter = adapters.getAdapter(config.adapter || defaults$1.adapter); + return adapter(config).then(function onAdapterResolution(response) { + throwIfCancellationRequested(config); + + // Transform response data + response.data = transformData.call(config, config.transformResponse, response); + response.headers = AxiosHeaders$1.from(response.headers); + return response; + }, function onAdapterRejection(reason) { + if (!isCancel(reason)) { + throwIfCancellationRequested(config); + + // Transform response data + if (reason && reason.response) { + reason.response.data = transformData.call(config, config.transformResponse, reason.response); + reason.response.headers = AxiosHeaders$1.from(reason.response.headers); + } + } + return Promise.reject(reason); + }); + } + + var headersToObject = function headersToObject(thing) { + return thing instanceof AxiosHeaders$1 ? thing.toJSON() : thing; + }; + + /** + * Config-specific merge-function which creates a new config-object + * by merging two configuration objects together. + * + * @param {Object} config1 + * @param {Object} config2 + * + * @returns {Object} New object resulting from merging config2 to config1 + */ + function mergeConfig(config1, config2) { + // eslint-disable-next-line no-param-reassign + config2 = config2 || {}; + var config = {}; + function getMergedValue(target, source, caseless) { + if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) { + return utils$1.merge.call({ + caseless: caseless + }, target, source); + } else if (utils$1.isPlainObject(source)) { + return utils$1.merge({}, source); + } else if (utils$1.isArray(source)) { + return source.slice(); + } + return source; + } + + // eslint-disable-next-line consistent-return + function mergeDeepProperties(a, b, caseless) { + if (!utils$1.isUndefined(b)) { + return getMergedValue(a, b, caseless); + } else if (!utils$1.isUndefined(a)) { + return getMergedValue(undefined, a, caseless); + } + } + + // eslint-disable-next-line consistent-return + function valueFromConfig2(a, b) { + if (!utils$1.isUndefined(b)) { + return getMergedValue(undefined, b); + } + } + + // eslint-disable-next-line consistent-return + function defaultToConfig2(a, b) { + if (!utils$1.isUndefined(b)) { + return getMergedValue(undefined, b); + } else if (!utils$1.isUndefined(a)) { + return getMergedValue(undefined, a); + } + } + + // eslint-disable-next-line consistent-return + function mergeDirectKeys(a, b, prop) { + if (prop in config2) { + return getMergedValue(a, b); + } else if (prop in config1) { + return getMergedValue(undefined, a); + } + } + var mergeMap = { + url: valueFromConfig2, + method: valueFromConfig2, + data: valueFromConfig2, + baseURL: defaultToConfig2, + transformRequest: defaultToConfig2, + transformResponse: defaultToConfig2, + paramsSerializer: defaultToConfig2, + timeout: defaultToConfig2, + timeoutMessage: defaultToConfig2, + withCredentials: defaultToConfig2, + withXSRFToken: defaultToConfig2, + adapter: defaultToConfig2, + responseType: defaultToConfig2, + xsrfCookieName: defaultToConfig2, + xsrfHeaderName: defaultToConfig2, + onUploadProgress: defaultToConfig2, + onDownloadProgress: defaultToConfig2, + decompress: defaultToConfig2, + maxContentLength: defaultToConfig2, + maxBodyLength: defaultToConfig2, + beforeRedirect: defaultToConfig2, + transport: defaultToConfig2, + httpAgent: defaultToConfig2, + httpsAgent: defaultToConfig2, + cancelToken: defaultToConfig2, + socketPath: defaultToConfig2, + responseEncoding: defaultToConfig2, + validateStatus: mergeDirectKeys, + headers: function headers(a, b) { + return mergeDeepProperties(headersToObject(a), headersToObject(b), true); + } + }; + utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) { + var merge = mergeMap[prop] || mergeDeepProperties; + var configValue = merge(config1[prop], config2[prop], prop); + utils$1.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue); + }); + return config; + } + + var VERSION = "1.6.7"; + + var validators$1 = {}; + + // eslint-disable-next-line func-names + ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function (type, i) { + validators$1[type] = function validator(thing) { + return _typeof(thing) === type || 'a' + (i < 1 ? 'n ' : ' ') + type; + }; + }); + var deprecatedWarnings = {}; + + /** + * Transitional option validator + * + * @param {function|boolean?} validator - set to false if the transitional option has been removed + * @param {string?} version - deprecated version / removed since version + * @param {string?} message - some message with additional info + * + * @returns {function} + */ + validators$1.transitional = function transitional(validator, version, message) { + function formatMessage(opt, desc) { + return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); + } + + // eslint-disable-next-line func-names + return function (value, opt, opts) { + if (validator === false) { + throw new AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), AxiosError.ERR_DEPRECATED); + } + if (version && !deprecatedWarnings[opt]) { + deprecatedWarnings[opt] = true; + // eslint-disable-next-line no-console + console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future')); + } + return validator ? validator(value, opt, opts) : true; + }; + }; + + /** + * Assert object's properties type + * + * @param {object} options + * @param {object} schema + * @param {boolean?} allowUnknown + * + * @returns {object} + */ + + function assertOptions(options, schema, allowUnknown) { + if (_typeof(options) !== 'object') { + throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE); + } + var keys = Object.keys(options); + var i = keys.length; + while (i-- > 0) { + var opt = keys[i]; + var validator = schema[opt]; + if (validator) { + var value = options[opt]; + var result = value === undefined || validator(value, opt, options); + if (result !== true) { + throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE); + } + continue; + } + if (allowUnknown !== true) { + throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION); + } + } + } + var validator = { + assertOptions: assertOptions, + validators: validators$1 + }; + + var validators = validator.validators; + + /** + * Create a new instance of Axios + * + * @param {Object} instanceConfig The default config for the instance + * + * @return {Axios} A new instance of Axios + */ + var Axios = /*#__PURE__*/function () { + function Axios(instanceConfig) { + _classCallCheck(this, Axios); + this.defaults = instanceConfig; + this.interceptors = { + request: new InterceptorManager$1(), + response: new InterceptorManager$1() + }; + } + + /** + * Dispatch a request + * + * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) + * @param {?Object} config + * + * @returns {Promise} The Promise to be fulfilled + */ + _createClass(Axios, [{ + key: "request", + value: function () { + var _request2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(configOrUrl, config) { + var dummy, stack; + return _regeneratorRuntime().wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.prev = 0; + _context.next = 3; + return this._request(configOrUrl, config); + case 3: + return _context.abrupt("return", _context.sent); + case 6: + _context.prev = 6; + _context.t0 = _context["catch"](0); + if (_context.t0 instanceof Error) { + Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error(); + + // slice off the Error: ... line + stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : ''; + if (!_context.t0.stack) { + _context.t0.stack = stack; + // match without the 2 top stack lines + } else if (stack && !String(_context.t0.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) { + _context.t0.stack += '\n' + stack; + } + } + throw _context.t0; + case 10: + case "end": + return _context.stop(); + } + } + }, _callee, this, [[0, 6]]); + })); + function request(_x, _x2) { + return _request2.apply(this, arguments); + } + return request; + }() + }, { + key: "_request", + value: function _request(configOrUrl, config) { + /*eslint no-param-reassign:0*/ + // Allow for axios('example/url'[, config]) a la fetch API + if (typeof configOrUrl === 'string') { + config = config || {}; + config.url = configOrUrl; + } else { + config = configOrUrl || {}; + } + config = mergeConfig(this.defaults, config); + var _config = config, + transitional = _config.transitional, + paramsSerializer = _config.paramsSerializer, + headers = _config.headers; + if (transitional !== undefined) { + validator.assertOptions(transitional, { + silentJSONParsing: validators.transitional(validators["boolean"]), + forcedJSONParsing: validators.transitional(validators["boolean"]), + clarifyTimeoutError: validators.transitional(validators["boolean"]) + }, false); + } + if (paramsSerializer != null) { + if (utils$1.isFunction(paramsSerializer)) { + config.paramsSerializer = { + serialize: paramsSerializer + }; + } else { + validator.assertOptions(paramsSerializer, { + encode: validators["function"], + serialize: validators["function"] + }, true); + } + } + + // Set config.method + config.method = (config.method || this.defaults.method || 'get').toLowerCase(); + + // Flatten headers + var contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]); + headers && utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function (method) { + delete headers[method]; + }); + config.headers = AxiosHeaders$1.concat(contextHeaders, headers); + + // filter out skipped interceptors + var requestInterceptorChain = []; + var synchronousRequestInterceptors = true; + this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { + if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { + return; + } + synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; + requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); + }); + var responseInterceptorChain = []; + this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { + responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); + }); + var promise; + var i = 0; + var len; + if (!synchronousRequestInterceptors) { + var chain = [dispatchRequest.bind(this), undefined]; + chain.unshift.apply(chain, requestInterceptorChain); + chain.push.apply(chain, responseInterceptorChain); + len = chain.length; + promise = Promise.resolve(config); + while (i < len) { + promise = promise.then(chain[i++], chain[i++]); + } + return promise; + } + len = requestInterceptorChain.length; + var newConfig = config; + i = 0; + while (i < len) { + var onFulfilled = requestInterceptorChain[i++]; + var onRejected = requestInterceptorChain[i++]; + try { + newConfig = onFulfilled(newConfig); + } catch (error) { + onRejected.call(this, error); + break; + } + } + try { + promise = dispatchRequest.call(this, newConfig); + } catch (error) { + return Promise.reject(error); + } + i = 0; + len = responseInterceptorChain.length; + while (i < len) { + promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); + } + return promise; + } + }, { + key: "getUri", + value: function getUri(config) { + config = mergeConfig(this.defaults, config); + var fullPath = buildFullPath(config.baseURL, config.url); + return buildURL(fullPath, config.params, config.paramsSerializer); + } + }]); + return Axios; + }(); // Provide aliases for supported request methods + utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { + /*eslint func-names:0*/ + Axios.prototype[method] = function (url, config) { + return this.request(mergeConfig(config || {}, { + method: method, + url: url, + data: (config || {}).data + })); + }; + }); + utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { + /*eslint func-names:0*/ + + function generateHTTPMethod(isForm) { + return function httpMethod(url, data, config) { + return this.request(mergeConfig(config || {}, { + method: method, + headers: isForm ? { + 'Content-Type': 'multipart/form-data' + } : {}, + url: url, + data: data + })); + }; + } + Axios.prototype[method] = generateHTTPMethod(); + Axios.prototype[method + 'Form'] = generateHTTPMethod(true); + }); + var Axios$1 = Axios; + + /** + * A `CancelToken` is an object that can be used to request cancellation of an operation. + * + * @param {Function} executor The executor function. + * + * @returns {CancelToken} + */ + var CancelToken = /*#__PURE__*/function () { + function CancelToken(executor) { + _classCallCheck(this, CancelToken); + if (typeof executor !== 'function') { + throw new TypeError('executor must be a function.'); + } + var resolvePromise; + this.promise = new Promise(function promiseExecutor(resolve) { + resolvePromise = resolve; + }); + var token = this; + + // eslint-disable-next-line func-names + this.promise.then(function (cancel) { + if (!token._listeners) return; + var i = token._listeners.length; + while (i-- > 0) { + token._listeners[i](cancel); + } + token._listeners = null; + }); + + // eslint-disable-next-line func-names + this.promise.then = function (onfulfilled) { + var _resolve; + // eslint-disable-next-line func-names + var promise = new Promise(function (resolve) { + token.subscribe(resolve); + _resolve = resolve; + }).then(onfulfilled); + promise.cancel = function reject() { + token.unsubscribe(_resolve); + }; + return promise; + }; + executor(function cancel(message, config, request) { + if (token.reason) { + // Cancellation has already been requested + return; + } + token.reason = new CanceledError(message, config, request); + resolvePromise(token.reason); + }); + } + + /** + * Throws a `CanceledError` if cancellation has been requested. + */ + _createClass(CancelToken, [{ + key: "throwIfRequested", + value: function throwIfRequested() { + if (this.reason) { + throw this.reason; + } + } + + /** + * Subscribe to the cancel signal + */ + }, { + key: "subscribe", + value: function subscribe(listener) { + if (this.reason) { + listener(this.reason); + return; + } + if (this._listeners) { + this._listeners.push(listener); + } else { + this._listeners = [listener]; + } + } + + /** + * Unsubscribe from the cancel signal + */ + }, { + key: "unsubscribe", + value: function unsubscribe(listener) { + if (!this._listeners) { + return; + } + var index = this._listeners.indexOf(listener); + if (index !== -1) { + this._listeners.splice(index, 1); + } + } + + /** + * Returns an object that contains a new `CancelToken` and a function that, when called, + * cancels the `CancelToken`. + */ + }], [{ + key: "source", + value: function source() { + var cancel; + var token = new CancelToken(function executor(c) { + cancel = c; + }); + return { + token: token, + cancel: cancel + }; + } + }]); + return CancelToken; + }(); + var CancelToken$1 = CancelToken; + + /** + * Syntactic sugar for invoking a function and expanding an array for arguments. + * + * Common use case would be to use `Function.prototype.apply`. + * + * ```js + * function f(x, y, z) {} + * var args = [1, 2, 3]; + * f.apply(null, args); + * ``` + * + * With `spread` this example can be re-written. + * + * ```js + * spread(function(x, y, z) {})([1, 2, 3]); + * ``` + * + * @param {Function} callback + * + * @returns {Function} + */ + function spread(callback) { + return function wrap(arr) { + return callback.apply(null, arr); + }; + } + + /** + * Determines whether the payload is an error thrown by Axios + * + * @param {*} payload The value to test + * + * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false + */ + function isAxiosError(payload) { + return utils$1.isObject(payload) && payload.isAxiosError === true; + } + + var HttpStatusCode = { + Continue: 100, + SwitchingProtocols: 101, + Processing: 102, + EarlyHints: 103, + Ok: 200, + Created: 201, + Accepted: 202, + NonAuthoritativeInformation: 203, + NoContent: 204, + ResetContent: 205, + PartialContent: 206, + MultiStatus: 207, + AlreadyReported: 208, + ImUsed: 226, + MultipleChoices: 300, + MovedPermanently: 301, + Found: 302, + SeeOther: 303, + NotModified: 304, + UseProxy: 305, + Unused: 306, + TemporaryRedirect: 307, + PermanentRedirect: 308, + BadRequest: 400, + Unauthorized: 401, + PaymentRequired: 402, + Forbidden: 403, + NotFound: 404, + MethodNotAllowed: 405, + NotAcceptable: 406, + ProxyAuthenticationRequired: 407, + RequestTimeout: 408, + Conflict: 409, + Gone: 410, + LengthRequired: 411, + PreconditionFailed: 412, + PayloadTooLarge: 413, + UriTooLong: 414, + UnsupportedMediaType: 415, + RangeNotSatisfiable: 416, + ExpectationFailed: 417, + ImATeapot: 418, + MisdirectedRequest: 421, + UnprocessableEntity: 422, + Locked: 423, + FailedDependency: 424, + TooEarly: 425, + UpgradeRequired: 426, + PreconditionRequired: 428, + TooManyRequests: 429, + RequestHeaderFieldsTooLarge: 431, + UnavailableForLegalReasons: 451, + InternalServerError: 500, + NotImplemented: 501, + BadGateway: 502, + ServiceUnavailable: 503, + GatewayTimeout: 504, + HttpVersionNotSupported: 505, + VariantAlsoNegotiates: 506, + InsufficientStorage: 507, + LoopDetected: 508, + NotExtended: 510, + NetworkAuthenticationRequired: 511 + }; + Object.entries(HttpStatusCode).forEach(function (_ref) { + var _ref2 = _slicedToArray(_ref, 2), + key = _ref2[0], + value = _ref2[1]; + HttpStatusCode[value] = key; + }); + var HttpStatusCode$1 = HttpStatusCode; + + /** + * Create an instance of Axios + * + * @param {Object} defaultConfig The default config for the instance + * + * @returns {Axios} A new instance of Axios + */ + function createInstance(defaultConfig) { + var context = new Axios$1(defaultConfig); + var instance = bind(Axios$1.prototype.request, context); + + // Copy axios.prototype to instance + utils$1.extend(instance, Axios$1.prototype, context, { + allOwnKeys: true + }); + + // Copy context to instance + utils$1.extend(instance, context, null, { + allOwnKeys: true + }); + + // Factory for creating new instances + instance.create = function create(instanceConfig) { + return createInstance(mergeConfig(defaultConfig, instanceConfig)); + }; + return instance; + } + + // Create the default instance to be exported + var axios = createInstance(defaults$1); + + // Expose Axios class to allow class inheritance + axios.Axios = Axios$1; + + // Expose Cancel & CancelToken + axios.CanceledError = CanceledError; + axios.CancelToken = CancelToken$1; + axios.isCancel = isCancel; + axios.VERSION = VERSION; + axios.toFormData = toFormData; + + // Expose AxiosError class + axios.AxiosError = AxiosError; + + // alias for CanceledError for backward compatibility + axios.Cancel = axios.CanceledError; + + // Expose all/spread + axios.all = function all(promises) { + return Promise.all(promises); + }; + axios.spread = spread; + + // Expose isAxiosError + axios.isAxiosError = isAxiosError; + + // Expose mergeConfig + axios.mergeConfig = mergeConfig; + axios.AxiosHeaders = AxiosHeaders$1; + axios.formToJSON = function (thing) { + return formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing); + }; + axios.getAdapter = adapters.getAdapter; + axios.HttpStatusCode = HttpStatusCode$1; + axios["default"] = axios; + + return axios; + +})); +//# sourceMappingURL=axios.js.map diff --git a/Scripts/node_modules/axios/dist/axios.js.map b/Scripts/node_modules/axios/dist/axios.js.map new file mode 100644 index 00000000..daef6455 --- /dev/null +++ b/Scripts/node_modules/axios/dist/axios.js.map @@ -0,0 +1 @@ +{"version":3,"file":"axios.js","sources":["../lib/helpers/bind.js","../lib/utils.js","../lib/core/AxiosError.js","../lib/helpers/null.js","../lib/helpers/toFormData.js","../lib/helpers/AxiosURLSearchParams.js","../lib/helpers/buildURL.js","../lib/core/InterceptorManager.js","../lib/defaults/transitional.js","../lib/platform/browser/classes/URLSearchParams.js","../lib/platform/browser/classes/FormData.js","../lib/platform/browser/classes/Blob.js","../lib/platform/browser/index.js","../lib/platform/common/utils.js","../lib/platform/index.js","../lib/helpers/toURLEncodedForm.js","../lib/helpers/formDataToJSON.js","../lib/defaults/index.js","../lib/helpers/parseHeaders.js","../lib/core/AxiosHeaders.js","../lib/core/transformData.js","../lib/cancel/isCancel.js","../lib/cancel/CanceledError.js","../lib/core/settle.js","../lib/helpers/cookies.js","../lib/helpers/isAbsoluteURL.js","../lib/helpers/combineURLs.js","../lib/core/buildFullPath.js","../lib/helpers/isURLSameOrigin.js","../lib/helpers/parseProtocol.js","../lib/helpers/speedometer.js","../lib/adapters/xhr.js","../lib/adapters/adapters.js","../lib/core/dispatchRequest.js","../lib/core/mergeConfig.js","../lib/env/data.js","../lib/helpers/validator.js","../lib/core/Axios.js","../lib/cancel/CancelToken.js","../lib/helpers/spread.js","../lib/helpers/isAxiosError.js","../lib/helpers/HttpStatusCode.js","../lib/axios.js"],"sourcesContent":["'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = (\n (product) => {\n return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0\n })(typeof navigator !== 'undefined' && navigator.product);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders.from(config.headers).normalize();\n let {responseType, withXSRFToken} = config;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n let contentType;\n\n if (utils.isFormData(requestData)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n requestHeaders.setContentType(false); // Let the browser set it\n } else if ((contentType = requestHeaders.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if(platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {\n // Add xsrf header\n const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? thing.toJSON() : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","export const VERSION = \"1.6.7\";","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy;\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n"],"names":["bind","fn","thisArg","wrap","apply","arguments","toString","Object","prototype","getPrototypeOf","kindOf","cache","thing","str","call","slice","toLowerCase","create","kindOfTest","type","typeOfTest","isArray","Array","isUndefined","isBuffer","val","constructor","isFunction","isArrayBuffer","isArrayBufferView","result","ArrayBuffer","isView","buffer","isString","isNumber","isObject","isBoolean","isPlainObject","Symbol","toStringTag","iterator","isDate","isFile","isBlob","isFileList","isStream","pipe","isFormData","kind","FormData","append","isURLSearchParams","trim","replace","forEach","obj","allOwnKeys","i","l","length","keys","getOwnPropertyNames","len","key","findKey","_key","_global","globalThis","self","window","global","isContextDefined","context","merge","caseless","assignValue","targetKey","extend","a","b","stripBOM","content","charCodeAt","inherits","superConstructor","props","descriptors","defineProperty","value","assign","toFlatObject","sourceObj","destObj","filter","propFilter","prop","merged","endsWith","searchString","position","String","undefined","lastIndex","indexOf","toArray","arr","isTypedArray","TypedArray","Uint8Array","forEachEntry","generator","next","done","pair","matchAll","regExp","matches","exec","push","isHTMLForm","toCamelCase","replacer","m","p1","p2","toUpperCase","hasOwnProperty","isRegExp","reduceDescriptors","reducer","getOwnPropertyDescriptors","reducedDescriptors","descriptor","name","ret","defineProperties","freezeMethods","enumerable","writable","set","Error","toObjectSet","arrayOrString","delimiter","define","split","noop","toFiniteNumber","defaultValue","Number","isFinite","ALPHA","DIGIT","ALPHABET","ALPHA_DIGIT","generateString","size","alphabet","Math","random","isSpecCompliantForm","toJSONObject","stack","visit","source","target","reducedValue","isAsyncFn","isThenable","then","hasOwnProp","AxiosError","message","code","config","request","response","captureStackTrace","utils","toJSON","description","number","fileName","lineNumber","columnNumber","status","from","error","customProps","axiosError","cause","isVisitable","removeBrackets","renderKey","path","dots","concat","map","each","token","join","isFlatArray","some","predicates","test","toFormData","formData","options","TypeError","metaTokens","indexes","defined","option","visitor","defaultVisitor","_Blob","Blob","useBlob","convertValue","toISOString","Buffer","JSON","stringify","el","index","exposedHelpers","build","pop","encode","charMap","encodeURIComponent","match","AxiosURLSearchParams","params","_pairs","encoder","_encode","buildURL","url","serializeFn","serialize","serializedParams","hashmarkIndex","InterceptorManager","handlers","fulfilled","rejected","synchronous","runWhen","id","forEachHandler","h","silentJSONParsing","forcedJSONParsing","clarifyTimeoutError","URLSearchParams","isBrowser","classes","protocols","hasBrowserEnv","document","hasStandardBrowserEnv","product","navigator","hasStandardBrowserWebWorkerEnv","WorkerGlobalScope","importScripts","platform","toURLEncodedForm","data","helpers","isNode","parsePropPath","arrayToObject","formDataToJSON","buildPath","isNumericKey","isLast","entries","stringifySafely","rawValue","parser","parse","e","defaults","transitional","transitionalDefaults","adapter","transformRequest","headers","contentType","getContentType","hasJSONContentType","isObjectPayload","setContentType","formSerializer","_FormData","env","transformResponse","JSONRequested","responseType","strictJSONParsing","ERR_BAD_RESPONSE","timeout","xsrfCookieName","xsrfHeaderName","maxContentLength","maxBodyLength","validateStatus","common","method","ignoreDuplicateOf","rawHeaders","parsed","line","substring","$internals","normalizeHeader","header","normalizeValue","parseTokens","tokens","tokensRE","isValidHeaderName","matchHeaderValue","isHeaderNameFilter","formatHeader","w","char","buildAccessors","accessorName","methodName","arg1","arg2","arg3","configurable","AxiosHeaders","valueOrRewrite","rewrite","setHeader","_value","_header","_rewrite","lHeader","setHeaders","parseHeaders","matcher","deleted","deleteHeader","format","normalized","targets","asStrings","first","computed","internals","accessors","defineAccessor","accessor","mapped","get","headerValue","transformData","fns","transform","normalize","isCancel","__CANCEL__","CanceledError","ERR_CANCELED","settle","resolve","reject","ERR_BAD_REQUEST","floor","write","expires","domain","secure","cookie","Date","toGMTString","read","RegExp","decodeURIComponent","remove","now","isAbsoluteURL","combineURLs","baseURL","relativeURL","buildFullPath","requestedURL","standardBrowserEnv","msie","userAgent","urlParsingNode","createElement","originURL","resolveURL","href","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","location","isURLSameOrigin","requestURL","nonStandardBrowserEnv","parseProtocol","speedometer","samplesCount","min","bytes","timestamps","head","tail","firstSampleTS","chunkLength","startedAt","bytesCount","passed","round","progressEventReducer","listener","isDownloadStream","bytesNotified","_speedometer","loaded","total","lengthComputable","progressBytes","rate","inRange","progress","estimated","event","isXHRAdapterSupported","XMLHttpRequest","Promise","dispatchXhrRequest","requestData","requestHeaders","withXSRFToken","onCanceled","cancelToken","unsubscribe","signal","removeEventListener","Boolean","auth","username","password","unescape","btoa","fullPath","open","paramsSerializer","onloadend","responseHeaders","getAllResponseHeaders","responseData","responseText","statusText","_resolve","_reject","err","onreadystatechange","handleLoad","readyState","responseURL","setTimeout","onabort","handleAbort","ECONNABORTED","onerror","handleError","ERR_NETWORK","ontimeout","handleTimeout","timeoutErrorMessage","ETIMEDOUT","xsrfValue","cookies","setRequestHeader","withCredentials","onDownloadProgress","addEventListener","onUploadProgress","upload","cancel","abort","subscribe","aborted","send","knownAdapters","http","httpAdapter","xhr","xhrAdapter","renderReason","reason","isResolvedHandle","getAdapter","adapters","nameOrAdapter","rejectedReasons","reasons","state","s","throwIfCancellationRequested","throwIfRequested","dispatchRequest","onAdapterResolution","onAdapterRejection","headersToObject","mergeConfig","config1","config2","getMergedValue","mergeDeepProperties","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","timeoutMessage","decompress","beforeRedirect","transport","httpAgent","httpsAgent","socketPath","responseEncoding","computeConfigValue","configValue","VERSION","validators","validator","deprecatedWarnings","version","formatMessage","opt","desc","opts","ERR_DEPRECATED","console","warn","assertOptions","schema","allowUnknown","ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","Axios","instanceConfig","interceptors","configOrUrl","_request","dummy","contextHeaders","requestInterceptorChain","synchronousRequestInterceptors","unshiftRequestInterceptors","interceptor","unshift","responseInterceptorChain","pushResponseInterceptors","promise","chain","newConfig","onFulfilled","onRejected","forEachMethodNoData","forEachMethodWithData","generateHTTPMethod","isForm","httpMethod","CancelToken","executor","resolvePromise","promiseExecutor","_listeners","onfulfilled","splice","c","spread","callback","isAxiosError","payload","HttpStatusCode","Continue","SwitchingProtocols","Processing","EarlyHints","Ok","Created","Accepted","NonAuthoritativeInformation","NoContent","ResetContent","PartialContent","MultiStatus","AlreadyReported","ImUsed","MultipleChoices","MovedPermanently","Found","SeeOther","NotModified","UseProxy","Unused","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","LengthRequired","PreconditionFailed","PayloadTooLarge","UriTooLong","UnsupportedMediaType","RangeNotSatisfiable","ExpectationFailed","ImATeapot","MisdirectedRequest","UnprocessableEntity","Locked","FailedDependency","TooEarly","UpgradeRequired","PreconditionRequired","TooManyRequests","RequestHeaderFieldsTooLarge","UnavailableForLegalReasons","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","HttpVersionNotSupported","VariantAlsoNegotiates","InsufficientStorage","LoopDetected","NotExtended","NetworkAuthenticationRequired","createInstance","defaultConfig","instance","axios","Cancel","all","promises","formToJSON"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEe,SAASA,IAAI,CAACC,EAAE,EAAEC,OAAO,EAAE;IACxC,OAAO,SAASC,IAAI,GAAG;EACrB,IAAA,OAAOF,EAAE,CAACG,KAAK,CA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B,KAAK,CAACxJ,UAAU,GAAGC,QAAQ,CAACD,UAAU,CAAA;EAEtCwJ,KAAK,CAACnE,cAAc,GAAGA,gBAAc,CAAA;EAErCmE,KAAK,CAAA,SAAA,CAAQ,GAAGA,KAAK;;;;;;;;"} \ No newline at end of file diff --git a/Scripts/node_modules/axios/dist/axios.min.js b/Scripts/node_modules/axios/dist/axios.min.js new file mode 100644 index 00000000..b58abf2e --- /dev/null +++ b/Scripts/node_modules/axios/dist/axios.min.js @@ -0,0 +1,2 @@ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).axios=t()}(this,(function(){"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(t){for(var r=1;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},e}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:{},a=i.allOwnKeys,s=void 0!==a&&a;if(null!=e)if("object"!==n(e)&&(e=[e]),S(e))for(r=0,o=e.length;r0;)if(t===(r=n[o]).toLowerCase())return r;return null}var B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,I=function(e){return!R(e)&&e!==B};var q,z=(q="undefined"!=typeof Uint8Array&&b(Uint8Array),function(e){return q&&e instanceof q}),M=E("HTMLFormElement"),H=function(e){var t=Object.prototype.hasOwnProperty;return function(e,r){return t.call(e,r)}}(),J=E("RegExp"),G=function(e,t){var r=Object.getOwnPropertyDescriptors(e),n={};U(r,(function(r,o){var i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},W="abcdefghijklmnopqrstuvwxyz",K="0123456789",V={DIGIT:K,ALPHA:W,ALPHA_DIGIT:W+W.toUpperCase()+K};var X=E("AsyncFunction"),$={isArray:S,isArrayBuffer:A,isBuffer:function(e){return null!==e&&!R(e)&&null!==e.constructor&&!R(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"==typeof FormData&&e instanceof FormData||x(e.append)&&("formdata"===(t=w(e))||"object"===t&&x(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&A(e.buffer)},isString:j,isNumber:T,isBoolean:function(e){return!0===e||!1===e},isObject:P,isPlainObject:N,isUndefined:R,isDate:k,isFile:_,isBlob:L,isRegExp:J,isFunction:x,isStream:function(e){return P(e)&&x(e.pipe)},isURLSearchParams:F,isTypedArray:z,isFileList:C,forEach:U,merge:function e(){for(var t=I(this)&&this||{},r=t.caseless,n={},o=function(t,o){var i=r&&D(n,o)||o;N(n[i])&&N(t)?n[i]=e(n[i],t):N(t)?n[i]=e({},t):S(t)?n[i]=t.slice():n[i]=t},i=0,a=arguments.length;i3&&void 0!==arguments[3]?arguments[3]:{},o=n.allOwnKeys;return U(t,(function(t,n){r&&x(t)?e[n]=y(t,r):e[n]=t}),{allOwnKeys:o}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r,n){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&b(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:w,kindOfTest:E,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;if(S(e))return e;var t=e.length;if(!T(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},forEachEntry:function(e,t){for(var r,n=(e&&e[Symbol.iterator]).call(e);(r=n.next())&&!r.done;){var o=r.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var r,n=[];null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:M,hasOwnProperty:H,hasOwnProp:H,reduceDescriptors:G,freezeMethods:function(e){G(e,(function(t,r){if(x(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;var n=e[r];x(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:function(e,t){var r={},n=function(e){e.forEach((function(e){r[e]=!0}))};return S(e)?n(e):n(String(e).split(t)),r},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t},findKey:D,global:B,isContextDefined:I,ALPHABET:V,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.ALPHA_DIGIT,r="",n=t.length;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&x(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(r,n){if(P(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[n]=r;var o=S(r)?[]:{};return U(r,(function(t,r){var i=e(t,n+1);!R(i)&&(o[r]=i)})),t[n]=void 0,o}}return r}(e,0)},isAsyncFn:X,isThenable:function(e){return e&&(P(e)||x(e))&&x(e.then)&&x(e.catch)}};function Q(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}$.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Y=Q.prototype,Z={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){Z[e]={value:e}})),Object.defineProperties(Q,Z),Object.defineProperty(Y,"isAxiosError",{value:!0}),Q.from=function(e,t,r,n,o,i){var a=Object.create(Y);return $.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),Q.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function ee(e){return $.isPlainObject(e)||$.isArray(e)}function te(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function re(e,t,r){return e?e.concat(t).map((function(e,t){return e=te(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}var ne=$.toFlatObject($,{},null,(function(e){return/^is[A-Z]/.test(e)}));function oe(e,t,r){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var o=(r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!$.isUndefined(t[e])}))).metaTokens,i=r.visitor||f,a=r.dots,s=r.indexes,u=(r.Blob||"undefined"!=typeof Blob&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if($.isDate(e))return e.toISOString();if(!u&&$.isBlob(e))throw new Q("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(e)||$.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function f(e,r,i){var u=e;if(e&&!i&&"object"===n(e))if($.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=JSON.stringify(e);else if($.isArray(e)&&function(e){return $.isArray(e)&&!e.some(ee)}(e)||($.isFileList(e)||$.endsWith(r,"[]"))&&(u=$.toArray(e)))return r=te(r),u.forEach((function(e,n){!$.isUndefined(e)&&null!==e&&t.append(!0===s?re([r],n,a):null===s?r:r+"[]",c(e))})),!1;return!!ee(e)||(t.append(re(i,r,a),c(e)),!1)}var l=[],h=Object.assign(ne,{defaultVisitor:f,convertValue:c,isVisitable:ee});if(!$.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!$.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),$.forEach(r,(function(r,o){!0===(!($.isUndefined(r)||null===r)&&i.call(t,r,$.isString(o)?o.trim():o,n,h))&&e(r,n?n.concat(o):[o])})),l.pop()}}(e),t}function ie(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ae(e,t){this._pairs=[],e&&oe(e,this,t)}var se=ae.prototype;function ue(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ce(e,t,r){if(!t)return e;var n,o=r&&r.encode||ue,i=r&&r.serialize;if(n=i?i(t,r):$.isURLSearchParams(t)?t.toString():new ae(t,r).toString(o)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}se.append=function(e,t){this._pairs.push([e,t])},se.toString=function(e){var t=e?function(t){return e.call(this,t,ie)}:ie;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var fe,le=function(){function e(){i(this,e),this.handlers=[]}return s(e,[{key:"use",value:function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){$.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),he={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},de={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ae,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},pe="undefined"!=typeof window&&"undefined"!=typeof document,ve=(fe="undefined"!=typeof navigator&&navigator.product,pe&&["ReactNative","NativeScript","NS"].indexOf(fe)<0),ye="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,me=t(t({},Object.freeze({__proto__:null,hasBrowserEnv:pe,hasStandardBrowserWebWorkerEnv:ye,hasStandardBrowserEnv:ve})),de);function ge(e){function t(e,r,n,o){var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),s=o>=e.length;return i=!i&&$.isArray(n)?n.length:i,s?($.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a):(n[i]&&$.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&$.isArray(n[i])&&(n[i]=function(e){var t,r,n={},o=Object.keys(e),i=o.length;for(t=0;t-1,i=$.isObject(e);if(i&&$.isHTMLForm(e)&&(e=new FormData(e)),$.isFormData(e))return o?JSON.stringify(ge(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return oe(e,new me.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return me.isNode&&$.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=$.isFileList(e))||n.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return oe(r?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,r){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||be.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&$.isString(e)&&(r&&!this.responseType||n)){var o=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Q.from(e,Q.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:me.classes.FormData,Blob:me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],(function(e){be.headers[e]={}}));var we=be,Ee=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oe=Symbol("internals");function Se(e){return e&&String(e).trim().toLowerCase()}function Re(e){return!1===e||null==e?e:$.isArray(e)?e.map(Re):String(e)}function Ae(e,t,r,n,o){return $.isFunction(n)?n.call(this,t,r):(o&&(t=r),$.isString(t)?$.isString(n)?-1!==t.indexOf(n):$.isRegExp(n)?n.test(t):void 0:void 0)}var je=function(e,t){function r(e){i(this,r),e&&this.set(e)}return s(r,[{key:"set",value:function(e,t,r){var n=this;function o(e,t,r){var o=Se(t);if(!o)throw new Error("header name must be a non-empty string");var i=$.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=Re(e))}var i,a,s,u,c,f=function(e,t){return $.forEach(e,(function(e,r){return o(e,r,t)}))};return $.isPlainObject(e)||e instanceof this.constructor?f(e,t):$.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?f((c={},(i=e)&&i.split("\n").forEach((function(e){u=e.indexOf(":"),a=e.substring(0,u).trim().toLowerCase(),s=e.substring(u+1).trim(),!a||c[a]&&Ee[a]||("set-cookie"===a?c[a]?c[a].push(s):c[a]=[s]:c[a]=c[a]?c[a]+", "+s:s)})),c),t):null!=e&&o(t,e,r),this}},{key:"get",value:function(e,t){if(e=Se(e)){var r=$.findKey(this,e);if(r){var n=this[r];if(!t)return n;if(!0===t)return function(e){for(var t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=n.exec(e);)r[t[1]]=t[2];return r}(n);if($.isFunction(t))return t.call(this,n,r);if($.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=Se(e)){var r=$.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ae(0,this[r],r,t))}return!1}},{key:"delete",value:function(e,t){var r=this,n=!1;function o(e){if(e=Se(e)){var o=$.findKey(r,e);!o||t&&!Ae(0,r[o],o,t)||(delete r[o],n=!0)}}return $.isArray(e)?e.forEach(o):o(e),n}},{key:"clear",value:function(e){for(var t=Object.keys(this),r=t.length,n=!1;r--;){var o=t[r];e&&!Ae(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}},{key:"normalize",value:function(e){var t=this,r={};return $.forEach(this,(function(n,o){var i=$.findKey(r,o);if(i)return t[i]=Re(n),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Re(n),r[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,r=new Array(t),n=0;n1?r-1:0),o=1;o1?"since :\n"+s.map(Ue).join("\n"):" "+Ue(s[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Ie(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ne(null,e)}function qe(e){return Ie(e),e.headers=xe.from(e.headers),e.data=Te.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Be(e.adapter||we.adapter)(e).then((function(t){return Ie(e),t.data=Te.call(e,e.transformResponse,t),t.headers=xe.from(t.headers),t}),(function(t){return Pe(t)||(Ie(e),t&&t.response&&(t.response.data=Te.call(e,e.transformResponse,t.response),t.response.headers=xe.from(t.response.headers))),Promise.reject(t)}))}var ze=function(e){return e instanceof xe?e.toJSON():e};function Me(e,t){t=t||{};var r={};function n(e,t,r){return $.isPlainObject(e)&&$.isPlainObject(t)?$.merge.call({caseless:r},e,t):$.isPlainObject(t)?$.merge({},t):$.isArray(t)?t.slice():t}function o(e,t,r){return $.isUndefined(t)?$.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!$.isUndefined(t))return n(void 0,t)}function a(e,t){return $.isUndefined(t)?$.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}var u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:function(e,t){return o(ze(e),ze(t),!0)}};return $.forEach(Object.keys(Object.assign({},e,t)),(function(n){var i=u[n]||o,a=i(e[n],t[n],n);$.isUndefined(a)&&i!==s||(r[n]=a)})),r}var He="1.6.7",Je={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Je[e]=function(r){return n(r)===e||"a"+(t<1?"n ":" ")+e}}));var Ge={};Je.transitional=function(e,t,r){function n(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new Q(n(o," has been removed"+(t?" in "+t:"")),Q.ERR_DEPRECATED);return t&&!Ge[o]&&(Ge[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var We={assertOptions:function(e,t,r){if("object"!==n(e))throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);for(var o=Object.keys(e),i=o.length;i-- >0;){var a=o[i],s=t[a];if(s){var u=e[a],c=void 0===u||s(u,a,e);if(!0!==c)throw new Q("option "+a+" must be "+c,Q.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Q("Unknown option "+a,Q.ERR_BAD_OPTION)}},validators:Je},Ke=We.validators,Ve=function(){function e(t){i(this,e),this.defaults=t,this.interceptors={request:new le,response:new le}}var t,n;return s(e,[{key:"request",value:(t=r().mark((function e(t,n){var o,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(t,n);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error&&(Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error,i=o.stack?o.stack.replace(/^.+\n/,""):"",e.t0.stack?i&&!String(e.t0.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(e.t0.stack+="\n"+i):e.t0.stack=i),e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])})),n=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(e){o(a,n,i,s,u,"next",e)}function u(e){o(a,n,i,s,u,"throw",e)}s(void 0)}))},function(e,t){return n.apply(this,arguments)})},{key:"_request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var r=t=Me(this.defaults,t),n=r.transitional,o=r.paramsSerializer,i=r.headers;void 0!==n&&We.assertOptions(n,{silentJSONParsing:Ke.transitional(Ke.boolean),forcedJSONParsing:Ke.transitional(Ke.boolean),clarifyTimeoutError:Ke.transitional(Ke.boolean)},!1),null!=o&&($.isFunction(o)?t.paramsSerializer={serialize:o}:We.assertOptions(o,{encode:Ke.function,serialize:Ke.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=i&&$.merge(i.common,i[t.method]);i&&$.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete i[e]})),t.headers=xe.concat(a,i);var s=[],u=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var c,f=[];this.interceptors.response.forEach((function(e){f.push(e.fulfilled,e.rejected)}));var l,h=0;if(!u){var d=[qe.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,f),l=d.length,c=Promise.resolve(t);h0;)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},t((function(e,t,o){n.reason||(n.reason=new Ne(e,t,o),r(n.reason))}))}return s(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}();var Qe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Qe).forEach((function(e){var t=c(e,2),r=t[0],n=t[1];Qe[n]=r}));var Ye=Qe;var Ze=function e(t){var r=new Xe(t),n=y(Xe.prototype.request,r);return $.extend(n,Xe.prototype,r,{allOwnKeys:!0}),$.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Me(t,r))},n}(we);return Ze.Axios=Xe,Ze.CanceledError=Ne,Ze.CancelToken=$e,Ze.isCancel=Pe,Ze.VERSION=He,Ze.toFormData=oe,Ze.AxiosError=Q,Ze.Cancel=Ze.CanceledError,Ze.all=function(e){return Promise.all(e)},Ze.spread=function(e){return function(t){return e.apply(null,t)}},Ze.isAxiosError=function(e){return $.isObject(e)&&!0===e.isAxiosError},Ze.mergeConfig=Me,Ze.AxiosHeaders=xe,Ze.formToJSON=function(e){return ge($.isHTMLForm(e)?new FormData(e):e)},Ze.getAdapter=Be,Ze.HttpStatusCode=Ye,Ze.default=Ze,Ze})); +//# sourceMappingURL=axios.min.js.map diff --git a/Scripts/node_modules/axios/dist/axios.min.js.map b/Scripts/node_modules/axios/dist/axios.min.js.map new file mode 100644 index 00000000..26ffe031 --- /dev/null +++ b/Scripts/node_modules/axios/dist/axios.min.js.map @@ -0,0 +1 @@ +{"version":3,"file":"axios.min.js","sources":["../lib/helpers/bind.js","../lib/utils.js","../lib/core/AxiosError.js","../lib/helpers/toFormData.js","../lib/helpers/AxiosURLSearchParams.js","../lib/helpers/buildURL.js","../lib/core/InterceptorManager.js","../lib/platform/common/utils.js","../lib/defaults/transitional.js","../lib/platform/browser/index.js","../lib/platform/browser/classes/URLSearchParams.js","../lib/platform/browser/classes/FormData.js","../lib/platform/browser/classes/Blob.js","../lib/platform/index.js","../lib/helpers/formDataToJSON.js","../lib/defaults/index.js","../lib/helpers/toURLEncodedForm.js","../lib/helpers/parseHeaders.js","../lib/core/AxiosHeaders.js","../lib/core/transformData.js","../lib/cancel/isCancel.js","../lib/cancel/CanceledError.js","../lib/helpers/cookies.js","../lib/core/buildFullPath.js","../lib/helpers/isAbsoluteURL.js","../lib/helpers/combineURLs.js","../lib/helpers/isURLSameOrigin.js","../lib/adapters/xhr.js","../lib/helpers/speedometer.js","../lib/adapters/adapters.js","../lib/helpers/null.js","../lib/core/settle.js","../lib/helpers/parseProtocol.js","../lib/core/dispatchRequest.js","../lib/core/mergeConfig.js","../lib/env/data.js","../lib/helpers/validator.js","../lib/core/Axios.js","../lib/cancel/CancelToken.js","../lib/helpers/HttpStatusCode.js","../lib/axios.js","../lib/helpers/spread.js","../lib/helpers/isAxiosError.js"],"sourcesContent":["'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = (\n (product) => {\n return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0\n })(typeof navigator !== 'undefined' && navigator.product);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv\n}\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders.from(config.headers).normalize();\n let {responseType, withXSRFToken} = config;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n let contentType;\n\n if (utils.isFormData(requestData)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n requestHeaders.setContentType(false); // Let the browser set it\n } else if ((contentType = requestHeaders.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if(platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {\n // Add xsrf header\n const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? thing.toJSON() : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","export const VERSION = \"1.6.7\";","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy;\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n"],"names":["bind","fn","thisArg","apply","arguments","cache","toString","Object","prototype","getPrototypeOf","kindOf","create","thing","str","call","slice","toLowerCase","kindOfTest","type","typeOfTest","_typeof","isArray","Array","isUndefined","isArrayBuffer","isString","isFunction","isNumber","isObject","isPlainObject","val","Symbol","toStringTag","iterator","isDate","isFile","isBlob","isFileList","isURLSearchParams","forEach","obj","i","l","_ref","length","undefined","_ref$allOwnKeys","allOwnKeys","key","keys","getOwnPropertyNames","len","findKey","_key","_global","globalThis","self","window","global","isContextDefined","context","TypedArray","isTypedArray","Uint8Array","isHTMLForm","hasOwnProperty","_ref4","prop","isRegExp","reduceDescriptors","reducer","descriptors","getOwnPropertyDescriptors","reducedDescriptors","descriptor","name","ret","defineProperties","ALPHA","DIGIT","ALPHABET","ALPHA_DIGIT","toUpperCase","isAsyncFn","utils$1","isBuffer","constructor","isFormData","kind","FormData","append","isArrayBufferView","ArrayBuffer","isView","buffer","isBoolean","isStream","pipe","merge","this","caseless","result","assignValue","targetKey","extend","a","b","_ref3","trim","replace","stripBOM","content","charCodeAt","inherits","superConstructor","props","defineProperty","value","assign","toFlatObject","sourceObj","destObj","filter","propFilter","merged","endsWith","searchString","position","String","lastIndex","indexOf","toArray","arr","forEachEntry","next","done","pair","matchAll","regExp","matches","exec","push","hasOwnProp","freezeMethods","enumerable","writable","set","Error","toObjectSet","arrayOrString","delimiter","define","split","toCamelCase","m","p1","p2","noop","toFiniteNumber","defaultValue","Number","isFinite","generateString","size","alphabet","Math","random","isSpecCompliantForm","toJSONObject","stack","visit","source","target","reducedValue","isThenable","then","AxiosError","message","code","config","request","response","captureStackTrace","utils","toJSON","description","number","fileName","lineNumber","columnNumber","status","from","error","customProps","axiosError","cause","isVisitable","removeBrackets","renderKey","path","dots","concat","map","token","join","predicates","test","toFormData","formData","options","TypeError","metaTokens","indexes","option","visitor","defaultVisitor","useBlob","Blob","convertValue","toISOString","Buffer","JSON","stringify","some","isFlatArray","el","index","exposedHelpers","build","pop","encode","charMap","encodeURIComponent","match","AxiosURLSearchParams","params","_pairs","buildURL","url","serializedParams","_encode","serializeFn","serialize","hashmarkIndex","encoder","product","InterceptorManager$1","InterceptorManager","_classCallCheck","handlers","_createClass","fulfilled","rejected","synchronous","runWhen","id","h","transitionalDefaults","silentJSONParsing","forcedJSONParsing","clarifyTimeoutError","platform$1","isBrowser","classes","URLSearchParams","protocols","hasBrowserEnv","document","hasStandardBrowserEnv","navigator","hasStandardBrowserWebWorkerEnv","WorkerGlobalScope","importScripts","platform","formDataToJSON","buildPath","isNumericKey","isLast","arrayToObject","entries","parsePropPath","defaults","transitional","adapter","transformRequest","data","headers","contentType","getContentType","hasJSONContentType","isObjectPayload","setContentType","helpers","isNode","toURLEncodedForm","formSerializer","_FormData","env","rawValue","parser","parse","e","stringifySafely","transformResponse","JSONRequested","responseType","strictJSONParsing","ERR_BAD_RESPONSE","timeout","xsrfCookieName","xsrfHeaderName","maxContentLength","maxBodyLength","validateStatus","common","Accept","method","defaults$1","ignoreDuplicateOf","$internals","normalizeHeader","header","normalizeValue","matchHeaderValue","isHeaderNameFilter","AxiosHeaders","_Symbol$iterator","_Symbol$toStringTag","valueOrRewrite","rewrite","setHeader","_value","_header","_rewrite","lHeader","rawHeaders","parsed","setHeaders","line","substring","tokens","tokensRE","parseTokens","matcher","deleted","deleteHeader","format","normalized","w","char","formatHeader","_this$constructor","_len","targets","asStrings","_ref2","_slicedToArray","get","first","computed","_len2","_key2","accessors","defineAccessor","accessorName","methodName","arg1","arg2","arg3","configurable","buildAccessors","accessor","mapped","headerValue","AxiosHeaders$1","transformData","fns","normalize","isCancel","__CANCEL__","CanceledError","ERR_CANCELED","write","expires","domain","secure","cookie","Date","toGMTString","read","RegExp","decodeURIComponent","remove","now","buildFullPath","baseURL","requestedURL","relativeURL","combineURLs","originURL","msie","userAgent","urlParsingNode","createElement","resolveURL","href","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","location","requestURL","progressEventReducer","listener","isDownloadStream","bytesNotified","_speedometer","samplesCount","min","firstSampleTS","bytes","timestamps","head","tail","chunkLength","startedAt","bytesCount","passed","round","speedometer","loaded","total","lengthComputable","progressBytes","rate","progress","estimated","event","knownAdapters","http","xhr","XMLHttpRequest","Promise","resolve","reject","onCanceled","requestData","requestHeaders","withXSRFToken","cancelToken","unsubscribe","signal","removeEventListener","Boolean","auth","username","password","unescape","btoa","fullPath","onloadend","responseHeaders","getAllResponseHeaders","ERR_BAD_REQUEST","floor","settle","err","responseText","statusText","open","paramsSerializer","onreadystatechange","readyState","responseURL","setTimeout","onabort","ECONNABORTED","onerror","ERR_NETWORK","ontimeout","timeoutErrorMessage","ETIMEDOUT","isURLSameOrigin","xsrfValue","cookies","setRequestHeader","withCredentials","onDownloadProgress","addEventListener","onUploadProgress","upload","cancel","abort","subscribe","aborted","send","renderReason","reason","isResolvedHandle","adapters","nameOrAdapter","rejectedReasons","reasons","state","throwIfCancellationRequested","throwIfRequested","dispatchRequest","headersToObject","mergeConfig","config1","config2","getMergedValue","mergeDeepProperties","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","timeoutMessage","decompress","beforeRedirect","transport","httpAgent","httpsAgent","socketPath","responseEncoding","configValue","VERSION","validators","deprecatedWarnings","validators$1","validator","version","formatMessage","opt","desc","opts","ERR_DEPRECATED","console","warn","assertOptions","schema","allowUnknown","ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","Axios","instanceConfig","interceptors","_request2","_regeneratorRuntime","mark","_callee","configOrUrl","dummy","wrap","_context","prev","_request","abrupt","sent","t0","stop","_x","_x2","_config","contextHeaders","requestInterceptorChain","synchronousRequestInterceptors","interceptor","unshift","promise","responseInterceptorChain","chain","newConfig","onFulfilled","onRejected","generateHTTPMethod","isForm","Axios$1","CancelToken$1","CancelToken","executor","resolvePromise","_listeners","onfulfilled","_resolve","splice","c","HttpStatusCode","Continue","SwitchingProtocols","Processing","EarlyHints","Ok","Created","Accepted","NonAuthoritativeInformation","NoContent","ResetContent","PartialContent","MultiStatus","AlreadyReported","ImUsed","MultipleChoices","MovedPermanently","Found","SeeOther","NotModified","UseProxy","Unused","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","LengthRequired","PreconditionFailed","PayloadTooLarge","UriTooLong","UnsupportedMediaType","RangeNotSatisfiable","ExpectationFailed","ImATeapot","MisdirectedRequest","UnprocessableEntity","Locked","FailedDependency","TooEarly","UpgradeRequired","PreconditionRequired","TooManyRequests","RequestHeaderFieldsTooLarge","UnavailableForLegalReasons","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","HttpVersionNotSupported","VariantAlsoNegotiates","InsufficientStorage","LoopDetected","NotExtended","NetworkAuthenticationRequired","HttpStatusCode$1","axios","createInstance","defaultConfig","instance","Cancel","all","promises","spread","callback","isAxiosError","payload","formToJSON","getAdapter"],"mappings":"+sSAEe,SAASA,EAAKC,EAAIC,GAC/B,OAAO,WACL,OAAOD,EAAGE,MAAMD,EAASE,WAE7B,CCAA,IAGgBC,EAHTC,EAAYC,OAAOC,UAAnBF,SACAG,EAAkBF,OAAlBE,eAEDC,GAAUL,EAGbE,OAAOI,OAAO,MAHQ,SAAAC,GACrB,IAAMC,EAAMP,EAASQ,KAAKF,GAC1B,OAAOP,EAAMQ,KAASR,EAAMQ,GAAOA,EAAIE,MAAM,GAAI,GAAGC,iBAGlDC,EAAa,SAACC,GAElB,OADAA,EAAOA,EAAKF,cACL,SAACJ,GAAK,OAAKF,EAAOE,KAAWM,CA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/node_modules/axios/dist/browser/axios.cjs b/Scripts/node_modules/axios/dist/browser/axios.cjs new file mode 100644 index 00000000..7043a0b5 --- /dev/null +++ b/Scripts/node_modules/axios/dist/browser/axios.cjs @@ -0,0 +1,3258 @@ +// Axios v1.6.7 Copyright (c) 2024 Matt Zabriskie and contributors +'use strict'; + +function bind(fn, thisArg) { + return function wrap() { + return fn.apply(thisArg, arguments); + }; +} + +// utils is a library of generic helper functions non-specific to axios + +const {toString} = Object.prototype; +const {getPrototypeOf} = Object; + +const kindOf = (cache => thing => { + const str = toString.call(thing); + return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); +})(Object.create(null)); + +const kindOfTest = (type) => { + type = type.toLowerCase(); + return (thing) => kindOf(thing) === type +}; + +const typeOfTest = type => thing => typeof thing === type; + +/** + * Determine if a value is an Array + * + * @param {Object} val The value to test + * + * @returns {boolean} True if value is an Array, otherwise false + */ +const {isArray} = Array; + +/** + * Determine if a value is undefined + * + * @param {*} val The value to test + * + * @returns {boolean} True if the value is undefined, otherwise false + */ +const isUndefined = typeOfTest('undefined'); + +/** + * Determine if a value is a Buffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Buffer, otherwise false + */ +function isBuffer(val) { + return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) + && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); +} + +/** + * Determine if a value is an ArrayBuffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is an ArrayBuffer, otherwise false + */ +const isArrayBuffer = kindOfTest('ArrayBuffer'); + + +/** + * Determine if a value is a view on an ArrayBuffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false + */ +function isArrayBufferView(val) { + let result; + if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { + result = ArrayBuffer.isView(val); + } else { + result = (val) && (val.buffer) && (isArrayBuffer(val.buffer)); + } + return result; +} + +/** + * Determine if a value is a String + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a String, otherwise false + */ +const isString = typeOfTest('string'); + +/** + * Determine if a value is a Function + * + * @param {*} val The value to test + * @returns {boolean} True if value is a Function, otherwise false + */ +const isFunction = typeOfTest('function'); + +/** + * Determine if a value is a Number + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Number, otherwise false + */ +const isNumber = typeOfTest('number'); + +/** + * Determine if a value is an Object + * + * @param {*} thing The value to test + * + * @returns {boolean} True if value is an Object, otherwise false + */ +const isObject = (thing) => thing !== null && typeof thing === 'object'; + +/** + * Determine if a value is a Boolean + * + * @param {*} thing The value to test + * @returns {boolean} True if value is a Boolean, otherwise false + */ +const isBoolean = thing => thing === true || thing === false; + +/** + * Determine if a value is a plain Object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a plain Object, otherwise false + */ +const isPlainObject = (val) => { + if (kindOf(val) !== 'object') { + return false; + } + + const prototype = getPrototypeOf(val); + return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); +}; + +/** + * Determine if a value is a Date + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Date, otherwise false + */ +const isDate = kindOfTest('Date'); + +/** + * Determine if a value is a File + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a File, otherwise false + */ +const isFile = kindOfTest('File'); + +/** + * Determine if a value is a Blob + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Blob, otherwise false + */ +const isBlob = kindOfTest('Blob'); + +/** + * Determine if a value is a FileList + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a File, otherwise false + */ +const isFileList = kindOfTest('FileList'); + +/** + * Determine if a value is a Stream + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Stream, otherwise false + */ +const isStream = (val) => isObject(val) && isFunction(val.pipe); + +/** + * Determine if a value is a FormData + * + * @param {*} thing The value to test + * + * @returns {boolean} True if value is an FormData, otherwise false + */ +const isFormData = (thing) => { + let kind; + return thing && ( + (typeof FormData === 'function' && thing instanceof FormData) || ( + isFunction(thing.append) && ( + (kind = kindOf(thing)) === 'formdata' || + // detect form-data instance + (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]') + ) + ) + ) +}; + +/** + * Determine if a value is a URLSearchParams object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a URLSearchParams object, otherwise false + */ +const isURLSearchParams = kindOfTest('URLSearchParams'); + +/** + * Trim excess whitespace off the beginning and end of a string + * + * @param {String} str The String to trim + * + * @returns {String} The String freed of excess whitespace + */ +const trim = (str) => str.trim ? + str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); + +/** + * Iterate over an Array or an Object invoking a function for each item. + * + * If `obj` is an Array callback will be called passing + * the value, index, and complete array for each item. + * + * If 'obj' is an Object callback will be called passing + * the value, key, and complete object for each property. + * + * @param {Object|Array} obj The object to iterate + * @param {Function} fn The callback to invoke for each item + * + * @param {Boolean} [allOwnKeys = false] + * @returns {any} + */ +function forEach(obj, fn, {allOwnKeys = false} = {}) { + // Don't bother if no value provided + if (obj === null || typeof obj === 'undefined') { + return; + } + + let i; + let l; + + // Force an array if not already something iterable + if (typeof obj !== 'object') { + /*eslint no-param-reassign:0*/ + obj = [obj]; + } + + if (isArray(obj)) { + // Iterate over array values + for (i = 0, l = obj.length; i < l; i++) { + fn.call(null, obj[i], i, obj); + } + } else { + // Iterate over object keys + const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); + const len = keys.length; + let key; + + for (i = 0; i < len; i++) { + key = keys[i]; + fn.call(null, obj[key], key, obj); + } + } +} + +function findKey(obj, key) { + key = key.toLowerCase(); + const keys = Object.keys(obj); + let i = keys.length; + let _key; + while (i-- > 0) { + _key = keys[i]; + if (key === _key.toLowerCase()) { + return _key; + } + } + return null; +} + +const _global = (() => { + /*eslint no-undef:0*/ + if (typeof globalThis !== "undefined") return globalThis; + return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global) +})(); + +const isContextDefined = (context) => !isUndefined(context) && context !== _global; + +/** + * Accepts varargs expecting each argument to be an object, then + * immutably merges the properties of each object and returns result. + * + * When multiple objects contain the same key the later object in + * the arguments list will take precedence. + * + * Example: + * + * ```js + * var result = merge({foo: 123}, {foo: 456}); + * console.log(result.foo); // outputs 456 + * ``` + * + * @param {Object} obj1 Object to merge + * + * @returns {Object} Result of all merge properties + */ +function merge(/* obj1, obj2, obj3, ... */) { + const {caseless} = isContextDefined(this) && this || {}; + const result = {}; + const assignValue = (val, key) => { + const targetKey = caseless && findKey(result, key) || key; + if (isPlainObject(result[targetKey]) && isPlainObject(val)) { + result[targetKey] = merge(result[targetKey], val); + } else if (isPlainObject(val)) { + result[targetKey] = merge({}, val); + } else if (isArray(val)) { + result[targetKey] = val.slice(); + } else { + result[targetKey] = val; + } + }; + + for (let i = 0, l = arguments.length; i < l; i++) { + arguments[i] && forEach(arguments[i], assignValue); + } + return result; +} + +/** + * Extends object a by mutably adding to it the properties of object b. + * + * @param {Object} a The object to be extended + * @param {Object} b The object to copy properties from + * @param {Object} thisArg The object to bind function to + * + * @param {Boolean} [allOwnKeys] + * @returns {Object} The resulting value of object a + */ +const extend = (a, b, thisArg, {allOwnKeys}= {}) => { + forEach(b, (val, key) => { + if (thisArg && isFunction(val)) { + a[key] = bind(val, thisArg); + } else { + a[key] = val; + } + }, {allOwnKeys}); + return a; +}; + +/** + * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) + * + * @param {string} content with BOM + * + * @returns {string} content value without BOM + */ +const stripBOM = (content) => { + if (content.charCodeAt(0) === 0xFEFF) { + content = content.slice(1); + } + return content; +}; + +/** + * Inherit the prototype methods from one constructor into another + * @param {function} constructor + * @param {function} superConstructor + * @param {object} [props] + * @param {object} [descriptors] + * + * @returns {void} + */ +const inherits = (constructor, superConstructor, props, descriptors) => { + constructor.prototype = Object.create(superConstructor.prototype, descriptors); + constructor.prototype.constructor = constructor; + Object.defineProperty(constructor, 'super', { + value: superConstructor.prototype + }); + props && Object.assign(constructor.prototype, props); +}; + +/** + * Resolve object with deep prototype chain to a flat object + * @param {Object} sourceObj source object + * @param {Object} [destObj] + * @param {Function|Boolean} [filter] + * @param {Function} [propFilter] + * + * @returns {Object} + */ +const toFlatObject = (sourceObj, destObj, filter, propFilter) => { + let props; + let i; + let prop; + const merged = {}; + + destObj = destObj || {}; + // eslint-disable-next-line no-eq-null,eqeqeq + if (sourceObj == null) return destObj; + + do { + props = Object.getOwnPropertyNames(sourceObj); + i = props.length; + while (i-- > 0) { + prop = props[i]; + if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { + destObj[prop] = sourceObj[prop]; + merged[prop] = true; + } + } + sourceObj = filter !== false && getPrototypeOf(sourceObj); + } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); + + return destObj; +}; + +/** + * Determines whether a string ends with the characters of a specified string + * + * @param {String} str + * @param {String} searchString + * @param {Number} [position= 0] + * + * @returns {boolean} + */ +const endsWith = (str, searchString, position) => { + str = String(str); + if (position === undefined || position > str.length) { + position = str.length; + } + position -= searchString.length; + const lastIndex = str.indexOf(searchString, position); + return lastIndex !== -1 && lastIndex === position; +}; + + +/** + * Returns new array from array like object or null if failed + * + * @param {*} [thing] + * + * @returns {?Array} + */ +const toArray = (thing) => { + if (!thing) return null; + if (isArray(thing)) return thing; + let i = thing.length; + if (!isNumber(i)) return null; + const arr = new Array(i); + while (i-- > 0) { + arr[i] = thing[i]; + } + return arr; +}; + +/** + * Checking if the Uint8Array exists and if it does, it returns a function that checks if the + * thing passed in is an instance of Uint8Array + * + * @param {TypedArray} + * + * @returns {Array} + */ +// eslint-disable-next-line func-names +const isTypedArray = (TypedArray => { + // eslint-disable-next-line func-names + return thing => { + return TypedArray && thing instanceof TypedArray; + }; +})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array)); + +/** + * For each entry in the object, call the function with the key and value. + * + * @param {Object} obj - The object to iterate over. + * @param {Function} fn - The function to call for each entry. + * + * @returns {void} + */ +const forEachEntry = (obj, fn) => { + const generator = obj && obj[Symbol.iterator]; + + const iterator = generator.call(obj); + + let result; + + while ((result = iterator.next()) && !result.done) { + const pair = result.value; + fn.call(obj, pair[0], pair[1]); + } +}; + +/** + * It takes a regular expression and a string, and returns an array of all the matches + * + * @param {string} regExp - The regular expression to match against. + * @param {string} str - The string to search. + * + * @returns {Array} + */ +const matchAll = (regExp, str) => { + let matches; + const arr = []; + + while ((matches = regExp.exec(str)) !== null) { + arr.push(matches); + } + + return arr; +}; + +/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */ +const isHTMLForm = kindOfTest('HTMLFormElement'); + +const toCamelCase = str => { + return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, + function replacer(m, p1, p2) { + return p1.toUpperCase() + p2; + } + ); +}; + +/* Creating a function that will check if an object has a property. */ +const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype); + +/** + * Determine if a value is a RegExp object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a RegExp object, otherwise false + */ +const isRegExp = kindOfTest('RegExp'); + +const reduceDescriptors = (obj, reducer) => { + const descriptors = Object.getOwnPropertyDescriptors(obj); + const reducedDescriptors = {}; + + forEach(descriptors, (descriptor, name) => { + let ret; + if ((ret = reducer(descriptor, name, obj)) !== false) { + reducedDescriptors[name] = ret || descriptor; + } + }); + + Object.defineProperties(obj, reducedDescriptors); +}; + +/** + * Makes all methods read-only + * @param {Object} obj + */ + +const freezeMethods = (obj) => { + reduceDescriptors(obj, (descriptor, name) => { + // skip restricted props in strict mode + if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) { + return false; + } + + const value = obj[name]; + + if (!isFunction(value)) return; + + descriptor.enumerable = false; + + if ('writable' in descriptor) { + descriptor.writable = false; + return; + } + + if (!descriptor.set) { + descriptor.set = () => { + throw Error('Can not rewrite read-only method \'' + name + '\''); + }; + } + }); +}; + +const toObjectSet = (arrayOrString, delimiter) => { + const obj = {}; + + const define = (arr) => { + arr.forEach(value => { + obj[value] = true; + }); + }; + + isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); + + return obj; +}; + +const noop = () => {}; + +const toFiniteNumber = (value, defaultValue) => { + value = +value; + return Number.isFinite(value) ? value : defaultValue; +}; + +const ALPHA = 'abcdefghijklmnopqrstuvwxyz'; + +const DIGIT = '0123456789'; + +const ALPHABET = { + DIGIT, + ALPHA, + ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT +}; + +const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => { + let str = ''; + const {length} = alphabet; + while (size--) { + str += alphabet[Math.random() * length|0]; + } + + return str; +}; + +/** + * If the thing is a FormData object, return true, otherwise return false. + * + * @param {unknown} thing - The thing to check. + * + * @returns {boolean} + */ +function isSpecCompliantForm(thing) { + return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]); +} + +const toJSONObject = (obj) => { + const stack = new Array(10); + + const visit = (source, i) => { + + if (isObject(source)) { + if (stack.indexOf(source) >= 0) { + return; + } + + if(!('toJSON' in source)) { + stack[i] = source; + const target = isArray(source) ? [] : {}; + + forEach(source, (value, key) => { + const reducedValue = visit(value, i + 1); + !isUndefined(reducedValue) && (target[key] = reducedValue); + }); + + stack[i] = undefined; + + return target; + } + } + + return source; + }; + + return visit(obj, 0); +}; + +const isAsyncFn = kindOfTest('AsyncFunction'); + +const isThenable = (thing) => + thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch); + +var utils$1 = { + isArray, + isArrayBuffer, + isBuffer, + isFormData, + isArrayBufferView, + isString, + isNumber, + isBoolean, + isObject, + isPlainObject, + isUndefined, + isDate, + isFile, + isBlob, + isRegExp, + isFunction, + isStream, + isURLSearchParams, + isTypedArray, + isFileList, + forEach, + merge, + extend, + trim, + stripBOM, + inherits, + toFlatObject, + kindOf, + kindOfTest, + endsWith, + toArray, + forEachEntry, + matchAll, + isHTMLForm, + hasOwnProperty, + hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection + reduceDescriptors, + freezeMethods, + toObjectSet, + toCamelCase, + noop, + toFiniteNumber, + findKey, + global: _global, + isContextDefined, + ALPHABET, + generateString, + isSpecCompliantForm, + toJSONObject, + isAsyncFn, + isThenable +}; + +/** + * Create an Error with the specified message, config, error code, request and response. + * + * @param {string} message The error message. + * @param {string} [code] The error code (for example, 'ECONNABORTED'). + * @param {Object} [config] The config. + * @param {Object} [request] The request. + * @param {Object} [response] The response. + * + * @returns {Error} The created error. + */ +function AxiosError(message, code, config, request, response) { + Error.call(this); + + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } else { + this.stack = (new Error()).stack; + } + + this.message = message; + this.name = 'AxiosError'; + code && (this.code = code); + config && (this.config = config); + request && (this.request = request); + response && (this.response = response); +} + +utils$1.inherits(AxiosError, Error, { + toJSON: function toJSON() { + return { + // Standard + message: this.message, + name: this.name, + // Microsoft + description: this.description, + number: this.number, + // Mozilla + fileName: this.fileName, + lineNumber: this.lineNumber, + columnNumber: this.columnNumber, + stack: this.stack, + // Axios + config: utils$1.toJSONObject(this.config), + code: this.code, + status: this.response && this.response.status ? this.response.status : null + }; + } +}); + +const prototype$1 = AxiosError.prototype; +const descriptors = {}; + +[ + 'ERR_BAD_OPTION_VALUE', + 'ERR_BAD_OPTION', + 'ECONNABORTED', + 'ETIMEDOUT', + 'ERR_NETWORK', + 'ERR_FR_TOO_MANY_REDIRECTS', + 'ERR_DEPRECATED', + 'ERR_BAD_RESPONSE', + 'ERR_BAD_REQUEST', + 'ERR_CANCELED', + 'ERR_NOT_SUPPORT', + 'ERR_INVALID_URL' +// eslint-disable-next-line func-names +].forEach(code => { + descriptors[code] = {value: code}; +}); + +Object.defineProperties(AxiosError, descriptors); +Object.defineProperty(prototype$1, 'isAxiosError', {value: true}); + +// eslint-disable-next-line func-names +AxiosError.from = (error, code, config, request, response, customProps) => { + const axiosError = Object.create(prototype$1); + + utils$1.toFlatObject(error, axiosError, function filter(obj) { + return obj !== Error.prototype; + }, prop => { + return prop !== 'isAxiosError'; + }); + + AxiosError.call(axiosError, error.message, code, config, request, response); + + axiosError.cause = error; + + axiosError.name = error.name; + + customProps && Object.assign(axiosError, customProps); + + return axiosError; +}; + +// eslint-disable-next-line strict +var httpAdapter = null; + +/** + * Determines if the given thing is a array or js object. + * + * @param {string} thing - The object or array to be visited. + * + * @returns {boolean} + */ +function isVisitable(thing) { + return utils$1.isPlainObject(thing) || utils$1.isArray(thing); +} + +/** + * It removes the brackets from the end of a string + * + * @param {string} key - The key of the parameter. + * + * @returns {string} the key without the brackets. + */ +function removeBrackets(key) { + return utils$1.endsWith(key, '[]') ? key.slice(0, -2) : key; +} + +/** + * It takes a path, a key, and a boolean, and returns a string + * + * @param {string} path - The path to the current key. + * @param {string} key - The key of the current object being iterated over. + * @param {string} dots - If true, the key will be rendered with dots instead of brackets. + * + * @returns {string} The path to the current key. + */ +function renderKey(path, key, dots) { + if (!path) return key; + return path.concat(key).map(function each(token, i) { + // eslint-disable-next-line no-param-reassign + token = removeBrackets(token); + return !dots && i ? '[' + token + ']' : token; + }).join(dots ? '.' : ''); +} + +/** + * If the array is an array and none of its elements are visitable, then it's a flat array. + * + * @param {Array} arr - The array to check + * + * @returns {boolean} + */ +function isFlatArray(arr) { + return utils$1.isArray(arr) && !arr.some(isVisitable); +} + +const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) { + return /^is[A-Z]/.test(prop); +}); + +/** + * Convert a data object to FormData + * + * @param {Object} obj + * @param {?Object} [formData] + * @param {?Object} [options] + * @param {Function} [options.visitor] + * @param {Boolean} [options.metaTokens = true] + * @param {Boolean} [options.dots = false] + * @param {?Boolean} [options.indexes = false] + * + * @returns {Object} + **/ + +/** + * It converts an object into a FormData object + * + * @param {Object} obj - The object to convert to form data. + * @param {string} formData - The FormData object to append to. + * @param {Object} options + * + * @returns + */ +function toFormData(obj, formData, options) { + if (!utils$1.isObject(obj)) { + throw new TypeError('target must be an object'); + } + + // eslint-disable-next-line no-param-reassign + formData = formData || new (FormData)(); + + // eslint-disable-next-line no-param-reassign + options = utils$1.toFlatObject(options, { + metaTokens: true, + dots: false, + indexes: false + }, false, function defined(option, source) { + // eslint-disable-next-line no-eq-null,eqeqeq + return !utils$1.isUndefined(source[option]); + }); + + const metaTokens = options.metaTokens; + // eslint-disable-next-line no-use-before-define + const visitor = options.visitor || defaultVisitor; + const dots = options.dots; + const indexes = options.indexes; + const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob; + const useBlob = _Blob && utils$1.isSpecCompliantForm(formData); + + if (!utils$1.isFunction(visitor)) { + throw new TypeError('visitor must be a function'); + } + + function convertValue(value) { + if (value === null) return ''; + + if (utils$1.isDate(value)) { + return value.toISOString(); + } + + if (!useBlob && utils$1.isBlob(value)) { + throw new AxiosError('Blob is not supported. Use a Buffer instead.'); + } + + if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) { + return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value); + } + + return value; + } + + /** + * Default visitor. + * + * @param {*} value + * @param {String|Number} key + * @param {Array} path + * @this {FormData} + * + * @returns {boolean} return true to visit the each prop of the value recursively + */ + function defaultVisitor(value, key, path) { + let arr = value; + + if (value && !path && typeof value === 'object') { + if (utils$1.endsWith(key, '{}')) { + // eslint-disable-next-line no-param-reassign + key = metaTokens ? key : key.slice(0, -2); + // eslint-disable-next-line no-param-reassign + value = JSON.stringify(value); + } else if ( + (utils$1.isArray(value) && isFlatArray(value)) || + ((utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value)) + )) { + // eslint-disable-next-line no-param-reassign + key = removeBrackets(key); + + arr.forEach(function each(el, index) { + !(utils$1.isUndefined(el) || el === null) && formData.append( + // eslint-disable-next-line no-nested-ternary + indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'), + convertValue(el) + ); + }); + return false; + } + } + + if (isVisitable(value)) { + return true; + } + + formData.append(renderKey(path, key, dots), convertValue(value)); + + return false; + } + + const stack = []; + + const exposedHelpers = Object.assign(predicates, { + defaultVisitor, + convertValue, + isVisitable + }); + + function build(value, path) { + if (utils$1.isUndefined(value)) return; + + if (stack.indexOf(value) !== -1) { + throw Error('Circular reference detected in ' + path.join('.')); + } + + stack.push(value); + + utils$1.forEach(value, function each(el, key) { + const result = !(utils$1.isUndefined(el) || el === null) && visitor.call( + formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers + ); + + if (result === true) { + build(el, path ? path.concat(key) : [key]); + } + }); + + stack.pop(); + } + + if (!utils$1.isObject(obj)) { + throw new TypeError('data must be an object'); + } + + build(obj); + + return formData; +} + +/** + * It encodes a string by replacing all characters that are not in the unreserved set with + * their percent-encoded equivalents + * + * @param {string} str - The string to encode. + * + * @returns {string} The encoded string. + */ +function encode$1(str) { + const charMap = { + '!': '%21', + "'": '%27', + '(': '%28', + ')': '%29', + '~': '%7E', + '%20': '+', + '%00': '\x00' + }; + return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) { + return charMap[match]; + }); +} + +/** + * It takes a params object and converts it to a FormData object + * + * @param {Object} params - The parameters to be converted to a FormData object. + * @param {Object} options - The options object passed to the Axios constructor. + * + * @returns {void} + */ +function AxiosURLSearchParams(params, options) { + this._pairs = []; + + params && toFormData(params, this, options); +} + +const prototype = AxiosURLSearchParams.prototype; + +prototype.append = function append(name, value) { + this._pairs.push([name, value]); +}; + +prototype.toString = function toString(encoder) { + const _encode = encoder ? function(value) { + return encoder.call(this, value, encode$1); + } : encode$1; + + return this._pairs.map(function each(pair) { + return _encode(pair[0]) + '=' + _encode(pair[1]); + }, '').join('&'); +}; + +/** + * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their + * URI encoded counterparts + * + * @param {string} val The value to be encoded. + * + * @returns {string} The encoded value. + */ +function encode(val) { + return encodeURIComponent(val). + replace(/%3A/gi, ':'). + replace(/%24/g, '$'). + replace(/%2C/gi, ','). + replace(/%20/g, '+'). + replace(/%5B/gi, '['). + replace(/%5D/gi, ']'); +} + +/** + * Build a URL by appending params to the end + * + * @param {string} url The base of the url (e.g., http://www.google.com) + * @param {object} [params] The params to be appended + * @param {?object} options + * + * @returns {string} The formatted url + */ +function buildURL(url, params, options) { + /*eslint no-param-reassign:0*/ + if (!params) { + return url; + } + + const _encode = options && options.encode || encode; + + const serializeFn = options && options.serialize; + + let serializedParams; + + if (serializeFn) { + serializedParams = serializeFn(params, options); + } else { + serializedParams = utils$1.isURLSearchParams(params) ? + params.toString() : + new AxiosURLSearchParams(params, options).toString(_encode); + } + + if (serializedParams) { + const hashmarkIndex = url.indexOf("#"); + + if (hashmarkIndex !== -1) { + url = url.slice(0, hashmarkIndex); + } + url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; + } + + return url; +} + +class InterceptorManager { + constructor() { + this.handlers = []; + } + + /** + * Add a new interceptor to the stack + * + * @param {Function} fulfilled The function to handle `then` for a `Promise` + * @param {Function} rejected The function to handle `reject` for a `Promise` + * + * @return {Number} An ID used to remove interceptor later + */ + use(fulfilled, rejected, options) { + this.handlers.push({ + fulfilled, + rejected, + synchronous: options ? options.synchronous : false, + runWhen: options ? options.runWhen : null + }); + return this.handlers.length - 1; + } + + /** + * Remove an interceptor from the stack + * + * @param {Number} id The ID that was returned by `use` + * + * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise + */ + eject(id) { + if (this.handlers[id]) { + this.handlers[id] = null; + } + } + + /** + * Clear all interceptors from the stack + * + * @returns {void} + */ + clear() { + if (this.handlers) { + this.handlers = []; + } + } + + /** + * Iterate over all the registered interceptors + * + * This method is particularly useful for skipping over any + * interceptors that may have become `null` calling `eject`. + * + * @param {Function} fn The function to call for each interceptor + * + * @returns {void} + */ + forEach(fn) { + utils$1.forEach(this.handlers, function forEachHandler(h) { + if (h !== null) { + fn(h); + } + }); + } +} + +var InterceptorManager$1 = InterceptorManager; + +var transitionalDefaults = { + silentJSONParsing: true, + forcedJSONParsing: true, + clarifyTimeoutError: false +}; + +var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams; + +var FormData$1 = typeof FormData !== 'undefined' ? FormData : null; + +var Blob$1 = typeof Blob !== 'undefined' ? Blob : null; + +var platform$1 = { + isBrowser: true, + classes: { + URLSearchParams: URLSearchParams$1, + FormData: FormData$1, + Blob: Blob$1 + }, + protocols: ['http', 'https', 'file', 'blob', 'url', 'data'] +}; + +const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined'; + +/** + * Determine if we're running in a standard browser environment + * + * This allows axios to run in a web worker, and react-native. + * Both environments support XMLHttpRequest, but not fully standard globals. + * + * web workers: + * typeof window -> undefined + * typeof document -> undefined + * + * react-native: + * navigator.product -> 'ReactNative' + * nativescript + * navigator.product -> 'NativeScript' or 'NS' + * + * @returns {boolean} + */ +const hasStandardBrowserEnv = ( + (product) => { + return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0 + })(typeof navigator !== 'undefined' && navigator.product); + +/** + * Determine if we're running in a standard browser webWorker environment + * + * Although the `isStandardBrowserEnv` method indicates that + * `allows axios to run in a web worker`, the WebWorker will still be + * filtered out due to its judgment standard + * `typeof window !== 'undefined' && typeof document !== 'undefined'`. + * This leads to a problem when axios post `FormData` in webWorker + */ +const hasStandardBrowserWebWorkerEnv = (() => { + return ( + typeof WorkerGlobalScope !== 'undefined' && + // eslint-disable-next-line no-undef + self instanceof WorkerGlobalScope && + typeof self.importScripts === 'function' + ); +})(); + +var utils = /*#__PURE__*/Object.freeze({ + __proto__: null, + hasBrowserEnv: hasBrowserEnv, + hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv, + hasStandardBrowserEnv: hasStandardBrowserEnv +}); + +var platform = { + ...utils, + ...platform$1 +}; + +function toURLEncodedForm(data, options) { + return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({ + visitor: function(value, key, path, helpers) { + if (platform.isNode && utils$1.isBuffer(value)) { + this.append(key, value.toString('base64')); + return false; + } + + return helpers.defaultVisitor.apply(this, arguments); + } + }, options)); +} + +/** + * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z'] + * + * @param {string} name - The name of the property to get. + * + * @returns An array of strings. + */ +function parsePropPath(name) { + // foo[x][y][z] + // foo.x.y.z + // foo-x-y-z + // foo x y z + return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map(match => { + return match[0] === '[]' ? '' : match[1] || match[0]; + }); +} + +/** + * Convert an array to an object. + * + * @param {Array} arr - The array to convert to an object. + * + * @returns An object with the same keys and values as the array. + */ +function arrayToObject(arr) { + const obj = {}; + const keys = Object.keys(arr); + let i; + const len = keys.length; + let key; + for (i = 0; i < len; i++) { + key = keys[i]; + obj[key] = arr[key]; + } + return obj; +} + +/** + * It takes a FormData object and returns a JavaScript object + * + * @param {string} formData The FormData object to convert to JSON. + * + * @returns {Object | null} The converted object. + */ +function formDataToJSON(formData) { + function buildPath(path, value, target, index) { + let name = path[index++]; + + if (name === '__proto__') return true; + + const isNumericKey = Number.isFinite(+name); + const isLast = index >= path.length; + name = !name && utils$1.isArray(target) ? target.length : name; + + if (isLast) { + if (utils$1.hasOwnProp(target, name)) { + target[name] = [target[name], value]; + } else { + target[name] = value; + } + + return !isNumericKey; + } + + if (!target[name] || !utils$1.isObject(target[name])) { + target[name] = []; + } + + const result = buildPath(path, value, target[name], index); + + if (result && utils$1.isArray(target[name])) { + target[name] = arrayToObject(target[name]); + } + + return !isNumericKey; + } + + if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) { + const obj = {}; + + utils$1.forEachEntry(formData, (name, value) => { + buildPath(parsePropPath(name), value, obj, 0); + }); + + return obj; + } + + return null; +} + +/** + * It takes a string, tries to parse it, and if it fails, it returns the stringified version + * of the input + * + * @param {any} rawValue - The value to be stringified. + * @param {Function} parser - A function that parses a string into a JavaScript object. + * @param {Function} encoder - A function that takes a value and returns a string. + * + * @returns {string} A stringified version of the rawValue. + */ +function stringifySafely(rawValue, parser, encoder) { + if (utils$1.isString(rawValue)) { + try { + (parser || JSON.parse)(rawValue); + return utils$1.trim(rawValue); + } catch (e) { + if (e.name !== 'SyntaxError') { + throw e; + } + } + } + + return (encoder || JSON.stringify)(rawValue); +} + +const defaults = { + + transitional: transitionalDefaults, + + adapter: ['xhr', 'http'], + + transformRequest: [function transformRequest(data, headers) { + const contentType = headers.getContentType() || ''; + const hasJSONContentType = contentType.indexOf('application/json') > -1; + const isObjectPayload = utils$1.isObject(data); + + if (isObjectPayload && utils$1.isHTMLForm(data)) { + data = new FormData(data); + } + + const isFormData = utils$1.isFormData(data); + + if (isFormData) { + return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data; + } + + if (utils$1.isArrayBuffer(data) || + utils$1.isBuffer(data) || + utils$1.isStream(data) || + utils$1.isFile(data) || + utils$1.isBlob(data) + ) { + return data; + } + if (utils$1.isArrayBufferView(data)) { + return data.buffer; + } + if (utils$1.isURLSearchParams(data)) { + headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false); + return data.toString(); + } + + let isFileList; + + if (isObjectPayload) { + if (contentType.indexOf('application/x-www-form-urlencoded') > -1) { + return toURLEncodedForm(data, this.formSerializer).toString(); + } + + if ((isFileList = utils$1.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) { + const _FormData = this.env && this.env.FormData; + + return toFormData( + isFileList ? {'files[]': data} : data, + _FormData && new _FormData(), + this.formSerializer + ); + } + } + + if (isObjectPayload || hasJSONContentType ) { + headers.setContentType('application/json', false); + return stringifySafely(data); + } + + return data; + }], + + transformResponse: [function transformResponse(data) { + const transitional = this.transitional || defaults.transitional; + const forcedJSONParsing = transitional && transitional.forcedJSONParsing; + const JSONRequested = this.responseType === 'json'; + + if (data && utils$1.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) { + const silentJSONParsing = transitional && transitional.silentJSONParsing; + const strictJSONParsing = !silentJSONParsing && JSONRequested; + + try { + return JSON.parse(data); + } catch (e) { + if (strictJSONParsing) { + if (e.name === 'SyntaxError') { + throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response); + } + throw e; + } + } + } + + return data; + }], + + /** + * A timeout in milliseconds to abort a request. If set to 0 (default) a + * timeout is not created. + */ + timeout: 0, + + xsrfCookieName: 'XSRF-TOKEN', + xsrfHeaderName: 'X-XSRF-TOKEN', + + maxContentLength: -1, + maxBodyLength: -1, + + env: { + FormData: platform.classes.FormData, + Blob: platform.classes.Blob + }, + + validateStatus: function validateStatus(status) { + return status >= 200 && status < 300; + }, + + headers: { + common: { + 'Accept': 'application/json, text/plain, */*', + 'Content-Type': undefined + } + } +}; + +utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => { + defaults.headers[method] = {}; +}); + +var defaults$1 = defaults; + +// RawAxiosHeaders whose duplicates are ignored by node +// c.f. https://nodejs.org/api/http.html#http_message_headers +const ignoreDuplicateOf = utils$1.toObjectSet([ + 'age', 'authorization', 'content-length', 'content-type', 'etag', + 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', + 'last-modified', 'location', 'max-forwards', 'proxy-authorization', + 'referer', 'retry-after', 'user-agent' +]); + +/** + * Parse headers into an object + * + * ``` + * Date: Wed, 27 Aug 2014 08:58:49 GMT + * Content-Type: application/json + * Connection: keep-alive + * Transfer-Encoding: chunked + * ``` + * + * @param {String} rawHeaders Headers needing to be parsed + * + * @returns {Object} Headers parsed into an object + */ +var parseHeaders = rawHeaders => { + const parsed = {}; + let key; + let val; + let i; + + rawHeaders && rawHeaders.split('\n').forEach(function parser(line) { + i = line.indexOf(':'); + key = line.substring(0, i).trim().toLowerCase(); + val = line.substring(i + 1).trim(); + + if (!key || (parsed[key] && ignoreDuplicateOf[key])) { + return; + } + + if (key === 'set-cookie') { + if (parsed[key]) { + parsed[key].push(val); + } else { + parsed[key] = [val]; + } + } else { + parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; + } + }); + + return parsed; +}; + +const $internals = Symbol('internals'); + +function normalizeHeader(header) { + return header && String(header).trim().toLowerCase(); +} + +function normalizeValue(value) { + if (value === false || value == null) { + return value; + } + + return utils$1.isArray(value) ? value.map(normalizeValue) : String(value); +} + +function parseTokens(str) { + const tokens = Object.create(null); + const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; + let match; + + while ((match = tokensRE.exec(str))) { + tokens[match[1]] = match[2]; + } + + return tokens; +} + +const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()); + +function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) { + if (utils$1.isFunction(filter)) { + return filter.call(this, value, header); + } + + if (isHeaderNameFilter) { + value = header; + } + + if (!utils$1.isString(value)) return; + + if (utils$1.isString(filter)) { + return value.indexOf(filter) !== -1; + } + + if (utils$1.isRegExp(filter)) { + return filter.test(value); + } +} + +function formatHeader(header) { + return header.trim() + .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => { + return char.toUpperCase() + str; + }); +} + +function buildAccessors(obj, header) { + const accessorName = utils$1.toCamelCase(' ' + header); + + ['get', 'set', 'has'].forEach(methodName => { + Object.defineProperty(obj, methodName + accessorName, { + value: function(arg1, arg2, arg3) { + return this[methodName].call(this, header, arg1, arg2, arg3); + }, + configurable: true + }); + }); +} + +class AxiosHeaders { + constructor(headers) { + headers && this.set(headers); + } + + set(header, valueOrRewrite, rewrite) { + const self = this; + + function setHeader(_value, _header, _rewrite) { + const lHeader = normalizeHeader(_header); + + if (!lHeader) { + throw new Error('header name must be a non-empty string'); + } + + const key = utils$1.findKey(self, lHeader); + + if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) { + self[key || _header] = normalizeValue(_value); + } + } + + const setHeaders = (headers, _rewrite) => + utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite)); + + if (utils$1.isPlainObject(header) || header instanceof this.constructor) { + setHeaders(header, valueOrRewrite); + } else if(utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { + setHeaders(parseHeaders(header), valueOrRewrite); + } else { + header != null && setHeader(valueOrRewrite, header, rewrite); + } + + return this; + } + + get(header, parser) { + header = normalizeHeader(header); + + if (header) { + const key = utils$1.findKey(this, header); + + if (key) { + const value = this[key]; + + if (!parser) { + return value; + } + + if (parser === true) { + return parseTokens(value); + } + + if (utils$1.isFunction(parser)) { + return parser.call(this, value, key); + } + + if (utils$1.isRegExp(parser)) { + return parser.exec(value); + } + + throw new TypeError('parser must be boolean|regexp|function'); + } + } + } + + has(header, matcher) { + header = normalizeHeader(header); + + if (header) { + const key = utils$1.findKey(this, header); + + return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher))); + } + + return false; + } + + delete(header, matcher) { + const self = this; + let deleted = false; + + function deleteHeader(_header) { + _header = normalizeHeader(_header); + + if (_header) { + const key = utils$1.findKey(self, _header); + + if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) { + delete self[key]; + + deleted = true; + } + } + } + + if (utils$1.isArray(header)) { + header.forEach(deleteHeader); + } else { + deleteHeader(header); + } + + return deleted; + } + + clear(matcher) { + const keys = Object.keys(this); + let i = keys.length; + let deleted = false; + + while (i--) { + const key = keys[i]; + if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) { + delete this[key]; + deleted = true; + } + } + + return deleted; + } + + normalize(format) { + const self = this; + const headers = {}; + + utils$1.forEach(this, (value, header) => { + const key = utils$1.findKey(headers, header); + + if (key) { + self[key] = normalizeValue(value); + delete self[header]; + return; + } + + const normalized = format ? formatHeader(header) : String(header).trim(); + + if (normalized !== header) { + delete self[header]; + } + + self[normalized] = normalizeValue(value); + + headers[normalized] = true; + }); + + return this; + } + + concat(...targets) { + return this.constructor.concat(this, ...targets); + } + + toJSON(asStrings) { + const obj = Object.create(null); + + utils$1.forEach(this, (value, header) => { + value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value); + }); + + return obj; + } + + [Symbol.iterator]() { + return Object.entries(this.toJSON())[Symbol.iterator](); + } + + toString() { + return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n'); + } + + get [Symbol.toStringTag]() { + return 'AxiosHeaders'; + } + + static from(thing) { + return thing instanceof this ? thing : new this(thing); + } + + static concat(first, ...targets) { + const computed = new this(first); + + targets.forEach((target) => computed.set(target)); + + return computed; + } + + static accessor(header) { + const internals = this[$internals] = (this[$internals] = { + accessors: {} + }); + + const accessors = internals.accessors; + const prototype = this.prototype; + + function defineAccessor(_header) { + const lHeader = normalizeHeader(_header); + + if (!accessors[lHeader]) { + buildAccessors(prototype, _header); + accessors[lHeader] = true; + } + } + + utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header); + + return this; + } +} + +AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']); + +// reserved names hotfix +utils$1.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => { + let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set` + return { + get: () => value, + set(headerValue) { + this[mapped] = headerValue; + } + } +}); + +utils$1.freezeMethods(AxiosHeaders); + +var AxiosHeaders$1 = AxiosHeaders; + +/** + * Transform the data for a request or a response + * + * @param {Array|Function} fns A single function or Array of functions + * @param {?Object} response The response object + * + * @returns {*} The resulting transformed data + */ +function transformData(fns, response) { + const config = this || defaults$1; + const context = response || config; + const headers = AxiosHeaders$1.from(context.headers); + let data = context.data; + + utils$1.forEach(fns, function transform(fn) { + data = fn.call(config, data, headers.normalize(), response ? response.status : undefined); + }); + + headers.normalize(); + + return data; +} + +function isCancel(value) { + return !!(value && value.__CANCEL__); +} + +/** + * A `CanceledError` is an object that is thrown when an operation is canceled. + * + * @param {string=} message The message. + * @param {Object=} config The config. + * @param {Object=} request The request. + * + * @returns {CanceledError} The created error. + */ +function CanceledError(message, config, request) { + // eslint-disable-next-line no-eq-null,eqeqeq + AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request); + this.name = 'CanceledError'; +} + +utils$1.inherits(CanceledError, AxiosError, { + __CANCEL__: true +}); + +/** + * Resolve or reject a Promise based on response status. + * + * @param {Function} resolve A function that resolves the promise. + * @param {Function} reject A function that rejects the promise. + * @param {object} response The response. + * + * @returns {object} The response. + */ +function settle(resolve, reject, response) { + const validateStatus = response.config.validateStatus; + if (!response.status || !validateStatus || validateStatus(response.status)) { + resolve(response); + } else { + reject(new AxiosError( + 'Request failed with status code ' + response.status, + [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], + response.config, + response.request, + response + )); + } +} + +var cookies = platform.hasStandardBrowserEnv ? + + // Standard browser envs support document.cookie + { + write(name, value, expires, path, domain, secure) { + const cookie = [name + '=' + encodeURIComponent(value)]; + + utils$1.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString()); + + utils$1.isString(path) && cookie.push('path=' + path); + + utils$1.isString(domain) && cookie.push('domain=' + domain); + + secure === true && cookie.push('secure'); + + document.cookie = cookie.join('; '); + }, + + read(name) { + const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); + return (match ? decodeURIComponent(match[3]) : null); + }, + + remove(name) { + this.write(name, '', Date.now() - 86400000); + } + } + + : + + // Non-standard browser env (web workers, react-native) lack needed support. + { + write() {}, + read() { + return null; + }, + remove() {} + }; + +/** + * Determines whether the specified URL is absolute + * + * @param {string} url The URL to test + * + * @returns {boolean} True if the specified URL is absolute, otherwise false + */ +function isAbsoluteURL(url) { + // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). + // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed + // by any combination of letters, digits, plus, period, or hyphen. + return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); +} + +/** + * Creates a new URL by combining the specified URLs + * + * @param {string} baseURL The base URL + * @param {string} relativeURL The relative URL + * + * @returns {string} The combined URL + */ +function combineURLs(baseURL, relativeURL) { + return relativeURL + ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') + : baseURL; +} + +/** + * Creates a new URL by combining the baseURL with the requestedURL, + * only when the requestedURL is not already an absolute URL. + * If the requestURL is absolute, this function returns the requestedURL untouched. + * + * @param {string} baseURL The base URL + * @param {string} requestedURL Absolute or relative URL to combine + * + * @returns {string} The combined full path + */ +function buildFullPath(baseURL, requestedURL) { + if (baseURL && !isAbsoluteURL(requestedURL)) { + return combineURLs(baseURL, requestedURL); + } + return requestedURL; +} + +var isURLSameOrigin = platform.hasStandardBrowserEnv ? + +// Standard browser envs have full support of the APIs needed to test +// whether the request URL is of the same origin as current location. + (function standardBrowserEnv() { + const msie = /(msie|trident)/i.test(navigator.userAgent); + const urlParsingNode = document.createElement('a'); + let originURL; + + /** + * Parse a URL to discover its components + * + * @param {String} url The URL to be parsed + * @returns {Object} + */ + function resolveURL(url) { + let href = url; + + if (msie) { + // IE needs attribute set twice to normalize properties + urlParsingNode.setAttribute('href', href); + href = urlParsingNode.href; + } + + urlParsingNode.setAttribute('href', href); + + // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils + return { + href: urlParsingNode.href, + protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', + host: urlParsingNode.host, + search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', + hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', + hostname: urlParsingNode.hostname, + port: urlParsingNode.port, + pathname: (urlParsingNode.pathname.charAt(0) === '/') ? + urlParsingNode.pathname : + '/' + urlParsingNode.pathname + }; + } + + originURL = resolveURL(window.location.href); + + /** + * Determine if a URL shares the same origin as the current location + * + * @param {String} requestURL The URL to test + * @returns {boolean} True if URL shares the same origin, otherwise false + */ + return function isURLSameOrigin(requestURL) { + const parsed = (utils$1.isString(requestURL)) ? resolveURL(requestURL) : requestURL; + return (parsed.protocol === originURL.protocol && + parsed.host === originURL.host); + }; + })() : + + // Non standard browser envs (web workers, react-native) lack needed support. + (function nonStandardBrowserEnv() { + return function isURLSameOrigin() { + return true; + }; + })(); + +function parseProtocol(url) { + const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); + return match && match[1] || ''; +} + +/** + * Calculate data maxRate + * @param {Number} [samplesCount= 10] + * @param {Number} [min= 1000] + * @returns {Function} + */ +function speedometer(samplesCount, min) { + samplesCount = samplesCount || 10; + const bytes = new Array(samplesCount); + const timestamps = new Array(samplesCount); + let head = 0; + let tail = 0; + let firstSampleTS; + + min = min !== undefined ? min : 1000; + + return function push(chunkLength) { + const now = Date.now(); + + const startedAt = timestamps[tail]; + + if (!firstSampleTS) { + firstSampleTS = now; + } + + bytes[head] = chunkLength; + timestamps[head] = now; + + let i = tail; + let bytesCount = 0; + + while (i !== head) { + bytesCount += bytes[i++]; + i = i % samplesCount; + } + + head = (head + 1) % samplesCount; + + if (head === tail) { + tail = (tail + 1) % samplesCount; + } + + if (now - firstSampleTS < min) { + return; + } + + const passed = startedAt && now - startedAt; + + return passed ? Math.round(bytesCount * 1000 / passed) : undefined; + }; +} + +function progressEventReducer(listener, isDownloadStream) { + let bytesNotified = 0; + const _speedometer = speedometer(50, 250); + + return e => { + const loaded = e.loaded; + const total = e.lengthComputable ? e.total : undefined; + const progressBytes = loaded - bytesNotified; + const rate = _speedometer(progressBytes); + const inRange = loaded <= total; + + bytesNotified = loaded; + + const data = { + loaded, + total, + progress: total ? (loaded / total) : undefined, + bytes: progressBytes, + rate: rate ? rate : undefined, + estimated: rate && total && inRange ? (total - loaded) / rate : undefined, + event: e + }; + + data[isDownloadStream ? 'download' : 'upload'] = true; + + listener(data); + }; +} + +const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined'; + +var xhrAdapter = isXHRAdapterSupported && function (config) { + return new Promise(function dispatchXhrRequest(resolve, reject) { + let requestData = config.data; + const requestHeaders = AxiosHeaders$1.from(config.headers).normalize(); + let {responseType, withXSRFToken} = config; + let onCanceled; + function done() { + if (config.cancelToken) { + config.cancelToken.unsubscribe(onCanceled); + } + + if (config.signal) { + config.signal.removeEventListener('abort', onCanceled); + } + } + + let contentType; + + if (utils$1.isFormData(requestData)) { + if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) { + requestHeaders.setContentType(false); // Let the browser set it + } else if ((contentType = requestHeaders.getContentType()) !== false) { + // fix semicolon duplication issue for ReactNative FormData implementation + const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : []; + requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; ')); + } + } + + let request = new XMLHttpRequest(); + + // HTTP basic authentication + if (config.auth) { + const username = config.auth.username || ''; + const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; + requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password)); + } + + const fullPath = buildFullPath(config.baseURL, config.url); + + request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); + + // Set the request timeout in MS + request.timeout = config.timeout; + + function onloadend() { + if (!request) { + return; + } + // Prepare the response + const responseHeaders = AxiosHeaders$1.from( + 'getAllResponseHeaders' in request && request.getAllResponseHeaders() + ); + const responseData = !responseType || responseType === 'text' || responseType === 'json' ? + request.responseText : request.response; + const response = { + data: responseData, + status: request.status, + statusText: request.statusText, + headers: responseHeaders, + config, + request + }; + + settle(function _resolve(value) { + resolve(value); + done(); + }, function _reject(err) { + reject(err); + done(); + }, response); + + // Clean up request + request = null; + } + + if ('onloadend' in request) { + // Use onloadend if available + request.onloadend = onloadend; + } else { + // Listen for ready state to emulate onloadend + request.onreadystatechange = function handleLoad() { + if (!request || request.readyState !== 4) { + return; + } + + // The request errored out and we didn't get a response, this will be + // handled by onerror instead + // With one exception: request that using file: protocol, most browsers + // will return status as 0 even though it's a successful request + if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { + return; + } + // readystate handler is calling before onerror or ontimeout handlers, + // so we should call onloadend on the next 'tick' + setTimeout(onloadend); + }; + } + + // Handle browser request cancellation (as opposed to a manual cancellation) + request.onabort = function handleAbort() { + if (!request) { + return; + } + + reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request)); + + // Clean up request + request = null; + }; + + // Handle low level network errors + request.onerror = function handleError() { + // Real errors are hidden from us by the browser + // onerror should only fire if it's a network error + reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request)); + + // Clean up request + request = null; + }; + + // Handle timeout + request.ontimeout = function handleTimeout() { + let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; + const transitional = config.transitional || transitionalDefaults; + if (config.timeoutErrorMessage) { + timeoutErrorMessage = config.timeoutErrorMessage; + } + reject(new AxiosError( + timeoutErrorMessage, + transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, + config, + request)); + + // Clean up request + request = null; + }; + + // Add xsrf header + // This is only done if running in a standard browser environment. + // Specifically not if we're in a web worker, or react-native. + if(platform.hasStandardBrowserEnv) { + withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config)); + + if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) { + // Add xsrf header + const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName); + + if (xsrfValue) { + requestHeaders.set(config.xsrfHeaderName, xsrfValue); + } + } + } + + // Remove Content-Type if data is undefined + requestData === undefined && requestHeaders.setContentType(null); + + // Add headers to the request + if ('setRequestHeader' in request) { + utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) { + request.setRequestHeader(key, val); + }); + } + + // Add withCredentials to request if needed + if (!utils$1.isUndefined(config.withCredentials)) { + request.withCredentials = !!config.withCredentials; + } + + // Add responseType to request if needed + if (responseType && responseType !== 'json') { + request.responseType = config.responseType; + } + + // Handle progress if needed + if (typeof config.onDownloadProgress === 'function') { + request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true)); + } + + // Not all browsers support upload events + if (typeof config.onUploadProgress === 'function' && request.upload) { + request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress)); + } + + if (config.cancelToken || config.signal) { + // Handle cancellation + // eslint-disable-next-line func-names + onCanceled = cancel => { + if (!request) { + return; + } + reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel); + request.abort(); + request = null; + }; + + config.cancelToken && config.cancelToken.subscribe(onCanceled); + if (config.signal) { + config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); + } + } + + const protocol = parseProtocol(fullPath); + + if (protocol && platform.protocols.indexOf(protocol) === -1) { + reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config)); + return; + } + + + // Send the request + request.send(requestData || null); + }); +}; + +const knownAdapters = { + http: httpAdapter, + xhr: xhrAdapter +}; + +utils$1.forEach(knownAdapters, (fn, value) => { + if (fn) { + try { + Object.defineProperty(fn, 'name', {value}); + } catch (e) { + // eslint-disable-next-line no-empty + } + Object.defineProperty(fn, 'adapterName', {value}); + } +}); + +const renderReason = (reason) => `- ${reason}`; + +const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false; + +var adapters = { + getAdapter: (adapters) => { + adapters = utils$1.isArray(adapters) ? adapters : [adapters]; + + const {length} = adapters; + let nameOrAdapter; + let adapter; + + const rejectedReasons = {}; + + for (let i = 0; i < length; i++) { + nameOrAdapter = adapters[i]; + let id; + + adapter = nameOrAdapter; + + if (!isResolvedHandle(nameOrAdapter)) { + adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()]; + + if (adapter === undefined) { + throw new AxiosError(`Unknown adapter '${id}'`); + } + } + + if (adapter) { + break; + } + + rejectedReasons[id || '#' + i] = adapter; + } + + if (!adapter) { + + const reasons = Object.entries(rejectedReasons) + .map(([id, state]) => `adapter ${id} ` + + (state === false ? 'is not supported by the environment' : 'is not available in the build') + ); + + let s = length ? + (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) : + 'as no adapter specified'; + + throw new AxiosError( + `There is no suitable adapter to dispatch the request ` + s, + 'ERR_NOT_SUPPORT' + ); + } + + return adapter; + }, + adapters: knownAdapters +}; + +/** + * Throws a `CanceledError` if cancellation has been requested. + * + * @param {Object} config The config that is to be used for the request + * + * @returns {void} + */ +function throwIfCancellationRequested(config) { + if (config.cancelToken) { + config.cancelToken.throwIfRequested(); + } + + if (config.signal && config.signal.aborted) { + throw new CanceledError(null, config); + } +} + +/** + * Dispatch a request to the server using the configured adapter. + * + * @param {object} config The config that is to be used for the request + * + * @returns {Promise} The Promise to be fulfilled + */ +function dispatchRequest(config) { + throwIfCancellationRequested(config); + + config.headers = AxiosHeaders$1.from(config.headers); + + // Transform request data + config.data = transformData.call( + config, + config.transformRequest + ); + + if (['post', 'put', 'patch'].indexOf(config.method) !== -1) { + config.headers.setContentType('application/x-www-form-urlencoded', false); + } + + const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter); + + return adapter(config).then(function onAdapterResolution(response) { + throwIfCancellationRequested(config); + + // Transform response data + response.data = transformData.call( + config, + config.transformResponse, + response + ); + + response.headers = AxiosHeaders$1.from(response.headers); + + return response; + }, function onAdapterRejection(reason) { + if (!isCancel(reason)) { + throwIfCancellationRequested(config); + + // Transform response data + if (reason && reason.response) { + reason.response.data = transformData.call( + config, + config.transformResponse, + reason.response + ); + reason.response.headers = AxiosHeaders$1.from(reason.response.headers); + } + } + + return Promise.reject(reason); + }); +} + +const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? thing.toJSON() : thing; + +/** + * Config-specific merge-function which creates a new config-object + * by merging two configuration objects together. + * + * @param {Object} config1 + * @param {Object} config2 + * + * @returns {Object} New object resulting from merging config2 to config1 + */ +function mergeConfig(config1, config2) { + // eslint-disable-next-line no-param-reassign + config2 = config2 || {}; + const config = {}; + + function getMergedValue(target, source, caseless) { + if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) { + return utils$1.merge.call({caseless}, target, source); + } else if (utils$1.isPlainObject(source)) { + return utils$1.merge({}, source); + } else if (utils$1.isArray(source)) { + return source.slice(); + } + return source; + } + + // eslint-disable-next-line consistent-return + function mergeDeepProperties(a, b, caseless) { + if (!utils$1.isUndefined(b)) { + return getMergedValue(a, b, caseless); + } else if (!utils$1.isUndefined(a)) { + return getMergedValue(undefined, a, caseless); + } + } + + // eslint-disable-next-line consistent-return + function valueFromConfig2(a, b) { + if (!utils$1.isUndefined(b)) { + return getMergedValue(undefined, b); + } + } + + // eslint-disable-next-line consistent-return + function defaultToConfig2(a, b) { + if (!utils$1.isUndefined(b)) { + return getMergedValue(undefined, b); + } else if (!utils$1.isUndefined(a)) { + return getMergedValue(undefined, a); + } + } + + // eslint-disable-next-line consistent-return + function mergeDirectKeys(a, b, prop) { + if (prop in config2) { + return getMergedValue(a, b); + } else if (prop in config1) { + return getMergedValue(undefined, a); + } + } + + const mergeMap = { + url: valueFromConfig2, + method: valueFromConfig2, + data: valueFromConfig2, + baseURL: defaultToConfig2, + transformRequest: defaultToConfig2, + transformResponse: defaultToConfig2, + paramsSerializer: defaultToConfig2, + timeout: defaultToConfig2, + timeoutMessage: defaultToConfig2, + withCredentials: defaultToConfig2, + withXSRFToken: defaultToConfig2, + adapter: defaultToConfig2, + responseType: defaultToConfig2, + xsrfCookieName: defaultToConfig2, + xsrfHeaderName: defaultToConfig2, + onUploadProgress: defaultToConfig2, + onDownloadProgress: defaultToConfig2, + decompress: defaultToConfig2, + maxContentLength: defaultToConfig2, + maxBodyLength: defaultToConfig2, + beforeRedirect: defaultToConfig2, + transport: defaultToConfig2, + httpAgent: defaultToConfig2, + httpsAgent: defaultToConfig2, + cancelToken: defaultToConfig2, + socketPath: defaultToConfig2, + responseEncoding: defaultToConfig2, + validateStatus: mergeDirectKeys, + headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true) + }; + + utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) { + const merge = mergeMap[prop] || mergeDeepProperties; + const configValue = merge(config1[prop], config2[prop], prop); + (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue); + }); + + return config; +} + +const VERSION = "1.6.7"; + +const validators$1 = {}; + +// eslint-disable-next-line func-names +['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => { + validators$1[type] = function validator(thing) { + return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; + }; +}); + +const deprecatedWarnings = {}; + +/** + * Transitional option validator + * + * @param {function|boolean?} validator - set to false if the transitional option has been removed + * @param {string?} version - deprecated version / removed since version + * @param {string?} message - some message with additional info + * + * @returns {function} + */ +validators$1.transitional = function transitional(validator, version, message) { + function formatMessage(opt, desc) { + return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); + } + + // eslint-disable-next-line func-names + return (value, opt, opts) => { + if (validator === false) { + throw new AxiosError( + formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), + AxiosError.ERR_DEPRECATED + ); + } + + if (version && !deprecatedWarnings[opt]) { + deprecatedWarnings[opt] = true; + // eslint-disable-next-line no-console + console.warn( + formatMessage( + opt, + ' has been deprecated since v' + version + ' and will be removed in the near future' + ) + ); + } + + return validator ? validator(value, opt, opts) : true; + }; +}; + +/** + * Assert object's properties type + * + * @param {object} options + * @param {object} schema + * @param {boolean?} allowUnknown + * + * @returns {object} + */ + +function assertOptions(options, schema, allowUnknown) { + if (typeof options !== 'object') { + throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE); + } + const keys = Object.keys(options); + let i = keys.length; + while (i-- > 0) { + const opt = keys[i]; + const validator = schema[opt]; + if (validator) { + const value = options[opt]; + const result = value === undefined || validator(value, opt, options); + if (result !== true) { + throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE); + } + continue; + } + if (allowUnknown !== true) { + throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION); + } + } +} + +var validator = { + assertOptions, + validators: validators$1 +}; + +const validators = validator.validators; + +/** + * Create a new instance of Axios + * + * @param {Object} instanceConfig The default config for the instance + * + * @return {Axios} A new instance of Axios + */ +class Axios { + constructor(instanceConfig) { + this.defaults = instanceConfig; + this.interceptors = { + request: new InterceptorManager$1(), + response: new InterceptorManager$1() + }; + } + + /** + * Dispatch a request + * + * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) + * @param {?Object} config + * + * @returns {Promise} The Promise to be fulfilled + */ + async request(configOrUrl, config) { + try { + return await this._request(configOrUrl, config); + } catch (err) { + if (err instanceof Error) { + let dummy; + + Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error()); + + // slice off the Error: ... line + const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : ''; + + if (!err.stack) { + err.stack = stack; + // match without the 2 top stack lines + } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) { + err.stack += '\n' + stack; + } + } + + throw err; + } + } + + _request(configOrUrl, config) { + /*eslint no-param-reassign:0*/ + // Allow for axios('example/url'[, config]) a la fetch API + if (typeof configOrUrl === 'string') { + config = config || {}; + config.url = configOrUrl; + } else { + config = configOrUrl || {}; + } + + config = mergeConfig(this.defaults, config); + + const {transitional, paramsSerializer, headers} = config; + + if (transitional !== undefined) { + validator.assertOptions(transitional, { + silentJSONParsing: validators.transitional(validators.boolean), + forcedJSONParsing: validators.transitional(validators.boolean), + clarifyTimeoutError: validators.transitional(validators.boolean) + }, false); + } + + if (paramsSerializer != null) { + if (utils$1.isFunction(paramsSerializer)) { + config.paramsSerializer = { + serialize: paramsSerializer + }; + } else { + validator.assertOptions(paramsSerializer, { + encode: validators.function, + serialize: validators.function + }, true); + } + } + + // Set config.method + config.method = (config.method || this.defaults.method || 'get').toLowerCase(); + + // Flatten headers + let contextHeaders = headers && utils$1.merge( + headers.common, + headers[config.method] + ); + + headers && utils$1.forEach( + ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], + (method) => { + delete headers[method]; + } + ); + + config.headers = AxiosHeaders$1.concat(contextHeaders, headers); + + // filter out skipped interceptors + const requestInterceptorChain = []; + let synchronousRequestInterceptors = true; + this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { + if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { + return; + } + + synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; + + requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); + }); + + const responseInterceptorChain = []; + this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { + responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); + }); + + let promise; + let i = 0; + let len; + + if (!synchronousRequestInterceptors) { + const chain = [dispatchRequest.bind(this), undefined]; + chain.unshift.apply(chain, requestInterceptorChain); + chain.push.apply(chain, responseInterceptorChain); + len = chain.length; + + promise = Promise.resolve(config); + + while (i < len) { + promise = promise.then(chain[i++], chain[i++]); + } + + return promise; + } + + len = requestInterceptorChain.length; + + let newConfig = config; + + i = 0; + + while (i < len) { + const onFulfilled = requestInterceptorChain[i++]; + const onRejected = requestInterceptorChain[i++]; + try { + newConfig = onFulfilled(newConfig); + } catch (error) { + onRejected.call(this, error); + break; + } + } + + try { + promise = dispatchRequest.call(this, newConfig); + } catch (error) { + return Promise.reject(error); + } + + i = 0; + len = responseInterceptorChain.length; + + while (i < len) { + promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); + } + + return promise; + } + + getUri(config) { + config = mergeConfig(this.defaults, config); + const fullPath = buildFullPath(config.baseURL, config.url); + return buildURL(fullPath, config.params, config.paramsSerializer); + } +} + +// Provide aliases for supported request methods +utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { + /*eslint func-names:0*/ + Axios.prototype[method] = function(url, config) { + return this.request(mergeConfig(config || {}, { + method, + url, + data: (config || {}).data + })); + }; +}); + +utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { + /*eslint func-names:0*/ + + function generateHTTPMethod(isForm) { + return function httpMethod(url, data, config) { + return this.request(mergeConfig(config || {}, { + method, + headers: isForm ? { + 'Content-Type': 'multipart/form-data' + } : {}, + url, + data + })); + }; + } + + Axios.prototype[method] = generateHTTPMethod(); + + Axios.prototype[method + 'Form'] = generateHTTPMethod(true); +}); + +var Axios$1 = Axios; + +/** + * A `CancelToken` is an object that can be used to request cancellation of an operation. + * + * @param {Function} executor The executor function. + * + * @returns {CancelToken} + */ +class CancelToken { + constructor(executor) { + if (typeof executor !== 'function') { + throw new TypeError('executor must be a function.'); + } + + let resolvePromise; + + this.promise = new Promise(function promiseExecutor(resolve) { + resolvePromise = resolve; + }); + + const token = this; + + // eslint-disable-next-line func-names + this.promise.then(cancel => { + if (!token._listeners) return; + + let i = token._listeners.length; + + while (i-- > 0) { + token._listeners[i](cancel); + } + token._listeners = null; + }); + + // eslint-disable-next-line func-names + this.promise.then = onfulfilled => { + let _resolve; + // eslint-disable-next-line func-names + const promise = new Promise(resolve => { + token.subscribe(resolve); + _resolve = resolve; + }).then(onfulfilled); + + promise.cancel = function reject() { + token.unsubscribe(_resolve); + }; + + return promise; + }; + + executor(function cancel(message, config, request) { + if (token.reason) { + // Cancellation has already been requested + return; + } + + token.reason = new CanceledError(message, config, request); + resolvePromise(token.reason); + }); + } + + /** + * Throws a `CanceledError` if cancellation has been requested. + */ + throwIfRequested() { + if (this.reason) { + throw this.reason; + } + } + + /** + * Subscribe to the cancel signal + */ + + subscribe(listener) { + if (this.reason) { + listener(this.reason); + return; + } + + if (this._listeners) { + this._listeners.push(listener); + } else { + this._listeners = [listener]; + } + } + + /** + * Unsubscribe from the cancel signal + */ + + unsubscribe(listener) { + if (!this._listeners) { + return; + } + const index = this._listeners.indexOf(listener); + if (index !== -1) { + this._listeners.splice(index, 1); + } + } + + /** + * Returns an object that contains a new `CancelToken` and a function that, when called, + * cancels the `CancelToken`. + */ + static source() { + let cancel; + const token = new CancelToken(function executor(c) { + cancel = c; + }); + return { + token, + cancel + }; + } +} + +var CancelToken$1 = CancelToken; + +/** + * Syntactic sugar for invoking a function and expanding an array for arguments. + * + * Common use case would be to use `Function.prototype.apply`. + * + * ```js + * function f(x, y, z) {} + * var args = [1, 2, 3]; + * f.apply(null, args); + * ``` + * + * With `spread` this example can be re-written. + * + * ```js + * spread(function(x, y, z) {})([1, 2, 3]); + * ``` + * + * @param {Function} callback + * + * @returns {Function} + */ +function spread(callback) { + return function wrap(arr) { + return callback.apply(null, arr); + }; +} + +/** + * Determines whether the payload is an error thrown by Axios + * + * @param {*} payload The value to test + * + * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false + */ +function isAxiosError(payload) { + return utils$1.isObject(payload) && (payload.isAxiosError === true); +} + +const HttpStatusCode = { + Continue: 100, + SwitchingProtocols: 101, + Processing: 102, + EarlyHints: 103, + Ok: 200, + Created: 201, + Accepted: 202, + NonAuthoritativeInformation: 203, + NoContent: 204, + ResetContent: 205, + PartialContent: 206, + MultiStatus: 207, + AlreadyReported: 208, + ImUsed: 226, + MultipleChoices: 300, + MovedPermanently: 301, + Found: 302, + SeeOther: 303, + NotModified: 304, + UseProxy: 305, + Unused: 306, + TemporaryRedirect: 307, + PermanentRedirect: 308, + BadRequest: 400, + Unauthorized: 401, + PaymentRequired: 402, + Forbidden: 403, + NotFound: 404, + MethodNotAllowed: 405, + NotAcceptable: 406, + ProxyAuthenticationRequired: 407, + RequestTimeout: 408, + Conflict: 409, + Gone: 410, + LengthRequired: 411, + PreconditionFailed: 412, + PayloadTooLarge: 413, + UriTooLong: 414, + UnsupportedMediaType: 415, + RangeNotSatisfiable: 416, + ExpectationFailed: 417, + ImATeapot: 418, + MisdirectedRequest: 421, + UnprocessableEntity: 422, + Locked: 423, + FailedDependency: 424, + TooEarly: 425, + UpgradeRequired: 426, + PreconditionRequired: 428, + TooManyRequests: 429, + RequestHeaderFieldsTooLarge: 431, + UnavailableForLegalReasons: 451, + InternalServerError: 500, + NotImplemented: 501, + BadGateway: 502, + ServiceUnavailable: 503, + GatewayTimeout: 504, + HttpVersionNotSupported: 505, + VariantAlsoNegotiates: 506, + InsufficientStorage: 507, + LoopDetected: 508, + NotExtended: 510, + NetworkAuthenticationRequired: 511, +}; + +Object.entries(HttpStatusCode).forEach(([key, value]) => { + HttpStatusCode[value] = key; +}); + +var HttpStatusCode$1 = HttpStatusCode; + +/** + * Create an instance of Axios + * + * @param {Object} defaultConfig The default config for the instance + * + * @returns {Axios} A new instance of Axios + */ +function createInstance(defaultConfig) { + const context = new Axios$1(defaultConfig); + const instance = bind(Axios$1.prototype.request, context); + + // Copy axios.prototype to instance + utils$1.extend(instance, Axios$1.prototype, context, {allOwnKeys: true}); + + // Copy context to instance + utils$1.extend(instance, context, null, {allOwnKeys: true}); + + // Factory for creating new instances + instance.create = function create(instanceConfig) { + return createInstance(mergeConfig(defaultConfig, instanceConfig)); + }; + + return instance; +} + +// Create the default instance to be exported +const axios = createInstance(defaults$1); + +// Expose Axios class to allow class inheritance +axios.Axios = Axios$1; + +// Expose Cancel & CancelToken +axios.CanceledError = CanceledError; +axios.CancelToken = CancelToken$1; +axios.isCancel = isCancel; +axios.VERSION = VERSION; +axios.toFormData = toFormData; + +// Expose AxiosError class +axios.AxiosError = AxiosError; + +// alias for CanceledError for backward compatibility +axios.Cancel = axios.CanceledError; + +// Expose all/spread +axios.all = function all(promises) { + return Promise.all(promises); +}; + +axios.spread = spread; + +// Expose isAxiosError +axios.isAxiosError = isAxiosError; + +// Expose mergeConfig +axios.mergeConfig = mergeConfig; + +axios.AxiosHeaders = AxiosHeaders$1; + +axios.formToJSON = thing => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing); + +axios.getAdapter = adapters.getAdapter; + +axios.HttpStatusCode = HttpStatusCode$1; + +axios.default = axios; + +module.exports = axios; +//# sourceMappingURL=axios.cjs.map diff --git a/Scripts/node_modules/axios/dist/browser/axios.cjs.map b/Scripts/node_modules/axios/dist/browser/axios.cjs.map new file mode 100644 index 00000000..b4b8baac --- /dev/null +++ b/Scripts/node_modules/axios/dist/browser/axios.cjs.map @@ -0,0 +1 @@ +{"version":3,"file":"axios.cjs","sources":["../../lib/helpers/bind.js","../../lib/utils.js","../../lib/core/AxiosError.js","../../lib/helpers/null.js","../../lib/helpers/toFormData.js","../../lib/helpers/AxiosURLSearchParams.js","../../lib/helpers/buildURL.js","../../lib/core/InterceptorManager.js","../../lib/defaults/transitional.js","../../lib/platform/browser/classes/URLSearchParams.js","../../lib/platform/browser/classes/FormData.js","../../lib/platform/browser/classes/Blob.js","../../lib/platform/browser/index.js","../../lib/platform/common/utils.js","../../lib/platform/index.js","../../lib/helpers/toURLEncodedForm.js","../../lib/helpers/formDataToJSON.js","../../lib/defaults/index.js","../../lib/helpers/parseHeaders.js","../../lib/core/AxiosHeaders.js","../../lib/core/transformData.js","../../lib/cancel/isCancel.js","../../lib/cancel/CanceledError.js","../../lib/core/settle.js","../../lib/helpers/cookies.js","../../lib/helpers/isAbsoluteURL.js","../../lib/helpers/combineURLs.js","../../lib/core/buildFullPath.js","../../lib/helpers/isURLSameOrigin.js","../../lib/helpers/parseProtocol.js","../../lib/helpers/speedometer.js","../../lib/adapters/xhr.js","../../lib/adapters/adapters.js","../../lib/core/dispatchRequest.js","../../lib/core/mergeConfig.js","../../lib/env/data.js","../../lib/helpers/validator.js","../../lib/core/Axios.js","../../lib/cancel/CancelToken.js","../../lib/helpers/spread.js","../../lib/helpers/isAxiosError.js","../../lib/helpers/HttpStatusCode.js","../../lib/axios.js"],"sourcesContent":["'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = (\n (product) => {\n return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0\n })(typeof navigator !== 'undefined' && navigator.product);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders.from(config.headers).normalize();\n let {responseType, withXSRFToken} = config;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n let contentType;\n\n if (utils.isFormData(requestData)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n requestHeaders.setContentType(false); // Let the browser set it\n } else if ((contentType = requestHeaders.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if(platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {\n // Add xsrf header\n const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? thing.toJSON() : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","export const VERSION = \"1.6.7\";","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy;\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n"],"names":["utils","prototype","encode","URLSearchParams","FormData","Blob","platform","defaults","AxiosHeaders","validators","InterceptorManager","Axios","CancelToken","HttpStatusCode"],"mappings":";;;AAEe,SAAS,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE;AAC1C,EAAE,OAAO,SAAS,IAAI,GAAG;AACzB,IAAI,OAAO,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AACxC,GAAG,CAAC;AACJ;;ACFA;AACA;AACA,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC;AACpC,MAAM,CAAC,cAAc,CAAC,GAAG,MAAM,CAAC;AAChC;AACA,MAAM,MAAM,GAAG,CAAC,KAAK,IAAI,KAAK,IAAI;AAClC,IAAI,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACrC,IAAI,OAA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,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;AACvC;AACA,KAAK,CAAC,cAAc,GAAGa,gBAAc,CAAC;AACtC;AACA,KAAK,CAAC,OAAO,GAAG,KAAK;;;;"} \ No newline at end of file diff --git a/Scripts/node_modules/axios/dist/esm/axios.js b/Scripts/node_modules/axios/dist/esm/axios.js new file mode 100644 index 00000000..18f9a302 --- /dev/null +++ b/Scripts/node_modules/axios/dist/esm/axios.js @@ -0,0 +1,3281 @@ +// Axios v1.6.7 Copyright (c) 2024 Matt Zabriskie and contributors +function bind(fn, thisArg) { + return function wrap() { + return fn.apply(thisArg, arguments); + }; +} + +// utils is a library of generic helper functions non-specific to axios + +const {toString} = Object.prototype; +const {getPrototypeOf} = Object; + +const kindOf = (cache => thing => { + const str = toString.call(thing); + return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); +})(Object.create(null)); + +const kindOfTest = (type) => { + type = type.toLowerCase(); + return (thing) => kindOf(thing) === type +}; + +const typeOfTest = type => thing => typeof thing === type; + +/** + * Determine if a value is an Array + * + * @param {Object} val The value to test + * + * @returns {boolean} True if value is an Array, otherwise false + */ +const {isArray} = Array; + +/** + * Determine if a value is undefined + * + * @param {*} val The value to test + * + * @returns {boolean} True if the value is undefined, otherwise false + */ +const isUndefined = typeOfTest('undefined'); + +/** + * Determine if a value is a Buffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Buffer, otherwise false + */ +function isBuffer(val) { + return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) + && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); +} + +/** + * Determine if a value is an ArrayBuffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is an ArrayBuffer, otherwise false + */ +const isArrayBuffer = kindOfTest('ArrayBuffer'); + + +/** + * Determine if a value is a view on an ArrayBuffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false + */ +function isArrayBufferView(val) { + let result; + if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { + result = ArrayBuffer.isView(val); + } else { + result = (val) && (val.buffer) && (isArrayBuffer(val.buffer)); + } + return result; +} + +/** + * Determine if a value is a String + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a String, otherwise false + */ +const isString = typeOfTest('string'); + +/** + * Determine if a value is a Function + * + * @param {*} val The value to test + * @returns {boolean} True if value is a Function, otherwise false + */ +const isFunction = typeOfTest('function'); + +/** + * Determine if a value is a Number + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Number, otherwise false + */ +const isNumber = typeOfTest('number'); + +/** + * Determine if a value is an Object + * + * @param {*} thing The value to test + * + * @returns {boolean} True if value is an Object, otherwise false + */ +const isObject = (thing) => thing !== null && typeof thing === 'object'; + +/** + * Determine if a value is a Boolean + * + * @param {*} thing The value to test + * @returns {boolean} True if value is a Boolean, otherwise false + */ +const isBoolean = thing => thing === true || thing === false; + +/** + * Determine if a value is a plain Object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a plain Object, otherwise false + */ +const isPlainObject = (val) => { + if (kindOf(val) !== 'object') { + return false; + } + + const prototype = getPrototypeOf(val); + return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); +}; + +/** + * Determine if a value is a Date + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Date, otherwise false + */ +const isDate = kindOfTest('Date'); + +/** + * Determine if a value is a File + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a File, otherwise false + */ +const isFile = kindOfTest('File'); + +/** + * Determine if a value is a Blob + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Blob, otherwise false + */ +const isBlob = kindOfTest('Blob'); + +/** + * Determine if a value is a FileList + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a File, otherwise false + */ +const isFileList = kindOfTest('FileList'); + +/** + * Determine if a value is a Stream + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Stream, otherwise false + */ +const isStream = (val) => isObject(val) && isFunction(val.pipe); + +/** + * Determine if a value is a FormData + * + * @param {*} thing The value to test + * + * @returns {boolean} True if value is an FormData, otherwise false + */ +const isFormData = (thing) => { + let kind; + return thing && ( + (typeof FormData === 'function' && thing instanceof FormData) || ( + isFunction(thing.append) && ( + (kind = kindOf(thing)) === 'formdata' || + // detect form-data instance + (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]') + ) + ) + ) +}; + +/** + * Determine if a value is a URLSearchParams object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a URLSearchParams object, otherwise false + */ +const isURLSearchParams = kindOfTest('URLSearchParams'); + +/** + * Trim excess whitespace off the beginning and end of a string + * + * @param {String} str The String to trim + * + * @returns {String} The String freed of excess whitespace + */ +const trim = (str) => str.trim ? + str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); + +/** + * Iterate over an Array or an Object invoking a function for each item. + * + * If `obj` is an Array callback will be called passing + * the value, index, and complete array for each item. + * + * If 'obj' is an Object callback will be called passing + * the value, key, and complete object for each property. + * + * @param {Object|Array} obj The object to iterate + * @param {Function} fn The callback to invoke for each item + * + * @param {Boolean} [allOwnKeys = false] + * @returns {any} + */ +function forEach(obj, fn, {allOwnKeys = false} = {}) { + // Don't bother if no value provided + if (obj === null || typeof obj === 'undefined') { + return; + } + + let i; + let l; + + // Force an array if not already something iterable + if (typeof obj !== 'object') { + /*eslint no-param-reassign:0*/ + obj = [obj]; + } + + if (isArray(obj)) { + // Iterate over array values + for (i = 0, l = obj.length; i < l; i++) { + fn.call(null, obj[i], i, obj); + } + } else { + // Iterate over object keys + const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); + const len = keys.length; + let key; + + for (i = 0; i < len; i++) { + key = keys[i]; + fn.call(null, obj[key], key, obj); + } + } +} + +function findKey(obj, key) { + key = key.toLowerCase(); + const keys = Object.keys(obj); + let i = keys.length; + let _key; + while (i-- > 0) { + _key = keys[i]; + if (key === _key.toLowerCase()) { + return _key; + } + } + return null; +} + +const _global = (() => { + /*eslint no-undef:0*/ + if (typeof globalThis !== "undefined") return globalThis; + return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global) +})(); + +const isContextDefined = (context) => !isUndefined(context) && context !== _global; + +/** + * Accepts varargs expecting each argument to be an object, then + * immutably merges the properties of each object and returns result. + * + * When multiple objects contain the same key the later object in + * the arguments list will take precedence. + * + * Example: + * + * ```js + * var result = merge({foo: 123}, {foo: 456}); + * console.log(result.foo); // outputs 456 + * ``` + * + * @param {Object} obj1 Object to merge + * + * @returns {Object} Result of all merge properties + */ +function merge(/* obj1, obj2, obj3, ... */) { + const {caseless} = isContextDefined(this) && this || {}; + const result = {}; + const assignValue = (val, key) => { + const targetKey = caseless && findKey(result, key) || key; + if (isPlainObject(result[targetKey]) && isPlainObject(val)) { + result[targetKey] = merge(result[targetKey], val); + } else if (isPlainObject(val)) { + result[targetKey] = merge({}, val); + } else if (isArray(val)) { + result[targetKey] = val.slice(); + } else { + result[targetKey] = val; + } + }; + + for (let i = 0, l = arguments.length; i < l; i++) { + arguments[i] && forEach(arguments[i], assignValue); + } + return result; +} + +/** + * Extends object a by mutably adding to it the properties of object b. + * + * @param {Object} a The object to be extended + * @param {Object} b The object to copy properties from + * @param {Object} thisArg The object to bind function to + * + * @param {Boolean} [allOwnKeys] + * @returns {Object} The resulting value of object a + */ +const extend = (a, b, thisArg, {allOwnKeys}= {}) => { + forEach(b, (val, key) => { + if (thisArg && isFunction(val)) { + a[key] = bind(val, thisArg); + } else { + a[key] = val; + } + }, {allOwnKeys}); + return a; +}; + +/** + * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) + * + * @param {string} content with BOM + * + * @returns {string} content value without BOM + */ +const stripBOM = (content) => { + if (content.charCodeAt(0) === 0xFEFF) { + content = content.slice(1); + } + return content; +}; + +/** + * Inherit the prototype methods from one constructor into another + * @param {function} constructor + * @param {function} superConstructor + * @param {object} [props] + * @param {object} [descriptors] + * + * @returns {void} + */ +const inherits = (constructor, superConstructor, props, descriptors) => { + constructor.prototype = Object.create(superConstructor.prototype, descriptors); + constructor.prototype.constructor = constructor; + Object.defineProperty(constructor, 'super', { + value: superConstructor.prototype + }); + props && Object.assign(constructor.prototype, props); +}; + +/** + * Resolve object with deep prototype chain to a flat object + * @param {Object} sourceObj source object + * @param {Object} [destObj] + * @param {Function|Boolean} [filter] + * @param {Function} [propFilter] + * + * @returns {Object} + */ +const toFlatObject = (sourceObj, destObj, filter, propFilter) => { + let props; + let i; + let prop; + const merged = {}; + + destObj = destObj || {}; + // eslint-disable-next-line no-eq-null,eqeqeq + if (sourceObj == null) return destObj; + + do { + props = Object.getOwnPropertyNames(sourceObj); + i = props.length; + while (i-- > 0) { + prop = props[i]; + if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { + destObj[prop] = sourceObj[prop]; + merged[prop] = true; + } + } + sourceObj = filter !== false && getPrototypeOf(sourceObj); + } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); + + return destObj; +}; + +/** + * Determines whether a string ends with the characters of a specified string + * + * @param {String} str + * @param {String} searchString + * @param {Number} [position= 0] + * + * @returns {boolean} + */ +const endsWith = (str, searchString, position) => { + str = String(str); + if (position === undefined || position > str.length) { + position = str.length; + } + position -= searchString.length; + const lastIndex = str.indexOf(searchString, position); + return lastIndex !== -1 && lastIndex === position; +}; + + +/** + * Returns new array from array like object or null if failed + * + * @param {*} [thing] + * + * @returns {?Array} + */ +const toArray = (thing) => { + if (!thing) return null; + if (isArray(thing)) return thing; + let i = thing.length; + if (!isNumber(i)) return null; + const arr = new Array(i); + while (i-- > 0) { + arr[i] = thing[i]; + } + return arr; +}; + +/** + * Checking if the Uint8Array exists and if it does, it returns a function that checks if the + * thing passed in is an instance of Uint8Array + * + * @param {TypedArray} + * + * @returns {Array} + */ +// eslint-disable-next-line func-names +const isTypedArray = (TypedArray => { + // eslint-disable-next-line func-names + return thing => { + return TypedArray && thing instanceof TypedArray; + }; +})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array)); + +/** + * For each entry in the object, call the function with the key and value. + * + * @param {Object} obj - The object to iterate over. + * @param {Function} fn - The function to call for each entry. + * + * @returns {void} + */ +const forEachEntry = (obj, fn) => { + const generator = obj && obj[Symbol.iterator]; + + const iterator = generator.call(obj); + + let result; + + while ((result = iterator.next()) && !result.done) { + const pair = result.value; + fn.call(obj, pair[0], pair[1]); + } +}; + +/** + * It takes a regular expression and a string, and returns an array of all the matches + * + * @param {string} regExp - The regular expression to match against. + * @param {string} str - The string to search. + * + * @returns {Array} + */ +const matchAll = (regExp, str) => { + let matches; + const arr = []; + + while ((matches = regExp.exec(str)) !== null) { + arr.push(matches); + } + + return arr; +}; + +/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */ +const isHTMLForm = kindOfTest('HTMLFormElement'); + +const toCamelCase = str => { + return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, + function replacer(m, p1, p2) { + return p1.toUpperCase() + p2; + } + ); +}; + +/* Creating a function that will check if an object has a property. */ +const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype); + +/** + * Determine if a value is a RegExp object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a RegExp object, otherwise false + */ +const isRegExp = kindOfTest('RegExp'); + +const reduceDescriptors = (obj, reducer) => { + const descriptors = Object.getOwnPropertyDescriptors(obj); + const reducedDescriptors = {}; + + forEach(descriptors, (descriptor, name) => { + let ret; + if ((ret = reducer(descriptor, name, obj)) !== false) { + reducedDescriptors[name] = ret || descriptor; + } + }); + + Object.defineProperties(obj, reducedDescriptors); +}; + +/** + * Makes all methods read-only + * @param {Object} obj + */ + +const freezeMethods = (obj) => { + reduceDescriptors(obj, (descriptor, name) => { + // skip restricted props in strict mode + if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) { + return false; + } + + const value = obj[name]; + + if (!isFunction(value)) return; + + descriptor.enumerable = false; + + if ('writable' in descriptor) { + descriptor.writable = false; + return; + } + + if (!descriptor.set) { + descriptor.set = () => { + throw Error('Can not rewrite read-only method \'' + name + '\''); + }; + } + }); +}; + +const toObjectSet = (arrayOrString, delimiter) => { + const obj = {}; + + const define = (arr) => { + arr.forEach(value => { + obj[value] = true; + }); + }; + + isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); + + return obj; +}; + +const noop = () => {}; + +const toFiniteNumber = (value, defaultValue) => { + value = +value; + return Number.isFinite(value) ? value : defaultValue; +}; + +const ALPHA = 'abcdefghijklmnopqrstuvwxyz'; + +const DIGIT = '0123456789'; + +const ALPHABET = { + DIGIT, + ALPHA, + ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT +}; + +const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => { + let str = ''; + const {length} = alphabet; + while (size--) { + str += alphabet[Math.random() * length|0]; + } + + return str; +}; + +/** + * If the thing is a FormData object, return true, otherwise return false. + * + * @param {unknown} thing - The thing to check. + * + * @returns {boolean} + */ +function isSpecCompliantForm(thing) { + return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]); +} + +const toJSONObject = (obj) => { + const stack = new Array(10); + + const visit = (source, i) => { + + if (isObject(source)) { + if (stack.indexOf(source) >= 0) { + return; + } + + if(!('toJSON' in source)) { + stack[i] = source; + const target = isArray(source) ? [] : {}; + + forEach(source, (value, key) => { + const reducedValue = visit(value, i + 1); + !isUndefined(reducedValue) && (target[key] = reducedValue); + }); + + stack[i] = undefined; + + return target; + } + } + + return source; + }; + + return visit(obj, 0); +}; + +const isAsyncFn = kindOfTest('AsyncFunction'); + +const isThenable = (thing) => + thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch); + +const utils$1 = { + isArray, + isArrayBuffer, + isBuffer, + isFormData, + isArrayBufferView, + isString, + isNumber, + isBoolean, + isObject, + isPlainObject, + isUndefined, + isDate, + isFile, + isBlob, + isRegExp, + isFunction, + isStream, + isURLSearchParams, + isTypedArray, + isFileList, + forEach, + merge, + extend, + trim, + stripBOM, + inherits, + toFlatObject, + kindOf, + kindOfTest, + endsWith, + toArray, + forEachEntry, + matchAll, + isHTMLForm, + hasOwnProperty, + hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection + reduceDescriptors, + freezeMethods, + toObjectSet, + toCamelCase, + noop, + toFiniteNumber, + findKey, + global: _global, + isContextDefined, + ALPHABET, + generateString, + isSpecCompliantForm, + toJSONObject, + isAsyncFn, + isThenable +}; + +/** + * Create an Error with the specified message, config, error code, request and response. + * + * @param {string} message The error message. + * @param {string} [code] The error code (for example, 'ECONNABORTED'). + * @param {Object} [config] The config. + * @param {Object} [request] The request. + * @param {Object} [response] The response. + * + * @returns {Error} The created error. + */ +function AxiosError$1(message, code, config, request, response) { + Error.call(this); + + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } else { + this.stack = (new Error()).stack; + } + + this.message = message; + this.name = 'AxiosError'; + code && (this.code = code); + config && (this.config = config); + request && (this.request = request); + response && (this.response = response); +} + +utils$1.inherits(AxiosError$1, Error, { + toJSON: function toJSON() { + return { + // Standard + message: this.message, + name: this.name, + // Microsoft + description: this.description, + number: this.number, + // Mozilla + fileName: this.fileName, + lineNumber: this.lineNumber, + columnNumber: this.columnNumber, + stack: this.stack, + // Axios + config: utils$1.toJSONObject(this.config), + code: this.code, + status: this.response && this.response.status ? this.response.status : null + }; + } +}); + +const prototype$1 = AxiosError$1.prototype; +const descriptors = {}; + +[ + 'ERR_BAD_OPTION_VALUE', + 'ERR_BAD_OPTION', + 'ECONNABORTED', + 'ETIMEDOUT', + 'ERR_NETWORK', + 'ERR_FR_TOO_MANY_REDIRECTS', + 'ERR_DEPRECATED', + 'ERR_BAD_RESPONSE', + 'ERR_BAD_REQUEST', + 'ERR_CANCELED', + 'ERR_NOT_SUPPORT', + 'ERR_INVALID_URL' +// eslint-disable-next-line func-names +].forEach(code => { + descriptors[code] = {value: code}; +}); + +Object.defineProperties(AxiosError$1, descriptors); +Object.defineProperty(prototype$1, 'isAxiosError', {value: true}); + +// eslint-disable-next-line func-names +AxiosError$1.from = (error, code, config, request, response, customProps) => { + const axiosError = Object.create(prototype$1); + + utils$1.toFlatObject(error, axiosError, function filter(obj) { + return obj !== Error.prototype; + }, prop => { + return prop !== 'isAxiosError'; + }); + + AxiosError$1.call(axiosError, error.message, code, config, request, response); + + axiosError.cause = error; + + axiosError.name = error.name; + + customProps && Object.assign(axiosError, customProps); + + return axiosError; +}; + +// eslint-disable-next-line strict +const httpAdapter = null; + +/** + * Determines if the given thing is a array or js object. + * + * @param {string} thing - The object or array to be visited. + * + * @returns {boolean} + */ +function isVisitable(thing) { + return utils$1.isPlainObject(thing) || utils$1.isArray(thing); +} + +/** + * It removes the brackets from the end of a string + * + * @param {string} key - The key of the parameter. + * + * @returns {string} the key without the brackets. + */ +function removeBrackets(key) { + return utils$1.endsWith(key, '[]') ? key.slice(0, -2) : key; +} + +/** + * It takes a path, a key, and a boolean, and returns a string + * + * @param {string} path - The path to the current key. + * @param {string} key - The key of the current object being iterated over. + * @param {string} dots - If true, the key will be rendered with dots instead of brackets. + * + * @returns {string} The path to the current key. + */ +function renderKey(path, key, dots) { + if (!path) return key; + return path.concat(key).map(function each(token, i) { + // eslint-disable-next-line no-param-reassign + token = removeBrackets(token); + return !dots && i ? '[' + token + ']' : token; + }).join(dots ? '.' : ''); +} + +/** + * If the array is an array and none of its elements are visitable, then it's a flat array. + * + * @param {Array} arr - The array to check + * + * @returns {boolean} + */ +function isFlatArray(arr) { + return utils$1.isArray(arr) && !arr.some(isVisitable); +} + +const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) { + return /^is[A-Z]/.test(prop); +}); + +/** + * Convert a data object to FormData + * + * @param {Object} obj + * @param {?Object} [formData] + * @param {?Object} [options] + * @param {Function} [options.visitor] + * @param {Boolean} [options.metaTokens = true] + * @param {Boolean} [options.dots = false] + * @param {?Boolean} [options.indexes = false] + * + * @returns {Object} + **/ + +/** + * It converts an object into a FormData object + * + * @param {Object} obj - The object to convert to form data. + * @param {string} formData - The FormData object to append to. + * @param {Object} options + * + * @returns + */ +function toFormData$1(obj, formData, options) { + if (!utils$1.isObject(obj)) { + throw new TypeError('target must be an object'); + } + + // eslint-disable-next-line no-param-reassign + formData = formData || new (FormData)(); + + // eslint-disable-next-line no-param-reassign + options = utils$1.toFlatObject(options, { + metaTokens: true, + dots: false, + indexes: false + }, false, function defined(option, source) { + // eslint-disable-next-line no-eq-null,eqeqeq + return !utils$1.isUndefined(source[option]); + }); + + const metaTokens = options.metaTokens; + // eslint-disable-next-line no-use-before-define + const visitor = options.visitor || defaultVisitor; + const dots = options.dots; + const indexes = options.indexes; + const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob; + const useBlob = _Blob && utils$1.isSpecCompliantForm(formData); + + if (!utils$1.isFunction(visitor)) { + throw new TypeError('visitor must be a function'); + } + + function convertValue(value) { + if (value === null) return ''; + + if (utils$1.isDate(value)) { + return value.toISOString(); + } + + if (!useBlob && utils$1.isBlob(value)) { + throw new AxiosError$1('Blob is not supported. Use a Buffer instead.'); + } + + if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) { + return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value); + } + + return value; + } + + /** + * Default visitor. + * + * @param {*} value + * @param {String|Number} key + * @param {Array} path + * @this {FormData} + * + * @returns {boolean} return true to visit the each prop of the value recursively + */ + function defaultVisitor(value, key, path) { + let arr = value; + + if (value && !path && typeof value === 'object') { + if (utils$1.endsWith(key, '{}')) { + // eslint-disable-next-line no-param-reassign + key = metaTokens ? key : key.slice(0, -2); + // eslint-disable-next-line no-param-reassign + value = JSON.stringify(value); + } else if ( + (utils$1.isArray(value) && isFlatArray(value)) || + ((utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value)) + )) { + // eslint-disable-next-line no-param-reassign + key = removeBrackets(key); + + arr.forEach(function each(el, index) { + !(utils$1.isUndefined(el) || el === null) && formData.append( + // eslint-disable-next-line no-nested-ternary + indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'), + convertValue(el) + ); + }); + return false; + } + } + + if (isVisitable(value)) { + return true; + } + + formData.append(renderKey(path, key, dots), convertValue(value)); + + return false; + } + + const stack = []; + + const exposedHelpers = Object.assign(predicates, { + defaultVisitor, + convertValue, + isVisitable + }); + + function build(value, path) { + if (utils$1.isUndefined(value)) return; + + if (stack.indexOf(value) !== -1) { + throw Error('Circular reference detected in ' + path.join('.')); + } + + stack.push(value); + + utils$1.forEach(value, function each(el, key) { + const result = !(utils$1.isUndefined(el) || el === null) && visitor.call( + formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers + ); + + if (result === true) { + build(el, path ? path.concat(key) : [key]); + } + }); + + stack.pop(); + } + + if (!utils$1.isObject(obj)) { + throw new TypeError('data must be an object'); + } + + build(obj); + + return formData; +} + +/** + * It encodes a string by replacing all characters that are not in the unreserved set with + * their percent-encoded equivalents + * + * @param {string} str - The string to encode. + * + * @returns {string} The encoded string. + */ +function encode$1(str) { + const charMap = { + '!': '%21', + "'": '%27', + '(': '%28', + ')': '%29', + '~': '%7E', + '%20': '+', + '%00': '\x00' + }; + return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) { + return charMap[match]; + }); +} + +/** + * It takes a params object and converts it to a FormData object + * + * @param {Object} params - The parameters to be converted to a FormData object. + * @param {Object} options - The options object passed to the Axios constructor. + * + * @returns {void} + */ +function AxiosURLSearchParams(params, options) { + this._pairs = []; + + params && toFormData$1(params, this, options); +} + +const prototype = AxiosURLSearchParams.prototype; + +prototype.append = function append(name, value) { + this._pairs.push([name, value]); +}; + +prototype.toString = function toString(encoder) { + const _encode = encoder ? function(value) { + return encoder.call(this, value, encode$1); + } : encode$1; + + return this._pairs.map(function each(pair) { + return _encode(pair[0]) + '=' + _encode(pair[1]); + }, '').join('&'); +}; + +/** + * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their + * URI encoded counterparts + * + * @param {string} val The value to be encoded. + * + * @returns {string} The encoded value. + */ +function encode(val) { + return encodeURIComponent(val). + replace(/%3A/gi, ':'). + replace(/%24/g, '$'). + replace(/%2C/gi, ','). + replace(/%20/g, '+'). + replace(/%5B/gi, '['). + replace(/%5D/gi, ']'); +} + +/** + * Build a URL by appending params to the end + * + * @param {string} url The base of the url (e.g., http://www.google.com) + * @param {object} [params] The params to be appended + * @param {?object} options + * + * @returns {string} The formatted url + */ +function buildURL(url, params, options) { + /*eslint no-param-reassign:0*/ + if (!params) { + return url; + } + + const _encode = options && options.encode || encode; + + const serializeFn = options && options.serialize; + + let serializedParams; + + if (serializeFn) { + serializedParams = serializeFn(params, options); + } else { + serializedParams = utils$1.isURLSearchParams(params) ? + params.toString() : + new AxiosURLSearchParams(params, options).toString(_encode); + } + + if (serializedParams) { + const hashmarkIndex = url.indexOf("#"); + + if (hashmarkIndex !== -1) { + url = url.slice(0, hashmarkIndex); + } + url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; + } + + return url; +} + +class InterceptorManager { + constructor() { + this.handlers = []; + } + + /** + * Add a new interceptor to the stack + * + * @param {Function} fulfilled The function to handle `then` for a `Promise` + * @param {Function} rejected The function to handle `reject` for a `Promise` + * + * @return {Number} An ID used to remove interceptor later + */ + use(fulfilled, rejected, options) { + this.handlers.push({ + fulfilled, + rejected, + synchronous: options ? options.synchronous : false, + runWhen: options ? options.runWhen : null + }); + return this.handlers.length - 1; + } + + /** + * Remove an interceptor from the stack + * + * @param {Number} id The ID that was returned by `use` + * + * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise + */ + eject(id) { + if (this.handlers[id]) { + this.handlers[id] = null; + } + } + + /** + * Clear all interceptors from the stack + * + * @returns {void} + */ + clear() { + if (this.handlers) { + this.handlers = []; + } + } + + /** + * Iterate over all the registered interceptors + * + * This method is particularly useful for skipping over any + * interceptors that may have become `null` calling `eject`. + * + * @param {Function} fn The function to call for each interceptor + * + * @returns {void} + */ + forEach(fn) { + utils$1.forEach(this.handlers, function forEachHandler(h) { + if (h !== null) { + fn(h); + } + }); + } +} + +const InterceptorManager$1 = InterceptorManager; + +const transitionalDefaults = { + silentJSONParsing: true, + forcedJSONParsing: true, + clarifyTimeoutError: false +}; + +const URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams; + +const FormData$1 = typeof FormData !== 'undefined' ? FormData : null; + +const Blob$1 = typeof Blob !== 'undefined' ? Blob : null; + +const platform$1 = { + isBrowser: true, + classes: { + URLSearchParams: URLSearchParams$1, + FormData: FormData$1, + Blob: Blob$1 + }, + protocols: ['http', 'https', 'file', 'blob', 'url', 'data'] +}; + +const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined'; + +/** + * Determine if we're running in a standard browser environment + * + * This allows axios to run in a web worker, and react-native. + * Both environments support XMLHttpRequest, but not fully standard globals. + * + * web workers: + * typeof window -> undefined + * typeof document -> undefined + * + * react-native: + * navigator.product -> 'ReactNative' + * nativescript + * navigator.product -> 'NativeScript' or 'NS' + * + * @returns {boolean} + */ +const hasStandardBrowserEnv = ( + (product) => { + return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0 + })(typeof navigator !== 'undefined' && navigator.product); + +/** + * Determine if we're running in a standard browser webWorker environment + * + * Although the `isStandardBrowserEnv` method indicates that + * `allows axios to run in a web worker`, the WebWorker will still be + * filtered out due to its judgment standard + * `typeof window !== 'undefined' && typeof document !== 'undefined'`. + * This leads to a problem when axios post `FormData` in webWorker + */ +const hasStandardBrowserWebWorkerEnv = (() => { + return ( + typeof WorkerGlobalScope !== 'undefined' && + // eslint-disable-next-line no-undef + self instanceof WorkerGlobalScope && + typeof self.importScripts === 'function' + ); +})(); + +const utils = /*#__PURE__*/Object.freeze({ + __proto__: null, + hasBrowserEnv: hasBrowserEnv, + hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv, + hasStandardBrowserEnv: hasStandardBrowserEnv +}); + +const platform = { + ...utils, + ...platform$1 +}; + +function toURLEncodedForm(data, options) { + return toFormData$1(data, new platform.classes.URLSearchParams(), Object.assign({ + visitor: function(value, key, path, helpers) { + if (platform.isNode && utils$1.isBuffer(value)) { + this.append(key, value.toString('base64')); + return false; + } + + return helpers.defaultVisitor.apply(this, arguments); + } + }, options)); +} + +/** + * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z'] + * + * @param {string} name - The name of the property to get. + * + * @returns An array of strings. + */ +function parsePropPath(name) { + // foo[x][y][z] + // foo.x.y.z + // foo-x-y-z + // foo x y z + return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map(match => { + return match[0] === '[]' ? '' : match[1] || match[0]; + }); +} + +/** + * Convert an array to an object. + * + * @param {Array} arr - The array to convert to an object. + * + * @returns An object with the same keys and values as the array. + */ +function arrayToObject(arr) { + const obj = {}; + const keys = Object.keys(arr); + let i; + const len = keys.length; + let key; + for (i = 0; i < len; i++) { + key = keys[i]; + obj[key] = arr[key]; + } + return obj; +} + +/** + * It takes a FormData object and returns a JavaScript object + * + * @param {string} formData The FormData object to convert to JSON. + * + * @returns {Object | null} The converted object. + */ +function formDataToJSON(formData) { + function buildPath(path, value, target, index) { + let name = path[index++]; + + if (name === '__proto__') return true; + + const isNumericKey = Number.isFinite(+name); + const isLast = index >= path.length; + name = !name && utils$1.isArray(target) ? target.length : name; + + if (isLast) { + if (utils$1.hasOwnProp(target, name)) { + target[name] = [target[name], value]; + } else { + target[name] = value; + } + + return !isNumericKey; + } + + if (!target[name] || !utils$1.isObject(target[name])) { + target[name] = []; + } + + const result = buildPath(path, value, target[name], index); + + if (result && utils$1.isArray(target[name])) { + target[name] = arrayToObject(target[name]); + } + + return !isNumericKey; + } + + if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) { + const obj = {}; + + utils$1.forEachEntry(formData, (name, value) => { + buildPath(parsePropPath(name), value, obj, 0); + }); + + return obj; + } + + return null; +} + +/** + * It takes a string, tries to parse it, and if it fails, it returns the stringified version + * of the input + * + * @param {any} rawValue - The value to be stringified. + * @param {Function} parser - A function that parses a string into a JavaScript object. + * @param {Function} encoder - A function that takes a value and returns a string. + * + * @returns {string} A stringified version of the rawValue. + */ +function stringifySafely(rawValue, parser, encoder) { + if (utils$1.isString(rawValue)) { + try { + (parser || JSON.parse)(rawValue); + return utils$1.trim(rawValue); + } catch (e) { + if (e.name !== 'SyntaxError') { + throw e; + } + } + } + + return (encoder || JSON.stringify)(rawValue); +} + +const defaults = { + + transitional: transitionalDefaults, + + adapter: ['xhr', 'http'], + + transformRequest: [function transformRequest(data, headers) { + const contentType = headers.getContentType() || ''; + const hasJSONContentType = contentType.indexOf('application/json') > -1; + const isObjectPayload = utils$1.isObject(data); + + if (isObjectPayload && utils$1.isHTMLForm(data)) { + data = new FormData(data); + } + + const isFormData = utils$1.isFormData(data); + + if (isFormData) { + return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data; + } + + if (utils$1.isArrayBuffer(data) || + utils$1.isBuffer(data) || + utils$1.isStream(data) || + utils$1.isFile(data) || + utils$1.isBlob(data) + ) { + return data; + } + if (utils$1.isArrayBufferView(data)) { + return data.buffer; + } + if (utils$1.isURLSearchParams(data)) { + headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false); + return data.toString(); + } + + let isFileList; + + if (isObjectPayload) { + if (contentType.indexOf('application/x-www-form-urlencoded') > -1) { + return toURLEncodedForm(data, this.formSerializer).toString(); + } + + if ((isFileList = utils$1.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) { + const _FormData = this.env && this.env.FormData; + + return toFormData$1( + isFileList ? {'files[]': data} : data, + _FormData && new _FormData(), + this.formSerializer + ); + } + } + + if (isObjectPayload || hasJSONContentType ) { + headers.setContentType('application/json', false); + return stringifySafely(data); + } + + return data; + }], + + transformResponse: [function transformResponse(data) { + const transitional = this.transitional || defaults.transitional; + const forcedJSONParsing = transitional && transitional.forcedJSONParsing; + const JSONRequested = this.responseType === 'json'; + + if (data && utils$1.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) { + const silentJSONParsing = transitional && transitional.silentJSONParsing; + const strictJSONParsing = !silentJSONParsing && JSONRequested; + + try { + return JSON.parse(data); + } catch (e) { + if (strictJSONParsing) { + if (e.name === 'SyntaxError') { + throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response); + } + throw e; + } + } + } + + return data; + }], + + /** + * A timeout in milliseconds to abort a request. If set to 0 (default) a + * timeout is not created. + */ + timeout: 0, + + xsrfCookieName: 'XSRF-TOKEN', + xsrfHeaderName: 'X-XSRF-TOKEN', + + maxContentLength: -1, + maxBodyLength: -1, + + env: { + FormData: platform.classes.FormData, + Blob: platform.classes.Blob + }, + + validateStatus: function validateStatus(status) { + return status >= 200 && status < 300; + }, + + headers: { + common: { + 'Accept': 'application/json, text/plain, */*', + 'Content-Type': undefined + } + } +}; + +utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => { + defaults.headers[method] = {}; +}); + +const defaults$1 = defaults; + +// RawAxiosHeaders whose duplicates are ignored by node +// c.f. https://nodejs.org/api/http.html#http_message_headers +const ignoreDuplicateOf = utils$1.toObjectSet([ + 'age', 'authorization', 'content-length', 'content-type', 'etag', + 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', + 'last-modified', 'location', 'max-forwards', 'proxy-authorization', + 'referer', 'retry-after', 'user-agent' +]); + +/** + * Parse headers into an object + * + * ``` + * Date: Wed, 27 Aug 2014 08:58:49 GMT + * Content-Type: application/json + * Connection: keep-alive + * Transfer-Encoding: chunked + * ``` + * + * @param {String} rawHeaders Headers needing to be parsed + * + * @returns {Object} Headers parsed into an object + */ +const parseHeaders = rawHeaders => { + const parsed = {}; + let key; + let val; + let i; + + rawHeaders && rawHeaders.split('\n').forEach(function parser(line) { + i = line.indexOf(':'); + key = line.substring(0, i).trim().toLowerCase(); + val = line.substring(i + 1).trim(); + + if (!key || (parsed[key] && ignoreDuplicateOf[key])) { + return; + } + + if (key === 'set-cookie') { + if (parsed[key]) { + parsed[key].push(val); + } else { + parsed[key] = [val]; + } + } else { + parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; + } + }); + + return parsed; +}; + +const $internals = Symbol('internals'); + +function normalizeHeader(header) { + return header && String(header).trim().toLowerCase(); +} + +function normalizeValue(value) { + if (value === false || value == null) { + return value; + } + + return utils$1.isArray(value) ? value.map(normalizeValue) : String(value); +} + +function parseTokens(str) { + const tokens = Object.create(null); + const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; + let match; + + while ((match = tokensRE.exec(str))) { + tokens[match[1]] = match[2]; + } + + return tokens; +} + +const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()); + +function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) { + if (utils$1.isFunction(filter)) { + return filter.call(this, value, header); + } + + if (isHeaderNameFilter) { + value = header; + } + + if (!utils$1.isString(value)) return; + + if (utils$1.isString(filter)) { + return value.indexOf(filter) !== -1; + } + + if (utils$1.isRegExp(filter)) { + return filter.test(value); + } +} + +function formatHeader(header) { + return header.trim() + .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => { + return char.toUpperCase() + str; + }); +} + +function buildAccessors(obj, header) { + const accessorName = utils$1.toCamelCase(' ' + header); + + ['get', 'set', 'has'].forEach(methodName => { + Object.defineProperty(obj, methodName + accessorName, { + value: function(arg1, arg2, arg3) { + return this[methodName].call(this, header, arg1, arg2, arg3); + }, + configurable: true + }); + }); +} + +class AxiosHeaders$1 { + constructor(headers) { + headers && this.set(headers); + } + + set(header, valueOrRewrite, rewrite) { + const self = this; + + function setHeader(_value, _header, _rewrite) { + const lHeader = normalizeHeader(_header); + + if (!lHeader) { + throw new Error('header name must be a non-empty string'); + } + + const key = utils$1.findKey(self, lHeader); + + if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) { + self[key || _header] = normalizeValue(_value); + } + } + + const setHeaders = (headers, _rewrite) => + utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite)); + + if (utils$1.isPlainObject(header) || header instanceof this.constructor) { + setHeaders(header, valueOrRewrite); + } else if(utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { + setHeaders(parseHeaders(header), valueOrRewrite); + } else { + header != null && setHeader(valueOrRewrite, header, rewrite); + } + + return this; + } + + get(header, parser) { + header = normalizeHeader(header); + + if (header) { + const key = utils$1.findKey(this, header); + + if (key) { + const value = this[key]; + + if (!parser) { + return value; + } + + if (parser === true) { + return parseTokens(value); + } + + if (utils$1.isFunction(parser)) { + return parser.call(this, value, key); + } + + if (utils$1.isRegExp(parser)) { + return parser.exec(value); + } + + throw new TypeError('parser must be boolean|regexp|function'); + } + } + } + + has(header, matcher) { + header = normalizeHeader(header); + + if (header) { + const key = utils$1.findKey(this, header); + + return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher))); + } + + return false; + } + + delete(header, matcher) { + const self = this; + let deleted = false; + + function deleteHeader(_header) { + _header = normalizeHeader(_header); + + if (_header) { + const key = utils$1.findKey(self, _header); + + if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) { + delete self[key]; + + deleted = true; + } + } + } + + if (utils$1.isArray(header)) { + header.forEach(deleteHeader); + } else { + deleteHeader(header); + } + + return deleted; + } + + clear(matcher) { + const keys = Object.keys(this); + let i = keys.length; + let deleted = false; + + while (i--) { + const key = keys[i]; + if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) { + delete this[key]; + deleted = true; + } + } + + return deleted; + } + + normalize(format) { + const self = this; + const headers = {}; + + utils$1.forEach(this, (value, header) => { + const key = utils$1.findKey(headers, header); + + if (key) { + self[key] = normalizeValue(value); + delete self[header]; + return; + } + + const normalized = format ? formatHeader(header) : String(header).trim(); + + if (normalized !== header) { + delete self[header]; + } + + self[normalized] = normalizeValue(value); + + headers[normalized] = true; + }); + + return this; + } + + concat(...targets) { + return this.constructor.concat(this, ...targets); + } + + toJSON(asStrings) { + const obj = Object.create(null); + + utils$1.forEach(this, (value, header) => { + value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value); + }); + + return obj; + } + + [Symbol.iterator]() { + return Object.entries(this.toJSON())[Symbol.iterator](); + } + + toString() { + return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n'); + } + + get [Symbol.toStringTag]() { + return 'AxiosHeaders'; + } + + static from(thing) { + return thing instanceof this ? thing : new this(thing); + } + + static concat(first, ...targets) { + const computed = new this(first); + + targets.forEach((target) => computed.set(target)); + + return computed; + } + + static accessor(header) { + const internals = this[$internals] = (this[$internals] = { + accessors: {} + }); + + const accessors = internals.accessors; + const prototype = this.prototype; + + function defineAccessor(_header) { + const lHeader = normalizeHeader(_header); + + if (!accessors[lHeader]) { + buildAccessors(prototype, _header); + accessors[lHeader] = true; + } + } + + utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header); + + return this; + } +} + +AxiosHeaders$1.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']); + +// reserved names hotfix +utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({value}, key) => { + let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set` + return { + get: () => value, + set(headerValue) { + this[mapped] = headerValue; + } + } +}); + +utils$1.freezeMethods(AxiosHeaders$1); + +const AxiosHeaders$2 = AxiosHeaders$1; + +/** + * Transform the data for a request or a response + * + * @param {Array|Function} fns A single function or Array of functions + * @param {?Object} response The response object + * + * @returns {*} The resulting transformed data + */ +function transformData(fns, response) { + const config = this || defaults$1; + const context = response || config; + const headers = AxiosHeaders$2.from(context.headers); + let data = context.data; + + utils$1.forEach(fns, function transform(fn) { + data = fn.call(config, data, headers.normalize(), response ? response.status : undefined); + }); + + headers.normalize(); + + return data; +} + +function isCancel$1(value) { + return !!(value && value.__CANCEL__); +} + +/** + * A `CanceledError` is an object that is thrown when an operation is canceled. + * + * @param {string=} message The message. + * @param {Object=} config The config. + * @param {Object=} request The request. + * + * @returns {CanceledError} The created error. + */ +function CanceledError$1(message, config, request) { + // eslint-disable-next-line no-eq-null,eqeqeq + AxiosError$1.call(this, message == null ? 'canceled' : message, AxiosError$1.ERR_CANCELED, config, request); + this.name = 'CanceledError'; +} + +utils$1.inherits(CanceledError$1, AxiosError$1, { + __CANCEL__: true +}); + +/** + * Resolve or reject a Promise based on response status. + * + * @param {Function} resolve A function that resolves the promise. + * @param {Function} reject A function that rejects the promise. + * @param {object} response The response. + * + * @returns {object} The response. + */ +function settle(resolve, reject, response) { + const validateStatus = response.config.validateStatus; + if (!response.status || !validateStatus || validateStatus(response.status)) { + resolve(response); + } else { + reject(new AxiosError$1( + 'Request failed with status code ' + response.status, + [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], + response.config, + response.request, + response + )); + } +} + +const cookies = platform.hasStandardBrowserEnv ? + + // Standard browser envs support document.cookie + { + write(name, value, expires, path, domain, secure) { + const cookie = [name + '=' + encodeURIComponent(value)]; + + utils$1.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString()); + + utils$1.isString(path) && cookie.push('path=' + path); + + utils$1.isString(domain) && cookie.push('domain=' + domain); + + secure === true && cookie.push('secure'); + + document.cookie = cookie.join('; '); + }, + + read(name) { + const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); + return (match ? decodeURIComponent(match[3]) : null); + }, + + remove(name) { + this.write(name, '', Date.now() - 86400000); + } + } + + : + + // Non-standard browser env (web workers, react-native) lack needed support. + { + write() {}, + read() { + return null; + }, + remove() {} + }; + +/** + * Determines whether the specified URL is absolute + * + * @param {string} url The URL to test + * + * @returns {boolean} True if the specified URL is absolute, otherwise false + */ +function isAbsoluteURL(url) { + // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). + // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed + // by any combination of letters, digits, plus, period, or hyphen. + return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); +} + +/** + * Creates a new URL by combining the specified URLs + * + * @param {string} baseURL The base URL + * @param {string} relativeURL The relative URL + * + * @returns {string} The combined URL + */ +function combineURLs(baseURL, relativeURL) { + return relativeURL + ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') + : baseURL; +} + +/** + * Creates a new URL by combining the baseURL with the requestedURL, + * only when the requestedURL is not already an absolute URL. + * If the requestURL is absolute, this function returns the requestedURL untouched. + * + * @param {string} baseURL The base URL + * @param {string} requestedURL Absolute or relative URL to combine + * + * @returns {string} The combined full path + */ +function buildFullPath(baseURL, requestedURL) { + if (baseURL && !isAbsoluteURL(requestedURL)) { + return combineURLs(baseURL, requestedURL); + } + return requestedURL; +} + +const isURLSameOrigin = platform.hasStandardBrowserEnv ? + +// Standard browser envs have full support of the APIs needed to test +// whether the request URL is of the same origin as current location. + (function standardBrowserEnv() { + const msie = /(msie|trident)/i.test(navigator.userAgent); + const urlParsingNode = document.createElement('a'); + let originURL; + + /** + * Parse a URL to discover its components + * + * @param {String} url The URL to be parsed + * @returns {Object} + */ + function resolveURL(url) { + let href = url; + + if (msie) { + // IE needs attribute set twice to normalize properties + urlParsingNode.setAttribute('href', href); + href = urlParsingNode.href; + } + + urlParsingNode.setAttribute('href', href); + + // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils + return { + href: urlParsingNode.href, + protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', + host: urlParsingNode.host, + search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', + hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', + hostname: urlParsingNode.hostname, + port: urlParsingNode.port, + pathname: (urlParsingNode.pathname.charAt(0) === '/') ? + urlParsingNode.pathname : + '/' + urlParsingNode.pathname + }; + } + + originURL = resolveURL(window.location.href); + + /** + * Determine if a URL shares the same origin as the current location + * + * @param {String} requestURL The URL to test + * @returns {boolean} True if URL shares the same origin, otherwise false + */ + return function isURLSameOrigin(requestURL) { + const parsed = (utils$1.isString(requestURL)) ? resolveURL(requestURL) : requestURL; + return (parsed.protocol === originURL.protocol && + parsed.host === originURL.host); + }; + })() : + + // Non standard browser envs (web workers, react-native) lack needed support. + (function nonStandardBrowserEnv() { + return function isURLSameOrigin() { + return true; + }; + })(); + +function parseProtocol(url) { + const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); + return match && match[1] || ''; +} + +/** + * Calculate data maxRate + * @param {Number} [samplesCount= 10] + * @param {Number} [min= 1000] + * @returns {Function} + */ +function speedometer(samplesCount, min) { + samplesCount = samplesCount || 10; + const bytes = new Array(samplesCount); + const timestamps = new Array(samplesCount); + let head = 0; + let tail = 0; + let firstSampleTS; + + min = min !== undefined ? min : 1000; + + return function push(chunkLength) { + const now = Date.now(); + + const startedAt = timestamps[tail]; + + if (!firstSampleTS) { + firstSampleTS = now; + } + + bytes[head] = chunkLength; + timestamps[head] = now; + + let i = tail; + let bytesCount = 0; + + while (i !== head) { + bytesCount += bytes[i++]; + i = i % samplesCount; + } + + head = (head + 1) % samplesCount; + + if (head === tail) { + tail = (tail + 1) % samplesCount; + } + + if (now - firstSampleTS < min) { + return; + } + + const passed = startedAt && now - startedAt; + + return passed ? Math.round(bytesCount * 1000 / passed) : undefined; + }; +} + +function progressEventReducer(listener, isDownloadStream) { + let bytesNotified = 0; + const _speedometer = speedometer(50, 250); + + return e => { + const loaded = e.loaded; + const total = e.lengthComputable ? e.total : undefined; + const progressBytes = loaded - bytesNotified; + const rate = _speedometer(progressBytes); + const inRange = loaded <= total; + + bytesNotified = loaded; + + const data = { + loaded, + total, + progress: total ? (loaded / total) : undefined, + bytes: progressBytes, + rate: rate ? rate : undefined, + estimated: rate && total && inRange ? (total - loaded) / rate : undefined, + event: e + }; + + data[isDownloadStream ? 'download' : 'upload'] = true; + + listener(data); + }; +} + +const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined'; + +const xhrAdapter = isXHRAdapterSupported && function (config) { + return new Promise(function dispatchXhrRequest(resolve, reject) { + let requestData = config.data; + const requestHeaders = AxiosHeaders$2.from(config.headers).normalize(); + let {responseType, withXSRFToken} = config; + let onCanceled; + function done() { + if (config.cancelToken) { + config.cancelToken.unsubscribe(onCanceled); + } + + if (config.signal) { + config.signal.removeEventListener('abort', onCanceled); + } + } + + let contentType; + + if (utils$1.isFormData(requestData)) { + if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) { + requestHeaders.setContentType(false); // Let the browser set it + } else if ((contentType = requestHeaders.getContentType()) !== false) { + // fix semicolon duplication issue for ReactNative FormData implementation + const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : []; + requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; ')); + } + } + + let request = new XMLHttpRequest(); + + // HTTP basic authentication + if (config.auth) { + const username = config.auth.username || ''; + const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; + requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password)); + } + + const fullPath = buildFullPath(config.baseURL, config.url); + + request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); + + // Set the request timeout in MS + request.timeout = config.timeout; + + function onloadend() { + if (!request) { + return; + } + // Prepare the response + const responseHeaders = AxiosHeaders$2.from( + 'getAllResponseHeaders' in request && request.getAllResponseHeaders() + ); + const responseData = !responseType || responseType === 'text' || responseType === 'json' ? + request.responseText : request.response; + const response = { + data: responseData, + status: request.status, + statusText: request.statusText, + headers: responseHeaders, + config, + request + }; + + settle(function _resolve(value) { + resolve(value); + done(); + }, function _reject(err) { + reject(err); + done(); + }, response); + + // Clean up request + request = null; + } + + if ('onloadend' in request) { + // Use onloadend if available + request.onloadend = onloadend; + } else { + // Listen for ready state to emulate onloadend + request.onreadystatechange = function handleLoad() { + if (!request || request.readyState !== 4) { + return; + } + + // The request errored out and we didn't get a response, this will be + // handled by onerror instead + // With one exception: request that using file: protocol, most browsers + // will return status as 0 even though it's a successful request + if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { + return; + } + // readystate handler is calling before onerror or ontimeout handlers, + // so we should call onloadend on the next 'tick' + setTimeout(onloadend); + }; + } + + // Handle browser request cancellation (as opposed to a manual cancellation) + request.onabort = function handleAbort() { + if (!request) { + return; + } + + reject(new AxiosError$1('Request aborted', AxiosError$1.ECONNABORTED, config, request)); + + // Clean up request + request = null; + }; + + // Handle low level network errors + request.onerror = function handleError() { + // Real errors are hidden from us by the browser + // onerror should only fire if it's a network error + reject(new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request)); + + // Clean up request + request = null; + }; + + // Handle timeout + request.ontimeout = function handleTimeout() { + let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; + const transitional = config.transitional || transitionalDefaults; + if (config.timeoutErrorMessage) { + timeoutErrorMessage = config.timeoutErrorMessage; + } + reject(new AxiosError$1( + timeoutErrorMessage, + transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED, + config, + request)); + + // Clean up request + request = null; + }; + + // Add xsrf header + // This is only done if running in a standard browser environment. + // Specifically not if we're in a web worker, or react-native. + if(platform.hasStandardBrowserEnv) { + withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config)); + + if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) { + // Add xsrf header + const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName); + + if (xsrfValue) { + requestHeaders.set(config.xsrfHeaderName, xsrfValue); + } + } + } + + // Remove Content-Type if data is undefined + requestData === undefined && requestHeaders.setContentType(null); + + // Add headers to the request + if ('setRequestHeader' in request) { + utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) { + request.setRequestHeader(key, val); + }); + } + + // Add withCredentials to request if needed + if (!utils$1.isUndefined(config.withCredentials)) { + request.withCredentials = !!config.withCredentials; + } + + // Add responseType to request if needed + if (responseType && responseType !== 'json') { + request.responseType = config.responseType; + } + + // Handle progress if needed + if (typeof config.onDownloadProgress === 'function') { + request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true)); + } + + // Not all browsers support upload events + if (typeof config.onUploadProgress === 'function' && request.upload) { + request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress)); + } + + if (config.cancelToken || config.signal) { + // Handle cancellation + // eslint-disable-next-line func-names + onCanceled = cancel => { + if (!request) { + return; + } + reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel); + request.abort(); + request = null; + }; + + config.cancelToken && config.cancelToken.subscribe(onCanceled); + if (config.signal) { + config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); + } + } + + const protocol = parseProtocol(fullPath); + + if (protocol && platform.protocols.indexOf(protocol) === -1) { + reject(new AxiosError$1('Unsupported protocol ' + protocol + ':', AxiosError$1.ERR_BAD_REQUEST, config)); + return; + } + + + // Send the request + request.send(requestData || null); + }); +}; + +const knownAdapters = { + http: httpAdapter, + xhr: xhrAdapter +}; + +utils$1.forEach(knownAdapters, (fn, value) => { + if (fn) { + try { + Object.defineProperty(fn, 'name', {value}); + } catch (e) { + // eslint-disable-next-line no-empty + } + Object.defineProperty(fn, 'adapterName', {value}); + } +}); + +const renderReason = (reason) => `- ${reason}`; + +const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false; + +const adapters = { + getAdapter: (adapters) => { + adapters = utils$1.isArray(adapters) ? adapters : [adapters]; + + const {length} = adapters; + let nameOrAdapter; + let adapter; + + const rejectedReasons = {}; + + for (let i = 0; i < length; i++) { + nameOrAdapter = adapters[i]; + let id; + + adapter = nameOrAdapter; + + if (!isResolvedHandle(nameOrAdapter)) { + adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()]; + + if (adapter === undefined) { + throw new AxiosError$1(`Unknown adapter '${id}'`); + } + } + + if (adapter) { + break; + } + + rejectedReasons[id || '#' + i] = adapter; + } + + if (!adapter) { + + const reasons = Object.entries(rejectedReasons) + .map(([id, state]) => `adapter ${id} ` + + (state === false ? 'is not supported by the environment' : 'is not available in the build') + ); + + let s = length ? + (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) : + 'as no adapter specified'; + + throw new AxiosError$1( + `There is no suitable adapter to dispatch the request ` + s, + 'ERR_NOT_SUPPORT' + ); + } + + return adapter; + }, + adapters: knownAdapters +}; + +/** + * Throws a `CanceledError` if cancellation has been requested. + * + * @param {Object} config The config that is to be used for the request + * + * @returns {void} + */ +function throwIfCancellationRequested(config) { + if (config.cancelToken) { + config.cancelToken.throwIfRequested(); + } + + if (config.signal && config.signal.aborted) { + throw new CanceledError$1(null, config); + } +} + +/** + * Dispatch a request to the server using the configured adapter. + * + * @param {object} config The config that is to be used for the request + * + * @returns {Promise} The Promise to be fulfilled + */ +function dispatchRequest(config) { + throwIfCancellationRequested(config); + + config.headers = AxiosHeaders$2.from(config.headers); + + // Transform request data + config.data = transformData.call( + config, + config.transformRequest + ); + + if (['post', 'put', 'patch'].indexOf(config.method) !== -1) { + config.headers.setContentType('application/x-www-form-urlencoded', false); + } + + const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter); + + return adapter(config).then(function onAdapterResolution(response) { + throwIfCancellationRequested(config); + + // Transform response data + response.data = transformData.call( + config, + config.transformResponse, + response + ); + + response.headers = AxiosHeaders$2.from(response.headers); + + return response; + }, function onAdapterRejection(reason) { + if (!isCancel$1(reason)) { + throwIfCancellationRequested(config); + + // Transform response data + if (reason && reason.response) { + reason.response.data = transformData.call( + config, + config.transformResponse, + reason.response + ); + reason.response.headers = AxiosHeaders$2.from(reason.response.headers); + } + } + + return Promise.reject(reason); + }); +} + +const headersToObject = (thing) => thing instanceof AxiosHeaders$2 ? thing.toJSON() : thing; + +/** + * Config-specific merge-function which creates a new config-object + * by merging two configuration objects together. + * + * @param {Object} config1 + * @param {Object} config2 + * + * @returns {Object} New object resulting from merging config2 to config1 + */ +function mergeConfig$1(config1, config2) { + // eslint-disable-next-line no-param-reassign + config2 = config2 || {}; + const config = {}; + + function getMergedValue(target, source, caseless) { + if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) { + return utils$1.merge.call({caseless}, target, source); + } else if (utils$1.isPlainObject(source)) { + return utils$1.merge({}, source); + } else if (utils$1.isArray(source)) { + return source.slice(); + } + return source; + } + + // eslint-disable-next-line consistent-return + function mergeDeepProperties(a, b, caseless) { + if (!utils$1.isUndefined(b)) { + return getMergedValue(a, b, caseless); + } else if (!utils$1.isUndefined(a)) { + return getMergedValue(undefined, a, caseless); + } + } + + // eslint-disable-next-line consistent-return + function valueFromConfig2(a, b) { + if (!utils$1.isUndefined(b)) { + return getMergedValue(undefined, b); + } + } + + // eslint-disable-next-line consistent-return + function defaultToConfig2(a, b) { + if (!utils$1.isUndefined(b)) { + return getMergedValue(undefined, b); + } else if (!utils$1.isUndefined(a)) { + return getMergedValue(undefined, a); + } + } + + // eslint-disable-next-line consistent-return + function mergeDirectKeys(a, b, prop) { + if (prop in config2) { + return getMergedValue(a, b); + } else if (prop in config1) { + return getMergedValue(undefined, a); + } + } + + const mergeMap = { + url: valueFromConfig2, + method: valueFromConfig2, + data: valueFromConfig2, + baseURL: defaultToConfig2, + transformRequest: defaultToConfig2, + transformResponse: defaultToConfig2, + paramsSerializer: defaultToConfig2, + timeout: defaultToConfig2, + timeoutMessage: defaultToConfig2, + withCredentials: defaultToConfig2, + withXSRFToken: defaultToConfig2, + adapter: defaultToConfig2, + responseType: defaultToConfig2, + xsrfCookieName: defaultToConfig2, + xsrfHeaderName: defaultToConfig2, + onUploadProgress: defaultToConfig2, + onDownloadProgress: defaultToConfig2, + decompress: defaultToConfig2, + maxContentLength: defaultToConfig2, + maxBodyLength: defaultToConfig2, + beforeRedirect: defaultToConfig2, + transport: defaultToConfig2, + httpAgent: defaultToConfig2, + httpsAgent: defaultToConfig2, + cancelToken: defaultToConfig2, + socketPath: defaultToConfig2, + responseEncoding: defaultToConfig2, + validateStatus: mergeDirectKeys, + headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true) + }; + + utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) { + const merge = mergeMap[prop] || mergeDeepProperties; + const configValue = merge(config1[prop], config2[prop], prop); + (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue); + }); + + return config; +} + +const VERSION$1 = "1.6.7"; + +const validators$1 = {}; + +// eslint-disable-next-line func-names +['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => { + validators$1[type] = function validator(thing) { + return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; + }; +}); + +const deprecatedWarnings = {}; + +/** + * Transitional option validator + * + * @param {function|boolean?} validator - set to false if the transitional option has been removed + * @param {string?} version - deprecated version / removed since version + * @param {string?} message - some message with additional info + * + * @returns {function} + */ +validators$1.transitional = function transitional(validator, version, message) { + function formatMessage(opt, desc) { + return '[Axios v' + VERSION$1 + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); + } + + // eslint-disable-next-line func-names + return (value, opt, opts) => { + if (validator === false) { + throw new AxiosError$1( + formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), + AxiosError$1.ERR_DEPRECATED + ); + } + + if (version && !deprecatedWarnings[opt]) { + deprecatedWarnings[opt] = true; + // eslint-disable-next-line no-console + console.warn( + formatMessage( + opt, + ' has been deprecated since v' + version + ' and will be removed in the near future' + ) + ); + } + + return validator ? validator(value, opt, opts) : true; + }; +}; + +/** + * Assert object's properties type + * + * @param {object} options + * @param {object} schema + * @param {boolean?} allowUnknown + * + * @returns {object} + */ + +function assertOptions(options, schema, allowUnknown) { + if (typeof options !== 'object') { + throw new AxiosError$1('options must be an object', AxiosError$1.ERR_BAD_OPTION_VALUE); + } + const keys = Object.keys(options); + let i = keys.length; + while (i-- > 0) { + const opt = keys[i]; + const validator = schema[opt]; + if (validator) { + const value = options[opt]; + const result = value === undefined || validator(value, opt, options); + if (result !== true) { + throw new AxiosError$1('option ' + opt + ' must be ' + result, AxiosError$1.ERR_BAD_OPTION_VALUE); + } + continue; + } + if (allowUnknown !== true) { + throw new AxiosError$1('Unknown option ' + opt, AxiosError$1.ERR_BAD_OPTION); + } + } +} + +const validator = { + assertOptions, + validators: validators$1 +}; + +const validators = validator.validators; + +/** + * Create a new instance of Axios + * + * @param {Object} instanceConfig The default config for the instance + * + * @return {Axios} A new instance of Axios + */ +class Axios$1 { + constructor(instanceConfig) { + this.defaults = instanceConfig; + this.interceptors = { + request: new InterceptorManager$1(), + response: new InterceptorManager$1() + }; + } + + /** + * Dispatch a request + * + * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) + * @param {?Object} config + * + * @returns {Promise} The Promise to be fulfilled + */ + async request(configOrUrl, config) { + try { + return await this._request(configOrUrl, config); + } catch (err) { + if (err instanceof Error) { + let dummy; + + Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error()); + + // slice off the Error: ... line + const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : ''; + + if (!err.stack) { + err.stack = stack; + // match without the 2 top stack lines + } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) { + err.stack += '\n' + stack; + } + } + + throw err; + } + } + + _request(configOrUrl, config) { + /*eslint no-param-reassign:0*/ + // Allow for axios('example/url'[, config]) a la fetch API + if (typeof configOrUrl === 'string') { + config = config || {}; + config.url = configOrUrl; + } else { + config = configOrUrl || {}; + } + + config = mergeConfig$1(this.defaults, config); + + const {transitional, paramsSerializer, headers} = config; + + if (transitional !== undefined) { + validator.assertOptions(transitional, { + silentJSONParsing: validators.transitional(validators.boolean), + forcedJSONParsing: validators.transitional(validators.boolean), + clarifyTimeoutError: validators.transitional(validators.boolean) + }, false); + } + + if (paramsSerializer != null) { + if (utils$1.isFunction(paramsSerializer)) { + config.paramsSerializer = { + serialize: paramsSerializer + }; + } else { + validator.assertOptions(paramsSerializer, { + encode: validators.function, + serialize: validators.function + }, true); + } + } + + // Set config.method + config.method = (config.method || this.defaults.method || 'get').toLowerCase(); + + // Flatten headers + let contextHeaders = headers && utils$1.merge( + headers.common, + headers[config.method] + ); + + headers && utils$1.forEach( + ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], + (method) => { + delete headers[method]; + } + ); + + config.headers = AxiosHeaders$2.concat(contextHeaders, headers); + + // filter out skipped interceptors + const requestInterceptorChain = []; + let synchronousRequestInterceptors = true; + this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { + if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { + return; + } + + synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; + + requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); + }); + + const responseInterceptorChain = []; + this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { + responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); + }); + + let promise; + let i = 0; + let len; + + if (!synchronousRequestInterceptors) { + const chain = [dispatchRequest.bind(this), undefined]; + chain.unshift.apply(chain, requestInterceptorChain); + chain.push.apply(chain, responseInterceptorChain); + len = chain.length; + + promise = Promise.resolve(config); + + while (i < len) { + promise = promise.then(chain[i++], chain[i++]); + } + + return promise; + } + + len = requestInterceptorChain.length; + + let newConfig = config; + + i = 0; + + while (i < len) { + const onFulfilled = requestInterceptorChain[i++]; + const onRejected = requestInterceptorChain[i++]; + try { + newConfig = onFulfilled(newConfig); + } catch (error) { + onRejected.call(this, error); + break; + } + } + + try { + promise = dispatchRequest.call(this, newConfig); + } catch (error) { + return Promise.reject(error); + } + + i = 0; + len = responseInterceptorChain.length; + + while (i < len) { + promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); + } + + return promise; + } + + getUri(config) { + config = mergeConfig$1(this.defaults, config); + const fullPath = buildFullPath(config.baseURL, config.url); + return buildURL(fullPath, config.params, config.paramsSerializer); + } +} + +// Provide aliases for supported request methods +utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { + /*eslint func-names:0*/ + Axios$1.prototype[method] = function(url, config) { + return this.request(mergeConfig$1(config || {}, { + method, + url, + data: (config || {}).data + })); + }; +}); + +utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { + /*eslint func-names:0*/ + + function generateHTTPMethod(isForm) { + return function httpMethod(url, data, config) { + return this.request(mergeConfig$1(config || {}, { + method, + headers: isForm ? { + 'Content-Type': 'multipart/form-data' + } : {}, + url, + data + })); + }; + } + + Axios$1.prototype[method] = generateHTTPMethod(); + + Axios$1.prototype[method + 'Form'] = generateHTTPMethod(true); +}); + +const Axios$2 = Axios$1; + +/** + * A `CancelToken` is an object that can be used to request cancellation of an operation. + * + * @param {Function} executor The executor function. + * + * @returns {CancelToken} + */ +class CancelToken$1 { + constructor(executor) { + if (typeof executor !== 'function') { + throw new TypeError('executor must be a function.'); + } + + let resolvePromise; + + this.promise = new Promise(function promiseExecutor(resolve) { + resolvePromise = resolve; + }); + + const token = this; + + // eslint-disable-next-line func-names + this.promise.then(cancel => { + if (!token._listeners) return; + + let i = token._listeners.length; + + while (i-- > 0) { + token._listeners[i](cancel); + } + token._listeners = null; + }); + + // eslint-disable-next-line func-names + this.promise.then = onfulfilled => { + let _resolve; + // eslint-disable-next-line func-names + const promise = new Promise(resolve => { + token.subscribe(resolve); + _resolve = resolve; + }).then(onfulfilled); + + promise.cancel = function reject() { + token.unsubscribe(_resolve); + }; + + return promise; + }; + + executor(function cancel(message, config, request) { + if (token.reason) { + // Cancellation has already been requested + return; + } + + token.reason = new CanceledError$1(message, config, request); + resolvePromise(token.reason); + }); + } + + /** + * Throws a `CanceledError` if cancellation has been requested. + */ + throwIfRequested() { + if (this.reason) { + throw this.reason; + } + } + + /** + * Subscribe to the cancel signal + */ + + subscribe(listener) { + if (this.reason) { + listener(this.reason); + return; + } + + if (this._listeners) { + this._listeners.push(listener); + } else { + this._listeners = [listener]; + } + } + + /** + * Unsubscribe from the cancel signal + */ + + unsubscribe(listener) { + if (!this._listeners) { + return; + } + const index = this._listeners.indexOf(listener); + if (index !== -1) { + this._listeners.splice(index, 1); + } + } + + /** + * Returns an object that contains a new `CancelToken` and a function that, when called, + * cancels the `CancelToken`. + */ + static source() { + let cancel; + const token = new CancelToken$1(function executor(c) { + cancel = c; + }); + return { + token, + cancel + }; + } +} + +const CancelToken$2 = CancelToken$1; + +/** + * Syntactic sugar for invoking a function and expanding an array for arguments. + * + * Common use case would be to use `Function.prototype.apply`. + * + * ```js + * function f(x, y, z) {} + * var args = [1, 2, 3]; + * f.apply(null, args); + * ``` + * + * With `spread` this example can be re-written. + * + * ```js + * spread(function(x, y, z) {})([1, 2, 3]); + * ``` + * + * @param {Function} callback + * + * @returns {Function} + */ +function spread$1(callback) { + return function wrap(arr) { + return callback.apply(null, arr); + }; +} + +/** + * Determines whether the payload is an error thrown by Axios + * + * @param {*} payload The value to test + * + * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false + */ +function isAxiosError$1(payload) { + return utils$1.isObject(payload) && (payload.isAxiosError === true); +} + +const HttpStatusCode$1 = { + Continue: 100, + SwitchingProtocols: 101, + Processing: 102, + EarlyHints: 103, + Ok: 200, + Created: 201, + Accepted: 202, + NonAuthoritativeInformation: 203, + NoContent: 204, + ResetContent: 205, + PartialContent: 206, + MultiStatus: 207, + AlreadyReported: 208, + ImUsed: 226, + MultipleChoices: 300, + MovedPermanently: 301, + Found: 302, + SeeOther: 303, + NotModified: 304, + UseProxy: 305, + Unused: 306, + TemporaryRedirect: 307, + PermanentRedirect: 308, + BadRequest: 400, + Unauthorized: 401, + PaymentRequired: 402, + Forbidden: 403, + NotFound: 404, + MethodNotAllowed: 405, + NotAcceptable: 406, + ProxyAuthenticationRequired: 407, + RequestTimeout: 408, + Conflict: 409, + Gone: 410, + LengthRequired: 411, + PreconditionFailed: 412, + PayloadTooLarge: 413, + UriTooLong: 414, + UnsupportedMediaType: 415, + RangeNotSatisfiable: 416, + ExpectationFailed: 417, + ImATeapot: 418, + MisdirectedRequest: 421, + UnprocessableEntity: 422, + Locked: 423, + FailedDependency: 424, + TooEarly: 425, + UpgradeRequired: 426, + PreconditionRequired: 428, + TooManyRequests: 429, + RequestHeaderFieldsTooLarge: 431, + UnavailableForLegalReasons: 451, + InternalServerError: 500, + NotImplemented: 501, + BadGateway: 502, + ServiceUnavailable: 503, + GatewayTimeout: 504, + HttpVersionNotSupported: 505, + VariantAlsoNegotiates: 506, + InsufficientStorage: 507, + LoopDetected: 508, + NotExtended: 510, + NetworkAuthenticationRequired: 511, +}; + +Object.entries(HttpStatusCode$1).forEach(([key, value]) => { + HttpStatusCode$1[value] = key; +}); + +const HttpStatusCode$2 = HttpStatusCode$1; + +/** + * Create an instance of Axios + * + * @param {Object} defaultConfig The default config for the instance + * + * @returns {Axios} A new instance of Axios + */ +function createInstance(defaultConfig) { + const context = new Axios$2(defaultConfig); + const instance = bind(Axios$2.prototype.request, context); + + // Copy axios.prototype to instance + utils$1.extend(instance, Axios$2.prototype, context, {allOwnKeys: true}); + + // Copy context to instance + utils$1.extend(instance, context, null, {allOwnKeys: true}); + + // Factory for creating new instances + instance.create = function create(instanceConfig) { + return createInstance(mergeConfig$1(defaultConfig, instanceConfig)); + }; + + return instance; +} + +// Create the default instance to be exported +const axios = createInstance(defaults$1); + +// Expose Axios class to allow class inheritance +axios.Axios = Axios$2; + +// Expose Cancel & CancelToken +axios.CanceledError = CanceledError$1; +axios.CancelToken = CancelToken$2; +axios.isCancel = isCancel$1; +axios.VERSION = VERSION$1; +axios.toFormData = toFormData$1; + +// Expose AxiosError class +axios.AxiosError = AxiosError$1; + +// alias for CanceledError for backward compatibility +axios.Cancel = axios.CanceledError; + +// Expose all/spread +axios.all = function all(promises) { + return Promise.all(promises); +}; + +axios.spread = spread$1; + +// Expose isAxiosError +axios.isAxiosError = isAxiosError$1; + +// Expose mergeConfig +axios.mergeConfig = mergeConfig$1; + +axios.AxiosHeaders = AxiosHeaders$2; + +axios.formToJSON = thing => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing); + +axios.getAdapter = adapters.getAdapter; + +axios.HttpStatusCode = HttpStatusCode$2; + +axios.default = axios; + +// this module should only have a default export +const axios$1 = axios; + +// This module is intended to unwrap Axios default export as named. +// Keep top-level export same with static properties +// so that it can keep same with es module or cjs +const { + Axios, + AxiosError, + CanceledError, + isCancel, + CancelToken, + VERSION, + all, + Cancel, + isAxiosError, + spread, + toFormData, + AxiosHeaders, + HttpStatusCode, + formToJSON, + getAdapter, + mergeConfig +} = axios$1; + +export { Axios, AxiosError, AxiosHeaders, Cancel, CancelToken, CanceledError, HttpStatusCode, VERSION, all, axios$1 as default, formToJSON, getAdapter, isAxiosError, isCancel, mergeConfig, spread, toFormData }; +//# sourceMappingURL=axios.js.map diff --git a/Scripts/node_modules/axios/dist/esm/axios.js.map b/Scripts/node_modules/axios/dist/esm/axios.js.map new file mode 100644 index 00000000..7031b7d2 --- /dev/null +++ b/Scripts/node_modules/axios/dist/esm/axios.js.map @@ -0,0 +1 @@ +{"version":3,"file":"axios.js","sources":["../../lib/helpers/bind.js","../../lib/utils.js","../../lib/core/AxiosError.js","../../lib/helpers/null.js","../../lib/helpers/toFormData.js","../../lib/helpers/AxiosURLSearchParams.js","../../lib/helpers/buildURL.js","../../lib/core/InterceptorManager.js","../../lib/defaults/transitional.js","../../lib/platform/browser/classes/URLSearchParams.js","../../lib/platform/browser/classes/FormData.js","../../lib/platform/browser/classes/Blob.js","../../lib/platform/browser/index.js","../../lib/platform/common/utils.js","../../lib/platform/index.js","../../lib/helpers/toURLEncodedForm.js","../../lib/helpers/formDataToJSON.js","../../lib/defaults/index.js","../../lib/helpers/parseHeaders.js","../../lib/core/AxiosHeaders.js","../../lib/core/transformData.js","../../lib/cancel/isCancel.js","../../lib/cancel/CanceledError.js","../../lib/core/settle.js","../../lib/helpers/cookies.js","../../lib/helpers/isAbsoluteURL.js","../../lib/helpers/combineURLs.js","../../lib/core/buildFullPath.js","../../lib/helpers/isURLSameOrigin.js","../../lib/helpers/parseProtocol.js","../../lib/helpers/speedometer.js","../../lib/adapters/xhr.js","../../lib/adapters/adapters.js","../../lib/core/dispatchRequest.js","../../lib/core/mergeConfig.js","../../lib/env/data.js","../../lib/helpers/validator.js","../../lib/core/Axios.js","../../lib/cancel/CancelToken.js","../../lib/helpers/spread.js","../../lib/helpers/isAxiosError.js","../../lib/helpers/HttpStatusCode.js","../../lib/axios.js","../../index.js"],"sourcesContent":["'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = (\n (product) => {\n return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0\n })(typeof navigator !== 'undefined' && navigator.product);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders.from(config.headers).normalize();\n let {responseType, withXSRFToken} = config;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n let contentType;\n\n if (utils.isFormData(requestData)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n requestHeaders.setContentType(false); // Let the browser set it\n } else if ((contentType = requestHeaders.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if(platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {\n // Add xsrf header\n const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? thing.toJSON() : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","export const VERSION = \"1.6.7\";","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy;\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","import axios from './lib/axios.js';\n\n// This module is intended to unwrap Axios default export as named.\n// Keep top-level export same with static properties\n// so that it can keep same with es module or cjs\nconst {\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n getAdapter,\n mergeConfig\n} = axios;\n\nexport {\n axios as default,\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n getAdapter,\n mergeConfig\n}\n"],"names":["AxiosError","utils","prototype","toFormData","encode","URLSearchParams","FormData","Blob","platform","AxiosHeaders","defaults","isCancel","CanceledError","mergeConfig","VERSION","validators","Axios","InterceptorManager","CancelToken","spread","isAxiosError","HttpStatusCode","axios"],"mappings":";AAEe,SAAS,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE;AAC1C,EAAE,OAAO,SAAS,IAAI,GAAG;AACzB,IAAI,OAAO,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AACxC,GAAG,CAAC;AACJ;;ACFA;AACA;AACA,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC;AACpC,MAAM,CAAC,cAAc,CAAC,GAAG,MAAM,CAAC;AAChC;AACA,MAAM,MAAM,GAAG,CAAC,KAAK,IAAI,KAAK,IAAI;AAClC,IAAI,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACrC,IAAI,OAAO,KAAK,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,KAAK,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AAC;AAClG;AACA,KAAK,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;AACvC;AACA,KAAK,CAAC,cAAc,GAAGoB,gBAAc,CAAC;AACtC;AACA,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;AACtB;AACA;AACA,gBAAe;;ACtFf;AACA;AACA;AACK,MAAC;AACN,EAAE,KAAK;AACP,EAAE,UAAU;AACZ,EAAE,aAAa;AACf,EAAE,QAAQ;AACV,EAAE,WAAW;AACb,EAAE,OAAO;AACT,EAAE,GAAG;AACL,EAAE,MAAM;AACR,EAAE,YAAY;AACd,EAAE,MAAM;AACR,EAAE,UAAU;AACZ,EAAE,YAAY;AACd,EAAE,cAAc;AAChB,EAAE,UAAU;AACZ,EAAE,UAAU;AACZ,EAAE,WAAW;AACb,CAAC,GAAGC;;;;"} \ No newline at end of file diff --git a/Scripts/node_modules/axios/dist/esm/axios.min.js b/Scripts/node_modules/axios/dist/esm/axios.min.js new file mode 100644 index 00000000..a4caede8 --- /dev/null +++ b/Scripts/node_modules/axios/dist/esm/axios.min.js @@ -0,0 +1,2 @@ +function e(e,t){return function(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype,{getPrototypeOf:n}=Object,r=(o=Object.create(null),e=>{const n=t.call(e);return o[n]||(o[n]=n.slice(8,-1).toLowerCase())});var o;const s=e=>(e=e.toLowerCase(),t=>r(t)===e),i=e=>t=>typeof t===e,{isArray:a}=Array,c=i("undefined");const u=s("ArrayBuffer");const l=i("string"),f=i("function"),d=i("number"),p=e=>null!==e&&"object"==typeof e,h=e=>{if("object"!==r(e))return!1;const t=n(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},m=s("Date"),y=s("File"),g=s("Blob"),b=s("FileList"),E=s("URLSearchParams");function w(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),a(e))for(r=0,o=e.length;r0;)if(r=n[o],t===r.toLowerCase())return r;return null}const S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,R=e=>!c(e)&&e!==S;const A=(T="undefined"!=typeof Uint8Array&&n(Uint8Array),e=>T&&e instanceof T);var T;const j=s("HTMLFormElement"),C=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),N=s("RegExp"),v=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};w(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},x="abcdefghijklmnopqrstuvwxyz",P={DIGIT:"0123456789",ALPHA:x,ALPHA_DIGIT:x+x.toUpperCase()+"0123456789"};const _=s("AsyncFunction"),F={isArray:a,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=r(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer),t},isString:l,isNumber:d,isBoolean:e=>!0===e||!1===e,isObject:p,isPlainObject:h,isUndefined:c,isDate:m,isFile:y,isBlob:g,isRegExp:N,isFunction:f,isStream:e=>p(e)&&f(e.pipe),isURLSearchParams:E,isTypedArray:A,isFileList:b,forEach:w,merge:function e(){const{caseless:t}=R(this)&&this||{},n={},r=(r,o)=>{const s=t&&O(n,o)||o;h(n[s])&&h(r)?n[s]=e(n[s],r):h(r)?n[s]=e({},r):a(r)?n[s]=r.slice():n[s]=r};for(let e=0,t=arguments.length;e(w(n,((n,o)=>{r&&f(n)?t[o]=e(n,r):t[o]=n}),{allOwnKeys:o}),t),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,r,o)=>{let s,i,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],o&&!o(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==r&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:r,kindOfTest:s,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(a(e))return e;let t=e.length;if(!d(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:j,hasOwnProperty:C,hasOwnProp:C,reduceDescriptors:v,freezeMethods:e=>{v(e,((t,n)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];f(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return a(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:O,global:S,isContextDefined:R,ALPHABET:P,generateString:(e=16,t=P.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(p(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=a(e)?[]:{};return w(e,((e,t)=>{const s=n(e,r+1);!c(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:_,isThenable:e=>e&&(p(e)||f(e))&&f(e.then)&&f(e.catch)};function U(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}F.inherits(U,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:F.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const B=U.prototype,D={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{D[e]={value:e}})),Object.defineProperties(U,D),Object.defineProperty(B,"isAxiosError",{value:!0}),U.from=(e,t,n,r,o,s)=>{const i=Object.create(B);return F.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),U.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};function L(e){return F.isPlainObject(e)||F.isArray(e)}function k(e){return F.endsWith(e,"[]")?e.slice(0,-2):e}function q(e,t,n){return e?e.concat(t).map((function(e,t){return e=k(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const I=F.toFlatObject(F,{},null,(function(e){return/^is[A-Z]/.test(e)}));function z(e,t,n){if(!F.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=F.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!F.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&F.isSpecCompliantForm(t);if(!F.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(F.isDate(e))return e.toISOString();if(!a&&F.isBlob(e))throw new U("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(e)||F.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(F.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(F.isArray(e)&&function(e){return F.isArray(e)&&!e.some(L)}(e)||(F.isFileList(e)||F.endsWith(n,"[]"))&&(a=F.toArray(e)))return n=k(n),a.forEach((function(e,r){!F.isUndefined(e)&&null!==e&&t.append(!0===i?q([n],r,s):null===i?n:n+"[]",c(e))})),!1;return!!L(e)||(t.append(q(o,n,s),c(e)),!1)}const l=[],f=Object.assign(I,{defaultVisitor:u,convertValue:c,isVisitable:L});if(!F.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!F.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),F.forEach(n,(function(n,s){!0===(!(F.isUndefined(n)||null===n)&&o.call(t,n,F.isString(s)?s.trim():s,r,f))&&e(n,r?r.concat(s):[s])})),l.pop()}}(e),t}function M(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function H(e,t){this._pairs=[],e&&z(e,this,t)}const J=H.prototype;function W(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function V(e,t,n){if(!t)return e;const r=n&&n.encode||W,o=n&&n.serialize;let s;if(s=o?o(t,n):F.isURLSearchParams(t)?t.toString():new H(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}J.append=function(e,t){this._pairs.push([e,t])},J.toString=function(e){const t=e?function(t){return e.call(this,t,M)}:M;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const K=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){F.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},G={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:H,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},X="undefined"!=typeof window&&"undefined"!=typeof document,Q=(Z="undefined"!=typeof navigator&&navigator.product,X&&["ReactNative","NativeScript","NS"].indexOf(Z)<0);var Z;const Y="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ee={...Object.freeze({__proto__:null,hasBrowserEnv:X,hasStandardBrowserWebWorkerEnv:Y,hasStandardBrowserEnv:Q}),...$};function te(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&F.isArray(r)?r.length:s,a)return F.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i;r[s]&&F.isObject(r[s])||(r[s]=[]);return t(e,n,r[s],o)&&F.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r{t(function(e){return F.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ne={transitional:G,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=F.isObject(e);o&&F.isHTMLForm(e)&&(e=new FormData(e));if(F.isFormData(e))return r?JSON.stringify(te(e)):e;if(F.isArrayBuffer(e)||F.isBuffer(e)||F.isStream(e)||F.isFile(e)||F.isBlob(e))return e;if(F.isArrayBufferView(e))return e.buffer;if(F.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return z(e,new ee.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ee.isNode&&F.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=F.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return z(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(F.isString(e))try{return(t||JSON.parse)(e),F.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ne.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&F.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw U.from(e,U.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ee.classes.FormData,Blob:ee.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch"],(e=>{ne.headers[e]={}}));const re=ne,oe=F.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),se=Symbol("internals");function ie(e){return e&&String(e).trim().toLowerCase()}function ae(e){return!1===e||null==e?e:F.isArray(e)?e.map(ae):String(e)}function ce(e,t,n,r,o){return F.isFunction(r)?r.call(this,t,n):(o&&(t=n),F.isString(t)?F.isString(r)?-1!==t.indexOf(r):F.isRegExp(r)?r.test(t):void 0:void 0)}class ue{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ie(t);if(!o)throw new Error("header name must be a non-empty string");const s=F.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=ae(e))}const s=(e,t)=>F.forEach(e,((e,n)=>o(e,n,t)));return F.isPlainObject(e)||e instanceof this.constructor?s(e,t):F.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&oe[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=ie(e)){const n=F.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(F.isFunction(t))return t.call(this,e,n);if(F.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ie(e)){const n=F.findKey(this,e);return!(!n||void 0===this[n]||t&&!ce(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ie(e)){const o=F.findKey(n,e);!o||t&&!ce(0,n[o],o,t)||(delete n[o],r=!0)}}return F.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ce(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return F.forEach(this,((r,o)=>{const s=F.findKey(n,o);if(s)return t[s]=ae(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=ae(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return F.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&F.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[se]=this[se]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ie(e);t[r]||(!function(e,t){const n=F.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return F.isArray(e)?e.forEach(r):r(e),this}}ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),F.reduceDescriptors(ue.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),F.freezeMethods(ue);const le=ue;function fe(e,t){const n=this||re,r=t||n,o=le.from(r.headers);let s=r.data;return F.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function de(e){return!(!e||!e.__CANCEL__)}function pe(e,t,n){U.call(this,null==e?"canceled":e,U.ERR_CANCELED,t,n),this.name="CanceledError"}F.inherits(pe,U,{__CANCEL__:!0});const he=ee.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];F.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),F.isString(r)&&i.push("path="+r),F.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function me(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ye=ee.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=F.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function ge(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,f=0;for(;l!==s;)f+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,c=r(a);n=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const be={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=le.from(e.headers).normalize();let s,i,{responseType:a,withXSRFToken:c}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}if(F.isFormData(r))if(ee.hasStandardBrowserEnv||ee.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(i=o.getContentType())){const[e,...t]=i?i.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const f=me(e.baseURL,e.url);function d(){if(!l)return;const r=le.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new U("Request failed with status code "+n.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),u()}),(function(e){n(e),u()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),V(f,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(n(new U("Request aborted",U.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new U("Network Error",U.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||G;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new U(t,r.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,e,l)),l=null},ee.hasStandardBrowserEnv&&(c&&F.isFunction(c)&&(c=c(e)),c||!1!==c&&ye(f))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&he.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&F.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),F.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",ge(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",ge(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{l&&(n(!t||t.type?new pe(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(f);p&&-1===ee.protocols.indexOf(p)?n(new U("Unsupported protocol "+p+":",U.ERR_BAD_REQUEST,e)):l.send(r||null)}))}};F.forEach(be,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ee=e=>`- ${e}`,we=e=>F.isFunction(e)||null===e||!1===e,Oe=e=>{e=F.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new U("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ee).join("\n"):" "+Ee(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Se(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pe(null,e)}function Re(e){Se(e),e.headers=le.from(e.headers),e.data=fe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Oe(e.adapter||re.adapter)(e).then((function(t){return Se(e),t.data=fe.call(e,e.transformResponse,t),t.headers=le.from(t.headers),t}),(function(t){return de(t)||(Se(e),t&&t.response&&(t.response.data=fe.call(e,e.transformResponse,t.response),t.response.headers=le.from(t.response.headers))),Promise.reject(t)}))}const Ae=e=>e instanceof le?e.toJSON():e;function Te(e,t){t=t||{};const n={};function r(e,t,n){return F.isPlainObject(e)&&F.isPlainObject(t)?F.merge.call({caseless:n},e,t):F.isPlainObject(t)?F.merge({},t):F.isArray(t)?t.slice():t}function o(e,t,n){return F.isUndefined(t)?F.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function s(e,t){if(!F.isUndefined(t))return r(void 0,t)}function i(e,t){return F.isUndefined(t)?F.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(Ae(e),Ae(t),!0)};return F.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);F.isUndefined(i)&&s!==a||(n[r]=i)})),n}const je={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{je[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ce={};je.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new U(r(o," has been removed"+(t?" in "+t:"")),U.ERR_DEPRECATED);return t&&!Ce[o]&&(Ce[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}};const Ne={assertOptions:function(e,t,n){if("object"!=typeof e)throw new U("options must be an object",U.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new U("option "+s+" must be "+n,U.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new U("Unknown option "+s,U.ERR_BAD_OPTION)}},validators:je},ve=Ne.validators;class xe{constructor(e){this.defaults=e,this.interceptors={request:new K,response:new K}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Te(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Ne.assertOptions(n,{silentJSONParsing:ve.transitional(ve.boolean),forcedJSONParsing:ve.transitional(ve.boolean),clarifyTimeoutError:ve.transitional(ve.boolean)},!1),null!=r&&(F.isFunction(r)?t.paramsSerializer={serialize:r}:Ne.assertOptions(r,{encode:ve.function,serialize:ve.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&F.merge(o.common,o[t.method]);o&&F.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=le.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[Re.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new pe(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new _e((function(t){e=t})),cancel:e}}}const Fe=_e;const Ue={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ue).forEach((([e,t])=>{Ue[t]=e}));const Be=Ue;const De=function t(n){const r=new Pe(n),o=e(Pe.prototype.request,r);return F.extend(o,Pe.prototype,r,{allOwnKeys:!0}),F.extend(o,r,null,{allOwnKeys:!0}),o.create=function(e){return t(Te(n,e))},o}(re);De.Axios=Pe,De.CanceledError=pe,De.CancelToken=Fe,De.isCancel=de,De.VERSION="1.6.7",De.toFormData=z,De.AxiosError=U,De.Cancel=De.CanceledError,De.all=function(e){return Promise.all(e)},De.spread=function(e){return function(t){return e.apply(null,t)}},De.isAxiosError=function(e){return F.isObject(e)&&!0===e.isAxiosError},De.mergeConfig=Te,De.AxiosHeaders=le,De.formToJSON=e=>te(F.isHTMLForm(e)?new FormData(e):e),De.getAdapter=Oe,De.HttpStatusCode=Be,De.default=De;const Le=De,{Axios:ke,AxiosError:qe,CanceledError:Ie,isCancel:ze,CancelToken:Me,VERSION:He,all:Je,Cancel:We,isAxiosError:Ve,spread:Ke,toFormData:Ge,AxiosHeaders:$e,HttpStatusCode:Xe,formToJSON:Qe,getAdapter:Ze,mergeConfig:Ye}=Le;export{ke as Axios,qe as AxiosError,$e as AxiosHeaders,We as Cancel,Me as CancelToken,Ie as CanceledError,Xe as HttpStatusCode,He as VERSION,Je as all,Le as default,Qe as formToJSON,Ze as getAdapter,Ve as isAxiosError,ze as isCancel,Ye as mergeConfig,Ke as spread,Ge as toFormData}; +//# sourceMappingURL=axios.min.js.map diff --git a/Scripts/node_modules/axios/dist/esm/axios.min.js.map b/Scripts/node_modules/axios/dist/esm/axios.min.js.map new file mode 100644 index 00000000..6a87c762 --- /dev/null +++ b/Scripts/node_modules/axios/dist/esm/axios.min.js.map @@ -0,0 +1 @@ +{"version":3,"file":"axios.min.js","sources":["../../lib/helpers/bind.js","../../lib/utils.js","../../lib/core/AxiosError.js","../../lib/helpers/toFormData.js","../../lib/helpers/AxiosURLSearchParams.js","../../lib/helpers/buildURL.js","../../lib/core/InterceptorManager.js","../../lib/defaults/transitional.js","../../lib/platform/browser/index.js","../../lib/platform/browser/classes/URLSearchParams.js","../../lib/platform/browser/classes/FormData.js","../../lib/platform/browser/classes/Blob.js","../../lib/platform/common/utils.js","../../lib/platform/index.js","../../lib/helpers/formDataToJSON.js","../../lib/defaults/index.js","../../lib/helpers/toURLEncodedForm.js","../../lib/helpers/parseHeaders.js","../../lib/core/AxiosHeaders.js","../../lib/core/transformData.js","../../lib/cancel/isCancel.js","../../lib/cancel/CanceledError.js","../../lib/helpers/cookies.js","../../lib/core/buildFullPath.js","../../lib/helpers/isAbsoluteURL.js","../../lib/helpers/combineURLs.js","../../lib/helpers/isURLSameOrigin.js","../../lib/adapters/xhr.js","../../lib/helpers/speedometer.js","../../lib/adapters/adapters.js","../../lib/helpers/null.js","../../lib/core/settle.js","../../lib/helpers/parseProtocol.js","../../lib/core/dispatchRequest.js","../../lib/core/mergeConfig.js","../../lib/env/data.js","../../lib/helpers/validator.js","../../lib/core/Axios.js","../../lib/cancel/CancelToken.js","../../lib/helpers/HttpStatusCode.js","../../lib/axios.js","../../lib/helpers/spread.js","../../lib/helpers/isAxiosError.js","../../index.js"],"sourcesContent":["'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = (\n (product) => {\n return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0\n })(typeof navigator !== 'undefined' && navigator.product);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders.from(config.headers).normalize();\n let {responseType, withXSRFToken} = config;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n let contentType;\n\n if (utils.isFormData(requestData)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n requestHeaders.setContentType(false); // Let the browser set it\n } else if ((contentType = requestHeaders.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if(platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {\n // Add xsrf header\n const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? thing.toJSON() : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","export const VERSION = \"1.6.7\";","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy;\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","import axios from './lib/axios.js';\n\n// This module is intended to unwrap Axios default export as named.\n// Keep top-level export same with static properties\n// so that it can keep same with es module or cjs\nconst {\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n getAdapter,\n mergeConfig\n} = axios;\n\nexport {\n axios as default,\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n getAdapter,\n mergeConfig\n}\n"],"names":["bind","fn","thisArg","apply","arguments","toString","Object","prototype","getPrototypeOf","kindOf","cache","create","thing","str","call","slice","toLowerCase","kindOfTest","type","typeOfTest","isArray","Array","isUndefined","isArrayBuffer","isString","isFunction","isNumber","isObject","isPlainObject","val","Symbol","toStringTag","iterator","isDate","isFile","isBlob","isFileList","isURLSearchParams","forEach","obj","allOwnKeys","i","l","length","keys","getOwnPropertyNames","len","key","findKey","_key","_global","globalThis","self","window","global","isContextDefined","context","isTypedArray","TypedArray","Uint8Array","isHTMLForm","hasOwnProperty","prop","isRegExp","reduceDescriptors","reducer","descriptors","getOwnPropertyDescriptors","reducedDescriptors","descriptor","name","ret","defineProperties","ALPHA","ALPHABET","DIGIT","ALPHA_DIGIT","toUpperCase","isAsyncFn","utils$1","isBuffer","constructor","isFormData","kind","FormData","append","isArrayBufferView","result","ArrayBuffer","isView","buffer","isBoolean","isStream","pipe","merge","caseless","this","assignValue","targetKey","extend","a","b","trim","replace","stripBOM","content","charCodeAt","inherits","superConstructor","props","defineProperty","value","assign","toFlatObject","sourceObj","destObj","filter","propFilter","merged","endsWith","searchString","position","String","undefined","lastIndex","indexOf","toArray","arr","forEachEntry","next","done","pair","matchAll","regExp","matches","exec","push","hasOwnProp","freezeMethods","enumerable","writable","set","Error","toObjectSet","arrayOrString","delimiter","define","split","toCamelCase","m","p1","p2","noop","toFiniteNumber","defaultValue","Number","isFinite","generateString","size","alphabet","Math","random","isSpecCompliantForm","toJSONObject","stack","visit","source","target","reducedValue","isThenable","then","catch","AxiosError","message","code","config","request","response","captureStackTrace","utils","toJSON","description","number","fileName","lineNumber","columnNumber","status","from","error","customProps","axiosError","cause","isVisitable","removeBrackets","renderKey","path","dots","concat","map","token","join","predicates","test","toFormData","formData","options","TypeError","metaTokens","indexes","option","visitor","defaultVisitor","useBlob","Blob","convertValue","toISOString","Buffer","JSON","stringify","some","isFlatArray","el","index","exposedHelpers","build","pop","encode","charMap","encodeURIComponent","match","AxiosURLSearchParams","params","_pairs","buildURL","url","_encode","serializeFn","serialize","serializedParams","hashmarkIndex","encoder","InterceptorManager$1","handlers","use","fulfilled","rejected","synchronous","runWhen","eject","id","clear","h","transitionalDefaults","silentJSONParsing","forcedJSONParsing","clarifyTimeoutError","platform$1","isBrowser","classes","URLSearchParams","protocols","hasBrowserEnv","document","hasStandardBrowserEnv","product","navigator","hasStandardBrowserWebWorkerEnv","WorkerGlobalScope","importScripts","platform","formDataToJSON","buildPath","isNumericKey","isLast","arrayToObject","entries","parsePropPath","defaults","transitional","adapter","transformRequest","data","headers","contentType","getContentType","hasJSONContentType","isObjectPayload","setContentType","helpers","isNode","toURLEncodedForm","formSerializer","_FormData","env","rawValue","parser","parse","e","stringifySafely","transformResponse","JSONRequested","responseType","strictJSONParsing","ERR_BAD_RESPONSE","timeout","xsrfCookieName","xsrfHeaderName","maxContentLength","maxBodyLength","validateStatus","common","Accept","method","defaults$1","ignoreDuplicateOf","$internals","normalizeHeader","header","normalizeValue","matchHeaderValue","isHeaderNameFilter","AxiosHeaders","valueOrRewrite","rewrite","setHeader","_value","_header","_rewrite","lHeader","setHeaders","rawHeaders","parsed","line","substring","parseHeaders","get","tokens","tokensRE","parseTokens","has","matcher","delete","deleted","deleteHeader","normalize","format","normalized","w","char","formatHeader","targets","asStrings","static","first","computed","accessors","defineAccessor","accessorName","methodName","arg1","arg2","arg3","configurable","buildAccessors","accessor","mapped","headerValue","AxiosHeaders$2","transformData","fns","isCancel","__CANCEL__","CanceledError","ERR_CANCELED","cookies","write","expires","domain","secure","cookie","Date","toGMTString","read","RegExp","decodeURIComponent","remove","now","buildFullPath","baseURL","requestedURL","relativeURL","combineURLs","isURLSameOrigin","msie","userAgent","urlParsingNode","createElement","originURL","resolveURL","href","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","location","requestURL","progressEventReducer","listener","isDownloadStream","bytesNotified","_speedometer","samplesCount","min","bytes","timestamps","firstSampleTS","head","tail","chunkLength","startedAt","bytesCount","passed","round","speedometer","loaded","total","lengthComputable","progressBytes","rate","progress","estimated","event","knownAdapters","http","xhr","XMLHttpRequest","Promise","resolve","reject","requestData","requestHeaders","onCanceled","withXSRFToken","cancelToken","unsubscribe","signal","removeEventListener","Boolean","auth","username","password","unescape","btoa","fullPath","onloadend","responseHeaders","getAllResponseHeaders","ERR_BAD_REQUEST","floor","settle","err","responseText","statusText","open","paramsSerializer","onreadystatechange","readyState","responseURL","setTimeout","onabort","ECONNABORTED","onerror","ERR_NETWORK","ontimeout","timeoutErrorMessage","ETIMEDOUT","xsrfValue","setRequestHeader","withCredentials","onDownloadProgress","addEventListener","onUploadProgress","upload","cancel","abort","subscribe","aborted","parseProtocol","send","renderReason","reason","isResolvedHandle","adapters","nameOrAdapter","rejectedReasons","reasons","state","throwIfCancellationRequested","throwIfRequested","dispatchRequest","headersToObject","mergeConfig","config1","config2","getMergedValue","mergeDeepProperties","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","timeoutMessage","decompress","beforeRedirect","transport","httpAgent","httpsAgent","socketPath","responseEncoding","configValue","validators","deprecatedWarnings","validator","version","formatMessage","opt","desc","opts","ERR_DEPRECATED","console","warn","assertOptions","schema","allowUnknown","ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","Axios","instanceConfig","interceptors","InterceptorManager","async","configOrUrl","_request","dummy","boolean","function","contextHeaders","requestInterceptorChain","synchronousRequestInterceptors","interceptor","unshift","responseInterceptorChain","promise","chain","newConfig","onFulfilled","onRejected","getUri","generateHTTPMethod","isForm","Axios$2","CancelToken","executor","resolvePromise","_listeners","onfulfilled","_resolve","splice","c","CancelToken$2","HttpStatusCode","Continue","SwitchingProtocols","Processing","EarlyHints","Ok","Created","Accepted","NonAuthoritativeInformation","NoContent","ResetContent","PartialContent","MultiStatus","AlreadyReported","ImUsed","MultipleChoices","MovedPermanently","Found","SeeOther","NotModified","UseProxy","Unused","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","LengthRequired","PreconditionFailed","PayloadTooLarge","UriTooLong","UnsupportedMediaType","RangeNotSatisfiable","ExpectationFailed","ImATeapot","MisdirectedRequest","UnprocessableEntity","Locked","FailedDependency","TooEarly","UpgradeRequired","PreconditionRequired","TooManyRequests","RequestHeaderFieldsTooLarge","UnavailableForLegalReasons","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","HttpVersionNotSupported","VariantAlsoNegotiates","InsufficientStorage","LoopDetected","NotExtended","NetworkAuthenticationRequired","HttpStatusCode$2","axios","createInstance","defaultConfig","instance","VERSION","Cancel","all","promises","spread","callback","isAxiosError","payload","formToJSON","getAdapter","default","axios$1"],"mappings":"AAEe,SAASA,EAAKC,EAAIC,GAC/B,OAAO,WACL,OAAOD,EAAGE,MAAMD,EAASE,UAC7B,CACA,CCAA,MAAMC,SAACA,GAAYC,OAAOC,WACpBC,eAACA,GAAkBF,OAEnBG,GAAUC,EAGbJ,OAAOK,OAAO,MAHQC,IACrB,MAAMC,EAAMR,EAASS,KAAKF,GAC1B,OAAOF,EAAMG,KAASH,EAAMG,GAAOA,EAAIE,MAAM,GAAI,GAAGC,cAAc,GAFvD,IAACN,EAKhB,MAAMO,EAAcC,IAClBA,EAAOA,EAAKF,cACJJ,GAAUH,EAAOG,KAAWM,GAGhCC,EAAaD,GAAQN,UAAgBA,IAAUM,GAS/CE,QAACA,GAAWC,MASZC,EAAcH,EAAW,aAqB/B,MAAMI,EAAgBN,EAAW,eA2BjC,MAAMO,EAAWL,EAAW,UAQtBM,EAAaN,EAAW,YASxBO,EAAWP,EAAW,UAStBQ,EAAYf,GAAoB,OAAVA,GAAmC,iBAAVA,EAiB/CgB,EAAiBC,IACrB,GAAoB,WAAhBpB,EAAOoB,GACT,OAAO,EAGT,MAAMtB,EAAYC,EAAeqB,GACjC,QAAsB,OAAdtB,GAAsBA,IAAcD,OAAOC,WAAkD,OAArCD,OAAOE,eAAeD,IAA0BuB,OAAOC,eAAeF,GAAUC,OAAOE,YAAYH,EAAI,EAUnKI,EAAShB,EAAW,QASpBiB,EAASjB,EAAW,QASpBkB,EAASlB,EAAW,QASpBmB,EAAanB,EAAW,YAsCxBoB,EAAoBpB,EAAW,mBA2BrC,SAASqB,EAAQC,EAAKtC,GAAIuC,WAACA,GAAa,GAAS,IAE/C,GAAID,QACF,OAGF,IAAIE,EACAC,EAQJ,GALmB,iBAARH,IAETA,EAAM,CAACA,IAGLnB,EAAQmB,GAEV,IAAKE,EAAI,EAAGC,EAAIH,EAAII,OAAQF,EAAIC,EAAGD,IAC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A,GAAOE,IACPA,GAAGD,OACHA,GAAMK,aACNA,GAAYF,OACZA,GAAM5b,WACNA,GAAUsH,aACVA,GAAY6P,eACZA,GAAc6E,WACdA,GAAUC,WACVA,GAAUlJ,YACVA,IACEqI"} \ No newline at end of file diff --git a/Scripts/node_modules/axios/dist/node/axios.cjs b/Scripts/node_modules/axios/dist/node/axios.cjs new file mode 100644 index 00000000..9099d870 --- /dev/null +++ b/Scripts/node_modules/axios/dist/node/axios.cjs @@ -0,0 +1,4355 @@ +// Axios v1.6.7 Copyright (c) 2024 Matt Zabriskie and contributors +'use strict'; + +const FormData$1 = require('form-data'); +const url = require('url'); +const proxyFromEnv = require('proxy-from-env'); +const http = require('http'); +const https = require('https'); +const util = require('util'); +const followRedirects = require('follow-redirects'); +const zlib = require('zlib'); +const stream = require('stream'); +const EventEmitter = require('events'); + +function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + +const FormData__default = /*#__PURE__*/_interopDefaultLegacy(FormData$1); +const url__default = /*#__PURE__*/_interopDefaultLegacy(url); +const http__default = /*#__PURE__*/_interopDefaultLegacy(http); +const https__default = /*#__PURE__*/_interopDefaultLegacy(https); +const util__default = /*#__PURE__*/_interopDefaultLegacy(util); +const followRedirects__default = /*#__PURE__*/_interopDefaultLegacy(followRedirects); +const zlib__default = /*#__PURE__*/_interopDefaultLegacy(zlib); +const stream__default = /*#__PURE__*/_interopDefaultLegacy(stream); +const EventEmitter__default = /*#__PURE__*/_interopDefaultLegacy(EventEmitter); + +function bind(fn, thisArg) { + return function wrap() { + return fn.apply(thisArg, arguments); + }; +} + +// utils is a library of generic helper functions non-specific to axios + +const {toString} = Object.prototype; +const {getPrototypeOf} = Object; + +const kindOf = (cache => thing => { + const str = toString.call(thing); + return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); +})(Object.create(null)); + +const kindOfTest = (type) => { + type = type.toLowerCase(); + return (thing) => kindOf(thing) === type +}; + +const typeOfTest = type => thing => typeof thing === type; + +/** + * Determine if a value is an Array + * + * @param {Object} val The value to test + * + * @returns {boolean} True if value is an Array, otherwise false + */ +const {isArray} = Array; + +/** + * Determine if a value is undefined + * + * @param {*} val The value to test + * + * @returns {boolean} True if the value is undefined, otherwise false + */ +const isUndefined = typeOfTest('undefined'); + +/** + * Determine if a value is a Buffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Buffer, otherwise false + */ +function isBuffer(val) { + return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) + && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); +} + +/** + * Determine if a value is an ArrayBuffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is an ArrayBuffer, otherwise false + */ +const isArrayBuffer = kindOfTest('ArrayBuffer'); + + +/** + * Determine if a value is a view on an ArrayBuffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false + */ +function isArrayBufferView(val) { + let result; + if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { + result = ArrayBuffer.isView(val); + } else { + result = (val) && (val.buffer) && (isArrayBuffer(val.buffer)); + } + return result; +} + +/** + * Determine if a value is a String + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a String, otherwise false + */ +const isString = typeOfTest('string'); + +/** + * Determine if a value is a Function + * + * @param {*} val The value to test + * @returns {boolean} True if value is a Function, otherwise false + */ +const isFunction = typeOfTest('function'); + +/** + * Determine if a value is a Number + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Number, otherwise false + */ +const isNumber = typeOfTest('number'); + +/** + * Determine if a value is an Object + * + * @param {*} thing The value to test + * + * @returns {boolean} True if value is an Object, otherwise false + */ +const isObject = (thing) => thing !== null && typeof thing === 'object'; + +/** + * Determine if a value is a Boolean + * + * @param {*} thing The value to test + * @returns {boolean} True if value is a Boolean, otherwise false + */ +const isBoolean = thing => thing === true || thing === false; + +/** + * Determine if a value is a plain Object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a plain Object, otherwise false + */ +const isPlainObject = (val) => { + if (kindOf(val) !== 'object') { + return false; + } + + const prototype = getPrototypeOf(val); + return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); +}; + +/** + * Determine if a value is a Date + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Date, otherwise false + */ +const isDate = kindOfTest('Date'); + +/** + * Determine if a value is a File + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a File, otherwise false + */ +const isFile = kindOfTest('File'); + +/** + * Determine if a value is a Blob + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Blob, otherwise false + */ +const isBlob = kindOfTest('Blob'); + +/** + * Determine if a value is a FileList + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a File, otherwise false + */ +const isFileList = kindOfTest('FileList'); + +/** + * Determine if a value is a Stream + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Stream, otherwise false + */ +const isStream = (val) => isObject(val) && isFunction(val.pipe); + +/** + * Determine if a value is a FormData + * + * @param {*} thing The value to test + * + * @returns {boolean} True if value is an FormData, otherwise false + */ +const isFormData = (thing) => { + let kind; + return thing && ( + (typeof FormData === 'function' && thing instanceof FormData) || ( + isFunction(thing.append) && ( + (kind = kindOf(thing)) === 'formdata' || + // detect form-data instance + (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]') + ) + ) + ) +}; + +/** + * Determine if a value is a URLSearchParams object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a URLSearchParams object, otherwise false + */ +const isURLSearchParams = kindOfTest('URLSearchParams'); + +/** + * Trim excess whitespace off the beginning and end of a string + * + * @param {String} str The String to trim + * + * @returns {String} The String freed of excess whitespace + */ +const trim = (str) => str.trim ? + str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); + +/** + * Iterate over an Array or an Object invoking a function for each item. + * + * If `obj` is an Array callback will be called passing + * the value, index, and complete array for each item. + * + * If 'obj' is an Object callback will be called passing + * the value, key, and complete object for each property. + * + * @param {Object|Array} obj The object to iterate + * @param {Function} fn The callback to invoke for each item + * + * @param {Boolean} [allOwnKeys = false] + * @returns {any} + */ +function forEach(obj, fn, {allOwnKeys = false} = {}) { + // Don't bother if no value provided + if (obj === null || typeof obj === 'undefined') { + return; + } + + let i; + let l; + + // Force an array if not already something iterable + if (typeof obj !== 'object') { + /*eslint no-param-reassign:0*/ + obj = [obj]; + } + + if (isArray(obj)) { + // Iterate over array values + for (i = 0, l = obj.length; i < l; i++) { + fn.call(null, obj[i], i, obj); + } + } else { + // Iterate over object keys + const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); + const len = keys.length; + let key; + + for (i = 0; i < len; i++) { + key = keys[i]; + fn.call(null, obj[key], key, obj); + } + } +} + +function findKey(obj, key) { + key = key.toLowerCase(); + const keys = Object.keys(obj); + let i = keys.length; + let _key; + while (i-- > 0) { + _key = keys[i]; + if (key === _key.toLowerCase()) { + return _key; + } + } + return null; +} + +const _global = (() => { + /*eslint no-undef:0*/ + if (typeof globalThis !== "undefined") return globalThis; + return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global) +})(); + +const isContextDefined = (context) => !isUndefined(context) && context !== _global; + +/** + * Accepts varargs expecting each argument to be an object, then + * immutably merges the properties of each object and returns result. + * + * When multiple objects contain the same key the later object in + * the arguments list will take precedence. + * + * Example: + * + * ```js + * var result = merge({foo: 123}, {foo: 456}); + * console.log(result.foo); // outputs 456 + * ``` + * + * @param {Object} obj1 Object to merge + * + * @returns {Object} Result of all merge properties + */ +function merge(/* obj1, obj2, obj3, ... */) { + const {caseless} = isContextDefined(this) && this || {}; + const result = {}; + const assignValue = (val, key) => { + const targetKey = caseless && findKey(result, key) || key; + if (isPlainObject(result[targetKey]) && isPlainObject(val)) { + result[targetKey] = merge(result[targetKey], val); + } else if (isPlainObject(val)) { + result[targetKey] = merge({}, val); + } else if (isArray(val)) { + result[targetKey] = val.slice(); + } else { + result[targetKey] = val; + } + }; + + for (let i = 0, l = arguments.length; i < l; i++) { + arguments[i] && forEach(arguments[i], assignValue); + } + return result; +} + +/** + * Extends object a by mutably adding to it the properties of object b. + * + * @param {Object} a The object to be extended + * @param {Object} b The object to copy properties from + * @param {Object} thisArg The object to bind function to + * + * @param {Boolean} [allOwnKeys] + * @returns {Object} The resulting value of object a + */ +const extend = (a, b, thisArg, {allOwnKeys}= {}) => { + forEach(b, (val, key) => { + if (thisArg && isFunction(val)) { + a[key] = bind(val, thisArg); + } else { + a[key] = val; + } + }, {allOwnKeys}); + return a; +}; + +/** + * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) + * + * @param {string} content with BOM + * + * @returns {string} content value without BOM + */ +const stripBOM = (content) => { + if (content.charCodeAt(0) === 0xFEFF) { + content = content.slice(1); + } + return content; +}; + +/** + * Inherit the prototype methods from one constructor into another + * @param {function} constructor + * @param {function} superConstructor + * @param {object} [props] + * @param {object} [descriptors] + * + * @returns {void} + */ +const inherits = (constructor, superConstructor, props, descriptors) => { + constructor.prototype = Object.create(superConstructor.prototype, descriptors); + constructor.prototype.constructor = constructor; + Object.defineProperty(constructor, 'super', { + value: superConstructor.prototype + }); + props && Object.assign(constructor.prototype, props); +}; + +/** + * Resolve object with deep prototype chain to a flat object + * @param {Object} sourceObj source object + * @param {Object} [destObj] + * @param {Function|Boolean} [filter] + * @param {Function} [propFilter] + * + * @returns {Object} + */ +const toFlatObject = (sourceObj, destObj, filter, propFilter) => { + let props; + let i; + let prop; + const merged = {}; + + destObj = destObj || {}; + // eslint-disable-next-line no-eq-null,eqeqeq + if (sourceObj == null) return destObj; + + do { + props = Object.getOwnPropertyNames(sourceObj); + i = props.length; + while (i-- > 0) { + prop = props[i]; + if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { + destObj[prop] = sourceObj[prop]; + merged[prop] = true; + } + } + sourceObj = filter !== false && getPrototypeOf(sourceObj); + } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); + + return destObj; +}; + +/** + * Determines whether a string ends with the characters of a specified string + * + * @param {String} str + * @param {String} searchString + * @param {Number} [position= 0] + * + * @returns {boolean} + */ +const endsWith = (str, searchString, position) => { + str = String(str); + if (position === undefined || position > str.length) { + position = str.length; + } + position -= searchString.length; + const lastIndex = str.indexOf(searchString, position); + return lastIndex !== -1 && lastIndex === position; +}; + + +/** + * Returns new array from array like object or null if failed + * + * @param {*} [thing] + * + * @returns {?Array} + */ +const toArray = (thing) => { + if (!thing) return null; + if (isArray(thing)) return thing; + let i = thing.length; + if (!isNumber(i)) return null; + const arr = new Array(i); + while (i-- > 0) { + arr[i] = thing[i]; + } + return arr; +}; + +/** + * Checking if the Uint8Array exists and if it does, it returns a function that checks if the + * thing passed in is an instance of Uint8Array + * + * @param {TypedArray} + * + * @returns {Array} + */ +// eslint-disable-next-line func-names +const isTypedArray = (TypedArray => { + // eslint-disable-next-line func-names + return thing => { + return TypedArray && thing instanceof TypedArray; + }; +})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array)); + +/** + * For each entry in the object, call the function with the key and value. + * + * @param {Object} obj - The object to iterate over. + * @param {Function} fn - The function to call for each entry. + * + * @returns {void} + */ +const forEachEntry = (obj, fn) => { + const generator = obj && obj[Symbol.iterator]; + + const iterator = generator.call(obj); + + let result; + + while ((result = iterator.next()) && !result.done) { + const pair = result.value; + fn.call(obj, pair[0], pair[1]); + } +}; + +/** + * It takes a regular expression and a string, and returns an array of all the matches + * + * @param {string} regExp - The regular expression to match against. + * @param {string} str - The string to search. + * + * @returns {Array} + */ +const matchAll = (regExp, str) => { + let matches; + const arr = []; + + while ((matches = regExp.exec(str)) !== null) { + arr.push(matches); + } + + return arr; +}; + +/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */ +const isHTMLForm = kindOfTest('HTMLFormElement'); + +const toCamelCase = str => { + return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, + function replacer(m, p1, p2) { + return p1.toUpperCase() + p2; + } + ); +}; + +/* Creating a function that will check if an object has a property. */ +const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype); + +/** + * Determine if a value is a RegExp object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a RegExp object, otherwise false + */ +const isRegExp = kindOfTest('RegExp'); + +const reduceDescriptors = (obj, reducer) => { + const descriptors = Object.getOwnPropertyDescriptors(obj); + const reducedDescriptors = {}; + + forEach(descriptors, (descriptor, name) => { + let ret; + if ((ret = reducer(descriptor, name, obj)) !== false) { + reducedDescriptors[name] = ret || descriptor; + } + }); + + Object.defineProperties(obj, reducedDescriptors); +}; + +/** + * Makes all methods read-only + * @param {Object} obj + */ + +const freezeMethods = (obj) => { + reduceDescriptors(obj, (descriptor, name) => { + // skip restricted props in strict mode + if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) { + return false; + } + + const value = obj[name]; + + if (!isFunction(value)) return; + + descriptor.enumerable = false; + + if ('writable' in descriptor) { + descriptor.writable = false; + return; + } + + if (!descriptor.set) { + descriptor.set = () => { + throw Error('Can not rewrite read-only method \'' + name + '\''); + }; + } + }); +}; + +const toObjectSet = (arrayOrString, delimiter) => { + const obj = {}; + + const define = (arr) => { + arr.forEach(value => { + obj[value] = true; + }); + }; + + isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); + + return obj; +}; + +const noop = () => {}; + +const toFiniteNumber = (value, defaultValue) => { + value = +value; + return Number.isFinite(value) ? value : defaultValue; +}; + +const ALPHA = 'abcdefghijklmnopqrstuvwxyz'; + +const DIGIT = '0123456789'; + +const ALPHABET = { + DIGIT, + ALPHA, + ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT +}; + +const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => { + let str = ''; + const {length} = alphabet; + while (size--) { + str += alphabet[Math.random() * length|0]; + } + + return str; +}; + +/** + * If the thing is a FormData object, return true, otherwise return false. + * + * @param {unknown} thing - The thing to check. + * + * @returns {boolean} + */ +function isSpecCompliantForm(thing) { + return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]); +} + +const toJSONObject = (obj) => { + const stack = new Array(10); + + const visit = (source, i) => { + + if (isObject(source)) { + if (stack.indexOf(source) >= 0) { + return; + } + + if(!('toJSON' in source)) { + stack[i] = source; + const target = isArray(source) ? [] : {}; + + forEach(source, (value, key) => { + const reducedValue = visit(value, i + 1); + !isUndefined(reducedValue) && (target[key] = reducedValue); + }); + + stack[i] = undefined; + + return target; + } + } + + return source; + }; + + return visit(obj, 0); +}; + +const isAsyncFn = kindOfTest('AsyncFunction'); + +const isThenable = (thing) => + thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch); + +const utils$1 = { + isArray, + isArrayBuffer, + isBuffer, + isFormData, + isArrayBufferView, + isString, + isNumber, + isBoolean, + isObject, + isPlainObject, + isUndefined, + isDate, + isFile, + isBlob, + isRegExp, + isFunction, + isStream, + isURLSearchParams, + isTypedArray, + isFileList, + forEach, + merge, + extend, + trim, + stripBOM, + inherits, + toFlatObject, + kindOf, + kindOfTest, + endsWith, + toArray, + forEachEntry, + matchAll, + isHTMLForm, + hasOwnProperty, + hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection + reduceDescriptors, + freezeMethods, + toObjectSet, + toCamelCase, + noop, + toFiniteNumber, + findKey, + global: _global, + isContextDefined, + ALPHABET, + generateString, + isSpecCompliantForm, + toJSONObject, + isAsyncFn, + isThenable +}; + +/** + * Create an Error with the specified message, config, error code, request and response. + * + * @param {string} message The error message. + * @param {string} [code] The error code (for example, 'ECONNABORTED'). + * @param {Object} [config] The config. + * @param {Object} [request] The request. + * @param {Object} [response] The response. + * + * @returns {Error} The created error. + */ +function AxiosError(message, code, config, request, response) { + Error.call(this); + + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } else { + this.stack = (new Error()).stack; + } + + this.message = message; + this.name = 'AxiosError'; + code && (this.code = code); + config && (this.config = config); + request && (this.request = request); + response && (this.response = response); +} + +utils$1.inherits(AxiosError, Error, { + toJSON: function toJSON() { + return { + // Standard + message: this.message, + name: this.name, + // Microsoft + description: this.description, + number: this.number, + // Mozilla + fileName: this.fileName, + lineNumber: this.lineNumber, + columnNumber: this.columnNumber, + stack: this.stack, + // Axios + config: utils$1.toJSONObject(this.config), + code: this.code, + status: this.response && this.response.status ? this.response.status : null + }; + } +}); + +const prototype$1 = AxiosError.prototype; +const descriptors = {}; + +[ + 'ERR_BAD_OPTION_VALUE', + 'ERR_BAD_OPTION', + 'ECONNABORTED', + 'ETIMEDOUT', + 'ERR_NETWORK', + 'ERR_FR_TOO_MANY_REDIRECTS', + 'ERR_DEPRECATED', + 'ERR_BAD_RESPONSE', + 'ERR_BAD_REQUEST', + 'ERR_CANCELED', + 'ERR_NOT_SUPPORT', + 'ERR_INVALID_URL' +// eslint-disable-next-line func-names +].forEach(code => { + descriptors[code] = {value: code}; +}); + +Object.defineProperties(AxiosError, descriptors); +Object.defineProperty(prototype$1, 'isAxiosError', {value: true}); + +// eslint-disable-next-line func-names +AxiosError.from = (error, code, config, request, response, customProps) => { + const axiosError = Object.create(prototype$1); + + utils$1.toFlatObject(error, axiosError, function filter(obj) { + return obj !== Error.prototype; + }, prop => { + return prop !== 'isAxiosError'; + }); + + AxiosError.call(axiosError, error.message, code, config, request, response); + + axiosError.cause = error; + + axiosError.name = error.name; + + customProps && Object.assign(axiosError, customProps); + + return axiosError; +}; + +/** + * Determines if the given thing is a array or js object. + * + * @param {string} thing - The object or array to be visited. + * + * @returns {boolean} + */ +function isVisitable(thing) { + return utils$1.isPlainObject(thing) || utils$1.isArray(thing); +} + +/** + * It removes the brackets from the end of a string + * + * @param {string} key - The key of the parameter. + * + * @returns {string} the key without the brackets. + */ +function removeBrackets(key) { + return utils$1.endsWith(key, '[]') ? key.slice(0, -2) : key; +} + +/** + * It takes a path, a key, and a boolean, and returns a string + * + * @param {string} path - The path to the current key. + * @param {string} key - The key of the current object being iterated over. + * @param {string} dots - If true, the key will be rendered with dots instead of brackets. + * + * @returns {string} The path to the current key. + */ +function renderKey(path, key, dots) { + if (!path) return key; + return path.concat(key).map(function each(token, i) { + // eslint-disable-next-line no-param-reassign + token = removeBrackets(token); + return !dots && i ? '[' + token + ']' : token; + }).join(dots ? '.' : ''); +} + +/** + * If the array is an array and none of its elements are visitable, then it's a flat array. + * + * @param {Array} arr - The array to check + * + * @returns {boolean} + */ +function isFlatArray(arr) { + return utils$1.isArray(arr) && !arr.some(isVisitable); +} + +const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) { + return /^is[A-Z]/.test(prop); +}); + +/** + * Convert a data object to FormData + * + * @param {Object} obj + * @param {?Object} [formData] + * @param {?Object} [options] + * @param {Function} [options.visitor] + * @param {Boolean} [options.metaTokens = true] + * @param {Boolean} [options.dots = false] + * @param {?Boolean} [options.indexes = false] + * + * @returns {Object} + **/ + +/** + * It converts an object into a FormData object + * + * @param {Object} obj - The object to convert to form data. + * @param {string} formData - The FormData object to append to. + * @param {Object} options + * + * @returns + */ +function toFormData(obj, formData, options) { + if (!utils$1.isObject(obj)) { + throw new TypeError('target must be an object'); + } + + // eslint-disable-next-line no-param-reassign + formData = formData || new (FormData__default["default"] || FormData)(); + + // eslint-disable-next-line no-param-reassign + options = utils$1.toFlatObject(options, { + metaTokens: true, + dots: false, + indexes: false + }, false, function defined(option, source) { + // eslint-disable-next-line no-eq-null,eqeqeq + return !utils$1.isUndefined(source[option]); + }); + + const metaTokens = options.metaTokens; + // eslint-disable-next-line no-use-before-define + const visitor = options.visitor || defaultVisitor; + const dots = options.dots; + const indexes = options.indexes; + const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob; + const useBlob = _Blob && utils$1.isSpecCompliantForm(formData); + + if (!utils$1.isFunction(visitor)) { + throw new TypeError('visitor must be a function'); + } + + function convertValue(value) { + if (value === null) return ''; + + if (utils$1.isDate(value)) { + return value.toISOString(); + } + + if (!useBlob && utils$1.isBlob(value)) { + throw new AxiosError('Blob is not supported. Use a Buffer instead.'); + } + + if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) { + return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value); + } + + return value; + } + + /** + * Default visitor. + * + * @param {*} value + * @param {String|Number} key + * @param {Array} path + * @this {FormData} + * + * @returns {boolean} return true to visit the each prop of the value recursively + */ + function defaultVisitor(value, key, path) { + let arr = value; + + if (value && !path && typeof value === 'object') { + if (utils$1.endsWith(key, '{}')) { + // eslint-disable-next-line no-param-reassign + key = metaTokens ? key : key.slice(0, -2); + // eslint-disable-next-line no-param-reassign + value = JSON.stringify(value); + } else if ( + (utils$1.isArray(value) && isFlatArray(value)) || + ((utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value)) + )) { + // eslint-disable-next-line no-param-reassign + key = removeBrackets(key); + + arr.forEach(function each(el, index) { + !(utils$1.isUndefined(el) || el === null) && formData.append( + // eslint-disable-next-line no-nested-ternary + indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'), + convertValue(el) + ); + }); + return false; + } + } + + if (isVisitable(value)) { + return true; + } + + formData.append(renderKey(path, key, dots), convertValue(value)); + + return false; + } + + const stack = []; + + const exposedHelpers = Object.assign(predicates, { + defaultVisitor, + convertValue, + isVisitable + }); + + function build(value, path) { + if (utils$1.isUndefined(value)) return; + + if (stack.indexOf(value) !== -1) { + throw Error('Circular reference detected in ' + path.join('.')); + } + + stack.push(value); + + utils$1.forEach(value, function each(el, key) { + const result = !(utils$1.isUndefined(el) || el === null) && visitor.call( + formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers + ); + + if (result === true) { + build(el, path ? path.concat(key) : [key]); + } + }); + + stack.pop(); + } + + if (!utils$1.isObject(obj)) { + throw new TypeError('data must be an object'); + } + + build(obj); + + return formData; +} + +/** + * It encodes a string by replacing all characters that are not in the unreserved set with + * their percent-encoded equivalents + * + * @param {string} str - The string to encode. + * + * @returns {string} The encoded string. + */ +function encode$1(str) { + const charMap = { + '!': '%21', + "'": '%27', + '(': '%28', + ')': '%29', + '~': '%7E', + '%20': '+', + '%00': '\x00' + }; + return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) { + return charMap[match]; + }); +} + +/** + * It takes a params object and converts it to a FormData object + * + * @param {Object} params - The parameters to be converted to a FormData object. + * @param {Object} options - The options object passed to the Axios constructor. + * + * @returns {void} + */ +function AxiosURLSearchParams(params, options) { + this._pairs = []; + + params && toFormData(params, this, options); +} + +const prototype = AxiosURLSearchParams.prototype; + +prototype.append = function append(name, value) { + this._pairs.push([name, value]); +}; + +prototype.toString = function toString(encoder) { + const _encode = encoder ? function(value) { + return encoder.call(this, value, encode$1); + } : encode$1; + + return this._pairs.map(function each(pair) { + return _encode(pair[0]) + '=' + _encode(pair[1]); + }, '').join('&'); +}; + +/** + * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their + * URI encoded counterparts + * + * @param {string} val The value to be encoded. + * + * @returns {string} The encoded value. + */ +function encode(val) { + return encodeURIComponent(val). + replace(/%3A/gi, ':'). + replace(/%24/g, '$'). + replace(/%2C/gi, ','). + replace(/%20/g, '+'). + replace(/%5B/gi, '['). + replace(/%5D/gi, ']'); +} + +/** + * Build a URL by appending params to the end + * + * @param {string} url The base of the url (e.g., http://www.google.com) + * @param {object} [params] The params to be appended + * @param {?object} options + * + * @returns {string} The formatted url + */ +function buildURL(url, params, options) { + /*eslint no-param-reassign:0*/ + if (!params) { + return url; + } + + const _encode = options && options.encode || encode; + + const serializeFn = options && options.serialize; + + let serializedParams; + + if (serializeFn) { + serializedParams = serializeFn(params, options); + } else { + serializedParams = utils$1.isURLSearchParams(params) ? + params.toString() : + new AxiosURLSearchParams(params, options).toString(_encode); + } + + if (serializedParams) { + const hashmarkIndex = url.indexOf("#"); + + if (hashmarkIndex !== -1) { + url = url.slice(0, hashmarkIndex); + } + url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; + } + + return url; +} + +class InterceptorManager { + constructor() { + this.handlers = []; + } + + /** + * Add a new interceptor to the stack + * + * @param {Function} fulfilled The function to handle `then` for a `Promise` + * @param {Function} rejected The function to handle `reject` for a `Promise` + * + * @return {Number} An ID used to remove interceptor later + */ + use(fulfilled, rejected, options) { + this.handlers.push({ + fulfilled, + rejected, + synchronous: options ? options.synchronous : false, + runWhen: options ? options.runWhen : null + }); + return this.handlers.length - 1; + } + + /** + * Remove an interceptor from the stack + * + * @param {Number} id The ID that was returned by `use` + * + * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise + */ + eject(id) { + if (this.handlers[id]) { + this.handlers[id] = null; + } + } + + /** + * Clear all interceptors from the stack + * + * @returns {void} + */ + clear() { + if (this.handlers) { + this.handlers = []; + } + } + + /** + * Iterate over all the registered interceptors + * + * This method is particularly useful for skipping over any + * interceptors that may have become `null` calling `eject`. + * + * @param {Function} fn The function to call for each interceptor + * + * @returns {void} + */ + forEach(fn) { + utils$1.forEach(this.handlers, function forEachHandler(h) { + if (h !== null) { + fn(h); + } + }); + } +} + +const InterceptorManager$1 = InterceptorManager; + +const transitionalDefaults = { + silentJSONParsing: true, + forcedJSONParsing: true, + clarifyTimeoutError: false +}; + +const URLSearchParams = url__default["default"].URLSearchParams; + +const platform$1 = { + isNode: true, + classes: { + URLSearchParams, + FormData: FormData__default["default"], + Blob: typeof Blob !== 'undefined' && Blob || null + }, + protocols: [ 'http', 'https', 'file', 'data' ] +}; + +const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined'; + +/** + * Determine if we're running in a standard browser environment + * + * This allows axios to run in a web worker, and react-native. + * Both environments support XMLHttpRequest, but not fully standard globals. + * + * web workers: + * typeof window -> undefined + * typeof document -> undefined + * + * react-native: + * navigator.product -> 'ReactNative' + * nativescript + * navigator.product -> 'NativeScript' or 'NS' + * + * @returns {boolean} + */ +const hasStandardBrowserEnv = ( + (product) => { + return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0 + })(typeof navigator !== 'undefined' && navigator.product); + +/** + * Determine if we're running in a standard browser webWorker environment + * + * Although the `isStandardBrowserEnv` method indicates that + * `allows axios to run in a web worker`, the WebWorker will still be + * filtered out due to its judgment standard + * `typeof window !== 'undefined' && typeof document !== 'undefined'`. + * This leads to a problem when axios post `FormData` in webWorker + */ +const hasStandardBrowserWebWorkerEnv = (() => { + return ( + typeof WorkerGlobalScope !== 'undefined' && + // eslint-disable-next-line no-undef + self instanceof WorkerGlobalScope && + typeof self.importScripts === 'function' + ); +})(); + +const utils = /*#__PURE__*/Object.freeze({ + __proto__: null, + hasBrowserEnv: hasBrowserEnv, + hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv, + hasStandardBrowserEnv: hasStandardBrowserEnv +}); + +const platform = { + ...utils, + ...platform$1 +}; + +function toURLEncodedForm(data, options) { + return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({ + visitor: function(value, key, path, helpers) { + if (platform.isNode && utils$1.isBuffer(value)) { + this.append(key, value.toString('base64')); + return false; + } + + return helpers.defaultVisitor.apply(this, arguments); + } + }, options)); +} + +/** + * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z'] + * + * @param {string} name - The name of the property to get. + * + * @returns An array of strings. + */ +function parsePropPath(name) { + // foo[x][y][z] + // foo.x.y.z + // foo-x-y-z + // foo x y z + return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map(match => { + return match[0] === '[]' ? '' : match[1] || match[0]; + }); +} + +/** + * Convert an array to an object. + * + * @param {Array} arr - The array to convert to an object. + * + * @returns An object with the same keys and values as the array. + */ +function arrayToObject(arr) { + const obj = {}; + const keys = Object.keys(arr); + let i; + const len = keys.length; + let key; + for (i = 0; i < len; i++) { + key = keys[i]; + obj[key] = arr[key]; + } + return obj; +} + +/** + * It takes a FormData object and returns a JavaScript object + * + * @param {string} formData The FormData object to convert to JSON. + * + * @returns {Object | null} The converted object. + */ +function formDataToJSON(formData) { + function buildPath(path, value, target, index) { + let name = path[index++]; + + if (name === '__proto__') return true; + + const isNumericKey = Number.isFinite(+name); + const isLast = index >= path.length; + name = !name && utils$1.isArray(target) ? target.length : name; + + if (isLast) { + if (utils$1.hasOwnProp(target, name)) { + target[name] = [target[name], value]; + } else { + target[name] = value; + } + + return !isNumericKey; + } + + if (!target[name] || !utils$1.isObject(target[name])) { + target[name] = []; + } + + const result = buildPath(path, value, target[name], index); + + if (result && utils$1.isArray(target[name])) { + target[name] = arrayToObject(target[name]); + } + + return !isNumericKey; + } + + if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) { + const obj = {}; + + utils$1.forEachEntry(formData, (name, value) => { + buildPath(parsePropPath(name), value, obj, 0); + }); + + return obj; + } + + return null; +} + +/** + * It takes a string, tries to parse it, and if it fails, it returns the stringified version + * of the input + * + * @param {any} rawValue - The value to be stringified. + * @param {Function} parser - A function that parses a string into a JavaScript object. + * @param {Function} encoder - A function that takes a value and returns a string. + * + * @returns {string} A stringified version of the rawValue. + */ +function stringifySafely(rawValue, parser, encoder) { + if (utils$1.isString(rawValue)) { + try { + (parser || JSON.parse)(rawValue); + return utils$1.trim(rawValue); + } catch (e) { + if (e.name !== 'SyntaxError') { + throw e; + } + } + } + + return (encoder || JSON.stringify)(rawValue); +} + +const defaults = { + + transitional: transitionalDefaults, + + adapter: ['xhr', 'http'], + + transformRequest: [function transformRequest(data, headers) { + const contentType = headers.getContentType() || ''; + const hasJSONContentType = contentType.indexOf('application/json') > -1; + const isObjectPayload = utils$1.isObject(data); + + if (isObjectPayload && utils$1.isHTMLForm(data)) { + data = new FormData(data); + } + + const isFormData = utils$1.isFormData(data); + + if (isFormData) { + return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data; + } + + if (utils$1.isArrayBuffer(data) || + utils$1.isBuffer(data) || + utils$1.isStream(data) || + utils$1.isFile(data) || + utils$1.isBlob(data) + ) { + return data; + } + if (utils$1.isArrayBufferView(data)) { + return data.buffer; + } + if (utils$1.isURLSearchParams(data)) { + headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false); + return data.toString(); + } + + let isFileList; + + if (isObjectPayload) { + if (contentType.indexOf('application/x-www-form-urlencoded') > -1) { + return toURLEncodedForm(data, this.formSerializer).toString(); + } + + if ((isFileList = utils$1.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) { + const _FormData = this.env && this.env.FormData; + + return toFormData( + isFileList ? {'files[]': data} : data, + _FormData && new _FormData(), + this.formSerializer + ); + } + } + + if (isObjectPayload || hasJSONContentType ) { + headers.setContentType('application/json', false); + return stringifySafely(data); + } + + return data; + }], + + transformResponse: [function transformResponse(data) { + const transitional = this.transitional || defaults.transitional; + const forcedJSONParsing = transitional && transitional.forcedJSONParsing; + const JSONRequested = this.responseType === 'json'; + + if (data && utils$1.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) { + const silentJSONParsing = transitional && transitional.silentJSONParsing; + const strictJSONParsing = !silentJSONParsing && JSONRequested; + + try { + return JSON.parse(data); + } catch (e) { + if (strictJSONParsing) { + if (e.name === 'SyntaxError') { + throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response); + } + throw e; + } + } + } + + return data; + }], + + /** + * A timeout in milliseconds to abort a request. If set to 0 (default) a + * timeout is not created. + */ + timeout: 0, + + xsrfCookieName: 'XSRF-TOKEN', + xsrfHeaderName: 'X-XSRF-TOKEN', + + maxContentLength: -1, + maxBodyLength: -1, + + env: { + FormData: platform.classes.FormData, + Blob: platform.classes.Blob + }, + + validateStatus: function validateStatus(status) { + return status >= 200 && status < 300; + }, + + headers: { + common: { + 'Accept': 'application/json, text/plain, */*', + 'Content-Type': undefined + } + } +}; + +utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => { + defaults.headers[method] = {}; +}); + +const defaults$1 = defaults; + +// RawAxiosHeaders whose duplicates are ignored by node +// c.f. https://nodejs.org/api/http.html#http_message_headers +const ignoreDuplicateOf = utils$1.toObjectSet([ + 'age', 'authorization', 'content-length', 'content-type', 'etag', + 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', + 'last-modified', 'location', 'max-forwards', 'proxy-authorization', + 'referer', 'retry-after', 'user-agent' +]); + +/** + * Parse headers into an object + * + * ``` + * Date: Wed, 27 Aug 2014 08:58:49 GMT + * Content-Type: application/json + * Connection: keep-alive + * Transfer-Encoding: chunked + * ``` + * + * @param {String} rawHeaders Headers needing to be parsed + * + * @returns {Object} Headers parsed into an object + */ +const parseHeaders = rawHeaders => { + const parsed = {}; + let key; + let val; + let i; + + rawHeaders && rawHeaders.split('\n').forEach(function parser(line) { + i = line.indexOf(':'); + key = line.substring(0, i).trim().toLowerCase(); + val = line.substring(i + 1).trim(); + + if (!key || (parsed[key] && ignoreDuplicateOf[key])) { + return; + } + + if (key === 'set-cookie') { + if (parsed[key]) { + parsed[key].push(val); + } else { + parsed[key] = [val]; + } + } else { + parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; + } + }); + + return parsed; +}; + +const $internals = Symbol('internals'); + +function normalizeHeader(header) { + return header && String(header).trim().toLowerCase(); +} + +function normalizeValue(value) { + if (value === false || value == null) { + return value; + } + + return utils$1.isArray(value) ? value.map(normalizeValue) : String(value); +} + +function parseTokens(str) { + const tokens = Object.create(null); + const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; + let match; + + while ((match = tokensRE.exec(str))) { + tokens[match[1]] = match[2]; + } + + return tokens; +} + +const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()); + +function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) { + if (utils$1.isFunction(filter)) { + return filter.call(this, value, header); + } + + if (isHeaderNameFilter) { + value = header; + } + + if (!utils$1.isString(value)) return; + + if (utils$1.isString(filter)) { + return value.indexOf(filter) !== -1; + } + + if (utils$1.isRegExp(filter)) { + return filter.test(value); + } +} + +function formatHeader(header) { + return header.trim() + .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => { + return char.toUpperCase() + str; + }); +} + +function buildAccessors(obj, header) { + const accessorName = utils$1.toCamelCase(' ' + header); + + ['get', 'set', 'has'].forEach(methodName => { + Object.defineProperty(obj, methodName + accessorName, { + value: function(arg1, arg2, arg3) { + return this[methodName].call(this, header, arg1, arg2, arg3); + }, + configurable: true + }); + }); +} + +class AxiosHeaders { + constructor(headers) { + headers && this.set(headers); + } + + set(header, valueOrRewrite, rewrite) { + const self = this; + + function setHeader(_value, _header, _rewrite) { + const lHeader = normalizeHeader(_header); + + if (!lHeader) { + throw new Error('header name must be a non-empty string'); + } + + const key = utils$1.findKey(self, lHeader); + + if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) { + self[key || _header] = normalizeValue(_value); + } + } + + const setHeaders = (headers, _rewrite) => + utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite)); + + if (utils$1.isPlainObject(header) || header instanceof this.constructor) { + setHeaders(header, valueOrRewrite); + } else if(utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { + setHeaders(parseHeaders(header), valueOrRewrite); + } else { + header != null && setHeader(valueOrRewrite, header, rewrite); + } + + return this; + } + + get(header, parser) { + header = normalizeHeader(header); + + if (header) { + const key = utils$1.findKey(this, header); + + if (key) { + const value = this[key]; + + if (!parser) { + return value; + } + + if (parser === true) { + return parseTokens(value); + } + + if (utils$1.isFunction(parser)) { + return parser.call(this, value, key); + } + + if (utils$1.isRegExp(parser)) { + return parser.exec(value); + } + + throw new TypeError('parser must be boolean|regexp|function'); + } + } + } + + has(header, matcher) { + header = normalizeHeader(header); + + if (header) { + const key = utils$1.findKey(this, header); + + return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher))); + } + + return false; + } + + delete(header, matcher) { + const self = this; + let deleted = false; + + function deleteHeader(_header) { + _header = normalizeHeader(_header); + + if (_header) { + const key = utils$1.findKey(self, _header); + + if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) { + delete self[key]; + + deleted = true; + } + } + } + + if (utils$1.isArray(header)) { + header.forEach(deleteHeader); + } else { + deleteHeader(header); + } + + return deleted; + } + + clear(matcher) { + const keys = Object.keys(this); + let i = keys.length; + let deleted = false; + + while (i--) { + const key = keys[i]; + if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) { + delete this[key]; + deleted = true; + } + } + + return deleted; + } + + normalize(format) { + const self = this; + const headers = {}; + + utils$1.forEach(this, (value, header) => { + const key = utils$1.findKey(headers, header); + + if (key) { + self[key] = normalizeValue(value); + delete self[header]; + return; + } + + const normalized = format ? formatHeader(header) : String(header).trim(); + + if (normalized !== header) { + delete self[header]; + } + + self[normalized] = normalizeValue(value); + + headers[normalized] = true; + }); + + return this; + } + + concat(...targets) { + return this.constructor.concat(this, ...targets); + } + + toJSON(asStrings) { + const obj = Object.create(null); + + utils$1.forEach(this, (value, header) => { + value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value); + }); + + return obj; + } + + [Symbol.iterator]() { + return Object.entries(this.toJSON())[Symbol.iterator](); + } + + toString() { + return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n'); + } + + get [Symbol.toStringTag]() { + return 'AxiosHeaders'; + } + + static from(thing) { + return thing instanceof this ? thing : new this(thing); + } + + static concat(first, ...targets) { + const computed = new this(first); + + targets.forEach((target) => computed.set(target)); + + return computed; + } + + static accessor(header) { + const internals = this[$internals] = (this[$internals] = { + accessors: {} + }); + + const accessors = internals.accessors; + const prototype = this.prototype; + + function defineAccessor(_header) { + const lHeader = normalizeHeader(_header); + + if (!accessors[lHeader]) { + buildAccessors(prototype, _header); + accessors[lHeader] = true; + } + } + + utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header); + + return this; + } +} + +AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']); + +// reserved names hotfix +utils$1.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => { + let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set` + return { + get: () => value, + set(headerValue) { + this[mapped] = headerValue; + } + } +}); + +utils$1.freezeMethods(AxiosHeaders); + +const AxiosHeaders$1 = AxiosHeaders; + +/** + * Transform the data for a request or a response + * + * @param {Array|Function} fns A single function or Array of functions + * @param {?Object} response The response object + * + * @returns {*} The resulting transformed data + */ +function transformData(fns, response) { + const config = this || defaults$1; + const context = response || config; + const headers = AxiosHeaders$1.from(context.headers); + let data = context.data; + + utils$1.forEach(fns, function transform(fn) { + data = fn.call(config, data, headers.normalize(), response ? response.status : undefined); + }); + + headers.normalize(); + + return data; +} + +function isCancel(value) { + return !!(value && value.__CANCEL__); +} + +/** + * A `CanceledError` is an object that is thrown when an operation is canceled. + * + * @param {string=} message The message. + * @param {Object=} config The config. + * @param {Object=} request The request. + * + * @returns {CanceledError} The created error. + */ +function CanceledError(message, config, request) { + // eslint-disable-next-line no-eq-null,eqeqeq + AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request); + this.name = 'CanceledError'; +} + +utils$1.inherits(CanceledError, AxiosError, { + __CANCEL__: true +}); + +/** + * Resolve or reject a Promise based on response status. + * + * @param {Function} resolve A function that resolves the promise. + * @param {Function} reject A function that rejects the promise. + * @param {object} response The response. + * + * @returns {object} The response. + */ +function settle(resolve, reject, response) { + const validateStatus = response.config.validateStatus; + if (!response.status || !validateStatus || validateStatus(response.status)) { + resolve(response); + } else { + reject(new AxiosError( + 'Request failed with status code ' + response.status, + [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], + response.config, + response.request, + response + )); + } +} + +/** + * Determines whether the specified URL is absolute + * + * @param {string} url The URL to test + * + * @returns {boolean} True if the specified URL is absolute, otherwise false + */ +function isAbsoluteURL(url) { + // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). + // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed + // by any combination of letters, digits, plus, period, or hyphen. + return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); +} + +/** + * Creates a new URL by combining the specified URLs + * + * @param {string} baseURL The base URL + * @param {string} relativeURL The relative URL + * + * @returns {string} The combined URL + */ +function combineURLs(baseURL, relativeURL) { + return relativeURL + ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') + : baseURL; +} + +/** + * Creates a new URL by combining the baseURL with the requestedURL, + * only when the requestedURL is not already an absolute URL. + * If the requestURL is absolute, this function returns the requestedURL untouched. + * + * @param {string} baseURL The base URL + * @param {string} requestedURL Absolute or relative URL to combine + * + * @returns {string} The combined full path + */ +function buildFullPath(baseURL, requestedURL) { + if (baseURL && !isAbsoluteURL(requestedURL)) { + return combineURLs(baseURL, requestedURL); + } + return requestedURL; +} + +const VERSION = "1.6.7"; + +function parseProtocol(url) { + const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); + return match && match[1] || ''; +} + +const DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/; + +/** + * Parse data uri to a Buffer or Blob + * + * @param {String} uri + * @param {?Boolean} asBlob + * @param {?Object} options + * @param {?Function} options.Blob + * + * @returns {Buffer|Blob} + */ +function fromDataURI(uri, asBlob, options) { + const _Blob = options && options.Blob || platform.classes.Blob; + const protocol = parseProtocol(uri); + + if (asBlob === undefined && _Blob) { + asBlob = true; + } + + if (protocol === 'data') { + uri = protocol.length ? uri.slice(protocol.length + 1) : uri; + + const match = DATA_URL_PATTERN.exec(uri); + + if (!match) { + throw new AxiosError('Invalid URL', AxiosError.ERR_INVALID_URL); + } + + const mime = match[1]; + const isBase64 = match[2]; + const body = match[3]; + const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? 'base64' : 'utf8'); + + if (asBlob) { + if (!_Blob) { + throw new AxiosError('Blob is not supported', AxiosError.ERR_NOT_SUPPORT); + } + + return new _Blob([buffer], {type: mime}); + } + + return buffer; + } + + throw new AxiosError('Unsupported protocol ' + protocol, AxiosError.ERR_NOT_SUPPORT); +} + +/** + * Throttle decorator + * @param {Function} fn + * @param {Number} freq + * @return {Function} + */ +function throttle(fn, freq) { + let timestamp = 0; + const threshold = 1000 / freq; + let timer = null; + return function throttled(force, args) { + const now = Date.now(); + if (force || now - timestamp > threshold) { + if (timer) { + clearTimeout(timer); + timer = null; + } + timestamp = now; + return fn.apply(null, args); + } + if (!timer) { + timer = setTimeout(() => { + timer = null; + timestamp = Date.now(); + return fn.apply(null, args); + }, threshold - (now - timestamp)); + } + }; +} + +/** + * Calculate data maxRate + * @param {Number} [samplesCount= 10] + * @param {Number} [min= 1000] + * @returns {Function} + */ +function speedometer(samplesCount, min) { + samplesCount = samplesCount || 10; + const bytes = new Array(samplesCount); + const timestamps = new Array(samplesCount); + let head = 0; + let tail = 0; + let firstSampleTS; + + min = min !== undefined ? min : 1000; + + return function push(chunkLength) { + const now = Date.now(); + + const startedAt = timestamps[tail]; + + if (!firstSampleTS) { + firstSampleTS = now; + } + + bytes[head] = chunkLength; + timestamps[head] = now; + + let i = tail; + let bytesCount = 0; + + while (i !== head) { + bytesCount += bytes[i++]; + i = i % samplesCount; + } + + head = (head + 1) % samplesCount; + + if (head === tail) { + tail = (tail + 1) % samplesCount; + } + + if (now - firstSampleTS < min) { + return; + } + + const passed = startedAt && now - startedAt; + + return passed ? Math.round(bytesCount * 1000 / passed) : undefined; + }; +} + +const kInternals = Symbol('internals'); + +class AxiosTransformStream extends stream__default["default"].Transform{ + constructor(options) { + options = utils$1.toFlatObject(options, { + maxRate: 0, + chunkSize: 64 * 1024, + minChunkSize: 100, + timeWindow: 500, + ticksRate: 2, + samplesCount: 15 + }, null, (prop, source) => { + return !utils$1.isUndefined(source[prop]); + }); + + super({ + readableHighWaterMark: options.chunkSize + }); + + const self = this; + + const internals = this[kInternals] = { + length: options.length, + timeWindow: options.timeWindow, + ticksRate: options.ticksRate, + chunkSize: options.chunkSize, + maxRate: options.maxRate, + minChunkSize: options.minChunkSize, + bytesSeen: 0, + isCaptured: false, + notifiedBytesLoaded: 0, + ts: Date.now(), + bytes: 0, + onReadCallback: null + }; + + const _speedometer = speedometer(internals.ticksRate * options.samplesCount, internals.timeWindow); + + this.on('newListener', event => { + if (event === 'progress') { + if (!internals.isCaptured) { + internals.isCaptured = true; + } + } + }); + + let bytesNotified = 0; + + internals.updateProgress = throttle(function throttledHandler() { + const totalBytes = internals.length; + const bytesTransferred = internals.bytesSeen; + const progressBytes = bytesTransferred - bytesNotified; + if (!progressBytes || self.destroyed) return; + + const rate = _speedometer(progressBytes); + + bytesNotified = bytesTransferred; + + process.nextTick(() => { + self.emit('progress', { + 'loaded': bytesTransferred, + 'total': totalBytes, + 'progress': totalBytes ? (bytesTransferred / totalBytes) : undefined, + 'bytes': progressBytes, + 'rate': rate ? rate : undefined, + 'estimated': rate && totalBytes && bytesTransferred <= totalBytes ? + (totalBytes - bytesTransferred) / rate : undefined + }); + }); + }, internals.ticksRate); + + const onFinish = () => { + internals.updateProgress(true); + }; + + this.once('end', onFinish); + this.once('error', onFinish); + } + + _read(size) { + const internals = this[kInternals]; + + if (internals.onReadCallback) { + internals.onReadCallback(); + } + + return super._read(size); + } + + _transform(chunk, encoding, callback) { + const self = this; + const internals = this[kInternals]; + const maxRate = internals.maxRate; + + const readableHighWaterMark = this.readableHighWaterMark; + + const timeWindow = internals.timeWindow; + + const divider = 1000 / timeWindow; + const bytesThreshold = (maxRate / divider); + const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0; + + function pushChunk(_chunk, _callback) { + const bytes = Buffer.byteLength(_chunk); + internals.bytesSeen += bytes; + internals.bytes += bytes; + + if (internals.isCaptured) { + internals.updateProgress(); + } + + if (self.push(_chunk)) { + process.nextTick(_callback); + } else { + internals.onReadCallback = () => { + internals.onReadCallback = null; + process.nextTick(_callback); + }; + } + } + + const transformChunk = (_chunk, _callback) => { + const chunkSize = Buffer.byteLength(_chunk); + let chunkRemainder = null; + let maxChunkSize = readableHighWaterMark; + let bytesLeft; + let passed = 0; + + if (maxRate) { + const now = Date.now(); + + if (!internals.ts || (passed = (now - internals.ts)) >= timeWindow) { + internals.ts = now; + bytesLeft = bytesThreshold - internals.bytes; + internals.bytes = bytesLeft < 0 ? -bytesLeft : 0; + passed = 0; + } + + bytesLeft = bytesThreshold - internals.bytes; + } + + if (maxRate) { + if (bytesLeft <= 0) { + // next time window + return setTimeout(() => { + _callback(null, _chunk); + }, timeWindow - passed); + } + + if (bytesLeft < maxChunkSize) { + maxChunkSize = bytesLeft; + } + } + + if (maxChunkSize && chunkSize > maxChunkSize && (chunkSize - maxChunkSize) > minChunkSize) { + chunkRemainder = _chunk.subarray(maxChunkSize); + _chunk = _chunk.subarray(0, maxChunkSize); + } + + pushChunk(_chunk, chunkRemainder ? () => { + process.nextTick(_callback, null, chunkRemainder); + } : _callback); + }; + + transformChunk(chunk, function transformNextChunk(err, _chunk) { + if (err) { + return callback(err); + } + + if (_chunk) { + transformChunk(_chunk, transformNextChunk); + } else { + callback(null); + } + }); + } + + setLength(length) { + this[kInternals].length = +length; + return this; + } +} + +const AxiosTransformStream$1 = AxiosTransformStream; + +const {asyncIterator} = Symbol; + +const readBlob = async function* (blob) { + if (blob.stream) { + yield* blob.stream(); + } else if (blob.arrayBuffer) { + yield await blob.arrayBuffer(); + } else if (blob[asyncIterator]) { + yield* blob[asyncIterator](); + } else { + yield blob; + } +}; + +const readBlob$1 = readBlob; + +const BOUNDARY_ALPHABET = utils$1.ALPHABET.ALPHA_DIGIT + '-_'; + +const textEncoder = new util.TextEncoder(); + +const CRLF = '\r\n'; +const CRLF_BYTES = textEncoder.encode(CRLF); +const CRLF_BYTES_COUNT = 2; + +class FormDataPart { + constructor(name, value) { + const {escapeName} = this.constructor; + const isStringValue = utils$1.isString(value); + + let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${ + !isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : '' + }${CRLF}`; + + if (isStringValue) { + value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF)); + } else { + headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}`; + } + + this.headers = textEncoder.encode(headers + CRLF); + + this.contentLength = isStringValue ? value.byteLength : value.size; + + this.size = this.headers.byteLength + this.contentLength + CRLF_BYTES_COUNT; + + this.name = name; + this.value = value; + } + + async *encode(){ + yield this.headers; + + const {value} = this; + + if(utils$1.isTypedArray(value)) { + yield value; + } else { + yield* readBlob$1(value); + } + + yield CRLF_BYTES; + } + + static escapeName(name) { + return String(name).replace(/[\r\n"]/g, (match) => ({ + '\r' : '%0D', + '\n' : '%0A', + '"' : '%22', + }[match])); + } +} + +const formDataToStream = (form, headersHandler, options) => { + const { + tag = 'form-data-boundary', + size = 25, + boundary = tag + '-' + utils$1.generateString(size, BOUNDARY_ALPHABET) + } = options || {}; + + if(!utils$1.isFormData(form)) { + throw TypeError('FormData instance required'); + } + + if (boundary.length < 1 || boundary.length > 70) { + throw Error('boundary must be 10-70 characters long') + } + + const boundaryBytes = textEncoder.encode('--' + boundary + CRLF); + const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF + CRLF); + let contentLength = footerBytes.byteLength; + + const parts = Array.from(form.entries()).map(([name, value]) => { + const part = new FormDataPart(name, value); + contentLength += part.size; + return part; + }); + + contentLength += boundaryBytes.byteLength * parts.length; + + contentLength = utils$1.toFiniteNumber(contentLength); + + const computedHeaders = { + 'Content-Type': `multipart/form-data; boundary=${boundary}` + }; + + if (Number.isFinite(contentLength)) { + computedHeaders['Content-Length'] = contentLength; + } + + headersHandler && headersHandler(computedHeaders); + + return stream.Readable.from((async function *() { + for(const part of parts) { + yield boundaryBytes; + yield* part.encode(); + } + + yield footerBytes; + })()); +}; + +const formDataToStream$1 = formDataToStream; + +class ZlibHeaderTransformStream extends stream__default["default"].Transform { + __transform(chunk, encoding, callback) { + this.push(chunk); + callback(); + } + + _transform(chunk, encoding, callback) { + if (chunk.length !== 0) { + this._transform = this.__transform; + + // Add Default Compression headers if no zlib headers are present + if (chunk[0] !== 120) { // Hex: 78 + const header = Buffer.alloc(2); + header[0] = 120; // Hex: 78 + header[1] = 156; // Hex: 9C + this.push(header, encoding); + } + } + + this.__transform(chunk, encoding, callback); + } +} + +const ZlibHeaderTransformStream$1 = ZlibHeaderTransformStream; + +const callbackify = (fn, reducer) => { + return utils$1.isAsyncFn(fn) ? function (...args) { + const cb = args.pop(); + fn.apply(this, args).then((value) => { + try { + reducer ? cb(null, ...reducer(value)) : cb(null, value); + } catch (err) { + cb(err); + } + }, cb); + } : fn; +}; + +const callbackify$1 = callbackify; + +const zlibOptions = { + flush: zlib__default["default"].constants.Z_SYNC_FLUSH, + finishFlush: zlib__default["default"].constants.Z_SYNC_FLUSH +}; + +const brotliOptions = { + flush: zlib__default["default"].constants.BROTLI_OPERATION_FLUSH, + finishFlush: zlib__default["default"].constants.BROTLI_OPERATION_FLUSH +}; + +const isBrotliSupported = utils$1.isFunction(zlib__default["default"].createBrotliDecompress); + +const {http: httpFollow, https: httpsFollow} = followRedirects__default["default"]; + +const isHttps = /https:?/; + +const supportedProtocols = platform.protocols.map(protocol => { + return protocol + ':'; +}); + +/** + * If the proxy or config beforeRedirects functions are defined, call them with the options + * object. + * + * @param {Object} options - The options object that was passed to the request. + * + * @returns {Object} + */ +function dispatchBeforeRedirect(options, responseDetails) { + if (options.beforeRedirects.proxy) { + options.beforeRedirects.proxy(options); + } + if (options.beforeRedirects.config) { + options.beforeRedirects.config(options, responseDetails); + } +} + +/** + * If the proxy or config afterRedirects functions are defined, call them with the options + * + * @param {http.ClientRequestArgs} options + * @param {AxiosProxyConfig} configProxy configuration from Axios options object + * @param {string} location + * + * @returns {http.ClientRequestArgs} + */ +function setProxy(options, configProxy, location) { + let proxy = configProxy; + if (!proxy && proxy !== false) { + const proxyUrl = proxyFromEnv.getProxyForUrl(location); + if (proxyUrl) { + proxy = new URL(proxyUrl); + } + } + if (proxy) { + // Basic proxy authorization + if (proxy.username) { + proxy.auth = (proxy.username || '') + ':' + (proxy.password || ''); + } + + if (proxy.auth) { + // Support proxy auth object form + if (proxy.auth.username || proxy.auth.password) { + proxy.auth = (proxy.auth.username || '') + ':' + (proxy.auth.password || ''); + } + const base64 = Buffer + .from(proxy.auth, 'utf8') + .toString('base64'); + options.headers['Proxy-Authorization'] = 'Basic ' + base64; + } + + options.headers.host = options.hostname + (options.port ? ':' + options.port : ''); + const proxyHost = proxy.hostname || proxy.host; + options.hostname = proxyHost; + // Replace 'host' since options is not a URL object + options.host = proxyHost; + options.port = proxy.port; + options.path = location; + if (proxy.protocol) { + options.protocol = proxy.protocol.includes(':') ? proxy.protocol : `${proxy.protocol}:`; + } + } + + options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) { + // Configure proxy for redirected request, passing the original config proxy to apply + // the exact same logic as if the redirected request was performed by axios directly. + setProxy(redirectOptions, configProxy, redirectOptions.href); + }; +} + +const isHttpAdapterSupported = typeof process !== 'undefined' && utils$1.kindOf(process) === 'process'; + +// temporary hotfix + +const wrapAsync = (asyncExecutor) => { + return new Promise((resolve, reject) => { + let onDone; + let isDone; + + const done = (value, isRejected) => { + if (isDone) return; + isDone = true; + onDone && onDone(value, isRejected); + }; + + const _resolve = (value) => { + done(value); + resolve(value); + }; + + const _reject = (reason) => { + done(reason, true); + reject(reason); + }; + + asyncExecutor(_resolve, _reject, (onDoneHandler) => (onDone = onDoneHandler)).catch(_reject); + }) +}; + +const resolveFamily = ({address, family}) => { + if (!utils$1.isString(address)) { + throw TypeError('address must be a string'); + } + return ({ + address, + family: family || (address.indexOf('.') < 0 ? 6 : 4) + }); +}; + +const buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(address) ? address : {address, family}); + +/*eslint consistent-return:0*/ +const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) { + return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) { + let {data, lookup, family} = config; + const {responseType, responseEncoding} = config; + const method = config.method.toUpperCase(); + let isDone; + let rejected = false; + let req; + + if (lookup) { + const _lookup = callbackify$1(lookup, (value) => utils$1.isArray(value) ? value : [value]); + // hotfix to support opt.all option which is required for node 20.x + lookup = (hostname, opt, cb) => { + _lookup(hostname, opt, (err, arg0, arg1) => { + if (err) { + return cb(err); + } + + const addresses = utils$1.isArray(arg0) ? arg0.map(addr => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)]; + + opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family); + }); + }; + } + + // temporary internal emitter until the AxiosRequest class will be implemented + const emitter = new EventEmitter__default["default"](); + + const onFinished = () => { + if (config.cancelToken) { + config.cancelToken.unsubscribe(abort); + } + + if (config.signal) { + config.signal.removeEventListener('abort', abort); + } + + emitter.removeAllListeners(); + }; + + onDone((value, isRejected) => { + isDone = true; + if (isRejected) { + rejected = true; + onFinished(); + } + }); + + function abort(reason) { + emitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason); + } + + emitter.once('abort', reject); + + if (config.cancelToken || config.signal) { + config.cancelToken && config.cancelToken.subscribe(abort); + if (config.signal) { + config.signal.aborted ? abort() : config.signal.addEventListener('abort', abort); + } + } + + // Parse url + const fullPath = buildFullPath(config.baseURL, config.url); + const parsed = new URL(fullPath, 'http://localhost'); + const protocol = parsed.protocol || supportedProtocols[0]; + + if (protocol === 'data:') { + let convertedData; + + if (method !== 'GET') { + return settle(resolve, reject, { + status: 405, + statusText: 'method not allowed', + headers: {}, + config + }); + } + + try { + convertedData = fromDataURI(config.url, responseType === 'blob', { + Blob: config.env && config.env.Blob + }); + } catch (err) { + throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config); + } + + if (responseType === 'text') { + convertedData = convertedData.toString(responseEncoding); + + if (!responseEncoding || responseEncoding === 'utf8') { + convertedData = utils$1.stripBOM(convertedData); + } + } else if (responseType === 'stream') { + convertedData = stream__default["default"].Readable.from(convertedData); + } + + return settle(resolve, reject, { + data: convertedData, + status: 200, + statusText: 'OK', + headers: new AxiosHeaders$1(), + config + }); + } + + if (supportedProtocols.indexOf(protocol) === -1) { + return reject(new AxiosError( + 'Unsupported protocol ' + protocol, + AxiosError.ERR_BAD_REQUEST, + config + )); + } + + const headers = AxiosHeaders$1.from(config.headers).normalize(); + + // Set User-Agent (required by some servers) + // See https://github.com/axios/axios/issues/69 + // User-Agent is specified; handle case where no UA header is desired + // Only set header if it hasn't been set in config + headers.set('User-Agent', 'axios/' + VERSION, false); + + const onDownloadProgress = config.onDownloadProgress; + const onUploadProgress = config.onUploadProgress; + const maxRate = config.maxRate; + let maxUploadRate = undefined; + let maxDownloadRate = undefined; + + // support for spec compliant FormData objects + if (utils$1.isSpecCompliantForm(data)) { + const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i); + + data = formDataToStream$1(data, (formHeaders) => { + headers.set(formHeaders); + }, { + tag: `axios-${VERSION}-boundary`, + boundary: userBoundary && userBoundary[1] || undefined + }); + // support for https://www.npmjs.com/package/form-data api + } else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders)) { + headers.set(data.getHeaders()); + + if (!headers.hasContentLength()) { + try { + const knownLength = await util__default["default"].promisify(data.getLength).call(data); + Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength); + /*eslint no-empty:0*/ + } catch (e) { + } + } + } else if (utils$1.isBlob(data)) { + data.size && headers.setContentType(data.type || 'application/octet-stream'); + headers.setContentLength(data.size || 0); + data = stream__default["default"].Readable.from(readBlob$1(data)); + } else if (data && !utils$1.isStream(data)) { + if (Buffer.isBuffer(data)) ; else if (utils$1.isArrayBuffer(data)) { + data = Buffer.from(new Uint8Array(data)); + } else if (utils$1.isString(data)) { + data = Buffer.from(data, 'utf-8'); + } else { + return reject(new AxiosError( + 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream', + AxiosError.ERR_BAD_REQUEST, + config + )); + } + + // Add Content-Length header if data exists + headers.setContentLength(data.length, false); + + if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) { + return reject(new AxiosError( + 'Request body larger than maxBodyLength limit', + AxiosError.ERR_BAD_REQUEST, + config + )); + } + } + + const contentLength = utils$1.toFiniteNumber(headers.getContentLength()); + + if (utils$1.isArray(maxRate)) { + maxUploadRate = maxRate[0]; + maxDownloadRate = maxRate[1]; + } else { + maxUploadRate = maxDownloadRate = maxRate; + } + + if (data && (onUploadProgress || maxUploadRate)) { + if (!utils$1.isStream(data)) { + data = stream__default["default"].Readable.from(data, {objectMode: false}); + } + + data = stream__default["default"].pipeline([data, new AxiosTransformStream$1({ + length: contentLength, + maxRate: utils$1.toFiniteNumber(maxUploadRate) + })], utils$1.noop); + + onUploadProgress && data.on('progress', progress => { + onUploadProgress(Object.assign(progress, { + upload: true + })); + }); + } + + // HTTP basic authentication + let auth = undefined; + if (config.auth) { + const username = config.auth.username || ''; + const password = config.auth.password || ''; + auth = username + ':' + password; + } + + if (!auth && parsed.username) { + const urlUsername = parsed.username; + const urlPassword = parsed.password; + auth = urlUsername + ':' + urlPassword; + } + + auth && headers.delete('authorization'); + + let path; + + try { + path = buildURL( + parsed.pathname + parsed.search, + config.params, + config.paramsSerializer + ).replace(/^\?/, ''); + } catch (err) { + const customErr = new Error(err.message); + customErr.config = config; + customErr.url = config.url; + customErr.exists = true; + return reject(customErr); + } + + headers.set( + 'Accept-Encoding', + 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''), false + ); + + const options = { + path, + method: method, + headers: headers.toJSON(), + agents: { http: config.httpAgent, https: config.httpsAgent }, + auth, + protocol, + family, + beforeRedirect: dispatchBeforeRedirect, + beforeRedirects: {} + }; + + // cacheable-lookup integration hotfix + !utils$1.isUndefined(lookup) && (options.lookup = lookup); + + if (config.socketPath) { + options.socketPath = config.socketPath; + } else { + options.hostname = parsed.hostname; + options.port = parsed.port; + setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path); + } + + let transport; + const isHttpsRequest = isHttps.test(options.protocol); + options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent; + if (config.transport) { + transport = config.transport; + } else if (config.maxRedirects === 0) { + transport = isHttpsRequest ? https__default["default"] : http__default["default"]; + } else { + if (config.maxRedirects) { + options.maxRedirects = config.maxRedirects; + } + if (config.beforeRedirect) { + options.beforeRedirects.config = config.beforeRedirect; + } + transport = isHttpsRequest ? httpsFollow : httpFollow; + } + + if (config.maxBodyLength > -1) { + options.maxBodyLength = config.maxBodyLength; + } else { + // follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited + options.maxBodyLength = Infinity; + } + + if (config.insecureHTTPParser) { + options.insecureHTTPParser = config.insecureHTTPParser; + } + + // Create the request + req = transport.request(options, function handleResponse(res) { + if (req.destroyed) return; + + const streams = [res]; + + const responseLength = +res.headers['content-length']; + + if (onDownloadProgress) { + const transformStream = new AxiosTransformStream$1({ + length: utils$1.toFiniteNumber(responseLength), + maxRate: utils$1.toFiniteNumber(maxDownloadRate) + }); + + onDownloadProgress && transformStream.on('progress', progress => { + onDownloadProgress(Object.assign(progress, { + download: true + })); + }); + + streams.push(transformStream); + } + + // decompress the response body transparently if required + let responseStream = res; + + // return the last request in case of redirects + const lastRequest = res.req || req; + + // if decompress disabled we should not decompress + if (config.decompress !== false && res.headers['content-encoding']) { + // if no content, but headers still say that it is encoded, + // remove the header not confuse downstream operations + if (method === 'HEAD' || res.statusCode === 204) { + delete res.headers['content-encoding']; + } + + switch ((res.headers['content-encoding'] || '').toLowerCase()) { + /*eslint default-case:0*/ + case 'gzip': + case 'x-gzip': + case 'compress': + case 'x-compress': + // add the unzipper to the body stream processing pipeline + streams.push(zlib__default["default"].createUnzip(zlibOptions)); + + // remove the content-encoding in order to not confuse downstream operations + delete res.headers['content-encoding']; + break; + case 'deflate': + streams.push(new ZlibHeaderTransformStream$1()); + + // add the unzipper to the body stream processing pipeline + streams.push(zlib__default["default"].createUnzip(zlibOptions)); + + // remove the content-encoding in order to not confuse downstream operations + delete res.headers['content-encoding']; + break; + case 'br': + if (isBrotliSupported) { + streams.push(zlib__default["default"].createBrotliDecompress(brotliOptions)); + delete res.headers['content-encoding']; + } + } + } + + responseStream = streams.length > 1 ? stream__default["default"].pipeline(streams, utils$1.noop) : streams[0]; + + const offListeners = stream__default["default"].finished(responseStream, () => { + offListeners(); + onFinished(); + }); + + const response = { + status: res.statusCode, + statusText: res.statusMessage, + headers: new AxiosHeaders$1(res.headers), + config, + request: lastRequest + }; + + if (responseType === 'stream') { + response.data = responseStream; + settle(resolve, reject, response); + } else { + const responseBuffer = []; + let totalResponseBytes = 0; + + responseStream.on('data', function handleStreamData(chunk) { + responseBuffer.push(chunk); + totalResponseBytes += chunk.length; + + // make sure the content length is not over the maxContentLength if specified + if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) { + // stream.destroy() emit aborted event before calling reject() on Node.js v16 + rejected = true; + responseStream.destroy(); + reject(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded', + AxiosError.ERR_BAD_RESPONSE, config, lastRequest)); + } + }); + + responseStream.on('aborted', function handlerStreamAborted() { + if (rejected) { + return; + } + + const err = new AxiosError( + 'maxContentLength size of ' + config.maxContentLength + ' exceeded', + AxiosError.ERR_BAD_RESPONSE, + config, + lastRequest + ); + responseStream.destroy(err); + reject(err); + }); + + responseStream.on('error', function handleStreamError(err) { + if (req.destroyed) return; + reject(AxiosError.from(err, null, config, lastRequest)); + }); + + responseStream.on('end', function handleStreamEnd() { + try { + let responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer); + if (responseType !== 'arraybuffer') { + responseData = responseData.toString(responseEncoding); + if (!responseEncoding || responseEncoding === 'utf8') { + responseData = utils$1.stripBOM(responseData); + } + } + response.data = responseData; + } catch (err) { + return reject(AxiosError.from(err, null, config, response.request, response)); + } + settle(resolve, reject, response); + }); + } + + emitter.once('abort', err => { + if (!responseStream.destroyed) { + responseStream.emit('error', err); + responseStream.destroy(); + } + }); + }); + + emitter.once('abort', err => { + reject(err); + req.destroy(err); + }); + + // Handle errors + req.on('error', function handleRequestError(err) { + // @todo remove + // if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return; + reject(AxiosError.from(err, null, config, req)); + }); + + // set tcp keep alive to prevent drop connection by peer + req.on('socket', function handleRequestSocket(socket) { + // default interval of sending ack packet is 1 minute + socket.setKeepAlive(true, 1000 * 60); + }); + + // Handle request timeout + if (config.timeout) { + // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types. + const timeout = parseInt(config.timeout, 10); + + if (Number.isNaN(timeout)) { + reject(new AxiosError( + 'error trying to parse `config.timeout` to int', + AxiosError.ERR_BAD_OPTION_VALUE, + config, + req + )); + + return; + } + + // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system. + // And timer callback will be fired, and abort() will be invoked before connection, then get "socket hang up" and code ECONNRESET. + // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up. + // And then these socket which be hang up will devouring CPU little by little. + // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect. + req.setTimeout(timeout, function handleRequestTimeout() { + if (isDone) return; + let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; + const transitional = config.transitional || transitionalDefaults; + if (config.timeoutErrorMessage) { + timeoutErrorMessage = config.timeoutErrorMessage; + } + reject(new AxiosError( + timeoutErrorMessage, + transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, + config, + req + )); + abort(); + }); + } + + + // Send the request + if (utils$1.isStream(data)) { + let ended = false; + let errored = false; + + data.on('end', () => { + ended = true; + }); + + data.once('error', err => { + errored = true; + req.destroy(err); + }); + + data.on('close', () => { + if (!ended && !errored) { + abort(new CanceledError('Request stream has been aborted', config, req)); + } + }); + + data.pipe(req); + } else { + req.end(data); + } + }); +}; + +const cookies = platform.hasStandardBrowserEnv ? + + // Standard browser envs support document.cookie + { + write(name, value, expires, path, domain, secure) { + const cookie = [name + '=' + encodeURIComponent(value)]; + + utils$1.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString()); + + utils$1.isString(path) && cookie.push('path=' + path); + + utils$1.isString(domain) && cookie.push('domain=' + domain); + + secure === true && cookie.push('secure'); + + document.cookie = cookie.join('; '); + }, + + read(name) { + const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); + return (match ? decodeURIComponent(match[3]) : null); + }, + + remove(name) { + this.write(name, '', Date.now() - 86400000); + } + } + + : + + // Non-standard browser env (web workers, react-native) lack needed support. + { + write() {}, + read() { + return null; + }, + remove() {} + }; + +const isURLSameOrigin = platform.hasStandardBrowserEnv ? + +// Standard browser envs have full support of the APIs needed to test +// whether the request URL is of the same origin as current location. + (function standardBrowserEnv() { + const msie = /(msie|trident)/i.test(navigator.userAgent); + const urlParsingNode = document.createElement('a'); + let originURL; + + /** + * Parse a URL to discover its components + * + * @param {String} url The URL to be parsed + * @returns {Object} + */ + function resolveURL(url) { + let href = url; + + if (msie) { + // IE needs attribute set twice to normalize properties + urlParsingNode.setAttribute('href', href); + href = urlParsingNode.href; + } + + urlParsingNode.setAttribute('href', href); + + // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils + return { + href: urlParsingNode.href, + protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', + host: urlParsingNode.host, + search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', + hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', + hostname: urlParsingNode.hostname, + port: urlParsingNode.port, + pathname: (urlParsingNode.pathname.charAt(0) === '/') ? + urlParsingNode.pathname : + '/' + urlParsingNode.pathname + }; + } + + originURL = resolveURL(window.location.href); + + /** + * Determine if a URL shares the same origin as the current location + * + * @param {String} requestURL The URL to test + * @returns {boolean} True if URL shares the same origin, otherwise false + */ + return function isURLSameOrigin(requestURL) { + const parsed = (utils$1.isString(requestURL)) ? resolveURL(requestURL) : requestURL; + return (parsed.protocol === originURL.protocol && + parsed.host === originURL.host); + }; + })() : + + // Non standard browser envs (web workers, react-native) lack needed support. + (function nonStandardBrowserEnv() { + return function isURLSameOrigin() { + return true; + }; + })(); + +function progressEventReducer(listener, isDownloadStream) { + let bytesNotified = 0; + const _speedometer = speedometer(50, 250); + + return e => { + const loaded = e.loaded; + const total = e.lengthComputable ? e.total : undefined; + const progressBytes = loaded - bytesNotified; + const rate = _speedometer(progressBytes); + const inRange = loaded <= total; + + bytesNotified = loaded; + + const data = { + loaded, + total, + progress: total ? (loaded / total) : undefined, + bytes: progressBytes, + rate: rate ? rate : undefined, + estimated: rate && total && inRange ? (total - loaded) / rate : undefined, + event: e + }; + + data[isDownloadStream ? 'download' : 'upload'] = true; + + listener(data); + }; +} + +const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined'; + +const xhrAdapter = isXHRAdapterSupported && function (config) { + return new Promise(function dispatchXhrRequest(resolve, reject) { + let requestData = config.data; + const requestHeaders = AxiosHeaders$1.from(config.headers).normalize(); + let {responseType, withXSRFToken} = config; + let onCanceled; + function done() { + if (config.cancelToken) { + config.cancelToken.unsubscribe(onCanceled); + } + + if (config.signal) { + config.signal.removeEventListener('abort', onCanceled); + } + } + + let contentType; + + if (utils$1.isFormData(requestData)) { + if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) { + requestHeaders.setContentType(false); // Let the browser set it + } else if ((contentType = requestHeaders.getContentType()) !== false) { + // fix semicolon duplication issue for ReactNative FormData implementation + const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : []; + requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; ')); + } + } + + let request = new XMLHttpRequest(); + + // HTTP basic authentication + if (config.auth) { + const username = config.auth.username || ''; + const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; + requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password)); + } + + const fullPath = buildFullPath(config.baseURL, config.url); + + request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); + + // Set the request timeout in MS + request.timeout = config.timeout; + + function onloadend() { + if (!request) { + return; + } + // Prepare the response + const responseHeaders = AxiosHeaders$1.from( + 'getAllResponseHeaders' in request && request.getAllResponseHeaders() + ); + const responseData = !responseType || responseType === 'text' || responseType === 'json' ? + request.responseText : request.response; + const response = { + data: responseData, + status: request.status, + statusText: request.statusText, + headers: responseHeaders, + config, + request + }; + + settle(function _resolve(value) { + resolve(value); + done(); + }, function _reject(err) { + reject(err); + done(); + }, response); + + // Clean up request + request = null; + } + + if ('onloadend' in request) { + // Use onloadend if available + request.onloadend = onloadend; + } else { + // Listen for ready state to emulate onloadend + request.onreadystatechange = function handleLoad() { + if (!request || request.readyState !== 4) { + return; + } + + // The request errored out and we didn't get a response, this will be + // handled by onerror instead + // With one exception: request that using file: protocol, most browsers + // will return status as 0 even though it's a successful request + if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { + return; + } + // readystate handler is calling before onerror or ontimeout handlers, + // so we should call onloadend on the next 'tick' + setTimeout(onloadend); + }; + } + + // Handle browser request cancellation (as opposed to a manual cancellation) + request.onabort = function handleAbort() { + if (!request) { + return; + } + + reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request)); + + // Clean up request + request = null; + }; + + // Handle low level network errors + request.onerror = function handleError() { + // Real errors are hidden from us by the browser + // onerror should only fire if it's a network error + reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request)); + + // Clean up request + request = null; + }; + + // Handle timeout + request.ontimeout = function handleTimeout() { + let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; + const transitional = config.transitional || transitionalDefaults; + if (config.timeoutErrorMessage) { + timeoutErrorMessage = config.timeoutErrorMessage; + } + reject(new AxiosError( + timeoutErrorMessage, + transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, + config, + request)); + + // Clean up request + request = null; + }; + + // Add xsrf header + // This is only done if running in a standard browser environment. + // Specifically not if we're in a web worker, or react-native. + if(platform.hasStandardBrowserEnv) { + withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config)); + + if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) { + // Add xsrf header + const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName); + + if (xsrfValue) { + requestHeaders.set(config.xsrfHeaderName, xsrfValue); + } + } + } + + // Remove Content-Type if data is undefined + requestData === undefined && requestHeaders.setContentType(null); + + // Add headers to the request + if ('setRequestHeader' in request) { + utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) { + request.setRequestHeader(key, val); + }); + } + + // Add withCredentials to request if needed + if (!utils$1.isUndefined(config.withCredentials)) { + request.withCredentials = !!config.withCredentials; + } + + // Add responseType to request if needed + if (responseType && responseType !== 'json') { + request.responseType = config.responseType; + } + + // Handle progress if needed + if (typeof config.onDownloadProgress === 'function') { + request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true)); + } + + // Not all browsers support upload events + if (typeof config.onUploadProgress === 'function' && request.upload) { + request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress)); + } + + if (config.cancelToken || config.signal) { + // Handle cancellation + // eslint-disable-next-line func-names + onCanceled = cancel => { + if (!request) { + return; + } + reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel); + request.abort(); + request = null; + }; + + config.cancelToken && config.cancelToken.subscribe(onCanceled); + if (config.signal) { + config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); + } + } + + const protocol = parseProtocol(fullPath); + + if (protocol && platform.protocols.indexOf(protocol) === -1) { + reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config)); + return; + } + + + // Send the request + request.send(requestData || null); + }); +}; + +const knownAdapters = { + http: httpAdapter, + xhr: xhrAdapter +}; + +utils$1.forEach(knownAdapters, (fn, value) => { + if (fn) { + try { + Object.defineProperty(fn, 'name', {value}); + } catch (e) { + // eslint-disable-next-line no-empty + } + Object.defineProperty(fn, 'adapterName', {value}); + } +}); + +const renderReason = (reason) => `- ${reason}`; + +const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false; + +const adapters = { + getAdapter: (adapters) => { + adapters = utils$1.isArray(adapters) ? adapters : [adapters]; + + const {length} = adapters; + let nameOrAdapter; + let adapter; + + const rejectedReasons = {}; + + for (let i = 0; i < length; i++) { + nameOrAdapter = adapters[i]; + let id; + + adapter = nameOrAdapter; + + if (!isResolvedHandle(nameOrAdapter)) { + adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()]; + + if (adapter === undefined) { + throw new AxiosError(`Unknown adapter '${id}'`); + } + } + + if (adapter) { + break; + } + + rejectedReasons[id || '#' + i] = adapter; + } + + if (!adapter) { + + const reasons = Object.entries(rejectedReasons) + .map(([id, state]) => `adapter ${id} ` + + (state === false ? 'is not supported by the environment' : 'is not available in the build') + ); + + let s = length ? + (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) : + 'as no adapter specified'; + + throw new AxiosError( + `There is no suitable adapter to dispatch the request ` + s, + 'ERR_NOT_SUPPORT' + ); + } + + return adapter; + }, + adapters: knownAdapters +}; + +/** + * Throws a `CanceledError` if cancellation has been requested. + * + * @param {Object} config The config that is to be used for the request + * + * @returns {void} + */ +function throwIfCancellationRequested(config) { + if (config.cancelToken) { + config.cancelToken.throwIfRequested(); + } + + if (config.signal && config.signal.aborted) { + throw new CanceledError(null, config); + } +} + +/** + * Dispatch a request to the server using the configured adapter. + * + * @param {object} config The config that is to be used for the request + * + * @returns {Promise} The Promise to be fulfilled + */ +function dispatchRequest(config) { + throwIfCancellationRequested(config); + + config.headers = AxiosHeaders$1.from(config.headers); + + // Transform request data + config.data = transformData.call( + config, + config.transformRequest + ); + + if (['post', 'put', 'patch'].indexOf(config.method) !== -1) { + config.headers.setContentType('application/x-www-form-urlencoded', false); + } + + const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter); + + return adapter(config).then(function onAdapterResolution(response) { + throwIfCancellationRequested(config); + + // Transform response data + response.data = transformData.call( + config, + config.transformResponse, + response + ); + + response.headers = AxiosHeaders$1.from(response.headers); + + return response; + }, function onAdapterRejection(reason) { + if (!isCancel(reason)) { + throwIfCancellationRequested(config); + + // Transform response data + if (reason && reason.response) { + reason.response.data = transformData.call( + config, + config.transformResponse, + reason.response + ); + reason.response.headers = AxiosHeaders$1.from(reason.response.headers); + } + } + + return Promise.reject(reason); + }); +} + +const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? thing.toJSON() : thing; + +/** + * Config-specific merge-function which creates a new config-object + * by merging two configuration objects together. + * + * @param {Object} config1 + * @param {Object} config2 + * + * @returns {Object} New object resulting from merging config2 to config1 + */ +function mergeConfig(config1, config2) { + // eslint-disable-next-line no-param-reassign + config2 = config2 || {}; + const config = {}; + + function getMergedValue(target, source, caseless) { + if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) { + return utils$1.merge.call({caseless}, target, source); + } else if (utils$1.isPlainObject(source)) { + return utils$1.merge({}, source); + } else if (utils$1.isArray(source)) { + return source.slice(); + } + return source; + } + + // eslint-disable-next-line consistent-return + function mergeDeepProperties(a, b, caseless) { + if (!utils$1.isUndefined(b)) { + return getMergedValue(a, b, caseless); + } else if (!utils$1.isUndefined(a)) { + return getMergedValue(undefined, a, caseless); + } + } + + // eslint-disable-next-line consistent-return + function valueFromConfig2(a, b) { + if (!utils$1.isUndefined(b)) { + return getMergedValue(undefined, b); + } + } + + // eslint-disable-next-line consistent-return + function defaultToConfig2(a, b) { + if (!utils$1.isUndefined(b)) { + return getMergedValue(undefined, b); + } else if (!utils$1.isUndefined(a)) { + return getMergedValue(undefined, a); + } + } + + // eslint-disable-next-line consistent-return + function mergeDirectKeys(a, b, prop) { + if (prop in config2) { + return getMergedValue(a, b); + } else if (prop in config1) { + return getMergedValue(undefined, a); + } + } + + const mergeMap = { + url: valueFromConfig2, + method: valueFromConfig2, + data: valueFromConfig2, + baseURL: defaultToConfig2, + transformRequest: defaultToConfig2, + transformResponse: defaultToConfig2, + paramsSerializer: defaultToConfig2, + timeout: defaultToConfig2, + timeoutMessage: defaultToConfig2, + withCredentials: defaultToConfig2, + withXSRFToken: defaultToConfig2, + adapter: defaultToConfig2, + responseType: defaultToConfig2, + xsrfCookieName: defaultToConfig2, + xsrfHeaderName: defaultToConfig2, + onUploadProgress: defaultToConfig2, + onDownloadProgress: defaultToConfig2, + decompress: defaultToConfig2, + maxContentLength: defaultToConfig2, + maxBodyLength: defaultToConfig2, + beforeRedirect: defaultToConfig2, + transport: defaultToConfig2, + httpAgent: defaultToConfig2, + httpsAgent: defaultToConfig2, + cancelToken: defaultToConfig2, + socketPath: defaultToConfig2, + responseEncoding: defaultToConfig2, + validateStatus: mergeDirectKeys, + headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true) + }; + + utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) { + const merge = mergeMap[prop] || mergeDeepProperties; + const configValue = merge(config1[prop], config2[prop], prop); + (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue); + }); + + return config; +} + +const validators$1 = {}; + +// eslint-disable-next-line func-names +['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => { + validators$1[type] = function validator(thing) { + return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; + }; +}); + +const deprecatedWarnings = {}; + +/** + * Transitional option validator + * + * @param {function|boolean?} validator - set to false if the transitional option has been removed + * @param {string?} version - deprecated version / removed since version + * @param {string?} message - some message with additional info + * + * @returns {function} + */ +validators$1.transitional = function transitional(validator, version, message) { + function formatMessage(opt, desc) { + return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); + } + + // eslint-disable-next-line func-names + return (value, opt, opts) => { + if (validator === false) { + throw new AxiosError( + formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), + AxiosError.ERR_DEPRECATED + ); + } + + if (version && !deprecatedWarnings[opt]) { + deprecatedWarnings[opt] = true; + // eslint-disable-next-line no-console + console.warn( + formatMessage( + opt, + ' has been deprecated since v' + version + ' and will be removed in the near future' + ) + ); + } + + return validator ? validator(value, opt, opts) : true; + }; +}; + +/** + * Assert object's properties type + * + * @param {object} options + * @param {object} schema + * @param {boolean?} allowUnknown + * + * @returns {object} + */ + +function assertOptions(options, schema, allowUnknown) { + if (typeof options !== 'object') { + throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE); + } + const keys = Object.keys(options); + let i = keys.length; + while (i-- > 0) { + const opt = keys[i]; + const validator = schema[opt]; + if (validator) { + const value = options[opt]; + const result = value === undefined || validator(value, opt, options); + if (result !== true) { + throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE); + } + continue; + } + if (allowUnknown !== true) { + throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION); + } + } +} + +const validator = { + assertOptions, + validators: validators$1 +}; + +const validators = validator.validators; + +/** + * Create a new instance of Axios + * + * @param {Object} instanceConfig The default config for the instance + * + * @return {Axios} A new instance of Axios + */ +class Axios { + constructor(instanceConfig) { + this.defaults = instanceConfig; + this.interceptors = { + request: new InterceptorManager$1(), + response: new InterceptorManager$1() + }; + } + + /** + * Dispatch a request + * + * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) + * @param {?Object} config + * + * @returns {Promise} The Promise to be fulfilled + */ + async request(configOrUrl, config) { + try { + return await this._request(configOrUrl, config); + } catch (err) { + if (err instanceof Error) { + let dummy; + + Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error()); + + // slice off the Error: ... line + const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : ''; + + if (!err.stack) { + err.stack = stack; + // match without the 2 top stack lines + } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) { + err.stack += '\n' + stack; + } + } + + throw err; + } + } + + _request(configOrUrl, config) { + /*eslint no-param-reassign:0*/ + // Allow for axios('example/url'[, config]) a la fetch API + if (typeof configOrUrl === 'string') { + config = config || {}; + config.url = configOrUrl; + } else { + config = configOrUrl || {}; + } + + config = mergeConfig(this.defaults, config); + + const {transitional, paramsSerializer, headers} = config; + + if (transitional !== undefined) { + validator.assertOptions(transitional, { + silentJSONParsing: validators.transitional(validators.boolean), + forcedJSONParsing: validators.transitional(validators.boolean), + clarifyTimeoutError: validators.transitional(validators.boolean) + }, false); + } + + if (paramsSerializer != null) { + if (utils$1.isFunction(paramsSerializer)) { + config.paramsSerializer = { + serialize: paramsSerializer + }; + } else { + validator.assertOptions(paramsSerializer, { + encode: validators.function, + serialize: validators.function + }, true); + } + } + + // Set config.method + config.method = (config.method || this.defaults.method || 'get').toLowerCase(); + + // Flatten headers + let contextHeaders = headers && utils$1.merge( + headers.common, + headers[config.method] + ); + + headers && utils$1.forEach( + ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], + (method) => { + delete headers[method]; + } + ); + + config.headers = AxiosHeaders$1.concat(contextHeaders, headers); + + // filter out skipped interceptors + const requestInterceptorChain = []; + let synchronousRequestInterceptors = true; + this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { + if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { + return; + } + + synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; + + requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); + }); + + const responseInterceptorChain = []; + this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { + responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); + }); + + let promise; + let i = 0; + let len; + + if (!synchronousRequestInterceptors) { + const chain = [dispatchRequest.bind(this), undefined]; + chain.unshift.apply(chain, requestInterceptorChain); + chain.push.apply(chain, responseInterceptorChain); + len = chain.length; + + promise = Promise.resolve(config); + + while (i < len) { + promise = promise.then(chain[i++], chain[i++]); + } + + return promise; + } + + len = requestInterceptorChain.length; + + let newConfig = config; + + i = 0; + + while (i < len) { + const onFulfilled = requestInterceptorChain[i++]; + const onRejected = requestInterceptorChain[i++]; + try { + newConfig = onFulfilled(newConfig); + } catch (error) { + onRejected.call(this, error); + break; + } + } + + try { + promise = dispatchRequest.call(this, newConfig); + } catch (error) { + return Promise.reject(error); + } + + i = 0; + len = responseInterceptorChain.length; + + while (i < len) { + promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); + } + + return promise; + } + + getUri(config) { + config = mergeConfig(this.defaults, config); + const fullPath = buildFullPath(config.baseURL, config.url); + return buildURL(fullPath, config.params, config.paramsSerializer); + } +} + +// Provide aliases for supported request methods +utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { + /*eslint func-names:0*/ + Axios.prototype[method] = function(url, config) { + return this.request(mergeConfig(config || {}, { + method, + url, + data: (config || {}).data + })); + }; +}); + +utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { + /*eslint func-names:0*/ + + function generateHTTPMethod(isForm) { + return function httpMethod(url, data, config) { + return this.request(mergeConfig(config || {}, { + method, + headers: isForm ? { + 'Content-Type': 'multipart/form-data' + } : {}, + url, + data + })); + }; + } + + Axios.prototype[method] = generateHTTPMethod(); + + Axios.prototype[method + 'Form'] = generateHTTPMethod(true); +}); + +const Axios$1 = Axios; + +/** + * A `CancelToken` is an object that can be used to request cancellation of an operation. + * + * @param {Function} executor The executor function. + * + * @returns {CancelToken} + */ +class CancelToken { + constructor(executor) { + if (typeof executor !== 'function') { + throw new TypeError('executor must be a function.'); + } + + let resolvePromise; + + this.promise = new Promise(function promiseExecutor(resolve) { + resolvePromise = resolve; + }); + + const token = this; + + // eslint-disable-next-line func-names + this.promise.then(cancel => { + if (!token._listeners) return; + + let i = token._listeners.length; + + while (i-- > 0) { + token._listeners[i](cancel); + } + token._listeners = null; + }); + + // eslint-disable-next-line func-names + this.promise.then = onfulfilled => { + let _resolve; + // eslint-disable-next-line func-names + const promise = new Promise(resolve => { + token.subscribe(resolve); + _resolve = resolve; + }).then(onfulfilled); + + promise.cancel = function reject() { + token.unsubscribe(_resolve); + }; + + return promise; + }; + + executor(function cancel(message, config, request) { + if (token.reason) { + // Cancellation has already been requested + return; + } + + token.reason = new CanceledError(message, config, request); + resolvePromise(token.reason); + }); + } + + /** + * Throws a `CanceledError` if cancellation has been requested. + */ + throwIfRequested() { + if (this.reason) { + throw this.reason; + } + } + + /** + * Subscribe to the cancel signal + */ + + subscribe(listener) { + if (this.reason) { + listener(this.reason); + return; + } + + if (this._listeners) { + this._listeners.push(listener); + } else { + this._listeners = [listener]; + } + } + + /** + * Unsubscribe from the cancel signal + */ + + unsubscribe(listener) { + if (!this._listeners) { + return; + } + const index = this._listeners.indexOf(listener); + if (index !== -1) { + this._listeners.splice(index, 1); + } + } + + /** + * Returns an object that contains a new `CancelToken` and a function that, when called, + * cancels the `CancelToken`. + */ + static source() { + let cancel; + const token = new CancelToken(function executor(c) { + cancel = c; + }); + return { + token, + cancel + }; + } +} + +const CancelToken$1 = CancelToken; + +/** + * Syntactic sugar for invoking a function and expanding an array for arguments. + * + * Common use case would be to use `Function.prototype.apply`. + * + * ```js + * function f(x, y, z) {} + * var args = [1, 2, 3]; + * f.apply(null, args); + * ``` + * + * With `spread` this example can be re-written. + * + * ```js + * spread(function(x, y, z) {})([1, 2, 3]); + * ``` + * + * @param {Function} callback + * + * @returns {Function} + */ +function spread(callback) { + return function wrap(arr) { + return callback.apply(null, arr); + }; +} + +/** + * Determines whether the payload is an error thrown by Axios + * + * @param {*} payload The value to test + * + * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false + */ +function isAxiosError(payload) { + return utils$1.isObject(payload) && (payload.isAxiosError === true); +} + +const HttpStatusCode = { + Continue: 100, + SwitchingProtocols: 101, + Processing: 102, + EarlyHints: 103, + Ok: 200, + Created: 201, + Accepted: 202, + NonAuthoritativeInformation: 203, + NoContent: 204, + ResetContent: 205, + PartialContent: 206, + MultiStatus: 207, + AlreadyReported: 208, + ImUsed: 226, + MultipleChoices: 300, + MovedPermanently: 301, + Found: 302, + SeeOther: 303, + NotModified: 304, + UseProxy: 305, + Unused: 306, + TemporaryRedirect: 307, + PermanentRedirect: 308, + BadRequest: 400, + Unauthorized: 401, + PaymentRequired: 402, + Forbidden: 403, + NotFound: 404, + MethodNotAllowed: 405, + NotAcceptable: 406, + ProxyAuthenticationRequired: 407, + RequestTimeout: 408, + Conflict: 409, + Gone: 410, + LengthRequired: 411, + PreconditionFailed: 412, + PayloadTooLarge: 413, + UriTooLong: 414, + UnsupportedMediaType: 415, + RangeNotSatisfiable: 416, + ExpectationFailed: 417, + ImATeapot: 418, + MisdirectedRequest: 421, + UnprocessableEntity: 422, + Locked: 423, + FailedDependency: 424, + TooEarly: 425, + UpgradeRequired: 426, + PreconditionRequired: 428, + TooManyRequests: 429, + RequestHeaderFieldsTooLarge: 431, + UnavailableForLegalReasons: 451, + InternalServerError: 500, + NotImplemented: 501, + BadGateway: 502, + ServiceUnavailable: 503, + GatewayTimeout: 504, + HttpVersionNotSupported: 505, + VariantAlsoNegotiates: 506, + InsufficientStorage: 507, + LoopDetected: 508, + NotExtended: 510, + NetworkAuthenticationRequired: 511, +}; + +Object.entries(HttpStatusCode).forEach(([key, value]) => { + HttpStatusCode[value] = key; +}); + +const HttpStatusCode$1 = HttpStatusCode; + +/** + * Create an instance of Axios + * + * @param {Object} defaultConfig The default config for the instance + * + * @returns {Axios} A new instance of Axios + */ +function createInstance(defaultConfig) { + const context = new Axios$1(defaultConfig); + const instance = bind(Axios$1.prototype.request, context); + + // Copy axios.prototype to instance + utils$1.extend(instance, Axios$1.prototype, context, {allOwnKeys: true}); + + // Copy context to instance + utils$1.extend(instance, context, null, {allOwnKeys: true}); + + // Factory for creating new instances + instance.create = function create(instanceConfig) { + return createInstance(mergeConfig(defaultConfig, instanceConfig)); + }; + + return instance; +} + +// Create the default instance to be exported +const axios = createInstance(defaults$1); + +// Expose Axios class to allow class inheritance +axios.Axios = Axios$1; + +// Expose Cancel & CancelToken +axios.CanceledError = CanceledError; +axios.CancelToken = CancelToken$1; +axios.isCancel = isCancel; +axios.VERSION = VERSION; +axios.toFormData = toFormData; + +// Expose AxiosError class +axios.AxiosError = AxiosError; + +// alias for CanceledError for backward compatibility +axios.Cancel = axios.CanceledError; + +// Expose all/spread +axios.all = function all(promises) { + return Promise.all(promises); +}; + +axios.spread = spread; + +// Expose isAxiosError +axios.isAxiosError = isAxiosError; + +// Expose mergeConfig +axios.mergeConfig = mergeConfig; + +axios.AxiosHeaders = AxiosHeaders$1; + +axios.formToJSON = thing => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing); + +axios.getAdapter = adapters.getAdapter; + +axios.HttpStatusCode = HttpStatusCode$1; + +axios.default = axios; + +module.exports = axios; +//# sourceMappingURL=axios.cjs.map diff --git a/Scripts/node_modules/axios/dist/node/axios.cjs.map b/Scripts/node_modules/axios/dist/node/axios.cjs.map new file mode 100644 index 00000000..ab531c83 --- /dev/null +++ b/Scripts/node_modules/axios/dist/node/axios.cjs.map @@ -0,0 +1 @@ +{"version":3,"file":"axios.cjs","sources":["../../lib/helpers/bind.js","../../lib/utils.js","../../lib/core/AxiosError.js","../../lib/helpers/toFormData.js","../../lib/helpers/AxiosURLSearchParams.js","../../lib/helpers/buildURL.js","../../lib/core/InterceptorManager.js","../../lib/defaults/transitional.js","../../lib/platform/node/classes/URLSearchParams.js","../../lib/platform/node/index.js","../../lib/platform/common/utils.js","../../lib/platform/index.js","../../lib/helpers/toURLEncodedForm.js","../../lib/helpers/formDataToJSON.js","../../lib/defaults/index.js","../../lib/helpers/parseHeaders.js","../../lib/core/AxiosHeaders.js","../../lib/core/transformData.js","../../lib/cancel/isCancel.js","../../lib/cancel/CanceledError.js","../../lib/core/settle.js","../../lib/helpers/isAbsoluteURL.js","../../lib/helpers/combineURLs.js","../../lib/core/buildFullPath.js","../../lib/env/data.js","../../lib/helpers/parseProtocol.js","../../lib/helpers/fromDataURI.js","../../lib/helpers/throttle.js","../../lib/helpers/speedometer.js","../../lib/helpers/AxiosTransformStream.js","../../lib/helpers/readBlob.js","../../lib/helpers/formDataToStream.js","../../lib/helpers/ZlibHeaderTransformStream.js","../../lib/helpers/callbackify.js","../../lib/adapters/http.js","../../lib/helpers/cookies.js","../../lib/helpers/isURLSameOrigin.js","../../lib/adapters/xhr.js","../../lib/adapters/adapters.js","../../lib/core/dispatchRequest.js","../../lib/core/mergeConfig.js","../../lib/helpers/validator.js","../../lib/core/Axios.js","../../lib/cancel/CancelToken.js","../../lib/helpers/spread.js","../../lib/helpers/isAxiosError.js","../../lib/helpers/HttpStatusCode.js","../../lib/axios.js"],"sourcesContent":["'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","'use strict';\n\nimport url from 'url';\nexport default url.URLSearchParams;\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\n\nexport default {\n isNode: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob: typeof Blob !== 'undefined' && Blob || null\n },\n protocols: [ 'http', 'https', 'file', 'data' ]\n};\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = (\n (product) => {\n return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0\n })(typeof navigator !== 'undefined' && navigator.product);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","export const VERSION = \"1.6.7\";","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport parseProtocol from './parseProtocol.js';\nimport platform from '../platform/index.js';\n\nconst DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\\s\\S]*)$/;\n\n/**\n * Parse data uri to a Buffer or Blob\n *\n * @param {String} uri\n * @param {?Boolean} asBlob\n * @param {?Object} options\n * @param {?Function} options.Blob\n *\n * @returns {Buffer|Blob}\n */\nexport default function fromDataURI(uri, asBlob, options) {\n const _Blob = options && options.Blob || platform.classes.Blob;\n const protocol = parseProtocol(uri);\n\n if (asBlob === undefined && _Blob) {\n asBlob = true;\n }\n\n if (protocol === 'data') {\n uri = protocol.length ? uri.slice(protocol.length + 1) : uri;\n\n const match = DATA_URL_PATTERN.exec(uri);\n\n if (!match) {\n throw new AxiosError('Invalid URL', AxiosError.ERR_INVALID_URL);\n }\n\n const mime = match[1];\n const isBase64 = match[2];\n const body = match[3];\n const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? 'base64' : 'utf8');\n\n if (asBlob) {\n if (!_Blob) {\n throw new AxiosError('Blob is not supported', AxiosError.ERR_NOT_SUPPORT);\n }\n\n return new _Blob([buffer], {type: mime});\n }\n\n return buffer;\n }\n\n throw new AxiosError('Unsupported protocol ' + protocol, AxiosError.ERR_NOT_SUPPORT);\n}\n","'use strict';\n\n/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n const threshold = 1000 / freq;\n let timer = null;\n return function throttled(force, args) {\n const now = Date.now();\n if (force || now - timestamp > threshold) {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n timestamp = now;\n return fn.apply(null, args);\n }\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n timestamp = Date.now();\n return fn.apply(null, args);\n }, threshold - (now - timestamp));\n }\n };\n}\n\nexport default throttle;\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","'use strict';\n\nimport stream from 'stream';\nimport utils from '../utils.js';\nimport throttle from './throttle.js';\nimport speedometer from './speedometer.js';\n\nconst kInternals = Symbol('internals');\n\nclass AxiosTransformStream extends stream.Transform{\n constructor(options) {\n options = utils.toFlatObject(options, {\n maxRate: 0,\n chunkSize: 64 * 1024,\n minChunkSize: 100,\n timeWindow: 500,\n ticksRate: 2,\n samplesCount: 15\n }, null, (prop, source) => {\n return !utils.isUndefined(source[prop]);\n });\n\n super({\n readableHighWaterMark: options.chunkSize\n });\n\n const self = this;\n\n const internals = this[kInternals] = {\n length: options.length,\n timeWindow: options.timeWindow,\n ticksRate: options.ticksRate,\n chunkSize: options.chunkSize,\n maxRate: options.maxRate,\n minChunkSize: options.minChunkSize,\n bytesSeen: 0,\n isCaptured: false,\n notifiedBytesLoaded: 0,\n ts: Date.now(),\n bytes: 0,\n onReadCallback: null\n };\n\n const _speedometer = speedometer(internals.ticksRate * options.samplesCount, internals.timeWindow);\n\n this.on('newListener', event => {\n if (event === 'progress') {\n if (!internals.isCaptured) {\n internals.isCaptured = true;\n }\n }\n });\n\n let bytesNotified = 0;\n\n internals.updateProgress = throttle(function throttledHandler() {\n const totalBytes = internals.length;\n const bytesTransferred = internals.bytesSeen;\n const progressBytes = bytesTransferred - bytesNotified;\n if (!progressBytes || self.destroyed) return;\n\n const rate = _speedometer(progressBytes);\n\n bytesNotified = bytesTransferred;\n\n process.nextTick(() => {\n self.emit('progress', {\n 'loaded': bytesTransferred,\n 'total': totalBytes,\n 'progress': totalBytes ? (bytesTransferred / totalBytes) : undefined,\n 'bytes': progressBytes,\n 'rate': rate ? rate : undefined,\n 'estimated': rate && totalBytes && bytesTransferred <= totalBytes ?\n (totalBytes - bytesTransferred) / rate : undefined\n });\n });\n }, internals.ticksRate);\n\n const onFinish = () => {\n internals.updateProgress(true);\n };\n\n this.once('end', onFinish);\n this.once('error', onFinish);\n }\n\n _read(size) {\n const internals = this[kInternals];\n\n if (internals.onReadCallback) {\n internals.onReadCallback();\n }\n\n return super._read(size);\n }\n\n _transform(chunk, encoding, callback) {\n const self = this;\n const internals = this[kInternals];\n const maxRate = internals.maxRate;\n\n const readableHighWaterMark = this.readableHighWaterMark;\n\n const timeWindow = internals.timeWindow;\n\n const divider = 1000 / timeWindow;\n const bytesThreshold = (maxRate / divider);\n const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;\n\n function pushChunk(_chunk, _callback) {\n const bytes = Buffer.byteLength(_chunk);\n internals.bytesSeen += bytes;\n internals.bytes += bytes;\n\n if (internals.isCaptured) {\n internals.updateProgress();\n }\n\n if (self.push(_chunk)) {\n process.nextTick(_callback);\n } else {\n internals.onReadCallback = () => {\n internals.onReadCallback = null;\n process.nextTick(_callback);\n };\n }\n }\n\n const transformChunk = (_chunk, _callback) => {\n const chunkSize = Buffer.byteLength(_chunk);\n let chunkRemainder = null;\n let maxChunkSize = readableHighWaterMark;\n let bytesLeft;\n let passed = 0;\n\n if (maxRate) {\n const now = Date.now();\n\n if (!internals.ts || (passed = (now - internals.ts)) >= timeWindow) {\n internals.ts = now;\n bytesLeft = bytesThreshold - internals.bytes;\n internals.bytes = bytesLeft < 0 ? -bytesLeft : 0;\n passed = 0;\n }\n\n bytesLeft = bytesThreshold - internals.bytes;\n }\n\n if (maxRate) {\n if (bytesLeft <= 0) {\n // next time window\n return setTimeout(() => {\n _callback(null, _chunk);\n }, timeWindow - passed);\n }\n\n if (bytesLeft < maxChunkSize) {\n maxChunkSize = bytesLeft;\n }\n }\n\n if (maxChunkSize && chunkSize > maxChunkSize && (chunkSize - maxChunkSize) > minChunkSize) {\n chunkRemainder = _chunk.subarray(maxChunkSize);\n _chunk = _chunk.subarray(0, maxChunkSize);\n }\n\n pushChunk(_chunk, chunkRemainder ? () => {\n process.nextTick(_callback, null, chunkRemainder);\n } : _callback);\n };\n\n transformChunk(chunk, function transformNextChunk(err, _chunk) {\n if (err) {\n return callback(err);\n }\n\n if (_chunk) {\n transformChunk(_chunk, transformNextChunk);\n } else {\n callback(null);\n }\n });\n }\n\n setLength(length) {\n this[kInternals].length = +length;\n return this;\n }\n}\n\nexport default AxiosTransformStream;\n","const {asyncIterator} = Symbol;\n\nconst readBlob = async function* (blob) {\n if (blob.stream) {\n yield* blob.stream()\n } else if (blob.arrayBuffer) {\n yield await blob.arrayBuffer()\n } else if (blob[asyncIterator]) {\n yield* blob[asyncIterator]();\n } else {\n yield blob;\n }\n}\n\nexport default readBlob;\n","import {TextEncoder} from 'util';\nimport {Readable} from 'stream';\nimport utils from \"../utils.js\";\nimport readBlob from \"./readBlob.js\";\n\nconst BOUNDARY_ALPHABET = utils.ALPHABET.ALPHA_DIGIT + '-_';\n\nconst textEncoder = new TextEncoder();\n\nconst CRLF = '\\r\\n';\nconst CRLF_BYTES = textEncoder.encode(CRLF);\nconst CRLF_BYTES_COUNT = 2;\n\nclass FormDataPart {\n constructor(name, value) {\n const {escapeName} = this.constructor;\n const isStringValue = utils.isString(value);\n\n let headers = `Content-Disposition: form-data; name=\"${escapeName(name)}\"${\n !isStringValue && value.name ? `; filename=\"${escapeName(value.name)}\"` : ''\n }${CRLF}`;\n\n if (isStringValue) {\n value = textEncoder.encode(String(value).replace(/\\r?\\n|\\r\\n?/g, CRLF));\n } else {\n headers += `Content-Type: ${value.type || \"application/octet-stream\"}${CRLF}`\n }\n\n this.headers = textEncoder.encode(headers + CRLF);\n\n this.contentLength = isStringValue ? value.byteLength : value.size;\n\n this.size = this.headers.byteLength + this.contentLength + CRLF_BYTES_COUNT;\n\n this.name = name;\n this.value = value;\n }\n\n async *encode(){\n yield this.headers;\n\n const {value} = this;\n\n if(utils.isTypedArray(value)) {\n yield value;\n } else {\n yield* readBlob(value);\n }\n\n yield CRLF_BYTES;\n }\n\n static escapeName(name) {\n return String(name).replace(/[\\r\\n\"]/g, (match) => ({\n '\\r' : '%0D',\n '\\n' : '%0A',\n '\"' : '%22',\n }[match]));\n }\n}\n\nconst formDataToStream = (form, headersHandler, options) => {\n const {\n tag = 'form-data-boundary',\n size = 25,\n boundary = tag + '-' + utils.generateString(size, BOUNDARY_ALPHABET)\n } = options || {};\n\n if(!utils.isFormData(form)) {\n throw TypeError('FormData instance required');\n }\n\n if (boundary.length < 1 || boundary.length > 70) {\n throw Error('boundary must be 10-70 characters long')\n }\n\n const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);\n const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF + CRLF);\n let contentLength = footerBytes.byteLength;\n\n const parts = Array.from(form.entries()).map(([name, value]) => {\n const part = new FormDataPart(name, value);\n contentLength += part.size;\n return part;\n });\n\n contentLength += boundaryBytes.byteLength * parts.length;\n\n contentLength = utils.toFiniteNumber(contentLength);\n\n const computedHeaders = {\n 'Content-Type': `multipart/form-data; boundary=${boundary}`\n }\n\n if (Number.isFinite(contentLength)) {\n computedHeaders['Content-Length'] = contentLength;\n }\n\n headersHandler && headersHandler(computedHeaders);\n\n return Readable.from((async function *() {\n for(const part of parts) {\n yield boundaryBytes;\n yield* part.encode();\n }\n\n yield footerBytes;\n })());\n};\n\nexport default formDataToStream;\n","\"use strict\";\n\nimport stream from \"stream\";\n\nclass ZlibHeaderTransformStream extends stream.Transform {\n __transform(chunk, encoding, callback) {\n this.push(chunk);\n callback();\n }\n\n _transform(chunk, encoding, callback) {\n if (chunk.length !== 0) {\n this._transform = this.__transform;\n\n // Add Default Compression headers if no zlib headers are present\n if (chunk[0] !== 120) { // Hex: 78\n const header = Buffer.alloc(2);\n header[0] = 120; // Hex: 78\n header[1] = 156; // Hex: 9C \n this.push(header, encoding);\n }\n }\n\n this.__transform(chunk, encoding, callback);\n }\n}\n\nexport default ZlibHeaderTransformStream;\n","import utils from \"../utils.js\";\n\nconst callbackify = (fn, reducer) => {\n return utils.isAsyncFn(fn) ? function (...args) {\n const cb = args.pop();\n fn.apply(this, args).then((value) => {\n try {\n reducer ? cb(null, ...reducer(value)) : cb(null, value);\n } catch (err) {\n cb(err);\n }\n }, cb);\n } : fn;\n}\n\nexport default callbackify;\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport buildURL from './../helpers/buildURL.js';\nimport {getProxyForUrl} from 'proxy-from-env';\nimport http from 'http';\nimport https from 'https';\nimport util from 'util';\nimport followRedirects from 'follow-redirects';\nimport zlib from 'zlib';\nimport {VERSION} from '../env/data.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport platform from '../platform/index.js';\nimport fromDataURI from '../helpers/fromDataURI.js';\nimport stream from 'stream';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport AxiosTransformStream from '../helpers/AxiosTransformStream.js';\nimport EventEmitter from 'events';\nimport formDataToStream from \"../helpers/formDataToStream.js\";\nimport readBlob from \"../helpers/readBlob.js\";\nimport ZlibHeaderTransformStream from '../helpers/ZlibHeaderTransformStream.js';\nimport callbackify from \"../helpers/callbackify.js\";\n\nconst zlibOptions = {\n flush: zlib.constants.Z_SYNC_FLUSH,\n finishFlush: zlib.constants.Z_SYNC_FLUSH\n};\n\nconst brotliOptions = {\n flush: zlib.constants.BROTLI_OPERATION_FLUSH,\n finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH\n}\n\nconst isBrotliSupported = utils.isFunction(zlib.createBrotliDecompress);\n\nconst {http: httpFollow, https: httpsFollow} = followRedirects;\n\nconst isHttps = /https:?/;\n\nconst supportedProtocols = platform.protocols.map(protocol => {\n return protocol + ':';\n});\n\n/**\n * If the proxy or config beforeRedirects functions are defined, call them with the options\n * object.\n *\n * @param {Object} options - The options object that was passed to the request.\n *\n * @returns {Object}\n */\nfunction dispatchBeforeRedirect(options, responseDetails) {\n if (options.beforeRedirects.proxy) {\n options.beforeRedirects.proxy(options);\n }\n if (options.beforeRedirects.config) {\n options.beforeRedirects.config(options, responseDetails);\n }\n}\n\n/**\n * If the proxy or config afterRedirects functions are defined, call them with the options\n *\n * @param {http.ClientRequestArgs} options\n * @param {AxiosProxyConfig} configProxy configuration from Axios options object\n * @param {string} location\n *\n * @returns {http.ClientRequestArgs}\n */\nfunction setProxy(options, configProxy, location) {\n let proxy = configProxy;\n if (!proxy && proxy !== false) {\n const proxyUrl = getProxyForUrl(location);\n if (proxyUrl) {\n proxy = new URL(proxyUrl);\n }\n }\n if (proxy) {\n // Basic proxy authorization\n if (proxy.username) {\n proxy.auth = (proxy.username || '') + ':' + (proxy.password || '');\n }\n\n if (proxy.auth) {\n // Support proxy auth object form\n if (proxy.auth.username || proxy.auth.password) {\n proxy.auth = (proxy.auth.username || '') + ':' + (proxy.auth.password || '');\n }\n const base64 = Buffer\n .from(proxy.auth, 'utf8')\n .toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n\n options.headers.host = options.hostname + (options.port ? ':' + options.port : '');\n const proxyHost = proxy.hostname || proxy.host;\n options.hostname = proxyHost;\n // Replace 'host' since options is not a URL object\n options.host = proxyHost;\n options.port = proxy.port;\n options.path = location;\n if (proxy.protocol) {\n options.protocol = proxy.protocol.includes(':') ? proxy.protocol : `${proxy.protocol}:`;\n }\n }\n\n options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {\n // Configure proxy for redirected request, passing the original config proxy to apply\n // the exact same logic as if the redirected request was performed by axios directly.\n setProxy(redirectOptions, configProxy, redirectOptions.href);\n };\n}\n\nconst isHttpAdapterSupported = typeof process !== 'undefined' && utils.kindOf(process) === 'process';\n\n// temporary hotfix\n\nconst wrapAsync = (asyncExecutor) => {\n return new Promise((resolve, reject) => {\n let onDone;\n let isDone;\n\n const done = (value, isRejected) => {\n if (isDone) return;\n isDone = true;\n onDone && onDone(value, isRejected);\n }\n\n const _resolve = (value) => {\n done(value);\n resolve(value);\n };\n\n const _reject = (reason) => {\n done(reason, true);\n reject(reason);\n }\n\n asyncExecutor(_resolve, _reject, (onDoneHandler) => (onDone = onDoneHandler)).catch(_reject);\n })\n};\n\nconst resolveFamily = ({address, family}) => {\n if (!utils.isString(address)) {\n throw TypeError('address must be a string');\n }\n return ({\n address,\n family: family || (address.indexOf('.') < 0 ? 6 : 4)\n });\n}\n\nconst buildAddressEntry = (address, family) => resolveFamily(utils.isObject(address) ? address : {address, family});\n\n/*eslint consistent-return:0*/\nexport default isHttpAdapterSupported && function httpAdapter(config) {\n return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {\n let {data, lookup, family} = config;\n const {responseType, responseEncoding} = config;\n const method = config.method.toUpperCase();\n let isDone;\n let rejected = false;\n let req;\n\n if (lookup) {\n const _lookup = callbackify(lookup, (value) => utils.isArray(value) ? value : [value]);\n // hotfix to support opt.all option which is required for node 20.x\n lookup = (hostname, opt, cb) => {\n _lookup(hostname, opt, (err, arg0, arg1) => {\n if (err) {\n return cb(err);\n }\n\n const addresses = utils.isArray(arg0) ? arg0.map(addr => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];\n\n opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);\n });\n }\n }\n\n // temporary internal emitter until the AxiosRequest class will be implemented\n const emitter = new EventEmitter();\n\n const onFinished = () => {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(abort);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', abort);\n }\n\n emitter.removeAllListeners();\n }\n\n onDone((value, isRejected) => {\n isDone = true;\n if (isRejected) {\n rejected = true;\n onFinished();\n }\n });\n\n function abort(reason) {\n emitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason);\n }\n\n emitter.once('abort', reject);\n\n if (config.cancelToken || config.signal) {\n config.cancelToken && config.cancelToken.subscribe(abort);\n if (config.signal) {\n config.signal.aborted ? abort() : config.signal.addEventListener('abort', abort);\n }\n }\n\n // Parse url\n const fullPath = buildFullPath(config.baseURL, config.url);\n const parsed = new URL(fullPath, 'http://localhost');\n const protocol = parsed.protocol || supportedProtocols[0];\n\n if (protocol === 'data:') {\n let convertedData;\n\n if (method !== 'GET') {\n return settle(resolve, reject, {\n status: 405,\n statusText: 'method not allowed',\n headers: {},\n config\n });\n }\n\n try {\n convertedData = fromDataURI(config.url, responseType === 'blob', {\n Blob: config.env && config.env.Blob\n });\n } catch (err) {\n throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config);\n }\n\n if (responseType === 'text') {\n convertedData = convertedData.toString(responseEncoding);\n\n if (!responseEncoding || responseEncoding === 'utf8') {\n convertedData = utils.stripBOM(convertedData);\n }\n } else if (responseType === 'stream') {\n convertedData = stream.Readable.from(convertedData);\n }\n\n return settle(resolve, reject, {\n data: convertedData,\n status: 200,\n statusText: 'OK',\n headers: new AxiosHeaders(),\n config\n });\n }\n\n if (supportedProtocols.indexOf(protocol) === -1) {\n return reject(new AxiosError(\n 'Unsupported protocol ' + protocol,\n AxiosError.ERR_BAD_REQUEST,\n config\n ));\n }\n\n const headers = AxiosHeaders.from(config.headers).normalize();\n\n // Set User-Agent (required by some servers)\n // See https://github.com/axios/axios/issues/69\n // User-Agent is specified; handle case where no UA header is desired\n // Only set header if it hasn't been set in config\n headers.set('User-Agent', 'axios/' + VERSION, false);\n\n const onDownloadProgress = config.onDownloadProgress;\n const onUploadProgress = config.onUploadProgress;\n const maxRate = config.maxRate;\n let maxUploadRate = undefined;\n let maxDownloadRate = undefined;\n\n // support for spec compliant FormData objects\n if (utils.isSpecCompliantForm(data)) {\n const userBoundary = headers.getContentType(/boundary=([-_\\w\\d]{10,70})/i);\n\n data = formDataToStream(data, (formHeaders) => {\n headers.set(formHeaders);\n }, {\n tag: `axios-${VERSION}-boundary`,\n boundary: userBoundary && userBoundary[1] || undefined\n });\n // support for https://www.npmjs.com/package/form-data api\n } else if (utils.isFormData(data) && utils.isFunction(data.getHeaders)) {\n headers.set(data.getHeaders());\n\n if (!headers.hasContentLength()) {\n try {\n const knownLength = await util.promisify(data.getLength).call(data);\n Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);\n /*eslint no-empty:0*/\n } catch (e) {\n }\n }\n } else if (utils.isBlob(data)) {\n data.size && headers.setContentType(data.type || 'application/octet-stream');\n headers.setContentLength(data.size || 0);\n data = stream.Readable.from(readBlob(data));\n } else if (data && !utils.isStream(data)) {\n if (Buffer.isBuffer(data)) {\n // Nothing to do...\n } else if (utils.isArrayBuffer(data)) {\n data = Buffer.from(new Uint8Array(data));\n } else if (utils.isString(data)) {\n data = Buffer.from(data, 'utf-8');\n } else {\n return reject(new AxiosError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n AxiosError.ERR_BAD_REQUEST,\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers.setContentLength(data.length, false);\n\n if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {\n return reject(new AxiosError(\n 'Request body larger than maxBodyLength limit',\n AxiosError.ERR_BAD_REQUEST,\n config\n ));\n }\n }\n\n const contentLength = utils.toFiniteNumber(headers.getContentLength());\n\n if (utils.isArray(maxRate)) {\n maxUploadRate = maxRate[0];\n maxDownloadRate = maxRate[1];\n } else {\n maxUploadRate = maxDownloadRate = maxRate;\n }\n\n if (data && (onUploadProgress || maxUploadRate)) {\n if (!utils.isStream(data)) {\n data = stream.Readable.from(data, {objectMode: false});\n }\n\n data = stream.pipeline([data, new AxiosTransformStream({\n length: contentLength,\n maxRate: utils.toFiniteNumber(maxUploadRate)\n })], utils.noop);\n\n onUploadProgress && data.on('progress', progress => {\n onUploadProgress(Object.assign(progress, {\n upload: true\n }));\n });\n }\n\n // HTTP basic authentication\n let auth = undefined;\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n if (!auth && parsed.username) {\n const urlUsername = parsed.username;\n const urlPassword = parsed.password;\n auth = urlUsername + ':' + urlPassword;\n }\n\n auth && headers.delete('authorization');\n\n let path;\n\n try {\n path = buildURL(\n parsed.pathname + parsed.search,\n config.params,\n config.paramsSerializer\n ).replace(/^\\?/, '');\n } catch (err) {\n const customErr = new Error(err.message);\n customErr.config = config;\n customErr.url = config.url;\n customErr.exists = true;\n return reject(customErr);\n }\n\n headers.set(\n 'Accept-Encoding',\n 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''), false\n );\n\n const options = {\n path,\n method: method,\n headers: headers.toJSON(),\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth,\n protocol,\n family,\n beforeRedirect: dispatchBeforeRedirect,\n beforeRedirects: {}\n };\n\n // cacheable-lookup integration hotfix\n !utils.isUndefined(lookup) && (options.lookup = lookup);\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);\n }\n\n let transport;\n const isHttpsRequest = isHttps.test(options.protocol);\n options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsRequest ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n if (config.beforeRedirect) {\n options.beforeRedirects.config = config.beforeRedirect;\n }\n transport = isHttpsRequest ? httpsFollow : httpFollow;\n }\n\n if (config.maxBodyLength > -1) {\n options.maxBodyLength = config.maxBodyLength;\n } else {\n // follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited\n options.maxBodyLength = Infinity;\n }\n\n if (config.insecureHTTPParser) {\n options.insecureHTTPParser = config.insecureHTTPParser;\n }\n\n // Create the request\n req = transport.request(options, function handleResponse(res) {\n if (req.destroyed) return;\n\n const streams = [res];\n\n const responseLength = +res.headers['content-length'];\n\n if (onDownloadProgress) {\n const transformStream = new AxiosTransformStream({\n length: utils.toFiniteNumber(responseLength),\n maxRate: utils.toFiniteNumber(maxDownloadRate)\n });\n\n onDownloadProgress && transformStream.on('progress', progress => {\n onDownloadProgress(Object.assign(progress, {\n download: true\n }));\n });\n\n streams.push(transformStream);\n }\n\n // decompress the response body transparently if required\n let responseStream = res;\n\n // return the last request in case of redirects\n const lastRequest = res.req || req;\n\n // if decompress disabled we should not decompress\n if (config.decompress !== false && res.headers['content-encoding']) {\n // if no content, but headers still say that it is encoded,\n // remove the header not confuse downstream operations\n if (method === 'HEAD' || res.statusCode === 204) {\n delete res.headers['content-encoding'];\n }\n\n switch ((res.headers['content-encoding'] || '').toLowerCase()) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'x-gzip':\n case 'compress':\n case 'x-compress':\n // add the unzipper to the body stream processing pipeline\n streams.push(zlib.createUnzip(zlibOptions));\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n case 'deflate':\n streams.push(new ZlibHeaderTransformStream());\n\n // add the unzipper to the body stream processing pipeline\n streams.push(zlib.createUnzip(zlibOptions));\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n case 'br':\n if (isBrotliSupported) {\n streams.push(zlib.createBrotliDecompress(brotliOptions));\n delete res.headers['content-encoding'];\n }\n }\n }\n\n responseStream = streams.length > 1 ? stream.pipeline(streams, utils.noop) : streams[0];\n\n const offListeners = stream.finished(responseStream, () => {\n offListeners();\n onFinished();\n });\n\n const response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: new AxiosHeaders(res.headers),\n config,\n request: lastRequest\n };\n\n if (responseType === 'stream') {\n response.data = responseStream;\n settle(resolve, reject, response);\n } else {\n const responseBuffer = [];\n let totalResponseBytes = 0;\n\n responseStream.on('data', function handleStreamData(chunk) {\n responseBuffer.push(chunk);\n totalResponseBytes += chunk.length;\n\n // make sure the content length is not over the maxContentLength if specified\n if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {\n // stream.destroy() emit aborted event before calling reject() on Node.js v16\n rejected = true;\n responseStream.destroy();\n reject(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n AxiosError.ERR_BAD_RESPONSE, config, lastRequest));\n }\n });\n\n responseStream.on('aborted', function handlerStreamAborted() {\n if (rejected) {\n return;\n }\n\n const err = new AxiosError(\n 'maxContentLength size of ' + config.maxContentLength + ' exceeded',\n AxiosError.ERR_BAD_RESPONSE,\n config,\n lastRequest\n );\n responseStream.destroy(err);\n reject(err);\n });\n\n responseStream.on('error', function handleStreamError(err) {\n if (req.destroyed) return;\n reject(AxiosError.from(err, null, config, lastRequest));\n });\n\n responseStream.on('end', function handleStreamEnd() {\n try {\n let responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer);\n if (responseType !== 'arraybuffer') {\n responseData = responseData.toString(responseEncoding);\n if (!responseEncoding || responseEncoding === 'utf8') {\n responseData = utils.stripBOM(responseData);\n }\n }\n response.data = responseData;\n } catch (err) {\n return reject(AxiosError.from(err, null, config, response.request, response));\n }\n settle(resolve, reject, response);\n });\n }\n\n emitter.once('abort', err => {\n if (!responseStream.destroyed) {\n responseStream.emit('error', err);\n responseStream.destroy();\n }\n });\n });\n\n emitter.once('abort', err => {\n reject(err);\n req.destroy(err);\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n // @todo remove\n // if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return;\n reject(AxiosError.from(err, null, config, req));\n });\n\n // set tcp keep alive to prevent drop connection by peer\n req.on('socket', function handleRequestSocket(socket) {\n // default interval of sending ack packet is 1 minute\n socket.setKeepAlive(true, 1000 * 60);\n });\n\n // Handle request timeout\n if (config.timeout) {\n // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.\n const timeout = parseInt(config.timeout, 10);\n\n if (Number.isNaN(timeout)) {\n reject(new AxiosError(\n 'error trying to parse `config.timeout` to int',\n AxiosError.ERR_BAD_OPTION_VALUE,\n config,\n req\n ));\n\n return;\n }\n\n // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.\n // And timer callback will be fired, and abort() will be invoked before connection, then get \"socket hang up\" and code ECONNRESET.\n // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.\n // And then these socket which be hang up will devouring CPU little by little.\n // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.\n req.setTimeout(timeout, function handleRequestTimeout() {\n if (isDone) return;\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n req\n ));\n abort();\n });\n }\n\n\n // Send the request\n if (utils.isStream(data)) {\n let ended = false;\n let errored = false;\n\n data.on('end', () => {\n ended = true;\n });\n\n data.once('error', err => {\n errored = true;\n req.destroy(err);\n });\n\n data.on('close', () => {\n if (!ended && !errored) {\n abort(new CanceledError('Request stream has been aborted', config, req));\n }\n });\n\n data.pipe(req);\n } else {\n req.end(data);\n }\n });\n}\n\nexport const __setProxy = setProxy;\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders.from(config.headers).normalize();\n let {responseType, withXSRFToken} = config;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n let contentType;\n\n if (utils.isFormData(requestData)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n requestHeaders.setContentType(false); // Let the browser set it\n } else if ((contentType = requestHeaders.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if(platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {\n // Add xsrf header\n const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? thing.toJSON() : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy;\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n"],"names":["utils","prototype","PlatformFormData","encode","url","FormData","platform","defaults","AxiosHeaders","stream","TextEncoder","readBlob","Readable","zlib","followRedirects","getProxyForUrl","callbackify","EventEmitter","formDataToStream","util","AxiosTransformStream","https","http","ZlibHeaderTransformStream","validators","InterceptorManager","Axios","CancelToken","HttpStatusCode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEe,SAAS,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE;AAC1C,EAAE,OAAO,SAAS,IAAI,GAAG;AACzB,IAAI,OAAO,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AACxC,GAAG,CAAC;AACJ;;ACFA;AACA;AACA,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC;AACpC,MAAM,CAAC,cAAc,CAAC,GAAG,MAAM,CAAC;AAChC;AACA,MAAM,MAAM,GAAG,CAAC,KAAK,IAAI,KAAK,IAAI;AAClC,IAAI,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC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U,CAAC;AAC9B;AACA;AACA,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC;AACnC;AACA;AACA,KAAK,CAAC,GAAG,GAAG,SAAS,GAAG,CAAC,QAAQ,EAAE;AACnC,EAAE,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC/B,CAAC,CAAC;AACF;AACA,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;AACtB;AACA;AACA,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC;AAClC;AACA;AACA,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC;AAChC;AACA,KAAK,CAAC,YAAY,GAAGnB,cAAY,CAAC;AAClC;AACA,KAAK,CAAC,UAAU,GAAG,KAAK,IAAI,cAAc,CAACR,OAAK,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC;AAClG;AACA,KAAK,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;AACvC;AACA,KAAK,CAAC,cAAc,GAAG4B,gBAAc,CAAC;AACtC;AACA,KAAK,CAAC,OAAO,GAAG,KAAK;;;;"} \ No newline at end of file diff --git a/Scripts/node_modules/axios/index.d.cts b/Scripts/node_modules/axios/index.d.cts new file mode 100644 index 00000000..d95e6ef6 --- /dev/null +++ b/Scripts/node_modules/axios/index.d.cts @@ -0,0 +1,542 @@ +interface RawAxiosHeaders { + [key: string]: axios.AxiosHeaderValue; +} + +type MethodsHeaders = Partial<{ + [Key in axios.Method as Lowercase]: AxiosHeaders; +} & {common: AxiosHeaders}>; + +type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean; + +type AxiosHeaderParser = (this: AxiosHeaders, value: axios.AxiosHeaderValue, header: string) => any; + +type CommonRequestHeadersList = 'Accept' | 'Content-Length' | 'User-Agent'| 'Content-Encoding' | 'Authorization'; + +type ContentType = axios.AxiosHeaderValue | 'text/html' | 'text/plain' | 'multipart/form-data' | 'application/json' | 'application/x-www-form-urlencoded' | 'application/octet-stream'; + +type CommonResponseHeadersList = 'Server' | 'Content-Type' | 'Content-Length' | 'Cache-Control'| 'Content-Encoding'; + +declare class AxiosHeaders { + constructor( + headers?: RawAxiosHeaders | AxiosHeaders | string + ); + + [key: string]: any; + + set(headerName?: string, value?: axios.AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; + set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders; + + get(headerName: string, parser: RegExp): RegExpExecArray | null; + get(headerName: string, matcher?: true | AxiosHeaderParser): axios.AxiosHeaderValue; + + has(header: string, matcher?: AxiosHeaderMatcher): boolean; + + delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean; + + clear(matcher?: AxiosHeaderMatcher): boolean; + + normalize(format: boolean): AxiosHeaders; + + concat(...targets: Array): AxiosHeaders; + + toJSON(asStrings?: boolean): RawAxiosHeaders; + + static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders; + + static accessor(header: string | string[]): AxiosHeaders; + + static concat(...targets: Array): AxiosHeaders; + + setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; + getContentType(parser?: RegExp): RegExpExecArray | null; + getContentType(matcher?: AxiosHeaderMatcher): axios.AxiosHeaderValue; + hasContentType(matcher?: AxiosHeaderMatcher): boolean; + + setContentLength(value: axios.AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; + getContentLength(parser?: RegExp): RegExpExecArray | null; + getContentLength(matcher?: AxiosHeaderMatcher): axios.AxiosHeaderValue; + hasContentLength(matcher?: AxiosHeaderMatcher): boolean; + + setAccept(value: axios.AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; + getAccept(parser?: RegExp): RegExpExecArray | null; + getAccept(matcher?: AxiosHeaderMatcher): axios.AxiosHeaderValue; + hasAccept(matcher?: AxiosHeaderMatcher): boolean; + + setUserAgent(value: axios.AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; + getUserAgent(parser?: RegExp): RegExpExecArray | null; + getUserAgent(matcher?: AxiosHeaderMatcher): axios.AxiosHeaderValue; + hasUserAgent(matcher?: AxiosHeaderMatcher): boolean; + + setContentEncoding(value: axios.AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; + getContentEncoding(parser?: RegExp): RegExpExecArray | null; + getContentEncoding(matcher?: AxiosHeaderMatcher): axios.AxiosHeaderValue; + hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean; + + setAuthorization(value: axios.AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; + getAuthorization(parser?: RegExp): RegExpExecArray | null; + getAuthorization(matcher?: AxiosHeaderMatcher): axios.AxiosHeaderValue; + hasAuthorization(matcher?: AxiosHeaderMatcher): boolean; + + [Symbol.iterator](): IterableIterator<[string, axios.AxiosHeaderValue]>; +} + +declare class AxiosError extends Error { + constructor( + message?: string, + code?: string, + config?: axios.InternalAxiosRequestConfig, + request?: any, + response?: axios.AxiosResponse + ); + + config?: axios.InternalAxiosRequestConfig; + code?: string; + request?: any; + response?: axios.AxiosResponse; + isAxiosError: boolean; + status?: number; + toJSON: () => object; + cause?: Error; + static readonly ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS"; + static readonly ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE"; + static readonly ERR_BAD_OPTION = "ERR_BAD_OPTION"; + static readonly ERR_NETWORK = "ERR_NETWORK"; + static readonly ERR_DEPRECATED = "ERR_DEPRECATED"; + static readonly ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE"; + static readonly ERR_BAD_REQUEST = "ERR_BAD_REQUEST"; + static readonly ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT"; + static readonly ERR_INVALID_URL = "ERR_INVALID_URL"; + static readonly ERR_CANCELED = "ERR_CANCELED"; + static readonly ECONNABORTED = "ECONNABORTED"; + static readonly ETIMEDOUT = "ETIMEDOUT"; +} + +declare class CanceledError extends AxiosError { +} + +declare class Axios { + constructor(config?: axios.AxiosRequestConfig); + defaults: axios.AxiosDefaults; + interceptors: { + request: axios.AxiosInterceptorManager; + response: axios.AxiosInterceptorManager; + }; + getUri(config?: axios.AxiosRequestConfig): string; + request, D = any>(config: axios.AxiosRequestConfig): Promise; + get, D = any>(url: string, config?: axios.AxiosRequestConfig): Promise; + delete, D = any>(url: string, config?: axios.AxiosRequestConfig): Promise; + head, D = any>(url: string, config?: axios.AxiosRequestConfig): Promise; + options, D = any>(url: string, config?: axios.AxiosRequestConfig): Promise; + post, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig): Promise; + put, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig): Promise; + patch, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig): Promise; + postForm, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig): Promise; + putForm, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig): Promise; + patchForm, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig): Promise; +} + +declare enum HttpStatusCode { + Continue = 100, + SwitchingProtocols = 101, + Processing = 102, + EarlyHints = 103, + Ok = 200, + Created = 201, + Accepted = 202, + NonAuthoritativeInformation = 203, + NoContent = 204, + ResetContent = 205, + PartialContent = 206, + MultiStatus = 207, + AlreadyReported = 208, + ImUsed = 226, + MultipleChoices = 300, + MovedPermanently = 301, + Found = 302, + SeeOther = 303, + NotModified = 304, + UseProxy = 305, + Unused = 306, + TemporaryRedirect = 307, + PermanentRedirect = 308, + BadRequest = 400, + Unauthorized = 401, + PaymentRequired = 402, + Forbidden = 403, + NotFound = 404, + MethodNotAllowed = 405, + NotAcceptable = 406, + ProxyAuthenticationRequired = 407, + RequestTimeout = 408, + Conflict = 409, + Gone = 410, + LengthRequired = 411, + PreconditionFailed = 412, + PayloadTooLarge = 413, + UriTooLong = 414, + UnsupportedMediaType = 415, + RangeNotSatisfiable = 416, + ExpectationFailed = 417, + ImATeapot = 418, + MisdirectedRequest = 421, + UnprocessableEntity = 422, + Locked = 423, + FailedDependency = 424, + TooEarly = 425, + UpgradeRequired = 426, + PreconditionRequired = 428, + TooManyRequests = 429, + RequestHeaderFieldsTooLarge = 431, + UnavailableForLegalReasons = 451, + InternalServerError = 500, + NotImplemented = 501, + BadGateway = 502, + ServiceUnavailable = 503, + GatewayTimeout = 504, + HttpVersionNotSupported = 505, + VariantAlsoNegotiates = 506, + InsufficientStorage = 507, + LoopDetected = 508, + NotExtended = 510, + NetworkAuthenticationRequired = 511, +} + +type InternalAxiosError = AxiosError; + +declare namespace axios { + type AxiosError = InternalAxiosError; + + type RawAxiosRequestHeaders = Partial; + + type AxiosRequestHeaders = RawAxiosRequestHeaders & AxiosHeaders; + + type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null; + + type RawCommonResponseHeaders = { + [Key in CommonResponseHeadersList]: AxiosHeaderValue; + } & { + "set-cookie": string[]; + }; + + type RawAxiosResponseHeaders = Partial; + + type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders; + + interface AxiosRequestTransformer { + (this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any; + } + + interface AxiosResponseTransformer { + (this: InternalAxiosRequestConfig, data: any, headers: AxiosResponseHeaders, status?: number): any; + } + + interface AxiosAdapter { + (config: InternalAxiosRequestConfig): AxiosPromise; + } + + interface AxiosBasicCredentials { + username: string; + password: string; + } + + interface AxiosProxyConfig { + host: string; + port: number; + auth?: AxiosBasicCredentials; + protocol?: string; + } + + type Method = + | 'get' | 'GET' + | 'delete' | 'DELETE' + | 'head' | 'HEAD' + | 'options' | 'OPTIONS' + | 'post' | 'POST' + | 'put' | 'PUT' + | 'patch' | 'PATCH' + | 'purge' | 'PURGE' + | 'link' | 'LINK' + | 'unlink' | 'UNLINK'; + + type ResponseType = + | 'arraybuffer' + | 'blob' + | 'document' + | 'json' + | 'text' + | 'stream'; + + type responseEncoding = + | 'ascii' | 'ASCII' + | 'ansi' | 'ANSI' + | 'binary' | 'BINARY' + | 'base64' | 'BASE64' + | 'base64url' | 'BASE64URL' + | 'hex' | 'HEX' + | 'latin1' | 'LATIN1' + | 'ucs-2' | 'UCS-2' + | 'ucs2' | 'UCS2' + | 'utf-8' | 'UTF-8' + | 'utf8' | 'UTF8' + | 'utf16le' | 'UTF16LE'; + + interface TransitionalOptions { + silentJSONParsing?: boolean; + forcedJSONParsing?: boolean; + clarifyTimeoutError?: boolean; + } + + interface GenericAbortSignal { + readonly aborted: boolean; + onabort?: ((...args: any) => any) | null; + addEventListener?: (...args: any) => any; + removeEventListener?: (...args: any) => any; + } + + interface FormDataVisitorHelpers { + defaultVisitor: SerializerVisitor; + convertValue: (value: any) => any; + isVisitable: (value: any) => boolean; + } + + interface SerializerVisitor { + ( + this: GenericFormData, + value: any, + key: string | number, + path: null | Array, + helpers: FormDataVisitorHelpers + ): boolean; + } + + interface SerializerOptions { + visitor?: SerializerVisitor; + dots?: boolean; + metaTokens?: boolean; + indexes?: boolean | null; + } + + // tslint:disable-next-line + interface FormSerializerOptions extends SerializerOptions { + } + + interface ParamEncoder { + (value: any, defaultEncoder: (value: any) => any): any; + } + + interface CustomParamsSerializer { + (params: Record, options?: ParamsSerializerOptions): string; + } + + interface ParamsSerializerOptions extends SerializerOptions { + encode?: ParamEncoder; + serialize?: CustomParamsSerializer; + } + + type MaxUploadRate = number; + + type MaxDownloadRate = number; + + type BrowserProgressEvent = any; + + interface AxiosProgressEvent { + loaded: number; + total?: number; + progress?: number; + bytes: number; + rate?: number; + estimated?: number; + upload?: boolean; + download?: boolean; + event?: BrowserProgressEvent; + } + + type Milliseconds = number; + + type AxiosAdapterName = 'xhr' | 'http' | string; + + type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName; + + type AddressFamily = 4 | 6 | undefined; + + interface LookupAddressEntry { + address: string; + family?: AddressFamily; + } + + type LookupAddress = string | LookupAddressEntry; + + interface AxiosRequestConfig { + url?: string; + method?: Method | string; + baseURL?: string; + transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[]; + transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[]; + headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders; + params?: any; + paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer; + data?: D; + timeout?: Milliseconds; + timeoutErrorMessage?: string; + withCredentials?: boolean; + adapter?: AxiosAdapterConfig | AxiosAdapterConfig[]; + auth?: AxiosBasicCredentials; + responseType?: ResponseType; + responseEncoding?: responseEncoding | string; + xsrfCookieName?: string; + xsrfHeaderName?: string; + onUploadProgress?: (progressEvent: AxiosProgressEvent) => void; + onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void; + maxContentLength?: number; + validateStatus?: ((status: number) => boolean) | null; + maxBodyLength?: number; + maxRedirects?: number; + maxRate?: number | [MaxUploadRate, MaxDownloadRate]; + beforeRedirect?: (options: Record, responseDetails: {headers: Record, statusCode: HttpStatusCode}) => void; + socketPath?: string | null; + transport?: any; + httpAgent?: any; + httpsAgent?: any; + proxy?: AxiosProxyConfig | false; + cancelToken?: CancelToken; + decompress?: boolean; + transitional?: TransitionalOptions; + signal?: GenericAbortSignal; + insecureHTTPParser?: boolean; + env?: { + FormData?: new (...args: any[]) => object; + }; + formSerializer?: FormSerializerOptions; + family?: AddressFamily; + lookup?: ((hostname: string, options: object, cb: (err: Error | null, address: LookupAddress | LookupAddress[], family?: AddressFamily) => void) => void) | + ((hostname: string, options: object) => Promise<[address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily] | LookupAddress>); + withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig) => boolean | undefined); + } + + // Alias + type RawAxiosRequestConfig = AxiosRequestConfig; + + interface InternalAxiosRequestConfig extends AxiosRequestConfig { + headers: AxiosRequestHeaders; + } + + interface HeadersDefaults { + common: RawAxiosRequestHeaders; + delete: RawAxiosRequestHeaders; + get: RawAxiosRequestHeaders; + head: RawAxiosRequestHeaders; + post: RawAxiosRequestHeaders; + put: RawAxiosRequestHeaders; + patch: RawAxiosRequestHeaders; + options?: RawAxiosRequestHeaders; + purge?: RawAxiosRequestHeaders; + link?: RawAxiosRequestHeaders; + unlink?: RawAxiosRequestHeaders; + } + + interface AxiosDefaults extends Omit, 'headers'> { + headers: HeadersDefaults; + } + + interface CreateAxiosDefaults extends Omit, 'headers'> { + headers?: RawAxiosRequestHeaders | AxiosHeaders | Partial; + } + + interface AxiosResponse { + data: T; + status: number; + statusText: string; + headers: RawAxiosResponseHeaders | AxiosResponseHeaders; + config: InternalAxiosRequestConfig; + request?: any; + } + + type AxiosPromise = Promise>; + + interface CancelStatic { + new (message?: string): Cancel; + } + + interface Cancel { + message: string | undefined; + } + + interface Canceler { + (message?: string, config?: AxiosRequestConfig, request?: any): void; + } + + interface CancelTokenStatic { + new (executor: (cancel: Canceler) => void): CancelToken; + source(): CancelTokenSource; + } + + interface CancelToken { + promise: Promise; + reason?: Cancel; + throwIfRequested(): void; + } + + interface CancelTokenSource { + token: CancelToken; + cancel: Canceler; + } + + interface AxiosInterceptorOptions { + synchronous?: boolean; + runWhen?: (config: InternalAxiosRequestConfig) => boolean; + } + + interface AxiosInterceptorManager { + use(onFulfilled?: (value: V) => V | Promise, onRejected?: (error: any) => any, options?: AxiosInterceptorOptions): number; + eject(id: number): void; + clear(): void; + } + + interface AxiosInstance extends Axios { + , D = any>(config: AxiosRequestConfig): Promise; + , D = any>(url: string, config?: AxiosRequestConfig): Promise; + + defaults: Omit & { + headers: HeadersDefaults & { + [key: string]: AxiosHeaderValue + } + }; + } + + interface GenericFormData { + append(name: string, value: any, options?: any): any; + } + + interface GenericHTMLFormElement { + name: string; + method: string; + submit(): void; + } + + interface AxiosStatic extends AxiosInstance { + create(config?: CreateAxiosDefaults): AxiosInstance; + Cancel: CancelStatic; + CancelToken: CancelTokenStatic; + Axios: typeof Axios; + AxiosError: typeof AxiosError; + CanceledError: typeof CanceledError; + HttpStatusCode: typeof HttpStatusCode; + readonly VERSION: string; + isCancel(value: any): value is Cancel; + all(values: Array>): Promise; + spread(callback: (...args: T[]) => R): (array: T[]) => R; + isAxiosError(payload: any): payload is AxiosError; + toFormData(sourceObj: object, targetFormData?: GenericFormData, options?: FormSerializerOptions): GenericFormData; + formToJSON(form: GenericFormData|GenericHTMLFormElement): object; + getAdapter(adapters: AxiosAdapterConfig | AxiosAdapterConfig[] | undefined): AxiosAdapter; + AxiosHeaders: typeof AxiosHeaders; + } +} + +declare const axios: axios.AxiosStatic; + +export = axios; diff --git a/Scripts/node_modules/axios/index.d.ts b/Scripts/node_modules/axios/index.d.ts new file mode 100644 index 00000000..02a8c098 --- /dev/null +++ b/Scripts/node_modules/axios/index.d.ts @@ -0,0 +1,559 @@ +// TypeScript Version: 4.7 +export type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null; + +interface RawAxiosHeaders { + [key: string]: AxiosHeaderValue; +} + +type MethodsHeaders = Partial<{ + [Key in Method as Lowercase]: AxiosHeaders; +} & {common: AxiosHeaders}>; + +type AxiosHeaderMatcher = string | RegExp | ((this: AxiosHeaders, value: string, name: string) => boolean); + +type AxiosHeaderParser = (this: AxiosHeaders, value: AxiosHeaderValue, header: string) => any; + +export class AxiosHeaders { + constructor( + headers?: RawAxiosHeaders | AxiosHeaders | string + ); + + [key: string]: any; + + set(headerName?: string, value?: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; + set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders; + + get(headerName: string, parser: RegExp): RegExpExecArray | null; + get(headerName: string, matcher?: true | AxiosHeaderParser): AxiosHeaderValue; + + has(header: string, matcher?: AxiosHeaderMatcher): boolean; + + delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean; + + clear(matcher?: AxiosHeaderMatcher): boolean; + + normalize(format: boolean): AxiosHeaders; + + concat(...targets: Array): AxiosHeaders; + + toJSON(asStrings?: boolean): RawAxiosHeaders; + + static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders; + + static accessor(header: string | string[]): AxiosHeaders; + + static concat(...targets: Array): AxiosHeaders; + + setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; + getContentType(parser?: RegExp): RegExpExecArray | null; + getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; + hasContentType(matcher?: AxiosHeaderMatcher): boolean; + + setContentLength(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; + getContentLength(parser?: RegExp): RegExpExecArray | null; + getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; + hasContentLength(matcher?: AxiosHeaderMatcher): boolean; + + setAccept(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; + getAccept(parser?: RegExp): RegExpExecArray | null; + getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; + hasAccept(matcher?: AxiosHeaderMatcher): boolean; + + setUserAgent(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; + getUserAgent(parser?: RegExp): RegExpExecArray | null; + getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; + hasUserAgent(matcher?: AxiosHeaderMatcher): boolean; + + setContentEncoding(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; + getContentEncoding(parser?: RegExp): RegExpExecArray | null; + getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; + hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean; + + setAuthorization(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; + getAuthorization(parser?: RegExp): RegExpExecArray | null; + getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; + hasAuthorization(matcher?: AxiosHeaderMatcher): boolean; + + [Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>; +} + +type CommonRequestHeadersList = 'Accept' | 'Content-Length' | 'User-Agent' | 'Content-Encoding' | 'Authorization'; + +type ContentType = AxiosHeaderValue | 'text/html' | 'text/plain' | 'multipart/form-data' | 'application/json' | 'application/x-www-form-urlencoded' | 'application/octet-stream'; + +export type RawAxiosRequestHeaders = Partial; + +export type AxiosRequestHeaders = RawAxiosRequestHeaders & AxiosHeaders; + +type CommonResponseHeadersList = 'Server' | 'Content-Type' | 'Content-Length' | 'Cache-Control'| 'Content-Encoding'; + +type RawCommonResponseHeaders = { + [Key in CommonResponseHeadersList]: AxiosHeaderValue; +} & { + "set-cookie": string[]; +}; + +export type RawAxiosResponseHeaders = Partial; + +export type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders; + +export interface AxiosRequestTransformer { + (this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any; +} + +export interface AxiosResponseTransformer { + (this: InternalAxiosRequestConfig, data: any, headers: AxiosResponseHeaders, status?: number): any; +} + +export interface AxiosAdapter { + (config: InternalAxiosRequestConfig): AxiosPromise; +} + +export interface AxiosBasicCredentials { + username: string; + password: string; +} + +export interface AxiosProxyConfig { + host: string; + port: number; + auth?: AxiosBasicCredentials; + protocol?: string; +} + +export enum HttpStatusCode { + Continue = 100, + SwitchingProtocols = 101, + Processing = 102, + EarlyHints = 103, + Ok = 200, + Created = 201, + Accepted = 202, + NonAuthoritativeInformation = 203, + NoContent = 204, + ResetContent = 205, + PartialContent = 206, + MultiStatus = 207, + AlreadyReported = 208, + ImUsed = 226, + MultipleChoices = 300, + MovedPermanently = 301, + Found = 302, + SeeOther = 303, + NotModified = 304, + UseProxy = 305, + Unused = 306, + TemporaryRedirect = 307, + PermanentRedirect = 308, + BadRequest = 400, + Unauthorized = 401, + PaymentRequired = 402, + Forbidden = 403, + NotFound = 404, + MethodNotAllowed = 405, + NotAcceptable = 406, + ProxyAuthenticationRequired = 407, + RequestTimeout = 408, + Conflict = 409, + Gone = 410, + LengthRequired = 411, + PreconditionFailed = 412, + PayloadTooLarge = 413, + UriTooLong = 414, + UnsupportedMediaType = 415, + RangeNotSatisfiable = 416, + ExpectationFailed = 417, + ImATeapot = 418, + MisdirectedRequest = 421, + UnprocessableEntity = 422, + Locked = 423, + FailedDependency = 424, + TooEarly = 425, + UpgradeRequired = 426, + PreconditionRequired = 428, + TooManyRequests = 429, + RequestHeaderFieldsTooLarge = 431, + UnavailableForLegalReasons = 451, + InternalServerError = 500, + NotImplemented = 501, + BadGateway = 502, + ServiceUnavailable = 503, + GatewayTimeout = 504, + HttpVersionNotSupported = 505, + VariantAlsoNegotiates = 506, + InsufficientStorage = 507, + LoopDetected = 508, + NotExtended = 510, + NetworkAuthenticationRequired = 511, +} + +export type Method = + | 'get' | 'GET' + | 'delete' | 'DELETE' + | 'head' | 'HEAD' + | 'options' | 'OPTIONS' + | 'post' | 'POST' + | 'put' | 'PUT' + | 'patch' | 'PATCH' + | 'purge' | 'PURGE' + | 'link' | 'LINK' + | 'unlink' | 'UNLINK'; + +export type ResponseType = + | 'arraybuffer' + | 'blob' + | 'document' + | 'json' + | 'text' + | 'stream'; + +export type responseEncoding = + | 'ascii' | 'ASCII' + | 'ansi' | 'ANSI' + | 'binary' | 'BINARY' + | 'base64' | 'BASE64' + | 'base64url' | 'BASE64URL' + | 'hex' | 'HEX' + | 'latin1' | 'LATIN1' + | 'ucs-2' | 'UCS-2' + | 'ucs2' | 'UCS2' + | 'utf-8' | 'UTF-8' + | 'utf8' | 'UTF8' + | 'utf16le' | 'UTF16LE'; + +export interface TransitionalOptions { + silentJSONParsing?: boolean; + forcedJSONParsing?: boolean; + clarifyTimeoutError?: boolean; +} + +export interface GenericAbortSignal { + readonly aborted: boolean; + onabort?: ((...args: any) => any) | null; + addEventListener?: (...args: any) => any; + removeEventListener?: (...args: any) => any; +} + +export interface FormDataVisitorHelpers { + defaultVisitor: SerializerVisitor; + convertValue: (value: any) => any; + isVisitable: (value: any) => boolean; +} + +export interface SerializerVisitor { + ( + this: GenericFormData, + value: any, + key: string | number, + path: null | Array, + helpers: FormDataVisitorHelpers + ): boolean; +} + +export interface SerializerOptions { + visitor?: SerializerVisitor; + dots?: boolean; + metaTokens?: boolean; + indexes?: boolean | null; +} + +// tslint:disable-next-line +export interface FormSerializerOptions extends SerializerOptions { +} + +export interface ParamEncoder { + (value: any, defaultEncoder: (value: any) => any): any; +} + +export interface CustomParamsSerializer { + (params: Record, options?: ParamsSerializerOptions): string; +} + +export interface ParamsSerializerOptions extends SerializerOptions { + encode?: ParamEncoder; + serialize?: CustomParamsSerializer; +} + +type MaxUploadRate = number; + +type MaxDownloadRate = number; + +type BrowserProgressEvent = any; + +export interface AxiosProgressEvent { + loaded: number; + total?: number; + progress?: number; + bytes: number; + rate?: number; + estimated?: number; + upload?: boolean; + download?: boolean; + event?: BrowserProgressEvent; +} + +type Milliseconds = number; + +type AxiosAdapterName = 'xhr' | 'http' | string; + +type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName; + +export type AddressFamily = 4 | 6 | undefined; + +export interface LookupAddressEntry { + address: string; + family?: AddressFamily; +} + +export type LookupAddress = string | LookupAddressEntry; + +export interface AxiosRequestConfig { + url?: string; + method?: Method | string; + baseURL?: string; + transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[]; + transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[]; + headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders; + params?: any; + paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer; + data?: D; + timeout?: Milliseconds; + timeoutErrorMessage?: string; + withCredentials?: boolean; + adapter?: AxiosAdapterConfig | AxiosAdapterConfig[]; + auth?: AxiosBasicCredentials; + responseType?: ResponseType; + responseEncoding?: responseEncoding | string; + xsrfCookieName?: string; + xsrfHeaderName?: string; + onUploadProgress?: (progressEvent: AxiosProgressEvent) => void; + onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void; + maxContentLength?: number; + validateStatus?: ((status: number) => boolean) | null; + maxBodyLength?: number; + maxRedirects?: number; + maxRate?: number | [MaxUploadRate, MaxDownloadRate]; + beforeRedirect?: (options: Record, responseDetails: {headers: Record, statusCode: HttpStatusCode}) => void; + socketPath?: string | null; + transport?: any; + httpAgent?: any; + httpsAgent?: any; + proxy?: AxiosProxyConfig | false; + cancelToken?: CancelToken; + decompress?: boolean; + transitional?: TransitionalOptions; + signal?: GenericAbortSignal; + insecureHTTPParser?: boolean; + env?: { + FormData?: new (...args: any[]) => object; + }; + formSerializer?: FormSerializerOptions; + family?: AddressFamily; + lookup?: ((hostname: string, options: object, cb: (err: Error | null, address: LookupAddress | LookupAddress[], family?: AddressFamily) => void) => void) | + ((hostname: string, options: object) => Promise<[address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily] | LookupAddress>); + withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig) => boolean | undefined); +} + +// Alias +export type RawAxiosRequestConfig = AxiosRequestConfig; + +export interface InternalAxiosRequestConfig extends AxiosRequestConfig { + headers: AxiosRequestHeaders; +} + +export interface HeadersDefaults { + common: RawAxiosRequestHeaders; + delete: RawAxiosRequestHeaders; + get: RawAxiosRequestHeaders; + head: RawAxiosRequestHeaders; + post: RawAxiosRequestHeaders; + put: RawAxiosRequestHeaders; + patch: RawAxiosRequestHeaders; + options?: RawAxiosRequestHeaders; + purge?: RawAxiosRequestHeaders; + link?: RawAxiosRequestHeaders; + unlink?: RawAxiosRequestHeaders; +} + +export interface AxiosDefaults extends Omit, 'headers'> { + headers: HeadersDefaults; +} + +export interface CreateAxiosDefaults extends Omit, 'headers'> { + headers?: RawAxiosRequestHeaders | AxiosHeaders | Partial; +} + +export interface AxiosResponse { + data: T; + status: number; + statusText: string; + headers: RawAxiosResponseHeaders | AxiosResponseHeaders; + config: InternalAxiosRequestConfig; + request?: any; +} + +export class AxiosError extends Error { + constructor( + message?: string, + code?: string, + config?: InternalAxiosRequestConfig, + request?: any, + response?: AxiosResponse + ); + + config?: InternalAxiosRequestConfig; + code?: string; + request?: any; + response?: AxiosResponse; + isAxiosError: boolean; + status?: number; + toJSON: () => object; + cause?: Error; + static from( + error: Error | unknown, + code?: string, + config?: InternalAxiosRequestConfig, + request?: any, + response?: AxiosResponse, + customProps?: object, +): AxiosError; + static readonly ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS"; + static readonly ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE"; + static readonly ERR_BAD_OPTION = "ERR_BAD_OPTION"; + static readonly ERR_NETWORK = "ERR_NETWORK"; + static readonly ERR_DEPRECATED = "ERR_DEPRECATED"; + static readonly ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE"; + static readonly ERR_BAD_REQUEST = "ERR_BAD_REQUEST"; + static readonly ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT"; + static readonly ERR_INVALID_URL = "ERR_INVALID_URL"; + static readonly ERR_CANCELED = "ERR_CANCELED"; + static readonly ECONNABORTED = "ECONNABORTED"; + static readonly ETIMEDOUT = "ETIMEDOUT"; +} + +export class CanceledError extends AxiosError { +} + +export type AxiosPromise = Promise>; + +export interface CancelStatic { + new (message?: string): Cancel; +} + +export interface Cancel { + message: string | undefined; +} + +export interface Canceler { + (message?: string, config?: AxiosRequestConfig, request?: any): void; +} + +export interface CancelTokenStatic { + new (executor: (cancel: Canceler) => void): CancelToken; + source(): CancelTokenSource; +} + +export interface CancelToken { + promise: Promise; + reason?: Cancel; + throwIfRequested(): void; +} + +export interface CancelTokenSource { + token: CancelToken; + cancel: Canceler; +} + +export interface AxiosInterceptorOptions { + synchronous?: boolean; + runWhen?: (config: InternalAxiosRequestConfig) => boolean; +} + +export interface AxiosInterceptorManager { + use(onFulfilled?: ((value: V) => V | Promise) | null, onRejected?: ((error: any) => any) | null, options?: AxiosInterceptorOptions): number; + eject(id: number): void; + clear(): void; +} + +export class Axios { + constructor(config?: AxiosRequestConfig); + defaults: AxiosDefaults; + interceptors: { + request: AxiosInterceptorManager; + response: AxiosInterceptorManager; + }; + getUri(config?: AxiosRequestConfig): string; + request, D = any>(config: AxiosRequestConfig): Promise; + get, D = any>(url: string, config?: AxiosRequestConfig): Promise; + delete, D = any>(url: string, config?: AxiosRequestConfig): Promise; + head, D = any>(url: string, config?: AxiosRequestConfig): Promise; + options, D = any>(url: string, config?: AxiosRequestConfig): Promise; + post, D = any>(url: string, data?: D, config?: AxiosRequestConfig): Promise; + put, D = any>(url: string, data?: D, config?: AxiosRequestConfig): Promise; + patch, D = any>(url: string, data?: D, config?: AxiosRequestConfig): Promise; + postForm, D = any>(url: string, data?: D, config?: AxiosRequestConfig): Promise; + putForm, D = any>(url: string, data?: D, config?: AxiosRequestConfig): Promise; + patchForm, D = any>(url: string, data?: D, config?: AxiosRequestConfig): Promise; +} + +export interface AxiosInstance extends Axios { + , D = any>(config: AxiosRequestConfig): Promise; + , D = any>(url: string, config?: AxiosRequestConfig): Promise; + + defaults: Omit & { + headers: HeadersDefaults & { + [key: string]: AxiosHeaderValue + } + }; +} + +export interface GenericFormData { + append(name: string, value: any, options?: any): any; +} + +export interface GenericHTMLFormElement { + name: string; + method: string; + submit(): void; +} + +export function getAdapter(adapters: AxiosAdapterConfig | AxiosAdapterConfig[] | undefined): AxiosAdapter; + +export function toFormData(sourceObj: object, targetFormData?: GenericFormData, options?: FormSerializerOptions): GenericFormData; + +export function formToJSON(form: GenericFormData|GenericHTMLFormElement): object; + +export function isAxiosError(payload: any): payload is AxiosError; + +export function spread(callback: (...args: T[]) => R): (array: T[]) => R; + +export function isCancel(value: any): value is Cancel; + +export function all(values: Array>): Promise; + +export interface AxiosStatic extends AxiosInstance { + create(config?: CreateAxiosDefaults): AxiosInstance; + Cancel: CancelStatic; + CancelToken: CancelTokenStatic; + Axios: typeof Axios; + AxiosError: typeof AxiosError; + HttpStatusCode: typeof HttpStatusCode; + readonly VERSION: string; + isCancel: typeof isCancel; + all: typeof all; + spread: typeof spread; + isAxiosError: typeof isAxiosError; + toFormData: typeof toFormData; + formToJSON: typeof formToJSON; + getAdapter: typeof getAdapter; + CanceledError: typeof CanceledError; + AxiosHeaders: typeof AxiosHeaders; +} + +declare const axios: AxiosStatic; + +export default axios; diff --git a/Scripts/node_modules/axios/index.js b/Scripts/node_modules/axios/index.js new file mode 100644 index 00000000..fba3990d --- /dev/null +++ b/Scripts/node_modules/axios/index.js @@ -0,0 +1,43 @@ +import axios from './lib/axios.js'; + +// This module is intended to unwrap Axios default export as named. +// Keep top-level export same with static properties +// so that it can keep same with es module or cjs +const { + Axios, + AxiosError, + CanceledError, + isCancel, + CancelToken, + VERSION, + all, + Cancel, + isAxiosError, + spread, + toFormData, + AxiosHeaders, + HttpStatusCode, + formToJSON, + getAdapter, + mergeConfig +} = axios; + +export { + axios as default, + Axios, + AxiosError, + CanceledError, + isCancel, + CancelToken, + VERSION, + all, + Cancel, + isAxiosError, + spread, + toFormData, + AxiosHeaders, + HttpStatusCode, + formToJSON, + getAdapter, + mergeConfig +} diff --git a/Scripts/node_modules/axios/lib/adapters/README.md b/Scripts/node_modules/axios/lib/adapters/README.md new file mode 100644 index 00000000..68f11189 --- /dev/null +++ b/Scripts/node_modules/axios/lib/adapters/README.md @@ -0,0 +1,37 @@ +# axios // adapters + +The modules under `adapters/` are modules that handle dispatching a request and settling a returned `Promise` once a response is received. + +## Example + +```js +var settle = require('./../core/settle'); + +module.exports = function myAdapter(config) { + // At this point: + // - config has been merged with defaults + // - request transformers have already run + // - request interceptors have already run + + // Make the request using config provided + // Upon response settle the Promise + + return new Promise(function(resolve, reject) { + + var response = { + data: responseData, + status: request.status, + statusText: request.statusText, + headers: responseHeaders, + config: config, + request: request + }; + + settle(resolve, reject, response); + + // From here: + // - response transformers will run + // - response interceptors will run + }); +} +``` diff --git a/Scripts/node_modules/axios/lib/adapters/adapters.js b/Scripts/node_modules/axios/lib/adapters/adapters.js new file mode 100644 index 00000000..550997d8 --- /dev/null +++ b/Scripts/node_modules/axios/lib/adapters/adapters.js @@ -0,0 +1,77 @@ +import utils from '../utils.js'; +import httpAdapter from './http.js'; +import xhrAdapter from './xhr.js'; +import AxiosError from "../core/AxiosError.js"; + +const knownAdapters = { + http: httpAdapter, + xhr: xhrAdapter +} + +utils.forEach(knownAdapters, (fn, value) => { + if (fn) { + try { + Object.defineProperty(fn, 'name', {value}); + } catch (e) { + // eslint-disable-next-line no-empty + } + Object.defineProperty(fn, 'adapterName', {value}); + } +}); + +const renderReason = (reason) => `- ${reason}`; + +const isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false; + +export default { + getAdapter: (adapters) => { + adapters = utils.isArray(adapters) ? adapters : [adapters]; + + const {length} = adapters; + let nameOrAdapter; + let adapter; + + const rejectedReasons = {}; + + for (let i = 0; i < length; i++) { + nameOrAdapter = adapters[i]; + let id; + + adapter = nameOrAdapter; + + if (!isResolvedHandle(nameOrAdapter)) { + adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()]; + + if (adapter === undefined) { + throw new AxiosError(`Unknown adapter '${id}'`); + } + } + + if (adapter) { + break; + } + + rejectedReasons[id || '#' + i] = adapter; + } + + if (!adapter) { + + const reasons = Object.entries(rejectedReasons) + .map(([id, state]) => `adapter ${id} ` + + (state === false ? 'is not supported by the environment' : 'is not available in the build') + ); + + let s = length ? + (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) : + 'as no adapter specified'; + + throw new AxiosError( + `There is no suitable adapter to dispatch the request ` + s, + 'ERR_NOT_SUPPORT' + ); + } + + return adapter; + }, + adapters: knownAdapters +} diff --git a/Scripts/node_modules/axios/lib/adapters/http.js b/Scripts/node_modules/axios/lib/adapters/http.js new file mode 100755 index 00000000..21d64585 --- /dev/null +++ b/Scripts/node_modules/axios/lib/adapters/http.js @@ -0,0 +1,685 @@ +'use strict'; + +import utils from './../utils.js'; +import settle from './../core/settle.js'; +import buildFullPath from '../core/buildFullPath.js'; +import buildURL from './../helpers/buildURL.js'; +import {getProxyForUrl} from 'proxy-from-env'; +import http from 'http'; +import https from 'https'; +import util from 'util'; +import followRedirects from 'follow-redirects'; +import zlib from 'zlib'; +import {VERSION} from '../env/data.js'; +import transitionalDefaults from '../defaults/transitional.js'; +import AxiosError from '../core/AxiosError.js'; +import CanceledError from '../cancel/CanceledError.js'; +import platform from '../platform/index.js'; +import fromDataURI from '../helpers/fromDataURI.js'; +import stream from 'stream'; +import AxiosHeaders from '../core/AxiosHeaders.js'; +import AxiosTransformStream from '../helpers/AxiosTransformStream.js'; +import EventEmitter from 'events'; +import formDataToStream from "../helpers/formDataToStream.js"; +import readBlob from "../helpers/readBlob.js"; +import ZlibHeaderTransformStream from '../helpers/ZlibHeaderTransformStream.js'; +import callbackify from "../helpers/callbackify.js"; + +const zlibOptions = { + flush: zlib.constants.Z_SYNC_FLUSH, + finishFlush: zlib.constants.Z_SYNC_FLUSH +}; + +const brotliOptions = { + flush: zlib.constants.BROTLI_OPERATION_FLUSH, + finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH +} + +const isBrotliSupported = utils.isFunction(zlib.createBrotliDecompress); + +const {http: httpFollow, https: httpsFollow} = followRedirects; + +const isHttps = /https:?/; + +const supportedProtocols = platform.protocols.map(protocol => { + return protocol + ':'; +}); + +/** + * If the proxy or config beforeRedirects functions are defined, call them with the options + * object. + * + * @param {Object} options - The options object that was passed to the request. + * + * @returns {Object} + */ +function dispatchBeforeRedirect(options, responseDetails) { + if (options.beforeRedirects.proxy) { + options.beforeRedirects.proxy(options); + } + if (options.beforeRedirects.config) { + options.beforeRedirects.config(options, responseDetails); + } +} + +/** + * If the proxy or config afterRedirects functions are defined, call them with the options + * + * @param {http.ClientRequestArgs} options + * @param {AxiosProxyConfig} configProxy configuration from Axios options object + * @param {string} location + * + * @returns {http.ClientRequestArgs} + */ +function setProxy(options, configProxy, location) { + let proxy = configProxy; + if (!proxy && proxy !== false) { + const proxyUrl = getProxyForUrl(location); + if (proxyUrl) { + proxy = new URL(proxyUrl); + } + } + if (proxy) { + // Basic proxy authorization + if (proxy.username) { + proxy.auth = (proxy.username || '') + ':' + (proxy.password || ''); + } + + if (proxy.auth) { + // Support proxy auth object form + if (proxy.auth.username || proxy.auth.password) { + proxy.auth = (proxy.auth.username || '') + ':' + (proxy.auth.password || ''); + } + const base64 = Buffer + .from(proxy.auth, 'utf8') + .toString('base64'); + options.headers['Proxy-Authorization'] = 'Basic ' + base64; + } + + options.headers.host = options.hostname + (options.port ? ':' + options.port : ''); + const proxyHost = proxy.hostname || proxy.host; + options.hostname = proxyHost; + // Replace 'host' since options is not a URL object + options.host = proxyHost; + options.port = proxy.port; + options.path = location; + if (proxy.protocol) { + options.protocol = proxy.protocol.includes(':') ? proxy.protocol : `${proxy.protocol}:`; + } + } + + options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) { + // Configure proxy for redirected request, passing the original config proxy to apply + // the exact same logic as if the redirected request was performed by axios directly. + setProxy(redirectOptions, configProxy, redirectOptions.href); + }; +} + +const isHttpAdapterSupported = typeof process !== 'undefined' && utils.kindOf(process) === 'process'; + +// temporary hotfix + +const wrapAsync = (asyncExecutor) => { + return new Promise((resolve, reject) => { + let onDone; + let isDone; + + const done = (value, isRejected) => { + if (isDone) return; + isDone = true; + onDone && onDone(value, isRejected); + } + + const _resolve = (value) => { + done(value); + resolve(value); + }; + + const _reject = (reason) => { + done(reason, true); + reject(reason); + } + + asyncExecutor(_resolve, _reject, (onDoneHandler) => (onDone = onDoneHandler)).catch(_reject); + }) +}; + +const resolveFamily = ({address, family}) => { + if (!utils.isString(address)) { + throw TypeError('address must be a string'); + } + return ({ + address, + family: family || (address.indexOf('.') < 0 ? 6 : 4) + }); +} + +const buildAddressEntry = (address, family) => resolveFamily(utils.isObject(address) ? address : {address, family}); + +/*eslint consistent-return:0*/ +export default isHttpAdapterSupported && function httpAdapter(config) { + return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) { + let {data, lookup, family} = config; + const {responseType, responseEncoding} = config; + const method = config.method.toUpperCase(); + let isDone; + let rejected = false; + let req; + + if (lookup) { + const _lookup = callbackify(lookup, (value) => utils.isArray(value) ? value : [value]); + // hotfix to support opt.all option which is required for node 20.x + lookup = (hostname, opt, cb) => { + _lookup(hostname, opt, (err, arg0, arg1) => { + if (err) { + return cb(err); + } + + const addresses = utils.isArray(arg0) ? arg0.map(addr => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)]; + + opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family); + }); + } + } + + // temporary internal emitter until the AxiosRequest class will be implemented + const emitter = new EventEmitter(); + + const onFinished = () => { + if (config.cancelToken) { + config.cancelToken.unsubscribe(abort); + } + + if (config.signal) { + config.signal.removeEventListener('abort', abort); + } + + emitter.removeAllListeners(); + } + + onDone((value, isRejected) => { + isDone = true; + if (isRejected) { + rejected = true; + onFinished(); + } + }); + + function abort(reason) { + emitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason); + } + + emitter.once('abort', reject); + + if (config.cancelToken || config.signal) { + config.cancelToken && config.cancelToken.subscribe(abort); + if (config.signal) { + config.signal.aborted ? abort() : config.signal.addEventListener('abort', abort); + } + } + + // Parse url + const fullPath = buildFullPath(config.baseURL, config.url); + const parsed = new URL(fullPath, 'http://localhost'); + const protocol = parsed.protocol || supportedProtocols[0]; + + if (protocol === 'data:') { + let convertedData; + + if (method !== 'GET') { + return settle(resolve, reject, { + status: 405, + statusText: 'method not allowed', + headers: {}, + config + }); + } + + try { + convertedData = fromDataURI(config.url, responseType === 'blob', { + Blob: config.env && config.env.Blob + }); + } catch (err) { + throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config); + } + + if (responseType === 'text') { + convertedData = convertedData.toString(responseEncoding); + + if (!responseEncoding || responseEncoding === 'utf8') { + convertedData = utils.stripBOM(convertedData); + } + } else if (responseType === 'stream') { + convertedData = stream.Readable.from(convertedData); + } + + return settle(resolve, reject, { + data: convertedData, + status: 200, + statusText: 'OK', + headers: new AxiosHeaders(), + config + }); + } + + if (supportedProtocols.indexOf(protocol) === -1) { + return reject(new AxiosError( + 'Unsupported protocol ' + protocol, + AxiosError.ERR_BAD_REQUEST, + config + )); + } + + const headers = AxiosHeaders.from(config.headers).normalize(); + + // Set User-Agent (required by some servers) + // See https://github.com/axios/axios/issues/69 + // User-Agent is specified; handle case where no UA header is desired + // Only set header if it hasn't been set in config + headers.set('User-Agent', 'axios/' + VERSION, false); + + const onDownloadProgress = config.onDownloadProgress; + const onUploadProgress = config.onUploadProgress; + const maxRate = config.maxRate; + let maxUploadRate = undefined; + let maxDownloadRate = undefined; + + // support for spec compliant FormData objects + if (utils.isSpecCompliantForm(data)) { + const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i); + + data = formDataToStream(data, (formHeaders) => { + headers.set(formHeaders); + }, { + tag: `axios-${VERSION}-boundary`, + boundary: userBoundary && userBoundary[1] || undefined + }); + // support for https://www.npmjs.com/package/form-data api + } else if (utils.isFormData(data) && utils.isFunction(data.getHeaders)) { + headers.set(data.getHeaders()); + + if (!headers.hasContentLength()) { + try { + const knownLength = await util.promisify(data.getLength).call(data); + Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength); + /*eslint no-empty:0*/ + } catch (e) { + } + } + } else if (utils.isBlob(data)) { + data.size && headers.setContentType(data.type || 'application/octet-stream'); + headers.setContentLength(data.size || 0); + data = stream.Readable.from(readBlob(data)); + } else if (data && !utils.isStream(data)) { + if (Buffer.isBuffer(data)) { + // Nothing to do... + } else if (utils.isArrayBuffer(data)) { + data = Buffer.from(new Uint8Array(data)); + } else if (utils.isString(data)) { + data = Buffer.from(data, 'utf-8'); + } else { + return reject(new AxiosError( + 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream', + AxiosError.ERR_BAD_REQUEST, + config + )); + } + + // Add Content-Length header if data exists + headers.setContentLength(data.length, false); + + if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) { + return reject(new AxiosError( + 'Request body larger than maxBodyLength limit', + AxiosError.ERR_BAD_REQUEST, + config + )); + } + } + + const contentLength = utils.toFiniteNumber(headers.getContentLength()); + + if (utils.isArray(maxRate)) { + maxUploadRate = maxRate[0]; + maxDownloadRate = maxRate[1]; + } else { + maxUploadRate = maxDownloadRate = maxRate; + } + + if (data && (onUploadProgress || maxUploadRate)) { + if (!utils.isStream(data)) { + data = stream.Readable.from(data, {objectMode: false}); + } + + data = stream.pipeline([data, new AxiosTransformStream({ + length: contentLength, + maxRate: utils.toFiniteNumber(maxUploadRate) + })], utils.noop); + + onUploadProgress && data.on('progress', progress => { + onUploadProgress(Object.assign(progress, { + upload: true + })); + }); + } + + // HTTP basic authentication + let auth = undefined; + if (config.auth) { + const username = config.auth.username || ''; + const password = config.auth.password || ''; + auth = username + ':' + password; + } + + if (!auth && parsed.username) { + const urlUsername = parsed.username; + const urlPassword = parsed.password; + auth = urlUsername + ':' + urlPassword; + } + + auth && headers.delete('authorization'); + + let path; + + try { + path = buildURL( + parsed.pathname + parsed.search, + config.params, + config.paramsSerializer + ).replace(/^\?/, ''); + } catch (err) { + const customErr = new Error(err.message); + customErr.config = config; + customErr.url = config.url; + customErr.exists = true; + return reject(customErr); + } + + headers.set( + 'Accept-Encoding', + 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''), false + ); + + const options = { + path, + method: method, + headers: headers.toJSON(), + agents: { http: config.httpAgent, https: config.httpsAgent }, + auth, + protocol, + family, + beforeRedirect: dispatchBeforeRedirect, + beforeRedirects: {} + }; + + // cacheable-lookup integration hotfix + !utils.isUndefined(lookup) && (options.lookup = lookup); + + if (config.socketPath) { + options.socketPath = config.socketPath; + } else { + options.hostname = parsed.hostname; + options.port = parsed.port; + setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path); + } + + let transport; + const isHttpsRequest = isHttps.test(options.protocol); + options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent; + if (config.transport) { + transport = config.transport; + } else if (config.maxRedirects === 0) { + transport = isHttpsRequest ? https : http; + } else { + if (config.maxRedirects) { + options.maxRedirects = config.maxRedirects; + } + if (config.beforeRedirect) { + options.beforeRedirects.config = config.beforeRedirect; + } + transport = isHttpsRequest ? httpsFollow : httpFollow; + } + + if (config.maxBodyLength > -1) { + options.maxBodyLength = config.maxBodyLength; + } else { + // follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited + options.maxBodyLength = Infinity; + } + + if (config.insecureHTTPParser) { + options.insecureHTTPParser = config.insecureHTTPParser; + } + + // Create the request + req = transport.request(options, function handleResponse(res) { + if (req.destroyed) return; + + const streams = [res]; + + const responseLength = +res.headers['content-length']; + + if (onDownloadProgress) { + const transformStream = new AxiosTransformStream({ + length: utils.toFiniteNumber(responseLength), + maxRate: utils.toFiniteNumber(maxDownloadRate) + }); + + onDownloadProgress && transformStream.on('progress', progress => { + onDownloadProgress(Object.assign(progress, { + download: true + })); + }); + + streams.push(transformStream); + } + + // decompress the response body transparently if required + let responseStream = res; + + // return the last request in case of redirects + const lastRequest = res.req || req; + + // if decompress disabled we should not decompress + if (config.decompress !== false && res.headers['content-encoding']) { + // if no content, but headers still say that it is encoded, + // remove the header not confuse downstream operations + if (method === 'HEAD' || res.statusCode === 204) { + delete res.headers['content-encoding']; + } + + switch ((res.headers['content-encoding'] || '').toLowerCase()) { + /*eslint default-case:0*/ + case 'gzip': + case 'x-gzip': + case 'compress': + case 'x-compress': + // add the unzipper to the body stream processing pipeline + streams.push(zlib.createUnzip(zlibOptions)); + + // remove the content-encoding in order to not confuse downstream operations + delete res.headers['content-encoding']; + break; + case 'deflate': + streams.push(new ZlibHeaderTransformStream()); + + // add the unzipper to the body stream processing pipeline + streams.push(zlib.createUnzip(zlibOptions)); + + // remove the content-encoding in order to not confuse downstream operations + delete res.headers['content-encoding']; + break; + case 'br': + if (isBrotliSupported) { + streams.push(zlib.createBrotliDecompress(brotliOptions)); + delete res.headers['content-encoding']; + } + } + } + + responseStream = streams.length > 1 ? stream.pipeline(streams, utils.noop) : streams[0]; + + const offListeners = stream.finished(responseStream, () => { + offListeners(); + onFinished(); + }); + + const response = { + status: res.statusCode, + statusText: res.statusMessage, + headers: new AxiosHeaders(res.headers), + config, + request: lastRequest + }; + + if (responseType === 'stream') { + response.data = responseStream; + settle(resolve, reject, response); + } else { + const responseBuffer = []; + let totalResponseBytes = 0; + + responseStream.on('data', function handleStreamData(chunk) { + responseBuffer.push(chunk); + totalResponseBytes += chunk.length; + + // make sure the content length is not over the maxContentLength if specified + if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) { + // stream.destroy() emit aborted event before calling reject() on Node.js v16 + rejected = true; + responseStream.destroy(); + reject(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded', + AxiosError.ERR_BAD_RESPONSE, config, lastRequest)); + } + }); + + responseStream.on('aborted', function handlerStreamAborted() { + if (rejected) { + return; + } + + const err = new AxiosError( + 'maxContentLength size of ' + config.maxContentLength + ' exceeded', + AxiosError.ERR_BAD_RESPONSE, + config, + lastRequest + ); + responseStream.destroy(err); + reject(err); + }); + + responseStream.on('error', function handleStreamError(err) { + if (req.destroyed) return; + reject(AxiosError.from(err, null, config, lastRequest)); + }); + + responseStream.on('end', function handleStreamEnd() { + try { + let responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer); + if (responseType !== 'arraybuffer') { + responseData = responseData.toString(responseEncoding); + if (!responseEncoding || responseEncoding === 'utf8') { + responseData = utils.stripBOM(responseData); + } + } + response.data = responseData; + } catch (err) { + return reject(AxiosError.from(err, null, config, response.request, response)); + } + settle(resolve, reject, response); + }); + } + + emitter.once('abort', err => { + if (!responseStream.destroyed) { + responseStream.emit('error', err); + responseStream.destroy(); + } + }); + }); + + emitter.once('abort', err => { + reject(err); + req.destroy(err); + }); + + // Handle errors + req.on('error', function handleRequestError(err) { + // @todo remove + // if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return; + reject(AxiosError.from(err, null, config, req)); + }); + + // set tcp keep alive to prevent drop connection by peer + req.on('socket', function handleRequestSocket(socket) { + // default interval of sending ack packet is 1 minute + socket.setKeepAlive(true, 1000 * 60); + }); + + // Handle request timeout + if (config.timeout) { + // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types. + const timeout = parseInt(config.timeout, 10); + + if (Number.isNaN(timeout)) { + reject(new AxiosError( + 'error trying to parse `config.timeout` to int', + AxiosError.ERR_BAD_OPTION_VALUE, + config, + req + )); + + return; + } + + // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system. + // And timer callback will be fired, and abort() will be invoked before connection, then get "socket hang up" and code ECONNRESET. + // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up. + // And then these socket which be hang up will devouring CPU little by little. + // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect. + req.setTimeout(timeout, function handleRequestTimeout() { + if (isDone) return; + let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; + const transitional = config.transitional || transitionalDefaults; + if (config.timeoutErrorMessage) { + timeoutErrorMessage = config.timeoutErrorMessage; + } + reject(new AxiosError( + timeoutErrorMessage, + transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, + config, + req + )); + abort(); + }); + } + + + // Send the request + if (utils.isStream(data)) { + let ended = false; + let errored = false; + + data.on('end', () => { + ended = true; + }); + + data.once('error', err => { + errored = true; + req.destroy(err); + }); + + data.on('close', () => { + if (!ended && !errored) { + abort(new CanceledError('Request stream has been aborted', config, req)); + } + }); + + data.pipe(req); + } else { + req.end(data); + } + }); +} + +export const __setProxy = setProxy; diff --git a/Scripts/node_modules/axios/lib/adapters/xhr.js b/Scripts/node_modules/axios/lib/adapters/xhr.js new file mode 100644 index 00000000..26126b2f --- /dev/null +++ b/Scripts/node_modules/axios/lib/adapters/xhr.js @@ -0,0 +1,260 @@ +'use strict'; + +import utils from './../utils.js'; +import settle from './../core/settle.js'; +import cookies from './../helpers/cookies.js'; +import buildURL from './../helpers/buildURL.js'; +import buildFullPath from '../core/buildFullPath.js'; +import isURLSameOrigin from './../helpers/isURLSameOrigin.js'; +import transitionalDefaults from '../defaults/transitional.js'; +import AxiosError from '../core/AxiosError.js'; +import CanceledError from '../cancel/CanceledError.js'; +import parseProtocol from '../helpers/parseProtocol.js'; +import platform from '../platform/index.js'; +import AxiosHeaders from '../core/AxiosHeaders.js'; +import speedometer from '../helpers/speedometer.js'; + +function progressEventReducer(listener, isDownloadStream) { + let bytesNotified = 0; + const _speedometer = speedometer(50, 250); + + return e => { + const loaded = e.loaded; + const total = e.lengthComputable ? e.total : undefined; + const progressBytes = loaded - bytesNotified; + const rate = _speedometer(progressBytes); + const inRange = loaded <= total; + + bytesNotified = loaded; + + const data = { + loaded, + total, + progress: total ? (loaded / total) : undefined, + bytes: progressBytes, + rate: rate ? rate : undefined, + estimated: rate && total && inRange ? (total - loaded) / rate : undefined, + event: e + }; + + data[isDownloadStream ? 'download' : 'upload'] = true; + + listener(data); + }; +} + +const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined'; + +export default isXHRAdapterSupported && function (config) { + return new Promise(function dispatchXhrRequest(resolve, reject) { + let requestData = config.data; + const requestHeaders = AxiosHeaders.from(config.headers).normalize(); + let {responseType, withXSRFToken} = config; + let onCanceled; + function done() { + if (config.cancelToken) { + config.cancelToken.unsubscribe(onCanceled); + } + + if (config.signal) { + config.signal.removeEventListener('abort', onCanceled); + } + } + + let contentType; + + if (utils.isFormData(requestData)) { + if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) { + requestHeaders.setContentType(false); // Let the browser set it + } else if ((contentType = requestHeaders.getContentType()) !== false) { + // fix semicolon duplication issue for ReactNative FormData implementation + const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : []; + requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; ')); + } + } + + let request = new XMLHttpRequest(); + + // HTTP basic authentication + if (config.auth) { + const username = config.auth.username || ''; + const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; + requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password)); + } + + const fullPath = buildFullPath(config.baseURL, config.url); + + request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); + + // Set the request timeout in MS + request.timeout = config.timeout; + + function onloadend() { + if (!request) { + return; + } + // Prepare the response + const responseHeaders = AxiosHeaders.from( + 'getAllResponseHeaders' in request && request.getAllResponseHeaders() + ); + const responseData = !responseType || responseType === 'text' || responseType === 'json' ? + request.responseText : request.response; + const response = { + data: responseData, + status: request.status, + statusText: request.statusText, + headers: responseHeaders, + config, + request + }; + + settle(function _resolve(value) { + resolve(value); + done(); + }, function _reject(err) { + reject(err); + done(); + }, response); + + // Clean up request + request = null; + } + + if ('onloadend' in request) { + // Use onloadend if available + request.onloadend = onloadend; + } else { + // Listen for ready state to emulate onloadend + request.onreadystatechange = function handleLoad() { + if (!request || request.readyState !== 4) { + return; + } + + // The request errored out and we didn't get a response, this will be + // handled by onerror instead + // With one exception: request that using file: protocol, most browsers + // will return status as 0 even though it's a successful request + if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { + return; + } + // readystate handler is calling before onerror or ontimeout handlers, + // so we should call onloadend on the next 'tick' + setTimeout(onloadend); + }; + } + + // Handle browser request cancellation (as opposed to a manual cancellation) + request.onabort = function handleAbort() { + if (!request) { + return; + } + + reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request)); + + // Clean up request + request = null; + }; + + // Handle low level network errors + request.onerror = function handleError() { + // Real errors are hidden from us by the browser + // onerror should only fire if it's a network error + reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request)); + + // Clean up request + request = null; + }; + + // Handle timeout + request.ontimeout = function handleTimeout() { + let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; + const transitional = config.transitional || transitionalDefaults; + if (config.timeoutErrorMessage) { + timeoutErrorMessage = config.timeoutErrorMessage; + } + reject(new AxiosError( + timeoutErrorMessage, + transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, + config, + request)); + + // Clean up request + request = null; + }; + + // Add xsrf header + // This is only done if running in a standard browser environment. + // Specifically not if we're in a web worker, or react-native. + if(platform.hasStandardBrowserEnv) { + withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config)); + + if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) { + // Add xsrf header + const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName); + + if (xsrfValue) { + requestHeaders.set(config.xsrfHeaderName, xsrfValue); + } + } + } + + // Remove Content-Type if data is undefined + requestData === undefined && requestHeaders.setContentType(null); + + // Add headers to the request + if ('setRequestHeader' in request) { + utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) { + request.setRequestHeader(key, val); + }); + } + + // Add withCredentials to request if needed + if (!utils.isUndefined(config.withCredentials)) { + request.withCredentials = !!config.withCredentials; + } + + // Add responseType to request if needed + if (responseType && responseType !== 'json') { + request.responseType = config.responseType; + } + + // Handle progress if needed + if (typeof config.onDownloadProgress === 'function') { + request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true)); + } + + // Not all browsers support upload events + if (typeof config.onUploadProgress === 'function' && request.upload) { + request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress)); + } + + if (config.cancelToken || config.signal) { + // Handle cancellation + // eslint-disable-next-line func-names + onCanceled = cancel => { + if (!request) { + return; + } + reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel); + request.abort(); + request = null; + }; + + config.cancelToken && config.cancelToken.subscribe(onCanceled); + if (config.signal) { + config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); + } + } + + const protocol = parseProtocol(fullPath); + + if (protocol && platform.protocols.indexOf(protocol) === -1) { + reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config)); + return; + } + + + // Send the request + request.send(requestData || null); + }); +} diff --git a/Scripts/node_modules/axios/lib/axios.js b/Scripts/node_modules/axios/lib/axios.js new file mode 100644 index 00000000..873f246d --- /dev/null +++ b/Scripts/node_modules/axios/lib/axios.js @@ -0,0 +1,89 @@ +'use strict'; + +import utils from './utils.js'; +import bind from './helpers/bind.js'; +import Axios from './core/Axios.js'; +import mergeConfig from './core/mergeConfig.js'; +import defaults from './defaults/index.js'; +import formDataToJSON from './helpers/formDataToJSON.js'; +import CanceledError from './cancel/CanceledError.js'; +import CancelToken from './cancel/CancelToken.js'; +import isCancel from './cancel/isCancel.js'; +import {VERSION} from './env/data.js'; +import toFormData from './helpers/toFormData.js'; +import AxiosError from './core/AxiosError.js'; +import spread from './helpers/spread.js'; +import isAxiosError from './helpers/isAxiosError.js'; +import AxiosHeaders from "./core/AxiosHeaders.js"; +import adapters from './adapters/adapters.js'; +import HttpStatusCode from './helpers/HttpStatusCode.js'; + +/** + * Create an instance of Axios + * + * @param {Object} defaultConfig The default config for the instance + * + * @returns {Axios} A new instance of Axios + */ +function createInstance(defaultConfig) { + const context = new Axios(defaultConfig); + const instance = bind(Axios.prototype.request, context); + + // Copy axios.prototype to instance + utils.extend(instance, Axios.prototype, context, {allOwnKeys: true}); + + // Copy context to instance + utils.extend(instance, context, null, {allOwnKeys: true}); + + // Factory for creating new instances + instance.create = function create(instanceConfig) { + return createInstance(mergeConfig(defaultConfig, instanceConfig)); + }; + + return instance; +} + +// Create the default instance to be exported +const axios = createInstance(defaults); + +// Expose Axios class to allow class inheritance +axios.Axios = Axios; + +// Expose Cancel & CancelToken +axios.CanceledError = CanceledError; +axios.CancelToken = CancelToken; +axios.isCancel = isCancel; +axios.VERSION = VERSION; +axios.toFormData = toFormData; + +// Expose AxiosError class +axios.AxiosError = AxiosError; + +// alias for CanceledError for backward compatibility +axios.Cancel = axios.CanceledError; + +// Expose all/spread +axios.all = function all(promises) { + return Promise.all(promises); +}; + +axios.spread = spread; + +// Expose isAxiosError +axios.isAxiosError = isAxiosError; + +// Expose mergeConfig +axios.mergeConfig = mergeConfig; + +axios.AxiosHeaders = AxiosHeaders; + +axios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing); + +axios.getAdapter = adapters.getAdapter; + +axios.HttpStatusCode = HttpStatusCode; + +axios.default = axios; + +// this module should only have a default export +export default axios diff --git a/Scripts/node_modules/axios/lib/cancel/CancelToken.js b/Scripts/node_modules/axios/lib/cancel/CancelToken.js new file mode 100644 index 00000000..20d8f68a --- /dev/null +++ b/Scripts/node_modules/axios/lib/cancel/CancelToken.js @@ -0,0 +1,121 @@ +'use strict'; + +import CanceledError from './CanceledError.js'; + +/** + * A `CancelToken` is an object that can be used to request cancellation of an operation. + * + * @param {Function} executor The executor function. + * + * @returns {CancelToken} + */ +class CancelToken { + constructor(executor) { + if (typeof executor !== 'function') { + throw new TypeError('executor must be a function.'); + } + + let resolvePromise; + + this.promise = new Promise(function promiseExecutor(resolve) { + resolvePromise = resolve; + }); + + const token = this; + + // eslint-disable-next-line func-names + this.promise.then(cancel => { + if (!token._listeners) return; + + let i = token._listeners.length; + + while (i-- > 0) { + token._listeners[i](cancel); + } + token._listeners = null; + }); + + // eslint-disable-next-line func-names + this.promise.then = onfulfilled => { + let _resolve; + // eslint-disable-next-line func-names + const promise = new Promise(resolve => { + token.subscribe(resolve); + _resolve = resolve; + }).then(onfulfilled); + + promise.cancel = function reject() { + token.unsubscribe(_resolve); + }; + + return promise; + }; + + executor(function cancel(message, config, request) { + if (token.reason) { + // Cancellation has already been requested + return; + } + + token.reason = new CanceledError(message, config, request); + resolvePromise(token.reason); + }); + } + + /** + * Throws a `CanceledError` if cancellation has been requested. + */ + throwIfRequested() { + if (this.reason) { + throw this.reason; + } + } + + /** + * Subscribe to the cancel signal + */ + + subscribe(listener) { + if (this.reason) { + listener(this.reason); + return; + } + + if (this._listeners) { + this._listeners.push(listener); + } else { + this._listeners = [listener]; + } + } + + /** + * Unsubscribe from the cancel signal + */ + + unsubscribe(listener) { + if (!this._listeners) { + return; + } + const index = this._listeners.indexOf(listener); + if (index !== -1) { + this._listeners.splice(index, 1); + } + } + + /** + * Returns an object that contains a new `CancelToken` and a function that, when called, + * cancels the `CancelToken`. + */ + static source() { + let cancel; + const token = new CancelToken(function executor(c) { + cancel = c; + }); + return { + token, + cancel + }; + } +} + +export default CancelToken; diff --git a/Scripts/node_modules/axios/lib/cancel/CanceledError.js b/Scripts/node_modules/axios/lib/cancel/CanceledError.js new file mode 100644 index 00000000..880066ed --- /dev/null +++ b/Scripts/node_modules/axios/lib/cancel/CanceledError.js @@ -0,0 +1,25 @@ +'use strict'; + +import AxiosError from '../core/AxiosError.js'; +import utils from '../utils.js'; + +/** + * A `CanceledError` is an object that is thrown when an operation is canceled. + * + * @param {string=} message The message. + * @param {Object=} config The config. + * @param {Object=} request The request. + * + * @returns {CanceledError} The created error. + */ +function CanceledError(message, config, request) { + // eslint-disable-next-line no-eq-null,eqeqeq + AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request); + this.name = 'CanceledError'; +} + +utils.inherits(CanceledError, AxiosError, { + __CANCEL__: true +}); + +export default CanceledError; diff --git a/Scripts/node_modules/axios/lib/cancel/isCancel.js b/Scripts/node_modules/axios/lib/cancel/isCancel.js new file mode 100644 index 00000000..a444a129 --- /dev/null +++ b/Scripts/node_modules/axios/lib/cancel/isCancel.js @@ -0,0 +1,5 @@ +'use strict'; + +export default function isCancel(value) { + return !!(value && value.__CANCEL__); +} diff --git a/Scripts/node_modules/axios/lib/core/Axios.js b/Scripts/node_modules/axios/lib/core/Axios.js new file mode 100644 index 00000000..2713364a --- /dev/null +++ b/Scripts/node_modules/axios/lib/core/Axios.js @@ -0,0 +1,225 @@ +'use strict'; + +import utils from './../utils.js'; +import buildURL from '../helpers/buildURL.js'; +import InterceptorManager from './InterceptorManager.js'; +import dispatchRequest from './dispatchRequest.js'; +import mergeConfig from './mergeConfig.js'; +import buildFullPath from './buildFullPath.js'; +import validator from '../helpers/validator.js'; +import AxiosHeaders from './AxiosHeaders.js'; + +const validators = validator.validators; + +/** + * Create a new instance of Axios + * + * @param {Object} instanceConfig The default config for the instance + * + * @return {Axios} A new instance of Axios + */ +class Axios { + constructor(instanceConfig) { + this.defaults = instanceConfig; + this.interceptors = { + request: new InterceptorManager(), + response: new InterceptorManager() + }; + } + + /** + * Dispatch a request + * + * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) + * @param {?Object} config + * + * @returns {Promise} The Promise to be fulfilled + */ + async request(configOrUrl, config) { + try { + return await this._request(configOrUrl, config); + } catch (err) { + if (err instanceof Error) { + let dummy; + + Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error()); + + // slice off the Error: ... line + const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : ''; + + if (!err.stack) { + err.stack = stack; + // match without the 2 top stack lines + } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) { + err.stack += '\n' + stack + } + } + + throw err; + } + } + + _request(configOrUrl, config) { + /*eslint no-param-reassign:0*/ + // Allow for axios('example/url'[, config]) a la fetch API + if (typeof configOrUrl === 'string') { + config = config || {}; + config.url = configOrUrl; + } else { + config = configOrUrl || {}; + } + + config = mergeConfig(this.defaults, config); + + const {transitional, paramsSerializer, headers} = config; + + if (transitional !== undefined) { + validator.assertOptions(transitional, { + silentJSONParsing: validators.transitional(validators.boolean), + forcedJSONParsing: validators.transitional(validators.boolean), + clarifyTimeoutError: validators.transitional(validators.boolean) + }, false); + } + + if (paramsSerializer != null) { + if (utils.isFunction(paramsSerializer)) { + config.paramsSerializer = { + serialize: paramsSerializer + } + } else { + validator.assertOptions(paramsSerializer, { + encode: validators.function, + serialize: validators.function + }, true); + } + } + + // Set config.method + config.method = (config.method || this.defaults.method || 'get').toLowerCase(); + + // Flatten headers + let contextHeaders = headers && utils.merge( + headers.common, + headers[config.method] + ); + + headers && utils.forEach( + ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], + (method) => { + delete headers[method]; + } + ); + + config.headers = AxiosHeaders.concat(contextHeaders, headers); + + // filter out skipped interceptors + const requestInterceptorChain = []; + let synchronousRequestInterceptors = true; + this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { + if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { + return; + } + + synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; + + requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); + }); + + const responseInterceptorChain = []; + this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { + responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); + }); + + let promise; + let i = 0; + let len; + + if (!synchronousRequestInterceptors) { + const chain = [dispatchRequest.bind(this), undefined]; + chain.unshift.apply(chain, requestInterceptorChain); + chain.push.apply(chain, responseInterceptorChain); + len = chain.length; + + promise = Promise.resolve(config); + + while (i < len) { + promise = promise.then(chain[i++], chain[i++]); + } + + return promise; + } + + len = requestInterceptorChain.length; + + let newConfig = config; + + i = 0; + + while (i < len) { + const onFulfilled = requestInterceptorChain[i++]; + const onRejected = requestInterceptorChain[i++]; + try { + newConfig = onFulfilled(newConfig); + } catch (error) { + onRejected.call(this, error); + break; + } + } + + try { + promise = dispatchRequest.call(this, newConfig); + } catch (error) { + return Promise.reject(error); + } + + i = 0; + len = responseInterceptorChain.length; + + while (i < len) { + promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); + } + + return promise; + } + + getUri(config) { + config = mergeConfig(this.defaults, config); + const fullPath = buildFullPath(config.baseURL, config.url); + return buildURL(fullPath, config.params, config.paramsSerializer); + } +} + +// Provide aliases for supported request methods +utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { + /*eslint func-names:0*/ + Axios.prototype[method] = function(url, config) { + return this.request(mergeConfig(config || {}, { + method, + url, + data: (config || {}).data + })); + }; +}); + +utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { + /*eslint func-names:0*/ + + function generateHTTPMethod(isForm) { + return function httpMethod(url, data, config) { + return this.request(mergeConfig(config || {}, { + method, + headers: isForm ? { + 'Content-Type': 'multipart/form-data' + } : {}, + url, + data + })); + }; + } + + Axios.prototype[method] = generateHTTPMethod(); + + Axios.prototype[method + 'Form'] = generateHTTPMethod(true); +}); + +export default Axios; diff --git a/Scripts/node_modules/axios/lib/core/AxiosError.js b/Scripts/node_modules/axios/lib/core/AxiosError.js new file mode 100644 index 00000000..7141a8cd --- /dev/null +++ b/Scripts/node_modules/axios/lib/core/AxiosError.js @@ -0,0 +1,100 @@ +'use strict'; + +import utils from '../utils.js'; + +/** + * Create an Error with the specified message, config, error code, request and response. + * + * @param {string} message The error message. + * @param {string} [code] The error code (for example, 'ECONNABORTED'). + * @param {Object} [config] The config. + * @param {Object} [request] The request. + * @param {Object} [response] The response. + * + * @returns {Error} The created error. + */ +function AxiosError(message, code, config, request, response) { + Error.call(this); + + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } else { + this.stack = (new Error()).stack; + } + + this.message = message; + this.name = 'AxiosError'; + code && (this.code = code); + config && (this.config = config); + request && (this.request = request); + response && (this.response = response); +} + +utils.inherits(AxiosError, Error, { + toJSON: function toJSON() { + return { + // Standard + message: this.message, + name: this.name, + // Microsoft + description: this.description, + number: this.number, + // Mozilla + fileName: this.fileName, + lineNumber: this.lineNumber, + columnNumber: this.columnNumber, + stack: this.stack, + // Axios + config: utils.toJSONObject(this.config), + code: this.code, + status: this.response && this.response.status ? this.response.status : null + }; + } +}); + +const prototype = AxiosError.prototype; +const descriptors = {}; + +[ + 'ERR_BAD_OPTION_VALUE', + 'ERR_BAD_OPTION', + 'ECONNABORTED', + 'ETIMEDOUT', + 'ERR_NETWORK', + 'ERR_FR_TOO_MANY_REDIRECTS', + 'ERR_DEPRECATED', + 'ERR_BAD_RESPONSE', + 'ERR_BAD_REQUEST', + 'ERR_CANCELED', + 'ERR_NOT_SUPPORT', + 'ERR_INVALID_URL' +// eslint-disable-next-line func-names +].forEach(code => { + descriptors[code] = {value: code}; +}); + +Object.defineProperties(AxiosError, descriptors); +Object.defineProperty(prototype, 'isAxiosError', {value: true}); + +// eslint-disable-next-line func-names +AxiosError.from = (error, code, config, request, response, customProps) => { + const axiosError = Object.create(prototype); + + utils.toFlatObject(error, axiosError, function filter(obj) { + return obj !== Error.prototype; + }, prop => { + return prop !== 'isAxiosError'; + }); + + AxiosError.call(axiosError, error.message, code, config, request, response); + + axiosError.cause = error; + + axiosError.name = error.name; + + customProps && Object.assign(axiosError, customProps); + + return axiosError; +}; + +export default AxiosError; diff --git a/Scripts/node_modules/axios/lib/core/AxiosHeaders.js b/Scripts/node_modules/axios/lib/core/AxiosHeaders.js new file mode 100644 index 00000000..558ad8fc --- /dev/null +++ b/Scripts/node_modules/axios/lib/core/AxiosHeaders.js @@ -0,0 +1,298 @@ +'use strict'; + +import utils from '../utils.js'; +import parseHeaders from '../helpers/parseHeaders.js'; + +const $internals = Symbol('internals'); + +function normalizeHeader(header) { + return header && String(header).trim().toLowerCase(); +} + +function normalizeValue(value) { + if (value === false || value == null) { + return value; + } + + return utils.isArray(value) ? value.map(normalizeValue) : String(value); +} + +function parseTokens(str) { + const tokens = Object.create(null); + const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; + let match; + + while ((match = tokensRE.exec(str))) { + tokens[match[1]] = match[2]; + } + + return tokens; +} + +const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()); + +function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) { + if (utils.isFunction(filter)) { + return filter.call(this, value, header); + } + + if (isHeaderNameFilter) { + value = header; + } + + if (!utils.isString(value)) return; + + if (utils.isString(filter)) { + return value.indexOf(filter) !== -1; + } + + if (utils.isRegExp(filter)) { + return filter.test(value); + } +} + +function formatHeader(header) { + return header.trim() + .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => { + return char.toUpperCase() + str; + }); +} + +function buildAccessors(obj, header) { + const accessorName = utils.toCamelCase(' ' + header); + + ['get', 'set', 'has'].forEach(methodName => { + Object.defineProperty(obj, methodName + accessorName, { + value: function(arg1, arg2, arg3) { + return this[methodName].call(this, header, arg1, arg2, arg3); + }, + configurable: true + }); + }); +} + +class AxiosHeaders { + constructor(headers) { + headers && this.set(headers); + } + + set(header, valueOrRewrite, rewrite) { + const self = this; + + function setHeader(_value, _header, _rewrite) { + const lHeader = normalizeHeader(_header); + + if (!lHeader) { + throw new Error('header name must be a non-empty string'); + } + + const key = utils.findKey(self, lHeader); + + if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) { + self[key || _header] = normalizeValue(_value); + } + } + + const setHeaders = (headers, _rewrite) => + utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite)); + + if (utils.isPlainObject(header) || header instanceof this.constructor) { + setHeaders(header, valueOrRewrite) + } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { + setHeaders(parseHeaders(header), valueOrRewrite); + } else { + header != null && setHeader(valueOrRewrite, header, rewrite); + } + + return this; + } + + get(header, parser) { + header = normalizeHeader(header); + + if (header) { + const key = utils.findKey(this, header); + + if (key) { + const value = this[key]; + + if (!parser) { + return value; + } + + if (parser === true) { + return parseTokens(value); + } + + if (utils.isFunction(parser)) { + return parser.call(this, value, key); + } + + if (utils.isRegExp(parser)) { + return parser.exec(value); + } + + throw new TypeError('parser must be boolean|regexp|function'); + } + } + } + + has(header, matcher) { + header = normalizeHeader(header); + + if (header) { + const key = utils.findKey(this, header); + + return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher))); + } + + return false; + } + + delete(header, matcher) { + const self = this; + let deleted = false; + + function deleteHeader(_header) { + _header = normalizeHeader(_header); + + if (_header) { + const key = utils.findKey(self, _header); + + if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) { + delete self[key]; + + deleted = true; + } + } + } + + if (utils.isArray(header)) { + header.forEach(deleteHeader); + } else { + deleteHeader(header); + } + + return deleted; + } + + clear(matcher) { + const keys = Object.keys(this); + let i = keys.length; + let deleted = false; + + while (i--) { + const key = keys[i]; + if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) { + delete this[key]; + deleted = true; + } + } + + return deleted; + } + + normalize(format) { + const self = this; + const headers = {}; + + utils.forEach(this, (value, header) => { + const key = utils.findKey(headers, header); + + if (key) { + self[key] = normalizeValue(value); + delete self[header]; + return; + } + + const normalized = format ? formatHeader(header) : String(header).trim(); + + if (normalized !== header) { + delete self[header]; + } + + self[normalized] = normalizeValue(value); + + headers[normalized] = true; + }); + + return this; + } + + concat(...targets) { + return this.constructor.concat(this, ...targets); + } + + toJSON(asStrings) { + const obj = Object.create(null); + + utils.forEach(this, (value, header) => { + value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value); + }); + + return obj; + } + + [Symbol.iterator]() { + return Object.entries(this.toJSON())[Symbol.iterator](); + } + + toString() { + return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n'); + } + + get [Symbol.toStringTag]() { + return 'AxiosHeaders'; + } + + static from(thing) { + return thing instanceof this ? thing : new this(thing); + } + + static concat(first, ...targets) { + const computed = new this(first); + + targets.forEach((target) => computed.set(target)); + + return computed; + } + + static accessor(header) { + const internals = this[$internals] = (this[$internals] = { + accessors: {} + }); + + const accessors = internals.accessors; + const prototype = this.prototype; + + function defineAccessor(_header) { + const lHeader = normalizeHeader(_header); + + if (!accessors[lHeader]) { + buildAccessors(prototype, _header); + accessors[lHeader] = true; + } + } + + utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header); + + return this; + } +} + +AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']); + +// reserved names hotfix +utils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => { + let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set` + return { + get: () => value, + set(headerValue) { + this[mapped] = headerValue; + } + } +}); + +utils.freezeMethods(AxiosHeaders); + +export default AxiosHeaders; diff --git a/Scripts/node_modules/axios/lib/core/InterceptorManager.js b/Scripts/node_modules/axios/lib/core/InterceptorManager.js new file mode 100644 index 00000000..6657a9d2 --- /dev/null +++ b/Scripts/node_modules/axios/lib/core/InterceptorManager.js @@ -0,0 +1,71 @@ +'use strict'; + +import utils from './../utils.js'; + +class InterceptorManager { + constructor() { + this.handlers = []; + } + + /** + * Add a new interceptor to the stack + * + * @param {Function} fulfilled The function to handle `then` for a `Promise` + * @param {Function} rejected The function to handle `reject` for a `Promise` + * + * @return {Number} An ID used to remove interceptor later + */ + use(fulfilled, rejected, options) { + this.handlers.push({ + fulfilled, + rejected, + synchronous: options ? options.synchronous : false, + runWhen: options ? options.runWhen : null + }); + return this.handlers.length - 1; + } + + /** + * Remove an interceptor from the stack + * + * @param {Number} id The ID that was returned by `use` + * + * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise + */ + eject(id) { + if (this.handlers[id]) { + this.handlers[id] = null; + } + } + + /** + * Clear all interceptors from the stack + * + * @returns {void} + */ + clear() { + if (this.handlers) { + this.handlers = []; + } + } + + /** + * Iterate over all the registered interceptors + * + * This method is particularly useful for skipping over any + * interceptors that may have become `null` calling `eject`. + * + * @param {Function} fn The function to call for each interceptor + * + * @returns {void} + */ + forEach(fn) { + utils.forEach(this.handlers, function forEachHandler(h) { + if (h !== null) { + fn(h); + } + }); + } +} + +export default InterceptorManager; diff --git a/Scripts/node_modules/axios/lib/core/README.md b/Scripts/node_modules/axios/lib/core/README.md new file mode 100644 index 00000000..84559ce7 --- /dev/null +++ b/Scripts/node_modules/axios/lib/core/README.md @@ -0,0 +1,8 @@ +# axios // core + +The modules found in `core/` should be modules that are specific to the domain logic of axios. These modules would most likely not make sense to be consumed outside of the axios module, as their logic is too specific. Some examples of core modules are: + +- Dispatching requests + - Requests sent via `adapters/` (see lib/adapters/README.md) +- Managing interceptors +- Handling config diff --git a/Scripts/node_modules/axios/lib/core/buildFullPath.js b/Scripts/node_modules/axios/lib/core/buildFullPath.js new file mode 100644 index 00000000..b60927c0 --- /dev/null +++ b/Scripts/node_modules/axios/lib/core/buildFullPath.js @@ -0,0 +1,21 @@ +'use strict'; + +import isAbsoluteURL from '../helpers/isAbsoluteURL.js'; +import combineURLs from '../helpers/combineURLs.js'; + +/** + * Creates a new URL by combining the baseURL with the requestedURL, + * only when the requestedURL is not already an absolute URL. + * If the requestURL is absolute, this function returns the requestedURL untouched. + * + * @param {string} baseURL The base URL + * @param {string} requestedURL Absolute or relative URL to combine + * + * @returns {string} The combined full path + */ +export default function buildFullPath(baseURL, requestedURL) { + if (baseURL && !isAbsoluteURL(requestedURL)) { + return combineURLs(baseURL, requestedURL); + } + return requestedURL; +} diff --git a/Scripts/node_modules/axios/lib/core/dispatchRequest.js b/Scripts/node_modules/axios/lib/core/dispatchRequest.js new file mode 100644 index 00000000..9e306aac --- /dev/null +++ b/Scripts/node_modules/axios/lib/core/dispatchRequest.js @@ -0,0 +1,81 @@ +'use strict'; + +import transformData from './transformData.js'; +import isCancel from '../cancel/isCancel.js'; +import defaults from '../defaults/index.js'; +import CanceledError from '../cancel/CanceledError.js'; +import AxiosHeaders from '../core/AxiosHeaders.js'; +import adapters from "../adapters/adapters.js"; + +/** + * Throws a `CanceledError` if cancellation has been requested. + * + * @param {Object} config The config that is to be used for the request + * + * @returns {void} + */ +function throwIfCancellationRequested(config) { + if (config.cancelToken) { + config.cancelToken.throwIfRequested(); + } + + if (config.signal && config.signal.aborted) { + throw new CanceledError(null, config); + } +} + +/** + * Dispatch a request to the server using the configured adapter. + * + * @param {object} config The config that is to be used for the request + * + * @returns {Promise} The Promise to be fulfilled + */ +export default function dispatchRequest(config) { + throwIfCancellationRequested(config); + + config.headers = AxiosHeaders.from(config.headers); + + // Transform request data + config.data = transformData.call( + config, + config.transformRequest + ); + + if (['post', 'put', 'patch'].indexOf(config.method) !== -1) { + config.headers.setContentType('application/x-www-form-urlencoded', false); + } + + const adapter = adapters.getAdapter(config.adapter || defaults.adapter); + + return adapter(config).then(function onAdapterResolution(response) { + throwIfCancellationRequested(config); + + // Transform response data + response.data = transformData.call( + config, + config.transformResponse, + response + ); + + response.headers = AxiosHeaders.from(response.headers); + + return response; + }, function onAdapterRejection(reason) { + if (!isCancel(reason)) { + throwIfCancellationRequested(config); + + // Transform response data + if (reason && reason.response) { + reason.response.data = transformData.call( + config, + config.transformResponse, + reason.response + ); + reason.response.headers = AxiosHeaders.from(reason.response.headers); + } + } + + return Promise.reject(reason); + }); +} diff --git a/Scripts/node_modules/axios/lib/core/mergeConfig.js b/Scripts/node_modules/axios/lib/core/mergeConfig.js new file mode 100644 index 00000000..bbbf96d4 --- /dev/null +++ b/Scripts/node_modules/axios/lib/core/mergeConfig.js @@ -0,0 +1,106 @@ +'use strict'; + +import utils from '../utils.js'; +import AxiosHeaders from "./AxiosHeaders.js"; + +const headersToObject = (thing) => thing instanceof AxiosHeaders ? thing.toJSON() : thing; + +/** + * Config-specific merge-function which creates a new config-object + * by merging two configuration objects together. + * + * @param {Object} config1 + * @param {Object} config2 + * + * @returns {Object} New object resulting from merging config2 to config1 + */ +export default function mergeConfig(config1, config2) { + // eslint-disable-next-line no-param-reassign + config2 = config2 || {}; + const config = {}; + + function getMergedValue(target, source, caseless) { + if (utils.isPlainObject(target) && utils.isPlainObject(source)) { + return utils.merge.call({caseless}, target, source); + } else if (utils.isPlainObject(source)) { + return utils.merge({}, source); + } else if (utils.isArray(source)) { + return source.slice(); + } + return source; + } + + // eslint-disable-next-line consistent-return + function mergeDeepProperties(a, b, caseless) { + if (!utils.isUndefined(b)) { + return getMergedValue(a, b, caseless); + } else if (!utils.isUndefined(a)) { + return getMergedValue(undefined, a, caseless); + } + } + + // eslint-disable-next-line consistent-return + function valueFromConfig2(a, b) { + if (!utils.isUndefined(b)) { + return getMergedValue(undefined, b); + } + } + + // eslint-disable-next-line consistent-return + function defaultToConfig2(a, b) { + if (!utils.isUndefined(b)) { + return getMergedValue(undefined, b); + } else if (!utils.isUndefined(a)) { + return getMergedValue(undefined, a); + } + } + + // eslint-disable-next-line consistent-return + function mergeDirectKeys(a, b, prop) { + if (prop in config2) { + return getMergedValue(a, b); + } else if (prop in config1) { + return getMergedValue(undefined, a); + } + } + + const mergeMap = { + url: valueFromConfig2, + method: valueFromConfig2, + data: valueFromConfig2, + baseURL: defaultToConfig2, + transformRequest: defaultToConfig2, + transformResponse: defaultToConfig2, + paramsSerializer: defaultToConfig2, + timeout: defaultToConfig2, + timeoutMessage: defaultToConfig2, + withCredentials: defaultToConfig2, + withXSRFToken: defaultToConfig2, + adapter: defaultToConfig2, + responseType: defaultToConfig2, + xsrfCookieName: defaultToConfig2, + xsrfHeaderName: defaultToConfig2, + onUploadProgress: defaultToConfig2, + onDownloadProgress: defaultToConfig2, + decompress: defaultToConfig2, + maxContentLength: defaultToConfig2, + maxBodyLength: defaultToConfig2, + beforeRedirect: defaultToConfig2, + transport: defaultToConfig2, + httpAgent: defaultToConfig2, + httpsAgent: defaultToConfig2, + cancelToken: defaultToConfig2, + socketPath: defaultToConfig2, + responseEncoding: defaultToConfig2, + validateStatus: mergeDirectKeys, + headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true) + }; + + utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) { + const merge = mergeMap[prop] || mergeDeepProperties; + const configValue = merge(config1[prop], config2[prop], prop); + (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue); + }); + + return config; +} diff --git a/Scripts/node_modules/axios/lib/core/settle.js b/Scripts/node_modules/axios/lib/core/settle.js new file mode 100644 index 00000000..ac905c43 --- /dev/null +++ b/Scripts/node_modules/axios/lib/core/settle.js @@ -0,0 +1,27 @@ +'use strict'; + +import AxiosError from './AxiosError.js'; + +/** + * Resolve or reject a Promise based on response status. + * + * @param {Function} resolve A function that resolves the promise. + * @param {Function} reject A function that rejects the promise. + * @param {object} response The response. + * + * @returns {object} The response. + */ +export default function settle(resolve, reject, response) { + const validateStatus = response.config.validateStatus; + if (!response.status || !validateStatus || validateStatus(response.status)) { + resolve(response); + } else { + reject(new AxiosError( + 'Request failed with status code ' + response.status, + [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], + response.config, + response.request, + response + )); + } +} diff --git a/Scripts/node_modules/axios/lib/core/transformData.js b/Scripts/node_modules/axios/lib/core/transformData.js new file mode 100644 index 00000000..eeb5a8a1 --- /dev/null +++ b/Scripts/node_modules/axios/lib/core/transformData.js @@ -0,0 +1,28 @@ +'use strict'; + +import utils from './../utils.js'; +import defaults from '../defaults/index.js'; +import AxiosHeaders from '../core/AxiosHeaders.js'; + +/** + * Transform the data for a request or a response + * + * @param {Array|Function} fns A single function or Array of functions + * @param {?Object} response The response object + * + * @returns {*} The resulting transformed data + */ +export default function transformData(fns, response) { + const config = this || defaults; + const context = response || config; + const headers = AxiosHeaders.from(context.headers); + let data = context.data; + + utils.forEach(fns, function transform(fn) { + data = fn.call(config, data, headers.normalize(), response ? response.status : undefined); + }); + + headers.normalize(); + + return data; +} diff --git a/Scripts/node_modules/axios/lib/defaults/index.js b/Scripts/node_modules/axios/lib/defaults/index.js new file mode 100644 index 00000000..774893ae --- /dev/null +++ b/Scripts/node_modules/axios/lib/defaults/index.js @@ -0,0 +1,156 @@ +'use strict'; + +import utils from '../utils.js'; +import AxiosError from '../core/AxiosError.js'; +import transitionalDefaults from './transitional.js'; +import toFormData from '../helpers/toFormData.js'; +import toURLEncodedForm from '../helpers/toURLEncodedForm.js'; +import platform from '../platform/index.js'; +import formDataToJSON from '../helpers/formDataToJSON.js'; + +/** + * It takes a string, tries to parse it, and if it fails, it returns the stringified version + * of the input + * + * @param {any} rawValue - The value to be stringified. + * @param {Function} parser - A function that parses a string into a JavaScript object. + * @param {Function} encoder - A function that takes a value and returns a string. + * + * @returns {string} A stringified version of the rawValue. + */ +function stringifySafely(rawValue, parser, encoder) { + if (utils.isString(rawValue)) { + try { + (parser || JSON.parse)(rawValue); + return utils.trim(rawValue); + } catch (e) { + if (e.name !== 'SyntaxError') { + throw e; + } + } + } + + return (encoder || JSON.stringify)(rawValue); +} + +const defaults = { + + transitional: transitionalDefaults, + + adapter: ['xhr', 'http'], + + transformRequest: [function transformRequest(data, headers) { + const contentType = headers.getContentType() || ''; + const hasJSONContentType = contentType.indexOf('application/json') > -1; + const isObjectPayload = utils.isObject(data); + + if (isObjectPayload && utils.isHTMLForm(data)) { + data = new FormData(data); + } + + const isFormData = utils.isFormData(data); + + if (isFormData) { + return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data; + } + + if (utils.isArrayBuffer(data) || + utils.isBuffer(data) || + utils.isStream(data) || + utils.isFile(data) || + utils.isBlob(data) + ) { + return data; + } + if (utils.isArrayBufferView(data)) { + return data.buffer; + } + if (utils.isURLSearchParams(data)) { + headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false); + return data.toString(); + } + + let isFileList; + + if (isObjectPayload) { + if (contentType.indexOf('application/x-www-form-urlencoded') > -1) { + return toURLEncodedForm(data, this.formSerializer).toString(); + } + + if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) { + const _FormData = this.env && this.env.FormData; + + return toFormData( + isFileList ? {'files[]': data} : data, + _FormData && new _FormData(), + this.formSerializer + ); + } + } + + if (isObjectPayload || hasJSONContentType ) { + headers.setContentType('application/json', false); + return stringifySafely(data); + } + + return data; + }], + + transformResponse: [function transformResponse(data) { + const transitional = this.transitional || defaults.transitional; + const forcedJSONParsing = transitional && transitional.forcedJSONParsing; + const JSONRequested = this.responseType === 'json'; + + if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) { + const silentJSONParsing = transitional && transitional.silentJSONParsing; + const strictJSONParsing = !silentJSONParsing && JSONRequested; + + try { + return JSON.parse(data); + } catch (e) { + if (strictJSONParsing) { + if (e.name === 'SyntaxError') { + throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response); + } + throw e; + } + } + } + + return data; + }], + + /** + * A timeout in milliseconds to abort a request. If set to 0 (default) a + * timeout is not created. + */ + timeout: 0, + + xsrfCookieName: 'XSRF-TOKEN', + xsrfHeaderName: 'X-XSRF-TOKEN', + + maxContentLength: -1, + maxBodyLength: -1, + + env: { + FormData: platform.classes.FormData, + Blob: platform.classes.Blob + }, + + validateStatus: function validateStatus(status) { + return status >= 200 && status < 300; + }, + + headers: { + common: { + 'Accept': 'application/json, text/plain, */*', + 'Content-Type': undefined + } + } +}; + +utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => { + defaults.headers[method] = {}; +}); + +export default defaults; diff --git a/Scripts/node_modules/axios/lib/defaults/transitional.js b/Scripts/node_modules/axios/lib/defaults/transitional.js new file mode 100644 index 00000000..f8913319 --- /dev/null +++ b/Scripts/node_modules/axios/lib/defaults/transitional.js @@ -0,0 +1,7 @@ +'use strict'; + +export default { + silentJSONParsing: true, + forcedJSONParsing: true, + clarifyTimeoutError: false +}; diff --git a/Scripts/node_modules/axios/lib/env/README.md b/Scripts/node_modules/axios/lib/env/README.md new file mode 100644 index 00000000..b41baff3 --- /dev/null +++ b/Scripts/node_modules/axios/lib/env/README.md @@ -0,0 +1,3 @@ +# axios // env + +The `data.js` file is updated automatically when the package version is upgrading. Please do not edit it manually. diff --git a/Scripts/node_modules/axios/lib/env/classes/FormData.js b/Scripts/node_modules/axios/lib/env/classes/FormData.js new file mode 100644 index 00000000..862adb93 --- /dev/null +++ b/Scripts/node_modules/axios/lib/env/classes/FormData.js @@ -0,0 +1,2 @@ +import _FormData from 'form-data'; +export default typeof FormData !== 'undefined' ? FormData : _FormData; diff --git a/Scripts/node_modules/axios/lib/env/data.js b/Scripts/node_modules/axios/lib/env/data.js new file mode 100644 index 00000000..7f15ca69 --- /dev/null +++ b/Scripts/node_modules/axios/lib/env/data.js @@ -0,0 +1 @@ +export const VERSION = "1.6.7"; \ No newline at end of file diff --git a/Scripts/node_modules/axios/lib/helpers/AxiosTransformStream.js b/Scripts/node_modules/axios/lib/helpers/AxiosTransformStream.js new file mode 100644 index 00000000..8e8c6d42 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/AxiosTransformStream.js @@ -0,0 +1,191 @@ +'use strict'; + +import stream from 'stream'; +import utils from '../utils.js'; +import throttle from './throttle.js'; +import speedometer from './speedometer.js'; + +const kInternals = Symbol('internals'); + +class AxiosTransformStream extends stream.Transform{ + constructor(options) { + options = utils.toFlatObject(options, { + maxRate: 0, + chunkSize: 64 * 1024, + minChunkSize: 100, + timeWindow: 500, + ticksRate: 2, + samplesCount: 15 + }, null, (prop, source) => { + return !utils.isUndefined(source[prop]); + }); + + super({ + readableHighWaterMark: options.chunkSize + }); + + const self = this; + + const internals = this[kInternals] = { + length: options.length, + timeWindow: options.timeWindow, + ticksRate: options.ticksRate, + chunkSize: options.chunkSize, + maxRate: options.maxRate, + minChunkSize: options.minChunkSize, + bytesSeen: 0, + isCaptured: false, + notifiedBytesLoaded: 0, + ts: Date.now(), + bytes: 0, + onReadCallback: null + }; + + const _speedometer = speedometer(internals.ticksRate * options.samplesCount, internals.timeWindow); + + this.on('newListener', event => { + if (event === 'progress') { + if (!internals.isCaptured) { + internals.isCaptured = true; + } + } + }); + + let bytesNotified = 0; + + internals.updateProgress = throttle(function throttledHandler() { + const totalBytes = internals.length; + const bytesTransferred = internals.bytesSeen; + const progressBytes = bytesTransferred - bytesNotified; + if (!progressBytes || self.destroyed) return; + + const rate = _speedometer(progressBytes); + + bytesNotified = bytesTransferred; + + process.nextTick(() => { + self.emit('progress', { + 'loaded': bytesTransferred, + 'total': totalBytes, + 'progress': totalBytes ? (bytesTransferred / totalBytes) : undefined, + 'bytes': progressBytes, + 'rate': rate ? rate : undefined, + 'estimated': rate && totalBytes && bytesTransferred <= totalBytes ? + (totalBytes - bytesTransferred) / rate : undefined + }); + }); + }, internals.ticksRate); + + const onFinish = () => { + internals.updateProgress(true); + }; + + this.once('end', onFinish); + this.once('error', onFinish); + } + + _read(size) { + const internals = this[kInternals]; + + if (internals.onReadCallback) { + internals.onReadCallback(); + } + + return super._read(size); + } + + _transform(chunk, encoding, callback) { + const self = this; + const internals = this[kInternals]; + const maxRate = internals.maxRate; + + const readableHighWaterMark = this.readableHighWaterMark; + + const timeWindow = internals.timeWindow; + + const divider = 1000 / timeWindow; + const bytesThreshold = (maxRate / divider); + const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0; + + function pushChunk(_chunk, _callback) { + const bytes = Buffer.byteLength(_chunk); + internals.bytesSeen += bytes; + internals.bytes += bytes; + + if (internals.isCaptured) { + internals.updateProgress(); + } + + if (self.push(_chunk)) { + process.nextTick(_callback); + } else { + internals.onReadCallback = () => { + internals.onReadCallback = null; + process.nextTick(_callback); + }; + } + } + + const transformChunk = (_chunk, _callback) => { + const chunkSize = Buffer.byteLength(_chunk); + let chunkRemainder = null; + let maxChunkSize = readableHighWaterMark; + let bytesLeft; + let passed = 0; + + if (maxRate) { + const now = Date.now(); + + if (!internals.ts || (passed = (now - internals.ts)) >= timeWindow) { + internals.ts = now; + bytesLeft = bytesThreshold - internals.bytes; + internals.bytes = bytesLeft < 0 ? -bytesLeft : 0; + passed = 0; + } + + bytesLeft = bytesThreshold - internals.bytes; + } + + if (maxRate) { + if (bytesLeft <= 0) { + // next time window + return setTimeout(() => { + _callback(null, _chunk); + }, timeWindow - passed); + } + + if (bytesLeft < maxChunkSize) { + maxChunkSize = bytesLeft; + } + } + + if (maxChunkSize && chunkSize > maxChunkSize && (chunkSize - maxChunkSize) > minChunkSize) { + chunkRemainder = _chunk.subarray(maxChunkSize); + _chunk = _chunk.subarray(0, maxChunkSize); + } + + pushChunk(_chunk, chunkRemainder ? () => { + process.nextTick(_callback, null, chunkRemainder); + } : _callback); + }; + + transformChunk(chunk, function transformNextChunk(err, _chunk) { + if (err) { + return callback(err); + } + + if (_chunk) { + transformChunk(_chunk, transformNextChunk); + } else { + callback(null); + } + }); + } + + setLength(length) { + this[kInternals].length = +length; + return this; + } +} + +export default AxiosTransformStream; diff --git a/Scripts/node_modules/axios/lib/helpers/AxiosURLSearchParams.js b/Scripts/node_modules/axios/lib/helpers/AxiosURLSearchParams.js new file mode 100644 index 00000000..b9aa9f02 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/AxiosURLSearchParams.js @@ -0,0 +1,58 @@ +'use strict'; + +import toFormData from './toFormData.js'; + +/** + * It encodes a string by replacing all characters that are not in the unreserved set with + * their percent-encoded equivalents + * + * @param {string} str - The string to encode. + * + * @returns {string} The encoded string. + */ +function encode(str) { + const charMap = { + '!': '%21', + "'": '%27', + '(': '%28', + ')': '%29', + '~': '%7E', + '%20': '+', + '%00': '\x00' + }; + return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) { + return charMap[match]; + }); +} + +/** + * It takes a params object and converts it to a FormData object + * + * @param {Object} params - The parameters to be converted to a FormData object. + * @param {Object} options - The options object passed to the Axios constructor. + * + * @returns {void} + */ +function AxiosURLSearchParams(params, options) { + this._pairs = []; + + params && toFormData(params, this, options); +} + +const prototype = AxiosURLSearchParams.prototype; + +prototype.append = function append(name, value) { + this._pairs.push([name, value]); +}; + +prototype.toString = function toString(encoder) { + const _encode = encoder ? function(value) { + return encoder.call(this, value, encode); + } : encode; + + return this._pairs.map(function each(pair) { + return _encode(pair[0]) + '=' + _encode(pair[1]); + }, '').join('&'); +}; + +export default AxiosURLSearchParams; diff --git a/Scripts/node_modules/axios/lib/helpers/HttpStatusCode.js b/Scripts/node_modules/axios/lib/helpers/HttpStatusCode.js new file mode 100644 index 00000000..b3e7adca --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/HttpStatusCode.js @@ -0,0 +1,71 @@ +const HttpStatusCode = { + Continue: 100, + SwitchingProtocols: 101, + Processing: 102, + EarlyHints: 103, + Ok: 200, + Created: 201, + Accepted: 202, + NonAuthoritativeInformation: 203, + NoContent: 204, + ResetContent: 205, + PartialContent: 206, + MultiStatus: 207, + AlreadyReported: 208, + ImUsed: 226, + MultipleChoices: 300, + MovedPermanently: 301, + Found: 302, + SeeOther: 303, + NotModified: 304, + UseProxy: 305, + Unused: 306, + TemporaryRedirect: 307, + PermanentRedirect: 308, + BadRequest: 400, + Unauthorized: 401, + PaymentRequired: 402, + Forbidden: 403, + NotFound: 404, + MethodNotAllowed: 405, + NotAcceptable: 406, + ProxyAuthenticationRequired: 407, + RequestTimeout: 408, + Conflict: 409, + Gone: 410, + LengthRequired: 411, + PreconditionFailed: 412, + PayloadTooLarge: 413, + UriTooLong: 414, + UnsupportedMediaType: 415, + RangeNotSatisfiable: 416, + ExpectationFailed: 417, + ImATeapot: 418, + MisdirectedRequest: 421, + UnprocessableEntity: 422, + Locked: 423, + FailedDependency: 424, + TooEarly: 425, + UpgradeRequired: 426, + PreconditionRequired: 428, + TooManyRequests: 429, + RequestHeaderFieldsTooLarge: 431, + UnavailableForLegalReasons: 451, + InternalServerError: 500, + NotImplemented: 501, + BadGateway: 502, + ServiceUnavailable: 503, + GatewayTimeout: 504, + HttpVersionNotSupported: 505, + VariantAlsoNegotiates: 506, + InsufficientStorage: 507, + LoopDetected: 508, + NotExtended: 510, + NetworkAuthenticationRequired: 511, +}; + +Object.entries(HttpStatusCode).forEach(([key, value]) => { + HttpStatusCode[value] = key; +}); + +export default HttpStatusCode; diff --git a/Scripts/node_modules/axios/lib/helpers/README.md b/Scripts/node_modules/axios/lib/helpers/README.md new file mode 100644 index 00000000..4ae34193 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/README.md @@ -0,0 +1,7 @@ +# axios // helpers + +The modules found in `helpers/` should be generic modules that are _not_ specific to the domain logic of axios. These modules could theoretically be published to npm on their own and consumed by other modules or apps. Some examples of generic modules are things like: + +- Browser polyfills +- Managing cookies +- Parsing HTTP headers diff --git a/Scripts/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js b/Scripts/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js new file mode 100644 index 00000000..d1791f0b --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js @@ -0,0 +1,28 @@ +"use strict"; + +import stream from "stream"; + +class ZlibHeaderTransformStream extends stream.Transform { + __transform(chunk, encoding, callback) { + this.push(chunk); + callback(); + } + + _transform(chunk, encoding, callback) { + if (chunk.length !== 0) { + this._transform = this.__transform; + + // Add Default Compression headers if no zlib headers are present + if (chunk[0] !== 120) { // Hex: 78 + const header = Buffer.alloc(2); + header[0] = 120; // Hex: 78 + header[1] = 156; // Hex: 9C + this.push(header, encoding); + } + } + + this.__transform(chunk, encoding, callback); + } +} + +export default ZlibHeaderTransformStream; diff --git a/Scripts/node_modules/axios/lib/helpers/bind.js b/Scripts/node_modules/axios/lib/helpers/bind.js new file mode 100644 index 00000000..b3aa83b7 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/bind.js @@ -0,0 +1,7 @@ +'use strict'; + +export default function bind(fn, thisArg) { + return function wrap() { + return fn.apply(thisArg, arguments); + }; +} diff --git a/Scripts/node_modules/axios/lib/helpers/buildURL.js b/Scripts/node_modules/axios/lib/helpers/buildURL.js new file mode 100644 index 00000000..d769fdf4 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/buildURL.js @@ -0,0 +1,63 @@ +'use strict'; + +import utils from '../utils.js'; +import AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js'; + +/** + * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their + * URI encoded counterparts + * + * @param {string} val The value to be encoded. + * + * @returns {string} The encoded value. + */ +function encode(val) { + return encodeURIComponent(val). + replace(/%3A/gi, ':'). + replace(/%24/g, '$'). + replace(/%2C/gi, ','). + replace(/%20/g, '+'). + replace(/%5B/gi, '['). + replace(/%5D/gi, ']'); +} + +/** + * Build a URL by appending params to the end + * + * @param {string} url The base of the url (e.g., http://www.google.com) + * @param {object} [params] The params to be appended + * @param {?object} options + * + * @returns {string} The formatted url + */ +export default function buildURL(url, params, options) { + /*eslint no-param-reassign:0*/ + if (!params) { + return url; + } + + const _encode = options && options.encode || encode; + + const serializeFn = options && options.serialize; + + let serializedParams; + + if (serializeFn) { + serializedParams = serializeFn(params, options); + } else { + serializedParams = utils.isURLSearchParams(params) ? + params.toString() : + new AxiosURLSearchParams(params, options).toString(_encode); + } + + if (serializedParams) { + const hashmarkIndex = url.indexOf("#"); + + if (hashmarkIndex !== -1) { + url = url.slice(0, hashmarkIndex); + } + url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; + } + + return url; +} diff --git a/Scripts/node_modules/axios/lib/helpers/callbackify.js b/Scripts/node_modules/axios/lib/helpers/callbackify.js new file mode 100644 index 00000000..4603badc --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/callbackify.js @@ -0,0 +1,16 @@ +import utils from "../utils.js"; + +const callbackify = (fn, reducer) => { + return utils.isAsyncFn(fn) ? function (...args) { + const cb = args.pop(); + fn.apply(this, args).then((value) => { + try { + reducer ? cb(null, ...reducer(value)) : cb(null, value); + } catch (err) { + cb(err); + } + }, cb); + } : fn; +} + +export default callbackify; diff --git a/Scripts/node_modules/axios/lib/helpers/combineURLs.js b/Scripts/node_modules/axios/lib/helpers/combineURLs.js new file mode 100644 index 00000000..9f04f020 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/combineURLs.js @@ -0,0 +1,15 @@ +'use strict'; + +/** + * Creates a new URL by combining the specified URLs + * + * @param {string} baseURL The base URL + * @param {string} relativeURL The relative URL + * + * @returns {string} The combined URL + */ +export default function combineURLs(baseURL, relativeURL) { + return relativeURL + ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') + : baseURL; +} diff --git a/Scripts/node_modules/axios/lib/helpers/cookies.js b/Scripts/node_modules/axios/lib/helpers/cookies.js new file mode 100644 index 00000000..d039ac4f --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/cookies.js @@ -0,0 +1,42 @@ +import utils from './../utils.js'; +import platform from '../platform/index.js'; + +export default platform.hasStandardBrowserEnv ? + + // Standard browser envs support document.cookie + { + write(name, value, expires, path, domain, secure) { + const cookie = [name + '=' + encodeURIComponent(value)]; + + utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString()); + + utils.isString(path) && cookie.push('path=' + path); + + utils.isString(domain) && cookie.push('domain=' + domain); + + secure === true && cookie.push('secure'); + + document.cookie = cookie.join('; '); + }, + + read(name) { + const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); + return (match ? decodeURIComponent(match[3]) : null); + }, + + remove(name) { + this.write(name, '', Date.now() - 86400000); + } + } + + : + + // Non-standard browser env (web workers, react-native) lack needed support. + { + write() {}, + read() { + return null; + }, + remove() {} + }; + diff --git a/Scripts/node_modules/axios/lib/helpers/deprecatedMethod.js b/Scripts/node_modules/axios/lib/helpers/deprecatedMethod.js new file mode 100644 index 00000000..9e8fae6b --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/deprecatedMethod.js @@ -0,0 +1,26 @@ +'use strict'; + +/*eslint no-console:0*/ + +/** + * Supply a warning to the developer that a method they are using + * has been deprecated. + * + * @param {string} method The name of the deprecated method + * @param {string} [instead] The alternate method to use if applicable + * @param {string} [docs] The documentation URL to get further details + * + * @returns {void} + */ +export default function deprecatedMethod(method, instead, docs) { + try { + console.warn( + 'DEPRECATED method `' + method + '`.' + + (instead ? ' Use `' + instead + '` instead.' : '') + + ' This method will be removed in a future release.'); + + if (docs) { + console.warn('For more information about usage see ' + docs); + } + } catch (e) { /* Ignore */ } +} diff --git a/Scripts/node_modules/axios/lib/helpers/formDataToJSON.js b/Scripts/node_modules/axios/lib/helpers/formDataToJSON.js new file mode 100644 index 00000000..906ce602 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/formDataToJSON.js @@ -0,0 +1,95 @@ +'use strict'; + +import utils from '../utils.js'; + +/** + * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z'] + * + * @param {string} name - The name of the property to get. + * + * @returns An array of strings. + */ +function parsePropPath(name) { + // foo[x][y][z] + // foo.x.y.z + // foo-x-y-z + // foo x y z + return utils.matchAll(/\w+|\[(\w*)]/g, name).map(match => { + return match[0] === '[]' ? '' : match[1] || match[0]; + }); +} + +/** + * Convert an array to an object. + * + * @param {Array} arr - The array to convert to an object. + * + * @returns An object with the same keys and values as the array. + */ +function arrayToObject(arr) { + const obj = {}; + const keys = Object.keys(arr); + let i; + const len = keys.length; + let key; + for (i = 0; i < len; i++) { + key = keys[i]; + obj[key] = arr[key]; + } + return obj; +} + +/** + * It takes a FormData object and returns a JavaScript object + * + * @param {string} formData The FormData object to convert to JSON. + * + * @returns {Object | null} The converted object. + */ +function formDataToJSON(formData) { + function buildPath(path, value, target, index) { + let name = path[index++]; + + if (name === '__proto__') return true; + + const isNumericKey = Number.isFinite(+name); + const isLast = index >= path.length; + name = !name && utils.isArray(target) ? target.length : name; + + if (isLast) { + if (utils.hasOwnProp(target, name)) { + target[name] = [target[name], value]; + } else { + target[name] = value; + } + + return !isNumericKey; + } + + if (!target[name] || !utils.isObject(target[name])) { + target[name] = []; + } + + const result = buildPath(path, value, target[name], index); + + if (result && utils.isArray(target[name])) { + target[name] = arrayToObject(target[name]); + } + + return !isNumericKey; + } + + if (utils.isFormData(formData) && utils.isFunction(formData.entries)) { + const obj = {}; + + utils.forEachEntry(formData, (name, value) => { + buildPath(parsePropPath(name), value, obj, 0); + }); + + return obj; + } + + return null; +} + +export default formDataToJSON; diff --git a/Scripts/node_modules/axios/lib/helpers/formDataToStream.js b/Scripts/node_modules/axios/lib/helpers/formDataToStream.js new file mode 100644 index 00000000..9187e73e --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/formDataToStream.js @@ -0,0 +1,111 @@ +import {TextEncoder} from 'util'; +import {Readable} from 'stream'; +import utils from "../utils.js"; +import readBlob from "./readBlob.js"; + +const BOUNDARY_ALPHABET = utils.ALPHABET.ALPHA_DIGIT + '-_'; + +const textEncoder = new TextEncoder(); + +const CRLF = '\r\n'; +const CRLF_BYTES = textEncoder.encode(CRLF); +const CRLF_BYTES_COUNT = 2; + +class FormDataPart { + constructor(name, value) { + const {escapeName} = this.constructor; + const isStringValue = utils.isString(value); + + let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${ + !isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : '' + }${CRLF}`; + + if (isStringValue) { + value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF)); + } else { + headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}` + } + + this.headers = textEncoder.encode(headers + CRLF); + + this.contentLength = isStringValue ? value.byteLength : value.size; + + this.size = this.headers.byteLength + this.contentLength + CRLF_BYTES_COUNT; + + this.name = name; + this.value = value; + } + + async *encode(){ + yield this.headers; + + const {value} = this; + + if(utils.isTypedArray(value)) { + yield value; + } else { + yield* readBlob(value); + } + + yield CRLF_BYTES; + } + + static escapeName(name) { + return String(name).replace(/[\r\n"]/g, (match) => ({ + '\r' : '%0D', + '\n' : '%0A', + '"' : '%22', + }[match])); + } +} + +const formDataToStream = (form, headersHandler, options) => { + const { + tag = 'form-data-boundary', + size = 25, + boundary = tag + '-' + utils.generateString(size, BOUNDARY_ALPHABET) + } = options || {}; + + if(!utils.isFormData(form)) { + throw TypeError('FormData instance required'); + } + + if (boundary.length < 1 || boundary.length > 70) { + throw Error('boundary must be 10-70 characters long') + } + + const boundaryBytes = textEncoder.encode('--' + boundary + CRLF); + const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF + CRLF); + let contentLength = footerBytes.byteLength; + + const parts = Array.from(form.entries()).map(([name, value]) => { + const part = new FormDataPart(name, value); + contentLength += part.size; + return part; + }); + + contentLength += boundaryBytes.byteLength * parts.length; + + contentLength = utils.toFiniteNumber(contentLength); + + const computedHeaders = { + 'Content-Type': `multipart/form-data; boundary=${boundary}` + } + + if (Number.isFinite(contentLength)) { + computedHeaders['Content-Length'] = contentLength; + } + + headersHandler && headersHandler(computedHeaders); + + return Readable.from((async function *() { + for(const part of parts) { + yield boundaryBytes; + yield* part.encode(); + } + + yield footerBytes; + })()); +}; + +export default formDataToStream; diff --git a/Scripts/node_modules/axios/lib/helpers/fromDataURI.js b/Scripts/node_modules/axios/lib/helpers/fromDataURI.js new file mode 100644 index 00000000..eb71d3f3 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/fromDataURI.js @@ -0,0 +1,53 @@ +'use strict'; + +import AxiosError from '../core/AxiosError.js'; +import parseProtocol from './parseProtocol.js'; +import platform from '../platform/index.js'; + +const DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/; + +/** + * Parse data uri to a Buffer or Blob + * + * @param {String} uri + * @param {?Boolean} asBlob + * @param {?Object} options + * @param {?Function} options.Blob + * + * @returns {Buffer|Blob} + */ +export default function fromDataURI(uri, asBlob, options) { + const _Blob = options && options.Blob || platform.classes.Blob; + const protocol = parseProtocol(uri); + + if (asBlob === undefined && _Blob) { + asBlob = true; + } + + if (protocol === 'data') { + uri = protocol.length ? uri.slice(protocol.length + 1) : uri; + + const match = DATA_URL_PATTERN.exec(uri); + + if (!match) { + throw new AxiosError('Invalid URL', AxiosError.ERR_INVALID_URL); + } + + const mime = match[1]; + const isBase64 = match[2]; + const body = match[3]; + const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? 'base64' : 'utf8'); + + if (asBlob) { + if (!_Blob) { + throw new AxiosError('Blob is not supported', AxiosError.ERR_NOT_SUPPORT); + } + + return new _Blob([buffer], {type: mime}); + } + + return buffer; + } + + throw new AxiosError('Unsupported protocol ' + protocol, AxiosError.ERR_NOT_SUPPORT); +} diff --git a/Scripts/node_modules/axios/lib/helpers/isAbsoluteURL.js b/Scripts/node_modules/axios/lib/helpers/isAbsoluteURL.js new file mode 100644 index 00000000..4747a457 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/isAbsoluteURL.js @@ -0,0 +1,15 @@ +'use strict'; + +/** + * Determines whether the specified URL is absolute + * + * @param {string} url The URL to test + * + * @returns {boolean} True if the specified URL is absolute, otherwise false + */ +export default function isAbsoluteURL(url) { + // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). + // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed + // by any combination of letters, digits, plus, period, or hyphen. + return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); +} diff --git a/Scripts/node_modules/axios/lib/helpers/isAxiosError.js b/Scripts/node_modules/axios/lib/helpers/isAxiosError.js new file mode 100644 index 00000000..da6cd63f --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/isAxiosError.js @@ -0,0 +1,14 @@ +'use strict'; + +import utils from './../utils.js'; + +/** + * Determines whether the payload is an error thrown by Axios + * + * @param {*} payload The value to test + * + * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false + */ +export default function isAxiosError(payload) { + return utils.isObject(payload) && (payload.isAxiosError === true); +} diff --git a/Scripts/node_modules/axios/lib/helpers/isURLSameOrigin.js b/Scripts/node_modules/axios/lib/helpers/isURLSameOrigin.js new file mode 100644 index 00000000..a8678a4e --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/isURLSameOrigin.js @@ -0,0 +1,67 @@ +'use strict'; + +import utils from './../utils.js'; +import platform from '../platform/index.js'; + +export default platform.hasStandardBrowserEnv ? + +// Standard browser envs have full support of the APIs needed to test +// whether the request URL is of the same origin as current location. + (function standardBrowserEnv() { + const msie = /(msie|trident)/i.test(navigator.userAgent); + const urlParsingNode = document.createElement('a'); + let originURL; + + /** + * Parse a URL to discover its components + * + * @param {String} url The URL to be parsed + * @returns {Object} + */ + function resolveURL(url) { + let href = url; + + if (msie) { + // IE needs attribute set twice to normalize properties + urlParsingNode.setAttribute('href', href); + href = urlParsingNode.href; + } + + urlParsingNode.setAttribute('href', href); + + // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils + return { + href: urlParsingNode.href, + protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', + host: urlParsingNode.host, + search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', + hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', + hostname: urlParsingNode.hostname, + port: urlParsingNode.port, + pathname: (urlParsingNode.pathname.charAt(0) === '/') ? + urlParsingNode.pathname : + '/' + urlParsingNode.pathname + }; + } + + originURL = resolveURL(window.location.href); + + /** + * Determine if a URL shares the same origin as the current location + * + * @param {String} requestURL The URL to test + * @returns {boolean} True if URL shares the same origin, otherwise false + */ + return function isURLSameOrigin(requestURL) { + const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; + return (parsed.protocol === originURL.protocol && + parsed.host === originURL.host); + }; + })() : + + // Non standard browser envs (web workers, react-native) lack needed support. + (function nonStandardBrowserEnv() { + return function isURLSameOrigin() { + return true; + }; + })(); diff --git a/Scripts/node_modules/axios/lib/helpers/null.js b/Scripts/node_modules/axios/lib/helpers/null.js new file mode 100644 index 00000000..b9f82c46 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/null.js @@ -0,0 +1,2 @@ +// eslint-disable-next-line strict +export default null; diff --git a/Scripts/node_modules/axios/lib/helpers/parseHeaders.js b/Scripts/node_modules/axios/lib/helpers/parseHeaders.js new file mode 100644 index 00000000..50af9480 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/parseHeaders.js @@ -0,0 +1,55 @@ +'use strict'; + +import utils from './../utils.js'; + +// RawAxiosHeaders whose duplicates are ignored by node +// c.f. https://nodejs.org/api/http.html#http_message_headers +const ignoreDuplicateOf = utils.toObjectSet([ + 'age', 'authorization', 'content-length', 'content-type', 'etag', + 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', + 'last-modified', 'location', 'max-forwards', 'proxy-authorization', + 'referer', 'retry-after', 'user-agent' +]); + +/** + * Parse headers into an object + * + * ``` + * Date: Wed, 27 Aug 2014 08:58:49 GMT + * Content-Type: application/json + * Connection: keep-alive + * Transfer-Encoding: chunked + * ``` + * + * @param {String} rawHeaders Headers needing to be parsed + * + * @returns {Object} Headers parsed into an object + */ +export default rawHeaders => { + const parsed = {}; + let key; + let val; + let i; + + rawHeaders && rawHeaders.split('\n').forEach(function parser(line) { + i = line.indexOf(':'); + key = line.substring(0, i).trim().toLowerCase(); + val = line.substring(i + 1).trim(); + + if (!key || (parsed[key] && ignoreDuplicateOf[key])) { + return; + } + + if (key === 'set-cookie') { + if (parsed[key]) { + parsed[key].push(val); + } else { + parsed[key] = [val]; + } + } else { + parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; + } + }); + + return parsed; +}; diff --git a/Scripts/node_modules/axios/lib/helpers/parseProtocol.js b/Scripts/node_modules/axios/lib/helpers/parseProtocol.js new file mode 100644 index 00000000..586ec964 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/parseProtocol.js @@ -0,0 +1,6 @@ +'use strict'; + +export default function parseProtocol(url) { + const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); + return match && match[1] || ''; +} diff --git a/Scripts/node_modules/axios/lib/helpers/readBlob.js b/Scripts/node_modules/axios/lib/helpers/readBlob.js new file mode 100644 index 00000000..6de748e8 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/readBlob.js @@ -0,0 +1,15 @@ +const {asyncIterator} = Symbol; + +const readBlob = async function* (blob) { + if (blob.stream) { + yield* blob.stream() + } else if (blob.arrayBuffer) { + yield await blob.arrayBuffer() + } else if (blob[asyncIterator]) { + yield* blob[asyncIterator](); + } else { + yield blob; + } +} + +export default readBlob; diff --git a/Scripts/node_modules/axios/lib/helpers/speedometer.js b/Scripts/node_modules/axios/lib/helpers/speedometer.js new file mode 100644 index 00000000..3b3c6662 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/speedometer.js @@ -0,0 +1,55 @@ +'use strict'; + +/** + * Calculate data maxRate + * @param {Number} [samplesCount= 10] + * @param {Number} [min= 1000] + * @returns {Function} + */ +function speedometer(samplesCount, min) { + samplesCount = samplesCount || 10; + const bytes = new Array(samplesCount); + const timestamps = new Array(samplesCount); + let head = 0; + let tail = 0; + let firstSampleTS; + + min = min !== undefined ? min : 1000; + + return function push(chunkLength) { + const now = Date.now(); + + const startedAt = timestamps[tail]; + + if (!firstSampleTS) { + firstSampleTS = now; + } + + bytes[head] = chunkLength; + timestamps[head] = now; + + let i = tail; + let bytesCount = 0; + + while (i !== head) { + bytesCount += bytes[i++]; + i = i % samplesCount; + } + + head = (head + 1) % samplesCount; + + if (head === tail) { + tail = (tail + 1) % samplesCount; + } + + if (now - firstSampleTS < min) { + return; + } + + const passed = startedAt && now - startedAt; + + return passed ? Math.round(bytesCount * 1000 / passed) : undefined; + }; +} + +export default speedometer; diff --git a/Scripts/node_modules/axios/lib/helpers/spread.js b/Scripts/node_modules/axios/lib/helpers/spread.js new file mode 100644 index 00000000..13479cb2 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/spread.js @@ -0,0 +1,28 @@ +'use strict'; + +/** + * Syntactic sugar for invoking a function and expanding an array for arguments. + * + * Common use case would be to use `Function.prototype.apply`. + * + * ```js + * function f(x, y, z) {} + * var args = [1, 2, 3]; + * f.apply(null, args); + * ``` + * + * With `spread` this example can be re-written. + * + * ```js + * spread(function(x, y, z) {})([1, 2, 3]); + * ``` + * + * @param {Function} callback + * + * @returns {Function} + */ +export default function spread(callback) { + return function wrap(arr) { + return callback.apply(null, arr); + }; +} diff --git a/Scripts/node_modules/axios/lib/helpers/throttle.js b/Scripts/node_modules/axios/lib/helpers/throttle.js new file mode 100644 index 00000000..6969df1a --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/throttle.js @@ -0,0 +1,33 @@ +'use strict'; + +/** + * Throttle decorator + * @param {Function} fn + * @param {Number} freq + * @return {Function} + */ +function throttle(fn, freq) { + let timestamp = 0; + const threshold = 1000 / freq; + let timer = null; + return function throttled(force, args) { + const now = Date.now(); + if (force || now - timestamp > threshold) { + if (timer) { + clearTimeout(timer); + timer = null; + } + timestamp = now; + return fn.apply(null, args); + } + if (!timer) { + timer = setTimeout(() => { + timer = null; + timestamp = Date.now(); + return fn.apply(null, args); + }, threshold - (now - timestamp)); + } + }; +} + +export default throttle; diff --git a/Scripts/node_modules/axios/lib/helpers/toFormData.js b/Scripts/node_modules/axios/lib/helpers/toFormData.js new file mode 100644 index 00000000..a41e966c --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/toFormData.js @@ -0,0 +1,219 @@ +'use strict'; + +import utils from '../utils.js'; +import AxiosError from '../core/AxiosError.js'; +// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored +import PlatformFormData from '../platform/node/classes/FormData.js'; + +/** + * Determines if the given thing is a array or js object. + * + * @param {string} thing - The object or array to be visited. + * + * @returns {boolean} + */ +function isVisitable(thing) { + return utils.isPlainObject(thing) || utils.isArray(thing); +} + +/** + * It removes the brackets from the end of a string + * + * @param {string} key - The key of the parameter. + * + * @returns {string} the key without the brackets. + */ +function removeBrackets(key) { + return utils.endsWith(key, '[]') ? key.slice(0, -2) : key; +} + +/** + * It takes a path, a key, and a boolean, and returns a string + * + * @param {string} path - The path to the current key. + * @param {string} key - The key of the current object being iterated over. + * @param {string} dots - If true, the key will be rendered with dots instead of brackets. + * + * @returns {string} The path to the current key. + */ +function renderKey(path, key, dots) { + if (!path) return key; + return path.concat(key).map(function each(token, i) { + // eslint-disable-next-line no-param-reassign + token = removeBrackets(token); + return !dots && i ? '[' + token + ']' : token; + }).join(dots ? '.' : ''); +} + +/** + * If the array is an array and none of its elements are visitable, then it's a flat array. + * + * @param {Array} arr - The array to check + * + * @returns {boolean} + */ +function isFlatArray(arr) { + return utils.isArray(arr) && !arr.some(isVisitable); +} + +const predicates = utils.toFlatObject(utils, {}, null, function filter(prop) { + return /^is[A-Z]/.test(prop); +}); + +/** + * Convert a data object to FormData + * + * @param {Object} obj + * @param {?Object} [formData] + * @param {?Object} [options] + * @param {Function} [options.visitor] + * @param {Boolean} [options.metaTokens = true] + * @param {Boolean} [options.dots = false] + * @param {?Boolean} [options.indexes = false] + * + * @returns {Object} + **/ + +/** + * It converts an object into a FormData object + * + * @param {Object} obj - The object to convert to form data. + * @param {string} formData - The FormData object to append to. + * @param {Object} options + * + * @returns + */ +function toFormData(obj, formData, options) { + if (!utils.isObject(obj)) { + throw new TypeError('target must be an object'); + } + + // eslint-disable-next-line no-param-reassign + formData = formData || new (PlatformFormData || FormData)(); + + // eslint-disable-next-line no-param-reassign + options = utils.toFlatObject(options, { + metaTokens: true, + dots: false, + indexes: false + }, false, function defined(option, source) { + // eslint-disable-next-line no-eq-null,eqeqeq + return !utils.isUndefined(source[option]); + }); + + const metaTokens = options.metaTokens; + // eslint-disable-next-line no-use-before-define + const visitor = options.visitor || defaultVisitor; + const dots = options.dots; + const indexes = options.indexes; + const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob; + const useBlob = _Blob && utils.isSpecCompliantForm(formData); + + if (!utils.isFunction(visitor)) { + throw new TypeError('visitor must be a function'); + } + + function convertValue(value) { + if (value === null) return ''; + + if (utils.isDate(value)) { + return value.toISOString(); + } + + if (!useBlob && utils.isBlob(value)) { + throw new AxiosError('Blob is not supported. Use a Buffer instead.'); + } + + if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) { + return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value); + } + + return value; + } + + /** + * Default visitor. + * + * @param {*} value + * @param {String|Number} key + * @param {Array} path + * @this {FormData} + * + * @returns {boolean} return true to visit the each prop of the value recursively + */ + function defaultVisitor(value, key, path) { + let arr = value; + + if (value && !path && typeof value === 'object') { + if (utils.endsWith(key, '{}')) { + // eslint-disable-next-line no-param-reassign + key = metaTokens ? key : key.slice(0, -2); + // eslint-disable-next-line no-param-reassign + value = JSON.stringify(value); + } else if ( + (utils.isArray(value) && isFlatArray(value)) || + ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value)) + )) { + // eslint-disable-next-line no-param-reassign + key = removeBrackets(key); + + arr.forEach(function each(el, index) { + !(utils.isUndefined(el) || el === null) && formData.append( + // eslint-disable-next-line no-nested-ternary + indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'), + convertValue(el) + ); + }); + return false; + } + } + + if (isVisitable(value)) { + return true; + } + + formData.append(renderKey(path, key, dots), convertValue(value)); + + return false; + } + + const stack = []; + + const exposedHelpers = Object.assign(predicates, { + defaultVisitor, + convertValue, + isVisitable + }); + + function build(value, path) { + if (utils.isUndefined(value)) return; + + if (stack.indexOf(value) !== -1) { + throw Error('Circular reference detected in ' + path.join('.')); + } + + stack.push(value); + + utils.forEach(value, function each(el, key) { + const result = !(utils.isUndefined(el) || el === null) && visitor.call( + formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers + ); + + if (result === true) { + build(el, path ? path.concat(key) : [key]); + } + }); + + stack.pop(); + } + + if (!utils.isObject(obj)) { + throw new TypeError('data must be an object'); + } + + build(obj); + + return formData; +} + +export default toFormData; diff --git a/Scripts/node_modules/axios/lib/helpers/toURLEncodedForm.js b/Scripts/node_modules/axios/lib/helpers/toURLEncodedForm.js new file mode 100644 index 00000000..988a38a1 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/toURLEncodedForm.js @@ -0,0 +1,18 @@ +'use strict'; + +import utils from '../utils.js'; +import toFormData from './toFormData.js'; +import platform from '../platform/index.js'; + +export default function toURLEncodedForm(data, options) { + return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({ + visitor: function(value, key, path, helpers) { + if (platform.isNode && utils.isBuffer(value)) { + this.append(key, value.toString('base64')); + return false; + } + + return helpers.defaultVisitor.apply(this, arguments); + } + }, options)); +} diff --git a/Scripts/node_modules/axios/lib/helpers/validator.js b/Scripts/node_modules/axios/lib/helpers/validator.js new file mode 100644 index 00000000..14b46960 --- /dev/null +++ b/Scripts/node_modules/axios/lib/helpers/validator.js @@ -0,0 +1,91 @@ +'use strict'; + +import {VERSION} from '../env/data.js'; +import AxiosError from '../core/AxiosError.js'; + +const validators = {}; + +// eslint-disable-next-line func-names +['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => { + validators[type] = function validator(thing) { + return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; + }; +}); + +const deprecatedWarnings = {}; + +/** + * Transitional option validator + * + * @param {function|boolean?} validator - set to false if the transitional option has been removed + * @param {string?} version - deprecated version / removed since version + * @param {string?} message - some message with additional info + * + * @returns {function} + */ +validators.transitional = function transitional(validator, version, message) { + function formatMessage(opt, desc) { + return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); + } + + // eslint-disable-next-line func-names + return (value, opt, opts) => { + if (validator === false) { + throw new AxiosError( + formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), + AxiosError.ERR_DEPRECATED + ); + } + + if (version && !deprecatedWarnings[opt]) { + deprecatedWarnings[opt] = true; + // eslint-disable-next-line no-console + console.warn( + formatMessage( + opt, + ' has been deprecated since v' + version + ' and will be removed in the near future' + ) + ); + } + + return validator ? validator(value, opt, opts) : true; + }; +}; + +/** + * Assert object's properties type + * + * @param {object} options + * @param {object} schema + * @param {boolean?} allowUnknown + * + * @returns {object} + */ + +function assertOptions(options, schema, allowUnknown) { + if (typeof options !== 'object') { + throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE); + } + const keys = Object.keys(options); + let i = keys.length; + while (i-- > 0) { + const opt = keys[i]; + const validator = schema[opt]; + if (validator) { + const value = options[opt]; + const result = value === undefined || validator(value, opt, options); + if (result !== true) { + throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE); + } + continue; + } + if (allowUnknown !== true) { + throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION); + } + } +} + +export default { + assertOptions, + validators +}; diff --git a/Scripts/node_modules/axios/lib/platform/browser/classes/Blob.js b/Scripts/node_modules/axios/lib/platform/browser/classes/Blob.js new file mode 100644 index 00000000..6c506c48 --- /dev/null +++ b/Scripts/node_modules/axios/lib/platform/browser/classes/Blob.js @@ -0,0 +1,3 @@ +'use strict' + +export default typeof Blob !== 'undefined' ? Blob : null diff --git a/Scripts/node_modules/axios/lib/platform/browser/classes/FormData.js b/Scripts/node_modules/axios/lib/platform/browser/classes/FormData.js new file mode 100644 index 00000000..f36d31b2 --- /dev/null +++ b/Scripts/node_modules/axios/lib/platform/browser/classes/FormData.js @@ -0,0 +1,3 @@ +'use strict'; + +export default typeof FormData !== 'undefined' ? FormData : null; diff --git a/Scripts/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js b/Scripts/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js new file mode 100644 index 00000000..b7dae953 --- /dev/null +++ b/Scripts/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js @@ -0,0 +1,4 @@ +'use strict'; + +import AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js'; +export default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams; diff --git a/Scripts/node_modules/axios/lib/platform/browser/index.js b/Scripts/node_modules/axios/lib/platform/browser/index.js new file mode 100644 index 00000000..08c206f3 --- /dev/null +++ b/Scripts/node_modules/axios/lib/platform/browser/index.js @@ -0,0 +1,13 @@ +import URLSearchParams from './classes/URLSearchParams.js' +import FormData from './classes/FormData.js' +import Blob from './classes/Blob.js' + +export default { + isBrowser: true, + classes: { + URLSearchParams, + FormData, + Blob + }, + protocols: ['http', 'https', 'file', 'blob', 'url', 'data'] +}; diff --git a/Scripts/node_modules/axios/lib/platform/common/utils.js b/Scripts/node_modules/axios/lib/platform/common/utils.js new file mode 100644 index 00000000..56fe79ab --- /dev/null +++ b/Scripts/node_modules/axios/lib/platform/common/utils.js @@ -0,0 +1,47 @@ +const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined'; + +/** + * Determine if we're running in a standard browser environment + * + * This allows axios to run in a web worker, and react-native. + * Both environments support XMLHttpRequest, but not fully standard globals. + * + * web workers: + * typeof window -> undefined + * typeof document -> undefined + * + * react-native: + * navigator.product -> 'ReactNative' + * nativescript + * navigator.product -> 'NativeScript' or 'NS' + * + * @returns {boolean} + */ +const hasStandardBrowserEnv = ( + (product) => { + return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0 + })(typeof navigator !== 'undefined' && navigator.product); + +/** + * Determine if we're running in a standard browser webWorker environment + * + * Although the `isStandardBrowserEnv` method indicates that + * `allows axios to run in a web worker`, the WebWorker will still be + * filtered out due to its judgment standard + * `typeof window !== 'undefined' && typeof document !== 'undefined'`. + * This leads to a problem when axios post `FormData` in webWorker + */ +const hasStandardBrowserWebWorkerEnv = (() => { + return ( + typeof WorkerGlobalScope !== 'undefined' && + // eslint-disable-next-line no-undef + self instanceof WorkerGlobalScope && + typeof self.importScripts === 'function' + ); +})(); + +export { + hasBrowserEnv, + hasStandardBrowserWebWorkerEnv, + hasStandardBrowserEnv +} diff --git a/Scripts/node_modules/axios/lib/platform/index.js b/Scripts/node_modules/axios/lib/platform/index.js new file mode 100644 index 00000000..860ba21a --- /dev/null +++ b/Scripts/node_modules/axios/lib/platform/index.js @@ -0,0 +1,7 @@ +import platform from './node/index.js'; +import * as utils from './common/utils.js'; + +export default { + ...utils, + ...platform +} diff --git a/Scripts/node_modules/axios/lib/platform/node/classes/FormData.js b/Scripts/node_modules/axios/lib/platform/node/classes/FormData.js new file mode 100644 index 00000000..b07f9476 --- /dev/null +++ b/Scripts/node_modules/axios/lib/platform/node/classes/FormData.js @@ -0,0 +1,3 @@ +import FormData from 'form-data'; + +export default FormData; diff --git a/Scripts/node_modules/axios/lib/platform/node/classes/URLSearchParams.js b/Scripts/node_modules/axios/lib/platform/node/classes/URLSearchParams.js new file mode 100644 index 00000000..fba58428 --- /dev/null +++ b/Scripts/node_modules/axios/lib/platform/node/classes/URLSearchParams.js @@ -0,0 +1,4 @@ +'use strict'; + +import url from 'url'; +export default url.URLSearchParams; diff --git a/Scripts/node_modules/axios/lib/platform/node/index.js b/Scripts/node_modules/axios/lib/platform/node/index.js new file mode 100644 index 00000000..aef514aa --- /dev/null +++ b/Scripts/node_modules/axios/lib/platform/node/index.js @@ -0,0 +1,12 @@ +import URLSearchParams from './classes/URLSearchParams.js' +import FormData from './classes/FormData.js' + +export default { + isNode: true, + classes: { + URLSearchParams, + FormData, + Blob: typeof Blob !== 'undefined' && Blob || null + }, + protocols: [ 'http', 'https', 'file', 'data' ] +}; diff --git a/Scripts/node_modules/axios/lib/utils.js b/Scripts/node_modules/axios/lib/utils.js new file mode 100644 index 00000000..a386b77f --- /dev/null +++ b/Scripts/node_modules/axios/lib/utils.js @@ -0,0 +1,723 @@ +'use strict'; + +import bind from './helpers/bind.js'; + +// utils is a library of generic helper functions non-specific to axios + +const {toString} = Object.prototype; +const {getPrototypeOf} = Object; + +const kindOf = (cache => thing => { + const str = toString.call(thing); + return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); +})(Object.create(null)); + +const kindOfTest = (type) => { + type = type.toLowerCase(); + return (thing) => kindOf(thing) === type +} + +const typeOfTest = type => thing => typeof thing === type; + +/** + * Determine if a value is an Array + * + * @param {Object} val The value to test + * + * @returns {boolean} True if value is an Array, otherwise false + */ +const {isArray} = Array; + +/** + * Determine if a value is undefined + * + * @param {*} val The value to test + * + * @returns {boolean} True if the value is undefined, otherwise false + */ +const isUndefined = typeOfTest('undefined'); + +/** + * Determine if a value is a Buffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Buffer, otherwise false + */ +function isBuffer(val) { + return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) + && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); +} + +/** + * Determine if a value is an ArrayBuffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is an ArrayBuffer, otherwise false + */ +const isArrayBuffer = kindOfTest('ArrayBuffer'); + + +/** + * Determine if a value is a view on an ArrayBuffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false + */ +function isArrayBufferView(val) { + let result; + if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { + result = ArrayBuffer.isView(val); + } else { + result = (val) && (val.buffer) && (isArrayBuffer(val.buffer)); + } + return result; +} + +/** + * Determine if a value is a String + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a String, otherwise false + */ +const isString = typeOfTest('string'); + +/** + * Determine if a value is a Function + * + * @param {*} val The value to test + * @returns {boolean} True if value is a Function, otherwise false + */ +const isFunction = typeOfTest('function'); + +/** + * Determine if a value is a Number + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Number, otherwise false + */ +const isNumber = typeOfTest('number'); + +/** + * Determine if a value is an Object + * + * @param {*} thing The value to test + * + * @returns {boolean} True if value is an Object, otherwise false + */ +const isObject = (thing) => thing !== null && typeof thing === 'object'; + +/** + * Determine if a value is a Boolean + * + * @param {*} thing The value to test + * @returns {boolean} True if value is a Boolean, otherwise false + */ +const isBoolean = thing => thing === true || thing === false; + +/** + * Determine if a value is a plain Object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a plain Object, otherwise false + */ +const isPlainObject = (val) => { + if (kindOf(val) !== 'object') { + return false; + } + + const prototype = getPrototypeOf(val); + return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); +} + +/** + * Determine if a value is a Date + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Date, otherwise false + */ +const isDate = kindOfTest('Date'); + +/** + * Determine if a value is a File + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a File, otherwise false + */ +const isFile = kindOfTest('File'); + +/** + * Determine if a value is a Blob + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Blob, otherwise false + */ +const isBlob = kindOfTest('Blob'); + +/** + * Determine if a value is a FileList + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a File, otherwise false + */ +const isFileList = kindOfTest('FileList'); + +/** + * Determine if a value is a Stream + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Stream, otherwise false + */ +const isStream = (val) => isObject(val) && isFunction(val.pipe); + +/** + * Determine if a value is a FormData + * + * @param {*} thing The value to test + * + * @returns {boolean} True if value is an FormData, otherwise false + */ +const isFormData = (thing) => { + let kind; + return thing && ( + (typeof FormData === 'function' && thing instanceof FormData) || ( + isFunction(thing.append) && ( + (kind = kindOf(thing)) === 'formdata' || + // detect form-data instance + (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]') + ) + ) + ) +} + +/** + * Determine if a value is a URLSearchParams object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a URLSearchParams object, otherwise false + */ +const isURLSearchParams = kindOfTest('URLSearchParams'); + +/** + * Trim excess whitespace off the beginning and end of a string + * + * @param {String} str The String to trim + * + * @returns {String} The String freed of excess whitespace + */ +const trim = (str) => str.trim ? + str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); + +/** + * Iterate over an Array or an Object invoking a function for each item. + * + * If `obj` is an Array callback will be called passing + * the value, index, and complete array for each item. + * + * If 'obj' is an Object callback will be called passing + * the value, key, and complete object for each property. + * + * @param {Object|Array} obj The object to iterate + * @param {Function} fn The callback to invoke for each item + * + * @param {Boolean} [allOwnKeys = false] + * @returns {any} + */ +function forEach(obj, fn, {allOwnKeys = false} = {}) { + // Don't bother if no value provided + if (obj === null || typeof obj === 'undefined') { + return; + } + + let i; + let l; + + // Force an array if not already something iterable + if (typeof obj !== 'object') { + /*eslint no-param-reassign:0*/ + obj = [obj]; + } + + if (isArray(obj)) { + // Iterate over array values + for (i = 0, l = obj.length; i < l; i++) { + fn.call(null, obj[i], i, obj); + } + } else { + // Iterate over object keys + const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); + const len = keys.length; + let key; + + for (i = 0; i < len; i++) { + key = keys[i]; + fn.call(null, obj[key], key, obj); + } + } +} + +function findKey(obj, key) { + key = key.toLowerCase(); + const keys = Object.keys(obj); + let i = keys.length; + let _key; + while (i-- > 0) { + _key = keys[i]; + if (key === _key.toLowerCase()) { + return _key; + } + } + return null; +} + +const _global = (() => { + /*eslint no-undef:0*/ + if (typeof globalThis !== "undefined") return globalThis; + return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global) +})(); + +const isContextDefined = (context) => !isUndefined(context) && context !== _global; + +/** + * Accepts varargs expecting each argument to be an object, then + * immutably merges the properties of each object and returns result. + * + * When multiple objects contain the same key the later object in + * the arguments list will take precedence. + * + * Example: + * + * ```js + * var result = merge({foo: 123}, {foo: 456}); + * console.log(result.foo); // outputs 456 + * ``` + * + * @param {Object} obj1 Object to merge + * + * @returns {Object} Result of all merge properties + */ +function merge(/* obj1, obj2, obj3, ... */) { + const {caseless} = isContextDefined(this) && this || {}; + const result = {}; + const assignValue = (val, key) => { + const targetKey = caseless && findKey(result, key) || key; + if (isPlainObject(result[targetKey]) && isPlainObject(val)) { + result[targetKey] = merge(result[targetKey], val); + } else if (isPlainObject(val)) { + result[targetKey] = merge({}, val); + } else if (isArray(val)) { + result[targetKey] = val.slice(); + } else { + result[targetKey] = val; + } + } + + for (let i = 0, l = arguments.length; i < l; i++) { + arguments[i] && forEach(arguments[i], assignValue); + } + return result; +} + +/** + * Extends object a by mutably adding to it the properties of object b. + * + * @param {Object} a The object to be extended + * @param {Object} b The object to copy properties from + * @param {Object} thisArg The object to bind function to + * + * @param {Boolean} [allOwnKeys] + * @returns {Object} The resulting value of object a + */ +const extend = (a, b, thisArg, {allOwnKeys}= {}) => { + forEach(b, (val, key) => { + if (thisArg && isFunction(val)) { + a[key] = bind(val, thisArg); + } else { + a[key] = val; + } + }, {allOwnKeys}); + return a; +} + +/** + * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) + * + * @param {string} content with BOM + * + * @returns {string} content value without BOM + */ +const stripBOM = (content) => { + if (content.charCodeAt(0) === 0xFEFF) { + content = content.slice(1); + } + return content; +} + +/** + * Inherit the prototype methods from one constructor into another + * @param {function} constructor + * @param {function} superConstructor + * @param {object} [props] + * @param {object} [descriptors] + * + * @returns {void} + */ +const inherits = (constructor, superConstructor, props, descriptors) => { + constructor.prototype = Object.create(superConstructor.prototype, descriptors); + constructor.prototype.constructor = constructor; + Object.defineProperty(constructor, 'super', { + value: superConstructor.prototype + }); + props && Object.assign(constructor.prototype, props); +} + +/** + * Resolve object with deep prototype chain to a flat object + * @param {Object} sourceObj source object + * @param {Object} [destObj] + * @param {Function|Boolean} [filter] + * @param {Function} [propFilter] + * + * @returns {Object} + */ +const toFlatObject = (sourceObj, destObj, filter, propFilter) => { + let props; + let i; + let prop; + const merged = {}; + + destObj = destObj || {}; + // eslint-disable-next-line no-eq-null,eqeqeq + if (sourceObj == null) return destObj; + + do { + props = Object.getOwnPropertyNames(sourceObj); + i = props.length; + while (i-- > 0) { + prop = props[i]; + if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { + destObj[prop] = sourceObj[prop]; + merged[prop] = true; + } + } + sourceObj = filter !== false && getPrototypeOf(sourceObj); + } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); + + return destObj; +} + +/** + * Determines whether a string ends with the characters of a specified string + * + * @param {String} str + * @param {String} searchString + * @param {Number} [position= 0] + * + * @returns {boolean} + */ +const endsWith = (str, searchString, position) => { + str = String(str); + if (position === undefined || position > str.length) { + position = str.length; + } + position -= searchString.length; + const lastIndex = str.indexOf(searchString, position); + return lastIndex !== -1 && lastIndex === position; +} + + +/** + * Returns new array from array like object or null if failed + * + * @param {*} [thing] + * + * @returns {?Array} + */ +const toArray = (thing) => { + if (!thing) return null; + if (isArray(thing)) return thing; + let i = thing.length; + if (!isNumber(i)) return null; + const arr = new Array(i); + while (i-- > 0) { + arr[i] = thing[i]; + } + return arr; +} + +/** + * Checking if the Uint8Array exists and if it does, it returns a function that checks if the + * thing passed in is an instance of Uint8Array + * + * @param {TypedArray} + * + * @returns {Array} + */ +// eslint-disable-next-line func-names +const isTypedArray = (TypedArray => { + // eslint-disable-next-line func-names + return thing => { + return TypedArray && thing instanceof TypedArray; + }; +})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array)); + +/** + * For each entry in the object, call the function with the key and value. + * + * @param {Object} obj - The object to iterate over. + * @param {Function} fn - The function to call for each entry. + * + * @returns {void} + */ +const forEachEntry = (obj, fn) => { + const generator = obj && obj[Symbol.iterator]; + + const iterator = generator.call(obj); + + let result; + + while ((result = iterator.next()) && !result.done) { + const pair = result.value; + fn.call(obj, pair[0], pair[1]); + } +} + +/** + * It takes a regular expression and a string, and returns an array of all the matches + * + * @param {string} regExp - The regular expression to match against. + * @param {string} str - The string to search. + * + * @returns {Array} + */ +const matchAll = (regExp, str) => { + let matches; + const arr = []; + + while ((matches = regExp.exec(str)) !== null) { + arr.push(matches); + } + + return arr; +} + +/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */ +const isHTMLForm = kindOfTest('HTMLFormElement'); + +const toCamelCase = str => { + return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, + function replacer(m, p1, p2) { + return p1.toUpperCase() + p2; + } + ); +}; + +/* Creating a function that will check if an object has a property. */ +const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype); + +/** + * Determine if a value is a RegExp object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a RegExp object, otherwise false + */ +const isRegExp = kindOfTest('RegExp'); + +const reduceDescriptors = (obj, reducer) => { + const descriptors = Object.getOwnPropertyDescriptors(obj); + const reducedDescriptors = {}; + + forEach(descriptors, (descriptor, name) => { + let ret; + if ((ret = reducer(descriptor, name, obj)) !== false) { + reducedDescriptors[name] = ret || descriptor; + } + }); + + Object.defineProperties(obj, reducedDescriptors); +} + +/** + * Makes all methods read-only + * @param {Object} obj + */ + +const freezeMethods = (obj) => { + reduceDescriptors(obj, (descriptor, name) => { + // skip restricted props in strict mode + if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) { + return false; + } + + const value = obj[name]; + + if (!isFunction(value)) return; + + descriptor.enumerable = false; + + if ('writable' in descriptor) { + descriptor.writable = false; + return; + } + + if (!descriptor.set) { + descriptor.set = () => { + throw Error('Can not rewrite read-only method \'' + name + '\''); + }; + } + }); +} + +const toObjectSet = (arrayOrString, delimiter) => { + const obj = {}; + + const define = (arr) => { + arr.forEach(value => { + obj[value] = true; + }); + } + + isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); + + return obj; +} + +const noop = () => {} + +const toFiniteNumber = (value, defaultValue) => { + value = +value; + return Number.isFinite(value) ? value : defaultValue; +} + +const ALPHA = 'abcdefghijklmnopqrstuvwxyz' + +const DIGIT = '0123456789'; + +const ALPHABET = { + DIGIT, + ALPHA, + ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT +} + +const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => { + let str = ''; + const {length} = alphabet; + while (size--) { + str += alphabet[Math.random() * length|0] + } + + return str; +} + +/** + * If the thing is a FormData object, return true, otherwise return false. + * + * @param {unknown} thing - The thing to check. + * + * @returns {boolean} + */ +function isSpecCompliantForm(thing) { + return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]); +} + +const toJSONObject = (obj) => { + const stack = new Array(10); + + const visit = (source, i) => { + + if (isObject(source)) { + if (stack.indexOf(source) >= 0) { + return; + } + + if(!('toJSON' in source)) { + stack[i] = source; + const target = isArray(source) ? [] : {}; + + forEach(source, (value, key) => { + const reducedValue = visit(value, i + 1); + !isUndefined(reducedValue) && (target[key] = reducedValue); + }); + + stack[i] = undefined; + + return target; + } + } + + return source; + } + + return visit(obj, 0); +} + +const isAsyncFn = kindOfTest('AsyncFunction'); + +const isThenable = (thing) => + thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch); + +export default { + isArray, + isArrayBuffer, + isBuffer, + isFormData, + isArrayBufferView, + isString, + isNumber, + isBoolean, + isObject, + isPlainObject, + isUndefined, + isDate, + isFile, + isBlob, + isRegExp, + isFunction, + isStream, + isURLSearchParams, + isTypedArray, + isFileList, + forEach, + merge, + extend, + trim, + stripBOM, + inherits, + toFlatObject, + kindOf, + kindOfTest, + endsWith, + toArray, + forEachEntry, + matchAll, + isHTMLForm, + hasOwnProperty, + hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection + reduceDescriptors, + freezeMethods, + toObjectSet, + toCamelCase, + noop, + toFiniteNumber, + findKey, + global: _global, + isContextDefined, + ALPHABET, + generateString, + isSpecCompliantForm, + toJSONObject, + isAsyncFn, + isThenable +}; diff --git a/Scripts/node_modules/axios/package.json b/Scripts/node_modules/axios/package.json new file mode 100644 index 00000000..cf185bda --- /dev/null +++ b/Scripts/node_modules/axios/package.json @@ -0,0 +1,218 @@ +{ + "name": "axios", + "version": "1.6.7", + "description": "Promise based HTTP client for the browser and node.js", + "main": "index.js", + "exports": { + ".": { + "types": { + "require": "./index.d.cts", + "default": "./index.d.ts" + }, + "browser": { + "require": "./dist/browser/axios.cjs", + "default": "./index.js" + }, + "default": { + "require": "./dist/node/axios.cjs", + "default": "./index.js" + } + }, + "./lib/adapters/http.js": "./lib/adapters/http.js", + "./lib/adapters/xhr.js": "./lib/adapters/xhr.js", + "./unsafe/*": "./lib/*", + "./unsafe/core/settle.js": "./lib/core/settle.js", + "./unsafe/core/buildFullPath.js": "./lib/core/buildFullPath.js", + "./unsafe/helpers/isAbsoluteURL.js": "./lib/helpers/isAbsoluteURL.js", + "./unsafe/helpers/buildURL.js": "./lib/helpers/buildURL.js", + "./unsafe/helpers/combineURLs.js": "./lib/helpers/combineURLs.js", + "./unsafe/adapters/http.js": "./lib/adapters/http.js", + "./unsafe/adapters/xhr.js": "./lib/adapters/xhr.js", + "./unsafe/utils.js": "./lib/utils.js", + "./package.json": "./package.json" + }, + "type": "module", + "types": "index.d.ts", + "scripts": { + "test": "npm run test:eslint && npm run test:mocha && npm run test:karma && npm run test:dtslint && npm run test:exports", + "test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js", + "test:dtslint": "dtslint --localTs node_modules/typescript/lib", + "test:mocha": "node bin/ssl_hotfix.js mocha test/unit/**/*.js --timeout 30000 --exit", + "test:exports": "node bin/ssl_hotfix.js mocha test/module/test.js --timeout 30000 --exit", + "test:karma": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: karma start karma.conf.cjs --single-run", + "test:karma:firefox": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: Browsers=Firefox karma start karma.conf.cjs --single-run", + "test:karma:server": "node bin/ssl_hotfix.js cross-env karma start karma.conf.cjs", + "test:build:version": "node ./bin/check-build-version.js", + "start": "node ./sandbox/server.js", + "preversion": "gulp version", + "version": "npm run build && git add dist && git add package.json", + "prepublishOnly": "npm run test:build:version", + "postpublish": "git push && git push --tags", + "build": "gulp clear && cross-env NODE_ENV=production rollup -c -m", + "examples": "node ./examples/server.js", + "coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", + "fix": "eslint --fix lib/**/*.js", + "prepare": "husky install && npm run prepare:hooks", + "prepare:hooks": "npx husky set .husky/commit-msg \"npx commitlint --edit $1\"", + "release:dry": "release-it --dry-run --no-npm", + "release:info": "release-it --release-version", + "release:beta:no-npm": "release-it --preRelease=beta --no-npm", + "release:beta": "release-it --preRelease=beta", + "release:no-npm": "release-it --no-npm", + "release:changelog:fix": "node ./bin/injectContributorsList.js && git add CHANGELOG.md", + "release": "release-it" + }, + "repository": { + "type": "git", + "url": "https://github.com/axios/axios.git" + }, + "keywords": [ + "xhr", + "http", + "ajax", + "promise", + "node" + ], + "author": "Matt Zabriskie", + "license": "MIT", + "bugs": { + "url": "https://github.com/axios/axios/issues" + }, + "homepage": "https://axios-http.com", + "devDependencies": { + "@babel/core": "^7.18.2", + "@babel/preset-env": "^7.18.2", + "@commitlint/cli": "^17.3.0", + "@commitlint/config-conventional": "^17.3.0", + "@release-it/conventional-changelog": "^5.1.1", + "@rollup/plugin-babel": "^5.3.1", + "@rollup/plugin-commonjs": "^15.1.0", + "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-multi-entry": "^4.0.0", + "@rollup/plugin-node-resolve": "^9.0.0", + "abortcontroller-polyfill": "^1.7.3", + "auto-changelog": "^2.4.0", + "body-parser": "^1.20.0", + "chalk": "^5.2.0", + "coveralls": "^3.1.1", + "cross-env": "^7.0.3", + "dev-null": "^0.1.1", + "dtslint": "^4.2.1", + "es6-promise": "^4.2.8", + "eslint": "^8.17.0", + "express": "^4.18.1", + "formdata-node": "^5.0.0", + "formidable": "^2.0.1", + "fs-extra": "^10.1.0", + "get-stream": "^3.0.0", + "gulp": "^4.0.2", + "gzip-size": "^7.0.0", + "handlebars": "^4.7.7", + "husky": "^8.0.2", + "istanbul-instrumenter-loader": "^3.0.1", + "jasmine-core": "^2.4.1", + "karma": "^6.3.17", + "karma-chrome-launcher": "^3.1.1", + "karma-firefox-launcher": "^2.1.2", + "karma-jasmine": "^1.1.1", + "karma-jasmine-ajax": "^0.1.13", + "karma-rollup-preprocessor": "^7.0.8", + "karma-safari-launcher": "^1.0.0", + "karma-sauce-launcher": "^4.3.6", + "karma-sinon": "^1.0.5", + "karma-sourcemap-loader": "^0.3.8", + "memoizee": "^0.4.15", + "minimist": "^1.2.7", + "mocha": "^10.0.0", + "multer": "^1.4.4", + "pretty-bytes": "^6.0.0", + "release-it": "^15.5.1", + "rollup": "^2.67.0", + "rollup-plugin-auto-external": "^2.0.0", + "rollup-plugin-bundle-size": "^1.0.3", + "rollup-plugin-terser": "^7.0.2", + "sinon": "^4.5.0", + "stream-throttle": "^0.1.3", + "string-replace-async": "^3.0.2", + "terser-webpack-plugin": "^4.2.3", + "typescript": "^4.8.4" + }, + "browser": { + "./lib/adapters/http.js": "./lib/helpers/null.js", + "./lib/platform/node/index.js": "./lib/platform/browser/index.js", + "./lib/platform/node/classes/FormData.js": "./lib/helpers/null.js" + }, + "jsdelivr": "dist/axios.min.js", + "unpkg": "dist/axios.min.js", + "typings": "./index.d.ts", + "dependencies": { + "follow-redirects": "^1.15.4", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + }, + "bundlesize": [ + { + "path": "./dist/axios.min.js", + "threshold": "5kB" + } + ], + "contributors": [ + "Matt Zabriskie (https://github.com/mzabriskie)", + "Nick Uraltsev (https://github.com/nickuraltsev)", + "Jay (https://github.com/jasonsaayman)", + "Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)", + "Emily Morehouse (https://github.com/emilyemorehouse)", + "Rubén Norte (https://github.com/rubennorte)", + "Justin Beckwith (https://github.com/JustinBeckwith)", + "Martti Laine (https://github.com/codeclown)", + "Xianming Zhong (https://github.com/chinesedfan)", + "Rikki Gibson (https://github.com/RikkiGibson)", + "Remco Haszing (https://github.com/remcohaszing)", + "Yasu Flores (https://github.com/yasuf)", + "Ben Carp (https://github.com/carpben)" + ], + "sideEffects": false, + "release-it": { + "git": { + "commitMessage": "chore(release): v${version}", + "push": true, + "commit": true, + "tag": true, + "requireCommits": false, + "requireCleanWorkingDir": false + }, + "github": { + "release": true, + "draft": true + }, + "npm": { + "publish": false, + "ignoreVersion": false + }, + "plugins": { + "@release-it/conventional-changelog": { + "preset": "angular", + "infile": "CHANGELOG.md", + "header": "# Changelog" + } + }, + "hooks": { + "before:init": "npm test", + "after:bump": "gulp version --bump ${version} && npm run build && npm run test:build:version && git add ./dist && git add ./package-lock.json", + "before:release": "npm run release:changelog:fix", + "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}." + } + }, + "commitlint": { + "rules": { + "header-max-length": [ + 2, + "always", + 130 + ] + }, + "extends": [ + "@commitlint/config-conventional" + ] + } +} \ No newline at end of file diff --git a/Scripts/node_modules/b4a/LICENSE b/Scripts/node_modules/b4a/LICENSE index e2e64e88..261eeb9e 100644 --- a/Scripts/node_modules/b4a/LICENSE +++ b/Scripts/node_modules/b4a/LICENSE @@ -1,15 +1,201 @@ -ISC License + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -Copyright (c) 2021 Contributors + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. + 1. Definitions. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/Scripts/node_modules/b4a/README.md b/Scripts/node_modules/b4a/README.md index d2df2280..6acf9aea 100644 --- a/Scripts/node_modules/b4a/README.md +++ b/Scripts/node_modules/b4a/README.md @@ -142,4 +142,4 @@ See https://nodejs.org/api/buffer.html#bufreadint32leoffset ## License -ISC +Apache 2.0 diff --git a/Scripts/node_modules/b4a/package.json b/Scripts/node_modules/b4a/package.json index fed09571..451eb675 100644 --- a/Scripts/node_modules/b4a/package.json +++ b/Scripts/node_modules/b4a/package.json @@ -1,6 +1,6 @@ { "name": "b4a", - "version": "1.6.4", + "version": "1.6.6", "description": "Bridging the gap between buffers and typed arrays", "main": "index.js", "files": [ @@ -18,8 +18,8 @@ "type": "git", "url": "git+https://github.com/holepunchto/b4a.git" }, - "author": "Kasper Isager Dalsgarð ", - "license": "ISC", + "author": "Holepunch", + "license": "Apache-2.0", "bugs": { "url": "https://github.com/holepunchto/b4a/issues" }, diff --git a/Scripts/node_modules/bare-events/LICENSE b/Scripts/node_modules/bare-events/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/Scripts/node_modules/bare-events/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/Scripts/node_modules/bare-events/README.md b/Scripts/node_modules/bare-events/README.md new file mode 100644 index 00000000..f6529aa5 --- /dev/null +++ b/Scripts/node_modules/bare-events/README.md @@ -0,0 +1,25 @@ +# bare-events + +Event emitters for JavaScript. + +``` +npm install bare-events +``` + +## Usage + +``` js +const EventEmitter = require('bare-events') + +const e = new EventEmitter() + +e.on('hello', function (data) { + console.log(data) +}) + +e.emit('hello', 'world') +``` + +## License + +Apache-2.0 diff --git a/Scripts/node_modules/bare-events/index.js b/Scripts/node_modules/bare-events/index.js new file mode 100644 index 00000000..0269f660 --- /dev/null +++ b/Scripts/node_modules/bare-events/index.js @@ -0,0 +1,268 @@ +const errors = require('./lib/errors') + +class EventListener { + constructor () { + this.list = [] + } + + append (ctx, name, fn, once) { + ctx.emit('newListener', name, fn) // Emit BEFORE adding + this.list.push([fn, once]) + } + + prepend (ctx, name, fn, once) { + ctx.emit('newListener', name, fn) // Emit BEFORE adding + this.list.unshift([fn, once]) + } + + remove (ctx, name, fn) { + for (let i = 0, n = this.list.length; i < n; i++) { + const l = this.list[i] + + if (l[0] === fn) { + this.list.splice(i, 1) + + if (this.list.length === 0) delete ctx._events[name] + + ctx.emit('removeListener', name, fn) // Emit AFTER removing + return + } + } + } + + removeAll (ctx, name) { + const list = [...this.list] + this.list = [] + + for (let i = list.length - 1; i >= 0; i--) { + ctx.emit('removeListener', name, list[i][0]) // Emit AFTER removing + } + + if (this.list.length === 0) delete ctx._events[name] + } + + emit (ctx, name, ...args) { + const list = [...this.list] + + for (let i = 0, n = list.length; i < n; i++) { + const l = list[i] + + if (l[1] === true) this.remove(ctx, name, l[0]) + + l[0].call(ctx, ...args) + } + + return list.length > 0 + } +} + +function appendListener (ctx, name, fn, once) { + const e = ctx._events[name] || (ctx._events[name] = new EventListener()) + e.append(ctx, name, fn, once) + return ctx +} + +function prependListener (ctx, name, fn, once) { + const e = ctx._events[name] || (ctx._events[name] = new EventListener()) + e.prepend(ctx, name, fn, once) + return ctx +} + +function removeListener (ctx, name, fn) { + const e = ctx._events[name] + if (e !== undefined) e.remove(ctx, name, fn) + return ctx +} + +module.exports = exports = class EventEmitter { + constructor () { + this._events = Object.create(null) + } + + addListener (name, fn) { + return appendListener(this, name, fn, false) + } + + addOnceListener (name, fn) { + return appendListener(this, name, fn, true) + } + + prependListener (name, fn) { + return prependListener(this, name, fn, false) + } + + prependOnceListener (name, fn) { + return prependListener(this, name, fn, true) + } + + removeListener (name, fn) { + return removeListener(this, name, fn) + } + + on (name, fn) { + return appendListener(this, name, fn, false) + } + + once (name, fn) { + return appendListener(this, name, fn, true) + } + + off (name, fn) { + return removeListener(this, name, fn) + } + + emit (name, ...args) { + const e = this._events[name] + return e === undefined ? false : e.emit(this, name, ...args) + } + + listeners (name) { + const e = this._events[name] + return e === undefined ? [] : [...e.list] + } + + listenerCount (name) { + const e = this._events[name] + return e === undefined ? 0 : e.list.length + } + + getMaxListeners () { + return EventEmitter.defaultMaxListeners + } + + setMaxListeners (n) {} + + removeAllListeners (name) { + if (arguments.length === 0) { + for (const key of Reflect.ownKeys(this._events)) { + if (key === 'removeListener') continue + this.removeAllListeners(key) + } + this.removeAllListeners('removeListener') + } else { + const e = this._events[name] + if (e !== undefined) e.removeAll(this, name) + } + return this + } +} + +exports.EventEmitter = exports + +exports.defaultMaxListeners = 10 + +exports.on = function on (emitter, name, opts = {}) { + const { + signal + } = opts + + if (signal && signal.aborted) { + throw errors.OPERATION_ABORTED(signal.reason) + } + + let error = null + let done = false + + const events = [] + const promises = [] + + emitter.on(name, onevent) + + if (name !== 'error') emitter.on('error', onerror) + + if (signal) signal.addEventListener('abort', onabort) + + return { + next () { + if (events.length) { + return Promise.resolve({ value: events.shift(), done: false }) + } + + if (error) { + const err = error + + error = null + + return Promise.reject(err) + } + + if (done) return onclose() + + return new Promise((resolve, reject) => + promises.push({ resolve, reject }) + ) + }, + + return () { + return onclose() + }, + + throw (err) { + return onerror(err) + }, + + [Symbol.asyncIterator] () { + return this + } + } + + function onevent (...args) { + if (promises.length) { + promises.shift().resolve({ value: args, done: false }) + } else { + events.push(args) + } + } + + function onerror (err) { + if (promises.length) { + promises.shift().reject(err) + } else { + error = err + } + + return Promise.resolve({ done: true }) + } + + function onabort () { + onerror(errors.OPERATION_ABORTED(signal.reason)) + } + + function onclose () { + emitter.off(name, onevent) + + if (name !== 'error') emitter.off('error', onerror) + + if (signal) signal.removeEventListener('abort', onabort) + + done = true + + if (promises.length) promises.shift().resolve({ done: true }) + + return Promise.resolve({ done: true }) + } +} + +exports.once = function once (emitter, name, opts = {}) { + const { + signal + } = opts + + if (signal && signal.aborted) { + throw errors.OPERATION_ABORTED(signal.reason) + } + + return new Promise((resolve, reject) => { + if (signal) signal.addEventListener('abort', onabort) + + emitter.once(name, (...args) => { + if (signal) signal.removeEventListener('abort', onabort) + + resolve(args) + }) + + function onabort () { + reject(errors.OPERATION_ABORTED(signal.reason)) + } + }) +} diff --git a/Scripts/node_modules/bare-events/lib/errors.js b/Scripts/node_modules/bare-events/lib/errors.js new file mode 100644 index 00000000..6d6eded7 --- /dev/null +++ b/Scripts/node_modules/bare-events/lib/errors.js @@ -0,0 +1,18 @@ +module.exports = class EventEmitterError extends Error { + constructor (msg, code, fn = EventEmitterError, opts) { + super(`${code}: ${msg}`, opts) + this.code = code + + if (Error.captureStackTrace) { + Error.captureStackTrace(this, fn) + } + } + + get name () { + return 'EventEmitterError' + } + + static OPERATION_ABORTED (cause, msg = 'Operation aborted') { + return new EventEmitterError(msg, 'OPERATION_ABORTED', EventEmitterError.OPERATION_ABORTED, { cause }) + } +} diff --git a/Scripts/node_modules/bare-events/package.json b/Scripts/node_modules/bare-events/package.json new file mode 100644 index 00000000..c42ca264 --- /dev/null +++ b/Scripts/node_modules/bare-events/package.json @@ -0,0 +1,27 @@ +{ + "name": "bare-events", + "version": "2.2.0", + "description": "Event emitters for JavaScript", + "main": "index.js", + "files": [ + "index.js", + "lib" + ], + "scripts": { + "test": "standard && bare test.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/holepunchto/bare-events.git" + }, + "author": "Holepunch", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/holepunchto/bare-events/issues" + }, + "homepage": "https://github.com/holepunchto/bare-events#readme", + "devDependencies": { + "brittle": "^3.3.2", + "standard": "^17.0.0" + } +} diff --git a/Scripts/node_modules/basic-ftp/README.md b/Scripts/node_modules/basic-ftp/README.md index 3a4cdae7..7203ee62 100644 --- a/Scripts/node_modules/basic-ftp/README.md +++ b/Scripts/node_modules/basic-ftp/README.md @@ -4,7 +4,7 @@ [![npm downloads](https://img.shields.io/npm/dw/basic-ftp)](https://www.npmjs.com/package/basic-ftp) [![Node.js CI](https://github.com/patrickjuchli/basic-ftp/actions/workflows/nodejs.yml/badge.svg)](https://github.com/patrickjuchli/basic-ftp/actions/workflows/nodejs.yml) -This is an FTP client library for Node.js. It supports FTPS over TLS, Passive Mode over IPv6, has a Promise-based API, and offers methods to operate on whole directories. +This is an FTP client library for Node.js. It supports FTPS over TLS, Passive Mode over IPv6, has a Promise-based API, and offers methods to operate on whole directories. Active Mode is not supported. ## Advisory @@ -23,13 +23,13 @@ Node 10.0 or later is the only dependency. The first example will connect to an FTP server using TLS (FTPS), get a directory listing, upload a file and download it as a copy. Note that the FTP protocol doesn't allow multiple requests running in parallel. ```js -const ftp = require("basic-ftp") -// ESM: import * as ftp from "basic-ftp" +const { Client } = require("basic-ftp") +// ESM: import { Client } from "basic-ftp" example() async function example() { - const client = new ftp.Client() + const client = new Client() client.ftp.verbose = true try { await client.access({ diff --git a/Scripts/node_modules/basic-ftp/dist/Client.d.ts b/Scripts/node_modules/basic-ftp/dist/Client.d.ts index 84d99dcd..c91cce08 100644 --- a/Scripts/node_modules/basic-ftp/dist/Client.d.ts +++ b/Scripts/node_modules/basic-ftp/dist/Client.d.ts @@ -36,7 +36,7 @@ export interface UploadOptions { export declare class Client { prepareTransfer: TransferStrategy; parseList: RawListParser; - availableListCommands: readonly string[]; + availableListCommands: string[]; /** Low-level API to interact with FTP server. */ readonly ftp: FTPContext; /** Tracks progress of data transfers. */ diff --git a/Scripts/node_modules/basic-ftp/dist/Client.js b/Scripts/node_modules/basic-ftp/dist/Client.js index f70a0e94..d91aa92c 100644 --- a/Scripts/node_modules/basic-ftp/dist/Client.js +++ b/Scripts/node_modules/basic-ftp/dist/Client.js @@ -20,8 +20,8 @@ const fsStat = (0, util_1.promisify)(fs_1.stat); const fsOpen = (0, util_1.promisify)(fs_1.open); const fsClose = (0, util_1.promisify)(fs_1.close); const fsUnlink = (0, util_1.promisify)(fs_1.unlink); -const LIST_COMMANDS_DEFAULT = ["LIST -a", "LIST"]; -const LIST_COMMANDS_MLSD = ["MLSD", "LIST -a", "LIST"]; +const LIST_COMMANDS_DEFAULT = () => ["LIST -a", "LIST"]; +const LIST_COMMANDS_MLSD = () => ["MLSD", "LIST -a", "LIST"]; /** * High-level API to interact with an FTP server. */ @@ -32,7 +32,7 @@ class Client { * @param timeout Timeout in milliseconds, use 0 for no timeout. Optional, default is 30 seconds. */ constructor(timeout = 30000) { - this.availableListCommands = LIST_COMMANDS_DEFAULT; + this.availableListCommands = LIST_COMMANDS_DEFAULT(); this.ftp = new FtpContext_1.FTPContext(timeout); this.prepareTransfer = this._enterFirstCompatibleMode([transfer_1.enterPassiveModeIPv6, transfer_1.enterPassiveModeIPv4]); this.parseList = parseList_1.parseList; @@ -182,7 +182,7 @@ class Client { // Use MLSD directory listing if possible. See https://tools.ietf.org/html/rfc3659#section-7.8: // "The presence of the MLST feature indicates that both MLST and MLSD are supported." const supportsMLSD = features.has("MLST"); - this.availableListCommands = supportsMLSD ? LIST_COMMANDS_MLSD : LIST_COMMANDS_DEFAULT; + this.availableListCommands = supportsMLSD ? LIST_COMMANDS_MLSD() : LIST_COMMANDS_DEFAULT(); await this.send("TYPE I"); // Binary mode await this.sendIgnoringError("STRU F"); // Use file structure await this.sendIgnoringError("OPTS UTF8 ON"); // Some servers expect UTF-8 to be enabled explicitly and setting before login might not have worked. diff --git a/Scripts/node_modules/basic-ftp/dist/FtpContext.d.ts b/Scripts/node_modules/basic-ftp/dist/FtpContext.d.ts index 23318dec..49c7d4df 100644 --- a/Scripts/node_modules/basic-ftp/dist/FtpContext.d.ts +++ b/Scripts/node_modules/basic-ftp/dist/FtpContext.d.ts @@ -159,7 +159,7 @@ export declare class FTPContext { */ protected _closeControlSocket(): void; /** - * Close a socket. Sends FIN and ignores any error. + * Close a socket, ignores any error. * @protected */ protected _closeSocket(socket: Socket | undefined): void; diff --git a/Scripts/node_modules/basic-ftp/dist/FtpContext.js b/Scripts/node_modules/basic-ftp/dist/FtpContext.js index 71d8cb16..a272ca45 100644 --- a/Scripts/node_modules/basic-ftp/dist/FtpContext.js +++ b/Scripts/node_modules/basic-ftp/dist/FtpContext.js @@ -329,16 +329,14 @@ class FTPContext { this._closeSocket(this._socket); } /** - * Close a socket. Sends FIN and ignores any error. + * Close a socket, ignores any error. * @protected */ _closeSocket(socket) { if (socket) { this._removeSocketListeners(socket); socket.on("error", doNothing); - socket.on("timeout", () => socket.destroy()); - socket.setTimeout(this.timeout); - socket.end(); + socket.destroy(); } } /** diff --git a/Scripts/node_modules/basic-ftp/package.json b/Scripts/node_modules/basic-ftp/package.json index bbfbde62..00bde469 100644 --- a/Scripts/node_modules/basic-ftp/package.json +++ b/Scripts/node_modules/basic-ftp/package.json @@ -1,6 +1,6 @@ { "name": "basic-ftp", - "version": "5.0.4", + "version": "5.0.5", "description": "FTP client for Node.js, supports FTPS over TLS, IPv6, Async/Await, and Typescript.", "main": "dist/index", "types": "dist/index", @@ -9,8 +9,9 @@ ], "scripts": { "prepublishOnly": "npm run clean && npm run lint && tsc && mocha", + "prepare": "tsc", "test": "npm run prepublishOnly", - "clean": "rimraf dist", + "clean": "rm -rf dist", "lint": "eslint \"./src/**/*.ts\"", "lint-fix": "eslint --fix \"./src/**/*.ts\"", "dev": "npm run clean && tsc --watch", @@ -43,7 +44,6 @@ "@typescript-eslint/parser": "6.14.0", "eslint": "8.55.0", "mocha": "10.2.0", - "rimraf": "5.0.5", "typescript": "5.3.3" } } diff --git a/Scripts/node_modules/chromium-bidi/.browser b/Scripts/node_modules/chromium-bidi/.browser index 907eafbd..e8346641 100644 --- a/Scripts/node_modules/chromium-bidi/.browser +++ b/Scripts/node_modules/chromium-bidi/.browser @@ -1 +1 @@ -chrome@122.0.6184.0 \ No newline at end of file +chrome@122.0.6249.0 \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.d.ts index d6ad73fa..8ea5da39 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.d.ts @@ -20,9 +20,9 @@ * XXX: Add ESlint rule for this (https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-restricted-paths.md) */ export { BidiServer, MapperOptions } from './BidiServer.js'; -export type { ICdpConnection, ICdpConnection as CdpConnection, } from '../cdp/CdpConnection.js'; -export type { ICdpClient, ICdpClient as CdpClient } from '../cdp/CdpClient.js'; +export type { CdpConnection } from '../cdp/CdpConnection.js'; +export type { CdpClient } from '../cdp/CdpClient.js'; export { EventEmitter } from '../utils/EventEmitter.js'; -export type { IBidiTransport as BidiTransport } from './BidiTransport.js'; +export type { BidiTransport } from './BidiTransport.js'; export { OutgoingMessage } from './OutgoingMessage.js'; -export type { IBidiParser } from './BidiParser.js'; +export type { BidiCommandParameterParser } from './BidiParser.js'; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js.map index 42eb66de..418faeab 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js.map @@ -1 +1 @@ -{"version":3,"file":"BidiMapper.js","sourceRoot":"","sources":["../../../src/bidiMapper/BidiMapper.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH;;;;GAIG;AACH,iDAA0D;AAAlD,2GAAA,UAAU,OAAA;AAMlB,4DAAsD;AAA9C,+GAAA,YAAY,OAAA;AAEpB,2DAAqD;AAA7C,qHAAA,eAAe,OAAA"} \ No newline at end of file +{"version":3,"file":"BidiMapper.js","sourceRoot":"","sources":["../../../src/bidiMapper/BidiMapper.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH;;;;GAIG;AACH,iDAA0D;AAAlD,2GAAA,UAAU,OAAA;AAGlB,4DAAsD;AAA9C,+GAAA,YAAY,OAAA;AAEpB,2DAAqD;AAA7C,qHAAA,eAAe,OAAA"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.d.ts index f81bc21d..2981f7e3 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.d.ts @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import type { BrowsingContext, Cdp, Input, Network, Script, Session } from '../protocol/protocol.js'; -import type { IBidiParser } from './BidiParser.js'; -export declare class BidiNoOpParser implements IBidiParser { +import type { BrowsingContext, Cdp, Input, Network, Script, Session, Storage, Permissions } from '../protocol/protocol.js'; +import type { BidiCommandParameterParser } from './BidiParser.js'; +export declare class BidiNoOpParser implements BidiCommandParameterParser { parseActivateParams(params: unknown): BrowsingContext.ActivateParameters; parseCaptureScreenshotParams(params: unknown): BrowsingContext.CaptureScreenshotParameters; parseCloseParams(params: unknown): BrowsingContext.CloseParameters; @@ -38,6 +38,7 @@ export declare class BidiNoOpParser implements IBidiParser { parseRemovePreloadScriptParams(params: unknown): Script.RemovePreloadScriptParameters; parsePerformActionsParams(params: unknown): Input.PerformActionsParameters; parseReleaseActionsParams(params: unknown): Input.ReleaseActionsParameters; + parseSetFilesParams(params: unknown): Input.SetFilesParameters; parseAddInterceptParams(params: unknown): Network.AddInterceptParameters; parseContinueRequestParams(params: unknown): Network.ContinueRequestParameters; parseContinueResponseParams(params: unknown): Network.ContinueResponseParameters; @@ -45,5 +46,9 @@ export declare class BidiNoOpParser implements IBidiParser { parseFailRequestParams(params: unknown): Network.FailRequestParameters; parseProvideResponseParams(params: unknown): Network.ProvideResponseParameters; parseRemoveInterceptParams(params: unknown): Network.RemoveInterceptParameters; + parseSetPermissionsParams(params: unknown): Permissions.SetPermissionParameters; parseSubscribeParams(params: unknown): Session.SubscriptionRequest; + parseDeleteCookiesParams(params: unknown): Storage.DeleteCookiesParameters; + parseGetCookiesParams(params: unknown): Storage.GetCookiesParameters; + parseSetCookieParams(params: unknown): Storage.SetCookieParameters; } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js index c467af0d..dbf9578d 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js @@ -92,6 +92,9 @@ class BidiNoOpParser { parseReleaseActionsParams(params) { return params; } + parseSetFilesParams(params) { + return params; + } // keep-sorted end // Network domain // keep-sorted start block=yes @@ -117,11 +120,29 @@ class BidiNoOpParser { return params; } // keep-sorted end + // Permissions domain + // keep-sorted start block=yes + parseSetPermissionsParams(params) { + return params; + } + // keep-sorted end // Session domain // keep-sorted start block=yes parseSubscribeParams(params) { return params; } + // keep-sorted end + // Storage domain + // keep-sorted start block=yes + parseDeleteCookiesParams(params) { + return params; + } + parseGetCookiesParams(params) { + return params; + } + parseSetCookieParams(params) { + return params; + } } exports.BidiNoOpParser = BidiNoOpParser; //# sourceMappingURL=BidiNoOpParser.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js.map index bd6d80e1..6518819f 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js.map @@ -1 +1 @@ -{"version":3,"file":"BidiNoOpParser.js","sourceRoot":"","sources":["../../../src/bidiMapper/BidiNoOpParser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAaH,MAAa,cAAc;IACzB,0BAA0B;IAC1B,8BAA8B;I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D,8BAA8B,CAC5B,MAAe;QAEf,OAAO,MAA8C,CAAC;IACxD,CAAC;IACD,kBAAkB;IAElB,eAAe;IACf,8BAA8B;IAC9B,yBAAyB,CAAC,MAAe;QACvC,OAAO,MAAwC,CAAC;IAClD,CAAC;IACD,yBAAyB,CAAC,MAAe;QACvC,OAAO,MAAwC,CAAC;IAClD,CAAC;IACD,kBAAkB;IAElB,iBAAiB;IACjB,8BAA8B;IAC9B,uBAAuB,CAAC,MAAe;QACrC,OAAO,MAAwC,CAAC;IAClD,CAAC;IACD,0BAA0B,CACxB,MAAe;QAEf,OAAO,MAA2C,CAAC;IACrD,CAAC;IACD,2BAA2B,CACzB,MAAe;QAEf,OAAO,MAA4C,CAAC;IACtD,CAAC;IACD,2BAA2B,CACzB,MAAe;QAEf,OAAO,MAA4C,CAAC;IACtD,CAAC;IACD,sBAAsB,CAAC,MAAe;QACpC,OAAO,MAAuC,CAAC;IACjD,CAAC;IACD,0BAA0B,CACxB,MAAe;QAEf,OAAO,MAA2C,CAAC;IACrD,CAAC;IACD,0BAA0B,CACxB,MAAe;QAEf,OAAO,MAA2C,CAAC;IACrD,CAAC;IACD,kBAAkB;IAElB,iBAAiB;IACjB,8BAA8B;IAC9B,oBAAoB,CAAC,MAAe;QAClC,OAAO,MAAqC,CAAC;IAC/C,CAAC;CAEF;AArID,wCAqIC"} \ No newline at end of file +{"version":3,"file":"BidiNoOpParser.js","sourceRoot":"","sources":["../../../src/bidiMapper/BidiNoOpParser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAeH,MAAa,cAAc;IACzB,0BAA0B;IAC1B,8BAA8B;IAC9B,mBAAmB,CAAC,MAAe;QACjC,OAAO,MAA4C,CAAC;IACtD,CAAC;IACD,4BAA4B,CAC1B,MAAe;QAEf,OAAO,MAAqD,CAAC;IAC/D,CAAC;IACD,gBAAgB,CAAC,MAAe;QAC9B,OAAO,MAAyC,CAAC;IACnD,CAAC;IACD,iBAAiB,CAAC,MA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;IAClD,CAAC;IACD,mBAAmB,CAAC,MAAe;QACjC,OAAO,MAAkC,CAAC;IAC5C,CAAC;IACD,kBAAkB;IAElB,iBAAiB;IACjB,8BAA8B;IAC9B,uBAAuB,CAAC,MAAe;QACrC,OAAO,MAAwC,CAAC;IAClD,CAAC;IACD,0BAA0B,CACxB,MAAe;QAEf,OAAO,MAA2C,CAAC;IACrD,CAAC;IACD,2BAA2B,CACzB,MAAe;QAEf,OAAO,MAA4C,CAAC;IACtD,CAAC;IACD,2BAA2B,CACzB,MAAe;QAEf,OAAO,MAA4C,CAAC;IACtD,CAAC;IACD,sBAAsB,CAAC,MAAe;QACpC,OAAO,MAAuC,CAAC;IACjD,CAAC;IACD,0BAA0B,CACxB,MAAe;QAEf,OAAO,MAA2C,CAAC;IACrD,CAAC;IACD,0BAA0B,CACxB,MAAe;QAEf,OAAO,MAA2C,CAAC;IACrD,CAAC;IACD,kBAAkB;IAElB,qBAAqB;IACrB,8BAA8B;IAC9B,yBAAyB,CACvB,MAAe;QAEf,OAAO,MAA6C,CAAC;IACvD,CAAC;IACD,kBAAkB;IAElB,iBAAiB;IACjB,8BAA8B;IAC9B,oBAAoB,CAAC,MAAe;QAClC,OAAO,MAAqC,CAAC;IAC/C,CAAC;IACD,kBAAkB;IAElB,iBAAiB;IACjB,8BAA8B;IAC9B,wBAAwB,CAAC,MAAe;QACtC,OAAO,MAAyC,CAAC;IACnD,CAAC;IACD,qBAAqB,CAAC,MAAe;QACnC,OAAO,MAAsC,CAAC;IAChD,CAAC;IACD,oBAAoB,CAAC,MAAe;QAClC,OAAO,MAAqC,CAAC;IAC/C,CAAC;CAEF;AA9JD,wCA8JC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiParser.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiParser.d.ts index 3f954554..c2bdca7b 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiParser.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiParser.d.ts @@ -14,8 +14,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import type { BrowsingContext, Cdp, Input, Network, Script, Session } from '../protocol/protocol.js'; -export interface IBidiParser { +import type { BrowsingContext, Cdp, Input, Network, Permissions, Script, Session, Storage } from '../protocol/protocol.js'; +export interface BidiCommandParameterParser { parseActivateParams(params: unknown): BrowsingContext.ActivateParameters; parseCaptureScreenshotParams(params: unknown): BrowsingContext.CaptureScreenshotParameters; parseCloseParams(params: unknown): BrowsingContext.CloseParameters; @@ -31,6 +31,8 @@ export interface IBidiParser { parseSendCommandParams(params: unknown): Cdp.SendCommandParameters; parsePerformActionsParams(params: unknown): Input.PerformActionsParameters; parseReleaseActionsParams(params: unknown): Input.ReleaseActionsParameters; + parseSetFilesParams(params: unknown): Input.SetFilesParameters; + parseSetPermissionsParams(params: unknown): Permissions.SetPermissionParameters; parseAddInterceptParams(params: unknown): Network.AddInterceptParameters; parseContinueRequestParams(params: unknown): Network.ContinueRequestParameters; parseContinueResponseParams(params: unknown): Network.ContinueResponseParameters; @@ -45,4 +47,7 @@ export interface IBidiParser { parseGetRealmsParams(params: unknown): Script.GetRealmsParameters; parseRemovePreloadScriptParams(params: unknown): Script.RemovePreloadScriptParameters; parseSubscribeParams(params: unknown): Session.SubscriptionRequest; + parseDeleteCookiesParams(params: unknown): Storage.DeleteCookiesParameters; + parseGetCookiesParams(params: unknown): Storage.GetCookiesParameters; + parseSetCookieParams(params: unknown): Storage.SetCookieParameters; } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.d.ts index dd384060..87f61cf6 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.d.ts @@ -14,20 +14,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import type { ICdpClient } from '../cdp/CdpClient'; -import type { ICdpConnection } from '../cdp/CdpConnection.js'; +import type { CdpClient } from '../cdp/CdpClient'; +import type { CdpConnection } from '../cdp/CdpConnection.js'; import type { ChromiumBidi } from '../protocol/protocol.js'; import { EventEmitter } from '../utils/EventEmitter.js'; import { type LoggerFn } from '../utils/log.js'; import type { Result } from '../utils/result.js'; -import type { IBidiParser } from './BidiParser.js'; -import type { IBidiTransport } from './BidiTransport.js'; +import type { BidiCommandParameterParser } from './BidiParser.js'; +import type { BidiTransport } from './BidiTransport.js'; import type { OutgoingMessage } from './OutgoingMessage.js'; type BidiServerEvent = { message: ChromiumBidi.Command; }; export type MapperOptions = { acceptInsecureCerts: boolean; + sharedIdWithFrame?: boolean; }; export declare class BidiServer extends EventEmitter { #private; @@ -35,7 +36,7 @@ export declare class BidiServer extends EventEmitter { /** * Creates and starts BiDi Mapper instance. */ - static createAndStart(bidiTransport: IBidiTransport, cdpConnection: ICdpConnection, browserCdpClient: ICdpClient, selfTargetId: string, options?: MapperOptions, parser?: IBidiParser, logger?: LoggerFn): Promise; + static createAndStart(bidiTransport: BidiTransport, cdpConnection: CdpConnection, browserCdpClient: CdpClient, selfTargetId: string, options?: MapperOptions, parser?: BidiCommandParameterParser, logger?: LoggerFn): Promise; /** * Sends BiDi message. */ diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js index df651e06..e5fea29b 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js @@ -22,8 +22,8 @@ const log_js_1 = require("../utils/log.js"); const ProcessingQueue_js_1 = require("../utils/ProcessingQueue.js"); const CommandProcessor_js_1 = require("./CommandProcessor.js"); const BrowsingContextStorage_js_1 = require("./domains/context/BrowsingContextStorage.js"); -const EventManager_js_1 = require("./domains/events/EventManager.js"); const RealmStorage_js_1 = require("./domains/script/RealmStorage.js"); +const EventManager_js_1 = require("./domains/session/EventManager.js"); class BidiServer extends EventEmitter_js_1.EventEmitter { #messageQueue; #transport; @@ -43,14 +43,14 @@ class BidiServer extends EventEmitter_js_1.EventEmitter { } await this.#transport.sendMessage(message); }; - constructor(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, options, parser, logger) { + constructor(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, defaultUserContextId, options, parser, logger) { super(); this.#logger = logger; this.#messageQueue = new ProcessingQueue_js_1.ProcessingQueue(this.#processOutgoingMessage, this.#logger); this.#transport = bidiTransport; this.#transport.setOnMessage(this.#handleIncomingMessage); this.#eventManager = new EventManager_js_1.EventManager(this.#browsingContextStorage); - this.#commandProcessor = new CommandProcessor_js_1.CommandProcessor(cdpConnection, browserCdpClient, this.#eventManager, selfTargetId, this.#browsingContextStorage, new RealmStorage_js_1.RealmStorage(), options?.acceptInsecureCerts ?? false, parser, this.#logger); + this.#commandProcessor = new CommandProcessor_js_1.CommandProcessor(cdpConnection, browserCdpClient, this.#eventManager, selfTargetId, defaultUserContextId, this.#browsingContextStorage, new RealmStorage_js_1.RealmStorage(), options?.acceptInsecureCerts ?? false, options?.sharedIdWithFrame ?? false, parser, this.#logger); this.#eventManager.on("event" /* EventManagerEvents.Event */, ({ message, event }) => { this.emitOutgoingMessage(message, event); }); @@ -62,7 +62,23 @@ class BidiServer extends EventEmitter_js_1.EventEmitter { * Creates and starts BiDi Mapper instance. */ static async createAndStart(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, options, parser, logger) { - const server = new BidiServer(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, options, parser, logger); + // The default context is not exposed in Target.getBrowserContexts but can + // be observed via Target.getTargets. To determine the default browser + // context, we check which one is mentioned in Target.getTargets and not in + // Target.getBrowserContexts. + const [{ browserContextIds }, { targetInfos }] = await Promise.all([ + browserCdpClient.sendCommand('Target.getBrowserContexts'), + browserCdpClient.sendCommand('Target.getTargets'), + ]); + let defaultUserContextId = 'default'; + for (const info of targetInfos) { + if (info.browserContextId && + !browserContextIds.includes(info.browserContextId)) { + defaultUserContextId = info.browserContextId; + break; + } + } + const server = new BidiServer(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, defaultUserContextId, options, parser, logger); // Needed to get events about new targets. await browserCdpClient.sendCommand('Target.setDiscoverTargets', { discover: true, diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js.map index 045865d7..cbf2975a 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js.map @@ -1 +1 @@ -{"version":3,"file":"BidiServer.js","sourceRoot":"","sources":["../../../src/bidiMapper/BidiServer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAKH,8DAAsD;AACtD,4CAAuD;AACvD,oEAA4D;AAK5D,+DAA+E;AAC/E,2FAAmF;AACnF,sEAG0C;AAC1C,sEAA8D;AAS9D,MAAa,UAAW,SAAQ,8BAA6B;IAC3D,aAAa,CAAmC;IAChD,UAAU,CAAiB;IAC3B,iBAAiB,CAAmB;IACpC,aAAa,CAAe;IAC5B,uBAAuB,GAAG,IAAI,kDAAsB,EAAE,CAAC;IACvD,OAAO,CAAY;IAEnB,sBAAsB,GAAG,CAAC,OAA6B,EAAE,EAAE;QACzD,KAAK,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;YAClE,IAAI,CAAC,OAAO,EAAE,CAAC,gBAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,uBAAuB,GAAG,KAAK,EAAE,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AE,CAAC,CACnC,CAAC;IACJ,CAAC;CACF;AAjJD,gCAiJC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiTransport.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiTransport.d.ts index 3e1a481a..6824b83f 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiTransport.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiTransport.d.ts @@ -15,7 +15,7 @@ * limitations under the License. */ import type { ChromiumBidi } from '../protocol/protocol.js'; -export interface IBidiTransport { +export interface BidiTransport { setOnMessage: (handler: (message: ChromiumBidi.Command) => Promise | void) => void; sendMessage: (message: ChromiumBidi.Message) => Promise | void; close(): void; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.d.ts index 0a933337..26800bdd 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.d.ts @@ -14,16 +14,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import type { ICdpClient } from '../cdp/CdpClient'; -import type { ICdpConnection } from '../cdp/CdpConnection.js'; -import { type ChromiumBidi } from '../protocol/protocol.js'; +import type { CdpClient } from '../cdp/CdpClient'; +import type { CdpConnection } from '../cdp/CdpConnection.js'; +import { type ChromiumBidi, type Browser } from '../protocol/protocol.js'; import { EventEmitter } from '../utils/EventEmitter.js'; import { type LoggerFn } from '../utils/log.js'; import type { Result } from '../utils/result.js'; -import type { IBidiParser } from './BidiParser.js'; +import type { BidiCommandParameterParser } from './BidiParser.js'; import type { BrowsingContextStorage } from './domains/context/BrowsingContextStorage.js'; -import type { EventManager } from './domains/events/EventManager.js'; import type { RealmStorage } from './domains/script/RealmStorage.js'; +import type { EventManager } from './domains/session/EventManager.js'; import { OutgoingMessage } from './OutgoingMessage.js'; export declare const enum CommandProcessorEvents { Response = "response" @@ -36,7 +36,7 @@ type CommandProcessorEventsMap = { }; export declare class CommandProcessor extends EventEmitter { #private; - constructor(cdpConnection: ICdpConnection, browserCdpClient: ICdpClient, eventManager: EventManager, selfTargetId: string, browsingContextStorage: BrowsingContextStorage, realmStorage: RealmStorage, acceptInsecureCerts: boolean, parser?: IBidiParser, logger?: LoggerFn); + constructor(cdpConnection: CdpConnection, browserCdpClient: CdpClient, eventManager: EventManager, selfTargetId: string, defaultUserContextId: Browser.UserContext, browsingContextStorage: BrowsingContextStorage, realmStorage: RealmStorage, acceptInsecureCerts: boolean, sharedIdWithFrame: boolean, parser?: BidiCommandParameterParser, logger?: LoggerFn); processCommand(command: ChromiumBidi.Command): Promise; } export {}; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js index 18666246..36da0bc1 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js @@ -27,9 +27,11 @@ const BrowsingContextProcessor_js_1 = require("./domains/context/BrowsingContext const InputProcessor_js_1 = require("./domains/input/InputProcessor.js"); const NetworkProcessor_js_1 = require("./domains/network/NetworkProcessor.js"); const NetworkStorage_js_1 = require("./domains/network/NetworkStorage.js"); +const PermissionsProcessor_js_1 = require("./domains/permissions/PermissionsProcessor.js"); const PreloadScriptStorage_js_1 = require("./domains/script/PreloadScriptStorage.js"); const ScriptProcessor_js_1 = require("./domains/script/ScriptProcessor.js"); const SessionProcessor_js_1 = require("./domains/session/SessionProcessor.js"); +const StorageProcessor_js_1 = require("./domains/storage/StorageProcessor.js"); const OutgoingMessage_js_1 = require("./OutgoingMessage.js"); class CommandProcessor extends EventEmitter_js_1.EventEmitter { // keep-sorted start @@ -38,12 +40,14 @@ class CommandProcessor extends EventEmitter_js_1.EventEmitter { #cdpProcessor; #inputProcessor; #networkProcessor; + #permissionsProcessor; #scriptProcessor; #sessionProcessor; + #storageProcessor; // keep-sorted end #parser; #logger; - constructor(cdpConnection, browserCdpClient, eventManager, selfTargetId, browsingContextStorage, realmStorage, acceptInsecureCerts, parser = new BidiNoOpParser_js_1.BidiNoOpParser(), logger) { + constructor(cdpConnection, browserCdpClient, eventManager, selfTargetId, defaultUserContextId, browsingContextStorage, realmStorage, acceptInsecureCerts, sharedIdWithFrame, parser = new BidiNoOpParser_js_1.BidiNoOpParser(), logger) { super(); this.#parser = parser; this.#logger = logger; @@ -51,12 +55,14 @@ class CommandProcessor extends EventEmitter_js_1.EventEmitter { const preloadScriptStorage = new PreloadScriptStorage_js_1.PreloadScriptStorage(); // keep-sorted start block=yes this.#browserProcessor = new BrowserProcessor_js_1.BrowserProcessor(browserCdpClient); - this.#browsingContextProcessor = new BrowsingContextProcessor_js_1.BrowsingContextProcessor(cdpConnection, browserCdpClient, selfTargetId, eventManager, browsingContextStorage, realmStorage, networkStorage, preloadScriptStorage, acceptInsecureCerts, logger); + this.#browsingContextProcessor = new BrowsingContextProcessor_js_1.BrowsingContextProcessor(cdpConnection, browserCdpClient, selfTargetId, eventManager, browsingContextStorage, realmStorage, networkStorage, preloadScriptStorage, acceptInsecureCerts, sharedIdWithFrame, defaultUserContextId, logger); this.#cdpProcessor = new CdpProcessor_js_1.CdpProcessor(browsingContextStorage, cdpConnection, browserCdpClient); - this.#inputProcessor = new InputProcessor_js_1.InputProcessor(browsingContextStorage); + this.#inputProcessor = new InputProcessor_js_1.InputProcessor(browsingContextStorage, realmStorage); this.#networkProcessor = new NetworkProcessor_js_1.NetworkProcessor(browsingContextStorage, networkStorage); + this.#permissionsProcessor = new PermissionsProcessor_js_1.PermissionsProcessor(browserCdpClient); this.#scriptProcessor = new ScriptProcessor_js_1.ScriptProcessor(browsingContextStorage, realmStorage, preloadScriptStorage, logger); this.#sessionProcessor = new SessionProcessor_js_1.SessionProcessor(eventManager); + this.#storageProcessor = new StorageProcessor_js_1.StorageProcessor(browserCdpClient, browsingContextStorage, logger); // keep-sorted end } async #processCommand(command) { @@ -69,6 +75,12 @@ class CommandProcessor extends EventEmitter_js_1.EventEmitter { // keep-sorted start block=yes case 'browser.close': return this.#browserProcessor.close(); + case 'browser.createUserContext': + return await this.#browserProcessor.createUserContext(); + case 'browser.getUserContexts': + return await this.#browserProcessor.getUserContexts(); + case 'browser.removeUserContext': + return await this.#browserProcessor.removeUserContext(command.params.userContext); // keep-sorted end // Browsing Context domain // keep-sorted start block=yes @@ -110,6 +122,8 @@ class CommandProcessor extends EventEmitter_js_1.EventEmitter { return await this.#inputProcessor.performActions(this.#parser.parsePerformActionsParams(command.params)); case 'input.releaseActions': return await this.#inputProcessor.releaseActions(this.#parser.parseReleaseActionsParams(command.params)); + case 'input.setFiles': + return await this.#inputProcessor.setFiles(this.#parser.parseSetFilesParams(command.params)); // keep-sorted end // Network domain // keep-sorted start block=yes @@ -128,6 +142,11 @@ class CommandProcessor extends EventEmitter_js_1.EventEmitter { case 'network.removeIntercept': return await this.#networkProcessor.removeIntercept(this.#parser.parseRemoveInterceptParams(command.params)); // keep-sorted end + // Permissions domain + // keep-sorted start block=yes + case 'permissions.setPermission': + return await this.#permissionsProcessor.setPermissions(this.#parser.parseSetPermissionsParams(command.params)); + // keep-sorted end // Script domain // keep-sorted start block=yes case 'script.addPreloadScript': @@ -152,8 +171,17 @@ class CommandProcessor extends EventEmitter_js_1.EventEmitter { case 'session.unsubscribe': return this.#sessionProcessor.unsubscribe(this.#parser.parseSubscribeParams(command.params), command.channel); // keep-sorted end + // Storage domain + // keep-sorted start block=yes + case 'storage.deleteCookies': + throw new protocol_js_1.UnsupportedOperationException(`${command.method} is not supported yet`); + case 'storage.getCookies': + return await this.#storageProcessor.getCookies(this.#parser.parseGetCookiesParams(command.params)); + case 'storage.setCookie': + return await this.#storageProcessor.setCookie(this.#parser.parseSetCookieParams(command.params)); + // keep-sorted end } - // Intentionally kept outside of the switch statement to ensure that + // Intentionally kept outside the switch statement to ensure that // ESLint @typescript-eslint/switch-exhaustiveness-check triggers if a new // command is added. throw new protocol_js_1.UnknownCommandException(`Unknown command '${command.method}'.`); diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js.map index 9da55fd5..75dd16b9 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js.map @@ -1 +1 @@ -{"version":3,"file":"CommandProcessor.js","sourceRoot":"","sources":["../../../src/bidiMapper/CommandProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAIH,yDAMiC;AACjC,8DAAsD;AACtD,4CAAuD;AAGvD,2DAAmD;AAEnD,+EAAuE;AACvE,mEAA2D;AAC3D,+FAAuF;AAGvF,yEAAiE;AACjE,+EAAuE;AACvE,2EAAmE;AACnE,sFAA8E;AAE9E,4EAAoE;AACpE,+EAAuE;AACvE,6DAAqD;AAarD,MAAa,gBAAiB,SAAQ,8BAAuC;IAC3E,oBAAoB;IACpB,iBAAiB,CAAmB;IACpC,yBAAyB,CAA2B;IACpD,aAAa,CAAe;IAC5B,eAAe,CAAiB;IAChC,iBAAiB,CAAmB;IACpC,gBAAgB,CAAkB;IAClC,iBAAiB,CAAmB;IACpC,kBAAkB;IAElB,OAAO,CAAc;IACrB,OAAO,CAAY;IAEnB,YACE,aAA6B,EAC7B,gBAA4B,EAC5B,YAA0B,EAC1B,YAAoB,EACpB,sBAA8C,EAC9C,YAA0B,EAC1B,mBAA4B,EAC5B,SAAsB,IAAI,kCAAc,EAAE,EAC1C,MAAiB;QAEjB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,MAAM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AAO,CAAC,EAAE,CAAC,EAC7B,OAAO,CAAC,OAAO,CAChB;oBACD,KAAK,EAAE,OAAO,CAAC,MAAM;iBACtB,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;CACF;AAvRD,4CAuRC"} \ No newline at end of file +{"version":3,"file":"CommandProcessor.js","sourceRoot":"","sources":["../../../src/bidiMapper/CommandProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAIH,yDAOiC;AACjC,8DAAsD;AACtD,4CAAuD;AAGvD,2DAAmD;AAEnD,+EAAuE;AACvE,mEAA2D;AAC3D,+FAAuF;AAEvF,yEAAiE;AACjE,+EAAuE;AACvE,2EAAmE;AACnE,2FAAmF;AACnF,sFAA8E;AAE9E,4EAAoE;AAEpE,+EAAuE;AACvE,+EAAuE;AACvE,6DAAqD;AAarD,MAAa,gBAAiB,SAAQ,8BAAuC;IAC3E,oBAAoB;IACpB,iBAAiB,CAAmB;IACpC,yBAAyB,CAA2B;IACpD,aAAa,CAAe;IAC5B,eAAe,CAAiB;IAChC,iBAAiB,CAAmB;IACpC,qBAAqB,CAAuB;IAC5C,gBAAgB,CAAkB;IAClC,iBAAiB,CAAmB;IACpC,iBAAiB,CAAmB;IACpC,kBAAkB;IAElB,OAAO,CAA6B;IACpC,OAAO,CAAY;IAEnB,YACE,aAA4B,EAC5B,gBAA2B,EAC3B,YAA0B,EAC1B,YAAoB,EACpB,oBAAyC,EACzC,sBAA8C,EAC9C,YAA0B,EAC1B,mBAA4B,EAC5B,iBAA0B,EAC1B,SAAqC,IAAI,kCAAc,EAAE,EACzD,MAAiB;QAEjB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QAEtB,MAAM,cAAc,GAAG,IAAI,kCAAc,EAAE,CAAC;QAC5C,MAAM,oBAAoB,GAAG,IAAI,8CAAoB,EAAE,CAAC;QAExD,8BAA8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AAM;iBACtB,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;CACF;AA1UD,4CA0UC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.d.ts index feaa3c33..189bc619 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.d.ts @@ -14,13 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +import type { BidiPlusChannel } from '../protocol/chromium-bidi.js'; import type { ChromiumBidi } from '../protocol/protocol.js'; import type { Result } from '../utils/result.js'; export declare class OutgoingMessage { #private; private constructor(); - static createFromPromise(messagePromise: Promise>, channel: string | null): Promise>; - static createResolved(message: ChromiumBidi.Message, channel?: string | null): Promise>; + static createFromPromise(messagePromise: Promise>, channel: BidiPlusChannel): Promise>; + static createResolved(message: ChromiumBidi.Message, channel?: BidiPlusChannel): Promise>; get message(): ChromiumBidi.Message; - get channel(): string | null; + get channel(): BidiPlusChannel; } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js.map index fce6daca..cd6f52de 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js.map @@ -1 +1 @@ -{"version":3,"file":"OutgoingMessage.js","sourceRoot":"","sources":["../../../src/bidiMapper/OutgoingMessage.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAKH,MAAa,eAAe;IACjB,QAAQ,CAAuB;IAC/B,QAAQ,CAAgB;IAEjC,YACE,OAA6B,EAC7B,UAAyB,IAAI;QAE7B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,iBAAiB,CACtB,cAAqD,EACrD,OAAsB;QAEtB,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE;YACrC,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;gBAC/B,OAAO;oBACL,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,IAAI,eAAe,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC;iBACnD,CAAC;YACJ,CAAC;YACD,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,cAAc,CACnB,OAA6B,EAC7B,OAAuB;QAEvB,OAAO,OAAO,CAAC,OAAO,CAAC;YACrB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC;SAC7C,CAAC,CAAC;IACL,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF;AA5CD,0CA4CC"} \ No newline at end of file +{"version":3,"file":"OutgoingMessage.js","sourceRoot":"","sources":["../../../src/bidiMapper/OutgoingMessage.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAMH,MAAa,eAAe;IACjB,QAAQ,CAAuB;IAC/B,QAAQ,CAAkB;IAEnC,YACE,OAA6B,EAC7B,UAA2B,IAAI;QAE/B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,iBAAiB,CACtB,cAAqD,EACrD,OAAwB;QAExB,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE;YACrC,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;gBAC/B,OAAO;oBACL,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,IAAI,eAAe,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC;iBACnD,CAAC;YACJ,CAAC;YACD,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,cAAc,CACnB,OAA6B,EAC7B,OAAyB;QAEzB,OAAO,OAAO,CAAC,OAAO,CAAC;YACrB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC;SAC7C,CAAC,CAAC;IACL,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF;AA5CD,0CA4CC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/browser/BrowserProcessor.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/browser/BrowserProcessor.d.ts index 551fcb81..a20b865e 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/browser/BrowserProcessor.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/browser/BrowserProcessor.d.ts @@ -14,10 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import type { EmptyResult } from '../../../protocol/protocol.js'; -import type { ICdpClient } from '../../BidiMapper.js'; +import { type EmptyResult, type Browser } from '../../../protocol/protocol.js'; +import type { CdpClient } from '../../BidiMapper.js'; export declare class BrowserProcessor { #private; - constructor(browserCdpClient: ICdpClient); + constructor(browserCdpClient: CdpClient); close(): EmptyResult; + createUserContext(): Promise; + removeUserContext(userContext: Browser.UserContext): Promise; + getUserContexts(): Promise; } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/browser/BrowserProcessor.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/browser/BrowserProcessor.js index 0a5c8846..784fe4cd 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/browser/BrowserProcessor.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/browser/BrowserProcessor.js @@ -17,6 +17,7 @@ */ Object.defineProperty(exports, "__esModule", { value: true }); exports.BrowserProcessor = void 0; +const protocol_js_1 = require("../../../protocol/protocol.js"); class BrowserProcessor { #browserCdpClient; constructor(browserCdpClient) { @@ -28,6 +29,45 @@ class BrowserProcessor { setTimeout(() => this.#browserCdpClient.sendCommand('Browser.close'), 0); return {}; } + async createUserContext() { + const context = await this.#browserCdpClient.sendCommand('Target.createBrowserContext'); + return { + userContext: context.browserContextId, + }; + } + async removeUserContext(userContext) { + if (userContext === 'default') { + throw new protocol_js_1.InvalidArgumentException('`default` user context cannot be removed'); + } + try { + await this.#browserCdpClient.sendCommand('Target.disposeBrowserContext', { + browserContextId: userContext, + }); + } + catch (err) { + // https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/protocol/target_handler.cc;l=1424;drc=c686e8f4fd379312469fe018f5c390e9c8f20d0d + if (err.message.startsWith('Failed to find context with id')) { + throw new protocol_js_1.NoSuchUserContextException(err.message); + } + throw err; + } + return {}; + } + async getUserContexts() { + const result = await this.#browserCdpClient.sendCommand('Target.getBrowserContexts'); + return { + userContexts: [ + { + userContext: 'default', + }, + ...result.browserContextIds.map((id) => { + return { + userContext: id, + }; + }), + ], + }; + } } exports.BrowserProcessor = BrowserProcessor; //# sourceMappingURL=BrowserProcessor.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/browser/BrowserProcessor.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/browser/BrowserProcessor.js.map index b79460b6..ac475dcd 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/browser/BrowserProcessor.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/browser/BrowserProcessor.js.map @@ -1 +1 @@ -{"version":3,"file":"BrowserProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/browser/BrowserProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAKH,MAAa,gBAAgB;IAClB,iBAAiB,CAAa;IAEvC,YAAY,gBAA4B;QACtC,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC5C,CAAC;IAED,KAAK;QACH,sDAAsD;QACtD,6DAA6D;QAC7D,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC;QAEzE,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAdD,4CAcC"} \ No newline at end of file +{"version":3,"file":"BrowserProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/browser/BrowserProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,+DAKuC;AAGvC,MAAa,gBAAgB;IAClB,iBAAiB,CAAY;IAEtC,YAAY,gBAA2B;QACrC,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC5C,CAAC;IAED,KAAK;QACH,sDAAsD;QACtD,6DAA6D;QAC7D,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC;QAEzE,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,KAAK,CAAC,iBAAiB;QACrB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,CACtD,6BAA6B,CAC9B,CAAC;QACF,OAAO;YACL,WAAW,EAAE,OAAO,CAAC,gBAAgB;SACtC,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,WAAgC;QAEhC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,sCAAwB,CAChC,0CAA0C,CAC3C,CAAC;QACJ,CAAC;QACD,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,8BAA8B,EAAE;gBACvE,gBAAgB,EAAE,WAAW;aAC9B,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,mKAAmK;YACnK,IAAK,GAAa,CAAC,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC,EAAE,CAAC;gBACxE,MAAM,IAAI,wCAA0B,CAAE,GAAa,CAAC,OAAO,CAAC,CAAC;YAC/D,CAAC;YACD,MAAM,GAAG,CAAC;QACZ,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,CACrD,2BAA2B,CAC5B,CAAC;QACF,OAAO;YACL,YAAY,EAAE;gBACZ;oBACE,WAAW,EAAE,SAAS;iBACvB;gBACD,GAAG,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE;oBACrC,OAAO;wBACL,WAAW,EAAE,EAAE;qBAChB,CAAC;gBACJ,CAAC,CAAC;aACH;SACF,CAAC;IACJ,CAAC;CACF;AA/DD,4CA+DC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/cdp/CdpProcessor.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/cdp/CdpProcessor.d.ts index c44fa761..a2465cf2 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/cdp/CdpProcessor.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/cdp/CdpProcessor.d.ts @@ -15,11 +15,11 @@ * limitations under the License. */ import type { Cdp } from '../../../protocol/protocol.js'; -import type { ICdpClient, ICdpConnection } from '../../BidiMapper.js'; +import type { CdpClient, CdpConnection } from '../../BidiMapper.js'; import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; export declare class CdpProcessor { #private; - constructor(browsingContextStorage: BrowsingContextStorage, cdpConnection: ICdpConnection, browserCdpClient: ICdpClient); + constructor(browsingContextStorage: BrowsingContextStorage, cdpConnection: CdpConnection, browserCdpClient: CdpClient); getSession(params: Cdp.GetSessionParameters): Cdp.GetSessionResult; sendCommand(params: Cdp.SendCommandParameters): Promise; } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/cdp/CdpProcessor.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/cdp/CdpProcessor.js.map index d8a44c2f..34c685ac 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/cdp/CdpProcessor.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/cdp/CdpProcessor.js.map @@ -1 +1 @@ -{"version":3,"file":"CdpProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/cdp/CdpProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAMH,MAAa,YAAY;IACd,uBAAuB,CAAyB;IAChD,cAAc,CAAiB;IAC/B,iBAAiB,CAAa;IAEvC,YACE,sBAA8C,EAC9C,aAA6B,EAC7B,gBAA4B;QAE5B,IAAI,CAAC,uBAAuB,GAAG,sBAAsB,CAAC;QACtD,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC5C,CAAC;IAED,UAAU,CAAC,MAAgC;QACzC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC/B,MAAM,SAAS,GACb,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC;QAC1E,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,OAAO,EAAC,OAAO,EAAE,SAAS,EAAC,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,WAAW,CACf,MAAiC;QAEjC,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO;YAC3B,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC;YAClD,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QACtE,OAAO;YACL,MAAM;YACN,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC;IACJ,CAAC;CACF;AArCD,oCAqCC"} \ No newline at end of file +{"version":3,"file":"CdpProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/cdp/CdpProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAMH,MAAa,YAAY;IACd,uBAAuB,CAAyB;IAChD,cAAc,CAAgB;IAC9B,iBAAiB,CAAY;IAEtC,YACE,sBAA8C,EAC9C,aAA4B,EAC5B,gBAA2B;QAE3B,IAAI,CAAC,uBAAuB,GAAG,sBAAsB,CAAC;QACtD,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC5C,CAAC;IAED,UAAU,CAAC,MAAgC;QACzC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC/B,MAAM,SAAS,GACb,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC;QAC1E,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,OAAO,EAAC,OAAO,EAAE,SAAS,EAAC,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,WAAW,CACf,MAAiC;QAEjC,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO;YAC3B,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC;YAClD,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QACtE,OAAO;YACL,MAAM;YACN,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC;IACJ,CAAC;CACF;AArCD,oCAqCC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextImpl.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextImpl.d.ts index 7303b8c6..ebbc5039 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextImpl.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextImpl.d.ts @@ -17,16 +17,17 @@ import type { Protocol } from 'devtools-protocol'; import { BrowsingContext } from '../../../protocol/protocol.js'; import { type LoggerFn } from '../../../utils/log.js'; -import type { EventManager } from '../events/EventManager.js'; -import { Realm } from '../script/Realm.js'; +import type { Realm } from '../script/Realm.js'; import type { RealmStorage } from '../script/RealmStorage.js'; +import type { EventManager } from '../session/EventManager.js'; import type { BrowsingContextStorage } from './BrowsingContextStorage.js'; import type { CdpTarget } from './CdpTarget.js'; export declare class BrowsingContextImpl { #private; static readonly LOGGER_PREFIX: "debug:browsingContext"; + readonly userContext: string; private constructor(); - static create(cdpTarget: CdpTarget, realmStorage: RealmStorage, id: BrowsingContext.BrowsingContext, parentId: BrowsingContext.BrowsingContext | null, eventManager: EventManager, browsingContextStorage: BrowsingContextStorage, logger?: LoggerFn): BrowsingContextImpl; + static create(cdpTarget: CdpTarget, realmStorage: RealmStorage, id: BrowsingContext.BrowsingContext, parentId: BrowsingContext.BrowsingContext | null, userContext: string, eventManager: EventManager, browsingContextStorage: BrowsingContextStorage, sharedIdWithFrame: boolean, logger?: LoggerFn): BrowsingContextImpl; static getTimestamp(): number; /** * @see https://html.spec.whatwg.org/multipage/document-sequences.html#navigable diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextImpl.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextImpl.js index 0c9fe555..e7a126ce 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextImpl.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextImpl.js @@ -22,11 +22,12 @@ const assert_js_1 = require("../../../utils/assert.js"); const Deferred_js_1 = require("../../../utils/Deferred.js"); const log_js_1 = require("../../../utils/log.js"); const unitConversions_js_1 = require("../../../utils/unitConversions.js"); -const Realm_js_1 = require("../script/Realm.js"); +const WindowRealm_js_1 = require("../script/WindowRealm.js"); class BrowsingContextImpl { static LOGGER_PREFIX = `${log_js_1.LogType.debug}:browsingContext`; /** The ID of this browsing context. */ #id; + userContext; /** * The ID of the parent browsing context. * If null, this is a top-level context. @@ -35,15 +36,12 @@ class BrowsingContextImpl { /** Direct children browsing contexts. */ #children = new Set(); #browsingContextStorage; - #deferreds = { - Page: { - navigatedWithinDocument: new Deferred_js_1.Deferred(), - lifecycleEvent: { - DOMContentLoaded: new Deferred_js_1.Deferred(), - load: new Deferred_js_1.Deferred(), - }, - frameStartedLoading: new Deferred_js_1.Deferred(), - }, + #lifecycle = { + DOMContentLoaded: new Deferred_js_1.Deferred(), + load: new Deferred_js_1.Deferred(), + }; + #navigation = { + withinDocument: new Deferred_js_1.Deferred(), }; #url = 'about:blank'; #eventManager; @@ -51,18 +49,21 @@ class BrowsingContextImpl { #loaderId; #cdpTarget; #maybeDefaultRealm; + #sharedIdWithFrame; #logger; - constructor(cdpTarget, realmStorage, id, parentId, eventManager, browsingContextStorage, logger) { + constructor(cdpTarget, realmStorage, id, parentId, userContext, eventManager, browsingContextStorage, sharedIdWithFrame, logger) { this.#cdpTarget = cdpTarget; this.#realmStorage = realmStorage; this.#id = id; this.#parentId = parentId; + this.userContext = userContext; this.#eventManager = eventManager; this.#browsingContextStorage = browsingContextStorage; + this.#sharedIdWithFrame = sharedIdWithFrame; this.#logger = logger; } - static create(cdpTarget, realmStorage, id, parentId, eventManager, browsingContextStorage, logger) { - const context = new BrowsingContextImpl(cdpTarget, realmStorage, id, parentId, eventManager, browsingContextStorage, logger); + static create(cdpTarget, realmStorage, id, parentId, userContext, eventManager, browsingContextStorage, sharedIdWithFrame, logger) { + const context = new BrowsingContextImpl(cdpTarget, realmStorage, id, parentId, userContext, eventManager, browsingContextStorage, sharedIdWithFrame, logger); context.#initListeners(); browsingContextStorage.addContext(context); if (!context.isTopLevelContext()) { @@ -98,7 +99,7 @@ class BrowsingContextImpl { this.parent.#children.delete(this.id); } // Fail all ongoing navigations. - this.#failDeferredsIfNotFinished(); + this.#failLifecycleIfNotFinished(); this.#eventManager.registerEvent({ type: 'event', method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.ContextDestroyed, @@ -168,10 +169,10 @@ class BrowsingContextImpl { return this.#url; } async lifecycleLoaded() { - await this.#deferreds.Page.lifecycleEvent.load; + await this.#lifecycle.load; } async targetUnblockedOrThrow() { - const result = await this.#cdpTarget.targetUnblocked; + const result = await this.#cdpTarget.unblocked; if (result.kind === 'error') { throw result.error; } @@ -207,6 +208,7 @@ class BrowsingContextImpl { return { context: this.#id, url: this.url, + userContext: this.userContext, children: maxDepth > 0 ? this.directChildren.map((c) => c.serializeToBidiValue(maxDepth - 1, false)) : null, @@ -233,7 +235,7 @@ class BrowsingContextImpl { } const timestamp = BrowsingContextImpl.getTimestamp(); this.#url = params.url; - this.#deferreds.Page.navigatedWithinDocument.resolve(params); + this.#navigation.withinDocument.resolve(params); this.#eventManager.registerEvent({ type: 'event', method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated, @@ -289,7 +291,7 @@ class BrowsingContextImpl { url: this.#url, }, }, this.id); - this.#deferreds.Page.lifecycleEvent.DOMContentLoaded.resolve(params); + this.#lifecycle.DOMContentLoaded.resolve(params); break; case 'load': this.#eventManager.registerEvent({ @@ -302,7 +304,7 @@ class BrowsingContextImpl { url: this.#url, }, }, this.id); - this.#deferreds.Page.lifecycleEvent.load.resolve(params); + this.#lifecycle.load.resolve(params); break; } }); @@ -327,11 +329,7 @@ class BrowsingContextImpl { default: return; } - const realm = new Realm_js_1.Realm(this.#realmStorage, this.#browsingContextStorage, uniqueId, this.id, id, origin, - // XXX: differentiate types. - 'window', - // Sandbox name for isolated world. - sandbox, this.#cdpTarget.cdpClient, this.#eventManager, this.#logger); + const realm = new WindowRealm_js_1.WindowRealm(this.id, this.#browsingContextStorage, this.#cdpTarget.cdpClient, this.#eventManager, id, this.#logger, origin, uniqueId, this.#realmStorage, sandbox, this.#sharedIdWithFrame); if (auxData.isDefault) { this.#maybeDefaultRealm = realm; // Initialize ChannelProxy listeners for all the channels of all the @@ -382,8 +380,8 @@ class BrowsingContextImpl { #documentChanged(loaderId) { // Same document navigation. if (loaderId === undefined || this.#loaderId === loaderId) { - if (this.#deferreds.Page.navigatedWithinDocument.isFinished) { - this.#deferreds.Page.navigatedWithinDocument = + if (this.#navigation.withinDocument.isFinished) { + this.#navigation.withinDocument = new Deferred_js_1.Deferred(); } else { @@ -391,31 +389,30 @@ class BrowsingContextImpl { } return; } - this.#resetDeferredsIfFinished(); + this.#resetLifecycleIfFinished(); this.#loaderId = loaderId; } - #resetDeferredsIfFinished() { - if (this.#deferreds.Page.lifecycleEvent.DOMContentLoaded.isFinished) { - this.#deferreds.Page.lifecycleEvent.DOMContentLoaded = + #resetLifecycleIfFinished() { + if (this.#lifecycle.DOMContentLoaded.isFinished) { + this.#lifecycle.DOMContentLoaded = new Deferred_js_1.Deferred(); } else { this.#logger?.(BrowsingContextImpl.LOGGER_PREFIX, 'Document changed (DOMContentLoaded)'); } - if (this.#deferreds.Page.lifecycleEvent.load.isFinished) { - this.#deferreds.Page.lifecycleEvent.load = - new Deferred_js_1.Deferred(); + if (this.#lifecycle.load.isFinished) { + this.#lifecycle.load = new Deferred_js_1.Deferred(); } else { this.#logger?.(BrowsingContextImpl.LOGGER_PREFIX, 'Document changed (load)'); } } - #failDeferredsIfNotFinished() { - if (!this.#deferreds.Page.lifecycleEvent.DOMContentLoaded.isFinished) { - this.#deferreds.Page.lifecycleEvent.DOMContentLoaded.reject(new protocol_js_1.UnknownErrorException('navigation canceled')); + #failLifecycleIfNotFinished() { + if (!this.#lifecycle.DOMContentLoaded.isFinished) { + this.#lifecycle.DOMContentLoaded.reject(new protocol_js_1.UnknownErrorException('navigation canceled')); } - if (!this.#deferreds.Page.lifecycleEvent.load.isFinished) { - this.#deferreds.Page.lifecycleEvent.load.reject(new protocol_js_1.UnknownErrorException('navigation canceled')); + if (!this.#lifecycle.load.isFinished) { + this.#lifecycle.load.reject(new protocol_js_1.UnknownErrorException('navigation canceled')); } } async navigate(url, wait) { @@ -441,19 +438,19 @@ class BrowsingContextImpl { case "interactive" /* BrowsingContext.ReadinessState.Interactive */: // No `loaderId` means same-document navigation. if (cdpNavigateResult.loaderId === undefined) { - await this.#deferreds.Page.navigatedWithinDocument; + await this.#navigation.withinDocument; } else { - await this.#deferreds.Page.lifecycleEvent.DOMContentLoaded; + await this.#lifecycle.DOMContentLoaded; } break; case "complete" /* BrowsingContext.ReadinessState.Complete */: // No `loaderId` means same-document navigation. if (cdpNavigateResult.loaderId === undefined) { - await this.#deferreds.Page.navigatedWithinDocument; + await this.#navigation.withinDocument; } else { - await this.lifecycleLoaded(); + await this.#lifecycle.load; } break; } @@ -468,15 +465,15 @@ class BrowsingContextImpl { await this.#cdpTarget.cdpClient.sendCommand('Page.reload', { ignoreCache, }); - this.#resetDeferredsIfFinished(); + this.#resetLifecycleIfFinished(); switch (wait) { case "none" /* BrowsingContext.ReadinessState.None */: break; case "interactive" /* BrowsingContext.ReadinessState.Interactive */: - await this.#deferreds.Page.lifecycleEvent.DOMContentLoaded; + await this.#lifecycle.DOMContentLoaded; break; case "complete" /* BrowsingContext.ReadinessState.Complete */: - await this.lifecycleLoaded(); + await this.#lifecycle.load; break; } return { diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextImpl.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextImpl.js.map index d3bb364d..ded60412 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextImpl.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextImpl.js.map @@ -1 +1 @@ -{"version":3,"file":"BrowsingContextImpl.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/context/BrowsingContextImpl.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAIH,+DAUuC;AACvC,wDAAgD;AAChD,4DAAoD;AACpD,kDAA6D;AAC7D,0EAA+D;AAE/D,iDAAyC;AAMzC,MAAa,mBAAmB;IAC9B,MAAM,CAAU,aAAa,GAAG,GAAG,gBAAO,CAAC,KAAK,kBAA2B,CAAC;IAE5E,uCAAuC;IAC9B,GAAG,CAAkC;IAE9C;;;OAGG;IACM,SAAS,CAAyC;IAE3D,yCAAyC;IAChC,SAAS,GAAG,IAAI,GAAG,EAAmC,CAAC;IAEvD,uBAAuB,CAAyB;IAEhD,UAAU,GAAG;QACpB,IAAI,EAAE;YACJ,uBAAuB,EACrB,IAAI,sBAAQ,EAA8C;YAC5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AG,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IACtC,OAAO;QACL,CAAC;QACD,CAAC;QACD,KAAK,EAAE,IAAI,CAAC,GAAG,CACb,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,EAC5D,CAAC,CACF;QACD,MAAM,EAAE,IAAI,CAAC,GAAG,CACd,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,EAC9D,CAAC,CACF;KACF,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,KAAa;IACjC,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IACrB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,sCAAwB,CAAC,oBAAoB,KAAK,EAAE,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;AACzB,CAAC"} \ No newline at end of file +{"version":3,"file":"BrowsingContextImpl.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/context/BrowsingContextImpl.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAIH,+DAUuC;AACvC,wDAAgD;AAChD,4DAAoD;AACpD,kDAA6D;AAC7D,0EAA+D;AAG/D,6DAAqD;AAMrD,MAAa,mBAAmB;IAC9B,MAAM,CAAU,aAAa,GAAG,GAAG,gBAAO,CAAC,KAAK,kBAA2B,CAAC;IAE5E,uCAAuC;IAC9B,GAAG,CAAkC;IACrC,WAAW,CAAS;IAE7B;;;OAGG;IACM,SAAS,CAAyC;IAE3D,yCAAyC;IAChC,SAAS,GAAG,IAAI,GAAG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AC;QACD,KAAK,EAAE,IAAI,CAAC,GAAG,CACb,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,EAC5D,CAAC,CACF;QACD,MAAM,EAAE,IAAI,CAAC,GAAG,CACd,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,EAC9D,CAAC,CACF;KACF,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,KAAa;IACjC,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IACrB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,sCAAwB,CAAC,oBAAoB,KAAK,EAAE,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextProcessor.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextProcessor.d.ts index 094e6713..b394a6f5 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextProcessor.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextProcessor.d.ts @@ -1,15 +1,15 @@ -import type { ICdpClient } from '../../../cdp/CdpClient.js'; -import type { ICdpConnection } from '../../../cdp/CdpConnection.js'; -import { BrowsingContext, type EmptyResult } from '../../../protocol/protocol.js'; +import type { CdpClient } from '../../../cdp/CdpClient.js'; +import type { CdpConnection } from '../../../cdp/CdpConnection.js'; +import { BrowsingContext, type EmptyResult, type Browser } from '../../../protocol/protocol.js'; import { type LoggerFn } from '../../../utils/log.js'; -import type { EventManager } from '../events/EventManager.js'; import type { NetworkStorage } from '../network/NetworkStorage.js'; import type { PreloadScriptStorage } from '../script/PreloadScriptStorage.js'; import type { RealmStorage } from '../script/RealmStorage.js'; +import type { EventManager } from '../session/EventManager.js'; import type { BrowsingContextStorage } from './BrowsingContextStorage.js'; export declare class BrowsingContextProcessor { #private; - constructor(cdpConnection: ICdpConnection, browserCdpClient: ICdpClient, selfTargetId: string, eventManager: EventManager, browsingContextStorage: BrowsingContextStorage, realmStorage: RealmStorage, networkStorage: NetworkStorage, preloadScriptStorage: PreloadScriptStorage, acceptInsecureCerts: boolean, logger?: LoggerFn); + constructor(cdpConnection: CdpConnection, browserCdpClient: CdpClient, selfTargetId: string, eventManager: EventManager, browsingContextStorage: BrowsingContextStorage, realmStorage: RealmStorage, networkStorage: NetworkStorage, preloadScriptStorage: PreloadScriptStorage, acceptInsecureCerts: boolean, sharedIdWithFrame: boolean, defaultUserContextId: Browser.UserContext, logger?: LoggerFn); getTree(params: BrowsingContext.GetTreeParameters): BrowsingContext.GetTreeResult; create(params: BrowsingContext.CreateParameters): Promise; navigate(params: BrowsingContext.NavigateParameters): Promise; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextProcessor.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextProcessor.js index 56512170..8e1e2ca4 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextProcessor.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextProcessor.js @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.BrowsingContextProcessor = void 0; const protocol_js_1 = require("../../../protocol/protocol.js"); const log_js_1 = require("../../../utils/log.js"); -const Realm_js_1 = require("../script/Realm.js"); +const DedicatedWorkerRealm_js_1 = require("../script/DedicatedWorkerRealm.js"); const BrowsingContextImpl_js_1 = require("./BrowsingContextImpl.js"); const CdpTarget_js_1 = require("./CdpTarget.js"); class BrowsingContextProcessor { @@ -14,10 +14,12 @@ class BrowsingContextProcessor { #browsingContextStorage; #networkStorage; #acceptInsecureCerts; + #sharedIdWithFrame; #preloadScriptStorage; #realmStorage; + #defaultUserContextId; #logger; - constructor(cdpConnection, browserCdpClient, selfTargetId, eventManager, browsingContextStorage, realmStorage, networkStorage, preloadScriptStorage, acceptInsecureCerts, logger) { + constructor(cdpConnection, browserCdpClient, selfTargetId, eventManager, browsingContextStorage, realmStorage, networkStorage, preloadScriptStorage, acceptInsecureCerts, sharedIdWithFrame, defaultUserContextId, logger) { this.#acceptInsecureCerts = acceptInsecureCerts; this.#cdpConnection = cdpConnection; this.#browserCdpClient = browserCdpClient; @@ -27,6 +29,8 @@ class BrowsingContextProcessor { this.#preloadScriptStorage = preloadScriptStorage; this.#networkStorage = networkStorage; this.#realmStorage = realmStorage; + this.#sharedIdWithFrame = sharedIdWithFrame; + this.#defaultUserContextId = defaultUserContextId; this.#logger = logger; this.#setEventListeners(browserCdpClient); } @@ -40,27 +44,51 @@ class BrowsingContextProcessor { } async create(params) { let referenceContext; + let userContext = params.userContext ?? 'default'; if (params.referenceContext !== undefined) { referenceContext = this.#browsingContextStorage.getContext(params.referenceContext); if (!referenceContext.isTopLevelContext()) { throw new protocol_js_1.InvalidArgumentException(`referenceContext should be a top-level context`); } + userContext = referenceContext.userContext; } - let result; + let newWindow = false; switch (params.type) { case "tab" /* BrowsingContext.CreateType.Tab */: - result = await this.#browserCdpClient.sendCommand('Target.createTarget', { - url: 'about:blank', - newWindow: false, - }); + newWindow = false; break; case "window" /* BrowsingContext.CreateType.Window */: - result = await this.#browserCdpClient.sendCommand('Target.createTarget', { - url: 'about:blank', - newWindow: true, - }); + newWindow = true; break; } + if (userContext !== 'default') { + const existingContexts = this.#browsingContextStorage + .getAllContexts() + .filter((context) => context.userContext === userContext); + if (!existingContexts.length) { + // If there are no contexts in the given user context, we need to set + // newWindow to true as newWindow=false will be rejected. + newWindow = true; + } + } + let result; + try { + result = await this.#browserCdpClient.sendCommand('Target.createTarget', { + url: 'about:blank', + newWindow, + browserContextId: userContext === 'default' ? undefined : userContext, + }); + } + catch (err) { + if ( + // See https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/devtools/protocol/target_handler.cc;l=90;drc=e80392ac11e48a691f4309964cab83a3a59e01c8 + err.message.startsWith('Failed to find browser context with id') || + // See https://source.chromium.org/chromium/chromium/src/+/main:headless/lib/browser/protocol/target_handler.cc;l=49;drc=e80392ac11e48a691f4309964cab83a3a59e01c8 + err.message === 'browserContextId') { + throw new protocol_js_1.NoSuchUserContextException(`The context ${userContext} was not found`); + } + throw err; + } // Wait for the new tab to be loaded to avoid race conditions in the // `browsingContext` events, when the `browsingContext.domContentLoaded` and // `browsingContext.load` events from the initial `about:blank` navigation @@ -178,7 +206,7 @@ class BrowsingContextProcessor { #handleFrameAttachedEvent(params) { const parentBrowsingContext = this.#browsingContextStorage.findContext(params.parentFrameId); if (parentBrowsingContext !== undefined) { - BrowsingContextImpl_js_1.BrowsingContextImpl.create(parentBrowsingContext.cdpTarget, this.#realmStorage, params.frameId, params.parentFrameId, this.#eventManager, this.#browsingContextStorage, this.#logger); + BrowsingContextImpl_js_1.BrowsingContextImpl.create(parentBrowsingContext.cdpTarget, this.#realmStorage, params.frameId, params.parentFrameId, parentBrowsingContext.userContext, this.#eventManager, this.#browsingContextStorage, this.#sharedIdWithFrame, this.#logger); } } #handleFrameDetachedEvent(params) { @@ -198,8 +226,7 @@ class BrowsingContextProcessor { if (targetInfo.targetId === this.#selfTargetId) { break; } - this.#setEventListeners(targetCdpClient); - const cdpTarget = CdpTarget_js_1.CdpTarget.create(targetInfo.targetId, targetCdpClient, this.#browserCdpClient, sessionId, this.#realmStorage, this.#eventManager, this.#preloadScriptStorage, this.#networkStorage, this.#acceptInsecureCerts); + const cdpTarget = this.#createCdpTarget(targetCdpClient, targetInfo); const maybeContext = this.#browsingContextStorage.findContext(targetInfo.targetId); if (maybeContext) { // OOPiF. @@ -207,20 +234,26 @@ class BrowsingContextProcessor { } else { // New context. - BrowsingContextImpl_js_1.BrowsingContextImpl.create(cdpTarget, this.#realmStorage, targetInfo.targetId, null, this.#eventManager, this.#browsingContextStorage, this.#logger); + BrowsingContextImpl_js_1.BrowsingContextImpl.create(cdpTarget, this.#realmStorage, targetInfo.targetId, null, targetInfo.browserContextId && + targetInfo.browserContextId !== this.#defaultUserContextId + ? targetInfo.browserContextId + : 'default', this.#eventManager, this.#browsingContextStorage, this.#sharedIdWithFrame, this.#logger); } return; } case 'worker': { - this.#setEventListeners(targetCdpClient); - const cdpTarget = CdpTarget_js_1.CdpTarget.create(targetInfo.targetId, targetCdpClient, this.#browserCdpClient, sessionId, this.#realmStorage, this.#eventManager, this.#preloadScriptStorage, this.#networkStorage, this.#acceptInsecureCerts); const browsingContext = parentSessionCdpClient.sessionId && this.#browsingContextStorage.findContextBySession(parentSessionCdpClient.sessionId); // If there is no browsing context, this worker is already terminated. if (!browsingContext) { break; } - this.#handleWorkerTarget(cdpTarget, browsingContext.id); + const cdpTarget = this.#createCdpTarget(targetCdpClient, targetInfo); + this.#handleWorkerTarget(cdpTarget, this.#realmStorage.getRealm({ + browsingContextId: browsingContext.id, + type: 'window', + sandbox: undefined, + })); return; } } @@ -231,12 +264,16 @@ class BrowsingContextProcessor { .then(() => parentSessionCdpClient.sendCommand('Target.detachFromTarget', params)) .catch((error) => this.#logger?.(log_js_1.LogType.debugError, error)); } + #createCdpTarget(targetCdpClient, targetInfo) { + this.#setEventListeners(targetCdpClient); + return CdpTarget_js_1.CdpTarget.create(targetInfo.targetId, targetCdpClient, this.#browserCdpClient, this.#realmStorage, this.#eventManager, this.#preloadScriptStorage, this.#networkStorage, this.#acceptInsecureCerts, this.#logger); + } #workers = new Map(); - #handleWorkerTarget(cdpTarget, browsingContextId) { + #handleWorkerTarget(cdpTarget, ownerRealm) { cdpTarget.cdpClient.on('Runtime.executionContextCreated', (params) => { const { uniqueId, id, origin } = params.context; - const realm = new Realm_js_1.Realm(this.#realmStorage, this.#browsingContextStorage, uniqueId, browsingContextId, id, (0, BrowsingContextImpl_js_1.serializeOrigin)(origin), 'dedicated-worker', undefined, cdpTarget.cdpClient, this.#eventManager, this.#logger); - this.#workers.set(cdpTarget.cdpSessionId, realm); + const workerRealm = new DedicatedWorkerRealm_js_1.DedicatedWorkerRealm(cdpTarget.cdpClient, this.#eventManager, id, this.#logger, (0, BrowsingContextImpl_js_1.serializeOrigin)(origin), ownerRealm, uniqueId, this.#realmStorage); + this.#workers.set(cdpTarget.cdpSessionId, workerRealm); }); } #handleDetachedFromTargetEvent(params) { diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextProcessor.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextProcessor.js.map index cd1b8683..41d5cc8b 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextProcessor.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/BrowsingContextProcessor.js.map @@ -1 +1 @@ -{"version":3,"file":"BrowsingContextProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/context/BrowsingContextProcessor.ts"],"names":[],"mappings":";;;AAoBA,+DAIuC;AAEvC,kDAA6D;AAI7D,iDAAyC;AAGzC,qEAA8E;AAE9E,iDAAyC;AAEzC,MAAa,wBAAwB;IAC1B,iBAAiB,CAAa;IAC9B,cAAc,CAAiB;IAC/B,aAAa,CAAS;IACtB,aAAa,CAAe;IAE5B,uBAAuB,CAAyB;IAChD,eAAe,CAAiB;IAChC,oBAAoB,CAAU;IAC9B,qBAAqB,CAAuB;IAC5C,aAAa,CAAe;IAE5B,OAAO,CAAY;IAE5B,YACE,aAA6B,EAC7B,gBAA4B,EAC5B,YAAoB,EACpB,YAA0B,EAC1B,sB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I,CAAC,uBAAuB,CAAC,oBAAoB,CAC/D,MAAM,CAAC,SAAS,CACjB,CAAC;QACF,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,OAAO,EAAE,CAAC;YAClB,IAAI,CAAC,qBAAqB;iBACvB,IAAI,CAAC,EAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,EAAC,CAAC;iBAC5B,GAAG,CAAC,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;YAC7D,OAAO;QACT,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACnD,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC;gBAC9B,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS;aACzC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,6BAA6B,CAC3B,MAA8C;QAE9C,MAAM,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC,WAAW,CACtD,MAAM,CAAC,UAAU,CAAC,QAAQ,CAC3B,CAAC;QACF,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;CACF;AA3bD,4DA2bC"} \ No newline at end of file +{"version":3,"file":"BrowsingContextProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/context/BrowsingContextProcessor.ts"],"names":[],"mappings":";;;AAoBA,+DAMuC;AAEvC,kDAA6D;AAE7D,+EAAuE;AAMvE,qEAA8E;AAE9E,iDAAyC;AAEzC,MAAa,wBAAwB;IAC1B,iBAAiB,CAAY;IAC7B,cAAc,CAAgB;IAC9B,aAAa,CAAS;IACtB,aAAa,CAAe;IAE5B,uBAAuB,CAAyB;IAChD,eAAe,CAAiB;IAChC,oBAAoB,CAAU;I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BAA8B,CAC5B,MAA+C;QAE/C,MAAM,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC,oBAAoB,CAC/D,MAAM,CAAC,SAAS,CACjB,CAAC;QACF,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,OAAO,EAAE,CAAC;YAClB,IAAI,CAAC,qBAAqB;iBACvB,IAAI,CAAC,EAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,EAAC,CAAC;iBAC5B,GAAG,CAAC,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;YAC7D,OAAO;QACT,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACnD,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC;gBAC9B,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS;aACzC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,6BAA6B,CAC3B,MAA8C;QAE9C,MAAM,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC,WAAW,CACtD,MAAM,CAAC,UAAU,CAAC,QAAQ,CAC3B,CAAC;QACF,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;CACF;AA9dD,4DA8dC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/CdpTarget.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/CdpTarget.d.ts index 04aa77ef..ad3ec7ec 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/CdpTarget.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/CdpTarget.d.ts @@ -1,21 +1,22 @@ import type { Protocol } from 'devtools-protocol'; -import type { ICdpClient } from '../../../cdp/CdpClient.js'; +import type { CdpClient } from '../../../cdp/CdpClient.js'; import { Deferred } from '../../../utils/Deferred.js'; +import type { LoggerFn } from '../../../utils/log.js'; import type { Result } from '../../../utils/result.js'; -import type { EventManager } from '../events/EventManager.js'; import type { NetworkStorage } from '../network/NetworkStorage.js'; import type { ChannelProxy } from '../script/ChannelProxy.js'; import type { PreloadScriptStorage } from '../script/PreloadScriptStorage.js'; import type { RealmStorage } from '../script/RealmStorage.js'; +import type { EventManager } from '../session/EventManager.js'; export declare class CdpTarget { #private; - static create(targetId: Protocol.Target.TargetID, cdpClient: ICdpClient, browserCdpClient: ICdpClient, cdpSessionId: Protocol.Target.SessionID, realmStorage: RealmStorage, eventManager: EventManager, preloadScriptStorage: PreloadScriptStorage, networkStorage: NetworkStorage, acceptInsecureCerts: boolean): CdpTarget; - constructor(targetId: Protocol.Target.TargetID, cdpClient: ICdpClient, browserCdpClient: ICdpClient, cdpSessionId: Protocol.Target.SessionID, eventManager: EventManager, preloadScriptStorage: PreloadScriptStorage, networkStorage: NetworkStorage, acceptInsecureCerts: boolean); - /** Returns a promise that resolves when the target is unblocked. */ - get targetUnblocked(): Deferred>; - get targetId(): Protocol.Target.TargetID; - get cdpClient(): ICdpClient; - get browserCdpClient(): ICdpClient; + static create(targetId: Protocol.Target.TargetID, cdpClient: CdpClient, browserCdpClient: CdpClient, realmStorage: RealmStorage, eventManager: EventManager, preloadScriptStorage: PreloadScriptStorage, networkStorage: NetworkStorage, acceptInsecureCerts: boolean, logger?: LoggerFn): CdpTarget; + constructor(targetId: Protocol.Target.TargetID, cdpClient: CdpClient, browserCdpClient: CdpClient, eventManager: EventManager, preloadScriptStorage: PreloadScriptStorage, networkStorage: NetworkStorage, acceptInsecureCerts: boolean); + /** Returns a deferred that resolves when the target is unblocked. */ + get unblocked(): Deferred>; + get id(): Protocol.Target.TargetID; + get cdpClient(): CdpClient; + get browserCdpClient(): CdpClient; /** Needed for CDP escape path. */ get cdpSessionId(): Protocol.Target.SessionID; /** Calls `Fetch.enable` with the added network intercepts. */ diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/CdpTarget.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/CdpTarget.js index d5e29c68..5a23c2a2 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/CdpTarget.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/CdpTarget.js @@ -5,18 +5,17 @@ const Deferred_js_1 = require("../../../utils/Deferred.js"); const LogManager_js_1 = require("../log/LogManager.js"); const NetworkManager_js_1 = require("../network/NetworkManager.js"); class CdpTarget { - #targetId; + #id; #cdpClient; #browserCdpClient; - #cdpSessionId; #eventManager; #preloadScriptStorage; #networkStorage; #targetUnblocked = new Deferred_js_1.Deferred(); #acceptInsecureCerts; - static create(targetId, cdpClient, browserCdpClient, cdpSessionId, realmStorage, eventManager, preloadScriptStorage, networkStorage, acceptInsecureCerts) { - const cdpTarget = new CdpTarget(targetId, cdpClient, browserCdpClient, cdpSessionId, eventManager, preloadScriptStorage, networkStorage, acceptInsecureCerts); - LogManager_js_1.LogManager.create(cdpTarget, realmStorage, eventManager); + static create(targetId, cdpClient, browserCdpClient, realmStorage, eventManager, preloadScriptStorage, networkStorage, acceptInsecureCerts, logger) { + const cdpTarget = new CdpTarget(targetId, cdpClient, browserCdpClient, eventManager, preloadScriptStorage, networkStorage, acceptInsecureCerts); + LogManager_js_1.LogManager.create(cdpTarget, realmStorage, eventManager, logger); NetworkManager_js_1.NetworkManager.create(cdpTarget, eventManager, networkStorage); cdpTarget.#setEventListeners(); // No need to await. @@ -24,22 +23,21 @@ class CdpTarget { void cdpTarget.#unblock(); return cdpTarget; } - constructor(targetId, cdpClient, browserCdpClient, cdpSessionId, eventManager, preloadScriptStorage, networkStorage, acceptInsecureCerts) { - this.#targetId = targetId; + constructor(targetId, cdpClient, browserCdpClient, eventManager, preloadScriptStorage, networkStorage, acceptInsecureCerts) { + this.#id = targetId; this.#cdpClient = cdpClient; - this.#cdpSessionId = cdpSessionId; this.#eventManager = eventManager; this.#preloadScriptStorage = preloadScriptStorage; this.#networkStorage = networkStorage; this.#browserCdpClient = browserCdpClient; this.#acceptInsecureCerts = acceptInsecureCerts; } - /** Returns a promise that resolves when the target is unblocked. */ - get targetUnblocked() { + /** Returns a deferred that resolves when the target is unblocked. */ + get unblocked() { return this.#targetUnblocked; } - get targetId() { - return this.#targetId; + get id() { + return this.#id; } get cdpClient() { return this.#cdpClient; @@ -49,7 +47,8 @@ class CdpTarget { } /** Needed for CDP escape path. */ get cdpSessionId() { - return this.#cdpSessionId; + // SAFETY we got the client by it's id for creating + return this.#cdpClient.sessionId; } /** Calls `Fetch.enable` with the added network intercepts. */ async fetchEnable() { @@ -116,7 +115,7 @@ class CdpTarget { params: { event, params, - session: this.#cdpSessionId, + session: this.cdpSessionId, }, }, null); }); diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/CdpTarget.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/CdpTarget.js.map index 515f2861..63b371bb 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/CdpTarget.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/context/CdpTarget.js.map @@ -1 +1 @@ -{"version":3,"file":"CdpTarget.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/context/CdpTarget.ts"],"names":[],"mappings":";;;AAoBA,4DAAoD;AAGpD,wDAAgD;AAChD,oEAA4D;AAM5D,MAAa,SAAS;IACX,SAAS,CAA2B;IACpC,UAAU,CAAa;IACvB,iBAAiB,CAAa;IAC9B,aAAa,CAA4B;IACzC,aAAa,CAAe;IAE5B,qBAAqB,CAAuB;IAC5C,eAAe,CAAiB;IAEhC,gBAAgB,GAAG,IAAI,sBAAQ,EAAgB,C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AC;YACnD,MAAM,EAAE,IAAI;SACb,CAAC,EAAE,CAAC;YACH,MAAM,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;CACF;AA3LD,8BA2LC"} \ No newline at end of file +{"version":3,"file":"CdpTarget.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/context/CdpTarget.ts"],"names":[],"mappings":";;;AAoBA,4DAAoD;AAGpD,wDAAgD;AAChD,oEAA4D;AAO5D,MAAa,SAAS;IACX,GAAG,CAA2B;IAC9B,UAAU,CAAY;IACtB,iBAAiB,CAAY;IAC7B,aAAa,CAAe;IAE5B,qBAAqB,CAAuB;IAC5C,eAAe,CAAiB;IAEhC,gBAAgB,GAAG,IAAI,sBAAQ,EAAgB,CAAC;IAChD,oBAAoB,CAAU;IAEvC,MAAM,CAAC,MAAM,CACX,QAAkC,EAClC,SAAoB,EACpB,gBAA2B,EAC3B,YAA0B,EAC1B,YAA0B,EAC1B,oBAA0C,EAC1C,cAA8B,EAC9B,mBAA4B,EAC5B,MAAiB;QAEjB,MAAM,SAAS,GAAG,IAAI,SAAS,CAC7B,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,mBAAmB,CACpB,CAAC;QAEF,0BAAU,CAAC,MAAM,CAAC,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;QACjE,kCAAc,CAAC,MAAM,CAAC,SAAS,EAAE,YAAY,EAAE,cAAc,CAAC,CAAC;QAE/D,SAAS,CAAC,kBAAkB,EAAE,CAAC;QAE/B,oBAAoB;QACpB,0DAA0D;QAC1D,KAAK,SAAS,CAAC,QAAQ,EAAE,CAAC;QAE1B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,YACE,QAAkC,EAClC,SAAoB,EACpB,gBAA2B,EAC3B,YAA0B,EAC1B,oBAA0C,EAC1C,cAA8B,EAC9B,mBAA4B;QAE5B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AO;gBACb,MAAM,EAAE,OAAO,KAAK,EAAE;gBACtB,MAAM,EAAE;oBACN,KAAK;oBACL,MAAM;oBACN,OAAO,EAAE,IAAI,CAAC,YAAY;iBAC3B;aACF,EACD,IAAI,CACL,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,qBAAqB;aAC9B,IAAI,EAAE;aACN,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC1C,CAAC;IAED,2CAA2C;IAC3C,KAAK,CAAC,8BAA8B;QAClC,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC;YACnD,MAAM,EAAE,IAAI;SACb,CAAC,EAAE,CAAC;YACH,MAAM,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;CACF;AAxLD,8BAwLC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/EventManager.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/EventManager.js.map deleted file mode 100644 index 605c686f..00000000 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/EventManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EventManager.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/events/EventManager.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,+DAGuC;AACvC,wDAAgD;AAChD,gEAAwD;AACxD,oEAA4D;AAC5D,8DAAsD;AAEtD,iEAAyD;AAGzD,2CAAiD;AACjD,qEAA6D;AAE7D,MAAM,YAAY;IACP,UAAU,GAAG,IAAI,wBAAS,EAAE,CAAC;IAC7B,UAAU,CAAyC;IACnD,MAAM,CAAsC;IAErD,YACE,KAA0C,EAC1C,SAAiD;QAE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CAAC,IAAI,EAAE,CAAC;iBACvD,MAAM,CACL,CAAC,UAAU,EAAE,EAAE;YACb,oDAAoD;YACpD,UAAU,KAAK,IAAI;gBACnB,mDAAmD;gBACnD,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,UAAU,CAAC,CACtD;iBACA,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAClB,IAAI,CAAC,kBAAkB,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC,CACxD;iBACA,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;QACjD,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;IAChD,CAAC;CACF;AAtND,oCAsNC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/SubscriptionManager.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/SubscriptionManager.js.map deleted file mode 100644 index eee72c67..00000000 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/SubscriptionManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SubscriptionManager.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/events/SubscriptionManager.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,+DAIuC;AAGvC,2CAAuC;AAEvC;;;;;GAKG;AACH,SAAgB,gBAAgB,CAAC,GAAG,CAAU;IAC5C,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAY,EAAE,CAAY,EAAE,EAAE,CAC7C,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,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BAA2B,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACnD,CAAC;QACH,CAAC,CAAC;IACJ,CAAC;CACF;AAxOD,kDAwOC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/events.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/events.js.map deleted file mode 100644 index aaa09655..00000000 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/events.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/events/events.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,+DAGuC;AAEvC;;;GAGG;AACH,SAAgB,UAAU,CAAC,IAAY;IACrC,OAAO,CACL,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,0BAAY,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,KAAK,CACxE,CAAC;AACJ,CAAC;AAJD,gCAIC;AAED;;GAEG;AACH,SAAgB,oBAAoB,CAClC,IAAY;IAEZ,IAAI,CAAC,0BAAY,CAAC,WAAW,CAAC,GAAG,CAAC,IAAa,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACtE,MAAM,IAAI,sCAAwB,CAAC,kBAAkB,IAAI,EAAE,CAAC,CAAC;IAC/D,CAAC;AACH,CAAC;AAND,oDAMC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputProcessor.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputProcessor.d.ts index c5629a0d..8fcdebf6 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputProcessor.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputProcessor.d.ts @@ -1,9 +1,10 @@ -import { Input } from '../../../protocol/protocol.js'; -import type { EmptyResult } from '../../../protocol/webdriver-bidi'; +import { Input, type EmptyResult } from '../../../protocol/protocol.js'; import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; +import type { RealmStorage } from '../script/RealmStorage.js'; export declare class InputProcessor { #private; - constructor(browsingContextStorage: BrowsingContextStorage); + constructor(browsingContextStorage: BrowsingContextStorage, realmStorage: RealmStorage); performActions(params: Input.PerformActionsParameters): Promise; releaseActions(params: Input.ReleaseActionsParameters): Promise; + setFiles(params: Input.SetFilesParameters): Promise; } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputProcessor.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputProcessor.js index f3bc11c9..edd23ba1 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputProcessor.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputProcessor.js @@ -18,13 +18,16 @@ exports.InputProcessor = void 0; * limitations under the License. */ const protocol_js_1 = require("../../../protocol/protocol.js"); +const assert_js_1 = require("../../../utils/assert.js"); const ActionDispatcher_js_1 = require("../input/ActionDispatcher.js"); const InputStateManager_js_1 = require("../input/InputStateManager.js"); class InputProcessor { #browsingContextStorage; + #realmStorage; #inputStateManager = new InputStateManager_js_1.InputStateManager(); - constructor(browsingContextStorage) { + constructor(browsingContextStorage, realmStorage) { this.#browsingContextStorage = browsingContextStorage; + this.#realmStorage = realmStorage; } async performActions(params) { const context = this.#browsingContextStorage.getContext(params.context); @@ -43,6 +46,79 @@ class InputProcessor { this.#inputStateManager.delete(topContext); return {}; } + async setFiles(params) { + const realm = this.#realmStorage.findRealm({ + browsingContextId: params.context, + }); + if (realm === undefined) { + throw new protocol_js_1.NoSuchFrameException(`Could not find browsingContext ${params.context}`); + } + let isFileInput; + try { + const result = await realm.callFunction(String(function getFiles() { + return (this instanceof HTMLInputElement && + this.type === 'file' && + !this.disabled); + }), params.element, [], false, "none" /* Script.ResultOwnership.None */, {}, false); + (0, assert_js_1.assert)(result.type === 'success'); + (0, assert_js_1.assert)(result.result.type === 'boolean'); + isFileInput = result.result.value; + } + catch { + throw new protocol_js_1.NoSuchElementException(`Could not find element ${params.element.sharedId}`); + } + if (!isFileInput) { + throw new protocol_js_1.UnableToSetFileInputException(`Element ${params.element.sharedId} is not a mutable file input.`); + } + // Our goal here is to iterate over the input element files and get their + // file paths. + const paths = []; + for (let i = 0; i < params.files.length; ++i) { + const result = await realm.callFunction(String(function getFiles(index) { + if (!this.files) { + // We use `null` because `item` also returns null. + return null; + } + return this.files.item(index); + }), params.element, [{ type: 'number', value: 0 }], false, "root" /* Script.ResultOwnership.Root */, {}, false); + (0, assert_js_1.assert)(result.type === 'success'); + if (result.result.type !== 'object') { + break; + } + const { handle } = result.result; + (0, assert_js_1.assert)(handle !== undefined); + const { path } = await realm.cdpClient.sendCommand('DOM.getFileInfo', { + objectId: handle, + }); + paths.push(path); + // Cleanup the handle. + void realm.disown(handle).catch(undefined); + } + paths.sort(); + // We create a new array so we preserve the order of the original files. + const sortedFiles = [...params.files].sort(); + if (paths.length !== params.files.length || + sortedFiles.some((path, index) => { + return paths[index] !== path; + })) { + const { objectId } = await realm.deserializeForCdp(params.element); + // This cannot throw since this was just used in `callFunction` above. + (0, assert_js_1.assert)(objectId !== undefined); + await realm.cdpClient.sendCommand('DOM.setFileInputFiles', { + files: params.files, + objectId, + }); + } + else { + // XXX: We should dispatch a trusted event. + await realm.callFunction(String(function dispatchEvent() { + this.dispatchEvent(new Event('cancel', { + bubbles: true, + })); + }), params.element, [], false, "none" /* Script.ResultOwnership.None */, {}, false); + } + return {}; + } #getActionsByTick(params, inputState) { const actionsByTick = []; for (const action of params.actions) { diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputProcessor.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputProcessor.js.map index fc262945..4341a5d5 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputProcessor.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputProcessor.js.map @@ -1 +1 @@ -{"version":3,"file":"InputProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/input/InputProcessor.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,+DAA8E;AAG9E,sEAA8D;AAI9D,wEAAgE;AAEhE,MAAa,cAAc;IAChB,uBAAuB,CAAyB;IAEhD,kBAAkB,GAAG,IAAI,wCAAiB,EAAE,CAAC;IAEtD,YAAY,sBAA8C;QACxD,IAAI,CAAC,uBAAuB,GAAG,sBAAsB,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,MAAsC;QAEtC,MAAM,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACxE,MAAM,UAAU,GAAG,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5D,MAAM,aAAa,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QACjE,MAAM,UAAU,GAAG,IAAI,sCAAgB,CACrC,UAAU,EACV,OAAO,EACP,MAAM,sCAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAC3D,CAAC;QACF,MAAM,UAAU,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;QAChD,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,MAAsC;QAEtC,MAAM,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACxE,MAAM,UAAU,GAAG,OAAO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AC,IAAkB,CAAC,CAAC;YACjE,CAAC;YACD,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAC5C,EAAE,EAAE,MAAM,CAAC,EAAE;gBACb,MAAM,EAAE,IAAI;aACb,CAAC,CAAC,CAAC;YACJ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBACxC,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAC/B,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACzB,CAAC;gBACD,aAAa,CAAC,CAAC,CAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAE,CAAC,CAAC;YACtC,CAAC;QACH,CAAC;QACD,OAAO,aAAa,CAAC;IACvB,CAAC;CACF;AA/ED,wCA+EC"} \ No newline at end of file +{"version":3,"file":"InputProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/input/InputProcessor.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,+DAQuC;AACvC,wDAAgD;AAEhD,sEAA8D;AAI9D,wEAAgE;AAGhE,MAAa,cAAc;IAChB,uBAAuB,CAAyB;IAChD,aAAa,CAAe;IAE5B,kBAAkB,GAAG,IAAI,wCAAiB,EAAE,CAAC;IAEtD,YACE,sBAA8C,EAC9C,YAA0B;QAE1B,IAAI,CAAC,uBAAuB,GAAG,sBAAsB,CAAC;QACtD,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,MAAsC;QAEtC,MAAM,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACxE,MAAM,UAAU,GAAG,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,OAAO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ACJ,CAAC;oBACD,MAAM;gBACR,CAAC;gBACD;oBACE,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,IAAkB,CAAC,CAAC;YACjE,CAAC;YACD,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAC5C,EAAE,EAAE,MAAM,CAAC,EAAE;gBACb,MAAM,EAAE,IAAI;aACb,CAAC,CAAC,CAAC;YACJ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBACxC,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAC/B,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACzB,CAAC;gBACD,aAAa,CAAC,CAAC,CAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAE,CAAC,CAAC;YACtC,CAAC;QACH,CAAC;QACD,OAAO,aAAa,CAAC;IACvB,CAAC;CACF;AAtMD,wCAsMC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputSource.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputSource.d.ts index 365f1aee..d5e18723 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputSource.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/input/InputSource.d.ts @@ -51,13 +51,13 @@ export declare class PointerSource { static ClickContext: { new (x: number, y: number, time: number): { count: number; - "__#87322@#x": number; - "__#87322@#y": number; - "__#87322@#time": number; + "__#89102@#x": number; + "__#89102@#y": number; + "__#89102@#time": number; compare(context: any): boolean; }; - "__#87322@#DOUBLE_CLICK_TIME_MS": number; - "__#87322@#MAX_DOUBLE_CLICK_RADIUS": number; + "__#89102@#DOUBLE_CLICK_TIME_MS": number; + "__#89102@#MAX_DOUBLE_CLICK_RADIUS": number; }; setClickCount(button: number, context: InstanceType): number; getClickCount(button: number): number; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/LogManager.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/LogManager.d.ts index 50fde85b..86d356cb 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/LogManager.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/LogManager.d.ts @@ -1,8 +1,9 @@ +import { type LoggerFn } from '../../../utils/log.js'; import type { CdpTarget } from '../context/CdpTarget.js'; -import type { EventManager } from '../events/EventManager.js'; import type { RealmStorage } from '../script/RealmStorage.js'; +import type { EventManager } from '../session/EventManager.js'; export declare class LogManager { #private; private constructor(); - static create(cdpTarget: CdpTarget, realmStorage: RealmStorage, eventManager: EventManager): LogManager; + static create(cdpTarget: CdpTarget, realmStorage: RealmStorage, eventManager: EventManager, logger?: LoggerFn): LogManager; } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/LogManager.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/LogManager.js index daf9026c..f1505a7a 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/LogManager.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/LogManager.js @@ -2,6 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.LogManager = void 0; const protocol_js_1 = require("../../../protocol/protocol.js"); +const log_js_1 = require("../../../utils/log.js"); const logHelper_js_1 = require("./logHelper.js"); /** Converts CDP StackTrace object to BiDi StackTrace object. */ function getBidiStackTrace(cdpStackTrace) { @@ -31,13 +32,15 @@ class LogManager { #eventManager; #realmStorage; #cdpTarget; - constructor(cdpTarget, realmStorage, eventManager) { + #logger; + constructor(cdpTarget, realmStorage, eventManager, logger) { this.#cdpTarget = cdpTarget; this.#realmStorage = realmStorage; this.#eventManager = eventManager; + this.#logger = logger; } - static create(cdpTarget, realmStorage, eventManager) { - const logManager = new LogManager(cdpTarget, realmStorage, eventManager); + static create(cdpTarget, realmStorage, eventManager, logger) { + const logManager = new LogManager(cdpTarget, realmStorage, eventManager, logger); logManager.#initializeEntryAddedEventListener(); return logManager; } @@ -49,33 +52,37 @@ class LogManager { cdpSessionId: this.#cdpTarget.cdpSessionId, executionContextId: params.executionContextId, }); + if (realm === undefined) { + // Ignore exceptions not attached to any realm. + this.#logger?.(log_js_1.LogType.cdp, params); + return; + } const argsPromise = realm === undefined ? Promise.resolve(params.args) : // Properly serialize arguments if possible. Promise.all(params.args.map((arg) => { return realm.serializeCdpObject(arg, "none" /* Script.ResultOwnership.None */); })); - this.#eventManager.registerPromiseEvent(argsPromise.then((args) => ({ - kind: 'success', - value: { - type: 'event', - method: protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded, - params: { - level: getLogLevel(params.type), - source: { - realm: realm?.realmId ?? 'UNKNOWN', - context: realm?.browsingContextId ?? 'UNKNOWN', + for (const browsingContext of realm.associatedBrowsingContexts) { + this.#eventManager.registerPromiseEvent(argsPromise.then((args) => ({ + kind: 'success', + value: { + type: 'event', + method: protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded, + params: { + level: getLogLevel(params.type), + source: realm.source, + text: (0, logHelper_js_1.getRemoteValuesText)(args, true), + timestamp: Math.round(params.timestamp), + stackTrace: getBidiStackTrace(params.stackTrace), + type: 'console', + // Console method is `warn`, not `warning`. + method: params.type === 'warning' ? 'warn' : params.type, + args, }, - text: (0, logHelper_js_1.getRemoteValuesText)(args, true), - timestamp: Math.round(params.timestamp), - stackTrace: getBidiStackTrace(params.stackTrace), - type: 'console', - // Console method is `warn`, not `warning`. - method: params.type === 'warning' ? 'warn' : params.type, - args, }, - }, - })), realm?.browsingContextId ?? 'UNKNOWN', protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded); + })), browsingContext.id, protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded); + } }); this.#cdpTarget.cdpClient.on('Runtime.exceptionThrown', (params) => { // Try to find realm by `cdpSessionId` and `executionContextId`, @@ -84,24 +91,28 @@ class LogManager { cdpSessionId: this.#cdpTarget.cdpSessionId, executionContextId: params.exceptionDetails.executionContextId, }); - this.#eventManager.registerPromiseEvent(LogManager.#getExceptionText(params, realm).then((text) => ({ - kind: 'success', - value: { - type: 'event', - method: protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded, - params: { - level: "error" /* Log.Level.Error */, - source: { - realm: realm?.realmId ?? 'UNKNOWN', - context: realm?.browsingContextId ?? 'UNKNOWN', + if (realm === undefined) { + // Ignore exceptions not attached to any realm. + this.#logger?.(log_js_1.LogType.cdp, params); + return; + } + for (const browsingContext of realm.associatedBrowsingContexts) { + this.#eventManager.registerPromiseEvent(LogManager.#getExceptionText(params, realm).then((text) => ({ + kind: 'success', + value: { + type: 'event', + method: protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded, + params: { + level: "error" /* Log.Level.Error */, + source: realm.source, + text, + timestamp: Math.round(params.timestamp), + stackTrace: getBidiStackTrace(params.exceptionDetails.stackTrace), + type: 'javascript', }, - text, - timestamp: Math.round(params.timestamp), - stackTrace: getBidiStackTrace(params.exceptionDetails.stackTrace), - type: 'javascript', }, - }, - })), realm?.browsingContextId ?? 'UNKNOWN', protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded); + })), browsingContext.id, protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded); + } }); } /** diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/LogManager.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/LogManager.js.map index 2aee7fec..c4b9aa28 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/LogManager.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/log/LogManager.js.map @@ -1 +1 @@ -{"version":3,"file":"LogManager.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/log/LogManager.ts"],"names":[],"mappings":";;;AAkBA,+DAAwE;AAMxE,iDAAmD;AAEnD,gEAAgE;AAChE,SAAS,iBAAiB,CACxB,aAAsD;IAEtD,MAAM,WAAW,GAAG,aAAa,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;QAC9D,OAAO;YACL,YAAY,EAAE,SAAS,CAAC,YAAY;YACpC,YAAY,EAAE,SAAS,CAAC,YAAY;YACpC,UAAU,EAAE,SAAS,CAAC,UAAU;YAChC,GAAG,EAAE,SAAS,CAAC,GAAG;SACnB,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC,CAAC,CAAC,EAAC,UAAU,EAAE,WAAW,EAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC7D,CAAC;AAED,SAAS,WAAW,CAAC,cAAsB;IACzC,IAAI,gCAAkB,QAAQ,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;QACzD,qCAAuB;IACzB,CAAC;IACD,IAAI,gCAAkB,OAAO,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;QACxD,qCAAuB;IACzB,CAAC;IACD,IAAI,8BAAiB,SAAS,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;QACzD,mCAAsB;IACxB,CAAC;IACD,mCAAsB;AACxB,CAAC;AAED,MAAa,UAAU;IACZ,aAAa,CAAe;IAC5B,aAAa,CAAe;IAC5B,UAAU,CAAY;IAE/B,YACE,SAAoB,EACpB,YAA0B,EAC1B,YAA0B;QAE1B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;IAED,MA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,IAAI,SAAS;4BAClC,OAAO,EAAE,KAAK,EAAE,iBAAiB,IAAI,SAAS;yBAC/C;wBACD,IAAI;wBACJ,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;wBACvC,UAAU,EAAE,iBAAiB,CAC3B,MAAM,CAAC,gBAAgB,CAAC,UAAU,CACnC;wBACD,IAAI,EAAE,YAAY;qBACnB;iBACF;aACF,CAAC,CAAC,EACH,KAAK,EAAE,iBAAiB,IAAI,SAAS,EACrC,0BAAY,CAAC,GAAG,CAAC,UAAU,CAAC,aAAa,CAC1C,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAC5B,MAA6C,EAC7C,KAAa;QAEb,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC;QACtC,CAAC;QACD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,MAAM,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;IACxE,CAAC;CACF;AAnID,gCAmIC"} \ No newline at end of file +{"version":3,"file":"LogManager.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/log/LogManager.ts"],"names":[],"mappings":";;;AAkBA,+DAAwE;AACxE,kDAA6D;AAM7D,iDAAmD;AAEnD,gEAAgE;AAChE,SAAS,iBAAiB,CACxB,aAAsD;IAEtD,MAAM,WAAW,GAAG,aAAa,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;QAC9D,OAAO;YACL,YAAY,EAAE,SAAS,CAAC,YAAY;YACpC,YAAY,EAAE,SAAS,CAAC,YAAY;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;4BACN,KAAK,+BAAiB;4BACtB,MAAM,EAAE,KAAK,CAAC,MAAM;4BACpB,IAAI;4BACJ,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;4BACvC,UAAU,EAAE,iBAAiB,CAC3B,MAAM,CAAC,gBAAgB,CAAC,UAAU,CACnC;4BACD,IAAI,EAAE,YAAY;yBACnB;qBACF;iBACF,CAAC,CAAC,EACH,eAAe,CAAC,EAAE,EAClB,0BAAY,CAAC,GAAG,CAAC,UAAU,CAAC,aAAa,CAC1C,CAAC;YACJ,CAAC;QACH,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAC5B,MAA6C,EAC7C,KAAa;QAEb,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC;QACtC,CAAC;QACD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,MAAM,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;IACxE,CAAC;CACF;AApJD,gCAoJC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkManager.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkManager.d.ts index c8a38509..9ada829d 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkManager.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkManager.d.ts @@ -1,5 +1,5 @@ import type { CdpTarget } from '../context/CdpTarget.js'; -import type { EventManager } from '../events/EventManager.js'; +import type { EventManager } from '../session/EventManager.js'; import type { NetworkStorage } from './NetworkStorage.js'; /** Maps 1:1 to CdpTarget. */ export declare class NetworkManager { diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkManager.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkManager.js index 002def46..c61af445 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkManager.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkManager.js @@ -100,7 +100,7 @@ class NetworkManager { if (params.networkId) { networkManager .#getOrCreateNetworkRequest(params.networkId) - .onRequestPaused(params, networkManager.#networkStorage); + .onRequestPaused(params); } }); return networkManager; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkManager.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkManager.js.map index cb994b82..bd9d411f 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkManager.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkManager.js.map @@ -1 +1 @@ -{"version":3,"file":"NetworkManager.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/network/NetworkManager.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAaH,2DAAmD;AAGnD,6BAA6B;AAC7B,MAAa,cAAc;IAChB,UAAU,CAAY;IACtB,aAAa,CAAe;IAC5B,eAAe,CAAiB;IAEzC,YACE,SAAoB,EACpB,YAA0B,EAC1B,cAA8B;QAE9B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;IACxC,CAAC;IAED,2EAA2E;IAC3E,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;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BACX,0BAA0B,CAAC,MAAM,CAAC,SAAS,CAAC;iBAC5C,oBAAoB,CAAC,MAAM,CAAC,CAAC;QAClC,CAAC,CACF,CAAC;QAEF,oFAAoF;QACpF,SAAS,CAAC,SAAS,CAAC,EAAE,CACpB,qBAAqB,EACrB,CAAC,MAAyC,EAAE,EAAE;YAC5C,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;gBACrB,cAAc;qBACX,0BAA0B,CAAC,MAAM,CAAC,SAAS,CAAC;qBAC5C,eAAe,CAAC,MAAM,EAAE,cAAc,CAAC,eAAe,CAAC,CAAC;YAC7D,CAAC;QACH,CAAC,CACF,CAAC;QAEF,OAAO,cAAc,CAAC;IACxB,CAAC;CACF;AAtJD,wCAsJC"} \ No newline at end of file +{"version":3,"file":"NetworkManager.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/network/NetworkManager.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAaH,2DAAmD;AAGnD,6BAA6B;AAC7B,MAAa,cAAc;IAChB,UAAU,CAAY;IACtB,aAAa,CAAe;IAC5B,eAAe,CAAiB;IAEzC,YACE,SAAoB,EACpB,YAA0B,EAC1B,cAA8B;QAE9B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;IACxC,CAAC;IAED,2EAA2E;IAC3E,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;;OAGG;IACH,0BAA0B,CACxB,EAAmB,EACnB,aAAsB;QAEtB,IAAI,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QAClD,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,OAAO,GAAG,IAAI,kCAAc,CAC1B,EAAE,EACF,IAAI,CAAC,aAAa,EACl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ACX,0BAA0B,CAAC,MAAM,CAAC,SAAS,CAAC;qBAC5C,eAAe,CAAC,MAAM,CAAC,CAAC;YAC7B,CAAC;QACH,CAAC,CACF,CAAC;QAEF,OAAO,cAAc,CAAC;IACxB,CAAC;CACF;AAtJD,wCAsJC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkProcessor.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkProcessor.d.ts index ef3d4753..ccd5e82d 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkProcessor.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkProcessor.d.ts @@ -9,7 +9,7 @@ export declare class NetworkProcessor { continueRequest(params: Network.ContinueRequestParameters): Promise; continueResponse(params: Network.ContinueResponseParameters): Promise; continueWithAuth(params: Network.ContinueWithAuthParameters): Promise; - failRequest(params: Network.FailRequestParameters): Promise; + failRequest({ request: networkId, }: Network.FailRequestParameters): Promise; provideResponse(params: Network.ProvideResponseParameters): Promise; removeIntercept(params: Network.RemoveInterceptParameters): Promise; /** diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkProcessor.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkProcessor.js index 1cadf3ab..6648d59a 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkProcessor.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkProcessor.js @@ -14,9 +14,6 @@ class NetworkProcessor { this.#networkStorage = networkStorage; } async addIntercept(params) { - if (params.phases.length === 0) { - throw new protocol_js_1.InvalidArgumentException('At least one phase must be specified.'); - } // If AuthRequired is specified, BeforeRequestSent must also be specified. // This is a CDP quirk. if (params.phases.includes("authRequired" /* Network.InterceptPhase.AuthRequired */) && @@ -48,8 +45,7 @@ class NetworkProcessor { // ; Step 9. cookies // ; Step 10. body const requestHeaders = (0, NetworkUtils_js_1.cdpFetchHeadersFromBidiNetworkHeaders)(headers); - const request = this.#networkStorage.getRequest(networkId); - (0, assert_js_1.assert)(request, `Network request with ID ${networkId} doesn't exist`); + const request = this.#getRequestOrFail(networkId); await request.continueRequest(fetchId, url, method, requestHeaders); this.#networkStorage.removeBlockedRequest(networkId); return {}; @@ -65,8 +61,7 @@ class NetworkProcessor { // TODO: Set / expand. // ; Step 10. cookies // ; Step 11. credentials - const request = this.#networkStorage.getRequest(networkId); - (0, assert_js_1.assert)(request, `Network request with ID ${networkId} doesn't exist`); + const request = this.#getRequestOrFail(networkId); await request.continueResponse(fetchId, statusCode, reasonPhrase, responseHeaders); this.#networkStorage.removeBlockedRequest(networkId); return {}; @@ -77,45 +72,41 @@ class NetworkProcessor { if (phase !== "authRequired" /* Network.InterceptPhase.AuthRequired */) { throw new protocol_js_1.InvalidArgumentException(`Blocked request for network id '${networkId}' is not in 'AuthRequired' phase`); } - const request = this.#networkStorage.getRequest(networkId); - (0, assert_js_1.assert)(request, `Network request with ID ${networkId} doesn't exist`); + const request = this.#getRequestOrFail(networkId); let username; let password; if (params.action === 'provideCredentials') { const { credentials } = params; - username = params.credentials.username; - password = params.credentials.password; + username = credentials.username; + password = credentials.password; + // TODO: This should be invalid argument exception. + // Spec may need to be updated. (0, assert_js_1.assert)(credentials.type === 'password', `Credentials type ${credentials.type} must be 'password'`); } const response = (0, NetworkUtils_js_1.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction)(params.action); await request.continueWithAuth(fetchId, response, username, password); return {}; } - async failRequest(params) { - const networkId = params.request; - const blockedRequest = this.#getBlockedRequest(networkId); - const { request: fetchId, phase } = blockedRequest; + async failRequest({ request: networkId, }) { + const { request: fetchId, phase } = this.#getBlockedRequest(networkId); if (phase === "authRequired" /* Network.InterceptPhase.AuthRequired */) { throw new protocol_js_1.InvalidArgumentException(`Blocked request for network id '${networkId}' is in 'AuthRequired' phase`); } - const request = this.#networkStorage.getRequest(networkId); - (0, assert_js_1.assert)(request, `Network request with ID ${networkId} doesn't exist`); + const request = this.#getRequestOrFail(networkId); await request.failRequest(fetchId, 'Failed'); this.#networkStorage.removeBlockedRequest(networkId); return {}; } async provideResponse(params) { - const networkId = params.request; + const { statusCode, reasonPhrase, headers, body, request: networkId, } = params; const { request: fetchId } = this.#getBlockedRequest(networkId); - const { statusCode, reasonPhrase, headers, body } = params; // TODO: Step 6 // https://w3c.github.io/webdriver-bidi/#command-network-continueResponse const responseHeaders = (0, NetworkUtils_js_1.cdpFetchHeadersFromBidiNetworkHeaders)(headers); // TODO: Set / expand. // ; Step 10. cookies // ; Step 11. credentials - const request = this.#networkStorage.getRequest(networkId); - (0, assert_js_1.assert)(request, `Network request with ID ${networkId} doesn't exist`); + const request = this.#getRequestOrFail(networkId); await request.provideResponse(fetchId, statusCode ?? request.statusCode, reasonPhrase, responseHeaders, body?.value // TODO: Differ base64 / string ); this.#networkStorage.removeBlockedRequest(networkId); @@ -172,6 +163,13 @@ class NetworkProcessor { } return blockedRequest; } + #getRequestOrFail(id) { + const request = this.#networkStorage.getRequest(id); + if (!request) { + throw new protocol_js_1.NoSuchRequestException(`Network request with ID ${id} doesn't exist`); + } + return request; + } /** * Attempts to parse the given url. * Throws an InvalidArgumentException if the url is invalid. diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkProcessor.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkProcessor.js.map index 882b0220..37b909aa 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkProcessor.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkProcessor.js.map @@ -1 +1 @@ -{"version":3,"file":"NetworkProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/network/NetworkProcessor.ts"],"names":[],"mappings":";;;AAkBA,+D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AAqC,CACtC,CAAC;oBACJ,CAAC;oBAED,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;wBAC3C,IAAI,UAAU,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;4BACzC,MAAM,IAAI,sCAAwB,CAChC,uCAAuC,CACxC,CAAC;wBACJ,CAAC;wBAED,IAAI,UAAU,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;4BACvC,MAAM,IAAI,sCAAwB,CAChC,+CAA+C,CAChD,CAAC;wBACJ,CAAC;oBACH,CAAC;oBAED,IAAI,UAAU,CAAC,IAAI,KAAK,EAAE,EAAE,CAAC;wBAC3B,MAAM,IAAI,sCAAwB,CAChC,iCAAiC,CAClC,CAAC;oBACJ,CAAC;oBAED,IAAI,CAAC;wBACH,IAAI,GAAG,CAAC,kCAAc,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC,CAAC;oBAC5D,CAAC;oBAAC,OAAO,KAAK,EAAE,CAAC;wBACf,MAAM,IAAI,sCAAwB,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC;oBACjD,CAAC;oBACD,OAAO,UAAU,CAAC;YACtB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA7VD,4CA6VC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.d.ts index 70ebceaf..f56484db 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.d.ts @@ -5,7 +5,7 @@ import type { Protocol } from 'devtools-protocol'; import { Network, type JsUint } from '../../../protocol/protocol.js'; import type { CdpTarget } from '../context/CdpTarget.js'; -import type { EventManager } from '../events/EventManager.js'; +import type { EventManager } from '../session/EventManager.js'; import type { NetworkStorage } from './NetworkStorage.js'; /** Abstracts one individual network request. */ export declare class NetworkRequest { @@ -24,7 +24,7 @@ export declare class NetworkRequest { onServedFromCache(): void; onLoadingFailedEvent(event: Protocol.Network.LoadingFailedEvent): void; /** Fired whenever a network request interception is hit. */ - onRequestPaused(params: Protocol.Fetch.RequestPausedEvent, networkStorage: NetworkStorage): void; + onRequestPaused(params: Protocol.Fetch.RequestPausedEvent): void; /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-failRequest */ failRequest(networkId: Network.Request, errorReason: Protocol.Network.ErrorReason): Promise; /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueRequest */ diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.js index 76d1b11a..0c3b6105 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.js @@ -159,7 +159,7 @@ class NetworkRequest { }, this.#context); } /** Fired whenever a network request interception is hit. */ - onRequestPaused(params, networkStorage) { + onRequestPaused(params) { if (this.#isIgnoredEvent()) { void this.continueRequest(params.requestId).catch(() => { // TODO: Add some logging @@ -186,8 +186,7 @@ class NetworkRequest { const headers = (0, NetworkUtils_js_1.bidiNetworkHeadersFromCdpFetchHeaders)( // TODO: Use params.request.headers if request? params.responseHeaders); - (0, assert_js_1.assert)(this.requestId === params.networkId); - networkStorage.addBlockedRequest(this.requestId, { + this.#networkStorage.addBlockedRequest(this.requestId, { request: params.requestId, // intercept request id phase, // TODO: Finish populating response / ResponseData. @@ -526,32 +525,7 @@ class NetworkRequest { .filter(({ blockedReasons }) => { return !Array.isArray(blockedReasons) || blockedReasons.length === 0; }) - .map(({ cookie }) => { - return { - name: cookie.name, - value: { - type: 'string', - value: cookie.value, - }, - domain: cookie.domain, - path: cookie.path, - expires: cookie.expires, - size: cookie.size, - httpOnly: cookie.httpOnly, - secure: cookie.secure, - sameSite: NetworkRequest.#getCookiesSameSite(cookie.sameSite), - }; - }); - } - static #getCookiesSameSite(cdpSameSiteValue) { - switch (cdpSameSiteValue) { - case 'Strict': - return 'strict'; - case 'Lax': - return 'lax'; - default: - return 'none'; - } + .map(({ cookie }) => (0, NetworkUtils_js_1.cdpToBiDiCookie)(cookie)); } } exports.NetworkRequest = NetworkRequest; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.js.map index 89483d6d..3589bc4f 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkRequest.js.map @@ -1 +1 @@ -{"version":3,"file":"NetworkRequest.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/network/NetworkRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAQH,+DAKuC;AACvC,wDAAgD;AAChD,4DAAoD;AAMpD,uDAI2B;AAE3B,gDAAgD;AAChD,MAAa,cAAc;IACzB,MAAM,CAAC,QAAQ,GAAG,SAAS,CAAC;IAE5B;;;;;;OAMG;IACH,UAAU,CAAkB;IAE5B,8BAA8B;IAC9B;;;OAGG;IACH,eAAe,GAAuC,SAAS,CAAC;IAEhE,gBAAgB,GAAG,KAAK,CAAC;IAEzB,cAAc,CAAS;IAEvB,aAAa,CAAe;IAC5B,eAAe,CAAiB;IAEhC,QAAQ,GAGJ,EAAE,CAAC;IAEP,SAAS,GAIL,EAAE,CAAC;IAEP,0BAA0B,GAAG,IAAI,sBAAQ,EAAgB,CAAC;IA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AAM,EAAC,EAAE,EAAE;YAChB,OAAO;gBACL,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,MAAM,CAAC,KAAK;iBACpB;gBACD,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,QAAQ,EAAE,cAAc,CAAC,mBAAmB,CAAC,MAAM,CAAC,QAAQ,CAAC;aAC9D,CAAC;QACJ,CAAC,CAAC,CAAC;IACP,CAAC;IAED,MAAM,CAAC,mBAAmB,CACxB,gBAAyB;QAEzB,QAAQ,gBAAgB,EAAE,CAAC;YACzB,KAAK,QAAQ;gBACX,OAAO,QAAQ,CAAC;YAClB,KAAK,KAAK;gBACR,OAAO,KAAK,CAAC;YACf;gBACE,OAAO,MAAM,CAAC;QAClB,CAAC;IACH,CAAC;;AAxqBH,wCAyqBC"} \ No newline at end of file +{"version":3,"file":"NetworkRequest.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/network/NetworkRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAQH,+DAKuC;AACvC,wDAAgD;AAChD,4DAAoD;AAMpD,uDAK2B;AAE3B,gDAAgD;AAChD,MAAa,cAAc;IACzB,MAAM,CAAC,QAAQ,GAAG,SAAS,CAAC;IAE5B;;;;;;OAMG;IACH,UAAU,CAAkB;IAE5B,8BAA8B;IAC9B;;;OAGG;IACH,eAAe,GAAuC,SAAS,CAAC;IAEhE,gBAAgB,GAAG,KAAK,CAAC;IAEzB,cAAc,CAAS;IAEvB,aAAa,CAAe;IAC5B,eAAe,CAAiB;IAEhC,QAAQ,GAGJ,EAAE,CAA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AAM,EAAC,EAAE,EAAE,CAAC,IAAA,iCAAe,EAAC,MAAM,CAAC,CAAC,CAAC;IAChD,CAAC;;AAxoBH,wCAyoBC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkStorage.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkStorage.d.ts index 23a38abf..33c5240a 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkStorage.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkStorage.d.ts @@ -17,6 +17,15 @@ import type { Protocol } from 'devtools-protocol'; import { Network } from '../../../protocol/protocol.js'; import type { NetworkRequest } from './NetworkRequest.js'; +interface NetworkInterception { + urlPatterns: Network.UrlPattern[]; + phases: Network.AddInterceptParameters['phases']; +} +export interface BlockedRequest { + request: Protocol.Fetch.RequestId; + phase: Network.InterceptPhase; + response: Network.ResponseData; +} /** Stores network and intercept maps. */ export declare class NetworkStorage { #private; @@ -27,10 +36,7 @@ export declare class NetworkStorage { * * @return The intercept ID. */ - addIntercept(value: { - urlPatterns: Network.UrlPattern[]; - phases: Network.AddInterceptParameters['phases']; - }): Network.Intercept; + addIntercept(value: NetworkInterception): Network.Intercept; /** * Removes the given intercept from the intercept map. * Throws NoSuchInterceptException if the intercept does not exist. @@ -64,22 +70,15 @@ export declare class NetworkStorage { * @see https://url.spec.whatwg.org/#special-scheme */ static isSpecialScheme(protocol: string): boolean; - addBlockedRequest(requestId: Network.Request, value: { - request: Protocol.Fetch.RequestId; - phase: Network.InterceptPhase; - response: Network.ResponseData; - }): void; + addBlockedRequest(requestId: Network.Request, value: BlockedRequest): void; removeBlockedRequest(requestId: Network.Request): void; /** * Returns the blocked request associated with the given network ID, if any. */ - getBlockedRequest(networkId: Network.Request): { - request: Protocol.Fetch.RequestId; - phase: Network.InterceptPhase; - response: Network.ResponseData; - } | undefined; + getBlockedRequest(networkId: Network.Request): BlockedRequest | undefined; /** #@see https://w3c.github.io/webdriver-bidi/#get-the-network-intercepts */ getNetworkIntercepts(requestId: Network.Request, phase?: Network.InterceptPhase): Network.Intercept[]; /** Matches the given URLPattern against the given URL. */ static matchUrlPattern(urlPattern: Network.UrlPattern, url: string | undefined): boolean; } +export {}; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkStorage.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkStorage.js index 58658f78..11a23e13 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkStorage.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkStorage.js @@ -28,13 +28,6 @@ class NetworkStorage { * @return The intercept ID. */ addIntercept(value) { - // Check if the given intercept entry already exists. - for (const [interceptId, { urlPatterns, phases },] of this.#interceptMap.entries()) { - if (JSON.stringify(value.urlPatterns) === JSON.stringify(urlPatterns) && - JSON.stringify(value.phases) === JSON.stringify(phases)) { - return interceptId; - } - } const interceptId = (0, uuid_js_1.uuidv4)(); this.#interceptMap.set(interceptId, value); return interceptId; @@ -120,7 +113,7 @@ class NetworkStorage { } let url = ''; if (protocol) { - url += `${protocol}`; + url += protocol; if (!protocol.endsWith(':')) { url += ':'; } @@ -144,7 +137,7 @@ class NetworkStorage { if (!search.startsWith('?')) { url += '?'; } - url += `${search}`; + url += search; } return url; } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkStorage.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkStorage.js.map index 52239836..1af5710c 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkStorage.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkStorage.js.map @@ -1 +1 @@ -{"version":3,"file":"NetworkStorage.js","sourceRoot":"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C9B,GAAuB;QAEvB,QAAQ,UAAU,CAAC,IAAI,EAAE,CAAC;YACxB,KAAK,QAAQ;gBACX,OAAO,UAAU,CAAC,OAAO,KAAK,GAAG,CAAC;YACpC,KAAK,SAAS,CAAC,CAAC,CAAC;gBACf,OAAO,CACL,IAAI,0BAAU,CAAC;oBACb,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,IAAI,EAAE,UAAU,CAAC,IAAI;oBACrB,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,CACtB,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF;AA/TD,wCA+TC"} \ No newline at end of file +{"version":3,"file":"NetworkStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/network/NetworkStorage.ts"],"names":[],"mappings":";;;AAkBA,+DAAgF;AAChF,gEAAwD;AACxD,oDAA8C;AAgB9C,yCAAyC;AACzC,MAAa,cAAc;IACzB;;;OAGG;IACM,WAAW,GAAG,IAAI,GAAG,EAAmC,CAAC;IAElE,kEAAkE;IACzD,aAAa,GAAG,IAAI,GAAG,EAA0C,CAAC;IAE3E,wEAAwE;IAC/D,kBAAkB,GAAG,IAAI,GAAG,EAAmC,CAAC;IAEzE,iBAAiB;QACf,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC;YAChD,OAAO,CAAC,OAAO,EAAE,CAAC;QACpB,CAAC;QAED,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC;IAED;;;;;OAKG;IACH,YAAY,CAAC,KAA0B;QACrC,MAAM,WAAW,GAAsB,IAAA,gBAAM,GAAE,CAAC;QAChD,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAA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,CAAC,WAAW,CAAC,CAAC;gBACjC,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,0DAA0D;IAC1D,MAAM,CAAC,eAAe,CACpB,UAA8B,EAC9B,GAAuB;QAEvB,QAAQ,UAAU,CAAC,IAAI,EAAE,CAAC;YACxB,KAAK,QAAQ;gBACX,OAAO,UAAU,CAAC,OAAO,KAAK,GAAG,CAAC;YACpC,KAAK,SAAS,CAAC,CAAC,CAAC;gBACf,OAAO,CACL,IAAI,0BAAU,CAAC;oBACb,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,IAAI,EAAE,UAAU,CAAC,IAAI;oBACrB,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,CACtB,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF;AApRD,wCAoRC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkUtils.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkUtils.d.ts index aa99dcc3..47290221 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkUtils.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkUtils.d.ts @@ -2,7 +2,7 @@ * @fileoverview Utility functions for the Network domain. */ import type { Protocol } from 'devtools-protocol'; -import type { Network } from '../../../protocol/protocol.js'; +import { Network, type Storage } from '../../../protocol/protocol.js'; export declare function computeHeadersSize(headers: Network.Header[]): number; /** Converts from CDP Network domain headers to Bidi network headers. */ export declare function bidiNetworkHeadersFromCdpNetworkHeaders(headers?: Protocol.Network.Headers): Network.Header[]; @@ -14,3 +14,15 @@ export declare function bidiNetworkHeadersFromCdpFetchHeaders(headers?: Protocol export declare function cdpFetchHeadersFromBidiNetworkHeaders(headers?: Network.Header[]): Protocol.Fetch.HeaderEntry[] | undefined; /** Converts from Bidi auth action to CDP auth challenge response. */ export declare function cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction(action: 'default' | 'cancel' | 'provideCredentials'): "Default" | "CancelAuth" | "ProvideCredentials"; +/** + * Converts from CDP Network domain cookie to BiDi network cookie. + * * https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-Cookie + * * https://w3c.github.io/webdriver-bidi/#type-network-Cookie + */ +export declare function cdpToBiDiCookie(cookie: Protocol.Network.Cookie): Network.Cookie; +/** + * Converts from BiDi set network cookie params to CDP Network domain cookie. + * * https://w3c.github.io/webdriver-bidi/#type-network-Cookie + * * https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-CookieParam + */ +export declare function bidiToCdpCookie(params: Storage.SetCookieParameters, partitionKey: Storage.PartitionKey): Protocol.Network.CookieParam; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkUtils.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkUtils.js index 76d250e4..d2741f5f 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkUtils.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkUtils.js @@ -17,7 +17,8 @@ * */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction = exports.cdpFetchHeadersFromBidiNetworkHeaders = exports.bidiNetworkHeadersFromCdpFetchHeaders = exports.cdpNetworkHeadersFromBidiNetworkHeaders = exports.bidiNetworkHeadersFromCdpNetworkHeaders = exports.computeHeadersSize = void 0; +exports.bidiToCdpCookie = exports.cdpToBiDiCookie = exports.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction = exports.cdpFetchHeadersFromBidiNetworkHeaders = exports.bidiNetworkHeadersFromCdpFetchHeaders = exports.cdpNetworkHeadersFromBidiNetworkHeaders = exports.bidiNetworkHeadersFromCdpNetworkHeaders = exports.computeHeadersSize = void 0; +const ErrorResponse_1 = require("../../../protocol/ErrorResponse"); function computeHeadersSize(headers) { const requestHeaders = headers.reduce((acc, header) => { return `${acc}${header.name}: ${header.value.value}\r\n`; @@ -88,4 +89,111 @@ function cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction(action) { } } exports.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction = cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction; +/** + * Converts from CDP Network domain cookie to BiDi network cookie. + * * https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-Cookie + * * https://w3c.github.io/webdriver-bidi/#type-network-Cookie + */ +function cdpToBiDiCookie(cookie) { + const result = { + name: cookie.name, + value: { type: 'string', value: cookie.value }, + domain: cookie.domain, + path: cookie.path, + size: cookie.size, + httpOnly: cookie.httpOnly, + secure: cookie.secure, + sameSite: cookie.sameSite === undefined + ? "none" /* Network.SameSite.None */ + : sameSiteCdpToBiDi(cookie.sameSite), + ...(cookie.expires >= 0 ? { expiry: cookie.expires } : undefined), + }; + // Extending with CDP-specific properties with `goog:` prefix. + result[`goog:session`] = cookie.session; + result[`goog:priority`] = cookie.priority; + result[`goog:sameParty`] = cookie.sameParty; + result[`goog:sourceScheme`] = cookie.sourceScheme; + result[`goog:sourcePort`] = cookie.sourcePort; + if (cookie.partitionKey !== undefined) { + result[`goog:partitionKey`] = cookie.partitionKey; + } + if (cookie.partitionKeyOpaque !== undefined) { + result[`goog:partitionKeyOpaque`] = cookie.partitionKeyOpaque; + } + return result; +} +exports.cdpToBiDiCookie = cdpToBiDiCookie; +/** + * Converts from BiDi set network cookie params to CDP Network domain cookie. + * * https://w3c.github.io/webdriver-bidi/#type-network-Cookie + * * https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-CookieParam + */ +function bidiToCdpCookie(params, partitionKey) { + if (params.cookie.value.type !== 'string') { + // CDP supports only string values in cookies. + throw new ErrorResponse_1.UnsupportedOperationException('Only string cookie values are supported'); + } + const deserializedValue = params.cookie.value.value; + const result = { + name: params.cookie.name, + value: deserializedValue, + domain: params.cookie.domain, + path: params.cookie.path ?? '/', + secure: params.cookie.secure ?? false, + httpOnly: params.cookie.httpOnly ?? false, + // CDP's `partitionKey` is the BiDi's `partition.sourceOrigin`. + ...(partitionKey.sourceOrigin !== undefined && { + partitionKey: partitionKey.sourceOrigin, + }), + ...(params.cookie.expiry !== undefined && { + expires: params.cookie.expiry, + }), + ...(params.cookie.sameSite !== undefined && { + sameSite: sameSiteBiDiToCdp(params.cookie.sameSite), + }), + }; + // Extending with CDP-specific properties with `goog:` prefix. + if (params.cookie[`goog:url`] !== undefined) { + result.url = params.cookie[`goog:url`]; + } + if (params.cookie[`goog:priority`] !== undefined) { + result.priority = params.cookie[`goog:priority`]; + } + if (params.cookie[`goog:sameParty`] !== undefined) { + result.sameParty = params.cookie[`goog:sameParty`]; + } + if (params.cookie[`goog:sourceScheme`] !== undefined) { + result.sourceScheme = params.cookie[`goog:sourceScheme`]; + } + if (params.cookie[`goog:sourcePort`] !== undefined) { + result.sourcePort = params.cookie[`goog:sourcePort`]; + } + return result; +} +exports.bidiToCdpCookie = bidiToCdpCookie; +function sameSiteCdpToBiDi(sameSite) { + switch (sameSite) { + case 'Strict': + return "strict" /* Network.SameSite.Strict */; + case 'None': + return "none" /* Network.SameSite.None */; + case 'Lax': + return "lax" /* Network.SameSite.Lax */; + default: + // Defaults to `Lax`: + // https://web.dev/articles/samesite-cookies-explained#samesitelax_by_default + return "lax" /* Network.SameSite.Lax */; + } +} +function sameSiteBiDiToCdp(sameSite) { + switch (sameSite) { + case "strict" /* Network.SameSite.Strict */: + return 'Strict'; + case "lax" /* Network.SameSite.Lax */: + return 'Lax'; + case "none" /* Network.SameSite.None */: + return 'None'; + } + throw new ErrorResponse_1.InvalidArgumentException(`Unknown 'sameSite' value ${sameSite}`); +} //# sourceMappingURL=NetworkUtils.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkUtils.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkUtils.js.map index 532b394e..fb4e000f 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkUtils.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/network/NetworkUtils.js.map @@ -1 +1 @@ -{"version":3,"file":"NetworkUtils.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/network/NetworkUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AASH,SAAgB,kBAAkB,CAAC,OAAyB;IAC1D,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;QACpD,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC;IAC3D,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC;AACzD,CAAC;AAND,gDAMC;AAED,wEAAwE;AACxE,SAAgB,uCAAuC,CACrD,OAAkC;IAElC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;QACrD,IAAI;QACJ,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,KAAK;SACN;KACF,CAAC,CAAC,CAAC;AACN,CAAC;AAdD,0FAcC;AAED,wEAAwE;AACxE,SAAgB,uCAAuC,CACrD,OAA0B;IAE1B,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} \ No newline at end of file +{"version":3,"file":"NetworkUtils.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/network/NetworkUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAOH,mEAGyC;AAGzC,SAAgB,kBAAkB,CAAC,OAAyB;IAC1D,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;QACpD,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC;IAC3D,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC;AACzD,CAAC;AAND,gDAMC;AAED,wEAAwE;AACxE,SAAgB,uCAAuC,CACrD,OAAkC;IAElC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;QACrD,IAAI;QACJ,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,KAAK;SACN;KACF,CAAC,CAAC,CAAC;AACN,CAAC;AAdD,0FAcC;AAED,wEAAwE;AACxE,SAAgB,uCAAuC,CACrD,OAA0B;IAE1B,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE;QACvC,8CAA8C;QAC9C,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC;QACzC,OAAO,MAAM,CAAC;IAChB,CAAC,EAAE,EAA8B,CAAC,CAAC;A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C,MAAM,CAAC,gBAAgB,CAAC,CAAC;IACrD,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,KAAK,SAAS,EAAE,CAAC;QACrD,MAAM,CAAC,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAC3D,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,SAAS,EAAE,CAAC;QACnD,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACvD,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAhDD,0CAgDC;AAED,SAAS,iBAAiB,CACxB,QAAyC;IAEzC,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,QAAQ;YACX,8CAA+B;QACjC,KAAK,MAAM;YACT,0CAA6B;QAC/B,KAAK,KAAK;YACR,wCAA4B;QAC9B;YACE,qBAAqB;YACrB,6EAA6E;YAC7E,wCAA4B;IAChC,CAAC;AACH,CAAC;AAED,SAAS,iBAAiB,CACxB,QAA0B;IAE1B,QAAQ,QAAQ,EAAE,CAAC;QACjB;YACE,OAAO,QAAQ,CAAC;QAClB;YACE,OAAO,KAAK,CAAC;QACf;YACE,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,MAAM,IAAI,wCAAwB,CAAC,4BAA4B,QAAQ,EAAE,CAAC,CAAC;AAC7E,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/permissions/PermissionsProcessor.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/permissions/PermissionsProcessor.d.ts new file mode 100644 index 00000000..32ccca89 --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/permissions/PermissionsProcessor.d.ts @@ -0,0 +1,23 @@ +/** + * Copyright 2024 Google LLC. + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import type { CdpClient } from '../../../cdp/CdpClient.js'; +import { type EmptyResult, type Permissions } from '../../../protocol/protocol.js'; +export declare class PermissionsProcessor { + #private; + constructor(browserCdpClient: CdpClient); + setPermissions(params: Permissions.SetPermissionParameters): Promise; +} diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/permissions/PermissionsProcessor.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/permissions/PermissionsProcessor.js new file mode 100644 index 00000000..74b2878e --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/permissions/PermissionsProcessor.js @@ -0,0 +1,49 @@ +"use strict"; +/** + * Copyright 2024 Google LLC. + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PermissionsProcessor = void 0; +const protocol_js_1 = require("../../../protocol/protocol.js"); +class PermissionsProcessor { + #browserCdpClient; + constructor(browserCdpClient) { + this.#browserCdpClient = browserCdpClient; + } + async setPermissions(params) { + try { + await this.#browserCdpClient.sendCommand('Browser.setPermission', { + origin: params.origin, + permission: { + name: params.descriptor.name, + }, + setting: params.state, + }); + } + catch (err) { + if (err.message === + `Permission can't be granted to opaque origins.`) { + // Return success if the origin is not valid (does not match any + // existing origins). + return {}; + } + throw new protocol_js_1.InvalidArgumentException(err.message); + } + return {}; + } +} +exports.PermissionsProcessor = PermissionsProcessor; +//# sourceMappingURL=PermissionsProcessor.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/permissions/PermissionsProcessor.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/permissions/PermissionsProcessor.js.map new file mode 100644 index 00000000..091a50f6 --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/permissions/PermissionsProcessor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PermissionsProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/permissions/PermissionsProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAGH,+DAIuC;AAEvC,MAAa,oBAAoB;IAC/B,iBAAiB,CAAY;IAE7B,YAAY,gBAA2B;QACrC,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,MAA2C;QAE3C,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,uBAAuB,EAAE;gBAChE,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,UAAU,EAAE;oBACV,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI;iBAC7B;gBACD,OAAO,EAAE,MAAM,CAAC,KAAK;aACtB,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IACG,GAAa,CAAC,OAAO;gBACtB,gDAAgD,EAChD,CAAC;gBACD,gEAAgE;gBAChE,qBAAqB;gBACrB,OAAO,EAAE,CAAC;YACZ,CAAC;YACD,MAAM,IAAI,sCAAwB,CAAE,GAAa,CAAC,OAAO,CAAC,CAAC;QAC7D,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AA/BD,oDA+BC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ChannelProxy.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ChannelProxy.d.ts index 9826be28..2c583009 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ChannelProxy.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ChannelProxy.d.ts @@ -1,6 +1,6 @@ import { Script } from '../../../protocol/protocol.js'; import { type LoggerFn } from '../../../utils/log.js'; -import type { EventManager } from '../events/EventManager.js'; +import type { EventManager } from '../session/EventManager.js'; import type { Realm } from './Realm.js'; /** * Used to send messages from realm to BiDi user. diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ChannelProxy.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ChannelProxy.js index de3f1b35..8300ea11 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ChannelProxy.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ChannelProxy.js @@ -141,18 +141,17 @@ class ChannelProxy { if (message.exceptionDetails) { throw message.exceptionDetails; } - eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.Script.EventNames.Message, - params: { - channel: this.#properties.channel, - data: realm.cdpToBidiValue(message, this.#properties.ownership ?? "none" /* Script.ResultOwnership.None */), - source: { - realm: realm.realmId, - context: realm.browsingContextId, + for (const browsingContext of realm.associatedBrowsingContexts) { + eventManager.registerEvent({ + type: 'event', + method: protocol_js_1.ChromiumBidi.Script.EventNames.Message, + params: { + channel: this.#properties.channel, + data: realm.cdpToBidiValue(message, this.#properties.ownership ?? "none" /* Script.ResultOwnership.None */), + source: realm.source, }, - }, - }, realm.browsingContextId); + }, browsingContext.id); + } } catch (error) { // If an error is thrown, then the channel is permanently broken, so we diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ChannelProxy.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ChannelProxy.js.map index 86d1c0a1..5c665dc0 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ChannelProxy.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ChannelProxy.js.map @@ -1 +1 @@ -{"version":3,"file":"ChannelProxy.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/script/ChannelProxy.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAIH,+DAAmE;AACnE,kDAA6D;AAC7D,oDAA8C;AAK9C;;GAEG;AACH,MAAa,YAAY;IACd,WAAW,CAA2B;IAEtC,GAAG,GAAG,IAAA,gBAAM,GAAE,CAAC;IACf,OAAO,CAAY;IAE5B,YAAY,OAAiC,EAAE,MAAiB;QAC9D,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAI,CAAC,KAAY,EAAE,YAA0B;QACjD,MAAM,aAAa,GAAG,MAAM,YAAY,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC;QAC3E,MAAM,iBAAiB,GAAG,MAAM,YAAY,CAAC,wBAAwB,CACnE,KAAK,EACL,aAAa,CACd,CAAC;QAEF,KAAK,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;QAC7D,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,8DAA8D;IAC9D,KAAK,CAAC,uBAAuB,CAAC,KAAY,EAAE,YAA0B;QACpE,IAAI,CAAC;YACH,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;YAC7D,KAAK,IAAI,CAAC,cAAc,CAAC,KAAK,EA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YACD,OAAO,YAAY,CAAC,WAAW,CAAC;QAClC,CAAC,CACF,CAAC;QACF,MAAM,gBAAgB,GAAG,YAAY,CAAC,0BAA0B,EAAE,CAAC;QACnE,OAAO,IAAI,QAAQ,MAAM,IAAI,CAAC,GAAG,KAAK,gBAAgB,GAAG,CAAC;IAC5D,CAAC;CACF;AA7QD,oCA6QC"} \ No newline at end of file +{"version":3,"file":"ChannelProxy.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/script/ChannelProxy.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAIH,+DAAmE;AACnE,kDAA6D;AAC7D,oDAA8C;AAK9C;;GAEG;AACH,MAAa,YAAY;IACd,WAAW,CAA2B;IAEtC,GAAG,GAAG,IAAA,gBAAM,GAAE,CAAC;IACf,OAAO,CAAY;IAE5B,YAAY,OAAiC,EAAE,MAAiB;QAC9D,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAI,CAAC,KAAY,EAAE,YAA0B;QACjD,MAAM,aAAa,GAAG,MAAM,YAAY,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC;QAC3E,MAAM,iBAAiB,GAAG,MAAM,YAAY,CAAC,wBAAwB,CACnE,KAAK,EACL,aAAa,CACd,CAAC;QAEF,KAAK,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;QAC7D,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,8DAA8D;IAC9D,KAAK,CAAC,uBAAuB,CAAC,KAAY,EAAE,YAA0B;QACpE,IAAI,CAAC;YACH,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;YAC7D,KAAK,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;QA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AW,CAAC;QAClC,CAAC,CACF,CAAC;QACF,MAAM,gBAAgB,GAAG,YAAY,CAAC,0BAA0B,EAAE,CAAC;QACnE,OAAO,IAAI,QAAQ,MAAM,IAAI,CAAC,GAAG,KAAK,gBAAgB,GAAG,CAAC;IAC5D,CAAC;CACF;AA5QD,oCA4QC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/DedicatedWorkerRealm.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/DedicatedWorkerRealm.d.ts new file mode 100644 index 00000000..c4a7f00f --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/DedicatedWorkerRealm.d.ts @@ -0,0 +1,32 @@ +/** + * Copyright 2024 Google LLC. + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import type { Protocol } from 'devtools-protocol'; +import type { CdpClient } from '../../../cdp/CdpClient.js'; +import type { Script } from '../../../protocol/protocol.js'; +import type { LoggerFn } from '../../../utils/log.js'; +import type { BrowsingContextImpl } from '../context/BrowsingContextImpl.js'; +import type { EventManager } from '../session/EventManager.js'; +import { Realm } from './Realm.js'; +import type { RealmStorage } from './RealmStorage.js'; +export declare class DedicatedWorkerRealm extends Realm { + #private; + constructor(cdpClient: CdpClient, eventManager: EventManager, executionContextId: Protocol.Runtime.ExecutionContextId, logger: LoggerFn | undefined, origin: string, ownerRealm: Realm, realmId: Script.Realm, realmStorage: RealmStorage); + get associatedBrowsingContexts(): BrowsingContextImpl[]; + get realmType(): 'dedicated-worker'; + get source(): Script.Source; + get realmInfo(): Script.DedicatedWorkerRealmInfo; +} diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/DedicatedWorkerRealm.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/DedicatedWorkerRealm.js new file mode 100644 index 00000000..03067e25 --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/DedicatedWorkerRealm.js @@ -0,0 +1,51 @@ +"use strict"; +/** + * Copyright 2024 Google LLC. + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DedicatedWorkerRealm = void 0; +const Realm_js_1 = require("./Realm.js"); +class DedicatedWorkerRealm extends Realm_js_1.Realm { + #ownerRealm; + constructor(cdpClient, eventManager, executionContextId, logger, origin, ownerRealm, realmId, realmStorage) { + super(cdpClient, eventManager, executionContextId, logger, origin, realmId, realmStorage); + this.#ownerRealm = ownerRealm; + this.initialize(); + } + get associatedBrowsingContexts() { + return this.#ownerRealm.associatedBrowsingContexts; + } + get realmType() { + return 'dedicated-worker'; + } + get source() { + return { + realm: this.realmId, + // This is a hack to make Puppeteer able to track workers. + // TODO: remove after Puppeteer tracks workers by owners and use the base version. + context: this.associatedBrowsingContexts[0]?.id, + }; + } + get realmInfo() { + return { + ...this.baseInfo, + type: this.realmType, + owners: [this.#ownerRealm.realmId], + }; + } +} +exports.DedicatedWorkerRealm = DedicatedWorkerRealm; +//# sourceMappingURL=DedicatedWorkerRealm.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/DedicatedWorkerRealm.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/DedicatedWorkerRealm.js.map new file mode 100644 index 00000000..eab7ad0a --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/DedicatedWorkerRealm.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DedicatedWorkerRealm.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/script/DedicatedWorkerRealm.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAUH,yCAAiC;AAGjC,MAAa,oBAAqB,SAAQ,gBAAK;IACpC,WAAW,CAAQ;IAE5B,YACE,SAAoB,EACpB,YAA0B,EAC1B,kBAAuD,EACvD,MAA4B,EAC5B,MAAc,EACd,UAAiB,EACjB,OAAqB,EACrB,YAA0B;QAE1B,KAAK,CACH,SAAS,EACT,YAAY,EACZ,kBAAkB,EAClB,MAAM,EACN,MAAM,EACN,OAAO,EACP,YAAY,CACb,CAAC;QAEF,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAE9B,IAAI,CAAC,UAAU,EAAE,CAAC;IACpB,CAAC;IAED,IAAa,0BAA0B;QACrC,OAAO,IAAI,CAAC,WAAW,CAAC,0BAA0B,CAAC;IACrD,CAAC;IAED,IAAa,SAAS;QACpB,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAED,IAAa,MAAM;QACjB,OAAO;YACL,KAAK,EAAE,IAAI,CAAC,OAAO;YACnB,0DAA0D;YAC1D,kFAAkF;YAClF,OAAO,EAAE,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,EAAE,EAAE;SAChD,CAAC;IACJ,CAAC;IAED,IAAa,SAAS;QACpB,OAAO;YACL,GAAG,IAAI,CAAC,QAAQ;YAChB,IAAI,EAAE,IAAI,CAAC,SAAS;YACpB,MAAM,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;SACnC,CAAC;IACJ,CAAC;CACF;AApDD,oDAoDC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScript.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScript.js index d0f50d1a..68a5d323 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScript.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScript.js @@ -100,7 +100,7 @@ class PreloadScript { target: cdpTarget, preloadScriptId: addCdpPreloadScriptResult.identifier, }); - this.#targetIds.add(cdpTarget.targetId); + this.#targetIds.add(cdpTarget.id); } /** * Removes this script from all CDP targets. @@ -116,7 +116,7 @@ class PreloadScript { } /** Removes the provided cdp target from the list of cdp preload scripts. */ dispose(cdpTargetId) { - this.#cdpPreloadScripts = this.#cdpPreloadScripts.filter((cdpPreloadScript) => cdpPreloadScript.target?.targetId !== cdpTargetId); + this.#cdpPreloadScripts = this.#cdpPreloadScripts.filter((cdpPreloadScript) => cdpPreloadScript.target?.id !== cdpTargetId); this.#targetIds.delete(cdpTargetId); } } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScript.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScript.js.map index 1583c919..cb24045f 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScript.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScript.js.map @@ -1 +1 @@ -{"version":3,"file":"PreloadScript.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/script/PreloadScript.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAMH,oDAA8C;AAG9C,uDAA+C;AAS/C;;;;;;;;;GASG;AACH,MAAa,aAAa;IACxB,gDAAgD;IACvC,GAAG,GAAW,IAAA,gBAAM,GAAE,CAAC;IAChC,2BAA2B;IAC3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AAI,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;CACF;AApHD,sCAoHC"} \ No newline at end of file +{"version":3,"file":"PreloadScript.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/script/PreloadScript.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAMH,oDAA8C;AAG9C,uDAA+C;AAS/C;;;;;;;;;GASG;AACH,MAAa,aAAa;IACxB,gDAAgD;IACvC,GAAG,GAAW,IAAA,gBAAM,GAAE,CAAC;IAChC,2BAA2B;IAC3B,kBAAkB,GAAuB,EAAE,CAAC;IAC5C,2EAA2E;IAClE,oBAAoB,CAAS;IACtC,2DAA2D;IAClD,UAAU,GAAG,IAAI,GAAG,EAA4B,CAAC;IAC1D,gEAAgE;IACvD,SAAS,CAAiB;IACnC,uCAAuC;IAC9B,QAAQ,CAAU;IAC3B,uEAAuE;IAC9D,SAAS,CAAqC;IAEvD,IAAI,EAAE;QACJ,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,YAAY,MAAyC,EAAE,MAAiB;QACtE,IAAI,CAAC,SAAS;YACZ,MAAM,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,8BAAY,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;QACxE,IAAI,CAAC,oBAAoB,GAAG,MAAM,CAAC,mBAAmB,CAAC;QACvD,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;IACnC,CAAC;IAED,sCAAsC;IACtC,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,6CAA6C;IAC7C,IAAI,QAAQ;QACV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gB,CAAC,eAAe,CAAC;YAC5D,MAAM,SAAS,CAAC,SAAS,CAAC,WAAW,CACnC,0CAA0C,EAC1C;gBACE,UAAU,EAAE,kBAAkB;aAC/B,CACF,CAAC;QACJ,CAAC;IACH,CAAC;IAED,4EAA4E;IAC5E,OAAO,CAAC,WAAqC;QAC3C,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CACtD,CAAC,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,CAAC,MAAM,EAAE,EAAE,KAAK,WAAW,CAClE,CAAC;QACF,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;CACF;AApHD,sCAoHC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScriptStorage.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScriptStorage.d.ts index 53e276df..7599fda4 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScriptStorage.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScriptStorage.d.ts @@ -1,7 +1,9 @@ import type { CdpTarget } from '../context/CdpTarget.js'; import type { PreloadScript } from './PreloadScript.js'; /** PreloadScripts can be filtered by BiDi ID or target ID. */ -export type PreloadScriptFilter = Partial & Pick & { +export type PreloadScriptFilter = Partial<{ + id: PreloadScript['id']; + targetId: CdpTarget['id']; global: boolean; }>; /** diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScriptStorage.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScriptStorage.js.map index 9a1ea7f4..2316849d 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScriptStorage.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/PreloadScriptStorage.js.map @@ -1 +1 @@ -{"version":3,"file":"PreloadScriptStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/script/PreloadScriptStorage.ts"],"names":[],"mappings":";;;AA4BA;;GAEG;AACH,MAAa,oBAAoB;IAC/B,wCAAwC;IAC/B,QAAQ,GAAG,IAAI,GAAG,EAAiB,CAAC;IAE7C,qDAAqD;IACrD,IAAI,CAAC,MAA4B;QAC/B,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC5B,CAAC;QAED,OAAO,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE;YAC1C,IAAI,MAAM,CAAC,EAAE,KAAK,SAAS,IAAI,MAAM,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,EAAE,CAAC;gBACvD,OAAO,KAAK,CAAC;YACf,CAAC;YACD,IACE,MAAM,CAAC,QAAQ,KAAK,SAAS;gBAC7B,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,EACtC,CAAC;gBACD,OAAO,KAAK,CAAC;YACf,CAAC;YACD,IACE,MAAM,CAAC,MAAM,KAAK,SAAS;gBAC3B,kCAAkC;gBAClC,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC;oBAC/C,0CAA0C;oBAC1C,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,EACpD,CAAC;gBACD,OAAO,KAAK,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC;IAED,GAAG,CAAC,aAA4B;QAC9B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC;IAED,2EAA2E;IAC3E,MAAM,CAAC,MAA4B;QACjC,KAAK,MAAM,aAAa,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9C,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;CACF;AA3CD,oDA2CC"} \ No newline at end of file +{"version":3,"file":"PreloadScriptStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/script/PreloadScriptStorage.ts"],"names":[],"mappings":";;;AA2BA;;GAEG;AACH,MAAa,oBAAoB;IAC/B,wCAAwC;IAC/B,QAAQ,GAAG,IAAI,GAAG,EAAiB,CAAC;IAE7C,qDAAqD;IACrD,IAAI,CAAC,MAA4B;QAC/B,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC5B,CAAC;QAED,OAAO,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE;YAC1C,IAAI,MAAM,CAAC,EAAE,KAAK,SAAS,IAAI,MAAM,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,EAAE,CAAC;gBACvD,OAAO,KAAK,CAAC;YACf,CAAC;YACD,IACE,MAAM,CAAC,QAAQ,KAAK,SAAS;gBAC7B,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,EACtC,CAAC;gBACD,OAAO,KAAK,CAAC;YACf,CAAC;YACD,IACE,MAAM,CAAC,MAAM,KAAK,SAAS;gBAC3B,kCAAkC;gBAClC,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC;oBAC/C,0CAA0C;oBAC1C,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,EACpD,CAAC;gBACD,OAAO,KAAK,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC;IAED,GAAG,CAAC,aAA4B;QAC9B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC;IAED,2EAA2E;IAC3E,MAAM,CAAC,MAA4B;QACjC,KAAK,MAAM,aAAa,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9C,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;CACF;AA3CD,oDA2CC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/Realm.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/Realm.d.ts index 869f6d1c..aaaa6237 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/Realm.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/Realm.d.ts @@ -15,26 +15,39 @@ * limitations under the License. */ import { Protocol } from 'devtools-protocol'; -import type { ICdpClient } from '../../../cdp/CdpClient.js'; -import { type BrowsingContext, Script } from '../../../protocol/protocol.js'; +import type { CdpClient } from '../../../cdp/CdpClient.js'; +import { Script } from '../../../protocol/protocol.js'; import { type LoggerFn } from '../../../utils/log.js'; -import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; -import type { EventManager } from '../events/EventManager.js'; +import type { BrowsingContextImpl } from '../context/BrowsingContextImpl.js'; +import type { EventManager } from '../session/EventManager.js'; import type { RealmStorage } from './RealmStorage.js'; -export declare class Realm { +export declare abstract class Realm { #private; - readonly sandbox?: string; - constructor(realmStorage: RealmStorage, browsingContextStorage: BrowsingContextStorage, realmId: Script.Realm, browsingContextId: BrowsingContext.BrowsingContext, executionContextId: Protocol.Runtime.ExecutionContextId, origin: string, type: Script.RealmType, sandbox: string | undefined, cdpClient: ICdpClient, eventManager: EventManager, logger?: LoggerFn); + constructor(cdpClient: CdpClient, eventManager: EventManager, executionContextId: Protocol.Runtime.ExecutionContextId, logger: LoggerFn | undefined, origin: string, realmId: Script.Realm, realmStorage: RealmStorage); cdpToBidiValue(cdpValue: Protocol.Runtime.CallFunctionOnResponse | Protocol.Runtime.EvaluateResponse, resultOwnership: Script.ResultOwnership): Script.RemoteValue; + /** + * Relies on the CDP to implement proper BiDi serialization, except: + * * CDP integer property `backendNodeId` is replaced with `sharedId` of + * `{documentId}_element_{backendNodeId}`; + * * CDP integer property `weakLocalObjectReference` is replaced with UUID `internalId` + * using unique-per serialization `internalIdMap`. + * * CDP type `platformobject` is replaced with `object`. + * @param deepSerializedValue - CDP value to be converted to BiDi. + * @param internalIdMap - Map from CDP integer `weakLocalObjectReference` to BiDi UUID + * `internalId`. + */ + protected serializeForBiDi(deepSerializedValue: Protocol.Runtime.DeepSerializedValue, internalIdMap: Map): Script.RemoteValue; get realmId(): Script.Realm; - get navigableId(): string; - get browsingContextId(): BrowsingContext.BrowsingContext; get executionContextId(): Protocol.Runtime.ExecutionContextId; get origin(): string; - get type(): Script.RealmType; - get cdpClient(): ICdpClient; - get realmInfo(): Script.RealmInfo; + get source(): Script.Source; + get cdpClient(): CdpClient; + abstract get associatedBrowsingContexts(): BrowsingContextImpl[]; + abstract get realmType(): Script.RealmType; + protected get baseInfo(): Script.BaseRealmInfo; + abstract get realmInfo(): Script.RealmInfo; evaluate(expression: string, awaitPromise: boolean, resultOwnership: Script.ResultOwnership, serializationOptions: Script.SerializationOptions, userActivation?: boolean): Promise; + protected initialize(): void; /** * Serializes a given CDP object into BiDi, keeping references in the * target's `globalThis`. @@ -46,6 +59,7 @@ export declare class Realm { */ stringifyObject(cdpRemoteObject: Protocol.Runtime.RemoteObject): Promise; callFunction(functionDeclaration: string, thisLocalValue: Script.LocalValue, argumentsLocalValues: Script.LocalValue[], awaitPromise: boolean, resultOwnership: Script.ResultOwnership, serializationOptions: Script.SerializationOptions, userActivation?: boolean): Promise; + deserializeForCdp(localValue: Script.LocalValue): Promise; disown(handle: Script.Handle): Promise; dispose(): void; } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/Realm.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/Realm.js index a61fbba2..1860c918 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/Realm.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/Realm.js @@ -5,40 +5,26 @@ const protocol_js_1 = require("../../../protocol/protocol.js"); const log_js_1 = require("../../../utils/log.js"); const uuid_js_1 = require("../../../utils/uuid.js"); const ChannelProxy_js_1 = require("./ChannelProxy.js"); -const SHARED_ID_DIVIDER = '_element_'; class Realm { - #realmStorage; - #browsingContextStorage; - #realmId; - #browsingContextId; - #executionContextId; - #origin; - #type; #cdpClient; #eventManager; - sandbox; + #executionContextId; #logger; - constructor(realmStorage, browsingContextStorage, realmId, browsingContextId, executionContextId, origin, type, sandbox, cdpClient, eventManager, logger) { - this.#realmId = realmId; - this.#browsingContextId = browsingContextId; - this.#executionContextId = executionContextId; - this.sandbox = sandbox; - this.#origin = origin; - this.#type = type; + #origin; + #realmId; + #realmStorage; + constructor(cdpClient, eventManager, executionContextId, logger, origin, realmId, realmStorage) { this.#cdpClient = cdpClient; - this.#realmStorage = realmStorage; - this.#browsingContextStorage = browsingContextStorage; this.#eventManager = eventManager; + this.#executionContextId = executionContextId; this.#logger = logger; + this.#origin = origin; + this.#realmId = realmId; + this.#realmStorage = realmStorage; this.#realmStorage.addRealm(this); - this.#eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.Script.EventNames.RealmCreated, - params: this.realmInfo, - }, this.browsingContextId); } cdpToBidiValue(cdpValue, resultOwnership) { - const bidiValue = this.#deepSerializedToBiDi(cdpValue.result.deepSerializedValue, new Map()); + const bidiValue = this.serializeForBiDi(cdpValue.result.deepSerializedValue, new Map()); if (cdpValue.result.objectId) { const objectId = cdpValue.result.objectId; if (resultOwnership === "root" /* Script.ResultOwnership.Root */) { @@ -77,7 +63,7 @@ class Realm { * @param internalIdMap - Map from CDP integer `weakLocalObjectReference` to BiDi UUID * `internalId`. */ - #deepSerializedToBiDi(deepSerializedValue, internalIdMap) { + serializeForBiDi(deepSerializedValue, internalIdMap) { if (Object.hasOwn(deepSerializedValue, 'weakLocalObjectReference')) { const weakLocalObjectReference = deepSerializedValue.weakLocalObjectReference; if (!internalIdMap.has(weakLocalObjectReference)) { @@ -95,37 +81,17 @@ class Realm { if (bidiValue === undefined) { return deepSerializedValue; } - if (deepSerializedValue.type === 'node') { - if (Object.hasOwn(bidiValue, 'backendNodeId')) { - deepSerializedValue.sharedId = - `${this.navigableId}${SHARED_ID_DIVIDER}${bidiValue.backendNodeId}`; - delete bidiValue['backendNodeId']; - } - if (Object.hasOwn(bidiValue, 'children')) { - for (const i in bidiValue.children) { - bidiValue.children[i] = this.#deepSerializedToBiDi(bidiValue.children[i], internalIdMap); - } - } - if (Object.hasOwn(bidiValue, 'shadowRoot') && - bidiValue.shadowRoot !== null) { - bidiValue.shadowRoot = this.#deepSerializedToBiDi(bidiValue.shadowRoot, internalIdMap); - } - // `namespaceURI` can be is either `null` or non-empty string. - if (bidiValue.namespaceURI === '') { - bidiValue.namespaceURI = null; - } - } // Recursively update the nested values. if (['array', 'set', 'htmlcollection', 'nodelist'].includes(deepSerializedValue.type)) { for (const i in bidiValue) { - bidiValue[i] = this.#deepSerializedToBiDi(bidiValue[i], internalIdMap); + bidiValue[i] = this.serializeForBiDi(bidiValue[i], internalIdMap); } } if (['object', 'map'].includes(deepSerializedValue.type)) { for (const i in bidiValue) { bidiValue[i] = [ - this.#deepSerializedToBiDi(bidiValue[i][0], internalIdMap), - this.#deepSerializedToBiDi(bidiValue[i][1], internalIdMap), + this.serializeForBiDi(bidiValue[i][0], internalIdMap), + this.serializeForBiDi(bidiValue[i][1], internalIdMap), ]; } } @@ -134,49 +100,27 @@ class Realm { get realmId() { return this.#realmId; } - get navigableId() { - return ((this.browsingContextId && - this.#browsingContextStorage.findContext(this.browsingContextId) - ?.navigableId) ?? - 'UNKNOWN'); - } - get browsingContextId() { - return this.#browsingContextId; - } get executionContextId() { return this.#executionContextId; } get origin() { return this.#origin; } - get type() { - return this.#type; + get source() { + return { + realm: this.realmId, + }; } get cdpClient() { return this.#cdpClient; } - get realmInfo() { - switch (this.type) { - case 'window': - return { - realm: this.realmId, - origin: this.origin, - type: this.type, - context: this.browsingContextId, - ...(this.sandbox === undefined ? {} : { sandbox: this.sandbox }), - }; - default: - return { - realm: this.realmId, - origin: this.origin, - type: this.type, - }; - } + get baseInfo() { + return { + realm: this.realmId, + origin: this.origin, + }; } async evaluate(expression, awaitPromise, resultOwnership, serializationOptions, userActivation = false) { - await this.#browsingContextStorage - .getContext(this.browsingContextId) - .targetUnblockedOrThrow(); const cdpEvaluateResult = await this.cdpClient.sendCommand('Runtime.evaluate', { contextId: this.executionContextId, expression, @@ -193,6 +137,15 @@ class Realm { type: 'success', }; } + initialize() { + for (const browsingContext of this.associatedBrowsingContexts) { + this.#eventManager.registerEvent({ + type: 'event', + method: protocol_js_1.ChromiumBidi.Script.EventNames.RealmCreated, + params: this.realmInfo, + }, browsingContext.id); + } + } /** * Serializes a given CDP object into BiDi, keeping references in the * target's `globalThis`. @@ -243,16 +196,16 @@ class Realm { } else { // Key is a serialized value. - keyArg = await this.#deserializeToCdpArg(key); + keyArg = await this.deserializeForCdp(key); } - const valueArg = await this.#deserializeToCdpArg(value); + const valueArg = await this.deserializeForCdp(value); keyValueArray.push(keyArg); keyValueArray.push(valueArg); } return keyValueArray; } async #flattenValueList(listLocalValue) { - return await Promise.all(listLocalValue.map((localValue) => this.#deserializeToCdpArg(localValue))); + return await Promise.all(listLocalValue.map((localValue) => this.deserializeForCdp(localValue))); } async #serializeCdpExceptionDetails(cdpExceptionDetails, lineOffset, resultOwnership) { const callFrames = cdpExceptionDetails.stackTrace?.callFrames.map((frame) => ({ @@ -274,9 +227,6 @@ class Realm { }; } async callFunction(functionDeclaration, thisLocalValue, argumentsLocalValues, awaitPromise, resultOwnership, serializationOptions, userActivation = false) { - await this.#browsingContextStorage - .getContext(this.browsingContextId) - .targetUnblockedOrThrow(); const callFunctionAndSerializeScript = `(...args) => { function callFunction(f, args) { const deserializedThis = args.shift(); @@ -288,8 +238,8 @@ class Realm { ), args); }`; const thisAndArgumentsList = [ - await this.#deserializeToCdpArg(thisLocalValue), - ...(await Promise.all(argumentsLocalValues.map(async (argumentLocalValue) => await this.#deserializeToCdpArg(argumentLocalValue)))), + await this.deserializeForCdp(thisLocalValue), + ...(await Promise.all(argumentsLocalValues.map(async (argumentLocalValue) => await this.deserializeForCdp(argumentLocalValue)))), ]; let cdpCallFunctionResult; try { @@ -325,37 +275,8 @@ class Realm { realm: this.realmId, }; } - async #deserializeToCdpArg(localValue) { - if ('sharedId' in localValue && localValue.sharedId) { - const [navigableId, rawBackendNodeId] = localValue.sharedId.split(SHARED_ID_DIVIDER); - const backendNodeId = parseInt(rawBackendNodeId ?? ''); - if (isNaN(backendNodeId) || - backendNodeId === undefined || - navigableId === undefined) { - throw new protocol_js_1.NoSuchNodeException(`SharedId "${localValue.sharedId}" was not found.`); - } - if (this.navigableId !== navigableId) { - throw new protocol_js_1.NoSuchNodeException(`SharedId "${localValue.sharedId}" belongs to different document. Current document is ${this.navigableId}.`); - } - try { - const { object } = await this.cdpClient.sendCommand('DOM.resolveNode', { - backendNodeId, - executionContextId: this.executionContextId, - }); - // TODO(#375): Release `obj.object.objectId` after using. - return { objectId: object.objectId }; - } - catch (error) { - // Heuristic to detect "no such node" exception. Based on the specific - // CDP implementation. - if (error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ && - error.message === 'No node with given id found') { - throw new protocol_js_1.NoSuchNodeException(`SharedId "${localValue.sharedId}" was not found.`); - } - throw new protocol_js_1.UnknownErrorException(error.message, error.stack); - } - } - else if ('handle' in localValue && localValue.handle) { + async deserializeForCdp(localValue) { + if ('handle' in localValue && localValue.handle) { return { objectId: localValue.handle }; // We tried to find a handle value but failed // This allows us to have exhaustive switch on `localValue.type` @@ -538,13 +459,15 @@ class Realm { this.#realmStorage.knownHandlesToRealmMap.delete(handle); } dispose() { - this.#eventManager.registerEvent({ - type: 'event', - method: protocol_js_1.ChromiumBidi.Script.EventNames.RealmDestroyed, - params: { - realm: this.realmId, - }, - }, this.browsingContextId); + for (const browsingContext of this.associatedBrowsingContexts) { + this.#eventManager.registerEvent({ + type: 'event', + method: protocol_js_1.ChromiumBidi.Script.EventNames.RealmDestroyed, + params: { + realm: this.realmId, + }, + }, browsingContext.id); + } } } exports.Realm = Realm; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/Realm.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/Realm.js.map index 7491aba5..1dd95fec 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/Realm.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/Realm.js.map @@ -1 +1 @@ -{"version":3,"file":"Realm.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/script/Realm.ts"],"names":[],"mappings":";;;AAmBA,+DAOuC;AAEvC,kDAA6D;AAC7D,oDAA8C;AAI9C,uDAA+C;AAG/C,MAAM,iBAAiB,GAAG,WAAW,CAAC;AAEtC,MAAa,KAAK;IACP,aAAa,CAAe;IAC5B,uBAAuB,CAAyB;IAChD,QAAQ,CAAe;IACvB,kBAAkB,CAAkC;IACpD,mBAAmB,CAAsC;IACzD,OAAO,CAAS;IAChB,KAAK,CAAmB;IACxB,UAAU,CAAa;IACvB,aAAa,CAAe;IAC5B,OAAO,CAAU;IACjB,OAAO,CAAY;IAE5B,YACE,YAA0B,EAC1B,sBAA8C,EAC9C,OAAqB,EACrB,iBAAkD,EAClD,kBAAuD,EACvD,MAAc,EACd,IAAsB,EACtB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C,uBAAuB,EAAE;gBACxD,QAAQ,EAAE,MAAM;aACjB,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YACpB,mEAAmE;YACnE,0BAA0B;YAC1B,IACE,CAAC,CACC,KAAK,CAAC,IAAI,iDAAoC;gBAC7C,KAAe,CAAC,OAAO,KAAK,0BAA0B,CACxD,EACD,CAAC;gBACD,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAAqB;QAChC,yDAAyD;QACzD,IACE,IAAI,CAAC,aAAa,CAAC,sBAAsB,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,OAAO,EACtE,CAAC;YACD,OAAO;QACT,CAAC;QAED,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QAElC,IAAI,CAAC,aAAa,CAAC,sBAAsB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3D,CAAC;IAED,OAAO;QACL,IAAI,CAAC,aAAa,CAAC,aAAa,CAC9B;YACE,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,0BAAY,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc;YACrD,MAAM,EAAE;gBACN,KAAK,EAAE,IAAI,CAAC,OAAO;aACpB;SACF,EACD,IAAI,CAAC,iBAAiB,CACvB,CAAC;IACJ,CAAC;CACF;AAtxBD,sBAsxBC"} \ No newline at end of file +{"version":3,"file":"Realm.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/script/Realm.ts"],"names":[],"mappings":";;;AAmBA,+DAIuC;AAEvC,kDAA6D;AAC7D,oDAA8C;AAI9C,uDAA+C;AAG/C,MAAsB,KAAK;IAChB,UAAU,CAAY;IACtB,aAAa,CAAe;IAC5B,mBAAmB,CAAsC;IACzD,OAAO,CAAY;IACnB,OAAO,CAAS;IAChB,QAAQ,CAAe;IACvB,aAAa,CAAe;IAErC,YACE,SAAoB,EACpB,YAA0B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AC,0BAA0B,EAAE,CAAC;YAC9D,IAAI,CAAC,aAAa,CAAC,aAAa,CAC9B;gBACE,IAAI,EAAE,OAAO;gBACb,MAAM,EAAE,0BAAY,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc;gBACrD,MAAM,EAAE;oBACN,KAAK,EAAE,IAAI,CAAC,OAAO;iBACpB;aACF,EACD,eAAe,CAAC,EAAE,CACnB,CAAC;QACJ,CAAC;IACH,CAAC;CACF;AAjrBD,sBAirBC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/RealmStorage.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/RealmStorage.d.ts index 471f6353..577d49c1 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/RealmStorage.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/RealmStorage.d.ts @@ -15,12 +15,11 @@ * limitations under the License. */ import type { Protocol } from 'devtools-protocol'; -import { type Script, type BrowsingContext } from '../../../protocol/protocol.js'; +import { type BrowsingContext, type Script } from '../../../protocol/protocol.js'; import type { Realm } from './Realm.js'; type RealmFilter = { realmId?: Script.Realm; browsingContextId?: BrowsingContext.BrowsingContext; - navigableId?: string; executionContextId?: Protocol.Runtime.ExecutionContextId; origin?: string; type?: Script.RealmType; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/RealmStorage.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/RealmStorage.js index 401a4eaa..0238fdbb 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/RealmStorage.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/RealmStorage.js @@ -2,6 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.RealmStorage = void 0; const protocol_js_1 = require("../../../protocol/protocol.js"); +const WindowRealm_js_1 = require("./WindowRealm.js"); /** Container class for browsing realms. */ class RealmStorage { /** Tracks handles and their realms sent to the client. */ @@ -21,11 +22,13 @@ class RealmStorage { return false; } if (filter.browsingContextId !== undefined && - filter.browsingContextId !== realm.browsingContextId) { + !realm.associatedBrowsingContexts + .map((browsingContext) => browsingContext.id) + .includes(filter.browsingContextId)) { return false; } - if (filter.navigableId !== undefined && - filter.navigableId !== realm.navigableId) { + if (filter.sandbox !== undefined && + (!(realm instanceof WindowRealm_js_1.WindowRealm) || filter.sandbox !== realm.sandbox)) { return false; } if (filter.executionContextId !== undefined && @@ -35,10 +38,7 @@ class RealmStorage { if (filter.origin !== undefined && filter.origin !== realm.origin) { return false; } - if (filter.type !== undefined && filter.type !== realm.type) { - return false; - } - if (filter.sandbox !== undefined && filter.sandbox !== realm.sandbox) { + if (filter.type !== undefined && filter.type !== realm.realmType) { return false; } if (filter.cdpSessionId !== undefined && diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/RealmStorage.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/RealmStorage.js.map index 09759cdf..fbd61d0e 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/RealmStorage.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/RealmStorage.js.map @@ -1 +1 @@ -{"version":3,"file":"RealmStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/script/RealmStorage.ts"],"names":[],"mappings":";;;AAkBA,+DAIuC;AAevC,2CAA2C;AAC3C,MAAa,YAAY;IACvB,0DAA0D;IACjD,uBAAuB,GAAG,IAAI,GAAG,EAGvC,CAAC;IAEJ,kCAAkC;IACzB,SAAS,GAAG,IAAI,GAAG,EAAuB,CAAC;IAEpD,IAAI,sBAAsB;QACxB,OAAO,IAAI,CAAC,uBAAuB,CAAC;IACtC,CAAC;IAED,QAAQ,CAAC,KAAY;QACnB,IAAI,CAAC,SAAS,CAAC,GAAG,C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;QACnE,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA1FD,oCA0FC"} \ No newline at end of file +{"version":3,"file":"RealmStorage.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/script/RealmStorage.ts"],"names":[],"mappings":";;;AAkBA,+DAIuC;AAGvC,qDAA6C;AAY7C,2CAA2C;AAC3C,MAAa,YAAY;IACvB,0DAA0D;IACjD,uBAAuB,GAAG,IAAI,GAAG,EAGvC,CAAC;IAEJ,kCAAkC;IACzB,SAAS,GAAG,IAAI,GAAG,EAAuB,CAAC;IAEpD,IAAI,sBAAsB;QACxB,OAAO,IAAI,CAAC,uBAAuB,CAAC;IACtC,CAAC;IAED,QAAQ,CAAC,KAAY;QACnB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC3C,CAAC;IAED,oDAAoD;IACpD,UAAU,CAAC,MAAmB;QAC5B,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;YAC1D,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,IAAI,MAAM,CAAC,OAAO,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;gBACrE,OAAO,KAAK,CAAC;YACf,CAAC;YACD,IACE,MAAM,CAAC,iBAAiB,KAAK,SAAS;gBACtC,CAAC,KAAK,CAAC,0BAA0B;qBAC9B,GAAG,CAAC,CAAC,eAAe,EAAE,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC;qBAC5C,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,EACrC,CAAC;gBACD,OAAO,KAAK,CAAC;YACf,CAAC;YACD,IACE,MAAM,CAAC,OAAO,KAAK,SAAS;gBAC5B,CAAC,CAAC,CAAC,KAAK,YAAY,4BAAW,CAAC,IAAI,MAAM,CAAC,OAAO,KAAK,KAAK,CAAC,OAAO,CAAC,EAC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mB;QAC9B,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;YACpC,KAAK,CAAC,OAAO,EAAE,CAAC;YAChB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACrC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,CAAC;iBAC9C,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,OAAO,CAAC;iBACtC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAzFD,oCAyFC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ScriptProcessor.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ScriptProcessor.js.map index 4d56b806..7bc8d9a1 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ScriptProcessor.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/ScriptProcessor.js.map @@ -1 +1 @@ -{"version":3,"file":"ScriptProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/script/ScriptProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,yDAKoC;AAMpC,mDAA8C;AAK9C,MAAa,eAAe;IACjB,uBAAuB,CAAyB;IAChD,aAAa,CAAe;IAC5B,qBAAqB,CAAC;IACtB,OAAO,CAAY;IAE5B,YACE,sBAA8C,EAC9C,YAA0B,EAC1B,oBAA0C,EAC1C,MAAiB;QAEjB,IAAI,CAAC,uBAAuB,GAAG,sBAAsB,CAAC;QAC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;YACtB,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;gBACjC,OAAO,EAAE,MAAM,CAAC,KAAK;aACtB,CAAC,CAAC;QACL,CAAC;QACD,MAAM,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACxE,OAAO,MAAM,OAAO,CAAC,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC1D,CAAC;CACF;AAlJD,0CAkJC"} \ No newline at end of file +{"version":3,"file":"ScriptProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/script/ScriptProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,yDAKoC;AAMpC,mDAA8C;AAK9C,MAAa,eAAe;IACjB,uBAAuB,CAAyB;IAChD,aAAa,CAAe;IAC5B,qBAAqB,CAAC;IACtB,OAAO,CAAY;IAE5B,YACE,sBAA8C,EAC9C,YAA0B,EAC1B,oBAA0C,EAC1C,MAAiB;QAEjB,IAAI,CAAC,uBAAuB,GAAG,sBAAsB,CAAC;QACtD,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,qBAAqB,GAAG,oBAAoB,CAAC;QAClD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,MAAyC;QAEzC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAuB,CAAC;QAChD,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;YACpB,+EAA+E;YAC/E,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACjC,MAAM,IAAI,mCAAwB,CAAC,yBAAyB,CAAC,CAAC;YAChE,CAAC;YAED,KAAK,MAAM,SAAS,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;gBACxC,MAAM,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC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MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CACjE,CAAC;QACF,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,SAAS,CAAC,MAAkC;QAC1C,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YACjC,kCAAkC;YAClC,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC1D,CAAC;QACD,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa;aAC9B,UAAU,CAAC;YACV,iBAAiB,EAAE,MAAM,CAAC,OAAO;YACjC,IAAI,EAAE,MAAM,CAAC,IAAI;SAClB,CAAC;aACD,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACnC,OAAO,EAAC,MAAM,EAAC,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,MAAqB;QACnC,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;YACtB,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;gBACjC,OAAO,EAAE,MAAM,CAAC,KAAK;aACtB,CAAC,CAAC;QACL,CAAC;QACD,MAAM,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACxE,OAAO,MAAM,OAAO,CAAC,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC1D,CAAC;CACF;AAlJD,0CAkJC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/SharedId.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/SharedId.d.ts new file mode 100644 index 00000000..394c417b --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/SharedId.d.ts @@ -0,0 +1,6 @@ +export declare function getSharedId(frameId: string, documentId: string, backendNodeId: number, sharedIdWithFrame: boolean): string; +export declare function parseSharedId(sharedId: string): { + frameId: string | undefined; + documentId: string; + backendNodeId: number; +} | null; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/SharedId.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/SharedId.js new file mode 100644 index 00000000..3ee8d82d --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/SharedId.js @@ -0,0 +1,80 @@ +"use strict"; +/* + * Copyright 2023 Google LLC. + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.parseSharedId = exports.getSharedId = void 0; +const SHARED_ID_DIVIDER = '_element_'; +function getSharedId(frameId, documentId, backendNodeId, sharedIdWithFrame) { + if (sharedIdWithFrame) { + return `f.${frameId}.d.${documentId}.e.${backendNodeId}`; + } + // TODO: remove once ChromeDriver accepts sharedId in the new format: + // http://go/chromedriver:weak-map + return `${documentId}${SHARED_ID_DIVIDER}${backendNodeId}`; +} +exports.getSharedId = getSharedId; +function parseLegacySharedId(sharedId) { + const match = sharedId.match(new RegExp(`(.*)${SHARED_ID_DIVIDER}(.*)`)); + if (!match) { + // SharedId is incorrectly formatted. + return null; + } + const documentId = match[1]; + const elementId = match[2]; + if (documentId === undefined || elementId === undefined) { + return null; + } + const backendNodeId = parseInt(elementId ?? ''); + if (isNaN(backendNodeId)) { + return null; + } + return { + documentId, + backendNodeId, + }; +} +function parseSharedId(sharedId) { + // TODO: remove legacy check once ChromeDriver provides sharedId in the new format. + const legacyFormattedSharedId = parseLegacySharedId(sharedId); + if (legacyFormattedSharedId !== null) { + return { ...legacyFormattedSharedId, frameId: undefined }; + } + const match = sharedId.match(/f\.(.*)\.d\.(.*)\.e\.([0-9]*)/); + if (!match) { + // SharedId is incorrectly formatted. + return null; + } + const frameId = match[1]; + const documentId = match[2]; + const elementId = match[3]; + if (frameId === undefined || + documentId === undefined || + elementId === undefined) { + return null; + } + const backendNodeId = parseInt(elementId ?? ''); + if (isNaN(backendNodeId)) { + return null; + } + return { + frameId, + documentId, + backendNodeId, + }; +} +exports.parseSharedId = parseSharedId; +//# sourceMappingURL=SharedId.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/SharedId.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/SharedId.js.map new file mode 100644 index 00000000..3d9864ea --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/SharedId.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SharedId.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/script/SharedId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,MAAM,iBAAiB,GAAG,WAAW,CAAC;AAEtC,SAAgB,WAAW,CACzB,OAAe,EACf,UAAkB,EAClB,aAAqB,EACrB,iBAA0B;IAE1B,IAAI,iBAAiB,EAAE,CAAC;QACtB,OAAO,KAAK,OAAO,MAAM,UAAU,MAAM,aAAa,EAAE,CAAC;IAC3D,CAAC;IACD,qEAAqE;IACrE,mCAAmC;IACnC,OAAO,GAAG,UAAU,GAAG,iBAAiB,GAAG,aAAa,EAAE,CAAC;AAC7D,CAAC;AAZD,kCAYC;AAED,SAAS,mBAAmB,CAAC,QAAgB;IAI3C,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,iBA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,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IAChD,IAAI,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO;QACL,OAAO;QACP,UAAU;QACV,aAAa;KACd,CAAC;AACJ,CAAC;AAxCD,sCAwCC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/WindowRealm.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/WindowRealm.d.ts new file mode 100644 index 00000000..7b58e4a4 --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/WindowRealm.d.ts @@ -0,0 +1,39 @@ +/** + * Copyright 2024 Google LLC. + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import type { Protocol } from 'devtools-protocol'; +import type { CdpClient } from '../../../cdp/CdpClient.js'; +import { type BrowsingContext, type Script } from '../../../protocol/protocol.js'; +import type { LoggerFn } from '../../../utils/log.js'; +import type { BrowsingContextImpl } from '../context/BrowsingContextImpl.js'; +import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; +import type { EventManager } from '../session/EventManager.js'; +import { Realm } from './Realm.js'; +import type { RealmStorage } from './RealmStorage.js'; +export declare class WindowRealm extends Realm { + #private; + readonly sandbox: string | undefined; + constructor(browsingContextId: BrowsingContext.BrowsingContext, browsingContextStorage: BrowsingContextStorage, cdpClient: CdpClient, eventManager: EventManager, executionContextId: Protocol.Runtime.ExecutionContextId, logger: LoggerFn | undefined, origin: string, realmId: Script.Realm, realmStorage: RealmStorage, sandbox: string | undefined, sharedIdWithFrame: boolean); + get browsingContext(): BrowsingContextImpl; + get associatedBrowsingContexts(): [BrowsingContextImpl]; + get realmType(): 'window'; + get realmInfo(): Script.WindowRealmInfo; + get source(): Script.Source; + serializeForBiDi(deepSerializedValue: Protocol.Runtime.DeepSerializedValue, internalIdMap: Map): Script.RemoteValue; + deserializeForCdp(localValue: Script.LocalValue): Promise; + evaluate(expression: string, awaitPromise: boolean, resultOwnership: Script.ResultOwnership, serializationOptions: Script.SerializationOptions, userActivation?: boolean): Promise; + callFunction(functionDeclaration: string, thisLocalValue: Script.LocalValue, argumentsLocalValues: Script.LocalValue[], awaitPromise: boolean, resultOwnership: Script.ResultOwnership, serializationOptions: Script.SerializationOptions, userActivation?: boolean): Promise; +} diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/WindowRealm.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/WindowRealm.js new file mode 100644 index 00000000..270ab9e6 --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/WindowRealm.js @@ -0,0 +1,142 @@ +"use strict"; +/** + * Copyright 2024 Google LLC. + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WindowRealm = void 0; +const protocol_js_1 = require("../../../protocol/protocol.js"); +const Realm_js_1 = require("./Realm.js"); +const SharedId_js_1 = require("./SharedId.js"); +class WindowRealm extends Realm_js_1.Realm { + #browsingContextId; + #browsingContextStorage; + #sharedIdWithFrame; + sandbox; + constructor(browsingContextId, browsingContextStorage, cdpClient, eventManager, executionContextId, logger, origin, realmId, realmStorage, sandbox, sharedIdWithFrame) { + super(cdpClient, eventManager, executionContextId, logger, origin, realmId, realmStorage); + this.#browsingContextId = browsingContextId; + this.#browsingContextStorage = browsingContextStorage; + this.#sharedIdWithFrame = sharedIdWithFrame; + this.sandbox = sandbox; + this.initialize(); + } + #getBrowsingContextId(navigableId) { + const maybeBrowsingContext = this.#browsingContextStorage + .getAllContexts() + .find((context) => context.navigableId === navigableId); + return maybeBrowsingContext?.id ?? 'UNKNOWN'; + } + get browsingContext() { + return this.#browsingContextStorage.getContext(this.#browsingContextId); + } + get associatedBrowsingContexts() { + return [this.browsingContext]; + } + get realmType() { + return 'window'; + } + get realmInfo() { + return { + ...this.baseInfo, + type: this.realmType, + context: this.#browsingContextId, + sandbox: this.sandbox, + }; + } + get source() { + return { + realm: this.realmId, + context: this.browsingContext.id, + }; + } + serializeForBiDi(deepSerializedValue, internalIdMap) { + const bidiValue = deepSerializedValue.value; + if (deepSerializedValue.type === 'node') { + if (Object.hasOwn(bidiValue, 'backendNodeId')) { + let navigableId = this.browsingContext.navigableId ?? 'UNKNOWN'; + if (Object.hasOwn(bidiValue, 'loaderId')) { + // `loaderId` should be always there after ~2024-03-05, when + // https://crrev.com/c/5116240 reaches stable. + // TODO: remove the check after the date. + navigableId = bidiValue.loaderId; + delete bidiValue['loaderId']; + } + deepSerializedValue.sharedId = + (0, SharedId_js_1.getSharedId)(this.#getBrowsingContextId(navigableId), navigableId, bidiValue.backendNodeId, this.#sharedIdWithFrame); + delete bidiValue['backendNodeId']; + } + if (Object.hasOwn(bidiValue, 'children')) { + for (const i in bidiValue.children) { + bidiValue.children[i] = this.serializeForBiDi(bidiValue.children[i], internalIdMap); + } + } + if (Object.hasOwn(bidiValue, 'shadowRoot') && + bidiValue.shadowRoot !== null) { + bidiValue.shadowRoot = this.serializeForBiDi(bidiValue.shadowRoot, internalIdMap); + } + // `namespaceURI` can be is either `null` or non-empty string. + if (bidiValue.namespaceURI === '') { + bidiValue.namespaceURI = null; + } + } + return super.serializeForBiDi(deepSerializedValue, internalIdMap); + } + async deserializeForCdp(localValue) { + if ('sharedId' in localValue && localValue.sharedId) { + const parsedSharedId = (0, SharedId_js_1.parseSharedId)(localValue.sharedId); + if (parsedSharedId === null) { + throw new protocol_js_1.NoSuchNodeException(`SharedId "${localValue.sharedId}" was not found.`); + } + const { documentId, backendNodeId } = parsedSharedId; + // TODO: add proper validation if the element is accessible from the current realm. + if (this.browsingContext.navigableId !== documentId) { + throw new protocol_js_1.NoSuchNodeException(`SharedId "${localValue.sharedId}" belongs to different document. Current document is ${this.browsingContext.navigableId}.`); + } + try { + const { object } = await this.cdpClient.sendCommand('DOM.resolveNode', { + backendNodeId, + executionContextId: this.executionContextId, + }); + // TODO(#375): Release `obj.object.objectId` after using. + return { objectId: object.objectId }; + } + catch (error) { + // Heuristic to detect "no such node" exception. Based on the specific + // CDP implementation. + if (error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ && + error.message === 'No node with given id found') { + throw new protocol_js_1.NoSuchNodeException(`SharedId "${localValue.sharedId}" was not found.`); + } + throw new protocol_js_1.UnknownErrorException(error.message, error.stack); + } + } + return await super.deserializeForCdp(localValue); + } + async evaluate(expression, awaitPromise, resultOwnership, serializationOptions, userActivation) { + await this.#browsingContextStorage + .getContext(this.#browsingContextId) + .targetUnblockedOrThrow(); + return await super.evaluate(expression, awaitPromise, resultOwnership, serializationOptions, userActivation); + } + async callFunction(functionDeclaration, thisLocalValue, argumentsLocalValues, awaitPromise, resultOwnership, serializationOptions, userActivation) { + await this.#browsingContextStorage + .getContext(this.#browsingContextId) + .targetUnblockedOrThrow(); + return await super.callFunction(functionDeclaration, thisLocalValue, argumentsLocalValues, awaitPromise, resultOwnership, serializationOptions, userActivation); + } +} +exports.WindowRealm = WindowRealm; +//# sourceMappingURL=WindowRealm.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/WindowRealm.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/WindowRealm.js.map new file mode 100644 index 00000000..ee51eb00 --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/script/WindowRealm.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WindowRealm.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/script/WindowRealm.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAKH,+DAKuC;AAOvC,yCAAiC;AAEjC,+CAAyD;AAEzD,MAAa,WAAY,SAAQ,gBAAK;IAC3B,kBAAkB,CAAkC;IACpD,uBAAuB,CAAyB;IAChD,kBAAkB,CAAU;IAC5B,OAAO,CAAqB;IAErC,YACE,iBAAkD,EAClD,sBAA8C,EAC9C,SAAoB,EACpB,YAA0B,EAC1B,kBAAuD,EACvD,MAA4B,EAC5B,MAAc,EACd,OAAqB,EACrB,YAA0B,EAC1B,OAA2B,EAC3B,iBAA0B;QAE1B,KAAK,CACH,SAAS,EACT,YAAY,EACZ,kBAAkB,EAClB,MAAM,EACN,MAAM,EACN,OAAO,EACP,YAAY,CACb,CAAC;QAEF,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;QAC5C,IAAI,CAAC,uBAAuB,GAAG,sBAAsB,CAAC;QACtD,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,IAAI,CAAC,UAAU,EAAE,CAAC;IACpB,CAAC;IAED,qBAAqB,CAAC,WAAmB;QACvC,MAAM,oBAAoB,GAAG,IAAI,CAAC,uBAAuB;aACtD,cAAc,EAAE;aAChB,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,KAAK,WAAW,CAAC,CAAC;QAC1D,OAAO,oBAAoB,EAAE,EAAE,IAAI,SAAS,CAAC;IAC/C,CAAC;IAED,IAAI,eAAe;QACjB,OA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,EACjC,oBAAyC,EACzC,YAAqB,EACrB,eAAuC,EACvC,oBAAiD,EACjD,cAAwB;QAExB,MAAM,IAAI,CAAC,uBAAuB;aAC/B,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC;aACnC,sBAAsB,EAAE,CAAC;QAE5B,OAAO,MAAM,KAAK,CAAC,YAAY,CAC7B,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,eAAe,EACf,oBAAoB,EACpB,cAAc,CACf,CAAC;IACJ,CAAC;CACF;AA9MD,kCA8MC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/EventManager.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/EventManager.d.ts similarity index 88% rename from Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/EventManager.d.ts rename to Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/EventManager.d.ts index 86bb72ea..92fc7ee4 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/EventManager.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/EventManager.d.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +import type { BidiPlusChannel } from '../../../protocol/chromium-bidi.js'; import { ChromiumBidi, type BrowsingContext } from '../../../protocol/protocol.js'; import { EventEmitter } from '../../../utils/EventEmitter.js'; import type { Result } from '../../../utils/result.js'; @@ -33,7 +34,7 @@ export declare class EventManager extends EventEmitter { constructor(browsingContextStorage: BrowsingContextStorage); registerEvent(event: ChromiumBidi.Event, contextId: BrowsingContext.BrowsingContext | null): void; registerPromiseEvent(event: Promise>, contextId: BrowsingContext.BrowsingContext | null, eventName: ChromiumBidi.EventNames): void; - subscribe(eventNames: ChromiumBidi.EventNames[], contextIds: (BrowsingContext.BrowsingContext | null)[], channel: string | null): void; - unsubscribe(eventNames: ChromiumBidi.EventNames[], contextIds: (BrowsingContext.BrowsingContext | null)[], channel: string | null): void; + subscribe(eventNames: ChromiumBidi.EventNames[], contextIds: (BrowsingContext.BrowsingContext | null)[], channel: BidiPlusChannel): void; + unsubscribe(eventNames: ChromiumBidi.EventNames[], contextIds: (BrowsingContext.BrowsingContext | null)[], channel: BidiPlusChannel): void; } export {}; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/EventManager.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/EventManager.js similarity index 100% rename from Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/EventManager.js rename to Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/EventManager.js diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/EventManager.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/EventManager.js.map new file mode 100644 index 00000000..686eb454 --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/EventManager.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EventManager.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/session/EventManager.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAGH,+DAGuC;AACvC,wDAAgD;AAChD,gEAAwD;AACxD,oEAA4D;AAC5D,8DAAsD;AAEtD,iEAAyD;AAGzD,2CAAiD;AACjD,qEAA6D;AAE7D,MAAM,YAAY;IACP,UAAU,GAAG,IAAI,wBAAS,EAAE,CAAC;IAC7B,UAAU,CAAyC;IACnD,MAAM,CAAsC;IAErD,YACE,KAA0C,EAC1C,SAAiD;QAEjD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED,IAAI,EAAE;QACJ,OAAO,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;IAC5B,CAAC;IAED,IAAI,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,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAClB,IAAI,CAAC,kBAAkB,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC,CACxD;iBACA,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;QACjD,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;IAChD,CAAC;CACF;AAtND,oCAsNC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SessionProcessor.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SessionProcessor.d.ts index 1a29ca21..44a99a86 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SessionProcessor.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SessionProcessor.d.ts @@ -14,12 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +import type { BidiPlusChannel } from '../../../protocol/chromium-bidi.js'; import type { EmptyResult, Session } from '../../../protocol/protocol.js'; -import type { EventManager } from '../events/EventManager.js'; +import type { EventManager } from './EventManager.js'; export declare class SessionProcessor { #private; constructor(eventManager: EventManager); status(): Session.StatusResult; - subscribe(params: Session.SubscriptionRequest, channel?: string | null): EmptyResult; - unsubscribe(params: Session.SubscriptionRequest, channel?: string | null): EmptyResult; + subscribe(params: Session.SubscriptionRequest, channel?: BidiPlusChannel): EmptyResult; + unsubscribe(params: Session.SubscriptionRequest, channel?: BidiPlusChannel): EmptyResult; } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SessionProcessor.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SessionProcessor.js.map index 5d62a87e..327eff9f 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SessionProcessor.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SessionProcessor.js.map @@ -1 +1 @@ -{"version":3,"file":"SessionProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/session/SessionProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AASH,MAAa,gBAAgB;IAC3B,aAAa,CAAe;IAE5B,YAAY,YAA0B;QACpC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;IAED,MAAM;QACJ,OAAO,EAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAC,CAAC;IACtD,CAAC;IAED,SAAS,CACP,MAAmC,EACnC,UAAyB,IAAI;QAE7B,IAAI,CAAC,aAAa,CAAC,SAAS,CAC1B,MAAM,CAAC,MAAmC,EAC1C,MAAM,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,EACzB,OAAO,CACR,CAAC;QACF,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,WAAW,CACT,MAAmC,EACnC,UAAyB,IAAI;QAE7B,IAAI,CAAC,aAAa,CAAC,WAAW,CAC5B,MAAM,CAAC,MAAmC,EAC1C,MAAM,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,EACzB,OAAO,CACR,CAAC;QACF,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAlCD,4CAkCC"} \ No newline at end of file +{"version":3,"file":"SessionProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/session/SessionProcessor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAWH,MAAa,gBAAgB;IAC3B,aAAa,CAAe;IAE5B,YAAY,YAA0B;QACpC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;IAED,MAAM;QACJ,OAAO,EAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAC,CAAC;IACtD,CAAC;IAED,SAAS,CACP,MAAmC,EACnC,UAA2B,IAAI;QAE/B,IAAI,CAAC,aAAa,CAAC,SAAS,CAC1B,MAAM,CAAC,MAAmC,EAC1C,MAAM,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,EACzB,OAAO,CACR,CAAC;QACF,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,WAAW,CACT,MAAmC,EACnC,UAA2B,IAAI;QAE/B,IAAI,CAAC,aAAa,CAAC,WAAW,CAC5B,MAAM,CAAC,MAAmC,EAC1C,MAAM,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,EACzB,OAAO,CACR,CAAC;QACF,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAlCD,4CAkCC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/SubscriptionManager.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SubscriptionManager.d.ts similarity index 82% rename from Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/SubscriptionManager.d.ts rename to Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SubscriptionManager.d.ts index ae1a5560..a8977c06 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/SubscriptionManager.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SubscriptionManager.d.ts @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +import type { BidiPlusChannel } from '../../../protocol/chromium-bidi.js'; import { ChromiumBidi, type BrowsingContext } from '../../../protocol/protocol.js'; import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; /** @@ -28,15 +29,15 @@ export declare function unrollEvents(events: ChromiumBidi.EventNames[]): Chromiu export declare class SubscriptionManager { #private; constructor(browsingContextStorage: BrowsingContextStorage); - getChannelsSubscribedToEvent(eventMethod: ChromiumBidi.EventNames, contextId: BrowsingContext.BrowsingContext | null): (string | null)[]; - subscribe(event: ChromiumBidi.EventNames, contextId: BrowsingContext.BrowsingContext | null, channel: string | null): void; + getChannelsSubscribedToEvent(eventMethod: ChromiumBidi.EventNames, contextId: BrowsingContext.BrowsingContext | null): BidiPlusChannel[]; + subscribe(event: ChromiumBidi.EventNames, contextId: BrowsingContext.BrowsingContext | null, channel: BidiPlusChannel): void; /** * Unsubscribes atomically from all events in the given contexts and channel. */ - unsubscribeAll(events: ChromiumBidi.EventNames[], contextIds: (BrowsingContext.BrowsingContext | null)[], channel: string | null): void; + unsubscribeAll(events: ChromiumBidi.EventNames[], contextIds: (BrowsingContext.BrowsingContext | null)[], channel: BidiPlusChannel): void; /** * Unsubscribes from the event in the given context and channel. * Syntactic sugar for "unsubscribeAll". */ - unsubscribe(eventName: ChromiumBidi.EventNames, contextId: BrowsingContext.BrowsingContext | null, channel: string | null): void; + unsubscribe(eventName: ChromiumBidi.EventNames, contextId: BrowsingContext.BrowsingContext | null, channel: BidiPlusChannel): void; } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/SubscriptionManager.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SubscriptionManager.js similarity index 100% rename from Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/SubscriptionManager.js rename to Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SubscriptionManager.js diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SubscriptionManager.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SubscriptionManager.js.map new file mode 100644 index 00000000..8d558b44 --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/SubscriptionManager.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SubscriptionManager.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/session/SubscriptionManager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ChC,0BAA0B,CAC3B,CAAC;QACJ,CAAC;QAED,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAEvB,0BAA0B;YAC1B,IAAI,QAAQ,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;gBACxB,iBAAiB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAClC,CAAC;YACD,IAAI,iBAAiB,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;gBACjC,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACnD,CAAC;QACH,CAAC,CAAC;IACJ,CAAC;CACF;AAxOD,kDAwOC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/events.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/events.d.ts similarity index 100% rename from Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/events.d.ts rename to Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/events.d.ts diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/events.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/events.js similarity index 100% rename from Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/events/events.js rename to Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/events.js diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/events.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/events.js.map new file mode 100644 index 00000000..2700f853 --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/session/events.js.map @@ -0,0 +1 @@ +{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/session/events.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,+DAGuC;AAEvC;;;GAGG;AACH,SAAgB,UAAU,CAAC,IAAY;IACrC,OAAO,CACL,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,0BAAY,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,KAAK,CACxE,CAAC;AACJ,CAAC;AAJD,gCAIC;AAED;;GAEG;AACH,SAAgB,oBAAoB,CAClC,IAAY;IAEZ,IAAI,CAAC,0BAAY,CAAC,WAAW,CAAC,GAAG,CAAC,IAAa,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACtE,MAAM,IAAI,sCAAwB,CAAC,kBAAkB,IAAI,EAAE,CAAC,CAAC;IAC/D,CAAC;AACH,CAAC;AAND,oDAMC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/storage/StorageProcessor.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/storage/StorageProcessor.d.ts new file mode 100644 index 00000000..4175eafb --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/storage/StorageProcessor.d.ts @@ -0,0 +1,13 @@ +import type { CdpClient } from '../../../cdp/CdpClient.js'; +import type { Storage } from '../../../protocol/protocol.js'; +import type { LoggerFn } from '../../../utils/log.js'; +import type { BrowsingContextStorage } from '../context/BrowsingContextStorage.js'; +/** + * Responsible for handling the `storage` domain. + */ +export declare class StorageProcessor { + #private; + constructor(browserCdpClient: CdpClient, browsingContextStorage: BrowsingContextStorage, logger: LoggerFn | undefined); + getCookies(params: Storage.GetCookiesParameters): Promise; + setCookie(params: Storage.SetCookieParameters): Promise; +} diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/storage/StorageProcessor.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/storage/StorageProcessor.js new file mode 100644 index 00000000..337c992d --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/storage/StorageProcessor.js @@ -0,0 +1,132 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StorageProcessor = void 0; +const protocol_js_1 = require("../../../protocol/protocol.js"); +const assert_js_1 = require("../../../utils/assert.js"); +const log_js_1 = require("../../../utils/log.js"); +const NetworkProcessor_js_1 = require("../network/NetworkProcessor.js"); +const NetworkUtils_js_1 = require("../network/NetworkUtils.js"); +/** + * Responsible for handling the `storage` domain. + */ +class StorageProcessor { + #browserCdpClient; + #browsingContextStorage; + #logger; + constructor(browserCdpClient, browsingContextStorage, logger) { + this.#browsingContextStorage = browsingContextStorage; + this.#browserCdpClient = browserCdpClient; + this.#logger = logger; + } + async getCookies(params) { + const partitionKey = this.#expandStoragePartitionSpec(params.partition); + const cdpResponse = await this.#browserCdpClient.sendCommand('Storage.getCookies', { + browserContextId: partitionKey.userContext, + }); + const filteredBiDiCookies = cdpResponse.cookies + .filter( + // CDP's partition key is the source origin. If the request specifies the + // `sourceOrigin` partition key, only cookies with the requested source origin + // are returned. + (c) => partitionKey.sourceOrigin === undefined || + c.partitionKey === partitionKey.sourceOrigin) + .map((c) => (0, NetworkUtils_js_1.cdpToBiDiCookie)(c)) + .filter((c) => this.#matchCookie(c, params.filter)); + return { + cookies: filteredBiDiCookies, + partitionKey, + }; + } + async setCookie(params) { + const partitionKey = this.#expandStoragePartitionSpec(params.partition); + const cdpCookie = (0, NetworkUtils_js_1.bidiToCdpCookie)(params, partitionKey); + try { + await this.#browserCdpClient.sendCommand('Storage.setCookies', { + cookies: [cdpCookie], + browserContextId: partitionKey.userContext, + }); + } + catch (e) { + this.#logger?.(log_js_1.LogType.debugError, e); + throw new protocol_js_1.UnableToSetCookieException(e.toString()); + } + return { + partitionKey, + }; + } + #expandStoragePartitionSpecByBrowsingContext(descriptor) { + const browsingContextId = descriptor.context; + const browsingContext = this.#browsingContextStorage.getContext(browsingContextId); + // https://w3c.github.io/webdriver-bidi/#associated-storage-partition. + // Each browsing context also has an associated storage partition, which is the + // storage partition it uses to persist data. In Chromium it's a `BrowserContext` + // which maps to BiDi `UserContext`. + return { + userContext: browsingContext.userContext === 'default' + ? undefined + : browsingContext.userContext, + }; + } + #expandStoragePartitionSpecByStorageKey(descriptor) { + const unsupportedPartitionKeys = new Map(); + let sourceOrigin = descriptor.sourceOrigin; + if (sourceOrigin !== undefined) { + const url = NetworkProcessor_js_1.NetworkProcessor.parseUrlString(sourceOrigin); + if (url.origin === 'null') { + // Origin `null` is a special case for local pages. + sourceOrigin = url.origin; + } + else { + // Port is not supported in CDP Cookie's `partitionKey`, so it should be stripped + // from the requested source origin. + sourceOrigin = `${url.protocol}//${url.hostname}`; + } + } + const userContext = descriptor.userContext === 'default' ? undefined : descriptor.userContext; + // Partition spec is a storage partition. + // Let partition key be partition spec. + for (const [key, value] of Object.entries(descriptor)) { + if (key !== undefined && + value !== undefined && + !['type', 'sourceOrigin', 'userContext'].includes(key)) { + unsupportedPartitionKeys.set(key, value); + } + } + if (unsupportedPartitionKeys.size > 0) { + this.#logger?.(log_js_1.LogType.debugInfo, `Unsupported partition keys: ${JSON.stringify(Object.fromEntries(unsupportedPartitionKeys))}`); + } + return { + ...(sourceOrigin === undefined ? {} : { sourceOrigin }), + ...(userContext === undefined ? {} : { userContext }), + }; + } + #expandStoragePartitionSpec(partitionSpec) { + if (partitionSpec === undefined) { + return {}; + } + if (partitionSpec.type === 'context') { + return this.#expandStoragePartitionSpecByBrowsingContext(partitionSpec); + } + (0, assert_js_1.assert)(partitionSpec.type === 'storageKey', 'Unknown partition type'); + return this.#expandStoragePartitionSpecByStorageKey(partitionSpec); + } + #matchCookie(cookie, filter) { + if (filter === undefined) { + return true; + } + return ((filter.domain === undefined || filter.domain === cookie.domain) && + (filter.name === undefined || filter.name === cookie.name) && + // `value` contains fields `type` and `value`. + (filter.value === undefined || + (filter.value.type === cookie.value.type && + filter.value.value === cookie.value.value)) && + (filter.path === undefined || filter.path === cookie.path) && + (filter.size === undefined || filter.size === cookie.size) && + (filter.httpOnly === undefined || filter.httpOnly === cookie.httpOnly) && + (filter.secure === undefined || filter.secure === cookie.secure) && + (filter.sameSite === undefined || filter.sameSite === cookie.sameSite) && + (filter.expiry === undefined || filter.expiry === cookie.expiry)); + } +} +exports.StorageProcessor = StorageProcessor; +//# sourceMappingURL=StorageProcessor.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/storage/StorageProcessor.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/storage/StorageProcessor.js.map new file mode 100644 index 00000000..5b88816b --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiMapper/domains/storage/StorageProcessor.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StorageProcessor.js","sourceRoot":"","sources":["../../../../../src/bidiMapper/domains/storage/StorageProcessor.ts"],"names":[],"mappings":";;;AAiBA,+DAAyE;AAEzE,wDAAgD;AAEhD,kDAA8C;AAE9C,wEAAgE;AAChE,gEAA4E;AAE5E;;GAEG;AACH,MAAa,gBAAgB;IAClB,iBAAiB,CAAY;IAC7B,uBAAuB,CAAyB;IAChD,OAAO,CAAuB;IAEvC,YACE,gBAA2B,EAC3B,sBAA8C,EAC9C,MAA4B;QAE5B,IAAI,CAAC,uBAAuB,GAAG,sBAAsB,CAAC;QACtD,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,UAAU,CACd,MAAoC;QAEpC,MAAM,YAAY,GAAG,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAExE,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAC1D,oBAAoB,EACpB;YACE,gBAAgB,EAAE,YAAY,CAAC,WAAW;SAC3C,CACF,CAAC;QAEF,MAAM,mBAAmB,GAAG,WAAW,CA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AAC,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,KAAK,CAAC,IAAI;oBACtC,MAAM,CAAC,KAAK,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC/C,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC;YAC1D,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC;YAC1D,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,IAAI,MAAM,CAAC,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC;YACtE,CAAC,MAAM,CAAC,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC;YAChE,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,IAAI,MAAM,CAAC,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC;YACtE,CAAC,MAAM,CAAC,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,CACjE,CAAC;IACJ,CAAC;CACF;AAlKD,4CAkKC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/BrowserInstance.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/BrowserInstance.d.ts index 392425f6..cd2ab155 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/BrowserInstance.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/BrowserInstance.d.ts @@ -1,6 +1,6 @@ import { type ChromeReleaseChannel, type Process } from '@puppeteer/browsers'; import type { MapperOptions } from '../bidiMapper/BidiServer.js'; -import { MapperCdpConnection } from './MapperCdpConnection.js'; +import { MapperServerCdpConnection } from './MapperCdpConnection.js'; import type { SimpleTransport } from './SimpleTransport.js'; type ChromeOptions = { chromeArgs: string[]; @@ -20,7 +20,7 @@ type ChromeOptions = { export declare class BrowserInstance { #private; static run(chromeOptions: ChromeOptions, mapperOptions: MapperOptions, verbose: boolean): Promise; - constructor(mapperCdpConnection: MapperCdpConnection, browserProcess: Process); + constructor(mapperCdpConnection: MapperServerCdpConnection, browserProcess: Process); close(): Promise; bidiSession(): SimpleTransport; } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/BrowserInstance.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/BrowserInstance.js index 48f404e6..ccb01d87 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/BrowserInstance.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/BrowserInstance.js @@ -83,6 +83,7 @@ class BrowserInstance { const browserProcess = (0, browsers_1.launch)({ executablePath, args: chromeArguments, + env: process.env, }); const cdpEndpoint = await browserProcess.waitForLineOutput(browsers_1.CDP_WEBSOCKET_ENDPOINT_REGEX); // There is a conflict between prettier and eslint here. @@ -91,7 +92,7 @@ class BrowserInstance { // 2. Get `BiDi-CDP` mapper JS binaries. const mapperTabSource = await (0, reader_js_1.getMapperTabSource)(); // 3. Run `BiDi-CDP` mapper in launched browser using `MapperRunner`. - const mapperCdpConnection = await MapperCdpConnection_js_1.MapperCdpConnection.create(cdpConnection, mapperTabSource, verbose, mapperOptions); + const mapperCdpConnection = await MapperCdpConnection_js_1.MapperServerCdpConnection.create(cdpConnection, mapperTabSource, verbose, mapperOptions); return new BrowserInstance(mapperCdpConnection, browserProcess); } constructor(mapperCdpConnection, browserProcess) { @@ -115,7 +116,7 @@ class BrowserInstance { ws.on('open', () => { debugInternal('Session established.'); const transport = new WebsocketTransport_js_1.WebSocketTransport(ws); - const connection = new CdpConnection_js_1.CdpConnection(transport); + const connection = new CdpConnection_js_1.MapperCdpConnection(transport); resolve(connection); }); }); diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/BrowserInstance.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/BrowserInstance.js.map index 68bafa30..65c4f7fb 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/BrowserInstance.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/BrowserInstance.js.map @@ -1 +1 @@ -{"version":3,"file":"BrowserInstance.js","sourceRoot":"","sources":["../../../src/bidiServer/BrowserInstance.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;AAEH,0CAAoC;AACpC,4CAAoB;AACpB,gDAAwB;AAExB,kDAO6B;AAC7B,kDAA0B;AAC1B,4CAA2B;AAG3B,8DAAsD;AACtD,0EAAkE;AAElE,qEAA6D;AAC7D,2CAA+C;AAG/C,MAAM,aAAa,GAAG,IAAA,eAAK,EAAC,sBAAsB,CAAC,CAAC;AASpD;;;;;;;;GAQG;AACH,MAAa,eAAe;IAC1B,oBAAoB,CAAsB;IAC1C,eAAe,CAAU;IAEzB,MAAM,CAAC,KAAK,CAAC,GAAG,CACd,aAA4B,EAC5B,aAA4B,EAC5B,OAAgB;QAEhB,MAAM,UAAU,GAAG,MAAM,IAAA,kBAAO,EAC9B,cAAI,CAAC,IAAI,CAAC,YAAE,CAAC,MAAM,EAAE,EAAE,yBAAyB,CAAC,CAClD,CAAC;QACF,+FAA+F;QAC/F,MAAM,eAAe,GAAG;YACtB,GAAG,CAAC,aAAa,CAAC,QAAQ;gBACxB,CAAC,CAAC,CAAC,YAAY,EAAE,mBAAmB,EAAE,cAAc,CAAC;gBACrD,CAAC,CAAC,EAAE,CAAC;YACP,oBAAoB;YACpB,8BAA8B;YAC9B,4BAA4B;YAC5B,wBAAwB;YACxB,kEAAkE;YAClE,oBAAoB;YACpB,yBAAyB;YACzB,0BAA0B;YAC1B,uCAAuC;YACvC,qBAAqB;YACrB,4BAA4B;YAC5B,gBAAgB;YAChB,wBAAwB;YACxB,8BAA8B;YAC9B,qBAAqB;YACrB,mBAAmB,U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,KAAK,EAAE,CAAC;QAElC,iBAAiB;QACjB,MAAM,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC;IACrC,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,oBAAoB,CAAC,WAAW,EAAE,CAAC;IACjD,CAAC;IAED,MAAM,CAAC,uBAAuB,CAAC,MAAc;QAC3C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,aAAa,CAAC,oCAAoC,EAAE,MAAM,CAAC,CAAC;YAE5D,MAAM,EAAE,GAAG,IAAI,YAAS,CAAC,MAAM,CAAC,CAAC;YAEjC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAEzB,EAAE,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE;gBACjB,aAAa,CAAC,sBAAsB,CAAC,CAAC;gBAEtC,MAAM,SAAS,GAAG,IAAI,0CAAkB,CAAC,EAAE,CAAC,CAAC;gBAC7C,MAAM,UAAU,GAAG,IAAI,gCAAa,CAAC,SAAS,CAAC,CAAC;gBAChD,OAAO,CAAC,UAAU,CAAC,CAAC;YACtB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAtHD,0CAsHC"} \ No newline at end of file +{"version":3,"file":"BrowserInstance.js","sourceRoot":"","sources":["../../../src/bidiServer/BrowserInstance.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;AAEH,0CAAoC;AACpC,4CAAoB;AACpB,gDAAwB;AAExB,kDAO6B;AAC7B,kDAA0B;AAC1B,4CAA2B;AAG3B,8DAA4D;AAC5D,0EAAkE;AAElE,qEAAmE;AACnE,2CAA+C;AAG/C,MAAM,aAAa,GAAG,IAAA,eAAK,EAAC,sBAAsB,CAAC,CAAC;AASpD;;;;;;;;GAQG;AACH,MAAa,eAAe;IAC1B,oBAAoB,CAA4B;IAChD,eAAe,CAAU;IAEzB,MAAM,C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CAAC,EAAE,CAAC,CAAC;gBAC7C,MAAM,UAAU,GAAG,IAAI,sCAAmB,CAAC,SAAS,CAAC,CAAC;gBACtD,OAAO,CAAC,UAAU,CAAC,CAAC;YACtB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAvHD,0CAuHC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/MapperCdpConnection.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/MapperCdpConnection.d.ts index 2497bdc8..79ea37c3 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/MapperCdpConnection.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/MapperCdpConnection.d.ts @@ -15,11 +15,11 @@ * limitations under the License. */ import type { MapperOptions } from '../bidiMapper/BidiServer.js'; -import type { CdpConnection } from '../cdp/CdpConnection.js'; +import type { MapperCdpConnection } from '../cdp/CdpConnection.js'; import { SimpleTransport } from './SimpleTransport.js'; -export declare class MapperCdpConnection { +export declare class MapperServerCdpConnection { #private; - static create(cdpConnection: CdpConnection, mapperTabSource: string, verbose: boolean, mapperOptions: MapperOptions): Promise; + static create(cdpConnection: MapperCdpConnection, mapperTabSource: string, verbose: boolean, mapperOptions: MapperOptions): Promise; private constructor(); close(): void; bidiSession(): SimpleTransport; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/MapperCdpConnection.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/MapperCdpConnection.js index 993118b1..424c4939 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/MapperCdpConnection.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/MapperCdpConnection.js @@ -19,7 +19,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.MapperCdpConnection = void 0; +exports.MapperServerCdpConnection = void 0; const debug_1 = __importDefault(require("debug")); const SimpleTransport_js_1 = require("./SimpleTransport.js"); const debugInternal = (0, debug_1.default)('bidi:mapper:internal'); @@ -36,32 +36,26 @@ const getLogger = (type) => { } return logger; }; -class MapperCdpConnection { +class MapperServerCdpConnection { #cdpConnection; - #mapperCdpClient; #bidiSession; static async create(cdpConnection, mapperTabSource, verbose, mapperOptions) { try { - const mapperCdpClient = await this.#initMapper(cdpConnection, mapperTabSource, verbose, mapperOptions); - return new MapperCdpConnection(cdpConnection, mapperCdpClient); + const bidiSession = await this.#initMapper(cdpConnection, mapperTabSource, verbose, mapperOptions); + return new MapperServerCdpConnection(cdpConnection, bidiSession); } catch (e) { cdpConnection.close(); throw e; } } - constructor(cdpConnection, mapperCdpClient) { + constructor(cdpConnection, bidiSession) { this.#cdpConnection = cdpConnection; - this.#mapperCdpClient = mapperCdpClient; - this.#bidiSession = new SimpleTransport_js_1.SimpleTransport(async (message) => await this.#sendMessage(message)); - this.#mapperCdpClient.on('Runtime.bindingCalled', this.#onBindingCalled); - this.#mapperCdpClient.on('Runtime.consoleAPICalled', this.#onConsoleAPICalled); - // Catch unhandled exceptions in the mapper. - this.#mapperCdpClient.on('Runtime.exceptionThrown', this.#onRuntimeExceptionThrown); + this.#bidiSession = bidiSession; } - async #sendMessage(message) { + static async #sendMessage(mapperCdpClient, message) { try { - await this.#mapperCdpClient.sendCommand('Runtime.evaluate', { + await mapperCdpClient.sendCommand('Runtime.evaluate', { expression: `onBidiMessage(${JSON.stringify(message)})`, }); } @@ -75,15 +69,15 @@ class MapperCdpConnection { bidiSession() { return this.#bidiSession; } - #onBindingCalled = (params) => { + static #onBindingCalled = (params, bidiSession) => { if (params.name === 'sendBidiResponse') { - this.#bidiSession.emit('message', params.payload); + bidiSession.emit('message', params.payload); } else if (params.name === 'sendDebugMessage') { this.#onDebugMessage(params.payload); } }; - #onDebugMessage = (json) => { + static #onDebugMessage = (json) => { try { const log = JSON.parse(json); if (log.logType !== undefined && log.messages !== undefined) { @@ -96,10 +90,10 @@ class MapperCdpConnection { debugOthers(json); } }; - #onConsoleAPICalled = (params) => { + static #onConsoleAPICalled = (params) => { debugInfo('consoleAPICalled: %s %O', params.type, params.args.map((arg) => arg.value)); }; - #onRuntimeExceptionThrown = (params) => { + static #onRuntimeExceptionThrown = (params) => { debugInfo('exceptionThrown:', params); }; static async #initMapper(cdpConnection, mapperTabSource, verbose, mapperOptions) { @@ -110,6 +104,13 @@ class MapperCdpConnection { }); const { sessionId: mapperSessionId } = await browserClient.sendCommand('Target.attachToTarget', { targetId: mapperTabTargetId, flatten: true }); const mapperCdpClient = cdpConnection.getCdpClient(mapperSessionId); + const bidiSession = new SimpleTransport_js_1.SimpleTransport(async (message) => await this.#sendMessage(mapperCdpClient, message)); + // Process responses from the mapper tab. + mapperCdpClient.on('Runtime.bindingCalled', (params) => this.#onBindingCalled(params, bidiSession)); + // Forward console messages from the mapper tab. + mapperCdpClient.on('Runtime.consoleAPICalled', this.#onConsoleAPICalled); + // Catch unhandled exceptions in the mapper. + mapperCdpClient.on('Runtime.exceptionThrown', this.#onRuntimeExceptionThrown); await mapperCdpClient.sendCommand('Runtime.enable'); await browserClient.sendCommand('Target.exposeDevToolsProtocol', { bindingName: 'cdp', @@ -133,8 +134,8 @@ class MapperCdpConnection { awaitPromise: true, }); debugInternal('Mapper is launched!'); - return mapperCdpClient; + return bidiSession; } } -exports.MapperCdpConnection = MapperCdpConnection; +exports.MapperServerCdpConnection = MapperServerCdpConnection; //# sourceMappingURL=MapperCdpConnection.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/MapperCdpConnection.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/MapperCdpConnection.js.map index ca39ee02..a447fcce 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/MapperCdpConnection.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/MapperCdpConnection.js.map @@ -1 +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qBAAqB,EACrB;YACE,GAAG,EAAE,aAAa;SACnB,CACF,CAAC;QACF,MAAM,EAAC,SAAS,EAAE,eAAe,EAAC,GAAG,MAAM,aAAa,CAAC,WAAW,CAClE,uBAAuB,EACvB,EAAC,QAAQ,EAAE,iBAAiB,EAAE,OAAO,EAAE,IAAI,EAAC,CAC7C,CAAC;QAEF,MAAM,eAAe,GAAG,aAAa,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;QAEpE,MAAM,eAAe,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;QAEpD,MAAM,aAAa,CAAC,WAAW,CAAC,+BAA+B,EAAE;YAC/D,WAAW,EAAE,KAAK;YAClB,QAAQ,EAAE,iBAAiB;SAC5B,CAAC,CAAC;QAEH,MAAM,eAAe,CAAC,WAAW,CAAC,oBAAoB,EAAE;YACtD,IAAI,EAAE,kBAAkB;SACzB,CAAC,CAAC;QAEH,IAAI,OAAO,EAAE,CAAC;YACZ,8CAA8C;YAC9C,MAAM,eAAe,CAAC,WAAW,CAAC,oBAAoB,EAAE;gBACtD,IAAI,EAAE,kBAAkB;aACzB,CAAC,CAAC;QACL,CAAC;QAED,0CAA0C;QAC1C,MAAM,eAAe,CAAC,WAAW,CAAC,kBAAkB,EAAE;YACpD,UAAU,EAAE,eAAe;SAC5B,CAAC,CAAC;QAEH,MAAM,eAAe,CAAC,WAAW,CAAC,kBAAkB,EAAE;YACpD,UAAU,EAAE,6BAA6B,iBAAiB,MAAM,IAAI,CAAC,SAAS,CAC5E,aAAa,CACd,GAAG;YACJ,YAAY,EAAE,IAAI;SACnB,CAAC,CAAC;QAEH,aAAa,CAAC,qBAAqB,CAAC,CAAC;QACrC,OAAO,eAAe,CAAC;IACzB,CAAC;CACF;AAhKD,kDAgKC"} \ No newline at end of file +{"version":3,"file":"MapperCdpConnection.js","sourceRoot":"","sources":["../../../src/bidiServer/MapperCdpConnection.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;AAEH,k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gB,CAAC,MAAM,EAAE,WAAW,CAAC,CAC3C,CAAC;QACF,gDAAgD;QAChD,eAAe,CAAC,EAAE,CAAC,0BAA0B,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;QACzE,4CAA4C;QAC5C,eAAe,CAAC,EAAE,CAChB,yBAAyB,EACzB,IAAI,CAAC,yBAAyB,CAC/B,CAAC;QAEF,MAAM,eAAe,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;QAEpD,MAAM,aAAa,CAAC,WAAW,CAAC,+BAA+B,EAAE;YAC/D,WAAW,EAAE,KAAK;YAClB,QAAQ,EAAE,iBAAiB;SAC5B,CAAC,CAAC;QAEH,MAAM,eAAe,CAAC,WAAW,CAAC,oBAAoB,EAAE;YACtD,IAAI,EAAE,kBAAkB;SACzB,CAAC,CAAC;QAEH,IAAI,OAAO,EAAE,CAAC;YACZ,8CAA8C;YAC9C,MAAM,eAAe,CAAC,WAAW,CAAC,oBAAoB,EAAE;gBACtD,IAAI,EAAE,kBAAkB;aACzB,CAAC,CAAC;QACL,CAAC;QAED,0CAA0C;QAC1C,MAAM,eAAe,CAAC,WAAW,CAAC,kBAAkB,EAAE;YACpD,UAAU,EAAE,eAAe;SAC5B,CAAC,CAAC;QAEH,MAAM,eAAe,CAAC,WAAW,CAAC,kBAAkB,EAAE;YACpD,UAAU,EAAE,6BAA6B,iBAAiB,MAAM,IAAI,CAAC,SAAS,CAC5E,aAAa,CACd,GAAG;YACJ,YAAY,EAAE,IAAI;SACnB,CAAC,CAAC;QAEH,aAAa,CAAC,qBAAqB,CAAC,CAAC;QACrC,OAAO,WAAW,CAAC;IACrB,CAAC;;AAxKH,8DAyKC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/WebSocketServer.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/WebSocketServer.d.ts index 485b5fa5..2cd36eb6 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/WebSocketServer.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/WebSocketServer.d.ts @@ -3,11 +3,5 @@ import debug from 'debug'; export declare const debugInfo: debug.Debugger; export declare class WebSocketServer { #private; - /** - * @param bidiPort Port to start ws server on. - * @param channel - * @param headless - * @param verbose - */ - static run(bidiPort: number, channel: ChromeReleaseChannel, headless: boolean, verbose: boolean): void; + constructor(port: number, channel: ChromeReleaseChannel, headless: boolean, verbose: boolean); } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/WebSocketServer.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/WebSocketServer.js index 37b307d9..cff7649c 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/WebSocketServer.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/WebSocketServer.js @@ -53,205 +53,212 @@ const debugInternal = (0, debug_1.default)('bidi:server:internal'); const debugSend = (0, debug_1.default)('bidi:server:SEND ▸'); const debugRecv = (0, debug_1.default)('bidi:server:RECV ◂'); class WebSocketServer { - static #sessions = new Map(); - /** - * @param bidiPort Port to start ws server on. - * @param channel - * @param headless - * @param verbose - */ - static run(bidiPort, channel, headless, verbose) { - const server = http_1.default.createServer(async (request, response) => { - debugInternal(`${new Date().toString()} Received HTTP ${JSON.stringify(request.method)} request for ${JSON.stringify(request.url)}`); - if (!request.url) { - return response.end(404); - } - // https://w3c.github.io/webdriver-bidi/#transport, step 2. - if (request.url === '/session') { - const body = []; - request - .on('data', (chunk) => { - body.push(chunk); - }) - .on('end', () => { - const jsonBody = JSON.parse(Buffer.concat(body).toString()); - response.writeHead(200, { - 'Content-Type': 'application/json;charset=utf-8', - 'Cache-Control': 'no-cache', - }); - const sessionId = (0, uuid_js_1.uuidv4)(); - const session = { - sessionId, - // TODO: launch browser instance and set it to the session after WPT - // tests clean up is switched to pure BiDi. - browserInstancePromise: undefined, - sessionOptions: { - chromeOptions: this.#getChromeOptions(jsonBody.capabilities, channel, headless), - mapperOptions: this.#getMapperOptions(jsonBody.capabilities), - verbose, - }, - }; - this.#sessions.set(sessionId, session); - const webSocketUrl = `ws://localhost:${bidiPort}/session/${sessionId}`; - debugInternal(`Session created. WebSocket URL: ${JSON.stringify(webSocketUrl)}.`); - response.write(JSON.stringify({ - value: { - sessionId, - capabilities: { - webSocketUrl, - }, - }, - })); - return response.end(); - }); - return; - } - else if (request.url.startsWith('/session')) { - debugInternal(`Unknown session command ${request.method ?? 'UNKNOWN METHOD'} request for ${request.url} with payload ${await WebSocketServer.#getHttpRequestPayload(request)}. 200 returned.`); - response.writeHead(200, { - 'Content-Type': 'application/json;charset=utf-8', - 'Cache-Control': 'no-cache', - }); - response.write(JSON.stringify({ - value: {}, - })); - } - else { - debugInternal(`Unknown ${JSON.stringify(request.method)} request for ${JSON.stringify(request.url)} with payload ${JSON.stringify(await WebSocketServer.#getHttpRequestPayload(request))}. 404 returned.`); - response.writeHead(404); - } - return response.end(); - }); - server.listen(bidiPort, () => { - (0, exports.debugInfo)('BiDi server is listening on port', bidiPort); - }); - const wsServer = new websocket.server({ - httpServer: server, + #sessions = new Map(); + #port; + #channel; + #headless; + #verbose; + #server; + #wsServer; + constructor(port, channel, headless, verbose) { + this.#port = port; + this.#channel = channel; + this.#headless = headless; + this.#verbose = verbose; + this.#server = http_1.default.createServer(this.#onRequest.bind(this)); + this.#wsServer = new websocket.server({ + httpServer: this.#server, autoAcceptConnections: false, }); - wsServer.on('request', (request) => { - // Session is set either by Classic or BiDi commands. - let session; - const requestSessionId = (request.resource ?? '').split('/').pop(); - debugInternal(`new WS request received. Path: ${JSON.stringify(request.resourceURL.path)}, sessionId: ${JSON.stringify(requestSessionId)}`); - if (requestSessionId !== '' && - requestSessionId !== undefined && - !this.#sessions.has(requestSessionId)) { - debugInternal('Unknown session id:', requestSessionId); - request.reject(); - return; - } - const connection = request.accept(); - session = this.#sessions.get(requestSessionId ?? ''); - if (session !== undefined) { - // BrowserInstance is created for each new WS connection, even for the - // same SessionId. This is because WPT uses a single session for all the - // tests, but cleans up tests using WebDriver Classic commands, which is - // not implemented in this Mapper runner. - // TODO: connect to an existing BrowserInstance instead. - const sessionOptions = session.sessionOptions; - session.browserInstancePromise = this.#closeBrowserInstanceIfLaunched(session) - .then(async () => await this.#launchBrowserInstance(connection, sessionOptions)) - .catch((e) => { - (0, exports.debugInfo)('Error while creating session', e); - connection.close(500, 'cannot create browser instance'); - throw e; - }); - } - connection.on('message', async (message) => { - // If type is not text, return error. - if (message.type !== 'utf8') { - this.#respondWithError(connection, {}, "invalid argument" /* ErrorCode.InvalidArgument */, `not supported type (${message.type})`); - return; - } - const plainCommandData = message.utf8Data; - if (debugRecv.enabled) { - try { - debugRecv(JSON.parse(plainCommandData)); - } - catch { - debugRecv(plainCommandData); - } - } - // Try to parse the message to handle some of BiDi commands. - let parsedCommandData; - try { - parsedCommandData = JSON.parse(plainCommandData); - } - catch (e) { - this.#respondWithError(connection, {}, "invalid argument" /* ErrorCode.InvalidArgument */, `Cannot parse data as JSON`); - return; - } - // Handle creating new session. - if (parsedCommandData.method === 'session.new') { - if (session !== undefined) { - (0, exports.debugInfo)('WS connection already have an associated session.'); - this.#respondWithError(connection, plainCommandData, "session not created" /* ErrorCode.SessionNotCreated */, 'WS connection already have an associated session.'); - return; - } - try { - const sessionOptions = { - chromeOptions: this.#getChromeOptions(parsedCommandData.params?.capabilities, channel, headless), - mapperOptions: this.#getMapperOptions(parsedCommandData.params?.capabilities), - verbose, - }; - const browserInstance = await this.#launchBrowserInstance(connection, sessionOptions); - const sessionId = (0, uuid_js_1.uuidv4)(); - session = { - sessionId, - browserInstancePromise: Promise.resolve(browserInstance), - sessionOptions, - }; - this.#sessions.set(sessionId, session); - } - catch (e) { - (0, exports.debugInfo)('Error while creating session', e); - this.#respondWithError(connection, plainCommandData, "session not created" /* ErrorCode.SessionNotCreated */, e?.message ?? 'Unknown error'); - return; - } - // TODO: extend with capabilities. - this.#sendClientMessage({ - id: parsedCommandData.id, - type: 'success', - result: { - sessionId: session.sessionId, - capabilities: {}, - }, - }, connection); - return; - } - if (session === undefined) { - (0, exports.debugInfo)('Session is not yet initialized.'); - this.#respondWithError(connection, plainCommandData, "invalid session id" /* ErrorCode.InvalidSessionId */, 'Session is not yet initialized.'); - return; - } - if (session.browserInstancePromise === undefined) { - (0, exports.debugInfo)('Browser instance is not launched.'); - this.#respondWithError(connection, plainCommandData, "invalid session id" /* ErrorCode.InvalidSessionId */, 'Browser instance is not launched.'); - return; - } - const browserInstance = await session.browserInstancePromise; - // Handle `browser.close` command. - if (parsedCommandData.method === 'browser.close') { - await browserInstance.close(); - this.#sendClientMessage({ - id: parsedCommandData.id, - type: 'success', - result: {}, - }, connection); - return; - } - // Forward all other commands to BiDi Mapper. - await browserInstance.bidiSession().sendCommand(plainCommandData); - }); - connection.on('close', async () => { - debugInternal(`${new Date().toString()} Peer ${connection.remoteAddress} disconnected.`); - // TODO: don't close Browser instance to allow re-connecting to the session. - await this.#closeBrowserInstanceIfLaunched(session); - }); + this.#wsServer.on('request', this.#onWsRequest.bind(this)); + this.#server.listen(this.#port, () => { + (0, exports.debugInfo)('BiDi server is listening on port', this.#port); }); } - static async #closeBrowserInstanceIfLaunched(session) { + async #onRequest(request, response) { + debugInternal(`Received HTTP ${JSON.stringify(request.method)} request for ${JSON.stringify(request.url)}`); + if (!request.url) { + return response.end(404); + } + // https://w3c.github.io/webdriver-bidi/#transport, step 2. + if (request.url === '/session') { + const body = await new Promise((resolve, reject) => { + const bodyArray = []; + request.on('data', (chunk) => { + bodyArray.push(chunk); + }); + request.on('error', reject); + request.on('end', () => { + resolve(Buffer.concat(bodyArray)); + }); + }); + // https://w3c.github.io/webdriver-bidi/#transport, step 3. + const jsonBody = JSON.parse(body.toString()); + response.writeHead(200, { + 'Content-Type': 'application/json;charset=utf-8', + 'Cache-Control': 'no-cache', + }); + const sessionId = (0, uuid_js_1.uuidv4)(); + const session = { + sessionId, + // TODO: launch browser instance and set it to the session after WPT + // tests clean up is switched to pure BiDi. + browserInstancePromise: undefined, + sessionOptions: { + chromeOptions: this.#getChromeOptions(jsonBody.capabilities, this.#channel, this.#headless), + mapperOptions: this.#getMapperOptions(jsonBody.capabilities), + verbose: this.#verbose, + }, + }; + this.#sessions.set(sessionId, session); + const webSocketUrl = `ws://localhost:${this.#port}/session/${sessionId}`; + debugInternal(`Session created. WebSocket URL: ${JSON.stringify(webSocketUrl)}.`); + response.write(JSON.stringify({ + value: { + sessionId, + capabilities: { + webSocketUrl, + }, + }, + })); + return response.end(); + } + else if (request.url.startsWith('/session')) { + debugInternal(`Unknown session command ${request.method ?? 'UNKNOWN METHOD'} request for ${request.url} with payload ${await this.#getHttpRequestPayload(request)}. 200 returned.`); + response.writeHead(200, { + 'Content-Type': 'application/json;charset=utf-8', + 'Cache-Control': 'no-cache', + }); + response.write(JSON.stringify({ + value: {}, + })); + return response.end(); + } + debugInternal(`Unknown ${request.method} request for ${JSON.stringify(request.url)} with payload ${await this.#getHttpRequestPayload(request)}. 404 returned.`); + return response.end(404); + } + #onWsRequest(request) { + // Session is set either by Classic or BiDi commands. + let session; + const requestSessionId = (request.resource ?? '').split('/').pop(); + debugInternal(`new WS request received. Path: ${JSON.stringify(request.resourceURL.path)}, sessionId: ${JSON.stringify(requestSessionId)}`); + if (requestSessionId !== '' && + requestSessionId !== undefined && + !this.#sessions.has(requestSessionId)) { + debugInternal('Unknown session id:', requestSessionId); + request.reject(); + return; + } + const connection = request.accept(); + session = this.#sessions.get(requestSessionId ?? ''); + if (session !== undefined) { + // BrowserInstance is created for each new WS connection, even for the + // same SessionId. This is because WPT uses a single session for all the + // tests, but cleans up tests using WebDriver Classic commands, which is + // not implemented in this Mapper runner. + // TODO: connect to an existing BrowserInstance instead. + const sessionOptions = session.sessionOptions; + session.browserInstancePromise = this.#closeBrowserInstanceIfLaunched(session) + .then(async () => await this.#launchBrowserInstance(connection, sessionOptions)) + .catch((e) => { + (0, exports.debugInfo)('Error while creating session', e); + connection.close(500, 'cannot create browser instance'); + throw e; + }); + } + connection.on('message', async (message) => { + // If type is not text, return error. + if (message.type !== 'utf8') { + this.#respondWithError(connection, {}, "invalid argument" /* ErrorCode.InvalidArgument */, `not supported type (${message.type})`); + return; + } + const plainCommandData = message.utf8Data; + if (debugRecv.enabled) { + try { + debugRecv(JSON.parse(plainCommandData)); + } + catch { + debugRecv(plainCommandData); + } + } + // Try to parse the message to handle some of BiDi commands. + let parsedCommandData; + try { + parsedCommandData = JSON.parse(plainCommandData); + } + catch (e) { + this.#respondWithError(connection, {}, "invalid argument" /* ErrorCode.InvalidArgument */, `Cannot parse data as JSON`); + return; + } + // Handle creating new session. + if (parsedCommandData.method === 'session.new') { + if (session !== undefined) { + (0, exports.debugInfo)('WS connection already have an associated session.'); + this.#respondWithError(connection, plainCommandData, "session not created" /* ErrorCode.SessionNotCreated */, 'WS connection already have an associated session.'); + return; + } + try { + const sessionOptions = { + chromeOptions: this.#getChromeOptions(parsedCommandData.params?.capabilities, this.#channel, this.#headless), + mapperOptions: this.#getMapperOptions(parsedCommandData.params?.capabilities), + verbose: this.#verbose, + }; + const browserInstance = await this.#launchBrowserInstance(connection, sessionOptions); + const sessionId = (0, uuid_js_1.uuidv4)(); + session = { + sessionId, + browserInstancePromise: Promise.resolve(browserInstance), + sessionOptions, + }; + this.#sessions.set(sessionId, session); + } + catch (e) { + (0, exports.debugInfo)('Error while creating session', e); + this.#respondWithError(connection, plainCommandData, "session not created" /* ErrorCode.SessionNotCreated */, e?.message ?? 'Unknown error'); + return; + } + // TODO: extend with capabilities. + this.#sendClientMessage({ + id: parsedCommandData.id, + type: 'success', + result: { + sessionId: session.sessionId, + capabilities: {}, + }, + }, connection); + return; + } + if (session === undefined) { + (0, exports.debugInfo)('Session is not yet initialized.'); + this.#respondWithError(connection, plainCommandData, "invalid session id" /* ErrorCode.InvalidSessionId */, 'Session is not yet initialized.'); + return; + } + if (session.browserInstancePromise === undefined) { + (0, exports.debugInfo)('Browser instance is not launched.'); + this.#respondWithError(connection, plainCommandData, "invalid session id" /* ErrorCode.InvalidSessionId */, 'Browser instance is not launched.'); + return; + } + const browserInstance = await session.browserInstancePromise; + // Handle `browser.close` command. + if (parsedCommandData.method === 'browser.close') { + await browserInstance.close(); + this.#sendClientMessage({ + id: parsedCommandData.id, + type: 'success', + result: {}, + }, connection); + return; + } + // Forward all other commands to BiDi Mapper. + await browserInstance.bidiSession().sendCommand(plainCommandData); + }); + connection.on('close', async () => { + debugInternal(`Peer ${connection.remoteAddress} disconnected.`); + // TODO: don't close Browser instance to allow re-connecting to the session. + await this.#closeBrowserInstanceIfLaunched(session); + }); + } + async #closeBrowserInstanceIfLaunched(session) { if (session === undefined || session.browserInstancePromise === undefined) { return; } @@ -259,11 +266,12 @@ class WebSocketServer { session.browserInstancePromise = undefined; void browserInstance.close(); } - static #getMapperOptions(capabilities) { + #getMapperOptions(capabilities) { const acceptInsecureCerts = capabilities?.alwaysMatch?.acceptInsecureCerts ?? false; - return { acceptInsecureCerts }; + const sharedIdWithFrame = capabilities?.alwaysMatch?.sharedIdWithFrame ?? false; + return { acceptInsecureCerts, sharedIdWithFrame }; } - static #getChromeOptions(capabilities, channel, headless) { + #getChromeOptions(capabilities, channel, headless) { const chromeCapabilities = capabilities?.alwaysMatch?.['goog:chromeOptions']; return { chromeArgs: chromeCapabilities?.args ?? [], @@ -272,7 +280,7 @@ class WebSocketServer { chromeBinary: chromeCapabilities?.binary ?? undefined, }; } - static async #launchBrowserInstance(connection, sessionOptions) { + async #launchBrowserInstance(connection, sessionOptions) { (0, exports.debugInfo)('Scheduling browser launch...'); const browserInstance = await BrowserInstance_js_1.BrowserInstance.run(sessionOptions.chromeOptions, sessionOptions.mapperOptions, sessionOptions.verbose); // Forward messages from BiDi Mapper to the client unconditionally. @@ -282,7 +290,7 @@ class WebSocketServer { (0, exports.debugInfo)('Browser is launched!'); return browserInstance; } - static #sendClientMessageString(message, connection) { + #sendClientMessageString(message, connection) { if (debugSend.enabled) { try { debugSend(JSON.parse(message)); @@ -293,15 +301,15 @@ class WebSocketServer { } connection.sendUTF(message); } - static #sendClientMessage(object, connection) { + #sendClientMessage(object, connection) { const json = JSON.stringify(object); return this.#sendClientMessageString(json, connection); } - static #respondWithError(connection, plainCommandData, errorCode, errorMessage) { + #respondWithError(connection, plainCommandData, errorCode, errorMessage) { const errorResponse = this.#getErrorResponse(plainCommandData, errorCode, errorMessage); void this.#sendClientMessage(errorResponse, connection); } - static #getErrorResponse(plainCommandData, errorCode, errorMessage) { + #getErrorResponse(plainCommandData, errorCode, errorMessage) { // XXX: this is bizarre per spec. We reparse the payload and // extract the ID, regardless of what kind of value it was. let commandId; @@ -320,7 +328,7 @@ class WebSocketServer { // XXX: optional stacktrace field. }; } - static #getHttpRequestPayload(request) { + #getHttpRequestPayload(request) { return new Promise((resolve, reject) => { let data = ''; request.on('data', (chunk) => { diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/WebSocketServer.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/WebSocketServer.js.map index 34247631..e0c23958 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/WebSocketServer.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/WebSocketServer.js.map @@ -1 +1 @@ -{"version":3,"file":"WebSocketServer.js","sourceRoot":"","sources":["../../../src/bidiServer/WebSocketServer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,gDAAwB;AAGxB,kDAA0B;AAC1B,qDAAuC;AAIvC,8CAAwC;AAExC,6DAAqD;AAExC,QAAA,SAAS,GAAG,IAAA,eAAK,EAAC,kBAAkB,CAAC,CAAC;AACnD,MAAM,aAAa,GAAG,IAAA,eAAK,EAAC,sBAAsB,CAAC,CAAC;AACpD,MAAM,SAAS,GAAG,IAAA,eAAK,EAAC,oBAAoB,CAAC,CAAC;AAC9C,MAAM,SAAS,GAAG,IAAA,eAAK,EAAC,oBAAoB,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AoB;QAEpB,4DAA4D;QAC5D,2DAA2D;QAC3D,IAAI,SAAS,CAAC;QACd,IAAI,CAAC;YACH,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;YACjD,IAAI,IAAI,IAAI,WAAW,EAAE,CAAC;gBACxB,SAAS,GAAG,WAAW,CAAC,EAAE,CAAC;YAC7B,CAAC;QACH,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;QAEV,OAAO;YACL,IAAI,EAAE,OAAO;YACb,EAAE,EAAE,SAAS;YACb,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,YAAY;YACrB,kCAAkC;SACnC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,sBAAsB,CAC3B,OAA6B;QAE7B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,IAAI,IAAI,GAAG,EAAE,CAAC;YACd,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;gBAC3B,IAAI,IAAI,KAAK,CAAC;YAChB,CAAC,CAAC,CAAC;YACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;gBACrB,OAAO,CAAC,IAAI,CAAC,CAAC;YAChB,CAAC,CAAC,CAAC;YACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;gBAC5B,MAAM,CAAC,KAAK,CAAC,CAAC;YAChB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;;AArcH,0CAscC"} \ No newline at end of file +{"version":3,"file":"WebSocketServer.js","sourceRoot":"","sources":["../../../src/bidiServer/WebSocketServer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,gDAAwB;AAGxB,kDAA0B;AAC1B,qDAAuC;AAIvC,8CAAwC;AAExC,6DAAqD;AAExC,QAAA,SAAS,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AAE,EAAE;YACrC,IAAI,IAAI,GAAG,EAAE,CAAC;YACd,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;gBAC3B,IAAI,IAAI,KAAK,CAAC;YAChB,CAAC,CAAC,CAAC;YACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;gBACrB,OAAO,CAAC,IAAI,CAAC,CAAC;YAChB,CAAC,CAAC,CAAC;YACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;gBAC5B,MAAM,CAAC,KAAK,CAAC,CAAC;YAChB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAvcD,0CAucC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/index.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/index.js index 2611b71d..a0e685cd 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/index.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/index.js @@ -53,7 +53,7 @@ function parseArguments() { const headless = args.headless !== 'false'; const verbose = args.verbose === true; (0, WebSocketServer_js_1.debugInfo)('Launching BiDi server...'); - WebSocketServer_js_1.WebSocketServer.run(port, channel, headless, verbose); + new WebSocketServer_js_1.WebSocketServer(port, channel, headless, verbose); (0, WebSocketServer_js_1.debugInfo)('BiDi server launched'); } catch (e) { diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/index.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/index.js.map index 1c42e0a5..08229367 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/index.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiServer/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/bidiServer/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;G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AEtC,IAAA,8BAAS,EAAC,0BAA0B,CAAC,CAAC;QAEtC,oCAAe,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QACtD,IAAA,8BAAS,EAAC,sBAAsB,CAAC,CAAC;IACpC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAA,8BAAS,EAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC;IAC9C,CAAC;AACH,CAAC,CAAC,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/bidiServer/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAEH,kDAAyD;AACzD,uCAAwC;AAExC,6DAAgE;AAEhE,SAAS,cAAc;IAMrB,MAAM,MAAM,GAAG,IAAI,yBAAc,CAAC;QAChC,QAAQ,EAAE,IAAI;QACd,aAAa,EAAE,IAAI;KACpB,CAAC,CAAC;IAEH,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,WAAW,EAAE;QACrC,IAAI,EACF,kEAAkE;YAClE,6CAA6C;QAC/C,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,+BAAoB,CAAC;QAC5C,OAAO,EAAE,+BAAoB,CAAC,GAAG;KAClC,CAAC,CAAC;IAEH,MAAM,CAAC,YAAY,CAAC,YAAY,EAAE;QAChC,IAAI,EAAE,0EAA0E;QAChF,OAAO,EAAE,IAAI;KACd,CAAC,CAAC;IAEH,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE;QAClC,IAAI,EAAE,0DAA0D;QAChE,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,IAAI;KACrC,CAAC,CAAC;IAEH,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,WAAW,EAAE;QACrC,IAAI,EAAE,4GAA4G;QAClH,MAAM,EAAE,YAAY;QACpB,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,MAAM,IAAI,KAAK;KACpD,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,CAAC;AACtC,CAAC;AAED,CAAC,GAAG,EAAE;IACJ,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,cAAc,EAAE,CAAC;QAC9B,MAAM,EAAC,OAAO,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC;QAC7B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,KAAK,OAAO,CAAC;QAC3C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC;QAEtC,IAAA,8BAAS,EAAC,0BAA0B,CAAC,CAAC;QAEtC,IAAI,oCAAe,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QACtD,IAAA,8BAAS,EAAC,sBAAsB,CAAC,CAAC;IACpC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAA,8BAAS,EAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC;IAC9C,CAAC;AACH,CAAC,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.d.ts index 3d3df234..9f964747 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.d.ts @@ -14,9 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import type { IBidiParser } from '../bidiMapper/BidiMapper.js'; -import type { BrowsingContext, Cdp, Input, Network, Script, Session } from '../protocol/protocol.js'; -export declare class BidiParser implements IBidiParser { +import type { BidiCommandParameterParser } from '../bidiMapper/BidiMapper.js'; +import type { BrowsingContext, Cdp, Input, Network, Permissions, Script, Session, Storage } from '../protocol/protocol.js'; +export declare class BidiParser implements BidiCommandParameterParser { parseActivateParams(params: unknown): BrowsingContext.ActivateParameters; parseCaptureScreenshotParams(params: unknown): BrowsingContext.CaptureScreenshotParameters; parseCloseParams(params: unknown): BrowsingContext.CloseParameters; @@ -32,6 +32,7 @@ export declare class BidiParser implements IBidiParser { parseSendCommandParams(params: unknown): Cdp.SendCommandParameters; parsePerformActionsParams(params: unknown): Input.PerformActionsParameters; parseReleaseActionsParams(params: unknown): Input.ReleaseActionsParameters; + parseSetFilesParams(params: unknown): Input.SetFilesParameters; parseAddInterceptParams(params: unknown): Network.AddInterceptParameters; parseContinueRequestParams(params: unknown): Network.ContinueRequestParameters; parseContinueResponseParams(params: unknown): Network.ContinueResponseParameters; @@ -39,6 +40,7 @@ export declare class BidiParser implements IBidiParser { parseFailRequestParams(params: unknown): Network.FailRequestParameters; parseProvideResponseParams(params: unknown): Network.ProvideResponseParameters; parseRemoveInterceptParams(params: unknown): Network.RemoveInterceptParameters; + parseSetPermissionsParams(params: unknown): Permissions.SetPermissionParameters; parseAddPreloadScriptParams(params: unknown): Script.AddPreloadScriptParameters; parseCallFunctionParams(params: unknown): Script.CallFunctionParameters; parseDisownParams(params: unknown): Script.DisownParameters; @@ -46,4 +48,7 @@ export declare class BidiParser implements IBidiParser { parseGetRealmsParams(params: unknown): Script.GetRealmsParameters; parseRemovePreloadScriptParams(params: unknown): Script.RemovePreloadScriptParameters; parseSubscribeParams(params: unknown): Session.SubscriptionRequest; + parseDeleteCookiesParams(params: unknown): Storage.DeleteCookiesParameters; + parseGetCookiesParams(params: unknown): Storage.GetCookiesParameters; + parseSetCookieParams(params: unknown): Storage.SetCookieParameters; } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.js index af94b983..b4372ef1 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.js @@ -79,6 +79,9 @@ class BidiParser { parseReleaseActionsParams(params) { return Parser.Input.parseReleaseActionsParams(params); } + parseSetFilesParams(params) { + return Parser.Input.parseSetFilesParams(params); + } // keep-sorted end // Network domain // keep-sorted start block=yes @@ -104,6 +107,12 @@ class BidiParser { return Parser.Network.parseRemoveInterceptParameters(params); } // keep-sorted end + // Permissions domain + // keep-sorted start block=yes + parseSetPermissionsParams(params) { + return Parser.Permissions.parseSetPermissionsParams(params); + } + // keep-sorted end // Script domain // keep-sorted start block=yes parseAddPreloadScriptParams(params) { @@ -130,6 +139,18 @@ class BidiParser { parseSubscribeParams(params) { return Parser.Session.parseSubscribeParams(params); } + // keep-sorted end + // Storage domain + // keep-sorted start block=yes + parseDeleteCookiesParams(params) { + return Parser.Storage.parseDeleteCookiesParams(params); + } + parseGetCookiesParams(params) { + return Parser.Storage.parseGetCookiesParams(params); + } + parseSetCookieParams(params) { + return Parser.Storage.parseSetCookieParams(params); + } } exports.BidiParser = BidiParser; //# sourceMappingURL=BidiParser.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.js.map index a8d8bfb9..07023995 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/BidiParser.js.map @@ -1 +1 @@ -{"version":3,"file":"BidiParser.js","sourceRoot":"","sources":["../../../src/bidiTab/BidiParser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,8EAAgE;AAEhE,MAAa,UAAU;IACrB,0BAA0B;IAC1B,8BAA8B;IAC9B,mBAAmB,CAAC,MAAe;QACjC,OAAO,MAAM,CAAC,eAAe,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC5D,CAAC;IACD,4BAA4B,CA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2B,CAAC,MAAM,CAAC,CAAC;IAC3D,CAAC;IACD,uBAAuB,CAAC,MAAe;QACrC,OAAO,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC;IACvD,CAAC;IACD,iBAAiB,CAAC,MAAe;QAC/B,OAAO,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;IACD,mBAAmB,CAAC,MAAe;QACjC,OAAO,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IACnD,CAAC;IACD,oBAAoB,CAAC,MAAe;QAClC,OAAO,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IACD,8BAA8B,CAC5B,MAAe;QAEf,OAAO,MAAM,CAAC,MAAM,CAAC,8BAA8B,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC;IACD,kBAAkB;IAElB,iBAAiB;IACjB,8BAA8B;IAC9B,oBAAoB,CAAC,MAAe;QAClC,OAAO,MAAM,CAAC,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACrD,CAAC;CAEF;AAvID,gCAuIC"} \ No newline at end of file +{"version":3,"file":"BidiParser.js","sourceRoot":"","sources":["../../../src/bidiTab/BidiParser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,8EAAgE;AAEhE,MAAa,UAAU;IACrB,0BAA0B;IAC1B,8BAA8B;IAC9B,mBAAmB,CAAC,MAAe;QACjC,OAAO,MAAM,CAAC,eAAe,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC5D,CAAC;IACD,4BAA4B,CAC1B,MAAe;QAEf,OAAO,MAAM,CAAC,eAAe,CAAC,4BAA4B,CAAC,MAAM,CAAC,CAAC;IACrE,CAAC;IACD,gBAAgB,CAAC,MAAe;QAC9B,OAAO,MAAM,CAAC,eAAe,CAAC,gBAAgB,CAAC,MAAM,CAA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cjs/bidiTab/Transport.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.d.ts index 6b9eda31..67674ff1 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.d.ts @@ -16,7 +16,7 @@ */ import type { BidiTransport } from '../bidiMapper/BidiMapper.js'; import { type ChromiumBidi } from '../protocol/protocol.js'; -import type { ITransport } from '../utils/transport.js'; +import type { Transport } from '../utils/transport.js'; export declare class WindowBidiTransport implements BidiTransport { #private; static readonly LOGGER_PREFIX_RECV: "bidi:RECV ◂"; @@ -26,10 +26,10 @@ export declare class WindowBidiTransport implements BidiTransport { sendMessage(message: ChromiumBidi.Message): void; close(): void; } -export declare class WindowCdpTransport implements ITransport { +export declare class WindowCdpTransport implements Transport { #private; constructor(); - setOnMessage(onMessage: Parameters[0]): void; + setOnMessage(onMessage: Parameters[0]): void; sendMessage(message: string): void; close(): void; } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.js.map index f6649745..81de24a1 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/Transport.js.map @@ -1 +1 @@ -{"version":3,"file":"Transport.js","sourceRoot":"","sources":["../../../src/bidiTab/Transport.ts"],"names":[],"mappings":";;;AAsBA,4CAAwC;AAGxC,yDAAuC;AAEvC,MAAa,mBAAmB;IAC9B,MAAM,CAAU,kBAAkB,GAAG,GAAG,gBAAO,CAAC,IAAI,SAAkB,CAAC;IACvE,MAAM,CAAU,kBAAkB,GAAG,GAAG,gBAAO,CAAC,IAAI,SAAkB,CAAC;IAEvE,UAAU,GAAqD,IAAI,CAAC;IAEpE;QACE,MAAM,CAAC,aAAa,GAAG,CAAC,OAAe,EAAE,EAAE;YACzC,IAAA,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AAC,CAAC;IACJ,CAAC;IAED,YAAY,CAAC,SAAmD;QAC9D,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED,WAAW,CAAC,OAAe;QACzB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAED,KAAK;QACH,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,MAAM,CAAC,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC;IAC9B,CAAC;CACF;AArBD,gDAqBC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.d.ts index 43659695..e4288f51 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.d.ts @@ -26,11 +26,6 @@ declare global { sendBidiResponse: (response: string) => void; onBidiMessage: ((message: string) => void) | null; sendDebugMessage?: ((message: string) => void) | null; - /** - * @deprecated Use `runMapperInstance` instead. Used for backward compatibility - * with ChromeDriver. - */ - setSelfTargetId: (targetId: string) => void; } } export {}; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js index c7672ea7..b5251ed1 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js @@ -31,7 +31,7 @@ const cdpTransport = new Transport_js_1.WindowCdpTransport(); * A CdpTransport implementation that uses the window.cdp bindings * injected by Target.exposeDevToolsProtocol. */ -const cdpConnection = new CdpConnection_js_1.CdpConnection(cdpTransport, mapperTabPage_js_1.log); +const cdpConnection = new CdpConnection_js_1.MapperCdpConnection(cdpTransport, mapperTabPage_js_1.log); /** * Launches the BiDi mapper instance. * @param {string} selfTargetId @@ -55,15 +55,4 @@ async function runMapperInstance(selfTargetId, options) { window.runMapperInstance = async (selfTargetId, options) => { await runMapperInstance(selfTargetId, options); }; -/** - * @deprecated Use `runMapperInstance` instead. Used for backward compatibility - * with ChromeDriver. - */ -// TODO: Remove this after https://crrev.com/c/4952609 reaches stable. -window.setSelfTargetId = async (selfTargetId) => { - const bidiServer = await runMapperInstance(selfTargetId); - bidiServer.emitOutgoingMessage(BidiMapper_js_1.OutgoingMessage.createResolved({ - launched: true, - }), 'launched'); -}; //# sourceMappingURL=bidiTab.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js.map index 41d785aa..7842aa9e 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/bidiTab/bidiTab.js.map @@ -1 +1 @@ -{"version":3,"file":"bidiTab.js","sourceRoot":"","sources":["../../../src/bidiTab/bidiTab.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAEH,+DAAwE;AAExE,8DAAsD;AACtD,4CAAwC;AAExC,mDAA2C;AAC3C,yDAAqD;AACrD,iDAAuE;AAkCvE,IAAA,+BAAY,GAAE,CAAC;AACf,MAAM,0BAA0B,GAAG,IAAI,kCAAmB,EAAE,CAAC;AAC7D,MAAM,YAAY,GAAG,IAAI,iCAAkB,EAAE,CAAC;AAC9C;;;GAGG;AACH,MAAM,aAAa,GAAG,IAAI,gCAAa,CAAC,YAAY,EAAE,sBAAG,CAAC,CAAC;AAE3D;;;;GAIG;AACH,KAAK,UAAU,iBAAiB,CAC9B,YAAoB,EACpB,OAAuB;IAEvB,sCAAsC;IACtC,OAAO,CAAC,GAAG,CAAC,8CAA8C,EAAE,YAAY,CAAC,CAAC;IAE1E,MAAM,UAAU,GAAG,MAAM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ACpB,OAAuB;IAEvB,sCAAsC;IACtC,OAAO,CAAC,GAAG,CAAC,8CAA8C,EAAE,YAAY,CAAC,CAAC;IAE1E,MAAM,UAAU,GAAG,MAAM,0BAAU,CAAC,cAAc,CAChD,0BAA0B,EAC1B,aAAa;IACb;;OAEG;IACH,MAAM,aAAa,CAAC,oBAAoB,EAAE,EAC1C,YAAY,EACZ,OAAO,EACP,IAAI,0BAAU,EAAE,EAChB,sBAAG,CACJ,CAAC;IAEF,IAAA,sBAAG,EAAC,gBAAO,CAAC,SAAS,EAAE,mCAAmC,CAAC,CAAC;IAE5D,OAAO,UAAU,CAAC;AACpB,CAAC;AAED;;;gEAGgE;AAChE,MAAM,CAAC,iBAAiB,GAAG,KAAK,EAAE,YAAY,EAAE,OAAuB,EAAE,EAAE;IACzE,MAAM,iBAAiB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AACjD,CAAC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.d.ts index 9f1113b9..deb666ff 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.d.ts @@ -17,14 +17,14 @@ import type { Protocol } from 'devtools-protocol'; import type { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js'; import { EventEmitter } from '../utils/EventEmitter.js'; -import type { CdpConnection } from './CdpConnection.js'; +import type { MapperCdpConnection } from './CdpConnection.js'; export type CdpEvents = { [Property in keyof ProtocolMapping.Events]: ProtocolMapping.Events[Property][0]; }; /** A error that will be thrown if/when the connection is closed. */ export declare class CloseError extends Error { } -export interface ICdpClient extends EventEmitter { +export interface CdpClient extends EventEmitter { /** Unique session identifier. */ sessionId: Protocol.Target.SessionID | undefined; /** @@ -45,9 +45,9 @@ export interface ICdpClient extends EventEmitter { sendCommand(method: CdpMethod, params?: ProtocolMapping.Commands[CdpMethod]['paramsType'][0]): Promise; } /** Represents a high-level CDP connection to the browser. */ -export declare class CdpClient extends EventEmitter implements ICdpClient { +export declare class MapperCdpClient extends EventEmitter implements CdpClient { #private; - constructor(cdpConnection: CdpConnection, sessionId?: Protocol.Target.SessionID); + constructor(cdpConnection: MapperCdpConnection, sessionId?: Protocol.Target.SessionID); get sessionId(): Protocol.Target.SessionID | undefined; sendCommand(method: CdpMethod, ...params: ProtocolMapping.Commands[CdpMethod]['paramsType']): Promise; isCloseError(error: unknown): boolean; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.js b/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.js index 5c4fb5df..2ce34c07 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.js @@ -16,14 +16,14 @@ * limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.CdpClient = exports.CloseError = void 0; +exports.MapperCdpClient = exports.CloseError = void 0; const EventEmitter_js_1 = require("../utils/EventEmitter.js"); /** A error that will be thrown if/when the connection is closed. */ class CloseError extends Error { } exports.CloseError = CloseError; /** Represents a high-level CDP connection to the browser. */ -class CdpClient extends EventEmitter_js_1.EventEmitter { +class MapperCdpClient extends EventEmitter_js_1.EventEmitter { #cdpConnection; #sessionId; constructor(cdpConnection, sessionId) { @@ -41,5 +41,5 @@ class CdpClient extends EventEmitter_js_1.EventEmitter { return error instanceof CloseError; } } -exports.CdpClient = CdpClient; +exports.MapperCdpClient = MapperCdpClient; //# sourceMappingURL=CdpClient.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.js.map index 81398b73..720f561d 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpClient.js.map @@ -1 +1 @@ -{"version":3,"file":"CdpClient.js","sourceRoot":"","sources":["../../../src/cdp/CdpClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAKH,8DAAsD;AAQtD,oEAAoE;AACpE,MAAa,UAAW,SAAQ,KAAK;CAAG;AAAxC,gCAAwC;AA4BxC,6DAA6D;AAC7D,MAAa,SAAU,SAAQ,8BAAuB;IACpD,cAAc,CAAgB;IAC9B,UAAU,CAA6B;IAEvC,YACE,aAA4B,EAC5B,SAAqC;QAErC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,WAAW,CACT,MAAiB,EACjB,GAAG,MAAyD;QAE5D,OAAO,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7E,CAAC;IAED,YAAY,CAAC,KAAc;QACzB,OAAO,KAAK,YAAY,UAAU,CAAC;IACrC,CAAC;CACF;AA3BD,8BA2BC"} \ No newline at end of file +{"version":3,"file":"CdpClient.js","sourceRoot":"","sources":["../../../src/cdp/CdpClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAKH,8DAAsD;AAQtD,oEAAoE;AACpE,MAAa,UAAW,SAAQ,KAAK;CAAG;AAAxC,gCAAwC;AA4BxC,6DAA6D;AAC7D,MAAa,eACX,SAAQ,8BAAuB;IAG/B,cAAc,CAAsB;IACpC,UAAU,CAA6B;IAEvC,YACE,aAAkC,EAClC,SAAqC;QAErC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,WAAW,CACT,MAAiB,EACjB,GAAG,MAAyD;QAE5D,OAAO,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7E,CAAC;IAED,YAAY,CAAC,KAAc;QACzB,OAAO,KAAK,YAAY,UAAU,CAAC;IACrC,CAAC;CACF;AA9BD,0CA8BC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.d.ts index 165fae7a..cb10de85 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.d.ts @@ -17,10 +17,10 @@ import type { Protocol } from 'devtools-protocol'; import type { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js'; import type { LoggerFn } from '../utils/log.js'; -import type { ITransport } from '../utils/transport.js'; -import { CdpClient, type ICdpClient } from './CdpClient.js'; -export interface ICdpConnection { - getCdpClient(sessionId: Protocol.Target.SessionID): ICdpClient; +import type { Transport } from '../utils/transport.js'; +import { MapperCdpClient, type CdpClient } from './CdpClient.js'; +export interface CdpConnection { + getCdpClient(sessionId: Protocol.Target.SessionID): CdpClient; } /** * Represents a high-level CDP connection to the browser backend. @@ -28,18 +28,18 @@ export interface ICdpConnection { * Manages all CdpClients (each backed by a Session ID) instance for each active * CDP session. */ -export declare class CdpConnection implements ICdpConnection { +export declare class MapperCdpConnection implements CdpConnection { #private; static readonly LOGGER_PREFIX_RECV: "cdp:RECV ◂"; static readonly LOGGER_PREFIX_SEND: "cdp:SEND ▸"; - constructor(transport: ITransport, logger?: LoggerFn); + constructor(transport: Transport, logger?: LoggerFn); /** Closes the connection to the browser. */ close(): void; - createBrowserSession(): Promise; + createBrowserSession(): Promise; /** * Gets a CdpClient instance attached to the given session ID, * or null if the session is not attached. */ - getCdpClient(sessionId: Protocol.Target.SessionID): CdpClient; + getCdpClient(sessionId: Protocol.Target.SessionID): MapperCdpClient; sendCommand(method: CdpMethod, params?: ProtocolMapping.Commands[CdpMethod]['paramsType'][0], sessionId?: Protocol.Target.SessionID): Promise; } diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.js b/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.js index aa36b0bb..0ac5e5d5 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.CdpConnection = void 0; +exports.MapperCdpConnection = void 0; const log_js_1 = require("../utils/log.js"); const CdpClient_js_1 = require("./CdpClient.js"); /** @@ -9,7 +9,7 @@ const CdpClient_js_1 = require("./CdpClient.js"); * Manages all CdpClients (each backed by a Session ID) instance for each active * CDP session. */ -class CdpConnection { +class MapperCdpConnection { static LOGGER_PREFIX_RECV = `${log_js_1.LogType.cdp}:RECV ◂`; static LOGGER_PREFIX_SEND = `${log_js_1.LogType.cdp}:SEND ▸`; #mainBrowserCdpClient; @@ -69,12 +69,12 @@ class CdpConnection { this.#logger?.(log_js_1.LogType.debugError, error); this.#transport.close(); }); - this.#logger?.(CdpConnection.LOGGER_PREFIX_SEND, cdpMessage); + this.#logger?.(MapperCdpConnection.LOGGER_PREFIX_SEND, cdpMessage); }); } #onMessage = (json) => { const message = JSON.parse(json); - this.#logger?.(CdpConnection.LOGGER_PREFIX_RECV, message); + this.#logger?.(MapperCdpConnection.LOGGER_PREFIX_RECV, message); // Update client map if a session is attached // Listen for these events on every session. if (message.method === 'Target.attachedToTarget') { @@ -116,10 +116,10 @@ class CdpConnection { * @private */ #createCdpClient(sessionId) { - const cdpClient = new CdpClient_js_1.CdpClient(this, sessionId); + const cdpClient = new CdpClient_js_1.MapperCdpClient(this, sessionId); this.#sessionCdpClients.set(sessionId, cdpClient); return cdpClient; } } -exports.CdpConnection = CdpConnection; +exports.MapperCdpConnection = MapperCdpConnection; //# sourceMappingURL=CdpConnection.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.js.map index fd3621c8..d62e99ab 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/cdp/CdpConnection.js.map @@ -1 +1 @@ -{"version":3,"file":"CdpConnection.js","sourceRoot":"","sources":["../../../src/cdp/CdpConnection.ts"],"names":[],"mappings":";;;AAmBA,4CAAwC;AAIxC,iDAAsE;AAatE;;;;;GAKG;AACH,MAAa,aAAa;IACxB,MAAM,CAAU,kBAAkB,GAAG,GAAG,gBAAO,CAAC,GAAG,SAAkB,CAAC;IACtE,MAAM,CAAU,kBAAkB,GAAG,GAAG,gBAAO,CAAC,GAAG,SAAkB,CAAC;IAE7D,qBAAqB,CAAa;IAClC,UAAU,CAAa;IAEhC;yDACqD;IAC5C,kBAAkB,GAAG,IAAI,GAAG,EAGlC,CAAC;IACK,iBAAiB,GAAG,IAAI,GAAG,EAAwB,CAAC;IACpD,OAAO,CAAY;IAC5B,OAAO,GAAG,CAAC,CAAC;IAEZ,YAAY,SAAqB,EAAE,MAAiB;QAClD,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAE9C,sCAAsC;QACtC,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,CAA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C;YAC7C,2BAA2B;YAC3B,IAAI,OAAO,CAAC,MAAM,KAAK,2BAA2B,EAAE,CAAC;gBACnD,MAAM,EAAC,SAAS,EAAC,GAAG,OAAO,CAAC,MAAM,CAAC;gBACnC,MAAM,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;gBACtD,IAAI,MAAM,EAAE,CAAC;oBACX,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;oBAC1C,MAAM,CAAC,kBAAkB,EAAE,CAAC;gBAC9B,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC,CAAC;IAEF;;;;;OAKG;IACH,gBAAgB,CACd,SAAgD;QAEhD,MAAM,SAAS,GAAG,IAAI,8BAAe,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACvD,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAClD,OAAO,SAAS,CAAC;IACnB,CAAC;;AA3IH,kDA4IC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.d.ts new file mode 100644 index 00000000..3acca54e --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.d.ts @@ -0,0 +1,148 @@ +/** + * Copyright 2024 Google LLC. + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * THIS FILE IS AUTOGENERATED. Run `npm run bidi-types` to regenerate. + * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs + */ +import z from 'zod'; +export declare const PermissionsCommandSchema: z.ZodLazy; + params: z.ZodLazy>; + state: z.ZodLazy>; + origin: z.ZodString; + }, "strip", z.ZodTypeAny, { + origin: string; + descriptor: { + name: string; + }; + state: "granted" | "denied" | "prompt"; + }, { + origin: string; + descriptor: { + name: string; + }; + state: "granted" | "denied" | "prompt"; + }>>; +}, "strip", z.ZodTypeAny, { + params: { + origin: string; + descriptor: { + name: string; + }; + state: "granted" | "denied" | "prompt"; + }; + method: "permissions.setPermission"; +}, { + params: { + origin: string; + descriptor: { + name: string; + }; + state: "granted" | "denied" | "prompt"; + }; + method: "permissions.setPermission"; +}>>>; +export declare namespace Permissions { + const PermissionDescriptorSchema: z.ZodLazy>; +} +export declare namespace Permissions { + const PermissionStateSchema: z.ZodLazy>; +} +export declare namespace Permissions { + const SetPermissionSchema: z.ZodLazy; + params: z.ZodLazy>; + state: z.ZodLazy>; + origin: z.ZodString; + }, "strip", z.ZodTypeAny, { + origin: string; + descriptor: { + name: string; + }; + state: "granted" | "denied" | "prompt"; + }, { + origin: string; + descriptor: { + name: string; + }; + state: "granted" | "denied" | "prompt"; + }>>; + }, "strip", z.ZodTypeAny, { + params: { + origin: string; + descriptor: { + name: string; + }; + state: "granted" | "denied" | "prompt"; + }; + method: "permissions.setPermission"; + }, { + params: { + origin: string; + descriptor: { + name: string; + }; + state: "granted" | "denied" | "prompt"; + }; + method: "permissions.setPermission"; + }>>; +} +export declare namespace Permissions { + const SetPermissionParametersSchema: z.ZodLazy>; + state: z.ZodLazy>; + origin: z.ZodString; + }, "strip", z.ZodTypeAny, { + origin: string; + descriptor: { + name: string; + }; + state: "granted" | "denied" | "prompt"; + }, { + origin: string; + descriptor: { + name: string; + }; + state: "granted" | "denied" | "prompt"; + }>>; +} diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.js b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.js new file mode 100644 index 00000000..ac2b1660 --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.js @@ -0,0 +1,53 @@ +"use strict"; +/** + * Copyright 2024 Google LLC. + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Permissions = exports.PermissionsCommandSchema = void 0; +/** + * THIS FILE IS AUTOGENERATED. Run `npm run bidi-types` to regenerate. + * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs + */ +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-nocheck Some types may be circular. +const zod_1 = __importDefault(require("zod")); +exports.PermissionsCommandSchema = zod_1.default.lazy(() => Permissions.SetPermissionSchema); +var Permissions; +(function (Permissions) { + Permissions.PermissionDescriptorSchema = zod_1.default.lazy(() => zod_1.default.object({ + name: zod_1.default.string(), + })); +})(Permissions || (exports.Permissions = Permissions = {})); +(function (Permissions) { + Permissions.PermissionStateSchema = zod_1.default.lazy(() => zod_1.default.enum(['granted', 'denied', 'prompt'])); +})(Permissions || (exports.Permissions = Permissions = {})); +(function (Permissions) { + Permissions.SetPermissionSchema = zod_1.default.lazy(() => zod_1.default.object({ + method: zod_1.default.literal('permissions.setPermission'), + params: Permissions.SetPermissionParametersSchema, + })); +})(Permissions || (exports.Permissions = Permissions = {})); +(function (Permissions) { + Permissions.SetPermissionParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ + descriptor: Permissions.PermissionDescriptorSchema, + state: Permissions.PermissionStateSchema, + origin: zod_1.default.string(), + })); +})(Permissions || (exports.Permissions = Permissions = {})); +//# sourceMappingURL=webdriver-bidi-permissions.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.js.map new file mode 100644 index 00000000..27c16dcf --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi-permissions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webdriver-bidi-permissions.js","sourceRoot":"","sources":["../../../../src/protocol-parser/generated/webdriver-bidi-permissions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;AAEH;;;GAGG;AAEH,6DAA6D;AAC7D,0CAA0C;AAE1C,8CAAoB;AAEP,QAAA,wBAAwB,GAAG,aAAC,CAAC,IAAI,CAC5C,GAAG,EAAE,CAAC,WAAW,CAAC,mBAAmB,CACtC,CAAC;AACF,IAAiB,WAAW,CAM3B;AAND,WAAiB,WAAW;IACb,sCAA0B,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACpD,aAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;KACjB,CAAC,CACH,CAAC;AACJ,CAAC,EANgB,WAAW,2BAAX,WAAW,QAM3B;AACD,WAAiB,WAAW;IACb,iCAAqB,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAC/C,aAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CACxC,CAAC;AACJ,CAAC,EAJgB,WAAW,2BAAX,WAAW,QAI3B;AACD,WAAiB,WAAW;IACb,+BAAmB,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAC7C,aAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC;QAC9C,MAAM,EAAE,WAAW,CAAC,6BAA6B;KAClD,CAAC,CACH,CAAC;AACJ,CAAC,EAPgB,WAAW,2BAAX,WAAW,QAO3B;AACD,WAAiB,WAAW;IACb,yCAA6B,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACvD,aAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,WAAW,CAAC,0BAA0B;QAClD,KAAK,EAAE,WAAW,CAAC,qBAAqB;QACxC,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;KACnB,CAAC,CACH,CAAC;AACJ,CAAC,EARgB,WAAW,2BAAX,WAAW,QAQ3B"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/webdriver-bidi.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.d.ts similarity index 83% rename from Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/webdriver-bidi.d.ts rename to Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.d.ts index cf7c1fc8..93e2092d 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/webdriver-bidi.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.d.ts @@ -1,5 +1,5 @@ /** - * Copyright 2023 Google LLC. + * Copyright 2024 Google LLC. * Copyright (c) Microsoft Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -942,7 +942,7 @@ export declare const EventSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -968,7 +968,7 @@ export declare const EventSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -1002,7 +1002,7 @@ export declare const EventSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -1066,7 +1066,7 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -1098,7 +1098,7 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -1149,9 +1149,10 @@ export declare const EventSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -1167,7 +1168,7 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -1198,16 +1199,16 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -1254,7 +1255,6 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -1493,7 +1494,6 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -1581,7 +1582,6 @@ export declare const EventSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -1694,7 +1694,7 @@ export declare const EventSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -1728,7 +1728,7 @@ export declare const EventSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -1792,7 +1792,7 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -1824,7 +1824,7 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -1875,9 +1875,10 @@ export declare const EventSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -1893,7 +1894,7 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -1924,16 +1925,16 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -1980,7 +1981,6 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -2133,7 +2134,6 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -2207,7 +2208,6 @@ export declare const EventSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -2306,7 +2306,7 @@ export declare const EventSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -2340,7 +2340,7 @@ export declare const EventSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -2404,7 +2404,7 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -2436,7 +2436,7 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -2487,9 +2487,10 @@ export declare const EventSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -2505,7 +2506,7 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -2536,16 +2537,16 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -2592,7 +2593,6 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -2656,7 +2657,6 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -2717,7 +2718,6 @@ export declare const EventSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -2803,7 +2803,7 @@ export declare const EventSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -2837,7 +2837,7 @@ export declare const EventSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -2901,7 +2901,7 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -2933,7 +2933,7 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -2984,9 +2984,10 @@ export declare const EventSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -3002,7 +3003,7 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -3033,16 +3034,16 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -3089,7 +3090,6 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -3328,7 +3329,6 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -3416,7 +3417,6 @@ export declare const EventSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -3529,7 +3529,7 @@ export declare const EventSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -3563,7 +3563,7 @@ export declare const EventSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -3627,7 +3627,7 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -3659,7 +3659,7 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -3710,9 +3710,10 @@ export declare const EventSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -3728,7 +3729,7 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -3759,16 +3760,16 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -3815,7 +3816,6 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -4054,7 +4055,6 @@ export declare const EventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -4142,7 +4143,6 @@ export declare const EventSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"dedicated-worker">; + owners: z.ZodTuple<[z.ZodLazy], null>; }, "strip", z.ZodTypeAny, { type: "dedicated-worker"; + owners: [string]; }, { type: "dedicated-worker"; + owners: [string]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -4277,10 +4280,13 @@ export declare const EventSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"shared-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "shared-worker"; + owners: string[]; }, { type: "shared-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -4292,10 +4298,13 @@ export declare const EventSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"service-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "service-worker"; + owners: string[]; }, { type: "service-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -4370,16 +4379,19 @@ export declare const EventSchema: z.ZodLazy, z.ZodLazy, z.ZodLazy; params: z.ZodLazy>>; }, "strip", z.ZodTypeAny, { @@ -4482,7 +4497,44 @@ export declare const CommandSchema: z.ZodLazy; method: "browser.close"; -}>>>, z.ZodLazy>, z.ZodLazy; + params: z.ZodLazy>>; +}, "strip", z.ZodTypeAny, { + params: Record; + method: "browser.createUserContext"; +}, { + params: Record; + method: "browser.createUserContext"; +}>>, z.ZodLazy; + params: z.ZodLazy>>; +}, "strip", z.ZodTypeAny, { + params: Record; + method: "browser.getUserContexts"; +}, { + params: Record; + method: "browser.getUserContexts"; +}>>, z.ZodLazy; + params: z.ZodObject<{ + userContext: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + userContext: string; + }, { + userContext: string; + }>; +}, "strip", z.ZodTypeAny, { + params: { + userContext: string; + }; + method: "browser.removeUserContext"; +}, { + params: { + userContext: string; + }; + method: "browser.removeUserContext"; +}>>]>>, z.ZodLazy; params: z.ZodLazy; @@ -4676,20 +4728,24 @@ export declare const CommandSchema: z.ZodLazy>; referenceContext: z.ZodOptional>; background: z.ZodOptional>; + userContext: z.ZodOptional, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { type: "window" | "tab"; referenceContext?: string | undefined; background?: boolean | undefined; + userContext?: string | null | undefined; }, { type: "window" | "tab"; referenceContext?: string | undefined; background?: boolean | undefined; + userContext?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { params: { type: "window" | "tab"; referenceContext?: string | undefined; background?: boolean | undefined; + userContext?: string | null | undefined; }; method: "browsingContext.create"; }, { @@ -4697,6 +4753,7 @@ export declare const CommandSchema: z.ZodLazy>, z.ZodLazy>, z.ZodLazy; + params: z.ZodLazy; + element: z.ZodLazy; + handle: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + sharedId: string; + handle?: string | undefined; + }, { + sharedId: string; + handle?: string | undefined; + }>, z.ZodLazy>>>; + files: z.ZodArray; + }, "strip", z.ZodTypeAny, { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }, { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }>>; +}, "strip", z.ZodTypeAny, { + params: { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }; + method: "input.setFiles"; +}, { + params: { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }; + method: "input.setFiles"; }>>]>>, z.ZodLazy; params: z.ZodLazy; maxAge: z.ZodOptional>; path: z.ZodOptional; - sameSite: z.ZodOptional>; + sameSite: z.ZodOptional>>; secure: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: { @@ -6807,7 +6914,7 @@ export declare const CommandSchema: z.ZodLazy; maxAge: z.ZodOptional>; path: z.ZodOptional; - sameSite: z.ZodOptional>; + sameSite: z.ZodOptional>>; secure: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: { @@ -8233,6 +8340,590 @@ export declare const CommandSchema: z.ZodLazy>]>>, z.ZodLazy; + params: z.ZodLazy; + value: z.ZodOptional; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>>; + domain: z.ZodOptional; + path: z.ZodOptional; + size: z.ZodOptional>; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>>; + partition: z.ZodOptional; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>>; + }, "strip", z.ZodTypeAny, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }>>; +}, "strip", z.ZodTypeAny, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.deleteCookies"; +}, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.deleteCookies"; +}>>, z.ZodLazy; + params: z.ZodLazy; + value: z.ZodOptional; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>>; + domain: z.ZodOptional; + path: z.ZodOptional; + size: z.ZodOptional>; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>>; + partition: z.ZodOptional; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>>; + }, "strip", z.ZodTypeAny, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }>>; +}, "strip", z.ZodTypeAny, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.getCookies"; +}, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.getCookies"; +}>>, z.ZodLazy; + params: z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>; + domain: z.ZodString; + path: z.ZodOptional; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>; + partition: z.ZodOptional; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>>; + }, "strip", z.ZodTypeAny, { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }, { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }>>; +}, "strip", z.ZodTypeAny, { + params: { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.setCookie"; +}, { + params: { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.setCookie"; }>>]>>]>>>, z.ZodLazy>>>; export declare const CommandResponseSchema: z.ZodLazy; @@ -8434,10 +9125,13 @@ export declare const CommandResponseSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"dedicated-worker">; + owners: z.ZodTuple<[z.ZodLazy], null>; }, "strip", z.ZodTypeAny, { type: "dedicated-worker"; + owners: [string]; }, { type: "dedicated-worker"; + owners: [string]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -8449,10 +9143,13 @@ export declare const CommandResponseSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"shared-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "shared-worker"; + owners: string[]; }, { type: "shared-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -8464,10 +9161,13 @@ export declare const CommandResponseSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"service-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "service-worker"; + owners: string[]; }, { type: "service-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -8542,16 +9242,19 @@ export declare const CommandResponseSchema: z.ZodLazy, z.ZodLazy>>>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>>; - webSocketUrl: z.ZodOptional]>>; + webSocketUrl: z.ZodOptional; }, "strip", z.ZodTypeAny, { acceptInsecureCerts: boolean; browserName: string; @@ -8710,7 +9416,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; }, { acceptInsecureCerts: boolean; browserName: string; @@ -8737,7 +9443,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; }>, z.ZodLazy>>; }, "strip", z.ZodTypeAny, { capabilities: { @@ -8766,7 +9472,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }, { @@ -8796,7 +9502,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }>>, z.ZodLazy>]>>, z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; + }, "strip", z.ZodTypeAny, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>; + domain: z.ZodString; + path: z.ZodString; + size: z.ZodLazy; + httpOnly: z.ZodBoolean; + secure: z.ZodBoolean; + sameSite: z.ZodLazy>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + }, { + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + }>, z.ZodLazy>>>, "many">; + partitionKey: z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; + }, "strip", z.ZodTypeAny, { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }, { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }>>, z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; + }, "strip", z.ZodTypeAny, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }>>]>>]>>; }, "strip", z.ZodTypeAny, { type: "success"; @@ -8863,16 +9727,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } | { message: string; ready: boolean; + } | { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } | { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } | { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; } | (Record & { data: string; }) | (Record & { @@ -8978,16 +9877,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | (Record & { message: string; ready: boolean; + }) | (Record & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | (Record & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | (Record & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ data: string; } & Record) | ({ @@ -9115,16 +10049,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -9183,6 +10120,44 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + data: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + data: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ context: string; } & Record) | ({ @@ -9256,16 +10231,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -9324,6 +10302,44 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + context: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + context: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ contexts?: any; } & Record) | ({ @@ -9397,16 +10413,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -9465,6 +10484,44 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + contexts?: any; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + contexts?: any; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ nodes: any[]; } & Record) | ({ @@ -9538,16 +10595,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -9606,6 +10666,44 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + nodes: any[]; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + nodes: any[]; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ url: string; navigation: string | null; @@ -9690,16 +10788,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -9760,6 +10861,47 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + url: string; + navigation: string | null; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + url: string; + navigation: string | null; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ data: string; } & Record) | ({ @@ -9833,16 +10975,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -9901,6 +11046,44 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + data: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + data: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({} & Record) | ({} & { data: string; }) | ({} & { @@ -9952,16 +11135,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({} & { message: string; ready: boolean; + }) | ({} & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({} & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({} & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ intercept: string; } & Record) | ({ @@ -10089,16 +11307,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -10157,6 +11378,44 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + intercept: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + intercept: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ script: string; } & Record) | ({ @@ -10230,16 +11489,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -10298,6 +11560,44 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + script: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + script: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ type: "success"; realm: string; @@ -10372,16 +11672,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -10444,6 +11747,50 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + type: "success"; + realm: string; + result?: any; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + type: "success"; + realm: string; + result?: any; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ type: "exception"; realm: string; @@ -10661,16 +12008,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -10759,6 +12109,89 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ realms: (({ origin: string; @@ -10772,16 +12205,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -11412,16 +12884,19 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ capabilities: { acceptInsecureCerts: boolean; @@ -11473,7 +13121,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & Record) | ({ @@ -11503,7 +13151,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -11535,7 +13183,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -11567,7 +13215,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -11599,7 +13247,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -11631,7 +13279,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -11664,7 +13312,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -11696,7 +13344,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & {}) | ({ @@ -11726,7 +13374,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -11758,7 +13406,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -11790,7 +13438,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -11824,7 +13472,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -11871,7 +13519,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -11887,16 +13535,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { message: string; ready: boolean; + }) | ({ + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ message: string; ready: boolean; @@ -12041,16 +13814,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; + }) | ({ + message: string; + ready: boolean; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + message: string; + ready: boolean; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + message: string; + ready: boolean; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & Record) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + context: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + contexts?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + nodes: any[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + url: string; + navigation: string | null; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & {}) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + intercept: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + script: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "success"; + realm: string; + result?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + message: string; + ready: boolean; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & Record) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + context: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + contexts?: any; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + nodes: any[]; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + url: string; + navigation: string | null; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & {}) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + intercept: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + script: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "success"; + realm: string; + result?: any; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + message: string; + ready: boolean; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & Record) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + context: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + contexts?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + nodes: any[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + url: string; + navigation: string | null; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & {}) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + intercept: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + script: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "success"; + realm: string; + result?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + message: string; + ready: boolean; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }); }, { type: "success"; @@ -12160,16 +14939,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } | { message: string; ready: boolean; + } | { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } | { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } | { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; } | (Record & { data: string; }) | (Record & { @@ -12275,16 +15089,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | (Record & { message: string; ready: boolean; + }) | (Record & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | (Record & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | (Record & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ data: string; } & Record) | ({ @@ -12412,16 +15261,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -12480,6 +15332,44 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + data: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + data: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ context: string; } & Record) | ({ @@ -12553,16 +15443,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -12621,6 +15514,44 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + context: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + context: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ contexts?: any; } & Record) | ({ @@ -12694,16 +15625,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -12762,6 +15696,44 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + contexts?: any; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + contexts?: any; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ nodes: any[]; } & Record) | ({ @@ -12835,16 +15807,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -12903,6 +15878,44 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + nodes: any[]; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + nodes: any[]; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ url: string; navigation: string | null; @@ -12987,16 +16000,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -13057,6 +16073,47 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + url: string; + navigation: string | null; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + url: string; + navigation: string | null; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ data: string; } & Record) | ({ @@ -13130,16 +16187,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -13198,6 +16258,44 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + data: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + data: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({} & Record) | ({} & { data: string; }) | ({} & { @@ -13249,16 +16347,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({} & { message: string; ready: boolean; + }) | ({} & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({} & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({} & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ intercept: string; } & Record) | ({ @@ -13386,16 +16519,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -13454,6 +16590,44 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + intercept: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + intercept: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ script: string; } & Record) | ({ @@ -13527,16 +16701,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -13595,6 +16772,44 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + script: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + script: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ type: "success"; realm: string; @@ -13669,16 +16884,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -13741,6 +16959,50 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + type: "success"; + realm: string; + result?: any; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + type: "success"; + realm: string; + result?: any; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ type: "exception"; realm: string; @@ -13958,16 +17220,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -14056,6 +17321,89 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ realms: (({ origin: string; @@ -14069,16 +17417,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -14709,16 +18096,19 @@ export declare const CommandResponseSchema: z.ZodLazy; + }) | ({ + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ capabilities: { acceptInsecureCerts: boolean; @@ -14770,7 +18333,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & Record) | ({ @@ -14800,7 +18363,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -14832,7 +18395,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -14864,7 +18427,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -14896,7 +18459,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -14928,7 +18491,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -14961,7 +18524,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -14993,7 +18556,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & {}) | ({ @@ -15023,7 +18586,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -15055,7 +18618,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -15087,7 +18650,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -15121,7 +18684,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -15168,7 +18731,7 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -15184,16 +18747,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { message: string; ready: boolean; + }) | ({ + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ message: string; ready: boolean; @@ -15338,16 +19026,19 @@ export declare const CommandResponseSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; + }) | ({ + message: string; + ready: boolean; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + message: string; + ready: boolean; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + message: string; + ready: boolean; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & Record) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + context: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + contexts?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + nodes: any[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + url: string; + navigation: string | null; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & {}) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + intercept: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + script: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "success"; + realm: string; + result?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + message: string; + ready: boolean; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & Record) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + context: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + contexts?: any; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + nodes: any[]; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + url: string; + navigation: string | null; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & {}) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + intercept: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + script: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "success"; + realm: string; + result?: any; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + message: string; + ready: boolean; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & Record) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + context: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + contexts?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + nodes: any[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + url: string; + navigation: string | null; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & {}) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + intercept: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + script: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "success"; + realm: string; + result?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + message: string; + ready: boolean; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }); }>, z.ZodLazy>>>; export declare const EventDataSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -16347,7 +21041,7 @@ export declare const EventDataSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -16381,7 +21075,7 @@ export declare const EventDataSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -16445,7 +21139,7 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -16477,7 +21171,7 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -16528,9 +21222,10 @@ export declare const EventDataSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -16546,7 +21241,7 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -16577,16 +21272,16 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -16633,7 +21328,6 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -16872,7 +21567,6 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -16960,7 +21655,6 @@ export declare const EventDataSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -17073,7 +21767,7 @@ export declare const EventDataSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -17107,7 +21801,7 @@ export declare const EventDataSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -17171,7 +21865,7 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -17203,7 +21897,7 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -17254,9 +21948,10 @@ export declare const EventDataSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -17272,7 +21967,7 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -17303,16 +21998,16 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -17359,7 +22054,6 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -17512,7 +22207,6 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -17586,7 +22281,6 @@ export declare const EventDataSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -17685,7 +22379,7 @@ export declare const EventDataSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -17719,7 +22413,7 @@ export declare const EventDataSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -17783,7 +22477,7 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -17815,7 +22509,7 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -17866,9 +22560,10 @@ export declare const EventDataSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -17884,7 +22579,7 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -17915,16 +22610,16 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -17971,7 +22666,6 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -18035,7 +22730,6 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -18096,7 +22791,6 @@ export declare const EventDataSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -18182,7 +22876,7 @@ export declare const EventDataSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -18216,7 +22910,7 @@ export declare const EventDataSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -18280,7 +22974,7 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -18312,7 +23006,7 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -18363,9 +23057,10 @@ export declare const EventDataSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -18381,7 +23076,7 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -18412,16 +23107,16 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -18468,7 +23163,6 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -18707,7 +23402,6 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -18795,7 +23490,6 @@ export declare const EventDataSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -18908,7 +23602,7 @@ export declare const EventDataSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -18942,7 +23636,7 @@ export declare const EventDataSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -19006,7 +23700,7 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -19038,7 +23732,7 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -19089,9 +23783,10 @@ export declare const EventDataSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -19107,7 +23802,7 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -19138,16 +23833,16 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -19194,7 +23889,6 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -19433,7 +24128,6 @@ export declare const EventDataSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -19521,7 +24216,6 @@ export declare const EventDataSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"dedicated-worker">; + owners: z.ZodTuple<[z.ZodLazy], null>; }, "strip", z.ZodTypeAny, { type: "dedicated-worker"; + owners: [string]; }, { type: "dedicated-worker"; + owners: [string]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -19656,10 +24353,13 @@ export declare const EventDataSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"shared-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "shared-worker"; + owners: string[]; }, { type: "shared-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -19671,10 +24371,13 @@ export declare const EventDataSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"service-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "service-worker"; + owners: string[]; }, { type: "service-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -19749,16 +24452,19 @@ export declare const EventDataSchema: z.ZodLazy>]>>]>>; -export declare const CommandDataSchema: z.ZodLazy; params: z.ZodLazy>>; }, "strip", z.ZodTypeAny, { @@ -19855,7 +24564,44 @@ export declare const CommandDataSchema: z.ZodLazy; method: "browser.close"; -}>>>, z.ZodLazy>, z.ZodLazy; + params: z.ZodLazy>>; +}, "strip", z.ZodTypeAny, { + params: Record; + method: "browser.createUserContext"; +}, { + params: Record; + method: "browser.createUserContext"; +}>>, z.ZodLazy; + params: z.ZodLazy>>; +}, "strip", z.ZodTypeAny, { + params: Record; + method: "browser.getUserContexts"; +}, { + params: Record; + method: "browser.getUserContexts"; +}>>, z.ZodLazy; + params: z.ZodObject<{ + userContext: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + userContext: string; + }, { + userContext: string; + }>; +}, "strip", z.ZodTypeAny, { + params: { + userContext: string; + }; + method: "browser.removeUserContext"; +}, { + params: { + userContext: string; + }; + method: "browser.removeUserContext"; +}>>]>>, z.ZodLazy; params: z.ZodLazy; @@ -20049,20 +24795,24 @@ export declare const CommandDataSchema: z.ZodLazy>; referenceContext: z.ZodOptional>; background: z.ZodOptional>; + userContext: z.ZodOptional, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { type: "window" | "tab"; referenceContext?: string | undefined; background?: boolean | undefined; + userContext?: string | null | undefined; }, { type: "window" | "tab"; referenceContext?: string | undefined; background?: boolean | undefined; + userContext?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { params: { type: "window" | "tab"; referenceContext?: string | undefined; background?: boolean | undefined; + userContext?: string | null | undefined; }; method: "browsingContext.create"; }, { @@ -20070,6 +24820,7 @@ export declare const CommandDataSchema: z.ZodLazy>, z.ZodLazy>, z.ZodLazy; + params: z.ZodLazy; + element: z.ZodLazy; + handle: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + sharedId: string; + handle?: string | undefined; + }, { + sharedId: string; + handle?: string | undefined; + }>, z.ZodLazy>>>; + files: z.ZodArray; + }, "strip", z.ZodTypeAny, { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }, { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }>>; +}, "strip", z.ZodTypeAny, { + params: { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }; + method: "input.setFiles"; +}, { + params: { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }; + method: "input.setFiles"; }>>]>>, z.ZodLazy; params: z.ZodLazy; maxAge: z.ZodOptional>; path: z.ZodOptional; - sameSite: z.ZodOptional>; + sameSite: z.ZodOptional>>; secure: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: { @@ -22180,7 +26981,7 @@ export declare const CommandDataSchema: z.ZodLazy; maxAge: z.ZodOptional>; path: z.ZodOptional; - sameSite: z.ZodOptional>; + sameSite: z.ZodOptional>>; secure: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: { @@ -23606,6 +28407,590 @@ export declare const CommandDataSchema: z.ZodLazy>]>>, z.ZodLazy; + params: z.ZodLazy; + value: z.ZodOptional; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>>; + domain: z.ZodOptional; + path: z.ZodOptional; + size: z.ZodOptional>; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>>; + partition: z.ZodOptional; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>>; + }, "strip", z.ZodTypeAny, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }>>; +}, "strip", z.ZodTypeAny, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.deleteCookies"; +}, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.deleteCookies"; +}>>, z.ZodLazy; + params: z.ZodLazy; + value: z.ZodOptional; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>>; + domain: z.ZodOptional; + path: z.ZodOptional; + size: z.ZodOptional>; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>>; + partition: z.ZodOptional; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>>; + }, "strip", z.ZodTypeAny, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }>>; +}, "strip", z.ZodTypeAny, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.getCookies"; +}, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.getCookies"; +}>>, z.ZodLazy; + params: z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>; + domain: z.ZodString; + path: z.ZodOptional; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>; + partition: z.ZodOptional; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>>; + }, "strip", z.ZodTypeAny, { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }, { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }>>; +}, "strip", z.ZodTypeAny, { + params: { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.setCookie"; +}, { + params: { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.setCookie"; }>>]>>]>>; export declare const ResultDataSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"dedicated-worker">; + owners: z.ZodTuple<[z.ZodLazy], null>; }, "strip", z.ZodTypeAny, { type: "dedicated-worker"; + owners: [string]; }, { type: "dedicated-worker"; + owners: [string]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -23819,10 +29207,13 @@ export declare const ResultDataSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"shared-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "shared-worker"; + owners: string[]; }, { type: "shared-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -23834,10 +29225,13 @@ export declare const ResultDataSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"service-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "service-worker"; + owners: string[]; }, { type: "service-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -23912,16 +29306,19 @@ export declare const ResultDataSchema: z.ZodLazy, z.ZodLazy>>>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>>; - webSocketUrl: z.ZodOptional]>>; + webSocketUrl: z.ZodOptional; }, "strip", z.ZodTypeAny, { acceptInsecureCerts: boolean; browserName: string; @@ -24080,7 +29480,7 @@ export declare const ResultDataSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; }, { acceptInsecureCerts: boolean; browserName: string; @@ -24107,7 +29507,7 @@ export declare const ResultDataSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; }>, z.ZodLazy>>; }, "strip", z.ZodTypeAny, { capabilities: { @@ -24136,7 +29536,7 @@ export declare const ResultDataSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }, { @@ -24166,7 +29566,7 @@ export declare const ResultDataSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }>>, z.ZodLazy>]>>, z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; +}, "strip", z.ZodTypeAny, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; +}, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; +}>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>; + domain: z.ZodString; + path: z.ZodString; + size: z.ZodLazy; + httpOnly: z.ZodBoolean; + secure: z.ZodBoolean; + sameSite: z.ZodLazy>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + }, { + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + }>, z.ZodLazy>>>, "many">; + partitionKey: z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; +}, "strip", z.ZodTypeAny, { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; +}, { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; +}>>, z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; +}, "strip", z.ZodTypeAny, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; +}, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }>>]>>]>>; export declare const EmptyParamsSchema: z.ZodLazy>>; export declare const MessageSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"dedicated-worker">; + owners: z.ZodTuple<[z.ZodLazy], null>; }, "strip", z.ZodTypeAny, { type: "dedicated-worker"; + owners: [string]; }, { type: "dedicated-worker"; + owners: [string]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -24395,10 +29956,13 @@ export declare const MessageSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"shared-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "shared-worker"; + owners: string[]; }, { type: "shared-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -24410,10 +29974,13 @@ export declare const MessageSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"service-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "service-worker"; + owners: string[]; }, { type: "service-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -24488,16 +30055,19 @@ export declare const MessageSchema: z.ZodLazy, z.ZodLazy>>>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>>; - webSocketUrl: z.ZodOptional]>>; + webSocketUrl: z.ZodOptional; }, "strip", z.ZodTypeAny, { acceptInsecureCerts: boolean; browserName: string; @@ -24656,7 +30229,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; }, { acceptInsecureCerts: boolean; browserName: string; @@ -24683,7 +30256,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; }>, z.ZodLazy>>; }, "strip", z.ZodTypeAny, { capabilities: { @@ -24712,7 +30285,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }, { @@ -24742,7 +30315,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }>>, z.ZodLazy>]>>, z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; + }, "strip", z.ZodTypeAny, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>; + domain: z.ZodString; + path: z.ZodString; + size: z.ZodLazy; + httpOnly: z.ZodBoolean; + secure: z.ZodBoolean; + sameSite: z.ZodLazy>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + }, { + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + }>, z.ZodLazy>>>, "many">; + partitionKey: z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; + }, "strip", z.ZodTypeAny, { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }, { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }>>, z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; + }, "strip", z.ZodTypeAny, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }>>]>>]>>; }, "strip", z.ZodTypeAny, { type: "success"; @@ -24809,16 +30540,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } | { message: string; ready: boolean; + } | { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } | { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } | { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; } | (Record & { data: string; }) | (Record & { @@ -24924,16 +30690,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | (Record & { message: string; ready: boolean; + }) | (Record & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | (Record & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | (Record & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ data: string; } & Record) | ({ @@ -25061,16 +30862,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -25129,6 +30933,44 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + data: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + data: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ context: string; } & Record) | ({ @@ -25202,16 +31044,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -25270,6 +31115,44 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + context: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + context: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ contexts?: any; } & Record) | ({ @@ -25343,16 +31226,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -25411,6 +31297,44 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + contexts?: any; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + contexts?: any; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ nodes: any[]; } & Record) | ({ @@ -25484,16 +31408,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -25552,6 +31479,44 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + nodes: any[]; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + nodes: any[]; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ url: string; navigation: string | null; @@ -25636,16 +31601,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -25706,6 +31674,47 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + url: string; + navigation: string | null; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + url: string; + navigation: string | null; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ data: string; } & Record) | ({ @@ -25779,16 +31788,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -25847,6 +31859,44 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + data: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + data: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({} & Record) | ({} & { data: string; }) | ({} & { @@ -25898,16 +31948,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({} & { message: string; ready: boolean; + }) | ({} & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({} & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({} & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ intercept: string; } & Record) | ({ @@ -26035,16 +32120,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -26103,6 +32191,44 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + intercept: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + intercept: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ script: string; } & Record) | ({ @@ -26176,16 +32302,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -26244,6 +32373,44 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + script: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + script: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ type: "success"; realm: string; @@ -26318,16 +32485,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -26390,6 +32560,50 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + type: "success"; + realm: string; + result?: any; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + type: "success"; + realm: string; + result?: any; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ type: "exception"; realm: string; @@ -26607,16 +32821,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -26705,6 +32922,89 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ realms: (({ origin: string; @@ -26718,16 +33018,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -27358,16 +33697,19 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ capabilities: { acceptInsecureCerts: boolean; @@ -27419,7 +33934,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & Record) | ({ @@ -27449,7 +33964,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -27481,7 +33996,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -27513,7 +34028,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -27545,7 +34060,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -27577,7 +34092,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -27610,7 +34125,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -27642,7 +34157,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & {}) | ({ @@ -27672,7 +34187,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -27704,7 +34219,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -27736,7 +34251,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -27770,7 +34285,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -27817,7 +34332,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -27833,16 +34348,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { message: string; ready: boolean; + }) | ({ + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ message: string; ready: boolean; @@ -27987,16 +34627,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; + }) | ({ + message: string; + ready: boolean; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + message: string; + ready: boolean; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + message: string; + ready: boolean; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & Record) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + context: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + contexts?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + nodes: any[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + url: string; + navigation: string | null; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & {}) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + intercept: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + script: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "success"; + realm: string; + result?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + message: string; + ready: boolean; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & Record) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + context: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + contexts?: any; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + nodes: any[]; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + url: string; + navigation: string | null; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & {}) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + intercept: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + script: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "success"; + realm: string; + result?: any; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + message: string; + ready: boolean; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & Record) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + context: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + contexts?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + nodes: any[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + url: string; + navigation: string | null; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & {}) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + intercept: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + script: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "success"; + realm: string; + result?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + message: string; + ready: boolean; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }); }, { type: "success"; @@ -28106,16 +35752,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } | { message: string; ready: boolean; + } | { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } | { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } | { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; } | (Record & { data: string; }) | (Record & { @@ -28221,16 +35902,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | (Record & { message: string; ready: boolean; + }) | (Record & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | (Record & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | (Record & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ data: string; } & Record) | ({ @@ -28358,16 +36074,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -28426,6 +36145,44 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + data: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + data: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ context: string; } & Record) | ({ @@ -28499,16 +36256,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -28567,6 +36327,44 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + context: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + context: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ contexts?: any; } & Record) | ({ @@ -28640,16 +36438,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -28708,6 +36509,44 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + contexts?: any; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + contexts?: any; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ nodes: any[]; } & Record) | ({ @@ -28781,16 +36620,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -28849,6 +36691,44 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + nodes: any[]; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + nodes: any[]; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ url: string; navigation: string | null; @@ -28933,16 +36813,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -29003,6 +36886,47 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + url: string; + navigation: string | null; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + url: string; + navigation: string | null; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ data: string; } & Record) | ({ @@ -29076,16 +37000,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -29144,6 +37071,44 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + data: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + data: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({} & Record) | ({} & { data: string; }) | ({} & { @@ -29195,16 +37160,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({} & { message: string; ready: boolean; + }) | ({} & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({} & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({} & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ intercept: string; } & Record) | ({ @@ -29332,16 +37332,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -29400,6 +37403,44 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + intercept: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + intercept: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ script: string; } & Record) | ({ @@ -29473,16 +37514,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -29541,6 +37585,44 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + script: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + script: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ type: "success"; realm: string; @@ -29615,16 +37697,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -29687,6 +37772,50 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + type: "success"; + realm: string; + result?: any; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + type: "success"; + realm: string; + result?: any; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ type: "exception"; realm: string; @@ -29904,16 +38033,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -30002,6 +38134,89 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ realms: (({ origin: string; @@ -30015,16 +38230,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }) | ({ @@ -30655,16 +38909,19 @@ export declare const MessageSchema: z.ZodLazy; + }) | ({ + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ capabilities: { acceptInsecureCerts: boolean; @@ -30716,7 +39146,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & Record) | ({ @@ -30746,7 +39176,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -30778,7 +39208,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -30810,7 +39240,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -30842,7 +39272,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -30874,7 +39304,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -30907,7 +39337,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -30939,7 +39369,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & {}) | ({ @@ -30969,7 +39399,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -31001,7 +39431,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -31033,7 +39463,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -31067,7 +39497,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -31114,7 +39544,7 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { @@ -31130,16 +39560,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; } & { message: string; ready: boolean; + }) | ({ + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }) | ({ message: string; ready: boolean; @@ -31284,16 +39839,19 @@ export declare const MessageSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; + }) | ({ + message: string; + ready: boolean; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + message: string; + ready: boolean; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + message: string; + ready: boolean; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & Record) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + context: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + contexts?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + nodes: any[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + url: string; + navigation: string | null; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & {}) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + intercept: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + script: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "success"; + realm: string; + result?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + message: string; + ready: boolean; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & Record) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + context: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + contexts?: any; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + nodes: any[]; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + url: string; + navigation: string | null; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & {}) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + intercept: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + script: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "success"; + realm: string; + result?: any; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + message: string; + ready: boolean; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & Record) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + context: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + contexts?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + nodes: any[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + url: string; + navigation: string | null; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + data: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & {}) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + intercept: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + script: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "success"; + realm: string; + result?: any; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + type: "exception"; + realm: string; + exceptionDetails: { + columnNumber: number; + lineNumber: number; + text: string; + stackTrace: { + callFrames: { + url: string; + columnNumber: number; + lineNumber: number; + functionName: string; + }[]; + }; + exception?: any; + }; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + realms: (({ + origin: string; + realm: string; + } & { + type: "window"; + context: string; + sandbox?: string | undefined; + }) | ({ + origin: string; + realm: string; + } & { + type: "dedicated-worker"; + owners: [string]; + }) | ({ + origin: string; + realm: string; + } & { + type: "shared-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "service-worker"; + owners: string[]; + }) | ({ + origin: string; + realm: string; + } & { + type: "worker"; + }) | ({ + origin: string; + realm: string; + } & { + type: "paint-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "audio-worklet"; + }) | ({ + origin: string; + realm: string; + } & { + type: "worklet"; + }))[]; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + capabilities: { + acceptInsecureCerts: boolean; + browserName: string; + browserVersion: string; + platformName: string; + setWindowRect: boolean; + proxy?: ({ + proxyType: "autodetect"; + } & Record) | ({ + proxyType: "direct"; + } & Record) | ((({ + proxyType: "manual"; + ftpProxy?: string | undefined; + httpProxy?: string | undefined; + sslProxy?: string | undefined; + } & ({ + socksProxy: string; + socksVersion: number; + } | {})) & { + noProxy?: string[] | undefined; + }) & Record) | ({ + proxyType: "pac"; + proxyAutoconfigUrl: string; + } & Record) | ({ + proxyType: "system"; + } & Record) | {} | undefined; + webSocketUrl?: string | undefined; + } & Record; + sessionId: string; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + message: string; + ready: boolean; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }) | ({ + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + } & { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; }); }>, z.ZodLazy>>>, z.ZodLazy; id: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - error: z.ZodLazy>; + error: z.ZodLazy>; message: z.ZodString; stacktrace: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; type: "error"; - error: "invalid argument" | "invalid session id" | "move target out of bounds" | "no such alert" | "no such element" | "no such frame" | "no such handle" | "no such history entry" | "no such intercept" | "no such node" | "no such request" | "no such script" | "session not created" | "unable to capture screen" | "unable to close browser" | "unknown command" | "unknown error" | "unsupported operation"; + error: "invalid argument" | "invalid session id" | "move target out of bounds" | "no such alert" | "no such element" | "no such frame" | "no such handle" | "no such history entry" | "no such intercept" | "no such node" | "no such request" | "no such script" | "no such storage partition" | "no such user context" | "session not created" | "unable to capture screen" | "unable to close browser" | "unable to set cookie" | "unable to set file input" | "underspecified storage partition" | "unknown command" | "unknown error" | "unsupported operation"; id: number | null; stacktrace?: string | undefined; }, { message: string; type: "error"; - error: "invalid argument" | "invalid session id" | "move target out of bounds" | "no such alert" | "no such element" | "no such frame" | "no such handle" | "no such history entry" | "no such intercept" | "no such node" | "no such request" | "no such script" | "session not created" | "unable to capture screen" | "unable to close browser" | "unknown command" | "unknown error" | "unsupported operation"; + error: "invalid argument" | "invalid session id" | "move target out of bounds" | "no such alert" | "no such element" | "no such frame" | "no such handle" | "no such history entry" | "no such intercept" | "no such node" | "no such request" | "no such script" | "no such storage partition" | "no such user context" | "session not created" | "unable to capture screen" | "unable to close browser" | "unable to set cookie" | "unable to set file input" | "underspecified storage partition" | "unknown command" | "unknown error" | "unsupported operation"; id: number | null; stacktrace?: string | undefined; }>, z.ZodLazy>>>, z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -32316,7 +41877,7 @@ export declare const MessageSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -32350,7 +41911,7 @@ export declare const MessageSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -32414,7 +41975,7 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -32446,7 +42007,7 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -32497,9 +42058,10 @@ export declare const MessageSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -32515,7 +42077,7 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -32546,16 +42108,16 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -32602,7 +42164,6 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -32841,7 +42403,6 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -32929,7 +42491,6 @@ export declare const MessageSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -33042,7 +42603,7 @@ export declare const MessageSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -33076,7 +42637,7 @@ export declare const MessageSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -33140,7 +42701,7 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -33172,7 +42733,7 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -33223,9 +42784,10 @@ export declare const MessageSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -33241,7 +42803,7 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -33272,16 +42834,16 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -33328,7 +42890,6 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -33481,7 +43043,6 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -33555,7 +43117,6 @@ export declare const MessageSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -33654,7 +43215,7 @@ export declare const MessageSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -33688,7 +43249,7 @@ export declare const MessageSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -33752,7 +43313,7 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -33784,7 +43345,7 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -33835,9 +43396,10 @@ export declare const MessageSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -33853,7 +43415,7 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -33884,16 +43446,16 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -33940,7 +43502,6 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -34004,7 +43566,6 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -34065,7 +43627,6 @@ export declare const MessageSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -34151,7 +43712,7 @@ export declare const MessageSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -34185,7 +43746,7 @@ export declare const MessageSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -34249,7 +43810,7 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -34281,7 +43842,7 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -34332,9 +43893,10 @@ export declare const MessageSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -34350,7 +43912,7 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -34381,16 +43943,16 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -34437,7 +43999,6 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -34676,7 +44238,6 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -34764,7 +44326,6 @@ export declare const MessageSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -34877,7 +44438,7 @@ export declare const MessageSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -34911,7 +44472,7 @@ export declare const MessageSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -34975,7 +44536,7 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -35007,7 +44568,7 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -35058,9 +44619,10 @@ export declare const MessageSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -35076,7 +44638,7 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -35107,16 +44669,16 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -35163,7 +44725,6 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -35402,7 +44964,6 @@ export declare const MessageSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -35490,7 +45052,6 @@ export declare const MessageSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"dedicated-worker">; + owners: z.ZodTuple<[z.ZodLazy], null>; }, "strip", z.ZodTypeAny, { type: "dedicated-worker"; + owners: [string]; }, { type: "dedicated-worker"; + owners: [string]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -35625,10 +45189,13 @@ export declare const MessageSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"shared-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "shared-worker"; + owners: string[]; }, { type: "shared-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -35640,10 +45207,13 @@ export declare const MessageSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"service-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "service-worker"; + owners: string[]; }, { type: "service-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -35718,16 +45288,19 @@ export declare const MessageSchema: z.ZodLazy; id: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; - error: z.ZodLazy>; + error: z.ZodLazy>; message: z.ZodString; stacktrace: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; type: "error"; - error: "invalid argument" | "invalid session id" | "move target out of bounds" | "no such alert" | "no such element" | "no such frame" | "no such handle" | "no such history entry" | "no such intercept" | "no such node" | "no such request" | "no such script" | "session not created" | "unable to capture screen" | "unable to close browser" | "unknown command" | "unknown error" | "unsupported operation"; + error: "invalid argument" | "invalid session id" | "move target out of bounds" | "no such alert" | "no such element" | "no such frame" | "no such handle" | "no such history entry" | "no such intercept" | "no such node" | "no such request" | "no such script" | "no such storage partition" | "no such user context" | "session not created" | "unable to capture screen" | "unable to close browser" | "unable to set cookie" | "unable to set file input" | "underspecified storage partition" | "unknown command" | "unknown error" | "unsupported operation"; id: number | null; stacktrace?: string | undefined; }, { message: string; type: "error"; - error: "invalid argument" | "invalid session id" | "move target out of bounds" | "no such alert" | "no such element" | "no such frame" | "no such handle" | "no such history entry" | "no such intercept" | "no such node" | "no such request" | "no such script" | "session not created" | "unable to capture screen" | "unable to close browser" | "unknown command" | "unknown error" | "unsupported operation"; + error: "invalid argument" | "invalid session id" | "move target out of bounds" | "no such alert" | "no such element" | "no such frame" | "no such handle" | "no such history entry" | "no such intercept" | "no such node" | "no such request" | "no such script" | "no such storage partition" | "no such user context" | "session not created" | "unable to capture screen" | "unable to close browser" | "unable to set cookie" | "unable to set file input" | "underspecified storage partition" | "unknown command" | "unknown error" | "unsupported operation"; id: number | null; stacktrace?: string | undefined; }>, z.ZodLazy>>>; @@ -35838,7 +45414,7 @@ export declare const EmptyResultSchema: z.ZodLazy>; export declare const JsIntSchema: z.ZodLazy; export declare const JsUintSchema: z.ZodLazy; -export declare const ErrorCodeSchema: z.ZodLazy>; +export declare const ErrorCodeSchema: z.ZodLazy>; export declare const SessionCommandSchema: z.ZodLazy; params: z.ZodLazy>>; @@ -36616,7 +46192,7 @@ export declare const SessionResultSchema: z.ZodLazy, z.ZodLazy>>>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>>; - webSocketUrl: z.ZodOptional]>>; + webSocketUrl: z.ZodOptional; }, "strip", z.ZodTypeAny, { acceptInsecureCerts: boolean; browserName: string; @@ -36643,7 +46219,7 @@ export declare const SessionResultSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; }, { acceptInsecureCerts: boolean; browserName: string; @@ -36670,7 +46246,7 @@ export declare const SessionResultSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; }>, z.ZodLazy>>; }, "strip", z.ZodTypeAny, { capabilities: { @@ -36699,7 +46275,7 @@ export declare const SessionResultSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }, { @@ -36729,7 +46305,7 @@ export declare const SessionResultSchema: z.ZodLazy) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }>>, z.ZodLazy, z.ZodLazy>>>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>>; - webSocketUrl: z.ZodOptional]>>; + webSocketUrl: z.ZodOptional; }, "strip", z.ZodTypeAny, { acceptInsecureCerts: boolean; browserName: string; @@ -38474,7 +48050,7 @@ export declare namespace Session { } & Record) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; }, { acceptInsecureCerts: boolean; browserName: string; @@ -38501,7 +48077,7 @@ export declare namespace Session { } & Record) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; }>, z.ZodLazy>>; }, "strip", z.ZodTypeAny, { capabilities: { @@ -38530,7 +48106,7 @@ export declare namespace Session { } & Record) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }, { @@ -38560,7 +48136,7 @@ export declare namespace Session { } & Record) | ({ proxyType: "system"; } & Record) | {} | undefined; - webSocketUrl?: string | true | undefined; + webSocketUrl?: string | undefined; } & Record; sessionId: string; }>>; @@ -38631,7 +48207,7 @@ export declare namespace Session { method: "session.unsubscribe"; }>>; } -export declare const BrowserCommandSchema: z.ZodLazy; params: z.ZodLazy>>; }, "strip", z.ZodTypeAny, { @@ -38640,7 +48216,79 @@ export declare const BrowserCommandSchema: z.ZodLazy; method: "browser.close"; -}>>>; +}>>, z.ZodLazy; + params: z.ZodLazy>>; +}, "strip", z.ZodTypeAny, { + params: Record; + method: "browser.createUserContext"; +}, { + params: Record; + method: "browser.createUserContext"; +}>>, z.ZodLazy; + params: z.ZodLazy>>; +}, "strip", z.ZodTypeAny, { + params: Record; + method: "browser.getUserContexts"; +}, { + params: Record; + method: "browser.getUserContexts"; +}>>, z.ZodLazy; + params: z.ZodObject<{ + userContext: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + userContext: string; + }, { + userContext: string; + }>; +}, "strip", z.ZodTypeAny, { + params: { + userContext: string; + }; + method: "browser.removeUserContext"; +}, { + params: { + userContext: string; + }; + method: "browser.removeUserContext"; +}>>]>>; +export declare const BrowserResultSchema: z.ZodLazy; +}, "strip", z.ZodTypeAny, { + userContext: string; +}, { + userContext: string; +}>>>, z.ZodLazy; + }, "strip", z.ZodTypeAny, { + userContext: string; + }, { + userContext: string; + }>>, "many">; +}, "strip", z.ZodTypeAny, { + userContexts: { + userContext: string; + }[]; +}, { + userContexts: { + userContext: string; + }[]; +}>>]>>; +export declare namespace Browser { + const UserContextSchema: z.ZodLazy; +} +export declare namespace Browser { + const UserContextInfoSchema: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + userContext: string; + }, { + userContext: string; + }>>; +} export declare namespace Browser { const CloseSchema: z.ZodLazy; @@ -38653,6 +48301,80 @@ export declare namespace Browser { method: "browser.close"; }>>; } +export declare namespace Browser { + const CreateUserContextSchema: z.ZodLazy; + params: z.ZodLazy>>; + }, "strip", z.ZodTypeAny, { + params: Record; + method: "browser.createUserContext"; + }, { + params: Record; + method: "browser.createUserContext"; + }>>; +} +export declare namespace Browser { + const CreateUserContextResultSchema: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + userContext: string; + }, { + userContext: string; + }>>>; +} +export declare namespace Browser { + const GetUserContextsSchema: z.ZodLazy; + params: z.ZodLazy>>; + }, "strip", z.ZodTypeAny, { + params: Record; + method: "browser.getUserContexts"; + }, { + params: Record; + method: "browser.getUserContexts"; + }>>; +} +export declare namespace Browser { + const GetUserContextsResultSchema: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + userContext: string; + }, { + userContext: string; + }>>, "many">; + }, "strip", z.ZodTypeAny, { + userContexts: { + userContext: string; + }[]; + }, { + userContexts: { + userContext: string; + }[]; + }>>; +} +export declare namespace Browser { + const RemoveUserContextSchema: z.ZodLazy; + params: z.ZodObject<{ + userContext: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + userContext: string; + }, { + userContext: string; + }>; + }, "strip", z.ZodTypeAny, { + params: { + userContext: string; + }; + method: "browser.removeUserContext"; + }, { + params: { + userContext: string; + }; + method: "browser.removeUserContext"; + }>>; +} export declare const BrowsingContextCommandSchema: z.ZodLazy; params: z.ZodLazy>; referenceContext: z.ZodOptional>; background: z.ZodOptional>; + userContext: z.ZodOptional, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { type: "window" | "tab"; referenceContext?: string | undefined; background?: boolean | undefined; + userContext?: string | null | undefined; }, { type: "window" | "tab"; referenceContext?: string | undefined; background?: boolean | undefined; + userContext?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { params: { type: "window" | "tab"; referenceContext?: string | undefined; background?: boolean | undefined; + userContext?: string | null | undefined; }; method: "browsingContext.create"; }, { @@ -38868,6 +48594,7 @@ export declare const BrowsingContextCommandSchema: z.ZodLazy>, z.ZodLazy>; referenceContext: z.ZodOptional>; background: z.ZodOptional>; + userContext: z.ZodOptional, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { type: "window" | "tab"; referenceContext?: string | undefined; background?: boolean | undefined; + userContext?: string | null | undefined; }, { type: "window" | "tab"; referenceContext?: string | undefined; background?: boolean | undefined; + userContext?: string | null | undefined; }>>; }, "strip", z.ZodTypeAny, { params: { type: "window" | "tab"; referenceContext?: string | undefined; background?: boolean | undefined; + userContext?: string | null | undefined; }; method: "browsingContext.create"; }, { @@ -40288,6 +50019,7 @@ export declare namespace BrowsingContext { type: "window" | "tab"; referenceContext?: string | undefined; background?: boolean | undefined; + userContext?: string | null | undefined; }; method: "browsingContext.create"; }>>; @@ -40300,14 +50032,17 @@ export declare namespace BrowsingContext { type: z.ZodLazy>; referenceContext: z.ZodOptional>; background: z.ZodOptional>; + userContext: z.ZodOptional, z.ZodNull]>>; }, "strip", z.ZodTypeAny, { type: "window" | "tab"; referenceContext?: string | undefined; background?: boolean | undefined; + userContext?: string | null | undefined; }, { type: "window" | "tab"; referenceContext?: string | undefined; background?: boolean | undefined; + userContext?: string | null | undefined; }>>; } export declare namespace BrowsingContext { @@ -41946,7 +51681,7 @@ export declare const NetworkCommandSchema: z.ZodLazy; maxAge: z.ZodOptional>; path: z.ZodOptional; - sameSite: z.ZodOptional>; + sameSite: z.ZodOptional>>; secure: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: { @@ -42331,7 +52066,7 @@ export declare const NetworkCommandSchema: z.ZodLazy; maxAge: z.ZodOptional>; path: z.ZodOptional; - sameSite: z.ZodOptional>; + sameSite: z.ZodOptional>>; secure: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: { @@ -42638,7 +52373,7 @@ export declare const NetworkEventSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -42664,7 +52399,7 @@ export declare const NetworkEventSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -42698,7 +52433,7 @@ export declare const NetworkEventSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -42762,7 +52497,7 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -42794,7 +52529,7 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -42845,9 +52580,10 @@ export declare const NetworkEventSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -42863,7 +52599,7 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -42894,16 +52630,16 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -42950,7 +52686,6 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -43189,7 +52925,6 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -43277,7 +53013,6 @@ export declare const NetworkEventSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -43390,7 +53125,7 @@ export declare const NetworkEventSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -43424,7 +53159,7 @@ export declare const NetworkEventSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -43488,7 +53223,7 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -43520,7 +53255,7 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -43571,9 +53306,10 @@ export declare const NetworkEventSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -43589,7 +53325,7 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -43620,16 +53356,16 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -43676,7 +53412,6 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -43829,7 +53565,6 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -43903,7 +53639,6 @@ export declare const NetworkEventSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -44002,7 +53737,7 @@ export declare const NetworkEventSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -44036,7 +53771,7 @@ export declare const NetworkEventSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -44100,7 +53835,7 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -44132,7 +53867,7 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -44183,9 +53918,10 @@ export declare const NetworkEventSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -44201,7 +53937,7 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -44232,16 +53968,16 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -44288,7 +54024,6 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -44352,7 +54088,6 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -44413,7 +54149,6 @@ export declare const NetworkEventSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -44499,7 +54234,7 @@ export declare const NetworkEventSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -44533,7 +54268,7 @@ export declare const NetworkEventSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -44597,7 +54332,7 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -44629,7 +54364,7 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -44680,9 +54415,10 @@ export declare const NetworkEventSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -44698,7 +54434,7 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -44729,16 +54465,16 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -44785,7 +54521,6 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -45024,7 +54760,6 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -45112,7 +54848,6 @@ export declare const NetworkEventSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -45225,7 +54960,7 @@ export declare const NetworkEventSchema: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -45259,7 +54994,7 @@ export declare const NetworkEventSchema: z.ZodLazy>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -45323,7 +55058,7 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -45355,7 +55090,7 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -45406,9 +55141,10 @@ export declare const NetworkEventSchema: z.ZodLazy, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -45424,7 +55160,7 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -45455,16 +55191,16 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -45511,7 +55247,6 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -45750,7 +55486,6 @@ export declare const NetworkEventSchema: z.ZodLazy)[]; method: string; request: string; headers: { @@ -45838,7 +55574,6 @@ export declare const NetworkEventSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -45985,7 +55720,7 @@ export declare namespace Network { size: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -46019,7 +55754,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }>>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -46083,7 +55818,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -46115,7 +55850,7 @@ export declare namespace Network { }; }, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -46131,7 +55866,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -46166,9 +55901,10 @@ export declare namespace Network { intercepts: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -46184,7 +55920,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -46215,16 +55951,16 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; intercepts?: string[] | undefined; }, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -46240,7 +55976,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -46271,7 +56007,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -46324,7 +56059,10 @@ export declare namespace Network { }>>; } export declare namespace Network { - const CookieSchema: z.ZodLazy>; +} +export declare namespace Network { + const CookieSchema: z.ZodLazy; @@ -46350,7 +56088,7 @@ export declare namespace Network { size: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -46384,7 +56122,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }>>; + }>, z.ZodLazy>>>; } export declare namespace Network { const CookieHeaderSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -46658,7 +56396,7 @@ export declare namespace Network { size: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -46692,7 +56430,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }>>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -46756,7 +56494,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -46788,7 +56526,7 @@ export declare namespace Network { }; }, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -46804,7 +56542,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -46996,7 +56734,7 @@ export declare namespace Network { expiry: z.ZodOptional; maxAge: z.ZodOptional>; path: z.ZodOptional; - sameSite: z.ZodOptional>; + sameSite: z.ZodOptional>>; secure: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: { @@ -47710,7 +57448,7 @@ export declare namespace Network { expiry: z.ZodOptional; maxAge: z.ZodOptional>; path: z.ZodOptional; - sameSite: z.ZodOptional>; + sameSite: z.ZodOptional>>; secure: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: { @@ -47982,7 +57720,7 @@ export declare namespace Network { expiry: z.ZodOptional; maxAge: z.ZodOptional>; path: z.ZodOptional; - sameSite: z.ZodOptional>; + sameSite: z.ZodOptional>>; secure: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: { @@ -48391,7 +58129,7 @@ export declare namespace Network { expiry: z.ZodOptional; maxAge: z.ZodOptional>; path: z.ZodOptional; - sameSite: z.ZodOptional>; + sameSite: z.ZodOptional>>; secure: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: { @@ -48677,7 +58415,7 @@ export declare namespace Network { expiry: z.ZodOptional; maxAge: z.ZodOptional>; path: z.ZodOptional; - sameSite: z.ZodOptional>; + sameSite: z.ZodOptional>>; secure: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: { @@ -48947,10 +58685,13 @@ export declare const ScriptEventSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"dedicated-worker">; + owners: z.ZodTuple<[z.ZodLazy], null>; }, "strip", z.ZodTypeAny, { type: "dedicated-worker"; + owners: [string]; }, { type: "dedicated-worker"; + owners: [string]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -48962,10 +58703,13 @@ export declare const ScriptEventSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"shared-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "shared-worker"; + owners: string[]; }, { type: "shared-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -48977,10 +58721,13 @@ export declare const ScriptEventSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"service-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "service-worker"; + owners: string[]; }, { type: "service-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -49055,16 +58802,19 @@ export declare const ScriptEventSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -49228,7 +58981,7 @@ export declare namespace Network { size: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -49262,7 +59015,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }>>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -49326,7 +59079,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -49358,7 +59111,7 @@ export declare namespace Network { }; }, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -49374,7 +59127,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -49409,9 +59162,10 @@ export declare namespace Network { intercepts: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -49427,7 +59181,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -49458,16 +59212,16 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; intercepts?: string[] | undefined; }, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -49483,7 +59237,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -49514,7 +59268,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -49752,7 +59505,7 @@ export declare namespace Network { }; name: string; }>>, "many">; - cookies: z.ZodArray; @@ -49778,7 +59531,7 @@ export declare namespace Network { size: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -49812,7 +59565,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }>>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -49876,7 +59629,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -49908,7 +59661,7 @@ export declare namespace Network { }; }, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -49924,7 +59677,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -49959,9 +59712,10 @@ export declare namespace Network { intercepts: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -49977,7 +59731,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -50008,16 +59762,16 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; intercepts?: string[] | undefined; }, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -50033,7 +59787,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -50064,7 +59818,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -50216,7 +59969,7 @@ export declare namespace Network { }; name: string; }>>, "many">; - cookies: z.ZodArray; @@ -50242,7 +59995,7 @@ export declare namespace Network { size: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -50276,7 +60029,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }>>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -50340,7 +60093,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -50372,7 +60125,7 @@ export declare namespace Network { }; }, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -50388,7 +60141,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -50423,9 +60176,10 @@ export declare namespace Network { intercepts: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -50441,7 +60195,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -50472,16 +60226,16 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; intercepts?: string[] | undefined; }, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -50497,7 +60251,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -50528,7 +60282,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -50591,7 +60344,7 @@ export declare namespace Network { }; name: string; }>>, "many">; - cookies: z.ZodArray; @@ -50617,7 +60370,7 @@ export declare namespace Network { size: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -50651,7 +60404,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }>>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -50715,7 +60468,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -50747,7 +60500,7 @@ export declare namespace Network { }; }, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -50763,7 +60516,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -50798,9 +60551,10 @@ export declare namespace Network { intercepts: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -50816,7 +60570,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -50847,16 +60601,16 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; intercepts?: string[] | undefined; }, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -50872,7 +60626,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -50903,7 +60657,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -51141,7 +60894,7 @@ export declare namespace Network { }; name: string; }>>, "many">; - cookies: z.ZodArray; @@ -51167,7 +60920,7 @@ export declare namespace Network { size: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -51201,7 +60954,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }>>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -51265,7 +61018,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -51297,7 +61050,7 @@ export declare namespace Network { }; }, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -51313,7 +61066,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -51348,9 +61101,10 @@ export declare namespace Network { intercepts: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -51366,7 +61120,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -51397,16 +61151,16 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; intercepts?: string[] | undefined; }, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -51422,7 +61176,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -51453,7 +61207,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -52315,10 +62068,13 @@ export declare const ScriptResultSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"dedicated-worker">; + owners: z.ZodTuple<[z.ZodLazy], null>; }, "strip", z.ZodTypeAny, { type: "dedicated-worker"; + owners: [string]; }, { type: "dedicated-worker"; + owners: [string]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -52330,10 +62086,13 @@ export declare const ScriptResultSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"shared-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "shared-worker"; + owners: string[]; }, { type: "shared-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -52345,10 +62104,13 @@ export declare const ScriptResultSchema: z.ZodLazy>, z.ZodObject<{ type: z.ZodLiteral<"service-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "service-worker"; + owners: string[]; }, { type: "service-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -52423,16 +62185,19 @@ export declare const ScriptResultSchema: z.ZodLazy>, "many">; - cookies: z.ZodArray; @@ -52577,7 +62345,7 @@ export declare namespace Network { size: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -52611,7 +62379,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }>>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -52675,7 +62443,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -52707,7 +62475,7 @@ export declare namespace Network { }; }, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -52723,7 +62491,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -52758,9 +62526,10 @@ export declare namespace Network { intercepts: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -52776,7 +62545,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -52807,16 +62576,16 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; intercepts?: string[] | undefined; }, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -52832,7 +62601,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -52863,7 +62632,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -53053,9 +62821,10 @@ export declare namespace Network { }, "strip", z.ZodTypeAny, { params: { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -53071,7 +62840,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -53102,7 +62871,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -53141,9 +62909,10 @@ export declare namespace Network { }, { params: { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -53159,7 +62928,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -53190,7 +62959,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -53280,7 +63048,7 @@ export declare namespace Network { }; name: string; }>>, "many">; - cookies: z.ZodArray; @@ -53306,7 +63074,7 @@ export declare namespace Network { size: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -53340,7 +63108,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }>>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -53404,7 +63172,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -53436,7 +63204,7 @@ export declare namespace Network { }; }, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -53452,7 +63220,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -53487,9 +63255,10 @@ export declare namespace Network { intercepts: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -53505,7 +63274,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -53536,16 +63305,16 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; intercepts?: string[] | undefined; }, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -53561,7 +63330,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -53592,7 +63361,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -53696,9 +63464,10 @@ export declare namespace Network { }, "strip", z.ZodTypeAny, { params: { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -53714,7 +63483,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -53745,7 +63514,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -53770,9 +63538,10 @@ export declare namespace Network { }, { params: { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -53788,7 +63557,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -53819,7 +63588,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -53895,7 +63663,7 @@ export declare namespace Network { }; name: string; }>>, "many">; - cookies: z.ZodArray; @@ -53921,7 +63689,7 @@ export declare namespace Network { size: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -53955,7 +63723,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }>>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -54019,7 +63787,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -54051,7 +63819,7 @@ export declare namespace Network { }; }, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -54067,7 +63835,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -54102,9 +63870,10 @@ export declare namespace Network { intercepts: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -54120,7 +63889,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -54151,16 +63920,16 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; intercepts?: string[] | undefined; }, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -54176,7 +63945,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -54207,7 +63976,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -54222,9 +63990,10 @@ export declare namespace Network { }, "strip", z.ZodTypeAny, { params: { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -54240,7 +64009,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -54271,7 +64040,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -54283,9 +64051,10 @@ export declare namespace Network { }, { params: { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -54301,7 +64070,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -54332,7 +64101,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -54395,7 +64163,7 @@ export declare namespace Network { }; name: string; }>>, "many">; - cookies: z.ZodArray; @@ -54421,7 +64189,7 @@ export declare namespace Network { size: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -54455,7 +64223,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }>>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -54519,7 +64287,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -54551,7 +64319,7 @@ export declare namespace Network { }; }, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -54567,7 +64335,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -54602,9 +64370,10 @@ export declare namespace Network { intercepts: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -54620,7 +64389,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -54651,16 +64420,16 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; intercepts?: string[] | undefined; }, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -54676,7 +64445,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -54707,7 +64476,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -54897,9 +64665,10 @@ export declare namespace Network { }, "strip", z.ZodTypeAny, { params: { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -54915,7 +64684,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -54946,7 +64715,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -54985,9 +64753,10 @@ export declare namespace Network { }, { params: { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -55003,7 +64772,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -55034,7 +64803,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -55124,7 +64892,7 @@ export declare namespace Network { }; name: string; }>>, "many">; - cookies: z.ZodArray; @@ -55150,7 +64918,7 @@ export declare namespace Network { size: z.ZodLazy; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; - sameSite: z.ZodEnum<["strict", "lax", "none"]>; + sameSite: z.ZodLazy>; expiry: z.ZodOptional>; }, "strip", z.ZodTypeAny, { path: string; @@ -55184,7 +64952,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }>>, "many">; + }>, z.ZodLazy>>>, "many">; headersSize: z.ZodLazy; bodySize: z.ZodUnion<[z.ZodLazy, z.ZodNull]>; timings: z.ZodLazy>; }, "strip", z.ZodTypeAny, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -55248,7 +65016,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -55280,7 +65048,7 @@ export declare namespace Network { }; }, { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -55296,7 +65064,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -55331,9 +65099,10 @@ export declare namespace Network { intercepts: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -55349,7 +65118,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -55380,16 +65149,16 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; intercepts?: string[] | undefined; }, { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -55405,7 +65174,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -55436,7 +65205,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -55626,9 +65394,10 @@ export declare namespace Network { }, "strip", z.ZodTypeAny, { params: { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -55644,7 +65413,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -55675,7 +65444,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -55714,9 +65482,10 @@ export declare namespace Network { }, { params: { navigation: string | null; + context: string | null; request: { url: string; - cookies: { + cookies: ({ path: string; value: { type: "string"; @@ -55732,7 +65501,7 @@ export declare namespace Network { httpOnly: boolean; sameSite: "strict" | "none" | "lax"; expiry?: number | undefined; - }[]; + } & Record)[]; method: string; request: string; headers: { @@ -55763,7 +65532,6 @@ export declare namespace Network { responseEnd: number; }; }; - context: string | null; timestamp: number; isBlocked: boolean; redirectCount: number; @@ -56464,10 +66232,13 @@ export declare namespace Script { realm: string; }>>, z.ZodObject<{ type: z.ZodLiteral<"dedicated-worker">; + owners: z.ZodTuple<[z.ZodLazy], null>; }, "strip", z.ZodTypeAny, { type: "dedicated-worker"; + owners: [string]; }, { type: "dedicated-worker"; + owners: [string]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -56479,10 +66250,13 @@ export declare namespace Script { realm: string; }>>, z.ZodObject<{ type: z.ZodLiteral<"shared-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "shared-worker"; + owners: string[]; }, { type: "shared-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -56494,10 +66268,13 @@ export declare namespace Script { realm: string; }>>, z.ZodObject<{ type: z.ZodLiteral<"service-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "service-worker"; + owners: string[]; }, { type: "service-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -56608,10 +66385,13 @@ export declare namespace Script { realm: string; }>>, z.ZodObject<{ type: z.ZodLiteral<"dedicated-worker">; + owners: z.ZodTuple<[z.ZodLazy], null>; }, "strip", z.ZodTypeAny, { type: "dedicated-worker"; + owners: [string]; }, { type: "dedicated-worker"; + owners: [string]; }>>>; } export declare namespace Script { @@ -56626,10 +66406,13 @@ export declare namespace Script { realm: string; }>>, z.ZodObject<{ type: z.ZodLiteral<"shared-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "shared-worker"; + owners: string[]; }, { type: "shared-worker"; + owners: string[]; }>>>; } export declare namespace Script { @@ -56644,10 +66427,13 @@ export declare namespace Script { realm: string; }>>, z.ZodObject<{ type: z.ZodLiteral<"service-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "service-worker"; + owners: string[]; }, { type: "service-worker"; + owners: string[]; }>>>; } export declare namespace Script { @@ -58141,10 +67927,13 @@ export declare namespace Script { realm: string; }>>, z.ZodObject<{ type: z.ZodLiteral<"dedicated-worker">; + owners: z.ZodTuple<[z.ZodLazy], null>; }, "strip", z.ZodTypeAny, { type: "dedicated-worker"; + owners: [string]; }, { type: "dedicated-worker"; + owners: [string]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -58156,10 +67945,13 @@ export declare namespace Script { realm: string; }>>, z.ZodObject<{ type: z.ZodLiteral<"shared-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "shared-worker"; + owners: string[]; }, { type: "shared-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -58171,10 +67963,13 @@ export declare namespace Script { realm: string; }>>, z.ZodObject<{ type: z.ZodLiteral<"service-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "service-worker"; + owners: string[]; }, { type: "service-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -58249,16 +68044,19 @@ export declare namespace Script { realm: string; } & { type: "dedicated-worker"; + owners: [string]; }) | ({ origin: string; realm: string; } & { type: "shared-worker"; + owners: string[]; }) | ({ origin: string; realm: string; } & { type: "service-worker"; + owners: string[]; }) | ({ origin: string; realm: string; @@ -58293,16 +68091,19 @@ export declare namespace Script { realm: string; } & { type: "dedicated-worker"; + owners: [string]; }) | ({ origin: string; realm: string; } & { type: "shared-worker"; + owners: string[]; }) | ({ origin: string; realm: string; } & { type: "service-worker"; + owners: string[]; }) | ({ origin: string; realm: string; @@ -58422,10 +68223,13 @@ export declare namespace Script { realm: string; }>>, z.ZodObject<{ type: z.ZodLiteral<"dedicated-worker">; + owners: z.ZodTuple<[z.ZodLazy], null>; }, "strip", z.ZodTypeAny, { type: "dedicated-worker"; + owners: [string]; }, { type: "dedicated-worker"; + owners: [string]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -58437,10 +68241,13 @@ export declare namespace Script { realm: string; }>>, z.ZodObject<{ type: z.ZodLiteral<"shared-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "shared-worker"; + owners: string[]; }, { type: "shared-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -58452,10 +68259,13 @@ export declare namespace Script { realm: string; }>>, z.ZodObject<{ type: z.ZodLiteral<"service-worker">; + owners: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { type: "service-worker"; + owners: string[]; }, { type: "service-worker"; + owners: string[]; }>>>, z.ZodLazy; origin: z.ZodString; @@ -58530,16 +68340,19 @@ export declare namespace Script { realm: string; } & { type: "dedicated-worker"; + owners: [string]; }) | ({ origin: string; realm: string; } & { type: "shared-worker"; + owners: string[]; }) | ({ origin: string; realm: string; } & { type: "service-worker"; + owners: string[]; }) | ({ origin: string; realm: string; @@ -58575,16 +68388,19 @@ export declare namespace Script { realm: string; } & { type: "dedicated-worker"; + owners: [string]; }) | ({ origin: string; realm: string; } & { type: "shared-worker"; + owners: string[]; }) | ({ origin: string; realm: string; } & { type: "service-worker"; + owners: string[]; }) | ({ origin: string; realm: string; @@ -58693,6 +68509,2108 @@ export declare namespace Script { realm: string; }>>; } +export declare const StorageCommandSchema: z.ZodLazy; + params: z.ZodLazy; + value: z.ZodOptional; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>>; + domain: z.ZodOptional; + path: z.ZodOptional; + size: z.ZodOptional>; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>>; + partition: z.ZodOptional; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>>; + }, "strip", z.ZodTypeAny, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }>>; +}, "strip", z.ZodTypeAny, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.deleteCookies"; +}, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.deleteCookies"; +}>>, z.ZodLazy; + params: z.ZodLazy; + value: z.ZodOptional; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>>; + domain: z.ZodOptional; + path: z.ZodOptional; + size: z.ZodOptional>; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>>; + partition: z.ZodOptional; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>>; + }, "strip", z.ZodTypeAny, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }>>; +}, "strip", z.ZodTypeAny, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.getCookies"; +}, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.getCookies"; +}>>, z.ZodLazy; + params: z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>; + domain: z.ZodString; + path: z.ZodOptional; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>; + partition: z.ZodOptional; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>>; + }, "strip", z.ZodTypeAny, { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }, { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }>>; +}, "strip", z.ZodTypeAny, { + params: { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.setCookie"; +}, { + params: { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.setCookie"; +}>>]>>; +export declare const StorageResultSchema: z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; +}, "strip", z.ZodTypeAny, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; +}, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; +}>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>; + domain: z.ZodString; + path: z.ZodString; + size: z.ZodLazy; + httpOnly: z.ZodBoolean; + secure: z.ZodBoolean; + sameSite: z.ZodLazy>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + }, { + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + }>, z.ZodLazy>>>, "many">; + partitionKey: z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; +}, "strip", z.ZodTypeAny, { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; +}, { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; +}>>, z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; +}, "strip", z.ZodTypeAny, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; +}, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; +}>>]>>; +export declare namespace Storage { + const PartitionKeySchema: z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; +} +export declare namespace Storage { + const GetCookiesSchema: z.ZodLazy; + params: z.ZodLazy; + value: z.ZodOptional; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>>; + domain: z.ZodOptional; + path: z.ZodOptional; + size: z.ZodOptional>; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>>; + partition: z.ZodOptional; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>>; + }, "strip", z.ZodTypeAny, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }>>; + }, "strip", z.ZodTypeAny, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.getCookies"; + }, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.getCookies"; + }>>; +} +export declare namespace Storage { + const CookieFilterSchema: z.ZodLazy; + value: z.ZodOptional; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>>; + domain: z.ZodOptional; + path: z.ZodOptional; + size: z.ZodOptional>; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>; +} +export declare namespace Storage { + const BrowsingContextPartitionDescriptorSchema: z.ZodLazy; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>; +} +export declare namespace Storage { + const StorageKeyPartitionDescriptorSchema: z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; +} +export declare namespace Storage { + const PartitionDescriptorSchema: z.ZodLazy; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>; +} +export declare namespace Storage { + const GetCookiesParametersSchema: z.ZodLazy; + value: z.ZodOptional; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>>; + domain: z.ZodOptional; + path: z.ZodOptional; + size: z.ZodOptional>; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>>; + partition: z.ZodOptional; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>>; + }, "strip", z.ZodTypeAny, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }>>; +} +export declare namespace Storage { + const GetCookiesResultSchema: z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>; + domain: z.ZodString; + path: z.ZodString; + size: z.ZodLazy; + httpOnly: z.ZodBoolean; + secure: z.ZodBoolean; + sameSite: z.ZodLazy>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + }, { + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + }>, z.ZodLazy>>>, "many">; + partitionKey: z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; + }, "strip", z.ZodTypeAny, { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }, { + cookies: ({ + path: string; + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + size: number; + secure: boolean; + name: string; + domain: string; + httpOnly: boolean; + sameSite: "strict" | "none" | "lax"; + expiry?: number | undefined; + } & Record)[]; + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }>>; +} +export declare namespace Storage { + const SetCookieSchema: z.ZodLazy; + params: z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>; + domain: z.ZodString; + path: z.ZodOptional; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>; + partition: z.ZodOptional; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>>; + }, "strip", z.ZodTypeAny, { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }, { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }>>; + }, "strip", z.ZodTypeAny, { + params: { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.setCookie"; + }, { + params: { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.setCookie"; + }>>; +} +export declare namespace Storage { + const PartialCookieSchema: z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>; + domain: z.ZodString; + path: z.ZodOptional; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>; +} +export declare namespace Storage { + const SetCookieParametersSchema: z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>; + domain: z.ZodString; + path: z.ZodOptional; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>; + partition: z.ZodOptional; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>>; + }, "strip", z.ZodTypeAny, { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }, { + cookie: { + value: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + }; + name: string; + domain: string; + path?: string | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }>>; +} +export declare namespace Storage { + const SetCookieResultSchema: z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; + }, "strip", z.ZodTypeAny, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }>>; +} +export declare namespace Storage { + const DeleteCookiesSchema: z.ZodLazy; + params: z.ZodLazy; + value: z.ZodOptional; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>>; + domain: z.ZodOptional; + path: z.ZodOptional; + size: z.ZodOptional>; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>>; + partition: z.ZodOptional; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>>; + }, "strip", z.ZodTypeAny, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }>>; + }, "strip", z.ZodTypeAny, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.deleteCookies"; + }, { + params: { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }; + method: "storage.deleteCookies"; + }>>; +} +export declare namespace Storage { + const DeleteCookiesParametersSchema: z.ZodLazy; + value: z.ZodOptional; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "string"; + value: string; + }, { + type: "string"; + value: string; + }>>, z.ZodLazy; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + type: "base64"; + value: string; + }, { + type: "base64"; + value: string; + }>>]>>>; + domain: z.ZodOptional; + path: z.ZodOptional; + size: z.ZodOptional>; + httpOnly: z.ZodOptional; + secure: z.ZodOptional; + sameSite: z.ZodOptional>>; + expiry: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }, { + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + }>, z.ZodLazy>>>>; + partition: z.ZodOptional; + context: z.ZodLazy; + }, "strip", z.ZodTypeAny, { + type: "context"; + context: string; + }, { + type: "context"; + context: string; + }>>, z.ZodLazy; + userContext: z.ZodOptional; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>]>>>; + }, "strip", z.ZodTypeAny, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }, { + filter?: ({ + name?: string | undefined; + value?: { + type: "string"; + value: string; + } | { + type: "base64"; + value: string; + } | undefined; + domain?: string | undefined; + path?: string | undefined; + size?: number | undefined; + httpOnly?: boolean | undefined; + secure?: boolean | undefined; + sameSite?: "strict" | "none" | "lax" | undefined; + expiry?: number | undefined; + } & Record) | undefined; + partition?: { + type: "context"; + context: string; + } | ({ + type: "storageKey"; + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record) | undefined; + }>>; +} +export declare namespace Storage { + const DeleteCookiesResultSchema: z.ZodLazy; + sourceOrigin: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }, { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + }>, z.ZodLazy>>>; + }, "strip", z.ZodTypeAny, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }, { + partitionKey: { + userContext?: string | undefined; + sourceOrigin?: string | undefined; + } & Record; + }>>; +} export declare const LogEventSchema: z.ZodLazy; params: z.ZodLazy>, z.ZodLazy; + params: z.ZodLazy; + element: z.ZodLazy; + handle: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + sharedId: string; + handle?: string | undefined; + }, { + sharedId: string; + handle?: string | undefined; + }>, z.ZodLazy>>>; + files: z.ZodArray; + }, "strip", z.ZodTypeAny, { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }, { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }>>; +}, "strip", z.ZodTypeAny, { + params: { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }; + method: "input.setFiles"; +}, { + params: { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }; + method: "input.setFiles"; }>>]>>; export declare namespace Input { const ElementOriginSchema: z.ZodLazy>; } +export declare namespace Input { + const SetFilesSchema: z.ZodLazy; + params: z.ZodLazy; + element: z.ZodLazy; + handle: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + sharedId: string; + handle?: string | undefined; + }, { + sharedId: string; + handle?: string | undefined; + }>, z.ZodLazy>>>; + files: z.ZodArray; + }, "strip", z.ZodTypeAny, { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }, { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }>>; + }, "strip", z.ZodTypeAny, { + params: { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }; + method: "input.setFiles"; + }, { + params: { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }; + method: "input.setFiles"; + }>>; +} +export declare namespace Input { + const SetFilesParametersSchema: z.ZodLazy; + element: z.ZodLazy; + handle: z.ZodOptional>; + }, "strip", z.ZodTypeAny, { + sharedId: string; + handle?: string | undefined; + }, { + sharedId: string; + handle?: string | undefined; + }>, z.ZodLazy>>>; + files: z.ZodArray; + }, "strip", z.ZodTypeAny, { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }, { + element: { + sharedId: string; + handle?: string | undefined; + } & Record; + context: string; + files: string[]; + }>>; +} diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/webdriver-bidi.js b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.js similarity index 89% rename from Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/webdriver-bidi.js rename to Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.js index 3978077b..4f317eb9 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/webdriver-bidi.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.js @@ -1,6 +1,6 @@ "use strict"; /** - * Copyright 2023 Google LLC. + * Copyright 2024 Google LLC. * Copyright (c) Microsoft Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -19,7 +19,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.Input = exports.InputCommandSchema = exports.Log = exports.LogEventSchema = exports.Script = exports.ScriptResultSchema = exports.ScriptCommandSchema = exports.ScriptEventSchema = exports.Network = exports.NetworkResultSchema = exports.NetworkEventSchema = exports.NetworkCommandSchema = exports.BrowsingContext = exports.BrowsingContextResultSchema = exports.BrowsingContextEventSchema = exports.BrowsingContextCommandSchema = exports.Browser = exports.BrowserCommandSchema = exports.SessionResultSchema = exports.Session = exports.SessionCommandSchema = exports.ErrorCodeSchema = exports.JsUintSchema = exports.JsIntSchema = exports.ExtensibleSchema = exports.EmptyResultSchema = exports.ErrorResponseSchema = exports.MessageSchema = exports.EmptyParamsSchema = exports.ResultDataSchema = exports.CommandDataSchema = exports.EventDataSchema = exports.CommandResponseSchema = exports.CommandSchema = exports.EventSchema = void 0; +exports.Input = exports.InputCommandSchema = exports.Log = exports.LogEventSchema = exports.Storage = exports.StorageResultSchema = exports.StorageCommandSchema = exports.Script = exports.ScriptResultSchema = exports.ScriptCommandSchema = exports.ScriptEventSchema = exports.Network = exports.NetworkResultSchema = exports.NetworkEventSchema = exports.NetworkCommandSchema = exports.BrowsingContext = exports.BrowsingContextResultSchema = exports.BrowsingContextEventSchema = exports.BrowsingContextCommandSchema = exports.Browser = exports.BrowserResultSchema = exports.BrowserCommandSchema = exports.SessionResultSchema = exports.Session = exports.SessionCommandSchema = exports.ErrorCodeSchema = exports.JsUintSchema = exports.JsIntSchema = exports.ExtensibleSchema = exports.EmptyResultSchema = exports.ErrorResponseSchema = exports.MessageSchema = exports.EmptyParamsSchema = exports.ResultDataSchema = exports.CommandDataSchema = exports.EventDataSchema = exports.CommandResponseSchema = exports.CommandSchema = exports.EventSchema = void 0; /** * THIS FILE IS AUTOGENERATED. Run `npm run bidi-types` to regenerate. * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs @@ -59,6 +59,7 @@ exports.CommandDataSchema = zod_1.default.lazy(() => zod_1.default.union([ exports.NetworkCommandSchema, exports.ScriptCommandSchema, exports.SessionCommandSchema, + exports.StorageCommandSchema, ])); exports.ResultDataSchema = zod_1.default.lazy(() => zod_1.default.union([ exports.BrowsingContextResultSchema, @@ -66,6 +67,7 @@ exports.ResultDataSchema = zod_1.default.lazy(() => zod_1.default.union([ exports.NetworkResultSchema, exports.ScriptResultSchema, exports.SessionResultSchema, + exports.StorageResultSchema, ])); exports.EmptyParamsSchema = zod_1.default.lazy(() => exports.ExtensibleSchema); exports.MessageSchema = zod_1.default.lazy(() => zod_1.default.union([exports.CommandResponseSchema, exports.ErrorResponseSchema, exports.EventSchema])); @@ -95,9 +97,14 @@ exports.ErrorCodeSchema = zod_1.default.lazy(() => zod_1.default.enum([ 'no such node', 'no such request', 'no such script', + 'no such storage partition', + 'no such user context', 'session not created', 'unable to capture screen', 'unable to close browser', + 'unable to set cookie', + 'unable to set file input', + 'underspecified storage partition', 'unknown command', 'unknown error', 'unsupported operation', @@ -228,7 +235,7 @@ exports.SessionResultSchema = zod_1.default.lazy(() => zod_1.default.union([Sess platformName: zod_1.default.string(), setWindowRect: zod_1.default.boolean(), proxy: Session.ProxyConfigurationSchema.optional(), - webSocketUrl: zod_1.default.union([zod_1.default.string(), zod_1.default.literal(true)]).optional(), + webSocketUrl: zod_1.default.string().optional(), }) .and(exports.ExtensibleSchema), })); @@ -251,14 +258,59 @@ exports.SessionResultSchema = zod_1.default.lazy(() => zod_1.default.union([Sess params: Session.SubscriptionRequestSchema, })); })(Session || (exports.Session = Session = {})); -exports.BrowserCommandSchema = zod_1.default.lazy(() => Browser.CloseSchema); +exports.BrowserCommandSchema = zod_1.default.lazy(() => zod_1.default.union([ + Browser.CloseSchema, + Browser.CreateUserContextSchema, + Browser.GetUserContextsSchema, + Browser.RemoveUserContextSchema, +])); +exports.BrowserResultSchema = zod_1.default.lazy(() => zod_1.default.union([ + Browser.CreateUserContextResultSchema, + Browser.GetUserContextsResultSchema, +])); var Browser; +(function (Browser) { + Browser.UserContextSchema = zod_1.default.lazy(() => zod_1.default.string()); +})(Browser || (exports.Browser = Browser = {})); +(function (Browser) { + Browser.UserContextInfoSchema = zod_1.default.lazy(() => zod_1.default.object({ + userContext: Browser.UserContextSchema, + })); +})(Browser || (exports.Browser = Browser = {})); (function (Browser) { Browser.CloseSchema = zod_1.default.lazy(() => zod_1.default.object({ method: zod_1.default.literal('browser.close'), params: exports.EmptyParamsSchema, })); })(Browser || (exports.Browser = Browser = {})); +(function (Browser) { + Browser.CreateUserContextSchema = zod_1.default.lazy(() => zod_1.default.object({ + method: zod_1.default.literal('browser.createUserContext'), + params: exports.EmptyParamsSchema, + })); +})(Browser || (exports.Browser = Browser = {})); +(function (Browser) { + Browser.CreateUserContextResultSchema = zod_1.default.lazy(() => Browser.UserContextInfoSchema); +})(Browser || (exports.Browser = Browser = {})); +(function (Browser) { + Browser.GetUserContextsSchema = zod_1.default.lazy(() => zod_1.default.object({ + method: zod_1.default.literal('browser.getUserContexts'), + params: exports.EmptyParamsSchema, + })); +})(Browser || (exports.Browser = Browser = {})); +(function (Browser) { + Browser.GetUserContextsResultSchema = zod_1.default.lazy(() => zod_1.default.object({ + userContexts: zod_1.default.array(Browser.UserContextInfoSchema).min(1), + })); +})(Browser || (exports.Browser = Browser = {})); +(function (Browser) { + Browser.RemoveUserContextSchema = zod_1.default.lazy(() => zod_1.default.object({ + method: zod_1.default.literal('browser.removeUserContext'), + params: zod_1.default.object({ + userContext: Browser.UserContextSchema, + }), + })); +})(Browser || (exports.Browser = Browser = {})); exports.BrowsingContextCommandSchema = zod_1.default.lazy(() => zod_1.default.union([ BrowsingContext.ActivateSchema, BrowsingContext.CaptureScreenshotSchema, @@ -304,9 +356,10 @@ var BrowsingContext; })(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); (function (BrowsingContext) { BrowsingContext.InfoSchema = zod_1.default.lazy(() => zod_1.default.object({ + children: zod_1.default.union([BrowsingContext.InfoListSchema, zod_1.default.null()]), context: BrowsingContext.BrowsingContextSchema, url: zod_1.default.string(), - children: zod_1.default.union([BrowsingContext.InfoListSchema, zod_1.default.null()]), + userContext: Browser.UserContextSchema, parent: zod_1.default .union([BrowsingContext.BrowsingContextSchema, zod_1.default.null()]) .optional(), @@ -437,6 +490,7 @@ var BrowsingContext; type: BrowsingContext.CreateTypeSchema, referenceContext: BrowsingContext.BrowsingContextSchema.optional(), background: zod_1.default.boolean().default(false).optional(), + userContext: zod_1.default.union([Browser.UserContextSchema, zod_1.default.null()]).optional(), })); })(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); (function (BrowsingContext) { @@ -482,7 +536,7 @@ var BrowsingContext; ownership: Script.ResultOwnershipSchema.optional(), sandbox: zod_1.default.string().optional(), serializationOptions: Script.SerializationOptionsSchema.optional(), - startNodes: zod_1.default.array(Script.SharedReferenceSchema).optional(), + startNodes: zod_1.default.array(Script.SharedReferenceSchema).min(1).optional(), })); })(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {})); (function (BrowsingContext) { @@ -722,7 +776,7 @@ var Network; redirectCount: exports.JsUintSchema, request: Network.RequestDataSchema, timestamp: exports.JsUintSchema, - intercepts: zod_1.default.array(Network.InterceptSchema).optional(), + intercepts: zod_1.default.array(Network.InterceptSchema).min(1).optional(), })); })(Network || (exports.Network = Network = {})); (function (Network) { @@ -741,7 +795,11 @@ var Network; })); })(Network || (exports.Network = Network = {})); (function (Network) { - Network.CookieSchema = zod_1.default.lazy(() => zod_1.default.object({ + Network.SameSiteSchema = zod_1.default.lazy(() => zod_1.default.enum(['strict', 'lax', 'none'])); +})(Network || (exports.Network = Network = {})); +(function (Network) { + Network.CookieSchema = zod_1.default.lazy(() => zod_1.default + .object({ name: zod_1.default.string(), value: Network.BytesValueSchema, domain: zod_1.default.string(), @@ -749,9 +807,10 @@ var Network; size: exports.JsUintSchema, httpOnly: zod_1.default.boolean(), secure: zod_1.default.boolean(), - sameSite: zod_1.default.enum(['strict', 'lax', 'none']), + sameSite: Network.SameSiteSchema, expiry: exports.JsUintSchema.optional(), - })); + }) + .and(exports.ExtensibleSchema)); })(Network || (exports.Network = Network = {})); (function (Network) { Network.CookieHeaderSchema = zod_1.default.lazy(() => zod_1.default.object({ @@ -839,7 +898,7 @@ var Network; expiry: zod_1.default.string().optional(), maxAge: exports.JsIntSchema.optional(), path: zod_1.default.string().optional(), - sameSite: zod_1.default.enum(['strict', 'lax', 'none']).optional(), + sameSite: Network.SameSiteSchema.optional(), secure: zod_1.default.boolean().optional(), })); })(Network || (exports.Network = Network = {})); @@ -864,7 +923,7 @@ var Network; })(Network || (exports.Network = Network = {})); (function (Network) { Network.AddInterceptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ - phases: zod_1.default.array(Network.InterceptPhaseSchema), + phases: zod_1.default.array(Network.InterceptPhaseSchema).min(1), urlPatterns: zod_1.default.array(Network.UrlPatternSchema).optional(), })); })(Network || (exports.Network = Network = {})); @@ -1249,16 +1308,19 @@ var Script; (function (Script) { Script.DedicatedWorkerRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({ type: zod_1.default.literal('dedicated-worker'), + owners: zod_1.default.tuple([Script.RealmSchema]), }))); })(Script || (exports.Script = Script = {})); (function (Script) { Script.SharedWorkerRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({ type: zod_1.default.literal('shared-worker'), + owners: zod_1.default.array(Script.RealmSchema).min(1), }))); })(Script || (exports.Script = Script = {})); (function (Script) { Script.ServiceWorkerRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({ type: zod_1.default.literal('service-worker'), + owners: zod_1.default.array(Script.RealmSchema), }))); })(Script || (exports.Script = Script = {})); (function (Script) { @@ -1585,7 +1647,10 @@ var Script; Script.AddPreloadScriptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ functionDeclaration: zod_1.default.string(), arguments: zod_1.default.array(Script.ChannelValueSchema).optional(), - contexts: zod_1.default.array(BrowsingContext.BrowsingContextSchema).optional(), + contexts: zod_1.default + .array(BrowsingContext.BrowsingContextSchema) + .min(1) + .optional(), sandbox: zod_1.default.string().optional(), })); })(Script || (exports.Script = Script = {})); @@ -1698,6 +1763,127 @@ var Script; realm: Script.RealmSchema, })); })(Script || (exports.Script = Script = {})); +exports.StorageCommandSchema = zod_1.default.lazy(() => zod_1.default.union([ + Storage.DeleteCookiesSchema, + Storage.GetCookiesSchema, + Storage.SetCookieSchema, +])); +exports.StorageResultSchema = zod_1.default.lazy(() => zod_1.default.union([ + Storage.DeleteCookiesResultSchema, + Storage.GetCookiesResultSchema, + Storage.SetCookieResultSchema, +])); +var Storage; +(function (Storage) { + Storage.PartitionKeySchema = zod_1.default.lazy(() => zod_1.default + .object({ + userContext: zod_1.default.string().optional(), + sourceOrigin: zod_1.default.string().optional(), + }) + .and(exports.ExtensibleSchema)); +})(Storage || (exports.Storage = Storage = {})); +(function (Storage) { + Storage.GetCookiesSchema = zod_1.default.lazy(() => zod_1.default.object({ + method: zod_1.default.literal('storage.getCookies'), + params: Storage.GetCookiesParametersSchema, + })); +})(Storage || (exports.Storage = Storage = {})); +(function (Storage) { + Storage.CookieFilterSchema = zod_1.default.lazy(() => zod_1.default + .object({ + name: zod_1.default.string().optional(), + value: Network.BytesValueSchema.optional(), + domain: zod_1.default.string().optional(), + path: zod_1.default.string().optional(), + size: exports.JsUintSchema.optional(), + httpOnly: zod_1.default.boolean().optional(), + secure: zod_1.default.boolean().optional(), + sameSite: Network.SameSiteSchema.optional(), + expiry: exports.JsUintSchema.optional(), + }) + .and(exports.ExtensibleSchema)); +})(Storage || (exports.Storage = Storage = {})); +(function (Storage) { + Storage.BrowsingContextPartitionDescriptorSchema = zod_1.default.lazy(() => zod_1.default.object({ + type: zod_1.default.literal('context'), + context: BrowsingContext.BrowsingContextSchema, + })); +})(Storage || (exports.Storage = Storage = {})); +(function (Storage) { + Storage.StorageKeyPartitionDescriptorSchema = zod_1.default.lazy(() => zod_1.default + .object({ + type: zod_1.default.literal('storageKey'), + userContext: zod_1.default.string().optional(), + sourceOrigin: zod_1.default.string().optional(), + }) + .and(exports.ExtensibleSchema)); +})(Storage || (exports.Storage = Storage = {})); +(function (Storage) { + Storage.PartitionDescriptorSchema = zod_1.default.lazy(() => zod_1.default.union([ + Storage.BrowsingContextPartitionDescriptorSchema, + Storage.StorageKeyPartitionDescriptorSchema, + ])); +})(Storage || (exports.Storage = Storage = {})); +(function (Storage) { + Storage.GetCookiesParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ + filter: Storage.CookieFilterSchema.optional(), + partition: Storage.PartitionDescriptorSchema.optional(), + })); +})(Storage || (exports.Storage = Storage = {})); +(function (Storage) { + Storage.GetCookiesResultSchema = zod_1.default.lazy(() => zod_1.default.object({ + cookies: zod_1.default.array(Network.CookieSchema), + partitionKey: Storage.PartitionKeySchema, + })); +})(Storage || (exports.Storage = Storage = {})); +(function (Storage) { + Storage.SetCookieSchema = zod_1.default.lazy(() => zod_1.default.object({ + method: zod_1.default.literal('storage.setCookie'), + params: Storage.SetCookieParametersSchema, + })); +})(Storage || (exports.Storage = Storage = {})); +(function (Storage) { + Storage.PartialCookieSchema = zod_1.default.lazy(() => zod_1.default + .object({ + name: zod_1.default.string(), + value: Network.BytesValueSchema, + domain: zod_1.default.string(), + path: zod_1.default.string().optional(), + httpOnly: zod_1.default.boolean().optional(), + secure: zod_1.default.boolean().optional(), + sameSite: Network.SameSiteSchema.optional(), + expiry: exports.JsUintSchema.optional(), + }) + .and(exports.ExtensibleSchema)); +})(Storage || (exports.Storage = Storage = {})); +(function (Storage) { + Storage.SetCookieParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ + cookie: Storage.PartialCookieSchema, + partition: Storage.PartitionDescriptorSchema.optional(), + })); +})(Storage || (exports.Storage = Storage = {})); +(function (Storage) { + Storage.SetCookieResultSchema = zod_1.default.lazy(() => zod_1.default.object({ + partitionKey: Storage.PartitionKeySchema, + })); +})(Storage || (exports.Storage = Storage = {})); +(function (Storage) { + Storage.DeleteCookiesSchema = zod_1.default.lazy(() => zod_1.default.object({ + method: zod_1.default.literal('storage.deleteCookies'), + params: Storage.DeleteCookiesParametersSchema, + })); +})(Storage || (exports.Storage = Storage = {})); +(function (Storage) { + Storage.DeleteCookiesParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ + filter: Storage.CookieFilterSchema.optional(), + partition: Storage.PartitionDescriptorSchema.optional(), + })); +})(Storage || (exports.Storage = Storage = {})); +(function (Storage) { + Storage.DeleteCookiesResultSchema = zod_1.default.lazy(() => zod_1.default.object({ + partitionKey: Storage.PartitionKeySchema, + })); +})(Storage || (exports.Storage = Storage = {})); exports.LogEventSchema = zod_1.default.lazy(() => Log.EntryAddedSchema); var Log; (function (Log) { @@ -1742,7 +1928,11 @@ var Log; params: Log.EntrySchema, })); })(Log || (exports.Log = Log = {})); -exports.InputCommandSchema = zod_1.default.lazy(() => zod_1.default.union([Input.PerformActionsSchema, Input.ReleaseActionsSchema])); +exports.InputCommandSchema = zod_1.default.lazy(() => zod_1.default.union([ + Input.PerformActionsSchema, + Input.ReleaseActionsSchema, + Input.SetFilesSchema, +])); var Input; (function (Input) { Input.ElementOriginSchema = zod_1.default.lazy(() => zod_1.default.object({ @@ -1930,4 +2120,17 @@ var Input; context: BrowsingContext.BrowsingContextSchema, })); })(Input || (exports.Input = Input = {})); +(function (Input) { + Input.SetFilesSchema = zod_1.default.lazy(() => zod_1.default.object({ + method: zod_1.default.literal('input.setFiles'), + params: Input.SetFilesParametersSchema, + })); +})(Input || (exports.Input = Input = {})); +(function (Input) { + Input.SetFilesParametersSchema = zod_1.default.lazy(() => zod_1.default.object({ + context: BrowsingContext.BrowsingContextSchema, + element: Script.SharedReferenceSchema, + files: zod_1.default.array(zod_1.default.string()), + })); +})(Input || (exports.Input = Input = {})); //# sourceMappingURL=webdriver-bidi.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.js.map new file mode 100644 index 00000000..03518461 --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/generated/webdriver-bidi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webdriver-bidi.js","sourceRoot":"","sources":["../../../../src/protocol-parser/generated/webdriver-bidi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;AAEH;;;GAGG;AAEH,6DAA6D;AAC7D,0CAA0C;AAE1C,8CAAoB;AAEP,QAAA,WAAW,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACrC,aAAC;KACE,MAAM,CAAC;IACN,IAAI,EAAE,aAAC,CAAC,OAAO,CAAC,OAAO,CAAC;CACzB,CAAC;KACD,GAAG,CAAC,uB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AC,IAAI,CAAC,GAAG,EAAE,CACxD,aAAC,CAAC,MAAM,CAAC;QACP,OAAO,EAAE,eAAe,CAAC,qBAAqB;KAC/C,CAAC,CACH,CAAC;AACJ,CAAC,EANgB,KAAK,qBAAL,KAAK,QAMrB;AACD,WAAiB,KAAK;IACP,oBAAc,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACxC,aAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;QACnC,MAAM,EAAE,KAAK,CAAC,wBAAwB;KACvC,CAAC,CACH,CAAC;AACJ,CAAC,EAPgB,KAAK,qBAAL,KAAK,QAOrB;AACD,WAAiB,KAAK;IACP,8BAAwB,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAClD,aAAC,CAAC,MAAM,CAAC;QACP,OAAO,EAAE,eAAe,CAAC,qBAAqB;QAC9C,OAAO,EAAE,MAAM,CAAC,qBAAqB;QACrC,KAAK,EAAE,aAAC,CAAC,KAAK,CAAC,aAAC,CAAC,MAAM,EAAE,CAAC;KAC3B,CAAC,CACH,CAAC;AACJ,CAAC,EARgB,KAAK,qBAAL,KAAK,QAQrB"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.d.ts index 1cbb6d4c..9879f982 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.d.ts @@ -69,43 +69,7 @@ export declare namespace Network { method?: string | undefined; url?: string | undefined; }; - function parseContinueResponseParameters(params: unknown): { - request: string; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - path?: string | undefined; - sameSite?: "strict" | "none" | "lax" | undefined; - secure?: boolean | undefined; - }[] | undefined; - credentials?: { - type: "password"; - password: string; - username: string; - } | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; + function parseContinueResponseParameters(params: unknown): Protocol.Network.ContinueResponseParameters; function parseContinueWithAuthParameters(params: unknown): { request: string; } & ({ @@ -121,45 +85,7 @@ export declare namespace Network { function parseFailRequestParameters(params: unknown): { request: string; }; - function parseProvideResponseParameters(params: unknown): { - request: string; - body?: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - } | undefined; - cookies?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - domain?: string | undefined; - httpOnly?: boolean | undefined; - expiry?: string | undefined; - maxAge?: number | undefined; - path?: string | undefined; - sameSite?: "strict" | "none" | "lax" | undefined; - secure?: boolean | undefined; - }[] | undefined; - headers?: { - value: { - type: "string"; - value: string; - } | { - type: "base64"; - value: string; - }; - name: string; - }[] | undefined; - reasonPhrase?: string | undefined; - statusCode?: number | undefined; - }; + function parseProvideResponseParameters(params: unknown): Protocol.Network.ProvideResponseParameters; function parseRemoveInterceptParameters(params: unknown): { intercept: string; }; @@ -198,8 +124,17 @@ export declare namespace Session { export declare namespace Input { function parsePerformActionsParams(params: unknown): Protocol.Input.PerformActionsParameters; function parseReleaseActionsParams(params: unknown): Protocol.Input.ReleaseActionsParameters; + function parseSetFilesParams(params: unknown): Protocol.Input.SetFilesParameters; +} +export declare namespace Storage { + function parseGetCookiesParams(params: unknown): Protocol.Storage.GetCookiesParameters; + function parseSetCookieParams(params: unknown): Protocol.Storage.SetCookieParameters; + function parseDeleteCookiesParams(params: unknown): Protocol.Storage.DeleteCookiesParameters; } export declare namespace Cdp { function parseSendCommandRequest(params: unknown): Protocol.Cdp.SendCommandParameters; function parseGetSessionRequest(params: unknown): Protocol.Cdp.GetSessionParameters; } +export declare namespace Permissions { + function parseSetPermissionsParams(params: unknown): Protocol.Permissions.SetPermissionParameters; +} diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js index c0adcc53..7c3b2bb5 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js @@ -39,14 +39,15 @@ var __importStar = (this && this.__importStar) || function (mod) { return result; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.Cdp = exports.Input = exports.Session = exports.BrowsingContext = exports.Script = exports.Network = exports.parseObject = void 0; +exports.Permissions = exports.Cdp = exports.Storage = exports.Input = exports.Session = exports.BrowsingContext = exports.Script = exports.Network = exports.parseObject = void 0; /** * @fileoverview Provides parsing and validator for WebDriver BiDi protocol. * Parser types should match the `../protocol` types. */ const zod_1 = require("zod"); const protocol_js_1 = require("../protocol/protocol.js"); -const WebDriverBidi = __importStar(require("./webdriver-bidi.js")); +const WebDriverBidiPermissions = __importStar(require("./generated/webdriver-bidi-permissions.js")); +const WebDriverBidi = __importStar(require("./generated/webdriver-bidi.js")); function parseObject(obj, schema) { const parseResult = schema.safeParse(obj); if (parseResult.success) { @@ -71,6 +72,11 @@ var Network; } Network.parseContinueRequestParameters = parseContinueRequestParameters; function parseContinueResponseParameters(params) { + // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19. + // The generated schema `SameSiteSchema` in `src/protocol-parser/webdriver-bidi.ts` is + // of type `"none" | "strict" | "lax"` which is not assignable to generated enum + // `SameSite` in `src/protocol/webdriver-bidi.ts`. + // TODO: remove cast after https://github.com/google/cddlconv/issues/19 is fixed. return parseObject(params, WebDriverBidi.Network.ContinueResponseParametersSchema); } Network.parseContinueResponseParameters = parseContinueResponseParameters; @@ -83,6 +89,11 @@ var Network; } Network.parseFailRequestParameters = parseFailRequestParameters; function parseProvideResponseParameters(params) { + // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19. + // The generated schema `SameSiteSchema` in `src/protocol-parser/webdriver-bidi.ts` is + // of type `"none" | "strict" | "lax"` which is not assignable to generated enum + // `SameSite` in `src/protocol/webdriver-bidi.ts`. + // TODO: remove cast after https://github.com/google/cddlconv/issues/19 is fixed. return parseObject(params, WebDriverBidi.Network.ProvideResponseParametersSchema); } Network.parseProvideResponseParameters = parseProvideResponseParameters; @@ -185,7 +196,41 @@ var Input; return parseObject(params, WebDriverBidi.Input.ReleaseActionsParametersSchema); } Input.parseReleaseActionsParams = parseReleaseActionsParams; + function parseSetFilesParams(params) { + return parseObject(params, WebDriverBidi.Input.SetFilesParametersSchema); + } + Input.parseSetFilesParams = parseSetFilesParams; })(Input || (exports.Input = Input = {})); +var Storage; +(function (Storage) { + function parseGetCookiesParams(params) { + // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19. + // The generated schema `SameSiteSchema` in `src/protocol-parser/webdriver-bidi.ts` is + // of type `"none" | "strict" | "lax"` which is not assignable to generated enum + // `SameSite` in `src/protocol/webdriver-bidi.ts`. + // TODO: remove cast after https://github.com/google/cddlconv/issues/19 is fixed. + return parseObject(params, WebDriverBidi.Storage.GetCookiesParametersSchema); + } + Storage.parseGetCookiesParams = parseGetCookiesParams; + function parseSetCookieParams(params) { + // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19. + // The generated schema `SameSiteSchema` in `src/protocol-parser/webdriver-bidi.ts` is + // of type `"none" | "strict" | "lax"` which is not assignable to generated enum + // `SameSite` in `src/protocol/webdriver-bidi.ts`. + // TODO: remove cast after https://github.com/google/cddlconv/issues/19 is fixed. + return parseObject(params, WebDriverBidi.Storage.SetCookieParametersSchema); + } + Storage.parseSetCookieParams = parseSetCookieParams; + function parseDeleteCookiesParams(params) { + // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19. + // The generated schema `SameSiteSchema` in `src/protocol-parser/webdriver-bidi.ts` is + // of type `"none" | "strict" | "lax"` which is not assignable to generated enum + // `SameSite` in `src/protocol/webdriver-bidi.ts`. + // TODO: remove cast after https://github.com/google/cddlconv/issues/19 is fixed. + return parseObject(params, WebDriverBidi.Storage.DeleteCookiesParametersSchema); + } + Storage.parseDeleteCookiesParams = parseDeleteCookiesParams; +})(Storage || (exports.Storage = Storage = {})); var Cdp; (function (Cdp) { const SendCommandRequestSchema = zod_1.z.object({ @@ -208,4 +253,11 @@ var Cdp; } Cdp.parseGetSessionRequest = parseGetSessionRequest; })(Cdp || (exports.Cdp = Cdp = {})); +var Permissions; +(function (Permissions) { + function parseSetPermissionsParams(params) { + return parseObject(params, WebDriverBidiPermissions.Permissions.SetPermissionParametersSchema); + } + Permissions.parseSetPermissionsParams = parseSetPermissionsParams; +})(Permissions || (exports.Permissions = Permissions = {})); //# sourceMappingURL=protocol-parser.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js.map index f65168de..b9cf5f44 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/protocol-parser.js.map @@ -1 +1 @@ -{"version":3,"file":"protocol-parser.js","sourceRoot":"","sources":["../../../src/protocol-parser/protocol-parser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH;;;GAGG;AACH,6BAAoC;AAGpC,yDAAiE;AAEjE,mEAAqD;AAErD,SAAgB,WAAW,CACzB,GAAY,EACZ,MAAS;IAET,MAAM,WAAW,GAAG,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC1C,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC;QACxB,OAAO,WAAW,CAAC,IAAI,CAAC;IAC1B,CAAC;IACD,MAAM,YAAY,GAAG,WAAW,CAAC,KA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,CAAC;IACJ,CAAC;IAPe,+BAAyB,4BAOxC,CAAA;AACH,CAAC,EAhBgB,KAAK,qBAAL,KAAK,QAgBrB;AAED,IAAiB,GAAG,CA4BnB;AA5BD,WAAiB,GAAG;IAClB,MAAM,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;QACxC,+DAA+D;QAC/D,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;QAClB,kDAAkD;QAClD,gDAAgD;QAChD,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;QAC7C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC,CAAC;IAEH,MAAM,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;QACvC,OAAO,EAAE,aAAa,CAAC,eAAe,CAAC,qBAAqB;KAC7D,CAAC,CAAC;IAEH,SAAgB,uBAAuB,CACrC,MAAe;QAEf,OAAO,WAAW,CAChB,MAAM,EACN,wBAAwB,CACa,CAAC;IAC1C,CAAC;IAPe,2BAAuB,0BAOtC,CAAA;IAED,SAAgB,sBAAsB,CACpC,MAAe;QAEf,OAAO,WAAW,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;IACtD,CAAC;IAJe,0BAAsB,yBAIrC,CAAA;AACH,CAAC,EA5BgB,GAAG,mBAAH,GAAG,QA4BnB"} \ No newline at end of file +{"version":3,"file":"protocol-parser.js","sourceRoot":"","sources":["../../../src/protocol-parser/protocol-parser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH;;;GAGG;AACH,6BAAoC;AAGpC,yDAAiE;AAEjE,oGAAsF;AACtF,6EAA+D;AAE/D,SAAgB,WAAW,CACzB,GAAY,EACZ,MAAS;IAET,MAAM,WAAW,GAAG,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC1C,IAAI,WAAW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;AACH,CAAC,EApCgB,OAAO,uBAAP,OAAO,QAoCvB;AAED,IAAiB,GAAG,CA4BnB;AA5BD,WAAiB,GAAG;IAClB,MAAM,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;QACxC,+DAA+D;QAC/D,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;QAClB,kDAAkD;QAClD,gDAAgD;QAChD,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;QAC7C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC,CAAC;IAEH,MAAM,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;QACvC,OAAO,EAAE,aAAa,CAAC,eAAe,CAAC,qBAAqB;KAC7D,CAAC,CAAC;IAEH,SAAgB,uBAAuB,CACrC,MAAe;QAEf,OAAO,WAAW,CAChB,MAAM,EACN,wBAAwB,CACa,CAAC;IAC1C,CAAC;IAPe,2BAAuB,0BAOtC,CAAA;IAED,SAAgB,sBAAsB,CACpC,MAAe;QAEf,OAAO,WAAW,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;IACtD,CAAC;IAJe,0BAAsB,yBAIrC,CAAA;AACH,CAAC,EA5BgB,GAAG,mBAAH,GAAG,QA4BnB;AAED,IAAiB,WAAW,CAS3B;AATD,WAAiB,WAAW;IAC1B,SAAgB,yBAAyB,CACvC,MAAe;QAEf,OAAO,WAAW,CAChB,MAAM,EACN,wBAAwB,CAAC,WAAW,CAAC,6BAA6B,CACnB,CAAC;IACpD,CAAC;IAPe,qCAAyB,4BAOxC,CAAA;AACH,CAAC,EATgB,WAAW,2BAAX,WAAW,QAS3B"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/webdriver-bidi.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/webdriver-bidi.js.map deleted file mode 100644 index 75b41de6..00000000 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol-parser/webdriver-bidi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webdriver-bidi.js","sourceRoot":"","sources":["../../../src/protocol-parser/webdriver-bidi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;AAEH;;;GAGG;AACH,6DAA6D;AAC7D,0CAA0C;AAE1C,8CAAoB;AAEP,QAAA,WAAW,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACrC,aAAC;KACE,MAAM,CAAC;IACN,IAAI,EAAE,aAAC,CAAC,OAAO,CAAC,OAAO,CAAC;CACzB,CAAC;KACD,GAAG,CAAC,uBAAe,CAAC;KACpB,GAAG,CAAC,wBAAgB,CAAC,CACzB,CAAC;AACW,QAAA,aAAa,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACvC,aAAC;KACE,MAAM,CAAC;IACN,EAAE,EAAE,oBAAY;CACjB,CAAC;KACD,GAAG,CAAC,yBAAiB,CAAC;KACtB,GAAG,CAAC,wBAAgB,CAAC,CACzB,CAAC;AACW,QAAA,qBAAqB,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAC/C,aAAC;KACE,MAAM,CAAC;IACN,IAAI,EAAE,aAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC1B,EAAE,EAAE,oBAAY;IAChB,MAAM,EAAE,wBAAgB;CACzB,CAAC;KACD,GAAG,CAAC,wBAAgB,CAAC,CACzB,CAAC;AACW,QAAA,eAAe,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACzC,aAAC,CAAC,KAAK,CAAC;IACN,kCAA0B;IAC1B,sBAAc;IACd,0BAAkB;IAClB,yBAAiB;CAClB,CAAC,CACH,CAAC;AACW,QAAA,iBAAiB,GAAG,aAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAC3C,aAAC,CAAC,KAAK,CAAC;IACN,4BAAoB;IACpB,oCAA4B;IA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CAAC,qBAAqB;KAC/C,CAAC,CACH,CAAC;AACJ,CAAC,EANgB,KAAK,qBAAL,KAAK,QAMrB"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.d.ts index 20c09893..77ccd3e0 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.d.ts @@ -14,8 +14,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import type { ErrorResponse } from './webdriver-bidi.js'; -import { ErrorCode } from './webdriver-bidi.js'; +import type { ErrorResponse } from './generated/webdriver-bidi.js'; +import { ErrorCode } from './generated/webdriver-bidi.js'; export declare class Exception { error: ErrorCode; message: string; @@ -59,6 +59,9 @@ export declare class NoSuchRequestException extends Exception { export declare class NoSuchScriptException extends Exception { constructor(message: string, stacktrace?: string); } +export declare class NoSuchUserContextException extends Exception { + constructor(message: string, stacktrace?: string); +} export declare class SessionNotCreatedException extends Exception { constructor(message: string, stacktrace?: string); } @@ -77,3 +80,15 @@ export declare class UnableToCloseBrowserException extends Exception { export declare class UnsupportedOperationException extends Exception { constructor(message: string, stacktrace?: string); } +export declare class NoSuchStoragePartitionException extends Exception { + constructor(message: string, stacktrace?: string); +} +export declare class UnableToSetCookieException extends Exception { + constructor(message: string, stacktrace?: string); +} +export declare class UnableToSetFileInputException extends Exception { + constructor(message: string, stacktrace?: string); +} +export declare class UnderspecifiedStoragePartitionException extends Exception { + constructor(message: string, stacktrace?: string); +} diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js index f5847249..8d0ee79c 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.UnsupportedOperationException = exports.UnableToCloseBrowserException = exports.UnableToCaptureScreenException = exports.UnknownErrorException = exports.UnknownCommandException = exports.SessionNotCreatedException = exports.NoSuchScriptException = exports.NoSuchRequestException = exports.NoSuchNodeException = exports.NoSuchInterceptException = exports.NoSuchHistoryEntryException = exports.NoSuchHandleException = exports.NoSuchFrameException = exports.NoSuchElementException = exports.NoSuchAlertException = exports.MoveTargetOutOfBoundsException = exports.InvalidSessionIdException = exports.InvalidArgumentException = exports.Exception = void 0; +exports.UnderspecifiedStoragePartitionException = exports.UnableToSetFileInputException = exports.UnableToSetCookieException = exports.NoSuchStoragePartitionException = exports.UnsupportedOperationException = exports.UnableToCloseBrowserException = exports.UnableToCaptureScreenException = exports.UnknownErrorException = exports.UnknownCommandException = exports.SessionNotCreatedException = exports.NoSuchUserContextException = exports.NoSuchScriptException = exports.NoSuchRequestException = exports.NoSuchNodeException = exports.NoSuchInterceptException = exports.NoSuchHistoryEntryException = exports.NoSuchHandleException = exports.NoSuchFrameException = exports.NoSuchElementException = exports.NoSuchAlertException = exports.MoveTargetOutOfBoundsException = exports.InvalidSessionIdException = exports.InvalidArgumentException = exports.Exception = void 0; class Exception { error; message; @@ -93,6 +93,12 @@ class NoSuchScriptException extends Exception { } } exports.NoSuchScriptException = NoSuchScriptException; +class NoSuchUserContextException extends Exception { + constructor(message, stacktrace) { + super("no such user context" /* ErrorCode.NoSuchUserContext */, message, stacktrace); + } +} +exports.NoSuchUserContextException = NoSuchUserContextException; class SessionNotCreatedException extends Exception { constructor(message, stacktrace) { super("session not created" /* ErrorCode.SessionNotCreated */, message, stacktrace); @@ -129,4 +135,28 @@ class UnsupportedOperationException extends Exception { } } exports.UnsupportedOperationException = UnsupportedOperationException; +class NoSuchStoragePartitionException extends Exception { + constructor(message, stacktrace) { + super("no such storage partition" /* ErrorCode.NoSuchStoragePartition */, message, stacktrace); + } +} +exports.NoSuchStoragePartitionException = NoSuchStoragePartitionException; +class UnableToSetCookieException extends Exception { + constructor(message, stacktrace) { + super("unable to set cookie" /* ErrorCode.UnableToSetCookie */, message, stacktrace); + } +} +exports.UnableToSetCookieException = UnableToSetCookieException; +class UnableToSetFileInputException extends Exception { + constructor(message, stacktrace) { + super("unable to set file input" /* ErrorCode.UnableToSetFileInput */, message, stacktrace); + } +} +exports.UnableToSetFileInputException = UnableToSetFileInputException; +class UnderspecifiedStoragePartitionException extends Exception { + constructor(message, stacktrace) { + super("underspecified storage partition" /* ErrorCode.UnderspecifiedStoragePartition */, message, stacktrace); + } +} +exports.UnderspecifiedStoragePartitionException = UnderspecifiedStoragePartitionException; //# sourceMappingURL=ErrorResponse.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js.map index a01cd246..29168d3f 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js.map @@ -1 +1 @@ -{"version":3,"file":"ErrorResponse.js","sourceRoot":"","sources":["../../../src/protocol/ErrorResponse.ts"],"names":[],"mappings":";;;AAmBA,MAAa,SAAS;IAEX;IACA;IACA;IAHT,YACS,KAAgB,EAChB,OAAe,EACf,UAAmB;QAFnB,UAAK,GAAL,KAAK,CAAW;QAChB,YAAO,GAAP,OAAO,CAAQ;QACf,eAAU,GAAV,UAAU,CAAS;IACzB,CAAC;IAEJ,eAAe,CAAC,SAAiB;QAC/B,OAAO;YACL,IAAI,EAAE,OAAO;YACb,EAAE,EAAE,SAAS;YACb,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC;IACJ,CAAC;CACF;AAhBD,8BAgBC;AAED,MAA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U,CAAC,CAAC;IAC7D,CAAC;CACF;AAJD,sEAIC;AAED,MAAa,6BAA8B,SAAQ,SAAS;IAC1D,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,+DAAiC,OAAO,EAAE,UAAU,CAAC,CAAC;IAC7D,CAAC;CACF;AAJD,sEAIC"} \ No newline at end of file +{"version":3,"file":"ErrorResponse.js","sourceRoot":"","sources":["../../../src/protocol/ErrorResponse.ts"],"names":[],"mappings":";;;AAmBA,MAAa,SAAS;IAEX;IACA;IACA;IAHT,YACS,KAAgB,EAChB,OAAe,EACf,UAAmB;QAFnB,UAAK,GAAL,KAAK,CAAW;QAChB,YAAO,GAAP,OAAO,CAAQ;QACf,eAAU,GAAV,UAAU,CAAS;IACzB,CAAC;IAEJ,eAAe,CAAC,SAAiB;QAC/B,OAAO;YACL,IAAI,EAAE,OAAO;YACb,EAAE,EAAE,SAAS;YACb,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC;IACJ,CAAC;CACF;AAhBD,8BAgBC;AAED,MAAa,wBAAyB,SAAQ,SAAS;IACrD,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,qDAA4B,OAAO,EAAE,UAAU,CAAC,CAAC;IACxD,CAAC;CACF;AAJD,4DAIC;AAED,MAAa,yBAA0B,SAAQ,SAAS;IACtD,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,wDAA6B,OAAO,EAAE,UAAU,CAAC,CAAC;IACzD,CAAC;CACF;AAJD,8DAIC;AAED,MAAa,8BAA+B,SAAQ,SAAS;IAC3D,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,oEAAkC,OAAO,EAAE,UAAU,CAAC,CAAC;IAC9D,CAAC;CACF;AAJD,wEAIC;AAED,MAAa,oBAAqB,SAAQ,SAAS;IACjD,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,8CAAwB,O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AS;IACvD,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,2DAA8B,OAAO,EAAE,UAAU,CAAC,CAAC;IAC1D,CAAC;CACF;AAJD,gEAIC;AAED,MAAa,6BAA8B,SAAQ,SAAS;IAC1D,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,kEAAiC,OAAO,EAAE,UAAU,CAAC,CAAC;IAC7D,CAAC;CACF;AAJD,sEAIC;AAED,MAAa,uCAAwC,SAAQ,SAAS;IACpE,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,oFAA2C,OAAO,EAAE,UAAU,CAAC,CAAC;IACvE,CAAC;CACF;AAJD,0FAIC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/cdp.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/cdp.d.ts index be5990c1..4ebea791 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/cdp.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/cdp.d.ts @@ -16,7 +16,7 @@ */ import type { Protocol } from 'devtools-protocol'; import type { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js'; -import type { BrowsingContext, JsUint } from './webdriver-bidi.js'; +import type { BrowsingContext, JsUint } from './generated/webdriver-bidi.js'; export type EventNames = Event['method']; export type Message = CommandResponse | Event; export type Command = { diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.d.ts index dd00a649..89b2d6fb 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.d.ts @@ -15,7 +15,8 @@ * limitations under the License. */ import type * as Cdp from './cdp.js'; -import type * as WebDriverBidi from './webdriver-bidi.js'; +import type * as WebDriverBidiPermissions from './generated/webdriver-bidi-permissions.js'; +import type * as WebDriverBidi from './generated/webdriver-bidi.js'; export type EventNames = BiDiModule | BrowsingContext.EventNames | Cdp.EventNames | Log.EventNames | Network.EventNames | Script.EventNames; export declare enum BiDiModule { Browser = "browser", @@ -63,15 +64,18 @@ export declare namespace Network { ResponseStarted = "network.responseStarted" } } -export type Command = (WebDriverBidi.Command | Cdp.Command) & { +export type Command = (WebDriverBidi.Command | Cdp.Command | ({ + id: WebDriverBidi.JsUint; +} & WebDriverBidiPermissions.PermissionsCommand)) & { channel?: WebDriverBidi.Script.Channel; }; export type CommandResponse = WebDriverBidi.CommandResponse | Cdp.CommandResponse; export type Event = WebDriverBidi.Event | Cdp.Event; export declare const EVENT_NAMES: Set; export type ResultData = WebDriverBidi.ResultData | Cdp.ResultData; +export type BidiPlusChannel = string | null; export type Message = (WebDriverBidi.Message | Cdp.Message | { launched: true; }) & { - channel?: WebDriverBidi.Script.Channel; + channel?: BidiPlusChannel; }; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js.map index 2917618a..d9d1d3bb 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js.map @@ -1 +1 @@ -{"version":3,"file":"chromium-bidi.js","sourceRoot":"","sources":["../../../src/protocol/chromium-bidi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAaH,kBAAkB;AAElB,IAAY,UAWX;AAXD,WAAY,UAAU;IACpB,oBAAoB;IACpB,iCAAmB,CAAA;IACnB,iDAAmC,CAAA;IACnC,yBAAW,CAAA;IACX,6BAAe,CAAA;IACf,yBAAW,CAAA;IACX,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,kBAAkB;AACpB,CAAC,EAXW,UAAU,0BAAV,UAAU,QAWrB;AAED,IAAiB,MAAM,CAQtB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GAAG,CAAC;IACjC,oBAAoB;IACpB,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;IAC5B,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC;IAC5C,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC;IAChC,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;IACpC,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;IACnC,kBAAkB;CACnB,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"chromium-bidi.js","sourceRoot":"","sources":["../../../src/protocol/chromium-bidi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAcH,kBAAkB;AAElB,IAAY,UAWX;AAXD,WAAY,UAAU;IACpB,oBAAoB;IACpB,iCAAmB,CAAA;IACnB,iDAAmC,CAAA;IACnC,yBAAW,CAAA;IACX,6BAAe,CAAA;IACf,yBAAW,CAAA;IACX,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,kBAAkB;AACpB,CAAC,EAXW,UAAU,0BAAV,UAAU,QAWrB;AAED,IAAiB,MAAM,CAQtB;AARD,WAAiB,MAAM;IACrB,IAAY,UAMX;IAND,WAAY,UAAU;QACpB,oBAAoB;QACpB,wCAA0B,CAAA;QAC1B,kDAAoC,CAAA;QACpC,sDAAwC,CAAA;QACxC,kBAAkB;IACpB,CAAC,EANW,UAAU,GAAV,iBAAU,KAAV,iBAAU,QAMrB;AACH,CAAC,EARgB,MAAM,sBAAN,MAAM,QAQtB;AAED,IAAiB,GAAG,CAInB;AAJD,WAAiB,GAAG;IAClB,IAAY,UAEX;IAFD,WAAY,UAAU;QACpB,8CAAgC,CAAA;IAClC,CAAC,EAFW,UAAU,GAAV,cAAU,KAAV,cAAU,QAErB;AACH,CAAC,EAJgB,GAAG,mBAAH,GAAG,QAInB;AAED,IAAiB,eAAe,CAgB/B;AAhBD,WAAiB,eAAe;IAC9B,IAAY,UAcX;IAdD,WAAY,UAAU;QACpB,oBAAoB;QACpB,+DAAiD,CAAA;QACjD,mEAAqD,CAAA;QACrD,mEAAqD,CAAA;QACrD,qEAAuD,CAAA;QACvD,qEAAuD,CAAA;QACvD,2CAA6B,CAAA;QAC7B,qEAAuD,CAAA;QACvD,mEAAqD,CAAA;QACrD,qEAAuD,CAAA;QACvD,mEAAqD,CAAA;QACrD,mEAAqD,CAAA;QACrD,kBAAkB;IACpB,CAAC,EAdW,UAAU,GAAV,0BAAU,KAAV,0BAAU,QAcrB;AACH,CAAC,EAhBgB,eAAe,+BAAf,eAAe,QAgB/B;AAED,IAAiB,OAAO,CAUvB;AAVD,WAAiB,OAAO;IACtB,IAAY,UAQX;IARD,WAAY,UAAU;QACpB,oBAAoB;QACpB,mDAAqC,CAAA;QACrC,6DAA+C,CAAA;QAC/C,+CAAiC,CAAA;QACjC,6DAA+C,CAAA;QAC/C,yDAA2C,CAAA;QAC3C,kBAAkB;IACpB,CAAC,EARW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAQrB;AACH,CAAC,EAVgB,OAAO,uBAAP,OAAO,QAUvB;AAoBY,QAAA,WAAW,GAAG,IAAI,GAAG,CAAC;IACjC,oBAAoB;IACpB,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;IAC5B,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC;IAC5C,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC;IAChC,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;IACpC,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;IACnC,kBAAkB;CACnB,CAAC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.d.ts new file mode 100644 index 00000000..a4851adc --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.d.ts @@ -0,0 +1,46 @@ +/** + * Copyright 2024 Google LLC. + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * THIS FILE IS AUTOGENERATED. Run `npm run bidi-types` to regenerate. + * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs + */ +export type PermissionsCommand = Permissions.SetPermission; +export declare namespace Permissions { + type PermissionDescriptor = { + name: string; + }; +} +export declare namespace Permissions { + const enum PermissionState { + Granted = "granted", + Denied = "denied", + Prompt = "prompt" + } +} +export declare namespace Permissions { + type SetPermission = { + method: 'permissions.setPermission'; + params: Permissions.SetPermissionParameters; + }; +} +export declare namespace Permissions { + type SetPermissionParameters = { + descriptor: Permissions.PermissionDescriptor; + state: Permissions.PermissionState; + origin: string; + }; +} diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js new file mode 100644 index 00000000..8d94e63f --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js @@ -0,0 +1,19 @@ +"use strict"; +/** + * Copyright 2024 Google LLC. + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=webdriver-bidi-permissions.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js.map new file mode 100644 index 00000000..57382d58 --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webdriver-bidi-permissions.js","sourceRoot":"","sources":["../../../../src/protocol/generated/webdriver-bidi-permissions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/webdriver-bidi.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.d.ts similarity index 90% rename from Scripts/node_modules/chromium-bidi/lib/cjs/protocol/webdriver-bidi.d.ts rename to Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.d.ts index 59558f6a..7aae5273 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/webdriver-bidi.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.d.ts @@ -1,5 +1,5 @@ /** - * Copyright 2023 Google LLC. + * Copyright 2024 Google LLC. * Copyright (c) Microsoft Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -30,8 +30,8 @@ export type CommandResponse = { result: ResultData; } & Extensible; export type EventData = BrowsingContextEvent | LogEvent | NetworkEvent | ScriptEvent; -export type CommandData = BrowserCommand | BrowsingContextCommand | InputCommand | NetworkCommand | ScriptCommand | SessionCommand; -export type ResultData = BrowsingContextResult | EmptyResult | NetworkResult | ScriptResult | SessionResult; +export type CommandData = BrowserCommand | BrowsingContextCommand | InputCommand | NetworkCommand | ScriptCommand | SessionCommand | StorageCommand; +export type ResultData = BrowsingContextResult | EmptyResult | NetworkResult | ScriptResult | SessionResult | StorageResult; export type EmptyParams = Extensible; export type Message = CommandResponse | ErrorResponse | Event; export type ErrorResponse = { @@ -66,9 +66,14 @@ export declare const enum ErrorCode { NoSuchNode = "no such node", NoSuchRequest = "no such request", NoSuchScript = "no such script", + NoSuchStoragePartition = "no such storage partition", + NoSuchUserContext = "no such user context", SessionNotCreated = "session not created", UnableToCaptureScreen = "unable to capture screen", UnableToCloseBrowser = "unable to close browser", + UnableToSetCookie = "unable to set cookie", + UnableToSetFileInput = "unable to set file input", + UnderspecifiedStoragePartition = "underspecified storage partition", UnknownCommand = "unknown command", UnknownError = "unknown error", UnsupportedOperation = "unsupported operation" @@ -173,7 +178,7 @@ export declare namespace Session { platformName: string; setWindowRect: boolean; proxy?: Session.ProxyConfiguration; - webSocketUrl?: string | true; + webSocketUrl?: string; } & Extensible; }; } @@ -195,13 +200,50 @@ export declare namespace Session { params: Session.SubscriptionRequest; }; } -export type BrowserCommand = Browser.Close; +export type BrowserCommand = Browser.Close | Browser.CreateUserContext | Browser.GetUserContexts | Browser.RemoveUserContext; +export type BrowserResult = Browser.CreateUserContextResult | Browser.GetUserContextsResult; +export declare namespace Browser { + type UserContext = string; +} +export declare namespace Browser { + type UserContextInfo = { + userContext: Browser.UserContext; + }; +} export declare namespace Browser { type Close = { method: 'browser.close'; params: EmptyParams; }; } +export declare namespace Browser { + type CreateUserContext = { + method: 'browser.createUserContext'; + params: EmptyParams; + }; +} +export declare namespace Browser { + type CreateUserContextResult = Browser.UserContextInfo; +} +export declare namespace Browser { + type GetUserContexts = { + method: 'browser.getUserContexts'; + params: EmptyParams; + }; +} +export declare namespace Browser { + type GetUserContextsResult = { + userContexts: [Browser.UserContextInfo, ...Browser.UserContextInfo[]]; + }; +} +export declare namespace Browser { + type RemoveUserContext = { + method: 'browser.removeUserContext'; + params: { + userContext: Browser.UserContext; + }; + }; +} export type BrowsingContextCommand = BrowsingContext.Activate | BrowsingContext.CaptureScreenshot | BrowsingContext.Close | BrowsingContext.Create | BrowsingContext.GetTree | BrowsingContext.HandleUserPrompt | BrowsingContext.LocateNodes | BrowsingContext.Navigate | BrowsingContext.Print | BrowsingContext.Reload | BrowsingContext.SetViewport | BrowsingContext.TraverseHistory; export type BrowsingContextEvent = BrowsingContext.ContextCreated | BrowsingContext.ContextDestroyed | BrowsingContext.DomContentLoaded | BrowsingContext.DownloadWillBegin | BrowsingContext.FragmentNavigated | BrowsingContext.Load | BrowsingContext.NavigationAborted | BrowsingContext.NavigationFailed | BrowsingContext.NavigationStarted | BrowsingContext.UserPromptClosed | BrowsingContext.UserPromptOpened; export type BrowsingContextResult = BrowsingContext.CaptureScreenshotResult | BrowsingContext.CreateResult | BrowsingContext.GetTreeResult | BrowsingContext.LocateNodesResult | BrowsingContext.NavigateResult | BrowsingContext.PrintResult | BrowsingContext.TraverseHistoryResult; @@ -213,9 +255,10 @@ export declare namespace BrowsingContext { } export declare namespace BrowsingContext { type Info = { + children: BrowsingContext.InfoList | null; context: BrowsingContext.BrowsingContext; url: string; - children: BrowsingContext.InfoList | null; + userContext: Browser.UserContext; parent?: BrowsingContext.BrowsingContext | null; }; } @@ -356,6 +399,7 @@ export declare namespace BrowsingContext { * @defaultValue `false` */ background?: boolean; + userContext?: Browser.UserContext | null; }; } export declare namespace BrowsingContext { @@ -691,6 +735,13 @@ export declare namespace Network { value: string; }; } +export declare namespace Network { + const enum SameSite { + Strict = "strict", + Lax = "lax", + None = "none" + } +} export declare namespace Network { type Cookie = { name: string; @@ -700,9 +751,9 @@ export declare namespace Network { size: JsUint; httpOnly: boolean; secure: boolean; - sameSite: 'strict' | 'lax' | 'none'; + sameSite: Network.SameSite; expiry?: JsUint; - }; + } & Extensible; } export declare namespace Network { type CookieHeader = { @@ -790,7 +841,7 @@ export declare namespace Network { expiry?: string; maxAge?: JsInt; path?: string; - sameSite?: 'strict' | 'lax' | 'none'; + sameSite?: Network.SameSite; secure?: boolean; }; } @@ -1153,16 +1204,19 @@ export declare namespace Script { export declare namespace Script { type DedicatedWorkerRealmInfo = Script.BaseRealmInfo & { type: 'dedicated-worker'; + owners: [Script.Realm]; }; } export declare namespace Script { type SharedWorkerRealmInfo = Script.BaseRealmInfo & { type: 'shared-worker'; + owners: [Script.Realm, ...Script.Realm[]]; }; } export declare namespace Script { type ServiceWorkerRealmInfo = Script.BaseRealmInfo & { type: 'service-worker'; + owners: [...Script.Realm[]]; }; } export declare namespace Script { @@ -1578,6 +1632,107 @@ export declare namespace Script { realm: Script.Realm; }; } +export type StorageCommand = Storage.DeleteCookies | Storage.GetCookies | Storage.SetCookie; +export type StorageResult = Storage.DeleteCookiesResult | Storage.GetCookiesResult | Storage.SetCookieResult; +export declare namespace Storage { + type PartitionKey = { + userContext?: string; + sourceOrigin?: string; + } & Extensible; +} +export declare namespace Storage { + type GetCookies = { + method: 'storage.getCookies'; + params: Storage.GetCookiesParameters; + }; +} +export declare namespace Storage { + type CookieFilter = { + name?: string; + value?: Network.BytesValue; + domain?: string; + path?: string; + size?: JsUint; + httpOnly?: boolean; + secure?: boolean; + sameSite?: Network.SameSite; + expiry?: JsUint; + } & Extensible; +} +export declare namespace Storage { + type BrowsingContextPartitionDescriptor = { + type: 'context'; + context: BrowsingContext.BrowsingContext; + }; +} +export declare namespace Storage { + type StorageKeyPartitionDescriptor = { + type: 'storageKey'; + userContext?: string; + sourceOrigin?: string; + } & Extensible; +} +export declare namespace Storage { + type PartitionDescriptor = Storage.BrowsingContextPartitionDescriptor | Storage.StorageKeyPartitionDescriptor; +} +export declare namespace Storage { + type GetCookiesParameters = { + filter?: Storage.CookieFilter; + partition?: Storage.PartitionDescriptor; + }; +} +export declare namespace Storage { + type GetCookiesResult = { + cookies: [...Network.Cookie[]]; + partitionKey: Storage.PartitionKey; + }; +} +export declare namespace Storage { + type SetCookie = { + method: 'storage.setCookie'; + params: Storage.SetCookieParameters; + }; +} +export declare namespace Storage { + type PartialCookie = { + name: string; + value: Network.BytesValue; + domain: string; + path?: string; + httpOnly?: boolean; + secure?: boolean; + sameSite?: Network.SameSite; + expiry?: JsUint; + } & Extensible; +} +export declare namespace Storage { + type SetCookieParameters = { + cookie: Storage.PartialCookie; + partition?: Storage.PartitionDescriptor; + }; +} +export declare namespace Storage { + type SetCookieResult = { + partitionKey: Storage.PartitionKey; + }; +} +export declare namespace Storage { + type DeleteCookies = { + method: 'storage.deleteCookies'; + params: Storage.DeleteCookiesParameters; + }; +} +export declare namespace Storage { + type DeleteCookiesParameters = { + filter?: Storage.CookieFilter; + partition?: Storage.PartitionDescriptor; + }; +} +export declare namespace Storage { + type DeleteCookiesResult = { + partitionKey: Storage.PartitionKey; + }; +} export type LogEvent = Log.EntryAdded; export declare namespace Log { const enum Level { @@ -1622,7 +1777,7 @@ export declare namespace Log { params: Log.Entry; }; } -export type InputCommand = Input.PerformActions | Input.ReleaseActions; +export type InputCommand = Input.PerformActions | Input.ReleaseActions | Input.SetFiles; export declare namespace Input { type ElementOrigin = { type: 'element'; @@ -1805,3 +1960,16 @@ export declare namespace Input { context: BrowsingContext.BrowsingContext; }; } +export declare namespace Input { + type SetFiles = { + method: 'input.setFiles'; + params: Input.SetFilesParameters; + }; +} +export declare namespace Input { + type SetFilesParameters = { + context: BrowsingContext.BrowsingContext; + element: Script.SharedReference; + files: [...string[]]; + }; +} diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/webdriver-bidi.js b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js similarity index 90% rename from Scripts/node_modules/chromium-bidi/lib/cjs/protocol/webdriver-bidi.js rename to Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js index 4477ccca..c6e8e3e1 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/webdriver-bidi.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js @@ -1,6 +1,6 @@ "use strict"; /** - * Copyright 2023 Google LLC. + * Copyright 2024 Google LLC. * Copyright (c) Microsoft Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js.map new file mode 100644 index 00000000..2553a742 --- /dev/null +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"webdriver-bidi.js","sourceRoot":"","sources":["../../../../src/protocol/generated/webdriver-bidi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/protocol.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/protocol.d.ts index 663948b6..6977ccf3 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/protocol.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/protocol.d.ts @@ -16,5 +16,6 @@ */ export * as Cdp from './cdp.js'; export * as ChromiumBidi from './chromium-bidi.js'; -export * from './webdriver-bidi.js'; +export * from './generated/webdriver-bidi.js'; export * from './ErrorResponse.js'; +export * from './generated/webdriver-bidi-permissions.js'; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js index 4e9d0659..15a4ce61 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js @@ -45,6 +45,7 @@ exports.ChromiumBidi = exports.Cdp = void 0; */ exports.Cdp = __importStar(require("./cdp.js")); exports.ChromiumBidi = __importStar(require("./chromium-bidi.js")); -__exportStar(require("./webdriver-bidi.js"), exports); +__exportStar(require("./generated/webdriver-bidi.js"), exports); __exportStar(require("./ErrorResponse.js"), exports); +__exportStar(require("./generated/webdriver-bidi-permissions.js"), exports); //# sourceMappingURL=protocol.js.map \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js.map index 1be8309c..ed04747f 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js.map @@ -1 +1 @@ -{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../../src/protocol/protocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,gDAAgC;AAChC,mEAAmD;AACnD,sDAAoC;AACpC,qDAAmC"} \ No newline at end of file +{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../../src/protocol/protocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,gDAAgC;AAChC,mEAAmD;AACnD,gEAA8C;AAC9C,qDAAmC;AACnC,4EAA0D"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/webdriver-bidi.js.map b/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/webdriver-bidi.js.map deleted file mode 100644 index c9fc3330..00000000 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/protocol/webdriver-bidi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webdriver-bidi.js","sourceRoot":"","sources":["../../../src/protocol/webdriver-bidi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/utils/WebsocketTransport.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/utils/WebsocketTransport.d.ts index 909530bb..ff8443ca 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/utils/WebsocketTransport.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/utils/WebsocketTransport.d.ts @@ -15,8 +15,8 @@ * limitations under the License. */ import type WebSocket from 'ws'; -import type { ITransport } from './transport.js'; -export declare class WebSocketTransport implements ITransport { +import type { Transport } from './transport.js'; +export declare class WebSocketTransport implements Transport { #private; constructor(websocket: WebSocket); setOnMessage(onMessage: (message: string) => void): void; diff --git a/Scripts/node_modules/chromium-bidi/lib/cjs/utils/transport.d.ts b/Scripts/node_modules/chromium-bidi/lib/cjs/utils/transport.d.ts index 97bfb52e..9c16b471 100644 --- a/Scripts/node_modules/chromium-bidi/lib/cjs/utils/transport.d.ts +++ b/Scripts/node_modules/chromium-bidi/lib/cjs/utils/transport.d.ts @@ -18,7 +18,7 @@ * Represents a low-level transport mechanism for raw text messages like * a WebSocket, pipe, or Window binding. */ -export interface ITransport { +export interface Transport { setOnMessage: (handler: (message: string) => Promise | void) => void; sendMessage: (message: string) => Promise | void; close(): void; diff --git a/Scripts/node_modules/chromium-bidi/lib/iife/mapperTab.js b/Scripts/node_modules/chromium-bidi/lib/iife/mapperTab.js index 0624cc79..983af1f7 100644 --- a/Scripts/node_modules/chromium-bidi/lib/iife/mapperTab.js +++ b/Scripts/node_modules/chromium-bidi/lib/iife/mapperTab.js @@ -1,4 +1,4 @@ -var mapperTab=function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var a=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),a}var a={},r={},n={},s={};var o=Object.freeze({__proto__:null,default:function(e){return{all:e=e||new Map,on:function(t,a){var r=e.get(t);r?r.push(a):e.set(t,[a])},off:function(t,a){var r=e.get(t);r&&(a?r.splice(r.indexOf(a)>>>0,1):e.set(t,[]))},emit:function(t,a){var r=e.get(t);r&&r.slice().map((function(e){e(a)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,a)}))}}}}),i=t(o),c=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0}),s.EventEmitter=void 0;const d=c(i);s.EventEmitter=class{#e=(0,d.default)();on(e,t){return this.#e.on(e,t),this}once(e,t){const a=r=>{t(r),this.off(e,a)};return this.on(e,a)}off(e,t){return this.#e.off(e,t),this}emit(e,t){this.#e.emit(e,t)}removeAllListeners(e){return e?this.#e.all.delete(e):this.#e.all.clear(),this}};var u,l={};Object.defineProperty(l,"__esModule",{value:!0}),l.LogType=void 0,function(e){e.bidi="bidi",e.cdp="cdp",e.debug="debug",e.debugError="debug:error",e.debugInfo="debug:info"}(u||(l.LogType=u={}));var h={};Object.defineProperty(h,"__esModule",{value:!0}),h.ProcessingQueue=void 0;const p=l;class m{static LOGGER_PREFIX=`${p.LogType.debug}:queue`;#t;#a;#r=[];#n=!1;constructor(e,t){this.#a=e,this.#t=t}add(e,t){this.#r.push([e,t]),this.#s()}async#s(){if(!this.#n){for(this.#n=!0;this.#r.length>0;){const e=this.#r.shift();if(!e)continue;const[t,a]=e;this.#t?.(m.LOGGER_PREFIX,"Processing event:",a),await t.then((e=>{if("error"!==e.kind)return this.#a(e.value);this.#t?.(p.LogType.debugError,"Event threw before sending:",e.error.message,e.error.stack)})).catch((e=>{this.#t?.(p.LogType.debugError,"Event was not processed:",e?.message)}))}this.#n=!1}}}h.ProcessingQueue=m;var f={},g={},y={};Object.defineProperty(y,"__esModule",{value:!0});var S,v,w,b,C,x={};Object.defineProperty(x,"__esModule",{value:!0}),x.EVENT_NAMES=x.Network=x.BrowsingContext=x.Log=x.Script=x.BiDiModule=void 0,function(e){e.Browser="browser",e.BrowsingContext="browsingContext",e.Cdp="cdp",e.Input="input",e.Log="log",e.Network="network",e.Script="script",e.Session="session"}(S||(x.BiDiModule=S={})),function(e){var t;(t=e.EventNames||(e.EventNames={})).Message="script.message",t.RealmCreated="script.realmCreated",t.RealmDestroyed="script.realmDestroyed"}(v||(x.Script=v={})),function(e){(e.EventNames||(e.EventNames={})).LogEntryAdded="log.entryAdded"}(w||(x.Log=w={})),function(e){var t;(t=e.EventNames||(e.EventNames={})).ContextCreated="browsingContext.contextCreated",t.ContextDestroyed="browsingContext.contextDestroyed",t.DomContentLoaded="browsingContext.domContentLoaded",t.DownloadWillBegin="browsingContext.downloadWillBegin",t.FragmentNavigated="browsingContext.fragmentNavigated",t.Load="browsingContext.load",t.NavigationAborted="browsingContext.navigationAborted",t.NavigationFailed="browsingContext.navigationFailed",t.NavigationStarted="browsingContext.navigationStarted",t.UserPromptClosed="browsingContext.userPromptClosed",t.UserPromptOpened="browsingContext.userPromptOpened"}(b||(x.BrowsingContext=b={})),function(e){var t;(t=e.EventNames||(e.EventNames={})).AuthRequired="network.authRequired",t.BeforeRequestSent="network.beforeRequestSent",t.FetchError="network.fetchError",t.ResponseCompleted="network.responseCompleted",t.ResponseStarted="network.responseStarted"}(C||(x.Network=C={})),x.EVENT_NAMES=new Set([...Object.values(S),...Object.values(b.EventNames),...Object.values(w.EventNames),...Object.values(C.EventNames),...Object.values(v.EventNames)]);var I={};Object.defineProperty(I,"__esModule",{value:!0});var P={};Object.defineProperty(P,"__esModule",{value:!0}),P.UnsupportedOperationException=P.UnableToCloseBrowserException=P.UnableToCaptureScreenException=P.UnknownErrorException=P.UnknownCommandException=P.SessionNotCreatedException=P.NoSuchScriptException=P.NoSuchRequestException=P.NoSuchNodeException=P.NoSuchInterceptException=P.NoSuchHistoryEntryException=P.NoSuchHandleException=P.NoSuchFrameException=P.NoSuchElementException=P.NoSuchAlertException=P.MoveTargetOutOfBoundsException=P.InvalidSessionIdException=P.InvalidArgumentException=P.Exception=void 0;class k{error;message;stacktrace;constructor(e,t,a){this.error=e,this.message=t,this.stacktrace=a}toErrorResponse(e){return{type:"error",id:e,error:this.error,message:this.message,stacktrace:this.stacktrace}}}P.Exception=k;P.InvalidArgumentException=class extends k{constructor(e,t){super("invalid argument",e,t)}};P.InvalidSessionIdException=class extends k{constructor(e,t){super("invalid session id",e,t)}};P.MoveTargetOutOfBoundsException=class extends k{constructor(e,t){super("move target out of bounds",e,t)}};P.NoSuchAlertException=class extends k{constructor(e,t){super("no such alert",e,t)}};P.NoSuchElementException=class extends k{constructor(e,t){super("no such element",e,t)}};P.NoSuchFrameException=class extends k{constructor(e,t){super("no such frame",e,t)}};P.NoSuchHandleException=class extends k{constructor(e,t){super("no such handle",e,t)}};P.NoSuchHistoryEntryException=class extends k{constructor(e,t){super("no such history entry",e,t)}};P.NoSuchInterceptException=class extends k{constructor(e,t){super("no such intercept",e,t)}};P.NoSuchNodeException=class extends k{constructor(e,t){super("no such node",e,t)}};P.NoSuchRequestException=class extends k{constructor(e,t){super("no such request",e,t)}};P.NoSuchScriptException=class extends k{constructor(e,t){super("no such script",e,t)}};P.SessionNotCreatedException=class extends k{constructor(e,t){super("session not created",e,t)}};P.UnknownCommandException=class extends k{constructor(e,t){super("unknown command",e,t)}};P.UnknownErrorException=class extends k{constructor(e,t=(new Error).stack){super("unknown error",e,t)}};P.UnableToCaptureScreenException=class extends k{constructor(e,t){super("unable to capture screen",e,t)}};P.UnableToCloseBrowserException=class extends k{constructor(e,t){super("unable to close browser",e,t)}};P.UnsupportedOperationException=class extends k{constructor(e,t){super("unsupported operation",e,t)}},function(t){var a=e&&e.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,n)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t},s=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ChromiumBidi=t.Cdp=void 0,t.Cdp=n(y),t.ChromiumBidi=n(x),s(I,t),s(P,t)}(g);var R={};Object.defineProperty(R,"__esModule",{value:!0}),R.BidiNoOpParser=void 0;R.BidiNoOpParser=class{parseActivateParams(e){return e}parseCaptureScreenshotParams(e){return e}parseCloseParams(e){return e}parseCreateParams(e){return e}parseGetTreeParams(e){return e}parseHandleUserPromptParams(e){return e}parseNavigateParams(e){return e}parsePrintParams(e){return e}parseReloadParams(e){return e}parseSetViewportParams(e){return e}parseTraverseHistoryParams(e){return e}parseGetSessionParams(e){return e}parseSendCommandParams(e){return e}parseAddPreloadScriptParams(e){return e}parseCallFunctionParams(e){return e}parseDisownParams(e){return e}parseEvaluateParams(e){return e}parseGetRealmsParams(e){return e}parseRemovePreloadScriptParams(e){return e}parsePerformActionsParams(e){return e}parseReleaseActionsParams(e){return e}parseAddInterceptParams(e){return e}parseContinueRequestParams(e){return e}parseContinueResponseParams(e){return e}parseContinueWithAuthParams(e){return e}parseFailRequestParams(e){return e}parseProvideResponseParams(e){return e}parseRemoveInterceptParams(e){return e}parseSubscribeParams(e){return e}};var E={};Object.defineProperty(E,"__esModule",{value:!0}),E.BrowserProcessor=void 0;E.BrowserProcessor=class{#o;constructor(e){this.#o=e}close(){return setTimeout((()=>this.#o.sendCommand("Browser.close")),0),{}}};var _={};Object.defineProperty(_,"__esModule",{value:!0}),_.CdpProcessor=void 0;_.CdpProcessor=class{#i;#c;#o;constructor(e,t,a){this.#i=e,this.#c=t,this.#o=a}getSession(e){const t=e.context,a=this.#i.getContext(t).cdpTarget.cdpSessionId;return void 0===a?{}:{session:a}}async sendCommand(e){const t=e.session?this.#c.getCdpClient(e.session):this.#o;return{result:await t.sendCommand(e.method,e.params),session:e.session}}};var T={},N={},j={};Object.defineProperty(j,"__esModule",{value:!0}),j.uuidv4=void 0,j.uuidv4=function(){if("crypto"in globalThis&&"randomUUID"in globalThis.crypto)return globalThis.crypto.randomUUID();const e=new Uint8Array(16);"crypto"in globalThis&&"getRandomValues"in globalThis.crypto?globalThis.crypto.getRandomValues(e):require("crypto").webcrypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;const t=e=>e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"");return[t(e.subarray(0,4)),t(e.subarray(4,6)),t(e.subarray(6,8)),t(e.subarray(8,10)),t(e.subarray(10,16))].join("-")};var M={};Object.defineProperty(M,"__esModule",{value:!0}),M.ChannelProxy=void 0;const O=g,A=l,B=j;class D{#d;#u=(0,B.uuidv4)();#t;constructor(e,t){this.#d=e,this.#t=t}async init(e,t){const a=await D.#l(e),r=await D.#h(e,a);return this.#p(e,a,t),r}async startListenerFromWindow(e,t){try{const a=await this.#m(e);this.#p(e,a,t)}catch(e){this.#t?.(A.LogType.debugError,e)}}static#f(){return`(${String((()=>{const e=[];let t=null;return{async getMessage(){const a=e.length>0?Promise.resolve():new Promise((e=>{t=e}));return await a,e.shift()},sendMessage(a){e.push(a),null!==t&&(t(),t=null)}}}))})()`}static async#l(e){const t=await e.cdpClient.sendCommand("Runtime.evaluate",{expression:this.#f(),contextId:e.executionContextId,serializationOptions:{serialization:"idOnly"}});if(t.exceptionDetails||void 0===t.result.objectId)throw new Error("Cannot create channel");return t.result.objectId}static async#h(e,t){return(await e.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:String((e=>e.sendMessage)),arguments:[{objectId:t}],executionContextId:e.executionContextId,serializationOptions:{serialization:"idOnly"}})).result.objectId}async#p(e,t,a){for(;;)try{const r=await e.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:String((async e=>await e.getMessage())),arguments:[{objectId:t}],awaitPromise:!0,executionContextId:e.executionContextId,serializationOptions:{serialization:"deep",maxDepth:this.#d.serializationOptions?.maxObjectDepth??void 0}});if(r.exceptionDetails)throw r.exceptionDetails;a.registerEvent({type:"event",method:O.ChromiumBidi.Script.EventNames.Message,params:{channel:this.#d.channel,data:e.cdpToBidiValue(r,this.#d.ownership??"none"),source:{realm:e.realmId,context:e.browsingContextId}}},e.browsingContextId)}catch(e){this.#t?.(A.LogType.debugError,e);break}}async#m(e){const t=await e.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:String((e=>{const t=window;if(void 0===t[e])return new Promise((a=>t[e]=a));const a=t[e];return delete t[e],a})),arguments:[{value:this.#u}],executionContextId:e.executionContextId,awaitPromise:!0,serializationOptions:{serialization:"idOnly"}});if(void 0!==t.exceptionDetails||void 0===t.result.objectId)throw new Error(`ChannelHandle not found in window["${this.#u}"]`);return t.result.objectId}getEvalInWindowStr(){const e=String(((e,t)=>{const a=window;return void 0===a[e]?a[e]=t:(a[e](t),delete a[e]),t.sendMessage})),t=D.#f();return`(${e})('${this.#u}',${t})`}}M.ChannelProxy=D,Object.defineProperty(N,"__esModule",{value:!0}),N.Realm=void 0;const z=g,L=l,Z=j,U=M,q="_element_";class V{#g;#i;#y;#S;#v;#w;#b;#C;#x;sandbox;#t;constructor(e,t,a,r,n,s,o,i,c,d,u){this.#y=a,this.#S=r,this.#v=n,this.sandbox=i,this.#w=s,this.#b=o,this.#C=c,this.#g=e,this.#i=t,this.#x=d,this.#t=u,this.#g.addRealm(this),this.#x.registerEvent({type:"event",method:z.ChromiumBidi.Script.EventNames.RealmCreated,params:this.realmInfo},this.browsingContextId)}cdpToBidiValue(e,t){const a=this.#I(e.result.deepSerializedValue,new Map);if(e.result.objectId){const r=e.result.objectId;"root"===t?(a.handle=r,this.#g.knownHandlesToRealmMap.set(r,this.realmId)):this.#P(r).catch((e=>this.#t?.(L.LogType.debugError,e)))}if("object"===e.result.type)switch(e.result.subtype){case"generator":case"iterator":a.type=e.result.subtype,delete a.value}return a}#I(e,t){if(Object.hasOwn(e,"weakLocalObjectReference")){const a=e.weakLocalObjectReference;t.has(a)||t.set(a,(0,Z.uuidv4)()),e.internalId=t.get(a),delete e.weakLocalObjectReference}if("platformobject"===e.type)return{type:"object"};const a=e.value;if(void 0===a)return e;if("node"===e.type){if(Object.hasOwn(a,"backendNodeId")&&(e.sharedId=`${this.navigableId}${q}${a.backendNodeId}`,delete a.backendNodeId),Object.hasOwn(a,"children"))for(const e in a.children)a.children[e]=this.#I(a.children[e],t);Object.hasOwn(a,"shadowRoot")&&null!==a.shadowRoot&&(a.shadowRoot=this.#I(a.shadowRoot,t)),""===a.namespaceURI&&(a.namespaceURI=null)}if(["array","set","htmlcollection","nodelist"].includes(e.type))for(const e in a)a[e]=this.#I(a[e],t);if(["object","map"].includes(e.type))for(const e in a)a[e]=[this.#I(a[e][0],t),this.#I(a[e][1],t)];return e}get realmId(){return this.#y}get navigableId(){return(this.browsingContextId&&this.#i.findContext(this.browsingContextId)?.navigableId)??"UNKNOWN"}get browsingContextId(){return this.#S}get executionContextId(){return this.#v}get origin(){return this.#w}get type(){return this.#b}get cdpClient(){return this.#C}get realmInfo(){return"window"===this.type?{realm:this.realmId,origin:this.origin,type:this.type,context:this.browsingContextId,...void 0===this.sandbox?{}:{sandbox:this.sandbox}}:{realm:this.realmId,origin:this.origin,type:this.type}}async evaluate(e,t,a,r,n=!1){await this.#i.getContext(this.browsingContextId).targetUnblockedOrThrow();const s=await this.cdpClient.sendCommand("Runtime.evaluate",{contextId:this.executionContextId,expression:e,awaitPromise:t,serializationOptions:V.#k("deep",r),userGesture:n});return s.exceptionDetails?await this.#R(s.exceptionDetails,0,a):{realm:this.realmId,result:this.cdpToBidiValue(s,a),type:"success"}}async serializeCdpObject(e,t){const a=V.#E(e),r=await this.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:String((e=>e)),awaitPromise:!1,arguments:[a],serializationOptions:{serialization:"deep"},executionContextId:this.executionContextId});return this.cdpToBidiValue(r,t)}static#E(e){return void 0!==e.objectId?{objectId:e.objectId}:void 0!==e.unserializableValue?{unserializableValue:e.unserializableValue}:{value:e.value}}async stringifyObject(e){const{result:t}=await this.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:String((e=>String(e))),awaitPromise:!1,arguments:[e],returnByValue:!0,executionContextId:this.executionContextId});return t.value}async#_(e){const t=[];for(const[a,r]of e){let e;e="string"==typeof a?{value:a}:await this.#T(a);const n=await this.#T(r);t.push(e),t.push(n)}return t}async#N(e){return await Promise.all(e.map((e=>this.#T(e))))}async#j(e,t,a){const r=e.stackTrace?.callFrames.map((e=>({url:e.url,functionName:e.functionName,lineNumber:e.lineNumber-t,columnNumber:e.columnNumber})))??[],n=e.exception;return{exception:await this.serializeCdpObject(n,a),columnNumber:e.columnNumber,lineNumber:e.lineNumber-t,stackTrace:{callFrames:r},text:await this.stringifyObject(n)||e.text}}async callFunction(e,t,a,r,n,s,o=!1){await this.#i.getContext(this.browsingContextId).targetUnblockedOrThrow();const i=`(...args) => {\n function callFunction(f, args) {\n const deserializedThis = args.shift();\n const deserializedArgs = args;\n return f.apply(deserializedThis, deserializedArgs);\n }\n return callFunction((\n ${e}\n ), args);\n }`,c=[await this.#T(t),...await Promise.all(a.map((async e=>await this.#T(e))))];let d;try{d=await this.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:i,awaitPromise:r,arguments:c,serializationOptions:V.#k("deep",s),executionContextId:this.executionContextId,userGesture:o})}catch(e){if(-32e3===e.code&&["Could not find object with given id","Argument should belong to the same JavaScript world as target object","Invalid remote object id"].includes(e.message))throw new z.NoSuchHandleException("Handle was not found.");throw e}return d.exceptionDetails?await this.#R(d.exceptionDetails,1,n):{type:"success",result:this.cdpToBidiValue(d,n),realm:this.realmId}}async#T(e){if("sharedId"in e&&e.sharedId){const[t,a]=e.sharedId.split(q),r=parseInt(a??"");if(isNaN(r)||void 0===r||void 0===t)throw new z.NoSuchNodeException(`SharedId "${e.sharedId}" was not found.`);if(this.navigableId!==t)throw new z.NoSuchNodeException(`SharedId "${e.sharedId}" belongs to different document. Current document is ${this.navigableId}.`);try{const{object:e}=await this.cdpClient.sendCommand("DOM.resolveNode",{backendNodeId:r,executionContextId:this.executionContextId});return{objectId:e.objectId}}catch(t){if(-32e3===t.code&&"No node with given id found"===t.message)throw new z.NoSuchNodeException(`SharedId "${e.sharedId}" was not found.`);throw new z.UnknownErrorException(t.message,t.stack)}}else{if("handle"in e&&e.handle)return{objectId:e.handle};if("handle"in e||"sharedId"in e)throw new z.NoSuchHandleException("Handle was not found.")}switch(e.type){case"undefined":return{unserializableValue:"undefined"};case"null":return{unserializableValue:"null"};case"string":return{value:e.value};case"number":return"NaN"===e.value?{unserializableValue:"NaN"}:"-0"===e.value?{unserializableValue:"-0"}:"Infinity"===e.value?{unserializableValue:"Infinity"}:"-Infinity"===e.value?{unserializableValue:"-Infinity"}:{value:e.value};case"boolean":return{value:Boolean(e.value)};case"bigint":return{unserializableValue:`BigInt(${JSON.stringify(e.value)})`};case"date":return{unserializableValue:`new Date(Date.parse(${JSON.stringify(e.value)}))`};case"regexp":return{unserializableValue:`new RegExp(${JSON.stringify(e.value.pattern)}, ${JSON.stringify(e.value.flags)})`};case"map":{const t=await this.#_(e.value),{result:a}=await this.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:String(((...e)=>{const t=new Map;for(let a=0;a{const t={};for(let a=0;ae)),awaitPromise:!1,arguments:t,returnByValue:!1,executionContextId:this.executionContextId});return{objectId:a.objectId}}case"set":{const t=await this.#N(e.value),{result:a}=await this.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:String(((...e)=>new Set(e))),awaitPromise:!1,arguments:t,returnByValue:!1,executionContextId:this.executionContextId});return{objectId:a.objectId}}case"channel":{const t=new U.ChannelProxy(e.value,this.#t);return{objectId:await t.init(this,this.#x)}}}throw new Error(`Value ${JSON.stringify(e)} is not deserializable.`)}async#R(e,t,a){return{exceptionDetails:await this.#j(e,t,a),realm:this.realmId,type:"exception"}}static#k(e,t){return{serialization:e,additionalParameters:V.#M(t),...V.#O(t)}}static#M(e){const t={};return void 0!==e.maxDomDepth&&(t.maxNodeDepth=null===e.maxDomDepth?1e3:e.maxDomDepth),void 0!==e.includeShadowTree&&(t.includeShadowTree=e.includeShadowTree),t}static#O(e){return void 0===e.maxObjectDepth||null===e.maxObjectDepth?{}:{maxDepth:e.maxObjectDepth}}async#P(e){try{await this.cdpClient.sendCommand("Runtime.releaseObject",{objectId:e})}catch(e){if(-32e3!==e.code||"Invalid remote object id"!==e.message)throw e}}async disown(e){this.#g.knownHandlesToRealmMap.get(e)===this.realmId&&(await this.#P(e),this.#g.knownHandlesToRealmMap.delete(e))}dispose(){this.#x.registerEvent({type:"event",method:z.ChromiumBidi.Script.EventNames.RealmDestroyed,params:{realm:this.realmId}},this.browsingContextId)}}N.Realm=V;var F={},$={};Object.defineProperty($,"__esModule",{value:!0}),$.assert=void 0,$.assert=function(e,t){if(!e)throw new Error(t??"Internal assertion failed.")};var K={};Object.defineProperty(K,"__esModule",{value:!0}),K.Deferred=void 0;class H{#A=!1;#B;#D;#z;get isFinished(){return this.#A}constructor(){this.#B=new Promise(((e,t)=>{this.#D=e,this.#z=t})),this.#B.catch((e=>{}))}then(e,t){return this.#B.then(e,t)}catch(e){return this.#B.catch(e)}resolve(e){this.#A||(this.#A=!0,this.#D(e))}reject(e){this.#A||(this.#A=!0,this.#z(e))}finally(e){return this.#B.finally(e)}[Symbol.toStringTag]="Promise"}K.Deferred=H;var W={};Object.defineProperty(W,"__esModule",{value:!0}),W.inchesFromCm=void 0,W.inchesFromCm=function(e){return e/2.54},Object.defineProperty(F,"__esModule",{value:!0}),F.serializeOrigin=F.BrowsingContextImpl=void 0;const J=g,G=$,X=K,Y=l,Q=W,ee=N;class te{static LOGGER_PREFIX=`${Y.LogType.debug}:browsingContext`;#u;#L;#Z=new Set;#i;#U={Page:{navigatedWithinDocument:new X.Deferred,lifecycleEvent:{DOMContentLoaded:new X.Deferred,load:new X.Deferred},frameStartedLoading:new X.Deferred}};#q="about:blank";#x;#g;#V;#F;#$;#t;constructor(e,t,a,r,n,s,o){this.#F=e,this.#g=t,this.#u=a,this.#L=r,this.#x=n,this.#i=s,this.#t=o}static create(e,t,a,r,n,s,o){const i=new te(e,t,a,r,n,s,o);return i.#K(),s.addContext(i),i.isTopLevelContext()||i.parent.addChild(i.id),n.registerEvent({type:"event",method:J.ChromiumBidi.BrowsingContext.EventNames.ContextCreated,params:i.serializeToBidiValue()},i.id),i}static getTimestamp(){return(new Date).getTime()}get navigableId(){return this.#V}dispose(){this.#H(),this.#g.deleteRealms({browsingContextId:this.id}),this.isTopLevelContext()||this.parent.#Z.delete(this.id),this.#W(),this.#x.registerEvent({type:"event",method:J.ChromiumBidi.BrowsingContext.EventNames.ContextDestroyed,params:this.serializeToBidiValue()},this.id),this.#i.deleteContextById(this.id)}get id(){return this.#u}get parentId(){return this.#L}get parent(){return null===this.parentId?null:this.#i.getContext(this.parentId)}get directChildren(){return[...this.#Z].map((e=>this.#i.getContext(e)))}get allChildren(){const e=this.directChildren;return e.concat(...e.map((e=>e.allChildren)))}isTopLevelContext(){return null===this.#L}get top(){let e=this,t=e.parent;for(;t;)e=t,t=e.parent;return e}addChild(e){this.#Z.add(e)}#H(){this.directChildren.map((e=>e.dispose()))}get#J(){return(0,G.assert)(this.#$,`No default realm for browsing context ${this.#u}`),this.#$}get cdpTarget(){return this.#F}updateCdpTarget(e){this.#F=e,this.#K()}get url(){return this.#q}async lifecycleLoaded(){await this.#U.Page.lifecycleEvent.load}async targetUnblockedOrThrow(){const e=await this.#F.targetUnblocked;if("error"===e.kind)throw e.error}async getOrCreateSandbox(e){if(void 0===e||""===e)return this.#J;let t=this.#g.findRealms({browsingContextId:this.id,sandbox:e});return 0===t.length&&(await this.#F.cdpClient.sendCommand("Page.createIsolatedWorld",{frameId:this.id,worldName:e}),t=this.#g.findRealms({browsingContextId:this.id,sandbox:e}),(0,G.assert)(0!==t.length)),t[0]}serializeToBidiValue(e=0,t=!0){return{context:this.#u,url:this.url,children:e>0?this.directChildren.map((t=>t.serializeToBidiValue(e-1,!1))):null,...t?{parent:this.#L}:{}}}onTargetInfoChanged(e){this.#q=e.targetInfo.url}#K(){this.#F.cdpClient.on("Page.frameNavigated",(e=>{this.id===e.frame.id&&(this.#q=e.frame.url+(e.frame.urlFragment??""),this.#H())})),this.#F.cdpClient.on("Page.navigatedWithinDocument",(e=>{if(this.id!==e.frameId)return;const t=te.getTimestamp();this.#q=e.url,this.#U.Page.navigatedWithinDocument.resolve(e),this.#x.registerEvent({type:"event",method:J.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated,params:{context:this.id,navigation:null,timestamp:t,url:this.#q}},this.id)})),this.#F.cdpClient.on("Page.frameStartedLoading",(e=>{this.id===e.frameId&&this.#x.registerEvent({type:"event",method:J.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted,params:{context:this.id,navigation:null,timestamp:te.getTimestamp(),url:""}},this.id)})),this.#F.cdpClient.on("Page.lifecycleEvent",(e=>{if(this.id!==e.frameId)return;if("init"===e.name)return void this.#G(e.loaderId);if("commit"===e.name)return void(this.#V=e.loaderId);if(e.loaderId!==this.#V)return;const t=te.getTimestamp();switch(e.name){case"DOMContentLoaded":this.#x.registerEvent({type:"event",method:J.ChromiumBidi.BrowsingContext.EventNames.DomContentLoaded,params:{context:this.id,navigation:this.#V??null,timestamp:t,url:this.#q}},this.id),this.#U.Page.lifecycleEvent.DOMContentLoaded.resolve(e);break;case"load":this.#x.registerEvent({type:"event",method:J.ChromiumBidi.BrowsingContext.EventNames.Load,params:{context:this.id,navigation:this.#V??null,timestamp:t,url:this.#q}},this.id),this.#U.Page.lifecycleEvent.load.resolve(e)}})),this.#F.cdpClient.on("Runtime.executionContextCreated",(e=>{const{auxData:t,name:a,uniqueId:r,id:n}=e.context;if(!t||t.frameId!==this.id)return;let s,o;switch(t.type){case"isolated":o=a,s=this.#J.origin;break;case"default":s=ae(e.context.origin);break;default:return}const i=new ee.Realm(this.#g,this.#i,r,this.id,n,s,"window",o,this.#F.cdpClient,this.#x,this.#t);t.isDefault&&(this.#$=i,Promise.all(this.#F.getChannels().map((e=>e.startListenerFromWindow(i,this.#x)))))})),this.#F.cdpClient.on("Runtime.executionContextDestroyed",(e=>{this.#g.deleteRealms({cdpSessionId:this.#F.cdpSessionId,executionContextId:e.executionContextId})})),this.#F.cdpClient.on("Runtime.executionContextsCleared",(()=>{this.#g.deleteRealms({cdpSessionId:this.#F.cdpSessionId})})),this.#F.cdpClient.on("Page.javascriptDialogClosed",(e=>{const t=e.result;this.#x.registerEvent({type:"event",method:J.ChromiumBidi.BrowsingContext.EventNames.UserPromptClosed,params:{context:this.id,accepted:t,userText:t&&e.userInput?e.userInput:void 0}},this.id)})),this.#F.cdpClient.on("Page.javascriptDialogOpening",(e=>{this.#x.registerEvent({type:"event",method:J.ChromiumBidi.BrowsingContext.EventNames.UserPromptOpened,params:{context:this.id,type:e.type,message:e.message,defaultValue:e.defaultPrompt||void 0}},this.id)}))}#G(e){void 0!==e&&this.#V!==e?(this.#X(),this.#V=e):this.#U.Page.navigatedWithinDocument.isFinished?this.#U.Page.navigatedWithinDocument=new X.Deferred:this.#t?.(te.LOGGER_PREFIX,"Document changed (navigatedWithinDocument)")}#X(){this.#U.Page.lifecycleEvent.DOMContentLoaded.isFinished?this.#U.Page.lifecycleEvent.DOMContentLoaded=new X.Deferred:this.#t?.(te.LOGGER_PREFIX,"Document changed (DOMContentLoaded)"),this.#U.Page.lifecycleEvent.load.isFinished?this.#U.Page.lifecycleEvent.load=new X.Deferred:this.#t?.(te.LOGGER_PREFIX,"Document changed (load)")}#W(){this.#U.Page.lifecycleEvent.DOMContentLoaded.isFinished||this.#U.Page.lifecycleEvent.DOMContentLoaded.reject(new J.UnknownErrorException("navigation canceled")),this.#U.Page.lifecycleEvent.load.isFinished||this.#U.Page.lifecycleEvent.load.reject(new J.UnknownErrorException("navigation canceled"))}async navigate(e,t){try{new URL(e)}catch{throw new J.InvalidArgumentException(`Invalid URL: ${e}`)}await this.targetUnblockedOrThrow();const a=await this.#F.cdpClient.sendCommand("Page.navigate",{url:e,frameId:this.id});if(a.errorText)throw new J.UnknownErrorException(a.errorText);switch(this.#G(a.loaderId),t){case"none":break;case"interactive":void 0===a.loaderId?await this.#U.Page.navigatedWithinDocument:await this.#U.Page.lifecycleEvent.DOMContentLoaded;break;case"complete":void 0===a.loaderId?await this.#U.Page.navigatedWithinDocument:await this.lifecycleLoaded()}return{navigation:a.loaderId??null,url:"none"===t?e:this.#q}}async reload(e,t){switch(await this.targetUnblockedOrThrow(),await this.#F.cdpClient.sendCommand("Page.reload",{ignoreCache:e}),this.#X(),t){case"none":break;case"interactive":await this.#U.Page.lifecycleEvent.DOMContentLoaded;break;case"complete":await this.lifecycleLoaded()}return{navigation:"none"===t?null:this.navigableId??null,url:this.url}}async setViewport(e,t){if(null===e&&null===t)await this.#F.cdpClient.sendCommand("Emulation.clearDeviceMetricsOverride");else try{await this.#F.cdpClient.sendCommand("Emulation.setDeviceMetricsOverride",{width:e?e.width:0,height:e?e.height:0,deviceScaleFactor:t||0,mobile:!1,dontSetVisibleSize:!0})}catch(e){if(e.message.startsWith("Width and height values must be positive"))throw new J.UnsupportedOperationException("Provided viewport dimensions are not supported");throw e}}async handleUserPrompt(e){await this.#F.cdpClient.sendCommand("Page.handleJavaScriptDialog",{accept:e.accept??!0,promptText:e.userText})}async activate(){await this.#F.cdpClient.sendCommand("Page.bringToFront")}async captureScreenshot(e){if(!this.isTopLevelContext())throw new J.UnsupportedOperationException(`Non-top-level 'context' (${e.context}) is currently not supported`);const t=function(e){const{quality:t,type:a}=e.format??{type:"image/png"};switch(a){case"image/png":return{format:"png"};case"image/jpeg":return{format:"jpeg",...void 0===t?{}:{quality:Math.round(100*t)}};case"image/webp":return{format:"webp",...void 0===t?{}:{quality:Math.round(100*t)}}}throw new J.InvalidArgumentException(`Image format '${a}' is not a supported format`)}(e);await this.#F.cdpClient.sendCommand("Page.bringToFront");let a,r=!1;switch(e.origin??="viewport",e.origin){case"document":a=String((()=>{const e=document.documentElement;return{x:0,y:0,width:e.scrollWidth,height:e.scrollHeight}})),r=!0;break;case"viewport":a=String((()=>{const e=window.visualViewport;return{x:e.pageLeft,y:e.pageTop,width:e.width,height:e.height}}))}const n=await this.getOrCreateSandbox(void 0),s=await n.callFunction(a,{type:"undefined"},[],!1,"none",{},!1);(0,G.assert)("success"===s.type);const o=re(s.result);(0,G.assert)(o);const i=e.clip?function(e,t){e=ne(e),t=ne(t);const a=Math.max(e.x,t.x),r=Math.max(e.y,t.y);return{x:a,y:r,width:Math.max(Math.min(e.x+e.width,t.x+t.width)-a,0),height:Math.max(Math.min(e.y+e.height,t.y+t.height)-r,0)}}(await this.#Y(e.clip),o):o;if(0===i.width||0===i.height)throw new J.UnableToCaptureScreenException(`Unable to capture screenshot with zero dimensions: width=${i.width}, height=${i.height}`);return await this.#F.cdpClient.sendCommand("Page.captureScreenshot",{clip:{...i,scale:1},...t,captureBeyondViewport:r})}async print(e){const t={};if(void 0!==e.background&&(t.printBackground=e.background),void 0!==e.margin?.bottom&&(t.marginBottom=(0,Q.inchesFromCm)(e.margin.bottom)),void 0!==e.margin?.left&&(t.marginLeft=(0,Q.inchesFromCm)(e.margin.left)),void 0!==e.margin?.right&&(t.marginRight=(0,Q.inchesFromCm)(e.margin.right)),void 0!==e.margin?.top&&(t.marginTop=(0,Q.inchesFromCm)(e.margin.top)),void 0!==e.orientation&&(t.landscape="landscape"===e.orientation),void 0!==e.page?.height&&(t.paperHeight=(0,Q.inchesFromCm)(e.page.height)),void 0!==e.page?.width&&(t.paperWidth=(0,Q.inchesFromCm)(e.page.width)),void 0!==e.pageRanges){for(const t of e.pageRanges){if("number"==typeof t)continue;const e=t.split("-");if(e.length<1||e.length>2)throw new J.InvalidArgumentException(`Invalid page range: ${t} is not a valid integer range.`);if(1===e.length){se(e[0]??"");continue}let a,r;const[n="",s=""]=e;if(a=""===n?1:se(n),r=""===s?Number.MAX_SAFE_INTEGER:se(s),a>r)throw new J.InvalidArgumentException(`Invalid page range: ${n} > ${s}`)}t.pageRanges=e.pageRanges.join(",")}void 0!==e.scale&&(t.scale=e.scale),void 0!==e.shrinkToFit&&(t.preferCSSPageSize=!e.shrinkToFit);try{return{data:(await this.#F.cdpClient.sendCommand("Page.printToPDF",t)).data}}catch(e){if("invalid print parameters: content area is empty"===e.message)throw new J.UnsupportedOperationException(e.message);throw e}}async#Y(e){switch(e.type){case"box":return{x:e.x,y:e.y,width:e.width,height:e.height};case"element":{const t=await this.getOrCreateSandbox(void 0),a=await t.callFunction(String((e=>e instanceof Element)),{type:"undefined"},[e.element],!1,"none",{});if("exception"===a.type)throw new J.NoSuchElementException(`Element '${e.element.sharedId}' was not found`);if((0,G.assert)("boolean"===a.result.type),!a.result.value)throw new J.NoSuchElementException(`Node '${e.element.sharedId}' is not an Element`);{const a=await t.callFunction(String((e=>{const t=e.getBoundingClientRect();return{x:t.x,y:t.y,height:t.height,width:t.width}})),{type:"undefined"},[e.element],!1,"none",{});(0,G.assert)("success"===a.type);const r=re(a.result);if(!r)throw new J.UnableToCaptureScreenException(`Could not get bounding box for Element '${e.element.sharedId}'`);return r}}}}async close(){await this.#F.cdpClient.sendCommand("Page.close")}async traverseHistory(e){if(0===e)return;const t=await this.#F.cdpClient.sendCommand("Page.getNavigationHistory"),a=t.entries[t.currentIndex+e];if(!a)throw new J.NoSuchHistoryEntryException(`No history entry at delta ${e}`);await this.#F.cdpClient.sendCommand("Page.navigateToHistoryEntry",{entryId:a.id})}}function ae(e){return["://",""].includes(e)&&(e="null"),e}function re(e){if("object"!==e.type||void 0===e.value)return;const t=e.value.find((([e])=>"x"===e))?.[1],a=e.value.find((([e])=>"y"===e))?.[1],r=e.value.find((([e])=>"height"===e))?.[1],n=e.value.find((([e])=>"width"===e))?.[1];return"number"===t?.type&&"number"===a?.type&&"number"===r?.type&&"number"===n?.type?{x:t.value,y:a.value,width:n.value,height:r.value}:void 0}function ne(e){return{...e.width<0?{x:e.x+e.width,width:-e.width}:{x:e.x,width:e.width},...e.height<0?{y:e.y+e.height,height:-e.height}:{y:e.y,height:e.height}}}function se(e){if(e=e.trim(),!/^[0-9]+$/.test(e))throw new J.InvalidArgumentException(`Invalid integer: ${e}`);return parseInt(e)}F.BrowsingContextImpl=te,F.serializeOrigin=ae;var oe={},ie={},ce={};Object.defineProperty(ce,"__esModule",{value:!0}),ce.getRemoteValuesText=ce.logMessageFormatter=void 0;const de=$,ue=["%s","%d","%i","%f","%o","%O","%c"];function le(e){return ue.some((t=>e.includes(t)))}function he(e){let t="";const a=e[0].value.toString(),r=e.slice(1,void 0),n=a.split(new RegExp(ue.map((e=>`(${e})`)).join("|"),"g"));for(const a of n)if(void 0!==a&&""!==a)if(le(a)){const n=r.shift();(0,de.assert)(n,`Less value is provided: "${fe(e,!1)}"`),"%s"===a?t+=me(n):"%d"===a||"%i"===a?"bigint"===n.type||"number"===n.type||"string"===n.type?t+=parseInt(n.value.toString(),10):t+="NaN":"%f"===a?"bigint"===n.type||"number"===n.type||"string"===n.type?t+=parseFloat(n.value.toString()):t+="NaN":t+=pe(n)}else t+=a;if(r.length>0)throw new Error(`More value is provided: "${fe(e,!1)}"`);return t}function pe(e){if("array"!==e.type&&"bigint"!==e.type&&"date"!==e.type&&"number"!==e.type&&"object"!==e.type&&"string"!==e.type)return me(e);if("bigint"===e.type)return`${e.value.toString()}n`;if("number"===e.type)return e.value.toString();if(["date","string"].includes(e.type))return JSON.stringify(e.value);if("object"===e.type)return`{${e.value.map((e=>`${JSON.stringify(e[0])}:${pe(e[1])}`)).join(",")}}`;if("array"===e.type)return`[${e.value?.map((e=>pe(e))).join(",")??""}]`;throw Error(`Invalid value type: ${e}`)}function me(e){if(!Object.hasOwn(e,"value"))return e.type;switch(e.type){case"string":case"number":case"boolean":case"bigint":return String(e.value);case"regexp":return`/${e.value.pattern}/${e.value.flags??""}`;case"date":return new Date(e.value).toString();case"object":return`Object(${e.value?.length??""})`;case"array":return`Array(${e.value?.length??""})`;case"map":return`Map(${e.value?.length})`;case"set":return`Set(${e.value?.length})`;default:return e.type}}function fe(e,t){const a=e[0];return a?"string"===a.type&&le(a.value.toString())&&t?he(e):e.map((e=>me(e))).join(" "):""}ce.logMessageFormatter=he,ce.getRemoteValuesText=fe,Object.defineProperty(ie,"__esModule",{value:!0}),ie.LogManager=void 0;const ge=g,ye=ce;function Se(e){const t=e?.callFrames.map((e=>({columnNumber:e.columnNumber,functionName:e.functionName,lineNumber:e.lineNumber,url:e.url})));return t?{callFrames:t}:void 0}class ve{#x;#g;#F;constructor(e,t,a){this.#F=e,this.#g=t,this.#x=a}static create(e,t,a){const r=new ve(e,t,a);return r.#Q(),r}#Q(){this.#F.cdpClient.on("Runtime.consoleAPICalled",(e=>{const t=this.#g.findRealm({cdpSessionId:this.#F.cdpSessionId,executionContextId:e.executionContextId}),a=void 0===t?Promise.resolve(e.args):Promise.all(e.args.map((e=>t.serializeCdpObject(e,"none"))));this.#x.registerPromiseEvent(a.then((a=>{return{kind:"success",value:{type:"event",method:ge.ChromiumBidi.Log.EventNames.LogEntryAdded,params:{level:(r=e.type,["error","assert"].includes(r)?"error":["debug","trace"].includes(r)?"debug":["warn","warning"].includes(r)?"warn":"info"),source:{realm:t?.realmId??"UNKNOWN",context:t?.browsingContextId??"UNKNOWN"},text:(0,ye.getRemoteValuesText)(a,!0),timestamp:Math.round(e.timestamp),stackTrace:Se(e.stackTrace),type:"console",method:"warning"===e.type?"warn":e.type,args:a}}};var r})),t?.browsingContextId??"UNKNOWN",ge.ChromiumBidi.Log.EventNames.LogEntryAdded)})),this.#F.cdpClient.on("Runtime.exceptionThrown",(e=>{const t=this.#g.findRealm({cdpSessionId:this.#F.cdpSessionId,executionContextId:e.exceptionDetails.executionContextId});this.#x.registerPromiseEvent(ve.#ee(e,t).then((a=>({kind:"success",value:{type:"event",method:ge.ChromiumBidi.Log.EventNames.LogEntryAdded,params:{level:"error",source:{realm:t?.realmId??"UNKNOWN",context:t?.browsingContextId??"UNKNOWN"},text:a,timestamp:Math.round(e.timestamp),stackTrace:Se(e.exceptionDetails.stackTrace),type:"javascript"}}}))),t?.browsingContextId??"UNKNOWN",ge.ChromiumBidi.Log.EventNames.LogEntryAdded)}))}static async#ee(e,t){return e.exceptionDetails.exception?void 0===t?JSON.stringify(e.exceptionDetails.exception):await t.stringifyObject(e.exceptionDetails.exception):e.exceptionDetails.text}}ie.LogManager=ve;var we={},be={},Ce={};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction=Ce.cdpFetchHeadersFromBidiNetworkHeaders=Ce.bidiNetworkHeadersFromCdpFetchHeaders=Ce.cdpNetworkHeadersFromBidiNetworkHeaders=Ce.bidiNetworkHeadersFromCdpNetworkHeaders=Ce.computeHeadersSize=void 0,Ce.computeHeadersSize=function(e){const t=e.reduce(((e,t)=>`${e}${t.name}: ${t.value.value}\r\n`),"");return(new TextEncoder).encode(t).length},Ce.bidiNetworkHeadersFromCdpNetworkHeaders=function(e){return e?Object.entries(e).map((([e,t])=>({name:e,value:{type:"string",value:t}}))):[]},Ce.cdpNetworkHeadersFromBidiNetworkHeaders=function(e){if(void 0!==e)return e.reduce(((e,t)=>(e[t.name]=t.value.value,e)),{})},Ce.bidiNetworkHeadersFromCdpFetchHeaders=function(e){return e?e.map((({name:e,value:t})=>({name:e,value:{type:"string",value:t}}))):[]},Ce.cdpFetchHeadersFromBidiNetworkHeaders=function(e){if(void 0!==e)return e.map((({name:e,value:t})=>({name:e,value:t.value})))},Ce.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction=function(e){switch(e){case"default":return"Default";case"cancel":return"CancelAuth";case"provideCredentials":return"ProvideCredentials"}},Object.defineProperty(be,"__esModule",{value:!0}),be.NetworkRequest=void 0;const xe=g,Ie=$,Pe=K,ke=Ce;class Re{static#te="UNKNOWN";#ae;#re=void 0;#ne=!1;#se;#x;#oe;#ie={};#ce={};#de=new Pe.Deferred;#ue=new Pe.Deferred;#le=new Pe.Deferred;#F;constructor(e,t,a,r,n=0){this.#ae=e,this.#x=t,this.#oe=a,this.#F=r,this.#se=n}get requestId(){return this.#ae}get url(){return this.#ce.info?.url??this.#ie.info?.request.url}get redirectCount(){return this.#se}get cdpTarget(){return this.#F}isRedirecting(){return Boolean(this.#ie.info)}handleRedirect(e){this.#he(),this.#pe(),this.#ce.hasExtraInfo=e.redirectHasExtraInfo,this.#ce.info=e.redirectResponse,this.#me(!0)}#me(e=!1){const t=e||Boolean(this.#ie.extraInfo)||this.#ne||Boolean(this.#ce.info&&!this.#ce.hasExtraInfo)||"beforeRequestSent"===this.#re;this.#ie.info&&t&&this.#de.resolve({kind:"success",value:void 0});const a=Boolean(this.#ce.extraInfo)||this.#ne||Boolean(this.#ce.info&&!this.#ce.hasExtraInfo)||"responseStarted"===this.#re;this.#ce.info&&a&&(this.#ue.resolve({kind:"success",value:void 0}),this.#le.resolve({kind:"success",value:void 0}))}onRequestWillBeSentEvent(e){this.#ie.info=e,this.#fe(),this.#me()}onRequestWillBeSentExtraInfoEvent(e){this.#ie.extraInfo=e,this.#me()}onResponseReceivedExtraInfoEvent(e){this.#ce.extraInfo=e,this.#me()}onResponseReceivedEvent(e){this.#ce.hasExtraInfo=e.hasExtraInfo,this.#ce.info=e.response,this.#he(),this.#pe(),this.#me()}onServedFromCache(){this.#ne=!0,this.#me()}onLoadingFailedEvent(e){this.#de.resolve({kind:"success",value:void 0}),this.#ue.resolve({kind:"error",error:new Error("Network event loading failed")}),this.#le.resolve({kind:"error",error:new Error("Network event loading failed")}),this.#x.registerEvent({type:"event",method:xe.ChromiumBidi.Network.EventNames.FetchError,params:{...this.#ge(),errorText:e.errorText}},this.#ye)}onRequestPaused(e,t){if(this.#Se())return void this.continueRequest(e.requestId).catch((()=>{}));let a;a=void 0===e.responseErrorReason&&void 0===e.responseStatusCode?"beforeRequestSent":401===e.responseStatusCode&&"Unauthorized"===e.responseStatusText?"authRequired":"responseStarted";const r=(0,ke.bidiNetworkHeadersFromCdpFetchHeaders)(e.responseHeaders);(0,Ie.assert)(this.requestId===e.networkId),t.addBlockedRequest(this.requestId,{request:e.requestId,phase:a,response:{url:e.request.url,protocol:"",status:e.responseStatusCode??0,statusText:e.responseStatusText??"",fromCache:!1,headers:r,mimeType:"",bytesReceived:0,headersSize:(0,ke.computeHeadersSize)(r),bodySize:0,content:{size:0},authChallenge:void 0}}),this.#re=a,this.#me()}async failRequest(e,t){await this.#F.cdpClient.sendCommand("Fetch.failRequest",{requestId:e,errorReason:t}),this.#re=void 0}async continueRequest(e,t,a,r){await this.#F.cdpClient.sendCommand("Fetch.continueRequest",{requestId:e,url:t,method:a,headers:r}),this.#re=void 0}async continueResponse(e,t,a,r){await this.#F.cdpClient.sendCommand("Fetch.continueResponse",{requestId:e,responseCode:t,responsePhrase:a,responseHeaders:r}),this.#re=void 0}async continueWithAuth(e,t,a,r){await this.#F.cdpClient.sendCommand("Fetch.continueWithAuth",{requestId:e,authChallengeResponse:{response:t,username:a,password:r}}),this.#re=void 0}async provideResponse(e,t,a,r,n){await this.#F.cdpClient.sendCommand("Fetch.fulfillRequest",{requestId:e,responseCode:t,responsePhrase:a,responseHeaders:r,...n?{body:btoa(n)}:{}}),this.#re=void 0}dispose(){const e={kind:"error",error:new Error("Network processor detached")};this.#de.resolve(e),this.#ue.resolve(e),this.#le.resolve(e)}get#ye(){return this.#ie.info?.frameId??null}get statusCode(){return this.#ce.info?.status??this.#ce.extraInfo?.statusCode??-1}#ge(e){const t=void 0!==e&&e===this.#re,a=this.#oe.getNetworkIntercepts(this.#ae,e);return{isBlocked:t,context:this.#ye,navigation:this.#ve(),redirectCount:this.#se,request:this.#we(),timestamp:Math.round(1e3*(this.#ie.info?.wallTime??0)),intercepts:t?a:void 0}}#ve(){return this.#ie.info&&this.#ie.info.loaderId&&this.#ie.info.loaderId===this.#ie.info.requestId?this.#ie.info.loaderId:null}#we(){const e=this.#ie.extraInfo?Re.#be(this.#ie.extraInfo.associatedCookies):[],t=(0,ke.bidiNetworkHeadersFromCdpNetworkHeaders)(this.#ie.info?.request.headers);return{request:this.#ie.info?.requestId??Re.#te,url:this.#ie.info?.request.url??Re.#te,method:this.#ie.info?.request.method??Re.#te,headers:t,cookies:e,headersSize:(0,ke.computeHeadersSize)(t),bodySize:0,timings:this.#Ce()}}#Ce(){return{timeOrigin:0,requestTime:0,redirectStart:0,redirectEnd:0,fetchStart:0,dnsStart:0,dnsEnd:0,connectStart:0,connectEnd:0,tlsStart:0,requestStart:0,responseStart:0,responseEnd:0}}#fe(){this.#Se()||this.#x.registerPromiseEvent(this.#de.then((e=>{if("success"===e.kind)try{return{kind:"success",value:Object.assign(this.#xe(),{type:"event"})}}catch(e){return{kind:"error",error:e instanceof Error?e:new Error("Unknown")}}return e})),this.#ye,xe.ChromiumBidi.Network.EventNames.BeforeRequestSent)}#xe(){return(0,Ie.assert)(this.#ie.info,"RequestWillBeSentEvent is not set"),{method:xe.ChromiumBidi.Network.EventNames.BeforeRequestSent,params:{...this.#ge("beforeRequestSent"),initiator:{type:Re.#Ie(this.#ie.info.initiator.type)}}}}#he(){this.#Se()||this.#x.registerPromiseEvent(this.#ue.then((e=>{if("success"===e.kind)try{return{kind:"success",value:Object.assign(this.#Pe(),{type:"event"})}}catch(e){return{kind:"error",error:e instanceof Error?e:new Error("Unknown")}}return e})),this.#ye,xe.ChromiumBidi.Network.EventNames.ResponseStarted)}#Pe(){(0,Ie.assert)(this.#ie.info,"RequestWillBeSentEvent is not set"),(0,Ie.assert)(this.#ce.info,"ResponseReceivedEvent is not set"),this.#ce.info.fromDiskCache&&(this.#ce.extraInfo=void 0);const e=(0,ke.bidiNetworkHeadersFromCdpNetworkHeaders)(this.#ce.info.headers);return{method:xe.ChromiumBidi.Network.EventNames.ResponseStarted,params:{...this.#ge(),response:{url:this.#ce.info.url??Re.#te,protocol:this.#ce.info.protocol??"",status:this.statusCode,statusText:this.#ce.info.statusText,fromCache:this.#ce.info.fromDiskCache||this.#ce.info.fromPrefetchCache||this.#ne,headers:e,mimeType:this.#ce.info.mimeType,bytesReceived:this.#ce.info.encodedDataLength,headersSize:(0,ke.computeHeadersSize)(e),bodySize:0,content:{size:0}}}}}#pe(){this.#Se()||this.#x.registerPromiseEvent(this.#le.then((e=>{if("success"===e.kind)try{return{kind:"success",value:Object.assign(this.#ke(),{type:"event"})}}catch(e){return{kind:"error",error:e instanceof Error?e:new Error("Unknown")}}return e})),this.#ye,xe.ChromiumBidi.Network.EventNames.ResponseCompleted)}#ke(){(0,Ie.assert)(this.#ie.info,"RequestWillBeSentEvent is not set"),(0,Ie.assert)(this.#ce.info,"ResponseReceivedEvent is not set"),this.#ce.info.fromDiskCache&&(this.#ce.extraInfo=void 0);const e=(0,ke.bidiNetworkHeadersFromCdpNetworkHeaders)(this.#ce.info.headers);return{method:xe.ChromiumBidi.Network.EventNames.ResponseCompleted,params:{...this.#ge(),response:{url:this.#ce.info.url??Re.#te,protocol:this.#ce.info.protocol??"",status:this.statusCode,statusText:this.#ce.info.statusText,fromCache:this.#ce.info.fromDiskCache||this.#ce.info.fromPrefetchCache||this.#ne,headers:e,mimeType:this.#ce.info.mimeType,bytesReceived:this.#ce.info.encodedDataLength,headersSize:(0,ke.computeHeadersSize)(e),bodySize:0,content:{size:0}}}}}#Se(){return this.#ie.info?.request.url.endsWith("/favicon.ico")??!1}static#Ie(e){switch(e){case"parser":case"script":case"preflight":return e;default:return"other"}}static#be(e){return e.filter((({blockedReasons:e})=>!Array.isArray(e)||0===e.length)).map((({cookie:e})=>({name:e.name,value:{type:"string",value:e.value},domain:e.domain,path:e.path,expires:e.expires,size:e.size,httpOnly:e.httpOnly,secure:e.secure,sameSite:Re.#Re(e.sameSite)})))}static#Re(e){switch(e){case"Strict":return"strict";case"Lax":return"lax";default:return"none"}}}be.NetworkRequest=Re,Object.defineProperty(we,"__esModule",{value:!0}),we.NetworkManager=void 0;const Ee=be;class _e{#F;#x;#oe;constructor(e,t,a){this.#F=e,this.#x=t,this.#oe=a}get cdpTarget(){return this.#F}#Ee(e,t){let a=this.#oe.getRequest(e);return a||(a=new Ee.NetworkRequest(e,this.#x,this.#oe,this.#F,t),this.#oe.addRequest(a),a)}static create(e,t,a){const r=new _e(e,t,a);return e.browserCdpClient.on("Target.detachedFromTarget",(t=>{e.cdpClient.sessionId===t.sessionId&&r.#oe.disposeRequestMap()})),e.cdpClient.on("Network.requestWillBeSent",(e=>{const t=r.#oe.getRequest(e.requestId);t&&t.isRedirecting()?(t.handleRedirect(e),r.#oe.deleteRequest(e.requestId),r.#Ee(e.requestId,t.redirectCount+1).onRequestWillBeSentEvent(e)):t?t.onRequestWillBeSentEvent(e):r.#Ee(e.requestId).onRequestWillBeSentEvent(e)})),e.cdpClient.on("Network.requestWillBeSentExtraInfo",(e=>{r.#Ee(e.requestId).onRequestWillBeSentExtraInfoEvent(e)})),e.cdpClient.on("Network.responseReceived",(e=>{r.#Ee(e.requestId).onResponseReceivedEvent(e)})),e.cdpClient.on("Network.responseReceivedExtraInfo",(e=>{r.#Ee(e.requestId).onResponseReceivedExtraInfoEvent(e)})),e.cdpClient.on("Network.requestServedFromCache",(e=>{r.#Ee(e.requestId).onServedFromCache()})),e.cdpClient.on("Network.loadingFailed",(e=>{r.#Ee(e.requestId).onLoadingFailedEvent(e)})),e.cdpClient.on("Fetch.requestPaused",(e=>{e.networkId&&r.#Ee(e.networkId).onRequestPaused(e,r.#oe)})),r}}we.NetworkManager=_e,Object.defineProperty(oe,"__esModule",{value:!0}),oe.CdpTarget=void 0;const Te=K,Ne=ie,je=we;class Me{#_e;#C;#o;#Te;#x;#Ne;#oe;#je=new Te.Deferred;#Me;static create(e,t,a,r,n,s,o,i,c){const d=new Me(e,t,a,r,s,o,i,c);return Ne.LogManager.create(d,n,s),je.NetworkManager.create(d,s,i),d.#Oe(),d.#Ae(),d}constructor(e,t,a,r,n,s,o,i){this.#_e=e,this.#C=t,this.#Te=r,this.#x=n,this.#Ne=s,this.#oe=o,this.#o=a,this.#Me=i}get targetUnblocked(){return this.#je}get targetId(){return this.#_e}get cdpClient(){return this.#C}get browserCdpClient(){return this.#o}get cdpSessionId(){return this.#Te}async fetchEnable(){await this.#C.sendCommand("Fetch.enable",this.#oe.getFetchEnableParams())}async fetchDisable(){await this.#C.sendCommand("Fetch.disable")}async#Ae(){try{await Promise.all([this.#C.sendCommand("Runtime.enable"),this.#C.sendCommand("Page.enable"),this.#C.sendCommand("Page.setLifecycleEventsEnabled",{enabled:!0}),this.#C.sendCommand("Security.setIgnoreCertificateErrors",{ignore:this.#Me}),this.#C.sendCommand("Network.enable"),this.fetchEnable(),this.#C.sendCommand("Target.setAutoAttach",{autoAttach:!0,waitForDebuggerOnStart:!0,flatten:!0}),this.#Be(),this.#C.sendCommand("Runtime.runIfWaitingForDebugger")])}catch(e){if(!this.#C.isCloseError(e))return void this.#je.resolve({kind:"error",error:e})}this.#je.resolve({kind:"success",value:void 0})}#Oe(){this.#C.on("*",((e,t)=>{"string"==typeof e&&this.#x.registerEvent({type:"event",method:`cdp.${e}`,params:{event:e,params:t,session:this.#Te}},null)}))}getChannels(){return this.#Ne.find().flatMap((e=>e.channels))}async#Be(){for(const e of this.#Ne.find({global:!0}))await e.initInTarget(this,!0)}}oe.CdpTarget=Me,Object.defineProperty(T,"__esModule",{value:!0}),T.BrowsingContextProcessor=void 0;const Oe=g,Ae=l,Be=N,De=F,ze=oe;T.BrowsingContextProcessor=class{#o;#c;#De;#x;#i;#oe;#Me;#Ne;#g;#t;constructor(e,t,a,r,n,s,o,i,c,d){this.#Me=c,this.#c=e,this.#o=t,this.#De=a,this.#x=r,this.#i=n,this.#Ne=i,this.#oe=o,this.#g=s,this.#t=d,this.#Oe(t)}getTree(e){return{contexts:(void 0===e.root?this.#i.getTopLevelContexts():[this.#i.getContext(e.root)]).map((t=>t.serializeToBidiValue(e.maxDepth??Number.MAX_VALUE)))}}async create(e){let t,a;if(void 0!==e.referenceContext&&(t=this.#i.getContext(e.referenceContext),!t.isTopLevelContext()))throw new Oe.InvalidArgumentException("referenceContext should be a top-level context");switch(e.type){case"tab":a=await this.#o.sendCommand("Target.createTarget",{url:"about:blank",newWindow:!1});break;case"window":a=await this.#o.sendCommand("Target.createTarget",{url:"about:blank",newWindow:!0})}const r=a.targetId,n=this.#i.getContext(r);return await n.lifecycleLoaded(),{context:n.id}}navigate(e){return this.#i.getContext(e.context).navigate(e.url,e.wait??"none")}reload(e){return this.#i.getContext(e.context).reload(e.ignoreCache??!1,e.wait??"none")}async activate(e){const t=this.#i.getContext(e.context);if(!t.isTopLevelContext())throw new Oe.InvalidArgumentException("Activation is only supported on the top-level context");return await t.activate(),{}}async captureScreenshot(e){const t=this.#i.getContext(e.context);return await t.captureScreenshot(e)}async print(e){const t=this.#i.getContext(e.context);return await t.print(e)}async setViewport(e){const t=this.#i.getContext(e.context);if(!t.isTopLevelContext())throw new Oe.InvalidArgumentException("Emulating viewport is only supported on the top-level context");return await t.setViewport(e.viewport,e.devicePixelRatio),{}}async traverseHistory(e){const t=this.#i.getContext(e.context);if(!t)throw new Oe.InvalidArgumentException(`No browsing context with id ${e.context}`);return await t.traverseHistory(e.delta),{}}async handleUserPrompt(e){const t=this.#i.getContext(e.context);return await t.handleUserPrompt(e),{}}async close(e){const t=this.#i.getContext(e.context);if(!t.isTopLevelContext())throw new Oe.InvalidArgumentException(`Non top-level browsing context ${t.id} cannot be closed.`);try{const a=new Promise((t=>{const a=r=>{r.targetId===e.context&&(this.#o.off("Target.detachedFromTarget",a),t())};this.#o.on("Target.detachedFromTarget",a)}));e.promptUnload?await t.close():await this.#o.sendCommand("Target.closeTarget",{targetId:e.context}),await a}catch(e){if(-32e3!==e.code||"Not attached to an active page"!==e.message)throw e}return{}}#Oe(e){e.on("Target.attachedToTarget",(t=>{this.#ze(t,e)})),e.on("Target.detachedFromTarget",(e=>{this.#Le(e)})),e.on("Target.targetInfoChanged",(e=>{this.#Ze(e)})),e.on("Page.frameAttached",(e=>{this.#Ue(e)})),e.on("Page.frameDetached",(e=>{this.#qe(e)}))}#Ue(e){const t=this.#i.findContext(e.parentFrameId);void 0!==t&&De.BrowsingContextImpl.create(t.cdpTarget,this.#g,e.frameId,e.parentFrameId,this.#x,this.#i,this.#t)}#qe(e){"swap"!==e.reason&&this.#i.findContext(e.frameId)?.dispose()}#ze(e,t){const{sessionId:a,targetInfo:r}=e,n=this.#c.getCdpClient(a);switch(this.#t?.(Ae.LogType.debugInfo,"AttachedToTarget event received:",e),r.type){case"page":case"iframe":{if(r.targetId===this.#De)break;this.#Oe(n);const e=ze.CdpTarget.create(r.targetId,n,this.#o,a,this.#g,this.#x,this.#Ne,this.#oe,this.#Me),t=this.#i.findContext(r.targetId);return void(t?t.updateCdpTarget(e):De.BrowsingContextImpl.create(e,this.#g,r.targetId,null,this.#x,this.#i,this.#t))}case"worker":{this.#Oe(n);const e=ze.CdpTarget.create(r.targetId,n,this.#o,a,this.#g,this.#x,this.#Ne,this.#oe,this.#Me),s=t.sessionId&&this.#i.findContextBySession(t.sessionId);if(!s)break;return void this.#Ve(e,s.id)}}n.sendCommand("Runtime.runIfWaitingForDebugger").then((()=>t.sendCommand("Target.detachFromTarget",e))).catch((e=>this.#t?.(Ae.LogType.debugError,e)))}#Fe=new Map;#Ve(e,t){e.cdpClient.on("Runtime.executionContextCreated",(a=>{const{uniqueId:r,id:n,origin:s}=a.context,o=new Be.Realm(this.#g,this.#i,r,t,n,(0,De.serializeOrigin)(s),"dedicated-worker",void 0,e.cdpClient,this.#x,this.#t);this.#Fe.set(e.cdpSessionId,o)}))}#Le(e){const t=this.#i.findContextBySession(e.sessionId);if(t)return t.dispose(),void this.#Ne.find({targetId:t.id}).map((e=>e.dispose(t.id)));const a=this.#Fe.get(e.sessionId);a&&this.#g.deleteRealms({cdpSessionId:a.cdpClient.sessionId})}#Ze(e){const t=this.#i.findContext(e.targetInfo.targetId);t&&t.onTargetInfoChanged(e)}};var Le={},Ze={},Ue={};Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.WheelSource=Ue.PointerSource=Ue.KeySource=Ue.NoneSource=void 0;Ue.NoneSource=class{type="none"};Ue.KeySource=class{type="key";pressed=new Set;#$e=0;get modifiers(){return this.#$e}get alt(){return 1==(1&this.#$e)}set alt(e){this.#Ke(e,1)}get ctrl(){return 2==(2&this.#$e)}set ctrl(e){this.#Ke(e,2)}get meta(){return 4==(4&this.#$e)}set meta(e){this.#Ke(e,4)}get shift(){return 8==(8&this.#$e)}set shift(e){this.#Ke(e,8)}#Ke(e,t){e?this.#$e|=t:this.#$e&=~t}};Ue.PointerSource=class{type="pointer";subtype;pointerId;pressed=new Set;x=0;y=0;constructor(e,t){this.pointerId=e,this.subtype=t}get buttons(){let e=0;for(const t of this.pressed)switch(t){case 0:e|=1;break;case 1:e|=4;break;case 2:e|=2;break;case 3:e|=8;break;case 4:e|=16}return e}static ClickContext=class e{static#He=500;static#We=2;count=0;#Je;#Ge;#Xe;constructor(e,t,a){this.#Je=e,this.#Ge=t,this.#Xe=a}compare(t){return t.#Xe-this.#Xe>e.#He||Math.abs(t.#Je-this.#Je)>e.#We||Math.abs(t.#Ge-this.#Ge)>e.#We}};#Ye=new Map;setClickCount(e,t){let a=this.#Ye.get(e);return a&&!a.compare(t)||(a=t),++a.count,this.#Ye.set(e,a),a.count}getClickCount(e){return this.#Ye.get(e)?.count??0}};Ue.WheelSource=class{type="wheel"};var qe={};Object.defineProperty(qe,"__esModule",{value:!0}),qe.getKeyLocation=qe.getKeyCode=qe.getNormalizedKey=void 0,qe.getNormalizedKey=function(e){switch(e){case"\ue000":return"Unidentified";case"\ue001":return"Cancel";case"\ue002":return"Help";case"\ue003":return"Backspace";case"\ue004":return"Tab";case"\ue005":return"Clear";case"\ue006":return"Return";case"\ue007":return"Enter";case"\ue008":case"\ue050":return"Shift";case"\ue009":case"\ue051":return"Control";case"\ue00a":case"\ue052":return"Alt";case"\ue00b":return"Pause";case"\ue00c":return"Escape";case"\ue00d":return" ";case"\ue00e":case"\ue054":return"PageUp";case"\ue00f":case"\ue055":return"PageDown";case"\ue010":case"\ue056":return"End";case"\ue011":case"\ue057":return"Home";case"\ue012":case"\ue058":return"ArrowLeft";case"\ue013":case"\ue059":return"ArrowUp";case"\ue014":case"\ue05a":return"ArrowRight";case"\ue015":case"\ue05b":return"ArrowDown";case"\ue016":case"\ue05c":return"Insert";case"\ue017":case"\ue05d":return"Delete";case"\ue018":return";";case"\ue019":return"=";case"\ue01a":return"0";case"\ue01b":return"1";case"\ue01c":return"2";case"\ue01d":return"3";case"\ue01e":return"4";case"\ue01f":return"5";case"\ue020":return"6";case"\ue021":return"7";case"\ue022":return"8";case"\ue023":return"9";case"\ue024":return"*";case"\ue025":return"+";case"\ue026":return",";case"\ue027":return"-";case"\ue028":return".";case"\ue029":return"/";case"\ue031":return"F1";case"\ue032":return"F2";case"\ue033":return"F3";case"\ue034":return"F4";case"\ue035":return"F5";case"\ue036":return"F6";case"\ue037":return"F7";case"\ue038":return"F8";case"\ue039":return"F9";case"\ue03a":return"F10";case"\ue03b":return"F11";case"\ue03c":return"F12";case"\ue03d":case"\ue053":return"Meta";case"\ue040":return"ZenkakuHankaku";default:return e}},qe.getKeyCode=function(e){switch(e){case"`":case"~":return"Backquote";case"\\":case"|":return"Backslash";case"\ue003":return"Backspace";case"[":case"{":return"BracketLeft";case"]":case"}":return"BracketRight";case",":case"<":return"Comma";case"0":case")":return"Digit0";case"1":case"!":return"Digit1";case"2":case"@":return"Digit2";case"3":case"#":return"Digit3";case"4":case"$":return"Digit4";case"5":case"%":return"Digit5";case"6":case"^":return"Digit6";case"7":case"&":return"Digit7";case"8":case"*":return"Digit8";case"9":case"(":return"Digit9";case"=":case"+":return"Equal";case"a":case"A":return"KeyA";case"b":case"B":return"KeyB";case"c":case"C":return"KeyC";case"d":case"D":return"KeyD";case"e":case"E":return"KeyE";case"f":case"F":return"KeyF";case"g":case"G":return"KeyG";case"h":case"H":return"KeyH";case"i":case"I":return"KeyI";case"j":case"J":return"KeyJ";case"k":case"K":return"KeyK";case"l":case"L":return"KeyL";case"m":case"M":return"KeyM";case"n":case"N":return"KeyN";case"o":case"O":return"KeyO";case"p":case"P":return"KeyP";case"q":case"Q":return"KeyQ";case"r":case"R":return"KeyR";case"s":case"S":return"KeyS";case"t":case"T":return"KeyT";case"u":case"U":return"KeyU";case"v":case"V":return"KeyV";case"w":case"W":return"KeyW";case"x":case"X":return"KeyX";case"y":case"Y":return"KeyY";case"z":case"Z":return"KeyZ";case"-":case"_":return"Minus";case".":return"Period";case"'":case'"':return"Quote";case";":case":":return"Semicolon";case"/":case"?":return"Slash";case"\ue00a":return"AltLeft";case"\ue052":return"AltRight";case"\ue009":return"ControlLeft";case"\ue051":return"ControlRight";case"\ue006":return"Enter";case"\ue03d":return"MetaLeft";case"\ue053":return"MetaRight";case"\ue008":return"ShiftLeft";case"\ue050":return"ShiftRight";case" ":case"\ue00d":return"Space";case"\ue004":return"Tab";case"\ue017":return"Delete";case"\ue010":return"End";case"\ue002":return"Help";case"\ue011":return"Home";case"\ue016":return"Insert";case"\ue00f":return"PageDown";case"\ue00e":return"PageUp";case"\ue015":return"ArrowDown";case"\ue012":return"ArrowLeft";case"\ue014":return"ArrowRight";case"\ue013":return"ArrowUp";case"\ue00c":return"Escape";case"\ue031":return"F1";case"\ue032":return"F2";case"\ue033":return"F3";case"\ue034":return"F4";case"\ue035":return"F5";case"\ue036":return"F6";case"\ue037":return"F7";case"\ue038":return"F8";case"\ue039":return"F9";case"\ue03a":return"F10";case"\ue03b":return"F11";case"\ue03c":return"F12";case"\ue01a":case"\ue05c":return"Numpad0";case"\ue01b":case"\ue056":return"Numpad1";case"\ue01c":case"\ue05b":return"Numpad2";case"\ue01d":case"\ue055":return"Numpad3";case"\ue01e":case"\ue058":return"Numpad4";case"\ue01f":return"Numpad5";case"\ue020":case"\ue05a":return"Numpad6";case"\ue021":case"\ue057":return"Numpad7";case"\ue022":case"\ue059":return"Numpad8";case"\ue023":case"\ue054":return"Numpad9";case"\ue025":return"NumpadAdd";case"\ue026":return"NumpadComma";case"\ue028":case"\ue05d":return"NumpadDecimal";case"\ue029":return"NumpadDivide";case"\ue007":return"NumpadEnter";case"\ue024":return"NumpadMultiply";case"\ue027":return"NumpadSubtract";default:return}},qe.getKeyLocation=function(e){switch(e){case"\ue007":case"\ue008":case"\ue009":case"\ue00a":case"\ue03d":return 1;case"\ue01a":case"\ue01b":case"\ue01c":case"\ue01d":case"\ue01e":case"\ue01f":case"\ue020":case"\ue021":case"\ue022":case"\ue023":case"\ue024":case"\ue025":case"\ue026":case"\ue027":case"\ue028":case"\ue029":case"\ue054":case"\ue055":case"\ue056":case"\ue057":case"\ue058":case"\ue059":case"\ue05a":case"\ue05b":case"\ue05c":case"\ue05d":return 3;case"\ue050":case"\ue051":case"\ue052":case"\ue053":return 2;default:return 0}};var Ve={};Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.KeyToKeyCode=void 0,Ve.KeyToKeyCode={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,Abort:3,Help:6,Backspace:8,Tab:9,Numpad5:12,NumpadEnter:13,Enter:13,"\\r":13,"\\n":13,ShiftLeft:16,ShiftRight:16,ControlLeft:17,ControlRight:17,AltLeft:18,AltRight:18,Pause:19,CapsLock:20,Escape:27,Convert:28,NonConvert:29,Space:32,Numpad9:33,PageUp:33,Numpad3:34,PageDown:34,End:35,Numpad1:35,Home:36,Numpad7:36,ArrowLeft:37,Numpad4:37,Numpad8:38,ArrowUp:38,ArrowRight:39,Numpad6:39,Numpad2:40,ArrowDown:40,Select:41,Open:43,PrintScreen:44,Insert:45,Numpad0:45,Delete:46,NumpadDecimal:46,Digit0:48,Digit1:49,Digit2:50,Digit3:51,Digit4:52,Digit5:53,Digit6:54,Digit7:55,Digit8:56,Digit9:57,KeyA:65,KeyB:66,KeyC:67,KeyD:68,KeyE:69,KeyF:70,KeyG:71,KeyH:72,KeyI:73,KeyJ:74,KeyK:75,KeyL:76,KeyM:77,KeyN:78,KeyO:79,KeyP:80,KeyQ:81,KeyR:82,KeyS:83,KeyT:84,KeyU:85,KeyV:86,KeyW:87,KeyX:88,KeyY:89,KeyZ:90,MetaLeft:91,MetaRight:92,ContextMenu:93,NumpadMultiply:106,NumpadAdd:107,NumpadSubtract:109,NumpadDivide:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135,NumLock:144,ScrollLock:145,AudioVolumeMute:173,AudioVolumeDown:174,AudioVolumeUp:175,MediaTrackNext:176,MediaTrackPrevious:177,MediaStop:178,MediaPlayPause:179,Semicolon:186,Equal:187,NumpadEqual:187,Comma:188,Minus:189,Period:190,Slash:191,Backquote:192,BracketLeft:219,Backslash:220,BracketRight:221,Quote:222,AltGraph:225,Props:247,Cancel:3,Clear:12,Shift:16,Control:17,Alt:18,Accept:30,ModeChange:31," ":32,Print:42,Execute:43,"\\u0000":46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,Meta:91,"*":106,"+":107,"-":109,"/":111,";":186,"=":187,",":188,".":190,"`":192,"[":219,"\\\\":220,"]":221,"'":222,Attn:246,CrSel:247,ExSel:248,EraseEof:249,Play:250,ZoomOut:251,")":48,"!":49,"@":50,"#":51,$:52,"%":53,"^":54,"&":55,"(":57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,":":186,"<":188,_:189,">":190,"?":191,"~":192,"{":219,"|":220,"}":221,'"':222,Camera:44,EndCall:95,VolumeDown:182,VolumeUp:183},Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.ActionDispatcher=void 0;const Fe=g,$e=$,Ke=Ue,He=qe,We=Ve,Je=(e=>{const t=e.getClientRects()[0],a=Math.max(0,Math.min(t.x,t.x+t.width)),r=Math.min(window.innerWidth,Math.max(t.x,t.x+t.width)),n=Math.max(0,Math.min(t.y,t.y+t.height));return[a+(r-a>>1),n+(Math.min(window.innerHeight,Math.max(t.y,t.y+t.height))-n>>1)]}).toString(),Ge=(()=>navigator.platform.toLowerCase().includes("mac")).toString();Ze.ActionDispatcher=class{static isMacOS=async e=>{const t=await(await e.getOrCreateSandbox(void 0)).callFunction(Ge,{type:"undefined"},[],!1,"none",{});return(0,$e.assert)("exception"!==t.type),(0,$e.assert)("boolean"===t.result.type),t.result.value};#Qe=0;#et=0;#tt;#ye;#at;constructor(e,t,a){this.#tt=e,this.#ye=t,this.#at=a}async dispatchActions(e){await this.#tt.queue.run((async()=>{for(const t of e)await this.dispatchTickActions(t)}))}async dispatchTickActions(e){this.#Qe=performance.now(),this.#et=0;for(const{action:t}of e)"duration"in t&&void 0!==t.duration&&(this.#et=Math.max(this.#et,t.duration));const t=[new Promise((e=>setTimeout(e,this.#et)))];for(const a of e)t.push(this.#rt(a));await Promise.all(t)}async#rt({id:e,action:t}){const a=this.#tt.get(e),r=this.#tt.getGlobalKeyState();switch(t.type){case"keyDown":await this.#nt(a,t),this.#tt.cancelList.push({id:e,action:{...t,type:"keyUp"}});break;case"keyUp":await this.#st(a,t);break;case"pause":break;case"pointerDown":await this.#ot(a,r,t),this.#tt.cancelList.push({id:e,action:{...t,type:"pointerUp"}});break;case"pointerMove":await this.#it(a,r,t);break;case"pointerUp":await this.#ct(a,r,t);break;case"scroll":await this.#dt(a,r,t)}}#ot(e,t,a){const{button:r}=a;if(e.pressed.has(r))return;e.pressed.add(r);const{x:n,y:s,subtype:o}=e,{width:i,height:c,pressure:d,twist:u,tangentialPressure:l}=a,{tiltX:h,tiltY:p}=et(a),{modifiers:m}=t;switch(o){case"mouse":case"pen":return this.#ye.cdpTarget.cdpClient.sendCommand("Input.dispatchMouseEvent",{type:"mousePressed",x:n,y:s,modifiers:m,button:Qe(r),buttons:e.buttons,clickCount:e.setClickCount(r,new Ke.PointerSource.ClickContext(n,s,performance.now())),pointerType:o,tangentialPressure:l,tiltX:h,tiltY:p,twist:u,force:d});case"touch":return this.#ye.cdpTarget.cdpClient.sendCommand("Input.dispatchTouchEvent",{type:"touchStart",touchPoints:[{x:n,y:s,...tt(i??1,c??1),tangentialPressure:l,tiltX:h,tiltY:p,twist:u,force:d,id:e.pointerId}],modifiers:m})}}#ct(e,t,a){const{button:r}=a;if(!e.pressed.has(r))return;e.pressed.delete(r);const{x:n,y:s,subtype:o}=e,{modifiers:i}=t;switch(o){case"mouse":case"pen":return this.#ye.cdpTarget.cdpClient.sendCommand("Input.dispatchMouseEvent",{type:"mouseReleased",x:n,y:s,modifiers:i,button:Qe(r),buttons:e.buttons,clickCount:e.getClickCount(r),pointerType:o});case"touch":return this.#ye.cdpTarget.cdpClient.sendCommand("Input.dispatchTouchEvent",{type:"touchEnd",touchPoints:[{x:n,y:s,id:e.pointerId}],modifiers:i})}}async#it(e,t,a){const{x:r,y:n,subtype:s}=e,{width:o,height:i,pressure:c,twist:d,tangentialPressure:u,x:l,y:h,origin:p="viewport",duration:m=this.#et}=a,{tiltX:f,tiltY:g}=et(a),{targetX:y,targetY:S}=await this.#ut(p,l,h,r,n);if(y<0||S<0)throw new Fe.MoveTargetOutOfBoundsException(`Cannot move beyond viewport (x: ${y}, y: ${S})`);let v;do{const a=m>0?(performance.now()-this.#Qe)/m:1;let l,h;if(v=a>=1,v?(l=y,h=S):(l=Math.round(a*(y-r)+r),h=Math.round(a*(S-n)+n)),e.x!==l||e.y!==h){const{modifiers:a}=t;switch(s){case"mouse":await this.#ye.cdpTarget.cdpClient.sendCommand("Input.dispatchMouseEvent",{type:"mouseMoved",x:l,y:h,modifiers:a,clickCount:0,button:Qe(e.pressed.values().next().value??5),buttons:e.buttons,pointerType:s,tangentialPressure:u,tiltX:f,tiltY:g,twist:d,force:c});break;case"pen":0!==e.pressed.size&&await this.#ye.cdpTarget.cdpClient.sendCommand("Input.dispatchMouseEvent",{type:"mouseMoved",x:l,y:h,modifiers:a,clickCount:0,button:Qe(e.pressed.values().next().value??5),buttons:e.buttons,pointerType:s,tangentialPressure:u,tiltX:f,tiltY:g,twist:d,force:c});break;case"touch":0!==e.pressed.size&&await this.#ye.cdpTarget.cdpClient.sendCommand("Input.dispatchTouchEvent",{type:"touchMove",touchPoints:[{x:l,y:h,...tt(o??1,i??1),tangentialPressure:u,tiltX:f,tiltY:g,twist:d,force:c,id:e.pointerId}],modifiers:a})}e.x=l,e.y=h}}while(!v)}async#ut(e,t,a,r,n){let s,o;switch(e){case"viewport":s=t,o=a;break;case"pointer":s=r+t,o=n+a;break;default:{const{x:r,y:n}=await async function(e,t){const a=await e.getOrCreateSandbox(void 0),r=await a.callFunction(Je,{type:"undefined"},[t],!1,"none",{});if("exception"===r.type)throw new Fe.NoSuchElementException(`Origin element ${t.sharedId} was not found`);(0,$e.assert)("array"===r.result.type),(0,$e.assert)("number"===r.result.value?.[0]?.type),(0,$e.assert)("number"===r.result.value?.[1]?.type);const{result:{value:[{value:n},{value:s}]}}=r;return{x:n,y:s}}(this.#ye,e.element);s=r+t,o=n+a;break}}return{targetX:s,targetY:o}}async#dt(e,t,a){const{deltaX:r,deltaY:n,x:s,y:o,origin:i="viewport",duration:c=this.#et}=a;if("pointer"===i)throw new Fe.InvalidArgumentException('"pointer" origin is invalid for scrolling.');const{targetX:d,targetY:u}=await this.#ut(i,s,o,0,0);if(d<0||u<0)throw new Fe.MoveTargetOutOfBoundsException(`Cannot move beyond viewport (x: ${d}, y: ${u})`);let l,h=0,p=0;do{const e=c>0?(performance.now()-this.#Qe)/c:1;let a,s;if(l=e>=1,l?(a=r-h,s=n-p):(a=Math.round(e*r-h),s=Math.round(e*n-p)),0!==a||0!==s){const{modifiers:e}=t;await this.#ye.cdpTarget.cdpClient.sendCommand("Input.dispatchMouseEvent",{type:"mouseWheel",deltaX:a,deltaY:s,x:d,y:u,modifiers:e}),h+=a,p+=s}}while(!l)}async#nt(e,t){if([...t.value].length>1)throw new Fe.InvalidArgumentException(`Invalid key value: ${t.value}`);const a=t.value,r=(0,He.getNormalizedKey)(a),n=e.pressed.has(r),s=(0,He.getKeyCode)(a),o=(0,He.getKeyLocation)(a);switch(r){case"Alt":e.alt=!0;break;case"Shift":e.shift=!0;break;case"Control":e.ctrl=!0;break;case"Meta":e.meta=!0}e.pressed.add(r);const{modifiers:i}=e,c=Xe(r,e),d=Ye(s??"",e)??c;let u;if(this.#at&&e.meta)switch(s){case"KeyA":u="SelectAll";break;case"KeyC":u="Copy";break;case"KeyV":u=e.shift?"PasteAndMatchStyle":"Paste";break;case"KeyX":u="Cut";break;case"KeyZ":u=e.shift?"Redo":"Undo"}const l=[this.#ye.cdpTarget.cdpClient.sendCommand("Input.dispatchKeyEvent",{type:d?"keyDown":"rawKeyDown",windowsVirtualKeyCode:We.KeyToKeyCode[r],key:r,code:s,text:d,unmodifiedText:c,autoRepeat:n,isSystemKey:e.alt||void 0,location:o<3?o:void 0,isKeypad:3===o,modifiers:i,commands:u?[u]:void 0})];"Escape"===r&&(e.alt||(!this.#at||e.ctrl||e.meta)&&this.#at||l.push(this.#ye.cdpTarget.cdpClient.sendCommand("Input.cancelDragging"))),await Promise.all(l)}#st(e,t){if([...t.value].length>1)throw new Fe.InvalidArgumentException(`Invalid key value: ${t.value}`);const a=t.value,r=(0,He.getNormalizedKey)(a);if(!e.pressed.has(r))return;const n=(0,He.getKeyCode)(a),s=(0,He.getKeyLocation)(a);switch(r){case"Alt":e.alt=!1;break;case"Shift":e.shift=!1;break;case"Control":e.ctrl=!1;break;case"Meta":e.meta=!1}e.pressed.delete(r);const{modifiers:o}=e,i=Xe(r,e),c=Ye(n??"",e)??i;return this.#ye.cdpTarget.cdpClient.sendCommand("Input.dispatchKeyEvent",{type:"keyUp",windowsVirtualKeyCode:We.KeyToKeyCode[r],key:r,code:n,text:c,unmodifiedText:i,location:s<3?s:void 0,isSystemKey:e.alt||void 0,isKeypad:3===s,modifiers:o})}};const Xe=(e,t)=>"Enter"===e?"\r":1===[...e].length?t.shift?e.toLocaleUpperCase("en-US"):e:void 0,Ye=(e,t)=>{if(t.ctrl){switch(e){case"Digit2":if(t.shift)return"\0";break;case"KeyA":return"\x01";case"KeyB":return"\x02";case"KeyC":return"\x03";case"KeyD":return"\x04";case"KeyE":return"\x05";case"KeyF":return"\x06";case"KeyG":return"\x07";case"KeyH":return"\b";case"KeyI":return"\t";case"KeyJ":return"\n";case"KeyK":return"\v";case"KeyL":return"\f";case"KeyM":return"\r";case"KeyN":return"\x0e";case"KeyO":return"\x0f";case"KeyP":return"\x10";case"KeyQ":return"\x11";case"KeyR":return"\x12";case"KeyS":return"\x13";case"KeyT":return"\x14";case"KeyU":return"\x15";case"KeyV":return"\x16";case"KeyW":return"\x17";case"KeyX":return"\x18";case"KeyY":return"\x19";case"KeyZ":return"\x1a";case"BracketLeft":return"\x1b";case"Backslash":return"\x1c";case"BracketRight":return"\x1d";case"Digit6":if(t.shift)return"\x1e";break;case"Minus":return"\x1f"}return""}if(t.alt)return""};function Qe(e){switch(e){case 0:return"left";case 1:return"middle";case 2:return"right";case 3:return"back";case 4:return"forward";default:return"none"}}function et(e){const t=e.altitudeAngle??0,a=e.azimuthAngle??0;let r=0,n=0;if(0===t&&(0!==a&&a!==2*Math.PI||(r=Math.PI/2),a===Math.PI/2&&(n=Math.PI/2),a===Math.PI&&(r=-Math.PI/2),a===3*Math.PI/2&&(n=-Math.PI/2),a>0&&aMath.PI/2&&aMath.PI&&a<3*Math.PI/2&&(r=-Math.PI/2,n=-Math.PI/2),a>3*Math.PI/2&&a<2*Math.PI&&(r=Math.PI/2,n=-Math.PI/2)),0!==t){const e=Math.tan(t);r=Math.atan(Math.cos(a)/e),n=Math.atan(Math.sin(a)/e)}const s=180/Math.PI;return{tiltX:Math.round(r*s),tiltY:Math.round(n*s)}}function tt(e,t){return{radiusX:e?e/2:.5,radiusY:t?t/2:.5}}var at={},rt={},nt={};Object.defineProperty(nt,"__esModule",{value:!0}),nt.Mutex=void 0;nt.Mutex=class{#lt=!1;#ht=[];acquire(){const e={resolved:!1};return this.#lt?new Promise((t=>{this.#ht.push((()=>t(this.#pt.bind(this,e))))})):(this.#lt=!0,Promise.resolve(this.#pt.bind(this,e)))}#pt(e){if(e.resolved)throw new Error("Cannot release more than once.");e.resolved=!0;const t=this.#ht.shift();t?t():this.#lt=!1}async run(e){const t=await this.acquire();try{return await e()}finally{t()}}},Object.defineProperty(rt,"__esModule",{value:!0}),rt.InputState=void 0;const st=g,ot=nt,it=Ue;rt.InputState=class{cancelList=[];#mt=new Map;#ft=new ot.Mutex;getOrCreate(e,t,a){let r=this.#mt.get(e);if(!r){switch(t){case"none":r=new it.NoneSource;break;case"key":r=new it.KeySource;break;case"pointer":{let e="mouse"===a?0:2;const t=new Set;for(const[,e]of this.#mt)"pointer"===e.type&&t.add(e.pointerId);for(;t.has(e);)++e;r=new it.PointerSource(e,a);break}case"wheel":r=new it.WheelSource;break;default:throw new st.InvalidArgumentException(`Expected "none", "key", "pointer", or "wheel". Found unknown source type ${t}.`)}return this.#mt.set(e,r),r}if(r.type!==t)throw new st.InvalidArgumentException(`Input source type of ${e} is ${r.type}, but received ${t}.`);return r}get(e){const t=this.#mt.get(e);if(!t)throw new st.UnknownErrorException("Internal error.");return t}getGlobalKeyState(){const e=new it.KeySource;for(const[,t]of this.#mt)if("key"===t.type){for(const a of t.pressed)e.pressed.add(a);e.alt||=t.alt,e.ctrl||=t.ctrl,e.meta||=t.meta,e.shift||=t.shift}return e}get queue(){return this.#ft}},Object.defineProperty(at,"__esModule",{value:!0}),at.InputStateManager=void 0;const ct=$,dt=rt;class ut extends WeakMap{get(e){return(0,ct.assert)(e.isTopLevelContext()),this.has(e)||this.set(e,new dt.InputState),super.get(e)}}at.InputStateManager=ut,Object.defineProperty(Le,"__esModule",{value:!0}),Le.InputProcessor=void 0;const lt=g,ht=Ze,pt=at;Le.InputProcessor=class{#i;#gt=new pt.InputStateManager;constructor(e){this.#i=e}async performActions(e){const t=this.#i.getContext(e.context),a=this.#gt.get(t.top),r=this.#yt(e,a),n=new ht.ActionDispatcher(a,t,await ht.ActionDispatcher.isMacOS(t).catch((()=>!1)));return await n.dispatchActions(r),{}}async releaseActions(e){const t=this.#i.getContext(e.context),a=t.top,r=this.#gt.get(a),n=new ht.ActionDispatcher(r,t,await ht.ActionDispatcher.isMacOS(t).catch((()=>!1)));return await n.dispatchTickActions(r.cancelList.reverse()),this.#gt.delete(a),{}}#yt(e,t){const a=[];for(const r of e.actions){switch(r.type){case"pointer":{r.parameters??={pointerType:"mouse"},r.parameters.pointerType??="mouse";const e=t.getOrCreate(r.id,"pointer",r.parameters.pointerType);if(e.subtype!==r.parameters.pointerType)throw new lt.InvalidArgumentException(`Expected input source ${r.id} to be ${e.subtype}; got ${r.parameters.pointerType}.`);break}default:t.getOrCreate(r.id,r.type)}const e=r.actions.map((e=>({id:r.id,action:e})));for(let t=0;t{for(var a in t)yt(e,a,{get:t[a],enumerable:!0})})(bt,{URLPattern:()=>ia});var Ct,xt=(Ct=bt,((e,t,a,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of vt(t))!wt.call(e,n)&&n!==a&&yt(e,n,{get:()=>t[n],enumerable:!(r=St(t,n))||r.enumerable});return e})(yt({},"__esModule",{value:!0}),Ct)),It=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(e,t,a,r,n,s){this.type=e,this.name=t,this.prefix=a,this.value=r,this.suffix=n,this.modifier=s}hasCustomName(){return""!==this.name&&"number"!=typeof this.name}},Pt=/[$_\p{ID_Start}]/u,kt=/[$_\u200C\u200D\p{ID_Continue}]/u,Rt=".*";function Et(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function _t(e,t=!1){let a=[],r=0;for(;r{if(oc("OTHER_MODIFIER")??c("ASTERISK"),u=e=>{let t=c(e);if(void 0!==t)return t;let{type:r,index:n}=a[o];throw new TypeError(`Unexpected ${r} at ${n}, expected ${e}`)},l=()=>{let e,t="";for(;e=c("CHAR")??c("ESCAPED_CHAR");)t+=e;return t},h=t.encodePart||(e=>e),p="",m=e=>{p+=e},f=()=>{p.length&&(n.push(new It(3,"","",h(p),"",3)),p="")},g=(e,t,a,o,c)=>{let d,u=3;switch(c){case"?":u=1;break;case"*":u=0;break;case"+":u=2}if(!t&&!a&&3===u)return void m(e);if(f(),!t&&!a){if(!e)return;return void n.push(new It(3,"","",h(e),"",u))}d=a?"*"===a?Rt:a:r;let l,p=2;if(d===r?(p=1,d=""):d===Rt&&(p=0,d=""),t?l=t:a&&(l=s++),i.has(l))throw new TypeError(`Duplicate name '${l}'.`);i.add(l),n.push(new It(p,l,h(e),d,h(o),u))};for(;o-1)}return o||(r+=`(?=${s}|${n})`),new RegExp(r,jt(a))}var At={delimiter:"",prefixes:"",sensitive:!0,strict:!0},Bt={delimiter:".",prefixes:"",sensitive:!0,strict:!0},Dt={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function zt(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function Lt(e){return!(!e||e.length<2)&&("["===e[0]||("\\"===e[0]||"{"===e[0])&&"["===e[1])}var Zt=["ftp","file","http","https","ws","wss"];function Ut(e){if(!e)return!0;for(let t of Zt)if(e.test(t))return!0;return!1}function qt(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function Vt(e){if(""===e)return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function Ft(e){if(""===e)return e;let t=new URL("https://example.com");return t.username=e,t.username}function $t(e){if(""===e)return e;let t=new URL("https://example.com");return t.password=e,t.password}function Kt(e){if(""===e)return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw new TypeError(`Invalid hostname '${e}'`);let t=new URL("https://example.com");return t.hostname=e,t.hostname}function Ht(e){if(""===e)return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function Wt(e){if(""===e||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function Jt(e){if(""===e)return e;let t=new URL("https://example.com");return t.pathname="/"!==e[0]?"/-"+e:e,"/"!==e[0]?t.pathname.substring(2,t.pathname.length):t.pathname}function Gt(e){return""===e?e:new URL(`data:${e}`).pathname}function Xt(e){if(""===e)return e;let t=new URL("https://example.com");return t.search=e,t.search.substring(1,t.search.length)}function Yt(e){if(""===e)return e;let t=new URL("https://example.com");return t.hash=e,t.hash.substring(1,t.hash.length)}var Qt=class{#St;#vt=[];#wt={};#bt=0;#Ct=1;#xt=0;#It=0;#Pt=0;#kt=0;#Rt=!1;constructor(e){this.#St=e}get result(){return this.#wt}parse(){for(this.#vt=_t(this.#St,!0);this.#bt0){if(!this.#Mt())continue;this.#Pt-=1}if(this.#Ot())this.#Pt+=1;else switch(this.#It){case 0:this.#At()&&(this.#wt.username="",this.#wt.password="",this.#wt.hostname="",this.#wt.port="",this.#wt.pathname="",this.#wt.search="",this.#wt.hash="",this.#jt(1));break;case 1:if(this.#At()){this.#Bt();let e=7,t=1;this.#Rt&&(this.#wt.pathname="/"),this.#Dt()?(e=2,t=3):this.#Rt&&(e=2),this.#Tt(e,t)}break;case 2:this.#Je()?this.#jt(3):(this.#zt()||this.#Nt()||this.#_t())&&this.#jt(5);break;case 3:this.#Lt()?this.#Tt(4,1):this.#Je()&&this.#Tt(5,1);break;case 4:this.#Je()&&this.#Tt(5,1);break;case 5:this.#Zt()?this.#kt+=1:this.#Ut()&&(this.#kt-=1),this.#Ge()&&!this.#kt?this.#Tt(6,1):this.#zt()?this.#Tt(7,0):this.#Nt()?this.#Tt(8,1):this.#_t()&&this.#Tt(9,1);break;case 6:this.#zt()?this.#Tt(7,0):this.#Nt()?this.#Tt(8,1):this.#_t()&&this.#Tt(9,1);break;case 7:this.#Nt()?this.#Tt(8,1):this.#_t()&&this.#Tt(9,1);break;case 8:this.#_t()&&this.#Tt(9,1)}}}#Tt(e,t){switch(this.#It){case 0:case 2:break;case 1:this.#wt.protocol=this.#qt();break;case 3:this.#wt.username=this.#qt();break;case 4:this.#wt.password=this.#qt();break;case 5:this.#wt.hostname=this.#qt();break;case 6:this.#wt.port=this.#qt();break;case 7:this.#wt.pathname=this.#qt();break;case 8:this.#wt.search=this.#qt();break;case 9:this.#wt.hash=this.#qt()}this.#Vt(e,t)}#Vt(e,t){this.#It=e,this.#xt=this.#bt+t,this.#bt+=t,this.#Ct=0}#Et(){this.#bt=this.#xt,this.#Ct=0}#jt(e){this.#Et(),this.#It=e}#Ft(e){return e<0&&(e=this.#vt.length-e),e=0&&(e.pathname=ra(r.pathname.substring(0,t+1),a)+e.pathname)}e.pathname=function(e,t,a){if(a||""===e)return e;if(t&&!Zt.includes(t))return new URL(`${t}:${e}`).pathname;let r="/"==e[0];return e=new URL(r?e:"/-"+e,"https://example.com").pathname,r||(e=e.substring(2,e.length)),e}(e.pathname,e.protocol,a)}return"string"==typeof t.search&&(e.search=function(e,t){if(e=zt(e,"?"),t||""===e)return e;let a=new URL("https://example.com");return a.search=e,a.search?a.search.substring(1,a.search.length):""}(t.search,a)),"string"==typeof t.hash&&(e.hash=function(e,t){if(e=zt(e,"#"),t||""===e)return e;let a=new URL("https://example.com");return a.hash=e,a.hash?a.hash.substring(1,a.hash.length):""}(t.hash,a)),e}function sa(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function oa(e,t){t.delimiter??="/#?",t.prefixes??="./",t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith="";let a=`[^${function(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}(t.delimiter)}]+?`,r=/[$_\u200C\u200D\p{ID_Continue}]/u,n="";for(let s=0;s0?e[s-1]:null,u=s0?u.value[0]:"";c=r.test(e)}else c=!u.hasCustomName();if(!c&&!o.prefix.length&&d&&3===d.type){let e=d.value[d.value.length-1];c=t.prefixes.includes(e)}c&&(n+="{"),n+=sa(o.prefix),i&&(n+=`:${o.name}`),2===o.type?n+=`(${o.value})`:1===o.type?i||(n+=`(${a})`):0===o.type&&(i||d&&3!==d.type&&3===d.modifier&&!c&&""===o.prefix?n+="(.*)":n+="*"),1===o.type&&i&&o.suffix.length&&r.test(o.suffix[0])&&(n+="\\"),n+=sa(o.suffix),c&&(n+="}"),3!==o.modifier&&(n+=Mt(o.modifier))}return n}var ia=class{#St;#vt={};#wt={};#bt={};#Ct={};constructor(e={},t,a){try{let r;if("string"==typeof t?r=t:a=t,"string"==typeof e){let t=new Qt(e);if(t.parse(),e=t.result,void 0===r&&"string"!=typeof e.protocol)throw new TypeError("A base URL must be provided for a relative constructor string.");e.baseURL=r}else{if(!e||"object"!=typeof e)throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(r)throw new TypeError("parameter 1 is not of type 'string'.")}typeof a>"u"&&(a={ignoreCase:!1});let n,s={ignoreCase:!0===a.ignoreCase},o={pathname:ta,protocol:ta,username:ta,password:ta,hostname:ta,port:ta,search:ta,hash:ta};for(n of(this.#St=na(o,e,!0),qt(this.#St.protocol)===this.#St.port&&(this.#St.port=""),ea)){if(!(n in this.#St))continue;let e={},t=this.#St[n];switch(this.#wt[n]=[],n){case"protocol":Object.assign(e,At),e.encodePart=Vt;break;case"username":Object.assign(e,At),e.encodePart=Ft;break;case"password":Object.assign(e,At),e.encodePart=$t;break;case"hostname":Object.assign(e,Bt),Lt(t)?e.encodePart=Ht:e.encodePart=Kt;break;case"port":Object.assign(e,At),e.encodePart=Wt;break;case"pathname":Ut(this.#vt.protocol)?(Object.assign(e,Dt,s),e.encodePart=Jt):(Object.assign(e,At,s),e.encodePart=Gt);break;case"search":Object.assign(e,At,s),e.encodePart=Xt;break;case"hash":Object.assign(e,At,s),e.encodePart=Yt}try{this.#Ct[n]=Tt(t,e),this.#vt[n]=Ot(this.#Ct[n],this.#wt[n],e),this.#bt[n]=oa(this.#Ct[n],e)}catch{throw new TypeError(`invalid ${n} pattern '${this.#St[n]}'.`)}}}catch(e){throw new TypeError(`Failed to construct 'URLPattern': ${e.message}`)}}test(e={},t){let a,r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof e&&t)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof e>"u")return!1;try{r=na(r,"object"==typeof e?e:aa(e,t),!1)}catch{return!1}for(a of ea)if(!this.#vt[a].exec(r[a]))return!1;return!0}exec(e={},t){let a={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof e&&t)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof e>"u")return;try{a=na(a,"object"==typeof e?e:aa(e,t),!1)}catch{return null}let r,n={};for(r of(n.inputs=t?[e,t]:[e],ea)){let e=this.#vt[r].exec(a[r]);if(!e)return null;let t={};for(let[a,n]of this.#wt[r].entries())if("string"==typeof n||"number"==typeof n){let r=e[a+1];t[n]=r}n[r]={input:a[r]??"",groups:t}}return n}static compareComponent(e,t,a){let r=(e,t)=>{for(let a of["type","modifier","prefix","value","suffix"]){if(e[a]{let a=0;for(;a0}getFetchEnableParams(){const e=[];for(const t of this.#Ht.values())for(const a of t.phases){const r=pa.requestStageFromPhase(a);if(0!==t.urlPatterns.length)for(const a of t.urlPatterns){const t=pa.cdpFromSpecUrlPattern(a);e.push({urlPattern:t,requestStage:r})}else e.push({urlPattern:"*",requestStage:r})}return{patterns:e,handleAuthRequests:[...this.#Ht.values()].some((e=>e.phases.includes("authRequired")))}}getRequest(e){return this.#Kt.get(e)}addRequest(e){this.#Kt.set(e.requestId,e)}deleteRequest(e){const t=this.#Kt.get(e);t&&(t.dispose(),this.#Kt.delete(e))}hasNetworkRequests(){return this.#Kt.size>0}hasBlockedRequests(){return this.#Wt.size>0}static cdpFromSpecUrlPattern(e){switch(e.type){case"string":return e.pattern;case"pattern":return pa.buildUrlPatternString(e)}}static buildUrlPatternString({protocol:e,hostname:t,port:a,pathname:r,search:n}){if(!(e||t||a||r||n))return"*";let s="";return e&&(s+=`${e}`,e.endsWith(":")||(s+=":"),pa.isSpecialScheme(e)&&(s+="//")),t&&(s+=t),a&&(s+=`:${a}`),r&&(r.startsWith("/")||(s+="/"),s+=r),n&&(n.startsWith("?")||(s+="?"),s+=`${n}`),s}static requestStageFromPhase(e){switch(e){case"beforeRequestSent":return"Request";case"responseStarted":case"authRequired":return"Response"}}static isSpecialScheme(e){return["ftp","file","http","https","ws","wss"].includes(e.replace(/:$/,""))}addBlockedRequest(e,t){this.#Wt.set(e,t)}removeBlockedRequest(e){this.#Wt.delete(e)}getBlockedRequest(e){return this.#Wt.get(e)}getNetworkIntercepts(e,t){const a=this.#Kt.get(e);if(!a)return[];const r=[];for(const[e,{phases:n,urlPatterns:s}]of this.#Ht.entries())t&&n.includes(t)&&(0===s.length||s.some((e=>pa.matchUrlPattern(e,a.url))))&&r.push(e);return r}static matchUrlPattern(e,t){switch(e.type){case"string":return e.pattern===t;case"pattern":return null!==new la.URLPattern({protocol:e.protocol,hostname:e.hostname,port:e.port,pathname:e.pathname,search:e.search}).exec(t)}}}ft.NetworkStorage=pa,Object.defineProperty(mt,"__esModule",{value:!0}),mt.NetworkProcessor=void 0;const ma=g,fa=$,ga=ft,ya=Ce;class Sa{#i;#oe;constructor(e,t){this.#i=e,this.#oe=t}async addIntercept(e){if(0===e.phases.length)throw new ma.InvalidArgumentException("At least one phase must be specified.");e.phases.includes("authRequired")&&!e.phases.includes("beforeRequestSent")&&e.phases.unshift("beforeRequestSent");const t=e.urlPatterns??[],a=Sa.parseUrlPatterns(t),r=this.#oe.addIntercept({urlPatterns:a,phases:e.phases});return await this.#Jt(),{intercept:r}}async continueRequest(e){const t=e.request,{request:a,phase:r}=this.#Gt(t);if("beforeRequestSent"!==r)throw new ma.InvalidArgumentException(`Blocked request for network id '${t}' is not in 'BeforeRequestSent' phase`);void 0!==e.url&&Sa.parseUrlString(e.url);const{url:n,method:s,headers:o}=e,i=(0,ya.cdpFetchHeadersFromBidiNetworkHeaders)(o),c=this.#oe.getRequest(t);return(0,fa.assert)(c,`Network request with ID ${t} doesn't exist`),await c.continueRequest(a,n,s,i),this.#oe.removeBlockedRequest(t),{}}async continueResponse(e){const t=e.request,{request:a,phase:r}=this.#Gt(t);if("beforeRequestSent"===r)throw new ma.InvalidArgumentException(`Blocked request for network id '${t}' is in 'BeforeRequestSent' phase`);const{statusCode:n,reasonPhrase:s,headers:o}=e,i=(0,ya.cdpFetchHeadersFromBidiNetworkHeaders)(o),c=this.#oe.getRequest(t);return(0,fa.assert)(c,`Network request with ID ${t} doesn't exist`),await c.continueResponse(a,n,s,i),this.#oe.removeBlockedRequest(t),{}}async continueWithAuth(e){const t=e.request,{request:a,phase:r}=this.#Gt(t);if("authRequired"!==r)throw new ma.InvalidArgumentException(`Blocked request for network id '${t}' is not in 'AuthRequired' phase`);const n=this.#oe.getRequest(t);let s,o;if((0,fa.assert)(n,`Network request with ID ${t} doesn't exist`),"provideCredentials"===e.action){const{credentials:t}=e;s=e.credentials.username,o=e.credentials.password,(0,fa.assert)("password"===t.type,`Credentials type ${t.type} must be 'password'`)}const i=(0,ya.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction)(e.action);return await n.continueWithAuth(a,i,s,o),{}}async failRequest(e){const t=e.request,a=this.#Gt(t),{request:r,phase:n}=a;if("authRequired"===n)throw new ma.InvalidArgumentException(`Blocked request for network id '${t}' is in 'AuthRequired' phase`);const s=this.#oe.getRequest(t);return(0,fa.assert)(s,`Network request with ID ${t} doesn't exist`),await s.failRequest(r,"Failed"),this.#oe.removeBlockedRequest(t),{}}async provideResponse(e){const t=e.request,{request:a}=this.#Gt(t),{statusCode:r,reasonPhrase:n,headers:s,body:o}=e,i=(0,ya.cdpFetchHeadersFromBidiNetworkHeaders)(s),c=this.#oe.getRequest(t);return(0,fa.assert)(c,`Network request with ID ${t} doesn't exist`),await c.provideResponse(a,r??c.statusCode,n,i,o?.value),this.#oe.removeBlockedRequest(t),{}}async removeIntercept(e){return this.#oe.removeIntercept(e.intercept),await this.#Jt(),{}}async#Xt(){await Promise.all(this.#i.getAllContexts().map((async e=>{await e.cdpTarget.fetchEnable()})))}async#Yt(){await Promise.all(this.#i.getAllContexts().map((async e=>{await e.cdpTarget.fetchDisable()})))}async#Jt(){this.#oe.hasIntercepts()||this.#oe.hasBlockedRequests()||this.#oe.hasNetworkRequests()?await this.#Xt():await this.#Yt()}#Gt(e){const t=this.#oe.getBlockedRequest(e);if(!t)throw new ma.NoSuchRequestException(`No blocked request found for network id '${e}'`);return t}static parseUrlString(e){try{return new URL(e)}catch(t){throw new ma.InvalidArgumentException(`Invalid URL '${e}': ${t}`)}}static parseUrlPatterns(e){return e.map((e=>{switch(e.type){case"string":return Sa.parseUrlString(e.pattern),e;case"pattern":if(void 0===e.protocol&&void 0===e.hostname&&void 0===e.port&&void 0===e.pathname&&void 0===e.search)return e;if(""===e.protocol)throw new ma.InvalidArgumentException("URL pattern must specify a protocol");if(""===e.hostname)throw new ma.InvalidArgumentException("URL pattern must specify a hostname");if((e.hostname?.length??0)>0){if(e.protocol?.match(/^file/i))throw new ma.InvalidArgumentException("URL pattern protocol cannot be 'file'");if(e.hostname?.includes(":"))throw new ma.InvalidArgumentException("URL pattern hostname must not contain a colon")}if(""===e.port)throw new ma.InvalidArgumentException("URL pattern must specify a port");try{new URL(ga.NetworkStorage.buildUrlPatternString(e))}catch(e){throw new ma.InvalidArgumentException(`${e}`)}return e}}))}}mt.NetworkProcessor=Sa;var va={};Object.defineProperty(va,"__esModule",{value:!0}),va.PreloadScriptStorage=void 0;va.PreloadScriptStorage=class{#Qt=new Set;find(e){return e?[...this.#Qt].filter((t=>(void 0===e.id||e.id===t.id)&&(!(void 0!==e.targetId&&!t.targetIds.has(e.targetId))&&(void 0===e.global||!(e.global&&void 0!==t.contexts||!e.global&&void 0===t.contexts))))):[...this.#Qt]}add(e){this.#Qt.add(e)}remove(e){for(const t of this.find(e))this.#Qt.delete(t)}};var wa={},ba={};Object.defineProperty(ba,"__esModule",{value:!0}),ba.PreloadScript=void 0;const Ca=j,xa=M;ba.PreloadScript=class{#u=(0,Ca.uuidv4)();#ea=[];#ta;#aa=new Set;#ra;#na;#sa;get id(){return this.#u}get targetIds(){return this.#aa}constructor(e,t){this.#ra=e.arguments?.map((e=>new xa.ChannelProxy(e.value,t)))??[],this.#ta=e.functionDeclaration,this.#na=e.sandbox,this.#sa=e.contexts}get channels(){return this.#ra}get contexts(){return this.#sa}#oa(){const e=`[${this.channels.map((e=>e.getEvalInWindowStr())).join(", ")}]`;return`(()=>{(${this.#ta})(...${e})})()`}async initInTargets(e,t){await Promise.all(Array.from(e).map((e=>this.initInTarget(e,t))))}async initInTarget(e,t){const a=await e.cdpClient.sendCommand("Page.addScriptToEvaluateOnNewDocument",{source:this.#oa(),worldName:this.#na,runImmediately:t});this.#ea.push({target:e,preloadScriptId:a.identifier}),this.#aa.add(e.targetId)}async remove(){for(const e of this.#ea){const t=e.target,a=e.preloadScriptId;await t.cdpClient.sendCommand("Page.removeScriptToEvaluateOnNewDocument",{identifier:a})}}dispose(e){this.#ea=this.#ea.filter((t=>t.target?.targetId!==e)),this.#aa.delete(e)}},Object.defineProperty(wa,"__esModule",{value:!0}),wa.ScriptProcessor=void 0;const Ia=g,Pa=ba;wa.ScriptProcessor=class{#i;#g;#Ne;#t;constructor(e,t,a,r){this.#i=e,this.#g=t,this.#Ne=a,this.#t=r}async addPreloadScript(e){const t=new Set;if(e.contexts){if(0===e.contexts.length)throw new Ia.InvalidArgumentException("Contexts list is empty.");for(const a of e.contexts){const e=this.#i.getContext(a);if(!e.isTopLevelContext())throw new Ia.InvalidArgumentException(`Non top-level context '${a}' given.`);t.add(e)}}const a=new Pa.PreloadScript(e,this.#t);this.#Ne.add(a);const r=0===t.size?new Set(this.#i.getTopLevelContexts().map((e=>e.cdpTarget))):new Set([...t.values()].map((e=>e.cdpTarget)));return await a.initInTargets(r,!1),{script:a.id}}async removePreloadScript(e){const t=e.script,a=this.#Ne.find({id:t});if(0===a.length)throw new Ia.NoSuchScriptException(`No preload script with BiDi ID '${t}'`);return await Promise.all(a.map((e=>e.remove()))),this.#Ne.remove({id:t}),{}}async callFunction(e){const t=await this.#ia(e.target);return await t.callFunction(e.functionDeclaration,e.this??{type:"undefined"},e.arguments??[],e.awaitPromise,e.resultOwnership??"none",e.serializationOptions??{},e.userActivation??!1)}async evaluate(e){const t=await this.#ia(e.target);return await t.evaluate(e.expression,e.awaitPromise,e.resultOwnership??"none",e.serializationOptions??{},e.userActivation??!1)}async disown(e){const t=await this.#ia(e.target);return await Promise.all(e.handles.map((async e=>await t.disown(e)))),{}}getRealms(e){void 0!==e.context&&this.#i.getContext(e.context);return{realms:this.#g.findRealms({browsingContextId:e.context,type:e.type}).map((e=>e.realmInfo))}}async#ia(e){if("realm"in e)return this.#g.getRealm({realmId:e.realm});const t=this.#i.getContext(e.context);return await t.getOrCreateSandbox(e.sandbox)}};var ka={};Object.defineProperty(ka,"__esModule",{value:!0}),ka.SessionProcessor=void 0;ka.SessionProcessor=class{#x;constructor(e){this.#x=e}status(){return{ready:!1,message:"already connected"}}subscribe(e,t=null){return this.#x.subscribe(e.events,e.contexts??[null],t),{}}unsubscribe(e,t=null){return this.#x.unsubscribe(e.events,e.contexts??[null],t),{}}};var Ra={};Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.OutgoingMessage=void 0;class Ea{#ca;#da;constructor(e,t=null){this.#ca=e,this.#da=t}static createFromPromise(e,t){return e.then((e=>"success"===e.kind?{kind:"success",value:new Ea(e.value,t)}:e))}static createResolved(e,t){return Promise.resolve({kind:"success",value:new Ea(e,t)})}get message(){return this.#ca}get channel(){return this.#da}}Ra.OutgoingMessage=Ea,Object.defineProperty(f,"__esModule",{value:!0}),f.CommandProcessor=void 0;const _a=g,Ta=s,Na=l,ja=R,Ma=E,Oa=_,Aa=T,Ba=Le,Da=mt,za=ft,La=va,Za=wa,Ua=ka,qa=Ra;class Va extends Ta.EventEmitter{#ua;#la;#ha;#pa;#ma;#fa;#ga;#ya;#t;constructor(e,t,a,r,n,s,o,i=new ja.BidiNoOpParser,c){super(),this.#ya=i,this.#t=c;const d=new za.NetworkStorage,u=new La.PreloadScriptStorage;this.#ua=new Ma.BrowserProcessor(t),this.#la=new Aa.BrowsingContextProcessor(e,t,r,a,n,s,d,u,o,c),this.#ha=new Oa.CdpProcessor(n,e,t),this.#pa=new Ba.InputProcessor(n),this.#ma=new Da.NetworkProcessor(n,d),this.#fa=new Za.ScriptProcessor(n,s,u,c),this.#ga=new Ua.SessionProcessor(a)}async#Sa(e){switch(e.method){case"session.end":case"session.new":break;case"browser.close":return this.#ua.close();case"browsingContext.activate":return await this.#la.activate(this.#ya.parseActivateParams(e.params));case"browsingContext.captureScreenshot":return await this.#la.captureScreenshot(this.#ya.parseCaptureScreenshotParams(e.params));case"browsingContext.close":return await this.#la.close(this.#ya.parseCloseParams(e.params));case"browsingContext.create":return await this.#la.create(this.#ya.parseCreateParams(e.params));case"browsingContext.getTree":return this.#la.getTree(this.#ya.parseGetTreeParams(e.params));case"browsingContext.handleUserPrompt":return await this.#la.handleUserPrompt(this.#ya.parseHandleUserPromptParams(e.params));case"browsingContext.locateNodes":throw new _a.UnsupportedOperationException(`Command '${e.method}' not yet implemented.`);case"browsingContext.navigate":return await this.#la.navigate(this.#ya.parseNavigateParams(e.params));case"browsingContext.print":return await this.#la.print(this.#ya.parsePrintParams(e.params));case"browsingContext.reload":return await this.#la.reload(this.#ya.parseReloadParams(e.params));case"browsingContext.setViewport":return await this.#la.setViewport(this.#ya.parseSetViewportParams(e.params));case"browsingContext.traverseHistory":return await this.#la.traverseHistory(this.#ya.parseTraverseHistoryParams(e.params));case"cdp.getSession":return this.#ha.getSession(this.#ya.parseGetSessionParams(e.params));case"cdp.sendCommand":return await this.#ha.sendCommand(this.#ya.parseSendCommandParams(e.params));case"input.performActions":return await this.#pa.performActions(this.#ya.parsePerformActionsParams(e.params));case"input.releaseActions":return await this.#pa.releaseActions(this.#ya.parseReleaseActionsParams(e.params));case"network.addIntercept":return await this.#ma.addIntercept(this.#ya.parseAddInterceptParams(e.params));case"network.continueRequest":return await this.#ma.continueRequest(this.#ya.parseContinueRequestParams(e.params));case"network.continueResponse":return await this.#ma.continueResponse(this.#ya.parseContinueResponseParams(e.params));case"network.continueWithAuth":return await this.#ma.continueWithAuth(this.#ya.parseContinueWithAuthParams(e.params));case"network.failRequest":return await this.#ma.failRequest(this.#ya.parseFailRequestParams(e.params));case"network.provideResponse":return await this.#ma.provideResponse(this.#ya.parseProvideResponseParams(e.params));case"network.removeIntercept":return await this.#ma.removeIntercept(this.#ya.parseRemoveInterceptParams(e.params));case"script.addPreloadScript":return await this.#fa.addPreloadScript(this.#ya.parseAddPreloadScriptParams(e.params));case"script.callFunction":return await this.#fa.callFunction(this.#ya.parseCallFunctionParams(e.params));case"script.disown":return await this.#fa.disown(this.#ya.parseDisownParams(e.params));case"script.evaluate":return await this.#fa.evaluate(this.#ya.parseEvaluateParams(e.params));case"script.getRealms":return this.#fa.getRealms(this.#ya.parseGetRealmsParams(e.params));case"script.removePreloadScript":return await this.#fa.removePreloadScript(this.#ya.parseRemovePreloadScriptParams(e.params));case"session.status":return this.#ga.status();case"session.subscribe":return this.#ga.subscribe(this.#ya.parseSubscribeParams(e.params),e.channel);case"session.unsubscribe":return this.#ga.unsubscribe(this.#ya.parseSubscribeParams(e.params),e.channel)}throw new _a.UnknownCommandException(`Unknown command '${e.method}'.`)}async processCommand(e){try{const t=await this.#Sa(e),a={type:"success",id:e.id,result:t};this.emit("response",{message:qa.OutgoingMessage.createResolved(a,e.channel),event:e.method})}catch(t){if(t instanceof _a.Exception)this.emit("response",{message:qa.OutgoingMessage.createResolved(t.toErrorResponse(e.id),e.channel),event:e.method});else{const a=t;this.#t?.(Na.LogType.bidi,a),this.emit("response",{message:qa.OutgoingMessage.createResolved(new _a.UnknownErrorException(a.message,a.stack).toErrorResponse(e.id),e.channel),event:e.method})}}}}f.CommandProcessor=Va;var Fa={};Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.BrowsingContextStorage=void 0;const $a=g;Fa.BrowsingContextStorage=class{#sa=new Map;getTopLevelContexts(){return this.getAllContexts().filter((e=>e.isTopLevelContext()))}getAllContexts(){return Array.from(this.#sa.values())}deleteContextById(e){this.#sa.delete(e)}deleteContext(e){this.#sa.delete(e.id)}addContext(e){this.#sa.set(e.id,e)}hasContext(e){return this.#sa.has(e)}findContext(e){return this.#sa.get(e)}findTopLevelContextId(e){if(null===e)return null;const t=this.findContext(e),a=t?.parentId??null;return null===a?e:this.findTopLevelContextId(a)}findContextBySession(e){for(const t of this.#sa.values())if(t.cdpTarget.cdpSessionId===e)return t}getContext(e){const t=this.findContext(e);if(void 0===t)throw new $a.NoSuchFrameException(`Context ${e} not found`);return t}};var Ka={},Ha={};Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.Buffer=void 0;Ha.Buffer=class{#va;#wa=[];#ba;constructor(e,t){this.#va=e,this.#ba=t}get(){return this.#wa}add(e){for(this.#wa.push(e);this.#wa.length>this.#va;){const e=this.#wa.shift();void 0!==e&&this.#ba?.(e)}}};var Wa={};Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.DefaultMap=void 0;class Ja extends Map{#Ca;constructor(e,t){super(t),this.#Ca=e}get(e){return this.has(e)||this.set(e,this.#Ca(e)),super.get(e)}}Wa.DefaultMap=Ja;var Ga={};Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.IdWrapper=void 0;class Xa{static#xa=0;#u;constructor(){this.#u=++Xa.#xa}get id(){return this.#u}}Ga.IdWrapper=Xa;var Ya={};Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.assertSupportedEvent=Ya.isCdpEvent=void 0;const Qa=g;function er(e){return e.split(".").at(0)?.startsWith(Qa.ChromiumBidi.BiDiModule.Cdp)??!1}Ya.isCdpEvent=er,Ya.assertSupportedEvent=function(e){if(!Qa.ChromiumBidi.EVENT_NAMES.has(e)&&!er(e))throw new Qa.InvalidArgumentException(`Unknown event: ${e}`)};var tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.SubscriptionManager=tr.unrollEvents=tr.cartesianProduct=void 0;const ar=g,rr=Ya;function nr(...e){return e.reduce(((e,t)=>e.flatMap((e=>t.map((t=>[e,t].flat()))))))}function sr(e){const t=new Set;function a(e){for(const a of e)t.add(a)}for(const r of e)switch(r){case ar.ChromiumBidi.BiDiModule.BrowsingContext:a(Object.values(ar.ChromiumBidi.BrowsingContext.EventNames));break;case ar.ChromiumBidi.BiDiModule.Log:a(Object.values(ar.ChromiumBidi.Log.EventNames));break;case ar.ChromiumBidi.BiDiModule.Network:a(Object.values(ar.ChromiumBidi.Network.EventNames));break;case ar.ChromiumBidi.BiDiModule.Script:a(Object.values(ar.ChromiumBidi.Script.EventNames));break;default:t.add(r)}return[...t.values()]}tr.cartesianProduct=nr,tr.unrollEvents=sr;tr.SubscriptionManager=class{#Ia=0;#Pa=new Map;#i;constructor(e){this.#i=e}getChannelsSubscribedToEvent(e,t){return Array.from(this.#Pa.keys()).map((a=>({priority:this.#ka(e,t,a),channel:a}))).filter((({priority:e})=>null!==e)).sort(((e,t)=>e.priority-t.priority)).map((({channel:e})=>e))}#ka(e,t,a){const r=this.#Pa.get(a);if(void 0===r)return null;const n=this.#i.findTopLevelContextId(t),s=[...new Set([null,n])].map((t=>{const a=r.get(t)?.get(e);if((0,rr.isCdpEvent)(e)){const e=r.get(t)?.get(ar.ChromiumBidi.BiDiModule.Cdp);return a&&e?Math.min(a,e):a??e}return a})).filter((e=>void 0!==e));return 0===s.length?null:Math.min(...s)}subscribe(e,t,a){switch(t=this.#i.findTopLevelContextId(t),e){case ar.ChromiumBidi.BiDiModule.BrowsingContext:return void Object.values(ar.ChromiumBidi.BrowsingContext.EventNames).map((e=>this.subscribe(e,t,a)));case ar.ChromiumBidi.BiDiModule.Log:return void Object.values(ar.ChromiumBidi.Log.EventNames).map((e=>this.subscribe(e,t,a)));case ar.ChromiumBidi.BiDiModule.Network:return void Object.values(ar.ChromiumBidi.Network.EventNames).map((e=>this.subscribe(e,t,a)));case ar.ChromiumBidi.BiDiModule.Script:return void Object.values(ar.ChromiumBidi.Script.EventNames).map((e=>this.subscribe(e,t,a)))}this.#Pa.has(a)||this.#Pa.set(a,new Map);const r=this.#Pa.get(a);r.has(t)||r.set(t,new Map);const n=r.get(t);n.has(e)||n.set(e,this.#Ia++)}unsubscribeAll(e,t,a){for(const e of t)null!==e&&this.#i.getContext(e);nr(sr(e),t).map((([e,t])=>this.#Ra(e,t,a))).forEach((e=>e()))}unsubscribe(e,t,a){this.unsubscribeAll([e],[t],a)}#Ra(e,t,a){if(t=this.#i.findTopLevelContextId(t),!this.#Pa.has(a))throw new ar.InvalidArgumentException(`Cannot unsubscribe from ${e}, ${null===t?"null":t}. No subscription found.`);const r=this.#Pa.get(a);if(!r.has(t))throw new ar.InvalidArgumentException(`Cannot unsubscribe from ${e}, ${null===t?"null":t}. No subscription found.`);const n=r.get(t);if(!n.has(e))throw new ar.InvalidArgumentException(`Cannot unsubscribe from ${e}, ${null===t?"null":t}. No subscription found.`);return()=>{n.delete(e),0===n.size&&r.delete(e),0===r.size&&this.#Pa.delete(a)}}},Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.EventManager=void 0;const or=g,ir=Ha,cr=Wa,dr=s,ur=Ga,lr=Ra,hr=Ya,pr=tr;class mr{#Ea=new ur.IdWrapper;#_a;#Ta;constructor(e,t){this.#Ta=e,this.#_a=t}get id(){return this.#Ea.id}get contextId(){return this.#_a}get event(){return this.#Ta}}const fr=new Map([[or.ChromiumBidi.Log.EventNames.LogEntryAdded,100]]);class gr extends dr.EventEmitter{#Na=new cr.DefaultMap((()=>new Set));#ja=new Map;#Ma=new Map;#Oa;#i;constructor(e){super(),this.#i=e,this.#Oa=new pr.SubscriptionManager(e)}static#Aa(e,t,a){return JSON.stringify({eventName:e,browsingContext:t,channel:a})}registerEvent(e,t){this.registerPromiseEvent(Promise.resolve({kind:"success",value:e}),t,e.method)}registerPromiseEvent(e,t,a){const r=new mr(e,t),n=this.#Oa.getChannelsSubscribedToEvent(a,t);this.#Ba(r,a);for(const t of n)this.emit("event",{message:lr.OutgoingMessage.createFromPromise(e,t),event:a}),this.#Da(r,t,a)}subscribe(e,t,a){for(const t of e)(0,hr.assertSupportedEvent)(t);for(const e of t)null!==e&&this.#i.getContext(e);for(const r of e)for(const e of t){this.#Oa.subscribe(r,e,a);for(const t of this.#za(r,e,a))this.emit("event",{message:lr.OutgoingMessage.createFromPromise(t.event,a),event:r}),this.#Da(t,a,r)}}unsubscribe(e,t,a){for(const t of e)(0,hr.assertSupportedEvent)(t);this.#Oa.unsubscribeAll(e,t,a)}#Ba(e,t){if(!fr.has(t))return;const a=gr.#Aa(t,e.contextId);this.#ja.has(a)||this.#ja.set(a,new ir.Buffer(fr.get(t))),this.#ja.get(a).add(e),this.#Na.get(t).add(e.contextId)}#Da(e,t,a){if(!fr.has(a))return;const r=gr.#Aa(a,e.contextId,t);this.#Ma.set(r,Math.max(this.#Ma.get(r)??0,e.id))}#za(e,t,a){const r=gr.#Aa(e,t),n=gr.#Aa(e,t,a),s=this.#Ma.get(n)??-1/0,o=this.#ja.get(r)?.get().filter((e=>e.id>s))??[];return null===t&&Array.from(this.#Na.get(e).keys()).filter((e=>null!==e&&this.#i.hasContext(e))).map((t=>this.#za(e,t,a))).forEach((e=>o.push(...e))),o.sort(((e,t)=>e.id-t.id))}}Ka.EventManager=gr;var yr={};Object.defineProperty(yr,"__esModule",{value:!0}),yr.RealmStorage=void 0;const Sr=g;yr.RealmStorage=class{#La=new Map;#Za=new Map;get knownHandlesToRealmMap(){return this.#La}addRealm(e){this.#Za.set(e.realmId,e)}findRealms(e){return Array.from(this.#Za.values()).filter((t=>(void 0===e.realmId||e.realmId===t.realmId)&&((void 0===e.browsingContextId||e.browsingContextId===t.browsingContextId)&&((void 0===e.navigableId||e.navigableId===t.navigableId)&&((void 0===e.executionContextId||e.executionContextId===t.executionContextId)&&((void 0===e.origin||e.origin===t.origin)&&((void 0===e.type||e.type===t.type)&&((void 0===e.sandbox||e.sandbox===t.sandbox)&&(void 0===e.cdpSessionId||e.cdpSessionId===t.cdpClient.sessionId)))))))))}findRealm(e){const t=this.findRealms(e);if(1===t.length)return t[0]}getRealm(e){const t=this.findRealm(e);if(void 0===t)throw new Sr.NoSuchFrameException(`Realm ${JSON.stringify(e)} not found`);return t}deleteRealms(e){this.findRealms(e).map((e=>{e.dispose(),this.#Za.delete(e.realmId),Array.from(this.knownHandlesToRealmMap.entries()).filter((([,t])=>t===e.realmId)).map((([e])=>this.knownHandlesToRealmMap.delete(e)))}))}},Object.defineProperty(n,"__esModule",{value:!0}),n.BidiServer=void 0;const vr=s,wr=l,br=h,Cr=f,xr=Fa,Ir=Ka,Pr=yr;class kr extends vr.EventEmitter{#Ua;#qa;#Va;#x;#i=new xr.BrowsingContextStorage;#t;#Fa=e=>{this.#Va.processCommand(e).catch((e=>{this.#t?.(wr.LogType.debugError,e)}))};#$a=async e=>{const t=e.message;null!==e.channel&&(t.channel=e.channel),await this.#qa.sendMessage(t)};constructor(e,t,a,r,n,s,o){super(),this.#t=o,this.#Ua=new br.ProcessingQueue(this.#$a,this.#t),this.#qa=e,this.#qa.setOnMessage(this.#Fa),this.#x=new Ir.EventManager(this.#i),this.#Va=new Cr.CommandProcessor(t,a,this.#x,r,this.#i,new Pr.RealmStorage,n?.acceptInsecureCerts??!1,s,this.#t),this.#x.on("event",(({message:e,event:t})=>{this.emitOutgoingMessage(e,t)})),this.#Va.on("response",(({message:e,event:t})=>{this.emitOutgoingMessage(e,t)}))}static async createAndStart(e,t,a,r,n,s,o){const i=new kr(e,t,a,r,n,s,o);return await a.sendCommand("Target.setDiscoverTargets",{discover:!0}),await a.sendCommand("Target.setAutoAttach",{autoAttach:!0,waitForDebuggerOnStart:!0,flatten:!0}),await i.#Ka(),i}emitOutgoingMessage(e,t){this.#Ua.add(e,t)}close(){this.#qa.close()}async#Ka(){await Promise.all(this.#i.getTopLevelContexts().map((e=>e.lifecycleLoaded())))}}n.BidiServer=kr,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OutgoingMessage=e.EventEmitter=e.BidiServer=void 0;var t=n;Object.defineProperty(e,"BidiServer",{enumerable:!0,get:function(){return t.BidiServer}});var a=s;Object.defineProperty(e,"EventEmitter",{enumerable:!0,get:function(){return a.EventEmitter}});var r=Ra;Object.defineProperty(e,"OutgoingMessage",{enumerable:!0,get:function(){return r.OutgoingMessage}})}(r);var Rr={},Er={};Object.defineProperty(Er,"__esModule",{value:!0}),Er.CdpClient=Er.CloseError=void 0;const _r=s;class Tr extends Error{}Er.CloseError=Tr;class Nr extends _r.EventEmitter{#c;#Ha;constructor(e,t){super(),this.#c=e,this.#Ha=t}get sessionId(){return this.#Ha}sendCommand(e,...t){return this.#c.sendCommand(e,t[0],this.#Ha)}isCloseError(e){return e instanceof Tr}}Er.CdpClient=Nr,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.CdpConnection=void 0;const jr=l,Mr=Er;class Or{static LOGGER_PREFIX_RECV=`${jr.LogType.cdp}:RECV \u25c2`;static LOGGER_PREFIX_SEND=`${jr.LogType.cdp}:SEND \u25b8`;#Wa;#qa;#Ja=new Map;#Ga=new Map;#t;#Xa=0;constructor(e,t){this.#qa=e,this.#t=t,this.#qa.setOnMessage(this.#Ya),this.#Wa=this.#Qa(void 0)}close(){this.#qa.close();for(const[,{reject:e,error:t}]of this.#Ga)e(t);this.#Ga.clear(),this.#Ja.clear()}async createBrowserSession(){const{sessionId:e}=await this.#Wa.sendCommand("Target.attachToBrowserTarget");return this.#Qa(e)}getCdpClient(e){const t=this.#Ja.get(e);if(!t)throw new Error(`Unknown CDP session ID: ${e}`);return t}sendCommand(e,t,a){return new Promise(((r,n)=>{const s=this.#Xa++;this.#Ga.set(s,{resolve:r,reject:n,error:new Mr.CloseError(`${e} ${JSON.stringify(t)} ${a??""} call rejected because the connection has been closed.`)});const o={id:s,method:e,params:t};a&&(o.sessionId=a),this.#qa.sendMessage(JSON.stringify(o))?.catch((e=>{this.#t?.(jr.LogType.debugError,e),this.#qa.close()})),this.#t?.(Or.LOGGER_PREFIX_SEND,o)}))}#Ya=e=>{const t=JSON.parse(e);if(this.#t?.(Or.LOGGER_PREFIX_RECV,t),"Target.attachedToTarget"===t.method){const{sessionId:e}=t.params;this.#Qa(e)}if(void 0!==t.id){const e=this.#Ga.get(t.id);this.#Ga.delete(t.id),e&&(t.result?e.resolve(t.result):t.error&&e.reject(t.error))}else if(t.method){const e=this.#Ja.get(t.sessionId??void 0);if(e?.emit(t.method,t.params||{}),"Target.detachedFromTarget"===t.method){const{sessionId:e}=t.params,a=this.#Ja.get(e);a&&(this.#Ja.delete(e),a.removeAllListeners())}}};#Qa(e){const t=new Mr.CdpClient(this,e);return this.#Ja.set(e,t),t}}Rr.CdpConnection=Or;var Ar={},Br={},Dr={},zr={},Lr={},Zr={},Ur={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.getParsedType=e.ZodParsedType=e.objectUtil=e.util=void 0,function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const a of e)t[a]=a;return t},e.getValidEnumValues=t=>{const a=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),r={};for(const e of a)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.push(a);return t},e.find=(e,t)=>{for(const a of e)if(t(a))return a},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(t=e.util||(e.util={})),(e.objectUtil||(e.objectUtil={})).mergeShapes=(e,t)=>({...e,...t}),e.ZodParsedType=t.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);e.getParsedType=t=>{switch(typeof t){case"undefined":return e.ZodParsedType.undefined;case"string":return e.ZodParsedType.string;case"number":return isNaN(t)?e.ZodParsedType.nan:e.ZodParsedType.number;case"boolean":return e.ZodParsedType.boolean;case"function":return e.ZodParsedType.function;case"bigint":return e.ZodParsedType.bigint;case"symbol":return e.ZodParsedType.symbol;case"object":return Array.isArray(t)?e.ZodParsedType.array:null===t?e.ZodParsedType.null:t.then&&"function"==typeof t.then&&t.catch&&"function"==typeof t.catch?e.ZodParsedType.promise:"undefined"!=typeof Map&&t instanceof Map?e.ZodParsedType.map:"undefined"!=typeof Set&&t instanceof Set?e.ZodParsedType.set:"undefined"!=typeof Date&&t instanceof Date?e.ZodParsedType.date:e.ZodParsedType.object;default:return e.ZodParsedType.unknown}}}(Ur);var qr={};Object.defineProperty(qr,"__esModule",{value:!0}),qr.ZodError=qr.quotelessJson=qr.ZodIssueCode=void 0;const Vr=Ur;qr.ZodIssueCode=Vr.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);qr.quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Fr extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},a={_errors:[]},r=e=>{for(const n of e.issues)if("invalid_union"===n.code)n.unionErrors.map(r);else if("invalid_return_type"===n.code)r(n.returnTypeError);else if("invalid_arguments"===n.code)r(n.argumentsError);else if(0===n.path.length)a._errors.push(t(n));else{let e=a,r=0;for(;re.message)){const t={},a=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):a.push(e(r));return{formErrors:a,fieldErrors:t}}get formErrors(){return this.flatten()}}qr.ZodError=Fr,Fr.create=e=>new Fr(e),Object.defineProperty(Zr,"__esModule",{value:!0});const $r=Ur,Kr=qr;Zr.default=(e,t)=>{let a;switch(e.code){case Kr.ZodIssueCode.invalid_type:a=e.received===$r.ZodParsedType.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Kr.ZodIssueCode.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,$r.util.jsonStringifyReplacer)}`;break;case Kr.ZodIssueCode.unrecognized_keys:a=`Unrecognized key(s) in object: ${$r.util.joinValues(e.keys,", ")}`;break;case Kr.ZodIssueCode.invalid_union:a="Invalid input";break;case Kr.ZodIssueCode.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${$r.util.joinValues(e.options)}`;break;case Kr.ZodIssueCode.invalid_enum_value:a=`Invalid enum value. Expected ${$r.util.joinValues(e.options)}, received '${e.received}'`;break;case Kr.ZodIssueCode.invalid_arguments:a="Invalid function arguments";break;case Kr.ZodIssueCode.invalid_return_type:a="Invalid function return type";break;case Kr.ZodIssueCode.invalid_date:a="Invalid date";break;case Kr.ZodIssueCode.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:$r.util.assertNever(e.validation):a="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Kr.ZodIssueCode.too_small:a="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Kr.ZodIssueCode.too_big:a="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Kr.ZodIssueCode.custom:a="Invalid input";break;case Kr.ZodIssueCode.invalid_intersection_types:a="Intersection results could not be merged";break;case Kr.ZodIssueCode.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case Kr.ZodIssueCode.not_finite:a="Number must be finite";break;default:a=t.defaultError,$r.util.assertNever(e)}return{message:a}};var Hr=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.getErrorMap=Lr.setErrorMap=Lr.defaultErrorMap=void 0;const Wr=Hr(Zr);Lr.defaultErrorMap=Wr.default;let Jr=Wr.default;Lr.setErrorMap=function(e){Jr=e},Lr.getErrorMap=function(){return Jr};var Gr={};!function(t){var a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=t.isValid=t.isDirty=t.isAborted=t.OK=t.DIRTY=t.INVALID=t.ParseStatus=t.addIssueToContext=t.EMPTY_PATH=t.makeIssue=void 0;const r=Lr,n=a(Zr);t.makeIssue=e=>{const{data:t,path:a,errorMaps:r,issueData:n}=e,s=[...a,...n.path||[]],o={...n,path:s};let i="";const c=r.filter((e=>!!e)).slice().reverse();for(const e of c)i=e(o,{data:t,defaultError:i}).message;return{...n,path:s,message:n.message||i}},t.EMPTY_PATH=[],t.addIssueToContext=function(e,a){const s=(0,t.makeIssue)({issueData:a,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,(0,r.getErrorMap)(),n.default].filter((e=>!!e))});e.common.issues.push(s)};class s{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,a){const r=[];for(const n of a){if("aborted"===n.status)return t.INVALID;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const a=[];for(const e of t)a.push({key:await e.key,value:await e.value});return s.mergeObjectSync(e,a)}static mergeObjectSync(e,a){const r={};for(const n of a){const{key:a,value:s}=n;if("aborted"===a.status)return t.INVALID;if("aborted"===s.status)return t.INVALID;"dirty"===a.status&&e.dirty(),"dirty"===s.status&&e.dirty(),"__proto__"===a.value||void 0===s.value&&!n.alwaysSet||(r[a.value]=s.value)}return{status:e.value,value:r}}}t.ParseStatus=s,t.INVALID=Object.freeze({status:"aborted"});t.DIRTY=e=>({status:"dirty",value:e});t.OK=e=>({status:"valid",value:e});t.isAborted=e=>"aborted"===e.status;t.isDirty=e=>"dirty"===e.status;t.isValid=e=>"valid"===e.status;t.isAsync=e=>"undefined"!=typeof Promise&&e instanceof Promise}(Gr);var Xr={};Object.defineProperty(Xr,"__esModule",{value:!0});var Yr,Qr={},en={};Yr=en,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.errorUtil=void 0,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(Yr.errorUtil||(Yr.errorUtil={})),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.date=e.boolean=e.bigint=e.array=e.any=e.coerce=e.ZodFirstPartyTypeKind=e.late=e.ZodSchema=e.Schema=e.custom=e.ZodReadonly=e.ZodPipeline=e.ZodBranded=e.BRAND=e.ZodNaN=e.ZodCatch=e.ZodDefault=e.ZodNullable=e.ZodOptional=e.ZodTransformer=e.ZodEffects=e.ZodPromise=e.ZodNativeEnum=e.ZodEnum=e.ZodLiteral=e.ZodLazy=e.ZodFunction=e.ZodSet=e.ZodMap=e.ZodRecord=e.ZodTuple=e.ZodIntersection=e.ZodDiscriminatedUnion=e.ZodUnion=e.ZodObject=e.ZodArray=e.ZodVoid=e.ZodNever=e.ZodUnknown=e.ZodAny=e.ZodNull=e.ZodUndefined=e.ZodSymbol=e.ZodDate=e.ZodBoolean=e.ZodBigInt=e.ZodNumber=e.ZodString=e.ZodType=void 0,e.NEVER=e.void=e.unknown=e.union=e.undefined=e.tuple=e.transformer=e.symbol=e.string=e.strictObject=e.set=e.record=e.promise=e.preprocess=e.pipeline=e.ostring=e.optional=e.onumber=e.oboolean=e.object=e.number=e.nullable=e.null=e.never=e.nativeEnum=e.nan=e.map=e.literal=e.lazy=e.intersection=e.instanceof=e.function=e.enum=e.effect=e.discriminatedUnion=void 0;const t=Lr,a=en,r=Gr,n=Ur,s=qr;class o{constructor(e,t,a,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=a,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const i=(e,t)=>{if((0,r.isValid)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new s.ZodError(e.common.issues);return this._error=t,this._error}}};function c(e){if(!e)return{};const{errorMap:t,invalid_type_error:a,required_error:r,description:n}=e;if(t&&(a||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:n};return{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=a?a:t.defaultError},description:n}}class d{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,n.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,n.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new r.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,n.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if((0,r.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const a=this.safeParse(e,t);if(a.success)return a.data;throw a.error}safeParse(e,t){var a;const r={common:{issues:[],async:null!==(a=null==t?void 0:t.async)&&void 0!==a&&a,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,n.getParsedType)(e)},s=this._parseSync({data:e,path:r.path,parent:r});return i(r,s)}async parseAsync(e,t){const a=await this.safeParseAsync(e,t);if(a.success)return a.data;throw a.error}async safeParseAsync(e,t){const a={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,n.getParsedType)(e)},s=this._parse({data:e,path:a.path,parent:a}),o=await((0,r.isAsync)(s)?s:Promise.resolve(s));return i(a,o)}refine(e,t){const a=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,r)=>{const n=e(t),o=()=>r.addIssue({code:s.ZodIssueCode.custom,...a(t)});return"undefined"!=typeof Promise&&n instanceof Promise?n.then((e=>!!e||(o(),!1))):!!n||(o(),!1)}))}refinement(e,t){return this._refinement(((a,r)=>!!e(a)||(r.addIssue("function"==typeof t?t(a,r):t),!1)))}_refinement(e){return new G({schema:this,typeName:se.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return X.create(this,this._def)}nullable(){return Y.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return N.create(this,this._def)}promise(){return J.create(this,this._def)}or(e){return O.create([this,e],this._def)}and(e){return z.create(this,e,this._def)}transform(e){return new G({...c(this._def),schema:this,typeName:se.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Q({...c(this._def),innerType:this,defaultValue:t,typeName:se.ZodDefault})}brand(){return new ae({typeName:se.ZodBranded,type:this,...c(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new ee({...c(this._def),innerType:this,catchValue:t,typeName:se.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return re.create(this,e)}readonly(){return ne.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}e.ZodType=d,e.Schema=d,e.ZodSchema=d;const u=/^c[^\s-]{8,}$/i,l=/^[a-z][a-z0-9]*$/,h=/^[0-9A-HJKMNP-TV-Z]{26}$/,p=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,m=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let f;const g=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,y=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;class S extends d{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==n.ZodParsedType.string){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.string,received:t.parsedType}),r.INVALID}const t=new r.ParseStatus;let a;for(const d of this._def.checks)if("min"===d.kind)e.data.lengthd.value&&(a=this._getOrReturnCtx(e,a),(0,r.addIssueToContext)(a,{code:s.ZodIssueCode.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),t.dirty());else if("length"===d.kind){const n=e.data.length>d.value,o=e.data.lengthe.test(t)),{validation:t,code:s.ZodIssueCode.invalid_string,...a.errorUtil.errToObj(r)})}_addCheck(e){return new S({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...a.errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...a.errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...a.errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...a.errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...a.errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...a.errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...a.errorUtil.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...a.errorUtil.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...a.errorUtil.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...a.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...a.errorUtil.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...a.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...a.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...a.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...a.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...a.errorUtil.errToObj(t)})}nonempty(e){return this.min(1,a.errorUtil.errToObj(e))}trim(){return new S({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new S({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new S({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.valuer?a:r;return parseInt(e.toFixed(n).replace(".",""))%parseInt(t.toFixed(n).replace(".",""))/Math.pow(10,n)}e.ZodString=S,S.create=e=>{var t;return new S({checks:[],typeName:se.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...c(e)})};class w extends d{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==n.ZodParsedType.number){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.number,received:t.parsedType}),r.INVALID}let t;const a=new r.ParseStatus;for(const o of this._def.checks)if("int"===o.kind)n.util.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty());else if("min"===o.kind){(o.inclusive?e.datao.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty())}else"multipleOf"===o.kind?0!==v(e.data,o.value)&&(t=this._getOrReturnCtx(e,t),(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):"finite"===o.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.not_finite,message:o.message}),a.dirty()):n.util.assertNever(o);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,a.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.errorUtil.toString(t))}setLimit(e,t,r,n){return new w({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.errorUtil.toString(n)}]})}_addCheck(e){return new w({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:a.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:a.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:a.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:a.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:a.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:a.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:a.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:a.errorUtil.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&n.util.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const a of this._def.checks){if("finite"===a.kind||"int"===a.kind||"multipleOf"===a.kind)return!0;"min"===a.kind?(null===t||a.value>t)&&(t=a.value):"max"===a.kind&&(null===e||a.valuenew w({checks:[],typeName:se.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...c(e)});class b extends d{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==n.ZodParsedType.bigint){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.bigint,received:t.parsedType}),r.INVALID}let t;const a=new r.ParseStatus;for(const o of this._def.checks)if("min"===o.kind){(o.inclusive?e.datao.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty())}else"multipleOf"===o.kind?e.data%o.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):n.util.assertNever(o);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,a.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.errorUtil.toString(t))}setLimit(e,t,r,n){return new b({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.errorUtil.toString(n)}]})}_addCheck(e){return new b({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:a.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:a.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:a.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:a.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.errorUtil.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new b({checks:[],typeName:se.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...c(e)})};class C extends d{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==n.ZodParsedType.boolean){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.boolean,received:t.parsedType}),r.INVALID}return(0,r.OK)(e.data)}}e.ZodBoolean=C,C.create=e=>new C({typeName:se.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...c(e)});class x extends d{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==n.ZodParsedType.date){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.date,received:t.parsedType}),r.INVALID}if(isNaN(e.data.getTime())){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_date}),r.INVALID}const t=new r.ParseStatus;let a;for(const o of this._def.checks)"min"===o.kind?e.data.getTime()o.value&&(a=this._getOrReturnCtx(e,a),(0,r.addIssueToContext)(a,{code:s.ZodIssueCode.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),t.dirty()):n.util.assertNever(o);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new x({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:a.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:a.errorUtil.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew x({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:se.ZodDate,...c(e)});class I extends d{_parse(e){if(this._getType(e)!==n.ZodParsedType.symbol){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.symbol,received:t.parsedType}),r.INVALID}return(0,r.OK)(e.data)}}e.ZodSymbol=I,I.create=e=>new I({typeName:se.ZodSymbol,...c(e)});class P extends d{_parse(e){if(this._getType(e)!==n.ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.undefined,received:t.parsedType}),r.INVALID}return(0,r.OK)(e.data)}}e.ZodUndefined=P,P.create=e=>new P({typeName:se.ZodUndefined,...c(e)});class k extends d{_parse(e){if(this._getType(e)!==n.ZodParsedType.null){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.null,received:t.parsedType}),r.INVALID}return(0,r.OK)(e.data)}}e.ZodNull=k,k.create=e=>new k({typeName:se.ZodNull,...c(e)});class R extends d{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,r.OK)(e.data)}}e.ZodAny=R,R.create=e=>new R({typeName:se.ZodAny,...c(e)});class E extends d{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,r.OK)(e.data)}}e.ZodUnknown=E,E.create=e=>new E({typeName:se.ZodUnknown,...c(e)});class _ extends d{_parse(e){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.never,received:t.parsedType}),r.INVALID}}e.ZodNever=_,_.create=e=>new _({typeName:se.ZodNever,...c(e)});class T extends d{_parse(e){if(this._getType(e)!==n.ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.void,received:t.parsedType}),r.INVALID}return(0,r.OK)(e.data)}}e.ZodVoid=T,T.create=e=>new T({typeName:se.ZodVoid,...c(e)});class N extends d{_parse(e){const{ctx:t,status:a}=this._processInputParams(e),i=this._def;if(t.parsedType!==n.ZodParsedType.array)return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.array,received:t.parsedType}),r.INVALID;if(null!==i.exactLength){const e=t.data.length>i.exactLength.value,n=t.data.lengthi.maxLength.value&&((0,r.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),a.dirty()),t.common.async)return Promise.all([...t.data].map(((e,a)=>i.type._parseAsync(new o(t,e,t.path,a))))).then((e=>r.ParseStatus.mergeArray(a,e)));const c=[...t.data].map(((e,a)=>i.type._parseSync(new o(t,e,t.path,a))));return r.ParseStatus.mergeArray(a,c)}get element(){return this._def.type}min(e,t){return new N({...this._def,minLength:{value:e,message:a.errorUtil.toString(t)}})}max(e,t){return new N({...this._def,maxLength:{value:e,message:a.errorUtil.toString(t)}})}length(e,t){return new N({...this._def,exactLength:{value:e,message:a.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}function j(e){if(e instanceof M){const t={};for(const a in e.shape){const r=e.shape[a];t[a]=X.create(j(r))}return new M({...e._def,shape:()=>t})}return e instanceof N?new N({...e._def,type:j(e.element)}):e instanceof X?X.create(j(e.unwrap())):e instanceof Y?Y.create(j(e.unwrap())):e instanceof L?L.create(e.items.map((e=>j(e)))):e}e.ZodArray=N,N.create=(e,t)=>new N({type:e,minLength:null,maxLength:null,exactLength:null,typeName:se.ZodArray,...c(t)});class M extends d{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=n.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==n.ZodParsedType.object){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.object,received:t.parsedType}),r.INVALID}const{status:t,ctx:a}=this._processInputParams(e),{shape:i,keys:c}=this._getCached(),d=[];if(!(this._def.catchall instanceof _&&"strip"===this._def.unknownKeys))for(const e in a.data)c.includes(e)||d.push(e);const u=[];for(const e of c){const t=i[e],r=a.data[e];u.push({key:{status:"valid",value:e},value:t._parse(new o(a,r,a.path,e)),alwaysSet:e in a.data})}if(this._def.catchall instanceof _){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of d)u.push({key:{status:"valid",value:e},value:{status:"valid",value:a.data[e]}});else if("strict"===e)d.length>0&&((0,r.addIssueToContext)(a,{code:s.ZodIssueCode.unrecognized_keys,keys:d}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of d){const r=a.data[t];u.push({key:{status:"valid",value:t},value:e._parse(new o(a,r,a.path,t)),alwaysSet:t in a.data})}}return a.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of u){const a=await t.key;e.push({key:a,value:await t.value,alwaysSet:t.alwaysSet})}return e})).then((e=>r.ParseStatus.mergeObjectSync(t,e))):r.ParseStatus.mergeObjectSync(t,u)}get shape(){return this._def.shape()}strict(e){return a.errorUtil.errToObj,new M({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,s,o,i;const c=null!==(o=null===(s=(n=this._def).errorMap)||void 0===s?void 0:s.call(n,t,r).message)&&void 0!==o?o:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(i=a.errorUtil.errToObj(e).message)&&void 0!==i?i:c}:{message:c}}}:{}})}strip(){return new M({...this._def,unknownKeys:"strip"})}passthrough(){return new M({...this._def,unknownKeys:"passthrough"})}extend(e){return new M({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new M({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:se.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new M({...this._def,catchall:e})}pick(e){const t={};return n.util.objectKeys(e).forEach((a=>{e[a]&&this.shape[a]&&(t[a]=this.shape[a])})),new M({...this._def,shape:()=>t})}omit(e){const t={};return n.util.objectKeys(this.shape).forEach((a=>{e[a]||(t[a]=this.shape[a])})),new M({...this._def,shape:()=>t})}deepPartial(){return j(this)}partial(e){const t={};return n.util.objectKeys(this.shape).forEach((a=>{const r=this.shape[a];e&&!e[a]?t[a]=r:t[a]=r.optional()})),new M({...this._def,shape:()=>t})}required(e){const t={};return n.util.objectKeys(this.shape).forEach((a=>{if(e&&!e[a])t[a]=this.shape[a];else{let e=this.shape[a];for(;e instanceof X;)e=e._def.innerType;t[a]=e}})),new M({...this._def,shape:()=>t})}keyof(){return K(n.util.objectKeys(this.shape))}}e.ZodObject=M,M.create=(e,t)=>new M({shape:()=>e,unknownKeys:"strip",catchall:_.create(),typeName:se.ZodObject,...c(t)}),M.strictCreate=(e,t)=>new M({shape:()=>e,unknownKeys:"strict",catchall:_.create(),typeName:se.ZodObject,...c(t)}),M.lazycreate=(e,t)=>new M({shape:e,unknownKeys:"strip",catchall:_.create(),typeName:se.ZodObject,...c(t)});class O extends d{_parse(e){const{ctx:t}=this._processInputParams(e),a=this._def.options;if(t.common.async)return Promise.all(a.map((async e=>{const a={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:a}),ctx:a}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const a of e)if("dirty"===a.result.status)return t.common.issues.push(...a.ctx.common.issues),a.result;const a=e.map((e=>new s.ZodError(e.ctx.common.issues)));return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_union,unionErrors:a}),r.INVALID}));{let e;const n=[];for(const r of a){const a={...t,common:{...t.common,issues:[]},parent:null},s=r._parseSync({data:t.data,path:t.path,parent:a});if("valid"===s.status)return s;"dirty"!==s.status||e||(e={result:s,ctx:a}),a.common.issues.length&&n.push(a.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=n.map((e=>new s.ZodError(e)));return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_union,unionErrors:o}),r.INVALID}}get options(){return this._def.options}}e.ZodUnion=O,O.create=(e,t)=>new O({options:e,typeName:se.ZodUnion,...c(t)});const A=e=>e instanceof F?A(e.schema):e instanceof G?A(e.innerType()):e instanceof $?[e.value]:e instanceof H?e.options:e instanceof W?Object.keys(e.enum):e instanceof Q?A(e._def.innerType):e instanceof P?[void 0]:e instanceof k?[null]:null;class B extends d{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==n.ZodParsedType.object)return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.object,received:t.parsedType}),r.INVALID;const a=this.discriminator,o=t.data[a],i=this.optionsMap.get(o);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):((0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),r.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,a){const r=new Map;for(const a of t){const t=A(a.shape[e]);if(!t)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,a)}}return new B({typeName:se.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...c(a)})}}function D(e,t){const a=(0,n.getParsedType)(e),r=(0,n.getParsedType)(t);if(e===t)return{valid:!0,data:e};if(a===n.ZodParsedType.object&&r===n.ZodParsedType.object){const a=n.util.objectKeys(t),r=n.util.objectKeys(e).filter((e=>-1!==a.indexOf(e))),s={...e,...t};for(const a of r){const r=D(e[a],t[a]);if(!r.valid)return{valid:!1};s[a]=r.data}return{valid:!0,data:s}}if(a===n.ZodParsedType.array&&r===n.ZodParsedType.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let r=0;r{if((0,r.isAborted)(e)||(0,r.isAborted)(n))return r.INVALID;const o=D(e.value,n.value);return o.valid?(((0,r.isDirty)(e)||(0,r.isDirty)(n))&&t.dirty(),{status:t.value,value:o.data}):((0,r.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_intersection_types}),r.INVALID)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then((([e,t])=>n(e,t))):n(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}e.ZodIntersection=z,z.create=(e,t,a)=>new z({left:e,right:t,typeName:se.ZodIntersection,...c(a)});class L extends d{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==n.ZodParsedType.array)return(0,r.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.array,received:a.parsedType}),r.INVALID;if(a.data.lengththis._def.items.length&&((0,r.addIssueToContext)(a,{code:s.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const i=[...a.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new o(a,e,a.path,t)):null})).filter((e=>!!e));return a.common.async?Promise.all(i).then((e=>r.ParseStatus.mergeArray(t,e))):r.ParseStatus.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new L({...this._def,rest:e})}}e.ZodTuple=L,L.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new L({items:e,typeName:se.ZodTuple,rest:null,...c(t)})};class Z extends d{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==n.ZodParsedType.object)return(0,r.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.object,received:a.parsedType}),r.INVALID;const i=[],c=this._def.keyType,d=this._def.valueType;for(const e in a.data)i.push({key:c._parse(new o(a,e,a.path,e)),value:d._parse(new o(a,a.data[e],a.path,e))});return a.common.async?r.ParseStatus.mergeObjectAsync(t,i):r.ParseStatus.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,a){return new Z(t instanceof d?{keyType:e,valueType:t,typeName:se.ZodRecord,...c(a)}:{keyType:S.create(),valueType:e,typeName:se.ZodRecord,...c(t)})}}e.ZodRecord=Z;class U extends d{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==n.ZodParsedType.map)return(0,r.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.map,received:a.parsedType}),r.INVALID;const i=this._def.keyType,c=this._def.valueType,d=[...a.data.entries()].map((([e,t],r)=>({key:i._parse(new o(a,e,a.path,[r,"key"])),value:c._parse(new o(a,t,a.path,[r,"value"]))})));if(a.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const a of d){const n=await a.key,s=await a.value;if("aborted"===n.status||"aborted"===s.status)return r.INVALID;"dirty"!==n.status&&"dirty"!==s.status||t.dirty(),e.set(n.value,s.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const a of d){const n=a.key,s=a.value;if("aborted"===n.status||"aborted"===s.status)return r.INVALID;"dirty"!==n.status&&"dirty"!==s.status||t.dirty(),e.set(n.value,s.value)}return{status:t.value,value:e}}}}e.ZodMap=U,U.create=(e,t,a)=>new U({valueType:t,keyType:e,typeName:se.ZodMap,...c(a)});class q extends d{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==n.ZodParsedType.set)return(0,r.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.set,received:a.parsedType}),r.INVALID;const i=this._def;null!==i.minSize&&a.data.sizei.maxSize.value&&((0,r.addIssueToContext)(a,{code:s.ZodIssueCode.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());const c=this._def.valueType;function d(e){const a=new Set;for(const n of e){if("aborted"===n.status)return r.INVALID;"dirty"===n.status&&t.dirty(),a.add(n.value)}return{status:t.value,value:a}}const u=[...a.data.values()].map(((e,t)=>c._parse(new o(a,e,a.path,t))));return a.common.async?Promise.all(u).then((e=>d(e))):d(u)}min(e,t){return new q({...this._def,minSize:{value:e,message:a.errorUtil.toString(t)}})}max(e,t){return new q({...this._def,maxSize:{value:e,message:a.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}e.ZodSet=q,q.create=(e,t)=>new q({valueType:e,minSize:null,maxSize:null,typeName:se.ZodSet,...c(t)});class V extends d{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:a}=this._processInputParams(e);if(a.parsedType!==n.ZodParsedType.function)return(0,r.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.function,received:a.parsedType}),r.INVALID;function o(e,n){return(0,r.makeIssue)({data:e,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,(0,t.getErrorMap)(),t.defaultErrorMap].filter((e=>!!e)),issueData:{code:s.ZodIssueCode.invalid_arguments,argumentsError:n}})}function i(e,n){return(0,r.makeIssue)({data:e,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,(0,t.getErrorMap)(),t.defaultErrorMap].filter((e=>!!e)),issueData:{code:s.ZodIssueCode.invalid_return_type,returnTypeError:n}})}const c={errorMap:a.common.contextualErrorMap},d=a.data;if(this._def.returns instanceof J){const e=this;return(0,r.OK)((async function(...t){const a=new s.ZodError([]),r=await e._def.args.parseAsync(t,c).catch((e=>{throw a.addIssue(o(t,e)),a})),n=await Reflect.apply(d,this,r),u=await e._def.returns._def.type.parseAsync(n,c).catch((e=>{throw a.addIssue(i(n,e)),a}));return u}))}{const e=this;return(0,r.OK)((function(...t){const a=e._def.args.safeParse(t,c);if(!a.success)throw new s.ZodError([o(t,a.error)]);const r=Reflect.apply(d,this,a.data),n=e._def.returns.safeParse(r,c);if(!n.success)throw new s.ZodError([i(r,n.error)]);return n.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new V({...this._def,args:L.create(e).rest(E.create())})}returns(e){return new V({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,a){return new V({args:e||L.create([]).rest(E.create()),returns:t||E.create(),typeName:se.ZodFunction,...c(a)})}}e.ZodFunction=V;class F extends d{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}e.ZodLazy=F,F.create=(e,t)=>new F({getter:e,typeName:se.ZodLazy,...c(t)});class $ extends d{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{received:t.data,code:s.ZodIssueCode.invalid_literal,expected:this._def.value}),r.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}function K(e,t){return new H({values:e,typeName:se.ZodEnum,...c(t)})}e.ZodLiteral=$,$.create=(e,t)=>new $({value:e,typeName:se.ZodLiteral,...c(t)});class H extends d{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),a=this._def.values;return(0,r.addIssueToContext)(t,{expected:n.util.joinValues(a),received:t.parsedType,code:s.ZodIssueCode.invalid_type}),r.INVALID}if(-1===this._def.values.indexOf(e.data)){const t=this._getOrReturnCtx(e),a=this._def.values;return(0,r.addIssueToContext)(t,{received:t.data,code:s.ZodIssueCode.invalid_enum_value,options:a}),r.INVALID}return(0,r.OK)(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return H.create(e)}exclude(e){return H.create(this.options.filter((t=>!e.includes(t))))}}e.ZodEnum=H,H.create=K;class W extends d{_parse(e){const t=n.util.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==n.ZodParsedType.string&&a.parsedType!==n.ZodParsedType.number){const e=n.util.objectValues(t);return(0,r.addIssueToContext)(a,{expected:n.util.joinValues(e),received:a.parsedType,code:s.ZodIssueCode.invalid_type}),r.INVALID}if(-1===t.indexOf(e.data)){const e=n.util.objectValues(t);return(0,r.addIssueToContext)(a,{received:a.data,code:s.ZodIssueCode.invalid_enum_value,options:e}),r.INVALID}return(0,r.OK)(e.data)}get enum(){return this._def.values}}e.ZodNativeEnum=W,W.create=(e,t)=>new W({values:e,typeName:se.ZodNativeEnum,...c(t)});class J extends d{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==n.ZodParsedType.promise&&!1===t.common.async)return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.promise,received:t.parsedType}),r.INVALID;const a=t.parsedType===n.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,r.OK)(a.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}e.ZodPromise=J,J.create=(e,t)=>new J({type:e,typeName:se.ZodPromise,...c(t)});class G extends d{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:a}=this._processInputParams(e),s=this._def.effect||null,o={addIssue:e=>{(0,r.addIssueToContext)(a,e),e.fatal?t.abort():t.dirty()},get path(){return a.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===s.type){const e=s.transform(a.data,o);return a.common.issues.length?{status:"dirty",value:a.data}:a.common.async?Promise.resolve(e).then((e=>this._def.schema._parseAsync({data:e,path:a.path,parent:a}))):this._def.schema._parseSync({data:e,path:a.path,parent:a})}if("refinement"===s.type){const e=e=>{const t=s.refinement(e,o);if(a.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===a.common.async){const n=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===n.status?r.INVALID:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then((a=>"aborted"===a.status?r.INVALID:("dirty"===a.status&&t.dirty(),e(a.value).then((()=>({status:t.value,value:a.value}))))))}if("transform"===s.type){if(!1===a.common.async){const e=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!(0,r.isValid)(e))return e;const n=s.transform(e.value,o);if(n instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:n}}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then((e=>(0,r.isValid)(e)?Promise.resolve(s.transform(e.value,o)).then((e=>({status:t.value,value:e}))):e))}n.util.assertNever(s)}}e.ZodEffects=G,e.ZodTransformer=G,G.create=(e,t,a)=>new G({schema:e,typeName:se.ZodEffects,effect:t,...c(a)}),G.createWithPreprocess=(e,t,a)=>new G({schema:t,effect:{type:"preprocess",transform:e},typeName:se.ZodEffects,...c(a)});class X extends d{_parse(e){return this._getType(e)===n.ZodParsedType.undefined?(0,r.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e.ZodOptional=X,X.create=(e,t)=>new X({innerType:e,typeName:se.ZodOptional,...c(t)});class Y extends d{_parse(e){return this._getType(e)===n.ZodParsedType.null?(0,r.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e.ZodNullable=Y,Y.create=(e,t)=>new Y({innerType:e,typeName:se.ZodNullable,...c(t)});class Q extends d{_parse(e){const{ctx:t}=this._processInputParams(e);let a=t.data;return t.parsedType===n.ZodParsedType.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}e.ZodDefault=Q,Q.create=(e,t)=>new Q({innerType:e,typeName:se.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...c(t)});class ee extends d{_parse(e){const{ctx:t}=this._processInputParams(e),a={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return(0,r.isAsync)(n)?n.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s.ZodError(a.common.issues)},input:a.data})}))):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new s.ZodError(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}e.ZodCatch=ee,ee.create=(e,t)=>new ee({innerType:e,typeName:se.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...c(t)});class te extends d{_parse(e){if(this._getType(e)!==n.ZodParsedType.nan){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.nan,received:t.parsedType}),r.INVALID}return{status:"valid",value:e.data}}}e.ZodNaN=te,te.create=e=>new te({typeName:se.ZodNaN,...c(e)}),e.BRAND=Symbol("zod_brand");class ae extends d{_parse(e){const{ctx:t}=this._processInputParams(e),a=t.data;return this._def.type._parse({data:a,path:t.path,parent:t})}unwrap(){return this._def.type}}e.ZodBranded=ae;class re extends d{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?r.INVALID:"dirty"===e.status?(t.dirty(),(0,r.DIRTY)(e.value)):this._def.out._parseAsync({data:e.value,path:a.path,parent:a})})()}{const e=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?r.INVALID:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:a.path,parent:a})}}static create(e,t){return new re({in:e,out:t,typeName:se.ZodPipeline})}}e.ZodPipeline=re;class ne extends d{_parse(e){const t=this._def.innerType._parse(e);return(0,r.isValid)(t)&&(t.value=Object.freeze(t.value)),t}}e.ZodReadonly=ne,ne.create=(e,t)=>new ne({innerType:e,typeName:se.ZodReadonly,...c(t)});var se;e.custom=(e,t={},a)=>e?R.create().superRefine(((r,n)=>{var s,o;if(!e(r)){const e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,i=null===(o=null!==(s=e.fatal)&&void 0!==s?s:a)||void 0===o||o,c="string"==typeof e?{message:e}:e;n.addIssue({code:"custom",...c,fatal:i})}})):R.create(),e.late={object:M.lazycreate},function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(se=e.ZodFirstPartyTypeKind||(e.ZodFirstPartyTypeKind={}));e.instanceof=(t,a={message:`Input not instance of ${t.name}`})=>(0,e.custom)((e=>e instanceof t),a);const oe=S.create;e.string=oe;const ie=w.create;e.number=ie;const ce=te.create;e.nan=ce;const de=b.create;e.bigint=de;const ue=C.create;e.boolean=ue;const le=x.create;e.date=le;const he=I.create;e.symbol=he;const pe=P.create;e.undefined=pe;const me=k.create;e.null=me;const fe=R.create;e.any=fe;const ge=E.create;e.unknown=ge;const ye=_.create;e.never=ye;const Se=T.create;e.void=Se;const ve=N.create;e.array=ve;const we=M.create;e.object=we;const be=M.strictCreate;e.strictObject=be;const Ce=O.create;e.union=Ce;const xe=B.create;e.discriminatedUnion=xe;const Ie=z.create;e.intersection=Ie;const Pe=L.create;e.tuple=Pe;const ke=Z.create;e.record=ke;const Re=U.create;e.map=Re;const Ee=q.create;e.set=Ee;const _e=V.create;e.function=_e;const Te=F.create;e.lazy=Te;const Ne=$.create;e.literal=Ne;const je=H.create;e.enum=je;const Me=W.create;e.nativeEnum=Me;const Oe=J.create;e.promise=Oe;const Ae=G.create;e.effect=Ae,e.transformer=Ae;const Be=X.create;e.optional=Be;const De=Y.create;e.nullable=De;const ze=G.createWithPreprocess;e.preprocess=ze;const Le=re.create;e.pipeline=Le;e.ostring=()=>oe().optional();e.onumber=()=>ie().optional();e.oboolean=()=>ue().optional(),e.coerce={string:e=>S.create({...e,coerce:!0}),number:e=>w.create({...e,coerce:!0}),boolean:e=>C.create({...e,coerce:!0}),bigint:e=>b.create({...e,coerce:!0}),date:e=>x.create({...e,coerce:!0})},e.NEVER=r.INVALID}(Qr),function(t){var a=e&&e.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(Lr,t),r(Gr,t),r(Xr,t),r(Ur,t),r(Qr,t),r(qr,t)}(zr),function(t){var a=e&&e.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t},s=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.z=void 0;const o=n(zr);t.z=o,s(zr,t),t.default=o}(Dr);var tn={};!function(t){var a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Input=t.InputCommandSchema=t.Log=t.LogEventSchema=t.Script=t.ScriptResultSchema=t.ScriptCommandSchema=t.ScriptEventSchema=t.Network=t.NetworkResultSchema=t.NetworkEventSchema=t.NetworkCommandSchema=t.BrowsingContext=t.BrowsingContextResultSchema=t.BrowsingContextEventSchema=t.BrowsingContextCommandSchema=t.Browser=t.BrowserCommandSchema=t.SessionResultSchema=t.Session=t.SessionCommandSchema=t.ErrorCodeSchema=t.JsUintSchema=t.JsIntSchema=t.ExtensibleSchema=t.EmptyResultSchema=t.ErrorResponseSchema=t.MessageSchema=t.EmptyParamsSchema=t.ResultDataSchema=t.CommandDataSchema=t.EventDataSchema=t.CommandResponseSchema=t.CommandSchema=t.EventSchema=void 0;const r=a(Dr);var n,s,o,i,c,d,u;t.EventSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("event")}).and(t.EventDataSchema).and(t.ExtensibleSchema))),t.CommandSchema=r.default.lazy((()=>r.default.object({id:t.JsUintSchema}).and(t.CommandDataSchema).and(t.ExtensibleSchema))),t.CommandResponseSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("success"),id:t.JsUintSchema,result:t.ResultDataSchema}).and(t.ExtensibleSchema))),t.EventDataSchema=r.default.lazy((()=>r.default.union([t.BrowsingContextEventSchema,t.LogEventSchema,t.NetworkEventSchema,t.ScriptEventSchema]))),t.CommandDataSchema=r.default.lazy((()=>r.default.union([t.BrowserCommandSchema,t.BrowsingContextCommandSchema,t.InputCommandSchema,t.NetworkCommandSchema,t.ScriptCommandSchema,t.SessionCommandSchema]))),t.ResultDataSchema=r.default.lazy((()=>r.default.union([t.BrowsingContextResultSchema,t.EmptyResultSchema,t.NetworkResultSchema,t.ScriptResultSchema,t.SessionResultSchema]))),t.EmptyParamsSchema=r.default.lazy((()=>t.ExtensibleSchema)),t.MessageSchema=r.default.lazy((()=>r.default.union([t.CommandResponseSchema,t.ErrorResponseSchema,t.EventSchema]))),t.ErrorResponseSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("error"),id:r.default.union([t.JsUintSchema,r.default.null()]),error:t.ErrorCodeSchema,message:r.default.string(),stacktrace:r.default.string().optional()}).and(t.ExtensibleSchema))),t.EmptyResultSchema=r.default.lazy((()=>t.ExtensibleSchema)),t.ExtensibleSchema=r.default.lazy((()=>r.default.record(r.default.string(),r.default.any()))),t.JsIntSchema=r.default.lazy((()=>r.default.number().int().gte(-9007199254740991).lte(9007199254740991))),t.JsUintSchema=r.default.lazy((()=>r.default.number().int().nonnegative().gte(0).lte(9007199254740991))),t.ErrorCodeSchema=r.default.lazy((()=>r.default.enum(["invalid argument","invalid session id","move target out of bounds","no such alert","no such element","no such frame","no such handle","no such history entry","no such intercept","no such node","no such request","no such script","session not created","unable to capture screen","unable to close browser","unknown command","unknown error","unsupported operation"]))),t.SessionCommandSchema=r.default.lazy((()=>r.default.union([n.EndSchema,n.NewSchema,n.StatusSchema,n.SubscribeSchema,n.UnsubscribeSchema]))),function(e){e.ProxyConfigurationSchema=r.default.lazy((()=>r.default.union([e.AutodetectProxyConfigurationSchema,e.DirectProxyConfigurationSchema,e.ManualProxyConfigurationSchema,e.PacProxyConfigurationSchema,e.SystemProxyConfigurationSchema,r.default.object({})])))}(n||(t.Session=n={})),t.SessionResultSchema=r.default.lazy((()=>r.default.union([n.NewResultSchema,n.StatusResultSchema]))),function(e){e.CapabilitiesRequestSchema=r.default.lazy((()=>r.default.object({alwaysMatch:e.CapabilityRequestSchema.optional(),firstMatch:r.default.array(e.CapabilityRequestSchema).optional()})))}(n||(t.Session=n={})),function(e){e.CapabilityRequestSchema=r.default.lazy((()=>r.default.object({acceptInsecureCerts:r.default.boolean().optional(),browserName:r.default.string().optional(),browserVersion:r.default.string().optional(),platformName:r.default.string().optional(),proxy:e.ProxyConfigurationSchema.optional(),webSocketUrl:r.default.boolean().optional()}).and(t.ExtensibleSchema)))}(n||(t.Session=n={})),function(e){e.AutodetectProxyConfigurationSchema=r.default.lazy((()=>r.default.object({proxyType:r.default.literal("autodetect")}).and(t.ExtensibleSchema)))}(n||(t.Session=n={})),function(e){e.DirectProxyConfigurationSchema=r.default.lazy((()=>r.default.object({proxyType:r.default.literal("direct")}).and(t.ExtensibleSchema)))}(n||(t.Session=n={})),function(e){e.ManualProxyConfigurationSchema=r.default.lazy((()=>r.default.object({proxyType:r.default.literal("manual"),ftpProxy:r.default.string().optional(),httpProxy:r.default.string().optional(),sslProxy:r.default.string().optional()}).and(e.SocksProxyConfigurationSchema.or(r.default.object({}))).and(r.default.object({noProxy:r.default.array(r.default.string()).optional()})).and(t.ExtensibleSchema)))}(n||(t.Session=n={})),function(e){e.SocksProxyConfigurationSchema=r.default.lazy((()=>r.default.object({socksProxy:r.default.string(),socksVersion:r.default.number().int().nonnegative().gte(0).lte(255)})))}(n||(t.Session=n={})),function(e){e.PacProxyConfigurationSchema=r.default.lazy((()=>r.default.object({proxyType:r.default.literal("pac"),proxyAutoconfigUrl:r.default.string()}).and(t.ExtensibleSchema)))}(n||(t.Session=n={})),function(e){e.SystemProxyConfigurationSchema=r.default.lazy((()=>r.default.object({proxyType:r.default.literal("system")}).and(t.ExtensibleSchema)))}(n||(t.Session=n={})),function(e){e.SubscriptionRequestSchema=r.default.lazy((()=>r.default.object({events:r.default.array(r.default.string()),contexts:r.default.array(o.BrowsingContextSchema).optional()})))}(n||(t.Session=n={})),function(e){e.StatusSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("session.status"),params:t.EmptyParamsSchema})))}(n||(t.Session=n={})),function(e){e.StatusResultSchema=r.default.lazy((()=>r.default.object({ready:r.default.boolean(),message:r.default.string()})))}(n||(t.Session=n={})),function(e){e.NewSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("session.new"),params:e.NewParametersSchema})))}(n||(t.Session=n={})),function(e){e.NewParametersSchema=r.default.lazy((()=>r.default.object({capabilities:e.CapabilitiesRequestSchema})))}(n||(t.Session=n={})),function(e){e.NewResultSchema=r.default.lazy((()=>r.default.object({sessionId:r.default.string(),capabilities:r.default.object({acceptInsecureCerts:r.default.boolean(),browserName:r.default.string(),browserVersion:r.default.string(),platformName:r.default.string(),setWindowRect:r.default.boolean(),proxy:e.ProxyConfigurationSchema.optional(),webSocketUrl:r.default.union([r.default.string(),r.default.literal(!0)]).optional()}).and(t.ExtensibleSchema)})))}(n||(t.Session=n={})),function(e){e.EndSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("session.end"),params:t.EmptyParamsSchema})))}(n||(t.Session=n={})),function(e){e.SubscribeSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("session.subscribe"),params:e.SubscriptionRequestSchema})))}(n||(t.Session=n={})),function(e){e.UnsubscribeSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("session.unsubscribe"),params:e.SubscriptionRequestSchema})))}(n||(t.Session=n={})),t.BrowserCommandSchema=r.default.lazy((()=>s.CloseSchema)),function(e){e.CloseSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browser.close"),params:t.EmptyParamsSchema})))}(s||(t.Browser=s={})),t.BrowsingContextCommandSchema=r.default.lazy((()=>r.default.union([o.ActivateSchema,o.CaptureScreenshotSchema,o.CloseSchema,o.CreateSchema,o.GetTreeSchema,o.HandleUserPromptSchema,o.LocateNodesSchema,o.NavigateSchema,o.PrintSchema,o.ReloadSchema,o.SetViewportSchema,o.TraverseHistorySchema]))),t.BrowsingContextEventSchema=r.default.lazy((()=>r.default.union([o.ContextCreatedSchema,o.ContextDestroyedSchema,o.DomContentLoadedSchema,o.DownloadWillBeginSchema,o.FragmentNavigatedSchema,o.LoadSchema,o.NavigationAbortedSchema,o.NavigationFailedSchema,o.NavigationStartedSchema,o.UserPromptClosedSchema,o.UserPromptOpenedSchema]))),t.BrowsingContextResultSchema=r.default.lazy((()=>r.default.union([o.CaptureScreenshotResultSchema,o.CreateResultSchema,o.GetTreeResultSchema,o.LocateNodesResultSchema,o.NavigateResultSchema,o.PrintResultSchema,o.TraverseHistoryResultSchema]))),function(e){e.BrowsingContextSchema=r.default.lazy((()=>r.default.string()))}(o||(t.BrowsingContext=o={})),function(e){e.InfoListSchema=r.default.lazy((()=>r.default.array(e.InfoSchema)))}(o||(t.BrowsingContext=o={})),function(e){e.InfoSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,url:r.default.string(),children:r.default.union([e.InfoListSchema,r.default.null()]),parent:r.default.union([e.BrowsingContextSchema,r.default.null()]).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.LocatorSchema=r.default.lazy((()=>r.default.union([e.CssLocatorSchema,e.InnerTextLocatorSchema,e.XPathLocatorSchema])))}(o||(t.BrowsingContext=o={})),function(e){e.CssLocatorSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("css"),value:r.default.string()})))}(o||(t.BrowsingContext=o={})),function(e){e.InnerTextLocatorSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("innerText"),value:r.default.string(),ignoreCase:r.default.boolean().optional(),matchType:r.default.enum(["full","partial"]).optional(),maxDepth:t.JsUintSchema.optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.XPathLocatorSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("xpath"),value:r.default.string()})))}(o||(t.BrowsingContext=o={})),function(e){e.NavigationSchema=r.default.lazy((()=>r.default.string()))}(o||(t.BrowsingContext=o={})),function(e){e.NavigationInfoSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,navigation:r.default.union([e.NavigationSchema,r.default.null()]),timestamp:t.JsUintSchema,url:r.default.string()})))}(o||(t.BrowsingContext=o={})),function(e){e.ReadinessStateSchema=r.default.lazy((()=>r.default.enum(["none","interactive","complete"])))}(o||(t.BrowsingContext=o={})),function(e){e.ActivateSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.activate"),params:e.ActivateParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.ActivateParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.CaptureScreenshotParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,origin:r.default.enum(["viewport","document"]).default("viewport").optional(),format:e.ImageFormatSchema.optional(),clip:e.ClipRectangleSchema.optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.CaptureScreenshotSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.captureScreenshot"),params:e.CaptureScreenshotParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.ImageFormatSchema=r.default.lazy((()=>r.default.object({type:r.default.string(),quality:r.default.number().gte(0).lte(1).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.ClipRectangleSchema=r.default.lazy((()=>r.default.union([e.BoxClipRectangleSchema,e.ElementClipRectangleSchema])))}(o||(t.BrowsingContext=o={})),function(e){e.ElementClipRectangleSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("element"),element:c.SharedReferenceSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.BoxClipRectangleSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("box"),x:r.default.number(),y:r.default.number(),width:r.default.number(),height:r.default.number()})))}(o||(t.BrowsingContext=o={})),function(e){e.CaptureScreenshotResultSchema=r.default.lazy((()=>r.default.object({data:r.default.string()})))}(o||(t.BrowsingContext=o={})),function(e){e.CloseSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.close"),params:e.CloseParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.CloseParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,promptUnload:r.default.boolean().default(!1).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.CreateSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.create"),params:e.CreateParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.CreateTypeSchema=r.default.lazy((()=>r.default.enum(["tab","window"])))}(o||(t.BrowsingContext=o={})),function(e){e.CreateParametersSchema=r.default.lazy((()=>r.default.object({type:e.CreateTypeSchema,referenceContext:e.BrowsingContextSchema.optional(),background:r.default.boolean().default(!1).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.CreateResultSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.GetTreeSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.getTree"),params:e.GetTreeParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.GetTreeParametersSchema=r.default.lazy((()=>r.default.object({maxDepth:t.JsUintSchema.optional(),root:e.BrowsingContextSchema.optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.GetTreeResultSchema=r.default.lazy((()=>r.default.object({contexts:e.InfoListSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.HandleUserPromptSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.handleUserPrompt"),params:e.HandleUserPromptParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.HandleUserPromptParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,accept:r.default.boolean().optional(),userText:r.default.string().optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.LocateNodesParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,locator:e.LocatorSchema,maxNodeCount:t.JsUintSchema.gte(1).optional(),ownership:c.ResultOwnershipSchema.optional(),sandbox:r.default.string().optional(),serializationOptions:c.SerializationOptionsSchema.optional(),startNodes:r.default.array(c.SharedReferenceSchema).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.LocateNodesSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.locateNodes"),params:e.LocateNodesParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.LocateNodesResultSchema=r.default.lazy((()=>r.default.object({nodes:r.default.array(c.NodeRemoteValueSchema)})))}(o||(t.BrowsingContext=o={})),function(e){e.NavigateSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.navigate"),params:e.NavigateParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.NavigateParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,url:r.default.string(),wait:e.ReadinessStateSchema.optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.NavigateResultSchema=r.default.lazy((()=>r.default.object({navigation:r.default.union([e.NavigationSchema,r.default.null()]),url:r.default.string()})))}(o||(t.BrowsingContext=o={})),function(e){e.PrintSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.print"),params:e.PrintParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.PrintParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,background:r.default.boolean().default(!1).optional(),margin:e.PrintMarginParametersSchema.optional(),orientation:r.default.enum(["portrait","landscape"]).default("portrait").optional(),page:e.PrintPageParametersSchema.optional(),pageRanges:r.default.array(r.default.union([t.JsUintSchema,r.default.string()])).optional(),scale:r.default.number().gte(.1).lte(2).default(1).optional(),shrinkToFit:r.default.boolean().default(!0).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.PrintMarginParametersSchema=r.default.lazy((()=>r.default.object({bottom:r.default.number().gte(0).default(1).optional(),left:r.default.number().gte(0).default(1).optional(),right:r.default.number().gte(0).default(1).optional(),top:r.default.number().gte(0).default(1).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.PrintPageParametersSchema=r.default.lazy((()=>r.default.object({height:r.default.number().gte(.0352).default(27.94).optional(),width:r.default.number().gte(.0352).default(21.59).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.PrintResultSchema=r.default.lazy((()=>r.default.object({data:r.default.string()})))}(o||(t.BrowsingContext=o={})),function(e){e.ReloadSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.reload"),params:e.ReloadParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.ReloadParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,ignoreCache:r.default.boolean().optional(),wait:e.ReadinessStateSchema.optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.SetViewportSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.setViewport"),params:e.SetViewportParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.SetViewportParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,viewport:r.default.union([e.ViewportSchema,r.default.null()]).optional(),devicePixelRatio:r.default.union([r.default.number().gt(0),r.default.null()]).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.ViewportSchema=r.default.lazy((()=>r.default.object({width:t.JsUintSchema,height:t.JsUintSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.TraverseHistorySchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.traverseHistory"),params:e.TraverseHistoryParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.TraverseHistoryParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,delta:t.JsIntSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.TraverseHistoryResultSchema=r.default.lazy((()=>r.default.object({})))}(o||(t.BrowsingContext=o={})),function(e){e.ContextCreatedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.contextCreated"),params:e.InfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.ContextDestroyedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.contextDestroyed"),params:e.InfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.NavigationStartedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.navigationStarted"),params:e.NavigationInfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.FragmentNavigatedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.fragmentNavigated"),params:e.NavigationInfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.DomContentLoadedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.domContentLoaded"),params:e.NavigationInfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.LoadSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.load"),params:e.NavigationInfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.DownloadWillBeginSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.downloadWillBegin"),params:e.NavigationInfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.NavigationAbortedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.navigationAborted"),params:e.NavigationInfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.NavigationFailedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.navigationFailed"),params:e.NavigationInfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.UserPromptClosedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.userPromptClosed"),params:e.UserPromptClosedParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.UserPromptClosedParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,accepted:r.default.boolean(),userText:r.default.string().optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.UserPromptOpenedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.userPromptOpened"),params:e.UserPromptOpenedParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.UserPromptOpenedParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,type:r.default.enum(["alert","confirm","prompt","beforeunload"]),message:r.default.string(),defaultValue:r.default.string().optional()})))}(o||(t.BrowsingContext=o={})),t.NetworkCommandSchema=r.default.lazy((()=>r.default.union([i.AddInterceptSchema,i.ContinueRequestSchema,i.ContinueResponseSchema,i.ContinueWithAuthSchema,i.FailRequestSchema,i.ProvideResponseSchema,i.RemoveInterceptSchema]))),t.NetworkEventSchema=r.default.lazy((()=>r.default.union([i.AuthRequiredSchema,i.BeforeRequestSentSchema,i.FetchErrorSchema,i.ResponseCompletedSchema,i.ResponseStartedSchema]))),t.NetworkResultSchema=r.default.lazy((()=>i.AddInterceptResultSchema)),function(e){e.AuthChallengeSchema=r.default.lazy((()=>r.default.object({scheme:r.default.string(),realm:r.default.string()})))}(i||(t.Network=i={})),function(e){e.AuthCredentialsSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("password"),username:r.default.string(),password:r.default.string()})))}(i||(t.Network=i={})),function(e){e.BaseParametersSchema=r.default.lazy((()=>r.default.object({context:r.default.union([o.BrowsingContextSchema,r.default.null()]),isBlocked:r.default.boolean(),navigation:r.default.union([o.NavigationSchema,r.default.null()]),redirectCount:t.JsUintSchema,request:e.RequestDataSchema,timestamp:t.JsUintSchema,intercepts:r.default.array(e.InterceptSchema).optional()})))}(i||(t.Network=i={})),function(e){e.BytesValueSchema=r.default.lazy((()=>r.default.union([e.StringValueSchema,e.Base64ValueSchema])))}(i||(t.Network=i={})),function(e){e.StringValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("string"),value:r.default.string()})))}(i||(t.Network=i={})),function(e){e.Base64ValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("base64"),value:r.default.string()})))}(i||(t.Network=i={})),function(e){e.CookieSchema=r.default.lazy((()=>r.default.object({name:r.default.string(),value:e.BytesValueSchema,domain:r.default.string(),path:r.default.string(),size:t.JsUintSchema,httpOnly:r.default.boolean(),secure:r.default.boolean(),sameSite:r.default.enum(["strict","lax","none"]),expiry:t.JsUintSchema.optional()})))}(i||(t.Network=i={})),function(e){e.CookieHeaderSchema=r.default.lazy((()=>r.default.object({name:r.default.string(),value:e.BytesValueSchema})))}(i||(t.Network=i={})),function(e){e.FetchTimingInfoSchema=r.default.lazy((()=>r.default.object({timeOrigin:r.default.number(),requestTime:r.default.number(),redirectStart:r.default.number(),redirectEnd:r.default.number(),fetchStart:r.default.number(),dnsStart:r.default.number(),dnsEnd:r.default.number(),connectStart:r.default.number(),connectEnd:r.default.number(),tlsStart:r.default.number(),requestStart:r.default.number(),responseStart:r.default.number(),responseEnd:r.default.number()})))}(i||(t.Network=i={})),function(e){e.HeaderSchema=r.default.lazy((()=>r.default.object({name:r.default.string(),value:e.BytesValueSchema})))}(i||(t.Network=i={})),function(e){e.InitiatorSchema=r.default.lazy((()=>r.default.object({type:r.default.enum(["parser","script","preflight","other"]),columnNumber:t.JsUintSchema.optional(),lineNumber:t.JsUintSchema.optional(),stackTrace:c.StackTraceSchema.optional(),request:e.RequestSchema.optional()})))}(i||(t.Network=i={})),function(e){e.InterceptSchema=r.default.lazy((()=>r.default.string()))}(i||(t.Network=i={})),function(e){e.RequestSchema=r.default.lazy((()=>r.default.string()))}(i||(t.Network=i={})),function(e){e.RequestDataSchema=r.default.lazy((()=>r.default.object({request:e.RequestSchema,url:r.default.string(),method:r.default.string(),headers:r.default.array(e.HeaderSchema),cookies:r.default.array(e.CookieSchema),headersSize:t.JsUintSchema,bodySize:r.default.union([t.JsUintSchema,r.default.null()]),timings:e.FetchTimingInfoSchema})))}(i||(t.Network=i={})),function(e){e.ResponseContentSchema=r.default.lazy((()=>r.default.object({size:t.JsUintSchema})))}(i||(t.Network=i={})),function(e){e.ResponseDataSchema=r.default.lazy((()=>r.default.object({url:r.default.string(),protocol:r.default.string(),status:t.JsUintSchema,statusText:r.default.string(),fromCache:r.default.boolean(),headers:r.default.array(e.HeaderSchema),mimeType:r.default.string(),bytesReceived:t.JsUintSchema,headersSize:r.default.union([t.JsUintSchema,r.default.null()]),bodySize:r.default.union([t.JsUintSchema,r.default.null()]),content:e.ResponseContentSchema,authChallenge:e.AuthChallengeSchema.optional()})))}(i||(t.Network=i={})),function(e){e.SetCookieHeaderSchema=r.default.lazy((()=>r.default.object({name:r.default.string(),value:e.BytesValueSchema,domain:r.default.string().optional(),httpOnly:r.default.boolean().optional(),expiry:r.default.string().optional(),maxAge:t.JsIntSchema.optional(),path:r.default.string().optional(),sameSite:r.default.enum(["strict","lax","none"]).optional(),secure:r.default.boolean().optional()})))}(i||(t.Network=i={})),function(e){e.UrlPatternSchema=r.default.lazy((()=>r.default.union([e.UrlPatternPatternSchema,e.UrlPatternStringSchema])))}(i||(t.Network=i={})),function(e){e.UrlPatternPatternSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("pattern"),protocol:r.default.string().optional(),hostname:r.default.string().optional(),port:r.default.string().optional(),pathname:r.default.string().optional(),search:r.default.string().optional()})))}(i||(t.Network=i={})),function(e){e.UrlPatternStringSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("string"),pattern:r.default.string()})))}(i||(t.Network=i={})),function(e){e.AddInterceptParametersSchema=r.default.lazy((()=>r.default.object({phases:r.default.array(e.InterceptPhaseSchema),urlPatterns:r.default.array(e.UrlPatternSchema).optional()})))}(i||(t.Network=i={})),function(e){e.AddInterceptSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.addIntercept"),params:e.AddInterceptParametersSchema})))}(i||(t.Network=i={})),function(e){e.InterceptPhaseSchema=r.default.lazy((()=>r.default.enum(["beforeRequestSent","responseStarted","authRequired"])))}(i||(t.Network=i={})),function(e){e.AddInterceptResultSchema=r.default.lazy((()=>r.default.object({intercept:e.InterceptSchema})))}(i||(t.Network=i={})),function(e){e.ContinueRequestSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.continueRequest"),params:e.ContinueRequestParametersSchema})))}(i||(t.Network=i={})),function(e){e.ContinueRequestParametersSchema=r.default.lazy((()=>r.default.object({request:e.RequestSchema,body:e.BytesValueSchema.optional(),cookies:r.default.array(e.CookieHeaderSchema).optional(),headers:r.default.array(e.HeaderSchema).optional(),method:r.default.string().optional(),url:r.default.string().optional()})))}(i||(t.Network=i={})),function(e){e.ContinueResponseSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.continueResponse"),params:e.ContinueResponseParametersSchema})))}(i||(t.Network=i={})),function(e){e.ContinueResponseParametersSchema=r.default.lazy((()=>r.default.object({request:e.RequestSchema,cookies:r.default.array(e.SetCookieHeaderSchema).optional(),credentials:e.AuthCredentialsSchema.optional(),headers:r.default.array(e.HeaderSchema).optional(),reasonPhrase:r.default.string().optional(),statusCode:t.JsUintSchema.optional()})))}(i||(t.Network=i={})),function(e){e.ContinueWithAuthSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.continueWithAuth"),params:e.ContinueWithAuthParametersSchema})))}(i||(t.Network=i={})),function(e){e.ContinueWithAuthParametersSchema=r.default.lazy((()=>r.default.object({request:e.RequestSchema}).and(r.default.union([e.ContinueWithAuthCredentialsSchema,e.ContinueWithAuthNoCredentialsSchema]))))}(i||(t.Network=i={})),function(e){e.ContinueWithAuthCredentialsSchema=r.default.lazy((()=>r.default.object({action:r.default.literal("provideCredentials"),credentials:e.AuthCredentialsSchema})))}(i||(t.Network=i={})),function(e){e.ContinueWithAuthNoCredentialsSchema=r.default.lazy((()=>r.default.object({action:r.default.enum(["default","cancel"])})))}(i||(t.Network=i={})),function(e){e.FailRequestSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.failRequest"),params:e.FailRequestParametersSchema})))}(i||(t.Network=i={})),function(e){e.FailRequestParametersSchema=r.default.lazy((()=>r.default.object({request:e.RequestSchema})))}(i||(t.Network=i={})),function(e){e.ProvideResponseSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.provideResponse"),params:e.ProvideResponseParametersSchema})))}(i||(t.Network=i={})),function(e){e.ProvideResponseParametersSchema=r.default.lazy((()=>r.default.object({request:e.RequestSchema,body:e.BytesValueSchema.optional(),cookies:r.default.array(e.SetCookieHeaderSchema).optional(),headers:r.default.array(e.HeaderSchema).optional(),reasonPhrase:r.default.string().optional(),statusCode:t.JsUintSchema.optional()})))}(i||(t.Network=i={})),function(e){e.RemoveInterceptSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.removeIntercept"),params:e.RemoveInterceptParametersSchema})))}(i||(t.Network=i={})),function(e){e.RemoveInterceptParametersSchema=r.default.lazy((()=>r.default.object({intercept:e.InterceptSchema})))}(i||(t.Network=i={})),t.ScriptEventSchema=r.default.lazy((()=>r.default.union([c.MessageSchema,c.RealmCreatedSchema,c.RealmDestroyedSchema]))),function(e){e.AuthRequiredParametersSchema=r.default.lazy((()=>e.BaseParametersSchema.and(r.default.object({response:e.ResponseDataSchema}))))}(i||(t.Network=i={})),function(e){e.BeforeRequestSentParametersSchema=r.default.lazy((()=>e.BaseParametersSchema.and(r.default.object({initiator:e.InitiatorSchema}))))}(i||(t.Network=i={})),function(e){e.FetchErrorParametersSchema=r.default.lazy((()=>e.BaseParametersSchema.and(r.default.object({errorText:r.default.string()}))))}(i||(t.Network=i={})),function(e){e.ResponseCompletedParametersSchema=r.default.lazy((()=>e.BaseParametersSchema.and(r.default.object({response:e.ResponseDataSchema}))))}(i||(t.Network=i={})),function(e){e.ResponseStartedParametersSchema=r.default.lazy((()=>e.BaseParametersSchema.and(r.default.object({response:e.ResponseDataSchema}))))}(i||(t.Network=i={})),t.ScriptCommandSchema=r.default.lazy((()=>r.default.union([c.AddPreloadScriptSchema,c.CallFunctionSchema,c.DisownSchema,c.EvaluateSchema,c.GetRealmsSchema,c.RemovePreloadScriptSchema]))),t.ScriptResultSchema=r.default.lazy((()=>r.default.union([c.AddPreloadScriptResultSchema,c.EvaluateResultSchema,c.GetRealmsResultSchema]))),function(e){e.AuthRequiredSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.authRequired"),params:e.AuthRequiredParametersSchema})))}(i||(t.Network=i={})),function(e){e.BeforeRequestSentSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.beforeRequestSent"),params:e.BeforeRequestSentParametersSchema})))}(i||(t.Network=i={})),function(e){e.FetchErrorSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.fetchError"),params:e.FetchErrorParametersSchema})))}(i||(t.Network=i={})),function(e){e.ResponseCompletedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.responseCompleted"),params:e.ResponseCompletedParametersSchema})))}(i||(t.Network=i={})),function(e){e.ResponseStartedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.responseStarted"),params:e.ResponseStartedParametersSchema})))}(i||(t.Network=i={})),function(e){e.ChannelSchema=r.default.lazy((()=>r.default.string()))}(c||(t.Script=c={})),function(e){e.EvaluateResultSuccessSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("success"),result:e.RemoteValueSchema,realm:e.RealmSchema})))}(c||(t.Script=c={})),function(e){e.ExceptionDetailsSchema=r.default.lazy((()=>r.default.object({columnNumber:t.JsUintSchema,exception:e.RemoteValueSchema,lineNumber:t.JsUintSchema,stackTrace:e.StackTraceSchema,text:r.default.string()})))}(c||(t.Script=c={})),function(e){e.ChannelValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("channel"),value:e.ChannelPropertiesSchema})))}(c||(t.Script=c={})),function(e){e.ChannelPropertiesSchema=r.default.lazy((()=>r.default.object({channel:e.ChannelSchema,serializationOptions:e.SerializationOptionsSchema.optional(),ownership:e.ResultOwnershipSchema.optional()})))}(c||(t.Script=c={})),function(e){e.EvaluateResultSchema=r.default.lazy((()=>r.default.union([e.EvaluateResultSuccessSchema,e.EvaluateResultExceptionSchema])))}(c||(t.Script=c={})),function(e){e.EvaluateResultExceptionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("exception"),exceptionDetails:e.ExceptionDetailsSchema,realm:e.RealmSchema})))}(c||(t.Script=c={})),function(e){e.HandleSchema=r.default.lazy((()=>r.default.string()))}(c||(t.Script=c={})),function(e){e.InternalIdSchema=r.default.lazy((()=>r.default.string()))}(c||(t.Script=c={})),function(e){e.ListLocalValueSchema=r.default.lazy((()=>r.default.array(e.LocalValueSchema)))}(c||(t.Script=c={})),function(e){e.LocalValueSchema=r.default.lazy((()=>r.default.union([e.RemoteReferenceSchema,e.PrimitiveProtocolValueSchema,e.ChannelValueSchema,e.ArrayLocalValueSchema,e.DateLocalValueSchema,e.MapLocalValueSchema,e.ObjectLocalValueSchema,e.RegExpLocalValueSchema,e.SetLocalValueSchema])))}(c||(t.Script=c={})),function(e){e.ArrayLocalValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("array"),value:e.ListLocalValueSchema})))}(c||(t.Script=c={})),function(e){e.DateLocalValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("date"),value:r.default.string()})))}(c||(t.Script=c={})),function(e){e.MappingLocalValueSchema=r.default.lazy((()=>r.default.array(r.default.tuple([r.default.union([e.LocalValueSchema,r.default.string()]),e.LocalValueSchema]))))}(c||(t.Script=c={})),function(e){e.MapLocalValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("map"),value:e.MappingLocalValueSchema})))}(c||(t.Script=c={})),function(e){e.ObjectLocalValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("object"),value:e.MappingLocalValueSchema})))}(c||(t.Script=c={})),function(e){e.RegExpValueSchema=r.default.lazy((()=>r.default.object({pattern:r.default.string(),flags:r.default.string().optional()})))}(c||(t.Script=c={})),function(e){e.RegExpLocalValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("regexp"),value:e.RegExpValueSchema})))}(c||(t.Script=c={})),function(e){e.SetLocalValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("set"),value:e.ListLocalValueSchema})))}(c||(t.Script=c={})),function(e){e.PreloadScriptSchema=r.default.lazy((()=>r.default.string()))}(c||(t.Script=c={})),function(e){e.RealmSchema=r.default.lazy((()=>r.default.string()))}(c||(t.Script=c={})),function(e){e.PrimitiveProtocolValueSchema=r.default.lazy((()=>r.default.union([e.UndefinedValueSchema,e.NullValueSchema,e.StringValueSchema,e.NumberValueSchema,e.BooleanValueSchema,e.BigIntValueSchema])))}(c||(t.Script=c={})),function(e){e.UndefinedValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("undefined")})))}(c||(t.Script=c={})),function(e){e.NullValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("null")})))}(c||(t.Script=c={})),function(e){e.StringValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("string"),value:r.default.string()})))}(c||(t.Script=c={})),function(e){e.SpecialNumberSchema=r.default.lazy((()=>r.default.enum(["NaN","-0","Infinity","-Infinity"])))}(c||(t.Script=c={})),function(e){e.NumberValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("number"),value:r.default.union([r.default.number(),e.SpecialNumberSchema])})))}(c||(t.Script=c={})),function(e){e.BooleanValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("boolean"),value:r.default.boolean()})))}(c||(t.Script=c={})),function(e){e.BigIntValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("bigint"),value:r.default.string()})))}(c||(t.Script=c={})),function(e){e.RealmInfoSchema=r.default.lazy((()=>r.default.union([e.WindowRealmInfoSchema,e.DedicatedWorkerRealmInfoSchema,e.SharedWorkerRealmInfoSchema,e.ServiceWorkerRealmInfoSchema,e.WorkerRealmInfoSchema,e.PaintWorkletRealmInfoSchema,e.AudioWorkletRealmInfoSchema,e.WorkletRealmInfoSchema])))}(c||(t.Script=c={})),function(e){e.BaseRealmInfoSchema=r.default.lazy((()=>r.default.object({realm:e.RealmSchema,origin:r.default.string()})))}(c||(t.Script=c={})),function(e){e.WindowRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("window"),context:o.BrowsingContextSchema,sandbox:r.default.string().optional()}))))}(c||(t.Script=c={})),function(e){e.DedicatedWorkerRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("dedicated-worker")}))))}(c||(t.Script=c={})),function(e){e.SharedWorkerRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("shared-worker")}))))}(c||(t.Script=c={})),function(e){e.ServiceWorkerRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("service-worker")}))))}(c||(t.Script=c={})),function(e){e.WorkerRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("worker")}))))}(c||(t.Script=c={})),function(e){e.PaintWorkletRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("paint-worklet")}))))}(c||(t.Script=c={})),function(e){e.AudioWorkletRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("audio-worklet")}))))}(c||(t.Script=c={})),function(e){e.WorkletRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("worklet")}))))}(c||(t.Script=c={})),function(e){e.RealmTypeSchema=r.default.lazy((()=>r.default.enum(["window","dedicated-worker","shared-worker","service-worker","worker","paint-worklet","audio-worklet","worklet"])))}(c||(t.Script=c={})),function(e){e.ListRemoteValueSchema=r.default.lazy((()=>r.default.array(e.RemoteValueSchema)))}(c||(t.Script=c={})),function(e){e.MappingRemoteValueSchema=r.default.lazy((()=>r.default.array(r.default.tuple([r.default.union([e.RemoteValueSchema,r.default.string()]),e.RemoteValueSchema]))))}(c||(t.Script=c={})),function(e){e.RemoteValueSchema=r.default.lazy((()=>r.default.union([e.PrimitiveProtocolValueSchema,e.SymbolRemoteValueSchema,e.ArrayRemoteValueSchema,e.ObjectRemoteValueSchema,e.FunctionRemoteValueSchema,e.RegExpRemoteValueSchema,e.DateRemoteValueSchema,e.MapRemoteValueSchema,e.SetRemoteValueSchema,e.WeakMapRemoteValueSchema,e.WeakSetRemoteValueSchema,e.IteratorRemoteValueSchema,e.GeneratorRemoteValueSchema,e.ErrorRemoteValueSchema,e.ProxyRemoteValueSchema,e.PromiseRemoteValueSchema,e.TypedArrayRemoteValueSchema,e.ArrayBufferRemoteValueSchema,e.NodeListRemoteValueSchema,e.HtmlCollectionRemoteValueSchema,e.NodeRemoteValueSchema,e.WindowProxyRemoteValueSchema])))}(c||(t.Script=c={})),function(e){e.RemoteReferenceSchema=r.default.lazy((()=>r.default.union([e.SharedReferenceSchema,e.RemoteObjectReferenceSchema])))}(c||(t.Script=c={})),function(e){e.SharedReferenceSchema=r.default.lazy((()=>r.default.object({sharedId:e.SharedIdSchema,handle:e.HandleSchema.optional()}).and(t.ExtensibleSchema)))}(c||(t.Script=c={})),function(e){e.RemoteObjectReferenceSchema=r.default.lazy((()=>r.default.object({handle:e.HandleSchema,sharedId:e.SharedIdSchema.optional()}).and(t.ExtensibleSchema)))}(c||(t.Script=c={})),function(e){e.SymbolRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("symbol"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.ArrayRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("array"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional(),value:e.ListRemoteValueSchema.optional()})))}(c||(t.Script=c={})),function(e){e.ObjectRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("object"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional(),value:e.MappingRemoteValueSchema.optional()})))}(c||(t.Script=c={})),function(e){e.FunctionRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("function"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.RegExpRemoteValueSchema=r.default.lazy((()=>r.default.object({handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()}).and(e.RegExpLocalValueSchema)))}(c||(t.Script=c={})),function(e){e.DateRemoteValueSchema=r.default.lazy((()=>r.default.object({handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()}).and(e.DateLocalValueSchema)))}(c||(t.Script=c={})),function(e){e.MapRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("map"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional(),value:e.MappingRemoteValueSchema.optional()})))}(c||(t.Script=c={})),function(e){e.SetRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("set"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional(),value:e.ListRemoteValueSchema.optional()})))}(c||(t.Script=c={})),function(e){e.WeakMapRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("weakmap"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.WeakSetRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("weakset"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.IteratorRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("iterator"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.GeneratorRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("generator"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.ErrorRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("error"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.ProxyRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("proxy"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.PromiseRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("promise"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.TypedArrayRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("typedarray"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.ArrayBufferRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("arraybuffer"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.NodeListRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("nodelist"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional(),value:e.ListRemoteValueSchema.optional()})))}(c||(t.Script=c={})),function(e){e.HtmlCollectionRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("htmlcollection"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional(),value:e.ListRemoteValueSchema.optional()})))}(c||(t.Script=c={})),function(e){e.NodeRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("node"),sharedId:e.SharedIdSchema.optional(),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional(),value:e.NodePropertiesSchema.optional()})))}(c||(t.Script=c={})),function(e){e.NodePropertiesSchema=r.default.lazy((()=>r.default.object({nodeType:t.JsUintSchema,childNodeCount:t.JsUintSchema,attributes:r.default.record(r.default.string(),r.default.string()).optional(),children:r.default.array(e.NodeRemoteValueSchema).optional(),localName:r.default.string().optional(),mode:r.default.enum(["open","closed"]).optional(),namespaceURI:r.default.string().optional(),nodeValue:r.default.string().optional(),shadowRoot:r.default.union([e.NodeRemoteValueSchema,r.default.null()]).optional()})))}(c||(t.Script=c={})),function(e){e.WindowProxyRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("window"),value:e.WindowProxyPropertiesSchema,handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.WindowProxyPropertiesSchema=r.default.lazy((()=>r.default.object({context:o.BrowsingContextSchema})))}(c||(t.Script=c={})),function(e){e.ResultOwnershipSchema=r.default.lazy((()=>r.default.enum(["root","none"])))}(c||(t.Script=c={})),function(e){e.SerializationOptionsSchema=r.default.lazy((()=>r.default.object({maxDomDepth:r.default.union([t.JsUintSchema,r.default.null()]).default(0).optional(),maxObjectDepth:r.default.union([t.JsUintSchema,r.default.null()]).default(null).optional(),includeShadowTree:r.default.enum(["none","open","all"]).default("none").optional()})))}(c||(t.Script=c={})),function(e){e.SharedIdSchema=r.default.lazy((()=>r.default.string()))}(c||(t.Script=c={})),function(e){e.StackFrameSchema=r.default.lazy((()=>r.default.object({columnNumber:t.JsUintSchema,functionName:r.default.string(),lineNumber:t.JsUintSchema,url:r.default.string()})))}(c||(t.Script=c={})),function(e){e.StackTraceSchema=r.default.lazy((()=>r.default.object({callFrames:r.default.array(e.StackFrameSchema)})))}(c||(t.Script=c={})),function(e){e.SourceSchema=r.default.lazy((()=>r.default.object({realm:e.RealmSchema,context:o.BrowsingContextSchema.optional()})))}(c||(t.Script=c={})),function(e){e.RealmTargetSchema=r.default.lazy((()=>r.default.object({realm:e.RealmSchema})))}(c||(t.Script=c={})),function(e){e.ContextTargetSchema=r.default.lazy((()=>r.default.object({context:o.BrowsingContextSchema,sandbox:r.default.string().optional()})))}(c||(t.Script=c={})),function(e){e.TargetSchema=r.default.lazy((()=>r.default.union([e.RealmTargetSchema,e.ContextTargetSchema])))}(c||(t.Script=c={})),function(e){e.AddPreloadScriptSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.addPreloadScript"),params:e.AddPreloadScriptParametersSchema})))}(c||(t.Script=c={})),function(e){e.AddPreloadScriptParametersSchema=r.default.lazy((()=>r.default.object({functionDeclaration:r.default.string(),arguments:r.default.array(e.ChannelValueSchema).optional(),contexts:r.default.array(o.BrowsingContextSchema).optional(),sandbox:r.default.string().optional()})))}(c||(t.Script=c={})),function(e){e.AddPreloadScriptResultSchema=r.default.lazy((()=>r.default.object({script:e.PreloadScriptSchema})))}(c||(t.Script=c={})),function(e){e.DisownSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.disown"),params:e.DisownParametersSchema})))}(c||(t.Script=c={})),function(e){e.DisownParametersSchema=r.default.lazy((()=>r.default.object({handles:r.default.array(e.HandleSchema),target:e.TargetSchema})))}(c||(t.Script=c={})),function(e){e.CallFunctionParametersSchema=r.default.lazy((()=>r.default.object({functionDeclaration:r.default.string(),awaitPromise:r.default.boolean(),target:e.TargetSchema,arguments:r.default.array(e.LocalValueSchema).optional(),resultOwnership:e.ResultOwnershipSchema.optional(),serializationOptions:e.SerializationOptionsSchema.optional(),this:e.LocalValueSchema.optional(),userActivation:r.default.boolean().default(!1).optional()})))}(c||(t.Script=c={})),function(e){e.CallFunctionSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.callFunction"),params:e.CallFunctionParametersSchema})))}(c||(t.Script=c={})),function(e){e.EvaluateSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.evaluate"),params:e.EvaluateParametersSchema})))}(c||(t.Script=c={})),function(e){e.EvaluateParametersSchema=r.default.lazy((()=>r.default.object({expression:r.default.string(),target:e.TargetSchema,awaitPromise:r.default.boolean(),resultOwnership:e.ResultOwnershipSchema.optional(),serializationOptions:e.SerializationOptionsSchema.optional(),userActivation:r.default.boolean().default(!1).optional()})))}(c||(t.Script=c={})),function(e){e.GetRealmsSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.getRealms"),params:e.GetRealmsParametersSchema})))}(c||(t.Script=c={})),function(e){e.GetRealmsParametersSchema=r.default.lazy((()=>r.default.object({context:o.BrowsingContextSchema.optional(),type:e.RealmTypeSchema.optional()})))}(c||(t.Script=c={})),function(e){e.GetRealmsResultSchema=r.default.lazy((()=>r.default.object({realms:r.default.array(e.RealmInfoSchema)})))}(c||(t.Script=c={})),function(e){e.RemovePreloadScriptSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.removePreloadScript"),params:e.RemovePreloadScriptParametersSchema})))}(c||(t.Script=c={})),function(e){e.RemovePreloadScriptParametersSchema=r.default.lazy((()=>r.default.object({script:e.PreloadScriptSchema})))}(c||(t.Script=c={})),function(e){e.MessageParametersSchema=r.default.lazy((()=>r.default.object({channel:e.ChannelSchema,data:e.RemoteValueSchema,source:e.SourceSchema})))}(c||(t.Script=c={})),function(e){e.RealmCreatedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.realmCreated"),params:e.RealmInfoSchema})))}(c||(t.Script=c={})),function(e){e.MessageSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.message"),params:e.MessageParametersSchema})))}(c||(t.Script=c={})),function(e){e.RealmDestroyedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.realmDestroyed"),params:e.RealmDestroyedParametersSchema})))}(c||(t.Script=c={})),function(e){e.RealmDestroyedParametersSchema=r.default.lazy((()=>r.default.object({realm:e.RealmSchema})))}(c||(t.Script=c={})),t.LogEventSchema=r.default.lazy((()=>d.EntryAddedSchema)),function(e){e.LevelSchema=r.default.lazy((()=>r.default.enum(["debug","info","warn","error"])))}(d||(t.Log=d={})),function(e){e.EntrySchema=r.default.lazy((()=>r.default.union([e.GenericLogEntrySchema,e.ConsoleLogEntrySchema,e.JavascriptLogEntrySchema])))}(d||(t.Log=d={})),function(e){e.BaseLogEntrySchema=r.default.lazy((()=>r.default.object({level:e.LevelSchema,source:c.SourceSchema,text:r.default.union([r.default.string(),r.default.null()]),timestamp:t.JsUintSchema,stackTrace:c.StackTraceSchema.optional()})))}(d||(t.Log=d={})),function(e){e.GenericLogEntrySchema=r.default.lazy((()=>e.BaseLogEntrySchema.and(r.default.object({type:r.default.string()}))))}(d||(t.Log=d={})),function(e){e.ConsoleLogEntrySchema=r.default.lazy((()=>e.BaseLogEntrySchema.and(r.default.object({type:r.default.literal("console"),method:r.default.string(),args:r.default.array(c.RemoteValueSchema)}))))}(d||(t.Log=d={})),function(e){e.JavascriptLogEntrySchema=r.default.lazy((()=>e.BaseLogEntrySchema.and(r.default.object({type:r.default.literal("javascript")}))))}(d||(t.Log=d={})),function(e){e.EntryAddedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("log.entryAdded"),params:e.EntrySchema})))}(d||(t.Log=d={})),t.InputCommandSchema=r.default.lazy((()=>r.default.union([u.PerformActionsSchema,u.ReleaseActionsSchema]))),function(e){e.ElementOriginSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("element"),element:c.SharedReferenceSchema})))}(u||(t.Input=u={})),function(e){e.PerformActionsParametersSchema=r.default.lazy((()=>r.default.object({context:o.BrowsingContextSchema,actions:r.default.array(e.SourceActionsSchema)})))}(u||(t.Input=u={})),function(e){e.NoneSourceActionsSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("none"),id:r.default.string(),actions:r.default.array(e.NoneSourceActionSchema)})))}(u||(t.Input=u={})),function(e){e.KeySourceActionsSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("key"),id:r.default.string(),actions:r.default.array(e.KeySourceActionSchema)})))}(u||(t.Input=u={})),function(e){e.PointerSourceActionsSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("pointer"),id:r.default.string(),parameters:e.PointerParametersSchema.optional(),actions:r.default.array(e.PointerSourceActionSchema)})))}(u||(t.Input=u={})),function(e){e.PerformActionsSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("input.performActions"),params:e.PerformActionsParametersSchema})))}(u||(t.Input=u={})),function(e){e.SourceActionsSchema=r.default.lazy((()=>r.default.union([e.NoneSourceActionsSchema,e.KeySourceActionsSchema,e.PointerSourceActionsSchema,e.WheelSourceActionsSchema])))}(u||(t.Input=u={})),function(e){e.NoneSourceActionSchema=r.default.lazy((()=>e.PauseActionSchema))}(u||(t.Input=u={})),function(e){e.KeySourceActionSchema=r.default.lazy((()=>r.default.union([e.PauseActionSchema,e.KeyDownActionSchema,e.KeyUpActionSchema])))}(u||(t.Input=u={})),function(e){e.PointerTypeSchema=r.default.lazy((()=>r.default.enum(["mouse","pen","touch"])))}(u||(t.Input=u={})),function(e){e.PointerParametersSchema=r.default.lazy((()=>r.default.object({pointerType:e.PointerTypeSchema.default("mouse").optional()})))}(u||(t.Input=u={})),function(e){e.WheelSourceActionsSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("wheel"),id:r.default.string(),actions:r.default.array(e.WheelSourceActionSchema)})))}(u||(t.Input=u={})),function(e){e.PointerSourceActionSchema=r.default.lazy((()=>r.default.union([e.PauseActionSchema,e.PointerDownActionSchema,e.PointerUpActionSchema,e.PointerMoveActionSchema])))}(u||(t.Input=u={})),function(e){e.WheelSourceActionSchema=r.default.lazy((()=>r.default.union([e.PauseActionSchema,e.WheelScrollActionSchema])))}(u||(t.Input=u={})),function(e){e.PauseActionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("pause"),duration:t.JsUintSchema.optional()})))}(u||(t.Input=u={})),function(e){e.KeyDownActionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("keyDown"),value:r.default.string()})))}(u||(t.Input=u={})),function(e){e.KeyUpActionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("keyUp"),value:r.default.string()})))}(u||(t.Input=u={})),function(e){e.PointerUpActionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("pointerUp"),button:t.JsUintSchema}).and(e.PointerCommonPropertiesSchema)))}(u||(t.Input=u={})),function(e){e.PointerDownActionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("pointerDown"),button:t.JsUintSchema}).and(e.PointerCommonPropertiesSchema)))}(u||(t.Input=u={})),function(e){e.PointerMoveActionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("pointerMove"),x:t.JsIntSchema,y:t.JsIntSchema,duration:t.JsUintSchema.optional(),origin:e.OriginSchema.optional()}).and(e.PointerCommonPropertiesSchema)))}(u||(t.Input=u={})),function(e){e.WheelScrollActionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("scroll"),x:t.JsIntSchema,y:t.JsIntSchema,deltaX:t.JsIntSchema,deltaY:t.JsIntSchema,duration:t.JsUintSchema.optional(),origin:e.OriginSchema.default("viewport").optional()})))}(u||(t.Input=u={})),function(e){e.PointerCommonPropertiesSchema=r.default.lazy((()=>r.default.object({width:t.JsUintSchema.default(1).optional(),height:t.JsUintSchema.default(1).optional(),pressure:r.default.number().default(0).optional(),tangentialPressure:r.default.number().default(0).optional(),twist:r.default.number().int().nonnegative().gte(0).lte(359).default(0).optional(),altitudeAngle:r.default.number().gte(0).lte(1.5707963267948966).default(0).optional(),azimuthAngle:r.default.number().gte(0).lte(6.283185307179586).default(0).optional()})))}(u||(t.Input=u={})),function(e){e.OriginSchema=r.default.lazy((()=>r.default.union([r.default.literal("viewport"),r.default.literal("pointer"),e.ElementOriginSchema])))}(u||(t.Input=u={})),function(e){e.ReleaseActionsSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("input.releaseActions"),params:e.ReleaseActionsParametersSchema})))}(u||(t.Input=u={})),function(e){e.ReleaseActionsParametersSchema=r.default.lazy((()=>r.default.object({context:o.BrowsingContextSchema})))}(u||(t.Input=u={}))}(tn);var an=e&&e.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,n)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),rn=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),nn=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&an(t,e,a);return rn(t,e),t};Object.defineProperty(Br,"__esModule",{value:!0}),Br.Cdp=Br.Input=Br.Session=Br.BrowsingContext=Br.Script=Br.Network=Br.parseObject=void 0;const sn=Dr,on=g,cn=nn(tn);function dn(e,t){const a=t.safeParse(e);if(a.success)return a.data;const r=a.error.errors.map((e=>`${e.message} in ${e.path.map((e=>JSON.stringify(e))).join("/")}.`)).join(" ");throw new on.InvalidArgumentException(r)}var un,ln,hn,pn,mn,fn;Br.parseObject=dn,function(e){e.parseAddInterceptParameters=function(e){return dn(e,cn.Network.AddInterceptParametersSchema)},e.parseContinueRequestParameters=function(e){return dn(e,cn.Network.ContinueRequestParametersSchema)},e.parseContinueResponseParameters=function(e){return dn(e,cn.Network.ContinueResponseParametersSchema)},e.parseContinueWithAuthParameters=function(e){return dn(e,cn.Network.ContinueWithAuthParametersSchema)},e.parseFailRequestParameters=function(e){return dn(e,cn.Network.FailRequestParametersSchema)},e.parseProvideResponseParameters=function(e){return dn(e,cn.Network.ProvideResponseParametersSchema)},e.parseRemoveInterceptParameters=function(e){return dn(e,cn.Network.RemoveInterceptParametersSchema)}}(un||(Br.Network=un={})),function(e){e.parseGetRealmsParams=function(e){return dn(e,cn.Script.GetRealmsParametersSchema)},e.parseEvaluateParams=function(e){return dn(e,cn.Script.EvaluateParametersSchema)},e.parseDisownParams=function(e){return dn(e,cn.Script.DisownParametersSchema)},e.parseAddPreloadScriptParams=function(e){return dn(e,cn.Script.AddPreloadScriptParametersSchema)},e.parseRemovePreloadScriptParams=function(e){return dn(e,cn.Script.RemovePreloadScriptParametersSchema)},e.parseCallFunctionParams=function(e){return dn(e,cn.Script.CallFunctionParametersSchema)}}(ln||(Br.Script=ln={})),function(e){e.parseActivateParams=function(e){return dn(e,cn.BrowsingContext.ActivateParametersSchema)},e.parseGetTreeParams=function(e){return dn(e,cn.BrowsingContext.GetTreeParametersSchema)},e.parseNavigateParams=function(e){return dn(e,cn.BrowsingContext.NavigateParametersSchema)},e.parseReloadParams=function(e){return dn(e,cn.BrowsingContext.ReloadParametersSchema)},e.parseCreateParams=function(e){return dn(e,cn.BrowsingContext.CreateParametersSchema)},e.parseCloseParams=function(e){return dn(e,cn.BrowsingContext.CloseParametersSchema)},e.parseCaptureScreenshotParams=function(e){return dn(e,cn.BrowsingContext.CaptureScreenshotParametersSchema)},e.parsePrintParams=function(e){return dn(e,cn.BrowsingContext.PrintParametersSchema)},e.parseSetViewportParams=function(e){return dn(e,cn.BrowsingContext.SetViewportParametersSchema)},e.parseTraverseHistoryParams=function(e){return dn(e,cn.BrowsingContext.TraverseHistoryParametersSchema)},e.parseHandleUserPromptParameters=function(e){return dn(e,cn.BrowsingContext.HandleUserPromptParametersSchema)}}(hn||(Br.BrowsingContext=hn={})),function(e){e.parseSubscribeParams=function(e){return dn(e,cn.Session.SubscriptionRequestSchema)}}(pn||(Br.Session=pn={})),function(e){e.parsePerformActionsParams=function(e){return dn(e,cn.Input.PerformActionsParametersSchema)},e.parseReleaseActionsParams=function(e){return dn(e,cn.Input.ReleaseActionsParametersSchema)}}(mn||(Br.Input=mn={})),function(e){const t=sn.z.object({method:sn.z.string(),params:sn.z.object({}).passthrough().optional(),session:sn.z.string().optional()}),a=sn.z.object({context:cn.BrowsingContext.BrowsingContextSchema});e.parseSendCommandRequest=function(e){return dn(e,t)},e.parseGetSessionRequest=function(e){return dn(e,a)}}(fn||(Br.Cdp=fn={}));var gn=e&&e.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,n)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),yn=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Sn=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&gn(t,e,a);return yn(t,e),t};Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.BidiParser=void 0;const vn=Sn(Br);Ar.BidiParser=class{parseActivateParams(e){return vn.BrowsingContext.parseActivateParams(e)}parseCaptureScreenshotParams(e){return vn.BrowsingContext.parseCaptureScreenshotParams(e)}parseCloseParams(e){return vn.BrowsingContext.parseCloseParams(e)}parseCreateParams(e){return vn.BrowsingContext.parseCreateParams(e)}parseGetTreeParams(e){return vn.BrowsingContext.parseGetTreeParams(e)}parseHandleUserPromptParams(e){return vn.BrowsingContext.parseHandleUserPromptParameters(e)}parseNavigateParams(e){return vn.BrowsingContext.parseNavigateParams(e)}parsePrintParams(e){return vn.BrowsingContext.parsePrintParams(e)}parseReloadParams(e){return vn.BrowsingContext.parseReloadParams(e)}parseSetViewportParams(e){return vn.BrowsingContext.parseSetViewportParams(e)}parseTraverseHistoryParams(e){return vn.BrowsingContext.parseTraverseHistoryParams(e)}parseGetSessionParams(e){return vn.Cdp.parseGetSessionRequest(e)}parseSendCommandParams(e){return vn.Cdp.parseSendCommandRequest(e)}parsePerformActionsParams(e){return vn.Input.parsePerformActionsParams(e)}parseReleaseActionsParams(e){return vn.Input.parseReleaseActionsParams(e)}parseAddInterceptParams(e){return vn.Network.parseAddInterceptParameters(e)}parseContinueRequestParams(e){return vn.Network.parseContinueRequestParameters(e)}parseContinueResponseParams(e){return vn.Network.parseContinueResponseParameters(e)}parseContinueWithAuthParams(e){return vn.Network.parseContinueWithAuthParameters(e)}parseFailRequestParams(e){return vn.Network.parseFailRequestParameters(e)}parseProvideResponseParams(e){return vn.Network.parseProvideResponseParameters(e)}parseRemoveInterceptParams(e){return vn.Network.parseRemoveInterceptParameters(e)}parseAddPreloadScriptParams(e){return vn.Script.parseAddPreloadScriptParams(e)}parseCallFunctionParams(e){return vn.Script.parseCallFunctionParams(e)}parseDisownParams(e){return vn.Script.parseDisownParams(e)}parseEvaluateParams(e){return vn.Script.parseEvaluateParams(e)}parseGetRealmsParams(e){return vn.Script.parseGetRealmsParams(e)}parseRemovePreloadScriptParams(e){return vn.Script.parseRemovePreloadScriptParams(e)}parseSubscribeParams(e){return vn.Session.parseSubscribeParams(e)}};var wn={};Object.defineProperty(wn,"__esModule",{value:!0}),wn.log=wn.generatePage=void 0;const bn=l;function Cn(e){const t=e.split(":")[0],a=`${t}_log`,r=document.getElementById(a);if(r)return r;const n=document.getElementById("details"),s=document.createElement("div");s.className="divider",n.appendChild(s);const o=document.createElement("div");return o.className="item",o.innerHTML=`

${t}

`,n.appendChild(o),document.getElementById(a)}function xn(e){return"object"==typeof e?JSON.stringify(e,null,2):e}wn.generatePage=function(){globalThis.document.documentElement&&(globalThis.document.documentElement.innerHTML='BiDi-CDP Mapper

BiDi-CDP Mapper is controlling this tab

Closing or reloading it will stop the BiDi process. Details.

Debug information
',Cn(bn.LogType.debugInfo),Cn(bn.LogType.bidi),Cn(bn.LogType.cdp))},wn.log=function(t,...a){if(!globalThis.document.documentElement)return;t.startsWith(bn.LogType.bidi)||e.window?.sendDebugMessage?.(JSON.stringify({logType:t,messages:a}));const r=Cn(t),n=document.createElement("div");n.className="pre",n.textContent=[t,...a].map(xn).join(" "),r.appendChild(n)};var In={};Object.defineProperty(In,"__esModule",{value:!0}),In.WindowCdpTransport=In.WindowBidiTransport=void 0;const Pn=l,kn=wn;class Rn{static LOGGER_PREFIX_RECV=`${Pn.LogType.bidi}:RECV \u25c2`;static LOGGER_PREFIX_SEND=`${Pn.LogType.bidi}:SEND \u25b8`;#Ya=null;constructor(){window.onBidiMessage=e=>{(0,kn.log)(Rn.LOGGER_PREFIX_RECV,e);try{const t=Rn.#er(e);this.#Ya?.call(null,t)}catch(t){const a=t instanceof Error?t:new Error(t);this.#tr(e,"invalid argument",a,null)}}}setOnMessage(e){this.#Ya=e}sendMessage(e){(0,kn.log)(Rn.LOGGER_PREFIX_SEND,e);const t=JSON.stringify(e);window.sendBidiResponse(t)}close(){this.#Ya=null,window.onBidiMessage=null}#tr(e,t,a,r){const n=Rn.#ar(e,t,a);r?this.sendMessage({...n,channel:r}):this.sendMessage(n)}static#rr(e){return null===e?"null":Array.isArray(e)?"array":typeof e}static#ar(e,t,a){let r;try{const t=JSON.parse(e);"object"===Rn.#rr(t)&&"id"in t&&(r=t.id)}catch{}return{type:"error",id:r,error:t,message:a.message}}static#er(e){let t;try{t=JSON.parse(e)}catch{throw new Error("Cannot parse data as JSON")}const a=Rn.#rr(t);if("object"!==a)throw new Error(`Expected JSON object but got ${a}`);const{id:r,method:n,params:s}=t,o=Rn.#rr(r);if("number"!==o||!Number.isInteger(r)||r<0)throw new Error(`Expected unsigned integer but got ${o}`);const i=Rn.#rr(n);if("string"!==i)throw new Error(`Expected string method but got ${i}`);const c=Rn.#rr(s);if("object"!==c)throw new Error(`Expected object params but got ${c}`);let d=t.channel;if(void 0!==d){const e=Rn.#rr(d);if("string"!==e)throw new Error(`Expected string channel but got ${e}`);""===d&&(d=void 0)}return{id:r,method:n,params:s,channel:d}}}In.WindowBidiTransport=Rn;In.WindowCdpTransport=class{#Ya=null;constructor(){window.cdp.onmessage=e=>{this.#Ya?.call(null,e)}}setOnMessage(e){this.#Ya=e}sendMessage(e){window.cdp.send(e)}close(){this.#Ya=null,window.cdp.onmessage=null}}, +var mapperTab=function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var a=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),a}var a={},r={},n={},s={};var o=Object.freeze({__proto__:null,default:function(e){return{all:e=e||new Map,on:function(t,a){var r=e.get(t);r?r.push(a):e.set(t,[a])},off:function(t,a){var r=e.get(t);r&&(a?r.splice(r.indexOf(a)>>>0,1):e.set(t,[]))},emit:function(t,a){var r=e.get(t);r&&r.slice().map((function(e){e(a)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,a)}))}}}}),i=t(o),c=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0}),s.EventEmitter=void 0;const d=c(i);s.EventEmitter=class{#e=(0,d.default)();on(e,t){return this.#e.on(e,t),this}once(e,t){const a=r=>{t(r),this.off(e,a)};return this.on(e,a)}off(e,t){return this.#e.off(e,t),this}emit(e,t){this.#e.emit(e,t)}removeAllListeners(e){return e?this.#e.all.delete(e):this.#e.all.clear(),this}};var u,l={};Object.defineProperty(l,"__esModule",{value:!0}),l.LogType=void 0,function(e){e.bidi="bidi",e.cdp="cdp",e.debug="debug",e.debugError="debug:error",e.debugInfo="debug:info"}(u||(l.LogType=u={}));var h={};Object.defineProperty(h,"__esModule",{value:!0}),h.ProcessingQueue=void 0;const p=l;class m{static LOGGER_PREFIX=`${p.LogType.debug}:queue`;#t;#a;#r=[];#n=!1;constructor(e,t){this.#a=e,this.#t=t}add(e,t){this.#r.push([e,t]),this.#s()}async#s(){if(!this.#n){for(this.#n=!0;this.#r.length>0;){const e=this.#r.shift();if(!e)continue;const[t,a]=e;this.#t?.(m.LOGGER_PREFIX,"Processing event:",a),await t.then((e=>{if("error"!==e.kind)return this.#a(e.value);this.#t?.(p.LogType.debugError,"Event threw before sending:",e.error.message,e.error.stack)})).catch((e=>{this.#t?.(p.LogType.debugError,"Event was not processed:",e?.message)}))}this.#n=!1}}}h.ProcessingQueue=m;var f={},g={},y={};Object.defineProperty(y,"__esModule",{value:!0});var S,v,w,C,b,x={};Object.defineProperty(x,"__esModule",{value:!0}),x.EVENT_NAMES=x.Network=x.BrowsingContext=x.Log=x.Script=x.BiDiModule=void 0,function(e){e.Browser="browser",e.BrowsingContext="browsingContext",e.Cdp="cdp",e.Input="input",e.Log="log",e.Network="network",e.Script="script",e.Session="session"}(S||(x.BiDiModule=S={})),function(e){var t;(t=e.EventNames||(e.EventNames={})).Message="script.message",t.RealmCreated="script.realmCreated",t.RealmDestroyed="script.realmDestroyed"}(v||(x.Script=v={})),function(e){(e.EventNames||(e.EventNames={})).LogEntryAdded="log.entryAdded"}(w||(x.Log=w={})),function(e){var t;(t=e.EventNames||(e.EventNames={})).ContextCreated="browsingContext.contextCreated",t.ContextDestroyed="browsingContext.contextDestroyed",t.DomContentLoaded="browsingContext.domContentLoaded",t.DownloadWillBegin="browsingContext.downloadWillBegin",t.FragmentNavigated="browsingContext.fragmentNavigated",t.Load="browsingContext.load",t.NavigationAborted="browsingContext.navigationAborted",t.NavigationFailed="browsingContext.navigationFailed",t.NavigationStarted="browsingContext.navigationStarted",t.UserPromptClosed="browsingContext.userPromptClosed",t.UserPromptOpened="browsingContext.userPromptOpened"}(C||(x.BrowsingContext=C={})),function(e){var t;(t=e.EventNames||(e.EventNames={})).AuthRequired="network.authRequired",t.BeforeRequestSent="network.beforeRequestSent",t.FetchError="network.fetchError",t.ResponseCompleted="network.responseCompleted",t.ResponseStarted="network.responseStarted"}(b||(x.Network=b={})),x.EVENT_NAMES=new Set([...Object.values(S),...Object.values(C.EventNames),...Object.values(w.EventNames),...Object.values(b.EventNames),...Object.values(v.EventNames)]);var P={};Object.defineProperty(P,"__esModule",{value:!0});var I={};Object.defineProperty(I,"__esModule",{value:!0}),I.UnderspecifiedStoragePartitionException=I.UnableToSetFileInputException=I.UnableToSetCookieException=I.NoSuchStoragePartitionException=I.UnsupportedOperationException=I.UnableToCloseBrowserException=I.UnableToCaptureScreenException=I.UnknownErrorException=I.UnknownCommandException=I.SessionNotCreatedException=I.NoSuchUserContextException=I.NoSuchScriptException=I.NoSuchRequestException=I.NoSuchNodeException=I.NoSuchInterceptException=I.NoSuchHistoryEntryException=I.NoSuchHandleException=I.NoSuchFrameException=I.NoSuchElementException=I.NoSuchAlertException=I.MoveTargetOutOfBoundsException=I.InvalidSessionIdException=I.InvalidArgumentException=I.Exception=void 0;class k{error;message;stacktrace;constructor(e,t,a){this.error=e,this.message=t,this.stacktrace=a}toErrorResponse(e){return{type:"error",id:e,error:this.error,message:this.message,stacktrace:this.stacktrace}}}I.Exception=k;I.InvalidArgumentException=class extends k{constructor(e,t){super("invalid argument",e,t)}};I.InvalidSessionIdException=class extends k{constructor(e,t){super("invalid session id",e,t)}};I.MoveTargetOutOfBoundsException=class extends k{constructor(e,t){super("move target out of bounds",e,t)}};I.NoSuchAlertException=class extends k{constructor(e,t){super("no such alert",e,t)}};I.NoSuchElementException=class extends k{constructor(e,t){super("no such element",e,t)}};I.NoSuchFrameException=class extends k{constructor(e,t){super("no such frame",e,t)}};I.NoSuchHandleException=class extends k{constructor(e,t){super("no such handle",e,t)}};I.NoSuchHistoryEntryException=class extends k{constructor(e,t){super("no such history entry",e,t)}};I.NoSuchInterceptException=class extends k{constructor(e,t){super("no such intercept",e,t)}};I.NoSuchNodeException=class extends k{constructor(e,t){super("no such node",e,t)}};I.NoSuchRequestException=class extends k{constructor(e,t){super("no such request",e,t)}};I.NoSuchScriptException=class extends k{constructor(e,t){super("no such script",e,t)}};I.NoSuchUserContextException=class extends k{constructor(e,t){super("no such user context",e,t)}};I.SessionNotCreatedException=class extends k{constructor(e,t){super("session not created",e,t)}};I.UnknownCommandException=class extends k{constructor(e,t){super("unknown command",e,t)}};I.UnknownErrorException=class extends k{constructor(e,t=(new Error).stack){super("unknown error",e,t)}};I.UnableToCaptureScreenException=class extends k{constructor(e,t){super("unable to capture screen",e,t)}};I.UnableToCloseBrowserException=class extends k{constructor(e,t){super("unable to close browser",e,t)}};I.UnsupportedOperationException=class extends k{constructor(e,t){super("unsupported operation",e,t)}};I.NoSuchStoragePartitionException=class extends k{constructor(e,t){super("no such storage partition",e,t)}};I.UnableToSetCookieException=class extends k{constructor(e,t){super("unable to set cookie",e,t)}};I.UnableToSetFileInputException=class extends k{constructor(e,t){super("unable to set file input",e,t)}};I.UnderspecifiedStoragePartitionException=class extends k{constructor(e,t){super("underspecified storage partition",e,t)}};var R={};Object.defineProperty(R,"__esModule",{value:!0}),function(t){var a=e&&e.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,n)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t},s=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ChromiumBidi=t.Cdp=void 0,t.Cdp=n(y),t.ChromiumBidi=n(x),s(P,t),s(I,t),s(R,t)}(g);var E={};Object.defineProperty(E,"__esModule",{value:!0}),E.BidiNoOpParser=void 0;E.BidiNoOpParser=class{parseActivateParams(e){return e}parseCaptureScreenshotParams(e){return e}parseCloseParams(e){return e}parseCreateParams(e){return e}parseGetTreeParams(e){return e}parseHandleUserPromptParams(e){return e}parseNavigateParams(e){return e}parsePrintParams(e){return e}parseReloadParams(e){return e}parseSetViewportParams(e){return e}parseTraverseHistoryParams(e){return e}parseGetSessionParams(e){return e}parseSendCommandParams(e){return e}parseAddPreloadScriptParams(e){return e}parseCallFunctionParams(e){return e}parseDisownParams(e){return e}parseEvaluateParams(e){return e}parseGetRealmsParams(e){return e}parseRemovePreloadScriptParams(e){return e}parsePerformActionsParams(e){return e}parseReleaseActionsParams(e){return e}parseSetFilesParams(e){return e}parseAddInterceptParams(e){return e}parseContinueRequestParams(e){return e}parseContinueResponseParams(e){return e}parseContinueWithAuthParams(e){return e}parseFailRequestParams(e){return e}parseProvideResponseParams(e){return e}parseRemoveInterceptParams(e){return e}parseSetPermissionsParams(e){return e}parseSubscribeParams(e){return e}parseDeleteCookiesParams(e){return e}parseGetCookiesParams(e){return e}parseSetCookieParams(e){return e}};var _={};Object.defineProperty(_,"__esModule",{value:!0}),_.BrowserProcessor=void 0;const T=g;_.BrowserProcessor=class{#o;constructor(e){this.#o=e}close(){return setTimeout((()=>this.#o.sendCommand("Browser.close")),0),{}}async createUserContext(){return{userContext:(await this.#o.sendCommand("Target.createBrowserContext")).browserContextId}}async removeUserContext(e){if("default"===e)throw new T.InvalidArgumentException("`default` user context cannot be removed");try{await this.#o.sendCommand("Target.disposeBrowserContext",{browserContextId:e})}catch(e){if(e.message.startsWith("Failed to find context with id"))throw new T.NoSuchUserContextException(e.message);throw e}return{}}async getUserContexts(){return{userContexts:[{userContext:"default"},...(await this.#o.sendCommand("Target.getBrowserContexts")).browserContextIds.map((e=>({userContext:e})))]}}};var N={};Object.defineProperty(N,"__esModule",{value:!0}),N.CdpProcessor=void 0;N.CdpProcessor=class{#i;#c;#o;constructor(e,t,a){this.#i=e,this.#c=t,this.#o=a}getSession(e){const t=e.context,a=this.#i.getContext(t).cdpTarget.cdpSessionId;return void 0===a?{}:{session:a}}async sendCommand(e){const t=e.session?this.#c.getCdpClient(e.session):this.#o;return{result:await t.sendCommand(e.method,e.params),session:e.session}}};var j={},O={},M={},A={};Object.defineProperty(A,"__esModule",{value:!0}),A.uuidv4=void 0,A.uuidv4=function(){if("crypto"in globalThis&&"randomUUID"in globalThis.crypto)return globalThis.crypto.randomUUID();const e=new Uint8Array(16);"crypto"in globalThis&&"getRandomValues"in globalThis.crypto?globalThis.crypto.getRandomValues(e):require("crypto").webcrypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;const t=e=>e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"");return[t(e.subarray(0,4)),t(e.subarray(4,6)),t(e.subarray(6,8)),t(e.subarray(8,10)),t(e.subarray(10,16))].join("-")};var B={};Object.defineProperty(B,"__esModule",{value:!0}),B.ChannelProxy=void 0;const z=g,D=l,L=A;class Z{#d;#u=(0,L.uuidv4)();#t;constructor(e,t){this.#d=e,this.#t=t}async init(e,t){const a=await Z.#l(e),r=await Z.#h(e,a);return this.#p(e,a,t),r}async startListenerFromWindow(e,t){try{const a=await this.#m(e);this.#p(e,a,t)}catch(e){this.#t?.(D.LogType.debugError,e)}}static#f(){return`(${String((()=>{const e=[];let t=null;return{async getMessage(){const a=e.length>0?Promise.resolve():new Promise((e=>{t=e}));return await a,e.shift()},sendMessage(a){e.push(a),null!==t&&(t(),t=null)}}}))})()`}static async#l(e){const t=await e.cdpClient.sendCommand("Runtime.evaluate",{expression:this.#f(),contextId:e.executionContextId,serializationOptions:{serialization:"idOnly"}});if(t.exceptionDetails||void 0===t.result.objectId)throw new Error("Cannot create channel");return t.result.objectId}static async#h(e,t){return(await e.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:String((e=>e.sendMessage)),arguments:[{objectId:t}],executionContextId:e.executionContextId,serializationOptions:{serialization:"idOnly"}})).result.objectId}async#p(e,t,a){for(;;)try{const r=await e.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:String((async e=>await e.getMessage())),arguments:[{objectId:t}],awaitPromise:!0,executionContextId:e.executionContextId,serializationOptions:{serialization:"deep",maxDepth:this.#d.serializationOptions?.maxObjectDepth??void 0}});if(r.exceptionDetails)throw r.exceptionDetails;for(const t of e.associatedBrowsingContexts)a.registerEvent({type:"event",method:z.ChromiumBidi.Script.EventNames.Message,params:{channel:this.#d.channel,data:e.cdpToBidiValue(r,this.#d.ownership??"none"),source:e.source}},t.id)}catch(e){this.#t?.(D.LogType.debugError,e);break}}async#m(e){const t=await e.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:String((e=>{const t=window;if(void 0===t[e])return new Promise((a=>t[e]=a));const a=t[e];return delete t[e],a})),arguments:[{value:this.#u}],executionContextId:e.executionContextId,awaitPromise:!0,serializationOptions:{serialization:"idOnly"}});if(void 0!==t.exceptionDetails||void 0===t.result.objectId)throw new Error(`ChannelHandle not found in window["${this.#u}"]`);return t.result.objectId}getEvalInWindowStr(){const e=String(((e,t)=>{const a=window;return void 0===a[e]?a[e]=t:(a[e](t),delete a[e]),t.sendMessage})),t=Z.#f();return`(${e})('${this.#u}',${t})`}}B.ChannelProxy=Z,Object.defineProperty(M,"__esModule",{value:!0}),M.Realm=void 0;const U=g,F=l,q=A,V=B;class ${#g;#y;#S;#t;#v;#w;#C;constructor(e,t,a,r,n,s,o){this.#g=e,this.#y=t,this.#S=a,this.#t=r,this.#v=n,this.#w=s,this.#C=o,this.#C.addRealm(this)}cdpToBidiValue(e,t){const a=this.serializeForBiDi(e.result.deepSerializedValue,new Map);if(e.result.objectId){const r=e.result.objectId;"root"===t?(a.handle=r,this.#C.knownHandlesToRealmMap.set(r,this.realmId)):this.#b(r).catch((e=>this.#t?.(F.LogType.debugError,e)))}if("object"===e.result.type)switch(e.result.subtype){case"generator":case"iterator":a.type=e.result.subtype,delete a.value}return a}serializeForBiDi(e,t){if(Object.hasOwn(e,"weakLocalObjectReference")){const a=e.weakLocalObjectReference;t.has(a)||t.set(a,(0,q.uuidv4)()),e.internalId=t.get(a),delete e.weakLocalObjectReference}if("platformobject"===e.type)return{type:"object"};const a=e.value;if(void 0===a)return e;if(["array","set","htmlcollection","nodelist"].includes(e.type))for(const e in a)a[e]=this.serializeForBiDi(a[e],t);if(["object","map"].includes(e.type))for(const e in a)a[e]=[this.serializeForBiDi(a[e][0],t),this.serializeForBiDi(a[e][1],t)];return e}get realmId(){return this.#w}get executionContextId(){return this.#S}get origin(){return this.#v}get source(){return{realm:this.realmId}}get cdpClient(){return this.#g}get baseInfo(){return{realm:this.realmId,origin:this.origin}}async evaluate(e,t,a,r,n=!1){const s=await this.cdpClient.sendCommand("Runtime.evaluate",{contextId:this.executionContextId,expression:e,awaitPromise:t,serializationOptions:$.#x("deep",r),userGesture:n});return s.exceptionDetails?await this.#P(s.exceptionDetails,0,a):{realm:this.realmId,result:this.cdpToBidiValue(s,a),type:"success"}}initialize(){for(const e of this.associatedBrowsingContexts)this.#y.registerEvent({type:"event",method:U.ChromiumBidi.Script.EventNames.RealmCreated,params:this.realmInfo},e.id)}async serializeCdpObject(e,t){const a=$.#I(e),r=await this.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:String((e=>e)),awaitPromise:!1,arguments:[a],serializationOptions:{serialization:"deep"},executionContextId:this.executionContextId});return this.cdpToBidiValue(r,t)}static#I(e){return void 0!==e.objectId?{objectId:e.objectId}:void 0!==e.unserializableValue?{unserializableValue:e.unserializableValue}:{value:e.value}}async stringifyObject(e){const{result:t}=await this.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:String((e=>String(e))),awaitPromise:!1,arguments:[e],returnByValue:!0,executionContextId:this.executionContextId});return t.value}async#k(e){const t=[];for(const[a,r]of e){let e;e="string"==typeof a?{value:a}:await this.deserializeForCdp(a);const n=await this.deserializeForCdp(r);t.push(e),t.push(n)}return t}async#R(e){return await Promise.all(e.map((e=>this.deserializeForCdp(e))))}async#E(e,t,a){const r=e.stackTrace?.callFrames.map((e=>({url:e.url,functionName:e.functionName,lineNumber:e.lineNumber-t,columnNumber:e.columnNumber})))??[],n=e.exception;return{exception:await this.serializeCdpObject(n,a),columnNumber:e.columnNumber,lineNumber:e.lineNumber-t,stackTrace:{callFrames:r},text:await this.stringifyObject(n)||e.text}}async callFunction(e,t,a,r,n,s,o=!1){const i=`(...args) => {\n function callFunction(f, args) {\n const deserializedThis = args.shift();\n const deserializedArgs = args;\n return f.apply(deserializedThis, deserializedArgs);\n }\n return callFunction((\n ${e}\n ), args);\n }`,c=[await this.deserializeForCdp(t),...await Promise.all(a.map((async e=>await this.deserializeForCdp(e))))];let d;try{d=await this.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:i,awaitPromise:r,arguments:c,serializationOptions:$.#x("deep",s),executionContextId:this.executionContextId,userGesture:o})}catch(e){if(-32e3===e.code&&["Could not find object with given id","Argument should belong to the same JavaScript world as target object","Invalid remote object id"].includes(e.message))throw new U.NoSuchHandleException("Handle was not found.");throw e}return d.exceptionDetails?await this.#P(d.exceptionDetails,1,n):{type:"success",result:this.cdpToBidiValue(d,n),realm:this.realmId}}async deserializeForCdp(e){if("handle"in e&&e.handle)return{objectId:e.handle};if("handle"in e||"sharedId"in e)throw new U.NoSuchHandleException("Handle was not found.");switch(e.type){case"undefined":return{unserializableValue:"undefined"};case"null":return{unserializableValue:"null"};case"string":return{value:e.value};case"number":return"NaN"===e.value?{unserializableValue:"NaN"}:"-0"===e.value?{unserializableValue:"-0"}:"Infinity"===e.value?{unserializableValue:"Infinity"}:"-Infinity"===e.value?{unserializableValue:"-Infinity"}:{value:e.value};case"boolean":return{value:Boolean(e.value)};case"bigint":return{unserializableValue:`BigInt(${JSON.stringify(e.value)})`};case"date":return{unserializableValue:`new Date(Date.parse(${JSON.stringify(e.value)}))`};case"regexp":return{unserializableValue:`new RegExp(${JSON.stringify(e.value.pattern)}, ${JSON.stringify(e.value.flags)})`};case"map":{const t=await this.#k(e.value),{result:a}=await this.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:String(((...e)=>{const t=new Map;for(let a=0;a{const t={};for(let a=0;ae)),awaitPromise:!1,arguments:t,returnByValue:!1,executionContextId:this.executionContextId});return{objectId:a.objectId}}case"set":{const t=await this.#R(e.value),{result:a}=await this.cdpClient.sendCommand("Runtime.callFunctionOn",{functionDeclaration:String(((...e)=>new Set(e))),awaitPromise:!1,arguments:t,returnByValue:!1,executionContextId:this.executionContextId});return{objectId:a.objectId}}case"channel":{const t=new V.ChannelProxy(e.value,this.#t);return{objectId:await t.init(this,this.#y)}}}throw new Error(`Value ${JSON.stringify(e)} is not deserializable.`)}async#P(e,t,a){return{exceptionDetails:await this.#E(e,t,a),realm:this.realmId,type:"exception"}}static#x(e,t){return{serialization:e,additionalParameters:$.#_(t),...$.#T(t)}}static#_(e){const t={};return void 0!==e.maxDomDepth&&(t.maxNodeDepth=null===e.maxDomDepth?1e3:e.maxDomDepth),void 0!==e.includeShadowTree&&(t.includeShadowTree=e.includeShadowTree),t}static#T(e){return void 0===e.maxObjectDepth||null===e.maxObjectDepth?{}:{maxDepth:e.maxObjectDepth}}async#b(e){try{await this.cdpClient.sendCommand("Runtime.releaseObject",{objectId:e})}catch(e){if(-32e3!==e.code||"Invalid remote object id"!==e.message)throw e}}async disown(e){this.#C.knownHandlesToRealmMap.get(e)===this.realmId&&(await this.#b(e),this.#C.knownHandlesToRealmMap.delete(e))}dispose(){for(const e of this.associatedBrowsingContexts)this.#y.registerEvent({type:"event",method:U.ChromiumBidi.Script.EventNames.RealmDestroyed,params:{realm:this.realmId}},e.id)}}M.Realm=$,Object.defineProperty(O,"__esModule",{value:!0}),O.DedicatedWorkerRealm=void 0;const K=M;class H extends K.Realm{#N;constructor(e,t,a,r,n,s,o,i){super(e,t,a,r,n,o,i),this.#N=s,this.initialize()}get associatedBrowsingContexts(){return this.#N.associatedBrowsingContexts}get realmType(){return"dedicated-worker"}get source(){return{realm:this.realmId,context:this.associatedBrowsingContexts[0]?.id}}get realmInfo(){return{...this.baseInfo,type:this.realmType,owners:[this.#N.realmId]}}}O.DedicatedWorkerRealm=H;var W={},J={};Object.defineProperty(J,"__esModule",{value:!0}),J.assert=void 0,J.assert=function(e,t){if(!e)throw new Error(t??"Internal assertion failed.")};var G={};Object.defineProperty(G,"__esModule",{value:!0}),G.Deferred=void 0;class X{#j=!1;#O;#M;#A;get isFinished(){return this.#j}constructor(){this.#O=new Promise(((e,t)=>{this.#M=e,this.#A=t})),this.#O.catch((e=>{}))}then(e,t){return this.#O.then(e,t)}catch(e){return this.#O.catch(e)}resolve(e){this.#j||(this.#j=!0,this.#M(e))}reject(e){this.#j||(this.#j=!0,this.#A(e))}finally(e){return this.#O.finally(e)}[Symbol.toStringTag]="Promise"}G.Deferred=X;var Y={};Object.defineProperty(Y,"__esModule",{value:!0}),Y.inchesFromCm=void 0,Y.inchesFromCm=function(e){return e/2.54};var Q={},ee={};Object.defineProperty(ee,"__esModule",{value:!0}),ee.parseSharedId=ee.getSharedId=void 0;const te="_element_";ee.getSharedId=function(e,t,a,r){return r?`f.${e}.d.${t}.e.${a}`:`${t}${te}${a}`},ee.parseSharedId=function(e){const t=function(e){const t=e.match(new RegExp(`(.*)${te}(.*)`));if(!t)return null;const a=t[1],r=t[2];if(void 0===a||void 0===r)return null;const n=parseInt(r??"");return isNaN(n)?null:{documentId:a,backendNodeId:n}}(e);if(null!==t)return{...t,frameId:void 0};const a=e.match(/f\.(.*)\.d\.(.*)\.e\.([0-9]*)/);if(!a)return null;const r=a[1],n=a[2],s=a[3];if(void 0===r||void 0===n||void 0===s)return null;const o=parseInt(s??"");return isNaN(o)?null:{frameId:r,documentId:n,backendNodeId:o}},Object.defineProperty(Q,"__esModule",{value:!0}),Q.WindowRealm=void 0;const ae=g,re=M,ne=ee;class se extends re.Realm{#B;#i;#z;sandbox;constructor(e,t,a,r,n,s,o,i,c,d,u){super(a,r,n,s,o,i,c),this.#B=e,this.#i=t,this.#z=u,this.sandbox=d,this.initialize()}#D(e){const t=this.#i.getAllContexts().find((t=>t.navigableId===e));return t?.id??"UNKNOWN"}get browsingContext(){return this.#i.getContext(this.#B)}get associatedBrowsingContexts(){return[this.browsingContext]}get realmType(){return"window"}get realmInfo(){return{...this.baseInfo,type:this.realmType,context:this.#B,sandbox:this.sandbox}}get source(){return{realm:this.realmId,context:this.browsingContext.id}}serializeForBiDi(e,t){const a=e.value;if("node"===e.type){if(Object.hasOwn(a,"backendNodeId")){let t=this.browsingContext.navigableId??"UNKNOWN";Object.hasOwn(a,"loaderId")&&(t=a.loaderId,delete a.loaderId),e.sharedId=(0,ne.getSharedId)(this.#D(t),t,a.backendNodeId,this.#z),delete a.backendNodeId}if(Object.hasOwn(a,"children"))for(const e in a.children)a.children[e]=this.serializeForBiDi(a.children[e],t);Object.hasOwn(a,"shadowRoot")&&null!==a.shadowRoot&&(a.shadowRoot=this.serializeForBiDi(a.shadowRoot,t)),""===a.namespaceURI&&(a.namespaceURI=null)}return super.serializeForBiDi(e,t)}async deserializeForCdp(e){if("sharedId"in e&&e.sharedId){const t=(0,ne.parseSharedId)(e.sharedId);if(null===t)throw new ae.NoSuchNodeException(`SharedId "${e.sharedId}" was not found.`);const{documentId:a,backendNodeId:r}=t;if(this.browsingContext.navigableId!==a)throw new ae.NoSuchNodeException(`SharedId "${e.sharedId}" belongs to different document. Current document is ${this.browsingContext.navigableId}.`);try{const{object:e}=await this.cdpClient.sendCommand("DOM.resolveNode",{backendNodeId:r,executionContextId:this.executionContextId});return{objectId:e.objectId}}catch(t){if(-32e3===t.code&&"No node with given id found"===t.message)throw new ae.NoSuchNodeException(`SharedId "${e.sharedId}" was not found.`);throw new ae.UnknownErrorException(t.message,t.stack)}}return await super.deserializeForCdp(e)}async evaluate(e,t,a,r,n){return await this.#i.getContext(this.#B).targetUnblockedOrThrow(),await super.evaluate(e,t,a,r,n)}async callFunction(e,t,a,r,n,s,o){return await this.#i.getContext(this.#B).targetUnblockedOrThrow(),await super.callFunction(e,t,a,r,n,s,o)}}Q.WindowRealm=se,Object.defineProperty(W,"__esModule",{value:!0}),W.serializeOrigin=W.BrowsingContextImpl=void 0;const oe=g,ie=J,ce=G,de=l,ue=Y,le=Q;class he{static LOGGER_PREFIX=`${de.LogType.debug}:browsingContext`;#u;userContext;#L;#Z=new Set;#i;#U={DOMContentLoaded:new ce.Deferred,load:new ce.Deferred};#F={withinDocument:new ce.Deferred};#q="about:blank";#y;#C;#V;#$;#K;#z;#t;constructor(e,t,a,r,n,s,o,i,c){this.#$=e,this.#C=t,this.#u=a,this.#L=r,this.userContext=n,this.#y=s,this.#i=o,this.#z=i,this.#t=c}static create(e,t,a,r,n,s,o,i,c){const d=new he(e,t,a,r,n,s,o,i,c);return d.#H(),o.addContext(d),d.isTopLevelContext()||d.parent.addChild(d.id),s.registerEvent({type:"event",method:oe.ChromiumBidi.BrowsingContext.EventNames.ContextCreated,params:d.serializeToBidiValue()},d.id),d}static getTimestamp(){return(new Date).getTime()}get navigableId(){return this.#V}dispose(){this.#W(),this.#C.deleteRealms({browsingContextId:this.id}),this.isTopLevelContext()||this.parent.#Z.delete(this.id),this.#J(),this.#y.registerEvent({type:"event",method:oe.ChromiumBidi.BrowsingContext.EventNames.ContextDestroyed,params:this.serializeToBidiValue()},this.id),this.#i.deleteContextById(this.id)}get id(){return this.#u}get parentId(){return this.#L}get parent(){return null===this.parentId?null:this.#i.getContext(this.parentId)}get directChildren(){return[...this.#Z].map((e=>this.#i.getContext(e)))}get allChildren(){const e=this.directChildren;return e.concat(...e.map((e=>e.allChildren)))}isTopLevelContext(){return null===this.#L}get top(){let e=this,t=e.parent;for(;t;)e=t,t=e.parent;return e}addChild(e){this.#Z.add(e)}#W(){this.directChildren.map((e=>e.dispose()))}get#G(){return(0,ie.assert)(this.#K,`No default realm for browsing context ${this.#u}`),this.#K}get cdpTarget(){return this.#$}updateCdpTarget(e){this.#$=e,this.#H()}get url(){return this.#q}async lifecycleLoaded(){await this.#U.load}async targetUnblockedOrThrow(){const e=await this.#$.unblocked;if("error"===e.kind)throw e.error}async getOrCreateSandbox(e){if(void 0===e||""===e)return this.#G;let t=this.#C.findRealms({browsingContextId:this.id,sandbox:e});return 0===t.length&&(await this.#$.cdpClient.sendCommand("Page.createIsolatedWorld",{frameId:this.id,worldName:e}),t=this.#C.findRealms({browsingContextId:this.id,sandbox:e}),(0,ie.assert)(0!==t.length)),t[0]}serializeToBidiValue(e=0,t=!0){return{context:this.#u,url:this.url,userContext:this.userContext,children:e>0?this.directChildren.map((t=>t.serializeToBidiValue(e-1,!1))):null,...t?{parent:this.#L}:{}}}onTargetInfoChanged(e){this.#q=e.targetInfo.url}#H(){this.#$.cdpClient.on("Page.frameNavigated",(e=>{this.id===e.frame.id&&(this.#q=e.frame.url+(e.frame.urlFragment??""),this.#W())})),this.#$.cdpClient.on("Page.navigatedWithinDocument",(e=>{if(this.id!==e.frameId)return;const t=he.getTimestamp();this.#q=e.url,this.#F.withinDocument.resolve(e),this.#y.registerEvent({type:"event",method:oe.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated,params:{context:this.id,navigation:null,timestamp:t,url:this.#q}},this.id)})),this.#$.cdpClient.on("Page.frameStartedLoading",(e=>{this.id===e.frameId&&this.#y.registerEvent({type:"event",method:oe.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted,params:{context:this.id,navigation:null,timestamp:he.getTimestamp(),url:""}},this.id)})),this.#$.cdpClient.on("Page.lifecycleEvent",(e=>{if(this.id!==e.frameId)return;if("init"===e.name)return void this.#X(e.loaderId);if("commit"===e.name)return void(this.#V=e.loaderId);if(e.loaderId!==this.#V)return;const t=he.getTimestamp();switch(e.name){case"DOMContentLoaded":this.#y.registerEvent({type:"event",method:oe.ChromiumBidi.BrowsingContext.EventNames.DomContentLoaded,params:{context:this.id,navigation:this.#V??null,timestamp:t,url:this.#q}},this.id),this.#U.DOMContentLoaded.resolve(e);break;case"load":this.#y.registerEvent({type:"event",method:oe.ChromiumBidi.BrowsingContext.EventNames.Load,params:{context:this.id,navigation:this.#V??null,timestamp:t,url:this.#q}},this.id),this.#U.load.resolve(e)}})),this.#$.cdpClient.on("Runtime.executionContextCreated",(e=>{const{auxData:t,name:a,uniqueId:r,id:n}=e.context;if(!t||t.frameId!==this.id)return;let s,o;switch(t.type){case"isolated":o=a,s=this.#G.origin;break;case"default":s=pe(e.context.origin);break;default:return}const i=new le.WindowRealm(this.id,this.#i,this.#$.cdpClient,this.#y,n,this.#t,s,r,this.#C,o,this.#z);t.isDefault&&(this.#K=i,Promise.all(this.#$.getChannels().map((e=>e.startListenerFromWindow(i,this.#y)))))})),this.#$.cdpClient.on("Runtime.executionContextDestroyed",(e=>{this.#C.deleteRealms({cdpSessionId:this.#$.cdpSessionId,executionContextId:e.executionContextId})})),this.#$.cdpClient.on("Runtime.executionContextsCleared",(()=>{this.#C.deleteRealms({cdpSessionId:this.#$.cdpSessionId})})),this.#$.cdpClient.on("Page.javascriptDialogClosed",(e=>{const t=e.result;this.#y.registerEvent({type:"event",method:oe.ChromiumBidi.BrowsingContext.EventNames.UserPromptClosed,params:{context:this.id,accepted:t,userText:t&&e.userInput?e.userInput:void 0}},this.id)})),this.#$.cdpClient.on("Page.javascriptDialogOpening",(e=>{this.#y.registerEvent({type:"event",method:oe.ChromiumBidi.BrowsingContext.EventNames.UserPromptOpened,params:{context:this.id,type:e.type,message:e.message,defaultValue:e.defaultPrompt||void 0}},this.id)}))}#X(e){void 0!==e&&this.#V!==e?(this.#Y(),this.#V=e):this.#F.withinDocument.isFinished?this.#F.withinDocument=new ce.Deferred:this.#t?.(he.LOGGER_PREFIX,"Document changed (navigatedWithinDocument)")}#Y(){this.#U.DOMContentLoaded.isFinished?this.#U.DOMContentLoaded=new ce.Deferred:this.#t?.(he.LOGGER_PREFIX,"Document changed (DOMContentLoaded)"),this.#U.load.isFinished?this.#U.load=new ce.Deferred:this.#t?.(he.LOGGER_PREFIX,"Document changed (load)")}#J(){this.#U.DOMContentLoaded.isFinished||this.#U.DOMContentLoaded.reject(new oe.UnknownErrorException("navigation canceled")),this.#U.load.isFinished||this.#U.load.reject(new oe.UnknownErrorException("navigation canceled"))}async navigate(e,t){try{new URL(e)}catch{throw new oe.InvalidArgumentException(`Invalid URL: ${e}`)}await this.targetUnblockedOrThrow();const a=await this.#$.cdpClient.sendCommand("Page.navigate",{url:e,frameId:this.id});if(a.errorText)throw new oe.UnknownErrorException(a.errorText);switch(this.#X(a.loaderId),t){case"none":break;case"interactive":void 0===a.loaderId?await this.#F.withinDocument:await this.#U.DOMContentLoaded;break;case"complete":void 0===a.loaderId?await this.#F.withinDocument:await this.#U.load}return{navigation:a.loaderId??null,url:"none"===t?e:this.#q}}async reload(e,t){switch(await this.targetUnblockedOrThrow(),await this.#$.cdpClient.sendCommand("Page.reload",{ignoreCache:e}),this.#Y(),t){case"none":break;case"interactive":await this.#U.DOMContentLoaded;break;case"complete":await this.#U.load}return{navigation:"none"===t?null:this.navigableId??null,url:this.url}}async setViewport(e,t){if(null===e&&null===t)await this.#$.cdpClient.sendCommand("Emulation.clearDeviceMetricsOverride");else try{await this.#$.cdpClient.sendCommand("Emulation.setDeviceMetricsOverride",{width:e?e.width:0,height:e?e.height:0,deviceScaleFactor:t||0,mobile:!1,dontSetVisibleSize:!0})}catch(e){if(e.message.startsWith("Width and height values must be positive"))throw new oe.UnsupportedOperationException("Provided viewport dimensions are not supported");throw e}}async handleUserPrompt(e){await this.#$.cdpClient.sendCommand("Page.handleJavaScriptDialog",{accept:e.accept??!0,promptText:e.userText})}async activate(){await this.#$.cdpClient.sendCommand("Page.bringToFront")}async captureScreenshot(e){if(!this.isTopLevelContext())throw new oe.UnsupportedOperationException(`Non-top-level 'context' (${e.context}) is currently not supported`);const t=function(e){const{quality:t,type:a}=e.format??{type:"image/png"};switch(a){case"image/png":return{format:"png"};case"image/jpeg":return{format:"jpeg",...void 0===t?{}:{quality:Math.round(100*t)}};case"image/webp":return{format:"webp",...void 0===t?{}:{quality:Math.round(100*t)}}}throw new oe.InvalidArgumentException(`Image format '${a}' is not a supported format`)}(e);await this.#$.cdpClient.sendCommand("Page.bringToFront");let a,r=!1;switch(e.origin??="viewport",e.origin){case"document":a=String((()=>{const e=document.documentElement;return{x:0,y:0,width:e.scrollWidth,height:e.scrollHeight}})),r=!0;break;case"viewport":a=String((()=>{const e=window.visualViewport;return{x:e.pageLeft,y:e.pageTop,width:e.width,height:e.height}}))}const n=await this.getOrCreateSandbox(void 0),s=await n.callFunction(a,{type:"undefined"},[],!1,"none",{},!1);(0,ie.assert)("success"===s.type);const o=me(s.result);(0,ie.assert)(o);const i=e.clip?function(e,t){e=fe(e),t=fe(t);const a=Math.max(e.x,t.x),r=Math.max(e.y,t.y);return{x:a,y:r,width:Math.max(Math.min(e.x+e.width,t.x+t.width)-a,0),height:Math.max(Math.min(e.y+e.height,t.y+t.height)-r,0)}}(await this.#Q(e.clip),o):o;if(0===i.width||0===i.height)throw new oe.UnableToCaptureScreenException(`Unable to capture screenshot with zero dimensions: width=${i.width}, height=${i.height}`);return await this.#$.cdpClient.sendCommand("Page.captureScreenshot",{clip:{...i,scale:1},...t,captureBeyondViewport:r})}async print(e){const t={};if(void 0!==e.background&&(t.printBackground=e.background),void 0!==e.margin?.bottom&&(t.marginBottom=(0,ue.inchesFromCm)(e.margin.bottom)),void 0!==e.margin?.left&&(t.marginLeft=(0,ue.inchesFromCm)(e.margin.left)),void 0!==e.margin?.right&&(t.marginRight=(0,ue.inchesFromCm)(e.margin.right)),void 0!==e.margin?.top&&(t.marginTop=(0,ue.inchesFromCm)(e.margin.top)),void 0!==e.orientation&&(t.landscape="landscape"===e.orientation),void 0!==e.page?.height&&(t.paperHeight=(0,ue.inchesFromCm)(e.page.height)),void 0!==e.page?.width&&(t.paperWidth=(0,ue.inchesFromCm)(e.page.width)),void 0!==e.pageRanges){for(const t of e.pageRanges){if("number"==typeof t)continue;const e=t.split("-");if(e.length<1||e.length>2)throw new oe.InvalidArgumentException(`Invalid page range: ${t} is not a valid integer range.`);if(1===e.length){ge(e[0]??"");continue}let a,r;const[n="",s=""]=e;if(a=""===n?1:ge(n),r=""===s?Number.MAX_SAFE_INTEGER:ge(s),a>r)throw new oe.InvalidArgumentException(`Invalid page range: ${n} > ${s}`)}t.pageRanges=e.pageRanges.join(",")}void 0!==e.scale&&(t.scale=e.scale),void 0!==e.shrinkToFit&&(t.preferCSSPageSize=!e.shrinkToFit);try{return{data:(await this.#$.cdpClient.sendCommand("Page.printToPDF",t)).data}}catch(e){if("invalid print parameters: content area is empty"===e.message)throw new oe.UnsupportedOperationException(e.message);throw e}}async#Q(e){switch(e.type){case"box":return{x:e.x,y:e.y,width:e.width,height:e.height};case"element":{const t=await this.getOrCreateSandbox(void 0),a=await t.callFunction(String((e=>e instanceof Element)),{type:"undefined"},[e.element],!1,"none",{});if("exception"===a.type)throw new oe.NoSuchElementException(`Element '${e.element.sharedId}' was not found`);if((0,ie.assert)("boolean"===a.result.type),!a.result.value)throw new oe.NoSuchElementException(`Node '${e.element.sharedId}' is not an Element`);{const a=await t.callFunction(String((e=>{const t=e.getBoundingClientRect();return{x:t.x,y:t.y,height:t.height,width:t.width}})),{type:"undefined"},[e.element],!1,"none",{});(0,ie.assert)("success"===a.type);const r=me(a.result);if(!r)throw new oe.UnableToCaptureScreenException(`Could not get bounding box for Element '${e.element.sharedId}'`);return r}}}}async close(){await this.#$.cdpClient.sendCommand("Page.close")}async traverseHistory(e){if(0===e)return;const t=await this.#$.cdpClient.sendCommand("Page.getNavigationHistory"),a=t.entries[t.currentIndex+e];if(!a)throw new oe.NoSuchHistoryEntryException(`No history entry at delta ${e}`);await this.#$.cdpClient.sendCommand("Page.navigateToHistoryEntry",{entryId:a.id})}}function pe(e){return["://",""].includes(e)&&(e="null"),e}function me(e){if("object"!==e.type||void 0===e.value)return;const t=e.value.find((([e])=>"x"===e))?.[1],a=e.value.find((([e])=>"y"===e))?.[1],r=e.value.find((([e])=>"height"===e))?.[1],n=e.value.find((([e])=>"width"===e))?.[1];return"number"===t?.type&&"number"===a?.type&&"number"===r?.type&&"number"===n?.type?{x:t.value,y:a.value,width:n.value,height:r.value}:void 0}function fe(e){return{...e.width<0?{x:e.x+e.width,width:-e.width}:{x:e.x,width:e.width},...e.height<0?{y:e.y+e.height,height:-e.height}:{y:e.y,height:e.height}}}function ge(e){if(e=e.trim(),!/^[0-9]+$/.test(e))throw new oe.InvalidArgumentException(`Invalid integer: ${e}`);return parseInt(e)}W.BrowsingContextImpl=he,W.serializeOrigin=pe;var ye={},Se={},ve={};Object.defineProperty(ve,"__esModule",{value:!0}),ve.getRemoteValuesText=ve.logMessageFormatter=void 0;const we=J,Ce=["%s","%d","%i","%f","%o","%O","%c"];function be(e){return Ce.some((t=>e.includes(t)))}function xe(e){let t="";const a=e[0].value.toString(),r=e.slice(1,void 0),n=a.split(new RegExp(Ce.map((e=>`(${e})`)).join("|"),"g"));for(const a of n)if(void 0!==a&&""!==a)if(be(a)){const n=r.shift();(0,we.assert)(n,`Less value is provided: "${ke(e,!1)}"`),"%s"===a?t+=Ie(n):"%d"===a||"%i"===a?"bigint"===n.type||"number"===n.type||"string"===n.type?t+=parseInt(n.value.toString(),10):t+="NaN":"%f"===a?"bigint"===n.type||"number"===n.type||"string"===n.type?t+=parseFloat(n.value.toString()):t+="NaN":t+=Pe(n)}else t+=a;if(r.length>0)throw new Error(`More value is provided: "${ke(e,!1)}"`);return t}function Pe(e){if("array"!==e.type&&"bigint"!==e.type&&"date"!==e.type&&"number"!==e.type&&"object"!==e.type&&"string"!==e.type)return Ie(e);if("bigint"===e.type)return`${e.value.toString()}n`;if("number"===e.type)return e.value.toString();if(["date","string"].includes(e.type))return JSON.stringify(e.value);if("object"===e.type)return`{${e.value.map((e=>`${JSON.stringify(e[0])}:${Pe(e[1])}`)).join(",")}}`;if("array"===e.type)return`[${e.value?.map((e=>Pe(e))).join(",")??""}]`;throw Error(`Invalid value type: ${e}`)}function Ie(e){if(!Object.hasOwn(e,"value"))return e.type;switch(e.type){case"string":case"number":case"boolean":case"bigint":return String(e.value);case"regexp":return`/${e.value.pattern}/${e.value.flags??""}`;case"date":return new Date(e.value).toString();case"object":return`Object(${e.value?.length??""})`;case"array":return`Array(${e.value?.length??""})`;case"map":return`Map(${e.value?.length})`;case"set":return`Set(${e.value?.length})`;default:return e.type}}function ke(e,t){const a=e[0];return a?"string"===a.type&&be(a.value.toString())&&t?xe(e):e.map((e=>Ie(e))).join(" "):""}ve.logMessageFormatter=xe,ve.getRemoteValuesText=ke,Object.defineProperty(Se,"__esModule",{value:!0}),Se.LogManager=void 0;const Re=g,Ee=l,_e=ve;function Te(e){const t=e?.callFrames.map((e=>({columnNumber:e.columnNumber,functionName:e.functionName,lineNumber:e.lineNumber,url:e.url})));return t?{callFrames:t}:void 0}class Ne{#y;#C;#$;#t;constructor(e,t,a,r){this.#$=e,this.#C=t,this.#y=a,this.#t=r}static create(e,t,a,r){const n=new Ne(e,t,a,r);return n.#ee(),n}#ee(){this.#$.cdpClient.on("Runtime.consoleAPICalled",(e=>{const t=this.#C.findRealm({cdpSessionId:this.#$.cdpSessionId,executionContextId:e.executionContextId});if(void 0===t)return void this.#t?.(Ee.LogType.cdp,e);const a=void 0===t?Promise.resolve(e.args):Promise.all(e.args.map((e=>t.serializeCdpObject(e,"none"))));for(const r of t.associatedBrowsingContexts)this.#y.registerPromiseEvent(a.then((a=>{return{kind:"success",value:{type:"event",method:Re.ChromiumBidi.Log.EventNames.LogEntryAdded,params:{level:(r=e.type,["error","assert"].includes(r)?"error":["debug","trace"].includes(r)?"debug":["warn","warning"].includes(r)?"warn":"info"),source:t.source,text:(0,_e.getRemoteValuesText)(a,!0),timestamp:Math.round(e.timestamp),stackTrace:Te(e.stackTrace),type:"console",method:"warning"===e.type?"warn":e.type,args:a}}};var r})),r.id,Re.ChromiumBidi.Log.EventNames.LogEntryAdded)})),this.#$.cdpClient.on("Runtime.exceptionThrown",(e=>{const t=this.#C.findRealm({cdpSessionId:this.#$.cdpSessionId,executionContextId:e.exceptionDetails.executionContextId});if(void 0!==t)for(const a of t.associatedBrowsingContexts)this.#y.registerPromiseEvent(Ne.#te(e,t).then((a=>({kind:"success",value:{type:"event",method:Re.ChromiumBidi.Log.EventNames.LogEntryAdded,params:{level:"error",source:t.source,text:a,timestamp:Math.round(e.timestamp),stackTrace:Te(e.exceptionDetails.stackTrace),type:"javascript"}}}))),a.id,Re.ChromiumBidi.Log.EventNames.LogEntryAdded);else this.#t?.(Ee.LogType.cdp,e)}))}static async#te(e,t){return e.exceptionDetails.exception?void 0===t?JSON.stringify(e.exceptionDetails.exception):await t.stringifyObject(e.exceptionDetails.exception):e.exceptionDetails.text}}Se.LogManager=Ne;var je={},Oe={},Me={};Object.defineProperty(Me,"__esModule",{value:!0}),Me.bidiToCdpCookie=Me.cdpToBiDiCookie=Me.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction=Me.cdpFetchHeadersFromBidiNetworkHeaders=Me.bidiNetworkHeadersFromCdpFetchHeaders=Me.cdpNetworkHeadersFromBidiNetworkHeaders=Me.bidiNetworkHeadersFromCdpNetworkHeaders=Me.computeHeadersSize=void 0;const Ae=I;function Be(e){switch(e){case"Strict":return"strict";case"None":return"none";default:return"lax"}}function ze(e){switch(e){case"strict":return"Strict";case"lax":return"Lax";case"none":return"None"}throw new Ae.InvalidArgumentException(`Unknown 'sameSite' value ${e}`)}Me.computeHeadersSize=function(e){const t=e.reduce(((e,t)=>`${e}${t.name}: ${t.value.value}\r\n`),"");return(new TextEncoder).encode(t).length},Me.bidiNetworkHeadersFromCdpNetworkHeaders=function(e){return e?Object.entries(e).map((([e,t])=>({name:e,value:{type:"string",value:t}}))):[]},Me.cdpNetworkHeadersFromBidiNetworkHeaders=function(e){if(void 0!==e)return e.reduce(((e,t)=>(e[t.name]=t.value.value,e)),{})},Me.bidiNetworkHeadersFromCdpFetchHeaders=function(e){return e?e.map((({name:e,value:t})=>({name:e,value:{type:"string",value:t}}))):[]},Me.cdpFetchHeadersFromBidiNetworkHeaders=function(e){if(void 0!==e)return e.map((({name:e,value:t})=>({name:e,value:t.value})))},Me.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction=function(e){switch(e){case"default":return"Default";case"cancel":return"CancelAuth";case"provideCredentials":return"ProvideCredentials"}},Me.cdpToBiDiCookie=function(e){const t={name:e.name,value:{type:"string",value:e.value},domain:e.domain,path:e.path,size:e.size,httpOnly:e.httpOnly,secure:e.secure,sameSite:void 0===e.sameSite?"none":Be(e.sameSite),...e.expires>=0?{expiry:e.expires}:void 0};return t["goog:session"]=e.session,t["goog:priority"]=e.priority,t["goog:sameParty"]=e.sameParty,t["goog:sourceScheme"]=e.sourceScheme,t["goog:sourcePort"]=e.sourcePort,void 0!==e.partitionKey&&(t["goog:partitionKey"]=e.partitionKey),void 0!==e.partitionKeyOpaque&&(t["goog:partitionKeyOpaque"]=e.partitionKeyOpaque),t},Me.bidiToCdpCookie=function(e,t){if("string"!==e.cookie.value.type)throw new Ae.UnsupportedOperationException("Only string cookie values are supported");const a=e.cookie.value.value,r={name:e.cookie.name,value:a,domain:e.cookie.domain,path:e.cookie.path??"/",secure:e.cookie.secure??!1,httpOnly:e.cookie.httpOnly??!1,...void 0!==t.sourceOrigin&&{partitionKey:t.sourceOrigin},...void 0!==e.cookie.expiry&&{expires:e.cookie.expiry},...void 0!==e.cookie.sameSite&&{sameSite:ze(e.cookie.sameSite)}};return void 0!==e.cookie["goog:url"]&&(r.url=e.cookie["goog:url"]),void 0!==e.cookie["goog:priority"]&&(r.priority=e.cookie["goog:priority"]),void 0!==e.cookie["goog:sameParty"]&&(r.sameParty=e.cookie["goog:sameParty"]),void 0!==e.cookie["goog:sourceScheme"]&&(r.sourceScheme=e.cookie["goog:sourceScheme"]),void 0!==e.cookie["goog:sourcePort"]&&(r.sourcePort=e.cookie["goog:sourcePort"]),r},Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.NetworkRequest=void 0;const De=g,Le=J,Ze=G,Ue=Me;class Fe{static#ae="UNKNOWN";#re;#ne=void 0;#se=!1;#oe;#y;#ie;#ce={};#de={};#ue=new Ze.Deferred;#le=new Ze.Deferred;#he=new Ze.Deferred;#$;constructor(e,t,a,r,n=0){this.#re=e,this.#y=t,this.#ie=a,this.#$=r,this.#oe=n}get requestId(){return this.#re}get url(){return this.#de.info?.url??this.#ce.info?.request.url}get redirectCount(){return this.#oe}get cdpTarget(){return this.#$}isRedirecting(){return Boolean(this.#ce.info)}handleRedirect(e){this.#pe(),this.#me(),this.#de.hasExtraInfo=e.redirectHasExtraInfo,this.#de.info=e.redirectResponse,this.#fe(!0)}#fe(e=!1){const t=e||Boolean(this.#ce.extraInfo)||this.#se||Boolean(this.#de.info&&!this.#de.hasExtraInfo)||"beforeRequestSent"===this.#ne;this.#ce.info&&t&&this.#ue.resolve({kind:"success",value:void 0});const a=Boolean(this.#de.extraInfo)||this.#se||Boolean(this.#de.info&&!this.#de.hasExtraInfo)||"responseStarted"===this.#ne;this.#de.info&&a&&(this.#le.resolve({kind:"success",value:void 0}),this.#he.resolve({kind:"success",value:void 0}))}onRequestWillBeSentEvent(e){this.#ce.info=e,this.#ge(),this.#fe()}onRequestWillBeSentExtraInfoEvent(e){this.#ce.extraInfo=e,this.#fe()}onResponseReceivedExtraInfoEvent(e){this.#de.extraInfo=e,this.#fe()}onResponseReceivedEvent(e){this.#de.hasExtraInfo=e.hasExtraInfo,this.#de.info=e.response,this.#pe(),this.#me(),this.#fe()}onServedFromCache(){this.#se=!0,this.#fe()}onLoadingFailedEvent(e){this.#ue.resolve({kind:"success",value:void 0}),this.#le.resolve({kind:"error",error:new Error("Network event loading failed")}),this.#he.resolve({kind:"error",error:new Error("Network event loading failed")}),this.#y.registerEvent({type:"event",method:De.ChromiumBidi.Network.EventNames.FetchError,params:{...this.#ye(),errorText:e.errorText}},this.#Se)}onRequestPaused(e){if(this.#ve())return void this.continueRequest(e.requestId).catch((()=>{}));let t;t=void 0===e.responseErrorReason&&void 0===e.responseStatusCode?"beforeRequestSent":401===e.responseStatusCode&&"Unauthorized"===e.responseStatusText?"authRequired":"responseStarted";const a=(0,Ue.bidiNetworkHeadersFromCdpFetchHeaders)(e.responseHeaders);this.#ie.addBlockedRequest(this.requestId,{request:e.requestId,phase:t,response:{url:e.request.url,protocol:"",status:e.responseStatusCode??0,statusText:e.responseStatusText??"",fromCache:!1,headers:a,mimeType:"",bytesReceived:0,headersSize:(0,Ue.computeHeadersSize)(a),bodySize:0,content:{size:0},authChallenge:void 0}}),this.#ne=t,this.#fe()}async failRequest(e,t){await this.#$.cdpClient.sendCommand("Fetch.failRequest",{requestId:e,errorReason:t}),this.#ne=void 0}async continueRequest(e,t,a,r){await this.#$.cdpClient.sendCommand("Fetch.continueRequest",{requestId:e,url:t,method:a,headers:r}),this.#ne=void 0}async continueResponse(e,t,a,r){await this.#$.cdpClient.sendCommand("Fetch.continueResponse",{requestId:e,responseCode:t,responsePhrase:a,responseHeaders:r}),this.#ne=void 0}async continueWithAuth(e,t,a,r){await this.#$.cdpClient.sendCommand("Fetch.continueWithAuth",{requestId:e,authChallengeResponse:{response:t,username:a,password:r}}),this.#ne=void 0}async provideResponse(e,t,a,r,n){await this.#$.cdpClient.sendCommand("Fetch.fulfillRequest",{requestId:e,responseCode:t,responsePhrase:a,responseHeaders:r,...n?{body:btoa(n)}:{}}),this.#ne=void 0}dispose(){const e={kind:"error",error:new Error("Network processor detached")};this.#ue.resolve(e),this.#le.resolve(e),this.#he.resolve(e)}get#Se(){return this.#ce.info?.frameId??null}get statusCode(){return this.#de.info?.status??this.#de.extraInfo?.statusCode??-1}#ye(e){const t=void 0!==e&&e===this.#ne,a=this.#ie.getNetworkIntercepts(this.#re,e);return{isBlocked:t,context:this.#Se,navigation:this.#we(),redirectCount:this.#oe,request:this.#Ce(),timestamp:Math.round(1e3*(this.#ce.info?.wallTime??0)),intercepts:t?a:void 0}}#we(){return this.#ce.info&&this.#ce.info.loaderId&&this.#ce.info.loaderId===this.#ce.info.requestId?this.#ce.info.loaderId:null}#Ce(){const e=this.#ce.extraInfo?Fe.#be(this.#ce.extraInfo.associatedCookies):[],t=(0,Ue.bidiNetworkHeadersFromCdpNetworkHeaders)(this.#ce.info?.request.headers);return{request:this.#ce.info?.requestId??Fe.#ae,url:this.#ce.info?.request.url??Fe.#ae,method:this.#ce.info?.request.method??Fe.#ae,headers:t,cookies:e,headersSize:(0,Ue.computeHeadersSize)(t),bodySize:0,timings:this.#xe()}}#xe(){return{timeOrigin:0,requestTime:0,redirectStart:0,redirectEnd:0,fetchStart:0,dnsStart:0,dnsEnd:0,connectStart:0,connectEnd:0,tlsStart:0,requestStart:0,responseStart:0,responseEnd:0}}#ge(){this.#ve()||this.#y.registerPromiseEvent(this.#ue.then((e=>{if("success"===e.kind)try{return{kind:"success",value:Object.assign(this.#Pe(),{type:"event"})}}catch(e){return{kind:"error",error:e instanceof Error?e:new Error("Unknown")}}return e})),this.#Se,De.ChromiumBidi.Network.EventNames.BeforeRequestSent)}#Pe(){return(0,Le.assert)(this.#ce.info,"RequestWillBeSentEvent is not set"),{method:De.ChromiumBidi.Network.EventNames.BeforeRequestSent,params:{...this.#ye("beforeRequestSent"),initiator:{type:Fe.#Ie(this.#ce.info.initiator.type)}}}}#pe(){this.#ve()||this.#y.registerPromiseEvent(this.#le.then((e=>{if("success"===e.kind)try{return{kind:"success",value:Object.assign(this.#ke(),{type:"event"})}}catch(e){return{kind:"error",error:e instanceof Error?e:new Error("Unknown")}}return e})),this.#Se,De.ChromiumBidi.Network.EventNames.ResponseStarted)}#ke(){(0,Le.assert)(this.#ce.info,"RequestWillBeSentEvent is not set"),(0,Le.assert)(this.#de.info,"ResponseReceivedEvent is not set"),this.#de.info.fromDiskCache&&(this.#de.extraInfo=void 0);const e=(0,Ue.bidiNetworkHeadersFromCdpNetworkHeaders)(this.#de.info.headers);return{method:De.ChromiumBidi.Network.EventNames.ResponseStarted,params:{...this.#ye(),response:{url:this.#de.info.url??Fe.#ae,protocol:this.#de.info.protocol??"",status:this.statusCode,statusText:this.#de.info.statusText,fromCache:this.#de.info.fromDiskCache||this.#de.info.fromPrefetchCache||this.#se,headers:e,mimeType:this.#de.info.mimeType,bytesReceived:this.#de.info.encodedDataLength,headersSize:(0,Ue.computeHeadersSize)(e),bodySize:0,content:{size:0}}}}}#me(){this.#ve()||this.#y.registerPromiseEvent(this.#he.then((e=>{if("success"===e.kind)try{return{kind:"success",value:Object.assign(this.#Re(),{type:"event"})}}catch(e){return{kind:"error",error:e instanceof Error?e:new Error("Unknown")}}return e})),this.#Se,De.ChromiumBidi.Network.EventNames.ResponseCompleted)}#Re(){(0,Le.assert)(this.#ce.info,"RequestWillBeSentEvent is not set"),(0,Le.assert)(this.#de.info,"ResponseReceivedEvent is not set"),this.#de.info.fromDiskCache&&(this.#de.extraInfo=void 0);const e=(0,Ue.bidiNetworkHeadersFromCdpNetworkHeaders)(this.#de.info.headers);return{method:De.ChromiumBidi.Network.EventNames.ResponseCompleted,params:{...this.#ye(),response:{url:this.#de.info.url??Fe.#ae,protocol:this.#de.info.protocol??"",status:this.statusCode,statusText:this.#de.info.statusText,fromCache:this.#de.info.fromDiskCache||this.#de.info.fromPrefetchCache||this.#se,headers:e,mimeType:this.#de.info.mimeType,bytesReceived:this.#de.info.encodedDataLength,headersSize:(0,Ue.computeHeadersSize)(e),bodySize:0,content:{size:0}}}}}#ve(){return this.#ce.info?.request.url.endsWith("/favicon.ico")??!1}static#Ie(e){switch(e){case"parser":case"script":case"preflight":return e;default:return"other"}}static#be(e){return e.filter((({blockedReasons:e})=>!Array.isArray(e)||0===e.length)).map((({cookie:e})=>(0,Ue.cdpToBiDiCookie)(e)))}}Oe.NetworkRequest=Fe,Object.defineProperty(je,"__esModule",{value:!0}),je.NetworkManager=void 0;const qe=Oe;class Ve{#$;#y;#ie;constructor(e,t,a){this.#$=e,this.#y=t,this.#ie=a}get cdpTarget(){return this.#$}#Ee(e,t){let a=this.#ie.getRequest(e);return a||(a=new qe.NetworkRequest(e,this.#y,this.#ie,this.#$,t),this.#ie.addRequest(a),a)}static create(e,t,a){const r=new Ve(e,t,a);return e.browserCdpClient.on("Target.detachedFromTarget",(t=>{e.cdpClient.sessionId===t.sessionId&&r.#ie.disposeRequestMap()})),e.cdpClient.on("Network.requestWillBeSent",(e=>{const t=r.#ie.getRequest(e.requestId);t&&t.isRedirecting()?(t.handleRedirect(e),r.#ie.deleteRequest(e.requestId),r.#Ee(e.requestId,t.redirectCount+1).onRequestWillBeSentEvent(e)):t?t.onRequestWillBeSentEvent(e):r.#Ee(e.requestId).onRequestWillBeSentEvent(e)})),e.cdpClient.on("Network.requestWillBeSentExtraInfo",(e=>{r.#Ee(e.requestId).onRequestWillBeSentExtraInfoEvent(e)})),e.cdpClient.on("Network.responseReceived",(e=>{r.#Ee(e.requestId).onResponseReceivedEvent(e)})),e.cdpClient.on("Network.responseReceivedExtraInfo",(e=>{r.#Ee(e.requestId).onResponseReceivedExtraInfoEvent(e)})),e.cdpClient.on("Network.requestServedFromCache",(e=>{r.#Ee(e.requestId).onServedFromCache()})),e.cdpClient.on("Network.loadingFailed",(e=>{r.#Ee(e.requestId).onLoadingFailedEvent(e)})),e.cdpClient.on("Fetch.requestPaused",(e=>{e.networkId&&r.#Ee(e.networkId).onRequestPaused(e)})),r}}je.NetworkManager=Ve,Object.defineProperty(ye,"__esModule",{value:!0}),ye.CdpTarget=void 0;const $e=G,Ke=Se,He=je;class We{#u;#g;#o;#y;#_e;#ie;#Te=new $e.Deferred;#Ne;static create(e,t,a,r,n,s,o,i,c){const d=new We(e,t,a,n,s,o,i);return Ke.LogManager.create(d,r,n,c),He.NetworkManager.create(d,n,o),d.#je(),d.#Oe(),d}constructor(e,t,a,r,n,s,o){this.#u=e,this.#g=t,this.#y=r,this.#_e=n,this.#ie=s,this.#o=a,this.#Ne=o}get unblocked(){return this.#Te}get id(){return this.#u}get cdpClient(){return this.#g}get browserCdpClient(){return this.#o}get cdpSessionId(){return this.#g.sessionId}async fetchEnable(){await this.#g.sendCommand("Fetch.enable",this.#ie.getFetchEnableParams())}async fetchDisable(){await this.#g.sendCommand("Fetch.disable")}async#Oe(){try{await Promise.all([this.#g.sendCommand("Runtime.enable"),this.#g.sendCommand("Page.enable"),this.#g.sendCommand("Page.setLifecycleEventsEnabled",{enabled:!0}),this.#g.sendCommand("Security.setIgnoreCertificateErrors",{ignore:this.#Ne}),this.#g.sendCommand("Network.enable"),this.fetchEnable(),this.#g.sendCommand("Target.setAutoAttach",{autoAttach:!0,waitForDebuggerOnStart:!0,flatten:!0}),this.#Me(),this.#g.sendCommand("Runtime.runIfWaitingForDebugger")])}catch(e){if(!this.#g.isCloseError(e))return void this.#Te.resolve({kind:"error",error:e})}this.#Te.resolve({kind:"success",value:void 0})}#je(){this.#g.on("*",((e,t)=>{"string"==typeof e&&this.#y.registerEvent({type:"event",method:`cdp.${e}`,params:{event:e,params:t,session:this.cdpSessionId}},null)}))}getChannels(){return this.#_e.find().flatMap((e=>e.channels))}async#Me(){for(const e of this.#_e.find({global:!0}))await e.initInTarget(this,!0)}}ye.CdpTarget=We,Object.defineProperty(j,"__esModule",{value:!0}),j.BrowsingContextProcessor=void 0;const Je=g,Ge=l,Xe=O,Ye=W,Qe=ye;j.BrowsingContextProcessor=class{#o;#c;#Ae;#y;#i;#ie;#Ne;#z;#_e;#C;#Be;#t;constructor(e,t,a,r,n,s,o,i,c,d,u,l){this.#Ne=c,this.#c=e,this.#o=t,this.#Ae=a,this.#y=r,this.#i=n,this.#_e=i,this.#ie=o,this.#C=s,this.#z=d,this.#Be=u,this.#t=l,this.#je(t)}getTree(e){return{contexts:(void 0===e.root?this.#i.getTopLevelContexts():[this.#i.getContext(e.root)]).map((t=>t.serializeToBidiValue(e.maxDepth??Number.MAX_VALUE)))}}async create(e){let t,a=e.userContext??"default";if(void 0!==e.referenceContext){if(t=this.#i.getContext(e.referenceContext),!t.isTopLevelContext())throw new Je.InvalidArgumentException("referenceContext should be a top-level context");a=t.userContext}let r,n=!1;switch(e.type){case"tab":n=!1;break;case"window":n=!0}if("default"!==a){const e=this.#i.getAllContexts().filter((e=>e.userContext===a));e.length||(n=!0)}try{r=await this.#o.sendCommand("Target.createTarget",{url:"about:blank",newWindow:n,browserContextId:"default"===a?void 0:a})}catch(e){if(e.message.startsWith("Failed to find browser context with id")||"browserContextId"===e.message)throw new Je.NoSuchUserContextException(`The context ${a} was not found`);throw e}const s=r.targetId,o=this.#i.getContext(s);return await o.lifecycleLoaded(),{context:o.id}}navigate(e){return this.#i.getContext(e.context).navigate(e.url,e.wait??"none")}reload(e){return this.#i.getContext(e.context).reload(e.ignoreCache??!1,e.wait??"none")}async activate(e){const t=this.#i.getContext(e.context);if(!t.isTopLevelContext())throw new Je.InvalidArgumentException("Activation is only supported on the top-level context");return await t.activate(),{}}async captureScreenshot(e){const t=this.#i.getContext(e.context);return await t.captureScreenshot(e)}async print(e){const t=this.#i.getContext(e.context);return await t.print(e)}async setViewport(e){const t=this.#i.getContext(e.context);if(!t.isTopLevelContext())throw new Je.InvalidArgumentException("Emulating viewport is only supported on the top-level context");return await t.setViewport(e.viewport,e.devicePixelRatio),{}}async traverseHistory(e){const t=this.#i.getContext(e.context);if(!t)throw new Je.InvalidArgumentException(`No browsing context with id ${e.context}`);return await t.traverseHistory(e.delta),{}}async handleUserPrompt(e){const t=this.#i.getContext(e.context);return await t.handleUserPrompt(e),{}}async close(e){const t=this.#i.getContext(e.context);if(!t.isTopLevelContext())throw new Je.InvalidArgumentException(`Non top-level browsing context ${t.id} cannot be closed.`);try{const a=new Promise((t=>{const a=r=>{r.targetId===e.context&&(this.#o.off("Target.detachedFromTarget",a),t())};this.#o.on("Target.detachedFromTarget",a)}));e.promptUnload?await t.close():await this.#o.sendCommand("Target.closeTarget",{targetId:e.context}),await a}catch(e){if(-32e3!==e.code||"Not attached to an active page"!==e.message)throw e}return{}}#je(e){e.on("Target.attachedToTarget",(t=>{this.#ze(t,e)})),e.on("Target.detachedFromTarget",(e=>{this.#De(e)})),e.on("Target.targetInfoChanged",(e=>{this.#Le(e)})),e.on("Page.frameAttached",(e=>{this.#Ze(e)})),e.on("Page.frameDetached",(e=>{this.#Ue(e)}))}#Ze(e){const t=this.#i.findContext(e.parentFrameId);void 0!==t&&Ye.BrowsingContextImpl.create(t.cdpTarget,this.#C,e.frameId,e.parentFrameId,t.userContext,this.#y,this.#i,this.#z,this.#t)}#Ue(e){"swap"!==e.reason&&this.#i.findContext(e.frameId)?.dispose()}#ze(e,t){const{sessionId:a,targetInfo:r}=e,n=this.#c.getCdpClient(a);switch(this.#t?.(Ge.LogType.debugInfo,"AttachedToTarget event received:",e),r.type){case"page":case"iframe":{if(r.targetId===this.#Ae)break;const e=this.#Fe(n,r),t=this.#i.findContext(r.targetId);return void(t?t.updateCdpTarget(e):Ye.BrowsingContextImpl.create(e,this.#C,r.targetId,null,r.browserContextId&&r.browserContextId!==this.#Be?r.browserContextId:"default",this.#y,this.#i,this.#z,this.#t))}case"worker":{const e=t.sessionId&&this.#i.findContextBySession(t.sessionId);if(!e)break;const a=this.#Fe(n,r);return void this.#qe(a,this.#C.getRealm({browsingContextId:e.id,type:"window",sandbox:void 0}))}}n.sendCommand("Runtime.runIfWaitingForDebugger").then((()=>t.sendCommand("Target.detachFromTarget",e))).catch((e=>this.#t?.(Ge.LogType.debugError,e)))}#Fe(e,t){return this.#je(e),Qe.CdpTarget.create(t.targetId,e,this.#o,this.#C,this.#y,this.#_e,this.#ie,this.#Ne,this.#t)}#Ve=new Map;#qe(e,t){e.cdpClient.on("Runtime.executionContextCreated",(a=>{const{uniqueId:r,id:n,origin:s}=a.context,o=new Xe.DedicatedWorkerRealm(e.cdpClient,this.#y,n,this.#t,(0,Ye.serializeOrigin)(s),t,r,this.#C);this.#Ve.set(e.cdpSessionId,o)}))}#De(e){const t=this.#i.findContextBySession(e.sessionId);if(t)return t.dispose(),void this.#_e.find({targetId:t.id}).map((e=>e.dispose(t.id)));const a=this.#Ve.get(e.sessionId);a&&this.#C.deleteRealms({cdpSessionId:a.cdpClient.sessionId})}#Le(e){const t=this.#i.findContext(e.targetInfo.targetId);t&&t.onTargetInfoChanged(e)}};var et={},tt={},at={};Object.defineProperty(at,"__esModule",{value:!0}),at.WheelSource=at.PointerSource=at.KeySource=at.NoneSource=void 0;at.NoneSource=class{type="none"};at.KeySource=class{type="key";pressed=new Set;#$e=0;get modifiers(){return this.#$e}get alt(){return 1==(1&this.#$e)}set alt(e){this.#Ke(e,1)}get ctrl(){return 2==(2&this.#$e)}set ctrl(e){this.#Ke(e,2)}get meta(){return 4==(4&this.#$e)}set meta(e){this.#Ke(e,4)}get shift(){return 8==(8&this.#$e)}set shift(e){this.#Ke(e,8)}#Ke(e,t){e?this.#$e|=t:this.#$e&=~t}};at.PointerSource=class{type="pointer";subtype;pointerId;pressed=new Set;x=0;y=0;constructor(e,t){this.pointerId=e,this.subtype=t}get buttons(){let e=0;for(const t of this.pressed)switch(t){case 0:e|=1;break;case 1:e|=4;break;case 2:e|=2;break;case 3:e|=8;break;case 4:e|=16}return e}static ClickContext=class e{static#He=500;static#We=2;count=0;#Je;#Ge;#Xe;constructor(e,t,a){this.#Je=e,this.#Ge=t,this.#Xe=a}compare(t){return t.#Xe-this.#Xe>e.#He||Math.abs(t.#Je-this.#Je)>e.#We||Math.abs(t.#Ge-this.#Ge)>e.#We}};#Ye=new Map;setClickCount(e,t){let a=this.#Ye.get(e);return a&&!a.compare(t)||(a=t),++a.count,this.#Ye.set(e,a),a.count}getClickCount(e){return this.#Ye.get(e)?.count??0}};at.WheelSource=class{type="wheel"};var rt={};Object.defineProperty(rt,"__esModule",{value:!0}),rt.getKeyLocation=rt.getKeyCode=rt.getNormalizedKey=void 0,rt.getNormalizedKey=function(e){switch(e){case"\ue000":return"Unidentified";case"\ue001":return"Cancel";case"\ue002":return"Help";case"\ue003":return"Backspace";case"\ue004":return"Tab";case"\ue005":return"Clear";case"\ue006":return"Return";case"\ue007":return"Enter";case"\ue008":case"\ue050":return"Shift";case"\ue009":case"\ue051":return"Control";case"\ue00a":case"\ue052":return"Alt";case"\ue00b":return"Pause";case"\ue00c":return"Escape";case"\ue00d":return" ";case"\ue00e":case"\ue054":return"PageUp";case"\ue00f":case"\ue055":return"PageDown";case"\ue010":case"\ue056":return"End";case"\ue011":case"\ue057":return"Home";case"\ue012":case"\ue058":return"ArrowLeft";case"\ue013":case"\ue059":return"ArrowUp";case"\ue014":case"\ue05a":return"ArrowRight";case"\ue015":case"\ue05b":return"ArrowDown";case"\ue016":case"\ue05c":return"Insert";case"\ue017":case"\ue05d":return"Delete";case"\ue018":return";";case"\ue019":return"=";case"\ue01a":return"0";case"\ue01b":return"1";case"\ue01c":return"2";case"\ue01d":return"3";case"\ue01e":return"4";case"\ue01f":return"5";case"\ue020":return"6";case"\ue021":return"7";case"\ue022":return"8";case"\ue023":return"9";case"\ue024":return"*";case"\ue025":return"+";case"\ue026":return",";case"\ue027":return"-";case"\ue028":return".";case"\ue029":return"/";case"\ue031":return"F1";case"\ue032":return"F2";case"\ue033":return"F3";case"\ue034":return"F4";case"\ue035":return"F5";case"\ue036":return"F6";case"\ue037":return"F7";case"\ue038":return"F8";case"\ue039":return"F9";case"\ue03a":return"F10";case"\ue03b":return"F11";case"\ue03c":return"F12";case"\ue03d":case"\ue053":return"Meta";case"\ue040":return"ZenkakuHankaku";default:return e}},rt.getKeyCode=function(e){switch(e){case"`":case"~":return"Backquote";case"\\":case"|":return"Backslash";case"\ue003":return"Backspace";case"[":case"{":return"BracketLeft";case"]":case"}":return"BracketRight";case",":case"<":return"Comma";case"0":case")":return"Digit0";case"1":case"!":return"Digit1";case"2":case"@":return"Digit2";case"3":case"#":return"Digit3";case"4":case"$":return"Digit4";case"5":case"%":return"Digit5";case"6":case"^":return"Digit6";case"7":case"&":return"Digit7";case"8":case"*":return"Digit8";case"9":case"(":return"Digit9";case"=":case"+":return"Equal";case"a":case"A":return"KeyA";case"b":case"B":return"KeyB";case"c":case"C":return"KeyC";case"d":case"D":return"KeyD";case"e":case"E":return"KeyE";case"f":case"F":return"KeyF";case"g":case"G":return"KeyG";case"h":case"H":return"KeyH";case"i":case"I":return"KeyI";case"j":case"J":return"KeyJ";case"k":case"K":return"KeyK";case"l":case"L":return"KeyL";case"m":case"M":return"KeyM";case"n":case"N":return"KeyN";case"o":case"O":return"KeyO";case"p":case"P":return"KeyP";case"q":case"Q":return"KeyQ";case"r":case"R":return"KeyR";case"s":case"S":return"KeyS";case"t":case"T":return"KeyT";case"u":case"U":return"KeyU";case"v":case"V":return"KeyV";case"w":case"W":return"KeyW";case"x":case"X":return"KeyX";case"y":case"Y":return"KeyY";case"z":case"Z":return"KeyZ";case"-":case"_":return"Minus";case".":return"Period";case"'":case'"':return"Quote";case";":case":":return"Semicolon";case"/":case"?":return"Slash";case"\ue00a":return"AltLeft";case"\ue052":return"AltRight";case"\ue009":return"ControlLeft";case"\ue051":return"ControlRight";case"\ue006":return"Enter";case"\ue03d":return"MetaLeft";case"\ue053":return"MetaRight";case"\ue008":return"ShiftLeft";case"\ue050":return"ShiftRight";case" ":case"\ue00d":return"Space";case"\ue004":return"Tab";case"\ue017":return"Delete";case"\ue010":return"End";case"\ue002":return"Help";case"\ue011":return"Home";case"\ue016":return"Insert";case"\ue00f":return"PageDown";case"\ue00e":return"PageUp";case"\ue015":return"ArrowDown";case"\ue012":return"ArrowLeft";case"\ue014":return"ArrowRight";case"\ue013":return"ArrowUp";case"\ue00c":return"Escape";case"\ue031":return"F1";case"\ue032":return"F2";case"\ue033":return"F3";case"\ue034":return"F4";case"\ue035":return"F5";case"\ue036":return"F6";case"\ue037":return"F7";case"\ue038":return"F8";case"\ue039":return"F9";case"\ue03a":return"F10";case"\ue03b":return"F11";case"\ue03c":return"F12";case"\ue01a":case"\ue05c":return"Numpad0";case"\ue01b":case"\ue056":return"Numpad1";case"\ue01c":case"\ue05b":return"Numpad2";case"\ue01d":case"\ue055":return"Numpad3";case"\ue01e":case"\ue058":return"Numpad4";case"\ue01f":return"Numpad5";case"\ue020":case"\ue05a":return"Numpad6";case"\ue021":case"\ue057":return"Numpad7";case"\ue022":case"\ue059":return"Numpad8";case"\ue023":case"\ue054":return"Numpad9";case"\ue025":return"NumpadAdd";case"\ue026":return"NumpadComma";case"\ue028":case"\ue05d":return"NumpadDecimal";case"\ue029":return"NumpadDivide";case"\ue007":return"NumpadEnter";case"\ue024":return"NumpadMultiply";case"\ue027":return"NumpadSubtract";default:return}},rt.getKeyLocation=function(e){switch(e){case"\ue007":case"\ue008":case"\ue009":case"\ue00a":case"\ue03d":return 1;case"\ue01a":case"\ue01b":case"\ue01c":case"\ue01d":case"\ue01e":case"\ue01f":case"\ue020":case"\ue021":case"\ue022":case"\ue023":case"\ue024":case"\ue025":case"\ue026":case"\ue027":case"\ue028":case"\ue029":case"\ue054":case"\ue055":case"\ue056":case"\ue057":case"\ue058":case"\ue059":case"\ue05a":case"\ue05b":case"\ue05c":case"\ue05d":return 3;case"\ue050":case"\ue051":case"\ue052":case"\ue053":return 2;default:return 0}};var nt={};Object.defineProperty(nt,"__esModule",{value:!0}),nt.KeyToKeyCode=void 0,nt.KeyToKeyCode={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,Abort:3,Help:6,Backspace:8,Tab:9,Numpad5:12,NumpadEnter:13,Enter:13,"\\r":13,"\\n":13,ShiftLeft:16,ShiftRight:16,ControlLeft:17,ControlRight:17,AltLeft:18,AltRight:18,Pause:19,CapsLock:20,Escape:27,Convert:28,NonConvert:29,Space:32,Numpad9:33,PageUp:33,Numpad3:34,PageDown:34,End:35,Numpad1:35,Home:36,Numpad7:36,ArrowLeft:37,Numpad4:37,Numpad8:38,ArrowUp:38,ArrowRight:39,Numpad6:39,Numpad2:40,ArrowDown:40,Select:41,Open:43,PrintScreen:44,Insert:45,Numpad0:45,Delete:46,NumpadDecimal:46,Digit0:48,Digit1:49,Digit2:50,Digit3:51,Digit4:52,Digit5:53,Digit6:54,Digit7:55,Digit8:56,Digit9:57,KeyA:65,KeyB:66,KeyC:67,KeyD:68,KeyE:69,KeyF:70,KeyG:71,KeyH:72,KeyI:73,KeyJ:74,KeyK:75,KeyL:76,KeyM:77,KeyN:78,KeyO:79,KeyP:80,KeyQ:81,KeyR:82,KeyS:83,KeyT:84,KeyU:85,KeyV:86,KeyW:87,KeyX:88,KeyY:89,KeyZ:90,MetaLeft:91,MetaRight:92,ContextMenu:93,NumpadMultiply:106,NumpadAdd:107,NumpadSubtract:109,NumpadDivide:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135,NumLock:144,ScrollLock:145,AudioVolumeMute:173,AudioVolumeDown:174,AudioVolumeUp:175,MediaTrackNext:176,MediaTrackPrevious:177,MediaStop:178,MediaPlayPause:179,Semicolon:186,Equal:187,NumpadEqual:187,Comma:188,Minus:189,Period:190,Slash:191,Backquote:192,BracketLeft:219,Backslash:220,BracketRight:221,Quote:222,AltGraph:225,Props:247,Cancel:3,Clear:12,Shift:16,Control:17,Alt:18,Accept:30,ModeChange:31," ":32,Print:42,Execute:43,"\\u0000":46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,Meta:91,"*":106,"+":107,"-":109,"/":111,";":186,"=":187,",":188,".":190,"`":192,"[":219,"\\\\":220,"]":221,"'":222,Attn:246,CrSel:247,ExSel:248,EraseEof:249,Play:250,ZoomOut:251,")":48,"!":49,"@":50,"#":51,$:52,"%":53,"^":54,"&":55,"(":57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,":":186,"<":188,_:189,">":190,"?":191,"~":192,"{":219,"|":220,"}":221,'"':222,Camera:44,EndCall:95,VolumeDown:182,VolumeUp:183},Object.defineProperty(tt,"__esModule",{value:!0}),tt.ActionDispatcher=void 0;const st=g,ot=J,it=at,ct=rt,dt=nt,ut=(e=>{const t=e.getClientRects()[0],a=Math.max(0,Math.min(t.x,t.x+t.width)),r=Math.min(window.innerWidth,Math.max(t.x,t.x+t.width)),n=Math.max(0,Math.min(t.y,t.y+t.height));return[a+(r-a>>1),n+(Math.min(window.innerHeight,Math.max(t.y,t.y+t.height))-n>>1)]}).toString(),lt=(()=>navigator.platform.toLowerCase().includes("mac")).toString();tt.ActionDispatcher=class{static isMacOS=async e=>{const t=await(await e.getOrCreateSandbox(void 0)).callFunction(lt,{type:"undefined"},[],!1,"none",{});return(0,ot.assert)("exception"!==t.type),(0,ot.assert)("boolean"===t.result.type),t.result.value};#Qe=0;#et=0;#tt;#Se;#at;constructor(e,t,a){this.#tt=e,this.#Se=t,this.#at=a}async dispatchActions(e){await this.#tt.queue.run((async()=>{for(const t of e)await this.dispatchTickActions(t)}))}async dispatchTickActions(e){this.#Qe=performance.now(),this.#et=0;for(const{action:t}of e)"duration"in t&&void 0!==t.duration&&(this.#et=Math.max(this.#et,t.duration));const t=[new Promise((e=>setTimeout(e,this.#et)))];for(const a of e)t.push(this.#rt(a));await Promise.all(t)}async#rt({id:e,action:t}){const a=this.#tt.get(e),r=this.#tt.getGlobalKeyState();switch(t.type){case"keyDown":await this.#nt(a,t),this.#tt.cancelList.push({id:e,action:{...t,type:"keyUp"}});break;case"keyUp":await this.#st(a,t);break;case"pause":break;case"pointerDown":await this.#ot(a,r,t),this.#tt.cancelList.push({id:e,action:{...t,type:"pointerUp"}});break;case"pointerMove":await this.#it(a,r,t);break;case"pointerUp":await this.#ct(a,r,t);break;case"scroll":await this.#dt(a,r,t)}}#ot(e,t,a){const{button:r}=a;if(e.pressed.has(r))return;e.pressed.add(r);const{x:n,y:s,subtype:o}=e,{width:i,height:c,pressure:d,twist:u,tangentialPressure:l}=a,{tiltX:h,tiltY:p}=ft(a),{modifiers:m}=t;switch(o){case"mouse":case"pen":return this.#Se.cdpTarget.cdpClient.sendCommand("Input.dispatchMouseEvent",{type:"mousePressed",x:n,y:s,modifiers:m,button:mt(r),buttons:e.buttons,clickCount:e.setClickCount(r,new it.PointerSource.ClickContext(n,s,performance.now())),pointerType:o,tangentialPressure:l,tiltX:h,tiltY:p,twist:u,force:d});case"touch":return this.#Se.cdpTarget.cdpClient.sendCommand("Input.dispatchTouchEvent",{type:"touchStart",touchPoints:[{x:n,y:s,...gt(i??1,c??1),tangentialPressure:l,tiltX:h,tiltY:p,twist:u,force:d,id:e.pointerId}],modifiers:m})}}#ct(e,t,a){const{button:r}=a;if(!e.pressed.has(r))return;e.pressed.delete(r);const{x:n,y:s,subtype:o}=e,{modifiers:i}=t;switch(o){case"mouse":case"pen":return this.#Se.cdpTarget.cdpClient.sendCommand("Input.dispatchMouseEvent",{type:"mouseReleased",x:n,y:s,modifiers:i,button:mt(r),buttons:e.buttons,clickCount:e.getClickCount(r),pointerType:o});case"touch":return this.#Se.cdpTarget.cdpClient.sendCommand("Input.dispatchTouchEvent",{type:"touchEnd",touchPoints:[{x:n,y:s,id:e.pointerId}],modifiers:i})}}async#it(e,t,a){const{x:r,y:n,subtype:s}=e,{width:o,height:i,pressure:c,twist:d,tangentialPressure:u,x:l,y:h,origin:p="viewport",duration:m=this.#et}=a,{tiltX:f,tiltY:g}=ft(a),{targetX:y,targetY:S}=await this.#ut(p,l,h,r,n);if(y<0||S<0)throw new st.MoveTargetOutOfBoundsException(`Cannot move beyond viewport (x: ${y}, y: ${S})`);let v;do{const a=m>0?(performance.now()-this.#Qe)/m:1;let l,h;if(v=a>=1,v?(l=y,h=S):(l=Math.round(a*(y-r)+r),h=Math.round(a*(S-n)+n)),e.x!==l||e.y!==h){const{modifiers:a}=t;switch(s){case"mouse":await this.#Se.cdpTarget.cdpClient.sendCommand("Input.dispatchMouseEvent",{type:"mouseMoved",x:l,y:h,modifiers:a,clickCount:0,button:mt(e.pressed.values().next().value??5),buttons:e.buttons,pointerType:s,tangentialPressure:u,tiltX:f,tiltY:g,twist:d,force:c});break;case"pen":0!==e.pressed.size&&await this.#Se.cdpTarget.cdpClient.sendCommand("Input.dispatchMouseEvent",{type:"mouseMoved",x:l,y:h,modifiers:a,clickCount:0,button:mt(e.pressed.values().next().value??5),buttons:e.buttons,pointerType:s,tangentialPressure:u,tiltX:f,tiltY:g,twist:d,force:c});break;case"touch":0!==e.pressed.size&&await this.#Se.cdpTarget.cdpClient.sendCommand("Input.dispatchTouchEvent",{type:"touchMove",touchPoints:[{x:l,y:h,...gt(o??1,i??1),tangentialPressure:u,tiltX:f,tiltY:g,twist:d,force:c,id:e.pointerId}],modifiers:a})}e.x=l,e.y=h}}while(!v)}async#ut(e,t,a,r,n){let s,o;switch(e){case"viewport":s=t,o=a;break;case"pointer":s=r+t,o=n+a;break;default:{const{x:r,y:n}=await async function(e,t){const a=await e.getOrCreateSandbox(void 0),r=await a.callFunction(ut,{type:"undefined"},[t],!1,"none",{});if("exception"===r.type)throw new st.NoSuchElementException(`Origin element ${t.sharedId} was not found`);(0,ot.assert)("array"===r.result.type),(0,ot.assert)("number"===r.result.value?.[0]?.type),(0,ot.assert)("number"===r.result.value?.[1]?.type);const{result:{value:[{value:n},{value:s}]}}=r;return{x:n,y:s}}(this.#Se,e.element);s=r+t,o=n+a;break}}return{targetX:s,targetY:o}}async#dt(e,t,a){const{deltaX:r,deltaY:n,x:s,y:o,origin:i="viewport",duration:c=this.#et}=a;if("pointer"===i)throw new st.InvalidArgumentException('"pointer" origin is invalid for scrolling.');const{targetX:d,targetY:u}=await this.#ut(i,s,o,0,0);if(d<0||u<0)throw new st.MoveTargetOutOfBoundsException(`Cannot move beyond viewport (x: ${d}, y: ${u})`);let l,h=0,p=0;do{const e=c>0?(performance.now()-this.#Qe)/c:1;let a,s;if(l=e>=1,l?(a=r-h,s=n-p):(a=Math.round(e*r-h),s=Math.round(e*n-p)),0!==a||0!==s){const{modifiers:e}=t;await this.#Se.cdpTarget.cdpClient.sendCommand("Input.dispatchMouseEvent",{type:"mouseWheel",deltaX:a,deltaY:s,x:d,y:u,modifiers:e}),h+=a,p+=s}}while(!l)}async#nt(e,t){if([...t.value].length>1)throw new st.InvalidArgumentException(`Invalid key value: ${t.value}`);const a=t.value,r=(0,ct.getNormalizedKey)(a),n=e.pressed.has(r),s=(0,ct.getKeyCode)(a),o=(0,ct.getKeyLocation)(a);switch(r){case"Alt":e.alt=!0;break;case"Shift":e.shift=!0;break;case"Control":e.ctrl=!0;break;case"Meta":e.meta=!0}e.pressed.add(r);const{modifiers:i}=e,c=ht(r,e),d=pt(s??"",e)??c;let u;if(this.#at&&e.meta)switch(s){case"KeyA":u="SelectAll";break;case"KeyC":u="Copy";break;case"KeyV":u=e.shift?"PasteAndMatchStyle":"Paste";break;case"KeyX":u="Cut";break;case"KeyZ":u=e.shift?"Redo":"Undo"}const l=[this.#Se.cdpTarget.cdpClient.sendCommand("Input.dispatchKeyEvent",{type:d?"keyDown":"rawKeyDown",windowsVirtualKeyCode:dt.KeyToKeyCode[r],key:r,code:s,text:d,unmodifiedText:c,autoRepeat:n,isSystemKey:e.alt||void 0,location:o<3?o:void 0,isKeypad:3===o,modifiers:i,commands:u?[u]:void 0})];"Escape"===r&&(e.alt||(!this.#at||e.ctrl||e.meta)&&this.#at||l.push(this.#Se.cdpTarget.cdpClient.sendCommand("Input.cancelDragging"))),await Promise.all(l)}#st(e,t){if([...t.value].length>1)throw new st.InvalidArgumentException(`Invalid key value: ${t.value}`);const a=t.value,r=(0,ct.getNormalizedKey)(a);if(!e.pressed.has(r))return;const n=(0,ct.getKeyCode)(a),s=(0,ct.getKeyLocation)(a);switch(r){case"Alt":e.alt=!1;break;case"Shift":e.shift=!1;break;case"Control":e.ctrl=!1;break;case"Meta":e.meta=!1}e.pressed.delete(r);const{modifiers:o}=e,i=ht(r,e),c=pt(n??"",e)??i;return this.#Se.cdpTarget.cdpClient.sendCommand("Input.dispatchKeyEvent",{type:"keyUp",windowsVirtualKeyCode:dt.KeyToKeyCode[r],key:r,code:n,text:c,unmodifiedText:i,location:s<3?s:void 0,isSystemKey:e.alt||void 0,isKeypad:3===s,modifiers:o})}};const ht=(e,t)=>"Enter"===e?"\r":1===[...e].length?t.shift?e.toLocaleUpperCase("en-US"):e:void 0,pt=(e,t)=>{if(t.ctrl){switch(e){case"Digit2":if(t.shift)return"\0";break;case"KeyA":return"\x01";case"KeyB":return"\x02";case"KeyC":return"\x03";case"KeyD":return"\x04";case"KeyE":return"\x05";case"KeyF":return"\x06";case"KeyG":return"\x07";case"KeyH":return"\b";case"KeyI":return"\t";case"KeyJ":return"\n";case"KeyK":return"\v";case"KeyL":return"\f";case"KeyM":return"\r";case"KeyN":return"\x0e";case"KeyO":return"\x0f";case"KeyP":return"\x10";case"KeyQ":return"\x11";case"KeyR":return"\x12";case"KeyS":return"\x13";case"KeyT":return"\x14";case"KeyU":return"\x15";case"KeyV":return"\x16";case"KeyW":return"\x17";case"KeyX":return"\x18";case"KeyY":return"\x19";case"KeyZ":return"\x1a";case"BracketLeft":return"\x1b";case"Backslash":return"\x1c";case"BracketRight":return"\x1d";case"Digit6":if(t.shift)return"\x1e";break;case"Minus":return"\x1f"}return""}if(t.alt)return""};function mt(e){switch(e){case 0:return"left";case 1:return"middle";case 2:return"right";case 3:return"back";case 4:return"forward";default:return"none"}}function ft(e){const t=e.altitudeAngle??0,a=e.azimuthAngle??0;let r=0,n=0;if(0===t&&(0!==a&&a!==2*Math.PI||(r=Math.PI/2),a===Math.PI/2&&(n=Math.PI/2),a===Math.PI&&(r=-Math.PI/2),a===3*Math.PI/2&&(n=-Math.PI/2),a>0&&aMath.PI/2&&aMath.PI&&a<3*Math.PI/2&&(r=-Math.PI/2,n=-Math.PI/2),a>3*Math.PI/2&&a<2*Math.PI&&(r=Math.PI/2,n=-Math.PI/2)),0!==t){const e=Math.tan(t);r=Math.atan(Math.cos(a)/e),n=Math.atan(Math.sin(a)/e)}const s=180/Math.PI;return{tiltX:Math.round(r*s),tiltY:Math.round(n*s)}}function gt(e,t){return{radiusX:e?e/2:.5,radiusY:t?t/2:.5}}var yt={},St={},vt={};Object.defineProperty(vt,"__esModule",{value:!0}),vt.Mutex=void 0;vt.Mutex=class{#lt=!1;#ht=[];acquire(){const e={resolved:!1};return this.#lt?new Promise((t=>{this.#ht.push((()=>t(this.#pt.bind(this,e))))})):(this.#lt=!0,Promise.resolve(this.#pt.bind(this,e)))}#pt(e){if(e.resolved)throw new Error("Cannot release more than once.");e.resolved=!0;const t=this.#ht.shift();t?t():this.#lt=!1}async run(e){const t=await this.acquire();try{return await e()}finally{t()}}},Object.defineProperty(St,"__esModule",{value:!0}),St.InputState=void 0;const wt=g,Ct=vt,bt=at;St.InputState=class{cancelList=[];#mt=new Map;#ft=new Ct.Mutex;getOrCreate(e,t,a){let r=this.#mt.get(e);if(!r){switch(t){case"none":r=new bt.NoneSource;break;case"key":r=new bt.KeySource;break;case"pointer":{let e="mouse"===a?0:2;const t=new Set;for(const[,e]of this.#mt)"pointer"===e.type&&t.add(e.pointerId);for(;t.has(e);)++e;r=new bt.PointerSource(e,a);break}case"wheel":r=new bt.WheelSource;break;default:throw new wt.InvalidArgumentException(`Expected "none", "key", "pointer", or "wheel". Found unknown source type ${t}.`)}return this.#mt.set(e,r),r}if(r.type!==t)throw new wt.InvalidArgumentException(`Input source type of ${e} is ${r.type}, but received ${t}.`);return r}get(e){const t=this.#mt.get(e);if(!t)throw new wt.UnknownErrorException("Internal error.");return t}getGlobalKeyState(){const e=new bt.KeySource;for(const[,t]of this.#mt)if("key"===t.type){for(const a of t.pressed)e.pressed.add(a);e.alt||=t.alt,e.ctrl||=t.ctrl,e.meta||=t.meta,e.shift||=t.shift}return e}get queue(){return this.#ft}},Object.defineProperty(yt,"__esModule",{value:!0}),yt.InputStateManager=void 0;const xt=J,Pt=St;class It extends WeakMap{get(e){return(0,xt.assert)(e.isTopLevelContext()),this.has(e)||this.set(e,new Pt.InputState),super.get(e)}}yt.InputStateManager=It,Object.defineProperty(et,"__esModule",{value:!0}),et.InputProcessor=void 0;const kt=g,Rt=J,Et=tt,_t=yt;et.InputProcessor=class{#i;#C;#gt=new _t.InputStateManager;constructor(e,t){this.#i=e,this.#C=t}async performActions(e){const t=this.#i.getContext(e.context),a=this.#gt.get(t.top),r=this.#yt(e,a),n=new Et.ActionDispatcher(a,t,await Et.ActionDispatcher.isMacOS(t).catch((()=>!1)));return await n.dispatchActions(r),{}}async releaseActions(e){const t=this.#i.getContext(e.context),a=t.top,r=this.#gt.get(a),n=new Et.ActionDispatcher(r,t,await Et.ActionDispatcher.isMacOS(t).catch((()=>!1)));return await n.dispatchTickActions(r.cancelList.reverse()),this.#gt.delete(a),{}}async setFiles(e){const t=this.#C.findRealm({browsingContextId:e.context});if(void 0===t)throw new kt.NoSuchFrameException(`Could not find browsingContext ${e.context}`);let a;try{const r=await t.callFunction(String((function(){return this instanceof HTMLInputElement&&"file"===this.type&&!this.disabled})),e.element,[],!1,"none",{},!1);(0,Rt.assert)("success"===r.type),(0,Rt.assert)("boolean"===r.result.type),a=r.result.value}catch{throw new kt.NoSuchElementException(`Could not find element ${e.element.sharedId}`)}if(!a)throw new kt.UnableToSetFileInputException(`Element ${e.element.sharedId} is not a mutable file input.`);const r=[];for(let a=0;ar[t]!==e))){const{objectId:a}=await t.deserializeForCdp(e.element);(0,Rt.assert)(void 0!==a),await t.cdpClient.sendCommand("DOM.setFileInputFiles",{files:e.files,objectId:a})}else await t.callFunction(String((function(){this.dispatchEvent(new Event("cancel",{bubbles:!0}))})),e.element,[],!1,"none",{},!1);return{}}#yt(e,t){const a=[];for(const r of e.actions){switch(r.type){case"pointer":{r.parameters??={pointerType:"mouse"},r.parameters.pointerType??="mouse";const e=t.getOrCreate(r.id,"pointer",r.parameters.pointerType);if(e.subtype!==r.parameters.pointerType)throw new kt.InvalidArgumentException(`Expected input source ${r.id} to be ${e.subtype}; got ${r.parameters.pointerType}.`);break}default:t.getOrCreate(r.id,r.type)}const e=r.actions.map((e=>({id:r.id,action:e})));for(let t=0;t{for(var a in t)Ot(e,a,{get:t[a],enumerable:!0})})(zt,{URLPattern:()=>xa});var Dt,Lt=(Dt=zt,((e,t,a,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of At(t))!Bt.call(e,n)&&n!==a&&Ot(e,n,{get:()=>t[n],enumerable:!(r=Mt(t,n))||r.enumerable});return e})(Ot({},"__esModule",{value:!0}),Dt)),Zt=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(e,t,a,r,n,s){this.type=e,this.name=t,this.prefix=a,this.value=r,this.suffix=n,this.modifier=s}hasCustomName(){return""!==this.name&&"number"!=typeof this.name}},Ut=/[$_\p{ID_Start}]/u,Ft=/[$_\u200C\u200D\p{ID_Continue}]/u,qt=".*";function Vt(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function $t(e,t=!1){let a=[],r=0;for(;r{if(oc("OTHER_MODIFIER")??c("ASTERISK"),u=e=>{let t=c(e);if(void 0!==t)return t;let{type:r,index:n}=a[o];throw new TypeError(`Unexpected ${r} at ${n}, expected ${e}`)},l=()=>{let e,t="";for(;e=c("CHAR")??c("ESCAPED_CHAR");)t+=e;return t},h=t.encodePart||(e=>e),p="",m=e=>{p+=e},f=()=>{p.length&&(n.push(new Zt(3,"","",h(p),"",3)),p="")},g=(e,t,a,o,c)=>{let d,u=3;switch(c){case"?":u=1;break;case"*":u=0;break;case"+":u=2}if(!t&&!a&&3===u)return void m(e);if(f(),!t&&!a){if(!e)return;return void n.push(new Zt(3,"","",h(e),"",u))}d=a?"*"===a?qt:a:r;let l,p=2;if(d===r?(p=1,d=""):d===qt&&(p=0,d=""),t?l=t:a&&(l=s++),i.has(l))throw new TypeError(`Duplicate name '${l}'.`);i.add(l),n.push(new Zt(p,l,h(e),d,h(o),u))};for(;o-1)}return o||(r+=`(?=${s}|${n})`),new RegExp(r,Wt(a))}var Xt={delimiter:"",prefixes:"",sensitive:!0,strict:!0},Yt={delimiter:".",prefixes:"",sensitive:!0,strict:!0},Qt={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function ea(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function ta(e){return!(!e||e.length<2)&&("["===e[0]||("\\"===e[0]||"{"===e[0])&&"["===e[1])}var aa=["ftp","file","http","https","ws","wss"];function ra(e){if(!e)return!0;for(let t of aa)if(e.test(t))return!0;return!1}function na(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function sa(e){if(""===e)return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function oa(e){if(""===e)return e;let t=new URL("https://example.com");return t.username=e,t.username}function ia(e){if(""===e)return e;let t=new URL("https://example.com");return t.password=e,t.password}function ca(e){if(""===e)return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw new TypeError(`Invalid hostname '${e}'`);let t=new URL("https://example.com");return t.hostname=e,t.hostname}function da(e){if(""===e)return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function ua(e){if(""===e||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function la(e){if(""===e)return e;let t=new URL("https://example.com");return t.pathname="/"!==e[0]?"/-"+e:e,"/"!==e[0]?t.pathname.substring(2,t.pathname.length):t.pathname}function ha(e){return""===e?e:new URL(`data:${e}`).pathname}function pa(e){if(""===e)return e;let t=new URL("https://example.com");return t.search=e,t.search.substring(1,t.search.length)}function ma(e){if(""===e)return e;let t=new URL("https://example.com");return t.hash=e,t.hash.substring(1,t.hash.length)}var fa=class{#St;#vt=[];#wt={};#Ct=0;#bt=1;#xt=0;#Pt=0;#It=0;#kt=0;#Rt=!1;constructor(e){this.#St=e}get result(){return this.#wt}parse(){for(this.#vt=$t(this.#St,!0);this.#Ct0){if(!this.#Ot())continue;this.#It-=1}if(this.#Mt())this.#It+=1;else switch(this.#Pt){case 0:this.#At()&&this.#jt(1);break;case 1:if(this.#At()){this.#Bt();let e=7,t=1;this.#zt()?(e=2,t=3):this.#Rt&&(e=2),this.#Tt(e,t)}break;case 2:this.#Dt()?this.#jt(3):(this.#Je()||this.#Nt()||this.#_t())&&this.#jt(5);break;case 3:this.#Lt()?this.#Tt(4,1):this.#Dt()&&this.#Tt(5,1);break;case 4:this.#Dt()&&this.#Tt(5,1);break;case 5:this.#Ge()?this.#kt+=1:this.#Zt()&&(this.#kt-=1),this.#Ut()&&!this.#kt?this.#Tt(6,1):this.#Je()?this.#Tt(7,0):this.#Nt()?this.#Tt(8,1):this.#_t()&&this.#Tt(9,1);break;case 6:this.#Je()?this.#Tt(7,0):this.#Nt()?this.#Tt(8,1):this.#_t()&&this.#Tt(9,1);break;case 7:this.#Nt()?this.#Tt(8,1):this.#_t()&&this.#Tt(9,1);break;case 8:this.#_t()&&this.#Tt(9,1)}}void 0!==this.#wt.hostname&&void 0===this.#wt.port&&(this.#wt.port="")}#Tt(e,t){switch(this.#Pt){case 0:case 2:break;case 1:this.#wt.protocol=this.#Ft();break;case 3:this.#wt.username=this.#Ft();break;case 4:this.#wt.password=this.#Ft();break;case 5:this.#wt.hostname=this.#Ft();break;case 6:this.#wt.port=this.#Ft();break;case 7:this.#wt.pathname=this.#Ft();break;case 8:this.#wt.search=this.#Ft();break;case 9:this.#wt.hash=this.#Ft()}0!==this.#Pt&&10!==e&&([1,2,3,4].includes(this.#Pt)&&[6,7,8,9].includes(e)&&(this.#wt.hostname??=""),[1,2,3,4,5,6].includes(this.#Pt)&&[8,9].includes(e)&&(this.#wt.pathname??=this.#Rt?"/":""),[1,2,3,4,5,6,7].includes(this.#Pt)&&9===e&&(this.#wt.search??="")),this.#qt(e,t)}#qt(e,t){this.#Pt=e,this.#xt=this.#Ct+t,this.#Ct+=t,this.#bt=0}#Et(){this.#Ct=this.#xt,this.#bt=0}#jt(e){this.#Et(),this.#Pt=e}#Vt(e){return e<0&&(e=this.#vt.length-e),e=0&&(e.pathname=va(r.pathname.substring(0,t+1),a)+e.pathname)}e.pathname=function(e,t,a){if(a||""===e)return e;if(t&&!aa.includes(t))return new URL(`${t}:${e}`).pathname;let r="/"==e[0];return e=new URL(r?e:"/-"+e,"https://example.com").pathname,r||(e=e.substring(2,e.length)),e}(e.pathname,e.protocol,a)}return"string"==typeof t.search&&(e.search=function(e,t){if(e=ea(e,"?"),t||""===e)return e;let a=new URL("https://example.com");return a.search=e,a.search?a.search.substring(1,a.search.length):""}(t.search,a)),"string"==typeof t.hash&&(e.hash=function(e,t){if(e=ea(e,"#"),t||""===e)return e;let a=new URL("https://example.com");return a.hash=e,a.hash?a.hash.substring(1,a.hash.length):""}(t.hash,a)),e}function Ca(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function ba(e,t){t.delimiter??="/#?",t.prefixes??="./",t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith="";let a=`[^${function(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}(t.delimiter)}]+?`,r=/[$_\u200C\u200D\p{ID_Continue}]/u,n="";for(let s=0;s0?e[s-1]:null,u=s0?u.value[0]:"";c=r.test(e)}else c=!u.hasCustomName();if(!c&&!o.prefix.length&&d&&3===d.type){let e=d.value[d.value.length-1];c=t.prefixes.includes(e)}c&&(n+="{"),n+=Ca(o.prefix),i&&(n+=`:${o.name}`),2===o.type?n+=`(${o.value})`:1===o.type?i||(n+=`(${a})`):0===o.type&&(i||d&&3!==d.type&&3===d.modifier&&!c&&""===o.prefix?n+="(.*)":n+="*"),1===o.type&&i&&o.suffix.length&&r.test(o.suffix[0])&&(n+="\\"),n+=Ca(o.suffix),c&&(n+="}"),3!==o.modifier&&(n+=Jt(o.modifier))}return n}var xa=class{#St;#vt={};#wt={};#Ct={};#bt={};#xt=!1;constructor(e={},t,a){try{let r;if("string"==typeof t?r=t:a=t,"string"==typeof e){let t=new fa(e);if(t.parse(),e=t.result,void 0===r&&"string"!=typeof e.protocol)throw new TypeError("A base URL must be provided for a relative constructor string.");e.baseURL=r}else{if(!e||"object"!=typeof e)throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(r)throw new TypeError("parameter 1 is not of type 'string'.")}typeof a>"u"&&(a={ignoreCase:!1});let n,s={ignoreCase:!0===a.ignoreCase},o={pathname:ya,protocol:ya,username:ya,password:ya,hostname:ya,port:ya,search:ya,hash:ya};for(n of(this.#St=wa(o,e,!0),na(this.#St.protocol)===this.#St.port&&(this.#St.port=""),ga)){if(!(n in this.#St))continue;let e={},t=this.#St[n];switch(this.#wt[n]=[],n){case"protocol":Object.assign(e,Xt),e.encodePart=sa;break;case"username":Object.assign(e,Xt),e.encodePart=oa;break;case"password":Object.assign(e,Xt),e.encodePart=ia;break;case"hostname":Object.assign(e,Yt),ta(t)?e.encodePart=da:e.encodePart=ca;break;case"port":Object.assign(e,Xt),e.encodePart=ua;break;case"pathname":ra(this.#vt.protocol)?(Object.assign(e,Qt,s),e.encodePart=la):(Object.assign(e,Xt,s),e.encodePart=ha);break;case"search":Object.assign(e,Xt,s),e.encodePart=pa;break;case"hash":Object.assign(e,Xt,s),e.encodePart=ma}try{this.#bt[n]=Kt(t,e),this.#vt[n]=Gt(this.#bt[n],this.#wt[n],e),this.#Ct[n]=ba(this.#bt[n],e),this.#xt=this.#xt||this.#bt[n].some((e=>2===e.type))}catch{throw new TypeError(`invalid ${n} pattern '${this.#St[n]}'.`)}}}catch(e){throw new TypeError(`Failed to construct 'URLPattern': ${e.message}`)}}test(e={},t){let a,r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof e&&t)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof e>"u")return!1;try{r=wa(r,"object"==typeof e?e:Sa(e,t),!1)}catch{return!1}for(a of ga)if(!this.#vt[a].exec(r[a]))return!1;return!0}exec(e={},t){let a={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof e&&t)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof e>"u")return;try{a=wa(a,"object"==typeof e?e:Sa(e,t),!1)}catch{return null}let r,n={};for(r of(n.inputs=t?[e,t]:[e],ga)){let e=this.#vt[r].exec(a[r]);if(!e)return null;let t={};for(let[a,n]of this.#wt[r].entries())if("string"==typeof n||"number"==typeof n){let r=e[a+1];t[n]=r}n[r]={input:a[r]??"",groups:t}}return n}static compareComponent(e,t,a){let r=(e,t)=>{for(let a of["type","modifier","prefix","value","suffix"]){if(e[a]{let a=0;for(;a0}getFetchEnableParams(){const e=[];for(const t of this.#Ht.values())for(const a of t.phases){const r=_a.requestStageFromPhase(a);if(0!==t.urlPatterns.length)for(const a of t.urlPatterns){const t=_a.cdpFromSpecUrlPattern(a);e.push({urlPattern:t,requestStage:r})}else e.push({urlPattern:"*",requestStage:r})}return{patterns:e,handleAuthRequests:[...this.#Ht.values()].some((e=>e.phases.includes("authRequired")))}}getRequest(e){return this.#Kt.get(e)}addRequest(e){this.#Kt.set(e.requestId,e)}deleteRequest(e){const t=this.#Kt.get(e);t&&(t.dispose(),this.#Kt.delete(e))}hasNetworkRequests(){return this.#Kt.size>0}hasBlockedRequests(){return this.#Wt.size>0}static cdpFromSpecUrlPattern(e){switch(e.type){case"string":return e.pattern;case"pattern":return _a.buildUrlPatternString(e)}}static buildUrlPatternString({protocol:e,hostname:t,port:a,pathname:r,search:n}){if(!(e||t||a||r||n))return"*";let s="";return e&&(s+=e,e.endsWith(":")||(s+=":"),_a.isSpecialScheme(e)&&(s+="//")),t&&(s+=t),a&&(s+=`:${a}`),r&&(r.startsWith("/")||(s+="/"),s+=r),n&&(n.startsWith("?")||(s+="?"),s+=n),s}static requestStageFromPhase(e){switch(e){case"beforeRequestSent":return"Request";case"responseStarted":case"authRequired":return"Response"}}static isSpecialScheme(e){return["ftp","file","http","https","ws","wss"].includes(e.replace(/:$/,""))}addBlockedRequest(e,t){this.#Wt.set(e,t)}removeBlockedRequest(e){this.#Wt.delete(e)}getBlockedRequest(e){return this.#Wt.get(e)}getNetworkIntercepts(e,t){const a=this.#Kt.get(e);if(!a)return[];const r=[];for(const[e,{phases:n,urlPatterns:s}]of this.#Ht.entries())t&&n.includes(t)&&(0===s.length||s.some((e=>_a.matchUrlPattern(e,a.url))))&&r.push(e);return r}static matchUrlPattern(e,t){switch(e.type){case"string":return e.pattern===t;case"pattern":return null!==new Ra.URLPattern({protocol:e.protocol,hostname:e.hostname,port:e.port,pathname:e.pathname,search:e.search}).exec(t)}}}Nt.NetworkStorage=_a,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.NetworkProcessor=void 0;const Ta=g,Na=J,ja=Nt,Oa=Me;class Ma{#i;#ie;constructor(e,t){this.#i=e,this.#ie=t}async addIntercept(e){e.phases.includes("authRequired")&&!e.phases.includes("beforeRequestSent")&&e.phases.unshift("beforeRequestSent");const t=e.urlPatterns??[],a=Ma.parseUrlPatterns(t),r=this.#ie.addIntercept({urlPatterns:a,phases:e.phases});return await this.#Jt(),{intercept:r}}async continueRequest(e){const t=e.request,{request:a,phase:r}=this.#Gt(t);if("beforeRequestSent"!==r)throw new Ta.InvalidArgumentException(`Blocked request for network id '${t}' is not in 'BeforeRequestSent' phase`);void 0!==e.url&&Ma.parseUrlString(e.url);const{url:n,method:s,headers:o}=e,i=(0,Oa.cdpFetchHeadersFromBidiNetworkHeaders)(o),c=this.#Xt(t);return await c.continueRequest(a,n,s,i),this.#ie.removeBlockedRequest(t),{}}async continueResponse(e){const t=e.request,{request:a,phase:r}=this.#Gt(t);if("beforeRequestSent"===r)throw new Ta.InvalidArgumentException(`Blocked request for network id '${t}' is in 'BeforeRequestSent' phase`);const{statusCode:n,reasonPhrase:s,headers:o}=e,i=(0,Oa.cdpFetchHeadersFromBidiNetworkHeaders)(o),c=this.#Xt(t);return await c.continueResponse(a,n,s,i),this.#ie.removeBlockedRequest(t),{}}async continueWithAuth(e){const t=e.request,{request:a,phase:r}=this.#Gt(t);if("authRequired"!==r)throw new Ta.InvalidArgumentException(`Blocked request for network id '${t}' is not in 'AuthRequired' phase`);const n=this.#Xt(t);let s,o;if("provideCredentials"===e.action){const{credentials:t}=e;s=t.username,o=t.password,(0,Na.assert)("password"===t.type,`Credentials type ${t.type} must be 'password'`)}const i=(0,Oa.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction)(e.action);return await n.continueWithAuth(a,i,s,o),{}}async failRequest({request:e}){const{request:t,phase:a}=this.#Gt(e);if("authRequired"===a)throw new Ta.InvalidArgumentException(`Blocked request for network id '${e}' is in 'AuthRequired' phase`);const r=this.#Xt(e);return await r.failRequest(t,"Failed"),this.#ie.removeBlockedRequest(e),{}}async provideResponse(e){const{statusCode:t,reasonPhrase:a,headers:r,body:n,request:s}=e,{request:o}=this.#Gt(s),i=(0,Oa.cdpFetchHeadersFromBidiNetworkHeaders)(r),c=this.#Xt(s);return await c.provideResponse(o,t??c.statusCode,a,i,n?.value),this.#ie.removeBlockedRequest(s),{}}async removeIntercept(e){return this.#ie.removeIntercept(e.intercept),await this.#Jt(),{}}async#Yt(){await Promise.all(this.#i.getAllContexts().map((async e=>{await e.cdpTarget.fetchEnable()})))}async#Qt(){await Promise.all(this.#i.getAllContexts().map((async e=>{await e.cdpTarget.fetchDisable()})))}async#Jt(){this.#ie.hasIntercepts()||this.#ie.hasBlockedRequests()||this.#ie.hasNetworkRequests()?await this.#Yt():await this.#Qt()}#Gt(e){const t=this.#ie.getBlockedRequest(e);if(!t)throw new Ta.NoSuchRequestException(`No blocked request found for network id '${e}'`);return t}#Xt(e){const t=this.#ie.getRequest(e);if(!t)throw new Ta.NoSuchRequestException(`Network request with ID ${e} doesn't exist`);return t}static parseUrlString(e){try{return new URL(e)}catch(t){throw new Ta.InvalidArgumentException(`Invalid URL '${e}': ${t}`)}}static parseUrlPatterns(e){return e.map((e=>{switch(e.type){case"string":return Ma.parseUrlString(e.pattern),e;case"pattern":if(void 0===e.protocol&&void 0===e.hostname&&void 0===e.port&&void 0===e.pathname&&void 0===e.search)return e;if(""===e.protocol)throw new Ta.InvalidArgumentException("URL pattern must specify a protocol");if(""===e.hostname)throw new Ta.InvalidArgumentException("URL pattern must specify a hostname");if((e.hostname?.length??0)>0){if(e.protocol?.match(/^file/i))throw new Ta.InvalidArgumentException("URL pattern protocol cannot be 'file'");if(e.hostname?.includes(":"))throw new Ta.InvalidArgumentException("URL pattern hostname must not contain a colon")}if(""===e.port)throw new Ta.InvalidArgumentException("URL pattern must specify a port");try{new URL(ja.NetworkStorage.buildUrlPatternString(e))}catch(e){throw new Ta.InvalidArgumentException(`${e}`)}return e}}))}}Tt.NetworkProcessor=Ma;var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.PermissionsProcessor=void 0;const Ba=g;Aa.PermissionsProcessor=class{#o;constructor(e){this.#o=e}async setPermissions(e){try{await this.#o.sendCommand("Browser.setPermission",{origin:e.origin,permission:{name:e.descriptor.name},setting:e.state})}catch(e){if("Permission can't be granted to opaque origins."===e.message)return{};throw new Ba.InvalidArgumentException(e.message)}return{}}};var za={};Object.defineProperty(za,"__esModule",{value:!0}),za.PreloadScriptStorage=void 0;za.PreloadScriptStorage=class{#ea=new Set;find(e){return e?[...this.#ea].filter((t=>(void 0===e.id||e.id===t.id)&&(!(void 0!==e.targetId&&!t.targetIds.has(e.targetId))&&(void 0===e.global||!(e.global&&void 0!==t.contexts||!e.global&&void 0===t.contexts))))):[...this.#ea]}add(e){this.#ea.add(e)}remove(e){for(const t of this.find(e))this.#ea.delete(t)}};var Da={},La={};Object.defineProperty(La,"__esModule",{value:!0}),La.PreloadScript=void 0;const Za=A,Ua=B;La.PreloadScript=class{#u=(0,Za.uuidv4)();#ta=[];#aa;#ra=new Set;#na;#sa;#oa;get id(){return this.#u}get targetIds(){return this.#ra}constructor(e,t){this.#na=e.arguments?.map((e=>new Ua.ChannelProxy(e.value,t)))??[],this.#aa=e.functionDeclaration,this.#sa=e.sandbox,this.#oa=e.contexts}get channels(){return this.#na}get contexts(){return this.#oa}#ia(){const e=`[${this.channels.map((e=>e.getEvalInWindowStr())).join(", ")}]`;return`(()=>{(${this.#aa})(...${e})})()`}async initInTargets(e,t){await Promise.all(Array.from(e).map((e=>this.initInTarget(e,t))))}async initInTarget(e,t){const a=await e.cdpClient.sendCommand("Page.addScriptToEvaluateOnNewDocument",{source:this.#ia(),worldName:this.#sa,runImmediately:t});this.#ta.push({target:e,preloadScriptId:a.identifier}),this.#ra.add(e.id)}async remove(){for(const e of this.#ta){const t=e.target,a=e.preloadScriptId;await t.cdpClient.sendCommand("Page.removeScriptToEvaluateOnNewDocument",{identifier:a})}}dispose(e){this.#ta=this.#ta.filter((t=>t.target?.id!==e)),this.#ra.delete(e)}},Object.defineProperty(Da,"__esModule",{value:!0}),Da.ScriptProcessor=void 0;const Fa=g,qa=La;Da.ScriptProcessor=class{#i;#C;#_e;#t;constructor(e,t,a,r){this.#i=e,this.#C=t,this.#_e=a,this.#t=r}async addPreloadScript(e){const t=new Set;if(e.contexts){if(0===e.contexts.length)throw new Fa.InvalidArgumentException("Contexts list is empty.");for(const a of e.contexts){const e=this.#i.getContext(a);if(!e.isTopLevelContext())throw new Fa.InvalidArgumentException(`Non top-level context '${a}' given.`);t.add(e)}}const a=new qa.PreloadScript(e,this.#t);this.#_e.add(a);const r=0===t.size?new Set(this.#i.getTopLevelContexts().map((e=>e.cdpTarget))):new Set([...t.values()].map((e=>e.cdpTarget)));return await a.initInTargets(r,!1),{script:a.id}}async removePreloadScript(e){const t=e.script,a=this.#_e.find({id:t});if(0===a.length)throw new Fa.NoSuchScriptException(`No preload script with BiDi ID '${t}'`);return await Promise.all(a.map((e=>e.remove()))),this.#_e.remove({id:t}),{}}async callFunction(e){const t=await this.#ca(e.target);return await t.callFunction(e.functionDeclaration,e.this??{type:"undefined"},e.arguments??[],e.awaitPromise,e.resultOwnership??"none",e.serializationOptions??{},e.userActivation??!1)}async evaluate(e){const t=await this.#ca(e.target);return await t.evaluate(e.expression,e.awaitPromise,e.resultOwnership??"none",e.serializationOptions??{},e.userActivation??!1)}async disown(e){const t=await this.#ca(e.target);return await Promise.all(e.handles.map((async e=>await t.disown(e)))),{}}getRealms(e){void 0!==e.context&&this.#i.getContext(e.context);return{realms:this.#C.findRealms({browsingContextId:e.context,type:e.type}).map((e=>e.realmInfo))}}async#ca(e){if("realm"in e)return this.#C.getRealm({realmId:e.realm});const t=this.#i.getContext(e.context);return await t.getOrCreateSandbox(e.sandbox)}};var Va={};Object.defineProperty(Va,"__esModule",{value:!0}),Va.SessionProcessor=void 0;Va.SessionProcessor=class{#y;constructor(e){this.#y=e}status(){return{ready:!1,message:"already connected"}}subscribe(e,t=null){return this.#y.subscribe(e.events,e.contexts??[null],t),{}}unsubscribe(e,t=null){return this.#y.unsubscribe(e.events,e.contexts??[null],t),{}}};var $a={};Object.defineProperty($a,"__esModule",{value:!0}),$a.StorageProcessor=void 0;const Ka=g,Ha=J,Wa=l,Ja=Tt,Ga=Me;$a.StorageProcessor=class{#o;#i;#t;constructor(e,t,a){this.#i=t,this.#o=e,this.#t=a}async getCookies(e){const t=this.#da(e.partition);return{cookies:(await this.#o.sendCommand("Storage.getCookies",{browserContextId:t.userContext})).cookies.filter((e=>void 0===t.sourceOrigin||e.partitionKey===t.sourceOrigin)).map((e=>(0,Ga.cdpToBiDiCookie)(e))).filter((t=>this.#ua(t,e.filter))),partitionKey:t}}async setCookie(e){const t=this.#da(e.partition),a=(0,Ga.bidiToCdpCookie)(e,t);try{await this.#o.sendCommand("Storage.setCookies",{cookies:[a],browserContextId:t.userContext})}catch(e){throw this.#t?.(Wa.LogType.debugError,e),new Ka.UnableToSetCookieException(e.toString())}return{partitionKey:t}}#la(e){const t=e.context,a=this.#i.getContext(t);return{userContext:"default"===a.userContext?void 0:a.userContext}}#ha(e){const t=new Map;let a=e.sourceOrigin;if(void 0!==a){const e=Ja.NetworkProcessor.parseUrlString(a);a="null"===e.origin?e.origin:`${e.protocol}//${e.hostname}`}const r="default"===e.userContext?void 0:e.userContext;for(const[a,r]of Object.entries(e))void 0===a||void 0===r||["type","sourceOrigin","userContext"].includes(a)||t.set(a,r);return t.size>0&&this.#t?.(Wa.LogType.debugInfo,`Unsupported partition keys: ${JSON.stringify(Object.fromEntries(t))}`),{...void 0===a?{}:{sourceOrigin:a},...void 0===r?{}:{userContext:r}}}#da(e){return void 0===e?{}:"context"===e.type?this.#la(e):((0,Ha.assert)("storageKey"===e.type,"Unknown partition type"),this.#ha(e))}#ua(e,t){return void 0===t||!(void 0!==t.domain&&t.domain!==e.domain||void 0!==t.name&&t.name!==e.name||void 0!==t.value&&(t.value.type!==e.value.type||t.value.value!==e.value.value)||void 0!==t.path&&t.path!==e.path||void 0!==t.size&&t.size!==e.size||void 0!==t.httpOnly&&t.httpOnly!==e.httpOnly||void 0!==t.secure&&t.secure!==e.secure||void 0!==t.sameSite&&t.sameSite!==e.sameSite||void 0!==t.expiry&&t.expiry!==e.expiry)}};var Xa={};Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.OutgoingMessage=void 0;class Ya{#pa;#ma;constructor(e,t=null){this.#pa=e,this.#ma=t}static createFromPromise(e,t){return e.then((e=>"success"===e.kind?{kind:"success",value:new Ya(e.value,t)}:e))}static createResolved(e,t){return Promise.resolve({kind:"success",value:new Ya(e,t)})}get message(){return this.#pa}get channel(){return this.#ma}}Xa.OutgoingMessage=Ya,Object.defineProperty(f,"__esModule",{value:!0}),f.CommandProcessor=void 0;const Qa=g,er=s,tr=l,ar=E,rr=_,nr=N,sr=j,or=et,ir=Tt,cr=Nt,dr=Aa,ur=za,lr=Da,hr=Va,pr=$a,mr=Xa;class fr extends er.EventEmitter{#fa;#ga;#ya;#Sa;#va;#wa;#Ca;#ba;#xa;#Pa;#t;constructor(e,t,a,r,n,s,o,i,c,d=new ar.BidiNoOpParser,u){super(),this.#Pa=d,this.#t=u;const l=new cr.NetworkStorage,h=new ur.PreloadScriptStorage;this.#fa=new rr.BrowserProcessor(t),this.#ga=new sr.BrowsingContextProcessor(e,t,r,a,s,o,l,h,i,c,n,u),this.#ya=new nr.CdpProcessor(s,e,t),this.#Sa=new or.InputProcessor(s,o),this.#va=new ir.NetworkProcessor(s,l),this.#wa=new dr.PermissionsProcessor(t),this.#Ca=new lr.ScriptProcessor(s,o,h,u),this.#ba=new hr.SessionProcessor(a),this.#xa=new pr.StorageProcessor(t,s,u)}async#Ia(e){switch(e.method){case"session.end":case"session.new":break;case"browser.close":return this.#fa.close();case"browser.createUserContext":return await this.#fa.createUserContext();case"browser.getUserContexts":return await this.#fa.getUserContexts();case"browser.removeUserContext":return await this.#fa.removeUserContext(e.params.userContext);case"browsingContext.activate":return await this.#ga.activate(this.#Pa.parseActivateParams(e.params));case"browsingContext.captureScreenshot":return await this.#ga.captureScreenshot(this.#Pa.parseCaptureScreenshotParams(e.params));case"browsingContext.close":return await this.#ga.close(this.#Pa.parseCloseParams(e.params));case"browsingContext.create":return await this.#ga.create(this.#Pa.parseCreateParams(e.params));case"browsingContext.getTree":return this.#ga.getTree(this.#Pa.parseGetTreeParams(e.params));case"browsingContext.handleUserPrompt":return await this.#ga.handleUserPrompt(this.#Pa.parseHandleUserPromptParams(e.params));case"browsingContext.locateNodes":throw new Qa.UnsupportedOperationException(`Command '${e.method}' not yet implemented.`);case"browsingContext.navigate":return await this.#ga.navigate(this.#Pa.parseNavigateParams(e.params));case"browsingContext.print":return await this.#ga.print(this.#Pa.parsePrintParams(e.params));case"browsingContext.reload":return await this.#ga.reload(this.#Pa.parseReloadParams(e.params));case"browsingContext.setViewport":return await this.#ga.setViewport(this.#Pa.parseSetViewportParams(e.params));case"browsingContext.traverseHistory":return await this.#ga.traverseHistory(this.#Pa.parseTraverseHistoryParams(e.params));case"cdp.getSession":return this.#ya.getSession(this.#Pa.parseGetSessionParams(e.params));case"cdp.sendCommand":return await this.#ya.sendCommand(this.#Pa.parseSendCommandParams(e.params));case"input.performActions":return await this.#Sa.performActions(this.#Pa.parsePerformActionsParams(e.params));case"input.releaseActions":return await this.#Sa.releaseActions(this.#Pa.parseReleaseActionsParams(e.params));case"input.setFiles":return await this.#Sa.setFiles(this.#Pa.parseSetFilesParams(e.params));case"network.addIntercept":return await this.#va.addIntercept(this.#Pa.parseAddInterceptParams(e.params));case"network.continueRequest":return await this.#va.continueRequest(this.#Pa.parseContinueRequestParams(e.params));case"network.continueResponse":return await this.#va.continueResponse(this.#Pa.parseContinueResponseParams(e.params));case"network.continueWithAuth":return await this.#va.continueWithAuth(this.#Pa.parseContinueWithAuthParams(e.params));case"network.failRequest":return await this.#va.failRequest(this.#Pa.parseFailRequestParams(e.params));case"network.provideResponse":return await this.#va.provideResponse(this.#Pa.parseProvideResponseParams(e.params));case"network.removeIntercept":return await this.#va.removeIntercept(this.#Pa.parseRemoveInterceptParams(e.params));case"permissions.setPermission":return await this.#wa.setPermissions(this.#Pa.parseSetPermissionsParams(e.params));case"script.addPreloadScript":return await this.#Ca.addPreloadScript(this.#Pa.parseAddPreloadScriptParams(e.params));case"script.callFunction":return await this.#Ca.callFunction(this.#Pa.parseCallFunctionParams(e.params));case"script.disown":return await this.#Ca.disown(this.#Pa.parseDisownParams(e.params));case"script.evaluate":return await this.#Ca.evaluate(this.#Pa.parseEvaluateParams(e.params));case"script.getRealms":return this.#Ca.getRealms(this.#Pa.parseGetRealmsParams(e.params));case"script.removePreloadScript":return await this.#Ca.removePreloadScript(this.#Pa.parseRemovePreloadScriptParams(e.params));case"session.status":return this.#ba.status();case"session.subscribe":return this.#ba.subscribe(this.#Pa.parseSubscribeParams(e.params),e.channel);case"session.unsubscribe":return this.#ba.unsubscribe(this.#Pa.parseSubscribeParams(e.params),e.channel);case"storage.deleteCookies":throw new Qa.UnsupportedOperationException(`${e.method} is not supported yet`);case"storage.getCookies":return await this.#xa.getCookies(this.#Pa.parseGetCookiesParams(e.params));case"storage.setCookie":return await this.#xa.setCookie(this.#Pa.parseSetCookieParams(e.params))}throw new Qa.UnknownCommandException(`Unknown command '${e.method}'.`)}async processCommand(e){try{const t=await this.#Ia(e),a={type:"success",id:e.id,result:t};this.emit("response",{message:mr.OutgoingMessage.createResolved(a,e.channel),event:e.method})}catch(t){if(t instanceof Qa.Exception)this.emit("response",{message:mr.OutgoingMessage.createResolved(t.toErrorResponse(e.id),e.channel),event:e.method});else{const a=t;this.#t?.(tr.LogType.bidi,a),this.emit("response",{message:mr.OutgoingMessage.createResolved(new Qa.UnknownErrorException(a.message,a.stack).toErrorResponse(e.id),e.channel),event:e.method})}}}}f.CommandProcessor=fr;var gr={};Object.defineProperty(gr,"__esModule",{value:!0}),gr.BrowsingContextStorage=void 0;const yr=g;gr.BrowsingContextStorage=class{#oa=new Map;getTopLevelContexts(){return this.getAllContexts().filter((e=>e.isTopLevelContext()))}getAllContexts(){return Array.from(this.#oa.values())}deleteContextById(e){this.#oa.delete(e)}deleteContext(e){this.#oa.delete(e.id)}addContext(e){this.#oa.set(e.id,e)}hasContext(e){return this.#oa.has(e)}findContext(e){return this.#oa.get(e)}findTopLevelContextId(e){if(null===e)return null;const t=this.findContext(e),a=t?.parentId??null;return null===a?e:this.findTopLevelContextId(a)}findContextBySession(e){for(const t of this.#oa.values())if(t.cdpTarget.cdpSessionId===e)return t}getContext(e){const t=this.findContext(e);if(void 0===t)throw new yr.NoSuchFrameException(`Context ${e} not found`);return t}};var Sr={};Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.RealmStorage=void 0;const vr=g,wr=Q;Sr.RealmStorage=class{#ka=new Map;#Ra=new Map;get knownHandlesToRealmMap(){return this.#ka}addRealm(e){this.#Ra.set(e.realmId,e)}findRealms(e){return Array.from(this.#Ra.values()).filter((t=>(void 0===e.realmId||e.realmId===t.realmId)&&(!(void 0!==e.browsingContextId&&!t.associatedBrowsingContexts.map((e=>e.id)).includes(e.browsingContextId))&&((void 0===e.sandbox||t instanceof wr.WindowRealm&&e.sandbox===t.sandbox)&&((void 0===e.executionContextId||e.executionContextId===t.executionContextId)&&((void 0===e.origin||e.origin===t.origin)&&((void 0===e.type||e.type===t.realmType)&&(void 0===e.cdpSessionId||e.cdpSessionId===t.cdpClient.sessionId))))))))}findRealm(e){const t=this.findRealms(e);if(1===t.length)return t[0]}getRealm(e){const t=this.findRealm(e);if(void 0===t)throw new vr.NoSuchFrameException(`Realm ${JSON.stringify(e)} not found`);return t}deleteRealms(e){this.findRealms(e).map((e=>{e.dispose(),this.#Ra.delete(e.realmId),Array.from(this.knownHandlesToRealmMap.entries()).filter((([,t])=>t===e.realmId)).map((([e])=>this.knownHandlesToRealmMap.delete(e)))}))}};var Cr={},br={};Object.defineProperty(br,"__esModule",{value:!0}),br.Buffer=void 0;br.Buffer=class{#Ea;#_a=[];#Ta;constructor(e,t){this.#Ea=e,this.#Ta=t}get(){return this.#_a}add(e){for(this.#_a.push(e);this.#_a.length>this.#Ea;){const e=this.#_a.shift();void 0!==e&&this.#Ta?.(e)}}};var xr={};Object.defineProperty(xr,"__esModule",{value:!0}),xr.DefaultMap=void 0;class Pr extends Map{#Na;constructor(e,t){super(t),this.#Na=e}get(e){return this.has(e)||this.set(e,this.#Na(e)),super.get(e)}}xr.DefaultMap=Pr;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.IdWrapper=void 0;class kr{static#ja=0;#u;constructor(){this.#u=++kr.#ja}get id(){return this.#u}}Ir.IdWrapper=kr;var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.assertSupportedEvent=Rr.isCdpEvent=void 0;const Er=g;function _r(e){return e.split(".").at(0)?.startsWith(Er.ChromiumBidi.BiDiModule.Cdp)??!1}Rr.isCdpEvent=_r,Rr.assertSupportedEvent=function(e){if(!Er.ChromiumBidi.EVENT_NAMES.has(e)&&!_r(e))throw new Er.InvalidArgumentException(`Unknown event: ${e}`)};var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.SubscriptionManager=Tr.unrollEvents=Tr.cartesianProduct=void 0;const Nr=g,jr=Rr;function Or(...e){return e.reduce(((e,t)=>e.flatMap((e=>t.map((t=>[e,t].flat()))))))}function Mr(e){const t=new Set;function a(e){for(const a of e)t.add(a)}for(const r of e)switch(r){case Nr.ChromiumBidi.BiDiModule.BrowsingContext:a(Object.values(Nr.ChromiumBidi.BrowsingContext.EventNames));break;case Nr.ChromiumBidi.BiDiModule.Log:a(Object.values(Nr.ChromiumBidi.Log.EventNames));break;case Nr.ChromiumBidi.BiDiModule.Network:a(Object.values(Nr.ChromiumBidi.Network.EventNames));break;case Nr.ChromiumBidi.BiDiModule.Script:a(Object.values(Nr.ChromiumBidi.Script.EventNames));break;default:t.add(r)}return[...t.values()]}Tr.cartesianProduct=Or,Tr.unrollEvents=Mr;Tr.SubscriptionManager=class{#Oa=0;#Ma=new Map;#i;constructor(e){this.#i=e}getChannelsSubscribedToEvent(e,t){return Array.from(this.#Ma.keys()).map((a=>({priority:this.#Aa(e,t,a),channel:a}))).filter((({priority:e})=>null!==e)).sort(((e,t)=>e.priority-t.priority)).map((({channel:e})=>e))}#Aa(e,t,a){const r=this.#Ma.get(a);if(void 0===r)return null;const n=this.#i.findTopLevelContextId(t),s=[...new Set([null,n])].map((t=>{const a=r.get(t)?.get(e);if((0,jr.isCdpEvent)(e)){const e=r.get(t)?.get(Nr.ChromiumBidi.BiDiModule.Cdp);return a&&e?Math.min(a,e):a??e}return a})).filter((e=>void 0!==e));return 0===s.length?null:Math.min(...s)}subscribe(e,t,a){switch(t=this.#i.findTopLevelContextId(t),e){case Nr.ChromiumBidi.BiDiModule.BrowsingContext:return void Object.values(Nr.ChromiumBidi.BrowsingContext.EventNames).map((e=>this.subscribe(e,t,a)));case Nr.ChromiumBidi.BiDiModule.Log:return void Object.values(Nr.ChromiumBidi.Log.EventNames).map((e=>this.subscribe(e,t,a)));case Nr.ChromiumBidi.BiDiModule.Network:return void Object.values(Nr.ChromiumBidi.Network.EventNames).map((e=>this.subscribe(e,t,a)));case Nr.ChromiumBidi.BiDiModule.Script:return void Object.values(Nr.ChromiumBidi.Script.EventNames).map((e=>this.subscribe(e,t,a)))}this.#Ma.has(a)||this.#Ma.set(a,new Map);const r=this.#Ma.get(a);r.has(t)||r.set(t,new Map);const n=r.get(t);n.has(e)||n.set(e,this.#Oa++)}unsubscribeAll(e,t,a){for(const e of t)null!==e&&this.#i.getContext(e);Or(Mr(e),t).map((([e,t])=>this.#Ba(e,t,a))).forEach((e=>e()))}unsubscribe(e,t,a){this.unsubscribeAll([e],[t],a)}#Ba(e,t,a){if(t=this.#i.findTopLevelContextId(t),!this.#Ma.has(a))throw new Nr.InvalidArgumentException(`Cannot unsubscribe from ${e}, ${null===t?"null":t}. No subscription found.`);const r=this.#Ma.get(a);if(!r.has(t))throw new Nr.InvalidArgumentException(`Cannot unsubscribe from ${e}, ${null===t?"null":t}. No subscription found.`);const n=r.get(t);if(!n.has(e))throw new Nr.InvalidArgumentException(`Cannot unsubscribe from ${e}, ${null===t?"null":t}. No subscription found.`);return()=>{n.delete(e),0===n.size&&r.delete(e),0===r.size&&this.#Ma.delete(a)}}},Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.EventManager=void 0;const Ar=g,Br=br,zr=xr,Dr=s,Lr=Ir,Zr=Xa,Ur=Rr,Fr=Tr;class qr{#za=new Lr.IdWrapper;#Da;#La;constructor(e,t){this.#La=e,this.#Da=t}get id(){return this.#za.id}get contextId(){return this.#Da}get event(){return this.#La}}const Vr=new Map([[Ar.ChromiumBidi.Log.EventNames.LogEntryAdded,100]]);class $r extends Dr.EventEmitter{#Za=new zr.DefaultMap((()=>new Set));#Ua=new Map;#Fa=new Map;#qa;#i;constructor(e){super(),this.#i=e,this.#qa=new Fr.SubscriptionManager(e)}static#Va(e,t,a){return JSON.stringify({eventName:e,browsingContext:t,channel:a})}registerEvent(e,t){this.registerPromiseEvent(Promise.resolve({kind:"success",value:e}),t,e.method)}registerPromiseEvent(e,t,a){const r=new qr(e,t),n=this.#qa.getChannelsSubscribedToEvent(a,t);this.#$a(r,a);for(const t of n)this.emit("event",{message:Zr.OutgoingMessage.createFromPromise(e,t),event:a}),this.#Ka(r,t,a)}subscribe(e,t,a){for(const t of e)(0,Ur.assertSupportedEvent)(t);for(const e of t)null!==e&&this.#i.getContext(e);for(const r of e)for(const e of t){this.#qa.subscribe(r,e,a);for(const t of this.#Ha(r,e,a))this.emit("event",{message:Zr.OutgoingMessage.createFromPromise(t.event,a),event:r}),this.#Ka(t,a,r)}}unsubscribe(e,t,a){for(const t of e)(0,Ur.assertSupportedEvent)(t);this.#qa.unsubscribeAll(e,t,a)}#$a(e,t){if(!Vr.has(t))return;const a=$r.#Va(t,e.contextId);this.#Ua.has(a)||this.#Ua.set(a,new Br.Buffer(Vr.get(t))),this.#Ua.get(a).add(e),this.#Za.get(t).add(e.contextId)}#Ka(e,t,a){if(!Vr.has(a))return;const r=$r.#Va(a,e.contextId,t);this.#Fa.set(r,Math.max(this.#Fa.get(r)??0,e.id))}#Ha(e,t,a){const r=$r.#Va(e,t),n=$r.#Va(e,t,a),s=this.#Fa.get(n)??-1/0,o=this.#Ua.get(r)?.get().filter((e=>e.id>s))??[];return null===t&&Array.from(this.#Za.get(e).keys()).filter((e=>null!==e&&this.#i.hasContext(e))).map((t=>this.#Ha(e,t,a))).forEach((e=>o.push(...e))),o.sort(((e,t)=>e.id-t.id))}}Cr.EventManager=$r,Object.defineProperty(n,"__esModule",{value:!0}),n.BidiServer=void 0;const Kr=s,Hr=l,Wr=h,Jr=f,Gr=gr,Xr=Sr,Yr=Cr;class Qr extends Kr.EventEmitter{#Wa;#Ja;#Ga;#y;#i=new Gr.BrowsingContextStorage;#t;#Xa=e=>{this.#Ga.processCommand(e).catch((e=>{this.#t?.(Hr.LogType.debugError,e)}))};#Ya=async e=>{const t=e.message;null!==e.channel&&(t.channel=e.channel),await this.#Ja.sendMessage(t)};constructor(e,t,a,r,n,s,o,i){super(),this.#t=i,this.#Wa=new Wr.ProcessingQueue(this.#Ya,this.#t),this.#Ja=e,this.#Ja.setOnMessage(this.#Xa),this.#y=new Yr.EventManager(this.#i),this.#Ga=new Jr.CommandProcessor(t,a,this.#y,r,n,this.#i,new Xr.RealmStorage,s?.acceptInsecureCerts??!1,s?.sharedIdWithFrame??!1,o,this.#t),this.#y.on("event",(({message:e,event:t})=>{this.emitOutgoingMessage(e,t)})),this.#Ga.on("response",(({message:e,event:t})=>{this.emitOutgoingMessage(e,t)}))}static async createAndStart(e,t,a,r,n,s,o){const[{browserContextIds:i},{targetInfos:c}]=await Promise.all([a.sendCommand("Target.getBrowserContexts"),a.sendCommand("Target.getTargets")]);let d="default";for(const e of c)if(e.browserContextId&&!i.includes(e.browserContextId)){d=e.browserContextId;break}const u=new Qr(e,t,a,r,d,n,s,o);return await a.sendCommand("Target.setDiscoverTargets",{discover:!0}),await a.sendCommand("Target.setAutoAttach",{autoAttach:!0,waitForDebuggerOnStart:!0,flatten:!0}),await u.#Qa(),u}emitOutgoingMessage(e,t){this.#Wa.add(e,t)}close(){this.#Ja.close()}async#Qa(){await Promise.all(this.#i.getTopLevelContexts().map((e=>e.lifecycleLoaded())))}}n.BidiServer=Qr,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OutgoingMessage=e.EventEmitter=e.BidiServer=void 0;var t=n;Object.defineProperty(e,"BidiServer",{enumerable:!0,get:function(){return t.BidiServer}});var a=s;Object.defineProperty(e,"EventEmitter",{enumerable:!0,get:function(){return a.EventEmitter}});var r=Xa;Object.defineProperty(e,"OutgoingMessage",{enumerable:!0,get:function(){return r.OutgoingMessage}})}(r);var en={},tn={};Object.defineProperty(tn,"__esModule",{value:!0}),tn.MapperCdpClient=tn.CloseError=void 0;const an=s;class rn extends Error{}tn.CloseError=rn;class nn extends an.EventEmitter{#c;#er;constructor(e,t){super(),this.#c=e,this.#er=t}get sessionId(){return this.#er}sendCommand(e,...t){return this.#c.sendCommand(e,t[0],this.#er)}isCloseError(e){return e instanceof rn}}tn.MapperCdpClient=nn,Object.defineProperty(en,"__esModule",{value:!0}),en.MapperCdpConnection=void 0;const sn=l,on=tn;class cn{static LOGGER_PREFIX_RECV=`${sn.LogType.cdp}:RECV \u25c2`;static LOGGER_PREFIX_SEND=`${sn.LogType.cdp}:SEND \u25b8`;#tr;#Ja;#ar=new Map;#rr=new Map;#t;#nr=0;constructor(e,t){this.#Ja=e,this.#t=t,this.#Ja.setOnMessage(this.#sr),this.#tr=this.#or(void 0)}close(){this.#Ja.close();for(const[,{reject:e,error:t}]of this.#rr)e(t);this.#rr.clear(),this.#ar.clear()}async createBrowserSession(){const{sessionId:e}=await this.#tr.sendCommand("Target.attachToBrowserTarget");return this.#or(e)}getCdpClient(e){const t=this.#ar.get(e);if(!t)throw new Error(`Unknown CDP session ID: ${e}`);return t}sendCommand(e,t,a){return new Promise(((r,n)=>{const s=this.#nr++;this.#rr.set(s,{resolve:r,reject:n,error:new on.CloseError(`${e} ${JSON.stringify(t)} ${a??""} call rejected because the connection has been closed.`)});const o={id:s,method:e,params:t};a&&(o.sessionId=a),this.#Ja.sendMessage(JSON.stringify(o))?.catch((e=>{this.#t?.(sn.LogType.debugError,e),this.#Ja.close()})),this.#t?.(cn.LOGGER_PREFIX_SEND,o)}))}#sr=e=>{const t=JSON.parse(e);if(this.#t?.(cn.LOGGER_PREFIX_RECV,t),"Target.attachedToTarget"===t.method){const{sessionId:e}=t.params;this.#or(e)}if(void 0!==t.id){const e=this.#rr.get(t.id);this.#rr.delete(t.id),e&&(t.result?e.resolve(t.result):t.error&&e.reject(t.error))}else if(t.method){const e=this.#ar.get(t.sessionId??void 0);if(e?.emit(t.method,t.params||{}),"Target.detachedFromTarget"===t.method){const{sessionId:e}=t.params,a=this.#ar.get(e);a&&(this.#ar.delete(e),a.removeAllListeners())}}};#or(e){const t=new on.MapperCdpClient(this,e);return this.#ar.set(e,t),t}}en.MapperCdpConnection=cn;var dn={},un={},ln={},hn={},pn={},mn={},fn={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.getParsedType=e.ZodParsedType=e.objectUtil=e.util=void 0,function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const a of e)t[a]=a;return t},e.getValidEnumValues=t=>{const a=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),r={};for(const e of a)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.push(a);return t},e.find=(e,t)=>{for(const a of e)if(t(a))return a},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(t=e.util||(e.util={})),(e.objectUtil||(e.objectUtil={})).mergeShapes=(e,t)=>({...e,...t}),e.ZodParsedType=t.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);e.getParsedType=t=>{switch(typeof t){case"undefined":return e.ZodParsedType.undefined;case"string":return e.ZodParsedType.string;case"number":return isNaN(t)?e.ZodParsedType.nan:e.ZodParsedType.number;case"boolean":return e.ZodParsedType.boolean;case"function":return e.ZodParsedType.function;case"bigint":return e.ZodParsedType.bigint;case"symbol":return e.ZodParsedType.symbol;case"object":return Array.isArray(t)?e.ZodParsedType.array:null===t?e.ZodParsedType.null:t.then&&"function"==typeof t.then&&t.catch&&"function"==typeof t.catch?e.ZodParsedType.promise:"undefined"!=typeof Map&&t instanceof Map?e.ZodParsedType.map:"undefined"!=typeof Set&&t instanceof Set?e.ZodParsedType.set:"undefined"!=typeof Date&&t instanceof Date?e.ZodParsedType.date:e.ZodParsedType.object;default:return e.ZodParsedType.unknown}}}(fn);var gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.ZodError=gn.quotelessJson=gn.ZodIssueCode=void 0;const yn=fn;gn.ZodIssueCode=yn.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);gn.quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Sn extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},a={_errors:[]},r=e=>{for(const n of e.issues)if("invalid_union"===n.code)n.unionErrors.map(r);else if("invalid_return_type"===n.code)r(n.returnTypeError);else if("invalid_arguments"===n.code)r(n.argumentsError);else if(0===n.path.length)a._errors.push(t(n));else{let e=a,r=0;for(;re.message)){const t={},a=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):a.push(e(r));return{formErrors:a,fieldErrors:t}}get formErrors(){return this.flatten()}}gn.ZodError=Sn,Sn.create=e=>new Sn(e),Object.defineProperty(mn,"__esModule",{value:!0});const vn=fn,wn=gn;mn.default=(e,t)=>{let a;switch(e.code){case wn.ZodIssueCode.invalid_type:a=e.received===vn.ZodParsedType.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case wn.ZodIssueCode.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,vn.util.jsonStringifyReplacer)}`;break;case wn.ZodIssueCode.unrecognized_keys:a=`Unrecognized key(s) in object: ${vn.util.joinValues(e.keys,", ")}`;break;case wn.ZodIssueCode.invalid_union:a="Invalid input";break;case wn.ZodIssueCode.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${vn.util.joinValues(e.options)}`;break;case wn.ZodIssueCode.invalid_enum_value:a=`Invalid enum value. Expected ${vn.util.joinValues(e.options)}, received '${e.received}'`;break;case wn.ZodIssueCode.invalid_arguments:a="Invalid function arguments";break;case wn.ZodIssueCode.invalid_return_type:a="Invalid function return type";break;case wn.ZodIssueCode.invalid_date:a="Invalid date";break;case wn.ZodIssueCode.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:vn.util.assertNever(e.validation):a="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case wn.ZodIssueCode.too_small:a="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case wn.ZodIssueCode.too_big:a="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case wn.ZodIssueCode.custom:a="Invalid input";break;case wn.ZodIssueCode.invalid_intersection_types:a="Intersection results could not be merged";break;case wn.ZodIssueCode.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case wn.ZodIssueCode.not_finite:a="Number must be finite";break;default:a=t.defaultError,vn.util.assertNever(e)}return{message:a}};var Cn=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pn,"__esModule",{value:!0}),pn.getErrorMap=pn.setErrorMap=pn.defaultErrorMap=void 0;const bn=Cn(mn);pn.defaultErrorMap=bn.default;let xn=bn.default;pn.setErrorMap=function(e){xn=e},pn.getErrorMap=function(){return xn};var Pn={};!function(t){var a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=t.isValid=t.isDirty=t.isAborted=t.OK=t.DIRTY=t.INVALID=t.ParseStatus=t.addIssueToContext=t.EMPTY_PATH=t.makeIssue=void 0;const r=pn,n=a(mn);t.makeIssue=e=>{const{data:t,path:a,errorMaps:r,issueData:n}=e,s=[...a,...n.path||[]],o={...n,path:s};let i="";const c=r.filter((e=>!!e)).slice().reverse();for(const e of c)i=e(o,{data:t,defaultError:i}).message;return{...n,path:s,message:n.message||i}},t.EMPTY_PATH=[],t.addIssueToContext=function(e,a){const s=(0,t.makeIssue)({issueData:a,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,(0,r.getErrorMap)(),n.default].filter((e=>!!e))});e.common.issues.push(s)};class s{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,a){const r=[];for(const n of a){if("aborted"===n.status)return t.INVALID;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const a=[];for(const e of t)a.push({key:await e.key,value:await e.value});return s.mergeObjectSync(e,a)}static mergeObjectSync(e,a){const r={};for(const n of a){const{key:a,value:s}=n;if("aborted"===a.status)return t.INVALID;if("aborted"===s.status)return t.INVALID;"dirty"===a.status&&e.dirty(),"dirty"===s.status&&e.dirty(),"__proto__"===a.value||void 0===s.value&&!n.alwaysSet||(r[a.value]=s.value)}return{status:e.value,value:r}}}t.ParseStatus=s,t.INVALID=Object.freeze({status:"aborted"});t.DIRTY=e=>({status:"dirty",value:e});t.OK=e=>({status:"valid",value:e});t.isAborted=e=>"aborted"===e.status;t.isDirty=e=>"dirty"===e.status;t.isValid=e=>"valid"===e.status;t.isAsync=e=>"undefined"!=typeof Promise&&e instanceof Promise}(Pn);var In={};Object.defineProperty(In,"__esModule",{value:!0});var kn,Rn={},En={};kn=En,Object.defineProperty(kn,"__esModule",{value:!0}),kn.errorUtil=void 0,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(kn.errorUtil||(kn.errorUtil={})),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.date=e.boolean=e.bigint=e.array=e.any=e.coerce=e.ZodFirstPartyTypeKind=e.late=e.ZodSchema=e.Schema=e.custom=e.ZodReadonly=e.ZodPipeline=e.ZodBranded=e.BRAND=e.ZodNaN=e.ZodCatch=e.ZodDefault=e.ZodNullable=e.ZodOptional=e.ZodTransformer=e.ZodEffects=e.ZodPromise=e.ZodNativeEnum=e.ZodEnum=e.ZodLiteral=e.ZodLazy=e.ZodFunction=e.ZodSet=e.ZodMap=e.ZodRecord=e.ZodTuple=e.ZodIntersection=e.ZodDiscriminatedUnion=e.ZodUnion=e.ZodObject=e.ZodArray=e.ZodVoid=e.ZodNever=e.ZodUnknown=e.ZodAny=e.ZodNull=e.ZodUndefined=e.ZodSymbol=e.ZodDate=e.ZodBoolean=e.ZodBigInt=e.ZodNumber=e.ZodString=e.ZodType=void 0,e.NEVER=e.void=e.unknown=e.union=e.undefined=e.tuple=e.transformer=e.symbol=e.string=e.strictObject=e.set=e.record=e.promise=e.preprocess=e.pipeline=e.ostring=e.optional=e.onumber=e.oboolean=e.object=e.number=e.nullable=e.null=e.never=e.nativeEnum=e.nan=e.map=e.literal=e.lazy=e.intersection=e.instanceof=e.function=e.enum=e.effect=e.discriminatedUnion=void 0;const t=pn,a=En,r=Pn,n=fn,s=gn;class o{constructor(e,t,a,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=a,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const i=(e,t)=>{if((0,r.isValid)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new s.ZodError(e.common.issues);return this._error=t,this._error}}};function c(e){if(!e)return{};const{errorMap:t,invalid_type_error:a,required_error:r,description:n}=e;if(t&&(a||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:n};return{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=a?a:t.defaultError},description:n}}class d{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,n.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,n.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new r.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,n.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if((0,r.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const a=this.safeParse(e,t);if(a.success)return a.data;throw a.error}safeParse(e,t){var a;const r={common:{issues:[],async:null!==(a=null==t?void 0:t.async)&&void 0!==a&&a,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,n.getParsedType)(e)},s=this._parseSync({data:e,path:r.path,parent:r});return i(r,s)}async parseAsync(e,t){const a=await this.safeParseAsync(e,t);if(a.success)return a.data;throw a.error}async safeParseAsync(e,t){const a={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,n.getParsedType)(e)},s=this._parse({data:e,path:a.path,parent:a}),o=await((0,r.isAsync)(s)?s:Promise.resolve(s));return i(a,o)}refine(e,t){const a=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,r)=>{const n=e(t),o=()=>r.addIssue({code:s.ZodIssueCode.custom,...a(t)});return"undefined"!=typeof Promise&&n instanceof Promise?n.then((e=>!!e||(o(),!1))):!!n||(o(),!1)}))}refinement(e,t){return this._refinement(((a,r)=>!!e(a)||(r.addIssue("function"==typeof t?t(a,r):t),!1)))}_refinement(e){return new G({schema:this,typeName:se.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return X.create(this,this._def)}nullable(){return Y.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return N.create(this,this._def)}promise(){return J.create(this,this._def)}or(e){return M.create([this,e],this._def)}and(e){return D.create(this,e,this._def)}transform(e){return new G({...c(this._def),schema:this,typeName:se.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Q({...c(this._def),innerType:this,defaultValue:t,typeName:se.ZodDefault})}brand(){return new ae({typeName:se.ZodBranded,type:this,...c(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new ee({...c(this._def),innerType:this,catchValue:t,typeName:se.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return re.create(this,e)}readonly(){return ne.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}e.ZodType=d,e.Schema=d,e.ZodSchema=d;const u=/^c[^\s-]{8,}$/i,l=/^[a-z][a-z0-9]*$/,h=/^[0-9A-HJKMNP-TV-Z]{26}$/,p=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,m=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let f;const g=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,y=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;class S extends d{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==n.ZodParsedType.string){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.string,received:t.parsedType}),r.INVALID}const t=new r.ParseStatus;let a;for(const d of this._def.checks)if("min"===d.kind)e.data.lengthd.value&&(a=this._getOrReturnCtx(e,a),(0,r.addIssueToContext)(a,{code:s.ZodIssueCode.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),t.dirty());else if("length"===d.kind){const n=e.data.length>d.value,o=e.data.lengthe.test(t)),{validation:t,code:s.ZodIssueCode.invalid_string,...a.errorUtil.errToObj(r)})}_addCheck(e){return new S({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...a.errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...a.errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...a.errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...a.errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...a.errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...a.errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...a.errorUtil.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...a.errorUtil.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...a.errorUtil.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...a.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...a.errorUtil.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...a.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...a.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...a.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...a.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...a.errorUtil.errToObj(t)})}nonempty(e){return this.min(1,a.errorUtil.errToObj(e))}trim(){return new S({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new S({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new S({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.valuer?a:r;return parseInt(e.toFixed(n).replace(".",""))%parseInt(t.toFixed(n).replace(".",""))/Math.pow(10,n)}e.ZodString=S,S.create=e=>{var t;return new S({checks:[],typeName:se.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...c(e)})};class w extends d{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==n.ZodParsedType.number){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.number,received:t.parsedType}),r.INVALID}let t;const a=new r.ParseStatus;for(const o of this._def.checks)if("int"===o.kind)n.util.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty());else if("min"===o.kind){(o.inclusive?e.datao.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty())}else"multipleOf"===o.kind?0!==v(e.data,o.value)&&(t=this._getOrReturnCtx(e,t),(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):"finite"===o.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.not_finite,message:o.message}),a.dirty()):n.util.assertNever(o);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,a.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.errorUtil.toString(t))}setLimit(e,t,r,n){return new w({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.errorUtil.toString(n)}]})}_addCheck(e){return new w({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:a.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:a.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:a.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:a.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:a.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:a.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:a.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:a.errorUtil.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&n.util.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const a of this._def.checks){if("finite"===a.kind||"int"===a.kind||"multipleOf"===a.kind)return!0;"min"===a.kind?(null===t||a.value>t)&&(t=a.value):"max"===a.kind&&(null===e||a.valuenew w({checks:[],typeName:se.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...c(e)});class C extends d{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==n.ZodParsedType.bigint){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.bigint,received:t.parsedType}),r.INVALID}let t;const a=new r.ParseStatus;for(const o of this._def.checks)if("min"===o.kind){(o.inclusive?e.datao.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty())}else"multipleOf"===o.kind?e.data%o.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):n.util.assertNever(o);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,a.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.errorUtil.toString(t))}setLimit(e,t,r,n){return new C({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.errorUtil.toString(n)}]})}_addCheck(e){return new C({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:a.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:a.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:a.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:a.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.errorUtil.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new C({checks:[],typeName:se.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...c(e)})};class b extends d{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==n.ZodParsedType.boolean){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.boolean,received:t.parsedType}),r.INVALID}return(0,r.OK)(e.data)}}e.ZodBoolean=b,b.create=e=>new b({typeName:se.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...c(e)});class x extends d{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==n.ZodParsedType.date){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.date,received:t.parsedType}),r.INVALID}if(isNaN(e.data.getTime())){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_date}),r.INVALID}const t=new r.ParseStatus;let a;for(const o of this._def.checks)"min"===o.kind?e.data.getTime()o.value&&(a=this._getOrReturnCtx(e,a),(0,r.addIssueToContext)(a,{code:s.ZodIssueCode.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),t.dirty()):n.util.assertNever(o);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new x({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:a.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:a.errorUtil.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew x({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:se.ZodDate,...c(e)});class P extends d{_parse(e){if(this._getType(e)!==n.ZodParsedType.symbol){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.symbol,received:t.parsedType}),r.INVALID}return(0,r.OK)(e.data)}}e.ZodSymbol=P,P.create=e=>new P({typeName:se.ZodSymbol,...c(e)});class I extends d{_parse(e){if(this._getType(e)!==n.ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.undefined,received:t.parsedType}),r.INVALID}return(0,r.OK)(e.data)}}e.ZodUndefined=I,I.create=e=>new I({typeName:se.ZodUndefined,...c(e)});class k extends d{_parse(e){if(this._getType(e)!==n.ZodParsedType.null){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.null,received:t.parsedType}),r.INVALID}return(0,r.OK)(e.data)}}e.ZodNull=k,k.create=e=>new k({typeName:se.ZodNull,...c(e)});class R extends d{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,r.OK)(e.data)}}e.ZodAny=R,R.create=e=>new R({typeName:se.ZodAny,...c(e)});class E extends d{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,r.OK)(e.data)}}e.ZodUnknown=E,E.create=e=>new E({typeName:se.ZodUnknown,...c(e)});class _ extends d{_parse(e){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.never,received:t.parsedType}),r.INVALID}}e.ZodNever=_,_.create=e=>new _({typeName:se.ZodNever,...c(e)});class T extends d{_parse(e){if(this._getType(e)!==n.ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.void,received:t.parsedType}),r.INVALID}return(0,r.OK)(e.data)}}e.ZodVoid=T,T.create=e=>new T({typeName:se.ZodVoid,...c(e)});class N extends d{_parse(e){const{ctx:t,status:a}=this._processInputParams(e),i=this._def;if(t.parsedType!==n.ZodParsedType.array)return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.array,received:t.parsedType}),r.INVALID;if(null!==i.exactLength){const e=t.data.length>i.exactLength.value,n=t.data.lengthi.maxLength.value&&((0,r.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),a.dirty()),t.common.async)return Promise.all([...t.data].map(((e,a)=>i.type._parseAsync(new o(t,e,t.path,a))))).then((e=>r.ParseStatus.mergeArray(a,e)));const c=[...t.data].map(((e,a)=>i.type._parseSync(new o(t,e,t.path,a))));return r.ParseStatus.mergeArray(a,c)}get element(){return this._def.type}min(e,t){return new N({...this._def,minLength:{value:e,message:a.errorUtil.toString(t)}})}max(e,t){return new N({...this._def,maxLength:{value:e,message:a.errorUtil.toString(t)}})}length(e,t){return new N({...this._def,exactLength:{value:e,message:a.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}function j(e){if(e instanceof O){const t={};for(const a in e.shape){const r=e.shape[a];t[a]=X.create(j(r))}return new O({...e._def,shape:()=>t})}return e instanceof N?new N({...e._def,type:j(e.element)}):e instanceof X?X.create(j(e.unwrap())):e instanceof Y?Y.create(j(e.unwrap())):e instanceof L?L.create(e.items.map((e=>j(e)))):e}e.ZodArray=N,N.create=(e,t)=>new N({type:e,minLength:null,maxLength:null,exactLength:null,typeName:se.ZodArray,...c(t)});class O extends d{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=n.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==n.ZodParsedType.object){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.object,received:t.parsedType}),r.INVALID}const{status:t,ctx:a}=this._processInputParams(e),{shape:i,keys:c}=this._getCached(),d=[];if(!(this._def.catchall instanceof _&&"strip"===this._def.unknownKeys))for(const e in a.data)c.includes(e)||d.push(e);const u=[];for(const e of c){const t=i[e],r=a.data[e];u.push({key:{status:"valid",value:e},value:t._parse(new o(a,r,a.path,e)),alwaysSet:e in a.data})}if(this._def.catchall instanceof _){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of d)u.push({key:{status:"valid",value:e},value:{status:"valid",value:a.data[e]}});else if("strict"===e)d.length>0&&((0,r.addIssueToContext)(a,{code:s.ZodIssueCode.unrecognized_keys,keys:d}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of d){const r=a.data[t];u.push({key:{status:"valid",value:t},value:e._parse(new o(a,r,a.path,t)),alwaysSet:t in a.data})}}return a.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of u){const a=await t.key;e.push({key:a,value:await t.value,alwaysSet:t.alwaysSet})}return e})).then((e=>r.ParseStatus.mergeObjectSync(t,e))):r.ParseStatus.mergeObjectSync(t,u)}get shape(){return this._def.shape()}strict(e){return a.errorUtil.errToObj,new O({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,s,o,i;const c=null!==(o=null===(s=(n=this._def).errorMap)||void 0===s?void 0:s.call(n,t,r).message)&&void 0!==o?o:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(i=a.errorUtil.errToObj(e).message)&&void 0!==i?i:c}:{message:c}}}:{}})}strip(){return new O({...this._def,unknownKeys:"strip"})}passthrough(){return new O({...this._def,unknownKeys:"passthrough"})}extend(e){return new O({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new O({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:se.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new O({...this._def,catchall:e})}pick(e){const t={};return n.util.objectKeys(e).forEach((a=>{e[a]&&this.shape[a]&&(t[a]=this.shape[a])})),new O({...this._def,shape:()=>t})}omit(e){const t={};return n.util.objectKeys(this.shape).forEach((a=>{e[a]||(t[a]=this.shape[a])})),new O({...this._def,shape:()=>t})}deepPartial(){return j(this)}partial(e){const t={};return n.util.objectKeys(this.shape).forEach((a=>{const r=this.shape[a];e&&!e[a]?t[a]=r:t[a]=r.optional()})),new O({...this._def,shape:()=>t})}required(e){const t={};return n.util.objectKeys(this.shape).forEach((a=>{if(e&&!e[a])t[a]=this.shape[a];else{let e=this.shape[a];for(;e instanceof X;)e=e._def.innerType;t[a]=e}})),new O({...this._def,shape:()=>t})}keyof(){return K(n.util.objectKeys(this.shape))}}e.ZodObject=O,O.create=(e,t)=>new O({shape:()=>e,unknownKeys:"strip",catchall:_.create(),typeName:se.ZodObject,...c(t)}),O.strictCreate=(e,t)=>new O({shape:()=>e,unknownKeys:"strict",catchall:_.create(),typeName:se.ZodObject,...c(t)}),O.lazycreate=(e,t)=>new O({shape:e,unknownKeys:"strip",catchall:_.create(),typeName:se.ZodObject,...c(t)});class M extends d{_parse(e){const{ctx:t}=this._processInputParams(e),a=this._def.options;if(t.common.async)return Promise.all(a.map((async e=>{const a={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:a}),ctx:a}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const a of e)if("dirty"===a.result.status)return t.common.issues.push(...a.ctx.common.issues),a.result;const a=e.map((e=>new s.ZodError(e.ctx.common.issues)));return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_union,unionErrors:a}),r.INVALID}));{let e;const n=[];for(const r of a){const a={...t,common:{...t.common,issues:[]},parent:null},s=r._parseSync({data:t.data,path:t.path,parent:a});if("valid"===s.status)return s;"dirty"!==s.status||e||(e={result:s,ctx:a}),a.common.issues.length&&n.push(a.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=n.map((e=>new s.ZodError(e)));return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_union,unionErrors:o}),r.INVALID}}get options(){return this._def.options}}e.ZodUnion=M,M.create=(e,t)=>new M({options:e,typeName:se.ZodUnion,...c(t)});const A=e=>e instanceof V?A(e.schema):e instanceof G?A(e.innerType()):e instanceof $?[e.value]:e instanceof H?e.options:e instanceof W?Object.keys(e.enum):e instanceof Q?A(e._def.innerType):e instanceof I?[void 0]:e instanceof k?[null]:null;class B extends d{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==n.ZodParsedType.object)return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.object,received:t.parsedType}),r.INVALID;const a=this.discriminator,o=t.data[a],i=this.optionsMap.get(o);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):((0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),r.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,a){const r=new Map;for(const a of t){const t=A(a.shape[e]);if(!t)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,a)}}return new B({typeName:se.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...c(a)})}}function z(e,t){const a=(0,n.getParsedType)(e),r=(0,n.getParsedType)(t);if(e===t)return{valid:!0,data:e};if(a===n.ZodParsedType.object&&r===n.ZodParsedType.object){const a=n.util.objectKeys(t),r=n.util.objectKeys(e).filter((e=>-1!==a.indexOf(e))),s={...e,...t};for(const a of r){const r=z(e[a],t[a]);if(!r.valid)return{valid:!1};s[a]=r.data}return{valid:!0,data:s}}if(a===n.ZodParsedType.array&&r===n.ZodParsedType.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let r=0;r{if((0,r.isAborted)(e)||(0,r.isAborted)(n))return r.INVALID;const o=z(e.value,n.value);return o.valid?(((0,r.isDirty)(e)||(0,r.isDirty)(n))&&t.dirty(),{status:t.value,value:o.data}):((0,r.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_intersection_types}),r.INVALID)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then((([e,t])=>n(e,t))):n(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}e.ZodIntersection=D,D.create=(e,t,a)=>new D({left:e,right:t,typeName:se.ZodIntersection,...c(a)});class L extends d{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==n.ZodParsedType.array)return(0,r.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.array,received:a.parsedType}),r.INVALID;if(a.data.lengththis._def.items.length&&((0,r.addIssueToContext)(a,{code:s.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const i=[...a.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new o(a,e,a.path,t)):null})).filter((e=>!!e));return a.common.async?Promise.all(i).then((e=>r.ParseStatus.mergeArray(t,e))):r.ParseStatus.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new L({...this._def,rest:e})}}e.ZodTuple=L,L.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new L({items:e,typeName:se.ZodTuple,rest:null,...c(t)})};class Z extends d{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==n.ZodParsedType.object)return(0,r.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.object,received:a.parsedType}),r.INVALID;const i=[],c=this._def.keyType,d=this._def.valueType;for(const e in a.data)i.push({key:c._parse(new o(a,e,a.path,e)),value:d._parse(new o(a,a.data[e],a.path,e))});return a.common.async?r.ParseStatus.mergeObjectAsync(t,i):r.ParseStatus.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,a){return new Z(t instanceof d?{keyType:e,valueType:t,typeName:se.ZodRecord,...c(a)}:{keyType:S.create(),valueType:e,typeName:se.ZodRecord,...c(t)})}}e.ZodRecord=Z;class U extends d{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==n.ZodParsedType.map)return(0,r.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.map,received:a.parsedType}),r.INVALID;const i=this._def.keyType,c=this._def.valueType,d=[...a.data.entries()].map((([e,t],r)=>({key:i._parse(new o(a,e,a.path,[r,"key"])),value:c._parse(new o(a,t,a.path,[r,"value"]))})));if(a.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const a of d){const n=await a.key,s=await a.value;if("aborted"===n.status||"aborted"===s.status)return r.INVALID;"dirty"!==n.status&&"dirty"!==s.status||t.dirty(),e.set(n.value,s.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const a of d){const n=a.key,s=a.value;if("aborted"===n.status||"aborted"===s.status)return r.INVALID;"dirty"!==n.status&&"dirty"!==s.status||t.dirty(),e.set(n.value,s.value)}return{status:t.value,value:e}}}}e.ZodMap=U,U.create=(e,t,a)=>new U({valueType:t,keyType:e,typeName:se.ZodMap,...c(a)});class F extends d{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==n.ZodParsedType.set)return(0,r.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.set,received:a.parsedType}),r.INVALID;const i=this._def;null!==i.minSize&&a.data.sizei.maxSize.value&&((0,r.addIssueToContext)(a,{code:s.ZodIssueCode.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());const c=this._def.valueType;function d(e){const a=new Set;for(const n of e){if("aborted"===n.status)return r.INVALID;"dirty"===n.status&&t.dirty(),a.add(n.value)}return{status:t.value,value:a}}const u=[...a.data.values()].map(((e,t)=>c._parse(new o(a,e,a.path,t))));return a.common.async?Promise.all(u).then((e=>d(e))):d(u)}min(e,t){return new F({...this._def,minSize:{value:e,message:a.errorUtil.toString(t)}})}max(e,t){return new F({...this._def,maxSize:{value:e,message:a.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}e.ZodSet=F,F.create=(e,t)=>new F({valueType:e,minSize:null,maxSize:null,typeName:se.ZodSet,...c(t)});class q extends d{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:a}=this._processInputParams(e);if(a.parsedType!==n.ZodParsedType.function)return(0,r.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.function,received:a.parsedType}),r.INVALID;function o(e,n){return(0,r.makeIssue)({data:e,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,(0,t.getErrorMap)(),t.defaultErrorMap].filter((e=>!!e)),issueData:{code:s.ZodIssueCode.invalid_arguments,argumentsError:n}})}function i(e,n){return(0,r.makeIssue)({data:e,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,(0,t.getErrorMap)(),t.defaultErrorMap].filter((e=>!!e)),issueData:{code:s.ZodIssueCode.invalid_return_type,returnTypeError:n}})}const c={errorMap:a.common.contextualErrorMap},d=a.data;if(this._def.returns instanceof J){const e=this;return(0,r.OK)((async function(...t){const a=new s.ZodError([]),r=await e._def.args.parseAsync(t,c).catch((e=>{throw a.addIssue(o(t,e)),a})),n=await Reflect.apply(d,this,r),u=await e._def.returns._def.type.parseAsync(n,c).catch((e=>{throw a.addIssue(i(n,e)),a}));return u}))}{const e=this;return(0,r.OK)((function(...t){const a=e._def.args.safeParse(t,c);if(!a.success)throw new s.ZodError([o(t,a.error)]);const r=Reflect.apply(d,this,a.data),n=e._def.returns.safeParse(r,c);if(!n.success)throw new s.ZodError([i(r,n.error)]);return n.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new q({...this._def,args:L.create(e).rest(E.create())})}returns(e){return new q({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,a){return new q({args:e||L.create([]).rest(E.create()),returns:t||E.create(),typeName:se.ZodFunction,...c(a)})}}e.ZodFunction=q;class V extends d{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}e.ZodLazy=V,V.create=(e,t)=>new V({getter:e,typeName:se.ZodLazy,...c(t)});class $ extends d{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{received:t.data,code:s.ZodIssueCode.invalid_literal,expected:this._def.value}),r.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}function K(e,t){return new H({values:e,typeName:se.ZodEnum,...c(t)})}e.ZodLiteral=$,$.create=(e,t)=>new $({value:e,typeName:se.ZodLiteral,...c(t)});class H extends d{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),a=this._def.values;return(0,r.addIssueToContext)(t,{expected:n.util.joinValues(a),received:t.parsedType,code:s.ZodIssueCode.invalid_type}),r.INVALID}if(-1===this._def.values.indexOf(e.data)){const t=this._getOrReturnCtx(e),a=this._def.values;return(0,r.addIssueToContext)(t,{received:t.data,code:s.ZodIssueCode.invalid_enum_value,options:a}),r.INVALID}return(0,r.OK)(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return H.create(e)}exclude(e){return H.create(this.options.filter((t=>!e.includes(t))))}}e.ZodEnum=H,H.create=K;class W extends d{_parse(e){const t=n.util.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==n.ZodParsedType.string&&a.parsedType!==n.ZodParsedType.number){const e=n.util.objectValues(t);return(0,r.addIssueToContext)(a,{expected:n.util.joinValues(e),received:a.parsedType,code:s.ZodIssueCode.invalid_type}),r.INVALID}if(-1===t.indexOf(e.data)){const e=n.util.objectValues(t);return(0,r.addIssueToContext)(a,{received:a.data,code:s.ZodIssueCode.invalid_enum_value,options:e}),r.INVALID}return(0,r.OK)(e.data)}get enum(){return this._def.values}}e.ZodNativeEnum=W,W.create=(e,t)=>new W({values:e,typeName:se.ZodNativeEnum,...c(t)});class J extends d{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==n.ZodParsedType.promise&&!1===t.common.async)return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.promise,received:t.parsedType}),r.INVALID;const a=t.parsedType===n.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,r.OK)(a.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}e.ZodPromise=J,J.create=(e,t)=>new J({type:e,typeName:se.ZodPromise,...c(t)});class G extends d{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:a}=this._processInputParams(e),s=this._def.effect||null,o={addIssue:e=>{(0,r.addIssueToContext)(a,e),e.fatal?t.abort():t.dirty()},get path(){return a.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===s.type){const e=s.transform(a.data,o);return a.common.issues.length?{status:"dirty",value:a.data}:a.common.async?Promise.resolve(e).then((e=>this._def.schema._parseAsync({data:e,path:a.path,parent:a}))):this._def.schema._parseSync({data:e,path:a.path,parent:a})}if("refinement"===s.type){const e=e=>{const t=s.refinement(e,o);if(a.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===a.common.async){const n=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===n.status?r.INVALID:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then((a=>"aborted"===a.status?r.INVALID:("dirty"===a.status&&t.dirty(),e(a.value).then((()=>({status:t.value,value:a.value}))))))}if("transform"===s.type){if(!1===a.common.async){const e=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!(0,r.isValid)(e))return e;const n=s.transform(e.value,o);if(n instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:n}}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then((e=>(0,r.isValid)(e)?Promise.resolve(s.transform(e.value,o)).then((e=>({status:t.value,value:e}))):e))}n.util.assertNever(s)}}e.ZodEffects=G,e.ZodTransformer=G,G.create=(e,t,a)=>new G({schema:e,typeName:se.ZodEffects,effect:t,...c(a)}),G.createWithPreprocess=(e,t,a)=>new G({schema:t,effect:{type:"preprocess",transform:e},typeName:se.ZodEffects,...c(a)});class X extends d{_parse(e){return this._getType(e)===n.ZodParsedType.undefined?(0,r.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e.ZodOptional=X,X.create=(e,t)=>new X({innerType:e,typeName:se.ZodOptional,...c(t)});class Y extends d{_parse(e){return this._getType(e)===n.ZodParsedType.null?(0,r.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e.ZodNullable=Y,Y.create=(e,t)=>new Y({innerType:e,typeName:se.ZodNullable,...c(t)});class Q extends d{_parse(e){const{ctx:t}=this._processInputParams(e);let a=t.data;return t.parsedType===n.ZodParsedType.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}e.ZodDefault=Q,Q.create=(e,t)=>new Q({innerType:e,typeName:se.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...c(t)});class ee extends d{_parse(e){const{ctx:t}=this._processInputParams(e),a={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return(0,r.isAsync)(n)?n.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s.ZodError(a.common.issues)},input:a.data})}))):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new s.ZodError(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}e.ZodCatch=ee,ee.create=(e,t)=>new ee({innerType:e,typeName:se.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...c(t)});class te extends d{_parse(e){if(this._getType(e)!==n.ZodParsedType.nan){const t=this._getOrReturnCtx(e);return(0,r.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:n.ZodParsedType.nan,received:t.parsedType}),r.INVALID}return{status:"valid",value:e.data}}}e.ZodNaN=te,te.create=e=>new te({typeName:se.ZodNaN,...c(e)}),e.BRAND=Symbol("zod_brand");class ae extends d{_parse(e){const{ctx:t}=this._processInputParams(e),a=t.data;return this._def.type._parse({data:a,path:t.path,parent:t})}unwrap(){return this._def.type}}e.ZodBranded=ae;class re extends d{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?r.INVALID:"dirty"===e.status?(t.dirty(),(0,r.DIRTY)(e.value)):this._def.out._parseAsync({data:e.value,path:a.path,parent:a})})()}{const e=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?r.INVALID:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:a.path,parent:a})}}static create(e,t){return new re({in:e,out:t,typeName:se.ZodPipeline})}}e.ZodPipeline=re;class ne extends d{_parse(e){const t=this._def.innerType._parse(e);return(0,r.isValid)(t)&&(t.value=Object.freeze(t.value)),t}}e.ZodReadonly=ne,ne.create=(e,t)=>new ne({innerType:e,typeName:se.ZodReadonly,...c(t)});var se;e.custom=(e,t={},a)=>e?R.create().superRefine(((r,n)=>{var s,o;if(!e(r)){const e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,i=null===(o=null!==(s=e.fatal)&&void 0!==s?s:a)||void 0===o||o,c="string"==typeof e?{message:e}:e;n.addIssue({code:"custom",...c,fatal:i})}})):R.create(),e.late={object:O.lazycreate},function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(se=e.ZodFirstPartyTypeKind||(e.ZodFirstPartyTypeKind={}));e.instanceof=(t,a={message:`Input not instance of ${t.name}`})=>(0,e.custom)((e=>e instanceof t),a);const oe=S.create;e.string=oe;const ie=w.create;e.number=ie;const ce=te.create;e.nan=ce;const de=C.create;e.bigint=de;const ue=b.create;e.boolean=ue;const le=x.create;e.date=le;const he=P.create;e.symbol=he;const pe=I.create;e.undefined=pe;const me=k.create;e.null=me;const fe=R.create;e.any=fe;const ge=E.create;e.unknown=ge;const ye=_.create;e.never=ye;const Se=T.create;e.void=Se;const ve=N.create;e.array=ve;const we=O.create;e.object=we;const Ce=O.strictCreate;e.strictObject=Ce;const be=M.create;e.union=be;const xe=B.create;e.discriminatedUnion=xe;const Pe=D.create;e.intersection=Pe;const Ie=L.create;e.tuple=Ie;const ke=Z.create;e.record=ke;const Re=U.create;e.map=Re;const Ee=F.create;e.set=Ee;const _e=q.create;e.function=_e;const Te=V.create;e.lazy=Te;const Ne=$.create;e.literal=Ne;const je=H.create;e.enum=je;const Oe=W.create;e.nativeEnum=Oe;const Me=J.create;e.promise=Me;const Ae=G.create;e.effect=Ae,e.transformer=Ae;const Be=X.create;e.optional=Be;const ze=Y.create;e.nullable=ze;const De=G.createWithPreprocess;e.preprocess=De;const Le=re.create;e.pipeline=Le;e.ostring=()=>oe().optional();e.onumber=()=>ie().optional();e.oboolean=()=>ue().optional(),e.coerce={string:e=>S.create({...e,coerce:!0}),number:e=>w.create({...e,coerce:!0}),boolean:e=>b.create({...e,coerce:!0}),bigint:e=>C.create({...e,coerce:!0}),date:e=>x.create({...e,coerce:!0})},e.NEVER=r.INVALID}(Rn),function(t){var a=e&&e.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(pn,t),r(Pn,t),r(In,t),r(fn,t),r(Rn,t),r(gn,t)}(hn),function(t){var a=e&&e.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[a]}})}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t},s=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.z=void 0;const o=n(hn);t.z=o,s(hn,t),t.default=o}(ln);var _n={},Tn=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_n,"__esModule",{value:!0}),_n.Permissions=_n.PermissionsCommandSchema=void 0;const Nn=Tn(ln);var jn;_n.PermissionsCommandSchema=Nn.default.lazy((()=>jn.SetPermissionSchema)),function(e){e.PermissionDescriptorSchema=Nn.default.lazy((()=>Nn.default.object({name:Nn.default.string()})))}(jn||(_n.Permissions=jn={})),function(e){e.PermissionStateSchema=Nn.default.lazy((()=>Nn.default.enum(["granted","denied","prompt"])))}(jn||(_n.Permissions=jn={})),function(e){e.SetPermissionSchema=Nn.default.lazy((()=>Nn.default.object({method:Nn.default.literal("permissions.setPermission"),params:e.SetPermissionParametersSchema})))}(jn||(_n.Permissions=jn={})),function(e){e.SetPermissionParametersSchema=Nn.default.lazy((()=>Nn.default.object({descriptor:e.PermissionDescriptorSchema,state:e.PermissionStateSchema,origin:Nn.default.string()})))}(jn||(_n.Permissions=jn={}));var On={};!function(t){var a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Input=t.InputCommandSchema=t.Log=t.LogEventSchema=t.Storage=t.StorageResultSchema=t.StorageCommandSchema=t.Script=t.ScriptResultSchema=t.ScriptCommandSchema=t.ScriptEventSchema=t.Network=t.NetworkResultSchema=t.NetworkEventSchema=t.NetworkCommandSchema=t.BrowsingContext=t.BrowsingContextResultSchema=t.BrowsingContextEventSchema=t.BrowsingContextCommandSchema=t.Browser=t.BrowserResultSchema=t.BrowserCommandSchema=t.SessionResultSchema=t.Session=t.SessionCommandSchema=t.ErrorCodeSchema=t.JsUintSchema=t.JsIntSchema=t.ExtensibleSchema=t.EmptyResultSchema=t.ErrorResponseSchema=t.MessageSchema=t.EmptyParamsSchema=t.ResultDataSchema=t.CommandDataSchema=t.EventDataSchema=t.CommandResponseSchema=t.CommandSchema=t.EventSchema=void 0;const r=a(ln);var n,s,o,i,c,d,u,l;t.EventSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("event")}).and(t.EventDataSchema).and(t.ExtensibleSchema))),t.CommandSchema=r.default.lazy((()=>r.default.object({id:t.JsUintSchema}).and(t.CommandDataSchema).and(t.ExtensibleSchema))),t.CommandResponseSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("success"),id:t.JsUintSchema,result:t.ResultDataSchema}).and(t.ExtensibleSchema))),t.EventDataSchema=r.default.lazy((()=>r.default.union([t.BrowsingContextEventSchema,t.LogEventSchema,t.NetworkEventSchema,t.ScriptEventSchema]))),t.CommandDataSchema=r.default.lazy((()=>r.default.union([t.BrowserCommandSchema,t.BrowsingContextCommandSchema,t.InputCommandSchema,t.NetworkCommandSchema,t.ScriptCommandSchema,t.SessionCommandSchema,t.StorageCommandSchema]))),t.ResultDataSchema=r.default.lazy((()=>r.default.union([t.BrowsingContextResultSchema,t.EmptyResultSchema,t.NetworkResultSchema,t.ScriptResultSchema,t.SessionResultSchema,t.StorageResultSchema]))),t.EmptyParamsSchema=r.default.lazy((()=>t.ExtensibleSchema)),t.MessageSchema=r.default.lazy((()=>r.default.union([t.CommandResponseSchema,t.ErrorResponseSchema,t.EventSchema]))),t.ErrorResponseSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("error"),id:r.default.union([t.JsUintSchema,r.default.null()]),error:t.ErrorCodeSchema,message:r.default.string(),stacktrace:r.default.string().optional()}).and(t.ExtensibleSchema))),t.EmptyResultSchema=r.default.lazy((()=>t.ExtensibleSchema)),t.ExtensibleSchema=r.default.lazy((()=>r.default.record(r.default.string(),r.default.any()))),t.JsIntSchema=r.default.lazy((()=>r.default.number().int().gte(-9007199254740991).lte(9007199254740991))),t.JsUintSchema=r.default.lazy((()=>r.default.number().int().nonnegative().gte(0).lte(9007199254740991))),t.ErrorCodeSchema=r.default.lazy((()=>r.default.enum(["invalid argument","invalid session id","move target out of bounds","no such alert","no such element","no such frame","no such handle","no such history entry","no such intercept","no such node","no such request","no such script","no such storage partition","no such user context","session not created","unable to capture screen","unable to close browser","unable to set cookie","unable to set file input","underspecified storage partition","unknown command","unknown error","unsupported operation"]))),t.SessionCommandSchema=r.default.lazy((()=>r.default.union([n.EndSchema,n.NewSchema,n.StatusSchema,n.SubscribeSchema,n.UnsubscribeSchema]))),function(e){e.ProxyConfigurationSchema=r.default.lazy((()=>r.default.union([e.AutodetectProxyConfigurationSchema,e.DirectProxyConfigurationSchema,e.ManualProxyConfigurationSchema,e.PacProxyConfigurationSchema,e.SystemProxyConfigurationSchema,r.default.object({})])))}(n||(t.Session=n={})),t.SessionResultSchema=r.default.lazy((()=>r.default.union([n.NewResultSchema,n.StatusResultSchema]))),function(e){e.CapabilitiesRequestSchema=r.default.lazy((()=>r.default.object({alwaysMatch:e.CapabilityRequestSchema.optional(),firstMatch:r.default.array(e.CapabilityRequestSchema).optional()})))}(n||(t.Session=n={})),function(e){e.CapabilityRequestSchema=r.default.lazy((()=>r.default.object({acceptInsecureCerts:r.default.boolean().optional(),browserName:r.default.string().optional(),browserVersion:r.default.string().optional(),platformName:r.default.string().optional(),proxy:e.ProxyConfigurationSchema.optional(),webSocketUrl:r.default.boolean().optional()}).and(t.ExtensibleSchema)))}(n||(t.Session=n={})),function(e){e.AutodetectProxyConfigurationSchema=r.default.lazy((()=>r.default.object({proxyType:r.default.literal("autodetect")}).and(t.ExtensibleSchema)))}(n||(t.Session=n={})),function(e){e.DirectProxyConfigurationSchema=r.default.lazy((()=>r.default.object({proxyType:r.default.literal("direct")}).and(t.ExtensibleSchema)))}(n||(t.Session=n={})),function(e){e.ManualProxyConfigurationSchema=r.default.lazy((()=>r.default.object({proxyType:r.default.literal("manual"),ftpProxy:r.default.string().optional(),httpProxy:r.default.string().optional(),sslProxy:r.default.string().optional()}).and(e.SocksProxyConfigurationSchema.or(r.default.object({}))).and(r.default.object({noProxy:r.default.array(r.default.string()).optional()})).and(t.ExtensibleSchema)))}(n||(t.Session=n={})),function(e){e.SocksProxyConfigurationSchema=r.default.lazy((()=>r.default.object({socksProxy:r.default.string(),socksVersion:r.default.number().int().nonnegative().gte(0).lte(255)})))}(n||(t.Session=n={})),function(e){e.PacProxyConfigurationSchema=r.default.lazy((()=>r.default.object({proxyType:r.default.literal("pac"),proxyAutoconfigUrl:r.default.string()}).and(t.ExtensibleSchema)))}(n||(t.Session=n={})),function(e){e.SystemProxyConfigurationSchema=r.default.lazy((()=>r.default.object({proxyType:r.default.literal("system")}).and(t.ExtensibleSchema)))}(n||(t.Session=n={})),function(e){e.SubscriptionRequestSchema=r.default.lazy((()=>r.default.object({events:r.default.array(r.default.string()),contexts:r.default.array(o.BrowsingContextSchema).optional()})))}(n||(t.Session=n={})),function(e){e.StatusSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("session.status"),params:t.EmptyParamsSchema})))}(n||(t.Session=n={})),function(e){e.StatusResultSchema=r.default.lazy((()=>r.default.object({ready:r.default.boolean(),message:r.default.string()})))}(n||(t.Session=n={})),function(e){e.NewSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("session.new"),params:e.NewParametersSchema})))}(n||(t.Session=n={})),function(e){e.NewParametersSchema=r.default.lazy((()=>r.default.object({capabilities:e.CapabilitiesRequestSchema})))}(n||(t.Session=n={})),function(e){e.NewResultSchema=r.default.lazy((()=>r.default.object({sessionId:r.default.string(),capabilities:r.default.object({acceptInsecureCerts:r.default.boolean(),browserName:r.default.string(),browserVersion:r.default.string(),platformName:r.default.string(),setWindowRect:r.default.boolean(),proxy:e.ProxyConfigurationSchema.optional(),webSocketUrl:r.default.string().optional()}).and(t.ExtensibleSchema)})))}(n||(t.Session=n={})),function(e){e.EndSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("session.end"),params:t.EmptyParamsSchema})))}(n||(t.Session=n={})),function(e){e.SubscribeSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("session.subscribe"),params:e.SubscriptionRequestSchema})))}(n||(t.Session=n={})),function(e){e.UnsubscribeSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("session.unsubscribe"),params:e.SubscriptionRequestSchema})))}(n||(t.Session=n={})),t.BrowserCommandSchema=r.default.lazy((()=>r.default.union([s.CloseSchema,s.CreateUserContextSchema,s.GetUserContextsSchema,s.RemoveUserContextSchema]))),t.BrowserResultSchema=r.default.lazy((()=>r.default.union([s.CreateUserContextResultSchema,s.GetUserContextsResultSchema]))),function(e){e.UserContextSchema=r.default.lazy((()=>r.default.string()))}(s||(t.Browser=s={})),function(e){e.UserContextInfoSchema=r.default.lazy((()=>r.default.object({userContext:e.UserContextSchema})))}(s||(t.Browser=s={})),function(e){e.CloseSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browser.close"),params:t.EmptyParamsSchema})))}(s||(t.Browser=s={})),function(e){e.CreateUserContextSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browser.createUserContext"),params:t.EmptyParamsSchema})))}(s||(t.Browser=s={})),function(e){e.CreateUserContextResultSchema=r.default.lazy((()=>e.UserContextInfoSchema))}(s||(t.Browser=s={})),function(e){e.GetUserContextsSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browser.getUserContexts"),params:t.EmptyParamsSchema})))}(s||(t.Browser=s={})),function(e){e.GetUserContextsResultSchema=r.default.lazy((()=>r.default.object({userContexts:r.default.array(e.UserContextInfoSchema).min(1)})))}(s||(t.Browser=s={})),function(e){e.RemoveUserContextSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browser.removeUserContext"),params:r.default.object({userContext:e.UserContextSchema})})))}(s||(t.Browser=s={})),t.BrowsingContextCommandSchema=r.default.lazy((()=>r.default.union([o.ActivateSchema,o.CaptureScreenshotSchema,o.CloseSchema,o.CreateSchema,o.GetTreeSchema,o.HandleUserPromptSchema,o.LocateNodesSchema,o.NavigateSchema,o.PrintSchema,o.ReloadSchema,o.SetViewportSchema,o.TraverseHistorySchema]))),t.BrowsingContextEventSchema=r.default.lazy((()=>r.default.union([o.ContextCreatedSchema,o.ContextDestroyedSchema,o.DomContentLoadedSchema,o.DownloadWillBeginSchema,o.FragmentNavigatedSchema,o.LoadSchema,o.NavigationAbortedSchema,o.NavigationFailedSchema,o.NavigationStartedSchema,o.UserPromptClosedSchema,o.UserPromptOpenedSchema]))),t.BrowsingContextResultSchema=r.default.lazy((()=>r.default.union([o.CaptureScreenshotResultSchema,o.CreateResultSchema,o.GetTreeResultSchema,o.LocateNodesResultSchema,o.NavigateResultSchema,o.PrintResultSchema,o.TraverseHistoryResultSchema]))),function(e){e.BrowsingContextSchema=r.default.lazy((()=>r.default.string()))}(o||(t.BrowsingContext=o={})),function(e){e.InfoListSchema=r.default.lazy((()=>r.default.array(e.InfoSchema)))}(o||(t.BrowsingContext=o={})),function(e){e.InfoSchema=r.default.lazy((()=>r.default.object({children:r.default.union([e.InfoListSchema,r.default.null()]),context:e.BrowsingContextSchema,url:r.default.string(),userContext:s.UserContextSchema,parent:r.default.union([e.BrowsingContextSchema,r.default.null()]).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.LocatorSchema=r.default.lazy((()=>r.default.union([e.CssLocatorSchema,e.InnerTextLocatorSchema,e.XPathLocatorSchema])))}(o||(t.BrowsingContext=o={})),function(e){e.CssLocatorSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("css"),value:r.default.string()})))}(o||(t.BrowsingContext=o={})),function(e){e.InnerTextLocatorSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("innerText"),value:r.default.string(),ignoreCase:r.default.boolean().optional(),matchType:r.default.enum(["full","partial"]).optional(),maxDepth:t.JsUintSchema.optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.XPathLocatorSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("xpath"),value:r.default.string()})))}(o||(t.BrowsingContext=o={})),function(e){e.NavigationSchema=r.default.lazy((()=>r.default.string()))}(o||(t.BrowsingContext=o={})),function(e){e.NavigationInfoSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,navigation:r.default.union([e.NavigationSchema,r.default.null()]),timestamp:t.JsUintSchema,url:r.default.string()})))}(o||(t.BrowsingContext=o={})),function(e){e.ReadinessStateSchema=r.default.lazy((()=>r.default.enum(["none","interactive","complete"])))}(o||(t.BrowsingContext=o={})),function(e){e.ActivateSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.activate"),params:e.ActivateParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.ActivateParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.CaptureScreenshotParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,origin:r.default.enum(["viewport","document"]).default("viewport").optional(),format:e.ImageFormatSchema.optional(),clip:e.ClipRectangleSchema.optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.CaptureScreenshotSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.captureScreenshot"),params:e.CaptureScreenshotParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.ImageFormatSchema=r.default.lazy((()=>r.default.object({type:r.default.string(),quality:r.default.number().gte(0).lte(1).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.ClipRectangleSchema=r.default.lazy((()=>r.default.union([e.BoxClipRectangleSchema,e.ElementClipRectangleSchema])))}(o||(t.BrowsingContext=o={})),function(e){e.ElementClipRectangleSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("element"),element:c.SharedReferenceSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.BoxClipRectangleSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("box"),x:r.default.number(),y:r.default.number(),width:r.default.number(),height:r.default.number()})))}(o||(t.BrowsingContext=o={})),function(e){e.CaptureScreenshotResultSchema=r.default.lazy((()=>r.default.object({data:r.default.string()})))}(o||(t.BrowsingContext=o={})),function(e){e.CloseSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.close"),params:e.CloseParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.CloseParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,promptUnload:r.default.boolean().default(!1).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.CreateSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.create"),params:e.CreateParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.CreateTypeSchema=r.default.lazy((()=>r.default.enum(["tab","window"])))}(o||(t.BrowsingContext=o={})),function(e){e.CreateParametersSchema=r.default.lazy((()=>r.default.object({type:e.CreateTypeSchema,referenceContext:e.BrowsingContextSchema.optional(),background:r.default.boolean().default(!1).optional(),userContext:r.default.union([s.UserContextSchema,r.default.null()]).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.CreateResultSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.GetTreeSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.getTree"),params:e.GetTreeParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.GetTreeParametersSchema=r.default.lazy((()=>r.default.object({maxDepth:t.JsUintSchema.optional(),root:e.BrowsingContextSchema.optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.GetTreeResultSchema=r.default.lazy((()=>r.default.object({contexts:e.InfoListSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.HandleUserPromptSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.handleUserPrompt"),params:e.HandleUserPromptParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.HandleUserPromptParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,accept:r.default.boolean().optional(),userText:r.default.string().optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.LocateNodesParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,locator:e.LocatorSchema,maxNodeCount:t.JsUintSchema.gte(1).optional(),ownership:c.ResultOwnershipSchema.optional(),sandbox:r.default.string().optional(),serializationOptions:c.SerializationOptionsSchema.optional(),startNodes:r.default.array(c.SharedReferenceSchema).min(1).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.LocateNodesSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.locateNodes"),params:e.LocateNodesParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.LocateNodesResultSchema=r.default.lazy((()=>r.default.object({nodes:r.default.array(c.NodeRemoteValueSchema)})))}(o||(t.BrowsingContext=o={})),function(e){e.NavigateSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.navigate"),params:e.NavigateParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.NavigateParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,url:r.default.string(),wait:e.ReadinessStateSchema.optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.NavigateResultSchema=r.default.lazy((()=>r.default.object({navigation:r.default.union([e.NavigationSchema,r.default.null()]),url:r.default.string()})))}(o||(t.BrowsingContext=o={})),function(e){e.PrintSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.print"),params:e.PrintParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.PrintParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,background:r.default.boolean().default(!1).optional(),margin:e.PrintMarginParametersSchema.optional(),orientation:r.default.enum(["portrait","landscape"]).default("portrait").optional(),page:e.PrintPageParametersSchema.optional(),pageRanges:r.default.array(r.default.union([t.JsUintSchema,r.default.string()])).optional(),scale:r.default.number().gte(.1).lte(2).default(1).optional(),shrinkToFit:r.default.boolean().default(!0).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.PrintMarginParametersSchema=r.default.lazy((()=>r.default.object({bottom:r.default.number().gte(0).default(1).optional(),left:r.default.number().gte(0).default(1).optional(),right:r.default.number().gte(0).default(1).optional(),top:r.default.number().gte(0).default(1).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.PrintPageParametersSchema=r.default.lazy((()=>r.default.object({height:r.default.number().gte(.0352).default(27.94).optional(),width:r.default.number().gte(.0352).default(21.59).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.PrintResultSchema=r.default.lazy((()=>r.default.object({data:r.default.string()})))}(o||(t.BrowsingContext=o={})),function(e){e.ReloadSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.reload"),params:e.ReloadParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.ReloadParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,ignoreCache:r.default.boolean().optional(),wait:e.ReadinessStateSchema.optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.SetViewportSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.setViewport"),params:e.SetViewportParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.SetViewportParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,viewport:r.default.union([e.ViewportSchema,r.default.null()]).optional(),devicePixelRatio:r.default.union([r.default.number().gt(0),r.default.null()]).optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.ViewportSchema=r.default.lazy((()=>r.default.object({width:t.JsUintSchema,height:t.JsUintSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.TraverseHistorySchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.traverseHistory"),params:e.TraverseHistoryParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.TraverseHistoryParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,delta:t.JsIntSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.TraverseHistoryResultSchema=r.default.lazy((()=>r.default.object({})))}(o||(t.BrowsingContext=o={})),function(e){e.ContextCreatedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.contextCreated"),params:e.InfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.ContextDestroyedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.contextDestroyed"),params:e.InfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.NavigationStartedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.navigationStarted"),params:e.NavigationInfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.FragmentNavigatedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.fragmentNavigated"),params:e.NavigationInfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.DomContentLoadedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.domContentLoaded"),params:e.NavigationInfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.LoadSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.load"),params:e.NavigationInfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.DownloadWillBeginSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.downloadWillBegin"),params:e.NavigationInfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.NavigationAbortedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.navigationAborted"),params:e.NavigationInfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.NavigationFailedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.navigationFailed"),params:e.NavigationInfoSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.UserPromptClosedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.userPromptClosed"),params:e.UserPromptClosedParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.UserPromptClosedParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,accepted:r.default.boolean(),userText:r.default.string().optional()})))}(o||(t.BrowsingContext=o={})),function(e){e.UserPromptOpenedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("browsingContext.userPromptOpened"),params:e.UserPromptOpenedParametersSchema})))}(o||(t.BrowsingContext=o={})),function(e){e.UserPromptOpenedParametersSchema=r.default.lazy((()=>r.default.object({context:e.BrowsingContextSchema,type:r.default.enum(["alert","confirm","prompt","beforeunload"]),message:r.default.string(),defaultValue:r.default.string().optional()})))}(o||(t.BrowsingContext=o={})),t.NetworkCommandSchema=r.default.lazy((()=>r.default.union([i.AddInterceptSchema,i.ContinueRequestSchema,i.ContinueResponseSchema,i.ContinueWithAuthSchema,i.FailRequestSchema,i.ProvideResponseSchema,i.RemoveInterceptSchema]))),t.NetworkEventSchema=r.default.lazy((()=>r.default.union([i.AuthRequiredSchema,i.BeforeRequestSentSchema,i.FetchErrorSchema,i.ResponseCompletedSchema,i.ResponseStartedSchema]))),t.NetworkResultSchema=r.default.lazy((()=>i.AddInterceptResultSchema)),function(e){e.AuthChallengeSchema=r.default.lazy((()=>r.default.object({scheme:r.default.string(),realm:r.default.string()})))}(i||(t.Network=i={})),function(e){e.AuthCredentialsSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("password"),username:r.default.string(),password:r.default.string()})))}(i||(t.Network=i={})),function(e){e.BaseParametersSchema=r.default.lazy((()=>r.default.object({context:r.default.union([o.BrowsingContextSchema,r.default.null()]),isBlocked:r.default.boolean(),navigation:r.default.union([o.NavigationSchema,r.default.null()]),redirectCount:t.JsUintSchema,request:e.RequestDataSchema,timestamp:t.JsUintSchema,intercepts:r.default.array(e.InterceptSchema).min(1).optional()})))}(i||(t.Network=i={})),function(e){e.BytesValueSchema=r.default.lazy((()=>r.default.union([e.StringValueSchema,e.Base64ValueSchema])))}(i||(t.Network=i={})),function(e){e.StringValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("string"),value:r.default.string()})))}(i||(t.Network=i={})),function(e){e.Base64ValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("base64"),value:r.default.string()})))}(i||(t.Network=i={})),function(e){e.SameSiteSchema=r.default.lazy((()=>r.default.enum(["strict","lax","none"])))}(i||(t.Network=i={})),function(e){e.CookieSchema=r.default.lazy((()=>r.default.object({name:r.default.string(),value:e.BytesValueSchema,domain:r.default.string(),path:r.default.string(),size:t.JsUintSchema,httpOnly:r.default.boolean(),secure:r.default.boolean(),sameSite:e.SameSiteSchema,expiry:t.JsUintSchema.optional()}).and(t.ExtensibleSchema)))}(i||(t.Network=i={})),function(e){e.CookieHeaderSchema=r.default.lazy((()=>r.default.object({name:r.default.string(),value:e.BytesValueSchema})))}(i||(t.Network=i={})),function(e){e.FetchTimingInfoSchema=r.default.lazy((()=>r.default.object({timeOrigin:r.default.number(),requestTime:r.default.number(),redirectStart:r.default.number(),redirectEnd:r.default.number(),fetchStart:r.default.number(),dnsStart:r.default.number(),dnsEnd:r.default.number(),connectStart:r.default.number(),connectEnd:r.default.number(),tlsStart:r.default.number(),requestStart:r.default.number(),responseStart:r.default.number(),responseEnd:r.default.number()})))}(i||(t.Network=i={})),function(e){e.HeaderSchema=r.default.lazy((()=>r.default.object({name:r.default.string(),value:e.BytesValueSchema})))}(i||(t.Network=i={})),function(e){e.InitiatorSchema=r.default.lazy((()=>r.default.object({type:r.default.enum(["parser","script","preflight","other"]),columnNumber:t.JsUintSchema.optional(),lineNumber:t.JsUintSchema.optional(),stackTrace:c.StackTraceSchema.optional(),request:e.RequestSchema.optional()})))}(i||(t.Network=i={})),function(e){e.InterceptSchema=r.default.lazy((()=>r.default.string()))}(i||(t.Network=i={})),function(e){e.RequestSchema=r.default.lazy((()=>r.default.string()))}(i||(t.Network=i={})),function(e){e.RequestDataSchema=r.default.lazy((()=>r.default.object({request:e.RequestSchema,url:r.default.string(),method:r.default.string(),headers:r.default.array(e.HeaderSchema),cookies:r.default.array(e.CookieSchema),headersSize:t.JsUintSchema,bodySize:r.default.union([t.JsUintSchema,r.default.null()]),timings:e.FetchTimingInfoSchema})))}(i||(t.Network=i={})),function(e){e.ResponseContentSchema=r.default.lazy((()=>r.default.object({size:t.JsUintSchema})))}(i||(t.Network=i={})),function(e){e.ResponseDataSchema=r.default.lazy((()=>r.default.object({url:r.default.string(),protocol:r.default.string(),status:t.JsUintSchema,statusText:r.default.string(),fromCache:r.default.boolean(),headers:r.default.array(e.HeaderSchema),mimeType:r.default.string(),bytesReceived:t.JsUintSchema,headersSize:r.default.union([t.JsUintSchema,r.default.null()]),bodySize:r.default.union([t.JsUintSchema,r.default.null()]),content:e.ResponseContentSchema,authChallenge:e.AuthChallengeSchema.optional()})))}(i||(t.Network=i={})),function(e){e.SetCookieHeaderSchema=r.default.lazy((()=>r.default.object({name:r.default.string(),value:e.BytesValueSchema,domain:r.default.string().optional(),httpOnly:r.default.boolean().optional(),expiry:r.default.string().optional(),maxAge:t.JsIntSchema.optional(),path:r.default.string().optional(),sameSite:e.SameSiteSchema.optional(),secure:r.default.boolean().optional()})))}(i||(t.Network=i={})),function(e){e.UrlPatternSchema=r.default.lazy((()=>r.default.union([e.UrlPatternPatternSchema,e.UrlPatternStringSchema])))}(i||(t.Network=i={})),function(e){e.UrlPatternPatternSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("pattern"),protocol:r.default.string().optional(),hostname:r.default.string().optional(),port:r.default.string().optional(),pathname:r.default.string().optional(),search:r.default.string().optional()})))}(i||(t.Network=i={})),function(e){e.UrlPatternStringSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("string"),pattern:r.default.string()})))}(i||(t.Network=i={})),function(e){e.AddInterceptParametersSchema=r.default.lazy((()=>r.default.object({phases:r.default.array(e.InterceptPhaseSchema).min(1),urlPatterns:r.default.array(e.UrlPatternSchema).optional()})))}(i||(t.Network=i={})),function(e){e.AddInterceptSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.addIntercept"),params:e.AddInterceptParametersSchema})))}(i||(t.Network=i={})),function(e){e.InterceptPhaseSchema=r.default.lazy((()=>r.default.enum(["beforeRequestSent","responseStarted","authRequired"])))}(i||(t.Network=i={})),function(e){e.AddInterceptResultSchema=r.default.lazy((()=>r.default.object({intercept:e.InterceptSchema})))}(i||(t.Network=i={})),function(e){e.ContinueRequestSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.continueRequest"),params:e.ContinueRequestParametersSchema})))}(i||(t.Network=i={})),function(e){e.ContinueRequestParametersSchema=r.default.lazy((()=>r.default.object({request:e.RequestSchema,body:e.BytesValueSchema.optional(),cookies:r.default.array(e.CookieHeaderSchema).optional(),headers:r.default.array(e.HeaderSchema).optional(),method:r.default.string().optional(),url:r.default.string().optional()})))}(i||(t.Network=i={})),function(e){e.ContinueResponseSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.continueResponse"),params:e.ContinueResponseParametersSchema})))}(i||(t.Network=i={})),function(e){e.ContinueResponseParametersSchema=r.default.lazy((()=>r.default.object({request:e.RequestSchema,cookies:r.default.array(e.SetCookieHeaderSchema).optional(),credentials:e.AuthCredentialsSchema.optional(),headers:r.default.array(e.HeaderSchema).optional(),reasonPhrase:r.default.string().optional(),statusCode:t.JsUintSchema.optional()})))}(i||(t.Network=i={})),function(e){e.ContinueWithAuthSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.continueWithAuth"),params:e.ContinueWithAuthParametersSchema})))}(i||(t.Network=i={})),function(e){e.ContinueWithAuthParametersSchema=r.default.lazy((()=>r.default.object({request:e.RequestSchema}).and(r.default.union([e.ContinueWithAuthCredentialsSchema,e.ContinueWithAuthNoCredentialsSchema]))))}(i||(t.Network=i={})),function(e){e.ContinueWithAuthCredentialsSchema=r.default.lazy((()=>r.default.object({action:r.default.literal("provideCredentials"),credentials:e.AuthCredentialsSchema})))}(i||(t.Network=i={})),function(e){e.ContinueWithAuthNoCredentialsSchema=r.default.lazy((()=>r.default.object({action:r.default.enum(["default","cancel"])})))}(i||(t.Network=i={})),function(e){e.FailRequestSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.failRequest"),params:e.FailRequestParametersSchema})))}(i||(t.Network=i={})),function(e){e.FailRequestParametersSchema=r.default.lazy((()=>r.default.object({request:e.RequestSchema})))}(i||(t.Network=i={})),function(e){e.ProvideResponseSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.provideResponse"),params:e.ProvideResponseParametersSchema})))}(i||(t.Network=i={})),function(e){e.ProvideResponseParametersSchema=r.default.lazy((()=>r.default.object({request:e.RequestSchema,body:e.BytesValueSchema.optional(),cookies:r.default.array(e.SetCookieHeaderSchema).optional(),headers:r.default.array(e.HeaderSchema).optional(),reasonPhrase:r.default.string().optional(),statusCode:t.JsUintSchema.optional()})))}(i||(t.Network=i={})),function(e){e.RemoveInterceptSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.removeIntercept"),params:e.RemoveInterceptParametersSchema})))}(i||(t.Network=i={})),function(e){e.RemoveInterceptParametersSchema=r.default.lazy((()=>r.default.object({intercept:e.InterceptSchema})))}(i||(t.Network=i={})),t.ScriptEventSchema=r.default.lazy((()=>r.default.union([c.MessageSchema,c.RealmCreatedSchema,c.RealmDestroyedSchema]))),function(e){e.AuthRequiredParametersSchema=r.default.lazy((()=>e.BaseParametersSchema.and(r.default.object({response:e.ResponseDataSchema}))))}(i||(t.Network=i={})),function(e){e.BeforeRequestSentParametersSchema=r.default.lazy((()=>e.BaseParametersSchema.and(r.default.object({initiator:e.InitiatorSchema}))))}(i||(t.Network=i={})),function(e){e.FetchErrorParametersSchema=r.default.lazy((()=>e.BaseParametersSchema.and(r.default.object({errorText:r.default.string()}))))}(i||(t.Network=i={})),function(e){e.ResponseCompletedParametersSchema=r.default.lazy((()=>e.BaseParametersSchema.and(r.default.object({response:e.ResponseDataSchema}))))}(i||(t.Network=i={})),function(e){e.ResponseStartedParametersSchema=r.default.lazy((()=>e.BaseParametersSchema.and(r.default.object({response:e.ResponseDataSchema}))))}(i||(t.Network=i={})),t.ScriptCommandSchema=r.default.lazy((()=>r.default.union([c.AddPreloadScriptSchema,c.CallFunctionSchema,c.DisownSchema,c.EvaluateSchema,c.GetRealmsSchema,c.RemovePreloadScriptSchema]))),t.ScriptResultSchema=r.default.lazy((()=>r.default.union([c.AddPreloadScriptResultSchema,c.EvaluateResultSchema,c.GetRealmsResultSchema]))),function(e){e.AuthRequiredSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.authRequired"),params:e.AuthRequiredParametersSchema})))}(i||(t.Network=i={})),function(e){e.BeforeRequestSentSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.beforeRequestSent"),params:e.BeforeRequestSentParametersSchema})))}(i||(t.Network=i={})),function(e){e.FetchErrorSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.fetchError"),params:e.FetchErrorParametersSchema})))}(i||(t.Network=i={})),function(e){e.ResponseCompletedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.responseCompleted"),params:e.ResponseCompletedParametersSchema})))}(i||(t.Network=i={})),function(e){e.ResponseStartedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("network.responseStarted"),params:e.ResponseStartedParametersSchema})))}(i||(t.Network=i={})),function(e){e.ChannelSchema=r.default.lazy((()=>r.default.string()))}(c||(t.Script=c={})),function(e){e.EvaluateResultSuccessSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("success"),result:e.RemoteValueSchema,realm:e.RealmSchema})))}(c||(t.Script=c={})),function(e){e.ExceptionDetailsSchema=r.default.lazy((()=>r.default.object({columnNumber:t.JsUintSchema,exception:e.RemoteValueSchema,lineNumber:t.JsUintSchema,stackTrace:e.StackTraceSchema,text:r.default.string()})))}(c||(t.Script=c={})),function(e){e.ChannelValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("channel"),value:e.ChannelPropertiesSchema})))}(c||(t.Script=c={})),function(e){e.ChannelPropertiesSchema=r.default.lazy((()=>r.default.object({channel:e.ChannelSchema,serializationOptions:e.SerializationOptionsSchema.optional(),ownership:e.ResultOwnershipSchema.optional()})))}(c||(t.Script=c={})),function(e){e.EvaluateResultSchema=r.default.lazy((()=>r.default.union([e.EvaluateResultSuccessSchema,e.EvaluateResultExceptionSchema])))}(c||(t.Script=c={})),function(e){e.EvaluateResultExceptionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("exception"),exceptionDetails:e.ExceptionDetailsSchema,realm:e.RealmSchema})))}(c||(t.Script=c={})),function(e){e.HandleSchema=r.default.lazy((()=>r.default.string()))}(c||(t.Script=c={})),function(e){e.InternalIdSchema=r.default.lazy((()=>r.default.string()))}(c||(t.Script=c={})),function(e){e.ListLocalValueSchema=r.default.lazy((()=>r.default.array(e.LocalValueSchema)))}(c||(t.Script=c={})),function(e){e.LocalValueSchema=r.default.lazy((()=>r.default.union([e.RemoteReferenceSchema,e.PrimitiveProtocolValueSchema,e.ChannelValueSchema,e.ArrayLocalValueSchema,e.DateLocalValueSchema,e.MapLocalValueSchema,e.ObjectLocalValueSchema,e.RegExpLocalValueSchema,e.SetLocalValueSchema])))}(c||(t.Script=c={})),function(e){e.ArrayLocalValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("array"),value:e.ListLocalValueSchema})))}(c||(t.Script=c={})),function(e){e.DateLocalValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("date"),value:r.default.string()})))}(c||(t.Script=c={})),function(e){e.MappingLocalValueSchema=r.default.lazy((()=>r.default.array(r.default.tuple([r.default.union([e.LocalValueSchema,r.default.string()]),e.LocalValueSchema]))))}(c||(t.Script=c={})),function(e){e.MapLocalValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("map"),value:e.MappingLocalValueSchema})))}(c||(t.Script=c={})),function(e){e.ObjectLocalValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("object"),value:e.MappingLocalValueSchema})))}(c||(t.Script=c={})),function(e){e.RegExpValueSchema=r.default.lazy((()=>r.default.object({pattern:r.default.string(),flags:r.default.string().optional()})))}(c||(t.Script=c={})),function(e){e.RegExpLocalValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("regexp"),value:e.RegExpValueSchema})))}(c||(t.Script=c={})),function(e){e.SetLocalValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("set"),value:e.ListLocalValueSchema})))}(c||(t.Script=c={})),function(e){e.PreloadScriptSchema=r.default.lazy((()=>r.default.string()))}(c||(t.Script=c={})),function(e){e.RealmSchema=r.default.lazy((()=>r.default.string()))}(c||(t.Script=c={})),function(e){e.PrimitiveProtocolValueSchema=r.default.lazy((()=>r.default.union([e.UndefinedValueSchema,e.NullValueSchema,e.StringValueSchema,e.NumberValueSchema,e.BooleanValueSchema,e.BigIntValueSchema])))}(c||(t.Script=c={})),function(e){e.UndefinedValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("undefined")})))}(c||(t.Script=c={})),function(e){e.NullValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("null")})))}(c||(t.Script=c={})),function(e){e.StringValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("string"),value:r.default.string()})))}(c||(t.Script=c={})),function(e){e.SpecialNumberSchema=r.default.lazy((()=>r.default.enum(["NaN","-0","Infinity","-Infinity"])))}(c||(t.Script=c={})),function(e){e.NumberValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("number"),value:r.default.union([r.default.number(),e.SpecialNumberSchema])})))}(c||(t.Script=c={})),function(e){e.BooleanValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("boolean"),value:r.default.boolean()})))}(c||(t.Script=c={})),function(e){e.BigIntValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("bigint"),value:r.default.string()})))}(c||(t.Script=c={})),function(e){e.RealmInfoSchema=r.default.lazy((()=>r.default.union([e.WindowRealmInfoSchema,e.DedicatedWorkerRealmInfoSchema,e.SharedWorkerRealmInfoSchema,e.ServiceWorkerRealmInfoSchema,e.WorkerRealmInfoSchema,e.PaintWorkletRealmInfoSchema,e.AudioWorkletRealmInfoSchema,e.WorkletRealmInfoSchema])))}(c||(t.Script=c={})),function(e){e.BaseRealmInfoSchema=r.default.lazy((()=>r.default.object({realm:e.RealmSchema,origin:r.default.string()})))}(c||(t.Script=c={})),function(e){e.WindowRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("window"),context:o.BrowsingContextSchema,sandbox:r.default.string().optional()}))))}(c||(t.Script=c={})),function(e){e.DedicatedWorkerRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("dedicated-worker"),owners:r.default.tuple([e.RealmSchema])}))))}(c||(t.Script=c={})),function(e){e.SharedWorkerRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("shared-worker"),owners:r.default.array(e.RealmSchema).min(1)}))))}(c||(t.Script=c={})),function(e){e.ServiceWorkerRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("service-worker"),owners:r.default.array(e.RealmSchema)}))))}(c||(t.Script=c={})),function(e){e.WorkerRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("worker")}))))}(c||(t.Script=c={})),function(e){e.PaintWorkletRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("paint-worklet")}))))}(c||(t.Script=c={})),function(e){e.AudioWorkletRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("audio-worklet")}))))}(c||(t.Script=c={})),function(e){e.WorkletRealmInfoSchema=r.default.lazy((()=>e.BaseRealmInfoSchema.and(r.default.object({type:r.default.literal("worklet")}))))}(c||(t.Script=c={})),function(e){e.RealmTypeSchema=r.default.lazy((()=>r.default.enum(["window","dedicated-worker","shared-worker","service-worker","worker","paint-worklet","audio-worklet","worklet"])))}(c||(t.Script=c={})),function(e){e.ListRemoteValueSchema=r.default.lazy((()=>r.default.array(e.RemoteValueSchema)))}(c||(t.Script=c={})),function(e){e.MappingRemoteValueSchema=r.default.lazy((()=>r.default.array(r.default.tuple([r.default.union([e.RemoteValueSchema,r.default.string()]),e.RemoteValueSchema]))))}(c||(t.Script=c={})),function(e){e.RemoteValueSchema=r.default.lazy((()=>r.default.union([e.PrimitiveProtocolValueSchema,e.SymbolRemoteValueSchema,e.ArrayRemoteValueSchema,e.ObjectRemoteValueSchema,e.FunctionRemoteValueSchema,e.RegExpRemoteValueSchema,e.DateRemoteValueSchema,e.MapRemoteValueSchema,e.SetRemoteValueSchema,e.WeakMapRemoteValueSchema,e.WeakSetRemoteValueSchema,e.IteratorRemoteValueSchema,e.GeneratorRemoteValueSchema,e.ErrorRemoteValueSchema,e.ProxyRemoteValueSchema,e.PromiseRemoteValueSchema,e.TypedArrayRemoteValueSchema,e.ArrayBufferRemoteValueSchema,e.NodeListRemoteValueSchema,e.HtmlCollectionRemoteValueSchema,e.NodeRemoteValueSchema,e.WindowProxyRemoteValueSchema])))}(c||(t.Script=c={})),function(e){e.RemoteReferenceSchema=r.default.lazy((()=>r.default.union([e.SharedReferenceSchema,e.RemoteObjectReferenceSchema])))}(c||(t.Script=c={})),function(e){e.SharedReferenceSchema=r.default.lazy((()=>r.default.object({sharedId:e.SharedIdSchema,handle:e.HandleSchema.optional()}).and(t.ExtensibleSchema)))}(c||(t.Script=c={})),function(e){e.RemoteObjectReferenceSchema=r.default.lazy((()=>r.default.object({handle:e.HandleSchema,sharedId:e.SharedIdSchema.optional()}).and(t.ExtensibleSchema)))}(c||(t.Script=c={})),function(e){e.SymbolRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("symbol"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.ArrayRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("array"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional(),value:e.ListRemoteValueSchema.optional()})))}(c||(t.Script=c={})),function(e){e.ObjectRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("object"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional(),value:e.MappingRemoteValueSchema.optional()})))}(c||(t.Script=c={})),function(e){e.FunctionRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("function"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.RegExpRemoteValueSchema=r.default.lazy((()=>r.default.object({handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()}).and(e.RegExpLocalValueSchema)))}(c||(t.Script=c={})),function(e){e.DateRemoteValueSchema=r.default.lazy((()=>r.default.object({handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()}).and(e.DateLocalValueSchema)))}(c||(t.Script=c={})),function(e){e.MapRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("map"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional(),value:e.MappingRemoteValueSchema.optional()})))}(c||(t.Script=c={})),function(e){e.SetRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("set"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional(),value:e.ListRemoteValueSchema.optional()})))}(c||(t.Script=c={})),function(e){e.WeakMapRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("weakmap"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.WeakSetRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("weakset"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.IteratorRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("iterator"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.GeneratorRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("generator"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.ErrorRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("error"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.ProxyRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("proxy"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.PromiseRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("promise"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.TypedArrayRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("typedarray"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.ArrayBufferRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("arraybuffer"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.NodeListRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("nodelist"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional(),value:e.ListRemoteValueSchema.optional()})))}(c||(t.Script=c={})),function(e){e.HtmlCollectionRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("htmlcollection"),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional(),value:e.ListRemoteValueSchema.optional()})))}(c||(t.Script=c={})),function(e){e.NodeRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("node"),sharedId:e.SharedIdSchema.optional(),handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional(),value:e.NodePropertiesSchema.optional()})))}(c||(t.Script=c={})),function(e){e.NodePropertiesSchema=r.default.lazy((()=>r.default.object({nodeType:t.JsUintSchema,childNodeCount:t.JsUintSchema,attributes:r.default.record(r.default.string(),r.default.string()).optional(),children:r.default.array(e.NodeRemoteValueSchema).optional(),localName:r.default.string().optional(),mode:r.default.enum(["open","closed"]).optional(),namespaceURI:r.default.string().optional(),nodeValue:r.default.string().optional(),shadowRoot:r.default.union([e.NodeRemoteValueSchema,r.default.null()]).optional()})))}(c||(t.Script=c={})),function(e){e.WindowProxyRemoteValueSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("window"),value:e.WindowProxyPropertiesSchema,handle:e.HandleSchema.optional(),internalId:e.InternalIdSchema.optional()})))}(c||(t.Script=c={})),function(e){e.WindowProxyPropertiesSchema=r.default.lazy((()=>r.default.object({context:o.BrowsingContextSchema})))}(c||(t.Script=c={})),function(e){e.ResultOwnershipSchema=r.default.lazy((()=>r.default.enum(["root","none"])))}(c||(t.Script=c={})),function(e){e.SerializationOptionsSchema=r.default.lazy((()=>r.default.object({maxDomDepth:r.default.union([t.JsUintSchema,r.default.null()]).default(0).optional(),maxObjectDepth:r.default.union([t.JsUintSchema,r.default.null()]).default(null).optional(),includeShadowTree:r.default.enum(["none","open","all"]).default("none").optional()})))}(c||(t.Script=c={})),function(e){e.SharedIdSchema=r.default.lazy((()=>r.default.string()))}(c||(t.Script=c={})),function(e){e.StackFrameSchema=r.default.lazy((()=>r.default.object({columnNumber:t.JsUintSchema,functionName:r.default.string(),lineNumber:t.JsUintSchema,url:r.default.string()})))}(c||(t.Script=c={})),function(e){e.StackTraceSchema=r.default.lazy((()=>r.default.object({callFrames:r.default.array(e.StackFrameSchema)})))}(c||(t.Script=c={})),function(e){e.SourceSchema=r.default.lazy((()=>r.default.object({realm:e.RealmSchema,context:o.BrowsingContextSchema.optional()})))}(c||(t.Script=c={})),function(e){e.RealmTargetSchema=r.default.lazy((()=>r.default.object({realm:e.RealmSchema})))}(c||(t.Script=c={})),function(e){e.ContextTargetSchema=r.default.lazy((()=>r.default.object({context:o.BrowsingContextSchema,sandbox:r.default.string().optional()})))}(c||(t.Script=c={})),function(e){e.TargetSchema=r.default.lazy((()=>r.default.union([e.RealmTargetSchema,e.ContextTargetSchema])))}(c||(t.Script=c={})),function(e){e.AddPreloadScriptSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.addPreloadScript"),params:e.AddPreloadScriptParametersSchema})))}(c||(t.Script=c={})),function(e){e.AddPreloadScriptParametersSchema=r.default.lazy((()=>r.default.object({functionDeclaration:r.default.string(),arguments:r.default.array(e.ChannelValueSchema).optional(),contexts:r.default.array(o.BrowsingContextSchema).min(1).optional(),sandbox:r.default.string().optional()})))}(c||(t.Script=c={})),function(e){e.AddPreloadScriptResultSchema=r.default.lazy((()=>r.default.object({script:e.PreloadScriptSchema})))}(c||(t.Script=c={})),function(e){e.DisownSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.disown"),params:e.DisownParametersSchema})))}(c||(t.Script=c={})),function(e){e.DisownParametersSchema=r.default.lazy((()=>r.default.object({handles:r.default.array(e.HandleSchema),target:e.TargetSchema})))}(c||(t.Script=c={})),function(e){e.CallFunctionParametersSchema=r.default.lazy((()=>r.default.object({functionDeclaration:r.default.string(),awaitPromise:r.default.boolean(),target:e.TargetSchema,arguments:r.default.array(e.LocalValueSchema).optional(),resultOwnership:e.ResultOwnershipSchema.optional(),serializationOptions:e.SerializationOptionsSchema.optional(),this:e.LocalValueSchema.optional(),userActivation:r.default.boolean().default(!1).optional()})))}(c||(t.Script=c={})),function(e){e.CallFunctionSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.callFunction"),params:e.CallFunctionParametersSchema})))}(c||(t.Script=c={})),function(e){e.EvaluateSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.evaluate"),params:e.EvaluateParametersSchema})))}(c||(t.Script=c={})),function(e){e.EvaluateParametersSchema=r.default.lazy((()=>r.default.object({expression:r.default.string(),target:e.TargetSchema,awaitPromise:r.default.boolean(),resultOwnership:e.ResultOwnershipSchema.optional(),serializationOptions:e.SerializationOptionsSchema.optional(),userActivation:r.default.boolean().default(!1).optional()})))}(c||(t.Script=c={})),function(e){e.GetRealmsSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.getRealms"),params:e.GetRealmsParametersSchema})))}(c||(t.Script=c={})),function(e){e.GetRealmsParametersSchema=r.default.lazy((()=>r.default.object({context:o.BrowsingContextSchema.optional(),type:e.RealmTypeSchema.optional()})))}(c||(t.Script=c={})),function(e){e.GetRealmsResultSchema=r.default.lazy((()=>r.default.object({realms:r.default.array(e.RealmInfoSchema)})))}(c||(t.Script=c={})),function(e){e.RemovePreloadScriptSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.removePreloadScript"),params:e.RemovePreloadScriptParametersSchema})))}(c||(t.Script=c={})),function(e){e.RemovePreloadScriptParametersSchema=r.default.lazy((()=>r.default.object({script:e.PreloadScriptSchema})))}(c||(t.Script=c={})),function(e){e.MessageParametersSchema=r.default.lazy((()=>r.default.object({channel:e.ChannelSchema,data:e.RemoteValueSchema,source:e.SourceSchema})))}(c||(t.Script=c={})),function(e){e.RealmCreatedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.realmCreated"),params:e.RealmInfoSchema})))}(c||(t.Script=c={})),function(e){e.MessageSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.message"),params:e.MessageParametersSchema})))}(c||(t.Script=c={})),function(e){e.RealmDestroyedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("script.realmDestroyed"),params:e.RealmDestroyedParametersSchema})))}(c||(t.Script=c={})),function(e){e.RealmDestroyedParametersSchema=r.default.lazy((()=>r.default.object({realm:e.RealmSchema})))}(c||(t.Script=c={})),t.StorageCommandSchema=r.default.lazy((()=>r.default.union([d.DeleteCookiesSchema,d.GetCookiesSchema,d.SetCookieSchema]))),t.StorageResultSchema=r.default.lazy((()=>r.default.union([d.DeleteCookiesResultSchema,d.GetCookiesResultSchema,d.SetCookieResultSchema]))),function(e){e.PartitionKeySchema=r.default.lazy((()=>r.default.object({userContext:r.default.string().optional(),sourceOrigin:r.default.string().optional()}).and(t.ExtensibleSchema)))}(d||(t.Storage=d={})),function(e){e.GetCookiesSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("storage.getCookies"),params:e.GetCookiesParametersSchema})))}(d||(t.Storage=d={})),function(e){e.CookieFilterSchema=r.default.lazy((()=>r.default.object({name:r.default.string().optional(),value:i.BytesValueSchema.optional(),domain:r.default.string().optional(),path:r.default.string().optional(),size:t.JsUintSchema.optional(),httpOnly:r.default.boolean().optional(),secure:r.default.boolean().optional(),sameSite:i.SameSiteSchema.optional(),expiry:t.JsUintSchema.optional()}).and(t.ExtensibleSchema)))}(d||(t.Storage=d={})),function(e){e.BrowsingContextPartitionDescriptorSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("context"),context:o.BrowsingContextSchema})))}(d||(t.Storage=d={})),function(e){e.StorageKeyPartitionDescriptorSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("storageKey"),userContext:r.default.string().optional(),sourceOrigin:r.default.string().optional()}).and(t.ExtensibleSchema)))}(d||(t.Storage=d={})),function(e){e.PartitionDescriptorSchema=r.default.lazy((()=>r.default.union([e.BrowsingContextPartitionDescriptorSchema,e.StorageKeyPartitionDescriptorSchema])))}(d||(t.Storage=d={})),function(e){e.GetCookiesParametersSchema=r.default.lazy((()=>r.default.object({filter:e.CookieFilterSchema.optional(),partition:e.PartitionDescriptorSchema.optional()})))}(d||(t.Storage=d={})),function(e){e.GetCookiesResultSchema=r.default.lazy((()=>r.default.object({cookies:r.default.array(i.CookieSchema),partitionKey:e.PartitionKeySchema})))}(d||(t.Storage=d={})),function(e){e.SetCookieSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("storage.setCookie"),params:e.SetCookieParametersSchema})))}(d||(t.Storage=d={})),function(e){e.PartialCookieSchema=r.default.lazy((()=>r.default.object({name:r.default.string(),value:i.BytesValueSchema,domain:r.default.string(),path:r.default.string().optional(),httpOnly:r.default.boolean().optional(),secure:r.default.boolean().optional(),sameSite:i.SameSiteSchema.optional(),expiry:t.JsUintSchema.optional()}).and(t.ExtensibleSchema)))}(d||(t.Storage=d={})),function(e){e.SetCookieParametersSchema=r.default.lazy((()=>r.default.object({cookie:e.PartialCookieSchema,partition:e.PartitionDescriptorSchema.optional()})))}(d||(t.Storage=d={})),function(e){e.SetCookieResultSchema=r.default.lazy((()=>r.default.object({partitionKey:e.PartitionKeySchema})))}(d||(t.Storage=d={})),function(e){e.DeleteCookiesSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("storage.deleteCookies"),params:e.DeleteCookiesParametersSchema})))}(d||(t.Storage=d={})),function(e){e.DeleteCookiesParametersSchema=r.default.lazy((()=>r.default.object({filter:e.CookieFilterSchema.optional(),partition:e.PartitionDescriptorSchema.optional()})))}(d||(t.Storage=d={})),function(e){e.DeleteCookiesResultSchema=r.default.lazy((()=>r.default.object({partitionKey:e.PartitionKeySchema})))}(d||(t.Storage=d={})),t.LogEventSchema=r.default.lazy((()=>u.EntryAddedSchema)),function(e){e.LevelSchema=r.default.lazy((()=>r.default.enum(["debug","info","warn","error"])))}(u||(t.Log=u={})),function(e){e.EntrySchema=r.default.lazy((()=>r.default.union([e.GenericLogEntrySchema,e.ConsoleLogEntrySchema,e.JavascriptLogEntrySchema])))}(u||(t.Log=u={})),function(e){e.BaseLogEntrySchema=r.default.lazy((()=>r.default.object({level:e.LevelSchema,source:c.SourceSchema,text:r.default.union([r.default.string(),r.default.null()]),timestamp:t.JsUintSchema,stackTrace:c.StackTraceSchema.optional()})))}(u||(t.Log=u={})),function(e){e.GenericLogEntrySchema=r.default.lazy((()=>e.BaseLogEntrySchema.and(r.default.object({type:r.default.string()}))))}(u||(t.Log=u={})),function(e){e.ConsoleLogEntrySchema=r.default.lazy((()=>e.BaseLogEntrySchema.and(r.default.object({type:r.default.literal("console"),method:r.default.string(),args:r.default.array(c.RemoteValueSchema)}))))}(u||(t.Log=u={})),function(e){e.JavascriptLogEntrySchema=r.default.lazy((()=>e.BaseLogEntrySchema.and(r.default.object({type:r.default.literal("javascript")}))))}(u||(t.Log=u={})),function(e){e.EntryAddedSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("log.entryAdded"),params:e.EntrySchema})))}(u||(t.Log=u={})),t.InputCommandSchema=r.default.lazy((()=>r.default.union([l.PerformActionsSchema,l.ReleaseActionsSchema,l.SetFilesSchema]))),function(e){e.ElementOriginSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("element"),element:c.SharedReferenceSchema})))}(l||(t.Input=l={})),function(e){e.PerformActionsParametersSchema=r.default.lazy((()=>r.default.object({context:o.BrowsingContextSchema,actions:r.default.array(e.SourceActionsSchema)})))}(l||(t.Input=l={})),function(e){e.NoneSourceActionsSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("none"),id:r.default.string(),actions:r.default.array(e.NoneSourceActionSchema)})))}(l||(t.Input=l={})),function(e){e.KeySourceActionsSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("key"),id:r.default.string(),actions:r.default.array(e.KeySourceActionSchema)})))}(l||(t.Input=l={})),function(e){e.PointerSourceActionsSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("pointer"),id:r.default.string(),parameters:e.PointerParametersSchema.optional(),actions:r.default.array(e.PointerSourceActionSchema)})))}(l||(t.Input=l={})),function(e){e.PerformActionsSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("input.performActions"),params:e.PerformActionsParametersSchema})))}(l||(t.Input=l={})),function(e){e.SourceActionsSchema=r.default.lazy((()=>r.default.union([e.NoneSourceActionsSchema,e.KeySourceActionsSchema,e.PointerSourceActionsSchema,e.WheelSourceActionsSchema])))}(l||(t.Input=l={})),function(e){e.NoneSourceActionSchema=r.default.lazy((()=>e.PauseActionSchema))}(l||(t.Input=l={})),function(e){e.KeySourceActionSchema=r.default.lazy((()=>r.default.union([e.PauseActionSchema,e.KeyDownActionSchema,e.KeyUpActionSchema])))}(l||(t.Input=l={})),function(e){e.PointerTypeSchema=r.default.lazy((()=>r.default.enum(["mouse","pen","touch"])))}(l||(t.Input=l={})),function(e){e.PointerParametersSchema=r.default.lazy((()=>r.default.object({pointerType:e.PointerTypeSchema.default("mouse").optional()})))}(l||(t.Input=l={})),function(e){e.WheelSourceActionsSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("wheel"),id:r.default.string(),actions:r.default.array(e.WheelSourceActionSchema)})))}(l||(t.Input=l={})),function(e){e.PointerSourceActionSchema=r.default.lazy((()=>r.default.union([e.PauseActionSchema,e.PointerDownActionSchema,e.PointerUpActionSchema,e.PointerMoveActionSchema])))}(l||(t.Input=l={})),function(e){e.WheelSourceActionSchema=r.default.lazy((()=>r.default.union([e.PauseActionSchema,e.WheelScrollActionSchema])))}(l||(t.Input=l={})),function(e){e.PauseActionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("pause"),duration:t.JsUintSchema.optional()})))}(l||(t.Input=l={})),function(e){e.KeyDownActionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("keyDown"),value:r.default.string()})))}(l||(t.Input=l={})),function(e){e.KeyUpActionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("keyUp"),value:r.default.string()})))}(l||(t.Input=l={})),function(e){e.PointerUpActionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("pointerUp"),button:t.JsUintSchema}).and(e.PointerCommonPropertiesSchema)))}(l||(t.Input=l={})),function(e){e.PointerDownActionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("pointerDown"),button:t.JsUintSchema}).and(e.PointerCommonPropertiesSchema)))}(l||(t.Input=l={})),function(e){e.PointerMoveActionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("pointerMove"),x:t.JsIntSchema,y:t.JsIntSchema,duration:t.JsUintSchema.optional(),origin:e.OriginSchema.optional()}).and(e.PointerCommonPropertiesSchema)))}(l||(t.Input=l={})),function(e){e.WheelScrollActionSchema=r.default.lazy((()=>r.default.object({type:r.default.literal("scroll"),x:t.JsIntSchema,y:t.JsIntSchema,deltaX:t.JsIntSchema,deltaY:t.JsIntSchema,duration:t.JsUintSchema.optional(),origin:e.OriginSchema.default("viewport").optional()})))}(l||(t.Input=l={})),function(e){e.PointerCommonPropertiesSchema=r.default.lazy((()=>r.default.object({width:t.JsUintSchema.default(1).optional(),height:t.JsUintSchema.default(1).optional(),pressure:r.default.number().default(0).optional(),tangentialPressure:r.default.number().default(0).optional(),twist:r.default.number().int().nonnegative().gte(0).lte(359).default(0).optional(),altitudeAngle:r.default.number().gte(0).lte(1.5707963267948966).default(0).optional(),azimuthAngle:r.default.number().gte(0).lte(6.283185307179586).default(0).optional()})))}(l||(t.Input=l={})),function(e){e.OriginSchema=r.default.lazy((()=>r.default.union([r.default.literal("viewport"),r.default.literal("pointer"),e.ElementOriginSchema])))}(l||(t.Input=l={})),function(e){e.ReleaseActionsSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("input.releaseActions"),params:e.ReleaseActionsParametersSchema})))}(l||(t.Input=l={})),function(e){e.ReleaseActionsParametersSchema=r.default.lazy((()=>r.default.object({context:o.BrowsingContextSchema})))}(l||(t.Input=l={})),function(e){e.SetFilesSchema=r.default.lazy((()=>r.default.object({method:r.default.literal("input.setFiles"),params:e.SetFilesParametersSchema})))}(l||(t.Input=l={})),function(e){e.SetFilesParametersSchema=r.default.lazy((()=>r.default.object({context:o.BrowsingContextSchema,element:c.SharedReferenceSchema,files:r.default.array(r.default.string())})))}(l||(t.Input=l={}))}(On);var Mn=e&&e.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,n)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),An=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Bn=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&Mn(t,e,a);return An(t,e),t};Object.defineProperty(un,"__esModule",{value:!0}),un.Permissions=un.Cdp=un.Storage=un.Input=un.Session=un.BrowsingContext=un.Script=un.Network=un.parseObject=void 0;const zn=ln,Dn=g,Ln=Bn(_n),Zn=Bn(On);function Un(e,t){const a=t.safeParse(e);if(a.success)return a.data;const r=a.error.errors.map((e=>`${e.message} in ${e.path.map((e=>JSON.stringify(e))).join("/")}.`)).join(" ");throw new Dn.InvalidArgumentException(r)}var Fn,qn,Vn,$n,Kn,Hn,Wn,Jn;un.parseObject=Un,function(e){e.parseAddInterceptParameters=function(e){return Un(e,Zn.Network.AddInterceptParametersSchema)},e.parseContinueRequestParameters=function(e){return Un(e,Zn.Network.ContinueRequestParametersSchema)},e.parseContinueResponseParameters=function(e){return Un(e,Zn.Network.ContinueResponseParametersSchema)},e.parseContinueWithAuthParameters=function(e){return Un(e,Zn.Network.ContinueWithAuthParametersSchema)},e.parseFailRequestParameters=function(e){return Un(e,Zn.Network.FailRequestParametersSchema)},e.parseProvideResponseParameters=function(e){return Un(e,Zn.Network.ProvideResponseParametersSchema)},e.parseRemoveInterceptParameters=function(e){return Un(e,Zn.Network.RemoveInterceptParametersSchema)}}(Fn||(un.Network=Fn={})),function(e){e.parseGetRealmsParams=function(e){return Un(e,Zn.Script.GetRealmsParametersSchema)},e.parseEvaluateParams=function(e){return Un(e,Zn.Script.EvaluateParametersSchema)},e.parseDisownParams=function(e){return Un(e,Zn.Script.DisownParametersSchema)},e.parseAddPreloadScriptParams=function(e){return Un(e,Zn.Script.AddPreloadScriptParametersSchema)},e.parseRemovePreloadScriptParams=function(e){return Un(e,Zn.Script.RemovePreloadScriptParametersSchema)},e.parseCallFunctionParams=function(e){return Un(e,Zn.Script.CallFunctionParametersSchema)}}(qn||(un.Script=qn={})),function(e){e.parseActivateParams=function(e){return Un(e,Zn.BrowsingContext.ActivateParametersSchema)},e.parseGetTreeParams=function(e){return Un(e,Zn.BrowsingContext.GetTreeParametersSchema)},e.parseNavigateParams=function(e){return Un(e,Zn.BrowsingContext.NavigateParametersSchema)},e.parseReloadParams=function(e){return Un(e,Zn.BrowsingContext.ReloadParametersSchema)},e.parseCreateParams=function(e){return Un(e,Zn.BrowsingContext.CreateParametersSchema)},e.parseCloseParams=function(e){return Un(e,Zn.BrowsingContext.CloseParametersSchema)},e.parseCaptureScreenshotParams=function(e){return Un(e,Zn.BrowsingContext.CaptureScreenshotParametersSchema)},e.parsePrintParams=function(e){return Un(e,Zn.BrowsingContext.PrintParametersSchema)},e.parseSetViewportParams=function(e){return Un(e,Zn.BrowsingContext.SetViewportParametersSchema)},e.parseTraverseHistoryParams=function(e){return Un(e,Zn.BrowsingContext.TraverseHistoryParametersSchema)},e.parseHandleUserPromptParameters=function(e){return Un(e,Zn.BrowsingContext.HandleUserPromptParametersSchema)}}(Vn||(un.BrowsingContext=Vn={})),function(e){e.parseSubscribeParams=function(e){return Un(e,Zn.Session.SubscriptionRequestSchema)}}($n||(un.Session=$n={})),function(e){e.parsePerformActionsParams=function(e){return Un(e,Zn.Input.PerformActionsParametersSchema)},e.parseReleaseActionsParams=function(e){return Un(e,Zn.Input.ReleaseActionsParametersSchema)},e.parseSetFilesParams=function(e){return Un(e,Zn.Input.SetFilesParametersSchema)}}(Kn||(un.Input=Kn={})),function(e){e.parseGetCookiesParams=function(e){return Un(e,Zn.Storage.GetCookiesParametersSchema)},e.parseSetCookieParams=function(e){return Un(e,Zn.Storage.SetCookieParametersSchema)},e.parseDeleteCookiesParams=function(e){return Un(e,Zn.Storage.DeleteCookiesParametersSchema)}}(Hn||(un.Storage=Hn={})),function(e){const t=zn.z.object({method:zn.z.string(),params:zn.z.object({}).passthrough().optional(),session:zn.z.string().optional()}),a=zn.z.object({context:Zn.BrowsingContext.BrowsingContextSchema});e.parseSendCommandRequest=function(e){return Un(e,t)},e.parseGetSessionRequest=function(e){return Un(e,a)}}(Wn||(un.Cdp=Wn={})),function(e){e.parseSetPermissionsParams=function(e){return Un(e,Ln.Permissions.SetPermissionParametersSchema)}}(Jn||(un.Permissions=Jn={}));var Gn=e&&e.__createBinding||(Object.create?function(e,t,a,r){void 0===r&&(r=a);var n=Object.getOwnPropertyDescriptor(t,a);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,n)}:function(e,t,a,r){void 0===r&&(r=a),e[r]=t[a]}),Xn=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Yn=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&Gn(t,e,a);return Xn(t,e),t};Object.defineProperty(dn,"__esModule",{value:!0}),dn.BidiParser=void 0;const Qn=Yn(un);dn.BidiParser=class{parseActivateParams(e){return Qn.BrowsingContext.parseActivateParams(e)}parseCaptureScreenshotParams(e){return Qn.BrowsingContext.parseCaptureScreenshotParams(e)}parseCloseParams(e){return Qn.BrowsingContext.parseCloseParams(e)}parseCreateParams(e){return Qn.BrowsingContext.parseCreateParams(e)}parseGetTreeParams(e){return Qn.BrowsingContext.parseGetTreeParams(e)}parseHandleUserPromptParams(e){return Qn.BrowsingContext.parseHandleUserPromptParameters(e)}parseNavigateParams(e){return Qn.BrowsingContext.parseNavigateParams(e)}parsePrintParams(e){return Qn.BrowsingContext.parsePrintParams(e)}parseReloadParams(e){return Qn.BrowsingContext.parseReloadParams(e)}parseSetViewportParams(e){return Qn.BrowsingContext.parseSetViewportParams(e)}parseTraverseHistoryParams(e){return Qn.BrowsingContext.parseTraverseHistoryParams(e)}parseGetSessionParams(e){return Qn.Cdp.parseGetSessionRequest(e)}parseSendCommandParams(e){return Qn.Cdp.parseSendCommandRequest(e)}parsePerformActionsParams(e){return Qn.Input.parsePerformActionsParams(e)}parseReleaseActionsParams(e){return Qn.Input.parseReleaseActionsParams(e)}parseSetFilesParams(e){return Qn.Input.parseSetFilesParams(e)}parseAddInterceptParams(e){return Qn.Network.parseAddInterceptParameters(e)}parseContinueRequestParams(e){return Qn.Network.parseContinueRequestParameters(e)}parseContinueResponseParams(e){return Qn.Network.parseContinueResponseParameters(e)}parseContinueWithAuthParams(e){return Qn.Network.parseContinueWithAuthParameters(e)}parseFailRequestParams(e){return Qn.Network.parseFailRequestParameters(e)}parseProvideResponseParams(e){return Qn.Network.parseProvideResponseParameters(e)}parseRemoveInterceptParams(e){return Qn.Network.parseRemoveInterceptParameters(e)}parseSetPermissionsParams(e){return Qn.Permissions.parseSetPermissionsParams(e)}parseAddPreloadScriptParams(e){return Qn.Script.parseAddPreloadScriptParams(e)}parseCallFunctionParams(e){return Qn.Script.parseCallFunctionParams(e)}parseDisownParams(e){return Qn.Script.parseDisownParams(e)}parseEvaluateParams(e){return Qn.Script.parseEvaluateParams(e)}parseGetRealmsParams(e){return Qn.Script.parseGetRealmsParams(e)}parseRemovePreloadScriptParams(e){return Qn.Script.parseRemovePreloadScriptParams(e)}parseSubscribeParams(e){return Qn.Session.parseSubscribeParams(e)}parseDeleteCookiesParams(e){return Qn.Storage.parseDeleteCookiesParams(e)}parseGetCookiesParams(e){return Qn.Storage.parseGetCookiesParams(e)}parseSetCookieParams(e){return Qn.Storage.parseSetCookieParams(e)}};var es={};Object.defineProperty(es,"__esModule",{value:!0}),es.log=es.generatePage=void 0;const ts=l;function as(e){const t=e.split(":")[0],a=`${t}_log`,r=document.getElementById(a);if(r)return r;const n=document.getElementById("details"),s=document.createElement("div");s.className="divider",n.appendChild(s);const o=document.createElement("div");return o.className="item",o.innerHTML=`

${t}

`,n.appendChild(o),document.getElementById(a)}function rs(e){return"object"==typeof e?JSON.stringify(e,null,2):e}es.generatePage=function(){globalThis.document.documentElement&&(globalThis.document.documentElement.innerHTML='BiDi-CDP Mapper

BiDi-CDP Mapper is controlling this tab

Closing or reloading it will stop the BiDi process. Details.

Debug information
',as(ts.LogType.debugInfo),as(ts.LogType.bidi),as(ts.LogType.cdp))},es.log=function(t,...a){if(!globalThis.document.documentElement)return;t.startsWith(ts.LogType.bidi)||e.window?.sendDebugMessage?.(JSON.stringify({logType:t,messages:a}));const r=as(t),n=document.createElement("div");n.className="pre",n.textContent=[t,...a].map(rs).join(" "),r.appendChild(n)};var ns={};Object.defineProperty(ns,"__esModule",{value:!0}),ns.WindowCdpTransport=ns.WindowBidiTransport=void 0;const ss=l,os=es;class is{static LOGGER_PREFIX_RECV=`${ss.LogType.bidi}:RECV \u25c2`;static LOGGER_PREFIX_SEND=`${ss.LogType.bidi}:SEND \u25b8`;#sr=null;constructor(){window.onBidiMessage=e=>{(0,os.log)(is.LOGGER_PREFIX_RECV,e);try{const t=is.#ir(e);this.#sr?.call(null,t)}catch(t){const a=t instanceof Error?t:new Error(t);this.#cr(e,"invalid argument",a,null)}}}setOnMessage(e){this.#sr=e}sendMessage(e){(0,os.log)(is.LOGGER_PREFIX_SEND,e);const t=JSON.stringify(e);window.sendBidiResponse(t)}close(){this.#sr=null,window.onBidiMessage=null}#cr(e,t,a,r){const n=is.#dr(e,t,a);r?this.sendMessage({...n,channel:r}):this.sendMessage(n)}static#ur(e){return null===e?"null":Array.isArray(e)?"array":typeof e}static#dr(e,t,a){let r;try{const t=JSON.parse(e);"object"===is.#ur(t)&&"id"in t&&(r=t.id)}catch{}return{type:"error",id:r,error:t,message:a.message}}static#ir(e){let t;try{t=JSON.parse(e)}catch{throw new Error("Cannot parse data as JSON")}const a=is.#ur(t);if("object"!==a)throw new Error(`Expected JSON object but got ${a}`);const{id:r,method:n,params:s}=t,o=is.#ur(r);if("number"!==o||!Number.isInteger(r)||r<0)throw new Error(`Expected unsigned integer but got ${o}`);const i=is.#ur(n);if("string"!==i)throw new Error(`Expected string method but got ${i}`);const c=is.#ur(s);if("object"!==c)throw new Error(`Expected object params but got ${c}`);let d=t.channel;if(void 0!==d){const e=is.#ur(d);if("string"!==e)throw new Error(`Expected string channel but got ${e}`);""===d&&(d=void 0)}return{id:r,method:n,params:s,channel:d}}}ns.WindowBidiTransport=is;ns.WindowCdpTransport=class{#sr=null;constructor(){window.cdp.onmessage=e=>{this.#sr?.call(null,e)}}setOnMessage(e){this.#sr=e}sendMessage(e){window.cdp.send(e)}close(){this.#sr=null,window.cdp.onmessage=null}}, /** * Copyright 2021 Google LLC. * Copyright (c) Microsoft Corporation. @@ -17,5 +17,5 @@ var mapperTab=function(){"use strict";var e="undefined"!=typeof globalThis?globa * * @license */ -Object.defineProperty(a,"__esModule",{value:!0});const En=r,_n=Rr,Tn=l,Nn=Ar,jn=wn,Mn=In;(0,jn.generatePage)();const On=new Mn.WindowBidiTransport,An=new Mn.WindowCdpTransport,Bn=new _n.CdpConnection(An,jn.log);async function Dn(e,t){console.log("Launching Mapper instance with selfTargetId:",e);const a=await En.BidiServer.createAndStart(On,Bn,await Bn.createBrowserSession(),e,t,new Nn.BidiParser,jn.log);return(0,jn.log)(Tn.LogType.debugInfo,"Mapper instance has been launched"),a}return window.runMapperInstance=async(e,t)=>{await Dn(e,t)},window.setSelfTargetId=async e=>{(await Dn(e)).emitOutgoingMessage(En.OutgoingMessage.createResolved({launched:!0}),"launched")},a}(); +Object.defineProperty(a,"__esModule",{value:!0});const cs=r,ds=en,us=l,ls=dn,hs=es,ps=ns;(0,hs.generatePage)();const ms=new ps.WindowBidiTransport,fs=new ps.WindowCdpTransport,gs=new ds.MapperCdpConnection(fs,hs.log);return window.runMapperInstance=async(e,t)=>{await async function(e,t){console.log("Launching Mapper instance with selfTargetId:",e);const a=await cs.BidiServer.createAndStart(ms,gs,await gs.createBrowserSession(),e,t,new ls.BidiParser,hs.log);return(0,hs.log)(us.LogType.debugInfo,"Mapper instance has been launched"),a}(e,t)},a}(); //# sourceMappingURL=mapperTab.js.map diff --git a/Scripts/node_modules/chromium-bidi/lib/iife/mapperTab.js.map b/Scripts/node_modules/chromium-bidi/lib/iife/mapperTab.js.map index 748d2cb0..ed0521c9 100644 --- a/Scripts/node_modules/chromium-bidi/lib/iife/mapperTab.js.map +++ b/Scripts/node_modules/chromium-bidi/lib/iife/mapperTab.js.map @@ -1 +1 @@ -{"version":3,"file":"mapperTab.js","sources":["../../node_modules/mitt/dist/mitt.mjs","../cjs/utils/EventEmitter.js","../cjs/utils/log.js","../cjs/utils/ProcessingQueue.js","../cjs/protocol/cdp.js","../cjs/protocol/chromium-bidi.js","../cjs/protocol/webdriver-bidi.js","../cjs/protocol/ErrorResponse.js","../cjs/protocol/protocol.js","../cjs/bidiMapper/BidiNoOpParser.js","../cjs/bidiMapper/domains/browser/BrowserProcessor.js","../cjs/bidiMapper/domains/cdp/CdpProcessor.js","../cjs/utils/uuid.js","../cjs/bidiMapper/domains/script/ChannelProxy.js","../cjs/bidiMapper/domains/script/Realm.js","../cjs/utils/assert.js","../cjs/utils/Deferred.js","../cjs/utils/unitConversions.js","../cjs/bidiMapper/domains/context/BrowsingContextImpl.js","../cjs/bidiMapper/domains/log/logHelper.js","../cjs/bidiMapper/domains/log/LogManager.js","../cjs/bidiMapper/domains/network/NetworkUtils.js","../cjs/bidiMapper/domains/network/NetworkRequest.js","../cjs/bidiMapper/domains/network/NetworkManager.js","../cjs/bidiMapper/domains/context/CdpTarget.js","../cjs/bidiMapper/domains/context/BrowsingContextProcessor.js","../cjs/bidiMapper/domains/input/InputSource.js","../cjs/bidiMapper/domains/input/keyUtils.js","../cjs/bidiMapper/domains/input/USKeyboardLayout.js","../cjs/bidiMapper/domains/input/ActionDispatcher.js","../cjs/utils/Mutex.js","../cjs/bidiMapper/domains/input/InputState.js","../cjs/bidiMapper/domains/input/InputStateManager.js","../cjs/bidiMapper/domains/input/InputProcessor.js","../../node_modules/urlpattern-polyfill/dist/urlpattern.cjs","../../node_modules/urlpattern-polyfill/index.cjs","../cjs/utils/UrlPattern.js","../cjs/bidiMapper/domains/network/NetworkStorage.js","../cjs/bidiMapper/domains/network/NetworkProcessor.js","../cjs/bidiMapper/domains/script/PreloadScriptStorage.js","../cjs/bidiMapper/domains/script/PreloadScript.js","../cjs/bidiMapper/domains/script/ScriptProcessor.js","../cjs/bidiMapper/domains/session/SessionProcessor.js","../cjs/bidiMapper/OutgoingMessage.js","../cjs/bidiMapper/CommandProcessor.js","../cjs/bidiMapper/domains/context/BrowsingContextStorage.js","../cjs/utils/Buffer.js","../cjs/utils/DefaultMap.js","../cjs/utils/IdWrapper.js","../cjs/bidiMapper/domains/events/events.js","../cjs/bidiMapper/domains/events/SubscriptionManager.js","../cjs/bidiMapper/domains/events/EventManager.js","../cjs/bidiMapper/domains/script/RealmStorage.js","../cjs/bidiMapper/BidiServer.js","../cjs/bidiMapper/BidiMapper.js","../cjs/cdp/CdpClient.js","../cjs/cdp/CdpConnection.js","../../node_modules/zod/lib/helpers/util.js","../../node_modules/zod/lib/ZodError.js","../../node_modules/zod/lib/locales/en.js","../../node_modules/zod/lib/errors.js","../../node_modules/zod/lib/helpers/parseUtil.js","../../node_modules/zod/lib/helpers/typeAliases.js","../../node_modules/zod/lib/helpers/errorUtil.js","../../node_modules/zod/lib/types.js","../../node_modules/zod/lib/external.js","../../node_modules/zod/lib/index.js","../cjs/protocol-parser/webdriver-bidi.js","../cjs/protocol-parser/protocol-parser.js","../cjs/bidiTab/BidiParser.js","../cjs/bidiTab/mapperTabPage.js","../cjs/bidiTab/Transport.js","../cjs/bidiTab/bidiTab.js"],"sourcesContent":["export default function(n){return{all:n=n||new Map,on:function(t,e){var i=n.get(t);i?i.push(e):n.set(t,[e])},off:function(t,e){var i=n.get(t);i&&(e?i.splice(i.indexOf(e)>>>0,1):n.set(t,[]))},emit:function(t,e){var i=n.get(t);i&&i.slice().map(function(n){n(e)}),(i=n.get(\"*\"))&&i.slice().map(function(n){n(t,e)})}}}\n//# sourceMappingURL=mitt.mjs.map\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.EventEmitter = void 0;\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nconst mitt_1 = __importDefault(require(\"mitt\"));\nclass EventEmitter {\n #emitter = (0, mitt_1.default)();\n on(type, handler) {\n this.#emitter.on(type, handler);\n return this;\n }\n /**\n * Like `on` but the listener will only be fired once and then it will be removed.\n * @param event The event you'd like to listen to\n * @param handler The handler function to run when the event occurs\n * @return `this` to enable chaining method calls.\n */\n once(event, handler) {\n const onceHandler = (eventData) => {\n handler(eventData);\n this.off(event, onceHandler);\n };\n return this.on(event, onceHandler);\n }\n off(type, handler) {\n this.#emitter.off(type, handler);\n return this;\n }\n /**\n * Emits an event and call any associated listeners.\n *\n * @param event The event to emit.\n * @param eventData Any data to emit with the event.\n * @return `true` if there are any listeners, `false` otherwise.\n */\n emit(event, eventData) {\n this.#emitter.emit(event, eventData);\n }\n /**\n * Removes all listeners. If given an event argument, it will remove only\n * listeners for that event.\n * @param event - the event to remove listeners for.\n * @returns `this` to enable you to chain method calls.\n */\n removeAllListeners(event) {\n if (event) {\n this.#emitter.all.delete(event);\n }\n else {\n this.#emitter.all.clear();\n }\n return this;\n }\n}\nexports.EventEmitter = EventEmitter;\n//# sourceMappingURL=EventEmitter.js.map","\"use strict\";\n/**\n * Copyright 2021 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.LogType = void 0;\nvar LogType;\n(function (LogType) {\n // keep-sorted start\n LogType[\"bidi\"] = \"bidi\";\n LogType[\"cdp\"] = \"cdp\";\n LogType[\"debug\"] = \"debug\";\n LogType[\"debugError\"] = \"debug:error\";\n LogType[\"debugInfo\"] = \"debug:info\";\n // keep-sorted end\n})(LogType || (exports.LogType = LogType = {}));\n//# sourceMappingURL=log.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ProcessingQueue = void 0;\nconst log_js_1 = require(\"./log.js\");\nclass ProcessingQueue {\n static LOGGER_PREFIX = `${log_js_1.LogType.debug}:queue`;\n #logger;\n #processor;\n #queue = [];\n // Flag to keep only 1 active processor.\n #isProcessing = false;\n constructor(processor, logger) {\n this.#processor = processor;\n this.#logger = logger;\n }\n add(entry, name) {\n this.#queue.push([entry, name]);\n // No need in waiting. Just initialize processor if needed.\n void this.#processIfNeeded();\n }\n async #processIfNeeded() {\n if (this.#isProcessing) {\n return;\n }\n this.#isProcessing = true;\n while (this.#queue.length > 0) {\n const arrayEntry = this.#queue.shift();\n if (!arrayEntry) {\n continue;\n }\n const [entryPromise, name] = arrayEntry;\n this.#logger?.(ProcessingQueue.LOGGER_PREFIX, 'Processing event:', name);\n await entryPromise\n .then((entry) => {\n if (entry.kind === 'error') {\n this.#logger?.(log_js_1.LogType.debugError, 'Event threw before sending:', entry.error.message, entry.error.stack);\n return;\n }\n return this.#processor(entry.value);\n })\n .catch((error) => {\n this.#logger?.(log_js_1.LogType.debugError, 'Event was not processed:', error?.message);\n });\n }\n this.#isProcessing = false;\n }\n}\nexports.ProcessingQueue = ProcessingQueue;\n//# sourceMappingURL=ProcessingQueue.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=cdp.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.EVENT_NAMES = exports.Network = exports.BrowsingContext = exports.Log = exports.Script = exports.BiDiModule = void 0;\n// keep-sorted end\nvar BiDiModule;\n(function (BiDiModule) {\n // keep-sorted start\n BiDiModule[\"Browser\"] = \"browser\";\n BiDiModule[\"BrowsingContext\"] = \"browsingContext\";\n BiDiModule[\"Cdp\"] = \"cdp\";\n BiDiModule[\"Input\"] = \"input\";\n BiDiModule[\"Log\"] = \"log\";\n BiDiModule[\"Network\"] = \"network\";\n BiDiModule[\"Script\"] = \"script\";\n BiDiModule[\"Session\"] = \"session\";\n // keep-sorted end\n})(BiDiModule || (exports.BiDiModule = BiDiModule = {}));\nvar Script;\n(function (Script) {\n let EventNames;\n (function (EventNames) {\n // keep-sorted start\n EventNames[\"Message\"] = \"script.message\";\n EventNames[\"RealmCreated\"] = \"script.realmCreated\";\n EventNames[\"RealmDestroyed\"] = \"script.realmDestroyed\";\n // keep-sorted end\n })(EventNames = Script.EventNames || (Script.EventNames = {}));\n})(Script || (exports.Script = Script = {}));\nvar Log;\n(function (Log) {\n let EventNames;\n (function (EventNames) {\n EventNames[\"LogEntryAdded\"] = \"log.entryAdded\";\n })(EventNames = Log.EventNames || (Log.EventNames = {}));\n})(Log || (exports.Log = Log = {}));\nvar BrowsingContext;\n(function (BrowsingContext) {\n let EventNames;\n (function (EventNames) {\n // keep-sorted start\n EventNames[\"ContextCreated\"] = \"browsingContext.contextCreated\";\n EventNames[\"ContextDestroyed\"] = \"browsingContext.contextDestroyed\";\n EventNames[\"DomContentLoaded\"] = \"browsingContext.domContentLoaded\";\n EventNames[\"DownloadWillBegin\"] = \"browsingContext.downloadWillBegin\";\n EventNames[\"FragmentNavigated\"] = \"browsingContext.fragmentNavigated\";\n EventNames[\"Load\"] = \"browsingContext.load\";\n EventNames[\"NavigationAborted\"] = \"browsingContext.navigationAborted\";\n EventNames[\"NavigationFailed\"] = \"browsingContext.navigationFailed\";\n EventNames[\"NavigationStarted\"] = \"browsingContext.navigationStarted\";\n EventNames[\"UserPromptClosed\"] = \"browsingContext.userPromptClosed\";\n EventNames[\"UserPromptOpened\"] = \"browsingContext.userPromptOpened\";\n // keep-sorted end\n })(EventNames = BrowsingContext.EventNames || (BrowsingContext.EventNames = {}));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\nvar Network;\n(function (Network) {\n let EventNames;\n (function (EventNames) {\n // keep-sorted start\n EventNames[\"AuthRequired\"] = \"network.authRequired\";\n EventNames[\"BeforeRequestSent\"] = \"network.beforeRequestSent\";\n EventNames[\"FetchError\"] = \"network.fetchError\";\n EventNames[\"ResponseCompleted\"] = \"network.responseCompleted\";\n EventNames[\"ResponseStarted\"] = \"network.responseStarted\";\n // keep-sorted end\n })(EventNames = Network.EventNames || (Network.EventNames = {}));\n})(Network || (exports.Network = Network = {}));\nexports.EVENT_NAMES = new Set([\n // keep-sorted start\n ...Object.values(BiDiModule),\n ...Object.values(BrowsingContext.EventNames),\n ...Object.values(Log.EventNames),\n ...Object.values(Network.EventNames),\n ...Object.values(Script.EventNames),\n // keep-sorted end\n]);\n//# sourceMappingURL=chromium-bidi.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=webdriver-bidi.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.UnsupportedOperationException = exports.UnableToCloseBrowserException = exports.UnableToCaptureScreenException = exports.UnknownErrorException = exports.UnknownCommandException = exports.SessionNotCreatedException = exports.NoSuchScriptException = exports.NoSuchRequestException = exports.NoSuchNodeException = exports.NoSuchInterceptException = exports.NoSuchHistoryEntryException = exports.NoSuchHandleException = exports.NoSuchFrameException = exports.NoSuchElementException = exports.NoSuchAlertException = exports.MoveTargetOutOfBoundsException = exports.InvalidSessionIdException = exports.InvalidArgumentException = exports.Exception = void 0;\nclass Exception {\n error;\n message;\n stacktrace;\n constructor(error, message, stacktrace) {\n this.error = error;\n this.message = message;\n this.stacktrace = stacktrace;\n }\n toErrorResponse(commandId) {\n return {\n type: 'error',\n id: commandId,\n error: this.error,\n message: this.message,\n stacktrace: this.stacktrace,\n };\n }\n}\nexports.Exception = Exception;\nclass InvalidArgumentException extends Exception {\n constructor(message, stacktrace) {\n super(\"invalid argument\" /* ErrorCode.InvalidArgument */, message, stacktrace);\n }\n}\nexports.InvalidArgumentException = InvalidArgumentException;\nclass InvalidSessionIdException extends Exception {\n constructor(message, stacktrace) {\n super(\"invalid session id\" /* ErrorCode.InvalidSessionId */, message, stacktrace);\n }\n}\nexports.InvalidSessionIdException = InvalidSessionIdException;\nclass MoveTargetOutOfBoundsException extends Exception {\n constructor(message, stacktrace) {\n super(\"move target out of bounds\" /* ErrorCode.MoveTargetOutOfBounds */, message, stacktrace);\n }\n}\nexports.MoveTargetOutOfBoundsException = MoveTargetOutOfBoundsException;\nclass NoSuchAlertException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such alert\" /* ErrorCode.NoSuchAlert */, message, stacktrace);\n }\n}\nexports.NoSuchAlertException = NoSuchAlertException;\nclass NoSuchElementException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such element\" /* ErrorCode.NoSuchElement */, message, stacktrace);\n }\n}\nexports.NoSuchElementException = NoSuchElementException;\nclass NoSuchFrameException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such frame\" /* ErrorCode.NoSuchFrame */, message, stacktrace);\n }\n}\nexports.NoSuchFrameException = NoSuchFrameException;\nclass NoSuchHandleException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such handle\" /* ErrorCode.NoSuchHandle */, message, stacktrace);\n }\n}\nexports.NoSuchHandleException = NoSuchHandleException;\nclass NoSuchHistoryEntryException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such history entry\" /* ErrorCode.NoSuchHistoryEntry */, message, stacktrace);\n }\n}\nexports.NoSuchHistoryEntryException = NoSuchHistoryEntryException;\nclass NoSuchInterceptException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such intercept\" /* ErrorCode.NoSuchIntercept */, message, stacktrace);\n }\n}\nexports.NoSuchInterceptException = NoSuchInterceptException;\nclass NoSuchNodeException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such node\" /* ErrorCode.NoSuchNode */, message, stacktrace);\n }\n}\nexports.NoSuchNodeException = NoSuchNodeException;\nclass NoSuchRequestException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such request\" /* ErrorCode.NoSuchRequest */, message, stacktrace);\n }\n}\nexports.NoSuchRequestException = NoSuchRequestException;\nclass NoSuchScriptException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such script\" /* ErrorCode.NoSuchScript */, message, stacktrace);\n }\n}\nexports.NoSuchScriptException = NoSuchScriptException;\nclass SessionNotCreatedException extends Exception {\n constructor(message, stacktrace) {\n super(\"session not created\" /* ErrorCode.SessionNotCreated */, message, stacktrace);\n }\n}\nexports.SessionNotCreatedException = SessionNotCreatedException;\nclass UnknownCommandException extends Exception {\n constructor(message, stacktrace) {\n super(\"unknown command\" /* ErrorCode.UnknownCommand */, message, stacktrace);\n }\n}\nexports.UnknownCommandException = UnknownCommandException;\nclass UnknownErrorException extends Exception {\n constructor(message, stacktrace = new Error().stack) {\n super(\"unknown error\" /* ErrorCode.UnknownError */, message, stacktrace);\n }\n}\nexports.UnknownErrorException = UnknownErrorException;\nclass UnableToCaptureScreenException extends Exception {\n constructor(message, stacktrace) {\n super(\"unable to capture screen\" /* ErrorCode.UnableToCaptureScreen */, message, stacktrace);\n }\n}\nexports.UnableToCaptureScreenException = UnableToCaptureScreenException;\nclass UnableToCloseBrowserException extends Exception {\n constructor(message, stacktrace) {\n super(\"unable to close browser\" /* ErrorCode.UnableToCloseBrowser */, message, stacktrace);\n }\n}\nexports.UnableToCloseBrowserException = UnableToCloseBrowserException;\nclass UnsupportedOperationException extends Exception {\n constructor(message, stacktrace) {\n super(\"unsupported operation\" /* ErrorCode.UnsupportedOperation */, message, stacktrace);\n }\n}\nexports.UnsupportedOperationException = UnsupportedOperationException;\n//# sourceMappingURL=ErrorResponse.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ChromiumBidi = exports.Cdp = void 0;\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexports.Cdp = __importStar(require(\"./cdp.js\"));\nexports.ChromiumBidi = __importStar(require(\"./chromium-bidi.js\"));\n__exportStar(require(\"./webdriver-bidi.js\"), exports);\n__exportStar(require(\"./ErrorResponse.js\"), exports);\n//# sourceMappingURL=protocol.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BidiNoOpParser = void 0;\nclass BidiNoOpParser {\n // Browsing Context domain\n // keep-sorted start block=yes\n parseActivateParams(params) {\n return params;\n }\n parseCaptureScreenshotParams(params) {\n return params;\n }\n parseCloseParams(params) {\n return params;\n }\n parseCreateParams(params) {\n return params;\n }\n parseGetTreeParams(params) {\n return params;\n }\n parseHandleUserPromptParams(params) {\n return params;\n }\n parseNavigateParams(params) {\n return params;\n }\n parsePrintParams(params) {\n return params;\n }\n parseReloadParams(params) {\n return params;\n }\n parseSetViewportParams(params) {\n return params;\n }\n parseTraverseHistoryParams(params) {\n return params;\n }\n // keep-sorted end\n // CDP domain\n // keep-sorted start block=yes\n parseGetSessionParams(params) {\n return params;\n }\n parseSendCommandParams(params) {\n return params;\n }\n // keep-sorted end\n // Script domain\n // keep-sorted start block=yes\n parseAddPreloadScriptParams(params) {\n return params;\n }\n parseCallFunctionParams(params) {\n return params;\n }\n parseDisownParams(params) {\n return params;\n }\n parseEvaluateParams(params) {\n return params;\n }\n parseGetRealmsParams(params) {\n return params;\n }\n parseRemovePreloadScriptParams(params) {\n return params;\n }\n // keep-sorted end\n // Input domain\n // keep-sorted start block=yes\n parsePerformActionsParams(params) {\n return params;\n }\n parseReleaseActionsParams(params) {\n return params;\n }\n // keep-sorted end\n // Network domain\n // keep-sorted start block=yes\n parseAddInterceptParams(params) {\n return params;\n }\n parseContinueRequestParams(params) {\n return params;\n }\n parseContinueResponseParams(params) {\n return params;\n }\n parseContinueWithAuthParams(params) {\n return params;\n }\n parseFailRequestParams(params) {\n return params;\n }\n parseProvideResponseParams(params) {\n return params;\n }\n parseRemoveInterceptParams(params) {\n return params;\n }\n // keep-sorted end\n // Session domain\n // keep-sorted start block=yes\n parseSubscribeParams(params) {\n return params;\n }\n}\nexports.BidiNoOpParser = BidiNoOpParser;\n//# sourceMappingURL=BidiNoOpParser.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BrowserProcessor = void 0;\nclass BrowserProcessor {\n #browserCdpClient;\n constructor(browserCdpClient) {\n this.#browserCdpClient = browserCdpClient;\n }\n close() {\n // Ensure that it is put at the end of the event loop.\n // This way we send back the response before closing the tab.\n setTimeout(() => this.#browserCdpClient.sendCommand('Browser.close'), 0);\n return {};\n }\n}\nexports.BrowserProcessor = BrowserProcessor;\n//# sourceMappingURL=BrowserProcessor.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CdpProcessor = void 0;\nclass CdpProcessor {\n #browsingContextStorage;\n #cdpConnection;\n #browserCdpClient;\n constructor(browsingContextStorage, cdpConnection, browserCdpClient) {\n this.#browsingContextStorage = browsingContextStorage;\n this.#cdpConnection = cdpConnection;\n this.#browserCdpClient = browserCdpClient;\n }\n getSession(params) {\n const context = params.context;\n const sessionId = this.#browsingContextStorage.getContext(context).cdpTarget.cdpSessionId;\n if (sessionId === undefined) {\n return {};\n }\n return { session: sessionId };\n }\n async sendCommand(params) {\n const client = params.session\n ? this.#cdpConnection.getCdpClient(params.session)\n : this.#browserCdpClient;\n const result = await client.sendCommand(params.method, params.params);\n return {\n result,\n session: params.session,\n };\n }\n}\nexports.CdpProcessor = CdpProcessor;\n//# sourceMappingURL=CdpProcessor.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uuidv4 = void 0;\n/**\n * Generates a random v4 UUID, as specified in RFC4122.\n *\n * Uses the native Web Crypto API if available, otherwise falls back to a\n * polyfill.\n *\n * Example: '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'\n */\nfunction uuidv4() {\n // Available only in secure contexts\n // https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API\n if ('crypto' in globalThis && 'randomUUID' in globalThis.crypto) {\n // Node with\n // https://nodejs.org/dist/latest-v20.x/docs/api/globals.html#crypto_1 or\n // secure browser context.\n return globalThis.crypto.randomUUID();\n }\n const randomValues = new Uint8Array(16);\n if ('crypto' in globalThis && 'getRandomValues' in globalThis.crypto) {\n // Node with\n // https://nodejs.org/dist/latest-v20.x/docs/api/globals.html#crypto_1 or\n // browser.\n globalThis.crypto.getRandomValues(randomValues);\n }\n else {\n // Node without\n // https://nodejs.org/dist/latest-v20.x/docs/api/globals.html#crypto_1.\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require('crypto').webcrypto.getRandomValues(randomValues);\n }\n // Set version (4) and variant (RFC4122) bits.\n randomValues[6] = (randomValues[6] & 0x0f) | 0x40;\n randomValues[8] = (randomValues[8] & 0x3f) | 0x80;\n const bytesToHex = (bytes) => bytes.reduce((str, byte) => str + byte.toString(16).padStart(2, '0'), '');\n return [\n bytesToHex(randomValues.subarray(0, 4)),\n bytesToHex(randomValues.subarray(4, 6)),\n bytesToHex(randomValues.subarray(6, 8)),\n bytesToHex(randomValues.subarray(8, 10)),\n bytesToHex(randomValues.subarray(10, 16)),\n ].join('-');\n}\nexports.uuidv4 = uuidv4;\n//# sourceMappingURL=uuid.js.map","\"use strict\";\n/*\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ChannelProxy = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst log_js_1 = require(\"../../../utils/log.js\");\nconst uuid_js_1 = require(\"../../../utils/uuid.js\");\n/**\n * Used to send messages from realm to BiDi user.\n */\nclass ChannelProxy {\n #properties;\n #id = (0, uuid_js_1.uuidv4)();\n #logger;\n constructor(channel, logger) {\n this.#properties = channel;\n this.#logger = logger;\n }\n /**\n * Creates a channel proxy in the given realm, initialises listener and\n * returns a handle to `sendMessage` delegate.\n */\n async init(realm, eventManager) {\n const channelHandle = await ChannelProxy.#createAndGetHandleInRealm(realm);\n const sendMessageHandle = await ChannelProxy.#createSendMessageHandle(realm, channelHandle);\n void this.#startListener(realm, channelHandle, eventManager);\n return sendMessageHandle;\n }\n /** Gets a ChannelProxy from window and returns its handle. */\n async startListenerFromWindow(realm, eventManager) {\n try {\n const channelHandle = await this.#getHandleFromWindow(realm);\n void this.#startListener(realm, channelHandle, eventManager);\n }\n catch (error) {\n this.#logger?.(log_js_1.LogType.debugError, error);\n }\n }\n /**\n * Evaluation string which creates a ChannelProxy object on the client side.\n */\n static #createChannelProxyEvalStr() {\n const functionStr = String(() => {\n const queue = [];\n let queueNonEmptyResolver = null;\n return {\n /**\n * Gets a promise, which is resolved as soon as a message occurs\n * in the queue.\n */\n async getMessage() {\n const onMessage = queue.length > 0\n ? Promise.resolve()\n : new Promise((resolve) => {\n queueNonEmptyResolver = resolve;\n });\n await onMessage;\n return queue.shift();\n },\n /**\n * Adds a message to the queue.\n * Resolves the pending promise if needed.\n */\n sendMessage(message) {\n queue.push(message);\n if (queueNonEmptyResolver !== null) {\n queueNonEmptyResolver();\n queueNonEmptyResolver = null;\n }\n },\n };\n });\n return `(${functionStr})()`;\n }\n /** Creates a ChannelProxy in the given realm. */\n static async #createAndGetHandleInRealm(realm) {\n const createChannelHandleResult = await realm.cdpClient.sendCommand('Runtime.evaluate', {\n expression: this.#createChannelProxyEvalStr(),\n contextId: realm.executionContextId,\n serializationOptions: {\n serialization: \"idOnly\" /* Protocol.Runtime.SerializationOptionsSerialization.IdOnly */,\n },\n });\n if (createChannelHandleResult.exceptionDetails ||\n createChannelHandleResult.result.objectId === undefined) {\n throw new Error(`Cannot create channel`);\n }\n return createChannelHandleResult.result.objectId;\n }\n /** Gets a handle to `sendMessage` delegate from the ChannelProxy handle. */\n static async #createSendMessageHandle(realm, channelHandle) {\n const sendMessageArgResult = await realm.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((channelHandle) => {\n return channelHandle.sendMessage;\n }),\n arguments: [{ objectId: channelHandle }],\n executionContextId: realm.executionContextId,\n serializationOptions: {\n serialization: \"idOnly\" /* Protocol.Runtime.SerializationOptionsSerialization.IdOnly */,\n },\n });\n // TODO: check for exceptionDetails.\n return sendMessageArgResult.result.objectId;\n }\n /** Starts listening for the channel events of the provided ChannelProxy. */\n async #startListener(realm, channelHandle, eventManager) {\n // noinspection InfiniteLoopJS\n for (;;) {\n try {\n const message = await realm.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String(async (channelHandle) => await channelHandle.getMessage()),\n arguments: [\n {\n objectId: channelHandle,\n },\n ],\n awaitPromise: true,\n executionContextId: realm.executionContextId,\n serializationOptions: {\n serialization: \"deep\" /* Protocol.Runtime.SerializationOptionsSerialization.Deep */,\n maxDepth: this.#properties.serializationOptions?.maxObjectDepth ??\n undefined,\n },\n });\n if (message.exceptionDetails) {\n throw message.exceptionDetails;\n }\n eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.Script.EventNames.Message,\n params: {\n channel: this.#properties.channel,\n data: realm.cdpToBidiValue(message, this.#properties.ownership ?? \"none\" /* Script.ResultOwnership.None */),\n source: {\n realm: realm.realmId,\n context: realm.browsingContextId,\n },\n },\n }, realm.browsingContextId);\n }\n catch (error) {\n // If an error is thrown, then the channel is permanently broken, so we\n // exit the loop.\n this.#logger?.(log_js_1.LogType.debugError, error);\n break;\n }\n }\n }\n /**\n * Returns a handle of ChannelProxy from window's property which was set there\n * by `getEvalInWindowStr`. If window property is not set yet, sets a promise\n * resolver to the window property, so that `getEvalInWindowStr` can resolve\n * the promise later on with the channel.\n * This is needed because `getEvalInWindowStr` can be called before or\n * after this method.\n */\n async #getHandleFromWindow(realm) {\n const channelHandleResult = await realm.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((id) => {\n const w = window;\n if (w[id] === undefined) {\n // The channelProxy is not created yet. Create a promise, put the\n // resolver to window property and return the promise.\n // `getEvalInWindowStr` will resolve the promise later.\n return new Promise((resolve) => (w[id] = resolve));\n }\n // The channelProxy is already created by `getEvalInWindowStr` and\n // is set into window property. Return it.\n const channelProxy = w[id];\n delete w[id];\n return channelProxy;\n }),\n arguments: [{ value: this.#id }],\n executionContextId: realm.executionContextId,\n awaitPromise: true,\n serializationOptions: {\n serialization: \"idOnly\" /* Protocol.Runtime.SerializationOptionsSerialization.IdOnly */,\n },\n });\n if (channelHandleResult.exceptionDetails !== undefined ||\n channelHandleResult.result.objectId === undefined) {\n throw new Error(`ChannelHandle not found in window[\"${this.#id}\"]`);\n }\n return channelHandleResult.result.objectId;\n }\n /**\n * String to be evaluated to create a ProxyChannel and put it to window.\n * Returns the delegate `sendMessage`. Used to provide an argument for preload\n * script. Does the following:\n * 1. Creates a ChannelProxy.\n * 2. Puts the ChannelProxy to window['${this.#id}'] or resolves the promise\n * by calling delegate stored in window['${this.#id}'].\n * This is needed because `#getHandleFromWindow` can be called before or\n * after this method.\n * 3. Returns the delegate `sendMessage` of the created ChannelProxy.\n */\n getEvalInWindowStr() {\n const delegate = String((id, channelProxy) => {\n const w = window;\n if (w[id] === undefined) {\n // `#getHandleFromWindow` is not initialized yet, and will get the\n // channelProxy later.\n w[id] = channelProxy;\n }\n else {\n // `#getHandleFromWindow` is already set a delegate to window property\n // and is waiting for it to be called with the channelProxy.\n w[id](channelProxy);\n delete w[id];\n }\n return channelProxy.sendMessage;\n });\n const channelProxyEval = ChannelProxy.#createChannelProxyEvalStr();\n return `(${delegate})('${this.#id}',${channelProxyEval})`;\n }\n}\nexports.ChannelProxy = ChannelProxy;\n//# sourceMappingURL=ChannelProxy.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Realm = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst log_js_1 = require(\"../../../utils/log.js\");\nconst uuid_js_1 = require(\"../../../utils/uuid.js\");\nconst ChannelProxy_js_1 = require(\"./ChannelProxy.js\");\nconst SHARED_ID_DIVIDER = '_element_';\nclass Realm {\n #realmStorage;\n #browsingContextStorage;\n #realmId;\n #browsingContextId;\n #executionContextId;\n #origin;\n #type;\n #cdpClient;\n #eventManager;\n sandbox;\n #logger;\n constructor(realmStorage, browsingContextStorage, realmId, browsingContextId, executionContextId, origin, type, sandbox, cdpClient, eventManager, logger) {\n this.#realmId = realmId;\n this.#browsingContextId = browsingContextId;\n this.#executionContextId = executionContextId;\n this.sandbox = sandbox;\n this.#origin = origin;\n this.#type = type;\n this.#cdpClient = cdpClient;\n this.#realmStorage = realmStorage;\n this.#browsingContextStorage = browsingContextStorage;\n this.#eventManager = eventManager;\n this.#logger = logger;\n this.#realmStorage.addRealm(this);\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.Script.EventNames.RealmCreated,\n params: this.realmInfo,\n }, this.browsingContextId);\n }\n cdpToBidiValue(cdpValue, resultOwnership) {\n const bidiValue = this.#deepSerializedToBiDi(cdpValue.result.deepSerializedValue, new Map());\n if (cdpValue.result.objectId) {\n const objectId = cdpValue.result.objectId;\n if (resultOwnership === \"root\" /* Script.ResultOwnership.Root */) {\n // Extend BiDi value with `handle` based on required `resultOwnership`\n // and CDP response but not on the actual BiDi type.\n bidiValue.handle = objectId;\n // Remember all the handles sent to client.\n this.#realmStorage.knownHandlesToRealmMap.set(objectId, this.realmId);\n }\n else {\n // No need to await for the object to be released.\n void this.#releaseObject(objectId).catch((error) => this.#logger?.(log_js_1.LogType.debugError, error));\n }\n }\n if (cdpValue.result.type === 'object') {\n switch (cdpValue.result.subtype) {\n case 'generator':\n case 'iterator':\n bidiValue.type = cdpValue.result.subtype;\n delete bidiValue['value'];\n break;\n default:\n // Intentionally left blank.\n }\n }\n return bidiValue;\n }\n /**\n * Relies on the CDP to implement proper BiDi serialization, except:\n * * CDP integer property `backendNodeId` is replaced with `sharedId` of\n * `{documentId}_element_{backendNodeId}`;\n * * CDP integer property `weakLocalObjectReference` is replaced with UUID `internalId`\n * using unique-per serialization `internalIdMap`.\n * * CDP type `platformobject` is replaced with `object`.\n * @param deepSerializedValue - CDP value to be converted to BiDi.\n * @param internalIdMap - Map from CDP integer `weakLocalObjectReference` to BiDi UUID\n * `internalId`.\n */\n #deepSerializedToBiDi(deepSerializedValue, internalIdMap) {\n if (Object.hasOwn(deepSerializedValue, 'weakLocalObjectReference')) {\n const weakLocalObjectReference = deepSerializedValue.weakLocalObjectReference;\n if (!internalIdMap.has(weakLocalObjectReference)) {\n internalIdMap.set(weakLocalObjectReference, (0, uuid_js_1.uuidv4)());\n }\n deepSerializedValue.internalId = internalIdMap.get(weakLocalObjectReference);\n delete deepSerializedValue['weakLocalObjectReference'];\n }\n // Platform object is a special case. It should have only `{type: object}`\n // without `value` field.\n if (deepSerializedValue.type === 'platformobject') {\n return { type: 'object' };\n }\n const bidiValue = deepSerializedValue.value;\n if (bidiValue === undefined) {\n return deepSerializedValue;\n }\n if (deepSerializedValue.type === 'node') {\n if (Object.hasOwn(bidiValue, 'backendNodeId')) {\n deepSerializedValue.sharedId =\n `${this.navigableId}${SHARED_ID_DIVIDER}${bidiValue.backendNodeId}`;\n delete bidiValue['backendNodeId'];\n }\n if (Object.hasOwn(bidiValue, 'children')) {\n for (const i in bidiValue.children) {\n bidiValue.children[i] = this.#deepSerializedToBiDi(bidiValue.children[i], internalIdMap);\n }\n }\n if (Object.hasOwn(bidiValue, 'shadowRoot') &&\n bidiValue.shadowRoot !== null) {\n bidiValue.shadowRoot = this.#deepSerializedToBiDi(bidiValue.shadowRoot, internalIdMap);\n }\n // `namespaceURI` can be is either `null` or non-empty string.\n if (bidiValue.namespaceURI === '') {\n bidiValue.namespaceURI = null;\n }\n }\n // Recursively update the nested values.\n if (['array', 'set', 'htmlcollection', 'nodelist'].includes(deepSerializedValue.type)) {\n for (const i in bidiValue) {\n bidiValue[i] = this.#deepSerializedToBiDi(bidiValue[i], internalIdMap);\n }\n }\n if (['object', 'map'].includes(deepSerializedValue.type)) {\n for (const i in bidiValue) {\n bidiValue[i] = [\n this.#deepSerializedToBiDi(bidiValue[i][0], internalIdMap),\n this.#deepSerializedToBiDi(bidiValue[i][1], internalIdMap),\n ];\n }\n }\n return deepSerializedValue;\n }\n get realmId() {\n return this.#realmId;\n }\n get navigableId() {\n return ((this.browsingContextId &&\n this.#browsingContextStorage.findContext(this.browsingContextId)\n ?.navigableId) ??\n 'UNKNOWN');\n }\n get browsingContextId() {\n return this.#browsingContextId;\n }\n get executionContextId() {\n return this.#executionContextId;\n }\n get origin() {\n return this.#origin;\n }\n get type() {\n return this.#type;\n }\n get cdpClient() {\n return this.#cdpClient;\n }\n get realmInfo() {\n switch (this.type) {\n case 'window':\n return {\n realm: this.realmId,\n origin: this.origin,\n type: this.type,\n context: this.browsingContextId,\n ...(this.sandbox === undefined ? {} : { sandbox: this.sandbox }),\n };\n default:\n return {\n realm: this.realmId,\n origin: this.origin,\n type: this.type,\n };\n }\n }\n async evaluate(expression, awaitPromise, resultOwnership, serializationOptions, userActivation = false) {\n await this.#browsingContextStorage\n .getContext(this.browsingContextId)\n .targetUnblockedOrThrow();\n const cdpEvaluateResult = await this.cdpClient.sendCommand('Runtime.evaluate', {\n contextId: this.executionContextId,\n expression,\n awaitPromise,\n serializationOptions: Realm.#getSerializationOptions(\"deep\" /* Protocol.Runtime.SerializationOptionsSerialization.Deep */, serializationOptions),\n userGesture: userActivation,\n });\n if (cdpEvaluateResult.exceptionDetails) {\n return await this.#getExceptionResult(cdpEvaluateResult.exceptionDetails, 0, resultOwnership);\n }\n return {\n realm: this.realmId,\n result: this.cdpToBidiValue(cdpEvaluateResult, resultOwnership),\n type: 'success',\n };\n }\n /**\n * Serializes a given CDP object into BiDi, keeping references in the\n * target's `globalThis`.\n */\n async serializeCdpObject(cdpRemoteObject, resultOwnership) {\n const argument = Realm.#cdpRemoteObjectToCallArgument(cdpRemoteObject);\n const cdpValue = await this.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((remoteObject) => remoteObject),\n awaitPromise: false,\n arguments: [argument],\n serializationOptions: {\n serialization: \"deep\" /* Protocol.Runtime.SerializationOptionsSerialization.Deep */,\n },\n executionContextId: this.executionContextId,\n });\n return this.cdpToBidiValue(cdpValue, resultOwnership);\n }\n static #cdpRemoteObjectToCallArgument(cdpRemoteObject) {\n if (cdpRemoteObject.objectId !== undefined) {\n return { objectId: cdpRemoteObject.objectId };\n }\n if (cdpRemoteObject.unserializableValue !== undefined) {\n return { unserializableValue: cdpRemoteObject.unserializableValue };\n }\n return { value: cdpRemoteObject.value };\n }\n /**\n * Gets the string representation of an object. This is equivalent to\n * calling `toString()` on the object value.\n */\n async stringifyObject(cdpRemoteObject) {\n const { result } = await this.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((remoteObject) => String(remoteObject)),\n awaitPromise: false,\n arguments: [cdpRemoteObject],\n returnByValue: true,\n executionContextId: this.executionContextId,\n });\n return result.value;\n }\n async #flattenKeyValuePairs(mappingLocalValue) {\n const keyValueArray = [];\n for (const [key, value] of mappingLocalValue) {\n let keyArg;\n if (typeof key === 'string') {\n // Key is a string.\n keyArg = { value: key };\n }\n else {\n // Key is a serialized value.\n keyArg = await this.#deserializeToCdpArg(key);\n }\n const valueArg = await this.#deserializeToCdpArg(value);\n keyValueArray.push(keyArg);\n keyValueArray.push(valueArg);\n }\n return keyValueArray;\n }\n async #flattenValueList(listLocalValue) {\n return await Promise.all(listLocalValue.map((localValue) => this.#deserializeToCdpArg(localValue)));\n }\n async #serializeCdpExceptionDetails(cdpExceptionDetails, lineOffset, resultOwnership) {\n const callFrames = cdpExceptionDetails.stackTrace?.callFrames.map((frame) => ({\n url: frame.url,\n functionName: frame.functionName,\n lineNumber: frame.lineNumber - lineOffset,\n columnNumber: frame.columnNumber,\n })) ?? [];\n // Exception should always be there.\n const exception = cdpExceptionDetails.exception;\n return {\n exception: await this.serializeCdpObject(exception, resultOwnership),\n columnNumber: cdpExceptionDetails.columnNumber,\n lineNumber: cdpExceptionDetails.lineNumber - lineOffset,\n stackTrace: {\n callFrames,\n },\n text: (await this.stringifyObject(exception)) || cdpExceptionDetails.text,\n };\n }\n async callFunction(functionDeclaration, thisLocalValue, argumentsLocalValues, awaitPromise, resultOwnership, serializationOptions, userActivation = false) {\n await this.#browsingContextStorage\n .getContext(this.browsingContextId)\n .targetUnblockedOrThrow();\n const callFunctionAndSerializeScript = `(...args) => {\n function callFunction(f, args) {\n const deserializedThis = args.shift();\n const deserializedArgs = args;\n return f.apply(deserializedThis, deserializedArgs);\n }\n return callFunction((\n ${functionDeclaration}\n ), args);\n }`;\n const thisAndArgumentsList = [\n await this.#deserializeToCdpArg(thisLocalValue),\n ...(await Promise.all(argumentsLocalValues.map(async (argumentLocalValue) => await this.#deserializeToCdpArg(argumentLocalValue)))),\n ];\n let cdpCallFunctionResult;\n try {\n cdpCallFunctionResult = await this.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: callFunctionAndSerializeScript,\n awaitPromise,\n arguments: thisAndArgumentsList,\n serializationOptions: Realm.#getSerializationOptions(\"deep\" /* Protocol.Runtime.SerializationOptionsSerialization.Deep */, serializationOptions),\n executionContextId: this.executionContextId,\n userGesture: userActivation,\n });\n }\n catch (error) {\n // Heuristic to determine if the problem is in the argument.\n // The check can be done on the `deserialization` step, but this approach\n // helps to save round-trips.\n if (error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ &&\n [\n 'Could not find object with given id',\n 'Argument should belong to the same JavaScript world as target object',\n 'Invalid remote object id',\n ].includes(error.message)) {\n throw new protocol_js_1.NoSuchHandleException('Handle was not found.');\n }\n throw error;\n }\n if (cdpCallFunctionResult.exceptionDetails) {\n return await this.#getExceptionResult(cdpCallFunctionResult.exceptionDetails, 1, resultOwnership);\n }\n return {\n type: 'success',\n result: this.cdpToBidiValue(cdpCallFunctionResult, resultOwnership),\n realm: this.realmId,\n };\n }\n async #deserializeToCdpArg(localValue) {\n if ('sharedId' in localValue && localValue.sharedId) {\n const [navigableId, rawBackendNodeId] = localValue.sharedId.split(SHARED_ID_DIVIDER);\n const backendNodeId = parseInt(rawBackendNodeId ?? '');\n if (isNaN(backendNodeId) ||\n backendNodeId === undefined ||\n navigableId === undefined) {\n throw new protocol_js_1.NoSuchNodeException(`SharedId \"${localValue.sharedId}\" was not found.`);\n }\n if (this.navigableId !== navigableId) {\n throw new protocol_js_1.NoSuchNodeException(`SharedId \"${localValue.sharedId}\" belongs to different document. Current document is ${this.navigableId}.`);\n }\n try {\n const { object } = await this.cdpClient.sendCommand('DOM.resolveNode', {\n backendNodeId,\n executionContextId: this.executionContextId,\n });\n // TODO(#375): Release `obj.object.objectId` after using.\n return { objectId: object.objectId };\n }\n catch (error) {\n // Heuristic to detect \"no such node\" exception. Based on the specific\n // CDP implementation.\n if (error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ &&\n error.message === 'No node with given id found') {\n throw new protocol_js_1.NoSuchNodeException(`SharedId \"${localValue.sharedId}\" was not found.`);\n }\n throw new protocol_js_1.UnknownErrorException(error.message, error.stack);\n }\n }\n else if ('handle' in localValue && localValue.handle) {\n return { objectId: localValue.handle };\n // We tried to find a handle value but failed\n // This allows us to have exhaustive switch on `localValue.type`\n }\n else if ('handle' in localValue || 'sharedId' in localValue) {\n throw new protocol_js_1.NoSuchHandleException('Handle was not found.');\n }\n switch (localValue.type) {\n case 'undefined':\n return { unserializableValue: 'undefined' };\n case 'null':\n return { unserializableValue: 'null' };\n case 'string':\n return { value: localValue.value };\n case 'number':\n if (localValue.value === 'NaN') {\n return { unserializableValue: 'NaN' };\n }\n else if (localValue.value === '-0') {\n return { unserializableValue: '-0' };\n }\n else if (localValue.value === 'Infinity') {\n return { unserializableValue: 'Infinity' };\n }\n else if (localValue.value === '-Infinity') {\n return { unserializableValue: '-Infinity' };\n }\n return {\n value: localValue.value,\n };\n case 'boolean':\n return { value: Boolean(localValue.value) };\n case 'bigint':\n return {\n unserializableValue: `BigInt(${JSON.stringify(localValue.value)})`,\n };\n case 'date':\n return {\n unserializableValue: `new Date(Date.parse(${JSON.stringify(localValue.value)}))`,\n };\n case 'regexp':\n return {\n unserializableValue: `new RegExp(${JSON.stringify(localValue.value.pattern)}, ${JSON.stringify(localValue.value.flags)})`,\n };\n case 'map': {\n // TODO: If none of the nested keys and values has a remote\n // reference, serialize to `unserializableValue` without CDP roundtrip.\n const keyValueArray = await this.#flattenKeyValuePairs(localValue.value);\n const { result } = await this.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((...args) => {\n const result = new Map();\n for (let i = 0; i < args.length; i += 2) {\n result.set(args[i], args[i + 1]);\n }\n return result;\n }),\n awaitPromise: false,\n arguments: keyValueArray,\n returnByValue: false,\n executionContextId: this.executionContextId,\n });\n // TODO(#375): Release `result.objectId` after using.\n return { objectId: result.objectId };\n }\n case 'object': {\n // TODO: If none of the nested keys and values has a remote\n // reference, serialize to `unserializableValue` without CDP roundtrip.\n const keyValueArray = await this.#flattenKeyValuePairs(localValue.value);\n const { result } = await this.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((...args) => {\n const result = {};\n for (let i = 0; i < args.length; i += 2) {\n // Key should be either `string`, `number`, or `symbol`.\n const key = args[i];\n result[key] = args[i + 1];\n }\n return result;\n }),\n awaitPromise: false,\n arguments: keyValueArray,\n returnByValue: false,\n executionContextId: this.executionContextId,\n });\n // TODO(#375): Release `result.objectId` after using.\n return { objectId: result.objectId };\n }\n case 'array': {\n // TODO: If none of the nested items has a remote reference,\n // serialize to `unserializableValue` without CDP roundtrip.\n const args = await this.#flattenValueList(localValue.value);\n const { result } = await this.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((...args) => args),\n awaitPromise: false,\n arguments: args,\n returnByValue: false,\n executionContextId: this.executionContextId,\n });\n // TODO(#375): Release `result.objectId` after using.\n return { objectId: result.objectId };\n }\n case 'set': {\n // TODO: if none of the nested items has a remote reference,\n // serialize to `unserializableValue` without CDP roundtrip.\n const args = await this.#flattenValueList(localValue.value);\n const { result } = await this.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((...args) => new Set(args)),\n awaitPromise: false,\n arguments: args,\n returnByValue: false,\n executionContextId: this.executionContextId,\n });\n // TODO(#375): Release `result.objectId` after using.\n return { objectId: result.objectId };\n }\n case 'channel': {\n const channelProxy = new ChannelProxy_js_1.ChannelProxy(localValue.value, this.#logger);\n const channelProxySendMessageHandle = await channelProxy.init(this, this.#eventManager);\n return { objectId: channelProxySendMessageHandle };\n }\n // TODO(#375): Dispose of nested objects.\n }\n // Intentionally outside to handle unknown types\n throw new Error(`Value ${JSON.stringify(localValue)} is not deserializable.`);\n }\n async #getExceptionResult(exceptionDetails, lineOffset, resultOwnership) {\n return {\n exceptionDetails: await this.#serializeCdpExceptionDetails(exceptionDetails, lineOffset, resultOwnership),\n realm: this.realmId,\n type: 'exception',\n };\n }\n static #getSerializationOptions(serialization, serializationOptions) {\n return {\n serialization,\n additionalParameters: Realm.#getAdditionalSerializationParameters(serializationOptions),\n ...Realm.#getMaxObjectDepth(serializationOptions),\n };\n }\n static #getAdditionalSerializationParameters(serializationOptions) {\n const additionalParameters = {};\n if (serializationOptions.maxDomDepth !== undefined) {\n additionalParameters['maxNodeDepth'] =\n serializationOptions.maxDomDepth === null\n ? 1000\n : serializationOptions.maxDomDepth;\n }\n if (serializationOptions.includeShadowTree !== undefined) {\n additionalParameters['includeShadowTree'] =\n serializationOptions.includeShadowTree;\n }\n return additionalParameters;\n }\n static #getMaxObjectDepth(serializationOptions) {\n return serializationOptions.maxObjectDepth === undefined ||\n serializationOptions.maxObjectDepth === null\n ? {}\n : { maxDepth: serializationOptions.maxObjectDepth };\n }\n async #releaseObject(handle) {\n try {\n await this.cdpClient.sendCommand('Runtime.releaseObject', {\n objectId: handle,\n });\n }\n catch (error) {\n // Heuristic to determine if the problem is in the unknown handler.\n // Ignore the error if so.\n if (!(error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ &&\n error.message === 'Invalid remote object id')) {\n throw error;\n }\n }\n }\n async disown(handle) {\n // Disowning an object from different realm does nothing.\n if (this.#realmStorage.knownHandlesToRealmMap.get(handle) !== this.realmId) {\n return;\n }\n await this.#releaseObject(handle);\n this.#realmStorage.knownHandlesToRealmMap.delete(handle);\n }\n dispose() {\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.Script.EventNames.RealmDestroyed,\n params: {\n realm: this.realmId,\n },\n }, this.browsingContextId);\n }\n}\nexports.Realm = Realm;\n//# sourceMappingURL=Realm.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assert = void 0;\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nfunction assert(predicate, message) {\n if (!predicate) {\n throw new Error(message ?? 'Internal assertion failed.');\n }\n}\nexports.assert = assert;\n//# sourceMappingURL=assert.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Deferred = void 0;\nclass Deferred {\n #isFinished = false;\n #promise;\n #resolve;\n #reject;\n get isFinished() {\n return this.#isFinished;\n }\n constructor() {\n this.#promise = new Promise((resolve, reject) => {\n this.#resolve = resolve;\n this.#reject = reject;\n });\n // Needed to avoid `Uncaught (in promise)`. The promises returned by `then`\n // and `catch` will be rejected anyway.\n this.#promise.catch((_error) => {\n // Intentionally empty.\n });\n }\n then(onFulfilled, onRejected) {\n return this.#promise.then(onFulfilled, onRejected);\n }\n catch(onRejected) {\n return this.#promise.catch(onRejected);\n }\n resolve(value) {\n if (!this.#isFinished) {\n this.#isFinished = true;\n this.#resolve(value);\n }\n }\n reject(reason) {\n if (!this.#isFinished) {\n this.#isFinished = true;\n this.#reject(reason);\n }\n }\n finally(onFinally) {\n return this.#promise.finally(onFinally);\n }\n [Symbol.toStringTag] = 'Promise';\n}\nexports.Deferred = Deferred;\n//# sourceMappingURL=Deferred.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.inchesFromCm = void 0;\n/** @return Given an input in cm, convert it to inches. */\nfunction inchesFromCm(cm) {\n return cm / 2.54;\n}\nexports.inchesFromCm = inchesFromCm;\n//# sourceMappingURL=unitConversions.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.serializeOrigin = exports.BrowsingContextImpl = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst assert_js_1 = require(\"../../../utils/assert.js\");\nconst Deferred_js_1 = require(\"../../../utils/Deferred.js\");\nconst log_js_1 = require(\"../../../utils/log.js\");\nconst unitConversions_js_1 = require(\"../../../utils/unitConversions.js\");\nconst Realm_js_1 = require(\"../script/Realm.js\");\nclass BrowsingContextImpl {\n static LOGGER_PREFIX = `${log_js_1.LogType.debug}:browsingContext`;\n /** The ID of this browsing context. */\n #id;\n /**\n * The ID of the parent browsing context.\n * If null, this is a top-level context.\n */\n #parentId;\n /** Direct children browsing contexts. */\n #children = new Set();\n #browsingContextStorage;\n #deferreds = {\n Page: {\n navigatedWithinDocument: new Deferred_js_1.Deferred(),\n lifecycleEvent: {\n DOMContentLoaded: new Deferred_js_1.Deferred(),\n load: new Deferred_js_1.Deferred(),\n },\n frameStartedLoading: new Deferred_js_1.Deferred(),\n },\n };\n #url = 'about:blank';\n #eventManager;\n #realmStorage;\n #loaderId;\n #cdpTarget;\n #maybeDefaultRealm;\n #logger;\n constructor(cdpTarget, realmStorage, id, parentId, eventManager, browsingContextStorage, logger) {\n this.#cdpTarget = cdpTarget;\n this.#realmStorage = realmStorage;\n this.#id = id;\n this.#parentId = parentId;\n this.#eventManager = eventManager;\n this.#browsingContextStorage = browsingContextStorage;\n this.#logger = logger;\n }\n static create(cdpTarget, realmStorage, id, parentId, eventManager, browsingContextStorage, logger) {\n const context = new BrowsingContextImpl(cdpTarget, realmStorage, id, parentId, eventManager, browsingContextStorage, logger);\n context.#initListeners();\n browsingContextStorage.addContext(context);\n if (!context.isTopLevelContext()) {\n context.parent.addChild(context.id);\n }\n eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.ContextCreated,\n params: context.serializeToBidiValue(),\n }, context.id);\n return context;\n }\n static getTimestamp() {\n // `timestamp` from the event is MonotonicTime, not real time, so\n // the best Mapper can do is to set the timestamp to the epoch time\n // of the event arrived.\n // https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-MonotonicTime\n return new Date().getTime();\n }\n /**\n * @see https://html.spec.whatwg.org/multipage/document-sequences.html#navigable\n */\n get navigableId() {\n return this.#loaderId;\n }\n dispose() {\n this.#deleteAllChildren();\n this.#realmStorage.deleteRealms({\n browsingContextId: this.id,\n });\n // Remove context from the parent.\n if (!this.isTopLevelContext()) {\n this.parent.#children.delete(this.id);\n }\n // Fail all ongoing navigations.\n this.#failDeferredsIfNotFinished();\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.ContextDestroyed,\n params: this.serializeToBidiValue(),\n }, this.id);\n this.#browsingContextStorage.deleteContextById(this.id);\n }\n /** Returns the ID of this context. */\n get id() {\n return this.#id;\n }\n /** Returns the parent context ID. */\n get parentId() {\n return this.#parentId;\n }\n /** Returns the parent context. */\n get parent() {\n if (this.parentId === null) {\n return null;\n }\n return this.#browsingContextStorage.getContext(this.parentId);\n }\n /** Returns all direct children contexts. */\n get directChildren() {\n return [...this.#children].map((id) => this.#browsingContextStorage.getContext(id));\n }\n /** Returns all children contexts, flattened. */\n get allChildren() {\n const children = this.directChildren;\n return children.concat(...children.map((child) => child.allChildren));\n }\n /**\n * Returns true if this is a top-level context.\n * This is the case whenever the parent context ID is null.\n */\n isTopLevelContext() {\n return this.#parentId === null;\n }\n get top() {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n let topContext = this;\n let parent = topContext.parent;\n while (parent) {\n topContext = parent;\n parent = topContext.parent;\n }\n return topContext;\n }\n addChild(childId) {\n this.#children.add(childId);\n }\n #deleteAllChildren() {\n this.directChildren.map((child) => child.dispose());\n }\n get #defaultRealm() {\n (0, assert_js_1.assert)(this.#maybeDefaultRealm, `No default realm for browsing context ${this.#id}`);\n return this.#maybeDefaultRealm;\n }\n get cdpTarget() {\n return this.#cdpTarget;\n }\n updateCdpTarget(cdpTarget) {\n this.#cdpTarget = cdpTarget;\n this.#initListeners();\n }\n get url() {\n return this.#url;\n }\n async lifecycleLoaded() {\n await this.#deferreds.Page.lifecycleEvent.load;\n }\n async targetUnblockedOrThrow() {\n const result = await this.#cdpTarget.targetUnblocked;\n if (result.kind === 'error') {\n throw result.error;\n }\n }\n async getOrCreateSandbox(sandbox) {\n if (sandbox === undefined || sandbox === '') {\n return this.#defaultRealm;\n }\n let maybeSandboxes = this.#realmStorage.findRealms({\n browsingContextId: this.id,\n sandbox,\n });\n if (maybeSandboxes.length === 0) {\n await this.#cdpTarget.cdpClient.sendCommand('Page.createIsolatedWorld', {\n frameId: this.id,\n worldName: sandbox,\n });\n // `Runtime.executionContextCreated` should be emitted by the time the\n // previous command is done.\n maybeSandboxes = this.#realmStorage.findRealms({\n browsingContextId: this.id,\n sandbox,\n });\n (0, assert_js_1.assert)(maybeSandboxes.length !== 0);\n }\n // It's possible for more than one sandbox to be created due to provisional\n // frames. In this case, it's always the first one (i.e. the oldest one)\n // that is more relevant since the user may have set that one up already\n // through evaluation.\n return maybeSandboxes[0];\n }\n serializeToBidiValue(maxDepth = 0, addParentField = true) {\n return {\n context: this.#id,\n url: this.url,\n children: maxDepth > 0\n ? this.directChildren.map((c) => c.serializeToBidiValue(maxDepth - 1, false))\n : null,\n ...(addParentField ? { parent: this.#parentId } : {}),\n };\n }\n onTargetInfoChanged(params) {\n this.#url = params.targetInfo.url;\n }\n #initListeners() {\n this.#cdpTarget.cdpClient.on('Page.frameNavigated', (params) => {\n if (this.id !== params.frame.id) {\n return;\n }\n this.#url = params.frame.url + (params.frame.urlFragment ?? '');\n // At the point the page is initialized, all the nested iframes from the\n // previous page are detached and realms are destroyed.\n // Remove children from context.\n this.#deleteAllChildren();\n });\n this.#cdpTarget.cdpClient.on('Page.navigatedWithinDocument', (params) => {\n if (this.id !== params.frameId) {\n return;\n }\n const timestamp = BrowsingContextImpl.getTimestamp();\n this.#url = params.url;\n this.#deferreds.Page.navigatedWithinDocument.resolve(params);\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated,\n params: {\n context: this.id,\n navigation: null,\n timestamp,\n url: this.#url,\n },\n }, this.id);\n });\n this.#cdpTarget.cdpClient.on('Page.frameStartedLoading', (params) => {\n if (this.id !== params.frameId) {\n return;\n }\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted,\n params: {\n context: this.id,\n navigation: null,\n timestamp: BrowsingContextImpl.getTimestamp(),\n url: '',\n },\n }, this.id);\n });\n this.#cdpTarget.cdpClient.on('Page.lifecycleEvent', (params) => {\n if (this.id !== params.frameId) {\n return;\n }\n if (params.name === 'init') {\n this.#documentChanged(params.loaderId);\n return;\n }\n if (params.name === 'commit') {\n this.#loaderId = params.loaderId;\n return;\n }\n // Ignore event from not current navigation.\n if (params.loaderId !== this.#loaderId) {\n return;\n }\n const timestamp = BrowsingContextImpl.getTimestamp();\n switch (params.name) {\n case 'DOMContentLoaded':\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.DomContentLoaded,\n params: {\n context: this.id,\n navigation: this.#loaderId ?? null,\n timestamp,\n url: this.#url,\n },\n }, this.id);\n this.#deferreds.Page.lifecycleEvent.DOMContentLoaded.resolve(params);\n break;\n case 'load':\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.Load,\n params: {\n context: this.id,\n navigation: this.#loaderId ?? null,\n timestamp,\n url: this.#url,\n },\n }, this.id);\n this.#deferreds.Page.lifecycleEvent.load.resolve(params);\n break;\n }\n });\n this.#cdpTarget.cdpClient.on('Runtime.executionContextCreated', (params) => {\n const { auxData, name, uniqueId, id } = params.context;\n if (!auxData || auxData.frameId !== this.id) {\n return;\n }\n let origin;\n let sandbox;\n // Only these execution contexts are supported for now.\n switch (auxData.type) {\n case 'isolated':\n sandbox = name;\n // Sandbox should have the same origin as the context itself, but in CDP\n // it has an empty one.\n origin = this.#defaultRealm.origin;\n break;\n case 'default':\n origin = serializeOrigin(params.context.origin);\n break;\n default:\n return;\n }\n const realm = new Realm_js_1.Realm(this.#realmStorage, this.#browsingContextStorage, uniqueId, this.id, id, origin, \n // XXX: differentiate types.\n 'window', \n // Sandbox name for isolated world.\n sandbox, this.#cdpTarget.cdpClient, this.#eventManager, this.#logger);\n if (auxData.isDefault) {\n this.#maybeDefaultRealm = realm;\n // Initialize ChannelProxy listeners for all the channels of all the\n // preload scripts related to this BrowsingContext.\n // TODO: extend for not default realms by the sandbox name.\n void Promise.all(this.#cdpTarget\n .getChannels()\n .map((channel) => channel.startListenerFromWindow(realm, this.#eventManager)));\n }\n });\n this.#cdpTarget.cdpClient.on('Runtime.executionContextDestroyed', (params) => {\n this.#realmStorage.deleteRealms({\n cdpSessionId: this.#cdpTarget.cdpSessionId,\n executionContextId: params.executionContextId,\n });\n });\n this.#cdpTarget.cdpClient.on('Runtime.executionContextsCleared', () => {\n this.#realmStorage.deleteRealms({\n cdpSessionId: this.#cdpTarget.cdpSessionId,\n });\n });\n this.#cdpTarget.cdpClient.on('Page.javascriptDialogClosed', (params) => {\n const accepted = params.result;\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.UserPromptClosed,\n params: {\n context: this.id,\n accepted,\n userText: accepted && params.userInput ? params.userInput : undefined,\n },\n }, this.id);\n });\n this.#cdpTarget.cdpClient.on('Page.javascriptDialogOpening', (params) => {\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.UserPromptOpened,\n params: {\n context: this.id,\n type: params.type,\n message: params.message,\n // Don't set the value if empty string\n defaultValue: params.defaultPrompt || undefined,\n },\n }, this.id);\n });\n }\n #documentChanged(loaderId) {\n // Same document navigation.\n if (loaderId === undefined || this.#loaderId === loaderId) {\n if (this.#deferreds.Page.navigatedWithinDocument.isFinished) {\n this.#deferreds.Page.navigatedWithinDocument =\n new Deferred_js_1.Deferred();\n }\n else {\n this.#logger?.(BrowsingContextImpl.LOGGER_PREFIX, 'Document changed (navigatedWithinDocument)');\n }\n return;\n }\n this.#resetDeferredsIfFinished();\n this.#loaderId = loaderId;\n }\n #resetDeferredsIfFinished() {\n if (this.#deferreds.Page.lifecycleEvent.DOMContentLoaded.isFinished) {\n this.#deferreds.Page.lifecycleEvent.DOMContentLoaded =\n new Deferred_js_1.Deferred();\n }\n else {\n this.#logger?.(BrowsingContextImpl.LOGGER_PREFIX, 'Document changed (DOMContentLoaded)');\n }\n if (this.#deferreds.Page.lifecycleEvent.load.isFinished) {\n this.#deferreds.Page.lifecycleEvent.load =\n new Deferred_js_1.Deferred();\n }\n else {\n this.#logger?.(BrowsingContextImpl.LOGGER_PREFIX, 'Document changed (load)');\n }\n }\n #failDeferredsIfNotFinished() {\n if (!this.#deferreds.Page.lifecycleEvent.DOMContentLoaded.isFinished) {\n this.#deferreds.Page.lifecycleEvent.DOMContentLoaded.reject(new protocol_js_1.UnknownErrorException('navigation canceled'));\n }\n if (!this.#deferreds.Page.lifecycleEvent.load.isFinished) {\n this.#deferreds.Page.lifecycleEvent.load.reject(new protocol_js_1.UnknownErrorException('navigation canceled'));\n }\n }\n async navigate(url, wait) {\n try {\n new URL(url);\n }\n catch {\n throw new protocol_js_1.InvalidArgumentException(`Invalid URL: ${url}`);\n }\n await this.targetUnblockedOrThrow();\n // TODO: handle loading errors.\n const cdpNavigateResult = await this.#cdpTarget.cdpClient.sendCommand('Page.navigate', {\n url,\n frameId: this.id,\n });\n if (cdpNavigateResult.errorText) {\n throw new protocol_js_1.UnknownErrorException(cdpNavigateResult.errorText);\n }\n this.#documentChanged(cdpNavigateResult.loaderId);\n switch (wait) {\n case \"none\" /* BrowsingContext.ReadinessState.None */:\n break;\n case \"interactive\" /* BrowsingContext.ReadinessState.Interactive */:\n // No `loaderId` means same-document navigation.\n if (cdpNavigateResult.loaderId === undefined) {\n await this.#deferreds.Page.navigatedWithinDocument;\n }\n else {\n await this.#deferreds.Page.lifecycleEvent.DOMContentLoaded;\n }\n break;\n case \"complete\" /* BrowsingContext.ReadinessState.Complete */:\n // No `loaderId` means same-document navigation.\n if (cdpNavigateResult.loaderId === undefined) {\n await this.#deferreds.Page.navigatedWithinDocument;\n }\n else {\n await this.lifecycleLoaded();\n }\n break;\n }\n return {\n navigation: cdpNavigateResult.loaderId ?? null,\n // Url can change due to redirect get the latest one.\n url: wait === \"none\" /* BrowsingContext.ReadinessState.None */ ? url : this.#url,\n };\n }\n async reload(ignoreCache, wait) {\n await this.targetUnblockedOrThrow();\n await this.#cdpTarget.cdpClient.sendCommand('Page.reload', {\n ignoreCache,\n });\n this.#resetDeferredsIfFinished();\n switch (wait) {\n case \"none\" /* BrowsingContext.ReadinessState.None */:\n break;\n case \"interactive\" /* BrowsingContext.ReadinessState.Interactive */:\n await this.#deferreds.Page.lifecycleEvent.DOMContentLoaded;\n break;\n case \"complete\" /* BrowsingContext.ReadinessState.Complete */:\n await this.lifecycleLoaded();\n break;\n }\n return {\n navigation: wait === \"none\" /* BrowsingContext.ReadinessState.None */\n ? null\n : this.navigableId ?? null,\n url: this.url,\n };\n }\n async setViewport(viewport, devicePixelRatio) {\n if (viewport === null && devicePixelRatio === null) {\n await this.#cdpTarget.cdpClient.sendCommand('Emulation.clearDeviceMetricsOverride');\n }\n else {\n try {\n await this.#cdpTarget.cdpClient.sendCommand('Emulation.setDeviceMetricsOverride', {\n width: viewport ? viewport.width : 0,\n height: viewport ? viewport.height : 0,\n deviceScaleFactor: devicePixelRatio ? devicePixelRatio : 0,\n mobile: false,\n dontSetVisibleSize: true,\n });\n }\n catch (err) {\n if (err.message.startsWith(\n // https://crsrc.org/c/content/browser/devtools/protocol/emulation_handler.cc;l=257;drc=2f6eee84cf98d4227e7c41718dd71b82f26d90ff\n 'Width and height values must be positive')) {\n throw new protocol_js_1.UnsupportedOperationException('Provided viewport dimensions are not supported');\n }\n throw err;\n }\n }\n }\n async handleUserPrompt(params) {\n await this.#cdpTarget.cdpClient.sendCommand('Page.handleJavaScriptDialog', {\n accept: params.accept ?? true,\n promptText: params.userText,\n });\n }\n async activate() {\n await this.#cdpTarget.cdpClient.sendCommand('Page.bringToFront');\n }\n async captureScreenshot(params) {\n if (!this.isTopLevelContext()) {\n throw new protocol_js_1.UnsupportedOperationException(`Non-top-level 'context' (${params.context}) is currently not supported`);\n }\n const formatParameters = getImageFormatParameters(params);\n // XXX: Focus the original tab after the screenshot is taken.\n // This is needed because the screenshot gets blocked until the active tab gets focus.\n await this.#cdpTarget.cdpClient.sendCommand('Page.bringToFront');\n let captureBeyondViewport = false;\n let script;\n params.origin ??= 'viewport';\n switch (params.origin) {\n case 'document': {\n script = String(() => {\n const element = document.documentElement;\n return {\n x: 0,\n y: 0,\n width: element.scrollWidth,\n height: element.scrollHeight,\n };\n });\n captureBeyondViewport = true;\n break;\n }\n case 'viewport': {\n script = String(() => {\n const viewport = window.visualViewport;\n return {\n x: viewport.pageLeft,\n y: viewport.pageTop,\n width: viewport.width,\n height: viewport.height,\n };\n });\n break;\n }\n }\n const realm = await this.getOrCreateSandbox(undefined);\n const originResult = await realm.callFunction(script, { type: 'undefined' }, [], false, \"none\" /* Script.ResultOwnership.None */, {}, false);\n (0, assert_js_1.assert)(originResult.type === 'success');\n const origin = deserializeDOMRect(originResult.result);\n (0, assert_js_1.assert)(origin);\n const rect = params.clip\n ? getIntersectionRect(await this.#parseRect(params.clip), origin)\n : origin;\n if (rect.width === 0 || rect.height === 0) {\n throw new protocol_js_1.UnableToCaptureScreenException(`Unable to capture screenshot with zero dimensions: width=${rect.width}, height=${rect.height}`);\n }\n return await this.#cdpTarget.cdpClient.sendCommand('Page.captureScreenshot', {\n clip: { ...rect, scale: 1.0 },\n ...formatParameters,\n captureBeyondViewport,\n });\n }\n async print(params) {\n const cdpParams = {};\n if (params.background !== undefined) {\n cdpParams.printBackground = params.background;\n }\n if (params.margin?.bottom !== undefined) {\n cdpParams.marginBottom = (0, unitConversions_js_1.inchesFromCm)(params.margin.bottom);\n }\n if (params.margin?.left !== undefined) {\n cdpParams.marginLeft = (0, unitConversions_js_1.inchesFromCm)(params.margin.left);\n }\n if (params.margin?.right !== undefined) {\n cdpParams.marginRight = (0, unitConversions_js_1.inchesFromCm)(params.margin.right);\n }\n if (params.margin?.top !== undefined) {\n cdpParams.marginTop = (0, unitConversions_js_1.inchesFromCm)(params.margin.top);\n }\n if (params.orientation !== undefined) {\n cdpParams.landscape = params.orientation === 'landscape';\n }\n if (params.page?.height !== undefined) {\n cdpParams.paperHeight = (0, unitConversions_js_1.inchesFromCm)(params.page.height);\n }\n if (params.page?.width !== undefined) {\n cdpParams.paperWidth = (0, unitConversions_js_1.inchesFromCm)(params.page.width);\n }\n if (params.pageRanges !== undefined) {\n for (const range of params.pageRanges) {\n if (typeof range === 'number') {\n continue;\n }\n const rangeParts = range.split('-');\n if (rangeParts.length < 1 || rangeParts.length > 2) {\n throw new protocol_js_1.InvalidArgumentException(`Invalid page range: ${range} is not a valid integer range.`);\n }\n if (rangeParts.length === 1) {\n void parseInteger(rangeParts[0] ?? '');\n continue;\n }\n let lowerBound;\n let upperBound;\n const [rangeLowerPart = '', rangeUpperPart = ''] = rangeParts;\n if (rangeLowerPart === '') {\n lowerBound = 1;\n }\n else {\n lowerBound = parseInteger(rangeLowerPart);\n }\n if (rangeUpperPart === '') {\n upperBound = Number.MAX_SAFE_INTEGER;\n }\n else {\n upperBound = parseInteger(rangeUpperPart);\n }\n if (lowerBound > upperBound) {\n throw new protocol_js_1.InvalidArgumentException(`Invalid page range: ${rangeLowerPart} > ${rangeUpperPart}`);\n }\n }\n cdpParams.pageRanges = params.pageRanges.join(',');\n }\n if (params.scale !== undefined) {\n cdpParams.scale = params.scale;\n }\n if (params.shrinkToFit !== undefined) {\n cdpParams.preferCSSPageSize = !params.shrinkToFit;\n }\n try {\n const result = await this.#cdpTarget.cdpClient.sendCommand('Page.printToPDF', cdpParams);\n return {\n data: result.data,\n };\n }\n catch (error) {\n // Effectively zero dimensions.\n if (error.message ===\n 'invalid print parameters: content area is empty') {\n throw new protocol_js_1.UnsupportedOperationException(error.message);\n }\n throw error;\n }\n }\n /**\n * See\n * https://w3c.github.io/webdriver-bidi/#:~:text=If%20command%20parameters%20contains%20%22clip%22%3A\n */\n async #parseRect(clip) {\n switch (clip.type) {\n case 'box':\n return { x: clip.x, y: clip.y, width: clip.width, height: clip.height };\n case 'element': {\n // TODO: #1213: Use custom sandbox specifically for Chromium BiDi\n const sandbox = await this.getOrCreateSandbox(undefined);\n const result = await sandbox.callFunction(String((element) => {\n return element instanceof Element;\n }), { type: 'undefined' }, [clip.element], false, \"none\" /* Script.ResultOwnership.None */, {});\n if (result.type === 'exception') {\n throw new protocol_js_1.NoSuchElementException(`Element '${clip.element.sharedId}' was not found`);\n }\n (0, assert_js_1.assert)(result.result.type === 'boolean');\n if (!result.result.value) {\n throw new protocol_js_1.NoSuchElementException(`Node '${clip.element.sharedId}' is not an Element`);\n }\n {\n const result = await sandbox.callFunction(String((element) => {\n const rect = element.getBoundingClientRect();\n return {\n x: rect.x,\n y: rect.y,\n height: rect.height,\n width: rect.width,\n };\n }), { type: 'undefined' }, [clip.element], false, \"none\" /* Script.ResultOwnership.None */, {});\n (0, assert_js_1.assert)(result.type === 'success');\n const rect = deserializeDOMRect(result.result);\n if (!rect) {\n throw new protocol_js_1.UnableToCaptureScreenException(`Could not get bounding box for Element '${clip.element.sharedId}'`);\n }\n return rect;\n }\n }\n }\n }\n async close() {\n await this.#cdpTarget.cdpClient.sendCommand('Page.close');\n }\n async traverseHistory(delta) {\n if (delta === 0) {\n return;\n }\n const history = await this.#cdpTarget.cdpClient.sendCommand('Page.getNavigationHistory');\n const entry = history.entries[history.currentIndex + delta];\n if (!entry) {\n throw new protocol_js_1.NoSuchHistoryEntryException(`No history entry at delta ${delta}`);\n }\n await this.#cdpTarget.cdpClient.sendCommand('Page.navigateToHistoryEntry', {\n entryId: entry.id,\n });\n }\n}\nexports.BrowsingContextImpl = BrowsingContextImpl;\nfunction serializeOrigin(origin) {\n // https://html.spec.whatwg.org/multipage/origin.html#ascii-serialisation-of-an-origin\n if (['://', ''].includes(origin)) {\n origin = 'null';\n }\n return origin;\n}\nexports.serializeOrigin = serializeOrigin;\nfunction getImageFormatParameters(params) {\n const { quality, type } = params.format ?? {\n type: 'image/png',\n };\n switch (type) {\n case 'image/png': {\n return { format: 'png' };\n }\n case 'image/jpeg': {\n return {\n format: 'jpeg',\n ...(quality === undefined ? {} : { quality: Math.round(quality * 100) }),\n };\n }\n case 'image/webp': {\n return {\n format: 'webp',\n ...(quality === undefined ? {} : { quality: Math.round(quality * 100) }),\n };\n }\n }\n throw new protocol_js_1.InvalidArgumentException(`Image format '${type}' is not a supported format`);\n}\nfunction deserializeDOMRect(result) {\n if (result.type !== 'object' || result.value === undefined) {\n return;\n }\n const x = result.value.find(([key]) => {\n return key === 'x';\n })?.[1];\n const y = result.value.find(([key]) => {\n return key === 'y';\n })?.[1];\n const height = result.value.find(([key]) => {\n return key === 'height';\n })?.[1];\n const width = result.value.find(([key]) => {\n return key === 'width';\n })?.[1];\n if (x?.type !== 'number' ||\n y?.type !== 'number' ||\n height?.type !== 'number' ||\n width?.type !== 'number') {\n return;\n }\n return {\n x: x.value,\n y: y.value,\n width: width.value,\n height: height.value,\n };\n}\n/** @see https://w3c.github.io/webdriver-bidi/#normalize-rect */\nfunction normalizeRect(box) {\n return {\n ...(box.width < 0\n ? {\n x: box.x + box.width,\n width: -box.width,\n }\n : {\n x: box.x,\n width: box.width,\n }),\n ...(box.height < 0\n ? {\n y: box.y + box.height,\n height: -box.height,\n }\n : {\n y: box.y,\n height: box.height,\n }),\n };\n}\n/** @see https://w3c.github.io/webdriver-bidi/#rectangle-intersection */\nfunction getIntersectionRect(first, second) {\n first = normalizeRect(first);\n second = normalizeRect(second);\n const x = Math.max(first.x, second.x);\n const y = Math.max(first.y, second.y);\n return {\n x,\n y,\n width: Math.max(Math.min(first.x + first.width, second.x + second.width) - x, 0),\n height: Math.max(Math.min(first.y + first.height, second.y + second.height) - y, 0),\n };\n}\nfunction parseInteger(value) {\n value = value.trim();\n if (!/^[0-9]+$/.test(value)) {\n throw new protocol_js_1.InvalidArgumentException(`Invalid integer: ${value}`);\n }\n return parseInt(value);\n}\n//# sourceMappingURL=BrowsingContextImpl.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRemoteValuesText = exports.logMessageFormatter = void 0;\nconst assert_js_1 = require(\"../../../utils/assert.js\");\nconst specifiers = ['%s', '%d', '%i', '%f', '%o', '%O', '%c'];\nfunction isFormatSpecifier(str) {\n return specifiers.some((spec) => str.includes(spec));\n}\n/**\n * @param args input remote values to be format printed\n * @return parsed text of the remote values in specific format\n */\nfunction logMessageFormatter(args) {\n let output = '';\n const argFormat = args[0].value.toString();\n const argValues = args.slice(1, undefined);\n const tokens = argFormat.split(new RegExp(specifiers.map((spec) => `(${spec})`).join('|'), 'g'));\n for (const token of tokens) {\n if (token === undefined || token === '') {\n continue;\n }\n if (isFormatSpecifier(token)) {\n const arg = argValues.shift();\n // raise an exception when less value is provided\n (0, assert_js_1.assert)(arg, `Less value is provided: \"${getRemoteValuesText(args, false)}\"`);\n if (token === '%s') {\n output += stringFromArg(arg);\n }\n else if (token === '%d' || token === '%i') {\n if (arg.type === 'bigint' ||\n arg.type === 'number' ||\n arg.type === 'string') {\n output += parseInt(arg.value.toString(), 10);\n }\n else {\n output += 'NaN';\n }\n }\n else if (token === '%f') {\n if (arg.type === 'bigint' ||\n arg.type === 'number' ||\n arg.type === 'string') {\n output += parseFloat(arg.value.toString());\n }\n else {\n output += 'NaN';\n }\n }\n else {\n // %o, %O, %c\n output += toJson(arg);\n }\n }\n else {\n output += token;\n }\n }\n // raise an exception when more value is provided\n if (argValues.length > 0) {\n throw new Error(`More value is provided: \"${getRemoteValuesText(args, false)}\"`);\n }\n return output;\n}\nexports.logMessageFormatter = logMessageFormatter;\n/**\n * @param arg input remote value to be parsed\n * @return parsed text of the remote value\n *\n * input: {\"type\": \"number\", \"value\": 1}\n * output: 1\n *\n * input: {\"type\": \"string\", \"value\": \"abc\"}\n * output: \"abc\"\n *\n * input: {\"type\": \"object\", \"value\": [[\"id\", {\"type\": \"number\", \"value\": 1}]]}\n * output: '{\"id\": 1}'\n *\n * input: {\"type\": \"object\", \"value\": [[\"font-size\", {\"type\": \"string\", \"value\": \"20px\"}]]}\n * output: '{\"font-size\": \"20px\"}'\n */\nfunction toJson(arg) {\n // arg type validation\n if (arg.type !== 'array' &&\n arg.type !== 'bigint' &&\n arg.type !== 'date' &&\n arg.type !== 'number' &&\n arg.type !== 'object' &&\n arg.type !== 'string') {\n return stringFromArg(arg);\n }\n if (arg.type === 'bigint') {\n return `${arg.value.toString()}n`;\n }\n if (arg.type === 'number') {\n return arg.value.toString();\n }\n if (['date', 'string'].includes(arg.type)) {\n return JSON.stringify(arg.value);\n }\n if (arg.type === 'object') {\n return `{${arg.value\n .map((pair) => {\n return `${JSON.stringify(pair[0])}:${toJson(pair[1])}`;\n })\n .join(',')}}`;\n }\n if (arg.type === 'array') {\n return `[${arg.value?.map((val) => toJson(val)).join(',') ?? ''}]`;\n }\n // eslint-disable-next-line @typescript-eslint/no-base-to-string\n throw Error(`Invalid value type: ${arg}`);\n}\nfunction stringFromArg(arg) {\n if (!Object.hasOwn(arg, 'value')) {\n return arg.type;\n }\n switch (arg.type) {\n case 'string':\n case 'number':\n case 'boolean':\n case 'bigint':\n return String(arg.value);\n case 'regexp':\n return `/${arg.value.pattern}/${arg.value.flags ?? ''}`;\n case 'date':\n return new Date(arg.value).toString();\n case 'object':\n return `Object(${arg.value?.length ?? ''})`;\n case 'array':\n return `Array(${arg.value?.length ?? ''})`;\n case 'map':\n return `Map(${arg.value?.length})`;\n case 'set':\n return `Set(${arg.value?.length})`;\n default:\n return arg.type;\n }\n}\nfunction getRemoteValuesText(args, formatText) {\n const arg = args[0];\n if (!arg) {\n return '';\n }\n // if args[0] is a format specifier, format the args as output\n if (arg.type === 'string' &&\n isFormatSpecifier(arg.value.toString()) &&\n formatText) {\n return logMessageFormatter(args);\n }\n // if args[0] is not a format specifier, just join the args with \\u0020 (unicode 'SPACE')\n return args\n .map((arg) => {\n return stringFromArg(arg);\n })\n .join('\\u0020');\n}\nexports.getRemoteValuesText = getRemoteValuesText;\n//# sourceMappingURL=logHelper.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.LogManager = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst logHelper_js_1 = require(\"./logHelper.js\");\n/** Converts CDP StackTrace object to BiDi StackTrace object. */\nfunction getBidiStackTrace(cdpStackTrace) {\n const stackFrames = cdpStackTrace?.callFrames.map((callFrame) => {\n return {\n columnNumber: callFrame.columnNumber,\n functionName: callFrame.functionName,\n lineNumber: callFrame.lineNumber,\n url: callFrame.url,\n };\n });\n return stackFrames ? { callFrames: stackFrames } : undefined;\n}\nfunction getLogLevel(consoleApiType) {\n if ([\"error\" /* Log.Level.Error */, 'assert'].includes(consoleApiType)) {\n return \"error\" /* Log.Level.Error */;\n }\n if ([\"debug\" /* Log.Level.Debug */, 'trace'].includes(consoleApiType)) {\n return \"debug\" /* Log.Level.Debug */;\n }\n if ([\"warn\" /* Log.Level.Warn */, 'warning'].includes(consoleApiType)) {\n return \"warn\" /* Log.Level.Warn */;\n }\n return \"info\" /* Log.Level.Info */;\n}\nclass LogManager {\n #eventManager;\n #realmStorage;\n #cdpTarget;\n constructor(cdpTarget, realmStorage, eventManager) {\n this.#cdpTarget = cdpTarget;\n this.#realmStorage = realmStorage;\n this.#eventManager = eventManager;\n }\n static create(cdpTarget, realmStorage, eventManager) {\n const logManager = new LogManager(cdpTarget, realmStorage, eventManager);\n logManager.#initializeEntryAddedEventListener();\n return logManager;\n }\n #initializeEntryAddedEventListener() {\n this.#cdpTarget.cdpClient.on('Runtime.consoleAPICalled', (params) => {\n // Try to find realm by `cdpSessionId` and `executionContextId`,\n // if provided.\n const realm = this.#realmStorage.findRealm({\n cdpSessionId: this.#cdpTarget.cdpSessionId,\n executionContextId: params.executionContextId,\n });\n const argsPromise = realm === undefined\n ? Promise.resolve(params.args)\n : // Properly serialize arguments if possible.\n Promise.all(params.args.map((arg) => {\n return realm.serializeCdpObject(arg, \"none\" /* Script.ResultOwnership.None */);\n }));\n this.#eventManager.registerPromiseEvent(argsPromise.then((args) => ({\n kind: 'success',\n value: {\n type: 'event',\n method: protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded,\n params: {\n level: getLogLevel(params.type),\n source: {\n realm: realm?.realmId ?? 'UNKNOWN',\n context: realm?.browsingContextId ?? 'UNKNOWN',\n },\n text: (0, logHelper_js_1.getRemoteValuesText)(args, true),\n timestamp: Math.round(params.timestamp),\n stackTrace: getBidiStackTrace(params.stackTrace),\n type: 'console',\n // Console method is `warn`, not `warning`.\n method: params.type === 'warning' ? 'warn' : params.type,\n args,\n },\n },\n })), realm?.browsingContextId ?? 'UNKNOWN', protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded);\n });\n this.#cdpTarget.cdpClient.on('Runtime.exceptionThrown', (params) => {\n // Try to find realm by `cdpSessionId` and `executionContextId`,\n // if provided.\n const realm = this.#realmStorage.findRealm({\n cdpSessionId: this.#cdpTarget.cdpSessionId,\n executionContextId: params.exceptionDetails.executionContextId,\n });\n this.#eventManager.registerPromiseEvent(LogManager.#getExceptionText(params, realm).then((text) => ({\n kind: 'success',\n value: {\n type: 'event',\n method: protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded,\n params: {\n level: \"error\" /* Log.Level.Error */,\n source: {\n realm: realm?.realmId ?? 'UNKNOWN',\n context: realm?.browsingContextId ?? 'UNKNOWN',\n },\n text,\n timestamp: Math.round(params.timestamp),\n stackTrace: getBidiStackTrace(params.exceptionDetails.stackTrace),\n type: 'javascript',\n },\n },\n })), realm?.browsingContextId ?? 'UNKNOWN', protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded);\n });\n }\n /**\n * Try the best to get the exception text.\n */\n static async #getExceptionText(params, realm) {\n if (!params.exceptionDetails.exception) {\n return params.exceptionDetails.text;\n }\n if (realm === undefined) {\n return JSON.stringify(params.exceptionDetails.exception);\n }\n return await realm.stringifyObject(params.exceptionDetails.exception);\n }\n}\nexports.LogManager = LogManager;\n//# sourceMappingURL=LogManager.js.map","\"use strict\";\n/*\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction = exports.cdpFetchHeadersFromBidiNetworkHeaders = exports.bidiNetworkHeadersFromCdpFetchHeaders = exports.cdpNetworkHeadersFromBidiNetworkHeaders = exports.bidiNetworkHeadersFromCdpNetworkHeaders = exports.computeHeadersSize = void 0;\nfunction computeHeadersSize(headers) {\n const requestHeaders = headers.reduce((acc, header) => {\n return `${acc}${header.name}: ${header.value.value}\\r\\n`;\n }, '');\n return new TextEncoder().encode(requestHeaders).length;\n}\nexports.computeHeadersSize = computeHeadersSize;\n/** Converts from CDP Network domain headers to Bidi network headers. */\nfunction bidiNetworkHeadersFromCdpNetworkHeaders(headers) {\n if (!headers) {\n return [];\n }\n return Object.entries(headers).map(([name, value]) => ({\n name,\n value: {\n type: 'string',\n value,\n },\n }));\n}\nexports.bidiNetworkHeadersFromCdpNetworkHeaders = bidiNetworkHeadersFromCdpNetworkHeaders;\n/** Converts from Bidi network headers to CDP Network domain headers. */\nfunction cdpNetworkHeadersFromBidiNetworkHeaders(headers) {\n if (headers === undefined) {\n return undefined;\n }\n return headers.reduce((result, header) => {\n // TODO: Distinguish between string and bytes?\n result[header.name] = header.value.value;\n return result;\n }, {});\n}\nexports.cdpNetworkHeadersFromBidiNetworkHeaders = cdpNetworkHeadersFromBidiNetworkHeaders;\n/** Converts from CDP Fetch domain header entries to Bidi network headers. */\nfunction bidiNetworkHeadersFromCdpFetchHeaders(headers) {\n if (!headers) {\n return [];\n }\n return headers.map(({ name, value }) => ({\n name,\n value: {\n type: 'string',\n value,\n },\n }));\n}\nexports.bidiNetworkHeadersFromCdpFetchHeaders = bidiNetworkHeadersFromCdpFetchHeaders;\n/** Converts from Bidi network headers to CDP Fetch domain header entries. */\nfunction cdpFetchHeadersFromBidiNetworkHeaders(headers) {\n if (headers === undefined) {\n return undefined;\n }\n return headers.map(({ name, value }) => ({\n name,\n value: value.value,\n }));\n}\nexports.cdpFetchHeadersFromBidiNetworkHeaders = cdpFetchHeadersFromBidiNetworkHeaders;\n/** Converts from Bidi auth action to CDP auth challenge response. */\nfunction cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction(action) {\n switch (action) {\n case 'default':\n return 'Default';\n case 'cancel':\n return 'CancelAuth';\n case 'provideCredentials':\n return 'ProvideCredentials';\n }\n}\nexports.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction = cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction;\n//# sourceMappingURL=NetworkUtils.js.map","\"use strict\";\n/*\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NetworkRequest = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst assert_js_1 = require(\"../../../utils/assert.js\");\nconst Deferred_js_1 = require(\"../../../utils/Deferred.js\");\nconst NetworkUtils_js_1 = require(\"./NetworkUtils.js\");\n/** Abstracts one individual network request. */\nclass NetworkRequest {\n static #unknown = 'UNKNOWN';\n /**\n * Each network request has an associated request id, which is a string\n * uniquely identifying that request.\n *\n * The identifier for a request resulting from a redirect matches that of the\n * request that initiated it.\n */\n #requestId;\n // TODO: Handle auth required?\n /**\n * Indicates the network intercept phase, if the request is currently blocked.\n * Undefined necessarily implies that the request is not blocked.\n */\n #interceptPhase = undefined;\n #servedFromCache = false;\n #redirectCount;\n #eventManager;\n #networkStorage;\n #request = {};\n #response = {};\n #beforeRequestSentDeferred = new Deferred_js_1.Deferred();\n #responseStartedDeferred = new Deferred_js_1.Deferred();\n #responseCompletedDeferred = new Deferred_js_1.Deferred();\n #cdpTarget;\n constructor(requestId, eventManager, networkStorage, cdpTarget, redirectCount = 0) {\n this.#requestId = requestId;\n this.#eventManager = eventManager;\n this.#networkStorage = networkStorage;\n this.#cdpTarget = cdpTarget;\n this.#redirectCount = redirectCount;\n }\n get requestId() {\n return this.#requestId;\n }\n get url() {\n return this.#response.info?.url ?? this.#request.info?.request.url;\n }\n get redirectCount() {\n return this.#redirectCount;\n }\n get cdpTarget() {\n return this.#cdpTarget;\n }\n isRedirecting() {\n return Boolean(this.#request.info);\n }\n handleRedirect(event) {\n this.#queueResponseStartedEvent();\n this.#queueResponseCompletedEvent();\n this.#response.hasExtraInfo = event.redirectHasExtraInfo;\n this.#response.info = event.redirectResponse;\n this.#emitEventsIfReady(true);\n }\n #emitEventsIfReady(wasRedirected = false) {\n const requestExtraInfoCompleted = \n // Flush redirects\n wasRedirected ||\n Boolean(this.#request.extraInfo) ||\n // Requests from cache don't have extra info\n this.#servedFromCache ||\n // Sometimes there is no extra info and the response\n // is the only place we can find out\n Boolean(this.#response.info && !this.#response.hasExtraInfo) ||\n this.#interceptPhase === \"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */;\n if (this.#request.info && requestExtraInfoCompleted) {\n this.#beforeRequestSentDeferred.resolve({\n kind: 'success',\n value: undefined,\n });\n }\n const responseExtraInfoCompleted = Boolean(this.#response.extraInfo) ||\n // Response from cache don't have extra info\n this.#servedFromCache ||\n // Don't expect extra info if the flag is false\n Boolean(this.#response.info && !this.#response.hasExtraInfo) ||\n this.#interceptPhase === \"responseStarted\" /* Network.InterceptPhase.ResponseStarted */;\n if (this.#response.info && responseExtraInfoCompleted) {\n this.#responseStartedDeferred.resolve({\n kind: 'success',\n value: undefined,\n });\n this.#responseCompletedDeferred.resolve({\n kind: 'success',\n value: undefined,\n });\n }\n }\n onRequestWillBeSentEvent(event) {\n this.#request.info = event;\n this.#queueBeforeRequestSentEvent();\n this.#emitEventsIfReady();\n }\n onRequestWillBeSentExtraInfoEvent(event) {\n this.#request.extraInfo = event;\n this.#emitEventsIfReady();\n }\n onResponseReceivedExtraInfoEvent(event) {\n this.#response.extraInfo = event;\n this.#emitEventsIfReady();\n }\n onResponseReceivedEvent(event) {\n this.#response.hasExtraInfo = event.hasExtraInfo;\n this.#response.info = event.response;\n this.#queueResponseStartedEvent();\n this.#queueResponseCompletedEvent();\n this.#emitEventsIfReady();\n }\n onServedFromCache() {\n this.#servedFromCache = true;\n this.#emitEventsIfReady();\n }\n onLoadingFailedEvent(event) {\n this.#beforeRequestSentDeferred.resolve({\n kind: 'success',\n value: undefined,\n });\n this.#responseStartedDeferred.resolve({\n kind: 'error',\n error: new Error('Network event loading failed'),\n });\n this.#responseCompletedDeferred.resolve({\n kind: 'error',\n error: new Error('Network event loading failed'),\n });\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.Network.EventNames.FetchError,\n params: {\n ...this.#getBaseEventParams(),\n errorText: event.errorText,\n },\n }, this.#context);\n }\n /** Fired whenever a network request interception is hit. */\n onRequestPaused(params, networkStorage) {\n if (this.#isIgnoredEvent()) {\n void this.continueRequest(params.requestId).catch(() => {\n // TODO: Add some logging\n });\n return;\n }\n // The stage of the request can be determined by presence of\n // responseErrorReason and responseStatusCode -- the request is at\n // the response stage if either of these fields is present and in the\n // request stage otherwise.\n let phase;\n if (params.responseErrorReason === undefined &&\n params.responseStatusCode === undefined) {\n phase = \"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */;\n }\n else if (params.responseStatusCode === 401 &&\n params.responseStatusText === 'Unauthorized') {\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401\n phase = \"authRequired\" /* Network.InterceptPhase.AuthRequired */;\n }\n else {\n phase = \"responseStarted\" /* Network.InterceptPhase.ResponseStarted */;\n }\n const headers = (0, NetworkUtils_js_1.bidiNetworkHeadersFromCdpFetchHeaders)(\n // TODO: Use params.request.headers if request?\n params.responseHeaders);\n (0, assert_js_1.assert)(this.requestId === params.networkId);\n networkStorage.addBlockedRequest(this.requestId, {\n request: params.requestId, // intercept request id\n phase,\n // TODO: Finish populating response / ResponseData.\n response: {\n url: params.request.url,\n // TODO: populate.\n protocol: '',\n status: params.responseStatusCode ?? 0,\n statusText: params.responseStatusText ?? '',\n // TODO: populate.\n fromCache: false,\n headers,\n // TODO: populate.\n mimeType: '',\n // TODO: populate.\n bytesReceived: 0,\n headersSize: (0, NetworkUtils_js_1.computeHeadersSize)(headers),\n // TODO: consider removing from spec.\n bodySize: 0,\n // TODO: consider removing from spec.\n content: {\n size: 0,\n },\n // TODO: populate.\n authChallenge: undefined,\n },\n });\n this.#interceptPhase = phase;\n this.#emitEventsIfReady();\n }\n /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-failRequest */\n async failRequest(networkId, errorReason) {\n await this.#cdpTarget.cdpClient.sendCommand('Fetch.failRequest', {\n requestId: networkId,\n errorReason,\n });\n this.#interceptPhase = undefined;\n }\n /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueRequest */\n async continueRequest(cdpFetchRequestId, url, method, headers) {\n // TODO: Expand.\n await this.#cdpTarget.cdpClient.sendCommand('Fetch.continueRequest', {\n requestId: cdpFetchRequestId,\n url,\n method,\n headers,\n // TODO: Set?\n // postData:,\n // interceptResponse:,\n });\n this.#interceptPhase = undefined;\n }\n /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueResponse */\n async continueResponse(cdpFetchRequestId, responseCode, responsePhrase, responseHeaders) {\n await this.#cdpTarget.cdpClient.sendCommand('Fetch.continueResponse', {\n requestId: cdpFetchRequestId,\n responseCode,\n responsePhrase,\n responseHeaders,\n });\n this.#interceptPhase = undefined;\n }\n /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueWithAuth */\n async continueWithAuth(cdpFetchRequestId, response, username, password) {\n await this.#cdpTarget.cdpClient.sendCommand('Fetch.continueWithAuth', {\n requestId: cdpFetchRequestId,\n authChallengeResponse: {\n response,\n username,\n password,\n },\n });\n this.#interceptPhase = undefined;\n }\n /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-provideResponse */\n async provideResponse(cdpFetchRequestId, responseCode, responsePhrase, responseHeaders, body) {\n await this.#cdpTarget.cdpClient.sendCommand('Fetch.fulfillRequest', {\n requestId: cdpFetchRequestId,\n responseCode,\n responsePhrase,\n responseHeaders,\n ...(body ? { body: btoa(body) } : {}), // TODO: Double-check if btoa usage is correct.\n });\n this.#interceptPhase = undefined;\n }\n dispose() {\n const result = {\n kind: 'error',\n error: new Error('Network processor detached'),\n };\n this.#beforeRequestSentDeferred.resolve(result);\n this.#responseStartedDeferred.resolve(result);\n this.#responseCompletedDeferred.resolve(result);\n }\n get #context() {\n return this.#request.info?.frameId ?? null;\n }\n /** Returns the HTTP status code associated with this request if any. */\n get statusCode() {\n return (this.#response.info?.status ?? this.#response.extraInfo?.statusCode ?? -1 // TODO: Throw an exception or use some other status code?\n );\n }\n #getBaseEventParams(phase) {\n // TODO: Set this in terms of intercepts?\n const isBlocked = phase !== undefined && phase === this.#interceptPhase;\n const intercepts = this.#networkStorage.getNetworkIntercepts(this.#requestId, phase);\n return {\n isBlocked,\n context: this.#context,\n navigation: this.#getNavigationId(),\n redirectCount: this.#redirectCount,\n request: this.#getRequestData(),\n // Timestamp should be in milliseconds, while CDP provides it in seconds.\n timestamp: Math.round((this.#request.info?.wallTime ?? 0) * 1000),\n // XXX: we should return correct types from the function.\n intercepts: isBlocked ? intercepts : undefined,\n };\n }\n #getNavigationId() {\n if (!this.#request.info ||\n !this.#request.info.loaderId ||\n // When we navigate all CDP network events have `loaderId`\n // CDP's `loaderId` and `requestId` match when\n // that request triggered the loading\n this.#request.info.loaderId !== this.#request.info.requestId) {\n return null;\n }\n return this.#request.info.loaderId;\n }\n #getRequestData() {\n const cookies = this.#request.extraInfo\n ? NetworkRequest.#getCookies(this.#request.extraInfo.associatedCookies)\n : [];\n const headers = (0, NetworkUtils_js_1.bidiNetworkHeadersFromCdpNetworkHeaders)(this.#request.info?.request.headers);\n return {\n request: this.#request.info?.requestId ?? NetworkRequest.#unknown,\n url: this.#request.info?.request.url ?? NetworkRequest.#unknown,\n method: this.#request.info?.request.method ?? NetworkRequest.#unknown,\n headers,\n cookies,\n headersSize: (0, NetworkUtils_js_1.computeHeadersSize)(headers),\n // TODO: implement.\n bodySize: 0,\n timings: this.#getTimings(),\n };\n }\n // TODO: implement.\n #getTimings() {\n return {\n timeOrigin: 0,\n requestTime: 0,\n redirectStart: 0,\n redirectEnd: 0,\n fetchStart: 0,\n dnsStart: 0,\n dnsEnd: 0,\n connectStart: 0,\n connectEnd: 0,\n tlsStart: 0,\n requestStart: 0,\n responseStart: 0,\n responseEnd: 0,\n };\n }\n #queueBeforeRequestSentEvent() {\n if (this.#isIgnoredEvent()) {\n return;\n }\n this.#eventManager.registerPromiseEvent(this.#beforeRequestSentDeferred.then((result) => {\n if (result.kind === 'success') {\n try {\n return {\n kind: 'success',\n value: Object.assign(this.#getBeforeRequestEvent(), {\n type: 'event',\n }),\n };\n }\n catch (error) {\n return {\n kind: 'error',\n error: error instanceof Error ? error : new Error('Unknown'),\n };\n }\n }\n return result;\n }), this.#context, protocol_js_1.ChromiumBidi.Network.EventNames.BeforeRequestSent);\n }\n #getBeforeRequestEvent() {\n (0, assert_js_1.assert)(this.#request.info, 'RequestWillBeSentEvent is not set');\n return {\n method: protocol_js_1.ChromiumBidi.Network.EventNames.BeforeRequestSent,\n params: {\n ...this.#getBaseEventParams(\"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */),\n initiator: {\n type: NetworkRequest.#getInitiatorType(this.#request.info.initiator.type),\n },\n },\n };\n }\n #queueResponseStartedEvent() {\n if (this.#isIgnoredEvent()) {\n return;\n }\n this.#eventManager.registerPromiseEvent(this.#responseStartedDeferred.then((result) => {\n if (result.kind === 'success') {\n try {\n return {\n kind: 'success',\n value: Object.assign(this.#getResponseStartedEvent(), {\n type: 'event',\n }),\n };\n }\n catch (error) {\n return {\n kind: 'error',\n error: error instanceof Error ? error : new Error('Unknown'),\n };\n }\n }\n return result;\n }), this.#context, protocol_js_1.ChromiumBidi.Network.EventNames.ResponseStarted);\n }\n #getResponseStartedEvent() {\n (0, assert_js_1.assert)(this.#request.info, 'RequestWillBeSentEvent is not set');\n (0, assert_js_1.assert)(this.#response.info, 'ResponseReceivedEvent is not set');\n // Chromium sends wrong extraInfo events for responses served from cache.\n // See https://github.com/puppeteer/puppeteer/issues/9965 and\n // https://crbug.com/1340398.\n if (this.#response.info.fromDiskCache) {\n this.#response.extraInfo = undefined;\n }\n const headers = (0, NetworkUtils_js_1.bidiNetworkHeadersFromCdpNetworkHeaders)(this.#response.info.headers);\n return {\n method: protocol_js_1.ChromiumBidi.Network.EventNames.ResponseStarted,\n params: {\n ...this.#getBaseEventParams(),\n response: {\n url: this.#response.info.url ?? NetworkRequest.#unknown,\n protocol: this.#response.info.protocol ?? '',\n status: this.statusCode,\n statusText: this.#response.info.statusText,\n fromCache: this.#response.info.fromDiskCache ||\n this.#response.info.fromPrefetchCache ||\n this.#servedFromCache,\n headers,\n mimeType: this.#response.info.mimeType,\n bytesReceived: this.#response.info.encodedDataLength,\n headersSize: (0, NetworkUtils_js_1.computeHeadersSize)(headers),\n // TODO: consider removing from spec.\n bodySize: 0,\n content: {\n // TODO: consider removing from spec.\n size: 0,\n },\n },\n },\n };\n }\n #queueResponseCompletedEvent() {\n if (this.#isIgnoredEvent()) {\n return;\n }\n this.#eventManager.registerPromiseEvent(this.#responseCompletedDeferred.then((result) => {\n if (result.kind === 'success') {\n try {\n return {\n kind: 'success',\n value: Object.assign(this.#getResponseReceivedEvent(), {\n type: 'event',\n }),\n };\n }\n catch (error) {\n return {\n kind: 'error',\n error: error instanceof Error ? error : new Error('Unknown'),\n };\n }\n }\n return result;\n }), this.#context, protocol_js_1.ChromiumBidi.Network.EventNames.ResponseCompleted);\n }\n #getResponseReceivedEvent() {\n (0, assert_js_1.assert)(this.#request.info, 'RequestWillBeSentEvent is not set');\n (0, assert_js_1.assert)(this.#response.info, 'ResponseReceivedEvent is not set');\n // Chromium sends wrong extraInfo events for responses served from cache.\n // See https://github.com/puppeteer/puppeteer/issues/9965 and\n // https://crbug.com/1340398.\n if (this.#response.info.fromDiskCache) {\n this.#response.extraInfo = undefined;\n }\n const headers = (0, NetworkUtils_js_1.bidiNetworkHeadersFromCdpNetworkHeaders)(this.#response.info.headers);\n return {\n method: protocol_js_1.ChromiumBidi.Network.EventNames.ResponseCompleted,\n params: {\n ...this.#getBaseEventParams(),\n response: {\n url: this.#response.info.url ?? NetworkRequest.#unknown,\n protocol: this.#response.info.protocol ?? '',\n status: this.statusCode,\n statusText: this.#response.info.statusText,\n fromCache: this.#response.info.fromDiskCache ||\n this.#response.info.fromPrefetchCache ||\n this.#servedFromCache,\n headers,\n mimeType: this.#response.info.mimeType,\n bytesReceived: this.#response.info.encodedDataLength,\n headersSize: (0, NetworkUtils_js_1.computeHeadersSize)(headers),\n // TODO: consider removing from spec.\n bodySize: 0,\n content: {\n // TODO: consider removing from spec.\n size: 0,\n },\n },\n },\n };\n }\n #isIgnoredEvent() {\n return this.#request.info?.request.url.endsWith('/favicon.ico') ?? false;\n }\n static #getInitiatorType(initiatorType) {\n switch (initiatorType) {\n case 'parser':\n case 'script':\n case 'preflight':\n return initiatorType;\n default:\n return 'other';\n }\n }\n static #getCookies(associatedCookies) {\n return associatedCookies\n .filter(({ blockedReasons }) => {\n return !Array.isArray(blockedReasons) || blockedReasons.length === 0;\n })\n .map(({ cookie }) => {\n return {\n name: cookie.name,\n value: {\n type: 'string',\n value: cookie.value,\n },\n domain: cookie.domain,\n path: cookie.path,\n expires: cookie.expires,\n size: cookie.size,\n httpOnly: cookie.httpOnly,\n secure: cookie.secure,\n sameSite: NetworkRequest.#getCookiesSameSite(cookie.sameSite),\n };\n });\n }\n static #getCookiesSameSite(cdpSameSiteValue) {\n switch (cdpSameSiteValue) {\n case 'Strict':\n return 'strict';\n case 'Lax':\n return 'lax';\n default:\n return 'none';\n }\n }\n}\nexports.NetworkRequest = NetworkRequest;\n//# sourceMappingURL=NetworkRequest.js.map","\"use strict\";\n/*\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NetworkManager = void 0;\nconst NetworkRequest_js_1 = require(\"./NetworkRequest.js\");\n/** Maps 1:1 to CdpTarget. */\nclass NetworkManager {\n #cdpTarget;\n #eventManager;\n #networkStorage;\n constructor(cdpTarget, eventManager, networkStorage) {\n this.#cdpTarget = cdpTarget;\n this.#eventManager = eventManager;\n this.#networkStorage = networkStorage;\n }\n /** Returns the CDP Target associated with this NetworkManager instance. */\n get cdpTarget() {\n return this.#cdpTarget;\n }\n /**\n * Gets the network request with the given ID, if any.\n * Otherwise, creates a new network request with the given ID and cdp target.\n */\n #getOrCreateNetworkRequest(id, redirectCount) {\n let request = this.#networkStorage.getRequest(id);\n if (request) {\n return request;\n }\n request = new NetworkRequest_js_1.NetworkRequest(id, this.#eventManager, this.#networkStorage, this.#cdpTarget, redirectCount);\n this.#networkStorage.addRequest(request);\n return request;\n }\n static create(cdpTarget, eventManager, networkStorage) {\n const networkManager = new NetworkManager(cdpTarget, eventManager, networkStorage);\n cdpTarget.browserCdpClient.on('Target.detachedFromTarget', (params) => {\n if (cdpTarget.cdpClient.sessionId === params.sessionId) {\n networkManager.#networkStorage.disposeRequestMap();\n }\n });\n cdpTarget.cdpClient.on('Network.requestWillBeSent', (params) => {\n const request = networkManager.#networkStorage.getRequest(params.requestId);\n if (request && request.isRedirecting()) {\n request.handleRedirect(params);\n networkManager.#networkStorage.deleteRequest(params.requestId);\n networkManager\n .#getOrCreateNetworkRequest(params.requestId, request.redirectCount + 1)\n .onRequestWillBeSentEvent(params);\n }\n else if (request) {\n request.onRequestWillBeSentEvent(params);\n }\n else {\n networkManager\n .#getOrCreateNetworkRequest(params.requestId)\n .onRequestWillBeSentEvent(params);\n }\n });\n cdpTarget.cdpClient.on('Network.requestWillBeSentExtraInfo', (params) => {\n networkManager\n .#getOrCreateNetworkRequest(params.requestId)\n .onRequestWillBeSentExtraInfoEvent(params);\n });\n cdpTarget.cdpClient.on('Network.responseReceived', (params) => {\n networkManager\n .#getOrCreateNetworkRequest(params.requestId)\n .onResponseReceivedEvent(params);\n });\n cdpTarget.cdpClient.on('Network.responseReceivedExtraInfo', (params) => {\n networkManager\n .#getOrCreateNetworkRequest(params.requestId)\n .onResponseReceivedExtraInfoEvent(params);\n });\n cdpTarget.cdpClient.on('Network.requestServedFromCache', (params) => {\n networkManager\n .#getOrCreateNetworkRequest(params.requestId)\n .onServedFromCache();\n });\n cdpTarget.cdpClient.on('Network.loadingFailed', (params) => {\n networkManager\n .#getOrCreateNetworkRequest(params.requestId)\n .onLoadingFailedEvent(params);\n });\n // https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#event-requestPaused\n cdpTarget.cdpClient.on('Fetch.requestPaused', (params) => {\n if (params.networkId) {\n networkManager\n .#getOrCreateNetworkRequest(params.networkId)\n .onRequestPaused(params, networkManager.#networkStorage);\n }\n });\n return networkManager;\n }\n}\nexports.NetworkManager = NetworkManager;\n//# sourceMappingURL=NetworkManager.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CdpTarget = void 0;\nconst Deferred_js_1 = require(\"../../../utils/Deferred.js\");\nconst LogManager_js_1 = require(\"../log/LogManager.js\");\nconst NetworkManager_js_1 = require(\"../network/NetworkManager.js\");\nclass CdpTarget {\n #targetId;\n #cdpClient;\n #browserCdpClient;\n #cdpSessionId;\n #eventManager;\n #preloadScriptStorage;\n #networkStorage;\n #targetUnblocked = new Deferred_js_1.Deferred();\n #acceptInsecureCerts;\n static create(targetId, cdpClient, browserCdpClient, cdpSessionId, realmStorage, eventManager, preloadScriptStorage, networkStorage, acceptInsecureCerts) {\n const cdpTarget = new CdpTarget(targetId, cdpClient, browserCdpClient, cdpSessionId, eventManager, preloadScriptStorage, networkStorage, acceptInsecureCerts);\n LogManager_js_1.LogManager.create(cdpTarget, realmStorage, eventManager);\n NetworkManager_js_1.NetworkManager.create(cdpTarget, eventManager, networkStorage);\n cdpTarget.#setEventListeners();\n // No need to await.\n // Deferred will be resolved when the target is unblocked.\n void cdpTarget.#unblock();\n return cdpTarget;\n }\n constructor(targetId, cdpClient, browserCdpClient, cdpSessionId, eventManager, preloadScriptStorage, networkStorage, acceptInsecureCerts) {\n this.#targetId = targetId;\n this.#cdpClient = cdpClient;\n this.#cdpSessionId = cdpSessionId;\n this.#eventManager = eventManager;\n this.#preloadScriptStorage = preloadScriptStorage;\n this.#networkStorage = networkStorage;\n this.#browserCdpClient = browserCdpClient;\n this.#acceptInsecureCerts = acceptInsecureCerts;\n }\n /** Returns a promise that resolves when the target is unblocked. */\n get targetUnblocked() {\n return this.#targetUnblocked;\n }\n get targetId() {\n return this.#targetId;\n }\n get cdpClient() {\n return this.#cdpClient;\n }\n get browserCdpClient() {\n return this.#browserCdpClient;\n }\n /** Needed for CDP escape path. */\n get cdpSessionId() {\n return this.#cdpSessionId;\n }\n /** Calls `Fetch.enable` with the added network intercepts. */\n async fetchEnable() {\n await this.#cdpClient.sendCommand('Fetch.enable', this.#networkStorage.getFetchEnableParams());\n }\n /** Calls `Fetch.disable`. */\n async fetchDisable() {\n await this.#cdpClient.sendCommand('Fetch.disable');\n }\n /**\n * Enables all the required CDP domains and unblocks the target.\n */\n async #unblock() {\n try {\n await Promise.all([\n this.#cdpClient.sendCommand('Runtime.enable'),\n this.#cdpClient.sendCommand('Page.enable'),\n this.#cdpClient.sendCommand('Page.setLifecycleEventsEnabled', {\n enabled: true,\n }),\n // Set ignore certificate errors for each target.\n this.#cdpClient.sendCommand('Security.setIgnoreCertificateErrors', {\n ignore: this.#acceptInsecureCerts,\n }),\n // XXX: #1080: Do not always enable the network domain globally.\n // TODO: enable Network domain for OOPiF targets.\n this.#cdpClient.sendCommand('Network.enable'),\n // XXX: #1080: Do not always enable the fetch domain globally.\n this.fetchEnable(),\n this.#cdpClient.sendCommand('Target.setAutoAttach', {\n autoAttach: true,\n waitForDebuggerOnStart: true,\n flatten: true,\n }),\n this.#initAndEvaluatePreloadScripts(),\n this.#cdpClient.sendCommand('Runtime.runIfWaitingForDebugger'),\n ]);\n }\n catch (error) {\n // The target might have been closed before the initialization finished.\n if (!this.#cdpClient.isCloseError(error)) {\n this.#targetUnblocked.resolve({\n kind: 'error',\n error,\n });\n return;\n }\n }\n this.#targetUnblocked.resolve({\n kind: 'success',\n value: undefined,\n });\n }\n #setEventListeners() {\n this.#cdpClient.on('*', (event, params) => {\n // We may encounter uses for EventEmitter other than CDP events,\n // which we want to skip.\n if (typeof event !== 'string') {\n return;\n }\n this.#eventManager.registerEvent({\n type: 'event',\n method: `cdp.${event}`,\n params: {\n event,\n params,\n session: this.#cdpSessionId,\n },\n }, null);\n });\n }\n /**\n * All the ProxyChannels from all the preload scripts of the given\n * BrowsingContext.\n */\n getChannels() {\n return this.#preloadScriptStorage\n .find()\n .flatMap((script) => script.channels);\n }\n /** Loads all top-level preload scripts. */\n async #initAndEvaluatePreloadScripts() {\n for (const script of this.#preloadScriptStorage.find({\n global: true,\n })) {\n await script.initInTarget(this, true);\n }\n }\n}\nexports.CdpTarget = CdpTarget;\n//# sourceMappingURL=CdpTarget.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BrowsingContextProcessor = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst log_js_1 = require(\"../../../utils/log.js\");\nconst Realm_js_1 = require(\"../script/Realm.js\");\nconst BrowsingContextImpl_js_1 = require(\"./BrowsingContextImpl.js\");\nconst CdpTarget_js_1 = require(\"./CdpTarget.js\");\nclass BrowsingContextProcessor {\n #browserCdpClient;\n #cdpConnection;\n #selfTargetId;\n #eventManager;\n #browsingContextStorage;\n #networkStorage;\n #acceptInsecureCerts;\n #preloadScriptStorage;\n #realmStorage;\n #logger;\n constructor(cdpConnection, browserCdpClient, selfTargetId, eventManager, browsingContextStorage, realmStorage, networkStorage, preloadScriptStorage, acceptInsecureCerts, logger) {\n this.#acceptInsecureCerts = acceptInsecureCerts;\n this.#cdpConnection = cdpConnection;\n this.#browserCdpClient = browserCdpClient;\n this.#selfTargetId = selfTargetId;\n this.#eventManager = eventManager;\n this.#browsingContextStorage = browsingContextStorage;\n this.#preloadScriptStorage = preloadScriptStorage;\n this.#networkStorage = networkStorage;\n this.#realmStorage = realmStorage;\n this.#logger = logger;\n this.#setEventListeners(browserCdpClient);\n }\n getTree(params) {\n const resultContexts = params.root === undefined\n ? this.#browsingContextStorage.getTopLevelContexts()\n : [this.#browsingContextStorage.getContext(params.root)];\n return {\n contexts: resultContexts.map((c) => c.serializeToBidiValue(params.maxDepth ?? Number.MAX_VALUE)),\n };\n }\n async create(params) {\n let referenceContext;\n if (params.referenceContext !== undefined) {\n referenceContext = this.#browsingContextStorage.getContext(params.referenceContext);\n if (!referenceContext.isTopLevelContext()) {\n throw new protocol_js_1.InvalidArgumentException(`referenceContext should be a top-level context`);\n }\n }\n let result;\n switch (params.type) {\n case \"tab\" /* BrowsingContext.CreateType.Tab */:\n result = await this.#browserCdpClient.sendCommand('Target.createTarget', {\n url: 'about:blank',\n newWindow: false,\n });\n break;\n case \"window\" /* BrowsingContext.CreateType.Window */:\n result = await this.#browserCdpClient.sendCommand('Target.createTarget', {\n url: 'about:blank',\n newWindow: true,\n });\n break;\n }\n // Wait for the new tab to be loaded to avoid race conditions in the\n // `browsingContext` events, when the `browsingContext.domContentLoaded` and\n // `browsingContext.load` events from the initial `about:blank` navigation\n // are emitted after the next navigation is started.\n // Details: https://github.com/web-platform-tests/wpt/issues/35846\n const contextId = result.targetId;\n const context = this.#browsingContextStorage.getContext(contextId);\n await context.lifecycleLoaded();\n return { context: context.id };\n }\n navigate(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n return context.navigate(params.url, params.wait ?? \"none\" /* BrowsingContext.ReadinessState.None */);\n }\n reload(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n return context.reload(params.ignoreCache ?? false, params.wait ?? \"none\" /* BrowsingContext.ReadinessState.None */);\n }\n async activate(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n if (!context.isTopLevelContext()) {\n throw new protocol_js_1.InvalidArgumentException('Activation is only supported on the top-level context');\n }\n await context.activate();\n return {};\n }\n async captureScreenshot(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n return await context.captureScreenshot(params);\n }\n async print(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n return await context.print(params);\n }\n async setViewport(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n if (!context.isTopLevelContext()) {\n throw new protocol_js_1.InvalidArgumentException('Emulating viewport is only supported on the top-level context');\n }\n await context.setViewport(params.viewport, params.devicePixelRatio);\n return {};\n }\n async traverseHistory(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n if (!context) {\n throw new protocol_js_1.InvalidArgumentException(`No browsing context with id ${params.context}`);\n }\n await context.traverseHistory(params.delta);\n return {};\n }\n async handleUserPrompt(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n await context.handleUserPrompt(params);\n return {};\n }\n async close(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n if (!context.isTopLevelContext()) {\n throw new protocol_js_1.InvalidArgumentException(`Non top-level browsing context ${context.id} cannot be closed.`);\n }\n try {\n const detachedFromTargetPromise = new Promise((resolve) => {\n const onContextDestroyed = (event) => {\n if (event.targetId === params.context) {\n this.#browserCdpClient.off('Target.detachedFromTarget', onContextDestroyed);\n resolve();\n }\n };\n this.#browserCdpClient.on('Target.detachedFromTarget', onContextDestroyed);\n });\n if (params.promptUnload) {\n await context.close();\n }\n else {\n await this.#browserCdpClient.sendCommand('Target.closeTarget', {\n targetId: params.context,\n });\n }\n // Sometimes CDP command finishes before `detachedFromTarget` event,\n // sometimes after. Wait for the CDP command to be finished, and then wait\n // for `detachedFromTarget` if it hasn't emitted.\n await detachedFromTargetPromise;\n }\n catch (error) {\n // Swallow error that arise from the page being destroyed\n // Example is navigating to faulty SSL certificate\n if (!(error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ &&\n error.message === 'Not attached to an active page')) {\n throw error;\n }\n }\n return {};\n }\n /**\n * This method is called for each CDP session, since this class is responsible\n * for creating and destroying all targets and browsing contexts.\n */\n #setEventListeners(cdpClient) {\n cdpClient.on('Target.attachedToTarget', (params) => {\n this.#handleAttachedToTargetEvent(params, cdpClient);\n });\n cdpClient.on('Target.detachedFromTarget', (params) => {\n this.#handleDetachedFromTargetEvent(params);\n });\n cdpClient.on('Target.targetInfoChanged', (params) => {\n this.#handleTargetInfoChangedEvent(params);\n });\n cdpClient.on('Page.frameAttached', (params) => {\n this.#handleFrameAttachedEvent(params);\n });\n cdpClient.on('Page.frameDetached', (params) => {\n this.#handleFrameDetachedEvent(params);\n });\n }\n #handleFrameAttachedEvent(params) {\n const parentBrowsingContext = this.#browsingContextStorage.findContext(params.parentFrameId);\n if (parentBrowsingContext !== undefined) {\n BrowsingContextImpl_js_1.BrowsingContextImpl.create(parentBrowsingContext.cdpTarget, this.#realmStorage, params.frameId, params.parentFrameId, this.#eventManager, this.#browsingContextStorage, this.#logger);\n }\n }\n #handleFrameDetachedEvent(params) {\n // In case of OOPiF no need in deleting BrowsingContext.\n if (params.reason === 'swap') {\n return;\n }\n this.#browsingContextStorage.findContext(params.frameId)?.dispose();\n }\n #handleAttachedToTargetEvent(params, parentSessionCdpClient) {\n const { sessionId, targetInfo } = params;\n const targetCdpClient = this.#cdpConnection.getCdpClient(sessionId);\n this.#logger?.(log_js_1.LogType.debugInfo, 'AttachedToTarget event received:', params);\n switch (targetInfo.type) {\n case 'page':\n case 'iframe': {\n if (targetInfo.targetId === this.#selfTargetId) {\n break;\n }\n this.#setEventListeners(targetCdpClient);\n const cdpTarget = CdpTarget_js_1.CdpTarget.create(targetInfo.targetId, targetCdpClient, this.#browserCdpClient, sessionId, this.#realmStorage, this.#eventManager, this.#preloadScriptStorage, this.#networkStorage, this.#acceptInsecureCerts);\n const maybeContext = this.#browsingContextStorage.findContext(targetInfo.targetId);\n if (maybeContext) {\n // OOPiF.\n maybeContext.updateCdpTarget(cdpTarget);\n }\n else {\n // New context.\n BrowsingContextImpl_js_1.BrowsingContextImpl.create(cdpTarget, this.#realmStorage, targetInfo.targetId, null, this.#eventManager, this.#browsingContextStorage, this.#logger);\n }\n return;\n }\n case 'worker': {\n this.#setEventListeners(targetCdpClient);\n const cdpTarget = CdpTarget_js_1.CdpTarget.create(targetInfo.targetId, targetCdpClient, this.#browserCdpClient, sessionId, this.#realmStorage, this.#eventManager, this.#preloadScriptStorage, this.#networkStorage, this.#acceptInsecureCerts);\n const browsingContext = parentSessionCdpClient.sessionId &&\n this.#browsingContextStorage.findContextBySession(parentSessionCdpClient.sessionId);\n // If there is no browsing context, this worker is already terminated.\n if (!browsingContext) {\n break;\n }\n this.#handleWorkerTarget(cdpTarget, browsingContext.id);\n return;\n }\n }\n // DevTools or some other not supported by BiDi target. Just release\n // debugger and ignore them.\n targetCdpClient\n .sendCommand('Runtime.runIfWaitingForDebugger')\n .then(() => parentSessionCdpClient.sendCommand('Target.detachFromTarget', params))\n .catch((error) => this.#logger?.(log_js_1.LogType.debugError, error));\n }\n #workers = new Map();\n #handleWorkerTarget(cdpTarget, browsingContextId) {\n cdpTarget.cdpClient.on('Runtime.executionContextCreated', (params) => {\n const { uniqueId, id, origin } = params.context;\n const realm = new Realm_js_1.Realm(this.#realmStorage, this.#browsingContextStorage, uniqueId, browsingContextId, id, (0, BrowsingContextImpl_js_1.serializeOrigin)(origin), 'dedicated-worker', undefined, cdpTarget.cdpClient, this.#eventManager, this.#logger);\n this.#workers.set(cdpTarget.cdpSessionId, realm);\n });\n }\n #handleDetachedFromTargetEvent(params) {\n const context = this.#browsingContextStorage.findContextBySession(params.sessionId);\n if (context) {\n context.dispose();\n this.#preloadScriptStorage\n .find({ targetId: context.id })\n .map((preloadScript) => preloadScript.dispose(context.id));\n return;\n }\n const worker = this.#workers.get(params.sessionId);\n if (worker) {\n this.#realmStorage.deleteRealms({\n cdpSessionId: worker.cdpClient.sessionId,\n });\n }\n }\n #handleTargetInfoChangedEvent(params) {\n const context = this.#browsingContextStorage.findContext(params.targetInfo.targetId);\n if (context) {\n context.onTargetInfoChanged(params);\n }\n }\n}\nexports.BrowsingContextProcessor = BrowsingContextProcessor;\n//# sourceMappingURL=BrowsingContextProcessor.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WheelSource = exports.PointerSource = exports.KeySource = exports.NoneSource = void 0;\nclass NoneSource {\n type = \"none\" /* SourceType.None */;\n}\nexports.NoneSource = NoneSource;\nclass KeySource {\n type = \"key\" /* SourceType.Key */;\n pressed = new Set();\n // This is a bitfield that matches the modifiers parameter of\n // https://chromedevtools.github.io/devtools-protocol/tot/Input/#method-dispatchKeyEvent\n #modifiers = 0;\n get modifiers() {\n return this.#modifiers;\n }\n get alt() {\n return (this.#modifiers & 1) === 1;\n }\n set alt(value) {\n this.#setModifier(value, 1);\n }\n get ctrl() {\n return (this.#modifiers & 2) === 2;\n }\n set ctrl(value) {\n this.#setModifier(value, 2);\n }\n get meta() {\n return (this.#modifiers & 4) === 4;\n }\n set meta(value) {\n this.#setModifier(value, 4);\n }\n get shift() {\n return (this.#modifiers & 8) === 8;\n }\n set shift(value) {\n this.#setModifier(value, 8);\n }\n #setModifier(value, bit) {\n if (value) {\n this.#modifiers |= bit;\n }\n else {\n this.#modifiers &= ~bit;\n }\n }\n}\nexports.KeySource = KeySource;\nclass PointerSource {\n type = \"pointer\" /* SourceType.Pointer */;\n subtype;\n pointerId;\n pressed = new Set();\n x = 0;\n y = 0;\n constructor(id, subtype) {\n this.pointerId = id;\n this.subtype = subtype;\n }\n // This is a bitfield that matches the buttons parameter of\n // https://chromedevtools.github.io/devtools-protocol/tot/Input/#method-dispatchMouseEvent\n get buttons() {\n let buttons = 0;\n for (const button of this.pressed) {\n switch (button) {\n case 0:\n buttons |= 1;\n break;\n case 1:\n buttons |= 4;\n break;\n case 2:\n buttons |= 2;\n break;\n case 3:\n buttons |= 8;\n break;\n case 4:\n buttons |= 16;\n break;\n }\n }\n return buttons;\n }\n // --- Platform-specific code starts here ---\n // Input.dispatchMouseEvent doesn't know the concept of double click, so we\n // need to create the logic, similar to how it's done for OSes:\n // https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:ui/events/event.cc;l=479\n static ClickContext = class ClickContext {\n static #DOUBLE_CLICK_TIME_MS = 500;\n static #MAX_DOUBLE_CLICK_RADIUS = 2;\n count = 0;\n #x;\n #y;\n #time;\n constructor(x, y, time) {\n this.#x = x;\n this.#y = y;\n this.#time = time;\n }\n compare(context) {\n return (\n // The click needs to be within a certain amount of ms.\n context.#time - this.#time > ClickContext.#DOUBLE_CLICK_TIME_MS ||\n // The click needs to be within a certain square radius.\n Math.abs(context.#x - this.#x) >\n ClickContext.#MAX_DOUBLE_CLICK_RADIUS ||\n Math.abs(context.#y - this.#y) > ClickContext.#MAX_DOUBLE_CLICK_RADIUS);\n }\n };\n #clickContexts = new Map();\n setClickCount(button, context) {\n let storedContext = this.#clickContexts.get(button);\n if (!storedContext || storedContext.compare(context)) {\n storedContext = context;\n }\n ++storedContext.count;\n this.#clickContexts.set(button, storedContext);\n return storedContext.count;\n }\n getClickCount(button) {\n return this.#clickContexts.get(button)?.count ?? 0;\n }\n}\nexports.PointerSource = PointerSource;\nclass WheelSource {\n type = \"wheel\" /* SourceType.Wheel */;\n}\nexports.WheelSource = WheelSource;\n//# sourceMappingURL=InputSource.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getKeyLocation = exports.getKeyCode = exports.getNormalizedKey = void 0;\nfunction getNormalizedKey(value) {\n switch (value) {\n case '\\uE000':\n return 'Unidentified';\n case '\\uE001':\n return 'Cancel';\n case '\\uE002':\n return 'Help';\n case '\\uE003':\n return 'Backspace';\n case '\\uE004':\n return 'Tab';\n case '\\uE005':\n return 'Clear';\n case '\\uE006':\n return 'Return';\n case '\\uE007':\n return 'Enter';\n case '\\uE008':\n return 'Shift';\n case '\\uE009':\n return 'Control';\n case '\\uE00A':\n return 'Alt';\n case '\\uE00B':\n return 'Pause';\n case '\\uE00C':\n return 'Escape';\n case '\\uE00D':\n return ' ';\n case '\\uE00E':\n return 'PageUp';\n case '\\uE00F':\n return 'PageDown';\n case '\\uE010':\n return 'End';\n case '\\uE011':\n return 'Home';\n case '\\uE012':\n return 'ArrowLeft';\n case '\\uE013':\n return 'ArrowUp';\n case '\\uE014':\n return 'ArrowRight';\n case '\\uE015':\n return 'ArrowDown';\n case '\\uE016':\n return 'Insert';\n case '\\uE017':\n return 'Delete';\n case '\\uE018':\n return ';';\n case '\\uE019':\n return '=';\n case '\\uE01A':\n return '0';\n case '\\uE01B':\n return '1';\n case '\\uE01C':\n return '2';\n case '\\uE01D':\n return '3';\n case '\\uE01E':\n return '4';\n case '\\uE01F':\n return '5';\n case '\\uE020':\n return '6';\n case '\\uE021':\n return '7';\n case '\\uE022':\n return '8';\n case '\\uE023':\n return '9';\n case '\\uE024':\n return '*';\n case '\\uE025':\n return '+';\n case '\\uE026':\n return ',';\n case '\\uE027':\n return '-';\n case '\\uE028':\n return '.';\n case '\\uE029':\n return '/';\n case '\\uE031':\n return 'F1';\n case '\\uE032':\n return 'F2';\n case '\\uE033':\n return 'F3';\n case '\\uE034':\n return 'F4';\n case '\\uE035':\n return 'F5';\n case '\\uE036':\n return 'F6';\n case '\\uE037':\n return 'F7';\n case '\\uE038':\n return 'F8';\n case '\\uE039':\n return 'F9';\n case '\\uE03A':\n return 'F10';\n case '\\uE03B':\n return 'F11';\n case '\\uE03C':\n return 'F12';\n case '\\uE03D':\n return 'Meta';\n case '\\uE040':\n return 'ZenkakuHankaku';\n case '\\uE050':\n return 'Shift';\n case '\\uE051':\n return 'Control';\n case '\\uE052':\n return 'Alt';\n case '\\uE053':\n return 'Meta';\n case '\\uE054':\n return 'PageUp';\n case '\\uE055':\n return 'PageDown';\n case '\\uE056':\n return 'End';\n case '\\uE057':\n return 'Home';\n case '\\uE058':\n return 'ArrowLeft';\n case '\\uE059':\n return 'ArrowUp';\n case '\\uE05A':\n return 'ArrowRight';\n case '\\uE05B':\n return 'ArrowDown';\n case '\\uE05C':\n return 'Insert';\n case '\\uE05D':\n return 'Delete';\n default:\n return value;\n }\n}\nexports.getNormalizedKey = getNormalizedKey;\nfunction getKeyCode(key) {\n switch (key) {\n case '`':\n case '~':\n return 'Backquote';\n case '\\\\':\n case '|':\n return 'Backslash';\n case '\\uE003':\n return 'Backspace';\n case '[':\n case '{':\n return 'BracketLeft';\n case ']':\n case '}':\n return 'BracketRight';\n case ',':\n case '<':\n return 'Comma';\n case '0':\n case ')':\n return 'Digit0';\n case '1':\n case '!':\n return 'Digit1';\n case '2':\n case '@':\n return 'Digit2';\n case '3':\n case '#':\n return 'Digit3';\n case '4':\n case '$':\n return 'Digit4';\n case '5':\n case '%':\n return 'Digit5';\n case '6':\n case '^':\n return 'Digit6';\n case '7':\n case '&':\n return 'Digit7';\n case '8':\n case '*':\n return 'Digit8';\n case '9':\n case '(':\n return 'Digit9';\n case '=':\n case '+':\n return 'Equal';\n case 'a':\n case 'A':\n return 'KeyA';\n case 'b':\n case 'B':\n return 'KeyB';\n case 'c':\n case 'C':\n return 'KeyC';\n case 'd':\n case 'D':\n return 'KeyD';\n case 'e':\n case 'E':\n return 'KeyE';\n case 'f':\n case 'F':\n return 'KeyF';\n case 'g':\n case 'G':\n return 'KeyG';\n case 'h':\n case 'H':\n return 'KeyH';\n case 'i':\n case 'I':\n return 'KeyI';\n case 'j':\n case 'J':\n return 'KeyJ';\n case 'k':\n case 'K':\n return 'KeyK';\n case 'l':\n case 'L':\n return 'KeyL';\n case 'm':\n case 'M':\n return 'KeyM';\n case 'n':\n case 'N':\n return 'KeyN';\n case 'o':\n case 'O':\n return 'KeyO';\n case 'p':\n case 'P':\n return 'KeyP';\n case 'q':\n case 'Q':\n return 'KeyQ';\n case 'r':\n case 'R':\n return 'KeyR';\n case 's':\n case 'S':\n return 'KeyS';\n case 't':\n case 'T':\n return 'KeyT';\n case 'u':\n case 'U':\n return 'KeyU';\n case 'v':\n case 'V':\n return 'KeyV';\n case 'w':\n case 'W':\n return 'KeyW';\n case 'x':\n case 'X':\n return 'KeyX';\n case 'y':\n case 'Y':\n return 'KeyY';\n case 'z':\n case 'Z':\n return 'KeyZ';\n case '-':\n case '_':\n return 'Minus';\n case '.':\n return 'Period';\n case \"'\":\n case '\"':\n return 'Quote';\n case ';':\n case ':':\n return 'Semicolon';\n case '/':\n case '?':\n return 'Slash';\n case '\\uE00A':\n return 'AltLeft';\n case '\\uE052':\n return 'AltRight';\n case '\\uE009':\n return 'ControlLeft';\n case '\\uE051':\n return 'ControlRight';\n case '\\uE006':\n return 'Enter';\n case '\\uE03D':\n return 'MetaLeft';\n case '\\uE053':\n return 'MetaRight';\n case '\\uE008':\n return 'ShiftLeft';\n case '\\uE050':\n return 'ShiftRight';\n case ' ':\n case '\\uE00D':\n return 'Space';\n case '\\uE004':\n return 'Tab';\n case '\\uE017':\n return 'Delete';\n case '\\uE010':\n return 'End';\n case '\\uE002':\n return 'Help';\n case '\\uE011':\n return 'Home';\n case '\\uE016':\n return 'Insert';\n case '\\uE00F':\n return 'PageDown';\n case '\\uE00E':\n return 'PageUp';\n case '\\uE015':\n return 'ArrowDown';\n case '\\uE012':\n return 'ArrowLeft';\n case '\\uE014':\n return 'ArrowRight';\n case '\\uE013':\n return 'ArrowUp';\n case '\\uE00C':\n return 'Escape';\n case '\\uE031':\n return 'F1';\n case '\\uE032':\n return 'F2';\n case '\\uE033':\n return 'F3';\n case '\\uE034':\n return 'F4';\n case '\\uE035':\n return 'F5';\n case '\\uE036':\n return 'F6';\n case '\\uE037':\n return 'F7';\n case '\\uE038':\n return 'F8';\n case '\\uE039':\n return 'F9';\n case '\\uE03A':\n return 'F10';\n case '\\uE03B':\n return 'F11';\n case '\\uE03C':\n return 'F12';\n case '\\uE01A':\n case '\\uE05C':\n return 'Numpad0';\n case '\\uE01B':\n case '\\uE056':\n return 'Numpad1';\n case '\\uE01C':\n case '\\uE05B':\n return 'Numpad2';\n case '\\uE01D':\n case '\\uE055':\n return 'Numpad3';\n case '\\uE01E':\n case '\\uE058':\n return 'Numpad4';\n case '\\uE01F':\n return 'Numpad5';\n case '\\uE020':\n case '\\uE05A':\n return 'Numpad6';\n case '\\uE021':\n case '\\uE057':\n return 'Numpad7';\n case '\\uE022':\n case '\\uE059':\n return 'Numpad8';\n case '\\uE023':\n case '\\uE054':\n return 'Numpad9';\n case '\\uE025':\n return 'NumpadAdd';\n case '\\uE026':\n return 'NumpadComma';\n case '\\uE028':\n case '\\uE05D':\n return 'NumpadDecimal';\n case '\\uE029':\n return 'NumpadDivide';\n case '\\uE007':\n return 'NumpadEnter';\n case '\\uE024':\n return 'NumpadMultiply';\n case '\\uE027':\n return 'NumpadSubtract';\n default:\n return;\n }\n}\nexports.getKeyCode = getKeyCode;\nfunction getKeyLocation(key) {\n switch (key) {\n case '\\uE007':\n case '\\uE008':\n case '\\uE009':\n case '\\uE00A':\n case '\\uE03D':\n return 1;\n case '\\uE01A':\n case '\\uE01B':\n case '\\uE01C':\n case '\\uE01D':\n case '\\uE01E':\n case '\\uE01F':\n case '\\uE020':\n case '\\uE021':\n case '\\uE022':\n case '\\uE023':\n case '\\uE024':\n case '\\uE025':\n case '\\uE026':\n case '\\uE027':\n case '\\uE028':\n case '\\uE029':\n case '\\uE054':\n case '\\uE055':\n case '\\uE056':\n case '\\uE057':\n case '\\uE058':\n case '\\uE059':\n case '\\uE05A':\n case '\\uE05B':\n case '\\uE05C':\n case '\\uE05D':\n return 3;\n case '\\uE050':\n case '\\uE051':\n case '\\uE052':\n case '\\uE053':\n return 2;\n default:\n return 0;\n }\n}\nexports.getKeyLocation = getKeyLocation;\n//# sourceMappingURL=keyUtils.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.KeyToKeyCode = void 0;\n// TODO: Remove this once https://crrev.com/c/4548290 is stably in Chromium.\n// `Input.dispatchKeyboardEvent` will automatically handle these conversions.\nexports.KeyToKeyCode = {\n '0': 48,\n '1': 49,\n '2': 50,\n '3': 51,\n '4': 52,\n '5': 53,\n '6': 54,\n '7': 55,\n '8': 56,\n '9': 57,\n Abort: 3,\n Help: 6,\n Backspace: 8,\n Tab: 9,\n Numpad5: 12,\n NumpadEnter: 13,\n Enter: 13,\n '\\\\r': 13,\n '\\\\n': 13,\n ShiftLeft: 16,\n ShiftRight: 16,\n ControlLeft: 17,\n ControlRight: 17,\n AltLeft: 18,\n AltRight: 18,\n Pause: 19,\n CapsLock: 20,\n Escape: 27,\n Convert: 28,\n NonConvert: 29,\n Space: 32,\n Numpad9: 33,\n PageUp: 33,\n Numpad3: 34,\n PageDown: 34,\n End: 35,\n Numpad1: 35,\n Home: 36,\n Numpad7: 36,\n ArrowLeft: 37,\n Numpad4: 37,\n Numpad8: 38,\n ArrowUp: 38,\n ArrowRight: 39,\n Numpad6: 39,\n Numpad2: 40,\n ArrowDown: 40,\n Select: 41,\n Open: 43,\n PrintScreen: 44,\n Insert: 45,\n Numpad0: 45,\n Delete: 46,\n NumpadDecimal: 46,\n Digit0: 48,\n Digit1: 49,\n Digit2: 50,\n Digit3: 51,\n Digit4: 52,\n Digit5: 53,\n Digit6: 54,\n Digit7: 55,\n Digit8: 56,\n Digit9: 57,\n KeyA: 65,\n KeyB: 66,\n KeyC: 67,\n KeyD: 68,\n KeyE: 69,\n KeyF: 70,\n KeyG: 71,\n KeyH: 72,\n KeyI: 73,\n KeyJ: 74,\n KeyK: 75,\n KeyL: 76,\n KeyM: 77,\n KeyN: 78,\n KeyO: 79,\n KeyP: 80,\n KeyQ: 81,\n KeyR: 82,\n KeyS: 83,\n KeyT: 84,\n KeyU: 85,\n KeyV: 86,\n KeyW: 87,\n KeyX: 88,\n KeyY: 89,\n KeyZ: 90,\n MetaLeft: 91,\n MetaRight: 92,\n ContextMenu: 93,\n NumpadMultiply: 106,\n NumpadAdd: 107,\n NumpadSubtract: 109,\n NumpadDivide: 111,\n F1: 112,\n F2: 113,\n F3: 114,\n F4: 115,\n F5: 116,\n F6: 117,\n F7: 118,\n F8: 119,\n F9: 120,\n F10: 121,\n F11: 122,\n F12: 123,\n F13: 124,\n F14: 125,\n F15: 126,\n F16: 127,\n F17: 128,\n F18: 129,\n F19: 130,\n F20: 131,\n F21: 132,\n F22: 133,\n F23: 134,\n F24: 135,\n NumLock: 144,\n ScrollLock: 145,\n AudioVolumeMute: 173,\n AudioVolumeDown: 174,\n AudioVolumeUp: 175,\n MediaTrackNext: 176,\n MediaTrackPrevious: 177,\n MediaStop: 178,\n MediaPlayPause: 179,\n Semicolon: 186,\n Equal: 187,\n NumpadEqual: 187,\n Comma: 188,\n Minus: 189,\n Period: 190,\n Slash: 191,\n Backquote: 192,\n BracketLeft: 219,\n Backslash: 220,\n BracketRight: 221,\n Quote: 222,\n AltGraph: 225,\n Props: 247,\n Cancel: 3,\n Clear: 12,\n Shift: 16,\n Control: 17,\n Alt: 18,\n Accept: 30,\n ModeChange: 31,\n ' ': 32,\n Print: 42,\n Execute: 43,\n '\\\\u0000': 46,\n a: 65,\n b: 66,\n c: 67,\n d: 68,\n e: 69,\n f: 70,\n g: 71,\n h: 72,\n i: 73,\n j: 74,\n k: 75,\n l: 76,\n m: 77,\n n: 78,\n o: 79,\n p: 80,\n q: 81,\n r: 82,\n s: 83,\n t: 84,\n u: 85,\n v: 86,\n w: 87,\n x: 88,\n y: 89,\n z: 90,\n Meta: 91,\n '*': 106,\n '+': 107,\n '-': 109,\n '/': 111,\n ';': 186,\n '=': 187,\n ',': 188,\n '.': 190,\n '`': 192,\n '[': 219,\n '\\\\\\\\': 220,\n ']': 221,\n \"'\": 222,\n Attn: 246,\n CrSel: 247,\n ExSel: 248,\n EraseEof: 249,\n Play: 250,\n ZoomOut: 251,\n ')': 48,\n '!': 49,\n '@': 50,\n '#': 51,\n $: 52,\n '%': 53,\n '^': 54,\n '&': 55,\n '(': 57,\n A: 65,\n B: 66,\n C: 67,\n D: 68,\n E: 69,\n F: 70,\n G: 71,\n H: 72,\n I: 73,\n J: 74,\n K: 75,\n L: 76,\n M: 77,\n N: 78,\n O: 79,\n P: 80,\n Q: 81,\n R: 82,\n S: 83,\n T: 84,\n U: 85,\n V: 86,\n W: 87,\n X: 88,\n Y: 89,\n Z: 90,\n ':': 186,\n '<': 188,\n _: 189,\n '>': 190,\n '?': 191,\n '~': 192,\n '{': 219,\n '|': 220,\n '}': 221,\n '\"': 222,\n Camera: 44,\n EndCall: 95,\n VolumeDown: 182,\n VolumeUp: 183,\n};\n//# sourceMappingURL=USKeyboardLayout.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ActionDispatcher = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst assert_js_1 = require(\"../../../utils/assert.js\");\nconst InputSource_js_1 = require(\"./InputSource.js\");\nconst keyUtils_js_1 = require(\"./keyUtils.js\");\nconst USKeyboardLayout_js_1 = require(\"./USKeyboardLayout.js\");\n/** https://w3c.github.io/webdriver/#dfn-center-point */\nconst CALCULATE_IN_VIEW_CENTER_PT_DECL = ((i) => {\n const t = i.getClientRects()[0], e = Math.max(0, Math.min(t.x, t.x + t.width)), n = Math.min(window.innerWidth, Math.max(t.x, t.x + t.width)), h = Math.max(0, Math.min(t.y, t.y + t.height)), m = Math.min(window.innerHeight, Math.max(t.y, t.y + t.height));\n return [e + ((n - e) >> 1), h + ((m - h) >> 1)];\n}).toString();\nconst IS_MAC_DECL = (() => {\n return navigator.platform.toLowerCase().includes('mac');\n}).toString();\nasync function getElementCenter(context, element) {\n const sandbox = await context.getOrCreateSandbox(undefined);\n const result = await sandbox.callFunction(CALCULATE_IN_VIEW_CENTER_PT_DECL, { type: 'undefined' }, [element], false, \"none\" /* Script.ResultOwnership.None */, {});\n if (result.type === 'exception') {\n throw new protocol_js_1.NoSuchElementException(`Origin element ${element.sharedId} was not found`);\n }\n (0, assert_js_1.assert)(result.result.type === 'array');\n (0, assert_js_1.assert)(result.result.value?.[0]?.type === 'number');\n (0, assert_js_1.assert)(result.result.value?.[1]?.type === 'number');\n const { result: { value: [{ value: x }, { value: y }], }, } = result;\n return { x: x, y: y };\n}\nclass ActionDispatcher {\n static isMacOS = async (context) => {\n const result = await (await context.getOrCreateSandbox(undefined)).callFunction(IS_MAC_DECL, { type: 'undefined' }, [], false, \"none\" /* Script.ResultOwnership.None */, {});\n (0, assert_js_1.assert)(result.type !== 'exception');\n (0, assert_js_1.assert)(result.result.type === 'boolean');\n return result.result.value;\n };\n #tickStart = 0;\n #tickDuration = 0;\n #inputState;\n #context;\n #isMacOS;\n constructor(inputState, context, isMacOS) {\n this.#inputState = inputState;\n this.#context = context;\n this.#isMacOS = isMacOS;\n }\n async dispatchActions(optionsByTick) {\n await this.#inputState.queue.run(async () => {\n for (const options of optionsByTick) {\n await this.dispatchTickActions(options);\n }\n });\n }\n async dispatchTickActions(options) {\n this.#tickStart = performance.now();\n this.#tickDuration = 0;\n for (const { action } of options) {\n if ('duration' in action && action.duration !== undefined) {\n this.#tickDuration = Math.max(this.#tickDuration, action.duration);\n }\n }\n const promises = [\n new Promise((resolve) => setTimeout(resolve, this.#tickDuration)),\n ];\n for (const option of options) {\n // In theory we have to wait for each action to happen, but CDP is serial,\n // so as an optimization, we queue all CDP commands at once and await all\n // of them.\n promises.push(this.#dispatchAction(option));\n }\n await Promise.all(promises);\n }\n async #dispatchAction({ id, action }) {\n const source = this.#inputState.get(id);\n const keyState = this.#inputState.getGlobalKeyState();\n switch (action.type) {\n case 'keyDown': {\n // SAFETY: The source is validated before.\n await this.#dispatchKeyDownAction(source, action);\n this.#inputState.cancelList.push({\n id,\n action: {\n ...action,\n type: 'keyUp',\n },\n });\n break;\n }\n case 'keyUp': {\n // SAFETY: The source is validated before.\n await this.#dispatchKeyUpAction(source, action);\n break;\n }\n case 'pause': {\n // TODO: Implement waiting on the input source.\n break;\n }\n case 'pointerDown': {\n // SAFETY: The source is validated before.\n await this.#dispatchPointerDownAction(source, keyState, action);\n this.#inputState.cancelList.push({\n id,\n action: {\n ...action,\n type: 'pointerUp',\n },\n });\n break;\n }\n case 'pointerMove': {\n // SAFETY: The source is validated before.\n await this.#dispatchPointerMoveAction(source, keyState, action);\n break;\n }\n case 'pointerUp': {\n // SAFETY: The source is validated before.\n await this.#dispatchPointerUpAction(source, keyState, action);\n break;\n }\n case 'scroll': {\n // SAFETY: The source is validated before.\n await this.#dispatchScrollAction(source, keyState, action);\n break;\n }\n }\n }\n #dispatchPointerDownAction(source, keyState, action) {\n const { button } = action;\n if (source.pressed.has(button)) {\n return;\n }\n source.pressed.add(button);\n const { x, y, subtype: pointerType } = source;\n const { width, height, pressure, twist, tangentialPressure } = action;\n const { tiltX, tiltY } = getTilt(action);\n // --- Platform-specific code begins here ---\n const { modifiers } = keyState;\n switch (pointerType) {\n case \"mouse\" /* Input.PointerType.Mouse */:\n case \"pen\" /* Input.PointerType.Pen */:\n // TODO: Implement width and height when available.\n return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', {\n type: 'mousePressed',\n x,\n y,\n modifiers,\n button: getCdpButton(button),\n buttons: source.buttons,\n clickCount: source.setClickCount(button, new InputSource_js_1.PointerSource.ClickContext(x, y, performance.now())),\n pointerType,\n tangentialPressure,\n tiltX,\n tiltY,\n twist,\n force: pressure,\n });\n case \"touch\" /* Input.PointerType.Touch */:\n return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchTouchEvent', {\n type: 'touchStart',\n touchPoints: [\n {\n x,\n y,\n ...getRadii(width ?? 1, height ?? 1),\n tangentialPressure,\n tiltX,\n tiltY,\n twist,\n force: pressure,\n id: source.pointerId,\n },\n ],\n modifiers,\n });\n }\n // --- Platform-specific code ends here ---\n }\n #dispatchPointerUpAction(source, keyState, action) {\n const { button } = action;\n if (!source.pressed.has(button)) {\n return;\n }\n source.pressed.delete(button);\n const { x, y, subtype: pointerType } = source;\n // --- Platform-specific code begins here ---\n const { modifiers } = keyState;\n switch (pointerType) {\n case \"mouse\" /* Input.PointerType.Mouse */:\n case \"pen\" /* Input.PointerType.Pen */:\n // TODO: Implement width and height when available.\n return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', {\n type: 'mouseReleased',\n x,\n y,\n modifiers,\n button: getCdpButton(button),\n buttons: source.buttons,\n clickCount: source.getClickCount(button),\n pointerType,\n });\n case \"touch\" /* Input.PointerType.Touch */:\n return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchTouchEvent', {\n type: 'touchEnd',\n touchPoints: [\n {\n x,\n y,\n id: source.pointerId,\n },\n ],\n modifiers,\n });\n }\n // --- Platform-specific code ends here ---\n }\n async #dispatchPointerMoveAction(source, keyState, action) {\n const { x: startX, y: startY, subtype: pointerType } = source;\n const { width, height, pressure, twist, tangentialPressure, x: offsetX, y: offsetY, origin = 'viewport', duration = this.#tickDuration, } = action;\n const { tiltX, tiltY } = getTilt(action);\n const { targetX, targetY } = await this.#getCoordinateFromOrigin(origin, offsetX, offsetY, startX, startY);\n if (targetX < 0 || targetY < 0) {\n throw new protocol_js_1.MoveTargetOutOfBoundsException(`Cannot move beyond viewport (x: ${targetX}, y: ${targetY})`);\n }\n let last;\n do {\n const ratio = duration > 0 ? (performance.now() - this.#tickStart) / duration : 1;\n last = ratio >= 1;\n let x;\n let y;\n if (last) {\n x = targetX;\n y = targetY;\n }\n else {\n x = Math.round(ratio * (targetX - startX) + startX);\n y = Math.round(ratio * (targetY - startY) + startY);\n }\n if (source.x !== x || source.y !== y) {\n // --- Platform-specific code begins here ---\n const { modifiers } = keyState;\n switch (pointerType) {\n case \"mouse\" /* Input.PointerType.Mouse */:\n // TODO: Implement width and height when available.\n await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', {\n type: 'mouseMoved',\n x,\n y,\n modifiers,\n clickCount: 0,\n button: getCdpButton(source.pressed.values().next().value ?? 5),\n buttons: source.buttons,\n pointerType,\n tangentialPressure,\n tiltX,\n tiltY,\n twist,\n force: pressure,\n });\n break;\n case \"pen\" /* Input.PointerType.Pen */:\n if (source.pressed.size !== 0) {\n // TODO: Implement width and height when available.\n await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', {\n type: 'mouseMoved',\n x,\n y,\n modifiers,\n clickCount: 0,\n button: getCdpButton(source.pressed.values().next().value ?? 5),\n buttons: source.buttons,\n pointerType,\n tangentialPressure,\n tiltX,\n tiltY,\n twist,\n force: pressure,\n });\n }\n break;\n case \"touch\" /* Input.PointerType.Touch */:\n if (source.pressed.size !== 0) {\n await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchTouchEvent', {\n type: 'touchMove',\n touchPoints: [\n {\n x,\n y,\n ...getRadii(width ?? 1, height ?? 1),\n tangentialPressure,\n tiltX,\n tiltY,\n twist,\n force: pressure,\n id: source.pointerId,\n },\n ],\n modifiers,\n });\n }\n break;\n }\n // --- Platform-specific code ends here ---\n source.x = x;\n source.y = y;\n }\n } while (!last);\n }\n async #getCoordinateFromOrigin(origin, offsetX, offsetY, startX, startY) {\n let targetX;\n let targetY;\n switch (origin) {\n case 'viewport':\n targetX = offsetX;\n targetY = offsetY;\n break;\n case 'pointer':\n targetX = startX + offsetX;\n targetY = startY + offsetY;\n break;\n default: {\n const { x: posX, y: posY } = await getElementCenter(this.#context, origin.element);\n // SAFETY: These can never be special numbers.\n targetX = posX + offsetX;\n targetY = posY + offsetY;\n break;\n }\n }\n return { targetX, targetY };\n }\n async #dispatchScrollAction(_source, keyState, action) {\n const { deltaX: targetDeltaX, deltaY: targetDeltaY, x: offsetX, y: offsetY, origin = 'viewport', duration = this.#tickDuration, } = action;\n if (origin === 'pointer') {\n throw new protocol_js_1.InvalidArgumentException('\"pointer\" origin is invalid for scrolling.');\n }\n const { targetX, targetY } = await this.#getCoordinateFromOrigin(origin, offsetX, offsetY, 0, 0);\n if (targetX < 0 || targetY < 0) {\n throw new protocol_js_1.MoveTargetOutOfBoundsException(`Cannot move beyond viewport (x: ${targetX}, y: ${targetY})`);\n }\n let currentDeltaX = 0;\n let currentDeltaY = 0;\n let last;\n do {\n const ratio = duration > 0 ? (performance.now() - this.#tickStart) / duration : 1;\n last = ratio >= 1;\n let deltaX;\n let deltaY;\n if (last) {\n deltaX = targetDeltaX - currentDeltaX;\n deltaY = targetDeltaY - currentDeltaY;\n }\n else {\n deltaX = Math.round(ratio * targetDeltaX - currentDeltaX);\n deltaY = Math.round(ratio * targetDeltaY - currentDeltaY);\n }\n if (deltaX !== 0 || deltaY !== 0) {\n // --- Platform-specific code begins here ---\n const { modifiers } = keyState;\n await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', {\n type: 'mouseWheel',\n deltaX,\n deltaY,\n x: targetX,\n y: targetY,\n modifiers,\n });\n // --- Platform-specific code ends here ---\n currentDeltaX += deltaX;\n currentDeltaY += deltaY;\n }\n } while (!last);\n }\n async #dispatchKeyDownAction(source, action) {\n if ([...action.value].length > 1) {\n throw new protocol_js_1.InvalidArgumentException(`Invalid key value: ${action.value}`);\n }\n const rawKey = action.value;\n const key = (0, keyUtils_js_1.getNormalizedKey)(rawKey);\n const repeat = source.pressed.has(key);\n const code = (0, keyUtils_js_1.getKeyCode)(rawKey);\n const location = (0, keyUtils_js_1.getKeyLocation)(rawKey);\n switch (key) {\n case 'Alt':\n source.alt = true;\n break;\n case 'Shift':\n source.shift = true;\n break;\n case 'Control':\n source.ctrl = true;\n break;\n case 'Meta':\n source.meta = true;\n break;\n }\n source.pressed.add(key);\n const { modifiers } = source;\n // --- Platform-specific code begins here ---\n // The spread is a little hack so JS gives us an array of unicode characters\n // to measure.\n const unmodifiedText = getKeyEventUnmodifiedText(key, source);\n const text = getKeyEventText(code ?? '', source) ?? unmodifiedText;\n let command;\n // The following commands need to be declared because Chromium doesn't\n // handle them. See\n // https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:third_party/blink/renderer/core/editing/editing_behavior.cc;l=169;drc=b8143cf1dfd24842890fcd831c4f5d909bef4fc4;bpv=0;bpt=1.\n if (this.#isMacOS && source.meta) {\n switch (code) {\n case 'KeyA':\n command = 'SelectAll';\n break;\n case 'KeyC':\n command = 'Copy';\n break;\n case 'KeyV':\n command = source.shift ? 'PasteAndMatchStyle' : 'Paste';\n break;\n case 'KeyX':\n command = 'Cut';\n break;\n case 'KeyZ':\n command = source.shift ? 'Redo' : 'Undo';\n break;\n default:\n // Intentionally empty.\n }\n }\n const promises = [\n this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchKeyEvent', {\n type: text ? 'keyDown' : 'rawKeyDown',\n windowsVirtualKeyCode: USKeyboardLayout_js_1.KeyToKeyCode[key],\n key,\n code,\n text,\n unmodifiedText,\n autoRepeat: repeat,\n isSystemKey: source.alt || undefined,\n location: location < 3 ? location : undefined,\n isKeypad: location === 3,\n modifiers,\n commands: command ? [command] : undefined,\n }),\n ];\n // Drag cancelling happens on escape.\n if (key === 'Escape') {\n if (!source.alt &&\n ((this.#isMacOS && !source.ctrl && !source.meta) || !this.#isMacOS)) {\n promises.push(this.#context.cdpTarget.cdpClient.sendCommand('Input.cancelDragging'));\n }\n }\n await Promise.all(promises);\n // --- Platform-specific code ends here ---\n }\n #dispatchKeyUpAction(source, action) {\n if ([...action.value].length > 1) {\n throw new protocol_js_1.InvalidArgumentException(`Invalid key value: ${action.value}`);\n }\n const rawKey = action.value;\n const key = (0, keyUtils_js_1.getNormalizedKey)(rawKey);\n if (!source.pressed.has(key)) {\n return;\n }\n const code = (0, keyUtils_js_1.getKeyCode)(rawKey);\n const location = (0, keyUtils_js_1.getKeyLocation)(rawKey);\n switch (key) {\n case 'Alt':\n source.alt = false;\n break;\n case 'Shift':\n source.shift = false;\n break;\n case 'Control':\n source.ctrl = false;\n break;\n case 'Meta':\n source.meta = false;\n break;\n }\n source.pressed.delete(key);\n const { modifiers } = source;\n // --- Platform-specific code begins here ---\n // The spread is a little hack so JS gives us an array of unicode characters\n // to measure.\n const unmodifiedText = getKeyEventUnmodifiedText(key, source);\n const text = getKeyEventText(code ?? '', source) ?? unmodifiedText;\n return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchKeyEvent', {\n type: 'keyUp',\n windowsVirtualKeyCode: USKeyboardLayout_js_1.KeyToKeyCode[key],\n key,\n code,\n text,\n unmodifiedText,\n location: location < 3 ? location : undefined,\n isSystemKey: source.alt || undefined,\n isKeypad: location === 3,\n modifiers,\n });\n // --- Platform-specific code ends here ---\n }\n}\nexports.ActionDispatcher = ActionDispatcher;\nconst getKeyEventUnmodifiedText = (key, source) => {\n if (key === 'Enter') {\n return '\\r';\n }\n return [...key].length === 1\n ? source.shift\n ? key.toLocaleUpperCase('en-US')\n : key\n : undefined;\n};\nconst getKeyEventText = (code, source) => {\n if (source.ctrl) {\n switch (code) {\n case 'Digit2':\n if (source.shift) {\n return '\\x00';\n }\n break;\n case 'KeyA':\n return '\\x01';\n case 'KeyB':\n return '\\x02';\n case 'KeyC':\n return '\\x03';\n case 'KeyD':\n return '\\x04';\n case 'KeyE':\n return '\\x05';\n case 'KeyF':\n return '\\x06';\n case 'KeyG':\n return '\\x07';\n case 'KeyH':\n return '\\x08';\n case 'KeyI':\n return '\\x09';\n case 'KeyJ':\n return '\\x0A';\n case 'KeyK':\n return '\\x0B';\n case 'KeyL':\n return '\\x0C';\n case 'KeyM':\n return '\\x0D';\n case 'KeyN':\n return '\\x0E';\n case 'KeyO':\n return '\\x0F';\n case 'KeyP':\n return '\\x10';\n case 'KeyQ':\n return '\\x11';\n case 'KeyR':\n return '\\x12';\n case 'KeyS':\n return '\\x13';\n case 'KeyT':\n return '\\x14';\n case 'KeyU':\n return '\\x15';\n case 'KeyV':\n return '\\x16';\n case 'KeyW':\n return '\\x17';\n case 'KeyX':\n return '\\x18';\n case 'KeyY':\n return '\\x19';\n case 'KeyZ':\n return '\\x1A';\n case 'BracketLeft':\n return '\\x1B';\n case 'Backslash':\n return '\\x1C';\n case 'BracketRight':\n return '\\x1D';\n case 'Digit6':\n if (source.shift) {\n return '\\x1E';\n }\n break;\n case 'Minus':\n return '\\x1F';\n }\n return '';\n }\n if (source.alt) {\n return '';\n }\n return;\n};\nfunction getCdpButton(button) {\n switch (button) {\n case 0:\n return 'left';\n case 1:\n return 'middle';\n case 2:\n return 'right';\n case 3:\n return 'back';\n case 4:\n return 'forward';\n default:\n return 'none';\n }\n}\nfunction getTilt(action) {\n // https://w3c.github.io/pointerevents/#converting-between-tiltx-tilty-and-altitudeangle-azimuthangle\n const altitudeAngle = action.altitudeAngle ?? 0;\n const azimuthAngle = action.azimuthAngle ?? 0;\n let tiltXRadians = 0;\n let tiltYRadians = 0;\n if (altitudeAngle === 0) {\n // the pen is in the X-Y plane\n if (azimuthAngle === 0 || azimuthAngle === 2 * Math.PI) {\n // pen is on positive X axis\n tiltXRadians = Math.PI / 2;\n }\n if (azimuthAngle === Math.PI / 2) {\n // pen is on positive Y axis\n tiltYRadians = Math.PI / 2;\n }\n if (azimuthAngle === Math.PI) {\n // pen is on negative X axis\n tiltXRadians = -Math.PI / 2;\n }\n if (azimuthAngle === (3 * Math.PI) / 2) {\n // pen is on negative Y axis\n tiltYRadians = -Math.PI / 2;\n }\n if (azimuthAngle > 0 && azimuthAngle < Math.PI / 2) {\n tiltXRadians = Math.PI / 2;\n tiltYRadians = Math.PI / 2;\n }\n if (azimuthAngle > Math.PI / 2 && azimuthAngle < Math.PI) {\n tiltXRadians = -Math.PI / 2;\n tiltYRadians = Math.PI / 2;\n }\n if (azimuthAngle > Math.PI && azimuthAngle < (3 * Math.PI) / 2) {\n tiltXRadians = -Math.PI / 2;\n tiltYRadians = -Math.PI / 2;\n }\n if (azimuthAngle > (3 * Math.PI) / 2 && azimuthAngle < 2 * Math.PI) {\n tiltXRadians = Math.PI / 2;\n tiltYRadians = -Math.PI / 2;\n }\n }\n if (altitudeAngle !== 0) {\n const tanAlt = Math.tan(altitudeAngle);\n tiltXRadians = Math.atan(Math.cos(azimuthAngle) / tanAlt);\n tiltYRadians = Math.atan(Math.sin(azimuthAngle) / tanAlt);\n }\n const factor = 180 / Math.PI;\n return {\n tiltX: Math.round(tiltXRadians * factor),\n tiltY: Math.round(tiltYRadians * factor),\n };\n}\nfunction getRadii(width, height) {\n return {\n radiusX: width ? width / 2 : 0.5,\n radiusY: height ? height / 2 : 0.5,\n };\n}\n//# sourceMappingURL=ActionDispatcher.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n * Copyright 2022 The Chromium Authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Mutex = void 0;\n/**\n * Use Mutex class to coordinate local concurrent operations.\n * Once `acquire` promise resolves, you hold the lock and must\n * call `release` function returned by `acquire` to release the\n * lock. Failing to `release` the lock may lead to deadlocks.\n */\nclass Mutex {\n #locked = false;\n #acquirers = [];\n // This is FIFO.\n acquire() {\n const state = { resolved: false };\n if (this.#locked) {\n return new Promise((resolve) => {\n this.#acquirers.push(() => resolve(this.#release.bind(this, state)));\n });\n }\n this.#locked = true;\n return Promise.resolve(this.#release.bind(this, state));\n }\n #release(state) {\n if (state.resolved) {\n throw new Error('Cannot release more than once.');\n }\n state.resolved = true;\n const resolve = this.#acquirers.shift();\n if (!resolve) {\n this.#locked = false;\n return;\n }\n resolve();\n }\n async run(action) {\n const release = await this.acquire();\n try {\n // Note we need to await here because we want the await to release AFTER\n // that await happens. Returning action() will trigger the release\n // immediately which is counter to what we want.\n const result = await action();\n return result;\n }\n finally {\n release();\n }\n }\n}\nexports.Mutex = Mutex;\n//# sourceMappingURL=Mutex.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InputState = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst Mutex_js_1 = require(\"../../../utils/Mutex.js\");\nconst InputSource_js_1 = require(\"./InputSource.js\");\nclass InputState {\n cancelList = [];\n #sources = new Map();\n #mutex = new Mutex_js_1.Mutex();\n getOrCreate(id, type, subtype) {\n let source = this.#sources.get(id);\n if (!source) {\n switch (type) {\n case \"none\" /* SourceType.None */:\n source = new InputSource_js_1.NoneSource();\n break;\n case \"key\" /* SourceType.Key */:\n source = new InputSource_js_1.KeySource();\n break;\n case \"pointer\" /* SourceType.Pointer */: {\n let pointerId = subtype === \"mouse\" /* Input.PointerType.Mouse */ ? 0 : 2;\n const pointerIds = new Set();\n for (const [, source] of this.#sources) {\n if (source.type === \"pointer\" /* SourceType.Pointer */) {\n pointerIds.add(source.pointerId);\n }\n }\n while (pointerIds.has(pointerId)) {\n ++pointerId;\n }\n source = new InputSource_js_1.PointerSource(pointerId, subtype);\n break;\n }\n case \"wheel\" /* SourceType.Wheel */:\n source = new InputSource_js_1.WheelSource();\n break;\n default:\n throw new protocol_js_1.InvalidArgumentException(`Expected \"${\"none\" /* SourceType.None */}\", \"${\"key\" /* SourceType.Key */}\", \"${\"pointer\" /* SourceType.Pointer */}\", or \"${\"wheel\" /* SourceType.Wheel */}\". Found unknown source type ${type}.`);\n }\n this.#sources.set(id, source);\n return source;\n }\n if (source.type !== type) {\n throw new protocol_js_1.InvalidArgumentException(`Input source type of ${id} is ${source.type}, but received ${type}.`);\n }\n return source;\n }\n get(id) {\n const source = this.#sources.get(id);\n if (!source) {\n throw new protocol_js_1.UnknownErrorException(`Internal error.`);\n }\n return source;\n }\n getGlobalKeyState() {\n const state = new InputSource_js_1.KeySource();\n for (const [, source] of this.#sources) {\n if (source.type !== \"key\" /* SourceType.Key */) {\n continue;\n }\n for (const pressed of source.pressed) {\n state.pressed.add(pressed);\n }\n state.alt ||= source.alt;\n state.ctrl ||= source.ctrl;\n state.meta ||= source.meta;\n state.shift ||= source.shift;\n }\n return state;\n }\n get queue() {\n return this.#mutex;\n }\n}\nexports.InputState = InputState;\n//# sourceMappingURL=InputState.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InputStateManager = void 0;\nconst assert_js_1 = require(\"../../../utils/assert.js\");\nconst InputState_js_1 = require(\"./InputState.js\");\n// We use a weak map here as specified here:\n// https://www.w3.org/TR/webdriver/#dfn-browsing-context-input-state-map\nclass InputStateManager extends WeakMap {\n get(context) {\n (0, assert_js_1.assert)(context.isTopLevelContext());\n if (!this.has(context)) {\n this.set(context, new InputState_js_1.InputState());\n }\n return super.get(context);\n }\n}\nexports.InputStateManager = InputStateManager;\n//# sourceMappingURL=InputStateManager.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InputProcessor = void 0;\n/*\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst ActionDispatcher_js_1 = require(\"../input/ActionDispatcher.js\");\nconst InputStateManager_js_1 = require(\"../input/InputStateManager.js\");\nclass InputProcessor {\n #browsingContextStorage;\n #inputStateManager = new InputStateManager_js_1.InputStateManager();\n constructor(browsingContextStorage) {\n this.#browsingContextStorage = browsingContextStorage;\n }\n async performActions(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n const inputState = this.#inputStateManager.get(context.top);\n const actionsByTick = this.#getActionsByTick(params, inputState);\n const dispatcher = new ActionDispatcher_js_1.ActionDispatcher(inputState, context, await ActionDispatcher_js_1.ActionDispatcher.isMacOS(context).catch(() => false));\n await dispatcher.dispatchActions(actionsByTick);\n return {};\n }\n async releaseActions(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n const topContext = context.top;\n const inputState = this.#inputStateManager.get(topContext);\n const dispatcher = new ActionDispatcher_js_1.ActionDispatcher(inputState, context, await ActionDispatcher_js_1.ActionDispatcher.isMacOS(context).catch(() => false));\n await dispatcher.dispatchTickActions(inputState.cancelList.reverse());\n this.#inputStateManager.delete(topContext);\n return {};\n }\n #getActionsByTick(params, inputState) {\n const actionsByTick = [];\n for (const action of params.actions) {\n switch (action.type) {\n case \"pointer\" /* SourceType.Pointer */: {\n action.parameters ??= { pointerType: \"mouse\" /* Input.PointerType.Mouse */ };\n action.parameters.pointerType ??= \"mouse\" /* Input.PointerType.Mouse */;\n const source = inputState.getOrCreate(action.id, \"pointer\" /* SourceType.Pointer */, action.parameters.pointerType);\n if (source.subtype !== action.parameters.pointerType) {\n throw new protocol_js_1.InvalidArgumentException(`Expected input source ${action.id} to be ${source.subtype}; got ${action.parameters.pointerType}.`);\n }\n break;\n }\n default:\n inputState.getOrCreate(action.id, action.type);\n }\n const actions = action.actions.map((item) => ({\n id: action.id,\n action: item,\n }));\n for (let i = 0; i < actions.length; i++) {\n if (actionsByTick.length === i) {\n actionsByTick.push([]);\n }\n actionsByTick[i].push(actions[i]);\n }\n }\n return actionsByTick;\n }\n}\nexports.InputProcessor = InputProcessor;\n//# sourceMappingURL=InputProcessor.js.map","\"use strict\";var M=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var ke=Object.getOwnPropertyNames;var Ee=Object.prototype.hasOwnProperty;var Re=(e,t)=>{for(var r in t)M(e,r,{get:t[r],enumerable:!0})},ye=(e,t,r,n)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let a of ke(t))!Ee.call(e,a)&&a!==r&&M(e,a,{get:()=>t[a],enumerable:!(n=Se(t,a))||n.enumerable});return e};var Oe=e=>ye(M({},\"__esModule\",{value:!0}),e);var Ne={};Re(Ne,{URLPattern:()=>Y});module.exports=Oe(Ne);var k=class{type=3;name=\"\";prefix=\"\";value=\"\";suffix=\"\";modifier=3;constructor(t,r,n,a,c,l){this.type=t,this.name=r,this.prefix=n,this.value=a,this.suffix=c,this.modifier=l}hasCustomName(){return this.name!==\"\"&&typeof this.name!=\"number\"}},Te=/[$_\\p{ID_Start}]/u,Ae=/[$_\\u200C\\u200D\\p{ID_Continue}]/u,v=\".*\";function we(e,t){return(t?/^[\\x00-\\xFF]*$/:/^[\\x00-\\x7F]*$/).test(e)}function D(e,t=!1){let r=[],n=0;for(;n{if(lo(\"OTHER_MODIFIER\")??o(\"ASTERISK\"),p=f=>{let u=o(f);if(u!==void 0)return u;let{type:d,index:T}=r[l];throw new TypeError(`Unexpected ${d} at ${T}, expected ${f}`)},O=()=>{let f=\"\",u;for(;u=o(\"CHAR\")??o(\"ESCAPED_CHAR\");)f+=u;return f},be=f=>f,L=t.encodePart||be,I=\"\",H=f=>{I+=f},$=()=>{I.length&&(a.push(new k(3,\"\",\"\",L(I),\"\",3)),I=\"\")},X=(f,u,d,T,Z)=>{let g=3;switch(Z){case\"?\":g=1;break;case\"*\":g=0;break;case\"+\":g=2;break}if(!u&&!d&&g===3){H(f);return}if($(),!u&&!d){if(!f)return;a.push(new k(3,\"\",\"\",L(f),\"\",g));return}let m;d?d===\"*\"?m=v:m=d:m=n;let R=2;m===n?(R=1,m=\"\"):m===v&&(R=0,m=\"\");let S;if(u?S=u:d&&(S=c++),i.has(S))throw new TypeError(`Duplicate name '${S}'.`);i.add(S),a.push(new k(R,S,L(f),m,L(T),g))};for(;l-1)}return l||(n+=`(?=${c}|${a})`),new RegExp(n,B(r))}var b={delimiter:\"\",prefixes:\"\",sensitive:!0,strict:!0},J={delimiter:\".\",prefixes:\"\",sensitive:!0,strict:!0},Q={delimiter:\"/\",prefixes:\"/\",sensitive:!0,strict:!0};function ee(e,t){return e.length?e[0]===\"/\"?!0:!t||e.length<2?!1:(e[0]==\"\\\\\"||e[0]==\"{\")&&e[1]==\"/\":!1}function te(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function Ce(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}function _(e){return!e||e.length<2?!1:e[0]===\"[\"||(e[0]===\"\\\\\"||e[0]===\"{\")&&e[1]===\"[\"}var re=[\"ftp\",\"file\",\"http\",\"https\",\"ws\",\"wss\"];function N(e){if(!e)return!0;for(let t of re)if(e.test(t))return!0;return!1}function ne(e,t){if(e=te(e,\"#\"),t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.hash=e,r.hash?r.hash.substring(1,r.hash.length):\"\"}function se(e,t){if(e=te(e,\"?\"),t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.search=e,r.search?r.search.substring(1,r.search.length):\"\"}function ie(e,t){return t||e===\"\"?e:_(e)?K(e):j(e)}function ae(e,t){if(t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.password=e,r.password}function oe(e,t){if(t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.username=e,r.username}function ce(e,t,r){if(r||e===\"\")return e;if(t&&!re.includes(t))return new URL(`${t}:${e}`).pathname;let n=e[0]==\"/\";return e=new URL(n?e:\"/-\"+e,\"https://example.com\").pathname,n||(e=e.substring(2,e.length)),e}function le(e,t,r){return z(t)===e&&(e=\"\"),r||e===\"\"?e:V(e)}function he(e,t){return e=Ce(e,\":\"),t||e===\"\"?e:A(e)}function z(e){switch(e){case\"ws\":case\"http\":return\"80\";case\"wws\":case\"https\":return\"443\";case\"ftp\":return\"21\";default:return\"\"}}function A(e){if(e===\"\")return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function fe(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.username=e,t.username}function ue(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.password=e,t.password}function j(e){if(e===\"\")return e;if(/[\\t\\n\\r #%/:<>?@[\\]^\\\\|]/g.test(e))throw new TypeError(`Invalid hostname '${e}'`);let t=new URL(\"https://example.com\");return t.hostname=e,t.hostname}function K(e){if(e===\"\")return e;if(/[^0-9a-fA-F[\\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function V(e){if(e===\"\"||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function pe(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.pathname=e[0]!==\"/\"?\"/-\"+e:e,e[0]!==\"/\"?t.pathname.substring(2,t.pathname.length):t.pathname}function de(e){return e===\"\"?e:new URL(`data:${e}`).pathname}function ge(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.search=e,t.search.substring(1,t.search.length)}function me(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.hash=e,t.hash.substring(1,t.hash.length)}var U=class{#i;#n=[];#t={};#e=0;#s=1;#u=0;#c=0;#p=0;#d=0;#g=!1;constructor(t){this.#i=t}get result(){return this.#t}parse(){for(this.#n=D(this.#i,!0);this.#e0)if(this.#T())this.#p-=1;else continue;if(this.#O()){this.#p+=1;continue}switch(this.#c){case 0:this.#S()&&(this.#t.username=\"\",this.#t.password=\"\",this.#t.hostname=\"\",this.#t.port=\"\",this.#t.pathname=\"\",this.#t.search=\"\",this.#t.hash=\"\",this.#f(1));break;case 1:if(this.#S()){this.#C();let t=7,r=1;this.#g&&(this.#t.pathname=\"/\"),this.#E()?(t=2,r=3):this.#g&&(t=2),this.#r(t,r)}break;case 2:this.#x()?this.#f(3):(this.#b()||this.#h()||this.#l())&&this.#f(5);break;case 3:this.#R()?this.#r(4,1):this.#x()&&this.#r(5,1);break;case 4:this.#x()&&this.#r(5,1);break;case 5:this.#A()?this.#d+=1:this.#w()&&(this.#d-=1),this.#y()&&!this.#d?this.#r(6,1):this.#b()?this.#r(7,0):this.#h()?this.#r(8,1):this.#l()&&this.#r(9,1);break;case 6:this.#b()?this.#r(7,0):this.#h()?this.#r(8,1):this.#l()&&this.#r(9,1);break;case 7:this.#h()?this.#r(8,1):this.#l()&&this.#r(9,1);break;case 8:this.#l()&&this.#r(9,1);break;case 9:break;case 10:break}}}#r(t,r){switch(this.#c){case 0:break;case 1:this.#t.protocol=this.#o();break;case 2:break;case 3:this.#t.username=this.#o();break;case 4:this.#t.password=this.#o();break;case 5:this.#t.hostname=this.#o();break;case 6:this.#t.port=this.#o();break;case 7:this.#t.pathname=this.#o();break;case 8:this.#t.search=this.#o();break;case 9:this.#t.hash=this.#o();break;case 10:break}this.#k(t,r)}#k(t,r){this.#c=t,this.#u=this.#e+r,this.#e+=r,this.#s=0}#P(){this.#e=this.#u,this.#s=0}#f(t){this.#P(),this.#c=t}#m(t){return t<0&&(t=this.#n.length-t),t=0&&(e.pathname=P(n.pathname.substring(0,a+1),r)+e.pathname)}e.pathname=ce(e.pathname,e.protocol,r)}return typeof t.search==\"string\"&&(e.search=se(t.search,r)),typeof t.hash==\"string\"&&(e.hash=ne(t.hash,r)),e}function C(e){return e.replace(/([+*?:{}()\\\\])/g,\"\\\\$1\")}function Le(e){return e.replace(/([.+*?^${}()[\\]|/\\\\])/g,\"\\\\$1\")}function Ie(e,t){t.delimiter??=\"/#?\",t.prefixes??=\"./\",t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith=\"\";let r=\".*\",n=`[^${Le(t.delimiter)}]+?`,a=/[$_\\u200C\\u200D\\p{ID_Continue}]/u,c=\"\";for(let l=0;l0?e[l-1]:null,p=l0?p.value[0]:\"\";o=a.test(O)}else o=!p.hasCustomName();if(!o&&!s.prefix.length&&h&&h.type===3){let O=h.value[h.value.length-1];o=t.prefixes.includes(O)}o&&(c+=\"{\"),c+=C(s.prefix),i&&(c+=`:${s.name}`),s.type===2?c+=`(${s.value})`:s.type===1?i||(c+=`(${n})`):s.type===0&&(!i&&(!h||h.type===3||h.modifier!==3||o||s.prefix!==\"\")?c+=\"*\":c+=`(${r})`),s.type===1&&i&&s.suffix.length&&a.test(s.suffix[0])&&(c+=\"\\\\\"),c+=C(s.suffix),o&&(c+=\"}\"),s.modifier!==3&&(c+=y(s.modifier))}return c}var Y=class{#i;#n={};#t={};#e={};#s={};constructor(t={},r,n){try{let a;if(typeof r==\"string\"?a=r:n=r,typeof t==\"string\"){let i=new U(t);if(i.parse(),t=i.result,a===void 0&&typeof t.protocol!=\"string\")throw new TypeError(\"A base URL must be provided for a relative constructor string.\");t.baseURL=a}else{if(!t||typeof t!=\"object\")throw new TypeError(\"parameter 1 is not of type 'string' and cannot convert to dictionary.\");if(a)throw new TypeError(\"parameter 1 is not of type 'string'.\")}typeof n>\"u\"&&(n={ignoreCase:!1});let c={ignoreCase:n.ignoreCase===!0},l={pathname:E,protocol:E,username:E,password:E,hostname:E,port:E,search:E,hash:E};this.#i=w(l,t,!0),z(this.#i.protocol)===this.#i.port&&(this.#i.port=\"\");let s;for(s of G){if(!(s in this.#i))continue;let i={},o=this.#i[s];switch(this.#t[s]=[],s){case\"protocol\":Object.assign(i,b),i.encodePart=A;break;case\"username\":Object.assign(i,b),i.encodePart=fe;break;case\"password\":Object.assign(i,b),i.encodePart=ue;break;case\"hostname\":Object.assign(i,J),_(o)?i.encodePart=K:i.encodePart=j;break;case\"port\":Object.assign(i,b),i.encodePart=V;break;case\"pathname\":N(this.#n.protocol)?(Object.assign(i,Q,c),i.encodePart=pe):(Object.assign(i,b,c),i.encodePart=de);break;case\"search\":Object.assign(i,b,c),i.encodePart=ge;break;case\"hash\":Object.assign(i,b,c),i.encodePart=me;break}try{this.#s[s]=F(o,i),this.#n[s]=W(this.#s[s],this.#t[s],i),this.#e[s]=Ie(this.#s[s],i)}catch{throw new TypeError(`invalid ${s} pattern '${this.#i[s]}'.`)}}}catch(a){throw new TypeError(`Failed to construct 'URLPattern': ${a.message}`)}}test(t={},r){let n={pathname:\"\",protocol:\"\",username:\"\",password:\"\",hostname:\"\",port:\"\",search:\"\",hash:\"\"};if(typeof t!=\"string\"&&r)throw new TypeError(\"parameter 1 is not of type 'string'.\");if(typeof t>\"u\")return!1;try{typeof t==\"object\"?n=w(n,t,!1):n=w(n,xe(t,r),!1)}catch{return!1}let a;for(a of G)if(!this.#n[a].exec(n[a]))return!1;return!0}exec(t={},r){let n={pathname:\"\",protocol:\"\",username:\"\",password:\"\",hostname:\"\",port:\"\",search:\"\",hash:\"\"};if(typeof t!=\"string\"&&r)throw new TypeError(\"parameter 1 is not of type 'string'.\");if(typeof t>\"u\")return;try{typeof t==\"object\"?n=w(n,t,!1):n=w(n,xe(t,r),!1)}catch{return null}let a={};r?a.inputs=[t,r]:a.inputs=[t];let c;for(c of G){let l=this.#n[c].exec(n[c]);if(!l)return null;let s={};for(let[i,o]of this.#t[c].entries())if(typeof o==\"string\"||typeof o==\"number\"){let h=l[i+1];s[o]=h}a[c]={input:n[c]??\"\",groups:s}}return a}static compareComponent(t,r,n){let a=(i,o)=>{for(let h of[\"type\",\"modifier\",\"prefix\",\"value\",\"suffix\"]){if(i[h]{let h=0;for(;h 0;\n }\n /** Gets parameters for CDP 'Fetch.enable' command from the intercept map. */\n getFetchEnableParams() {\n const patterns = [];\n for (const value of this.#interceptMap.values()) {\n for (const phase of value.phases) {\n const requestStage = NetworkStorage.requestStageFromPhase(phase);\n if (value.urlPatterns.length === 0) {\n patterns.push({\n urlPattern: '*',\n requestStage,\n });\n continue;\n }\n for (const urlPatternSpec of value.urlPatterns) {\n const urlPattern = NetworkStorage.cdpFromSpecUrlPattern(urlPatternSpec);\n patterns.push({\n urlPattern,\n requestStage,\n });\n }\n }\n }\n return {\n patterns,\n // If there's at least one intercept that requires auth, enable the\n // 'Fetch.authRequired' event.\n handleAuthRequests: [...this.#interceptMap.values()].some((param) => {\n return param.phases.includes(\"authRequired\" /* Network.InterceptPhase.AuthRequired */);\n }),\n };\n }\n getRequest(id) {\n return this.#requestMap.get(id);\n }\n addRequest(request) {\n this.#requestMap.set(request.requestId, request);\n }\n deleteRequest(id) {\n const request = this.#requestMap.get(id);\n if (request) {\n request.dispose();\n this.#requestMap.delete(id);\n }\n }\n /** Returns true if there's at least one network request. */\n hasNetworkRequests() {\n return this.#requestMap.size > 0;\n }\n /** Returns true if there's at least one blocked network request. */\n hasBlockedRequests() {\n return this.#blockedRequestMap.size > 0;\n }\n /** Converts a URL pattern from the spec to a CDP URL pattern. */\n static cdpFromSpecUrlPattern(urlPattern) {\n switch (urlPattern.type) {\n case 'string':\n return urlPattern.pattern;\n case 'pattern':\n return NetworkStorage.buildUrlPatternString(urlPattern);\n }\n }\n static buildUrlPatternString({ protocol, hostname, port, pathname, search, }) {\n if (!protocol && !hostname && !port && !pathname && !search) {\n return '*';\n }\n let url = '';\n if (protocol) {\n url += `${protocol}`;\n if (!protocol.endsWith(':')) {\n url += ':';\n }\n if (NetworkStorage.isSpecialScheme(protocol)) {\n url += '//';\n }\n }\n if (hostname) {\n url += hostname;\n }\n if (port) {\n url += `:${port}`;\n }\n if (pathname) {\n if (!pathname.startsWith('/')) {\n url += '/';\n }\n url += pathname;\n }\n if (search) {\n if (!search.startsWith('?')) {\n url += '?';\n }\n url += `${search}`;\n }\n return url;\n }\n /**\n * Maps spec Network.InterceptPhase to CDP Fetch.RequestStage.\n * AuthRequired has no CDP equivalent..\n */\n static requestStageFromPhase(phase) {\n switch (phase) {\n case \"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */:\n return 'Request';\n case \"responseStarted\" /* Network.InterceptPhase.ResponseStarted */:\n case \"authRequired\" /* Network.InterceptPhase.AuthRequired */:\n return 'Response';\n }\n }\n /**\n * Returns true if the given protocol is special.\n * Special protocols are those that have a default port.\n *\n * Example inputs: 'http', 'http:'\n *\n * @see https://url.spec.whatwg.org/#special-scheme\n */\n static isSpecialScheme(protocol) {\n return ['ftp', 'file', 'http', 'https', 'ws', 'wss'].includes(protocol.replace(/:$/, ''));\n }\n addBlockedRequest(requestId, value) {\n this.#blockedRequestMap.set(requestId, value);\n }\n removeBlockedRequest(requestId) {\n this.#blockedRequestMap.delete(requestId);\n }\n /**\n * Returns the blocked request associated with the given network ID, if any.\n */\n getBlockedRequest(networkId) {\n return this.#blockedRequestMap.get(networkId);\n }\n /** #@see https://w3c.github.io/webdriver-bidi/#get-the-network-intercepts */\n getNetworkIntercepts(requestId, phase) {\n const request = this.#requestMap.get(requestId);\n if (!request) {\n return [];\n }\n const interceptIds = [];\n for (const [interceptId, { phases, urlPatterns },] of this.#interceptMap.entries()) {\n if (phase && phases.includes(phase)) {\n if (urlPatterns.length === 0) {\n interceptIds.push(interceptId);\n }\n else if (urlPatterns.some((urlPattern) => NetworkStorage.matchUrlPattern(urlPattern, request.url))) {\n interceptIds.push(interceptId);\n }\n }\n }\n return interceptIds;\n }\n /** Matches the given URLPattern against the given URL. */\n static matchUrlPattern(urlPattern, url) {\n switch (urlPattern.type) {\n case 'string':\n return urlPattern.pattern === url;\n case 'pattern': {\n return (new UrlPattern_js_1.URLPattern({\n protocol: urlPattern.protocol,\n hostname: urlPattern.hostname,\n port: urlPattern.port,\n pathname: urlPattern.pathname,\n search: urlPattern.search,\n }).exec(url) !== null);\n }\n }\n }\n}\nexports.NetworkStorage = NetworkStorage;\n//# sourceMappingURL=NetworkStorage.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NetworkProcessor = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst assert_js_1 = require(\"../../../utils/assert.js\");\nconst NetworkStorage_js_1 = require(\"./NetworkStorage.js\");\nconst NetworkUtils_js_1 = require(\"./NetworkUtils.js\");\n/** Dispatches Network domain commands. */\nclass NetworkProcessor {\n #browsingContextStorage;\n #networkStorage;\n constructor(browsingContextStorage, networkStorage) {\n this.#browsingContextStorage = browsingContextStorage;\n this.#networkStorage = networkStorage;\n }\n async addIntercept(params) {\n if (params.phases.length === 0) {\n throw new protocol_js_1.InvalidArgumentException('At least one phase must be specified.');\n }\n // If AuthRequired is specified, BeforeRequestSent must also be specified.\n // This is a CDP quirk.\n if (params.phases.includes(\"authRequired\" /* Network.InterceptPhase.AuthRequired */) &&\n !params.phases.includes(\"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */)) {\n params.phases.unshift(\"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */);\n }\n const urlPatterns = params.urlPatterns ?? [];\n const parsedUrlPatterns = NetworkProcessor.parseUrlPatterns(urlPatterns);\n const intercept = this.#networkStorage.addIntercept({\n urlPatterns: parsedUrlPatterns,\n phases: params.phases,\n });\n await this.#fetchApply();\n return {\n intercept,\n };\n }\n async continueRequest(params) {\n const networkId = params.request;\n const { request: fetchId, phase } = this.#getBlockedRequest(networkId);\n if (phase !== \"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */) {\n throw new protocol_js_1.InvalidArgumentException(`Blocked request for network id '${networkId}' is not in 'BeforeRequestSent' phase`);\n }\n if (params.url !== undefined) {\n NetworkProcessor.parseUrlString(params.url);\n }\n const { url, method, headers } = params;\n // TODO: Set / expand.\n // ; Step 9. cookies\n // ; Step 10. body\n const requestHeaders = (0, NetworkUtils_js_1.cdpFetchHeadersFromBidiNetworkHeaders)(headers);\n const request = this.#networkStorage.getRequest(networkId);\n (0, assert_js_1.assert)(request, `Network request with ID ${networkId} doesn't exist`);\n await request.continueRequest(fetchId, url, method, requestHeaders);\n this.#networkStorage.removeBlockedRequest(networkId);\n return {};\n }\n async continueResponse(params) {\n const networkId = params.request;\n const { request: fetchId, phase } = this.#getBlockedRequest(networkId);\n if (phase === \"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */) {\n throw new protocol_js_1.InvalidArgumentException(`Blocked request for network id '${networkId}' is in 'BeforeRequestSent' phase`);\n }\n const { statusCode, reasonPhrase, headers } = params;\n const responseHeaders = (0, NetworkUtils_js_1.cdpFetchHeadersFromBidiNetworkHeaders)(headers);\n // TODO: Set / expand.\n // ; Step 10. cookies\n // ; Step 11. credentials\n const request = this.#networkStorage.getRequest(networkId);\n (0, assert_js_1.assert)(request, `Network request with ID ${networkId} doesn't exist`);\n await request.continueResponse(fetchId, statusCode, reasonPhrase, responseHeaders);\n this.#networkStorage.removeBlockedRequest(networkId);\n return {};\n }\n async continueWithAuth(params) {\n const networkId = params.request;\n const { request: fetchId, phase } = this.#getBlockedRequest(networkId);\n if (phase !== \"authRequired\" /* Network.InterceptPhase.AuthRequired */) {\n throw new protocol_js_1.InvalidArgumentException(`Blocked request for network id '${networkId}' is not in 'AuthRequired' phase`);\n }\n const request = this.#networkStorage.getRequest(networkId);\n (0, assert_js_1.assert)(request, `Network request with ID ${networkId} doesn't exist`);\n let username;\n let password;\n if (params.action === 'provideCredentials') {\n const { credentials } = params;\n username = params.credentials.username;\n password = params.credentials.password;\n (0, assert_js_1.assert)(credentials.type === 'password', `Credentials type ${credentials.type} must be 'password'`);\n }\n const response = (0, NetworkUtils_js_1.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction)(params.action);\n await request.continueWithAuth(fetchId, response, username, password);\n return {};\n }\n async failRequest(params) {\n const networkId = params.request;\n const blockedRequest = this.#getBlockedRequest(networkId);\n const { request: fetchId, phase } = blockedRequest;\n if (phase === \"authRequired\" /* Network.InterceptPhase.AuthRequired */) {\n throw new protocol_js_1.InvalidArgumentException(`Blocked request for network id '${networkId}' is in 'AuthRequired' phase`);\n }\n const request = this.#networkStorage.getRequest(networkId);\n (0, assert_js_1.assert)(request, `Network request with ID ${networkId} doesn't exist`);\n await request.failRequest(fetchId, 'Failed');\n this.#networkStorage.removeBlockedRequest(networkId);\n return {};\n }\n async provideResponse(params) {\n const networkId = params.request;\n const { request: fetchId } = this.#getBlockedRequest(networkId);\n const { statusCode, reasonPhrase, headers, body } = params;\n // TODO: Step 6\n // https://w3c.github.io/webdriver-bidi/#command-network-continueResponse\n const responseHeaders = (0, NetworkUtils_js_1.cdpFetchHeadersFromBidiNetworkHeaders)(headers);\n // TODO: Set / expand.\n // ; Step 10. cookies\n // ; Step 11. credentials\n const request = this.#networkStorage.getRequest(networkId);\n (0, assert_js_1.assert)(request, `Network request with ID ${networkId} doesn't exist`);\n await request.provideResponse(fetchId, statusCode ?? request.statusCode, reasonPhrase, responseHeaders, body?.value // TODO: Differ base64 / string\n );\n this.#networkStorage.removeBlockedRequest(networkId);\n return {};\n }\n async removeIntercept(params) {\n this.#networkStorage.removeIntercept(params.intercept);\n await this.#fetchApply();\n return {};\n }\n /** Applies all existing network intercepts to all CDP targets concurrently. */\n async #fetchEnable() {\n await Promise.all(this.#browsingContextStorage.getAllContexts().map(async (context) => {\n await context.cdpTarget.fetchEnable();\n }));\n }\n /** Removes all existing network intercepts from all CDP targets concurrently. */\n async #fetchDisable() {\n await Promise.all(this.#browsingContextStorage.getAllContexts().map(async (context) => {\n await context.cdpTarget.fetchDisable();\n }));\n }\n /**\n * Either enables or disables the Fetch domain.\n *\n * If enabling, applies all existing network intercepts to all CDP targets.\n * If disabling, removes all existing network intercepts from all CDP targets.\n *\n * Disabling is only performed when there are no remaining intercepts or\n * // blocked requests.\n */\n async #fetchApply() {\n if (this.#networkStorage.hasIntercepts() ||\n this.#networkStorage.hasBlockedRequests() ||\n this.#networkStorage.hasNetworkRequests()) {\n // TODO: Add try/catch. Remove the intercept if CDP Fetch commands fail.\n await this.#fetchEnable();\n }\n else {\n // The last intercept has been removed, and there are no pending\n // blocked requests.\n // Disable the Fetch domain.\n await this.#fetchDisable();\n }\n }\n /**\n * Returns the blocked request associated with the given network ID.\n * If none, throws a NoSuchRequestException.\n */\n #getBlockedRequest(networkId) {\n const blockedRequest = this.#networkStorage.getBlockedRequest(networkId);\n if (!blockedRequest) {\n throw new protocol_js_1.NoSuchRequestException(`No blocked request found for network id '${networkId}'`);\n }\n return blockedRequest;\n }\n /**\n * Attempts to parse the given url.\n * Throws an InvalidArgumentException if the url is invalid.\n */\n static parseUrlString(url) {\n try {\n return new URL(url);\n }\n catch (error) {\n throw new protocol_js_1.InvalidArgumentException(`Invalid URL '${url}': ${error}`);\n }\n }\n static parseUrlPatterns(urlPatterns) {\n return urlPatterns.map((urlPattern) => {\n switch (urlPattern.type) {\n case 'string': {\n NetworkProcessor.parseUrlString(urlPattern.pattern);\n return urlPattern;\n }\n case 'pattern':\n // No params signifies intercept all\n if (urlPattern.protocol === undefined &&\n urlPattern.hostname === undefined &&\n urlPattern.port === undefined &&\n urlPattern.pathname === undefined &&\n urlPattern.search === undefined) {\n return urlPattern;\n }\n if (urlPattern.protocol === '') {\n throw new protocol_js_1.InvalidArgumentException(`URL pattern must specify a protocol`);\n }\n if (urlPattern.hostname === '') {\n throw new protocol_js_1.InvalidArgumentException(`URL pattern must specify a hostname`);\n }\n if ((urlPattern.hostname?.length ?? 0) > 0) {\n if (urlPattern.protocol?.match(/^file/i)) {\n throw new protocol_js_1.InvalidArgumentException(`URL pattern protocol cannot be 'file'`);\n }\n if (urlPattern.hostname?.includes(':')) {\n throw new protocol_js_1.InvalidArgumentException(`URL pattern hostname must not contain a colon`);\n }\n }\n if (urlPattern.port === '') {\n throw new protocol_js_1.InvalidArgumentException(`URL pattern must specify a port`);\n }\n try {\n new URL(NetworkStorage_js_1.NetworkStorage.buildUrlPatternString(urlPattern));\n }\n catch (error) {\n throw new protocol_js_1.InvalidArgumentException(`${error}`);\n }\n return urlPattern;\n }\n });\n }\n}\nexports.NetworkProcessor = NetworkProcessor;\n//# sourceMappingURL=NetworkProcessor.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PreloadScriptStorage = void 0;\n/**\n * Container class for preload scripts.\n */\nclass PreloadScriptStorage {\n /** Tracks all BiDi preload scripts. */\n #scripts = new Set();\n /** Finds all entries that match the given filter. */\n find(filter) {\n if (!filter) {\n return [...this.#scripts];\n }\n return [...this.#scripts].filter((script) => {\n if (filter.id !== undefined && filter.id !== script.id) {\n return false;\n }\n if (filter.targetId !== undefined &&\n !script.targetIds.has(filter.targetId)) {\n return false;\n }\n if (filter.global !== undefined &&\n // Global scripts have no contexts\n ((filter.global && script.contexts !== undefined) ||\n // Non global scripts always have contexts\n (!filter.global && script.contexts === undefined))) {\n return false;\n }\n return true;\n });\n }\n add(preloadScript) {\n this.#scripts.add(preloadScript);\n }\n /** Deletes all BiDi preload script entries that match the given filter. */\n remove(filter) {\n for (const preloadScript of this.find(filter)) {\n this.#scripts.delete(preloadScript);\n }\n }\n}\nexports.PreloadScriptStorage = PreloadScriptStorage;\n//# sourceMappingURL=PreloadScriptStorage.js.map","\"use strict\";\n/*\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PreloadScript = void 0;\nconst uuid_js_1 = require(\"../../../utils/uuid.js\");\nconst ChannelProxy_js_1 = require(\"./ChannelProxy.js\");\n/**\n * BiDi IDs are generated by the server and are unique within contexts.\n *\n * CDP preload script IDs are generated by the client and are unique\n * within sessions.\n *\n * The mapping between BiDi and CDP preload script IDs is 1:many.\n * BiDi IDs are needed by the mapper to keep track of potential multiple CDP IDs\n * in the client.\n */\nclass PreloadScript {\n /** BiDi ID, an automatically generated UUID. */\n #id = (0, uuid_js_1.uuidv4)();\n /** CDP preload scripts. */\n #cdpPreloadScripts = [];\n /** The script itself, in a format expected by the spec i.e. a function. */\n #functionDeclaration;\n /** Targets, in which the preload script is initialized. */\n #targetIds = new Set();\n /** Channels to be added as arguments to functionDeclaration. */\n #channels;\n /** The script sandbox / world name. */\n #sandbox;\n /** The browsing contexts to execute the preload scripts in, if any. */\n #contexts;\n get id() {\n return this.#id;\n }\n get targetIds() {\n return this.#targetIds;\n }\n constructor(params, logger) {\n this.#channels =\n params.arguments?.map((a) => new ChannelProxy_js_1.ChannelProxy(a.value, logger)) ?? [];\n this.#functionDeclaration = params.functionDeclaration;\n this.#sandbox = params.sandbox;\n this.#contexts = params.contexts;\n }\n /** Channels of the preload script. */\n get channels() {\n return this.#channels;\n }\n /** Contexts of the preload script, if any */\n get contexts() {\n return this.#contexts;\n }\n /**\n * String to be evaluated. Wraps user-provided function so that the following\n * steps are run:\n * 1. Create channels.\n * 2. Store the created channels in window.\n * 3. Call the user-provided function with channels as arguments.\n */\n #getEvaluateString() {\n const channelsArgStr = `[${this.channels\n .map((c) => c.getEvalInWindowStr())\n .join(', ')}]`;\n return `(()=>{(${this.#functionDeclaration})(...${channelsArgStr})})()`;\n }\n /**\n * Adds the script to the given CDP targets by calling the\n * `Page.addScriptToEvaluateOnNewDocument` command.\n */\n async initInTargets(cdpTargets, runImmediately) {\n await Promise.all(Array.from(cdpTargets).map((cdpTarget) => this.initInTarget(cdpTarget, runImmediately)));\n }\n /**\n * Adds the script to the given CDP target by calling the\n * `Page.addScriptToEvaluateOnNewDocument` command.\n */\n async initInTarget(cdpTarget, runImmediately) {\n const addCdpPreloadScriptResult = await cdpTarget.cdpClient.sendCommand('Page.addScriptToEvaluateOnNewDocument', {\n source: this.#getEvaluateString(),\n worldName: this.#sandbox,\n runImmediately,\n });\n this.#cdpPreloadScripts.push({\n target: cdpTarget,\n preloadScriptId: addCdpPreloadScriptResult.identifier,\n });\n this.#targetIds.add(cdpTarget.targetId);\n }\n /**\n * Removes this script from all CDP targets.\n */\n async remove() {\n for (const cdpPreloadScript of this.#cdpPreloadScripts) {\n const cdpTarget = cdpPreloadScript.target;\n const cdpPreloadScriptId = cdpPreloadScript.preloadScriptId;\n await cdpTarget.cdpClient.sendCommand('Page.removeScriptToEvaluateOnNewDocument', {\n identifier: cdpPreloadScriptId,\n });\n }\n }\n /** Removes the provided cdp target from the list of cdp preload scripts. */\n dispose(cdpTargetId) {\n this.#cdpPreloadScripts = this.#cdpPreloadScripts.filter((cdpPreloadScript) => cdpPreloadScript.target?.targetId !== cdpTargetId);\n this.#targetIds.delete(cdpTargetId);\n }\n}\nexports.PreloadScript = PreloadScript;\n//# sourceMappingURL=PreloadScript.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ScriptProcessor = void 0;\nconst protocol_1 = require(\"../../../protocol/protocol\");\nconst PreloadScript_1 = require(\"./PreloadScript\");\nclass ScriptProcessor {\n #browsingContextStorage;\n #realmStorage;\n #preloadScriptStorage;\n #logger;\n constructor(browsingContextStorage, realmStorage, preloadScriptStorage, logger) {\n this.#browsingContextStorage = browsingContextStorage;\n this.#realmStorage = realmStorage;\n this.#preloadScriptStorage = preloadScriptStorage;\n this.#logger = logger;\n }\n async addPreloadScript(params) {\n const contexts = new Set();\n if (params.contexts) {\n // XXX: Remove once https://github.com/google/cddlconv/issues/16 is implemented\n if (params.contexts.length === 0) {\n throw new protocol_1.InvalidArgumentException('Contexts list is empty.');\n }\n for (const contextId of params.contexts) {\n const context = this.#browsingContextStorage.getContext(contextId);\n if (context.isTopLevelContext()) {\n contexts.add(context);\n }\n else {\n throw new protocol_1.InvalidArgumentException(`Non top-level context '${contextId}' given.`);\n }\n }\n }\n const preloadScript = new PreloadScript_1.PreloadScript(params, this.#logger);\n this.#preloadScriptStorage.add(preloadScript);\n const cdpTargets = contexts.size === 0\n ? new Set(this.#browsingContextStorage\n .getTopLevelContexts()\n .map((context) => context.cdpTarget))\n : new Set([...contexts.values()].map((context) => context.cdpTarget));\n await preloadScript.initInTargets(cdpTargets, false);\n return {\n script: preloadScript.id,\n };\n }\n async removePreloadScript(params) {\n const bidiId = params.script;\n const scripts = this.#preloadScriptStorage.find({\n id: bidiId,\n });\n if (scripts.length === 0) {\n throw new protocol_1.NoSuchScriptException(`No preload script with BiDi ID '${bidiId}'`);\n }\n await Promise.all(scripts.map((script) => script.remove()));\n this.#preloadScriptStorage.remove({\n id: bidiId,\n });\n return {};\n }\n async callFunction(params) {\n const realm = await this.#getRealm(params.target);\n return await realm.callFunction(params.functionDeclaration, params.this ?? {\n type: 'undefined',\n }, // `this` is `undefined` by default.\n params.arguments ?? [], // `arguments` is `[]` by default.\n params.awaitPromise, params.resultOwnership ?? \"none\" /* Script.ResultOwnership.None */, params.serializationOptions ?? {}, params.userActivation ?? false);\n }\n async evaluate(params) {\n const realm = await this.#getRealm(params.target);\n return await realm.evaluate(params.expression, params.awaitPromise, params.resultOwnership ?? \"none\" /* Script.ResultOwnership.None */, params.serializationOptions ?? {}, params.userActivation ?? false);\n }\n async disown(params) {\n const realm = await this.#getRealm(params.target);\n await Promise.all(params.handles.map(async (handle) => await realm.disown(handle)));\n return {};\n }\n getRealms(params) {\n if (params.context !== undefined) {\n // Make sure the context is known.\n this.#browsingContextStorage.getContext(params.context);\n }\n const realms = this.#realmStorage\n .findRealms({\n browsingContextId: params.context,\n type: params.type,\n })\n .map((realm) => realm.realmInfo);\n return { realms };\n }\n async #getRealm(target) {\n if ('realm' in target) {\n return this.#realmStorage.getRealm({\n realmId: target.realm,\n });\n }\n const context = this.#browsingContextStorage.getContext(target.context);\n return await context.getOrCreateSandbox(target.sandbox);\n }\n}\nexports.ScriptProcessor = ScriptProcessor;\n//# sourceMappingURL=ScriptProcessor.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SessionProcessor = void 0;\nclass SessionProcessor {\n #eventManager;\n constructor(eventManager) {\n this.#eventManager = eventManager;\n }\n status() {\n return { ready: false, message: 'already connected' };\n }\n subscribe(params, channel = null) {\n this.#eventManager.subscribe(params.events, params.contexts ?? [null], channel);\n return {};\n }\n unsubscribe(params, channel = null) {\n this.#eventManager.unsubscribe(params.events, params.contexts ?? [null], channel);\n return {};\n }\n}\nexports.SessionProcessor = SessionProcessor;\n//# sourceMappingURL=SessionProcessor.js.map","\"use strict\";\n/**\n * Copyright 2021 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.OutgoingMessage = void 0;\nclass OutgoingMessage {\n #message;\n #channel;\n constructor(message, channel = null) {\n this.#message = message;\n this.#channel = channel;\n }\n static createFromPromise(messagePromise, channel) {\n return messagePromise.then((message) => {\n if (message.kind === 'success') {\n return {\n kind: 'success',\n value: new OutgoingMessage(message.value, channel),\n };\n }\n return message;\n });\n }\n static createResolved(message, channel) {\n return Promise.resolve({\n kind: 'success',\n value: new OutgoingMessage(message, channel),\n });\n }\n get message() {\n return this.#message;\n }\n get channel() {\n return this.#channel;\n }\n}\nexports.OutgoingMessage = OutgoingMessage;\n//# sourceMappingURL=OutgoingMessage.js.map","\"use strict\";\n/**\n * Copyright 2021 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CommandProcessor = void 0;\nconst protocol_js_1 = require(\"../protocol/protocol.js\");\nconst EventEmitter_js_1 = require(\"../utils/EventEmitter.js\");\nconst log_js_1 = require(\"../utils/log.js\");\nconst BidiNoOpParser_js_1 = require(\"./BidiNoOpParser.js\");\nconst BrowserProcessor_js_1 = require(\"./domains/browser/BrowserProcessor.js\");\nconst CdpProcessor_js_1 = require(\"./domains/cdp/CdpProcessor.js\");\nconst BrowsingContextProcessor_js_1 = require(\"./domains/context/BrowsingContextProcessor.js\");\nconst InputProcessor_js_1 = require(\"./domains/input/InputProcessor.js\");\nconst NetworkProcessor_js_1 = require(\"./domains/network/NetworkProcessor.js\");\nconst NetworkStorage_js_1 = require(\"./domains/network/NetworkStorage.js\");\nconst PreloadScriptStorage_js_1 = require(\"./domains/script/PreloadScriptStorage.js\");\nconst ScriptProcessor_js_1 = require(\"./domains/script/ScriptProcessor.js\");\nconst SessionProcessor_js_1 = require(\"./domains/session/SessionProcessor.js\");\nconst OutgoingMessage_js_1 = require(\"./OutgoingMessage.js\");\nclass CommandProcessor extends EventEmitter_js_1.EventEmitter {\n // keep-sorted start\n #browserProcessor;\n #browsingContextProcessor;\n #cdpProcessor;\n #inputProcessor;\n #networkProcessor;\n #scriptProcessor;\n #sessionProcessor;\n // keep-sorted end\n #parser;\n #logger;\n constructor(cdpConnection, browserCdpClient, eventManager, selfTargetId, browsingContextStorage, realmStorage, acceptInsecureCerts, parser = new BidiNoOpParser_js_1.BidiNoOpParser(), logger) {\n super();\n this.#parser = parser;\n this.#logger = logger;\n const networkStorage = new NetworkStorage_js_1.NetworkStorage();\n const preloadScriptStorage = new PreloadScriptStorage_js_1.PreloadScriptStorage();\n // keep-sorted start block=yes\n this.#browserProcessor = new BrowserProcessor_js_1.BrowserProcessor(browserCdpClient);\n this.#browsingContextProcessor = new BrowsingContextProcessor_js_1.BrowsingContextProcessor(cdpConnection, browserCdpClient, selfTargetId, eventManager, browsingContextStorage, realmStorage, networkStorage, preloadScriptStorage, acceptInsecureCerts, logger);\n this.#cdpProcessor = new CdpProcessor_js_1.CdpProcessor(browsingContextStorage, cdpConnection, browserCdpClient);\n this.#inputProcessor = new InputProcessor_js_1.InputProcessor(browsingContextStorage);\n this.#networkProcessor = new NetworkProcessor_js_1.NetworkProcessor(browsingContextStorage, networkStorage);\n this.#scriptProcessor = new ScriptProcessor_js_1.ScriptProcessor(browsingContextStorage, realmStorage, preloadScriptStorage, logger);\n this.#sessionProcessor = new SessionProcessor_js_1.SessionProcessor(eventManager);\n // keep-sorted end\n }\n async #processCommand(command) {\n switch (command.method) {\n case 'session.end':\n case 'session.new':\n // TODO: Implement.\n break;\n // Browser domain\n // keep-sorted start block=yes\n case 'browser.close':\n return this.#browserProcessor.close();\n // keep-sorted end\n // Browsing Context domain\n // keep-sorted start block=yes\n case 'browsingContext.activate':\n return await this.#browsingContextProcessor.activate(this.#parser.parseActivateParams(command.params));\n case 'browsingContext.captureScreenshot':\n return await this.#browsingContextProcessor.captureScreenshot(this.#parser.parseCaptureScreenshotParams(command.params));\n case 'browsingContext.close':\n return await this.#browsingContextProcessor.close(this.#parser.parseCloseParams(command.params));\n case 'browsingContext.create':\n return await this.#browsingContextProcessor.create(this.#parser.parseCreateParams(command.params));\n case 'browsingContext.getTree':\n return this.#browsingContextProcessor.getTree(this.#parser.parseGetTreeParams(command.params));\n case 'browsingContext.handleUserPrompt':\n return await this.#browsingContextProcessor.handleUserPrompt(this.#parser.parseHandleUserPromptParams(command.params));\n case 'browsingContext.locateNodes':\n throw new protocol_js_1.UnsupportedOperationException(`Command '${command.method}' not yet implemented.`);\n case 'browsingContext.navigate':\n return await this.#browsingContextProcessor.navigate(this.#parser.parseNavigateParams(command.params));\n case 'browsingContext.print':\n return await this.#browsingContextProcessor.print(this.#parser.parsePrintParams(command.params));\n case 'browsingContext.reload':\n return await this.#browsingContextProcessor.reload(this.#parser.parseReloadParams(command.params));\n case 'browsingContext.setViewport':\n return await this.#browsingContextProcessor.setViewport(this.#parser.parseSetViewportParams(command.params));\n case 'browsingContext.traverseHistory':\n return await this.#browsingContextProcessor.traverseHistory(this.#parser.parseTraverseHistoryParams(command.params));\n // keep-sorted end\n // CDP domain\n // keep-sorted start block=yes\n case 'cdp.getSession':\n return this.#cdpProcessor.getSession(this.#parser.parseGetSessionParams(command.params));\n case 'cdp.sendCommand':\n return await this.#cdpProcessor.sendCommand(this.#parser.parseSendCommandParams(command.params));\n // keep-sorted end\n // Input domain\n // keep-sorted start block=yes\n case 'input.performActions':\n return await this.#inputProcessor.performActions(this.#parser.parsePerformActionsParams(command.params));\n case 'input.releaseActions':\n return await this.#inputProcessor.releaseActions(this.#parser.parseReleaseActionsParams(command.params));\n // keep-sorted end\n // Network domain\n // keep-sorted start block=yes\n case 'network.addIntercept':\n return await this.#networkProcessor.addIntercept(this.#parser.parseAddInterceptParams(command.params));\n case 'network.continueRequest':\n return await this.#networkProcessor.continueRequest(this.#parser.parseContinueRequestParams(command.params));\n case 'network.continueResponse':\n return await this.#networkProcessor.continueResponse(this.#parser.parseContinueResponseParams(command.params));\n case 'network.continueWithAuth':\n return await this.#networkProcessor.continueWithAuth(this.#parser.parseContinueWithAuthParams(command.params));\n case 'network.failRequest':\n return await this.#networkProcessor.failRequest(this.#parser.parseFailRequestParams(command.params));\n case 'network.provideResponse':\n return await this.#networkProcessor.provideResponse(this.#parser.parseProvideResponseParams(command.params));\n case 'network.removeIntercept':\n return await this.#networkProcessor.removeIntercept(this.#parser.parseRemoveInterceptParams(command.params));\n // keep-sorted end\n // Script domain\n // keep-sorted start block=yes\n case 'script.addPreloadScript':\n return await this.#scriptProcessor.addPreloadScript(this.#parser.parseAddPreloadScriptParams(command.params));\n case 'script.callFunction':\n return await this.#scriptProcessor.callFunction(this.#parser.parseCallFunctionParams(command.params));\n case 'script.disown':\n return await this.#scriptProcessor.disown(this.#parser.parseDisownParams(command.params));\n case 'script.evaluate':\n return await this.#scriptProcessor.evaluate(this.#parser.parseEvaluateParams(command.params));\n case 'script.getRealms':\n return this.#scriptProcessor.getRealms(this.#parser.parseGetRealmsParams(command.params));\n case 'script.removePreloadScript':\n return await this.#scriptProcessor.removePreloadScript(this.#parser.parseRemovePreloadScriptParams(command.params));\n // keep-sorted end\n // Session domain\n // keep-sorted start block=yes\n case 'session.status':\n return this.#sessionProcessor.status();\n case 'session.subscribe':\n return this.#sessionProcessor.subscribe(this.#parser.parseSubscribeParams(command.params), command.channel);\n case 'session.unsubscribe':\n return this.#sessionProcessor.unsubscribe(this.#parser.parseSubscribeParams(command.params), command.channel);\n // keep-sorted end\n }\n // Intentionally kept outside of the switch statement to ensure that\n // ESLint @typescript-eslint/switch-exhaustiveness-check triggers if a new\n // command is added.\n throw new protocol_js_1.UnknownCommandException(`Unknown command '${command.method}'.`);\n }\n async processCommand(command) {\n try {\n const result = await this.#processCommand(command);\n const response = {\n type: 'success',\n id: command.id,\n result,\n };\n this.emit(\"response\" /* CommandProcessorEvents.Response */, {\n message: OutgoingMessage_js_1.OutgoingMessage.createResolved(response, command.channel),\n event: command.method,\n });\n }\n catch (e) {\n if (e instanceof protocol_js_1.Exception) {\n this.emit(\"response\" /* CommandProcessorEvents.Response */, {\n message: OutgoingMessage_js_1.OutgoingMessage.createResolved(e.toErrorResponse(command.id), command.channel),\n event: command.method,\n });\n }\n else {\n const error = e;\n this.#logger?.(log_js_1.LogType.bidi, error);\n this.emit(\"response\" /* CommandProcessorEvents.Response */, {\n message: OutgoingMessage_js_1.OutgoingMessage.createResolved(new protocol_js_1.UnknownErrorException(error.message, error.stack).toErrorResponse(command.id), command.channel),\n event: command.method,\n });\n }\n }\n }\n}\nexports.CommandProcessor = CommandProcessor;\n//# sourceMappingURL=CommandProcessor.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BrowsingContextStorage = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\n/** Container class for browsing contexts. */\nclass BrowsingContextStorage {\n /** Map from context ID to context implementation. */\n #contexts = new Map();\n /** Gets all top-level contexts, i.e. those with no parent. */\n getTopLevelContexts() {\n return this.getAllContexts().filter((context) => context.isTopLevelContext());\n }\n /** Gets all contexts. */\n getAllContexts() {\n return Array.from(this.#contexts.values());\n }\n /** Deletes the context with the given ID. */\n deleteContextById(id) {\n this.#contexts.delete(id);\n }\n /** Deletes the given context. */\n deleteContext(context) {\n this.#contexts.delete(context.id);\n }\n /** Tracks the given context. */\n addContext(context) {\n this.#contexts.set(context.id, context);\n }\n /** Returns true whether there is an existing context with the given ID. */\n hasContext(id) {\n return this.#contexts.has(id);\n }\n /** Gets the context with the given ID, if any. */\n findContext(id) {\n return this.#contexts.get(id);\n }\n /** Returns the top-level context ID of the given context, if any. */\n findTopLevelContextId(id) {\n if (id === null) {\n return null;\n }\n const maybeContext = this.findContext(id);\n const parentId = maybeContext?.parentId ?? null;\n if (parentId === null) {\n return id;\n }\n return this.findTopLevelContextId(parentId);\n }\n findContextBySession(sessionId) {\n for (const context of this.#contexts.values()) {\n if (context.cdpTarget.cdpSessionId === sessionId) {\n return context;\n }\n }\n return;\n }\n /** Gets the context with the given ID, if any, otherwise throws. */\n getContext(id) {\n const result = this.findContext(id);\n if (result === undefined) {\n throw new protocol_js_1.NoSuchFrameException(`Context ${id} not found`);\n }\n return result;\n }\n}\nexports.BrowsingContextStorage = BrowsingContextStorage;\n//# sourceMappingURL=BrowsingContextStorage.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Buffer = void 0;\n/** Implements a FIFO buffer with a fixed size. */\nclass Buffer {\n #capacity;\n #entries = [];\n #onItemRemoved;\n /**\n * @param capacity The buffer capacity.\n * @param onItemRemoved Delegate called for each removed element.\n */\n constructor(capacity, onItemRemoved) {\n this.#capacity = capacity;\n this.#onItemRemoved = onItemRemoved;\n }\n get() {\n return this.#entries;\n }\n add(value) {\n this.#entries.push(value);\n while (this.#entries.length > this.#capacity) {\n const item = this.#entries.shift();\n if (item !== undefined) {\n this.#onItemRemoved?.(item);\n }\n }\n }\n}\nexports.Buffer = Buffer;\n//# sourceMappingURL=Buffer.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DefaultMap = void 0;\n/**\n * A subclass of Map whose functionality is almost the same as its parent\n * except for the fact that DefaultMap never returns undefined. It provides a\n * default value for keys that do not exist.\n */\nclass DefaultMap extends Map {\n /** The default value to return whenever a key is not present in the map. */\n #getDefaultValue;\n constructor(getDefaultValue, entries) {\n super(entries);\n this.#getDefaultValue = getDefaultValue;\n }\n get(key) {\n if (!this.has(key)) {\n this.set(key, this.#getDefaultValue(key));\n }\n return super.get(key);\n }\n}\nexports.DefaultMap = DefaultMap;\n//# sourceMappingURL=DefaultMap.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.IdWrapper = void 0;\n/**\n * Creates an object with a positive unique incrementing id.\n */\nclass IdWrapper {\n static #counter = 0;\n #id;\n constructor() {\n this.#id = ++IdWrapper.#counter;\n }\n get id() {\n return this.#id;\n }\n}\nexports.IdWrapper = IdWrapper;\n//# sourceMappingURL=IdWrapper.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assertSupportedEvent = exports.isCdpEvent = void 0;\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\n/**\n * Returns true if the given event is a CDP event.\n * @see https://chromedevtools.github.io/devtools-protocol/\n */\nfunction isCdpEvent(name) {\n return (name.split('.').at(0)?.startsWith(protocol_js_1.ChromiumBidi.BiDiModule.Cdp) ?? false);\n}\nexports.isCdpEvent = isCdpEvent;\n/**\n * Asserts that the given event is known to BiDi or BiDi+, or throws otherwise.\n */\nfunction assertSupportedEvent(name) {\n if (!protocol_js_1.ChromiumBidi.EVENT_NAMES.has(name) && !isCdpEvent(name)) {\n throw new protocol_js_1.InvalidArgumentException(`Unknown event: ${name}`);\n }\n}\nexports.assertSupportedEvent = assertSupportedEvent;\n//# sourceMappingURL=events.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SubscriptionManager = exports.unrollEvents = exports.cartesianProduct = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst events_js_1 = require(\"./events.js\");\n/**\n * Returns the cartesian product of the given arrays.\n *\n * Example:\n * cartesian([1, 2], ['a', 'b']); => [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']]\n */\nfunction cartesianProduct(...a) {\n return a.reduce((a, b) => a.flatMap((d) => b.map((e) => [d, e].flat())));\n}\nexports.cartesianProduct = cartesianProduct;\n/** Expands \"AllEvents\" events into atomic events. */\nfunction unrollEvents(events) {\n const allEvents = new Set();\n function addEvents(events) {\n for (const event of events) {\n allEvents.add(event);\n }\n }\n for (const event of events) {\n switch (event) {\n case protocol_js_1.ChromiumBidi.BiDiModule.BrowsingContext:\n addEvents(Object.values(protocol_js_1.ChromiumBidi.BrowsingContext.EventNames));\n break;\n case protocol_js_1.ChromiumBidi.BiDiModule.Log:\n addEvents(Object.values(protocol_js_1.ChromiumBidi.Log.EventNames));\n break;\n case protocol_js_1.ChromiumBidi.BiDiModule.Network:\n addEvents(Object.values(protocol_js_1.ChromiumBidi.Network.EventNames));\n break;\n case protocol_js_1.ChromiumBidi.BiDiModule.Script:\n addEvents(Object.values(protocol_js_1.ChromiumBidi.Script.EventNames));\n break;\n default:\n allEvents.add(event);\n }\n }\n return [...allEvents.values()];\n}\nexports.unrollEvents = unrollEvents;\nclass SubscriptionManager {\n #subscriptionPriority = 0;\n // BrowsingContext `null` means the event has subscription across all the\n // browsing contexts.\n // Channel `null` means no `channel` should be added.\n #channelToContextToEventMap = new Map();\n #browsingContextStorage;\n constructor(browsingContextStorage) {\n this.#browsingContextStorage = browsingContextStorage;\n }\n getChannelsSubscribedToEvent(eventMethod, contextId) {\n const prioritiesAndChannels = Array.from(this.#channelToContextToEventMap.keys())\n .map((channel) => ({\n priority: this.#getEventSubscriptionPriorityForChannel(eventMethod, contextId, channel),\n channel,\n }))\n .filter(({ priority }) => priority !== null);\n // Sort channels by priority.\n return prioritiesAndChannels\n .sort((a, b) => a.priority - b.priority)\n .map(({ channel }) => channel);\n }\n #getEventSubscriptionPriorityForChannel(eventMethod, contextId, channel) {\n const contextToEventMap = this.#channelToContextToEventMap.get(channel);\n if (contextToEventMap === undefined) {\n return null;\n }\n const maybeTopLevelContextId = this.#browsingContextStorage.findTopLevelContextId(contextId);\n // `null` covers global subscription.\n const relevantContexts = [...new Set([null, maybeTopLevelContextId])];\n // Get all the subscription priorities.\n const priorities = relevantContexts\n .map((context) => {\n // Get the priority for exact event name\n const priority = contextToEventMap.get(context)?.get(eventMethod);\n // For CDP we can't provide specific event name when subscribing\n // to the module directly.\n // Because of that we need to see event `cdp` exits in the map.\n if ((0, events_js_1.isCdpEvent)(eventMethod)) {\n const cdpPriority = contextToEventMap\n .get(context)\n ?.get(protocol_js_1.ChromiumBidi.BiDiModule.Cdp);\n // If we subscribe to the event directly and `cdp` module as well\n // priority will be different we take minimal priority\n return priority && cdpPriority\n ? Math.min(priority, cdpPriority)\n : // At this point we know that we have subscribed\n // to only one of the two\n priority ?? cdpPriority;\n }\n return priority;\n })\n .filter((p) => p !== undefined);\n if (priorities.length === 0) {\n // Not subscribed, return null.\n return null;\n }\n // Return minimal priority.\n return Math.min(...priorities);\n }\n subscribe(event, contextId, channel) {\n // All the subscriptions are handled on the top-level contexts.\n contextId = this.#browsingContextStorage.findTopLevelContextId(contextId);\n // Check if subscribed event is a whole module\n switch (event) {\n case protocol_js_1.ChromiumBidi.BiDiModule.BrowsingContext:\n Object.values(protocol_js_1.ChromiumBidi.BrowsingContext.EventNames).map((specificEvent) => this.subscribe(specificEvent, contextId, channel));\n return;\n case protocol_js_1.ChromiumBidi.BiDiModule.Log:\n Object.values(protocol_js_1.ChromiumBidi.Log.EventNames).map((specificEvent) => this.subscribe(specificEvent, contextId, channel));\n return;\n case protocol_js_1.ChromiumBidi.BiDiModule.Network:\n Object.values(protocol_js_1.ChromiumBidi.Network.EventNames).map((specificEvent) => this.subscribe(specificEvent, contextId, channel));\n return;\n case protocol_js_1.ChromiumBidi.BiDiModule.Script:\n Object.values(protocol_js_1.ChromiumBidi.Script.EventNames).map((specificEvent) => this.subscribe(specificEvent, contextId, channel));\n return;\n default:\n // Intentionally left empty.\n }\n if (!this.#channelToContextToEventMap.has(channel)) {\n this.#channelToContextToEventMap.set(channel, new Map());\n }\n const contextToEventMap = this.#channelToContextToEventMap.get(channel);\n if (!contextToEventMap.has(contextId)) {\n contextToEventMap.set(contextId, new Map());\n }\n const eventMap = contextToEventMap.get(contextId);\n // Do not re-subscribe to events to keep the priority.\n if (eventMap.has(event)) {\n return;\n }\n eventMap.set(event, this.#subscriptionPriority++);\n }\n /**\n * Unsubscribes atomically from all events in the given contexts and channel.\n */\n unsubscribeAll(events, contextIds, channel) {\n // Assert all contexts are known.\n for (const contextId of contextIds) {\n if (contextId !== null) {\n this.#browsingContextStorage.getContext(contextId);\n }\n }\n const eventContextPairs = cartesianProduct(unrollEvents(events), contextIds);\n // Assert all unsubscriptions are valid.\n // If any of the unsubscriptions are invalid, do not unsubscribe from anything.\n eventContextPairs\n .map(([event, contextId]) => this.#checkUnsubscribe(event, contextId, channel))\n .forEach((unsubscribe) => unsubscribe());\n }\n /**\n * Unsubscribes from the event in the given context and channel.\n * Syntactic sugar for \"unsubscribeAll\".\n */\n unsubscribe(eventName, contextId, channel) {\n this.unsubscribeAll([eventName], [contextId], channel);\n }\n #checkUnsubscribe(event, contextId, channel) {\n // All the subscriptions are handled on the top-level contexts.\n contextId = this.#browsingContextStorage.findTopLevelContextId(contextId);\n if (!this.#channelToContextToEventMap.has(channel)) {\n throw new protocol_js_1.InvalidArgumentException(`Cannot unsubscribe from ${event}, ${contextId === null ? 'null' : contextId}. No subscription found.`);\n }\n const contextToEventMap = this.#channelToContextToEventMap.get(channel);\n if (!contextToEventMap.has(contextId)) {\n throw new protocol_js_1.InvalidArgumentException(`Cannot unsubscribe from ${event}, ${contextId === null ? 'null' : contextId}. No subscription found.`);\n }\n const eventMap = contextToEventMap.get(contextId);\n if (!eventMap.has(event)) {\n throw new protocol_js_1.InvalidArgumentException(`Cannot unsubscribe from ${event}, ${contextId === null ? 'null' : contextId}. No subscription found.`);\n }\n return () => {\n eventMap.delete(event);\n // Clean up maps if empty.\n if (eventMap.size === 0) {\n contextToEventMap.delete(event);\n }\n if (contextToEventMap.size === 0) {\n this.#channelToContextToEventMap.delete(channel);\n }\n };\n }\n}\nexports.SubscriptionManager = SubscriptionManager;\n//# sourceMappingURL=SubscriptionManager.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.EventManager = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst Buffer_js_1 = require(\"../../../utils/Buffer.js\");\nconst DefaultMap_js_1 = require(\"../../../utils/DefaultMap.js\");\nconst EventEmitter_js_1 = require(\"../../../utils/EventEmitter.js\");\nconst IdWrapper_js_1 = require(\"../../../utils/IdWrapper.js\");\nconst OutgoingMessage_js_1 = require(\"../../OutgoingMessage.js\");\nconst events_js_1 = require(\"./events.js\");\nconst SubscriptionManager_js_1 = require(\"./SubscriptionManager.js\");\nclass EventWrapper {\n #idWrapper = new IdWrapper_js_1.IdWrapper();\n #contextId;\n #event;\n constructor(event, contextId) {\n this.#event = event;\n this.#contextId = contextId;\n }\n get id() {\n return this.#idWrapper.id;\n }\n get contextId() {\n return this.#contextId;\n }\n get event() {\n return this.#event;\n }\n}\n/**\n * Maps event name to a desired buffer length.\n */\nconst eventBufferLength = new Map([[protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded, 100]]);\nclass EventManager extends EventEmitter_js_1.EventEmitter {\n /**\n * Maps event name to a set of contexts where this event already happened.\n * Needed for getting buffered events from all the contexts in case of\n * subscripting to all contexts.\n */\n #eventToContextsMap = new DefaultMap_js_1.DefaultMap(() => new Set());\n /**\n * Maps `eventName` + `browsingContext` to buffer. Used to get buffered events\n * during subscription. Channel-agnostic.\n */\n #eventBuffers = new Map();\n /**\n * Maps `eventName` + `browsingContext` + `channel` to last sent event id.\n * Used to avoid sending duplicated events when user\n * subscribes -> unsubscribes -> subscribes.\n */\n #lastMessageSent = new Map();\n #subscriptionManager;\n #browsingContextStorage;\n constructor(browsingContextStorage) {\n super();\n this.#browsingContextStorage = browsingContextStorage;\n this.#subscriptionManager = new SubscriptionManager_js_1.SubscriptionManager(browsingContextStorage);\n }\n /**\n * Returns consistent key to be used to access value maps.\n */\n static #getMapKey(eventName, browsingContext, channel) {\n return JSON.stringify({ eventName, browsingContext, channel });\n }\n registerEvent(event, contextId) {\n this.registerPromiseEvent(Promise.resolve({\n kind: 'success',\n value: event,\n }), contextId, event.method);\n }\n registerPromiseEvent(event, contextId, eventName) {\n const eventWrapper = new EventWrapper(event, contextId);\n const sortedChannels = this.#subscriptionManager.getChannelsSubscribedToEvent(eventName, contextId);\n this.#bufferEvent(eventWrapper, eventName);\n // Send events to channels in the subscription priority.\n for (const channel of sortedChannels) {\n this.emit(\"event\" /* EventManagerEvents.Event */, {\n message: OutgoingMessage_js_1.OutgoingMessage.createFromPromise(event, channel),\n event: eventName,\n });\n this.#markEventSent(eventWrapper, channel, eventName);\n }\n }\n subscribe(eventNames, contextIds, channel) {\n for (const name of eventNames) {\n (0, events_js_1.assertSupportedEvent)(name);\n }\n // First check if all the contexts are known.\n for (const contextId of contextIds) {\n if (contextId !== null) {\n // Assert the context is known. Throw exception otherwise.\n this.#browsingContextStorage.getContext(contextId);\n }\n }\n for (const eventName of eventNames) {\n for (const contextId of contextIds) {\n this.#subscriptionManager.subscribe(eventName, contextId, channel);\n for (const eventWrapper of this.#getBufferedEvents(eventName, contextId, channel)) {\n // The order of the events is important.\n this.emit(\"event\" /* EventManagerEvents.Event */, {\n message: OutgoingMessage_js_1.OutgoingMessage.createFromPromise(eventWrapper.event, channel),\n event: eventName,\n });\n this.#markEventSent(eventWrapper, channel, eventName);\n }\n }\n }\n }\n unsubscribe(eventNames, contextIds, channel) {\n for (const name of eventNames) {\n (0, events_js_1.assertSupportedEvent)(name);\n }\n this.#subscriptionManager.unsubscribeAll(eventNames, contextIds, channel);\n }\n /**\n * If the event is buffer-able, put it in the buffer.\n */\n #bufferEvent(eventWrapper, eventName) {\n if (!eventBufferLength.has(eventName)) {\n // Do nothing if the event is no buffer-able.\n return;\n }\n const bufferMapKey = EventManager.#getMapKey(eventName, eventWrapper.contextId);\n if (!this.#eventBuffers.has(bufferMapKey)) {\n this.#eventBuffers.set(bufferMapKey, new Buffer_js_1.Buffer(eventBufferLength.get(eventName)));\n }\n this.#eventBuffers.get(bufferMapKey).add(eventWrapper);\n // Add the context to the list of contexts having `eventName` events.\n this.#eventToContextsMap.get(eventName).add(eventWrapper.contextId);\n }\n /**\n * If the event is buffer-able, mark it as sent to the given contextId and channel.\n */\n #markEventSent(eventWrapper, channel, eventName) {\n if (!eventBufferLength.has(eventName)) {\n // Do nothing if the event is no buffer-able.\n return;\n }\n const lastSentMapKey = EventManager.#getMapKey(eventName, eventWrapper.contextId, channel);\n this.#lastMessageSent.set(lastSentMapKey, Math.max(this.#lastMessageSent.get(lastSentMapKey) ?? 0, eventWrapper.id));\n }\n /**\n * Returns events which are buffered and not yet sent to the given channel events.\n */\n #getBufferedEvents(eventName, contextId, channel) {\n const bufferMapKey = EventManager.#getMapKey(eventName, contextId);\n const lastSentMapKey = EventManager.#getMapKey(eventName, contextId, channel);\n const lastSentMessageId = this.#lastMessageSent.get(lastSentMapKey) ?? -Infinity;\n const result = this.#eventBuffers\n .get(bufferMapKey)\n ?.get()\n .filter((wrapper) => wrapper.id > lastSentMessageId) ?? [];\n if (contextId === null) {\n // For global subscriptions, events buffered in each context should be sent back.\n Array.from(this.#eventToContextsMap.get(eventName).keys())\n .filter((_contextId) => \n // Events without context are already in the result.\n _contextId !== null &&\n // Events from deleted contexts should not be sent.\n this.#browsingContextStorage.hasContext(_contextId))\n .map((_contextId) => this.#getBufferedEvents(eventName, _contextId, channel))\n .forEach((events) => result.push(...events));\n }\n return result.sort((e1, e2) => e1.id - e2.id);\n }\n}\nexports.EventManager = EventManager;\n//# sourceMappingURL=EventManager.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RealmStorage = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\n/** Container class for browsing realms. */\nclass RealmStorage {\n /** Tracks handles and their realms sent to the client. */\n #knownHandlesToRealmMap = new Map();\n /** Map from realm ID to Realm. */\n #realmMap = new Map();\n get knownHandlesToRealmMap() {\n return this.#knownHandlesToRealmMap;\n }\n addRealm(realm) {\n this.#realmMap.set(realm.realmId, realm);\n }\n /** Finds all realms that match the given filter. */\n findRealms(filter) {\n return Array.from(this.#realmMap.values()).filter((realm) => {\n if (filter.realmId !== undefined && filter.realmId !== realm.realmId) {\n return false;\n }\n if (filter.browsingContextId !== undefined &&\n filter.browsingContextId !== realm.browsingContextId) {\n return false;\n }\n if (filter.navigableId !== undefined &&\n filter.navigableId !== realm.navigableId) {\n return false;\n }\n if (filter.executionContextId !== undefined &&\n filter.executionContextId !== realm.executionContextId) {\n return false;\n }\n if (filter.origin !== undefined && filter.origin !== realm.origin) {\n return false;\n }\n if (filter.type !== undefined && filter.type !== realm.type) {\n return false;\n }\n if (filter.sandbox !== undefined && filter.sandbox !== realm.sandbox) {\n return false;\n }\n if (filter.cdpSessionId !== undefined &&\n filter.cdpSessionId !== realm.cdpClient.sessionId) {\n return false;\n }\n return true;\n });\n }\n findRealm(filter) {\n const maybeRealms = this.findRealms(filter);\n if (maybeRealms.length !== 1) {\n return undefined;\n }\n return maybeRealms[0];\n }\n /** Gets the only realm that matches the given filter, if any, otherwise throws. */\n getRealm(filter) {\n const maybeRealm = this.findRealm(filter);\n if (maybeRealm === undefined) {\n throw new protocol_js_1.NoSuchFrameException(`Realm ${JSON.stringify(filter)} not found`);\n }\n return maybeRealm;\n }\n /** Deletes all realms that match the given filter. */\n deleteRealms(filter) {\n this.findRealms(filter).map((realm) => {\n realm.dispose();\n this.#realmMap.delete(realm.realmId);\n Array.from(this.knownHandlesToRealmMap.entries())\n .filter(([, r]) => r === realm.realmId)\n .map(([handle]) => this.knownHandlesToRealmMap.delete(handle));\n });\n }\n}\nexports.RealmStorage = RealmStorage;\n//# sourceMappingURL=RealmStorage.js.map","\"use strict\";\n/**\n * Copyright 2021 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BidiServer = void 0;\nconst EventEmitter_js_1 = require(\"../utils/EventEmitter.js\");\nconst log_js_1 = require(\"../utils/log.js\");\nconst ProcessingQueue_js_1 = require(\"../utils/ProcessingQueue.js\");\nconst CommandProcessor_js_1 = require(\"./CommandProcessor.js\");\nconst BrowsingContextStorage_js_1 = require(\"./domains/context/BrowsingContextStorage.js\");\nconst EventManager_js_1 = require(\"./domains/events/EventManager.js\");\nconst RealmStorage_js_1 = require(\"./domains/script/RealmStorage.js\");\nclass BidiServer extends EventEmitter_js_1.EventEmitter {\n #messageQueue;\n #transport;\n #commandProcessor;\n #eventManager;\n #browsingContextStorage = new BrowsingContextStorage_js_1.BrowsingContextStorage();\n #logger;\n #handleIncomingMessage = (message) => {\n void this.#commandProcessor.processCommand(message).catch((error) => {\n this.#logger?.(log_js_1.LogType.debugError, error);\n });\n };\n #processOutgoingMessage = async (messageEntry) => {\n const message = messageEntry.message;\n if (messageEntry.channel !== null) {\n message['channel'] = messageEntry.channel;\n }\n await this.#transport.sendMessage(message);\n };\n constructor(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, options, parser, logger) {\n super();\n this.#logger = logger;\n this.#messageQueue = new ProcessingQueue_js_1.ProcessingQueue(this.#processOutgoingMessage, this.#logger);\n this.#transport = bidiTransport;\n this.#transport.setOnMessage(this.#handleIncomingMessage);\n this.#eventManager = new EventManager_js_1.EventManager(this.#browsingContextStorage);\n this.#commandProcessor = new CommandProcessor_js_1.CommandProcessor(cdpConnection, browserCdpClient, this.#eventManager, selfTargetId, this.#browsingContextStorage, new RealmStorage_js_1.RealmStorage(), options?.acceptInsecureCerts ?? false, parser, this.#logger);\n this.#eventManager.on(\"event\" /* EventManagerEvents.Event */, ({ message, event }) => {\n this.emitOutgoingMessage(message, event);\n });\n this.#commandProcessor.on(\"response\" /* CommandProcessorEvents.Response */, ({ message, event }) => {\n this.emitOutgoingMessage(message, event);\n });\n }\n /**\n * Creates and starts BiDi Mapper instance.\n */\n static async createAndStart(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, options, parser, logger) {\n const server = new BidiServer(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, options, parser, logger);\n // Needed to get events about new targets.\n await browserCdpClient.sendCommand('Target.setDiscoverTargets', {\n discover: true,\n });\n // Needed to automatically attach to new targets.\n await browserCdpClient.sendCommand('Target.setAutoAttach', {\n autoAttach: true,\n waitForDebuggerOnStart: true,\n flatten: true,\n });\n await server.#topLevelContextsLoaded();\n return server;\n }\n /**\n * Sends BiDi message.\n */\n emitOutgoingMessage(messageEntry, event) {\n this.#messageQueue.add(messageEntry, event);\n }\n close() {\n this.#transport.close();\n }\n async #topLevelContextsLoaded() {\n await Promise.all(this.#browsingContextStorage\n .getTopLevelContexts()\n .map((c) => c.lifecycleLoaded()));\n }\n}\nexports.BidiServer = BidiServer;\n//# sourceMappingURL=BidiServer.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.OutgoingMessage = exports.EventEmitter = exports.BidiServer = void 0;\n/**\n * @fileoverview The entry point to the BiDi Mapper namespace.\n * Other modules should only access exports defined in this file.\n * XXX: Add ESlint rule for this (https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-restricted-paths.md)\n */\nvar BidiServer_js_1 = require(\"./BidiServer.js\");\nObject.defineProperty(exports, \"BidiServer\", { enumerable: true, get: function () { return BidiServer_js_1.BidiServer; } });\nvar EventEmitter_js_1 = require(\"../utils/EventEmitter.js\");\nObject.defineProperty(exports, \"EventEmitter\", { enumerable: true, get: function () { return EventEmitter_js_1.EventEmitter; } });\nvar OutgoingMessage_js_1 = require(\"./OutgoingMessage.js\");\nObject.defineProperty(exports, \"OutgoingMessage\", { enumerable: true, get: function () { return OutgoingMessage_js_1.OutgoingMessage; } });\n//# sourceMappingURL=BidiMapper.js.map","\"use strict\";\n/**\n * Copyright 2021 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CdpClient = exports.CloseError = void 0;\nconst EventEmitter_js_1 = require(\"../utils/EventEmitter.js\");\n/** A error that will be thrown if/when the connection is closed. */\nclass CloseError extends Error {\n}\nexports.CloseError = CloseError;\n/** Represents a high-level CDP connection to the browser. */\nclass CdpClient extends EventEmitter_js_1.EventEmitter {\n #cdpConnection;\n #sessionId;\n constructor(cdpConnection, sessionId) {\n super();\n this.#cdpConnection = cdpConnection;\n this.#sessionId = sessionId;\n }\n get sessionId() {\n return this.#sessionId;\n }\n sendCommand(method, ...params) {\n return this.#cdpConnection.sendCommand(method, params[0], this.#sessionId);\n }\n isCloseError(error) {\n return error instanceof CloseError;\n }\n}\nexports.CdpClient = CdpClient;\n//# sourceMappingURL=CdpClient.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CdpConnection = void 0;\nconst log_js_1 = require(\"../utils/log.js\");\nconst CdpClient_js_1 = require(\"./CdpClient.js\");\n/**\n * Represents a high-level CDP connection to the browser backend.\n *\n * Manages all CdpClients (each backed by a Session ID) instance for each active\n * CDP session.\n */\nclass CdpConnection {\n static LOGGER_PREFIX_RECV = `${log_js_1.LogType.cdp}:RECV ◂`;\n static LOGGER_PREFIX_SEND = `${log_js_1.LogType.cdp}:SEND ▸`;\n #mainBrowserCdpClient;\n #transport;\n /** Map from session ID to CdpClient.\n * `undefined` points to the main browser session. */\n #sessionCdpClients = new Map();\n #commandCallbacks = new Map();\n #logger;\n #nextId = 0;\n constructor(transport, logger) {\n this.#transport = transport;\n this.#logger = logger;\n this.#transport.setOnMessage(this.#onMessage);\n // Create default Browser CDP Session.\n this.#mainBrowserCdpClient = this.#createCdpClient(undefined);\n }\n /** Closes the connection to the browser. */\n close() {\n this.#transport.close();\n for (const [, { reject, error }] of this.#commandCallbacks) {\n reject(error);\n }\n this.#commandCallbacks.clear();\n this.#sessionCdpClients.clear();\n }\n async createBrowserSession() {\n const { sessionId } = await this.#mainBrowserCdpClient.sendCommand('Target.attachToBrowserTarget');\n return this.#createCdpClient(sessionId);\n }\n /**\n * Gets a CdpClient instance attached to the given session ID,\n * or null if the session is not attached.\n */\n getCdpClient(sessionId) {\n const cdpClient = this.#sessionCdpClients.get(sessionId);\n if (!cdpClient) {\n throw new Error(`Unknown CDP session ID: ${sessionId}`);\n }\n return cdpClient;\n }\n sendCommand(method, params, sessionId) {\n return new Promise((resolve, reject) => {\n const id = this.#nextId++;\n this.#commandCallbacks.set(id, {\n resolve,\n reject,\n error: new CdpClient_js_1.CloseError(`${method} ${JSON.stringify(params)} ${sessionId ?? ''} call rejected because the connection has been closed.`),\n });\n const cdpMessage = { id, method, params };\n if (sessionId) {\n cdpMessage.sessionId = sessionId;\n }\n void this.#transport\n .sendMessage(JSON.stringify(cdpMessage))\n ?.catch((error) => {\n this.#logger?.(log_js_1.LogType.debugError, error);\n this.#transport.close();\n });\n this.#logger?.(CdpConnection.LOGGER_PREFIX_SEND, cdpMessage);\n });\n }\n #onMessage = (json) => {\n const message = JSON.parse(json);\n this.#logger?.(CdpConnection.LOGGER_PREFIX_RECV, message);\n // Update client map if a session is attached\n // Listen for these events on every session.\n if (message.method === 'Target.attachedToTarget') {\n const { sessionId } = message.params;\n this.#createCdpClient(sessionId);\n }\n if (message.id !== undefined) {\n // Handle command response.\n const callbacks = this.#commandCallbacks.get(message.id);\n this.#commandCallbacks.delete(message.id);\n if (callbacks) {\n if (message.result) {\n callbacks.resolve(message.result);\n }\n else if (message.error) {\n callbacks.reject(message.error);\n }\n }\n }\n else if (message.method) {\n const client = this.#sessionCdpClients.get(message.sessionId ?? undefined);\n client?.emit(message.method, message.params || {});\n // Update client map if a session is detached\n // But emit on that session\n if (message.method === 'Target.detachedFromTarget') {\n const { sessionId } = message.params;\n const client = this.#sessionCdpClients.get(sessionId);\n if (client) {\n this.#sessionCdpClients.delete(sessionId);\n client.removeAllListeners();\n }\n }\n }\n };\n /**\n * Creates a new CdpClient instance for the given session ID.\n * @param sessionId either a string, or undefined for the main browser session.\n * The main browser session is used only to create new browser sessions.\n * @private\n */\n #createCdpClient(sessionId) {\n const cdpClient = new CdpClient_js_1.CdpClient(this, sessionId);\n this.#sessionCdpClients.set(sessionId, cdpClient);\n return cdpClient;\n }\n}\nexports.CdpConnection = CdpConnection;\n//# sourceMappingURL=CdpConnection.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getParsedType = exports.ZodParsedType = exports.objectUtil = exports.util = void 0;\nvar util;\n(function (util) {\n util.assertEqual = (val) => val;\n function assertIs(_arg) { }\n util.assertIs = assertIs;\n function assertNever(_x) {\n throw new Error();\n }\n util.assertNever = assertNever;\n util.arrayToEnum = (items) => {\n const obj = {};\n for (const item of items) {\n obj[item] = item;\n }\n return obj;\n };\n util.getValidEnumValues = (obj) => {\n const validKeys = util.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== \"number\");\n const filtered = {};\n for (const k of validKeys) {\n filtered[k] = obj[k];\n }\n return util.objectValues(filtered);\n };\n util.objectValues = (obj) => {\n return util.objectKeys(obj).map(function (e) {\n return obj[e];\n });\n };\n util.objectKeys = typeof Object.keys === \"function\" // eslint-disable-line ban/ban\n ? (obj) => Object.keys(obj) // eslint-disable-line ban/ban\n : (object) => {\n const keys = [];\n for (const key in object) {\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n keys.push(key);\n }\n }\n return keys;\n };\n util.find = (arr, checker) => {\n for (const item of arr) {\n if (checker(item))\n return item;\n }\n return undefined;\n };\n util.isInteger = typeof Number.isInteger === \"function\"\n ? (val) => Number.isInteger(val) // eslint-disable-line ban/ban\n : (val) => typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n function joinValues(array, separator = \" | \") {\n return array\n .map((val) => (typeof val === \"string\" ? `'${val}'` : val))\n .join(separator);\n }\n util.joinValues = joinValues;\n util.jsonStringifyReplacer = (_, value) => {\n if (typeof value === \"bigint\") {\n return value.toString();\n }\n return value;\n };\n})(util = exports.util || (exports.util = {}));\nvar objectUtil;\n(function (objectUtil) {\n objectUtil.mergeShapes = (first, second) => {\n return {\n ...first,\n ...second, // second overwrites first\n };\n };\n})(objectUtil = exports.objectUtil || (exports.objectUtil = {}));\nexports.ZodParsedType = util.arrayToEnum([\n \"string\",\n \"nan\",\n \"number\",\n \"integer\",\n \"float\",\n \"boolean\",\n \"date\",\n \"bigint\",\n \"symbol\",\n \"function\",\n \"undefined\",\n \"null\",\n \"array\",\n \"object\",\n \"unknown\",\n \"promise\",\n \"void\",\n \"never\",\n \"map\",\n \"set\",\n]);\nconst getParsedType = (data) => {\n const t = typeof data;\n switch (t) {\n case \"undefined\":\n return exports.ZodParsedType.undefined;\n case \"string\":\n return exports.ZodParsedType.string;\n case \"number\":\n return isNaN(data) ? exports.ZodParsedType.nan : exports.ZodParsedType.number;\n case \"boolean\":\n return exports.ZodParsedType.boolean;\n case \"function\":\n return exports.ZodParsedType.function;\n case \"bigint\":\n return exports.ZodParsedType.bigint;\n case \"symbol\":\n return exports.ZodParsedType.symbol;\n case \"object\":\n if (Array.isArray(data)) {\n return exports.ZodParsedType.array;\n }\n if (data === null) {\n return exports.ZodParsedType.null;\n }\n if (data.then &&\n typeof data.then === \"function\" &&\n data.catch &&\n typeof data.catch === \"function\") {\n return exports.ZodParsedType.promise;\n }\n if (typeof Map !== \"undefined\" && data instanceof Map) {\n return exports.ZodParsedType.map;\n }\n if (typeof Set !== \"undefined\" && data instanceof Set) {\n return exports.ZodParsedType.set;\n }\n if (typeof Date !== \"undefined\" && data instanceof Date) {\n return exports.ZodParsedType.date;\n }\n return exports.ZodParsedType.object;\n default:\n return exports.ZodParsedType.unknown;\n }\n};\nexports.getParsedType = getParsedType;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ZodError = exports.quotelessJson = exports.ZodIssueCode = void 0;\nconst util_1 = require(\"./helpers/util\");\nexports.ZodIssueCode = util_1.util.arrayToEnum([\n \"invalid_type\",\n \"invalid_literal\",\n \"custom\",\n \"invalid_union\",\n \"invalid_union_discriminator\",\n \"invalid_enum_value\",\n \"unrecognized_keys\",\n \"invalid_arguments\",\n \"invalid_return_type\",\n \"invalid_date\",\n \"invalid_string\",\n \"too_small\",\n \"too_big\",\n \"invalid_intersection_types\",\n \"not_multiple_of\",\n \"not_finite\",\n]);\nconst quotelessJson = (obj) => {\n const json = JSON.stringify(obj, null, 2);\n return json.replace(/\"([^\"]+)\":/g, \"$1:\");\n};\nexports.quotelessJson = quotelessJson;\nclass ZodError extends Error {\n constructor(issues) {\n super();\n this.issues = [];\n this.addIssue = (sub) => {\n this.issues = [...this.issues, sub];\n };\n this.addIssues = (subs = []) => {\n this.issues = [...this.issues, ...subs];\n };\n const actualProto = new.target.prototype;\n if (Object.setPrototypeOf) {\n // eslint-disable-next-line ban/ban\n Object.setPrototypeOf(this, actualProto);\n }\n else {\n this.__proto__ = actualProto;\n }\n this.name = \"ZodError\";\n this.issues = issues;\n }\n get errors() {\n return this.issues;\n }\n format(_mapper) {\n const mapper = _mapper ||\n function (issue) {\n return issue.message;\n };\n const fieldErrors = { _errors: [] };\n const processError = (error) => {\n for (const issue of error.issues) {\n if (issue.code === \"invalid_union\") {\n issue.unionErrors.map(processError);\n }\n else if (issue.code === \"invalid_return_type\") {\n processError(issue.returnTypeError);\n }\n else if (issue.code === \"invalid_arguments\") {\n processError(issue.argumentsError);\n }\n else if (issue.path.length === 0) {\n fieldErrors._errors.push(mapper(issue));\n }\n else {\n let curr = fieldErrors;\n let i = 0;\n while (i < issue.path.length) {\n const el = issue.path[i];\n const terminal = i === issue.path.length - 1;\n if (!terminal) {\n curr[el] = curr[el] || { _errors: [] };\n // if (typeof el === \"string\") {\n // curr[el] = curr[el] || { _errors: [] };\n // } else if (typeof el === \"number\") {\n // const errorArray: any = [];\n // errorArray._errors = [];\n // curr[el] = curr[el] || errorArray;\n // }\n }\n else {\n curr[el] = curr[el] || { _errors: [] };\n curr[el]._errors.push(mapper(issue));\n }\n curr = curr[el];\n i++;\n }\n }\n }\n };\n processError(this);\n return fieldErrors;\n }\n toString() {\n return this.message;\n }\n get message() {\n return JSON.stringify(this.issues, util_1.util.jsonStringifyReplacer, 2);\n }\n get isEmpty() {\n return this.issues.length === 0;\n }\n flatten(mapper = (issue) => issue.message) {\n const fieldErrors = {};\n const formErrors = [];\n for (const sub of this.issues) {\n if (sub.path.length > 0) {\n fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];\n fieldErrors[sub.path[0]].push(mapper(sub));\n }\n else {\n formErrors.push(mapper(sub));\n }\n }\n return { formErrors, fieldErrors };\n }\n get formErrors() {\n return this.flatten();\n }\n}\nexports.ZodError = ZodError;\nZodError.create = (issues) => {\n const error = new ZodError(issues);\n return error;\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst util_1 = require(\"../helpers/util\");\nconst ZodError_1 = require(\"../ZodError\");\nconst errorMap = (issue, _ctx) => {\n let message;\n switch (issue.code) {\n case ZodError_1.ZodIssueCode.invalid_type:\n if (issue.received === util_1.ZodParsedType.undefined) {\n message = \"Required\";\n }\n else {\n message = `Expected ${issue.expected}, received ${issue.received}`;\n }\n break;\n case ZodError_1.ZodIssueCode.invalid_literal:\n message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util_1.util.jsonStringifyReplacer)}`;\n break;\n case ZodError_1.ZodIssueCode.unrecognized_keys:\n message = `Unrecognized key(s) in object: ${util_1.util.joinValues(issue.keys, \", \")}`;\n break;\n case ZodError_1.ZodIssueCode.invalid_union:\n message = `Invalid input`;\n break;\n case ZodError_1.ZodIssueCode.invalid_union_discriminator:\n message = `Invalid discriminator value. Expected ${util_1.util.joinValues(issue.options)}`;\n break;\n case ZodError_1.ZodIssueCode.invalid_enum_value:\n message = `Invalid enum value. Expected ${util_1.util.joinValues(issue.options)}, received '${issue.received}'`;\n break;\n case ZodError_1.ZodIssueCode.invalid_arguments:\n message = `Invalid function arguments`;\n break;\n case ZodError_1.ZodIssueCode.invalid_return_type:\n message = `Invalid function return type`;\n break;\n case ZodError_1.ZodIssueCode.invalid_date:\n message = `Invalid date`;\n break;\n case ZodError_1.ZodIssueCode.invalid_string:\n if (typeof issue.validation === \"object\") {\n if (\"includes\" in issue.validation) {\n message = `Invalid input: must include \"${issue.validation.includes}\"`;\n if (typeof issue.validation.position === \"number\") {\n message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;\n }\n }\n else if (\"startsWith\" in issue.validation) {\n message = `Invalid input: must start with \"${issue.validation.startsWith}\"`;\n }\n else if (\"endsWith\" in issue.validation) {\n message = `Invalid input: must end with \"${issue.validation.endsWith}\"`;\n }\n else {\n util_1.util.assertNever(issue.validation);\n }\n }\n else if (issue.validation !== \"regex\") {\n message = `Invalid ${issue.validation}`;\n }\n else {\n message = \"Invalid\";\n }\n break;\n case ZodError_1.ZodIssueCode.too_small:\n if (issue.type === \"array\")\n message = `Array must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;\n else if (issue.type === \"string\")\n message = `String must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;\n else if (issue.type === \"number\")\n message = `Number must be ${issue.exact\n ? `exactly equal to `\n : issue.inclusive\n ? `greater than or equal to `\n : `greater than `}${issue.minimum}`;\n else if (issue.type === \"date\")\n message = `Date must be ${issue.exact\n ? `exactly equal to `\n : issue.inclusive\n ? `greater than or equal to `\n : `greater than `}${new Date(Number(issue.minimum))}`;\n else\n message = \"Invalid input\";\n break;\n case ZodError_1.ZodIssueCode.too_big:\n if (issue.type === \"array\")\n message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;\n else if (issue.type === \"string\")\n message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;\n else if (issue.type === \"number\")\n message = `Number must be ${issue.exact\n ? `exactly`\n : issue.inclusive\n ? `less than or equal to`\n : `less than`} ${issue.maximum}`;\n else if (issue.type === \"bigint\")\n message = `BigInt must be ${issue.exact\n ? `exactly`\n : issue.inclusive\n ? `less than or equal to`\n : `less than`} ${issue.maximum}`;\n else if (issue.type === \"date\")\n message = `Date must be ${issue.exact\n ? `exactly`\n : issue.inclusive\n ? `smaller than or equal to`\n : `smaller than`} ${new Date(Number(issue.maximum))}`;\n else\n message = \"Invalid input\";\n break;\n case ZodError_1.ZodIssueCode.custom:\n message = `Invalid input`;\n break;\n case ZodError_1.ZodIssueCode.invalid_intersection_types:\n message = `Intersection results could not be merged`;\n break;\n case ZodError_1.ZodIssueCode.not_multiple_of:\n message = `Number must be a multiple of ${issue.multipleOf}`;\n break;\n case ZodError_1.ZodIssueCode.not_finite:\n message = \"Number must be finite\";\n break;\n default:\n message = _ctx.defaultError;\n util_1.util.assertNever(issue);\n }\n return { message };\n};\nexports.default = errorMap;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getErrorMap = exports.setErrorMap = exports.defaultErrorMap = void 0;\nconst en_1 = __importDefault(require(\"./locales/en\"));\nexports.defaultErrorMap = en_1.default;\nlet overrideErrorMap = en_1.default;\nfunction setErrorMap(map) {\n overrideErrorMap = map;\n}\nexports.setErrorMap = setErrorMap;\nfunction getErrorMap() {\n return overrideErrorMap;\n}\nexports.getErrorMap = getErrorMap;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isAsync = exports.isValid = exports.isDirty = exports.isAborted = exports.OK = exports.DIRTY = exports.INVALID = exports.ParseStatus = exports.addIssueToContext = exports.EMPTY_PATH = exports.makeIssue = void 0;\nconst errors_1 = require(\"../errors\");\nconst en_1 = __importDefault(require(\"../locales/en\"));\nconst makeIssue = (params) => {\n const { data, path, errorMaps, issueData } = params;\n const fullPath = [...path, ...(issueData.path || [])];\n const fullIssue = {\n ...issueData,\n path: fullPath,\n };\n let errorMessage = \"\";\n const maps = errorMaps\n .filter((m) => !!m)\n .slice()\n .reverse();\n for (const map of maps) {\n errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;\n }\n return {\n ...issueData,\n path: fullPath,\n message: issueData.message || errorMessage,\n };\n};\nexports.makeIssue = makeIssue;\nexports.EMPTY_PATH = [];\nfunction addIssueToContext(ctx, issueData) {\n const issue = (0, exports.makeIssue)({\n issueData: issueData,\n data: ctx.data,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n (0, errors_1.getErrorMap)(),\n en_1.default, // then global default map\n ].filter((x) => !!x),\n });\n ctx.common.issues.push(issue);\n}\nexports.addIssueToContext = addIssueToContext;\nclass ParseStatus {\n constructor() {\n this.value = \"valid\";\n }\n dirty() {\n if (this.value === \"valid\")\n this.value = \"dirty\";\n }\n abort() {\n if (this.value !== \"aborted\")\n this.value = \"aborted\";\n }\n static mergeArray(status, results) {\n const arrayValue = [];\n for (const s of results) {\n if (s.status === \"aborted\")\n return exports.INVALID;\n if (s.status === \"dirty\")\n status.dirty();\n arrayValue.push(s.value);\n }\n return { status: status.value, value: arrayValue };\n }\n static async mergeObjectAsync(status, pairs) {\n const syncPairs = [];\n for (const pair of pairs) {\n syncPairs.push({\n key: await pair.key,\n value: await pair.value,\n });\n }\n return ParseStatus.mergeObjectSync(status, syncPairs);\n }\n static mergeObjectSync(status, pairs) {\n const finalObject = {};\n for (const pair of pairs) {\n const { key, value } = pair;\n if (key.status === \"aborted\")\n return exports.INVALID;\n if (value.status === \"aborted\")\n return exports.INVALID;\n if (key.status === \"dirty\")\n status.dirty();\n if (value.status === \"dirty\")\n status.dirty();\n if (key.value !== \"__proto__\" &&\n (typeof value.value !== \"undefined\" || pair.alwaysSet)) {\n finalObject[key.value] = value.value;\n }\n }\n return { status: status.value, value: finalObject };\n }\n}\nexports.ParseStatus = ParseStatus;\nexports.INVALID = Object.freeze({\n status: \"aborted\",\n});\nconst DIRTY = (value) => ({ status: \"dirty\", value });\nexports.DIRTY = DIRTY;\nconst OK = (value) => ({ status: \"valid\", value });\nexports.OK = OK;\nconst isAborted = (x) => x.status === \"aborted\";\nexports.isAborted = isAborted;\nconst isDirty = (x) => x.status === \"dirty\";\nexports.isDirty = isDirty;\nconst isValid = (x) => x.status === \"valid\";\nexports.isValid = isValid;\nconst isAsync = (x) => typeof Promise !== \"undefined\" && x instanceof Promise;\nexports.isAsync = isAsync;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.errorUtil = void 0;\nvar errorUtil;\n(function (errorUtil) {\n errorUtil.errToObj = (message) => typeof message === \"string\" ? { message } : message || {};\n errorUtil.toString = (message) => typeof message === \"string\" ? message : message === null || message === void 0 ? void 0 : message.message;\n})(errorUtil = exports.errorUtil || (exports.errorUtil = {}));\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.date = exports.boolean = exports.bigint = exports.array = exports.any = exports.coerce = exports.ZodFirstPartyTypeKind = exports.late = exports.ZodSchema = exports.Schema = exports.custom = exports.ZodReadonly = exports.ZodPipeline = exports.ZodBranded = exports.BRAND = exports.ZodNaN = exports.ZodCatch = exports.ZodDefault = exports.ZodNullable = exports.ZodOptional = exports.ZodTransformer = exports.ZodEffects = exports.ZodPromise = exports.ZodNativeEnum = exports.ZodEnum = exports.ZodLiteral = exports.ZodLazy = exports.ZodFunction = exports.ZodSet = exports.ZodMap = exports.ZodRecord = exports.ZodTuple = exports.ZodIntersection = exports.ZodDiscriminatedUnion = exports.ZodUnion = exports.ZodObject = exports.ZodArray = exports.ZodVoid = exports.ZodNever = exports.ZodUnknown = exports.ZodAny = exports.ZodNull = exports.ZodUndefined = exports.ZodSymbol = exports.ZodDate = exports.ZodBoolean = exports.ZodBigInt = exports.ZodNumber = exports.ZodString = exports.ZodType = void 0;\nexports.NEVER = exports.void = exports.unknown = exports.union = exports.undefined = exports.tuple = exports.transformer = exports.symbol = exports.string = exports.strictObject = exports.set = exports.record = exports.promise = exports.preprocess = exports.pipeline = exports.ostring = exports.optional = exports.onumber = exports.oboolean = exports.object = exports.number = exports.nullable = exports.null = exports.never = exports.nativeEnum = exports.nan = exports.map = exports.literal = exports.lazy = exports.intersection = exports.instanceof = exports.function = exports.enum = exports.effect = exports.discriminatedUnion = void 0;\nconst errors_1 = require(\"./errors\");\nconst errorUtil_1 = require(\"./helpers/errorUtil\");\nconst parseUtil_1 = require(\"./helpers/parseUtil\");\nconst util_1 = require(\"./helpers/util\");\nconst ZodError_1 = require(\"./ZodError\");\nclass ParseInputLazyPath {\n constructor(parent, value, path, key) {\n this._cachedPath = [];\n this.parent = parent;\n this.data = value;\n this._path = path;\n this._key = key;\n }\n get path() {\n if (!this._cachedPath.length) {\n if (this._key instanceof Array) {\n this._cachedPath.push(...this._path, ...this._key);\n }\n else {\n this._cachedPath.push(...this._path, this._key);\n }\n }\n return this._cachedPath;\n }\n}\nconst handleResult = (ctx, result) => {\n if ((0, parseUtil_1.isValid)(result)) {\n return { success: true, data: result.value };\n }\n else {\n if (!ctx.common.issues.length) {\n throw new Error(\"Validation failed but no issues detected.\");\n }\n return {\n success: false,\n get error() {\n if (this._error)\n return this._error;\n const error = new ZodError_1.ZodError(ctx.common.issues);\n this._error = error;\n return this._error;\n },\n };\n }\n};\nfunction processCreateParams(params) {\n if (!params)\n return {};\n const { errorMap, invalid_type_error, required_error, description } = params;\n if (errorMap && (invalid_type_error || required_error)) {\n throw new Error(`Can't use \"invalid_type_error\" or \"required_error\" in conjunction with custom error map.`);\n }\n if (errorMap)\n return { errorMap: errorMap, description };\n const customMap = (iss, ctx) => {\n if (iss.code !== \"invalid_type\")\n return { message: ctx.defaultError };\n if (typeof ctx.data === \"undefined\") {\n return { message: required_error !== null && required_error !== void 0 ? required_error : ctx.defaultError };\n }\n return { message: invalid_type_error !== null && invalid_type_error !== void 0 ? invalid_type_error : ctx.defaultError };\n };\n return { errorMap: customMap, description };\n}\nclass ZodType {\n constructor(def) {\n /** Alias of safeParseAsync */\n this.spa = this.safeParseAsync;\n this._def = def;\n this.parse = this.parse.bind(this);\n this.safeParse = this.safeParse.bind(this);\n this.parseAsync = this.parseAsync.bind(this);\n this.safeParseAsync = this.safeParseAsync.bind(this);\n this.spa = this.spa.bind(this);\n this.refine = this.refine.bind(this);\n this.refinement = this.refinement.bind(this);\n this.superRefine = this.superRefine.bind(this);\n this.optional = this.optional.bind(this);\n this.nullable = this.nullable.bind(this);\n this.nullish = this.nullish.bind(this);\n this.array = this.array.bind(this);\n this.promise = this.promise.bind(this);\n this.or = this.or.bind(this);\n this.and = this.and.bind(this);\n this.transform = this.transform.bind(this);\n this.brand = this.brand.bind(this);\n this.default = this.default.bind(this);\n this.catch = this.catch.bind(this);\n this.describe = this.describe.bind(this);\n this.pipe = this.pipe.bind(this);\n this.readonly = this.readonly.bind(this);\n this.isNullable = this.isNullable.bind(this);\n this.isOptional = this.isOptional.bind(this);\n }\n get description() {\n return this._def.description;\n }\n _getType(input) {\n return (0, util_1.getParsedType)(input.data);\n }\n _getOrReturnCtx(input, ctx) {\n return (ctx || {\n common: input.parent.common,\n data: input.data,\n parsedType: (0, util_1.getParsedType)(input.data),\n schemaErrorMap: this._def.errorMap,\n path: input.path,\n parent: input.parent,\n });\n }\n _processInputParams(input) {\n return {\n status: new parseUtil_1.ParseStatus(),\n ctx: {\n common: input.parent.common,\n data: input.data,\n parsedType: (0, util_1.getParsedType)(input.data),\n schemaErrorMap: this._def.errorMap,\n path: input.path,\n parent: input.parent,\n },\n };\n }\n _parseSync(input) {\n const result = this._parse(input);\n if ((0, parseUtil_1.isAsync)(result)) {\n throw new Error(\"Synchronous parse encountered promise.\");\n }\n return result;\n }\n _parseAsync(input) {\n const result = this._parse(input);\n return Promise.resolve(result);\n }\n parse(data, params) {\n const result = this.safeParse(data, params);\n if (result.success)\n return result.data;\n throw result.error;\n }\n safeParse(data, params) {\n var _a;\n const ctx = {\n common: {\n issues: [],\n async: (_a = params === null || params === void 0 ? void 0 : params.async) !== null && _a !== void 0 ? _a : false,\n contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,\n },\n path: (params === null || params === void 0 ? void 0 : params.path) || [],\n schemaErrorMap: this._def.errorMap,\n parent: null,\n data,\n parsedType: (0, util_1.getParsedType)(data),\n };\n const result = this._parseSync({ data, path: ctx.path, parent: ctx });\n return handleResult(ctx, result);\n }\n async parseAsync(data, params) {\n const result = await this.safeParseAsync(data, params);\n if (result.success)\n return result.data;\n throw result.error;\n }\n async safeParseAsync(data, params) {\n const ctx = {\n common: {\n issues: [],\n contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,\n async: true,\n },\n path: (params === null || params === void 0 ? void 0 : params.path) || [],\n schemaErrorMap: this._def.errorMap,\n parent: null,\n data,\n parsedType: (0, util_1.getParsedType)(data),\n };\n const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });\n const result = await ((0, parseUtil_1.isAsync)(maybeAsyncResult)\n ? maybeAsyncResult\n : Promise.resolve(maybeAsyncResult));\n return handleResult(ctx, result);\n }\n refine(check, message) {\n const getIssueProperties = (val) => {\n if (typeof message === \"string\" || typeof message === \"undefined\") {\n return { message };\n }\n else if (typeof message === \"function\") {\n return message(val);\n }\n else {\n return message;\n }\n };\n return this._refinement((val, ctx) => {\n const result = check(val);\n const setError = () => ctx.addIssue({\n code: ZodError_1.ZodIssueCode.custom,\n ...getIssueProperties(val),\n });\n if (typeof Promise !== \"undefined\" && result instanceof Promise) {\n return result.then((data) => {\n if (!data) {\n setError();\n return false;\n }\n else {\n return true;\n }\n });\n }\n if (!result) {\n setError();\n return false;\n }\n else {\n return true;\n }\n });\n }\n refinement(check, refinementData) {\n return this._refinement((val, ctx) => {\n if (!check(val)) {\n ctx.addIssue(typeof refinementData === \"function\"\n ? refinementData(val, ctx)\n : refinementData);\n return false;\n }\n else {\n return true;\n }\n });\n }\n _refinement(refinement) {\n return new ZodEffects({\n schema: this,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect: { type: \"refinement\", refinement },\n });\n }\n superRefine(refinement) {\n return this._refinement(refinement);\n }\n optional() {\n return ZodOptional.create(this, this._def);\n }\n nullable() {\n return ZodNullable.create(this, this._def);\n }\n nullish() {\n return this.nullable().optional();\n }\n array() {\n return ZodArray.create(this, this._def);\n }\n promise() {\n return ZodPromise.create(this, this._def);\n }\n or(option) {\n return ZodUnion.create([this, option], this._def);\n }\n and(incoming) {\n return ZodIntersection.create(this, incoming, this._def);\n }\n transform(transform) {\n return new ZodEffects({\n ...processCreateParams(this._def),\n schema: this,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect: { type: \"transform\", transform },\n });\n }\n default(def) {\n const defaultValueFunc = typeof def === \"function\" ? def : () => def;\n return new ZodDefault({\n ...processCreateParams(this._def),\n innerType: this,\n defaultValue: defaultValueFunc,\n typeName: ZodFirstPartyTypeKind.ZodDefault,\n });\n }\n brand() {\n return new ZodBranded({\n typeName: ZodFirstPartyTypeKind.ZodBranded,\n type: this,\n ...processCreateParams(this._def),\n });\n }\n catch(def) {\n const catchValueFunc = typeof def === \"function\" ? def : () => def;\n return new ZodCatch({\n ...processCreateParams(this._def),\n innerType: this,\n catchValue: catchValueFunc,\n typeName: ZodFirstPartyTypeKind.ZodCatch,\n });\n }\n describe(description) {\n const This = this.constructor;\n return new This({\n ...this._def,\n description,\n });\n }\n pipe(target) {\n return ZodPipeline.create(this, target);\n }\n readonly() {\n return ZodReadonly.create(this);\n }\n isOptional() {\n return this.safeParse(undefined).success;\n }\n isNullable() {\n return this.safeParse(null).success;\n }\n}\nexports.ZodType = ZodType;\nexports.Schema = ZodType;\nexports.ZodSchema = ZodType;\nconst cuidRegex = /^c[^\\s-]{8,}$/i;\nconst cuid2Regex = /^[a-z][a-z0-9]*$/;\nconst ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/;\n// const uuidRegex =\n// /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;\nconst uuidRegex = /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/i;\n// from https://stackoverflow.com/a/46181/1550155\n// old version: too slow, didn't support unicode\n// const emailRegex = /^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))$/i;\n//old email regex\n// const emailRegex = /^(([^<>()[\\].,;:\\s@\"]+(\\.[^<>()[\\].,;:\\s@\"]+)*)|(\".+\"))@((?!-)([^<>()[\\].,;:\\s@\"]+\\.)+[^<>()[\\].,;:\\s@\"]{1,})[^-<>()[\\].,;:\\s@\"]$/i;\n// eslint-disable-next-line\n// const emailRegex =\n// /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\])|(\\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\\.[A-Za-z]{2,})+))$/;\n// const emailRegex =\n// /^[a-zA-Z0-9\\.\\!\\#\\$\\%\\&\\'\\*\\+\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~\\-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n// const emailRegex =\n// /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])$/i;\nconst emailRegex = /^(?!\\.)(?!.*\\.\\.)([A-Z0-9_+-\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\-]*\\.)+[A-Z]{2,}$/i;\n// const emailRegex =\n// /^[a-z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-z0-9-]+(?:\\.[a-z0-9\\-]+)*$/i;\n// from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression\nconst _emojiRegex = `^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$`;\nlet emojiRegex;\nconst ipv4Regex = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/;\nconst ipv6Regex = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;\n// Adapted from https://stackoverflow.com/a/3143231\nconst datetimeRegex = (args) => {\n if (args.precision) {\n if (args.offset) {\n return new RegExp(`^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}\\\\.\\\\d{${args.precision}}(([+-]\\\\d{2}(:?\\\\d{2})?)|Z)$`);\n }\n else {\n return new RegExp(`^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}\\\\.\\\\d{${args.precision}}Z$`);\n }\n }\n else if (args.precision === 0) {\n if (args.offset) {\n return new RegExp(`^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(([+-]\\\\d{2}(:?\\\\d{2})?)|Z)$`);\n }\n else {\n return new RegExp(`^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}Z$`);\n }\n }\n else {\n if (args.offset) {\n return new RegExp(`^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(\\\\.\\\\d+)?(([+-]\\\\d{2}(:?\\\\d{2})?)|Z)$`);\n }\n else {\n return new RegExp(`^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(\\\\.\\\\d+)?Z$`);\n }\n }\n};\nfunction isValidIP(ip, version) {\n if ((version === \"v4\" || !version) && ipv4Regex.test(ip)) {\n return true;\n }\n if ((version === \"v6\" || !version) && ipv6Regex.test(ip)) {\n return true;\n }\n return false;\n}\nclass ZodString extends ZodType {\n _parse(input) {\n if (this._def.coerce) {\n input.data = String(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.string) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.string,\n received: ctx.parsedType,\n }\n //\n );\n return parseUtil_1.INVALID;\n }\n const status = new parseUtil_1.ParseStatus();\n let ctx = undefined;\n for (const check of this._def.checks) {\n if (check.kind === \"min\") {\n if (input.data.length < check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n minimum: check.value,\n type: \"string\",\n inclusive: true,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n if (input.data.length > check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n maximum: check.value,\n type: \"string\",\n inclusive: true,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"length\") {\n const tooBig = input.data.length > check.value;\n const tooSmall = input.data.length < check.value;\n if (tooBig || tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n if (tooBig) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n maximum: check.value,\n type: \"string\",\n inclusive: true,\n exact: true,\n message: check.message,\n });\n }\n else if (tooSmall) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n minimum: check.value,\n type: \"string\",\n inclusive: true,\n exact: true,\n message: check.message,\n });\n }\n status.dirty();\n }\n }\n else if (check.kind === \"email\") {\n if (!emailRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"email\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"emoji\") {\n if (!emojiRegex) {\n emojiRegex = new RegExp(_emojiRegex, \"u\");\n }\n if (!emojiRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"emoji\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"uuid\") {\n if (!uuidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"uuid\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"cuid\") {\n if (!cuidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"cuid\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"cuid2\") {\n if (!cuid2Regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"cuid2\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"ulid\") {\n if (!ulidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"ulid\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"url\") {\n try {\n new URL(input.data);\n }\n catch (_a) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"url\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"regex\") {\n check.regex.lastIndex = 0;\n const testResult = check.regex.test(input.data);\n if (!testResult) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"regex\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"trim\") {\n input.data = input.data.trim();\n }\n else if (check.kind === \"includes\") {\n if (!input.data.includes(check.value, check.position)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_string,\n validation: { includes: check.value, position: check.position },\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"toLowerCase\") {\n input.data = input.data.toLowerCase();\n }\n else if (check.kind === \"toUpperCase\") {\n input.data = input.data.toUpperCase();\n }\n else if (check.kind === \"startsWith\") {\n if (!input.data.startsWith(check.value)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_string,\n validation: { startsWith: check.value },\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"endsWith\") {\n if (!input.data.endsWith(check.value)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_string,\n validation: { endsWith: check.value },\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"datetime\") {\n const regex = datetimeRegex(check);\n if (!regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_string,\n validation: \"datetime\",\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"ip\") {\n if (!isValidIP(input.data, check.version)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"ip\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else {\n util_1.util.assertNever(check);\n }\n }\n return { status: status.value, value: input.data };\n }\n _regex(regex, validation, message) {\n return this.refinement((data) => regex.test(data), {\n validation,\n code: ZodError_1.ZodIssueCode.invalid_string,\n ...errorUtil_1.errorUtil.errToObj(message),\n });\n }\n _addCheck(check) {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n email(message) {\n return this._addCheck({ kind: \"email\", ...errorUtil_1.errorUtil.errToObj(message) });\n }\n url(message) {\n return this._addCheck({ kind: \"url\", ...errorUtil_1.errorUtil.errToObj(message) });\n }\n emoji(message) {\n return this._addCheck({ kind: \"emoji\", ...errorUtil_1.errorUtil.errToObj(message) });\n }\n uuid(message) {\n return this._addCheck({ kind: \"uuid\", ...errorUtil_1.errorUtil.errToObj(message) });\n }\n cuid(message) {\n return this._addCheck({ kind: \"cuid\", ...errorUtil_1.errorUtil.errToObj(message) });\n }\n cuid2(message) {\n return this._addCheck({ kind: \"cuid2\", ...errorUtil_1.errorUtil.errToObj(message) });\n }\n ulid(message) {\n return this._addCheck({ kind: \"ulid\", ...errorUtil_1.errorUtil.errToObj(message) });\n }\n ip(options) {\n return this._addCheck({ kind: \"ip\", ...errorUtil_1.errorUtil.errToObj(options) });\n }\n datetime(options) {\n var _a;\n if (typeof options === \"string\") {\n return this._addCheck({\n kind: \"datetime\",\n precision: null,\n offset: false,\n message: options,\n });\n }\n return this._addCheck({\n kind: \"datetime\",\n precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === \"undefined\" ? null : options === null || options === void 0 ? void 0 : options.precision,\n offset: (_a = options === null || options === void 0 ? void 0 : options.offset) !== null && _a !== void 0 ? _a : false,\n ...errorUtil_1.errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),\n });\n }\n regex(regex, message) {\n return this._addCheck({\n kind: \"regex\",\n regex: regex,\n ...errorUtil_1.errorUtil.errToObj(message),\n });\n }\n includes(value, options) {\n return this._addCheck({\n kind: \"includes\",\n value: value,\n position: options === null || options === void 0 ? void 0 : options.position,\n ...errorUtil_1.errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),\n });\n }\n startsWith(value, message) {\n return this._addCheck({\n kind: \"startsWith\",\n value: value,\n ...errorUtil_1.errorUtil.errToObj(message),\n });\n }\n endsWith(value, message) {\n return this._addCheck({\n kind: \"endsWith\",\n value: value,\n ...errorUtil_1.errorUtil.errToObj(message),\n });\n }\n min(minLength, message) {\n return this._addCheck({\n kind: \"min\",\n value: minLength,\n ...errorUtil_1.errorUtil.errToObj(message),\n });\n }\n max(maxLength, message) {\n return this._addCheck({\n kind: \"max\",\n value: maxLength,\n ...errorUtil_1.errorUtil.errToObj(message),\n });\n }\n length(len, message) {\n return this._addCheck({\n kind: \"length\",\n value: len,\n ...errorUtil_1.errorUtil.errToObj(message),\n });\n }\n /**\n * @deprecated Use z.string().min(1) instead.\n * @see {@link ZodString.min}\n */\n nonempty(message) {\n return this.min(1, errorUtil_1.errorUtil.errToObj(message));\n }\n trim() {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, { kind: \"trim\" }],\n });\n }\n toLowerCase() {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, { kind: \"toLowerCase\" }],\n });\n }\n toUpperCase() {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, { kind: \"toUpperCase\" }],\n });\n }\n get isDatetime() {\n return !!this._def.checks.find((ch) => ch.kind === \"datetime\");\n }\n get isEmail() {\n return !!this._def.checks.find((ch) => ch.kind === \"email\");\n }\n get isURL() {\n return !!this._def.checks.find((ch) => ch.kind === \"url\");\n }\n get isEmoji() {\n return !!this._def.checks.find((ch) => ch.kind === \"emoji\");\n }\n get isUUID() {\n return !!this._def.checks.find((ch) => ch.kind === \"uuid\");\n }\n get isCUID() {\n return !!this._def.checks.find((ch) => ch.kind === \"cuid\");\n }\n get isCUID2() {\n return !!this._def.checks.find((ch) => ch.kind === \"cuid2\");\n }\n get isULID() {\n return !!this._def.checks.find((ch) => ch.kind === \"ulid\");\n }\n get isIP() {\n return !!this._def.checks.find((ch) => ch.kind === \"ip\");\n }\n get minLength() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxLength() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n}\nexports.ZodString = ZodString;\nZodString.create = (params) => {\n var _a;\n return new ZodString({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodString,\n coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,\n ...processCreateParams(params),\n });\n};\n// https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034\nfunction floatSafeRemainder(val, step) {\n const valDecCount = (val.toString().split(\".\")[1] || \"\").length;\n const stepDecCount = (step.toString().split(\".\")[1] || \"\").length;\n const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;\n const valInt = parseInt(val.toFixed(decCount).replace(\".\", \"\"));\n const stepInt = parseInt(step.toFixed(decCount).replace(\".\", \"\"));\n return (valInt % stepInt) / Math.pow(10, decCount);\n}\nclass ZodNumber extends ZodType {\n constructor() {\n super(...arguments);\n this.min = this.gte;\n this.max = this.lte;\n this.step = this.multipleOf;\n }\n _parse(input) {\n if (this._def.coerce) {\n input.data = Number(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.number) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.number,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n let ctx = undefined;\n const status = new parseUtil_1.ParseStatus();\n for (const check of this._def.checks) {\n if (check.kind === \"int\") {\n if (!util_1.util.isInteger(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: \"integer\",\n received: \"float\",\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"min\") {\n const tooSmall = check.inclusive\n ? input.data < check.value\n : input.data <= check.value;\n if (tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n minimum: check.value,\n type: \"number\",\n inclusive: check.inclusive,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n const tooBig = check.inclusive\n ? input.data > check.value\n : input.data >= check.value;\n if (tooBig) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n maximum: check.value,\n type: \"number\",\n inclusive: check.inclusive,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"multipleOf\") {\n if (floatSafeRemainder(input.data, check.value) !== 0) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.not_multiple_of,\n multipleOf: check.value,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"finite\") {\n if (!Number.isFinite(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.not_finite,\n message: check.message,\n });\n status.dirty();\n }\n }\n else {\n util_1.util.assertNever(check);\n }\n }\n return { status: status.value, value: input.data };\n }\n gte(value, message) {\n return this.setLimit(\"min\", value, true, errorUtil_1.errorUtil.toString(message));\n }\n gt(value, message) {\n return this.setLimit(\"min\", value, false, errorUtil_1.errorUtil.toString(message));\n }\n lte(value, message) {\n return this.setLimit(\"max\", value, true, errorUtil_1.errorUtil.toString(message));\n }\n lt(value, message) {\n return this.setLimit(\"max\", value, false, errorUtil_1.errorUtil.toString(message));\n }\n setLimit(kind, value, inclusive, message) {\n return new ZodNumber({\n ...this._def,\n checks: [\n ...this._def.checks,\n {\n kind,\n value,\n inclusive,\n message: errorUtil_1.errorUtil.toString(message),\n },\n ],\n });\n }\n _addCheck(check) {\n return new ZodNumber({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n int(message) {\n return this._addCheck({\n kind: \"int\",\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n positive(message) {\n return this._addCheck({\n kind: \"min\",\n value: 0,\n inclusive: false,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n negative(message) {\n return this._addCheck({\n kind: \"max\",\n value: 0,\n inclusive: false,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n nonpositive(message) {\n return this._addCheck({\n kind: \"max\",\n value: 0,\n inclusive: true,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n nonnegative(message) {\n return this._addCheck({\n kind: \"min\",\n value: 0,\n inclusive: true,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n multipleOf(value, message) {\n return this._addCheck({\n kind: \"multipleOf\",\n value: value,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n finite(message) {\n return this._addCheck({\n kind: \"finite\",\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n safe(message) {\n return this._addCheck({\n kind: \"min\",\n inclusive: true,\n value: Number.MIN_SAFE_INTEGER,\n message: errorUtil_1.errorUtil.toString(message),\n })._addCheck({\n kind: \"max\",\n inclusive: true,\n value: Number.MAX_SAFE_INTEGER,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n get minValue() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxValue() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n get isInt() {\n return !!this._def.checks.find((ch) => ch.kind === \"int\" ||\n (ch.kind === \"multipleOf\" && util_1.util.isInteger(ch.value)));\n }\n get isFinite() {\n let max = null, min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"finite\" ||\n ch.kind === \"int\" ||\n ch.kind === \"multipleOf\") {\n return true;\n }\n else if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n else if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return Number.isFinite(min) && Number.isFinite(max);\n }\n}\nexports.ZodNumber = ZodNumber;\nZodNumber.create = (params) => {\n return new ZodNumber({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodNumber,\n coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,\n ...processCreateParams(params),\n });\n};\nclass ZodBigInt extends ZodType {\n constructor() {\n super(...arguments);\n this.min = this.gte;\n this.max = this.lte;\n }\n _parse(input) {\n if (this._def.coerce) {\n input.data = BigInt(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.bigint) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.bigint,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n let ctx = undefined;\n const status = new parseUtil_1.ParseStatus();\n for (const check of this._def.checks) {\n if (check.kind === \"min\") {\n const tooSmall = check.inclusive\n ? input.data < check.value\n : input.data <= check.value;\n if (tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n type: \"bigint\",\n minimum: check.value,\n inclusive: check.inclusive,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n const tooBig = check.inclusive\n ? input.data > check.value\n : input.data >= check.value;\n if (tooBig) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n type: \"bigint\",\n maximum: check.value,\n inclusive: check.inclusive,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"multipleOf\") {\n if (input.data % check.value !== BigInt(0)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.not_multiple_of,\n multipleOf: check.value,\n message: check.message,\n });\n status.dirty();\n }\n }\n else {\n util_1.util.assertNever(check);\n }\n }\n return { status: status.value, value: input.data };\n }\n gte(value, message) {\n return this.setLimit(\"min\", value, true, errorUtil_1.errorUtil.toString(message));\n }\n gt(value, message) {\n return this.setLimit(\"min\", value, false, errorUtil_1.errorUtil.toString(message));\n }\n lte(value, message) {\n return this.setLimit(\"max\", value, true, errorUtil_1.errorUtil.toString(message));\n }\n lt(value, message) {\n return this.setLimit(\"max\", value, false, errorUtil_1.errorUtil.toString(message));\n }\n setLimit(kind, value, inclusive, message) {\n return new ZodBigInt({\n ...this._def,\n checks: [\n ...this._def.checks,\n {\n kind,\n value,\n inclusive,\n message: errorUtil_1.errorUtil.toString(message),\n },\n ],\n });\n }\n _addCheck(check) {\n return new ZodBigInt({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n positive(message) {\n return this._addCheck({\n kind: \"min\",\n value: BigInt(0),\n inclusive: false,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n negative(message) {\n return this._addCheck({\n kind: \"max\",\n value: BigInt(0),\n inclusive: false,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n nonpositive(message) {\n return this._addCheck({\n kind: \"max\",\n value: BigInt(0),\n inclusive: true,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n nonnegative(message) {\n return this._addCheck({\n kind: \"min\",\n value: BigInt(0),\n inclusive: true,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n multipleOf(value, message) {\n return this._addCheck({\n kind: \"multipleOf\",\n value,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n get minValue() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxValue() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n}\nexports.ZodBigInt = ZodBigInt;\nZodBigInt.create = (params) => {\n var _a;\n return new ZodBigInt({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodBigInt,\n coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,\n ...processCreateParams(params),\n });\n};\nclass ZodBoolean extends ZodType {\n _parse(input) {\n if (this._def.coerce) {\n input.data = Boolean(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.boolean) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.boolean,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n return (0, parseUtil_1.OK)(input.data);\n }\n}\nexports.ZodBoolean = ZodBoolean;\nZodBoolean.create = (params) => {\n return new ZodBoolean({\n typeName: ZodFirstPartyTypeKind.ZodBoolean,\n coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,\n ...processCreateParams(params),\n });\n};\nclass ZodDate extends ZodType {\n _parse(input) {\n if (this._def.coerce) {\n input.data = new Date(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.date) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.date,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n if (isNaN(input.data.getTime())) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_date,\n });\n return parseUtil_1.INVALID;\n }\n const status = new parseUtil_1.ParseStatus();\n let ctx = undefined;\n for (const check of this._def.checks) {\n if (check.kind === \"min\") {\n if (input.data.getTime() < check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n message: check.message,\n inclusive: true,\n exact: false,\n minimum: check.value,\n type: \"date\",\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n if (input.data.getTime() > check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n message: check.message,\n inclusive: true,\n exact: false,\n maximum: check.value,\n type: \"date\",\n });\n status.dirty();\n }\n }\n else {\n util_1.util.assertNever(check);\n }\n }\n return {\n status: status.value,\n value: new Date(input.data.getTime()),\n };\n }\n _addCheck(check) {\n return new ZodDate({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n min(minDate, message) {\n return this._addCheck({\n kind: \"min\",\n value: minDate.getTime(),\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n max(maxDate, message) {\n return this._addCheck({\n kind: \"max\",\n value: maxDate.getTime(),\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n get minDate() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min != null ? new Date(min) : null;\n }\n get maxDate() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max != null ? new Date(max) : null;\n }\n}\nexports.ZodDate = ZodDate;\nZodDate.create = (params) => {\n return new ZodDate({\n checks: [],\n coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,\n typeName: ZodFirstPartyTypeKind.ZodDate,\n ...processCreateParams(params),\n });\n};\nclass ZodSymbol extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.symbol) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.symbol,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n return (0, parseUtil_1.OK)(input.data);\n }\n}\nexports.ZodSymbol = ZodSymbol;\nZodSymbol.create = (params) => {\n return new ZodSymbol({\n typeName: ZodFirstPartyTypeKind.ZodSymbol,\n ...processCreateParams(params),\n });\n};\nclass ZodUndefined extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.undefined) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.undefined,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n return (0, parseUtil_1.OK)(input.data);\n }\n}\nexports.ZodUndefined = ZodUndefined;\nZodUndefined.create = (params) => {\n return new ZodUndefined({\n typeName: ZodFirstPartyTypeKind.ZodUndefined,\n ...processCreateParams(params),\n });\n};\nclass ZodNull extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.null) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.null,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n return (0, parseUtil_1.OK)(input.data);\n }\n}\nexports.ZodNull = ZodNull;\nZodNull.create = (params) => {\n return new ZodNull({\n typeName: ZodFirstPartyTypeKind.ZodNull,\n ...processCreateParams(params),\n });\n};\nclass ZodAny extends ZodType {\n constructor() {\n super(...arguments);\n // to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.\n this._any = true;\n }\n _parse(input) {\n return (0, parseUtil_1.OK)(input.data);\n }\n}\nexports.ZodAny = ZodAny;\nZodAny.create = (params) => {\n return new ZodAny({\n typeName: ZodFirstPartyTypeKind.ZodAny,\n ...processCreateParams(params),\n });\n};\nclass ZodUnknown extends ZodType {\n constructor() {\n super(...arguments);\n // required\n this._unknown = true;\n }\n _parse(input) {\n return (0, parseUtil_1.OK)(input.data);\n }\n}\nexports.ZodUnknown = ZodUnknown;\nZodUnknown.create = (params) => {\n return new ZodUnknown({\n typeName: ZodFirstPartyTypeKind.ZodUnknown,\n ...processCreateParams(params),\n });\n};\nclass ZodNever extends ZodType {\n _parse(input) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.never,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n}\nexports.ZodNever = ZodNever;\nZodNever.create = (params) => {\n return new ZodNever({\n typeName: ZodFirstPartyTypeKind.ZodNever,\n ...processCreateParams(params),\n });\n};\nclass ZodVoid extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.undefined) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.void,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n return (0, parseUtil_1.OK)(input.data);\n }\n}\nexports.ZodVoid = ZodVoid;\nZodVoid.create = (params) => {\n return new ZodVoid({\n typeName: ZodFirstPartyTypeKind.ZodVoid,\n ...processCreateParams(params),\n });\n};\nclass ZodArray extends ZodType {\n _parse(input) {\n const { ctx, status } = this._processInputParams(input);\n const def = this._def;\n if (ctx.parsedType !== util_1.ZodParsedType.array) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.array,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n if (def.exactLength !== null) {\n const tooBig = ctx.data.length > def.exactLength.value;\n const tooSmall = ctx.data.length < def.exactLength.value;\n if (tooBig || tooSmall) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: tooBig ? ZodError_1.ZodIssueCode.too_big : ZodError_1.ZodIssueCode.too_small,\n minimum: (tooSmall ? def.exactLength.value : undefined),\n maximum: (tooBig ? def.exactLength.value : undefined),\n type: \"array\",\n inclusive: true,\n exact: true,\n message: def.exactLength.message,\n });\n status.dirty();\n }\n }\n if (def.minLength !== null) {\n if (ctx.data.length < def.minLength.value) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n minimum: def.minLength.value,\n type: \"array\",\n inclusive: true,\n exact: false,\n message: def.minLength.message,\n });\n status.dirty();\n }\n }\n if (def.maxLength !== null) {\n if (ctx.data.length > def.maxLength.value) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n maximum: def.maxLength.value,\n type: \"array\",\n inclusive: true,\n exact: false,\n message: def.maxLength.message,\n });\n status.dirty();\n }\n }\n if (ctx.common.async) {\n return Promise.all([...ctx.data].map((item, i) => {\n return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));\n })).then((result) => {\n return parseUtil_1.ParseStatus.mergeArray(status, result);\n });\n }\n const result = [...ctx.data].map((item, i) => {\n return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));\n });\n return parseUtil_1.ParseStatus.mergeArray(status, result);\n }\n get element() {\n return this._def.type;\n }\n min(minLength, message) {\n return new ZodArray({\n ...this._def,\n minLength: { value: minLength, message: errorUtil_1.errorUtil.toString(message) },\n });\n }\n max(maxLength, message) {\n return new ZodArray({\n ...this._def,\n maxLength: { value: maxLength, message: errorUtil_1.errorUtil.toString(message) },\n });\n }\n length(len, message) {\n return new ZodArray({\n ...this._def,\n exactLength: { value: len, message: errorUtil_1.errorUtil.toString(message) },\n });\n }\n nonempty(message) {\n return this.min(1, message);\n }\n}\nexports.ZodArray = ZodArray;\nZodArray.create = (schema, params) => {\n return new ZodArray({\n type: schema,\n minLength: null,\n maxLength: null,\n exactLength: null,\n typeName: ZodFirstPartyTypeKind.ZodArray,\n ...processCreateParams(params),\n });\n};\nfunction deepPartialify(schema) {\n if (schema instanceof ZodObject) {\n const newShape = {};\n for (const key in schema.shape) {\n const fieldSchema = schema.shape[key];\n newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));\n }\n return new ZodObject({\n ...schema._def,\n shape: () => newShape,\n });\n }\n else if (schema instanceof ZodArray) {\n return new ZodArray({\n ...schema._def,\n type: deepPartialify(schema.element),\n });\n }\n else if (schema instanceof ZodOptional) {\n return ZodOptional.create(deepPartialify(schema.unwrap()));\n }\n else if (schema instanceof ZodNullable) {\n return ZodNullable.create(deepPartialify(schema.unwrap()));\n }\n else if (schema instanceof ZodTuple) {\n return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));\n }\n else {\n return schema;\n }\n}\nclass ZodObject extends ZodType {\n constructor() {\n super(...arguments);\n this._cached = null;\n /**\n * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.\n * If you want to pass through unknown properties, use `.passthrough()` instead.\n */\n this.nonstrict = this.passthrough;\n // extend<\n // Augmentation extends ZodRawShape,\n // NewOutput extends util.flatten<{\n // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation\n // ? Augmentation[k][\"_output\"]\n // : k extends keyof Output\n // ? Output[k]\n // : never;\n // }>,\n // NewInput extends util.flatten<{\n // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation\n // ? Augmentation[k][\"_input\"]\n // : k extends keyof Input\n // ? Input[k]\n // : never;\n // }>\n // >(\n // augmentation: Augmentation\n // ): ZodObject<\n // extendShape,\n // UnknownKeys,\n // Catchall,\n // NewOutput,\n // NewInput\n // > {\n // return new ZodObject({\n // ...this._def,\n // shape: () => ({\n // ...this._def.shape(),\n // ...augmentation,\n // }),\n // }) as any;\n // }\n /**\n * @deprecated Use `.extend` instead\n * */\n this.augment = this.extend;\n }\n _getCached() {\n if (this._cached !== null)\n return this._cached;\n const shape = this._def.shape();\n const keys = util_1.util.objectKeys(shape);\n return (this._cached = { shape, keys });\n }\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.object) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.object,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n const { status, ctx } = this._processInputParams(input);\n const { shape, keys: shapeKeys } = this._getCached();\n const extraKeys = [];\n if (!(this._def.catchall instanceof ZodNever &&\n this._def.unknownKeys === \"strip\")) {\n for (const key in ctx.data) {\n if (!shapeKeys.includes(key)) {\n extraKeys.push(key);\n }\n }\n }\n const pairs = [];\n for (const key of shapeKeys) {\n const keyValidator = shape[key];\n const value = ctx.data[key];\n pairs.push({\n key: { status: \"valid\", value: key },\n value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),\n alwaysSet: key in ctx.data,\n });\n }\n if (this._def.catchall instanceof ZodNever) {\n const unknownKeys = this._def.unknownKeys;\n if (unknownKeys === \"passthrough\") {\n for (const key of extraKeys) {\n pairs.push({\n key: { status: \"valid\", value: key },\n value: { status: \"valid\", value: ctx.data[key] },\n });\n }\n }\n else if (unknownKeys === \"strict\") {\n if (extraKeys.length > 0) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.unrecognized_keys,\n keys: extraKeys,\n });\n status.dirty();\n }\n }\n else if (unknownKeys === \"strip\") {\n }\n else {\n throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);\n }\n }\n else {\n // run catchall validation\n const catchall = this._def.catchall;\n for (const key of extraKeys) {\n const value = ctx.data[key];\n pairs.push({\n key: { status: \"valid\", value: key },\n value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)\n ),\n alwaysSet: key in ctx.data,\n });\n }\n }\n if (ctx.common.async) {\n return Promise.resolve()\n .then(async () => {\n const syncPairs = [];\n for (const pair of pairs) {\n const key = await pair.key;\n syncPairs.push({\n key,\n value: await pair.value,\n alwaysSet: pair.alwaysSet,\n });\n }\n return syncPairs;\n })\n .then((syncPairs) => {\n return parseUtil_1.ParseStatus.mergeObjectSync(status, syncPairs);\n });\n }\n else {\n return parseUtil_1.ParseStatus.mergeObjectSync(status, pairs);\n }\n }\n get shape() {\n return this._def.shape();\n }\n strict(message) {\n errorUtil_1.errorUtil.errToObj;\n return new ZodObject({\n ...this._def,\n unknownKeys: \"strict\",\n ...(message !== undefined\n ? {\n errorMap: (issue, ctx) => {\n var _a, _b, _c, _d;\n const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a, issue, ctx).message) !== null && _c !== void 0 ? _c : ctx.defaultError;\n if (issue.code === \"unrecognized_keys\")\n return {\n message: (_d = errorUtil_1.errorUtil.errToObj(message).message) !== null && _d !== void 0 ? _d : defaultError,\n };\n return {\n message: defaultError,\n };\n },\n }\n : {}),\n });\n }\n strip() {\n return new ZodObject({\n ...this._def,\n unknownKeys: \"strip\",\n });\n }\n passthrough() {\n return new ZodObject({\n ...this._def,\n unknownKeys: \"passthrough\",\n });\n }\n // const AugmentFactory =\n // (def: Def) =>\n // (\n // augmentation: Augmentation\n // ): ZodObject<\n // extendShape, Augmentation>,\n // Def[\"unknownKeys\"],\n // Def[\"catchall\"]\n // > => {\n // return new ZodObject({\n // ...def,\n // shape: () => ({\n // ...def.shape(),\n // ...augmentation,\n // }),\n // }) as any;\n // };\n extend(augmentation) {\n return new ZodObject({\n ...this._def,\n shape: () => ({\n ...this._def.shape(),\n ...augmentation,\n }),\n });\n }\n /**\n * Prior to zod@1.0.12 there was a bug in the\n * inferred type of merged objects. Please\n * upgrade if you are experiencing issues.\n */\n merge(merging) {\n const merged = new ZodObject({\n unknownKeys: merging._def.unknownKeys,\n catchall: merging._def.catchall,\n shape: () => ({\n ...this._def.shape(),\n ...merging._def.shape(),\n }),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n });\n return merged;\n }\n // merge<\n // Incoming extends AnyZodObject,\n // Augmentation extends Incoming[\"shape\"],\n // NewOutput extends {\n // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation\n // ? Augmentation[k][\"_output\"]\n // : k extends keyof Output\n // ? Output[k]\n // : never;\n // },\n // NewInput extends {\n // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation\n // ? Augmentation[k][\"_input\"]\n // : k extends keyof Input\n // ? Input[k]\n // : never;\n // }\n // >(\n // merging: Incoming\n // ): ZodObject<\n // extendShape>,\n // Incoming[\"_def\"][\"unknownKeys\"],\n // Incoming[\"_def\"][\"catchall\"],\n // NewOutput,\n // NewInput\n // > {\n // const merged: any = new ZodObject({\n // unknownKeys: merging._def.unknownKeys,\n // catchall: merging._def.catchall,\n // shape: () =>\n // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),\n // typeName: ZodFirstPartyTypeKind.ZodObject,\n // }) as any;\n // return merged;\n // }\n setKey(key, schema) {\n return this.augment({ [key]: schema });\n }\n // merge(\n // merging: Incoming\n // ): //ZodObject = (merging) => {\n // ZodObject<\n // extendShape>,\n // Incoming[\"_def\"][\"unknownKeys\"],\n // Incoming[\"_def\"][\"catchall\"]\n // > {\n // // const mergedShape = objectUtil.mergeShapes(\n // // this._def.shape(),\n // // merging._def.shape()\n // // );\n // const merged: any = new ZodObject({\n // unknownKeys: merging._def.unknownKeys,\n // catchall: merging._def.catchall,\n // shape: () =>\n // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),\n // typeName: ZodFirstPartyTypeKind.ZodObject,\n // }) as any;\n // return merged;\n // }\n catchall(index) {\n return new ZodObject({\n ...this._def,\n catchall: index,\n });\n }\n pick(mask) {\n const shape = {};\n util_1.util.objectKeys(mask).forEach((key) => {\n if (mask[key] && this.shape[key]) {\n shape[key] = this.shape[key];\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => shape,\n });\n }\n omit(mask) {\n const shape = {};\n util_1.util.objectKeys(this.shape).forEach((key) => {\n if (!mask[key]) {\n shape[key] = this.shape[key];\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => shape,\n });\n }\n /**\n * @deprecated\n */\n deepPartial() {\n return deepPartialify(this);\n }\n partial(mask) {\n const newShape = {};\n util_1.util.objectKeys(this.shape).forEach((key) => {\n const fieldSchema = this.shape[key];\n if (mask && !mask[key]) {\n newShape[key] = fieldSchema;\n }\n else {\n newShape[key] = fieldSchema.optional();\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => newShape,\n });\n }\n required(mask) {\n const newShape = {};\n util_1.util.objectKeys(this.shape).forEach((key) => {\n if (mask && !mask[key]) {\n newShape[key] = this.shape[key];\n }\n else {\n const fieldSchema = this.shape[key];\n let newField = fieldSchema;\n while (newField instanceof ZodOptional) {\n newField = newField._def.innerType;\n }\n newShape[key] = newField;\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => newShape,\n });\n }\n keyof() {\n return createZodEnum(util_1.util.objectKeys(this.shape));\n }\n}\nexports.ZodObject = ZodObject;\nZodObject.create = (shape, params) => {\n return new ZodObject({\n shape: () => shape,\n unknownKeys: \"strip\",\n catchall: ZodNever.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params),\n });\n};\nZodObject.strictCreate = (shape, params) => {\n return new ZodObject({\n shape: () => shape,\n unknownKeys: \"strict\",\n catchall: ZodNever.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params),\n });\n};\nZodObject.lazycreate = (shape, params) => {\n return new ZodObject({\n shape,\n unknownKeys: \"strip\",\n catchall: ZodNever.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params),\n });\n};\nclass ZodUnion extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const options = this._def.options;\n function handleResults(results) {\n // return first issue-free validation if it exists\n for (const result of results) {\n if (result.result.status === \"valid\") {\n return result.result;\n }\n }\n for (const result of results) {\n if (result.result.status === \"dirty\") {\n // add issues from dirty option\n ctx.common.issues.push(...result.ctx.common.issues);\n return result.result;\n }\n }\n // return invalid\n const unionErrors = results.map((result) => new ZodError_1.ZodError(result.ctx.common.issues));\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_union,\n unionErrors,\n });\n return parseUtil_1.INVALID;\n }\n if (ctx.common.async) {\n return Promise.all(options.map(async (option) => {\n const childCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: [],\n },\n parent: null,\n };\n return {\n result: await option._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: childCtx,\n }),\n ctx: childCtx,\n };\n })).then(handleResults);\n }\n else {\n let dirty = undefined;\n const issues = [];\n for (const option of options) {\n const childCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: [],\n },\n parent: null,\n };\n const result = option._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: childCtx,\n });\n if (result.status === \"valid\") {\n return result;\n }\n else if (result.status === \"dirty\" && !dirty) {\n dirty = { result, ctx: childCtx };\n }\n if (childCtx.common.issues.length) {\n issues.push(childCtx.common.issues);\n }\n }\n if (dirty) {\n ctx.common.issues.push(...dirty.ctx.common.issues);\n return dirty.result;\n }\n const unionErrors = issues.map((issues) => new ZodError_1.ZodError(issues));\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_union,\n unionErrors,\n });\n return parseUtil_1.INVALID;\n }\n }\n get options() {\n return this._def.options;\n }\n}\nexports.ZodUnion = ZodUnion;\nZodUnion.create = (types, params) => {\n return new ZodUnion({\n options: types,\n typeName: ZodFirstPartyTypeKind.ZodUnion,\n ...processCreateParams(params),\n });\n};\n/////////////////////////////////////////////////////\n/////////////////////////////////////////////////////\n////////// //////////\n////////// ZodDiscriminatedUnion //////////\n////////// //////////\n/////////////////////////////////////////////////////\n/////////////////////////////////////////////////////\nconst getDiscriminator = (type) => {\n if (type instanceof ZodLazy) {\n return getDiscriminator(type.schema);\n }\n else if (type instanceof ZodEffects) {\n return getDiscriminator(type.innerType());\n }\n else if (type instanceof ZodLiteral) {\n return [type.value];\n }\n else if (type instanceof ZodEnum) {\n return type.options;\n }\n else if (type instanceof ZodNativeEnum) {\n // eslint-disable-next-line ban/ban\n return Object.keys(type.enum);\n }\n else if (type instanceof ZodDefault) {\n return getDiscriminator(type._def.innerType);\n }\n else if (type instanceof ZodUndefined) {\n return [undefined];\n }\n else if (type instanceof ZodNull) {\n return [null];\n }\n else {\n return null;\n }\n};\nclass ZodDiscriminatedUnion extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== util_1.ZodParsedType.object) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.object,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n const discriminator = this.discriminator;\n const discriminatorValue = ctx.data[discriminator];\n const option = this.optionsMap.get(discriminatorValue);\n if (!option) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_union_discriminator,\n options: Array.from(this.optionsMap.keys()),\n path: [discriminator],\n });\n return parseUtil_1.INVALID;\n }\n if (ctx.common.async) {\n return option._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n }\n else {\n return option._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n }\n }\n get discriminator() {\n return this._def.discriminator;\n }\n get options() {\n return this._def.options;\n }\n get optionsMap() {\n return this._def.optionsMap;\n }\n /**\n * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.\n * However, it only allows a union of objects, all of which need to share a discriminator property. This property must\n * have a different value for each object in the union.\n * @param discriminator the name of the discriminator property\n * @param types an array of object schemas\n * @param params\n */\n static create(discriminator, options, params) {\n // Get all the valid discriminator values\n const optionsMap = new Map();\n // try {\n for (const type of options) {\n const discriminatorValues = getDiscriminator(type.shape[discriminator]);\n if (!discriminatorValues) {\n throw new Error(`A discriminator value for key \\`${discriminator}\\` could not be extracted from all schema options`);\n }\n for (const value of discriminatorValues) {\n if (optionsMap.has(value)) {\n throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);\n }\n optionsMap.set(value, type);\n }\n }\n return new ZodDiscriminatedUnion({\n typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,\n discriminator,\n options,\n optionsMap,\n ...processCreateParams(params),\n });\n }\n}\nexports.ZodDiscriminatedUnion = ZodDiscriminatedUnion;\nfunction mergeValues(a, b) {\n const aType = (0, util_1.getParsedType)(a);\n const bType = (0, util_1.getParsedType)(b);\n if (a === b) {\n return { valid: true, data: a };\n }\n else if (aType === util_1.ZodParsedType.object && bType === util_1.ZodParsedType.object) {\n const bKeys = util_1.util.objectKeys(b);\n const sharedKeys = util_1.util\n .objectKeys(a)\n .filter((key) => bKeys.indexOf(key) !== -1);\n const newObj = { ...a, ...b };\n for (const key of sharedKeys) {\n const sharedValue = mergeValues(a[key], b[key]);\n if (!sharedValue.valid) {\n return { valid: false };\n }\n newObj[key] = sharedValue.data;\n }\n return { valid: true, data: newObj };\n }\n else if (aType === util_1.ZodParsedType.array && bType === util_1.ZodParsedType.array) {\n if (a.length !== b.length) {\n return { valid: false };\n }\n const newArray = [];\n for (let index = 0; index < a.length; index++) {\n const itemA = a[index];\n const itemB = b[index];\n const sharedValue = mergeValues(itemA, itemB);\n if (!sharedValue.valid) {\n return { valid: false };\n }\n newArray.push(sharedValue.data);\n }\n return { valid: true, data: newArray };\n }\n else if (aType === util_1.ZodParsedType.date &&\n bType === util_1.ZodParsedType.date &&\n +a === +b) {\n return { valid: true, data: a };\n }\n else {\n return { valid: false };\n }\n}\nclass ZodIntersection extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n const handleParsed = (parsedLeft, parsedRight) => {\n if ((0, parseUtil_1.isAborted)(parsedLeft) || (0, parseUtil_1.isAborted)(parsedRight)) {\n return parseUtil_1.INVALID;\n }\n const merged = mergeValues(parsedLeft.value, parsedRight.value);\n if (!merged.valid) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_intersection_types,\n });\n return parseUtil_1.INVALID;\n }\n if ((0, parseUtil_1.isDirty)(parsedLeft) || (0, parseUtil_1.isDirty)(parsedRight)) {\n status.dirty();\n }\n return { status: status.value, value: merged.data };\n };\n if (ctx.common.async) {\n return Promise.all([\n this._def.left._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }),\n this._def.right._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }),\n ]).then(([left, right]) => handleParsed(left, right));\n }\n else {\n return handleParsed(this._def.left._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }), this._def.right._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }));\n }\n }\n}\nexports.ZodIntersection = ZodIntersection;\nZodIntersection.create = (left, right, params) => {\n return new ZodIntersection({\n left: left,\n right: right,\n typeName: ZodFirstPartyTypeKind.ZodIntersection,\n ...processCreateParams(params),\n });\n};\nclass ZodTuple extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== util_1.ZodParsedType.array) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.array,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n if (ctx.data.length < this._def.items.length) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n minimum: this._def.items.length,\n inclusive: true,\n exact: false,\n type: \"array\",\n });\n return parseUtil_1.INVALID;\n }\n const rest = this._def.rest;\n if (!rest && ctx.data.length > this._def.items.length) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n maximum: this._def.items.length,\n inclusive: true,\n exact: false,\n type: \"array\",\n });\n status.dirty();\n }\n const items = [...ctx.data]\n .map((item, itemIndex) => {\n const schema = this._def.items[itemIndex] || this._def.rest;\n if (!schema)\n return null;\n return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));\n })\n .filter((x) => !!x); // filter nulls\n if (ctx.common.async) {\n return Promise.all(items).then((results) => {\n return parseUtil_1.ParseStatus.mergeArray(status, results);\n });\n }\n else {\n return parseUtil_1.ParseStatus.mergeArray(status, items);\n }\n }\n get items() {\n return this._def.items;\n }\n rest(rest) {\n return new ZodTuple({\n ...this._def,\n rest,\n });\n }\n}\nexports.ZodTuple = ZodTuple;\nZodTuple.create = (schemas, params) => {\n if (!Array.isArray(schemas)) {\n throw new Error(\"You must pass an array of schemas to z.tuple([ ... ])\");\n }\n return new ZodTuple({\n items: schemas,\n typeName: ZodFirstPartyTypeKind.ZodTuple,\n rest: null,\n ...processCreateParams(params),\n });\n};\nclass ZodRecord extends ZodType {\n get keySchema() {\n return this._def.keyType;\n }\n get valueSchema() {\n return this._def.valueType;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== util_1.ZodParsedType.object) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.object,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n const pairs = [];\n const keyType = this._def.keyType;\n const valueType = this._def.valueType;\n for (const key in ctx.data) {\n pairs.push({\n key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),\n value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),\n });\n }\n if (ctx.common.async) {\n return parseUtil_1.ParseStatus.mergeObjectAsync(status, pairs);\n }\n else {\n return parseUtil_1.ParseStatus.mergeObjectSync(status, pairs);\n }\n }\n get element() {\n return this._def.valueType;\n }\n static create(first, second, third) {\n if (second instanceof ZodType) {\n return new ZodRecord({\n keyType: first,\n valueType: second,\n typeName: ZodFirstPartyTypeKind.ZodRecord,\n ...processCreateParams(third),\n });\n }\n return new ZodRecord({\n keyType: ZodString.create(),\n valueType: first,\n typeName: ZodFirstPartyTypeKind.ZodRecord,\n ...processCreateParams(second),\n });\n }\n}\nexports.ZodRecord = ZodRecord;\nclass ZodMap extends ZodType {\n get keySchema() {\n return this._def.keyType;\n }\n get valueSchema() {\n return this._def.valueType;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== util_1.ZodParsedType.map) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.map,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n const keyType = this._def.keyType;\n const valueType = this._def.valueType;\n const pairs = [...ctx.data.entries()].map(([key, value], index) => {\n return {\n key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, \"key\"])),\n value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, \"value\"])),\n };\n });\n if (ctx.common.async) {\n const finalMap = new Map();\n return Promise.resolve().then(async () => {\n for (const pair of pairs) {\n const key = await pair.key;\n const value = await pair.value;\n if (key.status === \"aborted\" || value.status === \"aborted\") {\n return parseUtil_1.INVALID;\n }\n if (key.status === \"dirty\" || value.status === \"dirty\") {\n status.dirty();\n }\n finalMap.set(key.value, value.value);\n }\n return { status: status.value, value: finalMap };\n });\n }\n else {\n const finalMap = new Map();\n for (const pair of pairs) {\n const key = pair.key;\n const value = pair.value;\n if (key.status === \"aborted\" || value.status === \"aborted\") {\n return parseUtil_1.INVALID;\n }\n if (key.status === \"dirty\" || value.status === \"dirty\") {\n status.dirty();\n }\n finalMap.set(key.value, value.value);\n }\n return { status: status.value, value: finalMap };\n }\n }\n}\nexports.ZodMap = ZodMap;\nZodMap.create = (keyType, valueType, params) => {\n return new ZodMap({\n valueType,\n keyType,\n typeName: ZodFirstPartyTypeKind.ZodMap,\n ...processCreateParams(params),\n });\n};\nclass ZodSet extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== util_1.ZodParsedType.set) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.set,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n const def = this._def;\n if (def.minSize !== null) {\n if (ctx.data.size < def.minSize.value) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n minimum: def.minSize.value,\n type: \"set\",\n inclusive: true,\n exact: false,\n message: def.minSize.message,\n });\n status.dirty();\n }\n }\n if (def.maxSize !== null) {\n if (ctx.data.size > def.maxSize.value) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n maximum: def.maxSize.value,\n type: \"set\",\n inclusive: true,\n exact: false,\n message: def.maxSize.message,\n });\n status.dirty();\n }\n }\n const valueType = this._def.valueType;\n function finalizeSet(elements) {\n const parsedSet = new Set();\n for (const element of elements) {\n if (element.status === \"aborted\")\n return parseUtil_1.INVALID;\n if (element.status === \"dirty\")\n status.dirty();\n parsedSet.add(element.value);\n }\n return { status: status.value, value: parsedSet };\n }\n const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));\n if (ctx.common.async) {\n return Promise.all(elements).then((elements) => finalizeSet(elements));\n }\n else {\n return finalizeSet(elements);\n }\n }\n min(minSize, message) {\n return new ZodSet({\n ...this._def,\n minSize: { value: minSize, message: errorUtil_1.errorUtil.toString(message) },\n });\n }\n max(maxSize, message) {\n return new ZodSet({\n ...this._def,\n maxSize: { value: maxSize, message: errorUtil_1.errorUtil.toString(message) },\n });\n }\n size(size, message) {\n return this.min(size, message).max(size, message);\n }\n nonempty(message) {\n return this.min(1, message);\n }\n}\nexports.ZodSet = ZodSet;\nZodSet.create = (valueType, params) => {\n return new ZodSet({\n valueType,\n minSize: null,\n maxSize: null,\n typeName: ZodFirstPartyTypeKind.ZodSet,\n ...processCreateParams(params),\n });\n};\nclass ZodFunction extends ZodType {\n constructor() {\n super(...arguments);\n this.validate = this.implement;\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== util_1.ZodParsedType.function) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.function,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n function makeArgsIssue(args, error) {\n return (0, parseUtil_1.makeIssue)({\n data: args,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n (0, errors_1.getErrorMap)(),\n errors_1.defaultErrorMap,\n ].filter((x) => !!x),\n issueData: {\n code: ZodError_1.ZodIssueCode.invalid_arguments,\n argumentsError: error,\n },\n });\n }\n function makeReturnsIssue(returns, error) {\n return (0, parseUtil_1.makeIssue)({\n data: returns,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n (0, errors_1.getErrorMap)(),\n errors_1.defaultErrorMap,\n ].filter((x) => !!x),\n issueData: {\n code: ZodError_1.ZodIssueCode.invalid_return_type,\n returnTypeError: error,\n },\n });\n }\n const params = { errorMap: ctx.common.contextualErrorMap };\n const fn = ctx.data;\n if (this._def.returns instanceof ZodPromise) {\n // Would love a way to avoid disabling this rule, but we need\n // an alias (using an arrow function was what caused 2651).\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const me = this;\n return (0, parseUtil_1.OK)(async function (...args) {\n const error = new ZodError_1.ZodError([]);\n const parsedArgs = await me._def.args\n .parseAsync(args, params)\n .catch((e) => {\n error.addIssue(makeArgsIssue(args, e));\n throw error;\n });\n const result = await Reflect.apply(fn, this, parsedArgs);\n const parsedReturns = await me._def.returns._def.type\n .parseAsync(result, params)\n .catch((e) => {\n error.addIssue(makeReturnsIssue(result, e));\n throw error;\n });\n return parsedReturns;\n });\n }\n else {\n // Would love a way to avoid disabling this rule, but we need\n // an alias (using an arrow function was what caused 2651).\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const me = this;\n return (0, parseUtil_1.OK)(function (...args) {\n const parsedArgs = me._def.args.safeParse(args, params);\n if (!parsedArgs.success) {\n throw new ZodError_1.ZodError([makeArgsIssue(args, parsedArgs.error)]);\n }\n const result = Reflect.apply(fn, this, parsedArgs.data);\n const parsedReturns = me._def.returns.safeParse(result, params);\n if (!parsedReturns.success) {\n throw new ZodError_1.ZodError([makeReturnsIssue(result, parsedReturns.error)]);\n }\n return parsedReturns.data;\n });\n }\n }\n parameters() {\n return this._def.args;\n }\n returnType() {\n return this._def.returns;\n }\n args(...items) {\n return new ZodFunction({\n ...this._def,\n args: ZodTuple.create(items).rest(ZodUnknown.create()),\n });\n }\n returns(returnType) {\n return new ZodFunction({\n ...this._def,\n returns: returnType,\n });\n }\n implement(func) {\n const validatedFunc = this.parse(func);\n return validatedFunc;\n }\n strictImplement(func) {\n const validatedFunc = this.parse(func);\n return validatedFunc;\n }\n static create(args, returns, params) {\n return new ZodFunction({\n args: (args\n ? args\n : ZodTuple.create([]).rest(ZodUnknown.create())),\n returns: returns || ZodUnknown.create(),\n typeName: ZodFirstPartyTypeKind.ZodFunction,\n ...processCreateParams(params),\n });\n }\n}\nexports.ZodFunction = ZodFunction;\nclass ZodLazy extends ZodType {\n get schema() {\n return this._def.getter();\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const lazySchema = this._def.getter();\n return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });\n }\n}\nexports.ZodLazy = ZodLazy;\nZodLazy.create = (getter, params) => {\n return new ZodLazy({\n getter: getter,\n typeName: ZodFirstPartyTypeKind.ZodLazy,\n ...processCreateParams(params),\n });\n};\nclass ZodLiteral extends ZodType {\n _parse(input) {\n if (input.data !== this._def.value) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n received: ctx.data,\n code: ZodError_1.ZodIssueCode.invalid_literal,\n expected: this._def.value,\n });\n return parseUtil_1.INVALID;\n }\n return { status: \"valid\", value: input.data };\n }\n get value() {\n return this._def.value;\n }\n}\nexports.ZodLiteral = ZodLiteral;\nZodLiteral.create = (value, params) => {\n return new ZodLiteral({\n value: value,\n typeName: ZodFirstPartyTypeKind.ZodLiteral,\n ...processCreateParams(params),\n });\n};\nfunction createZodEnum(values, params) {\n return new ZodEnum({\n values,\n typeName: ZodFirstPartyTypeKind.ZodEnum,\n ...processCreateParams(params),\n });\n}\nclass ZodEnum extends ZodType {\n _parse(input) {\n if (typeof input.data !== \"string\") {\n const ctx = this._getOrReturnCtx(input);\n const expectedValues = this._def.values;\n (0, parseUtil_1.addIssueToContext)(ctx, {\n expected: util_1.util.joinValues(expectedValues),\n received: ctx.parsedType,\n code: ZodError_1.ZodIssueCode.invalid_type,\n });\n return parseUtil_1.INVALID;\n }\n if (this._def.values.indexOf(input.data) === -1) {\n const ctx = this._getOrReturnCtx(input);\n const expectedValues = this._def.values;\n (0, parseUtil_1.addIssueToContext)(ctx, {\n received: ctx.data,\n code: ZodError_1.ZodIssueCode.invalid_enum_value,\n options: expectedValues,\n });\n return parseUtil_1.INVALID;\n }\n return (0, parseUtil_1.OK)(input.data);\n }\n get options() {\n return this._def.values;\n }\n get enum() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n get Values() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n get Enum() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n extract(values) {\n return ZodEnum.create(values);\n }\n exclude(values) {\n return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)));\n }\n}\nexports.ZodEnum = ZodEnum;\nZodEnum.create = createZodEnum;\nclass ZodNativeEnum extends ZodType {\n _parse(input) {\n const nativeEnumValues = util_1.util.getValidEnumValues(this._def.values);\n const ctx = this._getOrReturnCtx(input);\n if (ctx.parsedType !== util_1.ZodParsedType.string &&\n ctx.parsedType !== util_1.ZodParsedType.number) {\n const expectedValues = util_1.util.objectValues(nativeEnumValues);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n expected: util_1.util.joinValues(expectedValues),\n received: ctx.parsedType,\n code: ZodError_1.ZodIssueCode.invalid_type,\n });\n return parseUtil_1.INVALID;\n }\n if (nativeEnumValues.indexOf(input.data) === -1) {\n const expectedValues = util_1.util.objectValues(nativeEnumValues);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n received: ctx.data,\n code: ZodError_1.ZodIssueCode.invalid_enum_value,\n options: expectedValues,\n });\n return parseUtil_1.INVALID;\n }\n return (0, parseUtil_1.OK)(input.data);\n }\n get enum() {\n return this._def.values;\n }\n}\nexports.ZodNativeEnum = ZodNativeEnum;\nZodNativeEnum.create = (values, params) => {\n return new ZodNativeEnum({\n values: values,\n typeName: ZodFirstPartyTypeKind.ZodNativeEnum,\n ...processCreateParams(params),\n });\n};\nclass ZodPromise extends ZodType {\n unwrap() {\n return this._def.type;\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== util_1.ZodParsedType.promise &&\n ctx.common.async === false) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.promise,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n const promisified = ctx.parsedType === util_1.ZodParsedType.promise\n ? ctx.data\n : Promise.resolve(ctx.data);\n return (0, parseUtil_1.OK)(promisified.then((data) => {\n return this._def.type.parseAsync(data, {\n path: ctx.path,\n errorMap: ctx.common.contextualErrorMap,\n });\n }));\n }\n}\nexports.ZodPromise = ZodPromise;\nZodPromise.create = (schema, params) => {\n return new ZodPromise({\n type: schema,\n typeName: ZodFirstPartyTypeKind.ZodPromise,\n ...processCreateParams(params),\n });\n};\nclass ZodEffects extends ZodType {\n innerType() {\n return this._def.schema;\n }\n sourceType() {\n return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects\n ? this._def.schema.sourceType()\n : this._def.schema;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n const effect = this._def.effect || null;\n const checkCtx = {\n addIssue: (arg) => {\n (0, parseUtil_1.addIssueToContext)(ctx, arg);\n if (arg.fatal) {\n status.abort();\n }\n else {\n status.dirty();\n }\n },\n get path() {\n return ctx.path;\n },\n };\n checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);\n if (effect.type === \"preprocess\") {\n const processed = effect.transform(ctx.data, checkCtx);\n if (ctx.common.issues.length) {\n return {\n status: \"dirty\",\n value: ctx.data,\n };\n }\n if (ctx.common.async) {\n return Promise.resolve(processed).then((processed) => {\n return this._def.schema._parseAsync({\n data: processed,\n path: ctx.path,\n parent: ctx,\n });\n });\n }\n else {\n return this._def.schema._parseSync({\n data: processed,\n path: ctx.path,\n parent: ctx,\n });\n }\n }\n if (effect.type === \"refinement\") {\n const executeRefinement = (acc\n // effect: RefinementEffect\n ) => {\n const result = effect.refinement(acc, checkCtx);\n if (ctx.common.async) {\n return Promise.resolve(result);\n }\n if (result instanceof Promise) {\n throw new Error(\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\");\n }\n return acc;\n };\n if (ctx.common.async === false) {\n const inner = this._def.schema._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (inner.status === \"aborted\")\n return parseUtil_1.INVALID;\n if (inner.status === \"dirty\")\n status.dirty();\n // return value is ignored\n executeRefinement(inner.value);\n return { status: status.value, value: inner.value };\n }\n else {\n return this._def.schema\n ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })\n .then((inner) => {\n if (inner.status === \"aborted\")\n return parseUtil_1.INVALID;\n if (inner.status === \"dirty\")\n status.dirty();\n return executeRefinement(inner.value).then(() => {\n return { status: status.value, value: inner.value };\n });\n });\n }\n }\n if (effect.type === \"transform\") {\n if (ctx.common.async === false) {\n const base = this._def.schema._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (!(0, parseUtil_1.isValid)(base))\n return base;\n const result = effect.transform(base.value, checkCtx);\n if (result instanceof Promise) {\n throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);\n }\n return { status: status.value, value: result };\n }\n else {\n return this._def.schema\n ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })\n .then((base) => {\n if (!(0, parseUtil_1.isValid)(base))\n return base;\n return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));\n });\n }\n }\n util_1.util.assertNever(effect);\n }\n}\nexports.ZodEffects = ZodEffects;\nexports.ZodTransformer = ZodEffects;\nZodEffects.create = (schema, effect, params) => {\n return new ZodEffects({\n schema,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect,\n ...processCreateParams(params),\n });\n};\nZodEffects.createWithPreprocess = (preprocess, schema, params) => {\n return new ZodEffects({\n schema,\n effect: { type: \"preprocess\", transform: preprocess },\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n ...processCreateParams(params),\n });\n};\nclass ZodOptional extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType === util_1.ZodParsedType.undefined) {\n return (0, parseUtil_1.OK)(undefined);\n }\n return this._def.innerType._parse(input);\n }\n unwrap() {\n return this._def.innerType;\n }\n}\nexports.ZodOptional = ZodOptional;\nZodOptional.create = (type, params) => {\n return new ZodOptional({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodOptional,\n ...processCreateParams(params),\n });\n};\nclass ZodNullable extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType === util_1.ZodParsedType.null) {\n return (0, parseUtil_1.OK)(null);\n }\n return this._def.innerType._parse(input);\n }\n unwrap() {\n return this._def.innerType;\n }\n}\nexports.ZodNullable = ZodNullable;\nZodNullable.create = (type, params) => {\n return new ZodNullable({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodNullable,\n ...processCreateParams(params),\n });\n};\nclass ZodDefault extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n let data = ctx.data;\n if (ctx.parsedType === util_1.ZodParsedType.undefined) {\n data = this._def.defaultValue();\n }\n return this._def.innerType._parse({\n data,\n path: ctx.path,\n parent: ctx,\n });\n }\n removeDefault() {\n return this._def.innerType;\n }\n}\nexports.ZodDefault = ZodDefault;\nZodDefault.create = (type, params) => {\n return new ZodDefault({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodDefault,\n defaultValue: typeof params.default === \"function\"\n ? params.default\n : () => params.default,\n ...processCreateParams(params),\n });\n};\nclass ZodCatch extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n // newCtx is used to not collect issues from inner types in ctx\n const newCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: [],\n },\n };\n const result = this._def.innerType._parse({\n data: newCtx.data,\n path: newCtx.path,\n parent: {\n ...newCtx,\n },\n });\n if ((0, parseUtil_1.isAsync)(result)) {\n return result.then((result) => {\n return {\n status: \"valid\",\n value: result.status === \"valid\"\n ? result.value\n : this._def.catchValue({\n get error() {\n return new ZodError_1.ZodError(newCtx.common.issues);\n },\n input: newCtx.data,\n }),\n };\n });\n }\n else {\n return {\n status: \"valid\",\n value: result.status === \"valid\"\n ? result.value\n : this._def.catchValue({\n get error() {\n return new ZodError_1.ZodError(newCtx.common.issues);\n },\n input: newCtx.data,\n }),\n };\n }\n }\n removeCatch() {\n return this._def.innerType;\n }\n}\nexports.ZodCatch = ZodCatch;\nZodCatch.create = (type, params) => {\n return new ZodCatch({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodCatch,\n catchValue: typeof params.catch === \"function\" ? params.catch : () => params.catch,\n ...processCreateParams(params),\n });\n};\nclass ZodNaN extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.nan) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.nan,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n return { status: \"valid\", value: input.data };\n }\n}\nexports.ZodNaN = ZodNaN;\nZodNaN.create = (params) => {\n return new ZodNaN({\n typeName: ZodFirstPartyTypeKind.ZodNaN,\n ...processCreateParams(params),\n });\n};\nexports.BRAND = Symbol(\"zod_brand\");\nclass ZodBranded extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const data = ctx.data;\n return this._def.type._parse({\n data,\n path: ctx.path,\n parent: ctx,\n });\n }\n unwrap() {\n return this._def.type;\n }\n}\nexports.ZodBranded = ZodBranded;\nclass ZodPipeline extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.common.async) {\n const handleAsync = async () => {\n const inResult = await this._def.in._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (inResult.status === \"aborted\")\n return parseUtil_1.INVALID;\n if (inResult.status === \"dirty\") {\n status.dirty();\n return (0, parseUtil_1.DIRTY)(inResult.value);\n }\n else {\n return this._def.out._parseAsync({\n data: inResult.value,\n path: ctx.path,\n parent: ctx,\n });\n }\n };\n return handleAsync();\n }\n else {\n const inResult = this._def.in._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (inResult.status === \"aborted\")\n return parseUtil_1.INVALID;\n if (inResult.status === \"dirty\") {\n status.dirty();\n return {\n status: \"dirty\",\n value: inResult.value,\n };\n }\n else {\n return this._def.out._parseSync({\n data: inResult.value,\n path: ctx.path,\n parent: ctx,\n });\n }\n }\n }\n static create(a, b) {\n return new ZodPipeline({\n in: a,\n out: b,\n typeName: ZodFirstPartyTypeKind.ZodPipeline,\n });\n }\n}\nexports.ZodPipeline = ZodPipeline;\nclass ZodReadonly extends ZodType {\n _parse(input) {\n const result = this._def.innerType._parse(input);\n if ((0, parseUtil_1.isValid)(result)) {\n result.value = Object.freeze(result.value);\n }\n return result;\n }\n}\nexports.ZodReadonly = ZodReadonly;\nZodReadonly.create = (type, params) => {\n return new ZodReadonly({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodReadonly,\n ...processCreateParams(params),\n });\n};\nconst custom = (check, params = {}, \n/**\n * @deprecated\n *\n * Pass `fatal` into the params object instead:\n *\n * ```ts\n * z.string().custom((val) => val.length > 5, { fatal: false })\n * ```\n *\n */\nfatal) => {\n if (check)\n return ZodAny.create().superRefine((data, ctx) => {\n var _a, _b;\n if (!check(data)) {\n const p = typeof params === \"function\"\n ? params(data)\n : typeof params === \"string\"\n ? { message: params }\n : params;\n const _fatal = (_b = (_a = p.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;\n const p2 = typeof p === \"string\" ? { message: p } : p;\n ctx.addIssue({ code: \"custom\", ...p2, fatal: _fatal });\n }\n });\n return ZodAny.create();\n};\nexports.custom = custom;\nexports.late = {\n object: ZodObject.lazycreate,\n};\nvar ZodFirstPartyTypeKind;\n(function (ZodFirstPartyTypeKind) {\n ZodFirstPartyTypeKind[\"ZodString\"] = \"ZodString\";\n ZodFirstPartyTypeKind[\"ZodNumber\"] = \"ZodNumber\";\n ZodFirstPartyTypeKind[\"ZodNaN\"] = \"ZodNaN\";\n ZodFirstPartyTypeKind[\"ZodBigInt\"] = \"ZodBigInt\";\n ZodFirstPartyTypeKind[\"ZodBoolean\"] = \"ZodBoolean\";\n ZodFirstPartyTypeKind[\"ZodDate\"] = \"ZodDate\";\n ZodFirstPartyTypeKind[\"ZodSymbol\"] = \"ZodSymbol\";\n ZodFirstPartyTypeKind[\"ZodUndefined\"] = \"ZodUndefined\";\n ZodFirstPartyTypeKind[\"ZodNull\"] = \"ZodNull\";\n ZodFirstPartyTypeKind[\"ZodAny\"] = \"ZodAny\";\n ZodFirstPartyTypeKind[\"ZodUnknown\"] = \"ZodUnknown\";\n ZodFirstPartyTypeKind[\"ZodNever\"] = \"ZodNever\";\n ZodFirstPartyTypeKind[\"ZodVoid\"] = \"ZodVoid\";\n ZodFirstPartyTypeKind[\"ZodArray\"] = \"ZodArray\";\n ZodFirstPartyTypeKind[\"ZodObject\"] = \"ZodObject\";\n ZodFirstPartyTypeKind[\"ZodUnion\"] = \"ZodUnion\";\n ZodFirstPartyTypeKind[\"ZodDiscriminatedUnion\"] = \"ZodDiscriminatedUnion\";\n ZodFirstPartyTypeKind[\"ZodIntersection\"] = \"ZodIntersection\";\n ZodFirstPartyTypeKind[\"ZodTuple\"] = \"ZodTuple\";\n ZodFirstPartyTypeKind[\"ZodRecord\"] = \"ZodRecord\";\n ZodFirstPartyTypeKind[\"ZodMap\"] = \"ZodMap\";\n ZodFirstPartyTypeKind[\"ZodSet\"] = \"ZodSet\";\n ZodFirstPartyTypeKind[\"ZodFunction\"] = \"ZodFunction\";\n ZodFirstPartyTypeKind[\"ZodLazy\"] = \"ZodLazy\";\n ZodFirstPartyTypeKind[\"ZodLiteral\"] = \"ZodLiteral\";\n ZodFirstPartyTypeKind[\"ZodEnum\"] = \"ZodEnum\";\n ZodFirstPartyTypeKind[\"ZodEffects\"] = \"ZodEffects\";\n ZodFirstPartyTypeKind[\"ZodNativeEnum\"] = \"ZodNativeEnum\";\n ZodFirstPartyTypeKind[\"ZodOptional\"] = \"ZodOptional\";\n ZodFirstPartyTypeKind[\"ZodNullable\"] = \"ZodNullable\";\n ZodFirstPartyTypeKind[\"ZodDefault\"] = \"ZodDefault\";\n ZodFirstPartyTypeKind[\"ZodCatch\"] = \"ZodCatch\";\n ZodFirstPartyTypeKind[\"ZodPromise\"] = \"ZodPromise\";\n ZodFirstPartyTypeKind[\"ZodBranded\"] = \"ZodBranded\";\n ZodFirstPartyTypeKind[\"ZodPipeline\"] = \"ZodPipeline\";\n ZodFirstPartyTypeKind[\"ZodReadonly\"] = \"ZodReadonly\";\n})(ZodFirstPartyTypeKind = exports.ZodFirstPartyTypeKind || (exports.ZodFirstPartyTypeKind = {}));\n// requires TS 4.4+\nclass Class {\n constructor(..._) { }\n}\nconst instanceOfType = (\n// const instanceOfType = any>(\ncls, params = {\n message: `Input not instance of ${cls.name}`,\n}) => (0, exports.custom)((data) => data instanceof cls, params);\nexports.instanceof = instanceOfType;\nconst stringType = ZodString.create;\nexports.string = stringType;\nconst numberType = ZodNumber.create;\nexports.number = numberType;\nconst nanType = ZodNaN.create;\nexports.nan = nanType;\nconst bigIntType = ZodBigInt.create;\nexports.bigint = bigIntType;\nconst booleanType = ZodBoolean.create;\nexports.boolean = booleanType;\nconst dateType = ZodDate.create;\nexports.date = dateType;\nconst symbolType = ZodSymbol.create;\nexports.symbol = symbolType;\nconst undefinedType = ZodUndefined.create;\nexports.undefined = undefinedType;\nconst nullType = ZodNull.create;\nexports.null = nullType;\nconst anyType = ZodAny.create;\nexports.any = anyType;\nconst unknownType = ZodUnknown.create;\nexports.unknown = unknownType;\nconst neverType = ZodNever.create;\nexports.never = neverType;\nconst voidType = ZodVoid.create;\nexports.void = voidType;\nconst arrayType = ZodArray.create;\nexports.array = arrayType;\nconst objectType = ZodObject.create;\nexports.object = objectType;\nconst strictObjectType = ZodObject.strictCreate;\nexports.strictObject = strictObjectType;\nconst unionType = ZodUnion.create;\nexports.union = unionType;\nconst discriminatedUnionType = ZodDiscriminatedUnion.create;\nexports.discriminatedUnion = discriminatedUnionType;\nconst intersectionType = ZodIntersection.create;\nexports.intersection = intersectionType;\nconst tupleType = ZodTuple.create;\nexports.tuple = tupleType;\nconst recordType = ZodRecord.create;\nexports.record = recordType;\nconst mapType = ZodMap.create;\nexports.map = mapType;\nconst setType = ZodSet.create;\nexports.set = setType;\nconst functionType = ZodFunction.create;\nexports.function = functionType;\nconst lazyType = ZodLazy.create;\nexports.lazy = lazyType;\nconst literalType = ZodLiteral.create;\nexports.literal = literalType;\nconst enumType = ZodEnum.create;\nexports.enum = enumType;\nconst nativeEnumType = ZodNativeEnum.create;\nexports.nativeEnum = nativeEnumType;\nconst promiseType = ZodPromise.create;\nexports.promise = promiseType;\nconst effectsType = ZodEffects.create;\nexports.effect = effectsType;\nexports.transformer = effectsType;\nconst optionalType = ZodOptional.create;\nexports.optional = optionalType;\nconst nullableType = ZodNullable.create;\nexports.nullable = nullableType;\nconst preprocessType = ZodEffects.createWithPreprocess;\nexports.preprocess = preprocessType;\nconst pipelineType = ZodPipeline.create;\nexports.pipeline = pipelineType;\nconst ostring = () => stringType().optional();\nexports.ostring = ostring;\nconst onumber = () => numberType().optional();\nexports.onumber = onumber;\nconst oboolean = () => booleanType().optional();\nexports.oboolean = oboolean;\nexports.coerce = {\n string: ((arg) => ZodString.create({ ...arg, coerce: true })),\n number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),\n boolean: ((arg) => ZodBoolean.create({\n ...arg,\n coerce: true,\n })),\n bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),\n date: ((arg) => ZodDate.create({ ...arg, coerce: true })),\n};\nexports.NEVER = parseUtil_1.INVALID;\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./errors\"), exports);\n__exportStar(require(\"./helpers/parseUtil\"), exports);\n__exportStar(require(\"./helpers/typeAliases\"), exports);\n__exportStar(require(\"./helpers/util\"), exports);\n__exportStar(require(\"./types\"), exports);\n__exportStar(require(\"./ZodError\"), exports);\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.z = void 0;\nconst z = __importStar(require(\"./external\"));\nexports.z = z;\n__exportStar(require(\"./external\"), exports);\nexports.default = z;\n","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Input = exports.InputCommandSchema = exports.Log = exports.LogEventSchema = exports.Script = exports.ScriptResultSchema = exports.ScriptCommandSchema = exports.ScriptEventSchema = exports.Network = exports.NetworkResultSchema = exports.NetworkEventSchema = exports.NetworkCommandSchema = exports.BrowsingContext = exports.BrowsingContextResultSchema = exports.BrowsingContextEventSchema = exports.BrowsingContextCommandSchema = exports.Browser = exports.BrowserCommandSchema = exports.SessionResultSchema = exports.Session = exports.SessionCommandSchema = exports.ErrorCodeSchema = exports.JsUintSchema = exports.JsIntSchema = exports.ExtensibleSchema = exports.EmptyResultSchema = exports.ErrorResponseSchema = exports.MessageSchema = exports.EmptyParamsSchema = exports.ResultDataSchema = exports.CommandDataSchema = exports.EventDataSchema = exports.CommandResponseSchema = exports.CommandSchema = exports.EventSchema = void 0;\n/**\n * THIS FILE IS AUTOGENERATED. Run `npm run bidi-types` to regenerate.\n * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs\n */\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck Some types may be circular.\nconst zod_1 = __importDefault(require(\"zod\"));\nexports.EventSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n type: zod_1.default.literal('event'),\n})\n .and(exports.EventDataSchema)\n .and(exports.ExtensibleSchema));\nexports.CommandSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n id: exports.JsUintSchema,\n})\n .and(exports.CommandDataSchema)\n .and(exports.ExtensibleSchema));\nexports.CommandResponseSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n type: zod_1.default.literal('success'),\n id: exports.JsUintSchema,\n result: exports.ResultDataSchema,\n})\n .and(exports.ExtensibleSchema));\nexports.EventDataSchema = zod_1.default.lazy(() => zod_1.default.union([\n exports.BrowsingContextEventSchema,\n exports.LogEventSchema,\n exports.NetworkEventSchema,\n exports.ScriptEventSchema,\n]));\nexports.CommandDataSchema = zod_1.default.lazy(() => zod_1.default.union([\n exports.BrowserCommandSchema,\n exports.BrowsingContextCommandSchema,\n exports.InputCommandSchema,\n exports.NetworkCommandSchema,\n exports.ScriptCommandSchema,\n exports.SessionCommandSchema,\n]));\nexports.ResultDataSchema = zod_1.default.lazy(() => zod_1.default.union([\n exports.BrowsingContextResultSchema,\n exports.EmptyResultSchema,\n exports.NetworkResultSchema,\n exports.ScriptResultSchema,\n exports.SessionResultSchema,\n]));\nexports.EmptyParamsSchema = zod_1.default.lazy(() => exports.ExtensibleSchema);\nexports.MessageSchema = zod_1.default.lazy(() => zod_1.default.union([exports.CommandResponseSchema, exports.ErrorResponseSchema, exports.EventSchema]));\nexports.ErrorResponseSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n type: zod_1.default.literal('error'),\n id: zod_1.default.union([exports.JsUintSchema, zod_1.default.null()]),\n error: exports.ErrorCodeSchema,\n message: zod_1.default.string(),\n stacktrace: zod_1.default.string().optional(),\n})\n .and(exports.ExtensibleSchema));\nexports.EmptyResultSchema = zod_1.default.lazy(() => exports.ExtensibleSchema);\nexports.ExtensibleSchema = zod_1.default.lazy(() => zod_1.default.record(zod_1.default.string(), zod_1.default.any()));\nexports.JsIntSchema = zod_1.default.lazy(() => zod_1.default.number().int().gte(-9007199254740991).lte(9007199254740991));\nexports.JsUintSchema = zod_1.default.lazy(() => zod_1.default.number().int().nonnegative().gte(0).lte(9007199254740991));\nexports.ErrorCodeSchema = zod_1.default.lazy(() => zod_1.default.enum([\n 'invalid argument',\n 'invalid session id',\n 'move target out of bounds',\n 'no such alert',\n 'no such element',\n 'no such frame',\n 'no such handle',\n 'no such history entry',\n 'no such intercept',\n 'no such node',\n 'no such request',\n 'no such script',\n 'session not created',\n 'unable to capture screen',\n 'unable to close browser',\n 'unknown command',\n 'unknown error',\n 'unsupported operation',\n]));\nexports.SessionCommandSchema = zod_1.default.lazy(() => zod_1.default.union([\n Session.EndSchema,\n Session.NewSchema,\n Session.StatusSchema,\n Session.SubscribeSchema,\n Session.UnsubscribeSchema,\n]));\nvar Session;\n(function (Session) {\n Session.ProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default.union([\n Session.AutodetectProxyConfigurationSchema,\n Session.DirectProxyConfigurationSchema,\n Session.ManualProxyConfigurationSchema,\n Session.PacProxyConfigurationSchema,\n Session.SystemProxyConfigurationSchema,\n zod_1.default.object({}),\n ]));\n})(Session || (exports.Session = Session = {}));\nexports.SessionResultSchema = zod_1.default.lazy(() => zod_1.default.union([Session.NewResultSchema, Session.StatusResultSchema]));\n(function (Session) {\n Session.CapabilitiesRequestSchema = zod_1.default.lazy(() => zod_1.default.object({\n alwaysMatch: Session.CapabilityRequestSchema.optional(),\n firstMatch: zod_1.default.array(Session.CapabilityRequestSchema).optional(),\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.CapabilityRequestSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n acceptInsecureCerts: zod_1.default.boolean().optional(),\n browserName: zod_1.default.string().optional(),\n browserVersion: zod_1.default.string().optional(),\n platformName: zod_1.default.string().optional(),\n proxy: Session.ProxyConfigurationSchema.optional(),\n webSocketUrl: zod_1.default.boolean().optional(),\n })\n .and(exports.ExtensibleSchema));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.AutodetectProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n proxyType: zod_1.default.literal('autodetect'),\n })\n .and(exports.ExtensibleSchema));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.DirectProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n proxyType: zod_1.default.literal('direct'),\n })\n .and(exports.ExtensibleSchema));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.ManualProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n proxyType: zod_1.default.literal('manual'),\n ftpProxy: zod_1.default.string().optional(),\n httpProxy: zod_1.default.string().optional(),\n sslProxy: zod_1.default.string().optional(),\n })\n .and(Session.SocksProxyConfigurationSchema.or(zod_1.default.object({})))\n .and(zod_1.default.object({\n noProxy: zod_1.default.array(zod_1.default.string()).optional(),\n }))\n .and(exports.ExtensibleSchema));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.SocksProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default.object({\n socksProxy: zod_1.default.string(),\n socksVersion: zod_1.default.number().int().nonnegative().gte(0).lte(255),\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.PacProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n proxyType: zod_1.default.literal('pac'),\n proxyAutoconfigUrl: zod_1.default.string(),\n })\n .and(exports.ExtensibleSchema));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.SystemProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n proxyType: zod_1.default.literal('system'),\n })\n .and(exports.ExtensibleSchema));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.SubscriptionRequestSchema = zod_1.default.lazy(() => zod_1.default.object({\n events: zod_1.default.array(zod_1.default.string()),\n contexts: zod_1.default.array(BrowsingContext.BrowsingContextSchema).optional(),\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.StatusSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('session.status'),\n params: exports.EmptyParamsSchema,\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.StatusResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n ready: zod_1.default.boolean(),\n message: zod_1.default.string(),\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.NewSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('session.new'),\n params: Session.NewParametersSchema,\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.NewParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n capabilities: Session.CapabilitiesRequestSchema,\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.NewResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n sessionId: zod_1.default.string(),\n capabilities: zod_1.default\n .object({\n acceptInsecureCerts: zod_1.default.boolean(),\n browserName: zod_1.default.string(),\n browserVersion: zod_1.default.string(),\n platformName: zod_1.default.string(),\n setWindowRect: zod_1.default.boolean(),\n proxy: Session.ProxyConfigurationSchema.optional(),\n webSocketUrl: zod_1.default.union([zod_1.default.string(), zod_1.default.literal(true)]).optional(),\n })\n .and(exports.ExtensibleSchema),\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.EndSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('session.end'),\n params: exports.EmptyParamsSchema,\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.SubscribeSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('session.subscribe'),\n params: Session.SubscriptionRequestSchema,\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.UnsubscribeSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('session.unsubscribe'),\n params: Session.SubscriptionRequestSchema,\n }));\n})(Session || (exports.Session = Session = {}));\nexports.BrowserCommandSchema = zod_1.default.lazy(() => Browser.CloseSchema);\nvar Browser;\n(function (Browser) {\n Browser.CloseSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browser.close'),\n params: exports.EmptyParamsSchema,\n }));\n})(Browser || (exports.Browser = Browser = {}));\nexports.BrowsingContextCommandSchema = zod_1.default.lazy(() => zod_1.default.union([\n BrowsingContext.ActivateSchema,\n BrowsingContext.CaptureScreenshotSchema,\n BrowsingContext.CloseSchema,\n BrowsingContext.CreateSchema,\n BrowsingContext.GetTreeSchema,\n BrowsingContext.HandleUserPromptSchema,\n BrowsingContext.LocateNodesSchema,\n BrowsingContext.NavigateSchema,\n BrowsingContext.PrintSchema,\n BrowsingContext.ReloadSchema,\n BrowsingContext.SetViewportSchema,\n BrowsingContext.TraverseHistorySchema,\n]));\nexports.BrowsingContextEventSchema = zod_1.default.lazy(() => zod_1.default.union([\n BrowsingContext.ContextCreatedSchema,\n BrowsingContext.ContextDestroyedSchema,\n BrowsingContext.DomContentLoadedSchema,\n BrowsingContext.DownloadWillBeginSchema,\n BrowsingContext.FragmentNavigatedSchema,\n BrowsingContext.LoadSchema,\n BrowsingContext.NavigationAbortedSchema,\n BrowsingContext.NavigationFailedSchema,\n BrowsingContext.NavigationStartedSchema,\n BrowsingContext.UserPromptClosedSchema,\n BrowsingContext.UserPromptOpenedSchema,\n]));\nexports.BrowsingContextResultSchema = zod_1.default.lazy(() => zod_1.default.union([\n BrowsingContext.CaptureScreenshotResultSchema,\n BrowsingContext.CreateResultSchema,\n BrowsingContext.GetTreeResultSchema,\n BrowsingContext.LocateNodesResultSchema,\n BrowsingContext.NavigateResultSchema,\n BrowsingContext.PrintResultSchema,\n BrowsingContext.TraverseHistoryResultSchema,\n]));\nvar BrowsingContext;\n(function (BrowsingContext) {\n BrowsingContext.BrowsingContextSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.InfoListSchema = zod_1.default.lazy(() => zod_1.default.array(BrowsingContext.InfoSchema));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.InfoSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n url: zod_1.default.string(),\n children: zod_1.default.union([BrowsingContext.InfoListSchema, zod_1.default.null()]),\n parent: zod_1.default\n .union([BrowsingContext.BrowsingContextSchema, zod_1.default.null()])\n .optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.LocatorSchema = zod_1.default.lazy(() => zod_1.default.union([\n BrowsingContext.CssLocatorSchema,\n BrowsingContext.InnerTextLocatorSchema,\n BrowsingContext.XPathLocatorSchema,\n ]));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CssLocatorSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('css'),\n value: zod_1.default.string(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.InnerTextLocatorSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('innerText'),\n value: zod_1.default.string(),\n ignoreCase: zod_1.default.boolean().optional(),\n matchType: zod_1.default.enum(['full', 'partial']).optional(),\n maxDepth: exports.JsUintSchema.optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.XPathLocatorSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('xpath'),\n value: zod_1.default.string(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigationSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigationInfoSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n navigation: zod_1.default.union([BrowsingContext.NavigationSchema, zod_1.default.null()]),\n timestamp: exports.JsUintSchema,\n url: zod_1.default.string(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ReadinessStateSchema = zod_1.default.lazy(() => zod_1.default.enum(['none', 'interactive', 'complete']));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ActivateSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.activate'),\n params: BrowsingContext.ActivateParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ActivateParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CaptureScreenshotParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n origin: zod_1.default.enum(['viewport', 'document']).default('viewport').optional(),\n format: BrowsingContext.ImageFormatSchema.optional(),\n clip: BrowsingContext.ClipRectangleSchema.optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CaptureScreenshotSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.captureScreenshot'),\n params: BrowsingContext.CaptureScreenshotParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ImageFormatSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.string(),\n quality: zod_1.default.number().gte(0).lte(1).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ClipRectangleSchema = zod_1.default.lazy(() => zod_1.default.union([\n BrowsingContext.BoxClipRectangleSchema,\n BrowsingContext.ElementClipRectangleSchema,\n ]));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ElementClipRectangleSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('element'),\n element: Script.SharedReferenceSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.BoxClipRectangleSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('box'),\n x: zod_1.default.number(),\n y: zod_1.default.number(),\n width: zod_1.default.number(),\n height: zod_1.default.number(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CaptureScreenshotResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n data: zod_1.default.string(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CloseSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.close'),\n params: BrowsingContext.CloseParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CloseParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n promptUnload: zod_1.default.boolean().default(false).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CreateSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.create'),\n params: BrowsingContext.CreateParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CreateTypeSchema = zod_1.default.lazy(() => zod_1.default.enum(['tab', 'window']));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CreateParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: BrowsingContext.CreateTypeSchema,\n referenceContext: BrowsingContext.BrowsingContextSchema.optional(),\n background: zod_1.default.boolean().default(false).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CreateResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.GetTreeSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.getTree'),\n params: BrowsingContext.GetTreeParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.GetTreeParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n maxDepth: exports.JsUintSchema.optional(),\n root: BrowsingContext.BrowsingContextSchema.optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.GetTreeResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n contexts: BrowsingContext.InfoListSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.HandleUserPromptSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.handleUserPrompt'),\n params: BrowsingContext.HandleUserPromptParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.HandleUserPromptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n accept: zod_1.default.boolean().optional(),\n userText: zod_1.default.string().optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.LocateNodesParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n locator: BrowsingContext.LocatorSchema,\n maxNodeCount: exports.JsUintSchema.gte(1).optional(),\n ownership: Script.ResultOwnershipSchema.optional(),\n sandbox: zod_1.default.string().optional(),\n serializationOptions: Script.SerializationOptionsSchema.optional(),\n startNodes: zod_1.default.array(Script.SharedReferenceSchema).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.LocateNodesSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.locateNodes'),\n params: BrowsingContext.LocateNodesParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.LocateNodesResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n nodes: zod_1.default.array(Script.NodeRemoteValueSchema),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigateSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.navigate'),\n params: BrowsingContext.NavigateParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigateParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n url: zod_1.default.string(),\n wait: BrowsingContext.ReadinessStateSchema.optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigateResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n navigation: zod_1.default.union([BrowsingContext.NavigationSchema, zod_1.default.null()]),\n url: zod_1.default.string(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.PrintSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.print'),\n params: BrowsingContext.PrintParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.PrintParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n background: zod_1.default.boolean().default(false).optional(),\n margin: BrowsingContext.PrintMarginParametersSchema.optional(),\n orientation: zod_1.default\n .enum(['portrait', 'landscape'])\n .default('portrait')\n .optional(),\n page: BrowsingContext.PrintPageParametersSchema.optional(),\n pageRanges: zod_1.default.array(zod_1.default.union([exports.JsUintSchema, zod_1.default.string()])).optional(),\n scale: zod_1.default.number().gte(0.1).lte(2).default(1).optional(),\n shrinkToFit: zod_1.default.boolean().default(true).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.PrintMarginParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n bottom: zod_1.default.number().gte(0).default(1).optional(),\n left: zod_1.default.number().gte(0).default(1).optional(),\n right: zod_1.default.number().gte(0).default(1).optional(),\n top: zod_1.default.number().gte(0).default(1).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.PrintPageParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n height: zod_1.default.number().gte(0.0352).default(27.94).optional(),\n width: zod_1.default.number().gte(0.0352).default(21.59).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.PrintResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n data: zod_1.default.string(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ReloadSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.reload'),\n params: BrowsingContext.ReloadParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ReloadParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n ignoreCache: zod_1.default.boolean().optional(),\n wait: BrowsingContext.ReadinessStateSchema.optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.SetViewportSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.setViewport'),\n params: BrowsingContext.SetViewportParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.SetViewportParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n viewport: zod_1.default.union([BrowsingContext.ViewportSchema, zod_1.default.null()]).optional(),\n devicePixelRatio: zod_1.default.union([zod_1.default.number().gt(0), zod_1.default.null()]).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ViewportSchema = zod_1.default.lazy(() => zod_1.default.object({\n width: exports.JsUintSchema,\n height: exports.JsUintSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.TraverseHistorySchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.traverseHistory'),\n params: BrowsingContext.TraverseHistoryParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.TraverseHistoryParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n delta: exports.JsIntSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.TraverseHistoryResultSchema = zod_1.default.lazy(() => zod_1.default.object({}));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ContextCreatedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.contextCreated'),\n params: BrowsingContext.InfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ContextDestroyedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.contextDestroyed'),\n params: BrowsingContext.InfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigationStartedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.navigationStarted'),\n params: BrowsingContext.NavigationInfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.FragmentNavigatedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.fragmentNavigated'),\n params: BrowsingContext.NavigationInfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.DomContentLoadedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.domContentLoaded'),\n params: BrowsingContext.NavigationInfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.LoadSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.load'),\n params: BrowsingContext.NavigationInfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.DownloadWillBeginSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.downloadWillBegin'),\n params: BrowsingContext.NavigationInfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigationAbortedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.navigationAborted'),\n params: BrowsingContext.NavigationInfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigationFailedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.navigationFailed'),\n params: BrowsingContext.NavigationInfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.UserPromptClosedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.userPromptClosed'),\n params: BrowsingContext.UserPromptClosedParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.UserPromptClosedParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n accepted: zod_1.default.boolean(),\n userText: zod_1.default.string().optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.UserPromptOpenedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.userPromptOpened'),\n params: BrowsingContext.UserPromptOpenedParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.UserPromptOpenedParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n type: zod_1.default.enum(['alert', 'confirm', 'prompt', 'beforeunload']),\n message: zod_1.default.string(),\n defaultValue: zod_1.default.string().optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\nexports.NetworkCommandSchema = zod_1.default.lazy(() => zod_1.default.union([\n Network.AddInterceptSchema,\n Network.ContinueRequestSchema,\n Network.ContinueResponseSchema,\n Network.ContinueWithAuthSchema,\n Network.FailRequestSchema,\n Network.ProvideResponseSchema,\n Network.RemoveInterceptSchema,\n]));\nexports.NetworkEventSchema = zod_1.default.lazy(() => zod_1.default.union([\n Network.AuthRequiredSchema,\n Network.BeforeRequestSentSchema,\n Network.FetchErrorSchema,\n Network.ResponseCompletedSchema,\n Network.ResponseStartedSchema,\n]));\nexports.NetworkResultSchema = zod_1.default.lazy(() => Network.AddInterceptResultSchema);\nvar Network;\n(function (Network) {\n Network.AuthChallengeSchema = zod_1.default.lazy(() => zod_1.default.object({\n scheme: zod_1.default.string(),\n realm: zod_1.default.string(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.AuthCredentialsSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('password'),\n username: zod_1.default.string(),\n password: zod_1.default.string(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.BaseParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: zod_1.default.union([BrowsingContext.BrowsingContextSchema, zod_1.default.null()]),\n isBlocked: zod_1.default.boolean(),\n navigation: zod_1.default.union([BrowsingContext.NavigationSchema, zod_1.default.null()]),\n redirectCount: exports.JsUintSchema,\n request: Network.RequestDataSchema,\n timestamp: exports.JsUintSchema,\n intercepts: zod_1.default.array(Network.InterceptSchema).optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.BytesValueSchema = zod_1.default.lazy(() => zod_1.default.union([Network.StringValueSchema, Network.Base64ValueSchema]));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.StringValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('string'),\n value: zod_1.default.string(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.Base64ValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('base64'),\n value: zod_1.default.string(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.CookieSchema = zod_1.default.lazy(() => zod_1.default.object({\n name: zod_1.default.string(),\n value: Network.BytesValueSchema,\n domain: zod_1.default.string(),\n path: zod_1.default.string(),\n size: exports.JsUintSchema,\n httpOnly: zod_1.default.boolean(),\n secure: zod_1.default.boolean(),\n sameSite: zod_1.default.enum(['strict', 'lax', 'none']),\n expiry: exports.JsUintSchema.optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.CookieHeaderSchema = zod_1.default.lazy(() => zod_1.default.object({\n name: zod_1.default.string(),\n value: Network.BytesValueSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.FetchTimingInfoSchema = zod_1.default.lazy(() => zod_1.default.object({\n timeOrigin: zod_1.default.number(),\n requestTime: zod_1.default.number(),\n redirectStart: zod_1.default.number(),\n redirectEnd: zod_1.default.number(),\n fetchStart: zod_1.default.number(),\n dnsStart: zod_1.default.number(),\n dnsEnd: zod_1.default.number(),\n connectStart: zod_1.default.number(),\n connectEnd: zod_1.default.number(),\n tlsStart: zod_1.default.number(),\n requestStart: zod_1.default.number(),\n responseStart: zod_1.default.number(),\n responseEnd: zod_1.default.number(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.HeaderSchema = zod_1.default.lazy(() => zod_1.default.object({\n name: zod_1.default.string(),\n value: Network.BytesValueSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.InitiatorSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.enum(['parser', 'script', 'preflight', 'other']),\n columnNumber: exports.JsUintSchema.optional(),\n lineNumber: exports.JsUintSchema.optional(),\n stackTrace: Script.StackTraceSchema.optional(),\n request: Network.RequestSchema.optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.InterceptSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.RequestSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.RequestDataSchema = zod_1.default.lazy(() => zod_1.default.object({\n request: Network.RequestSchema,\n url: zod_1.default.string(),\n method: zod_1.default.string(),\n headers: zod_1.default.array(Network.HeaderSchema),\n cookies: zod_1.default.array(Network.CookieSchema),\n headersSize: exports.JsUintSchema,\n bodySize: zod_1.default.union([exports.JsUintSchema, zod_1.default.null()]),\n timings: Network.FetchTimingInfoSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ResponseContentSchema = zod_1.default.lazy(() => zod_1.default.object({\n size: exports.JsUintSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ResponseDataSchema = zod_1.default.lazy(() => zod_1.default.object({\n url: zod_1.default.string(),\n protocol: zod_1.default.string(),\n status: exports.JsUintSchema,\n statusText: zod_1.default.string(),\n fromCache: zod_1.default.boolean(),\n headers: zod_1.default.array(Network.HeaderSchema),\n mimeType: zod_1.default.string(),\n bytesReceived: exports.JsUintSchema,\n headersSize: zod_1.default.union([exports.JsUintSchema, zod_1.default.null()]),\n bodySize: zod_1.default.union([exports.JsUintSchema, zod_1.default.null()]),\n content: Network.ResponseContentSchema,\n authChallenge: Network.AuthChallengeSchema.optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.SetCookieHeaderSchema = zod_1.default.lazy(() => zod_1.default.object({\n name: zod_1.default.string(),\n value: Network.BytesValueSchema,\n domain: zod_1.default.string().optional(),\n httpOnly: zod_1.default.boolean().optional(),\n expiry: zod_1.default.string().optional(),\n maxAge: exports.JsIntSchema.optional(),\n path: zod_1.default.string().optional(),\n sameSite: zod_1.default.enum(['strict', 'lax', 'none']).optional(),\n secure: zod_1.default.boolean().optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.UrlPatternSchema = zod_1.default.lazy(() => zod_1.default.union([Network.UrlPatternPatternSchema, Network.UrlPatternStringSchema]));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.UrlPatternPatternSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('pattern'),\n protocol: zod_1.default.string().optional(),\n hostname: zod_1.default.string().optional(),\n port: zod_1.default.string().optional(),\n pathname: zod_1.default.string().optional(),\n search: zod_1.default.string().optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.UrlPatternStringSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('string'),\n pattern: zod_1.default.string(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.AddInterceptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n phases: zod_1.default.array(Network.InterceptPhaseSchema),\n urlPatterns: zod_1.default.array(Network.UrlPatternSchema).optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.AddInterceptSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.addIntercept'),\n params: Network.AddInterceptParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.InterceptPhaseSchema = zod_1.default.lazy(() => zod_1.default.enum(['beforeRequestSent', 'responseStarted', 'authRequired']));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.AddInterceptResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n intercept: Network.InterceptSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueRequestSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.continueRequest'),\n params: Network.ContinueRequestParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueRequestParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n request: Network.RequestSchema,\n body: Network.BytesValueSchema.optional(),\n cookies: zod_1.default.array(Network.CookieHeaderSchema).optional(),\n headers: zod_1.default.array(Network.HeaderSchema).optional(),\n method: zod_1.default.string().optional(),\n url: zod_1.default.string().optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueResponseSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.continueResponse'),\n params: Network.ContinueResponseParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueResponseParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n request: Network.RequestSchema,\n cookies: zod_1.default.array(Network.SetCookieHeaderSchema).optional(),\n credentials: Network.AuthCredentialsSchema.optional(),\n headers: zod_1.default.array(Network.HeaderSchema).optional(),\n reasonPhrase: zod_1.default.string().optional(),\n statusCode: exports.JsUintSchema.optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueWithAuthSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.continueWithAuth'),\n params: Network.ContinueWithAuthParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueWithAuthParametersSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n request: Network.RequestSchema,\n })\n .and(zod_1.default.union([\n Network.ContinueWithAuthCredentialsSchema,\n Network.ContinueWithAuthNoCredentialsSchema,\n ])));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueWithAuthCredentialsSchema = zod_1.default.lazy(() => zod_1.default.object({\n action: zod_1.default.literal('provideCredentials'),\n credentials: Network.AuthCredentialsSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueWithAuthNoCredentialsSchema = zod_1.default.lazy(() => zod_1.default.object({\n action: zod_1.default.enum(['default', 'cancel']),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.FailRequestSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.failRequest'),\n params: Network.FailRequestParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.FailRequestParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n request: Network.RequestSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ProvideResponseSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.provideResponse'),\n params: Network.ProvideResponseParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ProvideResponseParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n request: Network.RequestSchema,\n body: Network.BytesValueSchema.optional(),\n cookies: zod_1.default.array(Network.SetCookieHeaderSchema).optional(),\n headers: zod_1.default.array(Network.HeaderSchema).optional(),\n reasonPhrase: zod_1.default.string().optional(),\n statusCode: exports.JsUintSchema.optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.RemoveInterceptSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.removeIntercept'),\n params: Network.RemoveInterceptParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.RemoveInterceptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n intercept: Network.InterceptSchema,\n }));\n})(Network || (exports.Network = Network = {}));\nexports.ScriptEventSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.MessageSchema,\n Script.RealmCreatedSchema,\n Script.RealmDestroyedSchema,\n]));\n(function (Network) {\n Network.AuthRequiredParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({\n response: Network.ResponseDataSchema,\n })));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.BeforeRequestSentParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({\n initiator: Network.InitiatorSchema,\n })));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.FetchErrorParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({\n errorText: zod_1.default.string(),\n })));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ResponseCompletedParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({\n response: Network.ResponseDataSchema,\n })));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ResponseStartedParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({\n response: Network.ResponseDataSchema,\n })));\n})(Network || (exports.Network = Network = {}));\nexports.ScriptCommandSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.AddPreloadScriptSchema,\n Script.CallFunctionSchema,\n Script.DisownSchema,\n Script.EvaluateSchema,\n Script.GetRealmsSchema,\n Script.RemovePreloadScriptSchema,\n]));\nexports.ScriptResultSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.AddPreloadScriptResultSchema,\n Script.EvaluateResultSchema,\n Script.GetRealmsResultSchema,\n]));\n(function (Network) {\n Network.AuthRequiredSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.authRequired'),\n params: Network.AuthRequiredParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.BeforeRequestSentSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.beforeRequestSent'),\n params: Network.BeforeRequestSentParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.FetchErrorSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.fetchError'),\n params: Network.FetchErrorParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ResponseCompletedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.responseCompleted'),\n params: Network.ResponseCompletedParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ResponseStartedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.responseStarted'),\n params: Network.ResponseStartedParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\nvar Script;\n(function (Script) {\n Script.ChannelSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.EvaluateResultSuccessSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('success'),\n result: Script.RemoteValueSchema,\n realm: Script.RealmSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ExceptionDetailsSchema = zod_1.default.lazy(() => zod_1.default.object({\n columnNumber: exports.JsUintSchema,\n exception: Script.RemoteValueSchema,\n lineNumber: exports.JsUintSchema,\n stackTrace: Script.StackTraceSchema,\n text: zod_1.default.string(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ChannelValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('channel'),\n value: Script.ChannelPropertiesSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ChannelPropertiesSchema = zod_1.default.lazy(() => zod_1.default.object({\n channel: Script.ChannelSchema,\n serializationOptions: Script.SerializationOptionsSchema.optional(),\n ownership: Script.ResultOwnershipSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.EvaluateResultSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.EvaluateResultSuccessSchema,\n Script.EvaluateResultExceptionSchema,\n ]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.EvaluateResultExceptionSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('exception'),\n exceptionDetails: Script.ExceptionDetailsSchema,\n realm: Script.RealmSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.HandleSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.InternalIdSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ListLocalValueSchema = zod_1.default.lazy(() => zod_1.default.array(Script.LocalValueSchema));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.LocalValueSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.RemoteReferenceSchema,\n Script.PrimitiveProtocolValueSchema,\n Script.ChannelValueSchema,\n Script.ArrayLocalValueSchema,\n Script.DateLocalValueSchema,\n Script.MapLocalValueSchema,\n Script.ObjectLocalValueSchema,\n Script.RegExpLocalValueSchema,\n Script.SetLocalValueSchema,\n ]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ArrayLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('array'),\n value: Script.ListLocalValueSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.DateLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('date'),\n value: zod_1.default.string(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.MappingLocalValueSchema = zod_1.default.lazy(() => zod_1.default.array(zod_1.default.tuple([\n zod_1.default.union([Script.LocalValueSchema, zod_1.default.string()]),\n Script.LocalValueSchema,\n ])));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.MapLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('map'),\n value: Script.MappingLocalValueSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ObjectLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('object'),\n value: Script.MappingLocalValueSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RegExpValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n pattern: zod_1.default.string(),\n flags: zod_1.default.string().optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RegExpLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('regexp'),\n value: Script.RegExpValueSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SetLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('set'),\n value: Script.ListLocalValueSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.PreloadScriptSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RealmSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.PrimitiveProtocolValueSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.UndefinedValueSchema,\n Script.NullValueSchema,\n Script.StringValueSchema,\n Script.NumberValueSchema,\n Script.BooleanValueSchema,\n Script.BigIntValueSchema,\n ]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.UndefinedValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('undefined'),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.NullValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('null'),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.StringValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('string'),\n value: zod_1.default.string(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SpecialNumberSchema = zod_1.default.lazy(() => zod_1.default.enum(['NaN', '-0', 'Infinity', '-Infinity']));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.NumberValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('number'),\n value: zod_1.default.union([zod_1.default.number(), Script.SpecialNumberSchema]),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.BooleanValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('boolean'),\n value: zod_1.default.boolean(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.BigIntValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('bigint'),\n value: zod_1.default.string(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RealmInfoSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.WindowRealmInfoSchema,\n Script.DedicatedWorkerRealmInfoSchema,\n Script.SharedWorkerRealmInfoSchema,\n Script.ServiceWorkerRealmInfoSchema,\n Script.WorkerRealmInfoSchema,\n Script.PaintWorkletRealmInfoSchema,\n Script.AudioWorkletRealmInfoSchema,\n Script.WorkletRealmInfoSchema,\n ]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.BaseRealmInfoSchema = zod_1.default.lazy(() => zod_1.default.object({\n realm: Script.RealmSchema,\n origin: zod_1.default.string(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.WindowRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('window'),\n context: BrowsingContext.BrowsingContextSchema,\n sandbox: zod_1.default.string().optional(),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.DedicatedWorkerRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('dedicated-worker'),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SharedWorkerRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('shared-worker'),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ServiceWorkerRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('service-worker'),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.WorkerRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('worker'),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.PaintWorkletRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('paint-worklet'),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.AudioWorkletRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('audio-worklet'),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.WorkletRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('worklet'),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RealmTypeSchema = zod_1.default.lazy(() => zod_1.default.enum([\n 'window',\n 'dedicated-worker',\n 'shared-worker',\n 'service-worker',\n 'worker',\n 'paint-worklet',\n 'audio-worklet',\n 'worklet',\n ]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ListRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.array(Script.RemoteValueSchema));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.MappingRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.array(zod_1.default.tuple([\n zod_1.default.union([Script.RemoteValueSchema, zod_1.default.string()]),\n Script.RemoteValueSchema,\n ])));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RemoteValueSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.PrimitiveProtocolValueSchema,\n Script.SymbolRemoteValueSchema,\n Script.ArrayRemoteValueSchema,\n Script.ObjectRemoteValueSchema,\n Script.FunctionRemoteValueSchema,\n Script.RegExpRemoteValueSchema,\n Script.DateRemoteValueSchema,\n Script.MapRemoteValueSchema,\n Script.SetRemoteValueSchema,\n Script.WeakMapRemoteValueSchema,\n Script.WeakSetRemoteValueSchema,\n Script.IteratorRemoteValueSchema,\n Script.GeneratorRemoteValueSchema,\n Script.ErrorRemoteValueSchema,\n Script.ProxyRemoteValueSchema,\n Script.PromiseRemoteValueSchema,\n Script.TypedArrayRemoteValueSchema,\n Script.ArrayBufferRemoteValueSchema,\n Script.NodeListRemoteValueSchema,\n Script.HtmlCollectionRemoteValueSchema,\n Script.NodeRemoteValueSchema,\n Script.WindowProxyRemoteValueSchema,\n ]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RemoteReferenceSchema = zod_1.default.lazy(() => zod_1.default.union([Script.SharedReferenceSchema, Script.RemoteObjectReferenceSchema]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SharedReferenceSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n sharedId: Script.SharedIdSchema,\n handle: Script.HandleSchema.optional(),\n })\n .and(exports.ExtensibleSchema));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RemoteObjectReferenceSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n handle: Script.HandleSchema,\n sharedId: Script.SharedIdSchema.optional(),\n })\n .and(exports.ExtensibleSchema));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SymbolRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('symbol'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ArrayRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('array'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n value: Script.ListRemoteValueSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ObjectRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('object'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n value: Script.MappingRemoteValueSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.FunctionRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('function'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RegExpRemoteValueSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n })\n .and(Script.RegExpLocalValueSchema));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.DateRemoteValueSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n })\n .and(Script.DateLocalValueSchema));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.MapRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('map'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n value: Script.MappingRemoteValueSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SetRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('set'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n value: Script.ListRemoteValueSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.WeakMapRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('weakmap'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.WeakSetRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('weakset'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.IteratorRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('iterator'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.GeneratorRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('generator'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ErrorRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('error'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ProxyRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('proxy'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.PromiseRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('promise'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.TypedArrayRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('typedarray'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ArrayBufferRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('arraybuffer'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.NodeListRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('nodelist'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n value: Script.ListRemoteValueSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.HtmlCollectionRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('htmlcollection'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n value: Script.ListRemoteValueSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.NodeRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('node'),\n sharedId: Script.SharedIdSchema.optional(),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n value: Script.NodePropertiesSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.NodePropertiesSchema = zod_1.default.lazy(() => zod_1.default.object({\n nodeType: exports.JsUintSchema,\n childNodeCount: exports.JsUintSchema,\n attributes: zod_1.default.record(zod_1.default.string(), zod_1.default.string()).optional(),\n children: zod_1.default.array(Script.NodeRemoteValueSchema).optional(),\n localName: zod_1.default.string().optional(),\n mode: zod_1.default.enum(['open', 'closed']).optional(),\n namespaceURI: zod_1.default.string().optional(),\n nodeValue: zod_1.default.string().optional(),\n shadowRoot: zod_1.default.union([Script.NodeRemoteValueSchema, zod_1.default.null()]).optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.WindowProxyRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('window'),\n value: Script.WindowProxyPropertiesSchema,\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.WindowProxyPropertiesSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ResultOwnershipSchema = zod_1.default.lazy(() => zod_1.default.enum(['root', 'none']));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SerializationOptionsSchema = zod_1.default.lazy(() => zod_1.default.object({\n maxDomDepth: zod_1.default.union([exports.JsUintSchema, zod_1.default.null()]).default(0).optional(),\n maxObjectDepth: zod_1.default\n .union([exports.JsUintSchema, zod_1.default.null()])\n .default(null)\n .optional(),\n includeShadowTree: zod_1.default\n .enum(['none', 'open', 'all'])\n .default('none')\n .optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SharedIdSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.StackFrameSchema = zod_1.default.lazy(() => zod_1.default.object({\n columnNumber: exports.JsUintSchema,\n functionName: zod_1.default.string(),\n lineNumber: exports.JsUintSchema,\n url: zod_1.default.string(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.StackTraceSchema = zod_1.default.lazy(() => zod_1.default.object({\n callFrames: zod_1.default.array(Script.StackFrameSchema),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SourceSchema = zod_1.default.lazy(() => zod_1.default.object({\n realm: Script.RealmSchema,\n context: BrowsingContext.BrowsingContextSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RealmTargetSchema = zod_1.default.lazy(() => zod_1.default.object({\n realm: Script.RealmSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ContextTargetSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n sandbox: zod_1.default.string().optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.TargetSchema = zod_1.default.lazy(() => zod_1.default.union([Script.RealmTargetSchema, Script.ContextTargetSchema]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.AddPreloadScriptSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.addPreloadScript'),\n params: Script.AddPreloadScriptParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.AddPreloadScriptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n functionDeclaration: zod_1.default.string(),\n arguments: zod_1.default.array(Script.ChannelValueSchema).optional(),\n contexts: zod_1.default.array(BrowsingContext.BrowsingContextSchema).optional(),\n sandbox: zod_1.default.string().optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.AddPreloadScriptResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n script: Script.PreloadScriptSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.DisownSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.disown'),\n params: Script.DisownParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.DisownParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n handles: zod_1.default.array(Script.HandleSchema),\n target: Script.TargetSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.CallFunctionParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n functionDeclaration: zod_1.default.string(),\n awaitPromise: zod_1.default.boolean(),\n target: Script.TargetSchema,\n arguments: zod_1.default.array(Script.LocalValueSchema).optional(),\n resultOwnership: Script.ResultOwnershipSchema.optional(),\n serializationOptions: Script.SerializationOptionsSchema.optional(),\n this: Script.LocalValueSchema.optional(),\n userActivation: zod_1.default.boolean().default(false).optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.CallFunctionSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.callFunction'),\n params: Script.CallFunctionParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.EvaluateSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.evaluate'),\n params: Script.EvaluateParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.EvaluateParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n expression: zod_1.default.string(),\n target: Script.TargetSchema,\n awaitPromise: zod_1.default.boolean(),\n resultOwnership: Script.ResultOwnershipSchema.optional(),\n serializationOptions: Script.SerializationOptionsSchema.optional(),\n userActivation: zod_1.default.boolean().default(false).optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.GetRealmsSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.getRealms'),\n params: Script.GetRealmsParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.GetRealmsParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema.optional(),\n type: Script.RealmTypeSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.GetRealmsResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n realms: zod_1.default.array(Script.RealmInfoSchema),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RemovePreloadScriptSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.removePreloadScript'),\n params: Script.RemovePreloadScriptParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RemovePreloadScriptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n script: Script.PreloadScriptSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.MessageParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n channel: Script.ChannelSchema,\n data: Script.RemoteValueSchema,\n source: Script.SourceSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RealmCreatedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.realmCreated'),\n params: Script.RealmInfoSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.MessageSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.message'),\n params: Script.MessageParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RealmDestroyedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.realmDestroyed'),\n params: Script.RealmDestroyedParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RealmDestroyedParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n realm: Script.RealmSchema,\n }));\n})(Script || (exports.Script = Script = {}));\nexports.LogEventSchema = zod_1.default.lazy(() => Log.EntryAddedSchema);\nvar Log;\n(function (Log) {\n Log.LevelSchema = zod_1.default.lazy(() => zod_1.default.enum(['debug', 'info', 'warn', 'error']));\n})(Log || (exports.Log = Log = {}));\n(function (Log) {\n Log.EntrySchema = zod_1.default.lazy(() => zod_1.default.union([\n Log.GenericLogEntrySchema,\n Log.ConsoleLogEntrySchema,\n Log.JavascriptLogEntrySchema,\n ]));\n})(Log || (exports.Log = Log = {}));\n(function (Log) {\n Log.BaseLogEntrySchema = zod_1.default.lazy(() => zod_1.default.object({\n level: Log.LevelSchema,\n source: Script.SourceSchema,\n text: zod_1.default.union([zod_1.default.string(), zod_1.default.null()]),\n timestamp: exports.JsUintSchema,\n stackTrace: Script.StackTraceSchema.optional(),\n }));\n})(Log || (exports.Log = Log = {}));\n(function (Log) {\n Log.GenericLogEntrySchema = zod_1.default.lazy(() => Log.BaseLogEntrySchema.and(zod_1.default.object({\n type: zod_1.default.string(),\n })));\n})(Log || (exports.Log = Log = {}));\n(function (Log) {\n Log.ConsoleLogEntrySchema = zod_1.default.lazy(() => Log.BaseLogEntrySchema.and(zod_1.default.object({\n type: zod_1.default.literal('console'),\n method: zod_1.default.string(),\n args: zod_1.default.array(Script.RemoteValueSchema),\n })));\n})(Log || (exports.Log = Log = {}));\n(function (Log) {\n Log.JavascriptLogEntrySchema = zod_1.default.lazy(() => Log.BaseLogEntrySchema.and(zod_1.default.object({\n type: zod_1.default.literal('javascript'),\n })));\n})(Log || (exports.Log = Log = {}));\n(function (Log) {\n Log.EntryAddedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('log.entryAdded'),\n params: Log.EntrySchema,\n }));\n})(Log || (exports.Log = Log = {}));\nexports.InputCommandSchema = zod_1.default.lazy(() => zod_1.default.union([Input.PerformActionsSchema, Input.ReleaseActionsSchema]));\nvar Input;\n(function (Input) {\n Input.ElementOriginSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('element'),\n element: Script.SharedReferenceSchema,\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PerformActionsParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n actions: zod_1.default.array(Input.SourceActionsSchema),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.NoneSourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('none'),\n id: zod_1.default.string(),\n actions: zod_1.default.array(Input.NoneSourceActionSchema),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.KeySourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('key'),\n id: zod_1.default.string(),\n actions: zod_1.default.array(Input.KeySourceActionSchema),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerSourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('pointer'),\n id: zod_1.default.string(),\n parameters: Input.PointerParametersSchema.optional(),\n actions: zod_1.default.array(Input.PointerSourceActionSchema),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PerformActionsSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('input.performActions'),\n params: Input.PerformActionsParametersSchema,\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.SourceActionsSchema = zod_1.default.lazy(() => zod_1.default.union([\n Input.NoneSourceActionsSchema,\n Input.KeySourceActionsSchema,\n Input.PointerSourceActionsSchema,\n Input.WheelSourceActionsSchema,\n ]));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.NoneSourceActionSchema = zod_1.default.lazy(() => Input.PauseActionSchema);\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.KeySourceActionSchema = zod_1.default.lazy(() => zod_1.default.union([\n Input.PauseActionSchema,\n Input.KeyDownActionSchema,\n Input.KeyUpActionSchema,\n ]));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerTypeSchema = zod_1.default.lazy(() => zod_1.default.enum(['mouse', 'pen', 'touch']));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n pointerType: Input.PointerTypeSchema.default('mouse').optional(),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.WheelSourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('wheel'),\n id: zod_1.default.string(),\n actions: zod_1.default.array(Input.WheelSourceActionSchema),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerSourceActionSchema = zod_1.default.lazy(() => zod_1.default.union([\n Input.PauseActionSchema,\n Input.PointerDownActionSchema,\n Input.PointerUpActionSchema,\n Input.PointerMoveActionSchema,\n ]));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.WheelSourceActionSchema = zod_1.default.lazy(() => zod_1.default.union([Input.PauseActionSchema, Input.WheelScrollActionSchema]));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PauseActionSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('pause'),\n duration: exports.JsUintSchema.optional(),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.KeyDownActionSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('keyDown'),\n value: zod_1.default.string(),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.KeyUpActionSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('keyUp'),\n value: zod_1.default.string(),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerUpActionSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n type: zod_1.default.literal('pointerUp'),\n button: exports.JsUintSchema,\n })\n .and(Input.PointerCommonPropertiesSchema));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerDownActionSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n type: zod_1.default.literal('pointerDown'),\n button: exports.JsUintSchema,\n })\n .and(Input.PointerCommonPropertiesSchema));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerMoveActionSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n type: zod_1.default.literal('pointerMove'),\n x: exports.JsIntSchema,\n y: exports.JsIntSchema,\n duration: exports.JsUintSchema.optional(),\n origin: Input.OriginSchema.optional(),\n })\n .and(Input.PointerCommonPropertiesSchema));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.WheelScrollActionSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('scroll'),\n x: exports.JsIntSchema,\n y: exports.JsIntSchema,\n deltaX: exports.JsIntSchema,\n deltaY: exports.JsIntSchema,\n duration: exports.JsUintSchema.optional(),\n origin: Input.OriginSchema.default('viewport').optional(),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerCommonPropertiesSchema = zod_1.default.lazy(() => zod_1.default.object({\n width: exports.JsUintSchema.default(1).optional(),\n height: exports.JsUintSchema.default(1).optional(),\n pressure: zod_1.default.number().default(0).optional(),\n tangentialPressure: zod_1.default.number().default(0).optional(),\n twist: zod_1.default\n .number()\n .int()\n .nonnegative()\n .gte(0)\n .lte(359)\n .default(0)\n .optional(),\n altitudeAngle: zod_1.default\n .number()\n .gte(0)\n .lte(1.5707963267948966)\n .default(0)\n .optional(),\n azimuthAngle: zod_1.default\n .number()\n .gte(0)\n .lte(6.283185307179586)\n .default(0)\n .optional(),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.OriginSchema = zod_1.default.lazy(() => zod_1.default.union([\n zod_1.default.literal('viewport'),\n zod_1.default.literal('pointer'),\n Input.ElementOriginSchema,\n ]));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.ReleaseActionsSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('input.releaseActions'),\n params: Input.ReleaseActionsParametersSchema,\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.ReleaseActionsParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n }));\n})(Input || (exports.Input = Input = {}));\n//# sourceMappingURL=webdriver-bidi.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Cdp = exports.Input = exports.Session = exports.BrowsingContext = exports.Script = exports.Network = exports.parseObject = void 0;\n/**\n * @fileoverview Provides parsing and validator for WebDriver BiDi protocol.\n * Parser types should match the `../protocol` types.\n */\nconst zod_1 = require(\"zod\");\nconst protocol_js_1 = require(\"../protocol/protocol.js\");\nconst WebDriverBidi = __importStar(require(\"./webdriver-bidi.js\"));\nfunction parseObject(obj, schema) {\n const parseResult = schema.safeParse(obj);\n if (parseResult.success) {\n return parseResult.data;\n }\n const errorMessage = parseResult.error.errors\n .map((e) => `${e.message} in ` +\n `${e.path.map((p) => JSON.stringify(p)).join('/')}.`)\n .join(' ');\n throw new protocol_js_1.InvalidArgumentException(errorMessage);\n}\nexports.parseObject = parseObject;\n/** @see https://w3c.github.io/webdriver-bidi/#module-network */\nvar Network;\n(function (Network) {\n function parseAddInterceptParameters(params) {\n return parseObject(params, WebDriverBidi.Network.AddInterceptParametersSchema);\n }\n Network.parseAddInterceptParameters = parseAddInterceptParameters;\n function parseContinueRequestParameters(params) {\n return parseObject(params, WebDriverBidi.Network.ContinueRequestParametersSchema);\n }\n Network.parseContinueRequestParameters = parseContinueRequestParameters;\n function parseContinueResponseParameters(params) {\n return parseObject(params, WebDriverBidi.Network.ContinueResponseParametersSchema);\n }\n Network.parseContinueResponseParameters = parseContinueResponseParameters;\n function parseContinueWithAuthParameters(params) {\n return parseObject(params, WebDriverBidi.Network.ContinueWithAuthParametersSchema);\n }\n Network.parseContinueWithAuthParameters = parseContinueWithAuthParameters;\n function parseFailRequestParameters(params) {\n return parseObject(params, WebDriverBidi.Network.FailRequestParametersSchema);\n }\n Network.parseFailRequestParameters = parseFailRequestParameters;\n function parseProvideResponseParameters(params) {\n return parseObject(params, WebDriverBidi.Network.ProvideResponseParametersSchema);\n }\n Network.parseProvideResponseParameters = parseProvideResponseParameters;\n function parseRemoveInterceptParameters(params) {\n return parseObject(params, WebDriverBidi.Network.RemoveInterceptParametersSchema);\n }\n Network.parseRemoveInterceptParameters = parseRemoveInterceptParameters;\n})(Network || (exports.Network = Network = {}));\n/** @see https://w3c.github.io/webdriver-bidi/#module-script */\nvar Script;\n(function (Script) {\n function parseGetRealmsParams(params) {\n return parseObject(params, WebDriverBidi.Script.GetRealmsParametersSchema);\n }\n Script.parseGetRealmsParams = parseGetRealmsParams;\n function parseEvaluateParams(params) {\n return parseObject(params, WebDriverBidi.Script.EvaluateParametersSchema);\n }\n Script.parseEvaluateParams = parseEvaluateParams;\n function parseDisownParams(params) {\n return parseObject(params, WebDriverBidi.Script.DisownParametersSchema);\n }\n Script.parseDisownParams = parseDisownParams;\n function parseAddPreloadScriptParams(params) {\n return parseObject(params, WebDriverBidi.Script.AddPreloadScriptParametersSchema);\n }\n Script.parseAddPreloadScriptParams = parseAddPreloadScriptParams;\n function parseRemovePreloadScriptParams(params) {\n return parseObject(params, WebDriverBidi.Script.RemovePreloadScriptParametersSchema);\n }\n Script.parseRemovePreloadScriptParams = parseRemovePreloadScriptParams;\n function parseCallFunctionParams(params) {\n return parseObject(params, WebDriverBidi.Script.CallFunctionParametersSchema);\n }\n Script.parseCallFunctionParams = parseCallFunctionParams;\n})(Script || (exports.Script = Script = {}));\n/** @see https://w3c.github.io/webdriver-bidi/#module-browsingContext */\nvar BrowsingContext;\n(function (BrowsingContext) {\n function parseActivateParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.ActivateParametersSchema);\n }\n BrowsingContext.parseActivateParams = parseActivateParams;\n function parseGetTreeParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.GetTreeParametersSchema);\n }\n BrowsingContext.parseGetTreeParams = parseGetTreeParams;\n function parseNavigateParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.NavigateParametersSchema);\n }\n BrowsingContext.parseNavigateParams = parseNavigateParams;\n function parseReloadParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.ReloadParametersSchema);\n }\n BrowsingContext.parseReloadParams = parseReloadParams;\n function parseCreateParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.CreateParametersSchema);\n }\n BrowsingContext.parseCreateParams = parseCreateParams;\n function parseCloseParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.CloseParametersSchema);\n }\n BrowsingContext.parseCloseParams = parseCloseParams;\n function parseCaptureScreenshotParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.CaptureScreenshotParametersSchema);\n }\n BrowsingContext.parseCaptureScreenshotParams = parseCaptureScreenshotParams;\n function parsePrintParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.PrintParametersSchema);\n }\n BrowsingContext.parsePrintParams = parsePrintParams;\n function parseSetViewportParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.SetViewportParametersSchema);\n }\n BrowsingContext.parseSetViewportParams = parseSetViewportParams;\n function parseTraverseHistoryParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.TraverseHistoryParametersSchema);\n }\n BrowsingContext.parseTraverseHistoryParams = parseTraverseHistoryParams;\n function parseHandleUserPromptParameters(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.HandleUserPromptParametersSchema);\n }\n BrowsingContext.parseHandleUserPromptParameters = parseHandleUserPromptParameters;\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n/** @see https://w3c.github.io/webdriver-bidi/#module-session */\nvar Session;\n(function (Session) {\n function parseSubscribeParams(params) {\n return parseObject(params, WebDriverBidi.Session.SubscriptionRequestSchema);\n }\n Session.parseSubscribeParams = parseSubscribeParams;\n})(Session || (exports.Session = Session = {}));\nvar Input;\n(function (Input) {\n function parsePerformActionsParams(params) {\n return parseObject(params, WebDriverBidi.Input.PerformActionsParametersSchema);\n }\n Input.parsePerformActionsParams = parsePerformActionsParams;\n function parseReleaseActionsParams(params) {\n return parseObject(params, WebDriverBidi.Input.ReleaseActionsParametersSchema);\n }\n Input.parseReleaseActionsParams = parseReleaseActionsParams;\n})(Input || (exports.Input = Input = {}));\nvar Cdp;\n(function (Cdp) {\n const SendCommandRequestSchema = zod_1.z.object({\n // Allowing any cdpMethod, and casting to proper type later on.\n method: zod_1.z.string(),\n // `passthrough` allows object to have any fields.\n // https://github.com/colinhacks/zod#passthrough\n params: zod_1.z.object({}).passthrough().optional(),\n session: zod_1.z.string().optional(),\n });\n const GetSessionRequestSchema = zod_1.z.object({\n context: WebDriverBidi.BrowsingContext.BrowsingContextSchema,\n });\n function parseSendCommandRequest(params) {\n return parseObject(params, SendCommandRequestSchema);\n }\n Cdp.parseSendCommandRequest = parseSendCommandRequest;\n function parseGetSessionRequest(params) {\n return parseObject(params, GetSessionRequestSchema);\n }\n Cdp.parseGetSessionRequest = parseGetSessionRequest;\n})(Cdp || (exports.Cdp = Cdp = {}));\n//# sourceMappingURL=protocol-parser.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BidiParser = void 0;\nconst Parser = __importStar(require(\"../protocol-parser/protocol-parser.js\"));\nclass BidiParser {\n // Browsing Context domain\n // keep-sorted start block=yes\n parseActivateParams(params) {\n return Parser.BrowsingContext.parseActivateParams(params);\n }\n parseCaptureScreenshotParams(params) {\n return Parser.BrowsingContext.parseCaptureScreenshotParams(params);\n }\n parseCloseParams(params) {\n return Parser.BrowsingContext.parseCloseParams(params);\n }\n parseCreateParams(params) {\n return Parser.BrowsingContext.parseCreateParams(params);\n }\n parseGetTreeParams(params) {\n return Parser.BrowsingContext.parseGetTreeParams(params);\n }\n parseHandleUserPromptParams(params) {\n return Parser.BrowsingContext.parseHandleUserPromptParameters(params);\n }\n parseNavigateParams(params) {\n return Parser.BrowsingContext.parseNavigateParams(params);\n }\n parsePrintParams(params) {\n return Parser.BrowsingContext.parsePrintParams(params);\n }\n parseReloadParams(params) {\n return Parser.BrowsingContext.parseReloadParams(params);\n }\n parseSetViewportParams(params) {\n return Parser.BrowsingContext.parseSetViewportParams(params);\n }\n parseTraverseHistoryParams(params) {\n return Parser.BrowsingContext.parseTraverseHistoryParams(params);\n }\n // keep-sorted end\n // CDP domain\n // keep-sorted start block=yes\n parseGetSessionParams(params) {\n return Parser.Cdp.parseGetSessionRequest(params);\n }\n parseSendCommandParams(params) {\n return Parser.Cdp.parseSendCommandRequest(params);\n }\n // keep-sorted end\n // Input domain\n // keep-sorted start block=yes\n parsePerformActionsParams(params) {\n return Parser.Input.parsePerformActionsParams(params);\n }\n parseReleaseActionsParams(params) {\n return Parser.Input.parseReleaseActionsParams(params);\n }\n // keep-sorted end\n // Network domain\n // keep-sorted start block=yes\n parseAddInterceptParams(params) {\n return Parser.Network.parseAddInterceptParameters(params);\n }\n parseContinueRequestParams(params) {\n return Parser.Network.parseContinueRequestParameters(params);\n }\n parseContinueResponseParams(params) {\n return Parser.Network.parseContinueResponseParameters(params);\n }\n parseContinueWithAuthParams(params) {\n return Parser.Network.parseContinueWithAuthParameters(params);\n }\n parseFailRequestParams(params) {\n return Parser.Network.parseFailRequestParameters(params);\n }\n parseProvideResponseParams(params) {\n return Parser.Network.parseProvideResponseParameters(params);\n }\n parseRemoveInterceptParams(params) {\n return Parser.Network.parseRemoveInterceptParameters(params);\n }\n // keep-sorted end\n // Script domain\n // keep-sorted start block=yes\n parseAddPreloadScriptParams(params) {\n return Parser.Script.parseAddPreloadScriptParams(params);\n }\n parseCallFunctionParams(params) {\n return Parser.Script.parseCallFunctionParams(params);\n }\n parseDisownParams(params) {\n return Parser.Script.parseDisownParams(params);\n }\n parseEvaluateParams(params) {\n return Parser.Script.parseEvaluateParams(params);\n }\n parseGetRealmsParams(params) {\n return Parser.Script.parseGetRealmsParams(params);\n }\n parseRemovePreloadScriptParams(params) {\n return Parser.Script.parseRemovePreloadScriptParams(params);\n }\n // keep-sorted end\n // Session domain\n // keep-sorted start block=yes\n parseSubscribeParams(params) {\n return Parser.Session.parseSubscribeParams(params);\n }\n}\nexports.BidiParser = BidiParser;\n//# sourceMappingURL=BidiParser.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.log = exports.generatePage = void 0;\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nconst log_js_1 = require(\"../utils/log.js\");\n/** HTML source code for the user-facing Mapper tab. */\nconst mapperPageSource = 'BiDi-CDP Mapper

BiDi-CDP Mapper is controlling this tab

Closing or reloading it will stop the BiDi process. Details.

Debug information
';\n/**\n * The following piece of HTML should be added to the `debug` element:\n *\n *
\n *
\n *

${name}

\n *
\n */\nfunction findOrCreateTypeLogContainer(logPrefix) {\n const logType = logPrefix.split(':')[0];\n const containerId = `${logType}_log`;\n const existingContainer = document.getElementById(containerId);\n if (existingContainer) {\n return existingContainer;\n }\n const debugElement = document.getElementById('details');\n const divider = document.createElement('div');\n divider.className = 'divider';\n debugElement.appendChild(divider);\n const htmlItem = document.createElement('div');\n htmlItem.className = 'item';\n htmlItem.innerHTML = `

${logType}

`;\n debugElement.appendChild(htmlItem);\n return document.getElementById(containerId);\n}\nfunction generatePage() {\n // If run not in browser (e.g. unit test), do nothing.\n if (!globalThis.document.documentElement) {\n return;\n }\n globalThis.document.documentElement.innerHTML = mapperPageSource;\n // Create main log containers in proper order.\n findOrCreateTypeLogContainer(log_js_1.LogType.debugInfo);\n findOrCreateTypeLogContainer(log_js_1.LogType.bidi);\n findOrCreateTypeLogContainer(log_js_1.LogType.cdp);\n}\nexports.generatePage = generatePage;\nfunction stringify(message) {\n if (typeof message === 'object') {\n return JSON.stringify(message, null, 2);\n }\n return message;\n}\nfunction log(logPrefix, ...messages) {\n // If run not in browser (e.g. unit test), do nothing.\n if (!globalThis.document.documentElement) {\n return;\n }\n // Skip sending BiDi logs as they are logged once by `bidi:server:*`\n if (!logPrefix.startsWith(log_js_1.LogType.bidi)) {\n // If `sendDebugMessage` is defined, send the log message there.\n global.window?.sendDebugMessage?.(JSON.stringify({ logType: logPrefix, messages }));\n }\n const typeLogContainer = findOrCreateTypeLogContainer(logPrefix);\n // This piece of HTML should be added:\n //
...log message...
\n const lineElement = document.createElement('div');\n lineElement.className = 'pre';\n lineElement.textContent = [logPrefix, ...messages].map(stringify).join(' ');\n typeLogContainer.appendChild(lineElement);\n}\nexports.log = log;\n//# sourceMappingURL=mapperTabPage.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WindowCdpTransport = exports.WindowBidiTransport = void 0;\nconst log_js_1 = require(\"../utils/log.js\");\nconst mapperTabPage_js_1 = require(\"./mapperTabPage.js\");\nclass WindowBidiTransport {\n static LOGGER_PREFIX_RECV = `${log_js_1.LogType.bidi}:RECV ◂`;\n static LOGGER_PREFIX_SEND = `${log_js_1.LogType.bidi}:SEND ▸`;\n #onMessage = null;\n constructor() {\n window.onBidiMessage = (message) => {\n (0, mapperTabPage_js_1.log)(WindowBidiTransport.LOGGER_PREFIX_RECV, message);\n try {\n const command = WindowBidiTransport.#parseBidiMessage(message);\n this.#onMessage?.call(null, command);\n }\n catch (e) {\n const error = e instanceof Error ? e : new Error(e);\n // Transport-level error does not provide channel.\n this.#respondWithError(message, \"invalid argument\" /* ErrorCode.InvalidArgument */, error, null);\n }\n };\n }\n setOnMessage(onMessage) {\n this.#onMessage = onMessage;\n }\n sendMessage(message) {\n (0, mapperTabPage_js_1.log)(WindowBidiTransport.LOGGER_PREFIX_SEND, message);\n const json = JSON.stringify(message);\n window.sendBidiResponse(json);\n }\n close() {\n this.#onMessage = null;\n window.onBidiMessage = null;\n }\n #respondWithError(plainCommandData, errorCode, error, channel) {\n const errorResponse = WindowBidiTransport.#getErrorResponse(plainCommandData, errorCode, error);\n if (channel) {\n this.sendMessage({\n ...errorResponse,\n channel,\n });\n }\n else {\n this.sendMessage(errorResponse);\n }\n }\n static #getJsonType(value) {\n if (value === null) {\n return 'null';\n }\n if (Array.isArray(value)) {\n return 'array';\n }\n return typeof value;\n }\n static #getErrorResponse(message, errorCode, error) {\n // XXX: this is bizarre per spec. We reparse the payload and\n // extract the ID, regardless of what kind of value it was.\n let messageId;\n try {\n const command = JSON.parse(message);\n if (WindowBidiTransport.#getJsonType(command) === 'object' &&\n 'id' in command) {\n messageId = command.id;\n }\n }\n catch { }\n return {\n type: 'error',\n id: messageId,\n error: errorCode,\n message: error.message,\n };\n }\n static #parseBidiMessage(message) {\n let command;\n try {\n command = JSON.parse(message);\n }\n catch {\n throw new Error('Cannot parse data as JSON');\n }\n const type = WindowBidiTransport.#getJsonType(command);\n if (type !== 'object') {\n throw new Error(`Expected JSON object but got ${type}`);\n }\n // Extract and validate id, method and params.\n const { id, method, params } = command;\n const idType = WindowBidiTransport.#getJsonType(id);\n if (idType !== 'number' || !Number.isInteger(id) || id < 0) {\n // TODO: should uint64_t be the upper limit?\n // https://tools.ietf.org/html/rfc7049#section-2.1\n throw new Error(`Expected unsigned integer but got ${idType}`);\n }\n const methodType = WindowBidiTransport.#getJsonType(method);\n if (methodType !== 'string') {\n throw new Error(`Expected string method but got ${methodType}`);\n }\n const paramsType = WindowBidiTransport.#getJsonType(params);\n if (paramsType !== 'object') {\n throw new Error(`Expected object params but got ${paramsType}`);\n }\n let channel = command.channel;\n if (channel !== undefined) {\n const channelType = WindowBidiTransport.#getJsonType(channel);\n if (channelType !== 'string') {\n throw new Error(`Expected string channel but got ${channelType}`);\n }\n // Empty string channel is considered as no channel provided.\n if (channel === '') {\n channel = undefined;\n }\n }\n return { id, method, params, channel };\n }\n}\nexports.WindowBidiTransport = WindowBidiTransport;\nclass WindowCdpTransport {\n #onMessage = null;\n constructor() {\n window.cdp.onmessage = (message) => {\n this.#onMessage?.call(null, message);\n };\n }\n setOnMessage(onMessage) {\n this.#onMessage = onMessage;\n }\n sendMessage(message) {\n window.cdp.send(message);\n }\n close() {\n this.#onMessage = null;\n window.cdp.onmessage = null;\n }\n}\nexports.WindowCdpTransport = WindowCdpTransport;\n//# sourceMappingURL=Transport.js.map","\"use strict\";\n/**\n * Copyright 2021 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * @license\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst BidiMapper_js_1 = require(\"../bidiMapper/BidiMapper.js\");\nconst CdpConnection_js_1 = require(\"../cdp/CdpConnection.js\");\nconst log_js_1 = require(\"../utils/log.js\");\nconst BidiParser_js_1 = require(\"./BidiParser.js\");\nconst mapperTabPage_js_1 = require(\"./mapperTabPage.js\");\nconst Transport_js_1 = require(\"./Transport.js\");\n(0, mapperTabPage_js_1.generatePage)();\nconst mapperTabToServerTransport = new Transport_js_1.WindowBidiTransport();\nconst cdpTransport = new Transport_js_1.WindowCdpTransport();\n/**\n * A CdpTransport implementation that uses the window.cdp bindings\n * injected by Target.exposeDevToolsProtocol.\n */\nconst cdpConnection = new CdpConnection_js_1.CdpConnection(cdpTransport, mapperTabPage_js_1.log);\n/**\n * Launches the BiDi mapper instance.\n * @param {string} selfTargetId\n * @param options Mapper options. E.g. `acceptInsecureCerts`.\n */\nasync function runMapperInstance(selfTargetId, options) {\n // eslint-disable-next-line no-console\n console.log('Launching Mapper instance with selfTargetId:', selfTargetId);\n const bidiServer = await BidiMapper_js_1.BidiServer.createAndStart(mapperTabToServerTransport, cdpConnection, \n /**\n * Create a Browser CDP Session per Mapper instance.\n */\n await cdpConnection.createBrowserSession(), selfTargetId, options, new BidiParser_js_1.BidiParser(), mapperTabPage_js_1.log);\n (0, mapperTabPage_js_1.log)(log_js_1.LogType.debugInfo, 'Mapper instance has been launched');\n return bidiServer;\n}\n/**\n * Set `window.runMapper` to a function which launches the BiDi mapper instance.\n * @param selfTargetId Needed to filter out info related to BiDi target.\n * @param options Mapper options. E.g. `acceptInsecureCerts`. */\nwindow.runMapperInstance = async (selfTargetId, options) => {\n await runMapperInstance(selfTargetId, options);\n};\n/**\n * @deprecated Use `runMapperInstance` instead. Used for backward compatibility\n * with ChromeDriver.\n */\n// TODO: Remove this after https://crrev.com/c/4952609 reaches stable.\nwindow.setSelfTargetId = async (selfTargetId) => {\n const bidiServer = await runMapperInstance(selfTargetId);\n bidiServer.emitOutgoingMessage(BidiMapper_js_1.OutgoingMessage.createResolved({\n launched: true,\n }), 'launched');\n};\n//# sourceMappingURL=bidiTab.js.map"],"names":["n","all","Map","on","t","e","i","get","push","set","off","splice","indexOf","emit","slice","map","__importDefault","this","mod","__esModule","default","Object","defineProperty","EventEmitter_1","value","EventEmitter","mitt_1","require$$0","EventEmitter$1","emitter","type","handler","once","event","onceHandler","eventData","removeAllListeners","delete","clear","LogType","log","ProcessingQueue_1","ProcessingQueue","log_js_1","static","debug","logger","processor","queue","isProcessing","constructor","add","entry","name","processIfNeeded","length","arrayEntry","shift","entryPromise","LOGGER_PREFIX","then","kind","debugError","error","message","stack","catch","ProcessingQueue$1","cdp","BiDiModule","Script","Log","BrowsingContext","Network","chromiumBidi","EVENT_NAMES","EventNames","Set","values","webdriverBidi","ErrorResponse","UnsupportedOperationException","UnableToCloseBrowserException","UnableToCaptureScreenException","UnknownCommandException","SessionNotCreatedException","NoSuchScriptException","NoSuchNodeException","NoSuchInterceptException","NoSuchHistoryEntryException","NoSuchFrameException","NoSuchElementException","MoveTargetOutOfBoundsException","InvalidSessionIdException","InvalidArgumentException","Exception","stacktrace","toErrorResponse","commandId","id","super","NoSuchAlertException","NoSuchHandleException","NoSuchRequestException","UnknownErrorException","Error","__createBinding","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","writable","configurable","enumerable","__setModuleDefault","v","__importStar","result","prototype","hasOwnProperty","call","__exportStar","exports","p","ChromiumBidi","Cdp","require$$1","require$$2","require$$3","BidiNoOpParser_1","BidiNoOpParser","BidiNoOpParser$1","parseActivateParams","params","parseCaptureScreenshotParams","parseCloseParams","parseCreateParams","parseGetTreeParams","parseHandleUserPromptParams","parseNavigateParams","parsePrintParams","parseReloadParams","parseSetViewportParams","parseTraverseHistoryParams","parseGetSessionParams","parseSendCommandParams","parseAddPreloadScriptParams","parseCallFunctionParams","parseDisownParams","parseEvaluateParams","parseGetRealmsParams","parseRemovePreloadScriptParams","parsePerformActionsParams","parseReleaseActionsParams","parseAddInterceptParams","parseContinueRequestParams","parseContinueResponseParams","parseContinueWithAuthParams","parseFailRequestParams","parseProvideResponseParams","parseRemoveInterceptParams","parseSubscribeParams","BrowserProcessor_1","BrowserProcessor","BrowserProcessor$1","browserCdpClient","close","setTimeout","sendCommand","CdpProcessor_1","CdpProcessor","CdpProcessor$1","browsingContextStorage","cdpConnection","getSession","context","sessionId","getContext","cdpTarget","cdpSessionId","session","client","getCdpClient","method","uuid","uuidv4","globalThis","crypto","randomUUID","randomValues","Uint8Array","getRandomValues","require","webcrypto","bytesToHex","bytes","reduce","str","byte","toString","padStart","subarray","join","ChannelProxy_1","ChannelProxy","protocol_js_1","uuid_js_1","properties","channel","init","realm","eventManager","channelHandle","createAndGetHandleInRealm","sendMessageHandle","createSendMessageHandle","startListener","startListenerFromWindow","getHandleFromWindow","createChannelProxyEvalStr","String","queueNonEmptyResolver","getMessage","onMessage","Promise","resolve","sendMessage","createChannelHandleResult","cdpClient","expression","contextId","executionContextId","serializationOptions","serialization","exceptionDetails","objectId","functionDeclaration","arguments","async","awaitPromise","maxDepth","maxObjectDepth","registerEvent","Message","data","cdpToBidiValue","ownership","source","realmId","browsingContextId","channelHandleResult","w","window","channelProxy","getEvalInWindowStr","delegate","channelProxyEval","ChannelProxy$1","Realm_1","Realm","ChannelProxy_js_1","SHARED_ID_DIVIDER","realmStorage","origin","sandbox","addRealm","RealmCreated","realmInfo","cdpValue","resultOwnership","bidiValue","deepSerializedToBiDi","deepSerializedValue","handle","knownHandlesToRealmMap","releaseObject","subtype","internalIdMap","hasOwn","weakLocalObjectReference","has","internalId","sharedId","navigableId","backendNodeId","children","shadowRoot","namespaceURI","includes","findContext","evaluate","userActivation","targetUnblockedOrThrow","cdpEvaluateResult","getSerializationOptions","userGesture","getExceptionResult","serializeCdpObject","cdpRemoteObject","argument","cdpRemoteObjectToCallArgument","remoteObject","unserializableValue","stringifyObject","returnByValue","flattenKeyValuePairs","mappingLocalValue","keyValueArray","key","keyArg","deserializeToCdpArg","valueArg","flattenValueList","listLocalValue","localValue","serializeCdpExceptionDetails","cdpExceptionDetails","lineOffset","callFrames","stackTrace","frame","url","functionName","lineNumber","columnNumber","exception","text","callFunction","thisLocalValue","argumentsLocalValues","callFunctionAndSerializeScript","thisAndArgumentsList","argumentLocalValue","cdpCallFunctionResult","code","rawBackendNodeId","split","parseInt","isNaN","object","Boolean","JSON","stringify","pattern","flags","args","additionalParameters","getAdditionalSerializationParameters","getMaxObjectDepth","maxDomDepth","includeShadowTree","disown","dispose","RealmDestroyed","Realm$1","assert_1","assert","assert$1","predicate","Deferred_1","Deferred","isFinished","promise","reject","_error","onFulfilled","onRejected","reason","onFinally","finally","Symbol","toStringTag","Deferred$1","unitConversions","inchesFromCm","cm","BrowsingContextImpl_1","BrowsingContextImpl$1","serializeOrigin","BrowsingContextImpl","assert_js_1","Deferred_js_1","unitConversions_js_1","require$$4","Realm_js_1","require$$5","parentId","deferreds","Page","navigatedWithinDocument","lifecycleEvent","DOMContentLoaded","load","frameStartedLoading","loaderId","maybeDefaultRealm","initListeners","addContext","isTopLevelContext","parent","addChild","ContextCreated","serializeToBidiValue","getTimestamp","Date","getTime","deleteAllChildren","deleteRealms","failDeferredsIfNotFinished","ContextDestroyed","deleteContextById","directChildren","allChildren","concat","child","top","topContext","childId","defaultRealm","updateCdpTarget","lifecycleLoaded","targetUnblocked","getOrCreateSandbox","maybeSandboxes","findRealms","frameId","worldName","addParentField","c","onTargetInfoChanged","targetInfo","urlFragment","timestamp","FragmentNavigated","navigation","NavigationStarted","documentChanged","DomContentLoaded","Load","auxData","uniqueId","isDefault","getChannels","accepted","UserPromptClosed","userText","userInput","UserPromptOpened","defaultValue","defaultPrompt","resetDeferredsIfFinished","navigate","wait","URL","cdpNavigateResult","errorText","reload","ignoreCache","setViewport","viewport","devicePixelRatio","width","height","deviceScaleFactor","mobile","dontSetVisibleSize","err","startsWith","handleUserPrompt","accept","promptText","activate","captureScreenshot","formatParameters","quality","format","Math","round","getImageFormatParameters","script","captureBeyondViewport","element","document","documentElement","x","y","scrollWidth","scrollHeight","visualViewport","pageLeft","pageTop","originResult","deserializeDOMRect","rect","clip","first","second","normalizeRect","max","min","getIntersectionRect","parseRect","scale","print","cdpParams","background","printBackground","margin","bottom","marginBottom","left","marginLeft","right","marginRight","marginTop","orientation","landscape","page","paperHeight","paperWidth","pageRanges","range","rangeParts","parseInteger","lowerBound","upperBound","rangeLowerPart","rangeUpperPart","Number","MAX_SAFE_INTEGER","shrinkToFit","preferCSSPageSize","Element","getBoundingClientRect","traverseHistory","delta","history","entries","currentIndex","entryId","find","box","trim","test","logHelper","getRemoteValuesText","logMessageFormatter","specifiers","isFormatSpecifier","some","spec","output","argFormat","argValues","tokens","RegExp","token","arg","stringFromArg","parseFloat","toJson","pair","val","formatText","LogManager_1","LogManager","logHelper_js_1","getBidiStackTrace","cdpStackTrace","stackFrames","callFrame","logManager","initializeEntryAddedEventListener","findRealm","argsPromise","registerPromiseEvent","LogEntryAdded","level","consoleApiType","getExceptionText","LogManager$1","NetworkUtils","cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction","cdpFetchHeadersFromBidiNetworkHeaders","bidiNetworkHeadersFromCdpFetchHeaders","cdpNetworkHeadersFromBidiNetworkHeaders","bidiNetworkHeadersFromCdpNetworkHeaders","computeHeadersSize","headers","requestHeaders","acc","header","TextEncoder","encode","action","NetworkRequest_1","NetworkRequest","NetworkUtils_js_1","requestId","interceptPhase","servedFromCache","redirectCount","networkStorage","request","response","beforeRequestSentDeferred","responseStartedDeferred","responseCompletedDeferred","info","isRedirecting","handleRedirect","queueResponseStartedEvent","queueResponseCompletedEvent","hasExtraInfo","redirectHasExtraInfo","redirectResponse","emitEventsIfReady","wasRedirected","requestExtraInfoCompleted","extraInfo","responseExtraInfoCompleted","onRequestWillBeSentEvent","queueBeforeRequestSentEvent","onRequestWillBeSentExtraInfoEvent","onResponseReceivedExtraInfoEvent","onResponseReceivedEvent","onServedFromCache","onLoadingFailedEvent","FetchError","getBaseEventParams","onRequestPaused","isIgnoredEvent","continueRequest","phase","responseErrorReason","responseStatusCode","responseStatusText","responseHeaders","networkId","addBlockedRequest","protocol","status","statusText","fromCache","mimeType","bytesReceived","headersSize","bodySize","content","size","authChallenge","failRequest","errorReason","cdpFetchRequestId","continueResponse","responseCode","responsePhrase","continueWithAuth","username","password","authChallengeResponse","provideResponse","body","btoa","statusCode","isBlocked","intercepts","getNetworkIntercepts","getNavigationId","getRequestData","wallTime","cookies","getCookies","associatedCookies","unknown","timings","getTimings","timeOrigin","requestTime","redirectStart","redirectEnd","fetchStart","dnsStart","dnsEnd","connectStart","connectEnd","tlsStart","requestStart","responseStart","responseEnd","assign","getBeforeRequestEvent","BeforeRequestSent","initiator","getInitiatorType","getResponseStartedEvent","ResponseStarted","fromDiskCache","fromPrefetchCache","encodedDataLength","getResponseReceivedEvent","ResponseCompleted","endsWith","initiatorType","filter","blockedReasons","Array","isArray","cookie","domain","path","expires","httpOnly","secure","sameSite","getCookiesSameSite","cdpSameSiteValue","NetworkRequest$1","NetworkManager_1","NetworkManager","NetworkRequest_js_1","getOrCreateNetworkRequest","getRequest","addRequest","networkManager","disposeRequestMap","deleteRequest","NetworkManager$1","CdpTarget_1","CdpTarget","LogManager_js_1","NetworkManager_js_1","targetId","preloadScriptStorage","acceptInsecureCerts","setEventListeners","unblock","fetchEnable","getFetchEnableParams","fetchDisable","enabled","ignore","autoAttach","waitForDebuggerOnStart","flatten","initAndEvaluatePreloadScripts","isCloseError","flatMap","channels","global","initInTarget","CdpTarget$1","BrowsingContextProcessor_1","BrowsingContextProcessor","BrowsingContextImpl_js_1","CdpTarget_js_1","BrowsingContextProcessor$1","selfTargetId","getTree","contexts","root","getTopLevelContexts","MAX_VALUE","referenceContext","newWindow","detachedFromTargetPromise","onContextDestroyed","promptUnload","handleAttachedToTargetEvent","handleDetachedFromTargetEvent","handleTargetInfoChangedEvent","handleFrameAttachedEvent","handleFrameDetachedEvent","parentBrowsingContext","parentFrameId","parentSessionCdpClient","targetCdpClient","debugInfo","maybeContext","browsingContext","findContextBySession","handleWorkerTarget","workers","preloadScript","worker","InputSource","WheelSource","KeySource","NoneSource","pressed","modifiers","alt","setModifier","ctrl","meta","bit","PointerSource","pointerId","buttons","button","ClickContext","count","time","compare","DOUBLE_CLICK_TIME_MS","abs","MAX_DOUBLE_CLICK_RADIUS","clickContexts","setClickCount","storedContext","getClickCount","keyUtils","getKeyLocation","getKeyCode","getNormalizedKey","USKeyboardLayout","KeyToKeyCode","Abort","Help","Backspace","Tab","Numpad5","NumpadEnter","Enter","ShiftLeft","ShiftRight","ControlLeft","ControlRight","AltLeft","AltRight","Pause","CapsLock","Escape","Convert","NonConvert","Space","Numpad9","PageUp","Numpad3","PageDown","End","Numpad1","Home","Numpad7","ArrowLeft","Numpad4","Numpad8","ArrowUp","ArrowRight","Numpad6","Numpad2","ArrowDown","Select","Open","PrintScreen","Insert","Numpad0","Delete","NumpadDecimal","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","KeyA","KeyB","KeyC","KeyD","KeyE","KeyF","KeyG","KeyH","KeyI","KeyJ","KeyK","KeyL","KeyM","KeyN","KeyO","KeyP","KeyQ","KeyR","KeyS","KeyT","KeyU","KeyV","KeyW","KeyX","KeyY","KeyZ","MetaLeft","MetaRight","ContextMenu","NumpadMultiply","NumpadAdd","NumpadSubtract","NumpadDivide","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","F13","F14","F15","F16","F17","F18","F19","F20","F21","F22","F23","F24","NumLock","ScrollLock","AudioVolumeMute","AudioVolumeDown","AudioVolumeUp","MediaTrackNext","MediaTrackPrevious","MediaStop","MediaPlayPause","Semicolon","Equal","NumpadEqual","Comma","Minus","Period","Slash","Backquote","BracketLeft","Backslash","BracketRight","Quote","AltGraph","Props","Cancel","Clear","Shift","Control","Alt","Accept","ModeChange","Print","Execute","a","b","d","f","g","h","j","l","q","r","s","u","z","Meta","Attn","CrSel","ExSel","EraseEof","Play","ZoomOut","$","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","_","Camera","EndCall","VolumeDown","VolumeUp","ActionDispatcher_1","ActionDispatcher","InputSource_js_1","keyUtils_js_1","USKeyboardLayout_js_1","CALCULATE_IN_VIEW_CENTER_PT_DECL","getClientRects","innerWidth","innerHeight","IS_MAC_DECL","navigator","platform","toLowerCase","tickStart","tickDuration","inputState","isMacOS","dispatchActions","optionsByTick","run","options","dispatchTickActions","performance","now","duration","promises","option","dispatchAction","keyState","getGlobalKeyState","dispatchKeyDownAction","cancelList","dispatchKeyUpAction","dispatchPointerDownAction","dispatchPointerMoveAction","dispatchPointerUpAction","dispatchScrollAction","pointerType","pressure","twist","tangentialPressure","tiltX","tiltY","getTilt","getCdpButton","clickCount","force","touchPoints","getRadii","startX","startY","offsetX","offsetY","targetX","targetY","getCoordinateFromOrigin","last","ratio","next","posX","posY","getElementCenter","_source","deltaX","targetDeltaX","deltaY","targetDeltaY","currentDeltaX","currentDeltaY","rawKey","repeat","location","unmodifiedText","getKeyEventUnmodifiedText","getKeyEventText","command","windowsVirtualKeyCode","autoRepeat","isSystemKey","isKeypad","commands","toLocaleUpperCase","altitudeAngle","azimuthAngle","tiltXRadians","tiltYRadians","PI","tanAlt","tan","atan","cos","sin","factor","radiusX","radiusY","Mutex_1","Mutex","Mutex$1","locked","acquirers","acquire","state","resolved","release","bind","InputState_1","InputState","Mutex_js_1","InputState$1","sources","mutex","getOrCreate","pointerIds","InputStateManager_1","InputStateManager","InputState_js_1","WeakMap","InputStateManager$1","InputProcessor_1","InputProcessor","ActionDispatcher_js_1","InputStateManager_js_1","InputProcessor$1","inputStateManager","performActions","actionsByTick","getActionsByTick","dispatcher","releaseActions","reverse","actions","parameters","item","Se","ke","getOwnPropertyNames","Ee","Ne","Re","URLPattern","urlpattern","ye","prefix","suffix","modifier","hasCustomName","Te","Ae","we","TypeError","index","substr","delimiter","prefixes","encodePart","replace","ignoreCase","sensitive","strict","end","start","te","substring","re","fe","ue","hostname","pe","pathname","de","ge","search","me","hash","parse","port","xe","baseURL","Ce","he","oe","ae","ie","le","ee","lastIndexOf","ce","se","ne","Ie","Le","exec","inputs","input","groups","compareComponent","urlpatternPolyfill","urlpattern_polyfill_1","NetworkStorage_1","NetworkStorage","UrlPattern_js_1","requestMap","interceptMap","blockedRequestMap","addIntercept","interceptId","urlPatterns","phases","removeIntercept","intercept","hasIntercepts","patterns","requestStage","requestStageFromPhase","urlPatternSpec","urlPattern","cdpFromSpecUrlPattern","handleAuthRequests","param","hasNetworkRequests","hasBlockedRequests","buildUrlPatternString","isSpecialScheme","removeBlockedRequest","getBlockedRequest","interceptIds","matchUrlPattern","NetworkStorage$1","NetworkProcessor_1","NetworkProcessor","NetworkStorage_js_1","unshift","parsedUrlPatterns","parseUrlPatterns","fetchApply","fetchId","parseUrlString","reasonPhrase","credentials","blockedRequest","getAllContexts","match","NetworkProcessor$1","PreloadScriptStorage_1","PreloadScriptStorage","PreloadScriptStorage$1","scripts","targetIds","remove","PreloadScript_1","PreloadScript","PreloadScript$1","cdpPreloadScripts","getEvaluateString","channelsArgStr","initInTargets","cdpTargets","runImmediately","from","addCdpPreloadScriptResult","target","preloadScriptId","identifier","cdpPreloadScript","cdpPreloadScriptId","cdpTargetId","ScriptProcessor_1","ScriptProcessor","protocol_1","ScriptProcessor$1","addPreloadScript","removePreloadScript","bidiId","getRealm","handles","getRealms","realms","SessionProcessor_1","SessionProcessor","SessionProcessor$1","ready","subscribe","events","unsubscribe","OutgoingMessage_1","OutgoingMessage","createFromPromise","messagePromise","createResolved","OutgoingMessage$1","CommandProcessor_1","CommandProcessor","EventEmitter_js_1","BidiNoOpParser_js_1","BrowserProcessor_js_1","CdpProcessor_js_1","BrowsingContextProcessor_js_1","require$$6","InputProcessor_js_1","require$$7","NetworkProcessor_js_1","require$$8","require$$9","PreloadScriptStorage_js_1","require$$10","ScriptProcessor_js_1","require$$11","SessionProcessor_js_1","require$$12","OutgoingMessage_js_1","require$$13","browserProcessor","browsingContextProcessor","cdpProcessor","inputProcessor","networkProcessor","scriptProcessor","sessionProcessor","parser","processCommand","bidi","CommandProcessor$1","BrowsingContextStorage_1","BrowsingContextStorage","BrowsingContextStorage$1","deleteContext","hasContext","findTopLevelContextId","Buffer_1","Buffer","Buffer$1","capacity","onItemRemoved","DefaultMap_1","DefaultMap","getDefaultValue","DefaultMap$1","IdWrapper_1","IdWrapper","counter","IdWrapper$1","assertSupportedEvent","isCdpEvent","at","SubscriptionManager_1","SubscriptionManager","unrollEvents","events_js_1","cartesianProduct","flat","allEvents","addEvents","SubscriptionManager$1","subscriptionPriority","channelToContextToEventMap","getChannelsSubscribedToEvent","eventMethod","keys","priority","getEventSubscriptionPriorityForChannel","sort","contextToEventMap","maybeTopLevelContextId","priorities","cdpPriority","specificEvent","eventMap","unsubscribeAll","contextIds","checkUnsubscribe","forEach","eventName","EventManager_1","EventManager","Buffer_js_1","DefaultMap_js_1","IdWrapper_js_1","SubscriptionManager_js_1","EventWrapper","idWrapper","eventBufferLength","eventToContextsMap","eventBuffers","lastMessageSent","subscriptionManager","getMapKey","eventWrapper","sortedChannels","bufferEvent","markEventSent","eventNames","getBufferedEvents","bufferMapKey","lastSentMapKey","lastSentMessageId","Infinity","wrapper","_contextId","e1","e2","EventManager$1","RealmStorage_1","RealmStorage","RealmStorage$1","realmMap","maybeRealms","maybeRealm","BidiServer_1","BidiServer","ProcessingQueue_js_1","CommandProcessor_js_1","BrowsingContextStorage_js_1","EventManager_js_1","RealmStorage_js_1","messageQueue","transport","commandProcessor","handleIncomingMessage","processOutgoingMessage","messageEntry","bidiTransport","setOnMessage","emitOutgoingMessage","createAndStart","server","discover","topLevelContextsLoaded","BidiServer$1","BidiServer_js_1","CdpClient_1","CdpClient$1","CdpClient","CloseError","CdpConnection_1","CdpConnection","CdpClient_js_1","mainBrowserCdpClient","sessionCdpClients","commandCallbacks","nextId","createCdpClient","createBrowserSession","cdpMessage","LOGGER_PREFIX_SEND","json","LOGGER_PREFIX_RECV","callbacks","CdpConnection$1","util","getParsedType","ZodParsedType","objectUtil","assertEqual","assertIs","_arg","assertNever","_x","arrayToEnum","items","obj","getValidEnumValues","validKeys","objectKeys","filtered","objectValues","arr","checker","isInteger","isFinite","floor","joinValues","array","separator","jsonStringifyReplacer","mergeShapes","string","nan","number","boolean","function","bigint","symbol","null","date","ZodError_1","ZodError","quotelessJson","util_1","ZodError$1","ZodIssueCode","issues","addIssue","sub","addIssues","subs","actualProto","setPrototypeOf","__proto__","errors","_mapper","mapper","issue","fieldErrors","_errors","processError","unionErrors","returnTypeError","argumentsError","curr","el","isEmpty","formErrors","en","_ctx","invalid_type","received","expected","invalid_literal","unrecognized_keys","invalid_union","invalid_union_discriminator","invalid_enum_value","invalid_arguments","invalid_return_type","invalid_date","invalid_string","validation","position","too_small","exact","inclusive","minimum","too_big","maximum","custom","invalid_intersection_types","not_multiple_of","multipleOf","not_finite","defaultError","getErrorMap","setErrorMap","en_1","defaultErrorMap","overrideErrorMap","isAsync","isValid","isDirty","isAborted","OK","DIRTY","INVALID","ParseStatus","addIssueToContext","EMPTY_PATH","makeIssue","errors_1","errorMaps","issueData","fullPath","fullIssue","errorMessage","maps","ctx","common","contextualErrorMap","schemaErrorMap","dirty","abort","mergeArray","results","arrayValue","mergeObjectAsync","pairs","syncPairs","mergeObjectSync","finalObject","alwaysSet","freeze","typeAliases","errorUtil","errToObj","any","ZodFirstPartyTypeKind","late","ZodSchema","Schema","ZodReadonly","ZodBranded","BRAND","ZodNaN","ZodCatch","ZodDefault","ZodNullable","ZodTransformer","ZodEffects","ZodPromise","ZodNativeEnum","ZodEnum","ZodLiteral","ZodFunction","ZodSet","ZodMap","ZodRecord","ZodTuple","ZodIntersection","ZodUnion","ZodObject","ZodArray","ZodVoid","ZodNever","ZodUnknown","ZodNull","ZodUndefined","ZodSymbol","ZodDate","ZodBoolean","ZodBigInt","ZodString","ZodType","NEVER","union","tuple","strictObject","preprocess","pipeline","ostring","onumber","oboolean","never","nativeEnum","literal","lazy","intersection","instanceof","enum","effect","discriminatedUnion","errorUtil_1","parseUtil_1","ParseInputLazyPath","_cachedPath","_path","_key","handleResult","success","processCreateParams","errorMap","invalid_type_error","required_error","description","iss","def","spa","safeParseAsync","_def","safeParse","parseAsync","refine","refinement","superRefine","optional","nullable","nullish","or","and","transform","brand","describe","pipe","readonly","isNullable","isOptional","_getType","_getOrReturnCtx","parsedType","_processInputParams","_parseSync","_parse","_parseAsync","_a","maybeAsyncResult","check","getIssueProperties","_refinement","setError","refinementData","schema","typeName","ZodOptional","incoming","defaultValueFunc","innerType","catchValueFunc","catchValue","This","ZodPipeline","cuidRegex","cuid2Regex","ulidRegex","uuidRegex","emailRegex","emojiRegex","ipv4Regex","ipv6Regex","coerce","checks","tooBig","tooSmall","regex","lastIndex","toUpperCase","precision","offset","ip","version","_regex","_addCheck","email","emoji","cuid","cuid2","ulid","datetime","minLength","maxLength","len","nonempty","isDatetime","ch","isEmail","isURL","isEmoji","isUUID","isCUID","isCUID2","isULID","isIP","floatSafeRemainder","step","valDecCount","stepDecCount","decCount","toFixed","pow","ZodNumber","gte","lte","setLimit","gt","lt","int","positive","negative","nonpositive","nonnegative","finite","safe","MIN_SAFE_INTEGER","minValue","maxValue","isInt","BigInt","minDate","maxDate","ZodAny","_any","_unknown","void","exactLength","deepPartialify","newShape","shape","fieldSchema","unwrap","_cached","nonstrict","passthrough","augment","extend","_getCached","shapeKeys","extraKeys","catchall","unknownKeys","keyValidator","_b","_c","_d","strip","augmentation","merge","merging","setKey","pick","mask","omit","deepPartial","partial","required","newField","keyof","createZodEnum","strictCreate","lazycreate","childCtx","types","getDiscriminator","ZodLazy","ZodDiscriminatedUnion","discriminator","discriminatorValue","optionsMap","discriminatorValues","mergeValues","aType","bType","valid","bKeys","sharedKeys","newObj","sharedValue","newArray","handleParsed","parsedLeft","parsedRight","merged","rest","itemIndex","schemas","keySchema","keyType","valueSchema","valueType","third","finalMap","minSize","maxSize","finalizeSet","elements","parsedSet","validate","implement","makeArgsIssue","makeReturnsIssue","returns","fn","parsedArgs","Reflect","apply","parsedReturns","returnType","func","strictImplement","getter","expectedValues","enumValues","Values","Enum","extract","exclude","opt","nativeEnumValues","promisified","sourceType","checkCtx","fatal","processed","executeRefinement","inner","base","createWithPreprocess","removeDefault","newCtx","removeCatch","inResult","in","out","handleAsync","_fatal","p2","cls","stringType","numberType","nanType","bigIntType","booleanType","dateType","symbolType","undefinedType","nullType","anyType","unknownType","neverType","voidType","arrayType","objectType","strictObjectType","unionType","discriminatedUnionType","intersectionType","tupleType","recordType","record","mapType","setType","functionType","lazyType","literalType","enumType","nativeEnumType","promiseType","effectsType","transformer","optionalType","nullableType","preprocessType","pipelineType","Input","LogEventSchema","ScriptResultSchema","ScriptEventSchema","NetworkResultSchema","NetworkEventSchema","BrowsingContextResultSchema","BrowsingContextEventSchema","BrowsingContextCommandSchema","BrowserCommandSchema","SessionResultSchema","Session","SessionCommandSchema","JsUintSchema","JsIntSchema","ExtensibleSchema","EmptyResultSchema","MessageSchema","EmptyParamsSchema","ResultDataSchema","CommandDataSchema","CommandResponseSchema","CommandSchema","EventSchema","zod_1","Browser","EventDataSchema","InputCommandSchema","NetworkCommandSchema","ScriptCommandSchema","ErrorResponseSchema","ErrorCodeSchema","EndSchema","NewSchema","StatusSchema","SubscribeSchema","UnsubscribeSchema","ProxyConfigurationSchema","AutodetectProxyConfigurationSchema","DirectProxyConfigurationSchema","ManualProxyConfigurationSchema","PacProxyConfigurationSchema","SystemProxyConfigurationSchema","NewResultSchema","StatusResultSchema","CapabilitiesRequestSchema","alwaysMatch","CapabilityRequestSchema","firstMatch","browserName","browserVersion","platformName","proxy","webSocketUrl","proxyType","ftpProxy","httpProxy","sslProxy","SocksProxyConfigurationSchema","noProxy","socksProxy","socksVersion","proxyAutoconfigUrl","SubscriptionRequestSchema","BrowsingContextSchema","NewParametersSchema","capabilities","setWindowRect","CloseSchema","ActivateSchema","CaptureScreenshotSchema","CreateSchema","GetTreeSchema","HandleUserPromptSchema","LocateNodesSchema","NavigateSchema","PrintSchema","ReloadSchema","SetViewportSchema","TraverseHistorySchema","ContextCreatedSchema","ContextDestroyedSchema","DomContentLoadedSchema","DownloadWillBeginSchema","FragmentNavigatedSchema","LoadSchema","NavigationAbortedSchema","NavigationFailedSchema","NavigationStartedSchema","UserPromptClosedSchema","UserPromptOpenedSchema","CaptureScreenshotResultSchema","CreateResultSchema","GetTreeResultSchema","LocateNodesResultSchema","NavigateResultSchema","PrintResultSchema","TraverseHistoryResultSchema","InfoListSchema","InfoSchema","LocatorSchema","CssLocatorSchema","InnerTextLocatorSchema","XPathLocatorSchema","matchType","NavigationSchema","NavigationInfoSchema","ReadinessStateSchema","ActivateParametersSchema","CaptureScreenshotParametersSchema","ImageFormatSchema","ClipRectangleSchema","BoxClipRectangleSchema","ElementClipRectangleSchema","SharedReferenceSchema","CloseParametersSchema","CreateParametersSchema","CreateTypeSchema","GetTreeParametersSchema","HandleUserPromptParametersSchema","LocateNodesParametersSchema","locator","maxNodeCount","ResultOwnershipSchema","SerializationOptionsSchema","startNodes","nodes","NodeRemoteValueSchema","NavigateParametersSchema","PrintParametersSchema","PrintMarginParametersSchema","PrintPageParametersSchema","ReloadParametersSchema","SetViewportParametersSchema","ViewportSchema","TraverseHistoryParametersSchema","UserPromptClosedParametersSchema","UserPromptOpenedParametersSchema","AddInterceptSchema","ContinueRequestSchema","ContinueResponseSchema","ContinueWithAuthSchema","FailRequestSchema","ProvideResponseSchema","RemoveInterceptSchema","AuthRequiredSchema","BeforeRequestSentSchema","FetchErrorSchema","ResponseCompletedSchema","ResponseStartedSchema","AddInterceptResultSchema","AuthChallengeSchema","scheme","AuthCredentialsSchema","BaseParametersSchema","RequestDataSchema","InterceptSchema","BytesValueSchema","StringValueSchema","Base64ValueSchema","CookieSchema","expiry","CookieHeaderSchema","FetchTimingInfoSchema","HeaderSchema","InitiatorSchema","StackTraceSchema","RequestSchema","ResponseContentSchema","ResponseDataSchema","SetCookieHeaderSchema","maxAge","UrlPatternSchema","UrlPatternPatternSchema","UrlPatternStringSchema","AddInterceptParametersSchema","InterceptPhaseSchema","ContinueRequestParametersSchema","ContinueResponseParametersSchema","ContinueWithAuthParametersSchema","ContinueWithAuthCredentialsSchema","ContinueWithAuthNoCredentialsSchema","FailRequestParametersSchema","ProvideResponseParametersSchema","RemoveInterceptParametersSchema","RealmCreatedSchema","RealmDestroyedSchema","AuthRequiredParametersSchema","BeforeRequestSentParametersSchema","FetchErrorParametersSchema","ResponseCompletedParametersSchema","ResponseStartedParametersSchema","AddPreloadScriptSchema","CallFunctionSchema","DisownSchema","EvaluateSchema","GetRealmsSchema","RemovePreloadScriptSchema","AddPreloadScriptResultSchema","EvaluateResultSchema","GetRealmsResultSchema","ChannelSchema","EvaluateResultSuccessSchema","RemoteValueSchema","RealmSchema","ExceptionDetailsSchema","ChannelValueSchema","ChannelPropertiesSchema","EvaluateResultExceptionSchema","HandleSchema","InternalIdSchema","ListLocalValueSchema","LocalValueSchema","RemoteReferenceSchema","PrimitiveProtocolValueSchema","ArrayLocalValueSchema","DateLocalValueSchema","MapLocalValueSchema","ObjectLocalValueSchema","RegExpLocalValueSchema","SetLocalValueSchema","MappingLocalValueSchema","RegExpValueSchema","PreloadScriptSchema","UndefinedValueSchema","NullValueSchema","NumberValueSchema","BooleanValueSchema","BigIntValueSchema","SpecialNumberSchema","RealmInfoSchema","WindowRealmInfoSchema","DedicatedWorkerRealmInfoSchema","SharedWorkerRealmInfoSchema","ServiceWorkerRealmInfoSchema","WorkerRealmInfoSchema","PaintWorkletRealmInfoSchema","AudioWorkletRealmInfoSchema","WorkletRealmInfoSchema","BaseRealmInfoSchema","RealmTypeSchema","ListRemoteValueSchema","MappingRemoteValueSchema","SymbolRemoteValueSchema","ArrayRemoteValueSchema","ObjectRemoteValueSchema","FunctionRemoteValueSchema","RegExpRemoteValueSchema","DateRemoteValueSchema","MapRemoteValueSchema","SetRemoteValueSchema","WeakMapRemoteValueSchema","WeakSetRemoteValueSchema","IteratorRemoteValueSchema","GeneratorRemoteValueSchema","ErrorRemoteValueSchema","ProxyRemoteValueSchema","PromiseRemoteValueSchema","TypedArrayRemoteValueSchema","ArrayBufferRemoteValueSchema","NodeListRemoteValueSchema","HtmlCollectionRemoteValueSchema","WindowProxyRemoteValueSchema","RemoteObjectReferenceSchema","SharedIdSchema","NodePropertiesSchema","nodeType","childNodeCount","attributes","localName","mode","nodeValue","WindowProxyPropertiesSchema","StackFrameSchema","SourceSchema","RealmTargetSchema","ContextTargetSchema","TargetSchema","AddPreloadScriptParametersSchema","DisownParametersSchema","CallFunctionParametersSchema","EvaluateParametersSchema","GetRealmsParametersSchema","RemovePreloadScriptParametersSchema","MessageParametersSchema","RealmDestroyedParametersSchema","EntryAddedSchema","LevelSchema","EntrySchema","GenericLogEntrySchema","ConsoleLogEntrySchema","JavascriptLogEntrySchema","BaseLogEntrySchema","PerformActionsSchema","ReleaseActionsSchema","ElementOriginSchema","PerformActionsParametersSchema","SourceActionsSchema","NoneSourceActionsSchema","NoneSourceActionSchema","KeySourceActionsSchema","KeySourceActionSchema","PointerSourceActionsSchema","PointerParametersSchema","PointerSourceActionSchema","WheelSourceActionsSchema","PauseActionSchema","KeyDownActionSchema","KeyUpActionSchema","PointerTypeSchema","WheelSourceActionSchema","PointerDownActionSchema","PointerUpActionSchema","PointerMoveActionSchema","WheelScrollActionSchema","PointerCommonPropertiesSchema","OriginSchema","ReleaseActionsParametersSchema","protocolParser","parseObject","WebDriverBidi","parseResult","parseAddInterceptParameters","parseContinueRequestParameters","parseContinueResponseParameters","parseContinueWithAuthParameters","parseFailRequestParameters","parseProvideResponseParameters","parseRemoveInterceptParameters","parseHandleUserPromptParameters","SendCommandRequestSchema","GetSessionRequestSchema","parseSendCommandRequest","parseGetSessionRequest","BidiParser_1","BidiParser","Parser","BidiParser$1","mapperTabPage","generatePage","findOrCreateTypeLogContainer","logPrefix","logType","containerId","existingContainer","getElementById","debugElement","divider","createElement","className","appendChild","htmlItem","innerHTML","messages","sendDebugMessage","typeLogContainer","lineElement","textContent","Transport","WindowCdpTransport","WindowBidiTransport","mapperTabPage_js_1","onBidiMessage","parseBidiMessage","respondWithError","sendBidiResponse","plainCommandData","errorCode","errorResponse","getErrorResponse","getJsonType","messageId","idType","methodType","paramsType","channelType","onmessage","send","bidiTab","BidiMapper_js_1","CdpConnection_js_1","BidiParser_js_1","Transport_js_1","mapperTabToServerTransport","cdpTransport","runMapperInstance","console","bidiServer","setSelfTargetId","launched"],"mappings":"isBAAe,SAASA,GAAG,MAAM,CAACC,IAAID,EAAEA,GAAG,IAAIE,IAAIC,GAAG,SAASC,EAAEC,GAAG,IAAIC,EAAEN,EAAEO,IAAIH,GAAGE,EAAEA,EAAEE,KAAKH,GAAGL,EAAES,IAAIL,EAAE,CAACC,GAAG,EAAEK,IAAI,SAASN,EAAEC,GAAG,IAAIC,EAAEN,EAAEO,IAAIH,GAAGE,IAAID,EAAEC,EAAEK,OAAOL,EAAEM,QAAQP,KAAK,EAAE,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AO,IACX,IAAK,SACD,MAAO,IACX,IAAK,SACD,MAAO,IACX,IAAK,SACD,MAAO,IACX,IAAK,SACD,MAAO,IACX,IAAK,SACD,MAAO,IACX,IAAK,SACD,MAAO,IACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,MACX,IAAK,SACD,MAAO,MACX,IAAK,SACD,MAAO,MACX,IAAK,SAUL,IAAK,SACD,MAAO,OATX,IAAK,SACD,MAAO,iBA6BX,QACI,OAAOA,EAEnB,EAyQkBuxB,GAAAE,WAvQlB,SAAoBzf,GAChB,OAAQA,GACJ,IAAK,IACL,IAAK,IACD,MAAO,YACX,IAAK,KACL,IAAK,IACD,MAAO,YACX,IAAK,SACD,MAAO,YACX,IAAK,IACL,IAAK,IACD,MAAO,cACX,IAAK,IACL,IAAK,IACD,MAAO,eACX,IAAK,IACL,IAAK,IACD,MAAO,QACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,QACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,QACX,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,QACX,IAAK,IACL,IAAK,IACD,MAAO,YACX,IAAK,IACL,IAAK,IACD,MAAO,QACX,IAAK,SACD,MAAO,UACX,IAAK,SACD,MAAO,WACX,IAAK,SACD,MAAO,cACX,IAAK,SACD,MAAO,eACX,IAAK,SACD,MAAO,QACX,IAAK,SACD,MAAO,WACX,IAAK,SACD,MAAO,YACX,IAAK,SACD,MAAO,YACX,IAAK,SACD,MAAO,aACX,IAAK,IACL,IAAK,SACD,MAAO,QACX,IAAK,SACD,MAAO,MACX,IAAK,SACD,MAAO,SACX,IAAK,SACD,MAAO,MACX,IAAK,SACD,MAAO,OACX,IAAK,SACD,MAAO,OACX,IAAK,SACD,MAAO,SACX,IAAK,SACD,MAAO,WACX,IAAK,SACD,MAAO,SACX,IAAK,SACD,MAAO,YACX,IAAK,SACD,MAAO,YACX,IAAK,SACD,MAAO,aACX,IAAK,SACD,MAAO,UACX,IAAK,SACD,MAAO,SACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,MACX,IAAK,SACD,MAAO,MACX,IAAK,SACD,MAAO,MACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACD,MAAO,YACX,IAAK,SACD,MAAO,cACX,IAAK,SACL,IAAK,SACD,MAAO,gBACX,IAAK,SACD,MAAO,eACX,IAAK,SACD,MAAO,cACX,IAAK,SACD,MAAO,iBACX,IAAK,SACD,MAAO,iBACX,QACI,OAEZ,EA8CsBuf,GAAAC,eA5CtB,SAAwBxf,GACpB,OAAQA,GACJ,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACD,OAAO,EACX,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,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QtuE,IAAI,+CAAgDitB,GAC5D,MAAMshD,QAAmBR,GAAgBz3B,WAAWe,eAAe82B,GAA4B1lE,SAIzFA,GAAc8vC,uBAAwBtrB,EAAciR,EAAS,IAAI+vC,GAAgB9C,WAAc0B,GAAmB7sE,KAExH,OADA,EAAI6sE,GAAmB7sE,KAAKG,GAASJ,QAAQsuB,UAAW,qCACjDkgD,CACX,QAKA/gE,OAAO6gE,kBAAoB3hE,MAAOugB,EAAciR,WACtCmwC,GAAkBphD,EAAciR,EAAQ,EAOlD1wB,OAAOghE,gBAAkB9hE,MAAOugB,WACHohD,GAAkBphD,IAChCmqB,oBAAoB22B,GAAgBp/B,gBAAgBG,eAAe,CAC1E2/B,UAAU,IACV,WAAW","x_google_ignoreList":[0,34,35,57,58,59,60,61,62,63,64,65,66]} \ No newline at end of file +{"version":3,"file":"mapperTab.js","sources":["../../node_modules/mitt/dist/mitt.mjs","../cjs/utils/EventEmitter.js","../cjs/utils/log.js","../cjs/utils/ProcessingQueue.js","../cjs/protocol/cdp.js","../cjs/protocol/chromium-bidi.js","../cjs/protocol/generated/webdriver-bidi.js","../cjs/protocol/ErrorResponse.js","../cjs/protocol/generated/webdriver-bidi-permissions.js","../cjs/protocol/protocol.js","../cjs/bidiMapper/BidiNoOpParser.js","../cjs/bidiMapper/domains/browser/BrowserProcessor.js","../cjs/bidiMapper/domains/cdp/CdpProcessor.js","../cjs/utils/uuid.js","../cjs/bidiMapper/domains/script/ChannelProxy.js","../cjs/bidiMapper/domains/script/Realm.js","../cjs/bidiMapper/domains/script/DedicatedWorkerRealm.js","../cjs/utils/assert.js","../cjs/utils/Deferred.js","../cjs/utils/unitConversions.js","../cjs/bidiMapper/domains/script/SharedId.js","../cjs/bidiMapper/domains/script/WindowRealm.js","../cjs/bidiMapper/domains/context/BrowsingContextImpl.js","../cjs/bidiMapper/domains/log/logHelper.js","../cjs/bidiMapper/domains/log/LogManager.js","../cjs/bidiMapper/domains/network/NetworkUtils.js","../cjs/bidiMapper/domains/network/NetworkRequest.js","../cjs/bidiMapper/domains/network/NetworkManager.js","../cjs/bidiMapper/domains/context/CdpTarget.js","../cjs/bidiMapper/domains/context/BrowsingContextProcessor.js","../cjs/bidiMapper/domains/input/InputSource.js","../cjs/bidiMapper/domains/input/keyUtils.js","../cjs/bidiMapper/domains/input/USKeyboardLayout.js","../cjs/bidiMapper/domains/input/ActionDispatcher.js","../cjs/utils/Mutex.js","../cjs/bidiMapper/domains/input/InputState.js","../cjs/bidiMapper/domains/input/InputStateManager.js","../cjs/bidiMapper/domains/input/InputProcessor.js","../../node_modules/urlpattern-polyfill/dist/urlpattern.cjs","../../node_modules/urlpattern-polyfill/index.cjs","../cjs/utils/UrlPattern.js","../cjs/bidiMapper/domains/network/NetworkStorage.js","../cjs/bidiMapper/domains/network/NetworkProcessor.js","../cjs/bidiMapper/domains/permissions/PermissionsProcessor.js","../cjs/bidiMapper/domains/script/PreloadScriptStorage.js","../cjs/bidiMapper/domains/script/PreloadScript.js","../cjs/bidiMapper/domains/script/ScriptProcessor.js","../cjs/bidiMapper/domains/session/SessionProcessor.js","../cjs/bidiMapper/domains/storage/StorageProcessor.js","../cjs/bidiMapper/OutgoingMessage.js","../cjs/bidiMapper/CommandProcessor.js","../cjs/bidiMapper/domains/context/BrowsingContextStorage.js","../cjs/bidiMapper/domains/script/RealmStorage.js","../cjs/utils/Buffer.js","../cjs/utils/DefaultMap.js","../cjs/utils/IdWrapper.js","../cjs/bidiMapper/domains/session/events.js","../cjs/bidiMapper/domains/session/SubscriptionManager.js","../cjs/bidiMapper/domains/session/EventManager.js","../cjs/bidiMapper/BidiServer.js","../cjs/bidiMapper/BidiMapper.js","../cjs/cdp/CdpClient.js","../cjs/cdp/CdpConnection.js","../../node_modules/zod/lib/helpers/util.js","../../node_modules/zod/lib/ZodError.js","../../node_modules/zod/lib/locales/en.js","../../node_modules/zod/lib/errors.js","../../node_modules/zod/lib/helpers/parseUtil.js","../../node_modules/zod/lib/helpers/typeAliases.js","../../node_modules/zod/lib/helpers/errorUtil.js","../../node_modules/zod/lib/types.js","../../node_modules/zod/lib/external.js","../../node_modules/zod/lib/index.js","../cjs/protocol-parser/generated/webdriver-bidi-permissions.js","../cjs/protocol-parser/generated/webdriver-bidi.js","../cjs/protocol-parser/protocol-parser.js","../cjs/bidiTab/BidiParser.js","../cjs/bidiTab/mapperTabPage.js","../cjs/bidiTab/Transport.js","../cjs/bidiTab/bidiTab.js"],"sourcesContent":["export default function(n){return{all:n=n||new Map,on:function(t,e){var i=n.get(t);i?i.push(e):n.set(t,[e])},off:function(t,e){var i=n.get(t);i&&(e?i.splice(i.indexOf(e)>>>0,1):n.set(t,[]))},emit:function(t,e){var i=n.get(t);i&&i.slice().map(function(n){n(e)}),(i=n.get(\"*\"))&&i.slice().map(function(n){n(t,e)})}}}\n//# sourceMappingURL=mitt.mjs.map\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.EventEmitter = void 0;\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nconst mitt_1 = __importDefault(require(\"mitt\"));\nclass EventEmitter {\n #emitter = (0, mitt_1.default)();\n on(type, handler) {\n this.#emitter.on(type, handler);\n return this;\n }\n /**\n * Like `on` but the listener will only be fired once and then it will be removed.\n * @param event The event you'd like to listen to\n * @param handler The handler function to run when the event occurs\n * @return `this` to enable chaining method calls.\n */\n once(event, handler) {\n const onceHandler = (eventData) => {\n handler(eventData);\n this.off(event, onceHandler);\n };\n return this.on(event, onceHandler);\n }\n off(type, handler) {\n this.#emitter.off(type, handler);\n return this;\n }\n /**\n * Emits an event and call any associated listeners.\n *\n * @param event The event to emit.\n * @param eventData Any data to emit with the event.\n * @return `true` if there are any listeners, `false` otherwise.\n */\n emit(event, eventData) {\n this.#emitter.emit(event, eventData);\n }\n /**\n * Removes all listeners. If given an event argument, it will remove only\n * listeners for that event.\n * @param event - the event to remove listeners for.\n * @returns `this` to enable you to chain method calls.\n */\n removeAllListeners(event) {\n if (event) {\n this.#emitter.all.delete(event);\n }\n else {\n this.#emitter.all.clear();\n }\n return this;\n }\n}\nexports.EventEmitter = EventEmitter;\n//# sourceMappingURL=EventEmitter.js.map","\"use strict\";\n/**\n * Copyright 2021 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.LogType = void 0;\nvar LogType;\n(function (LogType) {\n // keep-sorted start\n LogType[\"bidi\"] = \"bidi\";\n LogType[\"cdp\"] = \"cdp\";\n LogType[\"debug\"] = \"debug\";\n LogType[\"debugError\"] = \"debug:error\";\n LogType[\"debugInfo\"] = \"debug:info\";\n // keep-sorted end\n})(LogType || (exports.LogType = LogType = {}));\n//# sourceMappingURL=log.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ProcessingQueue = void 0;\nconst log_js_1 = require(\"./log.js\");\nclass ProcessingQueue {\n static LOGGER_PREFIX = `${log_js_1.LogType.debug}:queue`;\n #logger;\n #processor;\n #queue = [];\n // Flag to keep only 1 active processor.\n #isProcessing = false;\n constructor(processor, logger) {\n this.#processor = processor;\n this.#logger = logger;\n }\n add(entry, name) {\n this.#queue.push([entry, name]);\n // No need in waiting. Just initialize processor if needed.\n void this.#processIfNeeded();\n }\n async #processIfNeeded() {\n if (this.#isProcessing) {\n return;\n }\n this.#isProcessing = true;\n while (this.#queue.length > 0) {\n const arrayEntry = this.#queue.shift();\n if (!arrayEntry) {\n continue;\n }\n const [entryPromise, name] = arrayEntry;\n this.#logger?.(ProcessingQueue.LOGGER_PREFIX, 'Processing event:', name);\n await entryPromise\n .then((entry) => {\n if (entry.kind === 'error') {\n this.#logger?.(log_js_1.LogType.debugError, 'Event threw before sending:', entry.error.message, entry.error.stack);\n return;\n }\n return this.#processor(entry.value);\n })\n .catch((error) => {\n this.#logger?.(log_js_1.LogType.debugError, 'Event was not processed:', error?.message);\n });\n }\n this.#isProcessing = false;\n }\n}\nexports.ProcessingQueue = ProcessingQueue;\n//# sourceMappingURL=ProcessingQueue.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=cdp.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.EVENT_NAMES = exports.Network = exports.BrowsingContext = exports.Log = exports.Script = exports.BiDiModule = void 0;\n// keep-sorted end\nvar BiDiModule;\n(function (BiDiModule) {\n // keep-sorted start\n BiDiModule[\"Browser\"] = \"browser\";\n BiDiModule[\"BrowsingContext\"] = \"browsingContext\";\n BiDiModule[\"Cdp\"] = \"cdp\";\n BiDiModule[\"Input\"] = \"input\";\n BiDiModule[\"Log\"] = \"log\";\n BiDiModule[\"Network\"] = \"network\";\n BiDiModule[\"Script\"] = \"script\";\n BiDiModule[\"Session\"] = \"session\";\n // keep-sorted end\n})(BiDiModule || (exports.BiDiModule = BiDiModule = {}));\nvar Script;\n(function (Script) {\n let EventNames;\n (function (EventNames) {\n // keep-sorted start\n EventNames[\"Message\"] = \"script.message\";\n EventNames[\"RealmCreated\"] = \"script.realmCreated\";\n EventNames[\"RealmDestroyed\"] = \"script.realmDestroyed\";\n // keep-sorted end\n })(EventNames = Script.EventNames || (Script.EventNames = {}));\n})(Script || (exports.Script = Script = {}));\nvar Log;\n(function (Log) {\n let EventNames;\n (function (EventNames) {\n EventNames[\"LogEntryAdded\"] = \"log.entryAdded\";\n })(EventNames = Log.EventNames || (Log.EventNames = {}));\n})(Log || (exports.Log = Log = {}));\nvar BrowsingContext;\n(function (BrowsingContext) {\n let EventNames;\n (function (EventNames) {\n // keep-sorted start\n EventNames[\"ContextCreated\"] = \"browsingContext.contextCreated\";\n EventNames[\"ContextDestroyed\"] = \"browsingContext.contextDestroyed\";\n EventNames[\"DomContentLoaded\"] = \"browsingContext.domContentLoaded\";\n EventNames[\"DownloadWillBegin\"] = \"browsingContext.downloadWillBegin\";\n EventNames[\"FragmentNavigated\"] = \"browsingContext.fragmentNavigated\";\n EventNames[\"Load\"] = \"browsingContext.load\";\n EventNames[\"NavigationAborted\"] = \"browsingContext.navigationAborted\";\n EventNames[\"NavigationFailed\"] = \"browsingContext.navigationFailed\";\n EventNames[\"NavigationStarted\"] = \"browsingContext.navigationStarted\";\n EventNames[\"UserPromptClosed\"] = \"browsingContext.userPromptClosed\";\n EventNames[\"UserPromptOpened\"] = \"browsingContext.userPromptOpened\";\n // keep-sorted end\n })(EventNames = BrowsingContext.EventNames || (BrowsingContext.EventNames = {}));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\nvar Network;\n(function (Network) {\n let EventNames;\n (function (EventNames) {\n // keep-sorted start\n EventNames[\"AuthRequired\"] = \"network.authRequired\";\n EventNames[\"BeforeRequestSent\"] = \"network.beforeRequestSent\";\n EventNames[\"FetchError\"] = \"network.fetchError\";\n EventNames[\"ResponseCompleted\"] = \"network.responseCompleted\";\n EventNames[\"ResponseStarted\"] = \"network.responseStarted\";\n // keep-sorted end\n })(EventNames = Network.EventNames || (Network.EventNames = {}));\n})(Network || (exports.Network = Network = {}));\nexports.EVENT_NAMES = new Set([\n // keep-sorted start\n ...Object.values(BiDiModule),\n ...Object.values(BrowsingContext.EventNames),\n ...Object.values(Log.EventNames),\n ...Object.values(Network.EventNames),\n ...Object.values(Script.EventNames),\n // keep-sorted end\n]);\n//# sourceMappingURL=chromium-bidi.js.map","\"use strict\";\n/**\n * Copyright 2024 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=webdriver-bidi.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.UnderspecifiedStoragePartitionException = exports.UnableToSetFileInputException = exports.UnableToSetCookieException = exports.NoSuchStoragePartitionException = exports.UnsupportedOperationException = exports.UnableToCloseBrowserException = exports.UnableToCaptureScreenException = exports.UnknownErrorException = exports.UnknownCommandException = exports.SessionNotCreatedException = exports.NoSuchUserContextException = exports.NoSuchScriptException = exports.NoSuchRequestException = exports.NoSuchNodeException = exports.NoSuchInterceptException = exports.NoSuchHistoryEntryException = exports.NoSuchHandleException = exports.NoSuchFrameException = exports.NoSuchElementException = exports.NoSuchAlertException = exports.MoveTargetOutOfBoundsException = exports.InvalidSessionIdException = exports.InvalidArgumentException = exports.Exception = void 0;\nclass Exception {\n error;\n message;\n stacktrace;\n constructor(error, message, stacktrace) {\n this.error = error;\n this.message = message;\n this.stacktrace = stacktrace;\n }\n toErrorResponse(commandId) {\n return {\n type: 'error',\n id: commandId,\n error: this.error,\n message: this.message,\n stacktrace: this.stacktrace,\n };\n }\n}\nexports.Exception = Exception;\nclass InvalidArgumentException extends Exception {\n constructor(message, stacktrace) {\n super(\"invalid argument\" /* ErrorCode.InvalidArgument */, message, stacktrace);\n }\n}\nexports.InvalidArgumentException = InvalidArgumentException;\nclass InvalidSessionIdException extends Exception {\n constructor(message, stacktrace) {\n super(\"invalid session id\" /* ErrorCode.InvalidSessionId */, message, stacktrace);\n }\n}\nexports.InvalidSessionIdException = InvalidSessionIdException;\nclass MoveTargetOutOfBoundsException extends Exception {\n constructor(message, stacktrace) {\n super(\"move target out of bounds\" /* ErrorCode.MoveTargetOutOfBounds */, message, stacktrace);\n }\n}\nexports.MoveTargetOutOfBoundsException = MoveTargetOutOfBoundsException;\nclass NoSuchAlertException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such alert\" /* ErrorCode.NoSuchAlert */, message, stacktrace);\n }\n}\nexports.NoSuchAlertException = NoSuchAlertException;\nclass NoSuchElementException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such element\" /* ErrorCode.NoSuchElement */, message, stacktrace);\n }\n}\nexports.NoSuchElementException = NoSuchElementException;\nclass NoSuchFrameException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such frame\" /* ErrorCode.NoSuchFrame */, message, stacktrace);\n }\n}\nexports.NoSuchFrameException = NoSuchFrameException;\nclass NoSuchHandleException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such handle\" /* ErrorCode.NoSuchHandle */, message, stacktrace);\n }\n}\nexports.NoSuchHandleException = NoSuchHandleException;\nclass NoSuchHistoryEntryException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such history entry\" /* ErrorCode.NoSuchHistoryEntry */, message, stacktrace);\n }\n}\nexports.NoSuchHistoryEntryException = NoSuchHistoryEntryException;\nclass NoSuchInterceptException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such intercept\" /* ErrorCode.NoSuchIntercept */, message, stacktrace);\n }\n}\nexports.NoSuchInterceptException = NoSuchInterceptException;\nclass NoSuchNodeException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such node\" /* ErrorCode.NoSuchNode */, message, stacktrace);\n }\n}\nexports.NoSuchNodeException = NoSuchNodeException;\nclass NoSuchRequestException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such request\" /* ErrorCode.NoSuchRequest */, message, stacktrace);\n }\n}\nexports.NoSuchRequestException = NoSuchRequestException;\nclass NoSuchScriptException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such script\" /* ErrorCode.NoSuchScript */, message, stacktrace);\n }\n}\nexports.NoSuchScriptException = NoSuchScriptException;\nclass NoSuchUserContextException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such user context\" /* ErrorCode.NoSuchUserContext */, message, stacktrace);\n }\n}\nexports.NoSuchUserContextException = NoSuchUserContextException;\nclass SessionNotCreatedException extends Exception {\n constructor(message, stacktrace) {\n super(\"session not created\" /* ErrorCode.SessionNotCreated */, message, stacktrace);\n }\n}\nexports.SessionNotCreatedException = SessionNotCreatedException;\nclass UnknownCommandException extends Exception {\n constructor(message, stacktrace) {\n super(\"unknown command\" /* ErrorCode.UnknownCommand */, message, stacktrace);\n }\n}\nexports.UnknownCommandException = UnknownCommandException;\nclass UnknownErrorException extends Exception {\n constructor(message, stacktrace = new Error().stack) {\n super(\"unknown error\" /* ErrorCode.UnknownError */, message, stacktrace);\n }\n}\nexports.UnknownErrorException = UnknownErrorException;\nclass UnableToCaptureScreenException extends Exception {\n constructor(message, stacktrace) {\n super(\"unable to capture screen\" /* ErrorCode.UnableToCaptureScreen */, message, stacktrace);\n }\n}\nexports.UnableToCaptureScreenException = UnableToCaptureScreenException;\nclass UnableToCloseBrowserException extends Exception {\n constructor(message, stacktrace) {\n super(\"unable to close browser\" /* ErrorCode.UnableToCloseBrowser */, message, stacktrace);\n }\n}\nexports.UnableToCloseBrowserException = UnableToCloseBrowserException;\nclass UnsupportedOperationException extends Exception {\n constructor(message, stacktrace) {\n super(\"unsupported operation\" /* ErrorCode.UnsupportedOperation */, message, stacktrace);\n }\n}\nexports.UnsupportedOperationException = UnsupportedOperationException;\nclass NoSuchStoragePartitionException extends Exception {\n constructor(message, stacktrace) {\n super(\"no such storage partition\" /* ErrorCode.NoSuchStoragePartition */, message, stacktrace);\n }\n}\nexports.NoSuchStoragePartitionException = NoSuchStoragePartitionException;\nclass UnableToSetCookieException extends Exception {\n constructor(message, stacktrace) {\n super(\"unable to set cookie\" /* ErrorCode.UnableToSetCookie */, message, stacktrace);\n }\n}\nexports.UnableToSetCookieException = UnableToSetCookieException;\nclass UnableToSetFileInputException extends Exception {\n constructor(message, stacktrace) {\n super(\"unable to set file input\" /* ErrorCode.UnableToSetFileInput */, message, stacktrace);\n }\n}\nexports.UnableToSetFileInputException = UnableToSetFileInputException;\nclass UnderspecifiedStoragePartitionException extends Exception {\n constructor(message, stacktrace) {\n super(\"underspecified storage partition\" /* ErrorCode.UnderspecifiedStoragePartition */, message, stacktrace);\n }\n}\nexports.UnderspecifiedStoragePartitionException = UnderspecifiedStoragePartitionException;\n//# sourceMappingURL=ErrorResponse.js.map","\"use strict\";\n/**\n * Copyright 2024 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=webdriver-bidi-permissions.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ChromiumBidi = exports.Cdp = void 0;\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexports.Cdp = __importStar(require(\"./cdp.js\"));\nexports.ChromiumBidi = __importStar(require(\"./chromium-bidi.js\"));\n__exportStar(require(\"./generated/webdriver-bidi.js\"), exports);\n__exportStar(require(\"./ErrorResponse.js\"), exports);\n__exportStar(require(\"./generated/webdriver-bidi-permissions.js\"), exports);\n//# sourceMappingURL=protocol.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BidiNoOpParser = void 0;\nclass BidiNoOpParser {\n // Browsing Context domain\n // keep-sorted start block=yes\n parseActivateParams(params) {\n return params;\n }\n parseCaptureScreenshotParams(params) {\n return params;\n }\n parseCloseParams(params) {\n return params;\n }\n parseCreateParams(params) {\n return params;\n }\n parseGetTreeParams(params) {\n return params;\n }\n parseHandleUserPromptParams(params) {\n return params;\n }\n parseNavigateParams(params) {\n return params;\n }\n parsePrintParams(params) {\n return params;\n }\n parseReloadParams(params) {\n return params;\n }\n parseSetViewportParams(params) {\n return params;\n }\n parseTraverseHistoryParams(params) {\n return params;\n }\n // keep-sorted end\n // CDP domain\n // keep-sorted start block=yes\n parseGetSessionParams(params) {\n return params;\n }\n parseSendCommandParams(params) {\n return params;\n }\n // keep-sorted end\n // Script domain\n // keep-sorted start block=yes\n parseAddPreloadScriptParams(params) {\n return params;\n }\n parseCallFunctionParams(params) {\n return params;\n }\n parseDisownParams(params) {\n return params;\n }\n parseEvaluateParams(params) {\n return params;\n }\n parseGetRealmsParams(params) {\n return params;\n }\n parseRemovePreloadScriptParams(params) {\n return params;\n }\n // keep-sorted end\n // Input domain\n // keep-sorted start block=yes\n parsePerformActionsParams(params) {\n return params;\n }\n parseReleaseActionsParams(params) {\n return params;\n }\n parseSetFilesParams(params) {\n return params;\n }\n // keep-sorted end\n // Network domain\n // keep-sorted start block=yes\n parseAddInterceptParams(params) {\n return params;\n }\n parseContinueRequestParams(params) {\n return params;\n }\n parseContinueResponseParams(params) {\n return params;\n }\n parseContinueWithAuthParams(params) {\n return params;\n }\n parseFailRequestParams(params) {\n return params;\n }\n parseProvideResponseParams(params) {\n return params;\n }\n parseRemoveInterceptParams(params) {\n return params;\n }\n // keep-sorted end\n // Permissions domain\n // keep-sorted start block=yes\n parseSetPermissionsParams(params) {\n return params;\n }\n // keep-sorted end\n // Session domain\n // keep-sorted start block=yes\n parseSubscribeParams(params) {\n return params;\n }\n // keep-sorted end\n // Storage domain\n // keep-sorted start block=yes\n parseDeleteCookiesParams(params) {\n return params;\n }\n parseGetCookiesParams(params) {\n return params;\n }\n parseSetCookieParams(params) {\n return params;\n }\n}\nexports.BidiNoOpParser = BidiNoOpParser;\n//# sourceMappingURL=BidiNoOpParser.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BrowserProcessor = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nclass BrowserProcessor {\n #browserCdpClient;\n constructor(browserCdpClient) {\n this.#browserCdpClient = browserCdpClient;\n }\n close() {\n // Ensure that it is put at the end of the event loop.\n // This way we send back the response before closing the tab.\n setTimeout(() => this.#browserCdpClient.sendCommand('Browser.close'), 0);\n return {};\n }\n async createUserContext() {\n const context = await this.#browserCdpClient.sendCommand('Target.createBrowserContext');\n return {\n userContext: context.browserContextId,\n };\n }\n async removeUserContext(userContext) {\n if (userContext === 'default') {\n throw new protocol_js_1.InvalidArgumentException('`default` user context cannot be removed');\n }\n try {\n await this.#browserCdpClient.sendCommand('Target.disposeBrowserContext', {\n browserContextId: userContext,\n });\n }\n catch (err) {\n // https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/protocol/target_handler.cc;l=1424;drc=c686e8f4fd379312469fe018f5c390e9c8f20d0d\n if (err.message.startsWith('Failed to find context with id')) {\n throw new protocol_js_1.NoSuchUserContextException(err.message);\n }\n throw err;\n }\n return {};\n }\n async getUserContexts() {\n const result = await this.#browserCdpClient.sendCommand('Target.getBrowserContexts');\n return {\n userContexts: [\n {\n userContext: 'default',\n },\n ...result.browserContextIds.map((id) => {\n return {\n userContext: id,\n };\n }),\n ],\n };\n }\n}\nexports.BrowserProcessor = BrowserProcessor;\n//# sourceMappingURL=BrowserProcessor.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CdpProcessor = void 0;\nclass CdpProcessor {\n #browsingContextStorage;\n #cdpConnection;\n #browserCdpClient;\n constructor(browsingContextStorage, cdpConnection, browserCdpClient) {\n this.#browsingContextStorage = browsingContextStorage;\n this.#cdpConnection = cdpConnection;\n this.#browserCdpClient = browserCdpClient;\n }\n getSession(params) {\n const context = params.context;\n const sessionId = this.#browsingContextStorage.getContext(context).cdpTarget.cdpSessionId;\n if (sessionId === undefined) {\n return {};\n }\n return { session: sessionId };\n }\n async sendCommand(params) {\n const client = params.session\n ? this.#cdpConnection.getCdpClient(params.session)\n : this.#browserCdpClient;\n const result = await client.sendCommand(params.method, params.params);\n return {\n result,\n session: params.session,\n };\n }\n}\nexports.CdpProcessor = CdpProcessor;\n//# sourceMappingURL=CdpProcessor.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.uuidv4 = void 0;\n/**\n * Generates a random v4 UUID, as specified in RFC4122.\n *\n * Uses the native Web Crypto API if available, otherwise falls back to a\n * polyfill.\n *\n * Example: '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'\n */\nfunction uuidv4() {\n // Available only in secure contexts\n // https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API\n if ('crypto' in globalThis && 'randomUUID' in globalThis.crypto) {\n // Node with\n // https://nodejs.org/dist/latest-v20.x/docs/api/globals.html#crypto_1 or\n // secure browser context.\n return globalThis.crypto.randomUUID();\n }\n const randomValues = new Uint8Array(16);\n if ('crypto' in globalThis && 'getRandomValues' in globalThis.crypto) {\n // Node with\n // https://nodejs.org/dist/latest-v20.x/docs/api/globals.html#crypto_1 or\n // browser.\n globalThis.crypto.getRandomValues(randomValues);\n }\n else {\n // Node without\n // https://nodejs.org/dist/latest-v20.x/docs/api/globals.html#crypto_1.\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require('crypto').webcrypto.getRandomValues(randomValues);\n }\n // Set version (4) and variant (RFC4122) bits.\n randomValues[6] = (randomValues[6] & 0x0f) | 0x40;\n randomValues[8] = (randomValues[8] & 0x3f) | 0x80;\n const bytesToHex = (bytes) => bytes.reduce((str, byte) => str + byte.toString(16).padStart(2, '0'), '');\n return [\n bytesToHex(randomValues.subarray(0, 4)),\n bytesToHex(randomValues.subarray(4, 6)),\n bytesToHex(randomValues.subarray(6, 8)),\n bytesToHex(randomValues.subarray(8, 10)),\n bytesToHex(randomValues.subarray(10, 16)),\n ].join('-');\n}\nexports.uuidv4 = uuidv4;\n//# sourceMappingURL=uuid.js.map","\"use strict\";\n/*\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ChannelProxy = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst log_js_1 = require(\"../../../utils/log.js\");\nconst uuid_js_1 = require(\"../../../utils/uuid.js\");\n/**\n * Used to send messages from realm to BiDi user.\n */\nclass ChannelProxy {\n #properties;\n #id = (0, uuid_js_1.uuidv4)();\n #logger;\n constructor(channel, logger) {\n this.#properties = channel;\n this.#logger = logger;\n }\n /**\n * Creates a channel proxy in the given realm, initialises listener and\n * returns a handle to `sendMessage` delegate.\n */\n async init(realm, eventManager) {\n const channelHandle = await ChannelProxy.#createAndGetHandleInRealm(realm);\n const sendMessageHandle = await ChannelProxy.#createSendMessageHandle(realm, channelHandle);\n void this.#startListener(realm, channelHandle, eventManager);\n return sendMessageHandle;\n }\n /** Gets a ChannelProxy from window and returns its handle. */\n async startListenerFromWindow(realm, eventManager) {\n try {\n const channelHandle = await this.#getHandleFromWindow(realm);\n void this.#startListener(realm, channelHandle, eventManager);\n }\n catch (error) {\n this.#logger?.(log_js_1.LogType.debugError, error);\n }\n }\n /**\n * Evaluation string which creates a ChannelProxy object on the client side.\n */\n static #createChannelProxyEvalStr() {\n const functionStr = String(() => {\n const queue = [];\n let queueNonEmptyResolver = null;\n return {\n /**\n * Gets a promise, which is resolved as soon as a message occurs\n * in the queue.\n */\n async getMessage() {\n const onMessage = queue.length > 0\n ? Promise.resolve()\n : new Promise((resolve) => {\n queueNonEmptyResolver = resolve;\n });\n await onMessage;\n return queue.shift();\n },\n /**\n * Adds a message to the queue.\n * Resolves the pending promise if needed.\n */\n sendMessage(message) {\n queue.push(message);\n if (queueNonEmptyResolver !== null) {\n queueNonEmptyResolver();\n queueNonEmptyResolver = null;\n }\n },\n };\n });\n return `(${functionStr})()`;\n }\n /** Creates a ChannelProxy in the given realm. */\n static async #createAndGetHandleInRealm(realm) {\n const createChannelHandleResult = await realm.cdpClient.sendCommand('Runtime.evaluate', {\n expression: this.#createChannelProxyEvalStr(),\n contextId: realm.executionContextId,\n serializationOptions: {\n serialization: \"idOnly\" /* Protocol.Runtime.SerializationOptionsSerialization.IdOnly */,\n },\n });\n if (createChannelHandleResult.exceptionDetails ||\n createChannelHandleResult.result.objectId === undefined) {\n throw new Error(`Cannot create channel`);\n }\n return createChannelHandleResult.result.objectId;\n }\n /** Gets a handle to `sendMessage` delegate from the ChannelProxy handle. */\n static async #createSendMessageHandle(realm, channelHandle) {\n const sendMessageArgResult = await realm.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((channelHandle) => {\n return channelHandle.sendMessage;\n }),\n arguments: [{ objectId: channelHandle }],\n executionContextId: realm.executionContextId,\n serializationOptions: {\n serialization: \"idOnly\" /* Protocol.Runtime.SerializationOptionsSerialization.IdOnly */,\n },\n });\n // TODO: check for exceptionDetails.\n return sendMessageArgResult.result.objectId;\n }\n /** Starts listening for the channel events of the provided ChannelProxy. */\n async #startListener(realm, channelHandle, eventManager) {\n // noinspection InfiniteLoopJS\n for (;;) {\n try {\n const message = await realm.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String(async (channelHandle) => await channelHandle.getMessage()),\n arguments: [\n {\n objectId: channelHandle,\n },\n ],\n awaitPromise: true,\n executionContextId: realm.executionContextId,\n serializationOptions: {\n serialization: \"deep\" /* Protocol.Runtime.SerializationOptionsSerialization.Deep */,\n maxDepth: this.#properties.serializationOptions?.maxObjectDepth ??\n undefined,\n },\n });\n if (message.exceptionDetails) {\n throw message.exceptionDetails;\n }\n for (const browsingContext of realm.associatedBrowsingContexts) {\n eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.Script.EventNames.Message,\n params: {\n channel: this.#properties.channel,\n data: realm.cdpToBidiValue(message, this.#properties.ownership ?? \"none\" /* Script.ResultOwnership.None */),\n source: realm.source,\n },\n }, browsingContext.id);\n }\n }\n catch (error) {\n // If an error is thrown, then the channel is permanently broken, so we\n // exit the loop.\n this.#logger?.(log_js_1.LogType.debugError, error);\n break;\n }\n }\n }\n /**\n * Returns a handle of ChannelProxy from window's property which was set there\n * by `getEvalInWindowStr`. If window property is not set yet, sets a promise\n * resolver to the window property, so that `getEvalInWindowStr` can resolve\n * the promise later on with the channel.\n * This is needed because `getEvalInWindowStr` can be called before or\n * after this method.\n */\n async #getHandleFromWindow(realm) {\n const channelHandleResult = await realm.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((id) => {\n const w = window;\n if (w[id] === undefined) {\n // The channelProxy is not created yet. Create a promise, put the\n // resolver to window property and return the promise.\n // `getEvalInWindowStr` will resolve the promise later.\n return new Promise((resolve) => (w[id] = resolve));\n }\n // The channelProxy is already created by `getEvalInWindowStr` and\n // is set into window property. Return it.\n const channelProxy = w[id];\n delete w[id];\n return channelProxy;\n }),\n arguments: [{ value: this.#id }],\n executionContextId: realm.executionContextId,\n awaitPromise: true,\n serializationOptions: {\n serialization: \"idOnly\" /* Protocol.Runtime.SerializationOptionsSerialization.IdOnly */,\n },\n });\n if (channelHandleResult.exceptionDetails !== undefined ||\n channelHandleResult.result.objectId === undefined) {\n throw new Error(`ChannelHandle not found in window[\"${this.#id}\"]`);\n }\n return channelHandleResult.result.objectId;\n }\n /**\n * String to be evaluated to create a ProxyChannel and put it to window.\n * Returns the delegate `sendMessage`. Used to provide an argument for preload\n * script. Does the following:\n * 1. Creates a ChannelProxy.\n * 2. Puts the ChannelProxy to window['${this.#id}'] or resolves the promise\n * by calling delegate stored in window['${this.#id}'].\n * This is needed because `#getHandleFromWindow` can be called before or\n * after this method.\n * 3. Returns the delegate `sendMessage` of the created ChannelProxy.\n */\n getEvalInWindowStr() {\n const delegate = String((id, channelProxy) => {\n const w = window;\n if (w[id] === undefined) {\n // `#getHandleFromWindow` is not initialized yet, and will get the\n // channelProxy later.\n w[id] = channelProxy;\n }\n else {\n // `#getHandleFromWindow` is already set a delegate to window property\n // and is waiting for it to be called with the channelProxy.\n w[id](channelProxy);\n delete w[id];\n }\n return channelProxy.sendMessage;\n });\n const channelProxyEval = ChannelProxy.#createChannelProxyEvalStr();\n return `(${delegate})('${this.#id}',${channelProxyEval})`;\n }\n}\nexports.ChannelProxy = ChannelProxy;\n//# sourceMappingURL=ChannelProxy.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Realm = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst log_js_1 = require(\"../../../utils/log.js\");\nconst uuid_js_1 = require(\"../../../utils/uuid.js\");\nconst ChannelProxy_js_1 = require(\"./ChannelProxy.js\");\nclass Realm {\n #cdpClient;\n #eventManager;\n #executionContextId;\n #logger;\n #origin;\n #realmId;\n #realmStorage;\n constructor(cdpClient, eventManager, executionContextId, logger, origin, realmId, realmStorage) {\n this.#cdpClient = cdpClient;\n this.#eventManager = eventManager;\n this.#executionContextId = executionContextId;\n this.#logger = logger;\n this.#origin = origin;\n this.#realmId = realmId;\n this.#realmStorage = realmStorage;\n this.#realmStorage.addRealm(this);\n }\n cdpToBidiValue(cdpValue, resultOwnership) {\n const bidiValue = this.serializeForBiDi(cdpValue.result.deepSerializedValue, new Map());\n if (cdpValue.result.objectId) {\n const objectId = cdpValue.result.objectId;\n if (resultOwnership === \"root\" /* Script.ResultOwnership.Root */) {\n // Extend BiDi value with `handle` based on required `resultOwnership`\n // and CDP response but not on the actual BiDi type.\n bidiValue.handle = objectId;\n // Remember all the handles sent to client.\n this.#realmStorage.knownHandlesToRealmMap.set(objectId, this.realmId);\n }\n else {\n // No need to await for the object to be released.\n void this.#releaseObject(objectId).catch((error) => this.#logger?.(log_js_1.LogType.debugError, error));\n }\n }\n if (cdpValue.result.type === 'object') {\n switch (cdpValue.result.subtype) {\n case 'generator':\n case 'iterator':\n bidiValue.type = cdpValue.result.subtype;\n delete bidiValue['value'];\n break;\n default:\n // Intentionally left blank.\n }\n }\n return bidiValue;\n }\n /**\n * Relies on the CDP to implement proper BiDi serialization, except:\n * * CDP integer property `backendNodeId` is replaced with `sharedId` of\n * `{documentId}_element_{backendNodeId}`;\n * * CDP integer property `weakLocalObjectReference` is replaced with UUID `internalId`\n * using unique-per serialization `internalIdMap`.\n * * CDP type `platformobject` is replaced with `object`.\n * @param deepSerializedValue - CDP value to be converted to BiDi.\n * @param internalIdMap - Map from CDP integer `weakLocalObjectReference` to BiDi UUID\n * `internalId`.\n */\n serializeForBiDi(deepSerializedValue, internalIdMap) {\n if (Object.hasOwn(deepSerializedValue, 'weakLocalObjectReference')) {\n const weakLocalObjectReference = deepSerializedValue.weakLocalObjectReference;\n if (!internalIdMap.has(weakLocalObjectReference)) {\n internalIdMap.set(weakLocalObjectReference, (0, uuid_js_1.uuidv4)());\n }\n deepSerializedValue.internalId = internalIdMap.get(weakLocalObjectReference);\n delete deepSerializedValue['weakLocalObjectReference'];\n }\n // Platform object is a special case. It should have only `{type: object}`\n // without `value` field.\n if (deepSerializedValue.type === 'platformobject') {\n return { type: 'object' };\n }\n const bidiValue = deepSerializedValue.value;\n if (bidiValue === undefined) {\n return deepSerializedValue;\n }\n // Recursively update the nested values.\n if (['array', 'set', 'htmlcollection', 'nodelist'].includes(deepSerializedValue.type)) {\n for (const i in bidiValue) {\n bidiValue[i] = this.serializeForBiDi(bidiValue[i], internalIdMap);\n }\n }\n if (['object', 'map'].includes(deepSerializedValue.type)) {\n for (const i in bidiValue) {\n bidiValue[i] = [\n this.serializeForBiDi(bidiValue[i][0], internalIdMap),\n this.serializeForBiDi(bidiValue[i][1], internalIdMap),\n ];\n }\n }\n return deepSerializedValue;\n }\n get realmId() {\n return this.#realmId;\n }\n get executionContextId() {\n return this.#executionContextId;\n }\n get origin() {\n return this.#origin;\n }\n get source() {\n return {\n realm: this.realmId,\n };\n }\n get cdpClient() {\n return this.#cdpClient;\n }\n get baseInfo() {\n return {\n realm: this.realmId,\n origin: this.origin,\n };\n }\n async evaluate(expression, awaitPromise, resultOwnership, serializationOptions, userActivation = false) {\n const cdpEvaluateResult = await this.cdpClient.sendCommand('Runtime.evaluate', {\n contextId: this.executionContextId,\n expression,\n awaitPromise,\n serializationOptions: Realm.#getSerializationOptions(\"deep\" /* Protocol.Runtime.SerializationOptionsSerialization.Deep */, serializationOptions),\n userGesture: userActivation,\n });\n if (cdpEvaluateResult.exceptionDetails) {\n return await this.#getExceptionResult(cdpEvaluateResult.exceptionDetails, 0, resultOwnership);\n }\n return {\n realm: this.realmId,\n result: this.cdpToBidiValue(cdpEvaluateResult, resultOwnership),\n type: 'success',\n };\n }\n initialize() {\n for (const browsingContext of this.associatedBrowsingContexts) {\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.Script.EventNames.RealmCreated,\n params: this.realmInfo,\n }, browsingContext.id);\n }\n }\n /**\n * Serializes a given CDP object into BiDi, keeping references in the\n * target's `globalThis`.\n */\n async serializeCdpObject(cdpRemoteObject, resultOwnership) {\n const argument = Realm.#cdpRemoteObjectToCallArgument(cdpRemoteObject);\n const cdpValue = await this.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((remoteObject) => remoteObject),\n awaitPromise: false,\n arguments: [argument],\n serializationOptions: {\n serialization: \"deep\" /* Protocol.Runtime.SerializationOptionsSerialization.Deep */,\n },\n executionContextId: this.executionContextId,\n });\n return this.cdpToBidiValue(cdpValue, resultOwnership);\n }\n static #cdpRemoteObjectToCallArgument(cdpRemoteObject) {\n if (cdpRemoteObject.objectId !== undefined) {\n return { objectId: cdpRemoteObject.objectId };\n }\n if (cdpRemoteObject.unserializableValue !== undefined) {\n return { unserializableValue: cdpRemoteObject.unserializableValue };\n }\n return { value: cdpRemoteObject.value };\n }\n /**\n * Gets the string representation of an object. This is equivalent to\n * calling `toString()` on the object value.\n */\n async stringifyObject(cdpRemoteObject) {\n const { result } = await this.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((remoteObject) => String(remoteObject)),\n awaitPromise: false,\n arguments: [cdpRemoteObject],\n returnByValue: true,\n executionContextId: this.executionContextId,\n });\n return result.value;\n }\n async #flattenKeyValuePairs(mappingLocalValue) {\n const keyValueArray = [];\n for (const [key, value] of mappingLocalValue) {\n let keyArg;\n if (typeof key === 'string') {\n // Key is a string.\n keyArg = { value: key };\n }\n else {\n // Key is a serialized value.\n keyArg = await this.deserializeForCdp(key);\n }\n const valueArg = await this.deserializeForCdp(value);\n keyValueArray.push(keyArg);\n keyValueArray.push(valueArg);\n }\n return keyValueArray;\n }\n async #flattenValueList(listLocalValue) {\n return await Promise.all(listLocalValue.map((localValue) => this.deserializeForCdp(localValue)));\n }\n async #serializeCdpExceptionDetails(cdpExceptionDetails, lineOffset, resultOwnership) {\n const callFrames = cdpExceptionDetails.stackTrace?.callFrames.map((frame) => ({\n url: frame.url,\n functionName: frame.functionName,\n lineNumber: frame.lineNumber - lineOffset,\n columnNumber: frame.columnNumber,\n })) ?? [];\n // Exception should always be there.\n const exception = cdpExceptionDetails.exception;\n return {\n exception: await this.serializeCdpObject(exception, resultOwnership),\n columnNumber: cdpExceptionDetails.columnNumber,\n lineNumber: cdpExceptionDetails.lineNumber - lineOffset,\n stackTrace: {\n callFrames,\n },\n text: (await this.stringifyObject(exception)) || cdpExceptionDetails.text,\n };\n }\n async callFunction(functionDeclaration, thisLocalValue, argumentsLocalValues, awaitPromise, resultOwnership, serializationOptions, userActivation = false) {\n const callFunctionAndSerializeScript = `(...args) => {\n function callFunction(f, args) {\n const deserializedThis = args.shift();\n const deserializedArgs = args;\n return f.apply(deserializedThis, deserializedArgs);\n }\n return callFunction((\n ${functionDeclaration}\n ), args);\n }`;\n const thisAndArgumentsList = [\n await this.deserializeForCdp(thisLocalValue),\n ...(await Promise.all(argumentsLocalValues.map(async (argumentLocalValue) => await this.deserializeForCdp(argumentLocalValue)))),\n ];\n let cdpCallFunctionResult;\n try {\n cdpCallFunctionResult = await this.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: callFunctionAndSerializeScript,\n awaitPromise,\n arguments: thisAndArgumentsList,\n serializationOptions: Realm.#getSerializationOptions(\"deep\" /* Protocol.Runtime.SerializationOptionsSerialization.Deep */, serializationOptions),\n executionContextId: this.executionContextId,\n userGesture: userActivation,\n });\n }\n catch (error) {\n // Heuristic to determine if the problem is in the argument.\n // The check can be done on the `deserialization` step, but this approach\n // helps to save round-trips.\n if (error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ &&\n [\n 'Could not find object with given id',\n 'Argument should belong to the same JavaScript world as target object',\n 'Invalid remote object id',\n ].includes(error.message)) {\n throw new protocol_js_1.NoSuchHandleException('Handle was not found.');\n }\n throw error;\n }\n if (cdpCallFunctionResult.exceptionDetails) {\n return await this.#getExceptionResult(cdpCallFunctionResult.exceptionDetails, 1, resultOwnership);\n }\n return {\n type: 'success',\n result: this.cdpToBidiValue(cdpCallFunctionResult, resultOwnership),\n realm: this.realmId,\n };\n }\n async deserializeForCdp(localValue) {\n if ('handle' in localValue && localValue.handle) {\n return { objectId: localValue.handle };\n // We tried to find a handle value but failed\n // This allows us to have exhaustive switch on `localValue.type`\n }\n else if ('handle' in localValue || 'sharedId' in localValue) {\n throw new protocol_js_1.NoSuchHandleException('Handle was not found.');\n }\n switch (localValue.type) {\n case 'undefined':\n return { unserializableValue: 'undefined' };\n case 'null':\n return { unserializableValue: 'null' };\n case 'string':\n return { value: localValue.value };\n case 'number':\n if (localValue.value === 'NaN') {\n return { unserializableValue: 'NaN' };\n }\n else if (localValue.value === '-0') {\n return { unserializableValue: '-0' };\n }\n else if (localValue.value === 'Infinity') {\n return { unserializableValue: 'Infinity' };\n }\n else if (localValue.value === '-Infinity') {\n return { unserializableValue: '-Infinity' };\n }\n return {\n value: localValue.value,\n };\n case 'boolean':\n return { value: Boolean(localValue.value) };\n case 'bigint':\n return {\n unserializableValue: `BigInt(${JSON.stringify(localValue.value)})`,\n };\n case 'date':\n return {\n unserializableValue: `new Date(Date.parse(${JSON.stringify(localValue.value)}))`,\n };\n case 'regexp':\n return {\n unserializableValue: `new RegExp(${JSON.stringify(localValue.value.pattern)}, ${JSON.stringify(localValue.value.flags)})`,\n };\n case 'map': {\n // TODO: If none of the nested keys and values has a remote\n // reference, serialize to `unserializableValue` without CDP roundtrip.\n const keyValueArray = await this.#flattenKeyValuePairs(localValue.value);\n const { result } = await this.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((...args) => {\n const result = new Map();\n for (let i = 0; i < args.length; i += 2) {\n result.set(args[i], args[i + 1]);\n }\n return result;\n }),\n awaitPromise: false,\n arguments: keyValueArray,\n returnByValue: false,\n executionContextId: this.executionContextId,\n });\n // TODO(#375): Release `result.objectId` after using.\n return { objectId: result.objectId };\n }\n case 'object': {\n // TODO: If none of the nested keys and values has a remote\n // reference, serialize to `unserializableValue` without CDP roundtrip.\n const keyValueArray = await this.#flattenKeyValuePairs(localValue.value);\n const { result } = await this.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((...args) => {\n const result = {};\n for (let i = 0; i < args.length; i += 2) {\n // Key should be either `string`, `number`, or `symbol`.\n const key = args[i];\n result[key] = args[i + 1];\n }\n return result;\n }),\n awaitPromise: false,\n arguments: keyValueArray,\n returnByValue: false,\n executionContextId: this.executionContextId,\n });\n // TODO(#375): Release `result.objectId` after using.\n return { objectId: result.objectId };\n }\n case 'array': {\n // TODO: If none of the nested items has a remote reference,\n // serialize to `unserializableValue` without CDP roundtrip.\n const args = await this.#flattenValueList(localValue.value);\n const { result } = await this.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((...args) => args),\n awaitPromise: false,\n arguments: args,\n returnByValue: false,\n executionContextId: this.executionContextId,\n });\n // TODO(#375): Release `result.objectId` after using.\n return { objectId: result.objectId };\n }\n case 'set': {\n // TODO: if none of the nested items has a remote reference,\n // serialize to `unserializableValue` without CDP roundtrip.\n const args = await this.#flattenValueList(localValue.value);\n const { result } = await this.cdpClient.sendCommand('Runtime.callFunctionOn', {\n functionDeclaration: String((...args) => new Set(args)),\n awaitPromise: false,\n arguments: args,\n returnByValue: false,\n executionContextId: this.executionContextId,\n });\n // TODO(#375): Release `result.objectId` after using.\n return { objectId: result.objectId };\n }\n case 'channel': {\n const channelProxy = new ChannelProxy_js_1.ChannelProxy(localValue.value, this.#logger);\n const channelProxySendMessageHandle = await channelProxy.init(this, this.#eventManager);\n return { objectId: channelProxySendMessageHandle };\n }\n // TODO(#375): Dispose of nested objects.\n }\n // Intentionally outside to handle unknown types\n throw new Error(`Value ${JSON.stringify(localValue)} is not deserializable.`);\n }\n async #getExceptionResult(exceptionDetails, lineOffset, resultOwnership) {\n return {\n exceptionDetails: await this.#serializeCdpExceptionDetails(exceptionDetails, lineOffset, resultOwnership),\n realm: this.realmId,\n type: 'exception',\n };\n }\n static #getSerializationOptions(serialization, serializationOptions) {\n return {\n serialization,\n additionalParameters: Realm.#getAdditionalSerializationParameters(serializationOptions),\n ...Realm.#getMaxObjectDepth(serializationOptions),\n };\n }\n static #getAdditionalSerializationParameters(serializationOptions) {\n const additionalParameters = {};\n if (serializationOptions.maxDomDepth !== undefined) {\n additionalParameters['maxNodeDepth'] =\n serializationOptions.maxDomDepth === null\n ? 1000\n : serializationOptions.maxDomDepth;\n }\n if (serializationOptions.includeShadowTree !== undefined) {\n additionalParameters['includeShadowTree'] =\n serializationOptions.includeShadowTree;\n }\n return additionalParameters;\n }\n static #getMaxObjectDepth(serializationOptions) {\n return serializationOptions.maxObjectDepth === undefined ||\n serializationOptions.maxObjectDepth === null\n ? {}\n : { maxDepth: serializationOptions.maxObjectDepth };\n }\n async #releaseObject(handle) {\n try {\n await this.cdpClient.sendCommand('Runtime.releaseObject', {\n objectId: handle,\n });\n }\n catch (error) {\n // Heuristic to determine if the problem is in the unknown handler.\n // Ignore the error if so.\n if (!(error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ &&\n error.message === 'Invalid remote object id')) {\n throw error;\n }\n }\n }\n async disown(handle) {\n // Disowning an object from different realm does nothing.\n if (this.#realmStorage.knownHandlesToRealmMap.get(handle) !== this.realmId) {\n return;\n }\n await this.#releaseObject(handle);\n this.#realmStorage.knownHandlesToRealmMap.delete(handle);\n }\n dispose() {\n for (const browsingContext of this.associatedBrowsingContexts) {\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.Script.EventNames.RealmDestroyed,\n params: {\n realm: this.realmId,\n },\n }, browsingContext.id);\n }\n }\n}\nexports.Realm = Realm;\n//# sourceMappingURL=Realm.js.map","\"use strict\";\n/**\n * Copyright 2024 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DedicatedWorkerRealm = void 0;\nconst Realm_js_1 = require(\"./Realm.js\");\nclass DedicatedWorkerRealm extends Realm_js_1.Realm {\n #ownerRealm;\n constructor(cdpClient, eventManager, executionContextId, logger, origin, ownerRealm, realmId, realmStorage) {\n super(cdpClient, eventManager, executionContextId, logger, origin, realmId, realmStorage);\n this.#ownerRealm = ownerRealm;\n this.initialize();\n }\n get associatedBrowsingContexts() {\n return this.#ownerRealm.associatedBrowsingContexts;\n }\n get realmType() {\n return 'dedicated-worker';\n }\n get source() {\n return {\n realm: this.realmId,\n // This is a hack to make Puppeteer able to track workers.\n // TODO: remove after Puppeteer tracks workers by owners and use the base version.\n context: this.associatedBrowsingContexts[0]?.id,\n };\n }\n get realmInfo() {\n return {\n ...this.baseInfo,\n type: this.realmType,\n owners: [this.#ownerRealm.realmId],\n };\n }\n}\nexports.DedicatedWorkerRealm = DedicatedWorkerRealm;\n//# sourceMappingURL=DedicatedWorkerRealm.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assert = void 0;\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nfunction assert(predicate, message) {\n if (!predicate) {\n throw new Error(message ?? 'Internal assertion failed.');\n }\n}\nexports.assert = assert;\n//# sourceMappingURL=assert.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Deferred = void 0;\nclass Deferred {\n #isFinished = false;\n #promise;\n #resolve;\n #reject;\n get isFinished() {\n return this.#isFinished;\n }\n constructor() {\n this.#promise = new Promise((resolve, reject) => {\n this.#resolve = resolve;\n this.#reject = reject;\n });\n // Needed to avoid `Uncaught (in promise)`. The promises returned by `then`\n // and `catch` will be rejected anyway.\n this.#promise.catch((_error) => {\n // Intentionally empty.\n });\n }\n then(onFulfilled, onRejected) {\n return this.#promise.then(onFulfilled, onRejected);\n }\n catch(onRejected) {\n return this.#promise.catch(onRejected);\n }\n resolve(value) {\n if (!this.#isFinished) {\n this.#isFinished = true;\n this.#resolve(value);\n }\n }\n reject(reason) {\n if (!this.#isFinished) {\n this.#isFinished = true;\n this.#reject(reason);\n }\n }\n finally(onFinally) {\n return this.#promise.finally(onFinally);\n }\n [Symbol.toStringTag] = 'Promise';\n}\nexports.Deferred = Deferred;\n//# sourceMappingURL=Deferred.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.inchesFromCm = void 0;\n/** @return Given an input in cm, convert it to inches. */\nfunction inchesFromCm(cm) {\n return cm / 2.54;\n}\nexports.inchesFromCm = inchesFromCm;\n//# sourceMappingURL=unitConversions.js.map","\"use strict\";\n/*\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parseSharedId = exports.getSharedId = void 0;\nconst SHARED_ID_DIVIDER = '_element_';\nfunction getSharedId(frameId, documentId, backendNodeId, sharedIdWithFrame) {\n if (sharedIdWithFrame) {\n return `f.${frameId}.d.${documentId}.e.${backendNodeId}`;\n }\n // TODO: remove once ChromeDriver accepts sharedId in the new format:\n // http://go/chromedriver:weak-map\n return `${documentId}${SHARED_ID_DIVIDER}${backendNodeId}`;\n}\nexports.getSharedId = getSharedId;\nfunction parseLegacySharedId(sharedId) {\n const match = sharedId.match(new RegExp(`(.*)${SHARED_ID_DIVIDER}(.*)`));\n if (!match) {\n // SharedId is incorrectly formatted.\n return null;\n }\n const documentId = match[1];\n const elementId = match[2];\n if (documentId === undefined || elementId === undefined) {\n return null;\n }\n const backendNodeId = parseInt(elementId ?? '');\n if (isNaN(backendNodeId)) {\n return null;\n }\n return {\n documentId,\n backendNodeId,\n };\n}\nfunction parseSharedId(sharedId) {\n // TODO: remove legacy check once ChromeDriver provides sharedId in the new format.\n const legacyFormattedSharedId = parseLegacySharedId(sharedId);\n if (legacyFormattedSharedId !== null) {\n return { ...legacyFormattedSharedId, frameId: undefined };\n }\n const match = sharedId.match(/f\\.(.*)\\.d\\.(.*)\\.e\\.([0-9]*)/);\n if (!match) {\n // SharedId is incorrectly formatted.\n return null;\n }\n const frameId = match[1];\n const documentId = match[2];\n const elementId = match[3];\n if (frameId === undefined ||\n documentId === undefined ||\n elementId === undefined) {\n return null;\n }\n const backendNodeId = parseInt(elementId ?? '');\n if (isNaN(backendNodeId)) {\n return null;\n }\n return {\n frameId,\n documentId,\n backendNodeId,\n };\n}\nexports.parseSharedId = parseSharedId;\n//# sourceMappingURL=SharedId.js.map","\"use strict\";\n/**\n * Copyright 2024 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WindowRealm = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst Realm_js_1 = require(\"./Realm.js\");\nconst SharedId_js_1 = require(\"./SharedId.js\");\nclass WindowRealm extends Realm_js_1.Realm {\n #browsingContextId;\n #browsingContextStorage;\n #sharedIdWithFrame;\n sandbox;\n constructor(browsingContextId, browsingContextStorage, cdpClient, eventManager, executionContextId, logger, origin, realmId, realmStorage, sandbox, sharedIdWithFrame) {\n super(cdpClient, eventManager, executionContextId, logger, origin, realmId, realmStorage);\n this.#browsingContextId = browsingContextId;\n this.#browsingContextStorage = browsingContextStorage;\n this.#sharedIdWithFrame = sharedIdWithFrame;\n this.sandbox = sandbox;\n this.initialize();\n }\n #getBrowsingContextId(navigableId) {\n const maybeBrowsingContext = this.#browsingContextStorage\n .getAllContexts()\n .find((context) => context.navigableId === navigableId);\n return maybeBrowsingContext?.id ?? 'UNKNOWN';\n }\n get browsingContext() {\n return this.#browsingContextStorage.getContext(this.#browsingContextId);\n }\n get associatedBrowsingContexts() {\n return [this.browsingContext];\n }\n get realmType() {\n return 'window';\n }\n get realmInfo() {\n return {\n ...this.baseInfo,\n type: this.realmType,\n context: this.#browsingContextId,\n sandbox: this.sandbox,\n };\n }\n get source() {\n return {\n realm: this.realmId,\n context: this.browsingContext.id,\n };\n }\n serializeForBiDi(deepSerializedValue, internalIdMap) {\n const bidiValue = deepSerializedValue.value;\n if (deepSerializedValue.type === 'node') {\n if (Object.hasOwn(bidiValue, 'backendNodeId')) {\n let navigableId = this.browsingContext.navigableId ?? 'UNKNOWN';\n if (Object.hasOwn(bidiValue, 'loaderId')) {\n // `loaderId` should be always there after ~2024-03-05, when\n // https://crrev.com/c/5116240 reaches stable.\n // TODO: remove the check after the date.\n navigableId = bidiValue.loaderId;\n delete bidiValue['loaderId'];\n }\n deepSerializedValue.sharedId =\n (0, SharedId_js_1.getSharedId)(this.#getBrowsingContextId(navigableId), navigableId, bidiValue.backendNodeId, this.#sharedIdWithFrame);\n delete bidiValue['backendNodeId'];\n }\n if (Object.hasOwn(bidiValue, 'children')) {\n for (const i in bidiValue.children) {\n bidiValue.children[i] = this.serializeForBiDi(bidiValue.children[i], internalIdMap);\n }\n }\n if (Object.hasOwn(bidiValue, 'shadowRoot') &&\n bidiValue.shadowRoot !== null) {\n bidiValue.shadowRoot = this.serializeForBiDi(bidiValue.shadowRoot, internalIdMap);\n }\n // `namespaceURI` can be is either `null` or non-empty string.\n if (bidiValue.namespaceURI === '') {\n bidiValue.namespaceURI = null;\n }\n }\n return super.serializeForBiDi(deepSerializedValue, internalIdMap);\n }\n async deserializeForCdp(localValue) {\n if ('sharedId' in localValue && localValue.sharedId) {\n const parsedSharedId = (0, SharedId_js_1.parseSharedId)(localValue.sharedId);\n if (parsedSharedId === null) {\n throw new protocol_js_1.NoSuchNodeException(`SharedId \"${localValue.sharedId}\" was not found.`);\n }\n const { documentId, backendNodeId } = parsedSharedId;\n // TODO: add proper validation if the element is accessible from the current realm.\n if (this.browsingContext.navigableId !== documentId) {\n throw new protocol_js_1.NoSuchNodeException(`SharedId \"${localValue.sharedId}\" belongs to different document. Current document is ${this.browsingContext.navigableId}.`);\n }\n try {\n const { object } = await this.cdpClient.sendCommand('DOM.resolveNode', {\n backendNodeId,\n executionContextId: this.executionContextId,\n });\n // TODO(#375): Release `obj.object.objectId` after using.\n return { objectId: object.objectId };\n }\n catch (error) {\n // Heuristic to detect \"no such node\" exception. Based on the specific\n // CDP implementation.\n if (error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ &&\n error.message === 'No node with given id found') {\n throw new protocol_js_1.NoSuchNodeException(`SharedId \"${localValue.sharedId}\" was not found.`);\n }\n throw new protocol_js_1.UnknownErrorException(error.message, error.stack);\n }\n }\n return await super.deserializeForCdp(localValue);\n }\n async evaluate(expression, awaitPromise, resultOwnership, serializationOptions, userActivation) {\n await this.#browsingContextStorage\n .getContext(this.#browsingContextId)\n .targetUnblockedOrThrow();\n return await super.evaluate(expression, awaitPromise, resultOwnership, serializationOptions, userActivation);\n }\n async callFunction(functionDeclaration, thisLocalValue, argumentsLocalValues, awaitPromise, resultOwnership, serializationOptions, userActivation) {\n await this.#browsingContextStorage\n .getContext(this.#browsingContextId)\n .targetUnblockedOrThrow();\n return await super.callFunction(functionDeclaration, thisLocalValue, argumentsLocalValues, awaitPromise, resultOwnership, serializationOptions, userActivation);\n }\n}\nexports.WindowRealm = WindowRealm;\n//# sourceMappingURL=WindowRealm.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.serializeOrigin = exports.BrowsingContextImpl = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst assert_js_1 = require(\"../../../utils/assert.js\");\nconst Deferred_js_1 = require(\"../../../utils/Deferred.js\");\nconst log_js_1 = require(\"../../../utils/log.js\");\nconst unitConversions_js_1 = require(\"../../../utils/unitConversions.js\");\nconst WindowRealm_js_1 = require(\"../script/WindowRealm.js\");\nclass BrowsingContextImpl {\n static LOGGER_PREFIX = `${log_js_1.LogType.debug}:browsingContext`;\n /** The ID of this browsing context. */\n #id;\n userContext;\n /**\n * The ID of the parent browsing context.\n * If null, this is a top-level context.\n */\n #parentId;\n /** Direct children browsing contexts. */\n #children = new Set();\n #browsingContextStorage;\n #lifecycle = {\n DOMContentLoaded: new Deferred_js_1.Deferred(),\n load: new Deferred_js_1.Deferred(),\n };\n #navigation = {\n withinDocument: new Deferred_js_1.Deferred(),\n };\n #url = 'about:blank';\n #eventManager;\n #realmStorage;\n #loaderId;\n #cdpTarget;\n #maybeDefaultRealm;\n #sharedIdWithFrame;\n #logger;\n constructor(cdpTarget, realmStorage, id, parentId, userContext, eventManager, browsingContextStorage, sharedIdWithFrame, logger) {\n this.#cdpTarget = cdpTarget;\n this.#realmStorage = realmStorage;\n this.#id = id;\n this.#parentId = parentId;\n this.userContext = userContext;\n this.#eventManager = eventManager;\n this.#browsingContextStorage = browsingContextStorage;\n this.#sharedIdWithFrame = sharedIdWithFrame;\n this.#logger = logger;\n }\n static create(cdpTarget, realmStorage, id, parentId, userContext, eventManager, browsingContextStorage, sharedIdWithFrame, logger) {\n const context = new BrowsingContextImpl(cdpTarget, realmStorage, id, parentId, userContext, eventManager, browsingContextStorage, sharedIdWithFrame, logger);\n context.#initListeners();\n browsingContextStorage.addContext(context);\n if (!context.isTopLevelContext()) {\n context.parent.addChild(context.id);\n }\n eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.ContextCreated,\n params: context.serializeToBidiValue(),\n }, context.id);\n return context;\n }\n static getTimestamp() {\n // `timestamp` from the event is MonotonicTime, not real time, so\n // the best Mapper can do is to set the timestamp to the epoch time\n // of the event arrived.\n // https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-MonotonicTime\n return new Date().getTime();\n }\n /**\n * @see https://html.spec.whatwg.org/multipage/document-sequences.html#navigable\n */\n get navigableId() {\n return this.#loaderId;\n }\n dispose() {\n this.#deleteAllChildren();\n this.#realmStorage.deleteRealms({\n browsingContextId: this.id,\n });\n // Remove context from the parent.\n if (!this.isTopLevelContext()) {\n this.parent.#children.delete(this.id);\n }\n // Fail all ongoing navigations.\n this.#failLifecycleIfNotFinished();\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.ContextDestroyed,\n params: this.serializeToBidiValue(),\n }, this.id);\n this.#browsingContextStorage.deleteContextById(this.id);\n }\n /** Returns the ID of this context. */\n get id() {\n return this.#id;\n }\n /** Returns the parent context ID. */\n get parentId() {\n return this.#parentId;\n }\n /** Returns the parent context. */\n get parent() {\n if (this.parentId === null) {\n return null;\n }\n return this.#browsingContextStorage.getContext(this.parentId);\n }\n /** Returns all direct children contexts. */\n get directChildren() {\n return [...this.#children].map((id) => this.#browsingContextStorage.getContext(id));\n }\n /** Returns all children contexts, flattened. */\n get allChildren() {\n const children = this.directChildren;\n return children.concat(...children.map((child) => child.allChildren));\n }\n /**\n * Returns true if this is a top-level context.\n * This is the case whenever the parent context ID is null.\n */\n isTopLevelContext() {\n return this.#parentId === null;\n }\n get top() {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n let topContext = this;\n let parent = topContext.parent;\n while (parent) {\n topContext = parent;\n parent = topContext.parent;\n }\n return topContext;\n }\n addChild(childId) {\n this.#children.add(childId);\n }\n #deleteAllChildren() {\n this.directChildren.map((child) => child.dispose());\n }\n get #defaultRealm() {\n (0, assert_js_1.assert)(this.#maybeDefaultRealm, `No default realm for browsing context ${this.#id}`);\n return this.#maybeDefaultRealm;\n }\n get cdpTarget() {\n return this.#cdpTarget;\n }\n updateCdpTarget(cdpTarget) {\n this.#cdpTarget = cdpTarget;\n this.#initListeners();\n }\n get url() {\n return this.#url;\n }\n async lifecycleLoaded() {\n await this.#lifecycle.load;\n }\n async targetUnblockedOrThrow() {\n const result = await this.#cdpTarget.unblocked;\n if (result.kind === 'error') {\n throw result.error;\n }\n }\n async getOrCreateSandbox(sandbox) {\n if (sandbox === undefined || sandbox === '') {\n return this.#defaultRealm;\n }\n let maybeSandboxes = this.#realmStorage.findRealms({\n browsingContextId: this.id,\n sandbox,\n });\n if (maybeSandboxes.length === 0) {\n await this.#cdpTarget.cdpClient.sendCommand('Page.createIsolatedWorld', {\n frameId: this.id,\n worldName: sandbox,\n });\n // `Runtime.executionContextCreated` should be emitted by the time the\n // previous command is done.\n maybeSandboxes = this.#realmStorage.findRealms({\n browsingContextId: this.id,\n sandbox,\n });\n (0, assert_js_1.assert)(maybeSandboxes.length !== 0);\n }\n // It's possible for more than one sandbox to be created due to provisional\n // frames. In this case, it's always the first one (i.e. the oldest one)\n // that is more relevant since the user may have set that one up already\n // through evaluation.\n return maybeSandboxes[0];\n }\n serializeToBidiValue(maxDepth = 0, addParentField = true) {\n return {\n context: this.#id,\n url: this.url,\n userContext: this.userContext,\n children: maxDepth > 0\n ? this.directChildren.map((c) => c.serializeToBidiValue(maxDepth - 1, false))\n : null,\n ...(addParentField ? { parent: this.#parentId } : {}),\n };\n }\n onTargetInfoChanged(params) {\n this.#url = params.targetInfo.url;\n }\n #initListeners() {\n this.#cdpTarget.cdpClient.on('Page.frameNavigated', (params) => {\n if (this.id !== params.frame.id) {\n return;\n }\n this.#url = params.frame.url + (params.frame.urlFragment ?? '');\n // At the point the page is initialized, all the nested iframes from the\n // previous page are detached and realms are destroyed.\n // Remove children from context.\n this.#deleteAllChildren();\n });\n this.#cdpTarget.cdpClient.on('Page.navigatedWithinDocument', (params) => {\n if (this.id !== params.frameId) {\n return;\n }\n const timestamp = BrowsingContextImpl.getTimestamp();\n this.#url = params.url;\n this.#navigation.withinDocument.resolve(params);\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated,\n params: {\n context: this.id,\n navigation: null,\n timestamp,\n url: this.#url,\n },\n }, this.id);\n });\n this.#cdpTarget.cdpClient.on('Page.frameStartedLoading', (params) => {\n if (this.id !== params.frameId) {\n return;\n }\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted,\n params: {\n context: this.id,\n navigation: null,\n timestamp: BrowsingContextImpl.getTimestamp(),\n url: '',\n },\n }, this.id);\n });\n this.#cdpTarget.cdpClient.on('Page.lifecycleEvent', (params) => {\n if (this.id !== params.frameId) {\n return;\n }\n if (params.name === 'init') {\n this.#documentChanged(params.loaderId);\n return;\n }\n if (params.name === 'commit') {\n this.#loaderId = params.loaderId;\n return;\n }\n // Ignore event from not current navigation.\n if (params.loaderId !== this.#loaderId) {\n return;\n }\n const timestamp = BrowsingContextImpl.getTimestamp();\n switch (params.name) {\n case 'DOMContentLoaded':\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.DomContentLoaded,\n params: {\n context: this.id,\n navigation: this.#loaderId ?? null,\n timestamp,\n url: this.#url,\n },\n }, this.id);\n this.#lifecycle.DOMContentLoaded.resolve(params);\n break;\n case 'load':\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.Load,\n params: {\n context: this.id,\n navigation: this.#loaderId ?? null,\n timestamp,\n url: this.#url,\n },\n }, this.id);\n this.#lifecycle.load.resolve(params);\n break;\n }\n });\n this.#cdpTarget.cdpClient.on('Runtime.executionContextCreated', (params) => {\n const { auxData, name, uniqueId, id } = params.context;\n if (!auxData || auxData.frameId !== this.id) {\n return;\n }\n let origin;\n let sandbox;\n // Only these execution contexts are supported for now.\n switch (auxData.type) {\n case 'isolated':\n sandbox = name;\n // Sandbox should have the same origin as the context itself, but in CDP\n // it has an empty one.\n origin = this.#defaultRealm.origin;\n break;\n case 'default':\n origin = serializeOrigin(params.context.origin);\n break;\n default:\n return;\n }\n const realm = new WindowRealm_js_1.WindowRealm(this.id, this.#browsingContextStorage, this.#cdpTarget.cdpClient, this.#eventManager, id, this.#logger, origin, uniqueId, this.#realmStorage, sandbox, this.#sharedIdWithFrame);\n if (auxData.isDefault) {\n this.#maybeDefaultRealm = realm;\n // Initialize ChannelProxy listeners for all the channels of all the\n // preload scripts related to this BrowsingContext.\n // TODO: extend for not default realms by the sandbox name.\n void Promise.all(this.#cdpTarget\n .getChannels()\n .map((channel) => channel.startListenerFromWindow(realm, this.#eventManager)));\n }\n });\n this.#cdpTarget.cdpClient.on('Runtime.executionContextDestroyed', (params) => {\n this.#realmStorage.deleteRealms({\n cdpSessionId: this.#cdpTarget.cdpSessionId,\n executionContextId: params.executionContextId,\n });\n });\n this.#cdpTarget.cdpClient.on('Runtime.executionContextsCleared', () => {\n this.#realmStorage.deleteRealms({\n cdpSessionId: this.#cdpTarget.cdpSessionId,\n });\n });\n this.#cdpTarget.cdpClient.on('Page.javascriptDialogClosed', (params) => {\n const accepted = params.result;\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.UserPromptClosed,\n params: {\n context: this.id,\n accepted,\n userText: accepted && params.userInput ? params.userInput : undefined,\n },\n }, this.id);\n });\n this.#cdpTarget.cdpClient.on('Page.javascriptDialogOpening', (params) => {\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.BrowsingContext.EventNames.UserPromptOpened,\n params: {\n context: this.id,\n type: params.type,\n message: params.message,\n // Don't set the value if empty string\n defaultValue: params.defaultPrompt || undefined,\n },\n }, this.id);\n });\n }\n #documentChanged(loaderId) {\n // Same document navigation.\n if (loaderId === undefined || this.#loaderId === loaderId) {\n if (this.#navigation.withinDocument.isFinished) {\n this.#navigation.withinDocument =\n new Deferred_js_1.Deferred();\n }\n else {\n this.#logger?.(BrowsingContextImpl.LOGGER_PREFIX, 'Document changed (navigatedWithinDocument)');\n }\n return;\n }\n this.#resetLifecycleIfFinished();\n this.#loaderId = loaderId;\n }\n #resetLifecycleIfFinished() {\n if (this.#lifecycle.DOMContentLoaded.isFinished) {\n this.#lifecycle.DOMContentLoaded =\n new Deferred_js_1.Deferred();\n }\n else {\n this.#logger?.(BrowsingContextImpl.LOGGER_PREFIX, 'Document changed (DOMContentLoaded)');\n }\n if (this.#lifecycle.load.isFinished) {\n this.#lifecycle.load = new Deferred_js_1.Deferred();\n }\n else {\n this.#logger?.(BrowsingContextImpl.LOGGER_PREFIX, 'Document changed (load)');\n }\n }\n #failLifecycleIfNotFinished() {\n if (!this.#lifecycle.DOMContentLoaded.isFinished) {\n this.#lifecycle.DOMContentLoaded.reject(new protocol_js_1.UnknownErrorException('navigation canceled'));\n }\n if (!this.#lifecycle.load.isFinished) {\n this.#lifecycle.load.reject(new protocol_js_1.UnknownErrorException('navigation canceled'));\n }\n }\n async navigate(url, wait) {\n try {\n new URL(url);\n }\n catch {\n throw new protocol_js_1.InvalidArgumentException(`Invalid URL: ${url}`);\n }\n await this.targetUnblockedOrThrow();\n // TODO: handle loading errors.\n const cdpNavigateResult = await this.#cdpTarget.cdpClient.sendCommand('Page.navigate', {\n url,\n frameId: this.id,\n });\n if (cdpNavigateResult.errorText) {\n throw new protocol_js_1.UnknownErrorException(cdpNavigateResult.errorText);\n }\n this.#documentChanged(cdpNavigateResult.loaderId);\n switch (wait) {\n case \"none\" /* BrowsingContext.ReadinessState.None */:\n break;\n case \"interactive\" /* BrowsingContext.ReadinessState.Interactive */:\n // No `loaderId` means same-document navigation.\n if (cdpNavigateResult.loaderId === undefined) {\n await this.#navigation.withinDocument;\n }\n else {\n await this.#lifecycle.DOMContentLoaded;\n }\n break;\n case \"complete\" /* BrowsingContext.ReadinessState.Complete */:\n // No `loaderId` means same-document navigation.\n if (cdpNavigateResult.loaderId === undefined) {\n await this.#navigation.withinDocument;\n }\n else {\n await this.#lifecycle.load;\n }\n break;\n }\n return {\n navigation: cdpNavigateResult.loaderId ?? null,\n // Url can change due to redirect get the latest one.\n url: wait === \"none\" /* BrowsingContext.ReadinessState.None */ ? url : this.#url,\n };\n }\n async reload(ignoreCache, wait) {\n await this.targetUnblockedOrThrow();\n await this.#cdpTarget.cdpClient.sendCommand('Page.reload', {\n ignoreCache,\n });\n this.#resetLifecycleIfFinished();\n switch (wait) {\n case \"none\" /* BrowsingContext.ReadinessState.None */:\n break;\n case \"interactive\" /* BrowsingContext.ReadinessState.Interactive */:\n await this.#lifecycle.DOMContentLoaded;\n break;\n case \"complete\" /* BrowsingContext.ReadinessState.Complete */:\n await this.#lifecycle.load;\n break;\n }\n return {\n navigation: wait === \"none\" /* BrowsingContext.ReadinessState.None */\n ? null\n : this.navigableId ?? null,\n url: this.url,\n };\n }\n async setViewport(viewport, devicePixelRatio) {\n if (viewport === null && devicePixelRatio === null) {\n await this.#cdpTarget.cdpClient.sendCommand('Emulation.clearDeviceMetricsOverride');\n }\n else {\n try {\n await this.#cdpTarget.cdpClient.sendCommand('Emulation.setDeviceMetricsOverride', {\n width: viewport ? viewport.width : 0,\n height: viewport ? viewport.height : 0,\n deviceScaleFactor: devicePixelRatio ? devicePixelRatio : 0,\n mobile: false,\n dontSetVisibleSize: true,\n });\n }\n catch (err) {\n if (err.message.startsWith(\n // https://crsrc.org/c/content/browser/devtools/protocol/emulation_handler.cc;l=257;drc=2f6eee84cf98d4227e7c41718dd71b82f26d90ff\n 'Width and height values must be positive')) {\n throw new protocol_js_1.UnsupportedOperationException('Provided viewport dimensions are not supported');\n }\n throw err;\n }\n }\n }\n async handleUserPrompt(params) {\n await this.#cdpTarget.cdpClient.sendCommand('Page.handleJavaScriptDialog', {\n accept: params.accept ?? true,\n promptText: params.userText,\n });\n }\n async activate() {\n await this.#cdpTarget.cdpClient.sendCommand('Page.bringToFront');\n }\n async captureScreenshot(params) {\n if (!this.isTopLevelContext()) {\n throw new protocol_js_1.UnsupportedOperationException(`Non-top-level 'context' (${params.context}) is currently not supported`);\n }\n const formatParameters = getImageFormatParameters(params);\n // XXX: Focus the original tab after the screenshot is taken.\n // This is needed because the screenshot gets blocked until the active tab gets focus.\n await this.#cdpTarget.cdpClient.sendCommand('Page.bringToFront');\n let captureBeyondViewport = false;\n let script;\n params.origin ??= 'viewport';\n switch (params.origin) {\n case 'document': {\n script = String(() => {\n const element = document.documentElement;\n return {\n x: 0,\n y: 0,\n width: element.scrollWidth,\n height: element.scrollHeight,\n };\n });\n captureBeyondViewport = true;\n break;\n }\n case 'viewport': {\n script = String(() => {\n const viewport = window.visualViewport;\n return {\n x: viewport.pageLeft,\n y: viewport.pageTop,\n width: viewport.width,\n height: viewport.height,\n };\n });\n break;\n }\n }\n const realm = await this.getOrCreateSandbox(undefined);\n const originResult = await realm.callFunction(script, { type: 'undefined' }, [], false, \"none\" /* Script.ResultOwnership.None */, {}, false);\n (0, assert_js_1.assert)(originResult.type === 'success');\n const origin = deserializeDOMRect(originResult.result);\n (0, assert_js_1.assert)(origin);\n const rect = params.clip\n ? getIntersectionRect(await this.#parseRect(params.clip), origin)\n : origin;\n if (rect.width === 0 || rect.height === 0) {\n throw new protocol_js_1.UnableToCaptureScreenException(`Unable to capture screenshot with zero dimensions: width=${rect.width}, height=${rect.height}`);\n }\n return await this.#cdpTarget.cdpClient.sendCommand('Page.captureScreenshot', {\n clip: { ...rect, scale: 1.0 },\n ...formatParameters,\n captureBeyondViewport,\n });\n }\n async print(params) {\n const cdpParams = {};\n if (params.background !== undefined) {\n cdpParams.printBackground = params.background;\n }\n if (params.margin?.bottom !== undefined) {\n cdpParams.marginBottom = (0, unitConversions_js_1.inchesFromCm)(params.margin.bottom);\n }\n if (params.margin?.left !== undefined) {\n cdpParams.marginLeft = (0, unitConversions_js_1.inchesFromCm)(params.margin.left);\n }\n if (params.margin?.right !== undefined) {\n cdpParams.marginRight = (0, unitConversions_js_1.inchesFromCm)(params.margin.right);\n }\n if (params.margin?.top !== undefined) {\n cdpParams.marginTop = (0, unitConversions_js_1.inchesFromCm)(params.margin.top);\n }\n if (params.orientation !== undefined) {\n cdpParams.landscape = params.orientation === 'landscape';\n }\n if (params.page?.height !== undefined) {\n cdpParams.paperHeight = (0, unitConversions_js_1.inchesFromCm)(params.page.height);\n }\n if (params.page?.width !== undefined) {\n cdpParams.paperWidth = (0, unitConversions_js_1.inchesFromCm)(params.page.width);\n }\n if (params.pageRanges !== undefined) {\n for (const range of params.pageRanges) {\n if (typeof range === 'number') {\n continue;\n }\n const rangeParts = range.split('-');\n if (rangeParts.length < 1 || rangeParts.length > 2) {\n throw new protocol_js_1.InvalidArgumentException(`Invalid page range: ${range} is not a valid integer range.`);\n }\n if (rangeParts.length === 1) {\n void parseInteger(rangeParts[0] ?? '');\n continue;\n }\n let lowerBound;\n let upperBound;\n const [rangeLowerPart = '', rangeUpperPart = ''] = rangeParts;\n if (rangeLowerPart === '') {\n lowerBound = 1;\n }\n else {\n lowerBound = parseInteger(rangeLowerPart);\n }\n if (rangeUpperPart === '') {\n upperBound = Number.MAX_SAFE_INTEGER;\n }\n else {\n upperBound = parseInteger(rangeUpperPart);\n }\n if (lowerBound > upperBound) {\n throw new protocol_js_1.InvalidArgumentException(`Invalid page range: ${rangeLowerPart} > ${rangeUpperPart}`);\n }\n }\n cdpParams.pageRanges = params.pageRanges.join(',');\n }\n if (params.scale !== undefined) {\n cdpParams.scale = params.scale;\n }\n if (params.shrinkToFit !== undefined) {\n cdpParams.preferCSSPageSize = !params.shrinkToFit;\n }\n try {\n const result = await this.#cdpTarget.cdpClient.sendCommand('Page.printToPDF', cdpParams);\n return {\n data: result.data,\n };\n }\n catch (error) {\n // Effectively zero dimensions.\n if (error.message ===\n 'invalid print parameters: content area is empty') {\n throw new protocol_js_1.UnsupportedOperationException(error.message);\n }\n throw error;\n }\n }\n /**\n * See\n * https://w3c.github.io/webdriver-bidi/#:~:text=If%20command%20parameters%20contains%20%22clip%22%3A\n */\n async #parseRect(clip) {\n switch (clip.type) {\n case 'box':\n return { x: clip.x, y: clip.y, width: clip.width, height: clip.height };\n case 'element': {\n // TODO: #1213: Use custom sandbox specifically for Chromium BiDi\n const sandbox = await this.getOrCreateSandbox(undefined);\n const result = await sandbox.callFunction(String((element) => {\n return element instanceof Element;\n }), { type: 'undefined' }, [clip.element], false, \"none\" /* Script.ResultOwnership.None */, {});\n if (result.type === 'exception') {\n throw new protocol_js_1.NoSuchElementException(`Element '${clip.element.sharedId}' was not found`);\n }\n (0, assert_js_1.assert)(result.result.type === 'boolean');\n if (!result.result.value) {\n throw new protocol_js_1.NoSuchElementException(`Node '${clip.element.sharedId}' is not an Element`);\n }\n {\n const result = await sandbox.callFunction(String((element) => {\n const rect = element.getBoundingClientRect();\n return {\n x: rect.x,\n y: rect.y,\n height: rect.height,\n width: rect.width,\n };\n }), { type: 'undefined' }, [clip.element], false, \"none\" /* Script.ResultOwnership.None */, {});\n (0, assert_js_1.assert)(result.type === 'success');\n const rect = deserializeDOMRect(result.result);\n if (!rect) {\n throw new protocol_js_1.UnableToCaptureScreenException(`Could not get bounding box for Element '${clip.element.sharedId}'`);\n }\n return rect;\n }\n }\n }\n }\n async close() {\n await this.#cdpTarget.cdpClient.sendCommand('Page.close');\n }\n async traverseHistory(delta) {\n if (delta === 0) {\n return;\n }\n const history = await this.#cdpTarget.cdpClient.sendCommand('Page.getNavigationHistory');\n const entry = history.entries[history.currentIndex + delta];\n if (!entry) {\n throw new protocol_js_1.NoSuchHistoryEntryException(`No history entry at delta ${delta}`);\n }\n await this.#cdpTarget.cdpClient.sendCommand('Page.navigateToHistoryEntry', {\n entryId: entry.id,\n });\n }\n}\nexports.BrowsingContextImpl = BrowsingContextImpl;\nfunction serializeOrigin(origin) {\n // https://html.spec.whatwg.org/multipage/origin.html#ascii-serialisation-of-an-origin\n if (['://', ''].includes(origin)) {\n origin = 'null';\n }\n return origin;\n}\nexports.serializeOrigin = serializeOrigin;\nfunction getImageFormatParameters(params) {\n const { quality, type } = params.format ?? {\n type: 'image/png',\n };\n switch (type) {\n case 'image/png': {\n return { format: 'png' };\n }\n case 'image/jpeg': {\n return {\n format: 'jpeg',\n ...(quality === undefined ? {} : { quality: Math.round(quality * 100) }),\n };\n }\n case 'image/webp': {\n return {\n format: 'webp',\n ...(quality === undefined ? {} : { quality: Math.round(quality * 100) }),\n };\n }\n }\n throw new protocol_js_1.InvalidArgumentException(`Image format '${type}' is not a supported format`);\n}\nfunction deserializeDOMRect(result) {\n if (result.type !== 'object' || result.value === undefined) {\n return;\n }\n const x = result.value.find(([key]) => {\n return key === 'x';\n })?.[1];\n const y = result.value.find(([key]) => {\n return key === 'y';\n })?.[1];\n const height = result.value.find(([key]) => {\n return key === 'height';\n })?.[1];\n const width = result.value.find(([key]) => {\n return key === 'width';\n })?.[1];\n if (x?.type !== 'number' ||\n y?.type !== 'number' ||\n height?.type !== 'number' ||\n width?.type !== 'number') {\n return;\n }\n return {\n x: x.value,\n y: y.value,\n width: width.value,\n height: height.value,\n };\n}\n/** @see https://w3c.github.io/webdriver-bidi/#normalize-rect */\nfunction normalizeRect(box) {\n return {\n ...(box.width < 0\n ? {\n x: box.x + box.width,\n width: -box.width,\n }\n : {\n x: box.x,\n width: box.width,\n }),\n ...(box.height < 0\n ? {\n y: box.y + box.height,\n height: -box.height,\n }\n : {\n y: box.y,\n height: box.height,\n }),\n };\n}\n/** @see https://w3c.github.io/webdriver-bidi/#rectangle-intersection */\nfunction getIntersectionRect(first, second) {\n first = normalizeRect(first);\n second = normalizeRect(second);\n const x = Math.max(first.x, second.x);\n const y = Math.max(first.y, second.y);\n return {\n x,\n y,\n width: Math.max(Math.min(first.x + first.width, second.x + second.width) - x, 0),\n height: Math.max(Math.min(first.y + first.height, second.y + second.height) - y, 0),\n };\n}\nfunction parseInteger(value) {\n value = value.trim();\n if (!/^[0-9]+$/.test(value)) {\n throw new protocol_js_1.InvalidArgumentException(`Invalid integer: ${value}`);\n }\n return parseInt(value);\n}\n//# sourceMappingURL=BrowsingContextImpl.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRemoteValuesText = exports.logMessageFormatter = void 0;\nconst assert_js_1 = require(\"../../../utils/assert.js\");\nconst specifiers = ['%s', '%d', '%i', '%f', '%o', '%O', '%c'];\nfunction isFormatSpecifier(str) {\n return specifiers.some((spec) => str.includes(spec));\n}\n/**\n * @param args input remote values to be format printed\n * @return parsed text of the remote values in specific format\n */\nfunction logMessageFormatter(args) {\n let output = '';\n const argFormat = args[0].value.toString();\n const argValues = args.slice(1, undefined);\n const tokens = argFormat.split(new RegExp(specifiers.map((spec) => `(${spec})`).join('|'), 'g'));\n for (const token of tokens) {\n if (token === undefined || token === '') {\n continue;\n }\n if (isFormatSpecifier(token)) {\n const arg = argValues.shift();\n // raise an exception when less value is provided\n (0, assert_js_1.assert)(arg, `Less value is provided: \"${getRemoteValuesText(args, false)}\"`);\n if (token === '%s') {\n output += stringFromArg(arg);\n }\n else if (token === '%d' || token === '%i') {\n if (arg.type === 'bigint' ||\n arg.type === 'number' ||\n arg.type === 'string') {\n output += parseInt(arg.value.toString(), 10);\n }\n else {\n output += 'NaN';\n }\n }\n else if (token === '%f') {\n if (arg.type === 'bigint' ||\n arg.type === 'number' ||\n arg.type === 'string') {\n output += parseFloat(arg.value.toString());\n }\n else {\n output += 'NaN';\n }\n }\n else {\n // %o, %O, %c\n output += toJson(arg);\n }\n }\n else {\n output += token;\n }\n }\n // raise an exception when more value is provided\n if (argValues.length > 0) {\n throw new Error(`More value is provided: \"${getRemoteValuesText(args, false)}\"`);\n }\n return output;\n}\nexports.logMessageFormatter = logMessageFormatter;\n/**\n * @param arg input remote value to be parsed\n * @return parsed text of the remote value\n *\n * input: {\"type\": \"number\", \"value\": 1}\n * output: 1\n *\n * input: {\"type\": \"string\", \"value\": \"abc\"}\n * output: \"abc\"\n *\n * input: {\"type\": \"object\", \"value\": [[\"id\", {\"type\": \"number\", \"value\": 1}]]}\n * output: '{\"id\": 1}'\n *\n * input: {\"type\": \"object\", \"value\": [[\"font-size\", {\"type\": \"string\", \"value\": \"20px\"}]]}\n * output: '{\"font-size\": \"20px\"}'\n */\nfunction toJson(arg) {\n // arg type validation\n if (arg.type !== 'array' &&\n arg.type !== 'bigint' &&\n arg.type !== 'date' &&\n arg.type !== 'number' &&\n arg.type !== 'object' &&\n arg.type !== 'string') {\n return stringFromArg(arg);\n }\n if (arg.type === 'bigint') {\n return `${arg.value.toString()}n`;\n }\n if (arg.type === 'number') {\n return arg.value.toString();\n }\n if (['date', 'string'].includes(arg.type)) {\n return JSON.stringify(arg.value);\n }\n if (arg.type === 'object') {\n return `{${arg.value\n .map((pair) => {\n return `${JSON.stringify(pair[0])}:${toJson(pair[1])}`;\n })\n .join(',')}}`;\n }\n if (arg.type === 'array') {\n return `[${arg.value?.map((val) => toJson(val)).join(',') ?? ''}]`;\n }\n // eslint-disable-next-line @typescript-eslint/no-base-to-string\n throw Error(`Invalid value type: ${arg}`);\n}\nfunction stringFromArg(arg) {\n if (!Object.hasOwn(arg, 'value')) {\n return arg.type;\n }\n switch (arg.type) {\n case 'string':\n case 'number':\n case 'boolean':\n case 'bigint':\n return String(arg.value);\n case 'regexp':\n return `/${arg.value.pattern}/${arg.value.flags ?? ''}`;\n case 'date':\n return new Date(arg.value).toString();\n case 'object':\n return `Object(${arg.value?.length ?? ''})`;\n case 'array':\n return `Array(${arg.value?.length ?? ''})`;\n case 'map':\n return `Map(${arg.value?.length})`;\n case 'set':\n return `Set(${arg.value?.length})`;\n default:\n return arg.type;\n }\n}\nfunction getRemoteValuesText(args, formatText) {\n const arg = args[0];\n if (!arg) {\n return '';\n }\n // if args[0] is a format specifier, format the args as output\n if (arg.type === 'string' &&\n isFormatSpecifier(arg.value.toString()) &&\n formatText) {\n return logMessageFormatter(args);\n }\n // if args[0] is not a format specifier, just join the args with \\u0020 (unicode 'SPACE')\n return args\n .map((arg) => {\n return stringFromArg(arg);\n })\n .join('\\u0020');\n}\nexports.getRemoteValuesText = getRemoteValuesText;\n//# sourceMappingURL=logHelper.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.LogManager = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst log_js_1 = require(\"../../../utils/log.js\");\nconst logHelper_js_1 = require(\"./logHelper.js\");\n/** Converts CDP StackTrace object to BiDi StackTrace object. */\nfunction getBidiStackTrace(cdpStackTrace) {\n const stackFrames = cdpStackTrace?.callFrames.map((callFrame) => {\n return {\n columnNumber: callFrame.columnNumber,\n functionName: callFrame.functionName,\n lineNumber: callFrame.lineNumber,\n url: callFrame.url,\n };\n });\n return stackFrames ? { callFrames: stackFrames } : undefined;\n}\nfunction getLogLevel(consoleApiType) {\n if ([\"error\" /* Log.Level.Error */, 'assert'].includes(consoleApiType)) {\n return \"error\" /* Log.Level.Error */;\n }\n if ([\"debug\" /* Log.Level.Debug */, 'trace'].includes(consoleApiType)) {\n return \"debug\" /* Log.Level.Debug */;\n }\n if ([\"warn\" /* Log.Level.Warn */, 'warning'].includes(consoleApiType)) {\n return \"warn\" /* Log.Level.Warn */;\n }\n return \"info\" /* Log.Level.Info */;\n}\nclass LogManager {\n #eventManager;\n #realmStorage;\n #cdpTarget;\n #logger;\n constructor(cdpTarget, realmStorage, eventManager, logger) {\n this.#cdpTarget = cdpTarget;\n this.#realmStorage = realmStorage;\n this.#eventManager = eventManager;\n this.#logger = logger;\n }\n static create(cdpTarget, realmStorage, eventManager, logger) {\n const logManager = new LogManager(cdpTarget, realmStorage, eventManager, logger);\n logManager.#initializeEntryAddedEventListener();\n return logManager;\n }\n #initializeEntryAddedEventListener() {\n this.#cdpTarget.cdpClient.on('Runtime.consoleAPICalled', (params) => {\n // Try to find realm by `cdpSessionId` and `executionContextId`,\n // if provided.\n const realm = this.#realmStorage.findRealm({\n cdpSessionId: this.#cdpTarget.cdpSessionId,\n executionContextId: params.executionContextId,\n });\n if (realm === undefined) {\n // Ignore exceptions not attached to any realm.\n this.#logger?.(log_js_1.LogType.cdp, params);\n return;\n }\n const argsPromise = realm === undefined\n ? Promise.resolve(params.args)\n : // Properly serialize arguments if possible.\n Promise.all(params.args.map((arg) => {\n return realm.serializeCdpObject(arg, \"none\" /* Script.ResultOwnership.None */);\n }));\n for (const browsingContext of realm.associatedBrowsingContexts) {\n this.#eventManager.registerPromiseEvent(argsPromise.then((args) => ({\n kind: 'success',\n value: {\n type: 'event',\n method: protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded,\n params: {\n level: getLogLevel(params.type),\n source: realm.source,\n text: (0, logHelper_js_1.getRemoteValuesText)(args, true),\n timestamp: Math.round(params.timestamp),\n stackTrace: getBidiStackTrace(params.stackTrace),\n type: 'console',\n // Console method is `warn`, not `warning`.\n method: params.type === 'warning' ? 'warn' : params.type,\n args,\n },\n },\n })), browsingContext.id, protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded);\n }\n });\n this.#cdpTarget.cdpClient.on('Runtime.exceptionThrown', (params) => {\n // Try to find realm by `cdpSessionId` and `executionContextId`,\n // if provided.\n const realm = this.#realmStorage.findRealm({\n cdpSessionId: this.#cdpTarget.cdpSessionId,\n executionContextId: params.exceptionDetails.executionContextId,\n });\n if (realm === undefined) {\n // Ignore exceptions not attached to any realm.\n this.#logger?.(log_js_1.LogType.cdp, params);\n return;\n }\n for (const browsingContext of realm.associatedBrowsingContexts) {\n this.#eventManager.registerPromiseEvent(LogManager.#getExceptionText(params, realm).then((text) => ({\n kind: 'success',\n value: {\n type: 'event',\n method: protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded,\n params: {\n level: \"error\" /* Log.Level.Error */,\n source: realm.source,\n text,\n timestamp: Math.round(params.timestamp),\n stackTrace: getBidiStackTrace(params.exceptionDetails.stackTrace),\n type: 'javascript',\n },\n },\n })), browsingContext.id, protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded);\n }\n });\n }\n /**\n * Try the best to get the exception text.\n */\n static async #getExceptionText(params, realm) {\n if (!params.exceptionDetails.exception) {\n return params.exceptionDetails.text;\n }\n if (realm === undefined) {\n return JSON.stringify(params.exceptionDetails.exception);\n }\n return await realm.stringifyObject(params.exceptionDetails.exception);\n }\n}\nexports.LogManager = LogManager;\n//# sourceMappingURL=LogManager.js.map","\"use strict\";\n/*\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.bidiToCdpCookie = exports.cdpToBiDiCookie = exports.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction = exports.cdpFetchHeadersFromBidiNetworkHeaders = exports.bidiNetworkHeadersFromCdpFetchHeaders = exports.cdpNetworkHeadersFromBidiNetworkHeaders = exports.bidiNetworkHeadersFromCdpNetworkHeaders = exports.computeHeadersSize = void 0;\nconst ErrorResponse_1 = require(\"../../../protocol/ErrorResponse\");\nfunction computeHeadersSize(headers) {\n const requestHeaders = headers.reduce((acc, header) => {\n return `${acc}${header.name}: ${header.value.value}\\r\\n`;\n }, '');\n return new TextEncoder().encode(requestHeaders).length;\n}\nexports.computeHeadersSize = computeHeadersSize;\n/** Converts from CDP Network domain headers to Bidi network headers. */\nfunction bidiNetworkHeadersFromCdpNetworkHeaders(headers) {\n if (!headers) {\n return [];\n }\n return Object.entries(headers).map(([name, value]) => ({\n name,\n value: {\n type: 'string',\n value,\n },\n }));\n}\nexports.bidiNetworkHeadersFromCdpNetworkHeaders = bidiNetworkHeadersFromCdpNetworkHeaders;\n/** Converts from Bidi network headers to CDP Network domain headers. */\nfunction cdpNetworkHeadersFromBidiNetworkHeaders(headers) {\n if (headers === undefined) {\n return undefined;\n }\n return headers.reduce((result, header) => {\n // TODO: Distinguish between string and bytes?\n result[header.name] = header.value.value;\n return result;\n }, {});\n}\nexports.cdpNetworkHeadersFromBidiNetworkHeaders = cdpNetworkHeadersFromBidiNetworkHeaders;\n/** Converts from CDP Fetch domain header entries to Bidi network headers. */\nfunction bidiNetworkHeadersFromCdpFetchHeaders(headers) {\n if (!headers) {\n return [];\n }\n return headers.map(({ name, value }) => ({\n name,\n value: {\n type: 'string',\n value,\n },\n }));\n}\nexports.bidiNetworkHeadersFromCdpFetchHeaders = bidiNetworkHeadersFromCdpFetchHeaders;\n/** Converts from Bidi network headers to CDP Fetch domain header entries. */\nfunction cdpFetchHeadersFromBidiNetworkHeaders(headers) {\n if (headers === undefined) {\n return undefined;\n }\n return headers.map(({ name, value }) => ({\n name,\n value: value.value,\n }));\n}\nexports.cdpFetchHeadersFromBidiNetworkHeaders = cdpFetchHeadersFromBidiNetworkHeaders;\n/** Converts from Bidi auth action to CDP auth challenge response. */\nfunction cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction(action) {\n switch (action) {\n case 'default':\n return 'Default';\n case 'cancel':\n return 'CancelAuth';\n case 'provideCredentials':\n return 'ProvideCredentials';\n }\n}\nexports.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction = cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction;\n/**\n * Converts from CDP Network domain cookie to BiDi network cookie.\n * * https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-Cookie\n * * https://w3c.github.io/webdriver-bidi/#type-network-Cookie\n */\nfunction cdpToBiDiCookie(cookie) {\n const result = {\n name: cookie.name,\n value: { type: 'string', value: cookie.value },\n domain: cookie.domain,\n path: cookie.path,\n size: cookie.size,\n httpOnly: cookie.httpOnly,\n secure: cookie.secure,\n sameSite: cookie.sameSite === undefined\n ? \"none\" /* Network.SameSite.None */\n : sameSiteCdpToBiDi(cookie.sameSite),\n ...(cookie.expires >= 0 ? { expiry: cookie.expires } : undefined),\n };\n // Extending with CDP-specific properties with `goog:` prefix.\n result[`goog:session`] = cookie.session;\n result[`goog:priority`] = cookie.priority;\n result[`goog:sameParty`] = cookie.sameParty;\n result[`goog:sourceScheme`] = cookie.sourceScheme;\n result[`goog:sourcePort`] = cookie.sourcePort;\n if (cookie.partitionKey !== undefined) {\n result[`goog:partitionKey`] = cookie.partitionKey;\n }\n if (cookie.partitionKeyOpaque !== undefined) {\n result[`goog:partitionKeyOpaque`] = cookie.partitionKeyOpaque;\n }\n return result;\n}\nexports.cdpToBiDiCookie = cdpToBiDiCookie;\n/**\n * Converts from BiDi set network cookie params to CDP Network domain cookie.\n * * https://w3c.github.io/webdriver-bidi/#type-network-Cookie\n * * https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-CookieParam\n */\nfunction bidiToCdpCookie(params, partitionKey) {\n if (params.cookie.value.type !== 'string') {\n // CDP supports only string values in cookies.\n throw new ErrorResponse_1.UnsupportedOperationException('Only string cookie values are supported');\n }\n const deserializedValue = params.cookie.value.value;\n const result = {\n name: params.cookie.name,\n value: deserializedValue,\n domain: params.cookie.domain,\n path: params.cookie.path ?? '/',\n secure: params.cookie.secure ?? false,\n httpOnly: params.cookie.httpOnly ?? false,\n // CDP's `partitionKey` is the BiDi's `partition.sourceOrigin`.\n ...(partitionKey.sourceOrigin !== undefined && {\n partitionKey: partitionKey.sourceOrigin,\n }),\n ...(params.cookie.expiry !== undefined && {\n expires: params.cookie.expiry,\n }),\n ...(params.cookie.sameSite !== undefined && {\n sameSite: sameSiteBiDiToCdp(params.cookie.sameSite),\n }),\n };\n // Extending with CDP-specific properties with `goog:` prefix.\n if (params.cookie[`goog:url`] !== undefined) {\n result.url = params.cookie[`goog:url`];\n }\n if (params.cookie[`goog:priority`] !== undefined) {\n result.priority = params.cookie[`goog:priority`];\n }\n if (params.cookie[`goog:sameParty`] !== undefined) {\n result.sameParty = params.cookie[`goog:sameParty`];\n }\n if (params.cookie[`goog:sourceScheme`] !== undefined) {\n result.sourceScheme = params.cookie[`goog:sourceScheme`];\n }\n if (params.cookie[`goog:sourcePort`] !== undefined) {\n result.sourcePort = params.cookie[`goog:sourcePort`];\n }\n return result;\n}\nexports.bidiToCdpCookie = bidiToCdpCookie;\nfunction sameSiteCdpToBiDi(sameSite) {\n switch (sameSite) {\n case 'Strict':\n return \"strict\" /* Network.SameSite.Strict */;\n case 'None':\n return \"none\" /* Network.SameSite.None */;\n case 'Lax':\n return \"lax\" /* Network.SameSite.Lax */;\n default:\n // Defaults to `Lax`:\n // https://web.dev/articles/samesite-cookies-explained#samesitelax_by_default\n return \"lax\" /* Network.SameSite.Lax */;\n }\n}\nfunction sameSiteBiDiToCdp(sameSite) {\n switch (sameSite) {\n case \"strict\" /* Network.SameSite.Strict */:\n return 'Strict';\n case \"lax\" /* Network.SameSite.Lax */:\n return 'Lax';\n case \"none\" /* Network.SameSite.None */:\n return 'None';\n }\n throw new ErrorResponse_1.InvalidArgumentException(`Unknown 'sameSite' value ${sameSite}`);\n}\n//# sourceMappingURL=NetworkUtils.js.map","\"use strict\";\n/*\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NetworkRequest = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst assert_js_1 = require(\"../../../utils/assert.js\");\nconst Deferred_js_1 = require(\"../../../utils/Deferred.js\");\nconst NetworkUtils_js_1 = require(\"./NetworkUtils.js\");\n/** Abstracts one individual network request. */\nclass NetworkRequest {\n static #unknown = 'UNKNOWN';\n /**\n * Each network request has an associated request id, which is a string\n * uniquely identifying that request.\n *\n * The identifier for a request resulting from a redirect matches that of the\n * request that initiated it.\n */\n #requestId;\n // TODO: Handle auth required?\n /**\n * Indicates the network intercept phase, if the request is currently blocked.\n * Undefined necessarily implies that the request is not blocked.\n */\n #interceptPhase = undefined;\n #servedFromCache = false;\n #redirectCount;\n #eventManager;\n #networkStorage;\n #request = {};\n #response = {};\n #beforeRequestSentDeferred = new Deferred_js_1.Deferred();\n #responseStartedDeferred = new Deferred_js_1.Deferred();\n #responseCompletedDeferred = new Deferred_js_1.Deferred();\n #cdpTarget;\n constructor(requestId, eventManager, networkStorage, cdpTarget, redirectCount = 0) {\n this.#requestId = requestId;\n this.#eventManager = eventManager;\n this.#networkStorage = networkStorage;\n this.#cdpTarget = cdpTarget;\n this.#redirectCount = redirectCount;\n }\n get requestId() {\n return this.#requestId;\n }\n get url() {\n return this.#response.info?.url ?? this.#request.info?.request.url;\n }\n get redirectCount() {\n return this.#redirectCount;\n }\n get cdpTarget() {\n return this.#cdpTarget;\n }\n isRedirecting() {\n return Boolean(this.#request.info);\n }\n handleRedirect(event) {\n this.#queueResponseStartedEvent();\n this.#queueResponseCompletedEvent();\n this.#response.hasExtraInfo = event.redirectHasExtraInfo;\n this.#response.info = event.redirectResponse;\n this.#emitEventsIfReady(true);\n }\n #emitEventsIfReady(wasRedirected = false) {\n const requestExtraInfoCompleted = \n // Flush redirects\n wasRedirected ||\n Boolean(this.#request.extraInfo) ||\n // Requests from cache don't have extra info\n this.#servedFromCache ||\n // Sometimes there is no extra info and the response\n // is the only place we can find out\n Boolean(this.#response.info && !this.#response.hasExtraInfo) ||\n this.#interceptPhase === \"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */;\n if (this.#request.info && requestExtraInfoCompleted) {\n this.#beforeRequestSentDeferred.resolve({\n kind: 'success',\n value: undefined,\n });\n }\n const responseExtraInfoCompleted = Boolean(this.#response.extraInfo) ||\n // Response from cache don't have extra info\n this.#servedFromCache ||\n // Don't expect extra info if the flag is false\n Boolean(this.#response.info && !this.#response.hasExtraInfo) ||\n this.#interceptPhase === \"responseStarted\" /* Network.InterceptPhase.ResponseStarted */;\n if (this.#response.info && responseExtraInfoCompleted) {\n this.#responseStartedDeferred.resolve({\n kind: 'success',\n value: undefined,\n });\n this.#responseCompletedDeferred.resolve({\n kind: 'success',\n value: undefined,\n });\n }\n }\n onRequestWillBeSentEvent(event) {\n this.#request.info = event;\n this.#queueBeforeRequestSentEvent();\n this.#emitEventsIfReady();\n }\n onRequestWillBeSentExtraInfoEvent(event) {\n this.#request.extraInfo = event;\n this.#emitEventsIfReady();\n }\n onResponseReceivedExtraInfoEvent(event) {\n this.#response.extraInfo = event;\n this.#emitEventsIfReady();\n }\n onResponseReceivedEvent(event) {\n this.#response.hasExtraInfo = event.hasExtraInfo;\n this.#response.info = event.response;\n this.#queueResponseStartedEvent();\n this.#queueResponseCompletedEvent();\n this.#emitEventsIfReady();\n }\n onServedFromCache() {\n this.#servedFromCache = true;\n this.#emitEventsIfReady();\n }\n onLoadingFailedEvent(event) {\n this.#beforeRequestSentDeferred.resolve({\n kind: 'success',\n value: undefined,\n });\n this.#responseStartedDeferred.resolve({\n kind: 'error',\n error: new Error('Network event loading failed'),\n });\n this.#responseCompletedDeferred.resolve({\n kind: 'error',\n error: new Error('Network event loading failed'),\n });\n this.#eventManager.registerEvent({\n type: 'event',\n method: protocol_js_1.ChromiumBidi.Network.EventNames.FetchError,\n params: {\n ...this.#getBaseEventParams(),\n errorText: event.errorText,\n },\n }, this.#context);\n }\n /** Fired whenever a network request interception is hit. */\n onRequestPaused(params) {\n if (this.#isIgnoredEvent()) {\n void this.continueRequest(params.requestId).catch(() => {\n // TODO: Add some logging\n });\n return;\n }\n // The stage of the request can be determined by presence of\n // responseErrorReason and responseStatusCode -- the request is at\n // the response stage if either of these fields is present and in the\n // request stage otherwise.\n let phase;\n if (params.responseErrorReason === undefined &&\n params.responseStatusCode === undefined) {\n phase = \"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */;\n }\n else if (params.responseStatusCode === 401 &&\n params.responseStatusText === 'Unauthorized') {\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401\n phase = \"authRequired\" /* Network.InterceptPhase.AuthRequired */;\n }\n else {\n phase = \"responseStarted\" /* Network.InterceptPhase.ResponseStarted */;\n }\n const headers = (0, NetworkUtils_js_1.bidiNetworkHeadersFromCdpFetchHeaders)(\n // TODO: Use params.request.headers if request?\n params.responseHeaders);\n this.#networkStorage.addBlockedRequest(this.requestId, {\n request: params.requestId, // intercept request id\n phase,\n // TODO: Finish populating response / ResponseData.\n response: {\n url: params.request.url,\n // TODO: populate.\n protocol: '',\n status: params.responseStatusCode ?? 0,\n statusText: params.responseStatusText ?? '',\n // TODO: populate.\n fromCache: false,\n headers,\n // TODO: populate.\n mimeType: '',\n // TODO: populate.\n bytesReceived: 0,\n headersSize: (0, NetworkUtils_js_1.computeHeadersSize)(headers),\n // TODO: consider removing from spec.\n bodySize: 0,\n // TODO: consider removing from spec.\n content: {\n size: 0,\n },\n // TODO: populate.\n authChallenge: undefined,\n },\n });\n this.#interceptPhase = phase;\n this.#emitEventsIfReady();\n }\n /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-failRequest */\n async failRequest(networkId, errorReason) {\n await this.#cdpTarget.cdpClient.sendCommand('Fetch.failRequest', {\n requestId: networkId,\n errorReason,\n });\n this.#interceptPhase = undefined;\n }\n /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueRequest */\n async continueRequest(cdpFetchRequestId, url, method, headers) {\n // TODO: Expand.\n await this.#cdpTarget.cdpClient.sendCommand('Fetch.continueRequest', {\n requestId: cdpFetchRequestId,\n url,\n method,\n headers,\n // TODO: Set?\n // postData:,\n // interceptResponse:,\n });\n this.#interceptPhase = undefined;\n }\n /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueResponse */\n async continueResponse(cdpFetchRequestId, responseCode, responsePhrase, responseHeaders) {\n await this.#cdpTarget.cdpClient.sendCommand('Fetch.continueResponse', {\n requestId: cdpFetchRequestId,\n responseCode,\n responsePhrase,\n responseHeaders,\n });\n this.#interceptPhase = undefined;\n }\n /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-continueWithAuth */\n async continueWithAuth(cdpFetchRequestId, response, username, password) {\n await this.#cdpTarget.cdpClient.sendCommand('Fetch.continueWithAuth', {\n requestId: cdpFetchRequestId,\n authChallengeResponse: {\n response,\n username,\n password,\n },\n });\n this.#interceptPhase = undefined;\n }\n /** @see https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#method-provideResponse */\n async provideResponse(cdpFetchRequestId, responseCode, responsePhrase, responseHeaders, body) {\n await this.#cdpTarget.cdpClient.sendCommand('Fetch.fulfillRequest', {\n requestId: cdpFetchRequestId,\n responseCode,\n responsePhrase,\n responseHeaders,\n ...(body ? { body: btoa(body) } : {}), // TODO: Double-check if btoa usage is correct.\n });\n this.#interceptPhase = undefined;\n }\n dispose() {\n const result = {\n kind: 'error',\n error: new Error('Network processor detached'),\n };\n this.#beforeRequestSentDeferred.resolve(result);\n this.#responseStartedDeferred.resolve(result);\n this.#responseCompletedDeferred.resolve(result);\n }\n get #context() {\n return this.#request.info?.frameId ?? null;\n }\n /** Returns the HTTP status code associated with this request if any. */\n get statusCode() {\n return (this.#response.info?.status ?? this.#response.extraInfo?.statusCode ?? -1 // TODO: Throw an exception or use some other status code?\n );\n }\n #getBaseEventParams(phase) {\n // TODO: Set this in terms of intercepts?\n const isBlocked = phase !== undefined && phase === this.#interceptPhase;\n const intercepts = this.#networkStorage.getNetworkIntercepts(this.#requestId, phase);\n return {\n isBlocked,\n context: this.#context,\n navigation: this.#getNavigationId(),\n redirectCount: this.#redirectCount,\n request: this.#getRequestData(),\n // Timestamp should be in milliseconds, while CDP provides it in seconds.\n timestamp: Math.round((this.#request.info?.wallTime ?? 0) * 1000),\n // XXX: we should return correct types from the function.\n intercepts: isBlocked ? intercepts : undefined,\n };\n }\n #getNavigationId() {\n if (!this.#request.info ||\n !this.#request.info.loaderId ||\n // When we navigate all CDP network events have `loaderId`\n // CDP's `loaderId` and `requestId` match when\n // that request triggered the loading\n this.#request.info.loaderId !== this.#request.info.requestId) {\n return null;\n }\n return this.#request.info.loaderId;\n }\n #getRequestData() {\n const cookies = this.#request.extraInfo\n ? NetworkRequest.#getCookies(this.#request.extraInfo.associatedCookies)\n : [];\n const headers = (0, NetworkUtils_js_1.bidiNetworkHeadersFromCdpNetworkHeaders)(this.#request.info?.request.headers);\n return {\n request: this.#request.info?.requestId ?? NetworkRequest.#unknown,\n url: this.#request.info?.request.url ?? NetworkRequest.#unknown,\n method: this.#request.info?.request.method ?? NetworkRequest.#unknown,\n headers,\n cookies,\n headersSize: (0, NetworkUtils_js_1.computeHeadersSize)(headers),\n // TODO: implement.\n bodySize: 0,\n timings: this.#getTimings(),\n };\n }\n // TODO: implement.\n #getTimings() {\n return {\n timeOrigin: 0,\n requestTime: 0,\n redirectStart: 0,\n redirectEnd: 0,\n fetchStart: 0,\n dnsStart: 0,\n dnsEnd: 0,\n connectStart: 0,\n connectEnd: 0,\n tlsStart: 0,\n requestStart: 0,\n responseStart: 0,\n responseEnd: 0,\n };\n }\n #queueBeforeRequestSentEvent() {\n if (this.#isIgnoredEvent()) {\n return;\n }\n this.#eventManager.registerPromiseEvent(this.#beforeRequestSentDeferred.then((result) => {\n if (result.kind === 'success') {\n try {\n return {\n kind: 'success',\n value: Object.assign(this.#getBeforeRequestEvent(), {\n type: 'event',\n }),\n };\n }\n catch (error) {\n return {\n kind: 'error',\n error: error instanceof Error ? error : new Error('Unknown'),\n };\n }\n }\n return result;\n }), this.#context, protocol_js_1.ChromiumBidi.Network.EventNames.BeforeRequestSent);\n }\n #getBeforeRequestEvent() {\n (0, assert_js_1.assert)(this.#request.info, 'RequestWillBeSentEvent is not set');\n return {\n method: protocol_js_1.ChromiumBidi.Network.EventNames.BeforeRequestSent,\n params: {\n ...this.#getBaseEventParams(\"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */),\n initiator: {\n type: NetworkRequest.#getInitiatorType(this.#request.info.initiator.type),\n },\n },\n };\n }\n #queueResponseStartedEvent() {\n if (this.#isIgnoredEvent()) {\n return;\n }\n this.#eventManager.registerPromiseEvent(this.#responseStartedDeferred.then((result) => {\n if (result.kind === 'success') {\n try {\n return {\n kind: 'success',\n value: Object.assign(this.#getResponseStartedEvent(), {\n type: 'event',\n }),\n };\n }\n catch (error) {\n return {\n kind: 'error',\n error: error instanceof Error ? error : new Error('Unknown'),\n };\n }\n }\n return result;\n }), this.#context, protocol_js_1.ChromiumBidi.Network.EventNames.ResponseStarted);\n }\n #getResponseStartedEvent() {\n (0, assert_js_1.assert)(this.#request.info, 'RequestWillBeSentEvent is not set');\n (0, assert_js_1.assert)(this.#response.info, 'ResponseReceivedEvent is not set');\n // Chromium sends wrong extraInfo events for responses served from cache.\n // See https://github.com/puppeteer/puppeteer/issues/9965 and\n // https://crbug.com/1340398.\n if (this.#response.info.fromDiskCache) {\n this.#response.extraInfo = undefined;\n }\n const headers = (0, NetworkUtils_js_1.bidiNetworkHeadersFromCdpNetworkHeaders)(this.#response.info.headers);\n return {\n method: protocol_js_1.ChromiumBidi.Network.EventNames.ResponseStarted,\n params: {\n ...this.#getBaseEventParams(),\n response: {\n url: this.#response.info.url ?? NetworkRequest.#unknown,\n protocol: this.#response.info.protocol ?? '',\n status: this.statusCode,\n statusText: this.#response.info.statusText,\n fromCache: this.#response.info.fromDiskCache ||\n this.#response.info.fromPrefetchCache ||\n this.#servedFromCache,\n headers,\n mimeType: this.#response.info.mimeType,\n bytesReceived: this.#response.info.encodedDataLength,\n headersSize: (0, NetworkUtils_js_1.computeHeadersSize)(headers),\n // TODO: consider removing from spec.\n bodySize: 0,\n content: {\n // TODO: consider removing from spec.\n size: 0,\n },\n },\n },\n };\n }\n #queueResponseCompletedEvent() {\n if (this.#isIgnoredEvent()) {\n return;\n }\n this.#eventManager.registerPromiseEvent(this.#responseCompletedDeferred.then((result) => {\n if (result.kind === 'success') {\n try {\n return {\n kind: 'success',\n value: Object.assign(this.#getResponseReceivedEvent(), {\n type: 'event',\n }),\n };\n }\n catch (error) {\n return {\n kind: 'error',\n error: error instanceof Error ? error : new Error('Unknown'),\n };\n }\n }\n return result;\n }), this.#context, protocol_js_1.ChromiumBidi.Network.EventNames.ResponseCompleted);\n }\n #getResponseReceivedEvent() {\n (0, assert_js_1.assert)(this.#request.info, 'RequestWillBeSentEvent is not set');\n (0, assert_js_1.assert)(this.#response.info, 'ResponseReceivedEvent is not set');\n // Chromium sends wrong extraInfo events for responses served from cache.\n // See https://github.com/puppeteer/puppeteer/issues/9965 and\n // https://crbug.com/1340398.\n if (this.#response.info.fromDiskCache) {\n this.#response.extraInfo = undefined;\n }\n const headers = (0, NetworkUtils_js_1.bidiNetworkHeadersFromCdpNetworkHeaders)(this.#response.info.headers);\n return {\n method: protocol_js_1.ChromiumBidi.Network.EventNames.ResponseCompleted,\n params: {\n ...this.#getBaseEventParams(),\n response: {\n url: this.#response.info.url ?? NetworkRequest.#unknown,\n protocol: this.#response.info.protocol ?? '',\n status: this.statusCode,\n statusText: this.#response.info.statusText,\n fromCache: this.#response.info.fromDiskCache ||\n this.#response.info.fromPrefetchCache ||\n this.#servedFromCache,\n headers,\n mimeType: this.#response.info.mimeType,\n bytesReceived: this.#response.info.encodedDataLength,\n headersSize: (0, NetworkUtils_js_1.computeHeadersSize)(headers),\n // TODO: consider removing from spec.\n bodySize: 0,\n content: {\n // TODO: consider removing from spec.\n size: 0,\n },\n },\n },\n };\n }\n #isIgnoredEvent() {\n return this.#request.info?.request.url.endsWith('/favicon.ico') ?? false;\n }\n static #getInitiatorType(initiatorType) {\n switch (initiatorType) {\n case 'parser':\n case 'script':\n case 'preflight':\n return initiatorType;\n default:\n return 'other';\n }\n }\n static #getCookies(associatedCookies) {\n return associatedCookies\n .filter(({ blockedReasons }) => {\n return !Array.isArray(blockedReasons) || blockedReasons.length === 0;\n })\n .map(({ cookie }) => (0, NetworkUtils_js_1.cdpToBiDiCookie)(cookie));\n }\n}\nexports.NetworkRequest = NetworkRequest;\n//# sourceMappingURL=NetworkRequest.js.map","\"use strict\";\n/*\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NetworkManager = void 0;\nconst NetworkRequest_js_1 = require(\"./NetworkRequest.js\");\n/** Maps 1:1 to CdpTarget. */\nclass NetworkManager {\n #cdpTarget;\n #eventManager;\n #networkStorage;\n constructor(cdpTarget, eventManager, networkStorage) {\n this.#cdpTarget = cdpTarget;\n this.#eventManager = eventManager;\n this.#networkStorage = networkStorage;\n }\n /** Returns the CDP Target associated with this NetworkManager instance. */\n get cdpTarget() {\n return this.#cdpTarget;\n }\n /**\n * Gets the network request with the given ID, if any.\n * Otherwise, creates a new network request with the given ID and cdp target.\n */\n #getOrCreateNetworkRequest(id, redirectCount) {\n let request = this.#networkStorage.getRequest(id);\n if (request) {\n return request;\n }\n request = new NetworkRequest_js_1.NetworkRequest(id, this.#eventManager, this.#networkStorage, this.#cdpTarget, redirectCount);\n this.#networkStorage.addRequest(request);\n return request;\n }\n static create(cdpTarget, eventManager, networkStorage) {\n const networkManager = new NetworkManager(cdpTarget, eventManager, networkStorage);\n cdpTarget.browserCdpClient.on('Target.detachedFromTarget', (params) => {\n if (cdpTarget.cdpClient.sessionId === params.sessionId) {\n networkManager.#networkStorage.disposeRequestMap();\n }\n });\n cdpTarget.cdpClient.on('Network.requestWillBeSent', (params) => {\n const request = networkManager.#networkStorage.getRequest(params.requestId);\n if (request && request.isRedirecting()) {\n request.handleRedirect(params);\n networkManager.#networkStorage.deleteRequest(params.requestId);\n networkManager\n .#getOrCreateNetworkRequest(params.requestId, request.redirectCount + 1)\n .onRequestWillBeSentEvent(params);\n }\n else if (request) {\n request.onRequestWillBeSentEvent(params);\n }\n else {\n networkManager\n .#getOrCreateNetworkRequest(params.requestId)\n .onRequestWillBeSentEvent(params);\n }\n });\n cdpTarget.cdpClient.on('Network.requestWillBeSentExtraInfo', (params) => {\n networkManager\n .#getOrCreateNetworkRequest(params.requestId)\n .onRequestWillBeSentExtraInfoEvent(params);\n });\n cdpTarget.cdpClient.on('Network.responseReceived', (params) => {\n networkManager\n .#getOrCreateNetworkRequest(params.requestId)\n .onResponseReceivedEvent(params);\n });\n cdpTarget.cdpClient.on('Network.responseReceivedExtraInfo', (params) => {\n networkManager\n .#getOrCreateNetworkRequest(params.requestId)\n .onResponseReceivedExtraInfoEvent(params);\n });\n cdpTarget.cdpClient.on('Network.requestServedFromCache', (params) => {\n networkManager\n .#getOrCreateNetworkRequest(params.requestId)\n .onServedFromCache();\n });\n cdpTarget.cdpClient.on('Network.loadingFailed', (params) => {\n networkManager\n .#getOrCreateNetworkRequest(params.requestId)\n .onLoadingFailedEvent(params);\n });\n // https://chromedevtools.github.io/devtools-protocol/tot/Fetch/#event-requestPaused\n cdpTarget.cdpClient.on('Fetch.requestPaused', (params) => {\n if (params.networkId) {\n networkManager\n .#getOrCreateNetworkRequest(params.networkId)\n .onRequestPaused(params);\n }\n });\n return networkManager;\n }\n}\nexports.NetworkManager = NetworkManager;\n//# sourceMappingURL=NetworkManager.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CdpTarget = void 0;\nconst Deferred_js_1 = require(\"../../../utils/Deferred.js\");\nconst LogManager_js_1 = require(\"../log/LogManager.js\");\nconst NetworkManager_js_1 = require(\"../network/NetworkManager.js\");\nclass CdpTarget {\n #id;\n #cdpClient;\n #browserCdpClient;\n #eventManager;\n #preloadScriptStorage;\n #networkStorage;\n #targetUnblocked = new Deferred_js_1.Deferred();\n #acceptInsecureCerts;\n static create(targetId, cdpClient, browserCdpClient, realmStorage, eventManager, preloadScriptStorage, networkStorage, acceptInsecureCerts, logger) {\n const cdpTarget = new CdpTarget(targetId, cdpClient, browserCdpClient, eventManager, preloadScriptStorage, networkStorage, acceptInsecureCerts);\n LogManager_js_1.LogManager.create(cdpTarget, realmStorage, eventManager, logger);\n NetworkManager_js_1.NetworkManager.create(cdpTarget, eventManager, networkStorage);\n cdpTarget.#setEventListeners();\n // No need to await.\n // Deferred will be resolved when the target is unblocked.\n void cdpTarget.#unblock();\n return cdpTarget;\n }\n constructor(targetId, cdpClient, browserCdpClient, eventManager, preloadScriptStorage, networkStorage, acceptInsecureCerts) {\n this.#id = targetId;\n this.#cdpClient = cdpClient;\n this.#eventManager = eventManager;\n this.#preloadScriptStorage = preloadScriptStorage;\n this.#networkStorage = networkStorage;\n this.#browserCdpClient = browserCdpClient;\n this.#acceptInsecureCerts = acceptInsecureCerts;\n }\n /** Returns a deferred that resolves when the target is unblocked. */\n get unblocked() {\n return this.#targetUnblocked;\n }\n get id() {\n return this.#id;\n }\n get cdpClient() {\n return this.#cdpClient;\n }\n get browserCdpClient() {\n return this.#browserCdpClient;\n }\n /** Needed for CDP escape path. */\n get cdpSessionId() {\n // SAFETY we got the client by it's id for creating\n return this.#cdpClient.sessionId;\n }\n /** Calls `Fetch.enable` with the added network intercepts. */\n async fetchEnable() {\n await this.#cdpClient.sendCommand('Fetch.enable', this.#networkStorage.getFetchEnableParams());\n }\n /** Calls `Fetch.disable`. */\n async fetchDisable() {\n await this.#cdpClient.sendCommand('Fetch.disable');\n }\n /**\n * Enables all the required CDP domains and unblocks the target.\n */\n async #unblock() {\n try {\n await Promise.all([\n this.#cdpClient.sendCommand('Runtime.enable'),\n this.#cdpClient.sendCommand('Page.enable'),\n this.#cdpClient.sendCommand('Page.setLifecycleEventsEnabled', {\n enabled: true,\n }),\n // Set ignore certificate errors for each target.\n this.#cdpClient.sendCommand('Security.setIgnoreCertificateErrors', {\n ignore: this.#acceptInsecureCerts,\n }),\n // XXX: #1080: Do not always enable the network domain globally.\n // TODO: enable Network domain for OOPiF targets.\n this.#cdpClient.sendCommand('Network.enable'),\n // XXX: #1080: Do not always enable the fetch domain globally.\n this.fetchEnable(),\n this.#cdpClient.sendCommand('Target.setAutoAttach', {\n autoAttach: true,\n waitForDebuggerOnStart: true,\n flatten: true,\n }),\n this.#initAndEvaluatePreloadScripts(),\n this.#cdpClient.sendCommand('Runtime.runIfWaitingForDebugger'),\n ]);\n }\n catch (error) {\n // The target might have been closed before the initialization finished.\n if (!this.#cdpClient.isCloseError(error)) {\n this.#targetUnblocked.resolve({\n kind: 'error',\n error,\n });\n return;\n }\n }\n this.#targetUnblocked.resolve({\n kind: 'success',\n value: undefined,\n });\n }\n #setEventListeners() {\n this.#cdpClient.on('*', (event, params) => {\n // We may encounter uses for EventEmitter other than CDP events,\n // which we want to skip.\n if (typeof event !== 'string') {\n return;\n }\n this.#eventManager.registerEvent({\n type: 'event',\n method: `cdp.${event}`,\n params: {\n event,\n params,\n session: this.cdpSessionId,\n },\n }, null);\n });\n }\n /**\n * All the ProxyChannels from all the preload scripts of the given\n * BrowsingContext.\n */\n getChannels() {\n return this.#preloadScriptStorage\n .find()\n .flatMap((script) => script.channels);\n }\n /** Loads all top-level preload scripts. */\n async #initAndEvaluatePreloadScripts() {\n for (const script of this.#preloadScriptStorage.find({\n global: true,\n })) {\n await script.initInTarget(this, true);\n }\n }\n}\nexports.CdpTarget = CdpTarget;\n//# sourceMappingURL=CdpTarget.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BrowsingContextProcessor = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst log_js_1 = require(\"../../../utils/log.js\");\nconst DedicatedWorkerRealm_js_1 = require(\"../script/DedicatedWorkerRealm.js\");\nconst BrowsingContextImpl_js_1 = require(\"./BrowsingContextImpl.js\");\nconst CdpTarget_js_1 = require(\"./CdpTarget.js\");\nclass BrowsingContextProcessor {\n #browserCdpClient;\n #cdpConnection;\n #selfTargetId;\n #eventManager;\n #browsingContextStorage;\n #networkStorage;\n #acceptInsecureCerts;\n #sharedIdWithFrame;\n #preloadScriptStorage;\n #realmStorage;\n #defaultUserContextId;\n #logger;\n constructor(cdpConnection, browserCdpClient, selfTargetId, eventManager, browsingContextStorage, realmStorage, networkStorage, preloadScriptStorage, acceptInsecureCerts, sharedIdWithFrame, defaultUserContextId, logger) {\n this.#acceptInsecureCerts = acceptInsecureCerts;\n this.#cdpConnection = cdpConnection;\n this.#browserCdpClient = browserCdpClient;\n this.#selfTargetId = selfTargetId;\n this.#eventManager = eventManager;\n this.#browsingContextStorage = browsingContextStorage;\n this.#preloadScriptStorage = preloadScriptStorage;\n this.#networkStorage = networkStorage;\n this.#realmStorage = realmStorage;\n this.#sharedIdWithFrame = sharedIdWithFrame;\n this.#defaultUserContextId = defaultUserContextId;\n this.#logger = logger;\n this.#setEventListeners(browserCdpClient);\n }\n getTree(params) {\n const resultContexts = params.root === undefined\n ? this.#browsingContextStorage.getTopLevelContexts()\n : [this.#browsingContextStorage.getContext(params.root)];\n return {\n contexts: resultContexts.map((c) => c.serializeToBidiValue(params.maxDepth ?? Number.MAX_VALUE)),\n };\n }\n async create(params) {\n let referenceContext;\n let userContext = params.userContext ?? 'default';\n if (params.referenceContext !== undefined) {\n referenceContext = this.#browsingContextStorage.getContext(params.referenceContext);\n if (!referenceContext.isTopLevelContext()) {\n throw new protocol_js_1.InvalidArgumentException(`referenceContext should be a top-level context`);\n }\n userContext = referenceContext.userContext;\n }\n let newWindow = false;\n switch (params.type) {\n case \"tab\" /* BrowsingContext.CreateType.Tab */:\n newWindow = false;\n break;\n case \"window\" /* BrowsingContext.CreateType.Window */:\n newWindow = true;\n break;\n }\n if (userContext !== 'default') {\n const existingContexts = this.#browsingContextStorage\n .getAllContexts()\n .filter((context) => context.userContext === userContext);\n if (!existingContexts.length) {\n // If there are no contexts in the given user context, we need to set\n // newWindow to true as newWindow=false will be rejected.\n newWindow = true;\n }\n }\n let result;\n try {\n result = await this.#browserCdpClient.sendCommand('Target.createTarget', {\n url: 'about:blank',\n newWindow,\n browserContextId: userContext === 'default' ? undefined : userContext,\n });\n }\n catch (err) {\n if (\n // See https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/devtools/protocol/target_handler.cc;l=90;drc=e80392ac11e48a691f4309964cab83a3a59e01c8\n err.message.startsWith('Failed to find browser context with id') ||\n // See https://source.chromium.org/chromium/chromium/src/+/main:headless/lib/browser/protocol/target_handler.cc;l=49;drc=e80392ac11e48a691f4309964cab83a3a59e01c8\n err.message === 'browserContextId') {\n throw new protocol_js_1.NoSuchUserContextException(`The context ${userContext} was not found`);\n }\n throw err;\n }\n // Wait for the new tab to be loaded to avoid race conditions in the\n // `browsingContext` events, when the `browsingContext.domContentLoaded` and\n // `browsingContext.load` events from the initial `about:blank` navigation\n // are emitted after the next navigation is started.\n // Details: https://github.com/web-platform-tests/wpt/issues/35846\n const contextId = result.targetId;\n const context = this.#browsingContextStorage.getContext(contextId);\n await context.lifecycleLoaded();\n return { context: context.id };\n }\n navigate(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n return context.navigate(params.url, params.wait ?? \"none\" /* BrowsingContext.ReadinessState.None */);\n }\n reload(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n return context.reload(params.ignoreCache ?? false, params.wait ?? \"none\" /* BrowsingContext.ReadinessState.None */);\n }\n async activate(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n if (!context.isTopLevelContext()) {\n throw new protocol_js_1.InvalidArgumentException('Activation is only supported on the top-level context');\n }\n await context.activate();\n return {};\n }\n async captureScreenshot(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n return await context.captureScreenshot(params);\n }\n async print(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n return await context.print(params);\n }\n async setViewport(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n if (!context.isTopLevelContext()) {\n throw new protocol_js_1.InvalidArgumentException('Emulating viewport is only supported on the top-level context');\n }\n await context.setViewport(params.viewport, params.devicePixelRatio);\n return {};\n }\n async traverseHistory(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n if (!context) {\n throw new protocol_js_1.InvalidArgumentException(`No browsing context with id ${params.context}`);\n }\n await context.traverseHistory(params.delta);\n return {};\n }\n async handleUserPrompt(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n await context.handleUserPrompt(params);\n return {};\n }\n async close(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n if (!context.isTopLevelContext()) {\n throw new protocol_js_1.InvalidArgumentException(`Non top-level browsing context ${context.id} cannot be closed.`);\n }\n try {\n const detachedFromTargetPromise = new Promise((resolve) => {\n const onContextDestroyed = (event) => {\n if (event.targetId === params.context) {\n this.#browserCdpClient.off('Target.detachedFromTarget', onContextDestroyed);\n resolve();\n }\n };\n this.#browserCdpClient.on('Target.detachedFromTarget', onContextDestroyed);\n });\n if (params.promptUnload) {\n await context.close();\n }\n else {\n await this.#browserCdpClient.sendCommand('Target.closeTarget', {\n targetId: params.context,\n });\n }\n // Sometimes CDP command finishes before `detachedFromTarget` event,\n // sometimes after. Wait for the CDP command to be finished, and then wait\n // for `detachedFromTarget` if it hasn't emitted.\n await detachedFromTargetPromise;\n }\n catch (error) {\n // Swallow error that arise from the page being destroyed\n // Example is navigating to faulty SSL certificate\n if (!(error.code === -32000 /* CdpErrorConstants.GENERIC_ERROR */ &&\n error.message === 'Not attached to an active page')) {\n throw error;\n }\n }\n return {};\n }\n /**\n * This method is called for each CDP session, since this class is responsible\n * for creating and destroying all targets and browsing contexts.\n */\n #setEventListeners(cdpClient) {\n cdpClient.on('Target.attachedToTarget', (params) => {\n this.#handleAttachedToTargetEvent(params, cdpClient);\n });\n cdpClient.on('Target.detachedFromTarget', (params) => {\n this.#handleDetachedFromTargetEvent(params);\n });\n cdpClient.on('Target.targetInfoChanged', (params) => {\n this.#handleTargetInfoChangedEvent(params);\n });\n cdpClient.on('Page.frameAttached', (params) => {\n this.#handleFrameAttachedEvent(params);\n });\n cdpClient.on('Page.frameDetached', (params) => {\n this.#handleFrameDetachedEvent(params);\n });\n }\n #handleFrameAttachedEvent(params) {\n const parentBrowsingContext = this.#browsingContextStorage.findContext(params.parentFrameId);\n if (parentBrowsingContext !== undefined) {\n BrowsingContextImpl_js_1.BrowsingContextImpl.create(parentBrowsingContext.cdpTarget, this.#realmStorage, params.frameId, params.parentFrameId, parentBrowsingContext.userContext, this.#eventManager, this.#browsingContextStorage, this.#sharedIdWithFrame, this.#logger);\n }\n }\n #handleFrameDetachedEvent(params) {\n // In case of OOPiF no need in deleting BrowsingContext.\n if (params.reason === 'swap') {\n return;\n }\n this.#browsingContextStorage.findContext(params.frameId)?.dispose();\n }\n #handleAttachedToTargetEvent(params, parentSessionCdpClient) {\n const { sessionId, targetInfo } = params;\n const targetCdpClient = this.#cdpConnection.getCdpClient(sessionId);\n this.#logger?.(log_js_1.LogType.debugInfo, 'AttachedToTarget event received:', params);\n switch (targetInfo.type) {\n case 'page':\n case 'iframe': {\n if (targetInfo.targetId === this.#selfTargetId) {\n break;\n }\n const cdpTarget = this.#createCdpTarget(targetCdpClient, targetInfo);\n const maybeContext = this.#browsingContextStorage.findContext(targetInfo.targetId);\n if (maybeContext) {\n // OOPiF.\n maybeContext.updateCdpTarget(cdpTarget);\n }\n else {\n // New context.\n BrowsingContextImpl_js_1.BrowsingContextImpl.create(cdpTarget, this.#realmStorage, targetInfo.targetId, null, targetInfo.browserContextId &&\n targetInfo.browserContextId !== this.#defaultUserContextId\n ? targetInfo.browserContextId\n : 'default', this.#eventManager, this.#browsingContextStorage, this.#sharedIdWithFrame, this.#logger);\n }\n return;\n }\n case 'worker': {\n const browsingContext = parentSessionCdpClient.sessionId &&\n this.#browsingContextStorage.findContextBySession(parentSessionCdpClient.sessionId);\n // If there is no browsing context, this worker is already terminated.\n if (!browsingContext) {\n break;\n }\n const cdpTarget = this.#createCdpTarget(targetCdpClient, targetInfo);\n this.#handleWorkerTarget(cdpTarget, this.#realmStorage.getRealm({\n browsingContextId: browsingContext.id,\n type: 'window',\n sandbox: undefined,\n }));\n return;\n }\n }\n // DevTools or some other not supported by BiDi target. Just release\n // debugger and ignore them.\n targetCdpClient\n .sendCommand('Runtime.runIfWaitingForDebugger')\n .then(() => parentSessionCdpClient.sendCommand('Target.detachFromTarget', params))\n .catch((error) => this.#logger?.(log_js_1.LogType.debugError, error));\n }\n #createCdpTarget(targetCdpClient, targetInfo) {\n this.#setEventListeners(targetCdpClient);\n return CdpTarget_js_1.CdpTarget.create(targetInfo.targetId, targetCdpClient, this.#browserCdpClient, this.#realmStorage, this.#eventManager, this.#preloadScriptStorage, this.#networkStorage, this.#acceptInsecureCerts, this.#logger);\n }\n #workers = new Map();\n #handleWorkerTarget(cdpTarget, ownerRealm) {\n cdpTarget.cdpClient.on('Runtime.executionContextCreated', (params) => {\n const { uniqueId, id, origin } = params.context;\n const workerRealm = new DedicatedWorkerRealm_js_1.DedicatedWorkerRealm(cdpTarget.cdpClient, this.#eventManager, id, this.#logger, (0, BrowsingContextImpl_js_1.serializeOrigin)(origin), ownerRealm, uniqueId, this.#realmStorage);\n this.#workers.set(cdpTarget.cdpSessionId, workerRealm);\n });\n }\n #handleDetachedFromTargetEvent(params) {\n const context = this.#browsingContextStorage.findContextBySession(params.sessionId);\n if (context) {\n context.dispose();\n this.#preloadScriptStorage\n .find({ targetId: context.id })\n .map((preloadScript) => preloadScript.dispose(context.id));\n return;\n }\n const worker = this.#workers.get(params.sessionId);\n if (worker) {\n this.#realmStorage.deleteRealms({\n cdpSessionId: worker.cdpClient.sessionId,\n });\n }\n }\n #handleTargetInfoChangedEvent(params) {\n const context = this.#browsingContextStorage.findContext(params.targetInfo.targetId);\n if (context) {\n context.onTargetInfoChanged(params);\n }\n }\n}\nexports.BrowsingContextProcessor = BrowsingContextProcessor;\n//# sourceMappingURL=BrowsingContextProcessor.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WheelSource = exports.PointerSource = exports.KeySource = exports.NoneSource = void 0;\nclass NoneSource {\n type = \"none\" /* SourceType.None */;\n}\nexports.NoneSource = NoneSource;\nclass KeySource {\n type = \"key\" /* SourceType.Key */;\n pressed = new Set();\n // This is a bitfield that matches the modifiers parameter of\n // https://chromedevtools.github.io/devtools-protocol/tot/Input/#method-dispatchKeyEvent\n #modifiers = 0;\n get modifiers() {\n return this.#modifiers;\n }\n get alt() {\n return (this.#modifiers & 1) === 1;\n }\n set alt(value) {\n this.#setModifier(value, 1);\n }\n get ctrl() {\n return (this.#modifiers & 2) === 2;\n }\n set ctrl(value) {\n this.#setModifier(value, 2);\n }\n get meta() {\n return (this.#modifiers & 4) === 4;\n }\n set meta(value) {\n this.#setModifier(value, 4);\n }\n get shift() {\n return (this.#modifiers & 8) === 8;\n }\n set shift(value) {\n this.#setModifier(value, 8);\n }\n #setModifier(value, bit) {\n if (value) {\n this.#modifiers |= bit;\n }\n else {\n this.#modifiers &= ~bit;\n }\n }\n}\nexports.KeySource = KeySource;\nclass PointerSource {\n type = \"pointer\" /* SourceType.Pointer */;\n subtype;\n pointerId;\n pressed = new Set();\n x = 0;\n y = 0;\n constructor(id, subtype) {\n this.pointerId = id;\n this.subtype = subtype;\n }\n // This is a bitfield that matches the buttons parameter of\n // https://chromedevtools.github.io/devtools-protocol/tot/Input/#method-dispatchMouseEvent\n get buttons() {\n let buttons = 0;\n for (const button of this.pressed) {\n switch (button) {\n case 0:\n buttons |= 1;\n break;\n case 1:\n buttons |= 4;\n break;\n case 2:\n buttons |= 2;\n break;\n case 3:\n buttons |= 8;\n break;\n case 4:\n buttons |= 16;\n break;\n }\n }\n return buttons;\n }\n // --- Platform-specific code starts here ---\n // Input.dispatchMouseEvent doesn't know the concept of double click, so we\n // need to create the logic, similar to how it's done for OSes:\n // https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:ui/events/event.cc;l=479\n static ClickContext = class ClickContext {\n static #DOUBLE_CLICK_TIME_MS = 500;\n static #MAX_DOUBLE_CLICK_RADIUS = 2;\n count = 0;\n #x;\n #y;\n #time;\n constructor(x, y, time) {\n this.#x = x;\n this.#y = y;\n this.#time = time;\n }\n compare(context) {\n return (\n // The click needs to be within a certain amount of ms.\n context.#time - this.#time > ClickContext.#DOUBLE_CLICK_TIME_MS ||\n // The click needs to be within a certain square radius.\n Math.abs(context.#x - this.#x) >\n ClickContext.#MAX_DOUBLE_CLICK_RADIUS ||\n Math.abs(context.#y - this.#y) > ClickContext.#MAX_DOUBLE_CLICK_RADIUS);\n }\n };\n #clickContexts = new Map();\n setClickCount(button, context) {\n let storedContext = this.#clickContexts.get(button);\n if (!storedContext || storedContext.compare(context)) {\n storedContext = context;\n }\n ++storedContext.count;\n this.#clickContexts.set(button, storedContext);\n return storedContext.count;\n }\n getClickCount(button) {\n return this.#clickContexts.get(button)?.count ?? 0;\n }\n}\nexports.PointerSource = PointerSource;\nclass WheelSource {\n type = \"wheel\" /* SourceType.Wheel */;\n}\nexports.WheelSource = WheelSource;\n//# sourceMappingURL=InputSource.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getKeyLocation = exports.getKeyCode = exports.getNormalizedKey = void 0;\nfunction getNormalizedKey(value) {\n switch (value) {\n case '\\uE000':\n return 'Unidentified';\n case '\\uE001':\n return 'Cancel';\n case '\\uE002':\n return 'Help';\n case '\\uE003':\n return 'Backspace';\n case '\\uE004':\n return 'Tab';\n case '\\uE005':\n return 'Clear';\n case '\\uE006':\n return 'Return';\n case '\\uE007':\n return 'Enter';\n case '\\uE008':\n return 'Shift';\n case '\\uE009':\n return 'Control';\n case '\\uE00A':\n return 'Alt';\n case '\\uE00B':\n return 'Pause';\n case '\\uE00C':\n return 'Escape';\n case '\\uE00D':\n return ' ';\n case '\\uE00E':\n return 'PageUp';\n case '\\uE00F':\n return 'PageDown';\n case '\\uE010':\n return 'End';\n case '\\uE011':\n return 'Home';\n case '\\uE012':\n return 'ArrowLeft';\n case '\\uE013':\n return 'ArrowUp';\n case '\\uE014':\n return 'ArrowRight';\n case '\\uE015':\n return 'ArrowDown';\n case '\\uE016':\n return 'Insert';\n case '\\uE017':\n return 'Delete';\n case '\\uE018':\n return ';';\n case '\\uE019':\n return '=';\n case '\\uE01A':\n return '0';\n case '\\uE01B':\n return '1';\n case '\\uE01C':\n return '2';\n case '\\uE01D':\n return '3';\n case '\\uE01E':\n return '4';\n case '\\uE01F':\n return '5';\n case '\\uE020':\n return '6';\n case '\\uE021':\n return '7';\n case '\\uE022':\n return '8';\n case '\\uE023':\n return '9';\n case '\\uE024':\n return '*';\n case '\\uE025':\n return '+';\n case '\\uE026':\n return ',';\n case '\\uE027':\n return '-';\n case '\\uE028':\n return '.';\n case '\\uE029':\n return '/';\n case '\\uE031':\n return 'F1';\n case '\\uE032':\n return 'F2';\n case '\\uE033':\n return 'F3';\n case '\\uE034':\n return 'F4';\n case '\\uE035':\n return 'F5';\n case '\\uE036':\n return 'F6';\n case '\\uE037':\n return 'F7';\n case '\\uE038':\n return 'F8';\n case '\\uE039':\n return 'F9';\n case '\\uE03A':\n return 'F10';\n case '\\uE03B':\n return 'F11';\n case '\\uE03C':\n return 'F12';\n case '\\uE03D':\n return 'Meta';\n case '\\uE040':\n return 'ZenkakuHankaku';\n case '\\uE050':\n return 'Shift';\n case '\\uE051':\n return 'Control';\n case '\\uE052':\n return 'Alt';\n case '\\uE053':\n return 'Meta';\n case '\\uE054':\n return 'PageUp';\n case '\\uE055':\n return 'PageDown';\n case '\\uE056':\n return 'End';\n case '\\uE057':\n return 'Home';\n case '\\uE058':\n return 'ArrowLeft';\n case '\\uE059':\n return 'ArrowUp';\n case '\\uE05A':\n return 'ArrowRight';\n case '\\uE05B':\n return 'ArrowDown';\n case '\\uE05C':\n return 'Insert';\n case '\\uE05D':\n return 'Delete';\n default:\n return value;\n }\n}\nexports.getNormalizedKey = getNormalizedKey;\nfunction getKeyCode(key) {\n switch (key) {\n case '`':\n case '~':\n return 'Backquote';\n case '\\\\':\n case '|':\n return 'Backslash';\n case '\\uE003':\n return 'Backspace';\n case '[':\n case '{':\n return 'BracketLeft';\n case ']':\n case '}':\n return 'BracketRight';\n case ',':\n case '<':\n return 'Comma';\n case '0':\n case ')':\n return 'Digit0';\n case '1':\n case '!':\n return 'Digit1';\n case '2':\n case '@':\n return 'Digit2';\n case '3':\n case '#':\n return 'Digit3';\n case '4':\n case '$':\n return 'Digit4';\n case '5':\n case '%':\n return 'Digit5';\n case '6':\n case '^':\n return 'Digit6';\n case '7':\n case '&':\n return 'Digit7';\n case '8':\n case '*':\n return 'Digit8';\n case '9':\n case '(':\n return 'Digit9';\n case '=':\n case '+':\n return 'Equal';\n case 'a':\n case 'A':\n return 'KeyA';\n case 'b':\n case 'B':\n return 'KeyB';\n case 'c':\n case 'C':\n return 'KeyC';\n case 'd':\n case 'D':\n return 'KeyD';\n case 'e':\n case 'E':\n return 'KeyE';\n case 'f':\n case 'F':\n return 'KeyF';\n case 'g':\n case 'G':\n return 'KeyG';\n case 'h':\n case 'H':\n return 'KeyH';\n case 'i':\n case 'I':\n return 'KeyI';\n case 'j':\n case 'J':\n return 'KeyJ';\n case 'k':\n case 'K':\n return 'KeyK';\n case 'l':\n case 'L':\n return 'KeyL';\n case 'm':\n case 'M':\n return 'KeyM';\n case 'n':\n case 'N':\n return 'KeyN';\n case 'o':\n case 'O':\n return 'KeyO';\n case 'p':\n case 'P':\n return 'KeyP';\n case 'q':\n case 'Q':\n return 'KeyQ';\n case 'r':\n case 'R':\n return 'KeyR';\n case 's':\n case 'S':\n return 'KeyS';\n case 't':\n case 'T':\n return 'KeyT';\n case 'u':\n case 'U':\n return 'KeyU';\n case 'v':\n case 'V':\n return 'KeyV';\n case 'w':\n case 'W':\n return 'KeyW';\n case 'x':\n case 'X':\n return 'KeyX';\n case 'y':\n case 'Y':\n return 'KeyY';\n case 'z':\n case 'Z':\n return 'KeyZ';\n case '-':\n case '_':\n return 'Minus';\n case '.':\n return 'Period';\n case \"'\":\n case '\"':\n return 'Quote';\n case ';':\n case ':':\n return 'Semicolon';\n case '/':\n case '?':\n return 'Slash';\n case '\\uE00A':\n return 'AltLeft';\n case '\\uE052':\n return 'AltRight';\n case '\\uE009':\n return 'ControlLeft';\n case '\\uE051':\n return 'ControlRight';\n case '\\uE006':\n return 'Enter';\n case '\\uE03D':\n return 'MetaLeft';\n case '\\uE053':\n return 'MetaRight';\n case '\\uE008':\n return 'ShiftLeft';\n case '\\uE050':\n return 'ShiftRight';\n case ' ':\n case '\\uE00D':\n return 'Space';\n case '\\uE004':\n return 'Tab';\n case '\\uE017':\n return 'Delete';\n case '\\uE010':\n return 'End';\n case '\\uE002':\n return 'Help';\n case '\\uE011':\n return 'Home';\n case '\\uE016':\n return 'Insert';\n case '\\uE00F':\n return 'PageDown';\n case '\\uE00E':\n return 'PageUp';\n case '\\uE015':\n return 'ArrowDown';\n case '\\uE012':\n return 'ArrowLeft';\n case '\\uE014':\n return 'ArrowRight';\n case '\\uE013':\n return 'ArrowUp';\n case '\\uE00C':\n return 'Escape';\n case '\\uE031':\n return 'F1';\n case '\\uE032':\n return 'F2';\n case '\\uE033':\n return 'F3';\n case '\\uE034':\n return 'F4';\n case '\\uE035':\n return 'F5';\n case '\\uE036':\n return 'F6';\n case '\\uE037':\n return 'F7';\n case '\\uE038':\n return 'F8';\n case '\\uE039':\n return 'F9';\n case '\\uE03A':\n return 'F10';\n case '\\uE03B':\n return 'F11';\n case '\\uE03C':\n return 'F12';\n case '\\uE01A':\n case '\\uE05C':\n return 'Numpad0';\n case '\\uE01B':\n case '\\uE056':\n return 'Numpad1';\n case '\\uE01C':\n case '\\uE05B':\n return 'Numpad2';\n case '\\uE01D':\n case '\\uE055':\n return 'Numpad3';\n case '\\uE01E':\n case '\\uE058':\n return 'Numpad4';\n case '\\uE01F':\n return 'Numpad5';\n case '\\uE020':\n case '\\uE05A':\n return 'Numpad6';\n case '\\uE021':\n case '\\uE057':\n return 'Numpad7';\n case '\\uE022':\n case '\\uE059':\n return 'Numpad8';\n case '\\uE023':\n case '\\uE054':\n return 'Numpad9';\n case '\\uE025':\n return 'NumpadAdd';\n case '\\uE026':\n return 'NumpadComma';\n case '\\uE028':\n case '\\uE05D':\n return 'NumpadDecimal';\n case '\\uE029':\n return 'NumpadDivide';\n case '\\uE007':\n return 'NumpadEnter';\n case '\\uE024':\n return 'NumpadMultiply';\n case '\\uE027':\n return 'NumpadSubtract';\n default:\n return;\n }\n}\nexports.getKeyCode = getKeyCode;\nfunction getKeyLocation(key) {\n switch (key) {\n case '\\uE007':\n case '\\uE008':\n case '\\uE009':\n case '\\uE00A':\n case '\\uE03D':\n return 1;\n case '\\uE01A':\n case '\\uE01B':\n case '\\uE01C':\n case '\\uE01D':\n case '\\uE01E':\n case '\\uE01F':\n case '\\uE020':\n case '\\uE021':\n case '\\uE022':\n case '\\uE023':\n case '\\uE024':\n case '\\uE025':\n case '\\uE026':\n case '\\uE027':\n case '\\uE028':\n case '\\uE029':\n case '\\uE054':\n case '\\uE055':\n case '\\uE056':\n case '\\uE057':\n case '\\uE058':\n case '\\uE059':\n case '\\uE05A':\n case '\\uE05B':\n case '\\uE05C':\n case '\\uE05D':\n return 3;\n case '\\uE050':\n case '\\uE051':\n case '\\uE052':\n case '\\uE053':\n return 2;\n default:\n return 0;\n }\n}\nexports.getKeyLocation = getKeyLocation;\n//# sourceMappingURL=keyUtils.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.KeyToKeyCode = void 0;\n// TODO: Remove this once https://crrev.com/c/4548290 is stably in Chromium.\n// `Input.dispatchKeyboardEvent` will automatically handle these conversions.\nexports.KeyToKeyCode = {\n '0': 48,\n '1': 49,\n '2': 50,\n '3': 51,\n '4': 52,\n '5': 53,\n '6': 54,\n '7': 55,\n '8': 56,\n '9': 57,\n Abort: 3,\n Help: 6,\n Backspace: 8,\n Tab: 9,\n Numpad5: 12,\n NumpadEnter: 13,\n Enter: 13,\n '\\\\r': 13,\n '\\\\n': 13,\n ShiftLeft: 16,\n ShiftRight: 16,\n ControlLeft: 17,\n ControlRight: 17,\n AltLeft: 18,\n AltRight: 18,\n Pause: 19,\n CapsLock: 20,\n Escape: 27,\n Convert: 28,\n NonConvert: 29,\n Space: 32,\n Numpad9: 33,\n PageUp: 33,\n Numpad3: 34,\n PageDown: 34,\n End: 35,\n Numpad1: 35,\n Home: 36,\n Numpad7: 36,\n ArrowLeft: 37,\n Numpad4: 37,\n Numpad8: 38,\n ArrowUp: 38,\n ArrowRight: 39,\n Numpad6: 39,\n Numpad2: 40,\n ArrowDown: 40,\n Select: 41,\n Open: 43,\n PrintScreen: 44,\n Insert: 45,\n Numpad0: 45,\n Delete: 46,\n NumpadDecimal: 46,\n Digit0: 48,\n Digit1: 49,\n Digit2: 50,\n Digit3: 51,\n Digit4: 52,\n Digit5: 53,\n Digit6: 54,\n Digit7: 55,\n Digit8: 56,\n Digit9: 57,\n KeyA: 65,\n KeyB: 66,\n KeyC: 67,\n KeyD: 68,\n KeyE: 69,\n KeyF: 70,\n KeyG: 71,\n KeyH: 72,\n KeyI: 73,\n KeyJ: 74,\n KeyK: 75,\n KeyL: 76,\n KeyM: 77,\n KeyN: 78,\n KeyO: 79,\n KeyP: 80,\n KeyQ: 81,\n KeyR: 82,\n KeyS: 83,\n KeyT: 84,\n KeyU: 85,\n KeyV: 86,\n KeyW: 87,\n KeyX: 88,\n KeyY: 89,\n KeyZ: 90,\n MetaLeft: 91,\n MetaRight: 92,\n ContextMenu: 93,\n NumpadMultiply: 106,\n NumpadAdd: 107,\n NumpadSubtract: 109,\n NumpadDivide: 111,\n F1: 112,\n F2: 113,\n F3: 114,\n F4: 115,\n F5: 116,\n F6: 117,\n F7: 118,\n F8: 119,\n F9: 120,\n F10: 121,\n F11: 122,\n F12: 123,\n F13: 124,\n F14: 125,\n F15: 126,\n F16: 127,\n F17: 128,\n F18: 129,\n F19: 130,\n F20: 131,\n F21: 132,\n F22: 133,\n F23: 134,\n F24: 135,\n NumLock: 144,\n ScrollLock: 145,\n AudioVolumeMute: 173,\n AudioVolumeDown: 174,\n AudioVolumeUp: 175,\n MediaTrackNext: 176,\n MediaTrackPrevious: 177,\n MediaStop: 178,\n MediaPlayPause: 179,\n Semicolon: 186,\n Equal: 187,\n NumpadEqual: 187,\n Comma: 188,\n Minus: 189,\n Period: 190,\n Slash: 191,\n Backquote: 192,\n BracketLeft: 219,\n Backslash: 220,\n BracketRight: 221,\n Quote: 222,\n AltGraph: 225,\n Props: 247,\n Cancel: 3,\n Clear: 12,\n Shift: 16,\n Control: 17,\n Alt: 18,\n Accept: 30,\n ModeChange: 31,\n ' ': 32,\n Print: 42,\n Execute: 43,\n '\\\\u0000': 46,\n a: 65,\n b: 66,\n c: 67,\n d: 68,\n e: 69,\n f: 70,\n g: 71,\n h: 72,\n i: 73,\n j: 74,\n k: 75,\n l: 76,\n m: 77,\n n: 78,\n o: 79,\n p: 80,\n q: 81,\n r: 82,\n s: 83,\n t: 84,\n u: 85,\n v: 86,\n w: 87,\n x: 88,\n y: 89,\n z: 90,\n Meta: 91,\n '*': 106,\n '+': 107,\n '-': 109,\n '/': 111,\n ';': 186,\n '=': 187,\n ',': 188,\n '.': 190,\n '`': 192,\n '[': 219,\n '\\\\\\\\': 220,\n ']': 221,\n \"'\": 222,\n Attn: 246,\n CrSel: 247,\n ExSel: 248,\n EraseEof: 249,\n Play: 250,\n ZoomOut: 251,\n ')': 48,\n '!': 49,\n '@': 50,\n '#': 51,\n $: 52,\n '%': 53,\n '^': 54,\n '&': 55,\n '(': 57,\n A: 65,\n B: 66,\n C: 67,\n D: 68,\n E: 69,\n F: 70,\n G: 71,\n H: 72,\n I: 73,\n J: 74,\n K: 75,\n L: 76,\n M: 77,\n N: 78,\n O: 79,\n P: 80,\n Q: 81,\n R: 82,\n S: 83,\n T: 84,\n U: 85,\n V: 86,\n W: 87,\n X: 88,\n Y: 89,\n Z: 90,\n ':': 186,\n '<': 188,\n _: 189,\n '>': 190,\n '?': 191,\n '~': 192,\n '{': 219,\n '|': 220,\n '}': 221,\n '\"': 222,\n Camera: 44,\n EndCall: 95,\n VolumeDown: 182,\n VolumeUp: 183,\n};\n//# sourceMappingURL=USKeyboardLayout.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ActionDispatcher = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst assert_js_1 = require(\"../../../utils/assert.js\");\nconst InputSource_js_1 = require(\"./InputSource.js\");\nconst keyUtils_js_1 = require(\"./keyUtils.js\");\nconst USKeyboardLayout_js_1 = require(\"./USKeyboardLayout.js\");\n/** https://w3c.github.io/webdriver/#dfn-center-point */\nconst CALCULATE_IN_VIEW_CENTER_PT_DECL = ((i) => {\n const t = i.getClientRects()[0], e = Math.max(0, Math.min(t.x, t.x + t.width)), n = Math.min(window.innerWidth, Math.max(t.x, t.x + t.width)), h = Math.max(0, Math.min(t.y, t.y + t.height)), m = Math.min(window.innerHeight, Math.max(t.y, t.y + t.height));\n return [e + ((n - e) >> 1), h + ((m - h) >> 1)];\n}).toString();\nconst IS_MAC_DECL = (() => {\n return navigator.platform.toLowerCase().includes('mac');\n}).toString();\nasync function getElementCenter(context, element) {\n const sandbox = await context.getOrCreateSandbox(undefined);\n const result = await sandbox.callFunction(CALCULATE_IN_VIEW_CENTER_PT_DECL, { type: 'undefined' }, [element], false, \"none\" /* Script.ResultOwnership.None */, {});\n if (result.type === 'exception') {\n throw new protocol_js_1.NoSuchElementException(`Origin element ${element.sharedId} was not found`);\n }\n (0, assert_js_1.assert)(result.result.type === 'array');\n (0, assert_js_1.assert)(result.result.value?.[0]?.type === 'number');\n (0, assert_js_1.assert)(result.result.value?.[1]?.type === 'number');\n const { result: { value: [{ value: x }, { value: y }], }, } = result;\n return { x: x, y: y };\n}\nclass ActionDispatcher {\n static isMacOS = async (context) => {\n const result = await (await context.getOrCreateSandbox(undefined)).callFunction(IS_MAC_DECL, { type: 'undefined' }, [], false, \"none\" /* Script.ResultOwnership.None */, {});\n (0, assert_js_1.assert)(result.type !== 'exception');\n (0, assert_js_1.assert)(result.result.type === 'boolean');\n return result.result.value;\n };\n #tickStart = 0;\n #tickDuration = 0;\n #inputState;\n #context;\n #isMacOS;\n constructor(inputState, context, isMacOS) {\n this.#inputState = inputState;\n this.#context = context;\n this.#isMacOS = isMacOS;\n }\n async dispatchActions(optionsByTick) {\n await this.#inputState.queue.run(async () => {\n for (const options of optionsByTick) {\n await this.dispatchTickActions(options);\n }\n });\n }\n async dispatchTickActions(options) {\n this.#tickStart = performance.now();\n this.#tickDuration = 0;\n for (const { action } of options) {\n if ('duration' in action && action.duration !== undefined) {\n this.#tickDuration = Math.max(this.#tickDuration, action.duration);\n }\n }\n const promises = [\n new Promise((resolve) => setTimeout(resolve, this.#tickDuration)),\n ];\n for (const option of options) {\n // In theory we have to wait for each action to happen, but CDP is serial,\n // so as an optimization, we queue all CDP commands at once and await all\n // of them.\n promises.push(this.#dispatchAction(option));\n }\n await Promise.all(promises);\n }\n async #dispatchAction({ id, action }) {\n const source = this.#inputState.get(id);\n const keyState = this.#inputState.getGlobalKeyState();\n switch (action.type) {\n case 'keyDown': {\n // SAFETY: The source is validated before.\n await this.#dispatchKeyDownAction(source, action);\n this.#inputState.cancelList.push({\n id,\n action: {\n ...action,\n type: 'keyUp',\n },\n });\n break;\n }\n case 'keyUp': {\n // SAFETY: The source is validated before.\n await this.#dispatchKeyUpAction(source, action);\n break;\n }\n case 'pause': {\n // TODO: Implement waiting on the input source.\n break;\n }\n case 'pointerDown': {\n // SAFETY: The source is validated before.\n await this.#dispatchPointerDownAction(source, keyState, action);\n this.#inputState.cancelList.push({\n id,\n action: {\n ...action,\n type: 'pointerUp',\n },\n });\n break;\n }\n case 'pointerMove': {\n // SAFETY: The source is validated before.\n await this.#dispatchPointerMoveAction(source, keyState, action);\n break;\n }\n case 'pointerUp': {\n // SAFETY: The source is validated before.\n await this.#dispatchPointerUpAction(source, keyState, action);\n break;\n }\n case 'scroll': {\n // SAFETY: The source is validated before.\n await this.#dispatchScrollAction(source, keyState, action);\n break;\n }\n }\n }\n #dispatchPointerDownAction(source, keyState, action) {\n const { button } = action;\n if (source.pressed.has(button)) {\n return;\n }\n source.pressed.add(button);\n const { x, y, subtype: pointerType } = source;\n const { width, height, pressure, twist, tangentialPressure } = action;\n const { tiltX, tiltY } = getTilt(action);\n // --- Platform-specific code begins here ---\n const { modifiers } = keyState;\n switch (pointerType) {\n case \"mouse\" /* Input.PointerType.Mouse */:\n case \"pen\" /* Input.PointerType.Pen */:\n // TODO: Implement width and height when available.\n return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', {\n type: 'mousePressed',\n x,\n y,\n modifiers,\n button: getCdpButton(button),\n buttons: source.buttons,\n clickCount: source.setClickCount(button, new InputSource_js_1.PointerSource.ClickContext(x, y, performance.now())),\n pointerType,\n tangentialPressure,\n tiltX,\n tiltY,\n twist,\n force: pressure,\n });\n case \"touch\" /* Input.PointerType.Touch */:\n return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchTouchEvent', {\n type: 'touchStart',\n touchPoints: [\n {\n x,\n y,\n ...getRadii(width ?? 1, height ?? 1),\n tangentialPressure,\n tiltX,\n tiltY,\n twist,\n force: pressure,\n id: source.pointerId,\n },\n ],\n modifiers,\n });\n }\n // --- Platform-specific code ends here ---\n }\n #dispatchPointerUpAction(source, keyState, action) {\n const { button } = action;\n if (!source.pressed.has(button)) {\n return;\n }\n source.pressed.delete(button);\n const { x, y, subtype: pointerType } = source;\n // --- Platform-specific code begins here ---\n const { modifiers } = keyState;\n switch (pointerType) {\n case \"mouse\" /* Input.PointerType.Mouse */:\n case \"pen\" /* Input.PointerType.Pen */:\n // TODO: Implement width and height when available.\n return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', {\n type: 'mouseReleased',\n x,\n y,\n modifiers,\n button: getCdpButton(button),\n buttons: source.buttons,\n clickCount: source.getClickCount(button),\n pointerType,\n });\n case \"touch\" /* Input.PointerType.Touch */:\n return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchTouchEvent', {\n type: 'touchEnd',\n touchPoints: [\n {\n x,\n y,\n id: source.pointerId,\n },\n ],\n modifiers,\n });\n }\n // --- Platform-specific code ends here ---\n }\n async #dispatchPointerMoveAction(source, keyState, action) {\n const { x: startX, y: startY, subtype: pointerType } = source;\n const { width, height, pressure, twist, tangentialPressure, x: offsetX, y: offsetY, origin = 'viewport', duration = this.#tickDuration, } = action;\n const { tiltX, tiltY } = getTilt(action);\n const { targetX, targetY } = await this.#getCoordinateFromOrigin(origin, offsetX, offsetY, startX, startY);\n if (targetX < 0 || targetY < 0) {\n throw new protocol_js_1.MoveTargetOutOfBoundsException(`Cannot move beyond viewport (x: ${targetX}, y: ${targetY})`);\n }\n let last;\n do {\n const ratio = duration > 0 ? (performance.now() - this.#tickStart) / duration : 1;\n last = ratio >= 1;\n let x;\n let y;\n if (last) {\n x = targetX;\n y = targetY;\n }\n else {\n x = Math.round(ratio * (targetX - startX) + startX);\n y = Math.round(ratio * (targetY - startY) + startY);\n }\n if (source.x !== x || source.y !== y) {\n // --- Platform-specific code begins here ---\n const { modifiers } = keyState;\n switch (pointerType) {\n case \"mouse\" /* Input.PointerType.Mouse */:\n // TODO: Implement width and height when available.\n await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', {\n type: 'mouseMoved',\n x,\n y,\n modifiers,\n clickCount: 0,\n button: getCdpButton(source.pressed.values().next().value ?? 5),\n buttons: source.buttons,\n pointerType,\n tangentialPressure,\n tiltX,\n tiltY,\n twist,\n force: pressure,\n });\n break;\n case \"pen\" /* Input.PointerType.Pen */:\n if (source.pressed.size !== 0) {\n // TODO: Implement width and height when available.\n await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', {\n type: 'mouseMoved',\n x,\n y,\n modifiers,\n clickCount: 0,\n button: getCdpButton(source.pressed.values().next().value ?? 5),\n buttons: source.buttons,\n pointerType,\n tangentialPressure,\n tiltX,\n tiltY,\n twist,\n force: pressure,\n });\n }\n break;\n case \"touch\" /* Input.PointerType.Touch */:\n if (source.pressed.size !== 0) {\n await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchTouchEvent', {\n type: 'touchMove',\n touchPoints: [\n {\n x,\n y,\n ...getRadii(width ?? 1, height ?? 1),\n tangentialPressure,\n tiltX,\n tiltY,\n twist,\n force: pressure,\n id: source.pointerId,\n },\n ],\n modifiers,\n });\n }\n break;\n }\n // --- Platform-specific code ends here ---\n source.x = x;\n source.y = y;\n }\n } while (!last);\n }\n async #getCoordinateFromOrigin(origin, offsetX, offsetY, startX, startY) {\n let targetX;\n let targetY;\n switch (origin) {\n case 'viewport':\n targetX = offsetX;\n targetY = offsetY;\n break;\n case 'pointer':\n targetX = startX + offsetX;\n targetY = startY + offsetY;\n break;\n default: {\n const { x: posX, y: posY } = await getElementCenter(this.#context, origin.element);\n // SAFETY: These can never be special numbers.\n targetX = posX + offsetX;\n targetY = posY + offsetY;\n break;\n }\n }\n return { targetX, targetY };\n }\n async #dispatchScrollAction(_source, keyState, action) {\n const { deltaX: targetDeltaX, deltaY: targetDeltaY, x: offsetX, y: offsetY, origin = 'viewport', duration = this.#tickDuration, } = action;\n if (origin === 'pointer') {\n throw new protocol_js_1.InvalidArgumentException('\"pointer\" origin is invalid for scrolling.');\n }\n const { targetX, targetY } = await this.#getCoordinateFromOrigin(origin, offsetX, offsetY, 0, 0);\n if (targetX < 0 || targetY < 0) {\n throw new protocol_js_1.MoveTargetOutOfBoundsException(`Cannot move beyond viewport (x: ${targetX}, y: ${targetY})`);\n }\n let currentDeltaX = 0;\n let currentDeltaY = 0;\n let last;\n do {\n const ratio = duration > 0 ? (performance.now() - this.#tickStart) / duration : 1;\n last = ratio >= 1;\n let deltaX;\n let deltaY;\n if (last) {\n deltaX = targetDeltaX - currentDeltaX;\n deltaY = targetDeltaY - currentDeltaY;\n }\n else {\n deltaX = Math.round(ratio * targetDeltaX - currentDeltaX);\n deltaY = Math.round(ratio * targetDeltaY - currentDeltaY);\n }\n if (deltaX !== 0 || deltaY !== 0) {\n // --- Platform-specific code begins here ---\n const { modifiers } = keyState;\n await this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchMouseEvent', {\n type: 'mouseWheel',\n deltaX,\n deltaY,\n x: targetX,\n y: targetY,\n modifiers,\n });\n // --- Platform-specific code ends here ---\n currentDeltaX += deltaX;\n currentDeltaY += deltaY;\n }\n } while (!last);\n }\n async #dispatchKeyDownAction(source, action) {\n if ([...action.value].length > 1) {\n throw new protocol_js_1.InvalidArgumentException(`Invalid key value: ${action.value}`);\n }\n const rawKey = action.value;\n const key = (0, keyUtils_js_1.getNormalizedKey)(rawKey);\n const repeat = source.pressed.has(key);\n const code = (0, keyUtils_js_1.getKeyCode)(rawKey);\n const location = (0, keyUtils_js_1.getKeyLocation)(rawKey);\n switch (key) {\n case 'Alt':\n source.alt = true;\n break;\n case 'Shift':\n source.shift = true;\n break;\n case 'Control':\n source.ctrl = true;\n break;\n case 'Meta':\n source.meta = true;\n break;\n }\n source.pressed.add(key);\n const { modifiers } = source;\n // --- Platform-specific code begins here ---\n // The spread is a little hack so JS gives us an array of unicode characters\n // to measure.\n const unmodifiedText = getKeyEventUnmodifiedText(key, source);\n const text = getKeyEventText(code ?? '', source) ?? unmodifiedText;\n let command;\n // The following commands need to be declared because Chromium doesn't\n // handle them. See\n // https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:third_party/blink/renderer/core/editing/editing_behavior.cc;l=169;drc=b8143cf1dfd24842890fcd831c4f5d909bef4fc4;bpv=0;bpt=1.\n if (this.#isMacOS && source.meta) {\n switch (code) {\n case 'KeyA':\n command = 'SelectAll';\n break;\n case 'KeyC':\n command = 'Copy';\n break;\n case 'KeyV':\n command = source.shift ? 'PasteAndMatchStyle' : 'Paste';\n break;\n case 'KeyX':\n command = 'Cut';\n break;\n case 'KeyZ':\n command = source.shift ? 'Redo' : 'Undo';\n break;\n default:\n // Intentionally empty.\n }\n }\n const promises = [\n this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchKeyEvent', {\n type: text ? 'keyDown' : 'rawKeyDown',\n windowsVirtualKeyCode: USKeyboardLayout_js_1.KeyToKeyCode[key],\n key,\n code,\n text,\n unmodifiedText,\n autoRepeat: repeat,\n isSystemKey: source.alt || undefined,\n location: location < 3 ? location : undefined,\n isKeypad: location === 3,\n modifiers,\n commands: command ? [command] : undefined,\n }),\n ];\n // Drag cancelling happens on escape.\n if (key === 'Escape') {\n if (!source.alt &&\n ((this.#isMacOS && !source.ctrl && !source.meta) || !this.#isMacOS)) {\n promises.push(this.#context.cdpTarget.cdpClient.sendCommand('Input.cancelDragging'));\n }\n }\n await Promise.all(promises);\n // --- Platform-specific code ends here ---\n }\n #dispatchKeyUpAction(source, action) {\n if ([...action.value].length > 1) {\n throw new protocol_js_1.InvalidArgumentException(`Invalid key value: ${action.value}`);\n }\n const rawKey = action.value;\n const key = (0, keyUtils_js_1.getNormalizedKey)(rawKey);\n if (!source.pressed.has(key)) {\n return;\n }\n const code = (0, keyUtils_js_1.getKeyCode)(rawKey);\n const location = (0, keyUtils_js_1.getKeyLocation)(rawKey);\n switch (key) {\n case 'Alt':\n source.alt = false;\n break;\n case 'Shift':\n source.shift = false;\n break;\n case 'Control':\n source.ctrl = false;\n break;\n case 'Meta':\n source.meta = false;\n break;\n }\n source.pressed.delete(key);\n const { modifiers } = source;\n // --- Platform-specific code begins here ---\n // The spread is a little hack so JS gives us an array of unicode characters\n // to measure.\n const unmodifiedText = getKeyEventUnmodifiedText(key, source);\n const text = getKeyEventText(code ?? '', source) ?? unmodifiedText;\n return this.#context.cdpTarget.cdpClient.sendCommand('Input.dispatchKeyEvent', {\n type: 'keyUp',\n windowsVirtualKeyCode: USKeyboardLayout_js_1.KeyToKeyCode[key],\n key,\n code,\n text,\n unmodifiedText,\n location: location < 3 ? location : undefined,\n isSystemKey: source.alt || undefined,\n isKeypad: location === 3,\n modifiers,\n });\n // --- Platform-specific code ends here ---\n }\n}\nexports.ActionDispatcher = ActionDispatcher;\nconst getKeyEventUnmodifiedText = (key, source) => {\n if (key === 'Enter') {\n return '\\r';\n }\n return [...key].length === 1\n ? source.shift\n ? key.toLocaleUpperCase('en-US')\n : key\n : undefined;\n};\nconst getKeyEventText = (code, source) => {\n if (source.ctrl) {\n switch (code) {\n case 'Digit2':\n if (source.shift) {\n return '\\x00';\n }\n break;\n case 'KeyA':\n return '\\x01';\n case 'KeyB':\n return '\\x02';\n case 'KeyC':\n return '\\x03';\n case 'KeyD':\n return '\\x04';\n case 'KeyE':\n return '\\x05';\n case 'KeyF':\n return '\\x06';\n case 'KeyG':\n return '\\x07';\n case 'KeyH':\n return '\\x08';\n case 'KeyI':\n return '\\x09';\n case 'KeyJ':\n return '\\x0A';\n case 'KeyK':\n return '\\x0B';\n case 'KeyL':\n return '\\x0C';\n case 'KeyM':\n return '\\x0D';\n case 'KeyN':\n return '\\x0E';\n case 'KeyO':\n return '\\x0F';\n case 'KeyP':\n return '\\x10';\n case 'KeyQ':\n return '\\x11';\n case 'KeyR':\n return '\\x12';\n case 'KeyS':\n return '\\x13';\n case 'KeyT':\n return '\\x14';\n case 'KeyU':\n return '\\x15';\n case 'KeyV':\n return '\\x16';\n case 'KeyW':\n return '\\x17';\n case 'KeyX':\n return '\\x18';\n case 'KeyY':\n return '\\x19';\n case 'KeyZ':\n return '\\x1A';\n case 'BracketLeft':\n return '\\x1B';\n case 'Backslash':\n return '\\x1C';\n case 'BracketRight':\n return '\\x1D';\n case 'Digit6':\n if (source.shift) {\n return '\\x1E';\n }\n break;\n case 'Minus':\n return '\\x1F';\n }\n return '';\n }\n if (source.alt) {\n return '';\n }\n return;\n};\nfunction getCdpButton(button) {\n switch (button) {\n case 0:\n return 'left';\n case 1:\n return 'middle';\n case 2:\n return 'right';\n case 3:\n return 'back';\n case 4:\n return 'forward';\n default:\n return 'none';\n }\n}\nfunction getTilt(action) {\n // https://w3c.github.io/pointerevents/#converting-between-tiltx-tilty-and-altitudeangle-azimuthangle\n const altitudeAngle = action.altitudeAngle ?? 0;\n const azimuthAngle = action.azimuthAngle ?? 0;\n let tiltXRadians = 0;\n let tiltYRadians = 0;\n if (altitudeAngle === 0) {\n // the pen is in the X-Y plane\n if (azimuthAngle === 0 || azimuthAngle === 2 * Math.PI) {\n // pen is on positive X axis\n tiltXRadians = Math.PI / 2;\n }\n if (azimuthAngle === Math.PI / 2) {\n // pen is on positive Y axis\n tiltYRadians = Math.PI / 2;\n }\n if (azimuthAngle === Math.PI) {\n // pen is on negative X axis\n tiltXRadians = -Math.PI / 2;\n }\n if (azimuthAngle === (3 * Math.PI) / 2) {\n // pen is on negative Y axis\n tiltYRadians = -Math.PI / 2;\n }\n if (azimuthAngle > 0 && azimuthAngle < Math.PI / 2) {\n tiltXRadians = Math.PI / 2;\n tiltYRadians = Math.PI / 2;\n }\n if (azimuthAngle > Math.PI / 2 && azimuthAngle < Math.PI) {\n tiltXRadians = -Math.PI / 2;\n tiltYRadians = Math.PI / 2;\n }\n if (azimuthAngle > Math.PI && azimuthAngle < (3 * Math.PI) / 2) {\n tiltXRadians = -Math.PI / 2;\n tiltYRadians = -Math.PI / 2;\n }\n if (azimuthAngle > (3 * Math.PI) / 2 && azimuthAngle < 2 * Math.PI) {\n tiltXRadians = Math.PI / 2;\n tiltYRadians = -Math.PI / 2;\n }\n }\n if (altitudeAngle !== 0) {\n const tanAlt = Math.tan(altitudeAngle);\n tiltXRadians = Math.atan(Math.cos(azimuthAngle) / tanAlt);\n tiltYRadians = Math.atan(Math.sin(azimuthAngle) / tanAlt);\n }\n const factor = 180 / Math.PI;\n return {\n tiltX: Math.round(tiltXRadians * factor),\n tiltY: Math.round(tiltYRadians * factor),\n };\n}\nfunction getRadii(width, height) {\n return {\n radiusX: width ? width / 2 : 0.5,\n radiusY: height ? height / 2 : 0.5,\n };\n}\n//# sourceMappingURL=ActionDispatcher.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n * Copyright 2022 The Chromium Authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Mutex = void 0;\n/**\n * Use Mutex class to coordinate local concurrent operations.\n * Once `acquire` promise resolves, you hold the lock and must\n * call `release` function returned by `acquire` to release the\n * lock. Failing to `release` the lock may lead to deadlocks.\n */\nclass Mutex {\n #locked = false;\n #acquirers = [];\n // This is FIFO.\n acquire() {\n const state = { resolved: false };\n if (this.#locked) {\n return new Promise((resolve) => {\n this.#acquirers.push(() => resolve(this.#release.bind(this, state)));\n });\n }\n this.#locked = true;\n return Promise.resolve(this.#release.bind(this, state));\n }\n #release(state) {\n if (state.resolved) {\n throw new Error('Cannot release more than once.');\n }\n state.resolved = true;\n const resolve = this.#acquirers.shift();\n if (!resolve) {\n this.#locked = false;\n return;\n }\n resolve();\n }\n async run(action) {\n const release = await this.acquire();\n try {\n // Note we need to await here because we want the await to release AFTER\n // that await happens. Returning action() will trigger the release\n // immediately which is counter to what we want.\n const result = await action();\n return result;\n }\n finally {\n release();\n }\n }\n}\nexports.Mutex = Mutex;\n//# sourceMappingURL=Mutex.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InputState = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst Mutex_js_1 = require(\"../../../utils/Mutex.js\");\nconst InputSource_js_1 = require(\"./InputSource.js\");\nclass InputState {\n cancelList = [];\n #sources = new Map();\n #mutex = new Mutex_js_1.Mutex();\n getOrCreate(id, type, subtype) {\n let source = this.#sources.get(id);\n if (!source) {\n switch (type) {\n case \"none\" /* SourceType.None */:\n source = new InputSource_js_1.NoneSource();\n break;\n case \"key\" /* SourceType.Key */:\n source = new InputSource_js_1.KeySource();\n break;\n case \"pointer\" /* SourceType.Pointer */: {\n let pointerId = subtype === \"mouse\" /* Input.PointerType.Mouse */ ? 0 : 2;\n const pointerIds = new Set();\n for (const [, source] of this.#sources) {\n if (source.type === \"pointer\" /* SourceType.Pointer */) {\n pointerIds.add(source.pointerId);\n }\n }\n while (pointerIds.has(pointerId)) {\n ++pointerId;\n }\n source = new InputSource_js_1.PointerSource(pointerId, subtype);\n break;\n }\n case \"wheel\" /* SourceType.Wheel */:\n source = new InputSource_js_1.WheelSource();\n break;\n default:\n throw new protocol_js_1.InvalidArgumentException(`Expected \"${\"none\" /* SourceType.None */}\", \"${\"key\" /* SourceType.Key */}\", \"${\"pointer\" /* SourceType.Pointer */}\", or \"${\"wheel\" /* SourceType.Wheel */}\". Found unknown source type ${type}.`);\n }\n this.#sources.set(id, source);\n return source;\n }\n if (source.type !== type) {\n throw new protocol_js_1.InvalidArgumentException(`Input source type of ${id} is ${source.type}, but received ${type}.`);\n }\n return source;\n }\n get(id) {\n const source = this.#sources.get(id);\n if (!source) {\n throw new protocol_js_1.UnknownErrorException(`Internal error.`);\n }\n return source;\n }\n getGlobalKeyState() {\n const state = new InputSource_js_1.KeySource();\n for (const [, source] of this.#sources) {\n if (source.type !== \"key\" /* SourceType.Key */) {\n continue;\n }\n for (const pressed of source.pressed) {\n state.pressed.add(pressed);\n }\n state.alt ||= source.alt;\n state.ctrl ||= source.ctrl;\n state.meta ||= source.meta;\n state.shift ||= source.shift;\n }\n return state;\n }\n get queue() {\n return this.#mutex;\n }\n}\nexports.InputState = InputState;\n//# sourceMappingURL=InputState.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InputStateManager = void 0;\nconst assert_js_1 = require(\"../../../utils/assert.js\");\nconst InputState_js_1 = require(\"./InputState.js\");\n// We use a weak map here as specified here:\n// https://www.w3.org/TR/webdriver/#dfn-browsing-context-input-state-map\nclass InputStateManager extends WeakMap {\n get(context) {\n (0, assert_js_1.assert)(context.isTopLevelContext());\n if (!this.has(context)) {\n this.set(context, new InputState_js_1.InputState());\n }\n return super.get(context);\n }\n}\nexports.InputStateManager = InputStateManager;\n//# sourceMappingURL=InputStateManager.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InputProcessor = void 0;\n/*\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst assert_js_1 = require(\"../../../utils/assert.js\");\nconst ActionDispatcher_js_1 = require(\"../input/ActionDispatcher.js\");\nconst InputStateManager_js_1 = require(\"../input/InputStateManager.js\");\nclass InputProcessor {\n #browsingContextStorage;\n #realmStorage;\n #inputStateManager = new InputStateManager_js_1.InputStateManager();\n constructor(browsingContextStorage, realmStorage) {\n this.#browsingContextStorage = browsingContextStorage;\n this.#realmStorage = realmStorage;\n }\n async performActions(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n const inputState = this.#inputStateManager.get(context.top);\n const actionsByTick = this.#getActionsByTick(params, inputState);\n const dispatcher = new ActionDispatcher_js_1.ActionDispatcher(inputState, context, await ActionDispatcher_js_1.ActionDispatcher.isMacOS(context).catch(() => false));\n await dispatcher.dispatchActions(actionsByTick);\n return {};\n }\n async releaseActions(params) {\n const context = this.#browsingContextStorage.getContext(params.context);\n const topContext = context.top;\n const inputState = this.#inputStateManager.get(topContext);\n const dispatcher = new ActionDispatcher_js_1.ActionDispatcher(inputState, context, await ActionDispatcher_js_1.ActionDispatcher.isMacOS(context).catch(() => false));\n await dispatcher.dispatchTickActions(inputState.cancelList.reverse());\n this.#inputStateManager.delete(topContext);\n return {};\n }\n async setFiles(params) {\n const realm = this.#realmStorage.findRealm({\n browsingContextId: params.context,\n });\n if (realm === undefined) {\n throw new protocol_js_1.NoSuchFrameException(`Could not find browsingContext ${params.context}`);\n }\n let isFileInput;\n try {\n const result = await realm.callFunction(String(function getFiles() {\n return (this instanceof HTMLInputElement &&\n this.type === 'file' &&\n !this.disabled);\n }), params.element, [], false, \"none\" /* Script.ResultOwnership.None */, {}, false);\n (0, assert_js_1.assert)(result.type === 'success');\n (0, assert_js_1.assert)(result.result.type === 'boolean');\n isFileInput = result.result.value;\n }\n catch {\n throw new protocol_js_1.NoSuchElementException(`Could not find element ${params.element.sharedId}`);\n }\n if (!isFileInput) {\n throw new protocol_js_1.UnableToSetFileInputException(`Element ${params.element.sharedId} is not a mutable file input.`);\n }\n // Our goal here is to iterate over the input element files and get their\n // file paths.\n const paths = [];\n for (let i = 0; i < params.files.length; ++i) {\n const result = await realm.callFunction(String(function getFiles(index) {\n if (!this.files) {\n // We use `null` because `item` also returns null.\n return null;\n }\n return this.files.item(index);\n }), params.element, [{ type: 'number', value: 0 }], false, \"root\" /* Script.ResultOwnership.Root */, {}, false);\n (0, assert_js_1.assert)(result.type === 'success');\n if (result.result.type !== 'object') {\n break;\n }\n const { handle } = result.result;\n (0, assert_js_1.assert)(handle !== undefined);\n const { path } = await realm.cdpClient.sendCommand('DOM.getFileInfo', {\n objectId: handle,\n });\n paths.push(path);\n // Cleanup the handle.\n void realm.disown(handle).catch(undefined);\n }\n paths.sort();\n // We create a new array so we preserve the order of the original files.\n const sortedFiles = [...params.files].sort();\n if (paths.length !== params.files.length ||\n sortedFiles.some((path, index) => {\n return paths[index] !== path;\n })) {\n const { objectId } = await realm.deserializeForCdp(params.element);\n // This cannot throw since this was just used in `callFunction` above.\n (0, assert_js_1.assert)(objectId !== undefined);\n await realm.cdpClient.sendCommand('DOM.setFileInputFiles', {\n files: params.files,\n objectId,\n });\n }\n else {\n // XXX: We should dispatch a trusted event.\n await realm.callFunction(String(function dispatchEvent() {\n this.dispatchEvent(new Event('cancel', {\n bubbles: true,\n }));\n }), params.element, [], false, \"none\" /* Script.ResultOwnership.None */, {}, false);\n }\n return {};\n }\n #getActionsByTick(params, inputState) {\n const actionsByTick = [];\n for (const action of params.actions) {\n switch (action.type) {\n case \"pointer\" /* SourceType.Pointer */: {\n action.parameters ??= { pointerType: \"mouse\" /* Input.PointerType.Mouse */ };\n action.parameters.pointerType ??= \"mouse\" /* Input.PointerType.Mouse */;\n const source = inputState.getOrCreate(action.id, \"pointer\" /* SourceType.Pointer */, action.parameters.pointerType);\n if (source.subtype !== action.parameters.pointerType) {\n throw new protocol_js_1.InvalidArgumentException(`Expected input source ${action.id} to be ${source.subtype}; got ${action.parameters.pointerType}.`);\n }\n break;\n }\n default:\n inputState.getOrCreate(action.id, action.type);\n }\n const actions = action.actions.map((item) => ({\n id: action.id,\n action: item,\n }));\n for (let i = 0; i < actions.length; i++) {\n if (actionsByTick.length === i) {\n actionsByTick.push([]);\n }\n actionsByTick[i].push(actions[i]);\n }\n }\n return actionsByTick;\n }\n}\nexports.InputProcessor = InputProcessor;\n//# sourceMappingURL=InputProcessor.js.map","\"use strict\";var M=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Re=Object.getOwnPropertyNames;var Ee=Object.prototype.hasOwnProperty;var Oe=(e,t)=>{for(var r in t)M(e,r,{get:t[r],enumerable:!0})},ke=(e,t,r,n)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let a of Re(t))!Ee.call(e,a)&&a!==r&&M(e,a,{get:()=>t[a],enumerable:!(n=Pe(t,a))||n.enumerable});return e};var Te=e=>ke(M({},\"__esModule\",{value:!0}),e);var Ne={};Oe(Ne,{URLPattern:()=>Y});module.exports=Te(Ne);var R=class{type=3;name=\"\";prefix=\"\";value=\"\";suffix=\"\";modifier=3;constructor(t,r,n,a,c,l){this.type=t,this.name=r,this.prefix=n,this.value=a,this.suffix=c,this.modifier=l}hasCustomName(){return this.name!==\"\"&&typeof this.name!=\"number\"}},Ae=/[$_\\p{ID_Start}]/u,ye=/[$_\\u200C\\u200D\\p{ID_Continue}]/u,v=\".*\";function we(e,t){return(t?/^[\\x00-\\xFF]*$/:/^[\\x00-\\x7F]*$/).test(e)}function D(e,t=!1){let r=[],n=0;for(;n{if(lo(\"OTHER_MODIFIER\")??o(\"ASTERISK\"),d=h=>{let u=o(h);if(u!==void 0)return u;let{type:p,index:A}=r[l];throw new TypeError(`Unexpected ${p} at ${A}, expected ${h}`)},T=()=>{let h=\"\",u;for(;u=o(\"CHAR\")??o(\"ESCAPED_CHAR\");)h+=u;return h},xe=h=>h,L=t.encodePart||xe,I=\"\",U=h=>{I+=h},$=()=>{I.length&&(a.push(new R(3,\"\",\"\",L(I),\"\",3)),I=\"\")},X=(h,u,p,A,Z)=>{let g=3;switch(Z){case\"?\":g=1;break;case\"*\":g=0;break;case\"+\":g=2;break}if(!u&&!p&&g===3){U(h);return}if($(),!u&&!p){if(!h)return;a.push(new R(3,\"\",\"\",L(h),\"\",g));return}let m;p?p===\"*\"?m=v:m=p:m=n;let O=2;m===n?(O=1,m=\"\"):m===v&&(O=0,m=\"\");let P;if(u?P=u:p&&(P=c++),i.has(P))throw new TypeError(`Duplicate name '${P}'.`);i.add(P),a.push(new R(O,P,L(h),m,L(A),g))};for(;l-1)}return l||(n+=`(?=${c}|${a})`),new RegExp(n,B(r))}var x={delimiter:\"\",prefixes:\"\",sensitive:!0,strict:!0},J={delimiter:\".\",prefixes:\"\",sensitive:!0,strict:!0},Q={delimiter:\"/\",prefixes:\"/\",sensitive:!0,strict:!0};function ee(e,t){return e.length?e[0]===\"/\"?!0:!t||e.length<2?!1:(e[0]==\"\\\\\"||e[0]==\"{\")&&e[1]==\"/\":!1}function te(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function Ce(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}function _(e){return!e||e.length<2?!1:e[0]===\"[\"||(e[0]===\"\\\\\"||e[0]===\"{\")&&e[1]===\"[\"}var re=[\"ftp\",\"file\",\"http\",\"https\",\"ws\",\"wss\"];function N(e){if(!e)return!0;for(let t of re)if(e.test(t))return!0;return!1}function ne(e,t){if(e=te(e,\"#\"),t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.hash=e,r.hash?r.hash.substring(1,r.hash.length):\"\"}function se(e,t){if(e=te(e,\"?\"),t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.search=e,r.search?r.search.substring(1,r.search.length):\"\"}function ie(e,t){return t||e===\"\"?e:_(e)?K(e):j(e)}function ae(e,t){if(t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.password=e,r.password}function oe(e,t){if(t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.username=e,r.username}function ce(e,t,r){if(r||e===\"\")return e;if(t&&!re.includes(t))return new URL(`${t}:${e}`).pathname;let n=e[0]==\"/\";return e=new URL(n?e:\"/-\"+e,\"https://example.com\").pathname,n||(e=e.substring(2,e.length)),e}function le(e,t,r){return z(t)===e&&(e=\"\"),r||e===\"\"?e:G(e)}function fe(e,t){return e=Ce(e,\":\"),t||e===\"\"?e:y(e)}function z(e){switch(e){case\"ws\":case\"http\":return\"80\";case\"wws\":case\"https\":return\"443\";case\"ftp\":return\"21\";default:return\"\"}}function y(e){if(e===\"\")return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function he(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.username=e,t.username}function ue(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.password=e,t.password}function j(e){if(e===\"\")return e;if(/[\\t\\n\\r #%/:<>?@[\\]^\\\\|]/g.test(e))throw new TypeError(`Invalid hostname '${e}'`);let t=new URL(\"https://example.com\");return t.hostname=e,t.hostname}function K(e){if(e===\"\")return e;if(/[^0-9a-fA-F[\\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function G(e){if(e===\"\"||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function de(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.pathname=e[0]!==\"/\"?\"/-\"+e:e,e[0]!==\"/\"?t.pathname.substring(2,t.pathname.length):t.pathname}function pe(e){return e===\"\"?e:new URL(`data:${e}`).pathname}function ge(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.search=e,t.search.substring(1,t.search.length)}function me(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.hash=e,t.hash.substring(1,t.hash.length)}var H=class{#i;#n=[];#t={};#e=0;#s=1;#l=0;#o=0;#d=0;#p=0;#g=!1;constructor(t){this.#i=t}get result(){return this.#t}parse(){for(this.#n=D(this.#i,!0);this.#e0)if(this.#A())this.#d-=1;else continue;if(this.#T()){this.#d+=1;continue}switch(this.#o){case 0:this.#P()&&this.#u(1);break;case 1:if(this.#P()){this.#C();let t=7,r=1;this.#E()?(t=2,r=3):this.#g&&(t=2),this.#r(t,r)}break;case 2:this.#S()?this.#u(3):(this.#x()||this.#h()||this.#f())&&this.#u(5);break;case 3:this.#O()?this.#r(4,1):this.#S()&&this.#r(5,1);break;case 4:this.#S()&&this.#r(5,1);break;case 5:this.#y()?this.#p+=1:this.#w()&&(this.#p-=1),this.#k()&&!this.#p?this.#r(6,1):this.#x()?this.#r(7,0):this.#h()?this.#r(8,1):this.#f()&&this.#r(9,1);break;case 6:this.#x()?this.#r(7,0):this.#h()?this.#r(8,1):this.#f()&&this.#r(9,1);break;case 7:this.#h()?this.#r(8,1):this.#f()&&this.#r(9,1);break;case 8:this.#f()&&this.#r(9,1);break;case 9:break;case 10:break}}this.#t.hostname!==void 0&&this.#t.port===void 0&&(this.#t.port=\"\")}#r(t,r){switch(this.#o){case 0:break;case 1:this.#t.protocol=this.#c();break;case 2:break;case 3:this.#t.username=this.#c();break;case 4:this.#t.password=this.#c();break;case 5:this.#t.hostname=this.#c();break;case 6:this.#t.port=this.#c();break;case 7:this.#t.pathname=this.#c();break;case 8:this.#t.search=this.#c();break;case 9:this.#t.hash=this.#c();break;case 10:break}this.#o!==0&&t!==10&&([1,2,3,4].includes(this.#o)&&[6,7,8,9].includes(t)&&(this.#t.hostname??=\"\"),[1,2,3,4,5,6].includes(this.#o)&&[8,9].includes(t)&&(this.#t.pathname??=this.#g?\"/\":\"\"),[1,2,3,4,5,6,7].includes(this.#o)&&t===9&&(this.#t.search??=\"\")),this.#R(t,r)}#R(t,r){this.#o=t,this.#l=this.#e+r,this.#e+=r,this.#s=0}#b(){this.#e=this.#l,this.#s=0}#u(t){this.#b(),this.#o=t}#m(t){return t<0&&(t=this.#n.length-t),t=0&&(e.pathname=b(n.pathname.substring(0,a+1),r)+e.pathname)}e.pathname=ce(e.pathname,e.protocol,r)}return typeof t.search==\"string\"&&(e.search=se(t.search,r)),typeof t.hash==\"string\"&&(e.hash=ne(t.hash,r)),e}function C(e){return e.replace(/([+*?:{}()\\\\])/g,\"\\\\$1\")}function Le(e){return e.replace(/([.+*?^${}()[\\]|/\\\\])/g,\"\\\\$1\")}function Ie(e,t){t.delimiter??=\"/#?\",t.prefixes??=\"./\",t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith=\"\";let r=\".*\",n=`[^${Le(t.delimiter)}]+?`,a=/[$_\\u200C\\u200D\\p{ID_Continue}]/u,c=\"\";for(let l=0;l0?e[l-1]:null,d=l0?d.value[0]:\"\";o=a.test(T)}else o=!d.hasCustomName();if(!o&&!s.prefix.length&&f&&f.type===3){let T=f.value[f.value.length-1];o=t.prefixes.includes(T)}o&&(c+=\"{\"),c+=C(s.prefix),i&&(c+=`:${s.name}`),s.type===2?c+=`(${s.value})`:s.type===1?i||(c+=`(${n})`):s.type===0&&(!i&&(!f||f.type===3||f.modifier!==3||o||s.prefix!==\"\")?c+=\"*\":c+=`(${r})`),s.type===1&&i&&s.suffix.length&&a.test(s.suffix[0])&&(c+=\"\\\\\"),c+=C(s.suffix),o&&(c+=\"}\"),s.modifier!==3&&(c+=k(s.modifier))}return c}var Y=class{#i;#n={};#t={};#e={};#s={};#l=!1;constructor(t={},r,n){try{let a;if(typeof r==\"string\"?a=r:n=r,typeof t==\"string\"){let i=new H(t);if(i.parse(),t=i.result,a===void 0&&typeof t.protocol!=\"string\")throw new TypeError(\"A base URL must be provided for a relative constructor string.\");t.baseURL=a}else{if(!t||typeof t!=\"object\")throw new TypeError(\"parameter 1 is not of type 'string' and cannot convert to dictionary.\");if(a)throw new TypeError(\"parameter 1 is not of type 'string'.\")}typeof n>\"u\"&&(n={ignoreCase:!1});let c={ignoreCase:n.ignoreCase===!0},l={pathname:E,protocol:E,username:E,password:E,hostname:E,port:E,search:E,hash:E};this.#i=w(l,t,!0),z(this.#i.protocol)===this.#i.port&&(this.#i.port=\"\");let s;for(s of V){if(!(s in this.#i))continue;let i={},o=this.#i[s];switch(this.#t[s]=[],s){case\"protocol\":Object.assign(i,x),i.encodePart=y;break;case\"username\":Object.assign(i,x),i.encodePart=he;break;case\"password\":Object.assign(i,x),i.encodePart=ue;break;case\"hostname\":Object.assign(i,J),_(o)?i.encodePart=K:i.encodePart=j;break;case\"port\":Object.assign(i,x),i.encodePart=G;break;case\"pathname\":N(this.#n.protocol)?(Object.assign(i,Q,c),i.encodePart=de):(Object.assign(i,x,c),i.encodePart=pe);break;case\"search\":Object.assign(i,x,c),i.encodePart=ge;break;case\"hash\":Object.assign(i,x,c),i.encodePart=me;break}try{this.#s[s]=F(o,i),this.#n[s]=W(this.#s[s],this.#t[s],i),this.#e[s]=Ie(this.#s[s],i),this.#l=this.#l||this.#s[s].some(f=>f.type===2)}catch{throw new TypeError(`invalid ${s} pattern '${this.#i[s]}'.`)}}}catch(a){throw new TypeError(`Failed to construct 'URLPattern': ${a.message}`)}}test(t={},r){let n={pathname:\"\",protocol:\"\",username:\"\",password:\"\",hostname:\"\",port:\"\",search:\"\",hash:\"\"};if(typeof t!=\"string\"&&r)throw new TypeError(\"parameter 1 is not of type 'string'.\");if(typeof t>\"u\")return!1;try{typeof t==\"object\"?n=w(n,t,!1):n=w(n,Se(t,r),!1)}catch{return!1}let a;for(a of V)if(!this.#n[a].exec(n[a]))return!1;return!0}exec(t={},r){let n={pathname:\"\",protocol:\"\",username:\"\",password:\"\",hostname:\"\",port:\"\",search:\"\",hash:\"\"};if(typeof t!=\"string\"&&r)throw new TypeError(\"parameter 1 is not of type 'string'.\");if(typeof t>\"u\")return;try{typeof t==\"object\"?n=w(n,t,!1):n=w(n,Se(t,r),!1)}catch{return null}let a={};r?a.inputs=[t,r]:a.inputs=[t];let c;for(c of V){let l=this.#n[c].exec(n[c]);if(!l)return null;let s={};for(let[i,o]of this.#t[c].entries())if(typeof o==\"string\"||typeof o==\"number\"){let f=l[i+1];s[o]=f}a[c]={input:n[c]??\"\",groups:s}}return a}static compareComponent(t,r,n){let a=(i,o)=>{for(let f of[\"type\",\"modifier\",\"prefix\",\"value\",\"suffix\"]){if(i[f]{let f=0;for(;f 0;\n }\n /** Gets parameters for CDP 'Fetch.enable' command from the intercept map. */\n getFetchEnableParams() {\n const patterns = [];\n for (const value of this.#interceptMap.values()) {\n for (const phase of value.phases) {\n const requestStage = NetworkStorage.requestStageFromPhase(phase);\n if (value.urlPatterns.length === 0) {\n patterns.push({\n urlPattern: '*',\n requestStage,\n });\n continue;\n }\n for (const urlPatternSpec of value.urlPatterns) {\n const urlPattern = NetworkStorage.cdpFromSpecUrlPattern(urlPatternSpec);\n patterns.push({\n urlPattern,\n requestStage,\n });\n }\n }\n }\n return {\n patterns,\n // If there's at least one intercept that requires auth, enable the\n // 'Fetch.authRequired' event.\n handleAuthRequests: [...this.#interceptMap.values()].some((param) => {\n return param.phases.includes(\"authRequired\" /* Network.InterceptPhase.AuthRequired */);\n }),\n };\n }\n getRequest(id) {\n return this.#requestMap.get(id);\n }\n addRequest(request) {\n this.#requestMap.set(request.requestId, request);\n }\n deleteRequest(id) {\n const request = this.#requestMap.get(id);\n if (request) {\n request.dispose();\n this.#requestMap.delete(id);\n }\n }\n /** Returns true if there's at least one network request. */\n hasNetworkRequests() {\n return this.#requestMap.size > 0;\n }\n /** Returns true if there's at least one blocked network request. */\n hasBlockedRequests() {\n return this.#blockedRequestMap.size > 0;\n }\n /** Converts a URL pattern from the spec to a CDP URL pattern. */\n static cdpFromSpecUrlPattern(urlPattern) {\n switch (urlPattern.type) {\n case 'string':\n return urlPattern.pattern;\n case 'pattern':\n return NetworkStorage.buildUrlPatternString(urlPattern);\n }\n }\n static buildUrlPatternString({ protocol, hostname, port, pathname, search, }) {\n if (!protocol && !hostname && !port && !pathname && !search) {\n return '*';\n }\n let url = '';\n if (protocol) {\n url += protocol;\n if (!protocol.endsWith(':')) {\n url += ':';\n }\n if (NetworkStorage.isSpecialScheme(protocol)) {\n url += '//';\n }\n }\n if (hostname) {\n url += hostname;\n }\n if (port) {\n url += `:${port}`;\n }\n if (pathname) {\n if (!pathname.startsWith('/')) {\n url += '/';\n }\n url += pathname;\n }\n if (search) {\n if (!search.startsWith('?')) {\n url += '?';\n }\n url += search;\n }\n return url;\n }\n /**\n * Maps spec Network.InterceptPhase to CDP Fetch.RequestStage.\n * AuthRequired has no CDP equivalent..\n */\n static requestStageFromPhase(phase) {\n switch (phase) {\n case \"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */:\n return 'Request';\n case \"responseStarted\" /* Network.InterceptPhase.ResponseStarted */:\n case \"authRequired\" /* Network.InterceptPhase.AuthRequired */:\n return 'Response';\n }\n }\n /**\n * Returns true if the given protocol is special.\n * Special protocols are those that have a default port.\n *\n * Example inputs: 'http', 'http:'\n *\n * @see https://url.spec.whatwg.org/#special-scheme\n */\n static isSpecialScheme(protocol) {\n return ['ftp', 'file', 'http', 'https', 'ws', 'wss'].includes(protocol.replace(/:$/, ''));\n }\n addBlockedRequest(requestId, value) {\n this.#blockedRequestMap.set(requestId, value);\n }\n removeBlockedRequest(requestId) {\n this.#blockedRequestMap.delete(requestId);\n }\n /**\n * Returns the blocked request associated with the given network ID, if any.\n */\n getBlockedRequest(networkId) {\n return this.#blockedRequestMap.get(networkId);\n }\n /** #@see https://w3c.github.io/webdriver-bidi/#get-the-network-intercepts */\n getNetworkIntercepts(requestId, phase) {\n const request = this.#requestMap.get(requestId);\n if (!request) {\n return [];\n }\n const interceptIds = [];\n for (const [interceptId, { phases, urlPatterns },] of this.#interceptMap.entries()) {\n if (phase && phases.includes(phase)) {\n if (urlPatterns.length === 0) {\n interceptIds.push(interceptId);\n }\n else if (urlPatterns.some((urlPattern) => NetworkStorage.matchUrlPattern(urlPattern, request.url))) {\n interceptIds.push(interceptId);\n }\n }\n }\n return interceptIds;\n }\n /** Matches the given URLPattern against the given URL. */\n static matchUrlPattern(urlPattern, url) {\n switch (urlPattern.type) {\n case 'string':\n return urlPattern.pattern === url;\n case 'pattern': {\n return (new UrlPattern_js_1.URLPattern({\n protocol: urlPattern.protocol,\n hostname: urlPattern.hostname,\n port: urlPattern.port,\n pathname: urlPattern.pathname,\n search: urlPattern.search,\n }).exec(url) !== null);\n }\n }\n }\n}\nexports.NetworkStorage = NetworkStorage;\n//# sourceMappingURL=NetworkStorage.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NetworkProcessor = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst assert_js_1 = require(\"../../../utils/assert.js\");\nconst NetworkStorage_js_1 = require(\"./NetworkStorage.js\");\nconst NetworkUtils_js_1 = require(\"./NetworkUtils.js\");\n/** Dispatches Network domain commands. */\nclass NetworkProcessor {\n #browsingContextStorage;\n #networkStorage;\n constructor(browsingContextStorage, networkStorage) {\n this.#browsingContextStorage = browsingContextStorage;\n this.#networkStorage = networkStorage;\n }\n async addIntercept(params) {\n // If AuthRequired is specified, BeforeRequestSent must also be specified.\n // This is a CDP quirk.\n if (params.phases.includes(\"authRequired\" /* Network.InterceptPhase.AuthRequired */) &&\n !params.phases.includes(\"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */)) {\n params.phases.unshift(\"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */);\n }\n const urlPatterns = params.urlPatterns ?? [];\n const parsedUrlPatterns = NetworkProcessor.parseUrlPatterns(urlPatterns);\n const intercept = this.#networkStorage.addIntercept({\n urlPatterns: parsedUrlPatterns,\n phases: params.phases,\n });\n await this.#fetchApply();\n return {\n intercept,\n };\n }\n async continueRequest(params) {\n const networkId = params.request;\n const { request: fetchId, phase } = this.#getBlockedRequest(networkId);\n if (phase !== \"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */) {\n throw new protocol_js_1.InvalidArgumentException(`Blocked request for network id '${networkId}' is not in 'BeforeRequestSent' phase`);\n }\n if (params.url !== undefined) {\n NetworkProcessor.parseUrlString(params.url);\n }\n const { url, method, headers } = params;\n // TODO: Set / expand.\n // ; Step 9. cookies\n // ; Step 10. body\n const requestHeaders = (0, NetworkUtils_js_1.cdpFetchHeadersFromBidiNetworkHeaders)(headers);\n const request = this.#getRequestOrFail(networkId);\n await request.continueRequest(fetchId, url, method, requestHeaders);\n this.#networkStorage.removeBlockedRequest(networkId);\n return {};\n }\n async continueResponse(params) {\n const networkId = params.request;\n const { request: fetchId, phase } = this.#getBlockedRequest(networkId);\n if (phase === \"beforeRequestSent\" /* Network.InterceptPhase.BeforeRequestSent */) {\n throw new protocol_js_1.InvalidArgumentException(`Blocked request for network id '${networkId}' is in 'BeforeRequestSent' phase`);\n }\n const { statusCode, reasonPhrase, headers } = params;\n const responseHeaders = (0, NetworkUtils_js_1.cdpFetchHeadersFromBidiNetworkHeaders)(headers);\n // TODO: Set / expand.\n // ; Step 10. cookies\n // ; Step 11. credentials\n const request = this.#getRequestOrFail(networkId);\n await request.continueResponse(fetchId, statusCode, reasonPhrase, responseHeaders);\n this.#networkStorage.removeBlockedRequest(networkId);\n return {};\n }\n async continueWithAuth(params) {\n const networkId = params.request;\n const { request: fetchId, phase } = this.#getBlockedRequest(networkId);\n if (phase !== \"authRequired\" /* Network.InterceptPhase.AuthRequired */) {\n throw new protocol_js_1.InvalidArgumentException(`Blocked request for network id '${networkId}' is not in 'AuthRequired' phase`);\n }\n const request = this.#getRequestOrFail(networkId);\n let username;\n let password;\n if (params.action === 'provideCredentials') {\n const { credentials } = params;\n username = credentials.username;\n password = credentials.password;\n // TODO: This should be invalid argument exception.\n // Spec may need to be updated.\n (0, assert_js_1.assert)(credentials.type === 'password', `Credentials type ${credentials.type} must be 'password'`);\n }\n const response = (0, NetworkUtils_js_1.cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction)(params.action);\n await request.continueWithAuth(fetchId, response, username, password);\n return {};\n }\n async failRequest({ request: networkId, }) {\n const { request: fetchId, phase } = this.#getBlockedRequest(networkId);\n if (phase === \"authRequired\" /* Network.InterceptPhase.AuthRequired */) {\n throw new protocol_js_1.InvalidArgumentException(`Blocked request for network id '${networkId}' is in 'AuthRequired' phase`);\n }\n const request = this.#getRequestOrFail(networkId);\n await request.failRequest(fetchId, 'Failed');\n this.#networkStorage.removeBlockedRequest(networkId);\n return {};\n }\n async provideResponse(params) {\n const { statusCode, reasonPhrase, headers, body, request: networkId, } = params;\n const { request: fetchId } = this.#getBlockedRequest(networkId);\n // TODO: Step 6\n // https://w3c.github.io/webdriver-bidi/#command-network-continueResponse\n const responseHeaders = (0, NetworkUtils_js_1.cdpFetchHeadersFromBidiNetworkHeaders)(headers);\n // TODO: Set / expand.\n // ; Step 10. cookies\n // ; Step 11. credentials\n const request = this.#getRequestOrFail(networkId);\n await request.provideResponse(fetchId, statusCode ?? request.statusCode, reasonPhrase, responseHeaders, body?.value // TODO: Differ base64 / string\n );\n this.#networkStorage.removeBlockedRequest(networkId);\n return {};\n }\n async removeIntercept(params) {\n this.#networkStorage.removeIntercept(params.intercept);\n await this.#fetchApply();\n return {};\n }\n /** Applies all existing network intercepts to all CDP targets concurrently. */\n async #fetchEnable() {\n await Promise.all(this.#browsingContextStorage.getAllContexts().map(async (context) => {\n await context.cdpTarget.fetchEnable();\n }));\n }\n /** Removes all existing network intercepts from all CDP targets concurrently. */\n async #fetchDisable() {\n await Promise.all(this.#browsingContextStorage.getAllContexts().map(async (context) => {\n await context.cdpTarget.fetchDisable();\n }));\n }\n /**\n * Either enables or disables the Fetch domain.\n *\n * If enabling, applies all existing network intercepts to all CDP targets.\n * If disabling, removes all existing network intercepts from all CDP targets.\n *\n * Disabling is only performed when there are no remaining intercepts or\n * // blocked requests.\n */\n async #fetchApply() {\n if (this.#networkStorage.hasIntercepts() ||\n this.#networkStorage.hasBlockedRequests() ||\n this.#networkStorage.hasNetworkRequests()) {\n // TODO: Add try/catch. Remove the intercept if CDP Fetch commands fail.\n await this.#fetchEnable();\n }\n else {\n // The last intercept has been removed, and there are no pending\n // blocked requests.\n // Disable the Fetch domain.\n await this.#fetchDisable();\n }\n }\n /**\n * Returns the blocked request associated with the given network ID.\n * If none, throws a NoSuchRequestException.\n */\n #getBlockedRequest(networkId) {\n const blockedRequest = this.#networkStorage.getBlockedRequest(networkId);\n if (!blockedRequest) {\n throw new protocol_js_1.NoSuchRequestException(`No blocked request found for network id '${networkId}'`);\n }\n return blockedRequest;\n }\n #getRequestOrFail(id) {\n const request = this.#networkStorage.getRequest(id);\n if (!request) {\n throw new protocol_js_1.NoSuchRequestException(`Network request with ID ${id} doesn't exist`);\n }\n return request;\n }\n /**\n * Attempts to parse the given url.\n * Throws an InvalidArgumentException if the url is invalid.\n */\n static parseUrlString(url) {\n try {\n return new URL(url);\n }\n catch (error) {\n throw new protocol_js_1.InvalidArgumentException(`Invalid URL '${url}': ${error}`);\n }\n }\n static parseUrlPatterns(urlPatterns) {\n return urlPatterns.map((urlPattern) => {\n switch (urlPattern.type) {\n case 'string': {\n NetworkProcessor.parseUrlString(urlPattern.pattern);\n return urlPattern;\n }\n case 'pattern':\n // No params signifies intercept all\n if (urlPattern.protocol === undefined &&\n urlPattern.hostname === undefined &&\n urlPattern.port === undefined &&\n urlPattern.pathname === undefined &&\n urlPattern.search === undefined) {\n return urlPattern;\n }\n if (urlPattern.protocol === '') {\n throw new protocol_js_1.InvalidArgumentException(`URL pattern must specify a protocol`);\n }\n if (urlPattern.hostname === '') {\n throw new protocol_js_1.InvalidArgumentException(`URL pattern must specify a hostname`);\n }\n if ((urlPattern.hostname?.length ?? 0) > 0) {\n if (urlPattern.protocol?.match(/^file/i)) {\n throw new protocol_js_1.InvalidArgumentException(`URL pattern protocol cannot be 'file'`);\n }\n if (urlPattern.hostname?.includes(':')) {\n throw new protocol_js_1.InvalidArgumentException(`URL pattern hostname must not contain a colon`);\n }\n }\n if (urlPattern.port === '') {\n throw new protocol_js_1.InvalidArgumentException(`URL pattern must specify a port`);\n }\n try {\n new URL(NetworkStorage_js_1.NetworkStorage.buildUrlPatternString(urlPattern));\n }\n catch (error) {\n throw new protocol_js_1.InvalidArgumentException(`${error}`);\n }\n return urlPattern;\n }\n });\n }\n}\nexports.NetworkProcessor = NetworkProcessor;\n//# sourceMappingURL=NetworkProcessor.js.map","\"use strict\";\n/**\n * Copyright 2024 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PermissionsProcessor = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nclass PermissionsProcessor {\n #browserCdpClient;\n constructor(browserCdpClient) {\n this.#browserCdpClient = browserCdpClient;\n }\n async setPermissions(params) {\n try {\n await this.#browserCdpClient.sendCommand('Browser.setPermission', {\n origin: params.origin,\n permission: {\n name: params.descriptor.name,\n },\n setting: params.state,\n });\n }\n catch (err) {\n if (err.message ===\n `Permission can't be granted to opaque origins.`) {\n // Return success if the origin is not valid (does not match any\n // existing origins).\n return {};\n }\n throw new protocol_js_1.InvalidArgumentException(err.message);\n }\n return {};\n }\n}\nexports.PermissionsProcessor = PermissionsProcessor;\n//# sourceMappingURL=PermissionsProcessor.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PreloadScriptStorage = void 0;\n/**\n * Container class for preload scripts.\n */\nclass PreloadScriptStorage {\n /** Tracks all BiDi preload scripts. */\n #scripts = new Set();\n /** Finds all entries that match the given filter. */\n find(filter) {\n if (!filter) {\n return [...this.#scripts];\n }\n return [...this.#scripts].filter((script) => {\n if (filter.id !== undefined && filter.id !== script.id) {\n return false;\n }\n if (filter.targetId !== undefined &&\n !script.targetIds.has(filter.targetId)) {\n return false;\n }\n if (filter.global !== undefined &&\n // Global scripts have no contexts\n ((filter.global && script.contexts !== undefined) ||\n // Non global scripts always have contexts\n (!filter.global && script.contexts === undefined))) {\n return false;\n }\n return true;\n });\n }\n add(preloadScript) {\n this.#scripts.add(preloadScript);\n }\n /** Deletes all BiDi preload script entries that match the given filter. */\n remove(filter) {\n for (const preloadScript of this.find(filter)) {\n this.#scripts.delete(preloadScript);\n }\n }\n}\nexports.PreloadScriptStorage = PreloadScriptStorage;\n//# sourceMappingURL=PreloadScriptStorage.js.map","\"use strict\";\n/*\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PreloadScript = void 0;\nconst uuid_js_1 = require(\"../../../utils/uuid.js\");\nconst ChannelProxy_js_1 = require(\"./ChannelProxy.js\");\n/**\n * BiDi IDs are generated by the server and are unique within contexts.\n *\n * CDP preload script IDs are generated by the client and are unique\n * within sessions.\n *\n * The mapping between BiDi and CDP preload script IDs is 1:many.\n * BiDi IDs are needed by the mapper to keep track of potential multiple CDP IDs\n * in the client.\n */\nclass PreloadScript {\n /** BiDi ID, an automatically generated UUID. */\n #id = (0, uuid_js_1.uuidv4)();\n /** CDP preload scripts. */\n #cdpPreloadScripts = [];\n /** The script itself, in a format expected by the spec i.e. a function. */\n #functionDeclaration;\n /** Targets, in which the preload script is initialized. */\n #targetIds = new Set();\n /** Channels to be added as arguments to functionDeclaration. */\n #channels;\n /** The script sandbox / world name. */\n #sandbox;\n /** The browsing contexts to execute the preload scripts in, if any. */\n #contexts;\n get id() {\n return this.#id;\n }\n get targetIds() {\n return this.#targetIds;\n }\n constructor(params, logger) {\n this.#channels =\n params.arguments?.map((a) => new ChannelProxy_js_1.ChannelProxy(a.value, logger)) ?? [];\n this.#functionDeclaration = params.functionDeclaration;\n this.#sandbox = params.sandbox;\n this.#contexts = params.contexts;\n }\n /** Channels of the preload script. */\n get channels() {\n return this.#channels;\n }\n /** Contexts of the preload script, if any */\n get contexts() {\n return this.#contexts;\n }\n /**\n * String to be evaluated. Wraps user-provided function so that the following\n * steps are run:\n * 1. Create channels.\n * 2. Store the created channels in window.\n * 3. Call the user-provided function with channels as arguments.\n */\n #getEvaluateString() {\n const channelsArgStr = `[${this.channels\n .map((c) => c.getEvalInWindowStr())\n .join(', ')}]`;\n return `(()=>{(${this.#functionDeclaration})(...${channelsArgStr})})()`;\n }\n /**\n * Adds the script to the given CDP targets by calling the\n * `Page.addScriptToEvaluateOnNewDocument` command.\n */\n async initInTargets(cdpTargets, runImmediately) {\n await Promise.all(Array.from(cdpTargets).map((cdpTarget) => this.initInTarget(cdpTarget, runImmediately)));\n }\n /**\n * Adds the script to the given CDP target by calling the\n * `Page.addScriptToEvaluateOnNewDocument` command.\n */\n async initInTarget(cdpTarget, runImmediately) {\n const addCdpPreloadScriptResult = await cdpTarget.cdpClient.sendCommand('Page.addScriptToEvaluateOnNewDocument', {\n source: this.#getEvaluateString(),\n worldName: this.#sandbox,\n runImmediately,\n });\n this.#cdpPreloadScripts.push({\n target: cdpTarget,\n preloadScriptId: addCdpPreloadScriptResult.identifier,\n });\n this.#targetIds.add(cdpTarget.id);\n }\n /**\n * Removes this script from all CDP targets.\n */\n async remove() {\n for (const cdpPreloadScript of this.#cdpPreloadScripts) {\n const cdpTarget = cdpPreloadScript.target;\n const cdpPreloadScriptId = cdpPreloadScript.preloadScriptId;\n await cdpTarget.cdpClient.sendCommand('Page.removeScriptToEvaluateOnNewDocument', {\n identifier: cdpPreloadScriptId,\n });\n }\n }\n /** Removes the provided cdp target from the list of cdp preload scripts. */\n dispose(cdpTargetId) {\n this.#cdpPreloadScripts = this.#cdpPreloadScripts.filter((cdpPreloadScript) => cdpPreloadScript.target?.id !== cdpTargetId);\n this.#targetIds.delete(cdpTargetId);\n }\n}\nexports.PreloadScript = PreloadScript;\n//# sourceMappingURL=PreloadScript.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ScriptProcessor = void 0;\nconst protocol_1 = require(\"../../../protocol/protocol\");\nconst PreloadScript_1 = require(\"./PreloadScript\");\nclass ScriptProcessor {\n #browsingContextStorage;\n #realmStorage;\n #preloadScriptStorage;\n #logger;\n constructor(browsingContextStorage, realmStorage, preloadScriptStorage, logger) {\n this.#browsingContextStorage = browsingContextStorage;\n this.#realmStorage = realmStorage;\n this.#preloadScriptStorage = preloadScriptStorage;\n this.#logger = logger;\n }\n async addPreloadScript(params) {\n const contexts = new Set();\n if (params.contexts) {\n // XXX: Remove once https://github.com/google/cddlconv/issues/16 is implemented\n if (params.contexts.length === 0) {\n throw new protocol_1.InvalidArgumentException('Contexts list is empty.');\n }\n for (const contextId of params.contexts) {\n const context = this.#browsingContextStorage.getContext(contextId);\n if (context.isTopLevelContext()) {\n contexts.add(context);\n }\n else {\n throw new protocol_1.InvalidArgumentException(`Non top-level context '${contextId}' given.`);\n }\n }\n }\n const preloadScript = new PreloadScript_1.PreloadScript(params, this.#logger);\n this.#preloadScriptStorage.add(preloadScript);\n const cdpTargets = contexts.size === 0\n ? new Set(this.#browsingContextStorage\n .getTopLevelContexts()\n .map((context) => context.cdpTarget))\n : new Set([...contexts.values()].map((context) => context.cdpTarget));\n await preloadScript.initInTargets(cdpTargets, false);\n return {\n script: preloadScript.id,\n };\n }\n async removePreloadScript(params) {\n const bidiId = params.script;\n const scripts = this.#preloadScriptStorage.find({\n id: bidiId,\n });\n if (scripts.length === 0) {\n throw new protocol_1.NoSuchScriptException(`No preload script with BiDi ID '${bidiId}'`);\n }\n await Promise.all(scripts.map((script) => script.remove()));\n this.#preloadScriptStorage.remove({\n id: bidiId,\n });\n return {};\n }\n async callFunction(params) {\n const realm = await this.#getRealm(params.target);\n return await realm.callFunction(params.functionDeclaration, params.this ?? {\n type: 'undefined',\n }, // `this` is `undefined` by default.\n params.arguments ?? [], // `arguments` is `[]` by default.\n params.awaitPromise, params.resultOwnership ?? \"none\" /* Script.ResultOwnership.None */, params.serializationOptions ?? {}, params.userActivation ?? false);\n }\n async evaluate(params) {\n const realm = await this.#getRealm(params.target);\n return await realm.evaluate(params.expression, params.awaitPromise, params.resultOwnership ?? \"none\" /* Script.ResultOwnership.None */, params.serializationOptions ?? {}, params.userActivation ?? false);\n }\n async disown(params) {\n const realm = await this.#getRealm(params.target);\n await Promise.all(params.handles.map(async (handle) => await realm.disown(handle)));\n return {};\n }\n getRealms(params) {\n if (params.context !== undefined) {\n // Make sure the context is known.\n this.#browsingContextStorage.getContext(params.context);\n }\n const realms = this.#realmStorage\n .findRealms({\n browsingContextId: params.context,\n type: params.type,\n })\n .map((realm) => realm.realmInfo);\n return { realms };\n }\n async #getRealm(target) {\n if ('realm' in target) {\n return this.#realmStorage.getRealm({\n realmId: target.realm,\n });\n }\n const context = this.#browsingContextStorage.getContext(target.context);\n return await context.getOrCreateSandbox(target.sandbox);\n }\n}\nexports.ScriptProcessor = ScriptProcessor;\n//# sourceMappingURL=ScriptProcessor.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SessionProcessor = void 0;\nclass SessionProcessor {\n #eventManager;\n constructor(eventManager) {\n this.#eventManager = eventManager;\n }\n status() {\n return { ready: false, message: 'already connected' };\n }\n subscribe(params, channel = null) {\n this.#eventManager.subscribe(params.events, params.contexts ?? [null], channel);\n return {};\n }\n unsubscribe(params, channel = null) {\n this.#eventManager.unsubscribe(params.events, params.contexts ?? [null], channel);\n return {};\n }\n}\nexports.SessionProcessor = SessionProcessor;\n//# sourceMappingURL=SessionProcessor.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.StorageProcessor = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst assert_js_1 = require(\"../../../utils/assert.js\");\nconst log_js_1 = require(\"../../../utils/log.js\");\nconst NetworkProcessor_js_1 = require(\"../network/NetworkProcessor.js\");\nconst NetworkUtils_js_1 = require(\"../network/NetworkUtils.js\");\n/**\n * Responsible for handling the `storage` domain.\n */\nclass StorageProcessor {\n #browserCdpClient;\n #browsingContextStorage;\n #logger;\n constructor(browserCdpClient, browsingContextStorage, logger) {\n this.#browsingContextStorage = browsingContextStorage;\n this.#browserCdpClient = browserCdpClient;\n this.#logger = logger;\n }\n async getCookies(params) {\n const partitionKey = this.#expandStoragePartitionSpec(params.partition);\n const cdpResponse = await this.#browserCdpClient.sendCommand('Storage.getCookies', {\n browserContextId: partitionKey.userContext,\n });\n const filteredBiDiCookies = cdpResponse.cookies\n .filter(\n // CDP's partition key is the source origin. If the request specifies the\n // `sourceOrigin` partition key, only cookies with the requested source origin\n // are returned.\n (c) => partitionKey.sourceOrigin === undefined ||\n c.partitionKey === partitionKey.sourceOrigin)\n .map((c) => (0, NetworkUtils_js_1.cdpToBiDiCookie)(c))\n .filter((c) => this.#matchCookie(c, params.filter));\n return {\n cookies: filteredBiDiCookies,\n partitionKey,\n };\n }\n async setCookie(params) {\n const partitionKey = this.#expandStoragePartitionSpec(params.partition);\n const cdpCookie = (0, NetworkUtils_js_1.bidiToCdpCookie)(params, partitionKey);\n try {\n await this.#browserCdpClient.sendCommand('Storage.setCookies', {\n cookies: [cdpCookie],\n browserContextId: partitionKey.userContext,\n });\n }\n catch (e) {\n this.#logger?.(log_js_1.LogType.debugError, e);\n throw new protocol_js_1.UnableToSetCookieException(e.toString());\n }\n return {\n partitionKey,\n };\n }\n #expandStoragePartitionSpecByBrowsingContext(descriptor) {\n const browsingContextId = descriptor.context;\n const browsingContext = this.#browsingContextStorage.getContext(browsingContextId);\n // https://w3c.github.io/webdriver-bidi/#associated-storage-partition.\n // Each browsing context also has an associated storage partition, which is the\n // storage partition it uses to persist data. In Chromium it's a `BrowserContext`\n // which maps to BiDi `UserContext`.\n return {\n userContext: browsingContext.userContext === 'default'\n ? undefined\n : browsingContext.userContext,\n };\n }\n #expandStoragePartitionSpecByStorageKey(descriptor) {\n const unsupportedPartitionKeys = new Map();\n let sourceOrigin = descriptor.sourceOrigin;\n if (sourceOrigin !== undefined) {\n const url = NetworkProcessor_js_1.NetworkProcessor.parseUrlString(sourceOrigin);\n if (url.origin === 'null') {\n // Origin `null` is a special case for local pages.\n sourceOrigin = url.origin;\n }\n else {\n // Port is not supported in CDP Cookie's `partitionKey`, so it should be stripped\n // from the requested source origin.\n sourceOrigin = `${url.protocol}//${url.hostname}`;\n }\n }\n const userContext = descriptor.userContext === 'default' ? undefined : descriptor.userContext;\n // Partition spec is a storage partition.\n // Let partition key be partition spec.\n for (const [key, value] of Object.entries(descriptor)) {\n if (key !== undefined &&\n value !== undefined &&\n !['type', 'sourceOrigin', 'userContext'].includes(key)) {\n unsupportedPartitionKeys.set(key, value);\n }\n }\n if (unsupportedPartitionKeys.size > 0) {\n this.#logger?.(log_js_1.LogType.debugInfo, `Unsupported partition keys: ${JSON.stringify(Object.fromEntries(unsupportedPartitionKeys))}`);\n }\n return {\n ...(sourceOrigin === undefined ? {} : { sourceOrigin }),\n ...(userContext === undefined ? {} : { userContext }),\n };\n }\n #expandStoragePartitionSpec(partitionSpec) {\n if (partitionSpec === undefined) {\n return {};\n }\n if (partitionSpec.type === 'context') {\n return this.#expandStoragePartitionSpecByBrowsingContext(partitionSpec);\n }\n (0, assert_js_1.assert)(partitionSpec.type === 'storageKey', 'Unknown partition type');\n return this.#expandStoragePartitionSpecByStorageKey(partitionSpec);\n }\n #matchCookie(cookie, filter) {\n if (filter === undefined) {\n return true;\n }\n return ((filter.domain === undefined || filter.domain === cookie.domain) &&\n (filter.name === undefined || filter.name === cookie.name) &&\n // `value` contains fields `type` and `value`.\n (filter.value === undefined ||\n (filter.value.type === cookie.value.type &&\n filter.value.value === cookie.value.value)) &&\n (filter.path === undefined || filter.path === cookie.path) &&\n (filter.size === undefined || filter.size === cookie.size) &&\n (filter.httpOnly === undefined || filter.httpOnly === cookie.httpOnly) &&\n (filter.secure === undefined || filter.secure === cookie.secure) &&\n (filter.sameSite === undefined || filter.sameSite === cookie.sameSite) &&\n (filter.expiry === undefined || filter.expiry === cookie.expiry));\n }\n}\nexports.StorageProcessor = StorageProcessor;\n//# sourceMappingURL=StorageProcessor.js.map","\"use strict\";\n/**\n * Copyright 2021 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.OutgoingMessage = void 0;\nclass OutgoingMessage {\n #message;\n #channel;\n constructor(message, channel = null) {\n this.#message = message;\n this.#channel = channel;\n }\n static createFromPromise(messagePromise, channel) {\n return messagePromise.then((message) => {\n if (message.kind === 'success') {\n return {\n kind: 'success',\n value: new OutgoingMessage(message.value, channel),\n };\n }\n return message;\n });\n }\n static createResolved(message, channel) {\n return Promise.resolve({\n kind: 'success',\n value: new OutgoingMessage(message, channel),\n });\n }\n get message() {\n return this.#message;\n }\n get channel() {\n return this.#channel;\n }\n}\nexports.OutgoingMessage = OutgoingMessage;\n//# sourceMappingURL=OutgoingMessage.js.map","\"use strict\";\n/**\n * Copyright 2021 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CommandProcessor = void 0;\nconst protocol_js_1 = require(\"../protocol/protocol.js\");\nconst EventEmitter_js_1 = require(\"../utils/EventEmitter.js\");\nconst log_js_1 = require(\"../utils/log.js\");\nconst BidiNoOpParser_js_1 = require(\"./BidiNoOpParser.js\");\nconst BrowserProcessor_js_1 = require(\"./domains/browser/BrowserProcessor.js\");\nconst CdpProcessor_js_1 = require(\"./domains/cdp/CdpProcessor.js\");\nconst BrowsingContextProcessor_js_1 = require(\"./domains/context/BrowsingContextProcessor.js\");\nconst InputProcessor_js_1 = require(\"./domains/input/InputProcessor.js\");\nconst NetworkProcessor_js_1 = require(\"./domains/network/NetworkProcessor.js\");\nconst NetworkStorage_js_1 = require(\"./domains/network/NetworkStorage.js\");\nconst PermissionsProcessor_js_1 = require(\"./domains/permissions/PermissionsProcessor.js\");\nconst PreloadScriptStorage_js_1 = require(\"./domains/script/PreloadScriptStorage.js\");\nconst ScriptProcessor_js_1 = require(\"./domains/script/ScriptProcessor.js\");\nconst SessionProcessor_js_1 = require(\"./domains/session/SessionProcessor.js\");\nconst StorageProcessor_js_1 = require(\"./domains/storage/StorageProcessor.js\");\nconst OutgoingMessage_js_1 = require(\"./OutgoingMessage.js\");\nclass CommandProcessor extends EventEmitter_js_1.EventEmitter {\n // keep-sorted start\n #browserProcessor;\n #browsingContextProcessor;\n #cdpProcessor;\n #inputProcessor;\n #networkProcessor;\n #permissionsProcessor;\n #scriptProcessor;\n #sessionProcessor;\n #storageProcessor;\n // keep-sorted end\n #parser;\n #logger;\n constructor(cdpConnection, browserCdpClient, eventManager, selfTargetId, defaultUserContextId, browsingContextStorage, realmStorage, acceptInsecureCerts, sharedIdWithFrame, parser = new BidiNoOpParser_js_1.BidiNoOpParser(), logger) {\n super();\n this.#parser = parser;\n this.#logger = logger;\n const networkStorage = new NetworkStorage_js_1.NetworkStorage();\n const preloadScriptStorage = new PreloadScriptStorage_js_1.PreloadScriptStorage();\n // keep-sorted start block=yes\n this.#browserProcessor = new BrowserProcessor_js_1.BrowserProcessor(browserCdpClient);\n this.#browsingContextProcessor = new BrowsingContextProcessor_js_1.BrowsingContextProcessor(cdpConnection, browserCdpClient, selfTargetId, eventManager, browsingContextStorage, realmStorage, networkStorage, preloadScriptStorage, acceptInsecureCerts, sharedIdWithFrame, defaultUserContextId, logger);\n this.#cdpProcessor = new CdpProcessor_js_1.CdpProcessor(browsingContextStorage, cdpConnection, browserCdpClient);\n this.#inputProcessor = new InputProcessor_js_1.InputProcessor(browsingContextStorage, realmStorage);\n this.#networkProcessor = new NetworkProcessor_js_1.NetworkProcessor(browsingContextStorage, networkStorage);\n this.#permissionsProcessor = new PermissionsProcessor_js_1.PermissionsProcessor(browserCdpClient);\n this.#scriptProcessor = new ScriptProcessor_js_1.ScriptProcessor(browsingContextStorage, realmStorage, preloadScriptStorage, logger);\n this.#sessionProcessor = new SessionProcessor_js_1.SessionProcessor(eventManager);\n this.#storageProcessor = new StorageProcessor_js_1.StorageProcessor(browserCdpClient, browsingContextStorage, logger);\n // keep-sorted end\n }\n async #processCommand(command) {\n switch (command.method) {\n case 'session.end':\n case 'session.new':\n // TODO: Implement.\n break;\n // Browser domain\n // keep-sorted start block=yes\n case 'browser.close':\n return this.#browserProcessor.close();\n case 'browser.createUserContext':\n return await this.#browserProcessor.createUserContext();\n case 'browser.getUserContexts':\n return await this.#browserProcessor.getUserContexts();\n case 'browser.removeUserContext':\n return await this.#browserProcessor.removeUserContext(command.params.userContext);\n // keep-sorted end\n // Browsing Context domain\n // keep-sorted start block=yes\n case 'browsingContext.activate':\n return await this.#browsingContextProcessor.activate(this.#parser.parseActivateParams(command.params));\n case 'browsingContext.captureScreenshot':\n return await this.#browsingContextProcessor.captureScreenshot(this.#parser.parseCaptureScreenshotParams(command.params));\n case 'browsingContext.close':\n return await this.#browsingContextProcessor.close(this.#parser.parseCloseParams(command.params));\n case 'browsingContext.create':\n return await this.#browsingContextProcessor.create(this.#parser.parseCreateParams(command.params));\n case 'browsingContext.getTree':\n return this.#browsingContextProcessor.getTree(this.#parser.parseGetTreeParams(command.params));\n case 'browsingContext.handleUserPrompt':\n return await this.#browsingContextProcessor.handleUserPrompt(this.#parser.parseHandleUserPromptParams(command.params));\n case 'browsingContext.locateNodes':\n throw new protocol_js_1.UnsupportedOperationException(`Command '${command.method}' not yet implemented.`);\n case 'browsingContext.navigate':\n return await this.#browsingContextProcessor.navigate(this.#parser.parseNavigateParams(command.params));\n case 'browsingContext.print':\n return await this.#browsingContextProcessor.print(this.#parser.parsePrintParams(command.params));\n case 'browsingContext.reload':\n return await this.#browsingContextProcessor.reload(this.#parser.parseReloadParams(command.params));\n case 'browsingContext.setViewport':\n return await this.#browsingContextProcessor.setViewport(this.#parser.parseSetViewportParams(command.params));\n case 'browsingContext.traverseHistory':\n return await this.#browsingContextProcessor.traverseHistory(this.#parser.parseTraverseHistoryParams(command.params));\n // keep-sorted end\n // CDP domain\n // keep-sorted start block=yes\n case 'cdp.getSession':\n return this.#cdpProcessor.getSession(this.#parser.parseGetSessionParams(command.params));\n case 'cdp.sendCommand':\n return await this.#cdpProcessor.sendCommand(this.#parser.parseSendCommandParams(command.params));\n // keep-sorted end\n // Input domain\n // keep-sorted start block=yes\n case 'input.performActions':\n return await this.#inputProcessor.performActions(this.#parser.parsePerformActionsParams(command.params));\n case 'input.releaseActions':\n return await this.#inputProcessor.releaseActions(this.#parser.parseReleaseActionsParams(command.params));\n case 'input.setFiles':\n return await this.#inputProcessor.setFiles(this.#parser.parseSetFilesParams(command.params));\n // keep-sorted end\n // Network domain\n // keep-sorted start block=yes\n case 'network.addIntercept':\n return await this.#networkProcessor.addIntercept(this.#parser.parseAddInterceptParams(command.params));\n case 'network.continueRequest':\n return await this.#networkProcessor.continueRequest(this.#parser.parseContinueRequestParams(command.params));\n case 'network.continueResponse':\n return await this.#networkProcessor.continueResponse(this.#parser.parseContinueResponseParams(command.params));\n case 'network.continueWithAuth':\n return await this.#networkProcessor.continueWithAuth(this.#parser.parseContinueWithAuthParams(command.params));\n case 'network.failRequest':\n return await this.#networkProcessor.failRequest(this.#parser.parseFailRequestParams(command.params));\n case 'network.provideResponse':\n return await this.#networkProcessor.provideResponse(this.#parser.parseProvideResponseParams(command.params));\n case 'network.removeIntercept':\n return await this.#networkProcessor.removeIntercept(this.#parser.parseRemoveInterceptParams(command.params));\n // keep-sorted end\n // Permissions domain\n // keep-sorted start block=yes\n case 'permissions.setPermission':\n return await this.#permissionsProcessor.setPermissions(this.#parser.parseSetPermissionsParams(command.params));\n // keep-sorted end\n // Script domain\n // keep-sorted start block=yes\n case 'script.addPreloadScript':\n return await this.#scriptProcessor.addPreloadScript(this.#parser.parseAddPreloadScriptParams(command.params));\n case 'script.callFunction':\n return await this.#scriptProcessor.callFunction(this.#parser.parseCallFunctionParams(command.params));\n case 'script.disown':\n return await this.#scriptProcessor.disown(this.#parser.parseDisownParams(command.params));\n case 'script.evaluate':\n return await this.#scriptProcessor.evaluate(this.#parser.parseEvaluateParams(command.params));\n case 'script.getRealms':\n return this.#scriptProcessor.getRealms(this.#parser.parseGetRealmsParams(command.params));\n case 'script.removePreloadScript':\n return await this.#scriptProcessor.removePreloadScript(this.#parser.parseRemovePreloadScriptParams(command.params));\n // keep-sorted end\n // Session domain\n // keep-sorted start block=yes\n case 'session.status':\n return this.#sessionProcessor.status();\n case 'session.subscribe':\n return this.#sessionProcessor.subscribe(this.#parser.parseSubscribeParams(command.params), command.channel);\n case 'session.unsubscribe':\n return this.#sessionProcessor.unsubscribe(this.#parser.parseSubscribeParams(command.params), command.channel);\n // keep-sorted end\n // Storage domain\n // keep-sorted start block=yes\n case 'storage.deleteCookies':\n throw new protocol_js_1.UnsupportedOperationException(`${command.method} is not supported yet`);\n case 'storage.getCookies':\n return await this.#storageProcessor.getCookies(this.#parser.parseGetCookiesParams(command.params));\n case 'storage.setCookie':\n return await this.#storageProcessor.setCookie(this.#parser.parseSetCookieParams(command.params));\n // keep-sorted end\n }\n // Intentionally kept outside the switch statement to ensure that\n // ESLint @typescript-eslint/switch-exhaustiveness-check triggers if a new\n // command is added.\n throw new protocol_js_1.UnknownCommandException(`Unknown command '${command.method}'.`);\n }\n async processCommand(command) {\n try {\n const result = await this.#processCommand(command);\n const response = {\n type: 'success',\n id: command.id,\n result,\n };\n this.emit(\"response\" /* CommandProcessorEvents.Response */, {\n message: OutgoingMessage_js_1.OutgoingMessage.createResolved(response, command.channel),\n event: command.method,\n });\n }\n catch (e) {\n if (e instanceof protocol_js_1.Exception) {\n this.emit(\"response\" /* CommandProcessorEvents.Response */, {\n message: OutgoingMessage_js_1.OutgoingMessage.createResolved(e.toErrorResponse(command.id), command.channel),\n event: command.method,\n });\n }\n else {\n const error = e;\n this.#logger?.(log_js_1.LogType.bidi, error);\n this.emit(\"response\" /* CommandProcessorEvents.Response */, {\n message: OutgoingMessage_js_1.OutgoingMessage.createResolved(new protocol_js_1.UnknownErrorException(error.message, error.stack).toErrorResponse(command.id), command.channel),\n event: command.method,\n });\n }\n }\n }\n}\nexports.CommandProcessor = CommandProcessor;\n//# sourceMappingURL=CommandProcessor.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BrowsingContextStorage = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\n/** Container class for browsing contexts. */\nclass BrowsingContextStorage {\n /** Map from context ID to context implementation. */\n #contexts = new Map();\n /** Gets all top-level contexts, i.e. those with no parent. */\n getTopLevelContexts() {\n return this.getAllContexts().filter((context) => context.isTopLevelContext());\n }\n /** Gets all contexts. */\n getAllContexts() {\n return Array.from(this.#contexts.values());\n }\n /** Deletes the context with the given ID. */\n deleteContextById(id) {\n this.#contexts.delete(id);\n }\n /** Deletes the given context. */\n deleteContext(context) {\n this.#contexts.delete(context.id);\n }\n /** Tracks the given context. */\n addContext(context) {\n this.#contexts.set(context.id, context);\n }\n /** Returns true whether there is an existing context with the given ID. */\n hasContext(id) {\n return this.#contexts.has(id);\n }\n /** Gets the context with the given ID, if any. */\n findContext(id) {\n return this.#contexts.get(id);\n }\n /** Returns the top-level context ID of the given context, if any. */\n findTopLevelContextId(id) {\n if (id === null) {\n return null;\n }\n const maybeContext = this.findContext(id);\n const parentId = maybeContext?.parentId ?? null;\n if (parentId === null) {\n return id;\n }\n return this.findTopLevelContextId(parentId);\n }\n findContextBySession(sessionId) {\n for (const context of this.#contexts.values()) {\n if (context.cdpTarget.cdpSessionId === sessionId) {\n return context;\n }\n }\n return;\n }\n /** Gets the context with the given ID, if any, otherwise throws. */\n getContext(id) {\n const result = this.findContext(id);\n if (result === undefined) {\n throw new protocol_js_1.NoSuchFrameException(`Context ${id} not found`);\n }\n return result;\n }\n}\nexports.BrowsingContextStorage = BrowsingContextStorage;\n//# sourceMappingURL=BrowsingContextStorage.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RealmStorage = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst WindowRealm_js_1 = require(\"./WindowRealm.js\");\n/** Container class for browsing realms. */\nclass RealmStorage {\n /** Tracks handles and their realms sent to the client. */\n #knownHandlesToRealmMap = new Map();\n /** Map from realm ID to Realm. */\n #realmMap = new Map();\n get knownHandlesToRealmMap() {\n return this.#knownHandlesToRealmMap;\n }\n addRealm(realm) {\n this.#realmMap.set(realm.realmId, realm);\n }\n /** Finds all realms that match the given filter. */\n findRealms(filter) {\n return Array.from(this.#realmMap.values()).filter((realm) => {\n if (filter.realmId !== undefined && filter.realmId !== realm.realmId) {\n return false;\n }\n if (filter.browsingContextId !== undefined &&\n !realm.associatedBrowsingContexts\n .map((browsingContext) => browsingContext.id)\n .includes(filter.browsingContextId)) {\n return false;\n }\n if (filter.sandbox !== undefined &&\n (!(realm instanceof WindowRealm_js_1.WindowRealm) || filter.sandbox !== realm.sandbox)) {\n return false;\n }\n if (filter.executionContextId !== undefined &&\n filter.executionContextId !== realm.executionContextId) {\n return false;\n }\n if (filter.origin !== undefined && filter.origin !== realm.origin) {\n return false;\n }\n if (filter.type !== undefined && filter.type !== realm.realmType) {\n return false;\n }\n if (filter.cdpSessionId !== undefined &&\n filter.cdpSessionId !== realm.cdpClient.sessionId) {\n return false;\n }\n return true;\n });\n }\n findRealm(filter) {\n const maybeRealms = this.findRealms(filter);\n if (maybeRealms.length !== 1) {\n return undefined;\n }\n return maybeRealms[0];\n }\n /** Gets the only realm that matches the given filter, if any, otherwise throws. */\n getRealm(filter) {\n const maybeRealm = this.findRealm(filter);\n if (maybeRealm === undefined) {\n throw new protocol_js_1.NoSuchFrameException(`Realm ${JSON.stringify(filter)} not found`);\n }\n return maybeRealm;\n }\n /** Deletes all realms that match the given filter. */\n deleteRealms(filter) {\n this.findRealms(filter).map((realm) => {\n realm.dispose();\n this.#realmMap.delete(realm.realmId);\n Array.from(this.knownHandlesToRealmMap.entries())\n .filter(([, r]) => r === realm.realmId)\n .map(([handle]) => this.knownHandlesToRealmMap.delete(handle));\n });\n }\n}\nexports.RealmStorage = RealmStorage;\n//# sourceMappingURL=RealmStorage.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Buffer = void 0;\n/** Implements a FIFO buffer with a fixed size. */\nclass Buffer {\n #capacity;\n #entries = [];\n #onItemRemoved;\n /**\n * @param capacity The buffer capacity.\n * @param onItemRemoved Delegate called for each removed element.\n */\n constructor(capacity, onItemRemoved) {\n this.#capacity = capacity;\n this.#onItemRemoved = onItemRemoved;\n }\n get() {\n return this.#entries;\n }\n add(value) {\n this.#entries.push(value);\n while (this.#entries.length > this.#capacity) {\n const item = this.#entries.shift();\n if (item !== undefined) {\n this.#onItemRemoved?.(item);\n }\n }\n }\n}\nexports.Buffer = Buffer;\n//# sourceMappingURL=Buffer.js.map","\"use strict\";\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DefaultMap = void 0;\n/**\n * A subclass of Map whose functionality is almost the same as its parent\n * except for the fact that DefaultMap never returns undefined. It provides a\n * default value for keys that do not exist.\n */\nclass DefaultMap extends Map {\n /** The default value to return whenever a key is not present in the map. */\n #getDefaultValue;\n constructor(getDefaultValue, entries) {\n super(entries);\n this.#getDefaultValue = getDefaultValue;\n }\n get(key) {\n if (!this.has(key)) {\n this.set(key, this.#getDefaultValue(key));\n }\n return super.get(key);\n }\n}\nexports.DefaultMap = DefaultMap;\n//# sourceMappingURL=DefaultMap.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.IdWrapper = void 0;\n/**\n * Creates an object with a positive unique incrementing id.\n */\nclass IdWrapper {\n static #counter = 0;\n #id;\n constructor() {\n this.#id = ++IdWrapper.#counter;\n }\n get id() {\n return this.#id;\n }\n}\nexports.IdWrapper = IdWrapper;\n//# sourceMappingURL=IdWrapper.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assertSupportedEvent = exports.isCdpEvent = void 0;\n/**\n * Copyright 2023 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\n/**\n * Returns true if the given event is a CDP event.\n * @see https://chromedevtools.github.io/devtools-protocol/\n */\nfunction isCdpEvent(name) {\n return (name.split('.').at(0)?.startsWith(protocol_js_1.ChromiumBidi.BiDiModule.Cdp) ?? false);\n}\nexports.isCdpEvent = isCdpEvent;\n/**\n * Asserts that the given event is known to BiDi or BiDi+, or throws otherwise.\n */\nfunction assertSupportedEvent(name) {\n if (!protocol_js_1.ChromiumBidi.EVENT_NAMES.has(name) && !isCdpEvent(name)) {\n throw new protocol_js_1.InvalidArgumentException(`Unknown event: ${name}`);\n }\n}\nexports.assertSupportedEvent = assertSupportedEvent;\n//# sourceMappingURL=events.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SubscriptionManager = exports.unrollEvents = exports.cartesianProduct = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst events_js_1 = require(\"./events.js\");\n/**\n * Returns the cartesian product of the given arrays.\n *\n * Example:\n * cartesian([1, 2], ['a', 'b']); => [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']]\n */\nfunction cartesianProduct(...a) {\n return a.reduce((a, b) => a.flatMap((d) => b.map((e) => [d, e].flat())));\n}\nexports.cartesianProduct = cartesianProduct;\n/** Expands \"AllEvents\" events into atomic events. */\nfunction unrollEvents(events) {\n const allEvents = new Set();\n function addEvents(events) {\n for (const event of events) {\n allEvents.add(event);\n }\n }\n for (const event of events) {\n switch (event) {\n case protocol_js_1.ChromiumBidi.BiDiModule.BrowsingContext:\n addEvents(Object.values(protocol_js_1.ChromiumBidi.BrowsingContext.EventNames));\n break;\n case protocol_js_1.ChromiumBidi.BiDiModule.Log:\n addEvents(Object.values(protocol_js_1.ChromiumBidi.Log.EventNames));\n break;\n case protocol_js_1.ChromiumBidi.BiDiModule.Network:\n addEvents(Object.values(protocol_js_1.ChromiumBidi.Network.EventNames));\n break;\n case protocol_js_1.ChromiumBidi.BiDiModule.Script:\n addEvents(Object.values(protocol_js_1.ChromiumBidi.Script.EventNames));\n break;\n default:\n allEvents.add(event);\n }\n }\n return [...allEvents.values()];\n}\nexports.unrollEvents = unrollEvents;\nclass SubscriptionManager {\n #subscriptionPriority = 0;\n // BrowsingContext `null` means the event has subscription across all the\n // browsing contexts.\n // Channel `null` means no `channel` should be added.\n #channelToContextToEventMap = new Map();\n #browsingContextStorage;\n constructor(browsingContextStorage) {\n this.#browsingContextStorage = browsingContextStorage;\n }\n getChannelsSubscribedToEvent(eventMethod, contextId) {\n const prioritiesAndChannels = Array.from(this.#channelToContextToEventMap.keys())\n .map((channel) => ({\n priority: this.#getEventSubscriptionPriorityForChannel(eventMethod, contextId, channel),\n channel,\n }))\n .filter(({ priority }) => priority !== null);\n // Sort channels by priority.\n return prioritiesAndChannels\n .sort((a, b) => a.priority - b.priority)\n .map(({ channel }) => channel);\n }\n #getEventSubscriptionPriorityForChannel(eventMethod, contextId, channel) {\n const contextToEventMap = this.#channelToContextToEventMap.get(channel);\n if (contextToEventMap === undefined) {\n return null;\n }\n const maybeTopLevelContextId = this.#browsingContextStorage.findTopLevelContextId(contextId);\n // `null` covers global subscription.\n const relevantContexts = [...new Set([null, maybeTopLevelContextId])];\n // Get all the subscription priorities.\n const priorities = relevantContexts\n .map((context) => {\n // Get the priority for exact event name\n const priority = contextToEventMap.get(context)?.get(eventMethod);\n // For CDP we can't provide specific event name when subscribing\n // to the module directly.\n // Because of that we need to see event `cdp` exits in the map.\n if ((0, events_js_1.isCdpEvent)(eventMethod)) {\n const cdpPriority = contextToEventMap\n .get(context)\n ?.get(protocol_js_1.ChromiumBidi.BiDiModule.Cdp);\n // If we subscribe to the event directly and `cdp` module as well\n // priority will be different we take minimal priority\n return priority && cdpPriority\n ? Math.min(priority, cdpPriority)\n : // At this point we know that we have subscribed\n // to only one of the two\n priority ?? cdpPriority;\n }\n return priority;\n })\n .filter((p) => p !== undefined);\n if (priorities.length === 0) {\n // Not subscribed, return null.\n return null;\n }\n // Return minimal priority.\n return Math.min(...priorities);\n }\n subscribe(event, contextId, channel) {\n // All the subscriptions are handled on the top-level contexts.\n contextId = this.#browsingContextStorage.findTopLevelContextId(contextId);\n // Check if subscribed event is a whole module\n switch (event) {\n case protocol_js_1.ChromiumBidi.BiDiModule.BrowsingContext:\n Object.values(protocol_js_1.ChromiumBidi.BrowsingContext.EventNames).map((specificEvent) => this.subscribe(specificEvent, contextId, channel));\n return;\n case protocol_js_1.ChromiumBidi.BiDiModule.Log:\n Object.values(protocol_js_1.ChromiumBidi.Log.EventNames).map((specificEvent) => this.subscribe(specificEvent, contextId, channel));\n return;\n case protocol_js_1.ChromiumBidi.BiDiModule.Network:\n Object.values(protocol_js_1.ChromiumBidi.Network.EventNames).map((specificEvent) => this.subscribe(specificEvent, contextId, channel));\n return;\n case protocol_js_1.ChromiumBidi.BiDiModule.Script:\n Object.values(protocol_js_1.ChromiumBidi.Script.EventNames).map((specificEvent) => this.subscribe(specificEvent, contextId, channel));\n return;\n default:\n // Intentionally left empty.\n }\n if (!this.#channelToContextToEventMap.has(channel)) {\n this.#channelToContextToEventMap.set(channel, new Map());\n }\n const contextToEventMap = this.#channelToContextToEventMap.get(channel);\n if (!contextToEventMap.has(contextId)) {\n contextToEventMap.set(contextId, new Map());\n }\n const eventMap = contextToEventMap.get(contextId);\n // Do not re-subscribe to events to keep the priority.\n if (eventMap.has(event)) {\n return;\n }\n eventMap.set(event, this.#subscriptionPriority++);\n }\n /**\n * Unsubscribes atomically from all events in the given contexts and channel.\n */\n unsubscribeAll(events, contextIds, channel) {\n // Assert all contexts are known.\n for (const contextId of contextIds) {\n if (contextId !== null) {\n this.#browsingContextStorage.getContext(contextId);\n }\n }\n const eventContextPairs = cartesianProduct(unrollEvents(events), contextIds);\n // Assert all unsubscriptions are valid.\n // If any of the unsubscriptions are invalid, do not unsubscribe from anything.\n eventContextPairs\n .map(([event, contextId]) => this.#checkUnsubscribe(event, contextId, channel))\n .forEach((unsubscribe) => unsubscribe());\n }\n /**\n * Unsubscribes from the event in the given context and channel.\n * Syntactic sugar for \"unsubscribeAll\".\n */\n unsubscribe(eventName, contextId, channel) {\n this.unsubscribeAll([eventName], [contextId], channel);\n }\n #checkUnsubscribe(event, contextId, channel) {\n // All the subscriptions are handled on the top-level contexts.\n contextId = this.#browsingContextStorage.findTopLevelContextId(contextId);\n if (!this.#channelToContextToEventMap.has(channel)) {\n throw new protocol_js_1.InvalidArgumentException(`Cannot unsubscribe from ${event}, ${contextId === null ? 'null' : contextId}. No subscription found.`);\n }\n const contextToEventMap = this.#channelToContextToEventMap.get(channel);\n if (!contextToEventMap.has(contextId)) {\n throw new protocol_js_1.InvalidArgumentException(`Cannot unsubscribe from ${event}, ${contextId === null ? 'null' : contextId}. No subscription found.`);\n }\n const eventMap = contextToEventMap.get(contextId);\n if (!eventMap.has(event)) {\n throw new protocol_js_1.InvalidArgumentException(`Cannot unsubscribe from ${event}, ${contextId === null ? 'null' : contextId}. No subscription found.`);\n }\n return () => {\n eventMap.delete(event);\n // Clean up maps if empty.\n if (eventMap.size === 0) {\n contextToEventMap.delete(event);\n }\n if (contextToEventMap.size === 0) {\n this.#channelToContextToEventMap.delete(channel);\n }\n };\n }\n}\nexports.SubscriptionManager = SubscriptionManager;\n//# sourceMappingURL=SubscriptionManager.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.EventManager = void 0;\nconst protocol_js_1 = require(\"../../../protocol/protocol.js\");\nconst Buffer_js_1 = require(\"../../../utils/Buffer.js\");\nconst DefaultMap_js_1 = require(\"../../../utils/DefaultMap.js\");\nconst EventEmitter_js_1 = require(\"../../../utils/EventEmitter.js\");\nconst IdWrapper_js_1 = require(\"../../../utils/IdWrapper.js\");\nconst OutgoingMessage_js_1 = require(\"../../OutgoingMessage.js\");\nconst events_js_1 = require(\"./events.js\");\nconst SubscriptionManager_js_1 = require(\"./SubscriptionManager.js\");\nclass EventWrapper {\n #idWrapper = new IdWrapper_js_1.IdWrapper();\n #contextId;\n #event;\n constructor(event, contextId) {\n this.#event = event;\n this.#contextId = contextId;\n }\n get id() {\n return this.#idWrapper.id;\n }\n get contextId() {\n return this.#contextId;\n }\n get event() {\n return this.#event;\n }\n}\n/**\n * Maps event name to a desired buffer length.\n */\nconst eventBufferLength = new Map([[protocol_js_1.ChromiumBidi.Log.EventNames.LogEntryAdded, 100]]);\nclass EventManager extends EventEmitter_js_1.EventEmitter {\n /**\n * Maps event name to a set of contexts where this event already happened.\n * Needed for getting buffered events from all the contexts in case of\n * subscripting to all contexts.\n */\n #eventToContextsMap = new DefaultMap_js_1.DefaultMap(() => new Set());\n /**\n * Maps `eventName` + `browsingContext` to buffer. Used to get buffered events\n * during subscription. Channel-agnostic.\n */\n #eventBuffers = new Map();\n /**\n * Maps `eventName` + `browsingContext` + `channel` to last sent event id.\n * Used to avoid sending duplicated events when user\n * subscribes -> unsubscribes -> subscribes.\n */\n #lastMessageSent = new Map();\n #subscriptionManager;\n #browsingContextStorage;\n constructor(browsingContextStorage) {\n super();\n this.#browsingContextStorage = browsingContextStorage;\n this.#subscriptionManager = new SubscriptionManager_js_1.SubscriptionManager(browsingContextStorage);\n }\n /**\n * Returns consistent key to be used to access value maps.\n */\n static #getMapKey(eventName, browsingContext, channel) {\n return JSON.stringify({ eventName, browsingContext, channel });\n }\n registerEvent(event, contextId) {\n this.registerPromiseEvent(Promise.resolve({\n kind: 'success',\n value: event,\n }), contextId, event.method);\n }\n registerPromiseEvent(event, contextId, eventName) {\n const eventWrapper = new EventWrapper(event, contextId);\n const sortedChannels = this.#subscriptionManager.getChannelsSubscribedToEvent(eventName, contextId);\n this.#bufferEvent(eventWrapper, eventName);\n // Send events to channels in the subscription priority.\n for (const channel of sortedChannels) {\n this.emit(\"event\" /* EventManagerEvents.Event */, {\n message: OutgoingMessage_js_1.OutgoingMessage.createFromPromise(event, channel),\n event: eventName,\n });\n this.#markEventSent(eventWrapper, channel, eventName);\n }\n }\n subscribe(eventNames, contextIds, channel) {\n for (const name of eventNames) {\n (0, events_js_1.assertSupportedEvent)(name);\n }\n // First check if all the contexts are known.\n for (const contextId of contextIds) {\n if (contextId !== null) {\n // Assert the context is known. Throw exception otherwise.\n this.#browsingContextStorage.getContext(contextId);\n }\n }\n for (const eventName of eventNames) {\n for (const contextId of contextIds) {\n this.#subscriptionManager.subscribe(eventName, contextId, channel);\n for (const eventWrapper of this.#getBufferedEvents(eventName, contextId, channel)) {\n // The order of the events is important.\n this.emit(\"event\" /* EventManagerEvents.Event */, {\n message: OutgoingMessage_js_1.OutgoingMessage.createFromPromise(eventWrapper.event, channel),\n event: eventName,\n });\n this.#markEventSent(eventWrapper, channel, eventName);\n }\n }\n }\n }\n unsubscribe(eventNames, contextIds, channel) {\n for (const name of eventNames) {\n (0, events_js_1.assertSupportedEvent)(name);\n }\n this.#subscriptionManager.unsubscribeAll(eventNames, contextIds, channel);\n }\n /**\n * If the event is buffer-able, put it in the buffer.\n */\n #bufferEvent(eventWrapper, eventName) {\n if (!eventBufferLength.has(eventName)) {\n // Do nothing if the event is no buffer-able.\n return;\n }\n const bufferMapKey = EventManager.#getMapKey(eventName, eventWrapper.contextId);\n if (!this.#eventBuffers.has(bufferMapKey)) {\n this.#eventBuffers.set(bufferMapKey, new Buffer_js_1.Buffer(eventBufferLength.get(eventName)));\n }\n this.#eventBuffers.get(bufferMapKey).add(eventWrapper);\n // Add the context to the list of contexts having `eventName` events.\n this.#eventToContextsMap.get(eventName).add(eventWrapper.contextId);\n }\n /**\n * If the event is buffer-able, mark it as sent to the given contextId and channel.\n */\n #markEventSent(eventWrapper, channel, eventName) {\n if (!eventBufferLength.has(eventName)) {\n // Do nothing if the event is no buffer-able.\n return;\n }\n const lastSentMapKey = EventManager.#getMapKey(eventName, eventWrapper.contextId, channel);\n this.#lastMessageSent.set(lastSentMapKey, Math.max(this.#lastMessageSent.get(lastSentMapKey) ?? 0, eventWrapper.id));\n }\n /**\n * Returns events which are buffered and not yet sent to the given channel events.\n */\n #getBufferedEvents(eventName, contextId, channel) {\n const bufferMapKey = EventManager.#getMapKey(eventName, contextId);\n const lastSentMapKey = EventManager.#getMapKey(eventName, contextId, channel);\n const lastSentMessageId = this.#lastMessageSent.get(lastSentMapKey) ?? -Infinity;\n const result = this.#eventBuffers\n .get(bufferMapKey)\n ?.get()\n .filter((wrapper) => wrapper.id > lastSentMessageId) ?? [];\n if (contextId === null) {\n // For global subscriptions, events buffered in each context should be sent back.\n Array.from(this.#eventToContextsMap.get(eventName).keys())\n .filter((_contextId) => \n // Events without context are already in the result.\n _contextId !== null &&\n // Events from deleted contexts should not be sent.\n this.#browsingContextStorage.hasContext(_contextId))\n .map((_contextId) => this.#getBufferedEvents(eventName, _contextId, channel))\n .forEach((events) => result.push(...events));\n }\n return result.sort((e1, e2) => e1.id - e2.id);\n }\n}\nexports.EventManager = EventManager;\n//# sourceMappingURL=EventManager.js.map","\"use strict\";\n/**\n * Copyright 2021 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BidiServer = void 0;\nconst EventEmitter_js_1 = require(\"../utils/EventEmitter.js\");\nconst log_js_1 = require(\"../utils/log.js\");\nconst ProcessingQueue_js_1 = require(\"../utils/ProcessingQueue.js\");\nconst CommandProcessor_js_1 = require(\"./CommandProcessor.js\");\nconst BrowsingContextStorage_js_1 = require(\"./domains/context/BrowsingContextStorage.js\");\nconst RealmStorage_js_1 = require(\"./domains/script/RealmStorage.js\");\nconst EventManager_js_1 = require(\"./domains/session/EventManager.js\");\nclass BidiServer extends EventEmitter_js_1.EventEmitter {\n #messageQueue;\n #transport;\n #commandProcessor;\n #eventManager;\n #browsingContextStorage = new BrowsingContextStorage_js_1.BrowsingContextStorage();\n #logger;\n #handleIncomingMessage = (message) => {\n void this.#commandProcessor.processCommand(message).catch((error) => {\n this.#logger?.(log_js_1.LogType.debugError, error);\n });\n };\n #processOutgoingMessage = async (messageEntry) => {\n const message = messageEntry.message;\n if (messageEntry.channel !== null) {\n message['channel'] = messageEntry.channel;\n }\n await this.#transport.sendMessage(message);\n };\n constructor(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, defaultUserContextId, options, parser, logger) {\n super();\n this.#logger = logger;\n this.#messageQueue = new ProcessingQueue_js_1.ProcessingQueue(this.#processOutgoingMessage, this.#logger);\n this.#transport = bidiTransport;\n this.#transport.setOnMessage(this.#handleIncomingMessage);\n this.#eventManager = new EventManager_js_1.EventManager(this.#browsingContextStorage);\n this.#commandProcessor = new CommandProcessor_js_1.CommandProcessor(cdpConnection, browserCdpClient, this.#eventManager, selfTargetId, defaultUserContextId, this.#browsingContextStorage, new RealmStorage_js_1.RealmStorage(), options?.acceptInsecureCerts ?? false, options?.sharedIdWithFrame ?? false, parser, this.#logger);\n this.#eventManager.on(\"event\" /* EventManagerEvents.Event */, ({ message, event }) => {\n this.emitOutgoingMessage(message, event);\n });\n this.#commandProcessor.on(\"response\" /* CommandProcessorEvents.Response */, ({ message, event }) => {\n this.emitOutgoingMessage(message, event);\n });\n }\n /**\n * Creates and starts BiDi Mapper instance.\n */\n static async createAndStart(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, options, parser, logger) {\n // The default context is not exposed in Target.getBrowserContexts but can\n // be observed via Target.getTargets. To determine the default browser\n // context, we check which one is mentioned in Target.getTargets and not in\n // Target.getBrowserContexts.\n const [{ browserContextIds }, { targetInfos }] = await Promise.all([\n browserCdpClient.sendCommand('Target.getBrowserContexts'),\n browserCdpClient.sendCommand('Target.getTargets'),\n ]);\n let defaultUserContextId = 'default';\n for (const info of targetInfos) {\n if (info.browserContextId &&\n !browserContextIds.includes(info.browserContextId)) {\n defaultUserContextId = info.browserContextId;\n break;\n }\n }\n const server = new BidiServer(bidiTransport, cdpConnection, browserCdpClient, selfTargetId, defaultUserContextId, options, parser, logger);\n // Needed to get events about new targets.\n await browserCdpClient.sendCommand('Target.setDiscoverTargets', {\n discover: true,\n });\n // Needed to automatically attach to new targets.\n await browserCdpClient.sendCommand('Target.setAutoAttach', {\n autoAttach: true,\n waitForDebuggerOnStart: true,\n flatten: true,\n });\n await server.#topLevelContextsLoaded();\n return server;\n }\n /**\n * Sends BiDi message.\n */\n emitOutgoingMessage(messageEntry, event) {\n this.#messageQueue.add(messageEntry, event);\n }\n close() {\n this.#transport.close();\n }\n async #topLevelContextsLoaded() {\n await Promise.all(this.#browsingContextStorage\n .getTopLevelContexts()\n .map((c) => c.lifecycleLoaded()));\n }\n}\nexports.BidiServer = BidiServer;\n//# sourceMappingURL=BidiServer.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.OutgoingMessage = exports.EventEmitter = exports.BidiServer = void 0;\n/**\n * @fileoverview The entry point to the BiDi Mapper namespace.\n * Other modules should only access exports defined in this file.\n * XXX: Add ESlint rule for this (https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-restricted-paths.md)\n */\nvar BidiServer_js_1 = require(\"./BidiServer.js\");\nObject.defineProperty(exports, \"BidiServer\", { enumerable: true, get: function () { return BidiServer_js_1.BidiServer; } });\nvar EventEmitter_js_1 = require(\"../utils/EventEmitter.js\");\nObject.defineProperty(exports, \"EventEmitter\", { enumerable: true, get: function () { return EventEmitter_js_1.EventEmitter; } });\nvar OutgoingMessage_js_1 = require(\"./OutgoingMessage.js\");\nObject.defineProperty(exports, \"OutgoingMessage\", { enumerable: true, get: function () { return OutgoingMessage_js_1.OutgoingMessage; } });\n//# sourceMappingURL=BidiMapper.js.map","\"use strict\";\n/**\n * Copyright 2021 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MapperCdpClient = exports.CloseError = void 0;\nconst EventEmitter_js_1 = require(\"../utils/EventEmitter.js\");\n/** A error that will be thrown if/when the connection is closed. */\nclass CloseError extends Error {\n}\nexports.CloseError = CloseError;\n/** Represents a high-level CDP connection to the browser. */\nclass MapperCdpClient extends EventEmitter_js_1.EventEmitter {\n #cdpConnection;\n #sessionId;\n constructor(cdpConnection, sessionId) {\n super();\n this.#cdpConnection = cdpConnection;\n this.#sessionId = sessionId;\n }\n get sessionId() {\n return this.#sessionId;\n }\n sendCommand(method, ...params) {\n return this.#cdpConnection.sendCommand(method, params[0], this.#sessionId);\n }\n isCloseError(error) {\n return error instanceof CloseError;\n }\n}\nexports.MapperCdpClient = MapperCdpClient;\n//# sourceMappingURL=CdpClient.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MapperCdpConnection = void 0;\nconst log_js_1 = require(\"../utils/log.js\");\nconst CdpClient_js_1 = require(\"./CdpClient.js\");\n/**\n * Represents a high-level CDP connection to the browser backend.\n *\n * Manages all CdpClients (each backed by a Session ID) instance for each active\n * CDP session.\n */\nclass MapperCdpConnection {\n static LOGGER_PREFIX_RECV = `${log_js_1.LogType.cdp}:RECV ◂`;\n static LOGGER_PREFIX_SEND = `${log_js_1.LogType.cdp}:SEND ▸`;\n #mainBrowserCdpClient;\n #transport;\n /** Map from session ID to CdpClient.\n * `undefined` points to the main browser session. */\n #sessionCdpClients = new Map();\n #commandCallbacks = new Map();\n #logger;\n #nextId = 0;\n constructor(transport, logger) {\n this.#transport = transport;\n this.#logger = logger;\n this.#transport.setOnMessage(this.#onMessage);\n // Create default Browser CDP Session.\n this.#mainBrowserCdpClient = this.#createCdpClient(undefined);\n }\n /** Closes the connection to the browser. */\n close() {\n this.#transport.close();\n for (const [, { reject, error }] of this.#commandCallbacks) {\n reject(error);\n }\n this.#commandCallbacks.clear();\n this.#sessionCdpClients.clear();\n }\n async createBrowserSession() {\n const { sessionId } = await this.#mainBrowserCdpClient.sendCommand('Target.attachToBrowserTarget');\n return this.#createCdpClient(sessionId);\n }\n /**\n * Gets a CdpClient instance attached to the given session ID,\n * or null if the session is not attached.\n */\n getCdpClient(sessionId) {\n const cdpClient = this.#sessionCdpClients.get(sessionId);\n if (!cdpClient) {\n throw new Error(`Unknown CDP session ID: ${sessionId}`);\n }\n return cdpClient;\n }\n sendCommand(method, params, sessionId) {\n return new Promise((resolve, reject) => {\n const id = this.#nextId++;\n this.#commandCallbacks.set(id, {\n resolve,\n reject,\n error: new CdpClient_js_1.CloseError(`${method} ${JSON.stringify(params)} ${sessionId ?? ''} call rejected because the connection has been closed.`),\n });\n const cdpMessage = { id, method, params };\n if (sessionId) {\n cdpMessage.sessionId = sessionId;\n }\n void this.#transport\n .sendMessage(JSON.stringify(cdpMessage))\n ?.catch((error) => {\n this.#logger?.(log_js_1.LogType.debugError, error);\n this.#transport.close();\n });\n this.#logger?.(MapperCdpConnection.LOGGER_PREFIX_SEND, cdpMessage);\n });\n }\n #onMessage = (json) => {\n const message = JSON.parse(json);\n this.#logger?.(MapperCdpConnection.LOGGER_PREFIX_RECV, message);\n // Update client map if a session is attached\n // Listen for these events on every session.\n if (message.method === 'Target.attachedToTarget') {\n const { sessionId } = message.params;\n this.#createCdpClient(sessionId);\n }\n if (message.id !== undefined) {\n // Handle command response.\n const callbacks = this.#commandCallbacks.get(message.id);\n this.#commandCallbacks.delete(message.id);\n if (callbacks) {\n if (message.result) {\n callbacks.resolve(message.result);\n }\n else if (message.error) {\n callbacks.reject(message.error);\n }\n }\n }\n else if (message.method) {\n const client = this.#sessionCdpClients.get(message.sessionId ?? undefined);\n client?.emit(message.method, message.params || {});\n // Update client map if a session is detached\n // But emit on that session\n if (message.method === 'Target.detachedFromTarget') {\n const { sessionId } = message.params;\n const client = this.#sessionCdpClients.get(sessionId);\n if (client) {\n this.#sessionCdpClients.delete(sessionId);\n client.removeAllListeners();\n }\n }\n }\n };\n /**\n * Creates a new CdpClient instance for the given session ID.\n * @param sessionId either a string, or undefined for the main browser session.\n * The main browser session is used only to create new browser sessions.\n * @private\n */\n #createCdpClient(sessionId) {\n const cdpClient = new CdpClient_js_1.MapperCdpClient(this, sessionId);\n this.#sessionCdpClients.set(sessionId, cdpClient);\n return cdpClient;\n }\n}\nexports.MapperCdpConnection = MapperCdpConnection;\n//# sourceMappingURL=CdpConnection.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getParsedType = exports.ZodParsedType = exports.objectUtil = exports.util = void 0;\nvar util;\n(function (util) {\n util.assertEqual = (val) => val;\n function assertIs(_arg) { }\n util.assertIs = assertIs;\n function assertNever(_x) {\n throw new Error();\n }\n util.assertNever = assertNever;\n util.arrayToEnum = (items) => {\n const obj = {};\n for (const item of items) {\n obj[item] = item;\n }\n return obj;\n };\n util.getValidEnumValues = (obj) => {\n const validKeys = util.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== \"number\");\n const filtered = {};\n for (const k of validKeys) {\n filtered[k] = obj[k];\n }\n return util.objectValues(filtered);\n };\n util.objectValues = (obj) => {\n return util.objectKeys(obj).map(function (e) {\n return obj[e];\n });\n };\n util.objectKeys = typeof Object.keys === \"function\" // eslint-disable-line ban/ban\n ? (obj) => Object.keys(obj) // eslint-disable-line ban/ban\n : (object) => {\n const keys = [];\n for (const key in object) {\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n keys.push(key);\n }\n }\n return keys;\n };\n util.find = (arr, checker) => {\n for (const item of arr) {\n if (checker(item))\n return item;\n }\n return undefined;\n };\n util.isInteger = typeof Number.isInteger === \"function\"\n ? (val) => Number.isInteger(val) // eslint-disable-line ban/ban\n : (val) => typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n function joinValues(array, separator = \" | \") {\n return array\n .map((val) => (typeof val === \"string\" ? `'${val}'` : val))\n .join(separator);\n }\n util.joinValues = joinValues;\n util.jsonStringifyReplacer = (_, value) => {\n if (typeof value === \"bigint\") {\n return value.toString();\n }\n return value;\n };\n})(util = exports.util || (exports.util = {}));\nvar objectUtil;\n(function (objectUtil) {\n objectUtil.mergeShapes = (first, second) => {\n return {\n ...first,\n ...second, // second overwrites first\n };\n };\n})(objectUtil = exports.objectUtil || (exports.objectUtil = {}));\nexports.ZodParsedType = util.arrayToEnum([\n \"string\",\n \"nan\",\n \"number\",\n \"integer\",\n \"float\",\n \"boolean\",\n \"date\",\n \"bigint\",\n \"symbol\",\n \"function\",\n \"undefined\",\n \"null\",\n \"array\",\n \"object\",\n \"unknown\",\n \"promise\",\n \"void\",\n \"never\",\n \"map\",\n \"set\",\n]);\nconst getParsedType = (data) => {\n const t = typeof data;\n switch (t) {\n case \"undefined\":\n return exports.ZodParsedType.undefined;\n case \"string\":\n return exports.ZodParsedType.string;\n case \"number\":\n return isNaN(data) ? exports.ZodParsedType.nan : exports.ZodParsedType.number;\n case \"boolean\":\n return exports.ZodParsedType.boolean;\n case \"function\":\n return exports.ZodParsedType.function;\n case \"bigint\":\n return exports.ZodParsedType.bigint;\n case \"symbol\":\n return exports.ZodParsedType.symbol;\n case \"object\":\n if (Array.isArray(data)) {\n return exports.ZodParsedType.array;\n }\n if (data === null) {\n return exports.ZodParsedType.null;\n }\n if (data.then &&\n typeof data.then === \"function\" &&\n data.catch &&\n typeof data.catch === \"function\") {\n return exports.ZodParsedType.promise;\n }\n if (typeof Map !== \"undefined\" && data instanceof Map) {\n return exports.ZodParsedType.map;\n }\n if (typeof Set !== \"undefined\" && data instanceof Set) {\n return exports.ZodParsedType.set;\n }\n if (typeof Date !== \"undefined\" && data instanceof Date) {\n return exports.ZodParsedType.date;\n }\n return exports.ZodParsedType.object;\n default:\n return exports.ZodParsedType.unknown;\n }\n};\nexports.getParsedType = getParsedType;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ZodError = exports.quotelessJson = exports.ZodIssueCode = void 0;\nconst util_1 = require(\"./helpers/util\");\nexports.ZodIssueCode = util_1.util.arrayToEnum([\n \"invalid_type\",\n \"invalid_literal\",\n \"custom\",\n \"invalid_union\",\n \"invalid_union_discriminator\",\n \"invalid_enum_value\",\n \"unrecognized_keys\",\n \"invalid_arguments\",\n \"invalid_return_type\",\n \"invalid_date\",\n \"invalid_string\",\n \"too_small\",\n \"too_big\",\n \"invalid_intersection_types\",\n \"not_multiple_of\",\n \"not_finite\",\n]);\nconst quotelessJson = (obj) => {\n const json = JSON.stringify(obj, null, 2);\n return json.replace(/\"([^\"]+)\":/g, \"$1:\");\n};\nexports.quotelessJson = quotelessJson;\nclass ZodError extends Error {\n constructor(issues) {\n super();\n this.issues = [];\n this.addIssue = (sub) => {\n this.issues = [...this.issues, sub];\n };\n this.addIssues = (subs = []) => {\n this.issues = [...this.issues, ...subs];\n };\n const actualProto = new.target.prototype;\n if (Object.setPrototypeOf) {\n // eslint-disable-next-line ban/ban\n Object.setPrototypeOf(this, actualProto);\n }\n else {\n this.__proto__ = actualProto;\n }\n this.name = \"ZodError\";\n this.issues = issues;\n }\n get errors() {\n return this.issues;\n }\n format(_mapper) {\n const mapper = _mapper ||\n function (issue) {\n return issue.message;\n };\n const fieldErrors = { _errors: [] };\n const processError = (error) => {\n for (const issue of error.issues) {\n if (issue.code === \"invalid_union\") {\n issue.unionErrors.map(processError);\n }\n else if (issue.code === \"invalid_return_type\") {\n processError(issue.returnTypeError);\n }\n else if (issue.code === \"invalid_arguments\") {\n processError(issue.argumentsError);\n }\n else if (issue.path.length === 0) {\n fieldErrors._errors.push(mapper(issue));\n }\n else {\n let curr = fieldErrors;\n let i = 0;\n while (i < issue.path.length) {\n const el = issue.path[i];\n const terminal = i === issue.path.length - 1;\n if (!terminal) {\n curr[el] = curr[el] || { _errors: [] };\n // if (typeof el === \"string\") {\n // curr[el] = curr[el] || { _errors: [] };\n // } else if (typeof el === \"number\") {\n // const errorArray: any = [];\n // errorArray._errors = [];\n // curr[el] = curr[el] || errorArray;\n // }\n }\n else {\n curr[el] = curr[el] || { _errors: [] };\n curr[el]._errors.push(mapper(issue));\n }\n curr = curr[el];\n i++;\n }\n }\n }\n };\n processError(this);\n return fieldErrors;\n }\n toString() {\n return this.message;\n }\n get message() {\n return JSON.stringify(this.issues, util_1.util.jsonStringifyReplacer, 2);\n }\n get isEmpty() {\n return this.issues.length === 0;\n }\n flatten(mapper = (issue) => issue.message) {\n const fieldErrors = {};\n const formErrors = [];\n for (const sub of this.issues) {\n if (sub.path.length > 0) {\n fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];\n fieldErrors[sub.path[0]].push(mapper(sub));\n }\n else {\n formErrors.push(mapper(sub));\n }\n }\n return { formErrors, fieldErrors };\n }\n get formErrors() {\n return this.flatten();\n }\n}\nexports.ZodError = ZodError;\nZodError.create = (issues) => {\n const error = new ZodError(issues);\n return error;\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst util_1 = require(\"../helpers/util\");\nconst ZodError_1 = require(\"../ZodError\");\nconst errorMap = (issue, _ctx) => {\n let message;\n switch (issue.code) {\n case ZodError_1.ZodIssueCode.invalid_type:\n if (issue.received === util_1.ZodParsedType.undefined) {\n message = \"Required\";\n }\n else {\n message = `Expected ${issue.expected}, received ${issue.received}`;\n }\n break;\n case ZodError_1.ZodIssueCode.invalid_literal:\n message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util_1.util.jsonStringifyReplacer)}`;\n break;\n case ZodError_1.ZodIssueCode.unrecognized_keys:\n message = `Unrecognized key(s) in object: ${util_1.util.joinValues(issue.keys, \", \")}`;\n break;\n case ZodError_1.ZodIssueCode.invalid_union:\n message = `Invalid input`;\n break;\n case ZodError_1.ZodIssueCode.invalid_union_discriminator:\n message = `Invalid discriminator value. Expected ${util_1.util.joinValues(issue.options)}`;\n break;\n case ZodError_1.ZodIssueCode.invalid_enum_value:\n message = `Invalid enum value. Expected ${util_1.util.joinValues(issue.options)}, received '${issue.received}'`;\n break;\n case ZodError_1.ZodIssueCode.invalid_arguments:\n message = `Invalid function arguments`;\n break;\n case ZodError_1.ZodIssueCode.invalid_return_type:\n message = `Invalid function return type`;\n break;\n case ZodError_1.ZodIssueCode.invalid_date:\n message = `Invalid date`;\n break;\n case ZodError_1.ZodIssueCode.invalid_string:\n if (typeof issue.validation === \"object\") {\n if (\"includes\" in issue.validation) {\n message = `Invalid input: must include \"${issue.validation.includes}\"`;\n if (typeof issue.validation.position === \"number\") {\n message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;\n }\n }\n else if (\"startsWith\" in issue.validation) {\n message = `Invalid input: must start with \"${issue.validation.startsWith}\"`;\n }\n else if (\"endsWith\" in issue.validation) {\n message = `Invalid input: must end with \"${issue.validation.endsWith}\"`;\n }\n else {\n util_1.util.assertNever(issue.validation);\n }\n }\n else if (issue.validation !== \"regex\") {\n message = `Invalid ${issue.validation}`;\n }\n else {\n message = \"Invalid\";\n }\n break;\n case ZodError_1.ZodIssueCode.too_small:\n if (issue.type === \"array\")\n message = `Array must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;\n else if (issue.type === \"string\")\n message = `String must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;\n else if (issue.type === \"number\")\n message = `Number must be ${issue.exact\n ? `exactly equal to `\n : issue.inclusive\n ? `greater than or equal to `\n : `greater than `}${issue.minimum}`;\n else if (issue.type === \"date\")\n message = `Date must be ${issue.exact\n ? `exactly equal to `\n : issue.inclusive\n ? `greater than or equal to `\n : `greater than `}${new Date(Number(issue.minimum))}`;\n else\n message = \"Invalid input\";\n break;\n case ZodError_1.ZodIssueCode.too_big:\n if (issue.type === \"array\")\n message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;\n else if (issue.type === \"string\")\n message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;\n else if (issue.type === \"number\")\n message = `Number must be ${issue.exact\n ? `exactly`\n : issue.inclusive\n ? `less than or equal to`\n : `less than`} ${issue.maximum}`;\n else if (issue.type === \"bigint\")\n message = `BigInt must be ${issue.exact\n ? `exactly`\n : issue.inclusive\n ? `less than or equal to`\n : `less than`} ${issue.maximum}`;\n else if (issue.type === \"date\")\n message = `Date must be ${issue.exact\n ? `exactly`\n : issue.inclusive\n ? `smaller than or equal to`\n : `smaller than`} ${new Date(Number(issue.maximum))}`;\n else\n message = \"Invalid input\";\n break;\n case ZodError_1.ZodIssueCode.custom:\n message = `Invalid input`;\n break;\n case ZodError_1.ZodIssueCode.invalid_intersection_types:\n message = `Intersection results could not be merged`;\n break;\n case ZodError_1.ZodIssueCode.not_multiple_of:\n message = `Number must be a multiple of ${issue.multipleOf}`;\n break;\n case ZodError_1.ZodIssueCode.not_finite:\n message = \"Number must be finite\";\n break;\n default:\n message = _ctx.defaultError;\n util_1.util.assertNever(issue);\n }\n return { message };\n};\nexports.default = errorMap;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getErrorMap = exports.setErrorMap = exports.defaultErrorMap = void 0;\nconst en_1 = __importDefault(require(\"./locales/en\"));\nexports.defaultErrorMap = en_1.default;\nlet overrideErrorMap = en_1.default;\nfunction setErrorMap(map) {\n overrideErrorMap = map;\n}\nexports.setErrorMap = setErrorMap;\nfunction getErrorMap() {\n return overrideErrorMap;\n}\nexports.getErrorMap = getErrorMap;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isAsync = exports.isValid = exports.isDirty = exports.isAborted = exports.OK = exports.DIRTY = exports.INVALID = exports.ParseStatus = exports.addIssueToContext = exports.EMPTY_PATH = exports.makeIssue = void 0;\nconst errors_1 = require(\"../errors\");\nconst en_1 = __importDefault(require(\"../locales/en\"));\nconst makeIssue = (params) => {\n const { data, path, errorMaps, issueData } = params;\n const fullPath = [...path, ...(issueData.path || [])];\n const fullIssue = {\n ...issueData,\n path: fullPath,\n };\n let errorMessage = \"\";\n const maps = errorMaps\n .filter((m) => !!m)\n .slice()\n .reverse();\n for (const map of maps) {\n errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;\n }\n return {\n ...issueData,\n path: fullPath,\n message: issueData.message || errorMessage,\n };\n};\nexports.makeIssue = makeIssue;\nexports.EMPTY_PATH = [];\nfunction addIssueToContext(ctx, issueData) {\n const issue = (0, exports.makeIssue)({\n issueData: issueData,\n data: ctx.data,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n (0, errors_1.getErrorMap)(),\n en_1.default, // then global default map\n ].filter((x) => !!x),\n });\n ctx.common.issues.push(issue);\n}\nexports.addIssueToContext = addIssueToContext;\nclass ParseStatus {\n constructor() {\n this.value = \"valid\";\n }\n dirty() {\n if (this.value === \"valid\")\n this.value = \"dirty\";\n }\n abort() {\n if (this.value !== \"aborted\")\n this.value = \"aborted\";\n }\n static mergeArray(status, results) {\n const arrayValue = [];\n for (const s of results) {\n if (s.status === \"aborted\")\n return exports.INVALID;\n if (s.status === \"dirty\")\n status.dirty();\n arrayValue.push(s.value);\n }\n return { status: status.value, value: arrayValue };\n }\n static async mergeObjectAsync(status, pairs) {\n const syncPairs = [];\n for (const pair of pairs) {\n syncPairs.push({\n key: await pair.key,\n value: await pair.value,\n });\n }\n return ParseStatus.mergeObjectSync(status, syncPairs);\n }\n static mergeObjectSync(status, pairs) {\n const finalObject = {};\n for (const pair of pairs) {\n const { key, value } = pair;\n if (key.status === \"aborted\")\n return exports.INVALID;\n if (value.status === \"aborted\")\n return exports.INVALID;\n if (key.status === \"dirty\")\n status.dirty();\n if (value.status === \"dirty\")\n status.dirty();\n if (key.value !== \"__proto__\" &&\n (typeof value.value !== \"undefined\" || pair.alwaysSet)) {\n finalObject[key.value] = value.value;\n }\n }\n return { status: status.value, value: finalObject };\n }\n}\nexports.ParseStatus = ParseStatus;\nexports.INVALID = Object.freeze({\n status: \"aborted\",\n});\nconst DIRTY = (value) => ({ status: \"dirty\", value });\nexports.DIRTY = DIRTY;\nconst OK = (value) => ({ status: \"valid\", value });\nexports.OK = OK;\nconst isAborted = (x) => x.status === \"aborted\";\nexports.isAborted = isAborted;\nconst isDirty = (x) => x.status === \"dirty\";\nexports.isDirty = isDirty;\nconst isValid = (x) => x.status === \"valid\";\nexports.isValid = isValid;\nconst isAsync = (x) => typeof Promise !== \"undefined\" && x instanceof Promise;\nexports.isAsync = isAsync;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.errorUtil = void 0;\nvar errorUtil;\n(function (errorUtil) {\n errorUtil.errToObj = (message) => typeof message === \"string\" ? { message } : message || {};\n errorUtil.toString = (message) => typeof message === \"string\" ? message : message === null || message === void 0 ? void 0 : message.message;\n})(errorUtil = exports.errorUtil || (exports.errorUtil = {}));\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.date = exports.boolean = exports.bigint = exports.array = exports.any = exports.coerce = exports.ZodFirstPartyTypeKind = exports.late = exports.ZodSchema = exports.Schema = exports.custom = exports.ZodReadonly = exports.ZodPipeline = exports.ZodBranded = exports.BRAND = exports.ZodNaN = exports.ZodCatch = exports.ZodDefault = exports.ZodNullable = exports.ZodOptional = exports.ZodTransformer = exports.ZodEffects = exports.ZodPromise = exports.ZodNativeEnum = exports.ZodEnum = exports.ZodLiteral = exports.ZodLazy = exports.ZodFunction = exports.ZodSet = exports.ZodMap = exports.ZodRecord = exports.ZodTuple = exports.ZodIntersection = exports.ZodDiscriminatedUnion = exports.ZodUnion = exports.ZodObject = exports.ZodArray = exports.ZodVoid = exports.ZodNever = exports.ZodUnknown = exports.ZodAny = exports.ZodNull = exports.ZodUndefined = exports.ZodSymbol = exports.ZodDate = exports.ZodBoolean = exports.ZodBigInt = exports.ZodNumber = exports.ZodString = exports.ZodType = void 0;\nexports.NEVER = exports.void = exports.unknown = exports.union = exports.undefined = exports.tuple = exports.transformer = exports.symbol = exports.string = exports.strictObject = exports.set = exports.record = exports.promise = exports.preprocess = exports.pipeline = exports.ostring = exports.optional = exports.onumber = exports.oboolean = exports.object = exports.number = exports.nullable = exports.null = exports.never = exports.nativeEnum = exports.nan = exports.map = exports.literal = exports.lazy = exports.intersection = exports.instanceof = exports.function = exports.enum = exports.effect = exports.discriminatedUnion = void 0;\nconst errors_1 = require(\"./errors\");\nconst errorUtil_1 = require(\"./helpers/errorUtil\");\nconst parseUtil_1 = require(\"./helpers/parseUtil\");\nconst util_1 = require(\"./helpers/util\");\nconst ZodError_1 = require(\"./ZodError\");\nclass ParseInputLazyPath {\n constructor(parent, value, path, key) {\n this._cachedPath = [];\n this.parent = parent;\n this.data = value;\n this._path = path;\n this._key = key;\n }\n get path() {\n if (!this._cachedPath.length) {\n if (this._key instanceof Array) {\n this._cachedPath.push(...this._path, ...this._key);\n }\n else {\n this._cachedPath.push(...this._path, this._key);\n }\n }\n return this._cachedPath;\n }\n}\nconst handleResult = (ctx, result) => {\n if ((0, parseUtil_1.isValid)(result)) {\n return { success: true, data: result.value };\n }\n else {\n if (!ctx.common.issues.length) {\n throw new Error(\"Validation failed but no issues detected.\");\n }\n return {\n success: false,\n get error() {\n if (this._error)\n return this._error;\n const error = new ZodError_1.ZodError(ctx.common.issues);\n this._error = error;\n return this._error;\n },\n };\n }\n};\nfunction processCreateParams(params) {\n if (!params)\n return {};\n const { errorMap, invalid_type_error, required_error, description } = params;\n if (errorMap && (invalid_type_error || required_error)) {\n throw new Error(`Can't use \"invalid_type_error\" or \"required_error\" in conjunction with custom error map.`);\n }\n if (errorMap)\n return { errorMap: errorMap, description };\n const customMap = (iss, ctx) => {\n if (iss.code !== \"invalid_type\")\n return { message: ctx.defaultError };\n if (typeof ctx.data === \"undefined\") {\n return { message: required_error !== null && required_error !== void 0 ? required_error : ctx.defaultError };\n }\n return { message: invalid_type_error !== null && invalid_type_error !== void 0 ? invalid_type_error : ctx.defaultError };\n };\n return { errorMap: customMap, description };\n}\nclass ZodType {\n constructor(def) {\n /** Alias of safeParseAsync */\n this.spa = this.safeParseAsync;\n this._def = def;\n this.parse = this.parse.bind(this);\n this.safeParse = this.safeParse.bind(this);\n this.parseAsync = this.parseAsync.bind(this);\n this.safeParseAsync = this.safeParseAsync.bind(this);\n this.spa = this.spa.bind(this);\n this.refine = this.refine.bind(this);\n this.refinement = this.refinement.bind(this);\n this.superRefine = this.superRefine.bind(this);\n this.optional = this.optional.bind(this);\n this.nullable = this.nullable.bind(this);\n this.nullish = this.nullish.bind(this);\n this.array = this.array.bind(this);\n this.promise = this.promise.bind(this);\n this.or = this.or.bind(this);\n this.and = this.and.bind(this);\n this.transform = this.transform.bind(this);\n this.brand = this.brand.bind(this);\n this.default = this.default.bind(this);\n this.catch = this.catch.bind(this);\n this.describe = this.describe.bind(this);\n this.pipe = this.pipe.bind(this);\n this.readonly = this.readonly.bind(this);\n this.isNullable = this.isNullable.bind(this);\n this.isOptional = this.isOptional.bind(this);\n }\n get description() {\n return this._def.description;\n }\n _getType(input) {\n return (0, util_1.getParsedType)(input.data);\n }\n _getOrReturnCtx(input, ctx) {\n return (ctx || {\n common: input.parent.common,\n data: input.data,\n parsedType: (0, util_1.getParsedType)(input.data),\n schemaErrorMap: this._def.errorMap,\n path: input.path,\n parent: input.parent,\n });\n }\n _processInputParams(input) {\n return {\n status: new parseUtil_1.ParseStatus(),\n ctx: {\n common: input.parent.common,\n data: input.data,\n parsedType: (0, util_1.getParsedType)(input.data),\n schemaErrorMap: this._def.errorMap,\n path: input.path,\n parent: input.parent,\n },\n };\n }\n _parseSync(input) {\n const result = this._parse(input);\n if ((0, parseUtil_1.isAsync)(result)) {\n throw new Error(\"Synchronous parse encountered promise.\");\n }\n return result;\n }\n _parseAsync(input) {\n const result = this._parse(input);\n return Promise.resolve(result);\n }\n parse(data, params) {\n const result = this.safeParse(data, params);\n if (result.success)\n return result.data;\n throw result.error;\n }\n safeParse(data, params) {\n var _a;\n const ctx = {\n common: {\n issues: [],\n async: (_a = params === null || params === void 0 ? void 0 : params.async) !== null && _a !== void 0 ? _a : false,\n contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,\n },\n path: (params === null || params === void 0 ? void 0 : params.path) || [],\n schemaErrorMap: this._def.errorMap,\n parent: null,\n data,\n parsedType: (0, util_1.getParsedType)(data),\n };\n const result = this._parseSync({ data, path: ctx.path, parent: ctx });\n return handleResult(ctx, result);\n }\n async parseAsync(data, params) {\n const result = await this.safeParseAsync(data, params);\n if (result.success)\n return result.data;\n throw result.error;\n }\n async safeParseAsync(data, params) {\n const ctx = {\n common: {\n issues: [],\n contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,\n async: true,\n },\n path: (params === null || params === void 0 ? void 0 : params.path) || [],\n schemaErrorMap: this._def.errorMap,\n parent: null,\n data,\n parsedType: (0, util_1.getParsedType)(data),\n };\n const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });\n const result = await ((0, parseUtil_1.isAsync)(maybeAsyncResult)\n ? maybeAsyncResult\n : Promise.resolve(maybeAsyncResult));\n return handleResult(ctx, result);\n }\n refine(check, message) {\n const getIssueProperties = (val) => {\n if (typeof message === \"string\" || typeof message === \"undefined\") {\n return { message };\n }\n else if (typeof message === \"function\") {\n return message(val);\n }\n else {\n return message;\n }\n };\n return this._refinement((val, ctx) => {\n const result = check(val);\n const setError = () => ctx.addIssue({\n code: ZodError_1.ZodIssueCode.custom,\n ...getIssueProperties(val),\n });\n if (typeof Promise !== \"undefined\" && result instanceof Promise) {\n return result.then((data) => {\n if (!data) {\n setError();\n return false;\n }\n else {\n return true;\n }\n });\n }\n if (!result) {\n setError();\n return false;\n }\n else {\n return true;\n }\n });\n }\n refinement(check, refinementData) {\n return this._refinement((val, ctx) => {\n if (!check(val)) {\n ctx.addIssue(typeof refinementData === \"function\"\n ? refinementData(val, ctx)\n : refinementData);\n return false;\n }\n else {\n return true;\n }\n });\n }\n _refinement(refinement) {\n return new ZodEffects({\n schema: this,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect: { type: \"refinement\", refinement },\n });\n }\n superRefine(refinement) {\n return this._refinement(refinement);\n }\n optional() {\n return ZodOptional.create(this, this._def);\n }\n nullable() {\n return ZodNullable.create(this, this._def);\n }\n nullish() {\n return this.nullable().optional();\n }\n array() {\n return ZodArray.create(this, this._def);\n }\n promise() {\n return ZodPromise.create(this, this._def);\n }\n or(option) {\n return ZodUnion.create([this, option], this._def);\n }\n and(incoming) {\n return ZodIntersection.create(this, incoming, this._def);\n }\n transform(transform) {\n return new ZodEffects({\n ...processCreateParams(this._def),\n schema: this,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect: { type: \"transform\", transform },\n });\n }\n default(def) {\n const defaultValueFunc = typeof def === \"function\" ? def : () => def;\n return new ZodDefault({\n ...processCreateParams(this._def),\n innerType: this,\n defaultValue: defaultValueFunc,\n typeName: ZodFirstPartyTypeKind.ZodDefault,\n });\n }\n brand() {\n return new ZodBranded({\n typeName: ZodFirstPartyTypeKind.ZodBranded,\n type: this,\n ...processCreateParams(this._def),\n });\n }\n catch(def) {\n const catchValueFunc = typeof def === \"function\" ? def : () => def;\n return new ZodCatch({\n ...processCreateParams(this._def),\n innerType: this,\n catchValue: catchValueFunc,\n typeName: ZodFirstPartyTypeKind.ZodCatch,\n });\n }\n describe(description) {\n const This = this.constructor;\n return new This({\n ...this._def,\n description,\n });\n }\n pipe(target) {\n return ZodPipeline.create(this, target);\n }\n readonly() {\n return ZodReadonly.create(this);\n }\n isOptional() {\n return this.safeParse(undefined).success;\n }\n isNullable() {\n return this.safeParse(null).success;\n }\n}\nexports.ZodType = ZodType;\nexports.Schema = ZodType;\nexports.ZodSchema = ZodType;\nconst cuidRegex = /^c[^\\s-]{8,}$/i;\nconst cuid2Regex = /^[a-z][a-z0-9]*$/;\nconst ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/;\n// const uuidRegex =\n// /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;\nconst uuidRegex = /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/i;\n// from https://stackoverflow.com/a/46181/1550155\n// old version: too slow, didn't support unicode\n// const emailRegex = /^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))$/i;\n//old email regex\n// const emailRegex = /^(([^<>()[\\].,;:\\s@\"]+(\\.[^<>()[\\].,;:\\s@\"]+)*)|(\".+\"))@((?!-)([^<>()[\\].,;:\\s@\"]+\\.)+[^<>()[\\].,;:\\s@\"]{1,})[^-<>()[\\].,;:\\s@\"]$/i;\n// eslint-disable-next-line\n// const emailRegex =\n// /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\])|(\\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\\.[A-Za-z]{2,})+))$/;\n// const emailRegex =\n// /^[a-zA-Z0-9\\.\\!\\#\\$\\%\\&\\'\\*\\+\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~\\-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n// const emailRegex =\n// /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])$/i;\nconst emailRegex = /^(?!\\.)(?!.*\\.\\.)([A-Z0-9_+-\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\-]*\\.)+[A-Z]{2,}$/i;\n// const emailRegex =\n// /^[a-z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-z0-9-]+(?:\\.[a-z0-9\\-]+)*$/i;\n// from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression\nconst _emojiRegex = `^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$`;\nlet emojiRegex;\nconst ipv4Regex = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/;\nconst ipv6Regex = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;\n// Adapted from https://stackoverflow.com/a/3143231\nconst datetimeRegex = (args) => {\n if (args.precision) {\n if (args.offset) {\n return new RegExp(`^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}\\\\.\\\\d{${args.precision}}(([+-]\\\\d{2}(:?\\\\d{2})?)|Z)$`);\n }\n else {\n return new RegExp(`^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}\\\\.\\\\d{${args.precision}}Z$`);\n }\n }\n else if (args.precision === 0) {\n if (args.offset) {\n return new RegExp(`^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(([+-]\\\\d{2}(:?\\\\d{2})?)|Z)$`);\n }\n else {\n return new RegExp(`^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}Z$`);\n }\n }\n else {\n if (args.offset) {\n return new RegExp(`^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(\\\\.\\\\d+)?(([+-]\\\\d{2}(:?\\\\d{2})?)|Z)$`);\n }\n else {\n return new RegExp(`^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(\\\\.\\\\d+)?Z$`);\n }\n }\n};\nfunction isValidIP(ip, version) {\n if ((version === \"v4\" || !version) && ipv4Regex.test(ip)) {\n return true;\n }\n if ((version === \"v6\" || !version) && ipv6Regex.test(ip)) {\n return true;\n }\n return false;\n}\nclass ZodString extends ZodType {\n _parse(input) {\n if (this._def.coerce) {\n input.data = String(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.string) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.string,\n received: ctx.parsedType,\n }\n //\n );\n return parseUtil_1.INVALID;\n }\n const status = new parseUtil_1.ParseStatus();\n let ctx = undefined;\n for (const check of this._def.checks) {\n if (check.kind === \"min\") {\n if (input.data.length < check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n minimum: check.value,\n type: \"string\",\n inclusive: true,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n if (input.data.length > check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n maximum: check.value,\n type: \"string\",\n inclusive: true,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"length\") {\n const tooBig = input.data.length > check.value;\n const tooSmall = input.data.length < check.value;\n if (tooBig || tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n if (tooBig) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n maximum: check.value,\n type: \"string\",\n inclusive: true,\n exact: true,\n message: check.message,\n });\n }\n else if (tooSmall) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n minimum: check.value,\n type: \"string\",\n inclusive: true,\n exact: true,\n message: check.message,\n });\n }\n status.dirty();\n }\n }\n else if (check.kind === \"email\") {\n if (!emailRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"email\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"emoji\") {\n if (!emojiRegex) {\n emojiRegex = new RegExp(_emojiRegex, \"u\");\n }\n if (!emojiRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"emoji\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"uuid\") {\n if (!uuidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"uuid\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"cuid\") {\n if (!cuidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"cuid\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"cuid2\") {\n if (!cuid2Regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"cuid2\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"ulid\") {\n if (!ulidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"ulid\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"url\") {\n try {\n new URL(input.data);\n }\n catch (_a) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"url\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"regex\") {\n check.regex.lastIndex = 0;\n const testResult = check.regex.test(input.data);\n if (!testResult) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"regex\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"trim\") {\n input.data = input.data.trim();\n }\n else if (check.kind === \"includes\") {\n if (!input.data.includes(check.value, check.position)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_string,\n validation: { includes: check.value, position: check.position },\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"toLowerCase\") {\n input.data = input.data.toLowerCase();\n }\n else if (check.kind === \"toUpperCase\") {\n input.data = input.data.toUpperCase();\n }\n else if (check.kind === \"startsWith\") {\n if (!input.data.startsWith(check.value)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_string,\n validation: { startsWith: check.value },\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"endsWith\") {\n if (!input.data.endsWith(check.value)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_string,\n validation: { endsWith: check.value },\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"datetime\") {\n const regex = datetimeRegex(check);\n if (!regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_string,\n validation: \"datetime\",\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"ip\") {\n if (!isValidIP(input.data, check.version)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n validation: \"ip\",\n code: ZodError_1.ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else {\n util_1.util.assertNever(check);\n }\n }\n return { status: status.value, value: input.data };\n }\n _regex(regex, validation, message) {\n return this.refinement((data) => regex.test(data), {\n validation,\n code: ZodError_1.ZodIssueCode.invalid_string,\n ...errorUtil_1.errorUtil.errToObj(message),\n });\n }\n _addCheck(check) {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n email(message) {\n return this._addCheck({ kind: \"email\", ...errorUtil_1.errorUtil.errToObj(message) });\n }\n url(message) {\n return this._addCheck({ kind: \"url\", ...errorUtil_1.errorUtil.errToObj(message) });\n }\n emoji(message) {\n return this._addCheck({ kind: \"emoji\", ...errorUtil_1.errorUtil.errToObj(message) });\n }\n uuid(message) {\n return this._addCheck({ kind: \"uuid\", ...errorUtil_1.errorUtil.errToObj(message) });\n }\n cuid(message) {\n return this._addCheck({ kind: \"cuid\", ...errorUtil_1.errorUtil.errToObj(message) });\n }\n cuid2(message) {\n return this._addCheck({ kind: \"cuid2\", ...errorUtil_1.errorUtil.errToObj(message) });\n }\n ulid(message) {\n return this._addCheck({ kind: \"ulid\", ...errorUtil_1.errorUtil.errToObj(message) });\n }\n ip(options) {\n return this._addCheck({ kind: \"ip\", ...errorUtil_1.errorUtil.errToObj(options) });\n }\n datetime(options) {\n var _a;\n if (typeof options === \"string\") {\n return this._addCheck({\n kind: \"datetime\",\n precision: null,\n offset: false,\n message: options,\n });\n }\n return this._addCheck({\n kind: \"datetime\",\n precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === \"undefined\" ? null : options === null || options === void 0 ? void 0 : options.precision,\n offset: (_a = options === null || options === void 0 ? void 0 : options.offset) !== null && _a !== void 0 ? _a : false,\n ...errorUtil_1.errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),\n });\n }\n regex(regex, message) {\n return this._addCheck({\n kind: \"regex\",\n regex: regex,\n ...errorUtil_1.errorUtil.errToObj(message),\n });\n }\n includes(value, options) {\n return this._addCheck({\n kind: \"includes\",\n value: value,\n position: options === null || options === void 0 ? void 0 : options.position,\n ...errorUtil_1.errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),\n });\n }\n startsWith(value, message) {\n return this._addCheck({\n kind: \"startsWith\",\n value: value,\n ...errorUtil_1.errorUtil.errToObj(message),\n });\n }\n endsWith(value, message) {\n return this._addCheck({\n kind: \"endsWith\",\n value: value,\n ...errorUtil_1.errorUtil.errToObj(message),\n });\n }\n min(minLength, message) {\n return this._addCheck({\n kind: \"min\",\n value: minLength,\n ...errorUtil_1.errorUtil.errToObj(message),\n });\n }\n max(maxLength, message) {\n return this._addCheck({\n kind: \"max\",\n value: maxLength,\n ...errorUtil_1.errorUtil.errToObj(message),\n });\n }\n length(len, message) {\n return this._addCheck({\n kind: \"length\",\n value: len,\n ...errorUtil_1.errorUtil.errToObj(message),\n });\n }\n /**\n * @deprecated Use z.string().min(1) instead.\n * @see {@link ZodString.min}\n */\n nonempty(message) {\n return this.min(1, errorUtil_1.errorUtil.errToObj(message));\n }\n trim() {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, { kind: \"trim\" }],\n });\n }\n toLowerCase() {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, { kind: \"toLowerCase\" }],\n });\n }\n toUpperCase() {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, { kind: \"toUpperCase\" }],\n });\n }\n get isDatetime() {\n return !!this._def.checks.find((ch) => ch.kind === \"datetime\");\n }\n get isEmail() {\n return !!this._def.checks.find((ch) => ch.kind === \"email\");\n }\n get isURL() {\n return !!this._def.checks.find((ch) => ch.kind === \"url\");\n }\n get isEmoji() {\n return !!this._def.checks.find((ch) => ch.kind === \"emoji\");\n }\n get isUUID() {\n return !!this._def.checks.find((ch) => ch.kind === \"uuid\");\n }\n get isCUID() {\n return !!this._def.checks.find((ch) => ch.kind === \"cuid\");\n }\n get isCUID2() {\n return !!this._def.checks.find((ch) => ch.kind === \"cuid2\");\n }\n get isULID() {\n return !!this._def.checks.find((ch) => ch.kind === \"ulid\");\n }\n get isIP() {\n return !!this._def.checks.find((ch) => ch.kind === \"ip\");\n }\n get minLength() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxLength() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n}\nexports.ZodString = ZodString;\nZodString.create = (params) => {\n var _a;\n return new ZodString({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodString,\n coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,\n ...processCreateParams(params),\n });\n};\n// https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034\nfunction floatSafeRemainder(val, step) {\n const valDecCount = (val.toString().split(\".\")[1] || \"\").length;\n const stepDecCount = (step.toString().split(\".\")[1] || \"\").length;\n const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;\n const valInt = parseInt(val.toFixed(decCount).replace(\".\", \"\"));\n const stepInt = parseInt(step.toFixed(decCount).replace(\".\", \"\"));\n return (valInt % stepInt) / Math.pow(10, decCount);\n}\nclass ZodNumber extends ZodType {\n constructor() {\n super(...arguments);\n this.min = this.gte;\n this.max = this.lte;\n this.step = this.multipleOf;\n }\n _parse(input) {\n if (this._def.coerce) {\n input.data = Number(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.number) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.number,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n let ctx = undefined;\n const status = new parseUtil_1.ParseStatus();\n for (const check of this._def.checks) {\n if (check.kind === \"int\") {\n if (!util_1.util.isInteger(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: \"integer\",\n received: \"float\",\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"min\") {\n const tooSmall = check.inclusive\n ? input.data < check.value\n : input.data <= check.value;\n if (tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n minimum: check.value,\n type: \"number\",\n inclusive: check.inclusive,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n const tooBig = check.inclusive\n ? input.data > check.value\n : input.data >= check.value;\n if (tooBig) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n maximum: check.value,\n type: \"number\",\n inclusive: check.inclusive,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"multipleOf\") {\n if (floatSafeRemainder(input.data, check.value) !== 0) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.not_multiple_of,\n multipleOf: check.value,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"finite\") {\n if (!Number.isFinite(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.not_finite,\n message: check.message,\n });\n status.dirty();\n }\n }\n else {\n util_1.util.assertNever(check);\n }\n }\n return { status: status.value, value: input.data };\n }\n gte(value, message) {\n return this.setLimit(\"min\", value, true, errorUtil_1.errorUtil.toString(message));\n }\n gt(value, message) {\n return this.setLimit(\"min\", value, false, errorUtil_1.errorUtil.toString(message));\n }\n lte(value, message) {\n return this.setLimit(\"max\", value, true, errorUtil_1.errorUtil.toString(message));\n }\n lt(value, message) {\n return this.setLimit(\"max\", value, false, errorUtil_1.errorUtil.toString(message));\n }\n setLimit(kind, value, inclusive, message) {\n return new ZodNumber({\n ...this._def,\n checks: [\n ...this._def.checks,\n {\n kind,\n value,\n inclusive,\n message: errorUtil_1.errorUtil.toString(message),\n },\n ],\n });\n }\n _addCheck(check) {\n return new ZodNumber({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n int(message) {\n return this._addCheck({\n kind: \"int\",\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n positive(message) {\n return this._addCheck({\n kind: \"min\",\n value: 0,\n inclusive: false,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n negative(message) {\n return this._addCheck({\n kind: \"max\",\n value: 0,\n inclusive: false,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n nonpositive(message) {\n return this._addCheck({\n kind: \"max\",\n value: 0,\n inclusive: true,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n nonnegative(message) {\n return this._addCheck({\n kind: \"min\",\n value: 0,\n inclusive: true,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n multipleOf(value, message) {\n return this._addCheck({\n kind: \"multipleOf\",\n value: value,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n finite(message) {\n return this._addCheck({\n kind: \"finite\",\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n safe(message) {\n return this._addCheck({\n kind: \"min\",\n inclusive: true,\n value: Number.MIN_SAFE_INTEGER,\n message: errorUtil_1.errorUtil.toString(message),\n })._addCheck({\n kind: \"max\",\n inclusive: true,\n value: Number.MAX_SAFE_INTEGER,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n get minValue() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxValue() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n get isInt() {\n return !!this._def.checks.find((ch) => ch.kind === \"int\" ||\n (ch.kind === \"multipleOf\" && util_1.util.isInteger(ch.value)));\n }\n get isFinite() {\n let max = null, min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"finite\" ||\n ch.kind === \"int\" ||\n ch.kind === \"multipleOf\") {\n return true;\n }\n else if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n else if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return Number.isFinite(min) && Number.isFinite(max);\n }\n}\nexports.ZodNumber = ZodNumber;\nZodNumber.create = (params) => {\n return new ZodNumber({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodNumber,\n coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,\n ...processCreateParams(params),\n });\n};\nclass ZodBigInt extends ZodType {\n constructor() {\n super(...arguments);\n this.min = this.gte;\n this.max = this.lte;\n }\n _parse(input) {\n if (this._def.coerce) {\n input.data = BigInt(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.bigint) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.bigint,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n let ctx = undefined;\n const status = new parseUtil_1.ParseStatus();\n for (const check of this._def.checks) {\n if (check.kind === \"min\") {\n const tooSmall = check.inclusive\n ? input.data < check.value\n : input.data <= check.value;\n if (tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n type: \"bigint\",\n minimum: check.value,\n inclusive: check.inclusive,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n const tooBig = check.inclusive\n ? input.data > check.value\n : input.data >= check.value;\n if (tooBig) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n type: \"bigint\",\n maximum: check.value,\n inclusive: check.inclusive,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"multipleOf\") {\n if (input.data % check.value !== BigInt(0)) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.not_multiple_of,\n multipleOf: check.value,\n message: check.message,\n });\n status.dirty();\n }\n }\n else {\n util_1.util.assertNever(check);\n }\n }\n return { status: status.value, value: input.data };\n }\n gte(value, message) {\n return this.setLimit(\"min\", value, true, errorUtil_1.errorUtil.toString(message));\n }\n gt(value, message) {\n return this.setLimit(\"min\", value, false, errorUtil_1.errorUtil.toString(message));\n }\n lte(value, message) {\n return this.setLimit(\"max\", value, true, errorUtil_1.errorUtil.toString(message));\n }\n lt(value, message) {\n return this.setLimit(\"max\", value, false, errorUtil_1.errorUtil.toString(message));\n }\n setLimit(kind, value, inclusive, message) {\n return new ZodBigInt({\n ...this._def,\n checks: [\n ...this._def.checks,\n {\n kind,\n value,\n inclusive,\n message: errorUtil_1.errorUtil.toString(message),\n },\n ],\n });\n }\n _addCheck(check) {\n return new ZodBigInt({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n positive(message) {\n return this._addCheck({\n kind: \"min\",\n value: BigInt(0),\n inclusive: false,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n negative(message) {\n return this._addCheck({\n kind: \"max\",\n value: BigInt(0),\n inclusive: false,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n nonpositive(message) {\n return this._addCheck({\n kind: \"max\",\n value: BigInt(0),\n inclusive: true,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n nonnegative(message) {\n return this._addCheck({\n kind: \"min\",\n value: BigInt(0),\n inclusive: true,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n multipleOf(value, message) {\n return this._addCheck({\n kind: \"multipleOf\",\n value,\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n get minValue() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxValue() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n}\nexports.ZodBigInt = ZodBigInt;\nZodBigInt.create = (params) => {\n var _a;\n return new ZodBigInt({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodBigInt,\n coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,\n ...processCreateParams(params),\n });\n};\nclass ZodBoolean extends ZodType {\n _parse(input) {\n if (this._def.coerce) {\n input.data = Boolean(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.boolean) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.boolean,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n return (0, parseUtil_1.OK)(input.data);\n }\n}\nexports.ZodBoolean = ZodBoolean;\nZodBoolean.create = (params) => {\n return new ZodBoolean({\n typeName: ZodFirstPartyTypeKind.ZodBoolean,\n coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,\n ...processCreateParams(params),\n });\n};\nclass ZodDate extends ZodType {\n _parse(input) {\n if (this._def.coerce) {\n input.data = new Date(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.date) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.date,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n if (isNaN(input.data.getTime())) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_date,\n });\n return parseUtil_1.INVALID;\n }\n const status = new parseUtil_1.ParseStatus();\n let ctx = undefined;\n for (const check of this._def.checks) {\n if (check.kind === \"min\") {\n if (input.data.getTime() < check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n message: check.message,\n inclusive: true,\n exact: false,\n minimum: check.value,\n type: \"date\",\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n if (input.data.getTime() > check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n message: check.message,\n inclusive: true,\n exact: false,\n maximum: check.value,\n type: \"date\",\n });\n status.dirty();\n }\n }\n else {\n util_1.util.assertNever(check);\n }\n }\n return {\n status: status.value,\n value: new Date(input.data.getTime()),\n };\n }\n _addCheck(check) {\n return new ZodDate({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n min(minDate, message) {\n return this._addCheck({\n kind: \"min\",\n value: minDate.getTime(),\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n max(maxDate, message) {\n return this._addCheck({\n kind: \"max\",\n value: maxDate.getTime(),\n message: errorUtil_1.errorUtil.toString(message),\n });\n }\n get minDate() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min != null ? new Date(min) : null;\n }\n get maxDate() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max != null ? new Date(max) : null;\n }\n}\nexports.ZodDate = ZodDate;\nZodDate.create = (params) => {\n return new ZodDate({\n checks: [],\n coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,\n typeName: ZodFirstPartyTypeKind.ZodDate,\n ...processCreateParams(params),\n });\n};\nclass ZodSymbol extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.symbol) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.symbol,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n return (0, parseUtil_1.OK)(input.data);\n }\n}\nexports.ZodSymbol = ZodSymbol;\nZodSymbol.create = (params) => {\n return new ZodSymbol({\n typeName: ZodFirstPartyTypeKind.ZodSymbol,\n ...processCreateParams(params),\n });\n};\nclass ZodUndefined extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.undefined) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.undefined,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n return (0, parseUtil_1.OK)(input.data);\n }\n}\nexports.ZodUndefined = ZodUndefined;\nZodUndefined.create = (params) => {\n return new ZodUndefined({\n typeName: ZodFirstPartyTypeKind.ZodUndefined,\n ...processCreateParams(params),\n });\n};\nclass ZodNull extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.null) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.null,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n return (0, parseUtil_1.OK)(input.data);\n }\n}\nexports.ZodNull = ZodNull;\nZodNull.create = (params) => {\n return new ZodNull({\n typeName: ZodFirstPartyTypeKind.ZodNull,\n ...processCreateParams(params),\n });\n};\nclass ZodAny extends ZodType {\n constructor() {\n super(...arguments);\n // to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.\n this._any = true;\n }\n _parse(input) {\n return (0, parseUtil_1.OK)(input.data);\n }\n}\nexports.ZodAny = ZodAny;\nZodAny.create = (params) => {\n return new ZodAny({\n typeName: ZodFirstPartyTypeKind.ZodAny,\n ...processCreateParams(params),\n });\n};\nclass ZodUnknown extends ZodType {\n constructor() {\n super(...arguments);\n // required\n this._unknown = true;\n }\n _parse(input) {\n return (0, parseUtil_1.OK)(input.data);\n }\n}\nexports.ZodUnknown = ZodUnknown;\nZodUnknown.create = (params) => {\n return new ZodUnknown({\n typeName: ZodFirstPartyTypeKind.ZodUnknown,\n ...processCreateParams(params),\n });\n};\nclass ZodNever extends ZodType {\n _parse(input) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.never,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n}\nexports.ZodNever = ZodNever;\nZodNever.create = (params) => {\n return new ZodNever({\n typeName: ZodFirstPartyTypeKind.ZodNever,\n ...processCreateParams(params),\n });\n};\nclass ZodVoid extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.undefined) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.void,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n return (0, parseUtil_1.OK)(input.data);\n }\n}\nexports.ZodVoid = ZodVoid;\nZodVoid.create = (params) => {\n return new ZodVoid({\n typeName: ZodFirstPartyTypeKind.ZodVoid,\n ...processCreateParams(params),\n });\n};\nclass ZodArray extends ZodType {\n _parse(input) {\n const { ctx, status } = this._processInputParams(input);\n const def = this._def;\n if (ctx.parsedType !== util_1.ZodParsedType.array) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.array,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n if (def.exactLength !== null) {\n const tooBig = ctx.data.length > def.exactLength.value;\n const tooSmall = ctx.data.length < def.exactLength.value;\n if (tooBig || tooSmall) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: tooBig ? ZodError_1.ZodIssueCode.too_big : ZodError_1.ZodIssueCode.too_small,\n minimum: (tooSmall ? def.exactLength.value : undefined),\n maximum: (tooBig ? def.exactLength.value : undefined),\n type: \"array\",\n inclusive: true,\n exact: true,\n message: def.exactLength.message,\n });\n status.dirty();\n }\n }\n if (def.minLength !== null) {\n if (ctx.data.length < def.minLength.value) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n minimum: def.minLength.value,\n type: \"array\",\n inclusive: true,\n exact: false,\n message: def.minLength.message,\n });\n status.dirty();\n }\n }\n if (def.maxLength !== null) {\n if (ctx.data.length > def.maxLength.value) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n maximum: def.maxLength.value,\n type: \"array\",\n inclusive: true,\n exact: false,\n message: def.maxLength.message,\n });\n status.dirty();\n }\n }\n if (ctx.common.async) {\n return Promise.all([...ctx.data].map((item, i) => {\n return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));\n })).then((result) => {\n return parseUtil_1.ParseStatus.mergeArray(status, result);\n });\n }\n const result = [...ctx.data].map((item, i) => {\n return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));\n });\n return parseUtil_1.ParseStatus.mergeArray(status, result);\n }\n get element() {\n return this._def.type;\n }\n min(minLength, message) {\n return new ZodArray({\n ...this._def,\n minLength: { value: minLength, message: errorUtil_1.errorUtil.toString(message) },\n });\n }\n max(maxLength, message) {\n return new ZodArray({\n ...this._def,\n maxLength: { value: maxLength, message: errorUtil_1.errorUtil.toString(message) },\n });\n }\n length(len, message) {\n return new ZodArray({\n ...this._def,\n exactLength: { value: len, message: errorUtil_1.errorUtil.toString(message) },\n });\n }\n nonempty(message) {\n return this.min(1, message);\n }\n}\nexports.ZodArray = ZodArray;\nZodArray.create = (schema, params) => {\n return new ZodArray({\n type: schema,\n minLength: null,\n maxLength: null,\n exactLength: null,\n typeName: ZodFirstPartyTypeKind.ZodArray,\n ...processCreateParams(params),\n });\n};\nfunction deepPartialify(schema) {\n if (schema instanceof ZodObject) {\n const newShape = {};\n for (const key in schema.shape) {\n const fieldSchema = schema.shape[key];\n newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));\n }\n return new ZodObject({\n ...schema._def,\n shape: () => newShape,\n });\n }\n else if (schema instanceof ZodArray) {\n return new ZodArray({\n ...schema._def,\n type: deepPartialify(schema.element),\n });\n }\n else if (schema instanceof ZodOptional) {\n return ZodOptional.create(deepPartialify(schema.unwrap()));\n }\n else if (schema instanceof ZodNullable) {\n return ZodNullable.create(deepPartialify(schema.unwrap()));\n }\n else if (schema instanceof ZodTuple) {\n return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));\n }\n else {\n return schema;\n }\n}\nclass ZodObject extends ZodType {\n constructor() {\n super(...arguments);\n this._cached = null;\n /**\n * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.\n * If you want to pass through unknown properties, use `.passthrough()` instead.\n */\n this.nonstrict = this.passthrough;\n // extend<\n // Augmentation extends ZodRawShape,\n // NewOutput extends util.flatten<{\n // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation\n // ? Augmentation[k][\"_output\"]\n // : k extends keyof Output\n // ? Output[k]\n // : never;\n // }>,\n // NewInput extends util.flatten<{\n // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation\n // ? Augmentation[k][\"_input\"]\n // : k extends keyof Input\n // ? Input[k]\n // : never;\n // }>\n // >(\n // augmentation: Augmentation\n // ): ZodObject<\n // extendShape,\n // UnknownKeys,\n // Catchall,\n // NewOutput,\n // NewInput\n // > {\n // return new ZodObject({\n // ...this._def,\n // shape: () => ({\n // ...this._def.shape(),\n // ...augmentation,\n // }),\n // }) as any;\n // }\n /**\n * @deprecated Use `.extend` instead\n * */\n this.augment = this.extend;\n }\n _getCached() {\n if (this._cached !== null)\n return this._cached;\n const shape = this._def.shape();\n const keys = util_1.util.objectKeys(shape);\n return (this._cached = { shape, keys });\n }\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.object) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.object,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n const { status, ctx } = this._processInputParams(input);\n const { shape, keys: shapeKeys } = this._getCached();\n const extraKeys = [];\n if (!(this._def.catchall instanceof ZodNever &&\n this._def.unknownKeys === \"strip\")) {\n for (const key in ctx.data) {\n if (!shapeKeys.includes(key)) {\n extraKeys.push(key);\n }\n }\n }\n const pairs = [];\n for (const key of shapeKeys) {\n const keyValidator = shape[key];\n const value = ctx.data[key];\n pairs.push({\n key: { status: \"valid\", value: key },\n value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),\n alwaysSet: key in ctx.data,\n });\n }\n if (this._def.catchall instanceof ZodNever) {\n const unknownKeys = this._def.unknownKeys;\n if (unknownKeys === \"passthrough\") {\n for (const key of extraKeys) {\n pairs.push({\n key: { status: \"valid\", value: key },\n value: { status: \"valid\", value: ctx.data[key] },\n });\n }\n }\n else if (unknownKeys === \"strict\") {\n if (extraKeys.length > 0) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.unrecognized_keys,\n keys: extraKeys,\n });\n status.dirty();\n }\n }\n else if (unknownKeys === \"strip\") {\n }\n else {\n throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);\n }\n }\n else {\n // run catchall validation\n const catchall = this._def.catchall;\n for (const key of extraKeys) {\n const value = ctx.data[key];\n pairs.push({\n key: { status: \"valid\", value: key },\n value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)\n ),\n alwaysSet: key in ctx.data,\n });\n }\n }\n if (ctx.common.async) {\n return Promise.resolve()\n .then(async () => {\n const syncPairs = [];\n for (const pair of pairs) {\n const key = await pair.key;\n syncPairs.push({\n key,\n value: await pair.value,\n alwaysSet: pair.alwaysSet,\n });\n }\n return syncPairs;\n })\n .then((syncPairs) => {\n return parseUtil_1.ParseStatus.mergeObjectSync(status, syncPairs);\n });\n }\n else {\n return parseUtil_1.ParseStatus.mergeObjectSync(status, pairs);\n }\n }\n get shape() {\n return this._def.shape();\n }\n strict(message) {\n errorUtil_1.errorUtil.errToObj;\n return new ZodObject({\n ...this._def,\n unknownKeys: \"strict\",\n ...(message !== undefined\n ? {\n errorMap: (issue, ctx) => {\n var _a, _b, _c, _d;\n const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a, issue, ctx).message) !== null && _c !== void 0 ? _c : ctx.defaultError;\n if (issue.code === \"unrecognized_keys\")\n return {\n message: (_d = errorUtil_1.errorUtil.errToObj(message).message) !== null && _d !== void 0 ? _d : defaultError,\n };\n return {\n message: defaultError,\n };\n },\n }\n : {}),\n });\n }\n strip() {\n return new ZodObject({\n ...this._def,\n unknownKeys: \"strip\",\n });\n }\n passthrough() {\n return new ZodObject({\n ...this._def,\n unknownKeys: \"passthrough\",\n });\n }\n // const AugmentFactory =\n // (def: Def) =>\n // (\n // augmentation: Augmentation\n // ): ZodObject<\n // extendShape, Augmentation>,\n // Def[\"unknownKeys\"],\n // Def[\"catchall\"]\n // > => {\n // return new ZodObject({\n // ...def,\n // shape: () => ({\n // ...def.shape(),\n // ...augmentation,\n // }),\n // }) as any;\n // };\n extend(augmentation) {\n return new ZodObject({\n ...this._def,\n shape: () => ({\n ...this._def.shape(),\n ...augmentation,\n }),\n });\n }\n /**\n * Prior to zod@1.0.12 there was a bug in the\n * inferred type of merged objects. Please\n * upgrade if you are experiencing issues.\n */\n merge(merging) {\n const merged = new ZodObject({\n unknownKeys: merging._def.unknownKeys,\n catchall: merging._def.catchall,\n shape: () => ({\n ...this._def.shape(),\n ...merging._def.shape(),\n }),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n });\n return merged;\n }\n // merge<\n // Incoming extends AnyZodObject,\n // Augmentation extends Incoming[\"shape\"],\n // NewOutput extends {\n // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation\n // ? Augmentation[k][\"_output\"]\n // : k extends keyof Output\n // ? Output[k]\n // : never;\n // },\n // NewInput extends {\n // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation\n // ? Augmentation[k][\"_input\"]\n // : k extends keyof Input\n // ? Input[k]\n // : never;\n // }\n // >(\n // merging: Incoming\n // ): ZodObject<\n // extendShape>,\n // Incoming[\"_def\"][\"unknownKeys\"],\n // Incoming[\"_def\"][\"catchall\"],\n // NewOutput,\n // NewInput\n // > {\n // const merged: any = new ZodObject({\n // unknownKeys: merging._def.unknownKeys,\n // catchall: merging._def.catchall,\n // shape: () =>\n // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),\n // typeName: ZodFirstPartyTypeKind.ZodObject,\n // }) as any;\n // return merged;\n // }\n setKey(key, schema) {\n return this.augment({ [key]: schema });\n }\n // merge(\n // merging: Incoming\n // ): //ZodObject = (merging) => {\n // ZodObject<\n // extendShape>,\n // Incoming[\"_def\"][\"unknownKeys\"],\n // Incoming[\"_def\"][\"catchall\"]\n // > {\n // // const mergedShape = objectUtil.mergeShapes(\n // // this._def.shape(),\n // // merging._def.shape()\n // // );\n // const merged: any = new ZodObject({\n // unknownKeys: merging._def.unknownKeys,\n // catchall: merging._def.catchall,\n // shape: () =>\n // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),\n // typeName: ZodFirstPartyTypeKind.ZodObject,\n // }) as any;\n // return merged;\n // }\n catchall(index) {\n return new ZodObject({\n ...this._def,\n catchall: index,\n });\n }\n pick(mask) {\n const shape = {};\n util_1.util.objectKeys(mask).forEach((key) => {\n if (mask[key] && this.shape[key]) {\n shape[key] = this.shape[key];\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => shape,\n });\n }\n omit(mask) {\n const shape = {};\n util_1.util.objectKeys(this.shape).forEach((key) => {\n if (!mask[key]) {\n shape[key] = this.shape[key];\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => shape,\n });\n }\n /**\n * @deprecated\n */\n deepPartial() {\n return deepPartialify(this);\n }\n partial(mask) {\n const newShape = {};\n util_1.util.objectKeys(this.shape).forEach((key) => {\n const fieldSchema = this.shape[key];\n if (mask && !mask[key]) {\n newShape[key] = fieldSchema;\n }\n else {\n newShape[key] = fieldSchema.optional();\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => newShape,\n });\n }\n required(mask) {\n const newShape = {};\n util_1.util.objectKeys(this.shape).forEach((key) => {\n if (mask && !mask[key]) {\n newShape[key] = this.shape[key];\n }\n else {\n const fieldSchema = this.shape[key];\n let newField = fieldSchema;\n while (newField instanceof ZodOptional) {\n newField = newField._def.innerType;\n }\n newShape[key] = newField;\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => newShape,\n });\n }\n keyof() {\n return createZodEnum(util_1.util.objectKeys(this.shape));\n }\n}\nexports.ZodObject = ZodObject;\nZodObject.create = (shape, params) => {\n return new ZodObject({\n shape: () => shape,\n unknownKeys: \"strip\",\n catchall: ZodNever.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params),\n });\n};\nZodObject.strictCreate = (shape, params) => {\n return new ZodObject({\n shape: () => shape,\n unknownKeys: \"strict\",\n catchall: ZodNever.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params),\n });\n};\nZodObject.lazycreate = (shape, params) => {\n return new ZodObject({\n shape,\n unknownKeys: \"strip\",\n catchall: ZodNever.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params),\n });\n};\nclass ZodUnion extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const options = this._def.options;\n function handleResults(results) {\n // return first issue-free validation if it exists\n for (const result of results) {\n if (result.result.status === \"valid\") {\n return result.result;\n }\n }\n for (const result of results) {\n if (result.result.status === \"dirty\") {\n // add issues from dirty option\n ctx.common.issues.push(...result.ctx.common.issues);\n return result.result;\n }\n }\n // return invalid\n const unionErrors = results.map((result) => new ZodError_1.ZodError(result.ctx.common.issues));\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_union,\n unionErrors,\n });\n return parseUtil_1.INVALID;\n }\n if (ctx.common.async) {\n return Promise.all(options.map(async (option) => {\n const childCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: [],\n },\n parent: null,\n };\n return {\n result: await option._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: childCtx,\n }),\n ctx: childCtx,\n };\n })).then(handleResults);\n }\n else {\n let dirty = undefined;\n const issues = [];\n for (const option of options) {\n const childCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: [],\n },\n parent: null,\n };\n const result = option._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: childCtx,\n });\n if (result.status === \"valid\") {\n return result;\n }\n else if (result.status === \"dirty\" && !dirty) {\n dirty = { result, ctx: childCtx };\n }\n if (childCtx.common.issues.length) {\n issues.push(childCtx.common.issues);\n }\n }\n if (dirty) {\n ctx.common.issues.push(...dirty.ctx.common.issues);\n return dirty.result;\n }\n const unionErrors = issues.map((issues) => new ZodError_1.ZodError(issues));\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_union,\n unionErrors,\n });\n return parseUtil_1.INVALID;\n }\n }\n get options() {\n return this._def.options;\n }\n}\nexports.ZodUnion = ZodUnion;\nZodUnion.create = (types, params) => {\n return new ZodUnion({\n options: types,\n typeName: ZodFirstPartyTypeKind.ZodUnion,\n ...processCreateParams(params),\n });\n};\n/////////////////////////////////////////////////////\n/////////////////////////////////////////////////////\n////////// //////////\n////////// ZodDiscriminatedUnion //////////\n////////// //////////\n/////////////////////////////////////////////////////\n/////////////////////////////////////////////////////\nconst getDiscriminator = (type) => {\n if (type instanceof ZodLazy) {\n return getDiscriminator(type.schema);\n }\n else if (type instanceof ZodEffects) {\n return getDiscriminator(type.innerType());\n }\n else if (type instanceof ZodLiteral) {\n return [type.value];\n }\n else if (type instanceof ZodEnum) {\n return type.options;\n }\n else if (type instanceof ZodNativeEnum) {\n // eslint-disable-next-line ban/ban\n return Object.keys(type.enum);\n }\n else if (type instanceof ZodDefault) {\n return getDiscriminator(type._def.innerType);\n }\n else if (type instanceof ZodUndefined) {\n return [undefined];\n }\n else if (type instanceof ZodNull) {\n return [null];\n }\n else {\n return null;\n }\n};\nclass ZodDiscriminatedUnion extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== util_1.ZodParsedType.object) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.object,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n const discriminator = this.discriminator;\n const discriminatorValue = ctx.data[discriminator];\n const option = this.optionsMap.get(discriminatorValue);\n if (!option) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_union_discriminator,\n options: Array.from(this.optionsMap.keys()),\n path: [discriminator],\n });\n return parseUtil_1.INVALID;\n }\n if (ctx.common.async) {\n return option._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n }\n else {\n return option._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n }\n }\n get discriminator() {\n return this._def.discriminator;\n }\n get options() {\n return this._def.options;\n }\n get optionsMap() {\n return this._def.optionsMap;\n }\n /**\n * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.\n * However, it only allows a union of objects, all of which need to share a discriminator property. This property must\n * have a different value for each object in the union.\n * @param discriminator the name of the discriminator property\n * @param types an array of object schemas\n * @param params\n */\n static create(discriminator, options, params) {\n // Get all the valid discriminator values\n const optionsMap = new Map();\n // try {\n for (const type of options) {\n const discriminatorValues = getDiscriminator(type.shape[discriminator]);\n if (!discriminatorValues) {\n throw new Error(`A discriminator value for key \\`${discriminator}\\` could not be extracted from all schema options`);\n }\n for (const value of discriminatorValues) {\n if (optionsMap.has(value)) {\n throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);\n }\n optionsMap.set(value, type);\n }\n }\n return new ZodDiscriminatedUnion({\n typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,\n discriminator,\n options,\n optionsMap,\n ...processCreateParams(params),\n });\n }\n}\nexports.ZodDiscriminatedUnion = ZodDiscriminatedUnion;\nfunction mergeValues(a, b) {\n const aType = (0, util_1.getParsedType)(a);\n const bType = (0, util_1.getParsedType)(b);\n if (a === b) {\n return { valid: true, data: a };\n }\n else if (aType === util_1.ZodParsedType.object && bType === util_1.ZodParsedType.object) {\n const bKeys = util_1.util.objectKeys(b);\n const sharedKeys = util_1.util\n .objectKeys(a)\n .filter((key) => bKeys.indexOf(key) !== -1);\n const newObj = { ...a, ...b };\n for (const key of sharedKeys) {\n const sharedValue = mergeValues(a[key], b[key]);\n if (!sharedValue.valid) {\n return { valid: false };\n }\n newObj[key] = sharedValue.data;\n }\n return { valid: true, data: newObj };\n }\n else if (aType === util_1.ZodParsedType.array && bType === util_1.ZodParsedType.array) {\n if (a.length !== b.length) {\n return { valid: false };\n }\n const newArray = [];\n for (let index = 0; index < a.length; index++) {\n const itemA = a[index];\n const itemB = b[index];\n const sharedValue = mergeValues(itemA, itemB);\n if (!sharedValue.valid) {\n return { valid: false };\n }\n newArray.push(sharedValue.data);\n }\n return { valid: true, data: newArray };\n }\n else if (aType === util_1.ZodParsedType.date &&\n bType === util_1.ZodParsedType.date &&\n +a === +b) {\n return { valid: true, data: a };\n }\n else {\n return { valid: false };\n }\n}\nclass ZodIntersection extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n const handleParsed = (parsedLeft, parsedRight) => {\n if ((0, parseUtil_1.isAborted)(parsedLeft) || (0, parseUtil_1.isAborted)(parsedRight)) {\n return parseUtil_1.INVALID;\n }\n const merged = mergeValues(parsedLeft.value, parsedRight.value);\n if (!merged.valid) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_intersection_types,\n });\n return parseUtil_1.INVALID;\n }\n if ((0, parseUtil_1.isDirty)(parsedLeft) || (0, parseUtil_1.isDirty)(parsedRight)) {\n status.dirty();\n }\n return { status: status.value, value: merged.data };\n };\n if (ctx.common.async) {\n return Promise.all([\n this._def.left._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }),\n this._def.right._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }),\n ]).then(([left, right]) => handleParsed(left, right));\n }\n else {\n return handleParsed(this._def.left._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }), this._def.right._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }));\n }\n }\n}\nexports.ZodIntersection = ZodIntersection;\nZodIntersection.create = (left, right, params) => {\n return new ZodIntersection({\n left: left,\n right: right,\n typeName: ZodFirstPartyTypeKind.ZodIntersection,\n ...processCreateParams(params),\n });\n};\nclass ZodTuple extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== util_1.ZodParsedType.array) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.array,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n if (ctx.data.length < this._def.items.length) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n minimum: this._def.items.length,\n inclusive: true,\n exact: false,\n type: \"array\",\n });\n return parseUtil_1.INVALID;\n }\n const rest = this._def.rest;\n if (!rest && ctx.data.length > this._def.items.length) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n maximum: this._def.items.length,\n inclusive: true,\n exact: false,\n type: \"array\",\n });\n status.dirty();\n }\n const items = [...ctx.data]\n .map((item, itemIndex) => {\n const schema = this._def.items[itemIndex] || this._def.rest;\n if (!schema)\n return null;\n return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));\n })\n .filter((x) => !!x); // filter nulls\n if (ctx.common.async) {\n return Promise.all(items).then((results) => {\n return parseUtil_1.ParseStatus.mergeArray(status, results);\n });\n }\n else {\n return parseUtil_1.ParseStatus.mergeArray(status, items);\n }\n }\n get items() {\n return this._def.items;\n }\n rest(rest) {\n return new ZodTuple({\n ...this._def,\n rest,\n });\n }\n}\nexports.ZodTuple = ZodTuple;\nZodTuple.create = (schemas, params) => {\n if (!Array.isArray(schemas)) {\n throw new Error(\"You must pass an array of schemas to z.tuple([ ... ])\");\n }\n return new ZodTuple({\n items: schemas,\n typeName: ZodFirstPartyTypeKind.ZodTuple,\n rest: null,\n ...processCreateParams(params),\n });\n};\nclass ZodRecord extends ZodType {\n get keySchema() {\n return this._def.keyType;\n }\n get valueSchema() {\n return this._def.valueType;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== util_1.ZodParsedType.object) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.object,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n const pairs = [];\n const keyType = this._def.keyType;\n const valueType = this._def.valueType;\n for (const key in ctx.data) {\n pairs.push({\n key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),\n value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),\n });\n }\n if (ctx.common.async) {\n return parseUtil_1.ParseStatus.mergeObjectAsync(status, pairs);\n }\n else {\n return parseUtil_1.ParseStatus.mergeObjectSync(status, pairs);\n }\n }\n get element() {\n return this._def.valueType;\n }\n static create(first, second, third) {\n if (second instanceof ZodType) {\n return new ZodRecord({\n keyType: first,\n valueType: second,\n typeName: ZodFirstPartyTypeKind.ZodRecord,\n ...processCreateParams(third),\n });\n }\n return new ZodRecord({\n keyType: ZodString.create(),\n valueType: first,\n typeName: ZodFirstPartyTypeKind.ZodRecord,\n ...processCreateParams(second),\n });\n }\n}\nexports.ZodRecord = ZodRecord;\nclass ZodMap extends ZodType {\n get keySchema() {\n return this._def.keyType;\n }\n get valueSchema() {\n return this._def.valueType;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== util_1.ZodParsedType.map) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.map,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n const keyType = this._def.keyType;\n const valueType = this._def.valueType;\n const pairs = [...ctx.data.entries()].map(([key, value], index) => {\n return {\n key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, \"key\"])),\n value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, \"value\"])),\n };\n });\n if (ctx.common.async) {\n const finalMap = new Map();\n return Promise.resolve().then(async () => {\n for (const pair of pairs) {\n const key = await pair.key;\n const value = await pair.value;\n if (key.status === \"aborted\" || value.status === \"aborted\") {\n return parseUtil_1.INVALID;\n }\n if (key.status === \"dirty\" || value.status === \"dirty\") {\n status.dirty();\n }\n finalMap.set(key.value, value.value);\n }\n return { status: status.value, value: finalMap };\n });\n }\n else {\n const finalMap = new Map();\n for (const pair of pairs) {\n const key = pair.key;\n const value = pair.value;\n if (key.status === \"aborted\" || value.status === \"aborted\") {\n return parseUtil_1.INVALID;\n }\n if (key.status === \"dirty\" || value.status === \"dirty\") {\n status.dirty();\n }\n finalMap.set(key.value, value.value);\n }\n return { status: status.value, value: finalMap };\n }\n }\n}\nexports.ZodMap = ZodMap;\nZodMap.create = (keyType, valueType, params) => {\n return new ZodMap({\n valueType,\n keyType,\n typeName: ZodFirstPartyTypeKind.ZodMap,\n ...processCreateParams(params),\n });\n};\nclass ZodSet extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== util_1.ZodParsedType.set) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.set,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n const def = this._def;\n if (def.minSize !== null) {\n if (ctx.data.size < def.minSize.value) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_small,\n minimum: def.minSize.value,\n type: \"set\",\n inclusive: true,\n exact: false,\n message: def.minSize.message,\n });\n status.dirty();\n }\n }\n if (def.maxSize !== null) {\n if (ctx.data.size > def.maxSize.value) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.too_big,\n maximum: def.maxSize.value,\n type: \"set\",\n inclusive: true,\n exact: false,\n message: def.maxSize.message,\n });\n status.dirty();\n }\n }\n const valueType = this._def.valueType;\n function finalizeSet(elements) {\n const parsedSet = new Set();\n for (const element of elements) {\n if (element.status === \"aborted\")\n return parseUtil_1.INVALID;\n if (element.status === \"dirty\")\n status.dirty();\n parsedSet.add(element.value);\n }\n return { status: status.value, value: parsedSet };\n }\n const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));\n if (ctx.common.async) {\n return Promise.all(elements).then((elements) => finalizeSet(elements));\n }\n else {\n return finalizeSet(elements);\n }\n }\n min(minSize, message) {\n return new ZodSet({\n ...this._def,\n minSize: { value: minSize, message: errorUtil_1.errorUtil.toString(message) },\n });\n }\n max(maxSize, message) {\n return new ZodSet({\n ...this._def,\n maxSize: { value: maxSize, message: errorUtil_1.errorUtil.toString(message) },\n });\n }\n size(size, message) {\n return this.min(size, message).max(size, message);\n }\n nonempty(message) {\n return this.min(1, message);\n }\n}\nexports.ZodSet = ZodSet;\nZodSet.create = (valueType, params) => {\n return new ZodSet({\n valueType,\n minSize: null,\n maxSize: null,\n typeName: ZodFirstPartyTypeKind.ZodSet,\n ...processCreateParams(params),\n });\n};\nclass ZodFunction extends ZodType {\n constructor() {\n super(...arguments);\n this.validate = this.implement;\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== util_1.ZodParsedType.function) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.function,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n function makeArgsIssue(args, error) {\n return (0, parseUtil_1.makeIssue)({\n data: args,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n (0, errors_1.getErrorMap)(),\n errors_1.defaultErrorMap,\n ].filter((x) => !!x),\n issueData: {\n code: ZodError_1.ZodIssueCode.invalid_arguments,\n argumentsError: error,\n },\n });\n }\n function makeReturnsIssue(returns, error) {\n return (0, parseUtil_1.makeIssue)({\n data: returns,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n (0, errors_1.getErrorMap)(),\n errors_1.defaultErrorMap,\n ].filter((x) => !!x),\n issueData: {\n code: ZodError_1.ZodIssueCode.invalid_return_type,\n returnTypeError: error,\n },\n });\n }\n const params = { errorMap: ctx.common.contextualErrorMap };\n const fn = ctx.data;\n if (this._def.returns instanceof ZodPromise) {\n // Would love a way to avoid disabling this rule, but we need\n // an alias (using an arrow function was what caused 2651).\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const me = this;\n return (0, parseUtil_1.OK)(async function (...args) {\n const error = new ZodError_1.ZodError([]);\n const parsedArgs = await me._def.args\n .parseAsync(args, params)\n .catch((e) => {\n error.addIssue(makeArgsIssue(args, e));\n throw error;\n });\n const result = await Reflect.apply(fn, this, parsedArgs);\n const parsedReturns = await me._def.returns._def.type\n .parseAsync(result, params)\n .catch((e) => {\n error.addIssue(makeReturnsIssue(result, e));\n throw error;\n });\n return parsedReturns;\n });\n }\n else {\n // Would love a way to avoid disabling this rule, but we need\n // an alias (using an arrow function was what caused 2651).\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const me = this;\n return (0, parseUtil_1.OK)(function (...args) {\n const parsedArgs = me._def.args.safeParse(args, params);\n if (!parsedArgs.success) {\n throw new ZodError_1.ZodError([makeArgsIssue(args, parsedArgs.error)]);\n }\n const result = Reflect.apply(fn, this, parsedArgs.data);\n const parsedReturns = me._def.returns.safeParse(result, params);\n if (!parsedReturns.success) {\n throw new ZodError_1.ZodError([makeReturnsIssue(result, parsedReturns.error)]);\n }\n return parsedReturns.data;\n });\n }\n }\n parameters() {\n return this._def.args;\n }\n returnType() {\n return this._def.returns;\n }\n args(...items) {\n return new ZodFunction({\n ...this._def,\n args: ZodTuple.create(items).rest(ZodUnknown.create()),\n });\n }\n returns(returnType) {\n return new ZodFunction({\n ...this._def,\n returns: returnType,\n });\n }\n implement(func) {\n const validatedFunc = this.parse(func);\n return validatedFunc;\n }\n strictImplement(func) {\n const validatedFunc = this.parse(func);\n return validatedFunc;\n }\n static create(args, returns, params) {\n return new ZodFunction({\n args: (args\n ? args\n : ZodTuple.create([]).rest(ZodUnknown.create())),\n returns: returns || ZodUnknown.create(),\n typeName: ZodFirstPartyTypeKind.ZodFunction,\n ...processCreateParams(params),\n });\n }\n}\nexports.ZodFunction = ZodFunction;\nclass ZodLazy extends ZodType {\n get schema() {\n return this._def.getter();\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const lazySchema = this._def.getter();\n return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });\n }\n}\nexports.ZodLazy = ZodLazy;\nZodLazy.create = (getter, params) => {\n return new ZodLazy({\n getter: getter,\n typeName: ZodFirstPartyTypeKind.ZodLazy,\n ...processCreateParams(params),\n });\n};\nclass ZodLiteral extends ZodType {\n _parse(input) {\n if (input.data !== this._def.value) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n received: ctx.data,\n code: ZodError_1.ZodIssueCode.invalid_literal,\n expected: this._def.value,\n });\n return parseUtil_1.INVALID;\n }\n return { status: \"valid\", value: input.data };\n }\n get value() {\n return this._def.value;\n }\n}\nexports.ZodLiteral = ZodLiteral;\nZodLiteral.create = (value, params) => {\n return new ZodLiteral({\n value: value,\n typeName: ZodFirstPartyTypeKind.ZodLiteral,\n ...processCreateParams(params),\n });\n};\nfunction createZodEnum(values, params) {\n return new ZodEnum({\n values,\n typeName: ZodFirstPartyTypeKind.ZodEnum,\n ...processCreateParams(params),\n });\n}\nclass ZodEnum extends ZodType {\n _parse(input) {\n if (typeof input.data !== \"string\") {\n const ctx = this._getOrReturnCtx(input);\n const expectedValues = this._def.values;\n (0, parseUtil_1.addIssueToContext)(ctx, {\n expected: util_1.util.joinValues(expectedValues),\n received: ctx.parsedType,\n code: ZodError_1.ZodIssueCode.invalid_type,\n });\n return parseUtil_1.INVALID;\n }\n if (this._def.values.indexOf(input.data) === -1) {\n const ctx = this._getOrReturnCtx(input);\n const expectedValues = this._def.values;\n (0, parseUtil_1.addIssueToContext)(ctx, {\n received: ctx.data,\n code: ZodError_1.ZodIssueCode.invalid_enum_value,\n options: expectedValues,\n });\n return parseUtil_1.INVALID;\n }\n return (0, parseUtil_1.OK)(input.data);\n }\n get options() {\n return this._def.values;\n }\n get enum() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n get Values() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n get Enum() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n extract(values) {\n return ZodEnum.create(values);\n }\n exclude(values) {\n return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)));\n }\n}\nexports.ZodEnum = ZodEnum;\nZodEnum.create = createZodEnum;\nclass ZodNativeEnum extends ZodType {\n _parse(input) {\n const nativeEnumValues = util_1.util.getValidEnumValues(this._def.values);\n const ctx = this._getOrReturnCtx(input);\n if (ctx.parsedType !== util_1.ZodParsedType.string &&\n ctx.parsedType !== util_1.ZodParsedType.number) {\n const expectedValues = util_1.util.objectValues(nativeEnumValues);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n expected: util_1.util.joinValues(expectedValues),\n received: ctx.parsedType,\n code: ZodError_1.ZodIssueCode.invalid_type,\n });\n return parseUtil_1.INVALID;\n }\n if (nativeEnumValues.indexOf(input.data) === -1) {\n const expectedValues = util_1.util.objectValues(nativeEnumValues);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n received: ctx.data,\n code: ZodError_1.ZodIssueCode.invalid_enum_value,\n options: expectedValues,\n });\n return parseUtil_1.INVALID;\n }\n return (0, parseUtil_1.OK)(input.data);\n }\n get enum() {\n return this._def.values;\n }\n}\nexports.ZodNativeEnum = ZodNativeEnum;\nZodNativeEnum.create = (values, params) => {\n return new ZodNativeEnum({\n values: values,\n typeName: ZodFirstPartyTypeKind.ZodNativeEnum,\n ...processCreateParams(params),\n });\n};\nclass ZodPromise extends ZodType {\n unwrap() {\n return this._def.type;\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== util_1.ZodParsedType.promise &&\n ctx.common.async === false) {\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.promise,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n const promisified = ctx.parsedType === util_1.ZodParsedType.promise\n ? ctx.data\n : Promise.resolve(ctx.data);\n return (0, parseUtil_1.OK)(promisified.then((data) => {\n return this._def.type.parseAsync(data, {\n path: ctx.path,\n errorMap: ctx.common.contextualErrorMap,\n });\n }));\n }\n}\nexports.ZodPromise = ZodPromise;\nZodPromise.create = (schema, params) => {\n return new ZodPromise({\n type: schema,\n typeName: ZodFirstPartyTypeKind.ZodPromise,\n ...processCreateParams(params),\n });\n};\nclass ZodEffects extends ZodType {\n innerType() {\n return this._def.schema;\n }\n sourceType() {\n return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects\n ? this._def.schema.sourceType()\n : this._def.schema;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n const effect = this._def.effect || null;\n const checkCtx = {\n addIssue: (arg) => {\n (0, parseUtil_1.addIssueToContext)(ctx, arg);\n if (arg.fatal) {\n status.abort();\n }\n else {\n status.dirty();\n }\n },\n get path() {\n return ctx.path;\n },\n };\n checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);\n if (effect.type === \"preprocess\") {\n const processed = effect.transform(ctx.data, checkCtx);\n if (ctx.common.issues.length) {\n return {\n status: \"dirty\",\n value: ctx.data,\n };\n }\n if (ctx.common.async) {\n return Promise.resolve(processed).then((processed) => {\n return this._def.schema._parseAsync({\n data: processed,\n path: ctx.path,\n parent: ctx,\n });\n });\n }\n else {\n return this._def.schema._parseSync({\n data: processed,\n path: ctx.path,\n parent: ctx,\n });\n }\n }\n if (effect.type === \"refinement\") {\n const executeRefinement = (acc\n // effect: RefinementEffect\n ) => {\n const result = effect.refinement(acc, checkCtx);\n if (ctx.common.async) {\n return Promise.resolve(result);\n }\n if (result instanceof Promise) {\n throw new Error(\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\");\n }\n return acc;\n };\n if (ctx.common.async === false) {\n const inner = this._def.schema._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (inner.status === \"aborted\")\n return parseUtil_1.INVALID;\n if (inner.status === \"dirty\")\n status.dirty();\n // return value is ignored\n executeRefinement(inner.value);\n return { status: status.value, value: inner.value };\n }\n else {\n return this._def.schema\n ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })\n .then((inner) => {\n if (inner.status === \"aborted\")\n return parseUtil_1.INVALID;\n if (inner.status === \"dirty\")\n status.dirty();\n return executeRefinement(inner.value).then(() => {\n return { status: status.value, value: inner.value };\n });\n });\n }\n }\n if (effect.type === \"transform\") {\n if (ctx.common.async === false) {\n const base = this._def.schema._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (!(0, parseUtil_1.isValid)(base))\n return base;\n const result = effect.transform(base.value, checkCtx);\n if (result instanceof Promise) {\n throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);\n }\n return { status: status.value, value: result };\n }\n else {\n return this._def.schema\n ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })\n .then((base) => {\n if (!(0, parseUtil_1.isValid)(base))\n return base;\n return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));\n });\n }\n }\n util_1.util.assertNever(effect);\n }\n}\nexports.ZodEffects = ZodEffects;\nexports.ZodTransformer = ZodEffects;\nZodEffects.create = (schema, effect, params) => {\n return new ZodEffects({\n schema,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect,\n ...processCreateParams(params),\n });\n};\nZodEffects.createWithPreprocess = (preprocess, schema, params) => {\n return new ZodEffects({\n schema,\n effect: { type: \"preprocess\", transform: preprocess },\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n ...processCreateParams(params),\n });\n};\nclass ZodOptional extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType === util_1.ZodParsedType.undefined) {\n return (0, parseUtil_1.OK)(undefined);\n }\n return this._def.innerType._parse(input);\n }\n unwrap() {\n return this._def.innerType;\n }\n}\nexports.ZodOptional = ZodOptional;\nZodOptional.create = (type, params) => {\n return new ZodOptional({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodOptional,\n ...processCreateParams(params),\n });\n};\nclass ZodNullable extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType === util_1.ZodParsedType.null) {\n return (0, parseUtil_1.OK)(null);\n }\n return this._def.innerType._parse(input);\n }\n unwrap() {\n return this._def.innerType;\n }\n}\nexports.ZodNullable = ZodNullable;\nZodNullable.create = (type, params) => {\n return new ZodNullable({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodNullable,\n ...processCreateParams(params),\n });\n};\nclass ZodDefault extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n let data = ctx.data;\n if (ctx.parsedType === util_1.ZodParsedType.undefined) {\n data = this._def.defaultValue();\n }\n return this._def.innerType._parse({\n data,\n path: ctx.path,\n parent: ctx,\n });\n }\n removeDefault() {\n return this._def.innerType;\n }\n}\nexports.ZodDefault = ZodDefault;\nZodDefault.create = (type, params) => {\n return new ZodDefault({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodDefault,\n defaultValue: typeof params.default === \"function\"\n ? params.default\n : () => params.default,\n ...processCreateParams(params),\n });\n};\nclass ZodCatch extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n // newCtx is used to not collect issues from inner types in ctx\n const newCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: [],\n },\n };\n const result = this._def.innerType._parse({\n data: newCtx.data,\n path: newCtx.path,\n parent: {\n ...newCtx,\n },\n });\n if ((0, parseUtil_1.isAsync)(result)) {\n return result.then((result) => {\n return {\n status: \"valid\",\n value: result.status === \"valid\"\n ? result.value\n : this._def.catchValue({\n get error() {\n return new ZodError_1.ZodError(newCtx.common.issues);\n },\n input: newCtx.data,\n }),\n };\n });\n }\n else {\n return {\n status: \"valid\",\n value: result.status === \"valid\"\n ? result.value\n : this._def.catchValue({\n get error() {\n return new ZodError_1.ZodError(newCtx.common.issues);\n },\n input: newCtx.data,\n }),\n };\n }\n }\n removeCatch() {\n return this._def.innerType;\n }\n}\nexports.ZodCatch = ZodCatch;\nZodCatch.create = (type, params) => {\n return new ZodCatch({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodCatch,\n catchValue: typeof params.catch === \"function\" ? params.catch : () => params.catch,\n ...processCreateParams(params),\n });\n};\nclass ZodNaN extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== util_1.ZodParsedType.nan) {\n const ctx = this._getOrReturnCtx(input);\n (0, parseUtil_1.addIssueToContext)(ctx, {\n code: ZodError_1.ZodIssueCode.invalid_type,\n expected: util_1.ZodParsedType.nan,\n received: ctx.parsedType,\n });\n return parseUtil_1.INVALID;\n }\n return { status: \"valid\", value: input.data };\n }\n}\nexports.ZodNaN = ZodNaN;\nZodNaN.create = (params) => {\n return new ZodNaN({\n typeName: ZodFirstPartyTypeKind.ZodNaN,\n ...processCreateParams(params),\n });\n};\nexports.BRAND = Symbol(\"zod_brand\");\nclass ZodBranded extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const data = ctx.data;\n return this._def.type._parse({\n data,\n path: ctx.path,\n parent: ctx,\n });\n }\n unwrap() {\n return this._def.type;\n }\n}\nexports.ZodBranded = ZodBranded;\nclass ZodPipeline extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.common.async) {\n const handleAsync = async () => {\n const inResult = await this._def.in._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (inResult.status === \"aborted\")\n return parseUtil_1.INVALID;\n if (inResult.status === \"dirty\") {\n status.dirty();\n return (0, parseUtil_1.DIRTY)(inResult.value);\n }\n else {\n return this._def.out._parseAsync({\n data: inResult.value,\n path: ctx.path,\n parent: ctx,\n });\n }\n };\n return handleAsync();\n }\n else {\n const inResult = this._def.in._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (inResult.status === \"aborted\")\n return parseUtil_1.INVALID;\n if (inResult.status === \"dirty\") {\n status.dirty();\n return {\n status: \"dirty\",\n value: inResult.value,\n };\n }\n else {\n return this._def.out._parseSync({\n data: inResult.value,\n path: ctx.path,\n parent: ctx,\n });\n }\n }\n }\n static create(a, b) {\n return new ZodPipeline({\n in: a,\n out: b,\n typeName: ZodFirstPartyTypeKind.ZodPipeline,\n });\n }\n}\nexports.ZodPipeline = ZodPipeline;\nclass ZodReadonly extends ZodType {\n _parse(input) {\n const result = this._def.innerType._parse(input);\n if ((0, parseUtil_1.isValid)(result)) {\n result.value = Object.freeze(result.value);\n }\n return result;\n }\n}\nexports.ZodReadonly = ZodReadonly;\nZodReadonly.create = (type, params) => {\n return new ZodReadonly({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodReadonly,\n ...processCreateParams(params),\n });\n};\nconst custom = (check, params = {}, \n/**\n * @deprecated\n *\n * Pass `fatal` into the params object instead:\n *\n * ```ts\n * z.string().custom((val) => val.length > 5, { fatal: false })\n * ```\n *\n */\nfatal) => {\n if (check)\n return ZodAny.create().superRefine((data, ctx) => {\n var _a, _b;\n if (!check(data)) {\n const p = typeof params === \"function\"\n ? params(data)\n : typeof params === \"string\"\n ? { message: params }\n : params;\n const _fatal = (_b = (_a = p.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;\n const p2 = typeof p === \"string\" ? { message: p } : p;\n ctx.addIssue({ code: \"custom\", ...p2, fatal: _fatal });\n }\n });\n return ZodAny.create();\n};\nexports.custom = custom;\nexports.late = {\n object: ZodObject.lazycreate,\n};\nvar ZodFirstPartyTypeKind;\n(function (ZodFirstPartyTypeKind) {\n ZodFirstPartyTypeKind[\"ZodString\"] = \"ZodString\";\n ZodFirstPartyTypeKind[\"ZodNumber\"] = \"ZodNumber\";\n ZodFirstPartyTypeKind[\"ZodNaN\"] = \"ZodNaN\";\n ZodFirstPartyTypeKind[\"ZodBigInt\"] = \"ZodBigInt\";\n ZodFirstPartyTypeKind[\"ZodBoolean\"] = \"ZodBoolean\";\n ZodFirstPartyTypeKind[\"ZodDate\"] = \"ZodDate\";\n ZodFirstPartyTypeKind[\"ZodSymbol\"] = \"ZodSymbol\";\n ZodFirstPartyTypeKind[\"ZodUndefined\"] = \"ZodUndefined\";\n ZodFirstPartyTypeKind[\"ZodNull\"] = \"ZodNull\";\n ZodFirstPartyTypeKind[\"ZodAny\"] = \"ZodAny\";\n ZodFirstPartyTypeKind[\"ZodUnknown\"] = \"ZodUnknown\";\n ZodFirstPartyTypeKind[\"ZodNever\"] = \"ZodNever\";\n ZodFirstPartyTypeKind[\"ZodVoid\"] = \"ZodVoid\";\n ZodFirstPartyTypeKind[\"ZodArray\"] = \"ZodArray\";\n ZodFirstPartyTypeKind[\"ZodObject\"] = \"ZodObject\";\n ZodFirstPartyTypeKind[\"ZodUnion\"] = \"ZodUnion\";\n ZodFirstPartyTypeKind[\"ZodDiscriminatedUnion\"] = \"ZodDiscriminatedUnion\";\n ZodFirstPartyTypeKind[\"ZodIntersection\"] = \"ZodIntersection\";\n ZodFirstPartyTypeKind[\"ZodTuple\"] = \"ZodTuple\";\n ZodFirstPartyTypeKind[\"ZodRecord\"] = \"ZodRecord\";\n ZodFirstPartyTypeKind[\"ZodMap\"] = \"ZodMap\";\n ZodFirstPartyTypeKind[\"ZodSet\"] = \"ZodSet\";\n ZodFirstPartyTypeKind[\"ZodFunction\"] = \"ZodFunction\";\n ZodFirstPartyTypeKind[\"ZodLazy\"] = \"ZodLazy\";\n ZodFirstPartyTypeKind[\"ZodLiteral\"] = \"ZodLiteral\";\n ZodFirstPartyTypeKind[\"ZodEnum\"] = \"ZodEnum\";\n ZodFirstPartyTypeKind[\"ZodEffects\"] = \"ZodEffects\";\n ZodFirstPartyTypeKind[\"ZodNativeEnum\"] = \"ZodNativeEnum\";\n ZodFirstPartyTypeKind[\"ZodOptional\"] = \"ZodOptional\";\n ZodFirstPartyTypeKind[\"ZodNullable\"] = \"ZodNullable\";\n ZodFirstPartyTypeKind[\"ZodDefault\"] = \"ZodDefault\";\n ZodFirstPartyTypeKind[\"ZodCatch\"] = \"ZodCatch\";\n ZodFirstPartyTypeKind[\"ZodPromise\"] = \"ZodPromise\";\n ZodFirstPartyTypeKind[\"ZodBranded\"] = \"ZodBranded\";\n ZodFirstPartyTypeKind[\"ZodPipeline\"] = \"ZodPipeline\";\n ZodFirstPartyTypeKind[\"ZodReadonly\"] = \"ZodReadonly\";\n})(ZodFirstPartyTypeKind = exports.ZodFirstPartyTypeKind || (exports.ZodFirstPartyTypeKind = {}));\n// requires TS 4.4+\nclass Class {\n constructor(..._) { }\n}\nconst instanceOfType = (\n// const instanceOfType = any>(\ncls, params = {\n message: `Input not instance of ${cls.name}`,\n}) => (0, exports.custom)((data) => data instanceof cls, params);\nexports.instanceof = instanceOfType;\nconst stringType = ZodString.create;\nexports.string = stringType;\nconst numberType = ZodNumber.create;\nexports.number = numberType;\nconst nanType = ZodNaN.create;\nexports.nan = nanType;\nconst bigIntType = ZodBigInt.create;\nexports.bigint = bigIntType;\nconst booleanType = ZodBoolean.create;\nexports.boolean = booleanType;\nconst dateType = ZodDate.create;\nexports.date = dateType;\nconst symbolType = ZodSymbol.create;\nexports.symbol = symbolType;\nconst undefinedType = ZodUndefined.create;\nexports.undefined = undefinedType;\nconst nullType = ZodNull.create;\nexports.null = nullType;\nconst anyType = ZodAny.create;\nexports.any = anyType;\nconst unknownType = ZodUnknown.create;\nexports.unknown = unknownType;\nconst neverType = ZodNever.create;\nexports.never = neverType;\nconst voidType = ZodVoid.create;\nexports.void = voidType;\nconst arrayType = ZodArray.create;\nexports.array = arrayType;\nconst objectType = ZodObject.create;\nexports.object = objectType;\nconst strictObjectType = ZodObject.strictCreate;\nexports.strictObject = strictObjectType;\nconst unionType = ZodUnion.create;\nexports.union = unionType;\nconst discriminatedUnionType = ZodDiscriminatedUnion.create;\nexports.discriminatedUnion = discriminatedUnionType;\nconst intersectionType = ZodIntersection.create;\nexports.intersection = intersectionType;\nconst tupleType = ZodTuple.create;\nexports.tuple = tupleType;\nconst recordType = ZodRecord.create;\nexports.record = recordType;\nconst mapType = ZodMap.create;\nexports.map = mapType;\nconst setType = ZodSet.create;\nexports.set = setType;\nconst functionType = ZodFunction.create;\nexports.function = functionType;\nconst lazyType = ZodLazy.create;\nexports.lazy = lazyType;\nconst literalType = ZodLiteral.create;\nexports.literal = literalType;\nconst enumType = ZodEnum.create;\nexports.enum = enumType;\nconst nativeEnumType = ZodNativeEnum.create;\nexports.nativeEnum = nativeEnumType;\nconst promiseType = ZodPromise.create;\nexports.promise = promiseType;\nconst effectsType = ZodEffects.create;\nexports.effect = effectsType;\nexports.transformer = effectsType;\nconst optionalType = ZodOptional.create;\nexports.optional = optionalType;\nconst nullableType = ZodNullable.create;\nexports.nullable = nullableType;\nconst preprocessType = ZodEffects.createWithPreprocess;\nexports.preprocess = preprocessType;\nconst pipelineType = ZodPipeline.create;\nexports.pipeline = pipelineType;\nconst ostring = () => stringType().optional();\nexports.ostring = ostring;\nconst onumber = () => numberType().optional();\nexports.onumber = onumber;\nconst oboolean = () => booleanType().optional();\nexports.oboolean = oboolean;\nexports.coerce = {\n string: ((arg) => ZodString.create({ ...arg, coerce: true })),\n number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),\n boolean: ((arg) => ZodBoolean.create({\n ...arg,\n coerce: true,\n })),\n bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),\n date: ((arg) => ZodDate.create({ ...arg, coerce: true })),\n};\nexports.NEVER = parseUtil_1.INVALID;\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./errors\"), exports);\n__exportStar(require(\"./helpers/parseUtil\"), exports);\n__exportStar(require(\"./helpers/typeAliases\"), exports);\n__exportStar(require(\"./helpers/util\"), exports);\n__exportStar(require(\"./types\"), exports);\n__exportStar(require(\"./ZodError\"), exports);\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.z = void 0;\nconst z = __importStar(require(\"./external\"));\nexports.z = z;\n__exportStar(require(\"./external\"), exports);\nexports.default = z;\n","\"use strict\";\n/**\n * Copyright 2024 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Permissions = exports.PermissionsCommandSchema = void 0;\n/**\n * THIS FILE IS AUTOGENERATED. Run `npm run bidi-types` to regenerate.\n * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs\n */\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck Some types may be circular.\nconst zod_1 = __importDefault(require(\"zod\"));\nexports.PermissionsCommandSchema = zod_1.default.lazy(() => Permissions.SetPermissionSchema);\nvar Permissions;\n(function (Permissions) {\n Permissions.PermissionDescriptorSchema = zod_1.default.lazy(() => zod_1.default.object({\n name: zod_1.default.string(),\n }));\n})(Permissions || (exports.Permissions = Permissions = {}));\n(function (Permissions) {\n Permissions.PermissionStateSchema = zod_1.default.lazy(() => zod_1.default.enum(['granted', 'denied', 'prompt']));\n})(Permissions || (exports.Permissions = Permissions = {}));\n(function (Permissions) {\n Permissions.SetPermissionSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('permissions.setPermission'),\n params: Permissions.SetPermissionParametersSchema,\n }));\n})(Permissions || (exports.Permissions = Permissions = {}));\n(function (Permissions) {\n Permissions.SetPermissionParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n descriptor: Permissions.PermissionDescriptorSchema,\n state: Permissions.PermissionStateSchema,\n origin: zod_1.default.string(),\n }));\n})(Permissions || (exports.Permissions = Permissions = {}));\n//# sourceMappingURL=webdriver-bidi-permissions.js.map","\"use strict\";\n/**\n * Copyright 2024 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Input = exports.InputCommandSchema = exports.Log = exports.LogEventSchema = exports.Storage = exports.StorageResultSchema = exports.StorageCommandSchema = exports.Script = exports.ScriptResultSchema = exports.ScriptCommandSchema = exports.ScriptEventSchema = exports.Network = exports.NetworkResultSchema = exports.NetworkEventSchema = exports.NetworkCommandSchema = exports.BrowsingContext = exports.BrowsingContextResultSchema = exports.BrowsingContextEventSchema = exports.BrowsingContextCommandSchema = exports.Browser = exports.BrowserResultSchema = exports.BrowserCommandSchema = exports.SessionResultSchema = exports.Session = exports.SessionCommandSchema = exports.ErrorCodeSchema = exports.JsUintSchema = exports.JsIntSchema = exports.ExtensibleSchema = exports.EmptyResultSchema = exports.ErrorResponseSchema = exports.MessageSchema = exports.EmptyParamsSchema = exports.ResultDataSchema = exports.CommandDataSchema = exports.EventDataSchema = exports.CommandResponseSchema = exports.CommandSchema = exports.EventSchema = void 0;\n/**\n * THIS FILE IS AUTOGENERATED. Run `npm run bidi-types` to regenerate.\n * @see https://github.com/w3c/webdriver-bidi/blob/master/index.bs\n */\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck Some types may be circular.\nconst zod_1 = __importDefault(require(\"zod\"));\nexports.EventSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n type: zod_1.default.literal('event'),\n})\n .and(exports.EventDataSchema)\n .and(exports.ExtensibleSchema));\nexports.CommandSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n id: exports.JsUintSchema,\n})\n .and(exports.CommandDataSchema)\n .and(exports.ExtensibleSchema));\nexports.CommandResponseSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n type: zod_1.default.literal('success'),\n id: exports.JsUintSchema,\n result: exports.ResultDataSchema,\n})\n .and(exports.ExtensibleSchema));\nexports.EventDataSchema = zod_1.default.lazy(() => zod_1.default.union([\n exports.BrowsingContextEventSchema,\n exports.LogEventSchema,\n exports.NetworkEventSchema,\n exports.ScriptEventSchema,\n]));\nexports.CommandDataSchema = zod_1.default.lazy(() => zod_1.default.union([\n exports.BrowserCommandSchema,\n exports.BrowsingContextCommandSchema,\n exports.InputCommandSchema,\n exports.NetworkCommandSchema,\n exports.ScriptCommandSchema,\n exports.SessionCommandSchema,\n exports.StorageCommandSchema,\n]));\nexports.ResultDataSchema = zod_1.default.lazy(() => zod_1.default.union([\n exports.BrowsingContextResultSchema,\n exports.EmptyResultSchema,\n exports.NetworkResultSchema,\n exports.ScriptResultSchema,\n exports.SessionResultSchema,\n exports.StorageResultSchema,\n]));\nexports.EmptyParamsSchema = zod_1.default.lazy(() => exports.ExtensibleSchema);\nexports.MessageSchema = zod_1.default.lazy(() => zod_1.default.union([exports.CommandResponseSchema, exports.ErrorResponseSchema, exports.EventSchema]));\nexports.ErrorResponseSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n type: zod_1.default.literal('error'),\n id: zod_1.default.union([exports.JsUintSchema, zod_1.default.null()]),\n error: exports.ErrorCodeSchema,\n message: zod_1.default.string(),\n stacktrace: zod_1.default.string().optional(),\n})\n .and(exports.ExtensibleSchema));\nexports.EmptyResultSchema = zod_1.default.lazy(() => exports.ExtensibleSchema);\nexports.ExtensibleSchema = zod_1.default.lazy(() => zod_1.default.record(zod_1.default.string(), zod_1.default.any()));\nexports.JsIntSchema = zod_1.default.lazy(() => zod_1.default.number().int().gte(-9007199254740991).lte(9007199254740991));\nexports.JsUintSchema = zod_1.default.lazy(() => zod_1.default.number().int().nonnegative().gte(0).lte(9007199254740991));\nexports.ErrorCodeSchema = zod_1.default.lazy(() => zod_1.default.enum([\n 'invalid argument',\n 'invalid session id',\n 'move target out of bounds',\n 'no such alert',\n 'no such element',\n 'no such frame',\n 'no such handle',\n 'no such history entry',\n 'no such intercept',\n 'no such node',\n 'no such request',\n 'no such script',\n 'no such storage partition',\n 'no such user context',\n 'session not created',\n 'unable to capture screen',\n 'unable to close browser',\n 'unable to set cookie',\n 'unable to set file input',\n 'underspecified storage partition',\n 'unknown command',\n 'unknown error',\n 'unsupported operation',\n]));\nexports.SessionCommandSchema = zod_1.default.lazy(() => zod_1.default.union([\n Session.EndSchema,\n Session.NewSchema,\n Session.StatusSchema,\n Session.SubscribeSchema,\n Session.UnsubscribeSchema,\n]));\nvar Session;\n(function (Session) {\n Session.ProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default.union([\n Session.AutodetectProxyConfigurationSchema,\n Session.DirectProxyConfigurationSchema,\n Session.ManualProxyConfigurationSchema,\n Session.PacProxyConfigurationSchema,\n Session.SystemProxyConfigurationSchema,\n zod_1.default.object({}),\n ]));\n})(Session || (exports.Session = Session = {}));\nexports.SessionResultSchema = zod_1.default.lazy(() => zod_1.default.union([Session.NewResultSchema, Session.StatusResultSchema]));\n(function (Session) {\n Session.CapabilitiesRequestSchema = zod_1.default.lazy(() => zod_1.default.object({\n alwaysMatch: Session.CapabilityRequestSchema.optional(),\n firstMatch: zod_1.default.array(Session.CapabilityRequestSchema).optional(),\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.CapabilityRequestSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n acceptInsecureCerts: zod_1.default.boolean().optional(),\n browserName: zod_1.default.string().optional(),\n browserVersion: zod_1.default.string().optional(),\n platformName: zod_1.default.string().optional(),\n proxy: Session.ProxyConfigurationSchema.optional(),\n webSocketUrl: zod_1.default.boolean().optional(),\n })\n .and(exports.ExtensibleSchema));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.AutodetectProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n proxyType: zod_1.default.literal('autodetect'),\n })\n .and(exports.ExtensibleSchema));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.DirectProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n proxyType: zod_1.default.literal('direct'),\n })\n .and(exports.ExtensibleSchema));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.ManualProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n proxyType: zod_1.default.literal('manual'),\n ftpProxy: zod_1.default.string().optional(),\n httpProxy: zod_1.default.string().optional(),\n sslProxy: zod_1.default.string().optional(),\n })\n .and(Session.SocksProxyConfigurationSchema.or(zod_1.default.object({})))\n .and(zod_1.default.object({\n noProxy: zod_1.default.array(zod_1.default.string()).optional(),\n }))\n .and(exports.ExtensibleSchema));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.SocksProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default.object({\n socksProxy: zod_1.default.string(),\n socksVersion: zod_1.default.number().int().nonnegative().gte(0).lte(255),\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.PacProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n proxyType: zod_1.default.literal('pac'),\n proxyAutoconfigUrl: zod_1.default.string(),\n })\n .and(exports.ExtensibleSchema));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.SystemProxyConfigurationSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n proxyType: zod_1.default.literal('system'),\n })\n .and(exports.ExtensibleSchema));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.SubscriptionRequestSchema = zod_1.default.lazy(() => zod_1.default.object({\n events: zod_1.default.array(zod_1.default.string()),\n contexts: zod_1.default.array(BrowsingContext.BrowsingContextSchema).optional(),\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.StatusSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('session.status'),\n params: exports.EmptyParamsSchema,\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.StatusResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n ready: zod_1.default.boolean(),\n message: zod_1.default.string(),\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.NewSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('session.new'),\n params: Session.NewParametersSchema,\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.NewParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n capabilities: Session.CapabilitiesRequestSchema,\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.NewResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n sessionId: zod_1.default.string(),\n capabilities: zod_1.default\n .object({\n acceptInsecureCerts: zod_1.default.boolean(),\n browserName: zod_1.default.string(),\n browserVersion: zod_1.default.string(),\n platformName: zod_1.default.string(),\n setWindowRect: zod_1.default.boolean(),\n proxy: Session.ProxyConfigurationSchema.optional(),\n webSocketUrl: zod_1.default.string().optional(),\n })\n .and(exports.ExtensibleSchema),\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.EndSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('session.end'),\n params: exports.EmptyParamsSchema,\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.SubscribeSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('session.subscribe'),\n params: Session.SubscriptionRequestSchema,\n }));\n})(Session || (exports.Session = Session = {}));\n(function (Session) {\n Session.UnsubscribeSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('session.unsubscribe'),\n params: Session.SubscriptionRequestSchema,\n }));\n})(Session || (exports.Session = Session = {}));\nexports.BrowserCommandSchema = zod_1.default.lazy(() => zod_1.default.union([\n Browser.CloseSchema,\n Browser.CreateUserContextSchema,\n Browser.GetUserContextsSchema,\n Browser.RemoveUserContextSchema,\n]));\nexports.BrowserResultSchema = zod_1.default.lazy(() => zod_1.default.union([\n Browser.CreateUserContextResultSchema,\n Browser.GetUserContextsResultSchema,\n]));\nvar Browser;\n(function (Browser) {\n Browser.UserContextSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Browser || (exports.Browser = Browser = {}));\n(function (Browser) {\n Browser.UserContextInfoSchema = zod_1.default.lazy(() => zod_1.default.object({\n userContext: Browser.UserContextSchema,\n }));\n})(Browser || (exports.Browser = Browser = {}));\n(function (Browser) {\n Browser.CloseSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browser.close'),\n params: exports.EmptyParamsSchema,\n }));\n})(Browser || (exports.Browser = Browser = {}));\n(function (Browser) {\n Browser.CreateUserContextSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browser.createUserContext'),\n params: exports.EmptyParamsSchema,\n }));\n})(Browser || (exports.Browser = Browser = {}));\n(function (Browser) {\n Browser.CreateUserContextResultSchema = zod_1.default.lazy(() => Browser.UserContextInfoSchema);\n})(Browser || (exports.Browser = Browser = {}));\n(function (Browser) {\n Browser.GetUserContextsSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browser.getUserContexts'),\n params: exports.EmptyParamsSchema,\n }));\n})(Browser || (exports.Browser = Browser = {}));\n(function (Browser) {\n Browser.GetUserContextsResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n userContexts: zod_1.default.array(Browser.UserContextInfoSchema).min(1),\n }));\n})(Browser || (exports.Browser = Browser = {}));\n(function (Browser) {\n Browser.RemoveUserContextSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browser.removeUserContext'),\n params: zod_1.default.object({\n userContext: Browser.UserContextSchema,\n }),\n }));\n})(Browser || (exports.Browser = Browser = {}));\nexports.BrowsingContextCommandSchema = zod_1.default.lazy(() => zod_1.default.union([\n BrowsingContext.ActivateSchema,\n BrowsingContext.CaptureScreenshotSchema,\n BrowsingContext.CloseSchema,\n BrowsingContext.CreateSchema,\n BrowsingContext.GetTreeSchema,\n BrowsingContext.HandleUserPromptSchema,\n BrowsingContext.LocateNodesSchema,\n BrowsingContext.NavigateSchema,\n BrowsingContext.PrintSchema,\n BrowsingContext.ReloadSchema,\n BrowsingContext.SetViewportSchema,\n BrowsingContext.TraverseHistorySchema,\n]));\nexports.BrowsingContextEventSchema = zod_1.default.lazy(() => zod_1.default.union([\n BrowsingContext.ContextCreatedSchema,\n BrowsingContext.ContextDestroyedSchema,\n BrowsingContext.DomContentLoadedSchema,\n BrowsingContext.DownloadWillBeginSchema,\n BrowsingContext.FragmentNavigatedSchema,\n BrowsingContext.LoadSchema,\n BrowsingContext.NavigationAbortedSchema,\n BrowsingContext.NavigationFailedSchema,\n BrowsingContext.NavigationStartedSchema,\n BrowsingContext.UserPromptClosedSchema,\n BrowsingContext.UserPromptOpenedSchema,\n]));\nexports.BrowsingContextResultSchema = zod_1.default.lazy(() => zod_1.default.union([\n BrowsingContext.CaptureScreenshotResultSchema,\n BrowsingContext.CreateResultSchema,\n BrowsingContext.GetTreeResultSchema,\n BrowsingContext.LocateNodesResultSchema,\n BrowsingContext.NavigateResultSchema,\n BrowsingContext.PrintResultSchema,\n BrowsingContext.TraverseHistoryResultSchema,\n]));\nvar BrowsingContext;\n(function (BrowsingContext) {\n BrowsingContext.BrowsingContextSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.InfoListSchema = zod_1.default.lazy(() => zod_1.default.array(BrowsingContext.InfoSchema));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.InfoSchema = zod_1.default.lazy(() => zod_1.default.object({\n children: zod_1.default.union([BrowsingContext.InfoListSchema, zod_1.default.null()]),\n context: BrowsingContext.BrowsingContextSchema,\n url: zod_1.default.string(),\n userContext: Browser.UserContextSchema,\n parent: zod_1.default\n .union([BrowsingContext.BrowsingContextSchema, zod_1.default.null()])\n .optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.LocatorSchema = zod_1.default.lazy(() => zod_1.default.union([\n BrowsingContext.CssLocatorSchema,\n BrowsingContext.InnerTextLocatorSchema,\n BrowsingContext.XPathLocatorSchema,\n ]));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CssLocatorSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('css'),\n value: zod_1.default.string(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.InnerTextLocatorSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('innerText'),\n value: zod_1.default.string(),\n ignoreCase: zod_1.default.boolean().optional(),\n matchType: zod_1.default.enum(['full', 'partial']).optional(),\n maxDepth: exports.JsUintSchema.optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.XPathLocatorSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('xpath'),\n value: zod_1.default.string(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigationSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigationInfoSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n navigation: zod_1.default.union([BrowsingContext.NavigationSchema, zod_1.default.null()]),\n timestamp: exports.JsUintSchema,\n url: zod_1.default.string(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ReadinessStateSchema = zod_1.default.lazy(() => zod_1.default.enum(['none', 'interactive', 'complete']));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ActivateSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.activate'),\n params: BrowsingContext.ActivateParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ActivateParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CaptureScreenshotParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n origin: zod_1.default.enum(['viewport', 'document']).default('viewport').optional(),\n format: BrowsingContext.ImageFormatSchema.optional(),\n clip: BrowsingContext.ClipRectangleSchema.optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CaptureScreenshotSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.captureScreenshot'),\n params: BrowsingContext.CaptureScreenshotParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ImageFormatSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.string(),\n quality: zod_1.default.number().gte(0).lte(1).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ClipRectangleSchema = zod_1.default.lazy(() => zod_1.default.union([\n BrowsingContext.BoxClipRectangleSchema,\n BrowsingContext.ElementClipRectangleSchema,\n ]));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ElementClipRectangleSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('element'),\n element: Script.SharedReferenceSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.BoxClipRectangleSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('box'),\n x: zod_1.default.number(),\n y: zod_1.default.number(),\n width: zod_1.default.number(),\n height: zod_1.default.number(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CaptureScreenshotResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n data: zod_1.default.string(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CloseSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.close'),\n params: BrowsingContext.CloseParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CloseParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n promptUnload: zod_1.default.boolean().default(false).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CreateSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.create'),\n params: BrowsingContext.CreateParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CreateTypeSchema = zod_1.default.lazy(() => zod_1.default.enum(['tab', 'window']));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CreateParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: BrowsingContext.CreateTypeSchema,\n referenceContext: BrowsingContext.BrowsingContextSchema.optional(),\n background: zod_1.default.boolean().default(false).optional(),\n userContext: zod_1.default.union([Browser.UserContextSchema, zod_1.default.null()]).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.CreateResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.GetTreeSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.getTree'),\n params: BrowsingContext.GetTreeParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.GetTreeParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n maxDepth: exports.JsUintSchema.optional(),\n root: BrowsingContext.BrowsingContextSchema.optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.GetTreeResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n contexts: BrowsingContext.InfoListSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.HandleUserPromptSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.handleUserPrompt'),\n params: BrowsingContext.HandleUserPromptParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.HandleUserPromptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n accept: zod_1.default.boolean().optional(),\n userText: zod_1.default.string().optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.LocateNodesParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n locator: BrowsingContext.LocatorSchema,\n maxNodeCount: exports.JsUintSchema.gte(1).optional(),\n ownership: Script.ResultOwnershipSchema.optional(),\n sandbox: zod_1.default.string().optional(),\n serializationOptions: Script.SerializationOptionsSchema.optional(),\n startNodes: zod_1.default.array(Script.SharedReferenceSchema).min(1).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.LocateNodesSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.locateNodes'),\n params: BrowsingContext.LocateNodesParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.LocateNodesResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n nodes: zod_1.default.array(Script.NodeRemoteValueSchema),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigateSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.navigate'),\n params: BrowsingContext.NavigateParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigateParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n url: zod_1.default.string(),\n wait: BrowsingContext.ReadinessStateSchema.optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigateResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n navigation: zod_1.default.union([BrowsingContext.NavigationSchema, zod_1.default.null()]),\n url: zod_1.default.string(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.PrintSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.print'),\n params: BrowsingContext.PrintParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.PrintParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n background: zod_1.default.boolean().default(false).optional(),\n margin: BrowsingContext.PrintMarginParametersSchema.optional(),\n orientation: zod_1.default\n .enum(['portrait', 'landscape'])\n .default('portrait')\n .optional(),\n page: BrowsingContext.PrintPageParametersSchema.optional(),\n pageRanges: zod_1.default.array(zod_1.default.union([exports.JsUintSchema, zod_1.default.string()])).optional(),\n scale: zod_1.default.number().gte(0.1).lte(2).default(1).optional(),\n shrinkToFit: zod_1.default.boolean().default(true).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.PrintMarginParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n bottom: zod_1.default.number().gte(0).default(1).optional(),\n left: zod_1.default.number().gte(0).default(1).optional(),\n right: zod_1.default.number().gte(0).default(1).optional(),\n top: zod_1.default.number().gte(0).default(1).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.PrintPageParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n height: zod_1.default.number().gte(0.0352).default(27.94).optional(),\n width: zod_1.default.number().gte(0.0352).default(21.59).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.PrintResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n data: zod_1.default.string(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ReloadSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.reload'),\n params: BrowsingContext.ReloadParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ReloadParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n ignoreCache: zod_1.default.boolean().optional(),\n wait: BrowsingContext.ReadinessStateSchema.optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.SetViewportSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.setViewport'),\n params: BrowsingContext.SetViewportParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.SetViewportParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n viewport: zod_1.default.union([BrowsingContext.ViewportSchema, zod_1.default.null()]).optional(),\n devicePixelRatio: zod_1.default.union([zod_1.default.number().gt(0), zod_1.default.null()]).optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ViewportSchema = zod_1.default.lazy(() => zod_1.default.object({\n width: exports.JsUintSchema,\n height: exports.JsUintSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.TraverseHistorySchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.traverseHistory'),\n params: BrowsingContext.TraverseHistoryParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.TraverseHistoryParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n delta: exports.JsIntSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.TraverseHistoryResultSchema = zod_1.default.lazy(() => zod_1.default.object({}));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ContextCreatedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.contextCreated'),\n params: BrowsingContext.InfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.ContextDestroyedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.contextDestroyed'),\n params: BrowsingContext.InfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigationStartedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.navigationStarted'),\n params: BrowsingContext.NavigationInfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.FragmentNavigatedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.fragmentNavigated'),\n params: BrowsingContext.NavigationInfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.DomContentLoadedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.domContentLoaded'),\n params: BrowsingContext.NavigationInfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.LoadSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.load'),\n params: BrowsingContext.NavigationInfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.DownloadWillBeginSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.downloadWillBegin'),\n params: BrowsingContext.NavigationInfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigationAbortedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.navigationAborted'),\n params: BrowsingContext.NavigationInfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.NavigationFailedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.navigationFailed'),\n params: BrowsingContext.NavigationInfoSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.UserPromptClosedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.userPromptClosed'),\n params: BrowsingContext.UserPromptClosedParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.UserPromptClosedParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n accepted: zod_1.default.boolean(),\n userText: zod_1.default.string().optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.UserPromptOpenedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('browsingContext.userPromptOpened'),\n params: BrowsingContext.UserPromptOpenedParametersSchema,\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n(function (BrowsingContext) {\n BrowsingContext.UserPromptOpenedParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n type: zod_1.default.enum(['alert', 'confirm', 'prompt', 'beforeunload']),\n message: zod_1.default.string(),\n defaultValue: zod_1.default.string().optional(),\n }));\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\nexports.NetworkCommandSchema = zod_1.default.lazy(() => zod_1.default.union([\n Network.AddInterceptSchema,\n Network.ContinueRequestSchema,\n Network.ContinueResponseSchema,\n Network.ContinueWithAuthSchema,\n Network.FailRequestSchema,\n Network.ProvideResponseSchema,\n Network.RemoveInterceptSchema,\n]));\nexports.NetworkEventSchema = zod_1.default.lazy(() => zod_1.default.union([\n Network.AuthRequiredSchema,\n Network.BeforeRequestSentSchema,\n Network.FetchErrorSchema,\n Network.ResponseCompletedSchema,\n Network.ResponseStartedSchema,\n]));\nexports.NetworkResultSchema = zod_1.default.lazy(() => Network.AddInterceptResultSchema);\nvar Network;\n(function (Network) {\n Network.AuthChallengeSchema = zod_1.default.lazy(() => zod_1.default.object({\n scheme: zod_1.default.string(),\n realm: zod_1.default.string(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.AuthCredentialsSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('password'),\n username: zod_1.default.string(),\n password: zod_1.default.string(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.BaseParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: zod_1.default.union([BrowsingContext.BrowsingContextSchema, zod_1.default.null()]),\n isBlocked: zod_1.default.boolean(),\n navigation: zod_1.default.union([BrowsingContext.NavigationSchema, zod_1.default.null()]),\n redirectCount: exports.JsUintSchema,\n request: Network.RequestDataSchema,\n timestamp: exports.JsUintSchema,\n intercepts: zod_1.default.array(Network.InterceptSchema).min(1).optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.BytesValueSchema = zod_1.default.lazy(() => zod_1.default.union([Network.StringValueSchema, Network.Base64ValueSchema]));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.StringValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('string'),\n value: zod_1.default.string(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.Base64ValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('base64'),\n value: zod_1.default.string(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.SameSiteSchema = zod_1.default.lazy(() => zod_1.default.enum(['strict', 'lax', 'none']));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.CookieSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n name: zod_1.default.string(),\n value: Network.BytesValueSchema,\n domain: zod_1.default.string(),\n path: zod_1.default.string(),\n size: exports.JsUintSchema,\n httpOnly: zod_1.default.boolean(),\n secure: zod_1.default.boolean(),\n sameSite: Network.SameSiteSchema,\n expiry: exports.JsUintSchema.optional(),\n })\n .and(exports.ExtensibleSchema));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.CookieHeaderSchema = zod_1.default.lazy(() => zod_1.default.object({\n name: zod_1.default.string(),\n value: Network.BytesValueSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.FetchTimingInfoSchema = zod_1.default.lazy(() => zod_1.default.object({\n timeOrigin: zod_1.default.number(),\n requestTime: zod_1.default.number(),\n redirectStart: zod_1.default.number(),\n redirectEnd: zod_1.default.number(),\n fetchStart: zod_1.default.number(),\n dnsStart: zod_1.default.number(),\n dnsEnd: zod_1.default.number(),\n connectStart: zod_1.default.number(),\n connectEnd: zod_1.default.number(),\n tlsStart: zod_1.default.number(),\n requestStart: zod_1.default.number(),\n responseStart: zod_1.default.number(),\n responseEnd: zod_1.default.number(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.HeaderSchema = zod_1.default.lazy(() => zod_1.default.object({\n name: zod_1.default.string(),\n value: Network.BytesValueSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.InitiatorSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.enum(['parser', 'script', 'preflight', 'other']),\n columnNumber: exports.JsUintSchema.optional(),\n lineNumber: exports.JsUintSchema.optional(),\n stackTrace: Script.StackTraceSchema.optional(),\n request: Network.RequestSchema.optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.InterceptSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.RequestSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.RequestDataSchema = zod_1.default.lazy(() => zod_1.default.object({\n request: Network.RequestSchema,\n url: zod_1.default.string(),\n method: zod_1.default.string(),\n headers: zod_1.default.array(Network.HeaderSchema),\n cookies: zod_1.default.array(Network.CookieSchema),\n headersSize: exports.JsUintSchema,\n bodySize: zod_1.default.union([exports.JsUintSchema, zod_1.default.null()]),\n timings: Network.FetchTimingInfoSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ResponseContentSchema = zod_1.default.lazy(() => zod_1.default.object({\n size: exports.JsUintSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ResponseDataSchema = zod_1.default.lazy(() => zod_1.default.object({\n url: zod_1.default.string(),\n protocol: zod_1.default.string(),\n status: exports.JsUintSchema,\n statusText: zod_1.default.string(),\n fromCache: zod_1.default.boolean(),\n headers: zod_1.default.array(Network.HeaderSchema),\n mimeType: zod_1.default.string(),\n bytesReceived: exports.JsUintSchema,\n headersSize: zod_1.default.union([exports.JsUintSchema, zod_1.default.null()]),\n bodySize: zod_1.default.union([exports.JsUintSchema, zod_1.default.null()]),\n content: Network.ResponseContentSchema,\n authChallenge: Network.AuthChallengeSchema.optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.SetCookieHeaderSchema = zod_1.default.lazy(() => zod_1.default.object({\n name: zod_1.default.string(),\n value: Network.BytesValueSchema,\n domain: zod_1.default.string().optional(),\n httpOnly: zod_1.default.boolean().optional(),\n expiry: zod_1.default.string().optional(),\n maxAge: exports.JsIntSchema.optional(),\n path: zod_1.default.string().optional(),\n sameSite: Network.SameSiteSchema.optional(),\n secure: zod_1.default.boolean().optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.UrlPatternSchema = zod_1.default.lazy(() => zod_1.default.union([Network.UrlPatternPatternSchema, Network.UrlPatternStringSchema]));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.UrlPatternPatternSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('pattern'),\n protocol: zod_1.default.string().optional(),\n hostname: zod_1.default.string().optional(),\n port: zod_1.default.string().optional(),\n pathname: zod_1.default.string().optional(),\n search: zod_1.default.string().optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.UrlPatternStringSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('string'),\n pattern: zod_1.default.string(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.AddInterceptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n phases: zod_1.default.array(Network.InterceptPhaseSchema).min(1),\n urlPatterns: zod_1.default.array(Network.UrlPatternSchema).optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.AddInterceptSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.addIntercept'),\n params: Network.AddInterceptParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.InterceptPhaseSchema = zod_1.default.lazy(() => zod_1.default.enum(['beforeRequestSent', 'responseStarted', 'authRequired']));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.AddInterceptResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n intercept: Network.InterceptSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueRequestSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.continueRequest'),\n params: Network.ContinueRequestParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueRequestParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n request: Network.RequestSchema,\n body: Network.BytesValueSchema.optional(),\n cookies: zod_1.default.array(Network.CookieHeaderSchema).optional(),\n headers: zod_1.default.array(Network.HeaderSchema).optional(),\n method: zod_1.default.string().optional(),\n url: zod_1.default.string().optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueResponseSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.continueResponse'),\n params: Network.ContinueResponseParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueResponseParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n request: Network.RequestSchema,\n cookies: zod_1.default.array(Network.SetCookieHeaderSchema).optional(),\n credentials: Network.AuthCredentialsSchema.optional(),\n headers: zod_1.default.array(Network.HeaderSchema).optional(),\n reasonPhrase: zod_1.default.string().optional(),\n statusCode: exports.JsUintSchema.optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueWithAuthSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.continueWithAuth'),\n params: Network.ContinueWithAuthParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueWithAuthParametersSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n request: Network.RequestSchema,\n })\n .and(zod_1.default.union([\n Network.ContinueWithAuthCredentialsSchema,\n Network.ContinueWithAuthNoCredentialsSchema,\n ])));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueWithAuthCredentialsSchema = zod_1.default.lazy(() => zod_1.default.object({\n action: zod_1.default.literal('provideCredentials'),\n credentials: Network.AuthCredentialsSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ContinueWithAuthNoCredentialsSchema = zod_1.default.lazy(() => zod_1.default.object({\n action: zod_1.default.enum(['default', 'cancel']),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.FailRequestSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.failRequest'),\n params: Network.FailRequestParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.FailRequestParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n request: Network.RequestSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ProvideResponseSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.provideResponse'),\n params: Network.ProvideResponseParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ProvideResponseParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n request: Network.RequestSchema,\n body: Network.BytesValueSchema.optional(),\n cookies: zod_1.default.array(Network.SetCookieHeaderSchema).optional(),\n headers: zod_1.default.array(Network.HeaderSchema).optional(),\n reasonPhrase: zod_1.default.string().optional(),\n statusCode: exports.JsUintSchema.optional(),\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.RemoveInterceptSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.removeIntercept'),\n params: Network.RemoveInterceptParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.RemoveInterceptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n intercept: Network.InterceptSchema,\n }));\n})(Network || (exports.Network = Network = {}));\nexports.ScriptEventSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.MessageSchema,\n Script.RealmCreatedSchema,\n Script.RealmDestroyedSchema,\n]));\n(function (Network) {\n Network.AuthRequiredParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({\n response: Network.ResponseDataSchema,\n })));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.BeforeRequestSentParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({\n initiator: Network.InitiatorSchema,\n })));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.FetchErrorParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({\n errorText: zod_1.default.string(),\n })));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ResponseCompletedParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({\n response: Network.ResponseDataSchema,\n })));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ResponseStartedParametersSchema = zod_1.default.lazy(() => Network.BaseParametersSchema.and(zod_1.default.object({\n response: Network.ResponseDataSchema,\n })));\n})(Network || (exports.Network = Network = {}));\nexports.ScriptCommandSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.AddPreloadScriptSchema,\n Script.CallFunctionSchema,\n Script.DisownSchema,\n Script.EvaluateSchema,\n Script.GetRealmsSchema,\n Script.RemovePreloadScriptSchema,\n]));\nexports.ScriptResultSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.AddPreloadScriptResultSchema,\n Script.EvaluateResultSchema,\n Script.GetRealmsResultSchema,\n]));\n(function (Network) {\n Network.AuthRequiredSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.authRequired'),\n params: Network.AuthRequiredParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.BeforeRequestSentSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.beforeRequestSent'),\n params: Network.BeforeRequestSentParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.FetchErrorSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.fetchError'),\n params: Network.FetchErrorParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ResponseCompletedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.responseCompleted'),\n params: Network.ResponseCompletedParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\n(function (Network) {\n Network.ResponseStartedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('network.responseStarted'),\n params: Network.ResponseStartedParametersSchema,\n }));\n})(Network || (exports.Network = Network = {}));\nvar Script;\n(function (Script) {\n Script.ChannelSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.EvaluateResultSuccessSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('success'),\n result: Script.RemoteValueSchema,\n realm: Script.RealmSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ExceptionDetailsSchema = zod_1.default.lazy(() => zod_1.default.object({\n columnNumber: exports.JsUintSchema,\n exception: Script.RemoteValueSchema,\n lineNumber: exports.JsUintSchema,\n stackTrace: Script.StackTraceSchema,\n text: zod_1.default.string(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ChannelValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('channel'),\n value: Script.ChannelPropertiesSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ChannelPropertiesSchema = zod_1.default.lazy(() => zod_1.default.object({\n channel: Script.ChannelSchema,\n serializationOptions: Script.SerializationOptionsSchema.optional(),\n ownership: Script.ResultOwnershipSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.EvaluateResultSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.EvaluateResultSuccessSchema,\n Script.EvaluateResultExceptionSchema,\n ]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.EvaluateResultExceptionSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('exception'),\n exceptionDetails: Script.ExceptionDetailsSchema,\n realm: Script.RealmSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.HandleSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.InternalIdSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ListLocalValueSchema = zod_1.default.lazy(() => zod_1.default.array(Script.LocalValueSchema));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.LocalValueSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.RemoteReferenceSchema,\n Script.PrimitiveProtocolValueSchema,\n Script.ChannelValueSchema,\n Script.ArrayLocalValueSchema,\n Script.DateLocalValueSchema,\n Script.MapLocalValueSchema,\n Script.ObjectLocalValueSchema,\n Script.RegExpLocalValueSchema,\n Script.SetLocalValueSchema,\n ]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ArrayLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('array'),\n value: Script.ListLocalValueSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.DateLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('date'),\n value: zod_1.default.string(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.MappingLocalValueSchema = zod_1.default.lazy(() => zod_1.default.array(zod_1.default.tuple([\n zod_1.default.union([Script.LocalValueSchema, zod_1.default.string()]),\n Script.LocalValueSchema,\n ])));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.MapLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('map'),\n value: Script.MappingLocalValueSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ObjectLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('object'),\n value: Script.MappingLocalValueSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RegExpValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n pattern: zod_1.default.string(),\n flags: zod_1.default.string().optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RegExpLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('regexp'),\n value: Script.RegExpValueSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SetLocalValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('set'),\n value: Script.ListLocalValueSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.PreloadScriptSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RealmSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.PrimitiveProtocolValueSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.UndefinedValueSchema,\n Script.NullValueSchema,\n Script.StringValueSchema,\n Script.NumberValueSchema,\n Script.BooleanValueSchema,\n Script.BigIntValueSchema,\n ]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.UndefinedValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('undefined'),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.NullValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('null'),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.StringValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('string'),\n value: zod_1.default.string(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SpecialNumberSchema = zod_1.default.lazy(() => zod_1.default.enum(['NaN', '-0', 'Infinity', '-Infinity']));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.NumberValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('number'),\n value: zod_1.default.union([zod_1.default.number(), Script.SpecialNumberSchema]),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.BooleanValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('boolean'),\n value: zod_1.default.boolean(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.BigIntValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('bigint'),\n value: zod_1.default.string(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RealmInfoSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.WindowRealmInfoSchema,\n Script.DedicatedWorkerRealmInfoSchema,\n Script.SharedWorkerRealmInfoSchema,\n Script.ServiceWorkerRealmInfoSchema,\n Script.WorkerRealmInfoSchema,\n Script.PaintWorkletRealmInfoSchema,\n Script.AudioWorkletRealmInfoSchema,\n Script.WorkletRealmInfoSchema,\n ]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.BaseRealmInfoSchema = zod_1.default.lazy(() => zod_1.default.object({\n realm: Script.RealmSchema,\n origin: zod_1.default.string(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.WindowRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('window'),\n context: BrowsingContext.BrowsingContextSchema,\n sandbox: zod_1.default.string().optional(),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.DedicatedWorkerRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('dedicated-worker'),\n owners: zod_1.default.tuple([Script.RealmSchema]),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SharedWorkerRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('shared-worker'),\n owners: zod_1.default.array(Script.RealmSchema).min(1),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ServiceWorkerRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('service-worker'),\n owners: zod_1.default.array(Script.RealmSchema),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.WorkerRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('worker'),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.PaintWorkletRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('paint-worklet'),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.AudioWorkletRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('audio-worklet'),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.WorkletRealmInfoSchema = zod_1.default.lazy(() => Script.BaseRealmInfoSchema.and(zod_1.default.object({\n type: zod_1.default.literal('worklet'),\n })));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RealmTypeSchema = zod_1.default.lazy(() => zod_1.default.enum([\n 'window',\n 'dedicated-worker',\n 'shared-worker',\n 'service-worker',\n 'worker',\n 'paint-worklet',\n 'audio-worklet',\n 'worklet',\n ]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ListRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.array(Script.RemoteValueSchema));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.MappingRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.array(zod_1.default.tuple([\n zod_1.default.union([Script.RemoteValueSchema, zod_1.default.string()]),\n Script.RemoteValueSchema,\n ])));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RemoteValueSchema = zod_1.default.lazy(() => zod_1.default.union([\n Script.PrimitiveProtocolValueSchema,\n Script.SymbolRemoteValueSchema,\n Script.ArrayRemoteValueSchema,\n Script.ObjectRemoteValueSchema,\n Script.FunctionRemoteValueSchema,\n Script.RegExpRemoteValueSchema,\n Script.DateRemoteValueSchema,\n Script.MapRemoteValueSchema,\n Script.SetRemoteValueSchema,\n Script.WeakMapRemoteValueSchema,\n Script.WeakSetRemoteValueSchema,\n Script.IteratorRemoteValueSchema,\n Script.GeneratorRemoteValueSchema,\n Script.ErrorRemoteValueSchema,\n Script.ProxyRemoteValueSchema,\n Script.PromiseRemoteValueSchema,\n Script.TypedArrayRemoteValueSchema,\n Script.ArrayBufferRemoteValueSchema,\n Script.NodeListRemoteValueSchema,\n Script.HtmlCollectionRemoteValueSchema,\n Script.NodeRemoteValueSchema,\n Script.WindowProxyRemoteValueSchema,\n ]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RemoteReferenceSchema = zod_1.default.lazy(() => zod_1.default.union([Script.SharedReferenceSchema, Script.RemoteObjectReferenceSchema]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SharedReferenceSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n sharedId: Script.SharedIdSchema,\n handle: Script.HandleSchema.optional(),\n })\n .and(exports.ExtensibleSchema));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RemoteObjectReferenceSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n handle: Script.HandleSchema,\n sharedId: Script.SharedIdSchema.optional(),\n })\n .and(exports.ExtensibleSchema));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SymbolRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('symbol'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ArrayRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('array'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n value: Script.ListRemoteValueSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ObjectRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('object'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n value: Script.MappingRemoteValueSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.FunctionRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('function'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RegExpRemoteValueSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n })\n .and(Script.RegExpLocalValueSchema));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.DateRemoteValueSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n })\n .and(Script.DateLocalValueSchema));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.MapRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('map'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n value: Script.MappingRemoteValueSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SetRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('set'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n value: Script.ListRemoteValueSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.WeakMapRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('weakmap'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.WeakSetRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('weakset'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.IteratorRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('iterator'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.GeneratorRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('generator'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ErrorRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('error'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ProxyRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('proxy'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.PromiseRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('promise'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.TypedArrayRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('typedarray'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ArrayBufferRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('arraybuffer'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.NodeListRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('nodelist'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n value: Script.ListRemoteValueSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.HtmlCollectionRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('htmlcollection'),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n value: Script.ListRemoteValueSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.NodeRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('node'),\n sharedId: Script.SharedIdSchema.optional(),\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n value: Script.NodePropertiesSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.NodePropertiesSchema = zod_1.default.lazy(() => zod_1.default.object({\n nodeType: exports.JsUintSchema,\n childNodeCount: exports.JsUintSchema,\n attributes: zod_1.default.record(zod_1.default.string(), zod_1.default.string()).optional(),\n children: zod_1.default.array(Script.NodeRemoteValueSchema).optional(),\n localName: zod_1.default.string().optional(),\n mode: zod_1.default.enum(['open', 'closed']).optional(),\n namespaceURI: zod_1.default.string().optional(),\n nodeValue: zod_1.default.string().optional(),\n shadowRoot: zod_1.default.union([Script.NodeRemoteValueSchema, zod_1.default.null()]).optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.WindowProxyRemoteValueSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('window'),\n value: Script.WindowProxyPropertiesSchema,\n handle: Script.HandleSchema.optional(),\n internalId: Script.InternalIdSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.WindowProxyPropertiesSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ResultOwnershipSchema = zod_1.default.lazy(() => zod_1.default.enum(['root', 'none']));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SerializationOptionsSchema = zod_1.default.lazy(() => zod_1.default.object({\n maxDomDepth: zod_1.default.union([exports.JsUintSchema, zod_1.default.null()]).default(0).optional(),\n maxObjectDepth: zod_1.default\n .union([exports.JsUintSchema, zod_1.default.null()])\n .default(null)\n .optional(),\n includeShadowTree: zod_1.default\n .enum(['none', 'open', 'all'])\n .default('none')\n .optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SharedIdSchema = zod_1.default.lazy(() => zod_1.default.string());\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.StackFrameSchema = zod_1.default.lazy(() => zod_1.default.object({\n columnNumber: exports.JsUintSchema,\n functionName: zod_1.default.string(),\n lineNumber: exports.JsUintSchema,\n url: zod_1.default.string(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.StackTraceSchema = zod_1.default.lazy(() => zod_1.default.object({\n callFrames: zod_1.default.array(Script.StackFrameSchema),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.SourceSchema = zod_1.default.lazy(() => zod_1.default.object({\n realm: Script.RealmSchema,\n context: BrowsingContext.BrowsingContextSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RealmTargetSchema = zod_1.default.lazy(() => zod_1.default.object({\n realm: Script.RealmSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.ContextTargetSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n sandbox: zod_1.default.string().optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.TargetSchema = zod_1.default.lazy(() => zod_1.default.union([Script.RealmTargetSchema, Script.ContextTargetSchema]));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.AddPreloadScriptSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.addPreloadScript'),\n params: Script.AddPreloadScriptParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.AddPreloadScriptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n functionDeclaration: zod_1.default.string(),\n arguments: zod_1.default.array(Script.ChannelValueSchema).optional(),\n contexts: zod_1.default\n .array(BrowsingContext.BrowsingContextSchema)\n .min(1)\n .optional(),\n sandbox: zod_1.default.string().optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.AddPreloadScriptResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n script: Script.PreloadScriptSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.DisownSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.disown'),\n params: Script.DisownParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.DisownParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n handles: zod_1.default.array(Script.HandleSchema),\n target: Script.TargetSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.CallFunctionParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n functionDeclaration: zod_1.default.string(),\n awaitPromise: zod_1.default.boolean(),\n target: Script.TargetSchema,\n arguments: zod_1.default.array(Script.LocalValueSchema).optional(),\n resultOwnership: Script.ResultOwnershipSchema.optional(),\n serializationOptions: Script.SerializationOptionsSchema.optional(),\n this: Script.LocalValueSchema.optional(),\n userActivation: zod_1.default.boolean().default(false).optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.CallFunctionSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.callFunction'),\n params: Script.CallFunctionParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.EvaluateSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.evaluate'),\n params: Script.EvaluateParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.EvaluateParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n expression: zod_1.default.string(),\n target: Script.TargetSchema,\n awaitPromise: zod_1.default.boolean(),\n resultOwnership: Script.ResultOwnershipSchema.optional(),\n serializationOptions: Script.SerializationOptionsSchema.optional(),\n userActivation: zod_1.default.boolean().default(false).optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.GetRealmsSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.getRealms'),\n params: Script.GetRealmsParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.GetRealmsParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema.optional(),\n type: Script.RealmTypeSchema.optional(),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.GetRealmsResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n realms: zod_1.default.array(Script.RealmInfoSchema),\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RemovePreloadScriptSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.removePreloadScript'),\n params: Script.RemovePreloadScriptParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RemovePreloadScriptParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n script: Script.PreloadScriptSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.MessageParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n channel: Script.ChannelSchema,\n data: Script.RemoteValueSchema,\n source: Script.SourceSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RealmCreatedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.realmCreated'),\n params: Script.RealmInfoSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.MessageSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.message'),\n params: Script.MessageParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RealmDestroyedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('script.realmDestroyed'),\n params: Script.RealmDestroyedParametersSchema,\n }));\n})(Script || (exports.Script = Script = {}));\n(function (Script) {\n Script.RealmDestroyedParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n realm: Script.RealmSchema,\n }));\n})(Script || (exports.Script = Script = {}));\nexports.StorageCommandSchema = zod_1.default.lazy(() => zod_1.default.union([\n Storage.DeleteCookiesSchema,\n Storage.GetCookiesSchema,\n Storage.SetCookieSchema,\n]));\nexports.StorageResultSchema = zod_1.default.lazy(() => zod_1.default.union([\n Storage.DeleteCookiesResultSchema,\n Storage.GetCookiesResultSchema,\n Storage.SetCookieResultSchema,\n]));\nvar Storage;\n(function (Storage) {\n Storage.PartitionKeySchema = zod_1.default.lazy(() => zod_1.default\n .object({\n userContext: zod_1.default.string().optional(),\n sourceOrigin: zod_1.default.string().optional(),\n })\n .and(exports.ExtensibleSchema));\n})(Storage || (exports.Storage = Storage = {}));\n(function (Storage) {\n Storage.GetCookiesSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('storage.getCookies'),\n params: Storage.GetCookiesParametersSchema,\n }));\n})(Storage || (exports.Storage = Storage = {}));\n(function (Storage) {\n Storage.CookieFilterSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n name: zod_1.default.string().optional(),\n value: Network.BytesValueSchema.optional(),\n domain: zod_1.default.string().optional(),\n path: zod_1.default.string().optional(),\n size: exports.JsUintSchema.optional(),\n httpOnly: zod_1.default.boolean().optional(),\n secure: zod_1.default.boolean().optional(),\n sameSite: Network.SameSiteSchema.optional(),\n expiry: exports.JsUintSchema.optional(),\n })\n .and(exports.ExtensibleSchema));\n})(Storage || (exports.Storage = Storage = {}));\n(function (Storage) {\n Storage.BrowsingContextPartitionDescriptorSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('context'),\n context: BrowsingContext.BrowsingContextSchema,\n }));\n})(Storage || (exports.Storage = Storage = {}));\n(function (Storage) {\n Storage.StorageKeyPartitionDescriptorSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n type: zod_1.default.literal('storageKey'),\n userContext: zod_1.default.string().optional(),\n sourceOrigin: zod_1.default.string().optional(),\n })\n .and(exports.ExtensibleSchema));\n})(Storage || (exports.Storage = Storage = {}));\n(function (Storage) {\n Storage.PartitionDescriptorSchema = zod_1.default.lazy(() => zod_1.default.union([\n Storage.BrowsingContextPartitionDescriptorSchema,\n Storage.StorageKeyPartitionDescriptorSchema,\n ]));\n})(Storage || (exports.Storage = Storage = {}));\n(function (Storage) {\n Storage.GetCookiesParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n filter: Storage.CookieFilterSchema.optional(),\n partition: Storage.PartitionDescriptorSchema.optional(),\n }));\n})(Storage || (exports.Storage = Storage = {}));\n(function (Storage) {\n Storage.GetCookiesResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n cookies: zod_1.default.array(Network.CookieSchema),\n partitionKey: Storage.PartitionKeySchema,\n }));\n})(Storage || (exports.Storage = Storage = {}));\n(function (Storage) {\n Storage.SetCookieSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('storage.setCookie'),\n params: Storage.SetCookieParametersSchema,\n }));\n})(Storage || (exports.Storage = Storage = {}));\n(function (Storage) {\n Storage.PartialCookieSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n name: zod_1.default.string(),\n value: Network.BytesValueSchema,\n domain: zod_1.default.string(),\n path: zod_1.default.string().optional(),\n httpOnly: zod_1.default.boolean().optional(),\n secure: zod_1.default.boolean().optional(),\n sameSite: Network.SameSiteSchema.optional(),\n expiry: exports.JsUintSchema.optional(),\n })\n .and(exports.ExtensibleSchema));\n})(Storage || (exports.Storage = Storage = {}));\n(function (Storage) {\n Storage.SetCookieParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n cookie: Storage.PartialCookieSchema,\n partition: Storage.PartitionDescriptorSchema.optional(),\n }));\n})(Storage || (exports.Storage = Storage = {}));\n(function (Storage) {\n Storage.SetCookieResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n partitionKey: Storage.PartitionKeySchema,\n }));\n})(Storage || (exports.Storage = Storage = {}));\n(function (Storage) {\n Storage.DeleteCookiesSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('storage.deleteCookies'),\n params: Storage.DeleteCookiesParametersSchema,\n }));\n})(Storage || (exports.Storage = Storage = {}));\n(function (Storage) {\n Storage.DeleteCookiesParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n filter: Storage.CookieFilterSchema.optional(),\n partition: Storage.PartitionDescriptorSchema.optional(),\n }));\n})(Storage || (exports.Storage = Storage = {}));\n(function (Storage) {\n Storage.DeleteCookiesResultSchema = zod_1.default.lazy(() => zod_1.default.object({\n partitionKey: Storage.PartitionKeySchema,\n }));\n})(Storage || (exports.Storage = Storage = {}));\nexports.LogEventSchema = zod_1.default.lazy(() => Log.EntryAddedSchema);\nvar Log;\n(function (Log) {\n Log.LevelSchema = zod_1.default.lazy(() => zod_1.default.enum(['debug', 'info', 'warn', 'error']));\n})(Log || (exports.Log = Log = {}));\n(function (Log) {\n Log.EntrySchema = zod_1.default.lazy(() => zod_1.default.union([\n Log.GenericLogEntrySchema,\n Log.ConsoleLogEntrySchema,\n Log.JavascriptLogEntrySchema,\n ]));\n})(Log || (exports.Log = Log = {}));\n(function (Log) {\n Log.BaseLogEntrySchema = zod_1.default.lazy(() => zod_1.default.object({\n level: Log.LevelSchema,\n source: Script.SourceSchema,\n text: zod_1.default.union([zod_1.default.string(), zod_1.default.null()]),\n timestamp: exports.JsUintSchema,\n stackTrace: Script.StackTraceSchema.optional(),\n }));\n})(Log || (exports.Log = Log = {}));\n(function (Log) {\n Log.GenericLogEntrySchema = zod_1.default.lazy(() => Log.BaseLogEntrySchema.and(zod_1.default.object({\n type: zod_1.default.string(),\n })));\n})(Log || (exports.Log = Log = {}));\n(function (Log) {\n Log.ConsoleLogEntrySchema = zod_1.default.lazy(() => Log.BaseLogEntrySchema.and(zod_1.default.object({\n type: zod_1.default.literal('console'),\n method: zod_1.default.string(),\n args: zod_1.default.array(Script.RemoteValueSchema),\n })));\n})(Log || (exports.Log = Log = {}));\n(function (Log) {\n Log.JavascriptLogEntrySchema = zod_1.default.lazy(() => Log.BaseLogEntrySchema.and(zod_1.default.object({\n type: zod_1.default.literal('javascript'),\n })));\n})(Log || (exports.Log = Log = {}));\n(function (Log) {\n Log.EntryAddedSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('log.entryAdded'),\n params: Log.EntrySchema,\n }));\n})(Log || (exports.Log = Log = {}));\nexports.InputCommandSchema = zod_1.default.lazy(() => zod_1.default.union([\n Input.PerformActionsSchema,\n Input.ReleaseActionsSchema,\n Input.SetFilesSchema,\n]));\nvar Input;\n(function (Input) {\n Input.ElementOriginSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('element'),\n element: Script.SharedReferenceSchema,\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PerformActionsParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n actions: zod_1.default.array(Input.SourceActionsSchema),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.NoneSourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('none'),\n id: zod_1.default.string(),\n actions: zod_1.default.array(Input.NoneSourceActionSchema),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.KeySourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('key'),\n id: zod_1.default.string(),\n actions: zod_1.default.array(Input.KeySourceActionSchema),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerSourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('pointer'),\n id: zod_1.default.string(),\n parameters: Input.PointerParametersSchema.optional(),\n actions: zod_1.default.array(Input.PointerSourceActionSchema),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PerformActionsSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('input.performActions'),\n params: Input.PerformActionsParametersSchema,\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.SourceActionsSchema = zod_1.default.lazy(() => zod_1.default.union([\n Input.NoneSourceActionsSchema,\n Input.KeySourceActionsSchema,\n Input.PointerSourceActionsSchema,\n Input.WheelSourceActionsSchema,\n ]));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.NoneSourceActionSchema = zod_1.default.lazy(() => Input.PauseActionSchema);\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.KeySourceActionSchema = zod_1.default.lazy(() => zod_1.default.union([\n Input.PauseActionSchema,\n Input.KeyDownActionSchema,\n Input.KeyUpActionSchema,\n ]));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerTypeSchema = zod_1.default.lazy(() => zod_1.default.enum(['mouse', 'pen', 'touch']));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n pointerType: Input.PointerTypeSchema.default('mouse').optional(),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.WheelSourceActionsSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('wheel'),\n id: zod_1.default.string(),\n actions: zod_1.default.array(Input.WheelSourceActionSchema),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerSourceActionSchema = zod_1.default.lazy(() => zod_1.default.union([\n Input.PauseActionSchema,\n Input.PointerDownActionSchema,\n Input.PointerUpActionSchema,\n Input.PointerMoveActionSchema,\n ]));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.WheelSourceActionSchema = zod_1.default.lazy(() => zod_1.default.union([Input.PauseActionSchema, Input.WheelScrollActionSchema]));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PauseActionSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('pause'),\n duration: exports.JsUintSchema.optional(),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.KeyDownActionSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('keyDown'),\n value: zod_1.default.string(),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.KeyUpActionSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('keyUp'),\n value: zod_1.default.string(),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerUpActionSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n type: zod_1.default.literal('pointerUp'),\n button: exports.JsUintSchema,\n })\n .and(Input.PointerCommonPropertiesSchema));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerDownActionSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n type: zod_1.default.literal('pointerDown'),\n button: exports.JsUintSchema,\n })\n .and(Input.PointerCommonPropertiesSchema));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerMoveActionSchema = zod_1.default.lazy(() => zod_1.default\n .object({\n type: zod_1.default.literal('pointerMove'),\n x: exports.JsIntSchema,\n y: exports.JsIntSchema,\n duration: exports.JsUintSchema.optional(),\n origin: Input.OriginSchema.optional(),\n })\n .and(Input.PointerCommonPropertiesSchema));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.WheelScrollActionSchema = zod_1.default.lazy(() => zod_1.default.object({\n type: zod_1.default.literal('scroll'),\n x: exports.JsIntSchema,\n y: exports.JsIntSchema,\n deltaX: exports.JsIntSchema,\n deltaY: exports.JsIntSchema,\n duration: exports.JsUintSchema.optional(),\n origin: Input.OriginSchema.default('viewport').optional(),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.PointerCommonPropertiesSchema = zod_1.default.lazy(() => zod_1.default.object({\n width: exports.JsUintSchema.default(1).optional(),\n height: exports.JsUintSchema.default(1).optional(),\n pressure: zod_1.default.number().default(0).optional(),\n tangentialPressure: zod_1.default.number().default(0).optional(),\n twist: zod_1.default\n .number()\n .int()\n .nonnegative()\n .gte(0)\n .lte(359)\n .default(0)\n .optional(),\n altitudeAngle: zod_1.default\n .number()\n .gte(0)\n .lte(1.5707963267948966)\n .default(0)\n .optional(),\n azimuthAngle: zod_1.default\n .number()\n .gte(0)\n .lte(6.283185307179586)\n .default(0)\n .optional(),\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.OriginSchema = zod_1.default.lazy(() => zod_1.default.union([\n zod_1.default.literal('viewport'),\n zod_1.default.literal('pointer'),\n Input.ElementOriginSchema,\n ]));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.ReleaseActionsSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('input.releaseActions'),\n params: Input.ReleaseActionsParametersSchema,\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.ReleaseActionsParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.SetFilesSchema = zod_1.default.lazy(() => zod_1.default.object({\n method: zod_1.default.literal('input.setFiles'),\n params: Input.SetFilesParametersSchema,\n }));\n})(Input || (exports.Input = Input = {}));\n(function (Input) {\n Input.SetFilesParametersSchema = zod_1.default.lazy(() => zod_1.default.object({\n context: BrowsingContext.BrowsingContextSchema,\n element: Script.SharedReferenceSchema,\n files: zod_1.default.array(zod_1.default.string()),\n }));\n})(Input || (exports.Input = Input = {}));\n//# sourceMappingURL=webdriver-bidi.js.map","\"use strict\";\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Permissions = exports.Cdp = exports.Storage = exports.Input = exports.Session = exports.BrowsingContext = exports.Script = exports.Network = exports.parseObject = void 0;\n/**\n * @fileoverview Provides parsing and validator for WebDriver BiDi protocol.\n * Parser types should match the `../protocol` types.\n */\nconst zod_1 = require(\"zod\");\nconst protocol_js_1 = require(\"../protocol/protocol.js\");\nconst WebDriverBidiPermissions = __importStar(require(\"./generated/webdriver-bidi-permissions.js\"));\nconst WebDriverBidi = __importStar(require(\"./generated/webdriver-bidi.js\"));\nfunction parseObject(obj, schema) {\n const parseResult = schema.safeParse(obj);\n if (parseResult.success) {\n return parseResult.data;\n }\n const errorMessage = parseResult.error.errors\n .map((e) => `${e.message} in ` +\n `${e.path.map((p) => JSON.stringify(p)).join('/')}.`)\n .join(' ');\n throw new protocol_js_1.InvalidArgumentException(errorMessage);\n}\nexports.parseObject = parseObject;\n/** @see https://w3c.github.io/webdriver-bidi/#module-network */\nvar Network;\n(function (Network) {\n function parseAddInterceptParameters(params) {\n return parseObject(params, WebDriverBidi.Network.AddInterceptParametersSchema);\n }\n Network.parseAddInterceptParameters = parseAddInterceptParameters;\n function parseContinueRequestParameters(params) {\n return parseObject(params, WebDriverBidi.Network.ContinueRequestParametersSchema);\n }\n Network.parseContinueRequestParameters = parseContinueRequestParameters;\n function parseContinueResponseParameters(params) {\n // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19.\n // The generated schema `SameSiteSchema` in `src/protocol-parser/webdriver-bidi.ts` is\n // of type `\"none\" | \"strict\" | \"lax\"` which is not assignable to generated enum\n // `SameSite` in `src/protocol/webdriver-bidi.ts`.\n // TODO: remove cast after https://github.com/google/cddlconv/issues/19 is fixed.\n return parseObject(params, WebDriverBidi.Network.ContinueResponseParametersSchema);\n }\n Network.parseContinueResponseParameters = parseContinueResponseParameters;\n function parseContinueWithAuthParameters(params) {\n return parseObject(params, WebDriverBidi.Network.ContinueWithAuthParametersSchema);\n }\n Network.parseContinueWithAuthParameters = parseContinueWithAuthParameters;\n function parseFailRequestParameters(params) {\n return parseObject(params, WebDriverBidi.Network.FailRequestParametersSchema);\n }\n Network.parseFailRequestParameters = parseFailRequestParameters;\n function parseProvideResponseParameters(params) {\n // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19.\n // The generated schema `SameSiteSchema` in `src/protocol-parser/webdriver-bidi.ts` is\n // of type `\"none\" | \"strict\" | \"lax\"` which is not assignable to generated enum\n // `SameSite` in `src/protocol/webdriver-bidi.ts`.\n // TODO: remove cast after https://github.com/google/cddlconv/issues/19 is fixed.\n return parseObject(params, WebDriverBidi.Network.ProvideResponseParametersSchema);\n }\n Network.parseProvideResponseParameters = parseProvideResponseParameters;\n function parseRemoveInterceptParameters(params) {\n return parseObject(params, WebDriverBidi.Network.RemoveInterceptParametersSchema);\n }\n Network.parseRemoveInterceptParameters = parseRemoveInterceptParameters;\n})(Network || (exports.Network = Network = {}));\n/** @see https://w3c.github.io/webdriver-bidi/#module-script */\nvar Script;\n(function (Script) {\n function parseGetRealmsParams(params) {\n return parseObject(params, WebDriverBidi.Script.GetRealmsParametersSchema);\n }\n Script.parseGetRealmsParams = parseGetRealmsParams;\n function parseEvaluateParams(params) {\n return parseObject(params, WebDriverBidi.Script.EvaluateParametersSchema);\n }\n Script.parseEvaluateParams = parseEvaluateParams;\n function parseDisownParams(params) {\n return parseObject(params, WebDriverBidi.Script.DisownParametersSchema);\n }\n Script.parseDisownParams = parseDisownParams;\n function parseAddPreloadScriptParams(params) {\n return parseObject(params, WebDriverBidi.Script.AddPreloadScriptParametersSchema);\n }\n Script.parseAddPreloadScriptParams = parseAddPreloadScriptParams;\n function parseRemovePreloadScriptParams(params) {\n return parseObject(params, WebDriverBidi.Script.RemovePreloadScriptParametersSchema);\n }\n Script.parseRemovePreloadScriptParams = parseRemovePreloadScriptParams;\n function parseCallFunctionParams(params) {\n return parseObject(params, WebDriverBidi.Script.CallFunctionParametersSchema);\n }\n Script.parseCallFunctionParams = parseCallFunctionParams;\n})(Script || (exports.Script = Script = {}));\n/** @see https://w3c.github.io/webdriver-bidi/#module-browsingContext */\nvar BrowsingContext;\n(function (BrowsingContext) {\n function parseActivateParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.ActivateParametersSchema);\n }\n BrowsingContext.parseActivateParams = parseActivateParams;\n function parseGetTreeParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.GetTreeParametersSchema);\n }\n BrowsingContext.parseGetTreeParams = parseGetTreeParams;\n function parseNavigateParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.NavigateParametersSchema);\n }\n BrowsingContext.parseNavigateParams = parseNavigateParams;\n function parseReloadParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.ReloadParametersSchema);\n }\n BrowsingContext.parseReloadParams = parseReloadParams;\n function parseCreateParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.CreateParametersSchema);\n }\n BrowsingContext.parseCreateParams = parseCreateParams;\n function parseCloseParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.CloseParametersSchema);\n }\n BrowsingContext.parseCloseParams = parseCloseParams;\n function parseCaptureScreenshotParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.CaptureScreenshotParametersSchema);\n }\n BrowsingContext.parseCaptureScreenshotParams = parseCaptureScreenshotParams;\n function parsePrintParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.PrintParametersSchema);\n }\n BrowsingContext.parsePrintParams = parsePrintParams;\n function parseSetViewportParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.SetViewportParametersSchema);\n }\n BrowsingContext.parseSetViewportParams = parseSetViewportParams;\n function parseTraverseHistoryParams(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.TraverseHistoryParametersSchema);\n }\n BrowsingContext.parseTraverseHistoryParams = parseTraverseHistoryParams;\n function parseHandleUserPromptParameters(params) {\n return parseObject(params, WebDriverBidi.BrowsingContext.HandleUserPromptParametersSchema);\n }\n BrowsingContext.parseHandleUserPromptParameters = parseHandleUserPromptParameters;\n})(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));\n/** @see https://w3c.github.io/webdriver-bidi/#module-session */\nvar Session;\n(function (Session) {\n function parseSubscribeParams(params) {\n return parseObject(params, WebDriverBidi.Session.SubscriptionRequestSchema);\n }\n Session.parseSubscribeParams = parseSubscribeParams;\n})(Session || (exports.Session = Session = {}));\nvar Input;\n(function (Input) {\n function parsePerformActionsParams(params) {\n return parseObject(params, WebDriverBidi.Input.PerformActionsParametersSchema);\n }\n Input.parsePerformActionsParams = parsePerformActionsParams;\n function parseReleaseActionsParams(params) {\n return parseObject(params, WebDriverBidi.Input.ReleaseActionsParametersSchema);\n }\n Input.parseReleaseActionsParams = parseReleaseActionsParams;\n function parseSetFilesParams(params) {\n return parseObject(params, WebDriverBidi.Input.SetFilesParametersSchema);\n }\n Input.parseSetFilesParams = parseSetFilesParams;\n})(Input || (exports.Input = Input = {}));\nvar Storage;\n(function (Storage) {\n function parseGetCookiesParams(params) {\n // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19.\n // The generated schema `SameSiteSchema` in `src/protocol-parser/webdriver-bidi.ts` is\n // of type `\"none\" | \"strict\" | \"lax\"` which is not assignable to generated enum\n // `SameSite` in `src/protocol/webdriver-bidi.ts`.\n // TODO: remove cast after https://github.com/google/cddlconv/issues/19 is fixed.\n return parseObject(params, WebDriverBidi.Storage.GetCookiesParametersSchema);\n }\n Storage.parseGetCookiesParams = parseGetCookiesParams;\n function parseSetCookieParams(params) {\n // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19.\n // The generated schema `SameSiteSchema` in `src/protocol-parser/webdriver-bidi.ts` is\n // of type `\"none\" | \"strict\" | \"lax\"` which is not assignable to generated enum\n // `SameSite` in `src/protocol/webdriver-bidi.ts`.\n // TODO: remove cast after https://github.com/google/cddlconv/issues/19 is fixed.\n return parseObject(params, WebDriverBidi.Storage.SetCookieParametersSchema);\n }\n Storage.parseSetCookieParams = parseSetCookieParams;\n function parseDeleteCookiesParams(params) {\n // Work around of `cddlconv` https://github.com/google/cddlconv/issues/19.\n // The generated schema `SameSiteSchema` in `src/protocol-parser/webdriver-bidi.ts` is\n // of type `\"none\" | \"strict\" | \"lax\"` which is not assignable to generated enum\n // `SameSite` in `src/protocol/webdriver-bidi.ts`.\n // TODO: remove cast after https://github.com/google/cddlconv/issues/19 is fixed.\n return parseObject(params, WebDriverBidi.Storage.DeleteCookiesParametersSchema);\n }\n Storage.parseDeleteCookiesParams = parseDeleteCookiesParams;\n})(Storage || (exports.Storage = Storage = {}));\nvar Cdp;\n(function (Cdp) {\n const SendCommandRequestSchema = zod_1.z.object({\n // Allowing any cdpMethod, and casting to proper type later on.\n method: zod_1.z.string(),\n // `passthrough` allows object to have any fields.\n // https://github.com/colinhacks/zod#passthrough\n params: zod_1.z.object({}).passthrough().optional(),\n session: zod_1.z.string().optional(),\n });\n const GetSessionRequestSchema = zod_1.z.object({\n context: WebDriverBidi.BrowsingContext.BrowsingContextSchema,\n });\n function parseSendCommandRequest(params) {\n return parseObject(params, SendCommandRequestSchema);\n }\n Cdp.parseSendCommandRequest = parseSendCommandRequest;\n function parseGetSessionRequest(params) {\n return parseObject(params, GetSessionRequestSchema);\n }\n Cdp.parseGetSessionRequest = parseGetSessionRequest;\n})(Cdp || (exports.Cdp = Cdp = {}));\nvar Permissions;\n(function (Permissions) {\n function parseSetPermissionsParams(params) {\n return parseObject(params, WebDriverBidiPermissions.Permissions.SetPermissionParametersSchema);\n }\n Permissions.parseSetPermissionsParams = parseSetPermissionsParams;\n})(Permissions || (exports.Permissions = Permissions = {}));\n//# sourceMappingURL=protocol-parser.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BidiParser = void 0;\nconst Parser = __importStar(require(\"../protocol-parser/protocol-parser.js\"));\nclass BidiParser {\n // Browsing Context domain\n // keep-sorted start block=yes\n parseActivateParams(params) {\n return Parser.BrowsingContext.parseActivateParams(params);\n }\n parseCaptureScreenshotParams(params) {\n return Parser.BrowsingContext.parseCaptureScreenshotParams(params);\n }\n parseCloseParams(params) {\n return Parser.BrowsingContext.parseCloseParams(params);\n }\n parseCreateParams(params) {\n return Parser.BrowsingContext.parseCreateParams(params);\n }\n parseGetTreeParams(params) {\n return Parser.BrowsingContext.parseGetTreeParams(params);\n }\n parseHandleUserPromptParams(params) {\n return Parser.BrowsingContext.parseHandleUserPromptParameters(params);\n }\n parseNavigateParams(params) {\n return Parser.BrowsingContext.parseNavigateParams(params);\n }\n parsePrintParams(params) {\n return Parser.BrowsingContext.parsePrintParams(params);\n }\n parseReloadParams(params) {\n return Parser.BrowsingContext.parseReloadParams(params);\n }\n parseSetViewportParams(params) {\n return Parser.BrowsingContext.parseSetViewportParams(params);\n }\n parseTraverseHistoryParams(params) {\n return Parser.BrowsingContext.parseTraverseHistoryParams(params);\n }\n // keep-sorted end\n // CDP domain\n // keep-sorted start block=yes\n parseGetSessionParams(params) {\n return Parser.Cdp.parseGetSessionRequest(params);\n }\n parseSendCommandParams(params) {\n return Parser.Cdp.parseSendCommandRequest(params);\n }\n // keep-sorted end\n // Input domain\n // keep-sorted start block=yes\n parsePerformActionsParams(params) {\n return Parser.Input.parsePerformActionsParams(params);\n }\n parseReleaseActionsParams(params) {\n return Parser.Input.parseReleaseActionsParams(params);\n }\n parseSetFilesParams(params) {\n return Parser.Input.parseSetFilesParams(params);\n }\n // keep-sorted end\n // Network domain\n // keep-sorted start block=yes\n parseAddInterceptParams(params) {\n return Parser.Network.parseAddInterceptParameters(params);\n }\n parseContinueRequestParams(params) {\n return Parser.Network.parseContinueRequestParameters(params);\n }\n parseContinueResponseParams(params) {\n return Parser.Network.parseContinueResponseParameters(params);\n }\n parseContinueWithAuthParams(params) {\n return Parser.Network.parseContinueWithAuthParameters(params);\n }\n parseFailRequestParams(params) {\n return Parser.Network.parseFailRequestParameters(params);\n }\n parseProvideResponseParams(params) {\n return Parser.Network.parseProvideResponseParameters(params);\n }\n parseRemoveInterceptParams(params) {\n return Parser.Network.parseRemoveInterceptParameters(params);\n }\n // keep-sorted end\n // Permissions domain\n // keep-sorted start block=yes\n parseSetPermissionsParams(params) {\n return Parser.Permissions.parseSetPermissionsParams(params);\n }\n // keep-sorted end\n // Script domain\n // keep-sorted start block=yes\n parseAddPreloadScriptParams(params) {\n return Parser.Script.parseAddPreloadScriptParams(params);\n }\n parseCallFunctionParams(params) {\n return Parser.Script.parseCallFunctionParams(params);\n }\n parseDisownParams(params) {\n return Parser.Script.parseDisownParams(params);\n }\n parseEvaluateParams(params) {\n return Parser.Script.parseEvaluateParams(params);\n }\n parseGetRealmsParams(params) {\n return Parser.Script.parseGetRealmsParams(params);\n }\n parseRemovePreloadScriptParams(params) {\n return Parser.Script.parseRemovePreloadScriptParams(params);\n }\n // keep-sorted end\n // Session domain\n // keep-sorted start block=yes\n parseSubscribeParams(params) {\n return Parser.Session.parseSubscribeParams(params);\n }\n // keep-sorted end\n // Storage domain\n // keep-sorted start block=yes\n parseDeleteCookiesParams(params) {\n return Parser.Storage.parseDeleteCookiesParams(params);\n }\n parseGetCookiesParams(params) {\n return Parser.Storage.parseGetCookiesParams(params);\n }\n parseSetCookieParams(params) {\n return Parser.Storage.parseSetCookieParams(params);\n }\n}\nexports.BidiParser = BidiParser;\n//# sourceMappingURL=BidiParser.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.log = exports.generatePage = void 0;\n/**\n * Copyright 2022 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nconst log_js_1 = require(\"../utils/log.js\");\n/** HTML source code for the user-facing Mapper tab. */\nconst mapperPageSource = 'BiDi-CDP Mapper

BiDi-CDP Mapper is controlling this tab

Closing or reloading it will stop the BiDi process. Details.

Debug information
';\n/**\n * The following piece of HTML should be added to the `debug` element:\n *\n *
\n *
\n *

${name}

\n *
\n */\nfunction findOrCreateTypeLogContainer(logPrefix) {\n const logType = logPrefix.split(':')[0];\n const containerId = `${logType}_log`;\n const existingContainer = document.getElementById(containerId);\n if (existingContainer) {\n return existingContainer;\n }\n const debugElement = document.getElementById('details');\n const divider = document.createElement('div');\n divider.className = 'divider';\n debugElement.appendChild(divider);\n const htmlItem = document.createElement('div');\n htmlItem.className = 'item';\n htmlItem.innerHTML = `

${logType}

`;\n debugElement.appendChild(htmlItem);\n return document.getElementById(containerId);\n}\nfunction generatePage() {\n // If run not in browser (e.g. unit test), do nothing.\n if (!globalThis.document.documentElement) {\n return;\n }\n globalThis.document.documentElement.innerHTML = mapperPageSource;\n // Create main log containers in proper order.\n findOrCreateTypeLogContainer(log_js_1.LogType.debugInfo);\n findOrCreateTypeLogContainer(log_js_1.LogType.bidi);\n findOrCreateTypeLogContainer(log_js_1.LogType.cdp);\n}\nexports.generatePage = generatePage;\nfunction stringify(message) {\n if (typeof message === 'object') {\n return JSON.stringify(message, null, 2);\n }\n return message;\n}\nfunction log(logPrefix, ...messages) {\n // If run not in browser (e.g. unit test), do nothing.\n if (!globalThis.document.documentElement) {\n return;\n }\n // Skip sending BiDi logs as they are logged once by `bidi:server:*`\n if (!logPrefix.startsWith(log_js_1.LogType.bidi)) {\n // If `sendDebugMessage` is defined, send the log message there.\n global.window?.sendDebugMessage?.(JSON.stringify({ logType: logPrefix, messages }));\n }\n const typeLogContainer = findOrCreateTypeLogContainer(logPrefix);\n // This piece of HTML should be added:\n //
...log message...
\n const lineElement = document.createElement('div');\n lineElement.className = 'pre';\n lineElement.textContent = [logPrefix, ...messages].map(stringify).join(' ');\n typeLogContainer.appendChild(lineElement);\n}\nexports.log = log;\n//# sourceMappingURL=mapperTabPage.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WindowCdpTransport = exports.WindowBidiTransport = void 0;\nconst log_js_1 = require(\"../utils/log.js\");\nconst mapperTabPage_js_1 = require(\"./mapperTabPage.js\");\nclass WindowBidiTransport {\n static LOGGER_PREFIX_RECV = `${log_js_1.LogType.bidi}:RECV ◂`;\n static LOGGER_PREFIX_SEND = `${log_js_1.LogType.bidi}:SEND ▸`;\n #onMessage = null;\n constructor() {\n window.onBidiMessage = (message) => {\n (0, mapperTabPage_js_1.log)(WindowBidiTransport.LOGGER_PREFIX_RECV, message);\n try {\n const command = WindowBidiTransport.#parseBidiMessage(message);\n this.#onMessage?.call(null, command);\n }\n catch (e) {\n const error = e instanceof Error ? e : new Error(e);\n // Transport-level error does not provide channel.\n this.#respondWithError(message, \"invalid argument\" /* ErrorCode.InvalidArgument */, error, null);\n }\n };\n }\n setOnMessage(onMessage) {\n this.#onMessage = onMessage;\n }\n sendMessage(message) {\n (0, mapperTabPage_js_1.log)(WindowBidiTransport.LOGGER_PREFIX_SEND, message);\n const json = JSON.stringify(message);\n window.sendBidiResponse(json);\n }\n close() {\n this.#onMessage = null;\n window.onBidiMessage = null;\n }\n #respondWithError(plainCommandData, errorCode, error, channel) {\n const errorResponse = WindowBidiTransport.#getErrorResponse(plainCommandData, errorCode, error);\n if (channel) {\n this.sendMessage({\n ...errorResponse,\n channel,\n });\n }\n else {\n this.sendMessage(errorResponse);\n }\n }\n static #getJsonType(value) {\n if (value === null) {\n return 'null';\n }\n if (Array.isArray(value)) {\n return 'array';\n }\n return typeof value;\n }\n static #getErrorResponse(message, errorCode, error) {\n // XXX: this is bizarre per spec. We reparse the payload and\n // extract the ID, regardless of what kind of value it was.\n let messageId;\n try {\n const command = JSON.parse(message);\n if (WindowBidiTransport.#getJsonType(command) === 'object' &&\n 'id' in command) {\n messageId = command.id;\n }\n }\n catch { }\n return {\n type: 'error',\n id: messageId,\n error: errorCode,\n message: error.message,\n };\n }\n static #parseBidiMessage(message) {\n let command;\n try {\n command = JSON.parse(message);\n }\n catch {\n throw new Error('Cannot parse data as JSON');\n }\n const type = WindowBidiTransport.#getJsonType(command);\n if (type !== 'object') {\n throw new Error(`Expected JSON object but got ${type}`);\n }\n // Extract and validate id, method and params.\n const { id, method, params } = command;\n const idType = WindowBidiTransport.#getJsonType(id);\n if (idType !== 'number' || !Number.isInteger(id) || id < 0) {\n // TODO: should uint64_t be the upper limit?\n // https://tools.ietf.org/html/rfc7049#section-2.1\n throw new Error(`Expected unsigned integer but got ${idType}`);\n }\n const methodType = WindowBidiTransport.#getJsonType(method);\n if (methodType !== 'string') {\n throw new Error(`Expected string method but got ${methodType}`);\n }\n const paramsType = WindowBidiTransport.#getJsonType(params);\n if (paramsType !== 'object') {\n throw new Error(`Expected object params but got ${paramsType}`);\n }\n let channel = command.channel;\n if (channel !== undefined) {\n const channelType = WindowBidiTransport.#getJsonType(channel);\n if (channelType !== 'string') {\n throw new Error(`Expected string channel but got ${channelType}`);\n }\n // Empty string channel is considered as no channel provided.\n if (channel === '') {\n channel = undefined;\n }\n }\n return { id, method, params, channel };\n }\n}\nexports.WindowBidiTransport = WindowBidiTransport;\nclass WindowCdpTransport {\n #onMessage = null;\n constructor() {\n window.cdp.onmessage = (message) => {\n this.#onMessage?.call(null, message);\n };\n }\n setOnMessage(onMessage) {\n this.#onMessage = onMessage;\n }\n sendMessage(message) {\n window.cdp.send(message);\n }\n close() {\n this.#onMessage = null;\n window.cdp.onmessage = null;\n }\n}\nexports.WindowCdpTransport = WindowCdpTransport;\n//# sourceMappingURL=Transport.js.map","\"use strict\";\n/**\n * Copyright 2021 Google LLC.\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * @license\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst BidiMapper_js_1 = require(\"../bidiMapper/BidiMapper.js\");\nconst CdpConnection_js_1 = require(\"../cdp/CdpConnection.js\");\nconst log_js_1 = require(\"../utils/log.js\");\nconst BidiParser_js_1 = require(\"./BidiParser.js\");\nconst mapperTabPage_js_1 = require(\"./mapperTabPage.js\");\nconst Transport_js_1 = require(\"./Transport.js\");\n(0, mapperTabPage_js_1.generatePage)();\nconst mapperTabToServerTransport = new Transport_js_1.WindowBidiTransport();\nconst cdpTransport = new Transport_js_1.WindowCdpTransport();\n/**\n * A CdpTransport implementation that uses the window.cdp bindings\n * injected by Target.exposeDevToolsProtocol.\n */\nconst cdpConnection = new CdpConnection_js_1.MapperCdpConnection(cdpTransport, mapperTabPage_js_1.log);\n/**\n * Launches the BiDi mapper instance.\n * @param {string} selfTargetId\n * @param options Mapper options. E.g. `acceptInsecureCerts`.\n */\nasync function runMapperInstance(selfTargetId, options) {\n // eslint-disable-next-line no-console\n console.log('Launching Mapper instance with selfTargetId:', selfTargetId);\n const bidiServer = await BidiMapper_js_1.BidiServer.createAndStart(mapperTabToServerTransport, cdpConnection, \n /**\n * Create a Browser CDP Session per Mapper instance.\n */\n await cdpConnection.createBrowserSession(), selfTargetId, options, new BidiParser_js_1.BidiParser(), mapperTabPage_js_1.log);\n (0, mapperTabPage_js_1.log)(log_js_1.LogType.debugInfo, 'Mapper instance has been launched');\n return bidiServer;\n}\n/**\n * Set `window.runMapper` to a function which launches the BiDi mapper instance.\n * @param selfTargetId Needed to filter out info related to BiDi target.\n * @param options Mapper options. E.g. `acceptInsecureCerts`. */\nwindow.runMapperInstance = async (selfTargetId, options) => {\n await runMapperInstance(selfTargetId, options);\n};\n//# sourceMappingURL=bidiTab.js.map"],"names":["n","all","Map","on","t","e","i","get","push","set","off","splice","indexOf","emit","slice","map","__importDefault","this","mod","__esModule","default","Object","defineProperty","EventEmitter_1","value","EventEmitter","mitt_1","require$$0","EventEmitter$1","emitter","type","handler","once","event","onceHandler","eventData","removeAllListeners","delete","clear","LogType","log","ProcessingQueue_1","ProcessingQueue","log_js_1","static","debug","logger","processor","queue","isProcessing","constructor","add","entry","name","processIfNeeded","length","arrayEntry","shift","entryPromise","LOGGER_PREFIX","then","kind","debugError","error","message","stack","catch","ProcessingQueue$1","cdp","BiDiModule","Script","Log","BrowsingContext","Network","chromiumBidi","EVENT_NAMES","EventNames","Set","values","webdriverBidi","ErrorResponse","UnderspecifiedStoragePartitionException","UnableToSetCookieException","NoSuchStoragePartitionException","UnsupportedOperationException","UnableToCloseBrowserException","UnknownErrorException","UnknownCommandException","NoSuchUserContextException","NoSuchScriptException","NoSuchRequestException","NoSuchNodeException","NoSuchHistoryEntryException","NoSuchHandleException","NoSuchFrameException","NoSuchElementException","MoveTargetOutOfBoundsException","InvalidSessionIdException","InvalidArgumentException","Exception","stacktrace","toErrorResponse","commandId","id","super","NoSuchAlertException","NoSuchInterceptException","SessionNotCreatedException","Error","UnableToCaptureScreenException","UnableToSetFileInputException","webdriverBidiPermissions","__createBinding","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","writable","configurable","enumerable","__setModuleDefault","v","__importStar","result","prototype","hasOwnProperty","call","__exportStar","exports","p","ChromiumBidi","Cdp","require$$1","require$$2","require$$3","require$$4","BidiNoOpParser_1","BidiNoOpParser","BidiNoOpParser$1","parseActivateParams","params","parseCaptureScreenshotParams","parseCloseParams","parseCreateParams","parseGetTreeParams","parseHandleUserPromptParams","parseNavigateParams","parsePrintParams","parseReloadParams","parseSetViewportParams","parseTraverseHistoryParams","parseGetSessionParams","parseSendCommandParams","parseAddPreloadScriptParams","parseCallFunctionParams","parseDisownParams","parseEvaluateParams","parseGetRealmsParams","parseRemovePreloadScriptParams","parsePerformActionsParams","parseReleaseActionsParams","parseSetFilesParams","parseAddInterceptParams","parseContinueRequestParams","parseContinueResponseParams","parseContinueWithAuthParams","parseFailRequestParams","parseProvideResponseParams","parseRemoveInterceptParams","parseSetPermissionsParams","parseSubscribeParams","parseDeleteCookiesParams","parseGetCookiesParams","parseSetCookieParams","BrowserProcessor_1","BrowserProcessor","protocol_js_1","BrowserProcessor$1","browserCdpClient","close","setTimeout","sendCommand","createUserContext","userContext","browserContextId","removeUserContext","err","startsWith","getUserContexts","userContexts","browserContextIds","CdpProcessor_1","CdpProcessor","CdpProcessor$1","browsingContextStorage","cdpConnection","getSession","context","sessionId","getContext","cdpTarget","cdpSessionId","session","client","getCdpClient","method","uuid","uuidv4","globalThis","crypto","randomUUID","randomValues","Uint8Array","getRandomValues","require","webcrypto","bytesToHex","bytes","reduce","str","byte","toString","padStart","subarray","join","ChannelProxy_1","ChannelProxy","uuid_js_1","properties","channel","init","realm","eventManager","channelHandle","createAndGetHandleInRealm","sendMessageHandle","createSendMessageHandle","startListener","startListenerFromWindow","getHandleFromWindow","createChannelProxyEvalStr","String","queueNonEmptyResolver","getMessage","onMessage","Promise","resolve","sendMessage","createChannelHandleResult","cdpClient","expression","contextId","executionContextId","serializationOptions","serialization","exceptionDetails","objectId","functionDeclaration","arguments","async","awaitPromise","maxDepth","maxObjectDepth","browsingContext","associatedBrowsingContexts","registerEvent","Message","data","cdpToBidiValue","ownership","source","channelHandleResult","w","window","channelProxy","getEvalInWindowStr","delegate","channelProxyEval","ChannelProxy$1","Realm_1","Realm","ChannelProxy_js_1","origin","realmId","realmStorage","addRealm","cdpValue","resultOwnership","bidiValue","serializeForBiDi","deepSerializedValue","handle","knownHandlesToRealmMap","releaseObject","subtype","internalIdMap","hasOwn","weakLocalObjectReference","has","internalId","includes","baseInfo","evaluate","userActivation","cdpEvaluateResult","getSerializationOptions","userGesture","getExceptionResult","initialize","RealmCreated","realmInfo","serializeCdpObject","cdpRemoteObject","argument","cdpRemoteObjectToCallArgument","remoteObject","unserializableValue","stringifyObject","returnByValue","flattenKeyValuePairs","mappingLocalValue","keyValueArray","key","keyArg","deserializeForCdp","valueArg","flattenValueList","listLocalValue","localValue","serializeCdpExceptionDetails","cdpExceptionDetails","lineOffset","callFrames","stackTrace","frame","url","functionName","lineNumber","columnNumber","exception","text","callFunction","thisLocalValue","argumentsLocalValues","callFunctionAndSerializeScript","thisAndArgumentsList","argumentLocalValue","cdpCallFunctionResult","code","Boolean","JSON","stringify","pattern","flags","args","additionalParameters","getAdditionalSerializationParameters","getMaxObjectDepth","maxDomDepth","includeShadowTree","disown","dispose","RealmDestroyed","Realm$1","DedicatedWorkerRealm_1","DedicatedWorkerRealm","Realm_js_1","ownerRealm","realmType","owners","DedicatedWorkerRealm$1","assert_1","assert","assert$1","predicate","Deferred_1","Deferred","isFinished","promise","reject","_error","onFulfilled","onRejected","reason","onFinally","finally","Symbol","toStringTag","Deferred$1","unitConversions","inchesFromCm","cm","SharedId","parseSharedId","getSharedId","SHARED_ID_DIVIDER","frameId","documentId","backendNodeId","sharedIdWithFrame","sharedId","legacyFormattedSharedId","match","RegExp","elementId","parseInt","isNaN","parseLegacySharedId","WindowRealm_1","WindowRealm","SharedId_js_1","browsingContextId","sandbox","getBrowsingContextId","navigableId","maybeBrowsingContext","getAllContexts","find","loaderId","children","shadowRoot","namespaceURI","parsedSharedId","object","targetUnblockedOrThrow","WindowRealm$1","BrowsingContextImpl_1","BrowsingContextImpl$1","serializeOrigin","BrowsingContextImpl","assert_js_1","Deferred_js_1","unitConversions_js_1","WindowRealm_js_1","require$$5","parentId","lifecycle","DOMContentLoaded","load","navigation","withinDocument","maybeDefaultRealm","initListeners","addContext","isTopLevelContext","parent","addChild","ContextCreated","serializeToBidiValue","getTimestamp","Date","getTime","deleteAllChildren","deleteRealms","failLifecycleIfNotFinished","ContextDestroyed","deleteContextById","directChildren","allChildren","concat","child","top","topContext","childId","defaultRealm","updateCdpTarget","lifecycleLoaded","unblocked","getOrCreateSandbox","maybeSandboxes","findRealms","worldName","addParentField","c","onTargetInfoChanged","targetInfo","urlFragment","timestamp","FragmentNavigated","NavigationStarted","documentChanged","DomContentLoaded","Load","auxData","uniqueId","isDefault","getChannels","accepted","UserPromptClosed","userText","userInput","UserPromptOpened","defaultValue","defaultPrompt","resetLifecycleIfFinished","navigate","wait","URL","cdpNavigateResult","errorText","reload","ignoreCache","setViewport","viewport","devicePixelRatio","width","height","deviceScaleFactor","mobile","dontSetVisibleSize","handleUserPrompt","accept","promptText","activate","captureScreenshot","formatParameters","quality","format","Math","round","getImageFormatParameters","script","captureBeyondViewport","element","document","documentElement","x","y","scrollWidth","scrollHeight","visualViewport","pageLeft","pageTop","originResult","deserializeDOMRect","rect","clip","first","second","normalizeRect","max","min","getIntersectionRect","parseRect","scale","print","cdpParams","background","printBackground","margin","bottom","marginBottom","left","marginLeft","right","marginRight","marginTop","orientation","landscape","page","paperHeight","paperWidth","pageRanges","range","rangeParts","split","parseInteger","lowerBound","upperBound","rangeLowerPart","rangeUpperPart","Number","MAX_SAFE_INTEGER","shrinkToFit","preferCSSPageSize","Element","getBoundingClientRect","traverseHistory","delta","history","entries","currentIndex","entryId","box","trim","test","logHelper","getRemoteValuesText","logMessageFormatter","specifiers","isFormatSpecifier","some","spec","output","argFormat","argValues","tokens","token","arg","stringFromArg","parseFloat","toJson","pair","val","formatText","LogManager_1","LogManager","logHelper_js_1","getBidiStackTrace","cdpStackTrace","stackFrames","callFrame","logManager","initializeEntryAddedEventListener","findRealm","argsPromise","registerPromiseEvent","LogEntryAdded","level","consoleApiType","getExceptionText","LogManager$1","NetworkUtils","bidiToCdpCookie","cdpToBiDiCookie","cdpAuthChallengeResponseFromBidiAuthContinueWithAuthAction","bidiNetworkHeadersFromCdpFetchHeaders","cdpNetworkHeadersFromBidiNetworkHeaders","bidiNetworkHeadersFromCdpNetworkHeaders","ErrorResponse_1","sameSiteCdpToBiDi","sameSite","sameSiteBiDiToCdp","computeHeadersSize","headers","requestHeaders","acc","header","TextEncoder","encode","cdpFetchHeadersFromBidiNetworkHeaders","action","cookie","domain","path","size","httpOnly","secure","expires","expiry","priority","sameParty","sourceScheme","sourcePort","partitionKey","partitionKeyOpaque","deserializedValue","sourceOrigin","NetworkRequest_1","NetworkRequest","NetworkUtils_js_1","requestId","interceptPhase","servedFromCache","redirectCount","networkStorage","request","response","beforeRequestSentDeferred","responseStartedDeferred","responseCompletedDeferred","info","isRedirecting","handleRedirect","queueResponseStartedEvent","queueResponseCompletedEvent","hasExtraInfo","redirectHasExtraInfo","redirectResponse","emitEventsIfReady","wasRedirected","requestExtraInfoCompleted","extraInfo","responseExtraInfoCompleted","onRequestWillBeSentEvent","queueBeforeRequestSentEvent","onRequestWillBeSentExtraInfoEvent","onResponseReceivedExtraInfoEvent","onResponseReceivedEvent","onServedFromCache","onLoadingFailedEvent","FetchError","getBaseEventParams","onRequestPaused","isIgnoredEvent","continueRequest","phase","responseErrorReason","responseStatusCode","responseStatusText","responseHeaders","addBlockedRequest","protocol","status","statusText","fromCache","mimeType","bytesReceived","headersSize","bodySize","content","authChallenge","failRequest","networkId","errorReason","cdpFetchRequestId","continueResponse","responseCode","responsePhrase","continueWithAuth","username","password","authChallengeResponse","provideResponse","body","btoa","statusCode","isBlocked","intercepts","getNetworkIntercepts","getNavigationId","getRequestData","wallTime","cookies","getCookies","associatedCookies","unknown","timings","getTimings","timeOrigin","requestTime","redirectStart","redirectEnd","fetchStart","dnsStart","dnsEnd","connectStart","connectEnd","tlsStart","requestStart","responseStart","responseEnd","assign","getBeforeRequestEvent","BeforeRequestSent","initiator","getInitiatorType","getResponseStartedEvent","ResponseStarted","fromDiskCache","fromPrefetchCache","encodedDataLength","getResponseReceivedEvent","ResponseCompleted","endsWith","initiatorType","filter","blockedReasons","Array","isArray","NetworkRequest$1","NetworkManager_1","NetworkManager","NetworkRequest_js_1","getOrCreateNetworkRequest","getRequest","addRequest","networkManager","disposeRequestMap","deleteRequest","NetworkManager$1","CdpTarget_1","CdpTarget","LogManager_js_1","NetworkManager_js_1","preloadScriptStorage","targetUnblocked","acceptInsecureCerts","targetId","setEventListeners","unblock","fetchEnable","getFetchEnableParams","fetchDisable","enabled","ignore","autoAttach","waitForDebuggerOnStart","flatten","initAndEvaluatePreloadScripts","isCloseError","flatMap","channels","global","initInTarget","CdpTarget$1","BrowsingContextProcessor_1","BrowsingContextProcessor","DedicatedWorkerRealm_js_1","BrowsingContextImpl_js_1","CdpTarget_js_1","BrowsingContextProcessor$1","selfTargetId","defaultUserContextId","getTree","contexts","root","getTopLevelContexts","MAX_VALUE","referenceContext","newWindow","existingContexts","detachedFromTargetPromise","onContextDestroyed","promptUnload","handleAttachedToTargetEvent","handleDetachedFromTargetEvent","handleTargetInfoChangedEvent","handleFrameAttachedEvent","handleFrameDetachedEvent","parentBrowsingContext","findContext","parentFrameId","parentSessionCdpClient","targetCdpClient","debugInfo","createCdpTarget","maybeContext","findContextBySession","handleWorkerTarget","getRealm","workers","workerRealm","preloadScript","worker","InputSource","WheelSource","KeySource","NoneSource","pressed","modifiers","alt","setModifier","ctrl","meta","bit","PointerSource","pointerId","buttons","button","ClickContext","count","time","compare","DOUBLE_CLICK_TIME_MS","abs","MAX_DOUBLE_CLICK_RADIUS","clickContexts","setClickCount","storedContext","getClickCount","keyUtils","getKeyLocation","getKeyCode","getNormalizedKey","USKeyboardLayout","KeyToKeyCode","Abort","Help","Backspace","Tab","Numpad5","NumpadEnter","Enter","ShiftLeft","ShiftRight","ControlLeft","ControlRight","AltLeft","AltRight","Pause","CapsLock","Escape","Convert","NonConvert","Space","Numpad9","PageUp","Numpad3","PageDown","End","Numpad1","Home","Numpad7","ArrowLeft","Numpad4","Numpad8","ArrowUp","ArrowRight","Numpad6","Numpad2","ArrowDown","Select","Open","PrintScreen","Insert","Numpad0","Delete","NumpadDecimal","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","KeyA","KeyB","KeyC","KeyD","KeyE","KeyF","KeyG","KeyH","KeyI","KeyJ","KeyK","KeyL","KeyM","KeyN","KeyO","KeyP","KeyQ","KeyR","KeyS","KeyT","KeyU","KeyV","KeyW","KeyX","KeyY","KeyZ","MetaLeft","MetaRight","ContextMenu","NumpadMultiply","NumpadAdd","NumpadSubtract","NumpadDivide","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","F13","F14","F15","F16","F17","F18","F19","F20","F21","F22","F23","F24","NumLock","ScrollLock","AudioVolumeMute","AudioVolumeDown","AudioVolumeUp","MediaTrackNext","MediaTrackPrevious","MediaStop","MediaPlayPause","Semicolon","Equal","NumpadEqual","Comma","Minus","Period","Slash","Backquote","BracketLeft","Backslash","BracketRight","Quote","AltGraph","Props","Cancel","Clear","Shift","Control","Alt","Accept","ModeChange","Print","Execute","a","b","d","f","g","h","j","l","q","r","s","u","z","Meta","Attn","CrSel","ExSel","EraseEof","Play","ZoomOut","$","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","_","Camera","EndCall","VolumeDown","VolumeUp","ActionDispatcher_1","ActionDispatcher","InputSource_js_1","keyUtils_js_1","USKeyboardLayout_js_1","CALCULATE_IN_VIEW_CENTER_PT_DECL","getClientRects","innerWidth","innerHeight","IS_MAC_DECL","navigator","platform","toLowerCase","tickStart","tickDuration","inputState","isMacOS","dispatchActions","optionsByTick","run","options","dispatchTickActions","performance","now","duration","promises","option","dispatchAction","keyState","getGlobalKeyState","dispatchKeyDownAction","cancelList","dispatchKeyUpAction","dispatchPointerDownAction","dispatchPointerMoveAction","dispatchPointerUpAction","dispatchScrollAction","pointerType","pressure","twist","tangentialPressure","tiltX","tiltY","getTilt","getCdpButton","clickCount","force","touchPoints","getRadii","startX","startY","offsetX","offsetY","targetX","targetY","getCoordinateFromOrigin","last","ratio","next","posX","posY","getElementCenter","_source","deltaX","targetDeltaX","deltaY","targetDeltaY","currentDeltaX","currentDeltaY","rawKey","repeat","location","unmodifiedText","getKeyEventUnmodifiedText","getKeyEventText","command","windowsVirtualKeyCode","autoRepeat","isSystemKey","isKeypad","commands","toLocaleUpperCase","altitudeAngle","azimuthAngle","tiltXRadians","tiltYRadians","PI","tanAlt","tan","atan","cos","sin","factor","radiusX","radiusY","Mutex_1","Mutex","Mutex$1","locked","acquirers","acquire","state","resolved","release","bind","InputState_1","InputState","Mutex_js_1","InputState$1","sources","mutex","getOrCreate","pointerIds","InputStateManager_1","InputStateManager","InputState_js_1","WeakMap","InputStateManager$1","InputProcessor_1","InputProcessor","ActionDispatcher_js_1","InputStateManager_js_1","InputProcessor$1","inputStateManager","performActions","actionsByTick","getActionsByTick","dispatcher","releaseActions","reverse","setFiles","isFileInput","HTMLInputElement","disabled","paths","files","index","item","sort","sortedFiles","dispatchEvent","Event","bubbles","actions","parameters","Pe","Re","getOwnPropertyNames","Ee","Ne","Oe","URLPattern","urlpattern","ke","prefix","suffix","modifier","hasCustomName","Ae","ye","we","TypeError","substr","delimiter","prefixes","encodePart","replace","ignoreCase","sensitive","strict","end","start","te","substring","re","he","ue","hostname","de","pathname","pe","ge","search","me","hash","parse","port","Se","baseURL","Ce","fe","oe","ae","ie","le","ee","lastIndexOf","ce","se","ne","Ie","Le","exec","inputs","input","groups","compareComponent","hasRegExpGroups","urlpatternPolyfill","urlpattern_polyfill_1","NetworkStorage_1","NetworkStorage","UrlPattern_js_1","requestMap","interceptMap","blockedRequestMap","addIntercept","interceptId","removeIntercept","intercept","hasIntercepts","patterns","phases","requestStage","requestStageFromPhase","urlPatterns","urlPatternSpec","urlPattern","cdpFromSpecUrlPattern","handleAuthRequests","param","hasNetworkRequests","hasBlockedRequests","buildUrlPatternString","isSpecialScheme","removeBlockedRequest","getBlockedRequest","interceptIds","matchUrlPattern","NetworkStorage$1","NetworkProcessor_1","NetworkProcessor","NetworkStorage_js_1","unshift","parsedUrlPatterns","parseUrlPatterns","fetchApply","fetchId","parseUrlString","getRequestOrFail","reasonPhrase","credentials","blockedRequest","NetworkProcessor$1","PermissionsProcessor_1","PermissionsProcessor","PermissionsProcessor$1","setPermissions","permission","descriptor","setting","PreloadScriptStorage_1","PreloadScriptStorage","PreloadScriptStorage$1","scripts","targetIds","remove","PreloadScript_1","PreloadScript","PreloadScript$1","cdpPreloadScripts","getEvaluateString","channelsArgStr","initInTargets","cdpTargets","runImmediately","from","addCdpPreloadScriptResult","target","preloadScriptId","identifier","cdpPreloadScript","cdpPreloadScriptId","cdpTargetId","ScriptProcessor_1","ScriptProcessor","protocol_1","ScriptProcessor$1","addPreloadScript","removePreloadScript","bidiId","handles","getRealms","realms","SessionProcessor_1","SessionProcessor","SessionProcessor$1","ready","subscribe","events","unsubscribe","StorageProcessor_1","StorageProcessor","NetworkProcessor_js_1","StorageProcessor$1","expandStoragePartitionSpec","partition","matchCookie","setCookie","cdpCookie","expandStoragePartitionSpecByBrowsingContext","expandStoragePartitionSpecByStorageKey","unsupportedPartitionKeys","fromEntries","partitionSpec","OutgoingMessage_1","OutgoingMessage","createFromPromise","messagePromise","createResolved","OutgoingMessage$1","CommandProcessor_1","CommandProcessor","EventEmitter_js_1","BidiNoOpParser_js_1","BrowserProcessor_js_1","CdpProcessor_js_1","BrowsingContextProcessor_js_1","require$$6","InputProcessor_js_1","require$$7","require$$8","require$$9","PermissionsProcessor_js_1","require$$10","PreloadScriptStorage_js_1","require$$11","ScriptProcessor_js_1","require$$12","SessionProcessor_js_1","require$$13","StorageProcessor_js_1","require$$14","OutgoingMessage_js_1","require$$15","browserProcessor","browsingContextProcessor","cdpProcessor","inputProcessor","networkProcessor","permissionsProcessor","scriptProcessor","sessionProcessor","storageProcessor","parser","processCommand","bidi","CommandProcessor$1","BrowsingContextStorage_1","BrowsingContextStorage","BrowsingContextStorage$1","deleteContext","hasContext","findTopLevelContextId","RealmStorage_1","RealmStorage","RealmStorage$1","realmMap","maybeRealms","maybeRealm","Buffer_1","Buffer","Buffer$1","capacity","onItemRemoved","DefaultMap_1","DefaultMap","getDefaultValue","DefaultMap$1","IdWrapper_1","IdWrapper","counter","IdWrapper$1","assertSupportedEvent","isCdpEvent","at","SubscriptionManager_1","SubscriptionManager","unrollEvents","events_js_1","cartesianProduct","flat","allEvents","addEvents","SubscriptionManager$1","subscriptionPriority","channelToContextToEventMap","getChannelsSubscribedToEvent","eventMethod","keys","getEventSubscriptionPriorityForChannel","contextToEventMap","maybeTopLevelContextId","priorities","cdpPriority","specificEvent","eventMap","unsubscribeAll","contextIds","checkUnsubscribe","forEach","eventName","EventManager_1","EventManager","Buffer_js_1","DefaultMap_js_1","IdWrapper_js_1","SubscriptionManager_js_1","EventWrapper","idWrapper","eventBufferLength","eventToContextsMap","eventBuffers","lastMessageSent","subscriptionManager","getMapKey","eventWrapper","sortedChannels","bufferEvent","markEventSent","eventNames","getBufferedEvents","bufferMapKey","lastSentMapKey","lastSentMessageId","Infinity","wrapper","_contextId","e1","e2","EventManager$1","BidiServer_1","BidiServer","ProcessingQueue_js_1","CommandProcessor_js_1","BrowsingContextStorage_js_1","RealmStorage_js_1","EventManager_js_1","messageQueue","transport","commandProcessor","handleIncomingMessage","processOutgoingMessage","messageEntry","bidiTransport","setOnMessage","emitOutgoingMessage","createAndStart","targetInfos","server","discover","topLevelContextsLoaded","BidiServer$1","BidiServer_js_1","CdpClient","MapperCdpClient","CloseError","CdpConnection","MapperCdpConnection","CdpClient_js_1","mainBrowserCdpClient","sessionCdpClients","commandCallbacks","nextId","createCdpClient","createBrowserSession","cdpMessage","LOGGER_PREFIX_SEND","json","LOGGER_PREFIX_RECV","callbacks","util","getParsedType","ZodParsedType","objectUtil","assertEqual","assertIs","_arg","assertNever","_x","arrayToEnum","items","obj","getValidEnumValues","validKeys","objectKeys","filtered","objectValues","arr","checker","isInteger","isFinite","floor","joinValues","array","separator","jsonStringifyReplacer","mergeShapes","string","nan","number","boolean","function","bigint","symbol","null","date","ZodError_1","ZodError","quotelessJson","util_1","ZodError$1","ZodIssueCode","issues","addIssue","sub","addIssues","subs","actualProto","setPrototypeOf","__proto__","errors","_mapper","mapper","issue","fieldErrors","_errors","processError","unionErrors","returnTypeError","argumentsError","curr","el","isEmpty","formErrors","en","_ctx","invalid_type","received","expected","invalid_literal","unrecognized_keys","invalid_union","invalid_union_discriminator","invalid_enum_value","invalid_arguments","invalid_return_type","invalid_date","invalid_string","validation","position","too_small","exact","inclusive","minimum","too_big","maximum","custom","invalid_intersection_types","not_multiple_of","multipleOf","not_finite","defaultError","getErrorMap","setErrorMap","en_1","defaultErrorMap","overrideErrorMap","isAsync","isValid","isDirty","isAborted","OK","DIRTY","INVALID","ParseStatus","addIssueToContext","EMPTY_PATH","makeIssue","errors_1","errorMaps","issueData","fullPath","fullIssue","errorMessage","maps","ctx","common","contextualErrorMap","schemaErrorMap","dirty","abort","mergeArray","results","arrayValue","mergeObjectAsync","pairs","syncPairs","mergeObjectSync","finalObject","alwaysSet","freeze","typeAliases","errorUtil","errToObj","any","ZodFirstPartyTypeKind","late","ZodSchema","Schema","ZodReadonly","ZodBranded","BRAND","ZodNaN","ZodCatch","ZodDefault","ZodNullable","ZodTransformer","ZodEffects","ZodPromise","ZodNativeEnum","ZodEnum","ZodLiteral","ZodFunction","ZodSet","ZodMap","ZodRecord","ZodTuple","ZodIntersection","ZodUnion","ZodObject","ZodArray","ZodVoid","ZodNever","ZodUnknown","ZodNull","ZodUndefined","ZodSymbol","ZodDate","ZodBoolean","ZodBigInt","ZodString","ZodType","NEVER","union","tuple","strictObject","preprocess","pipeline","ostring","onumber","oboolean","never","nativeEnum","literal","lazy","intersection","instanceof","enum","effect","discriminatedUnion","errorUtil_1","parseUtil_1","ParseInputLazyPath","_cachedPath","_path","_key","handleResult","success","processCreateParams","errorMap","invalid_type_error","required_error","description","iss","def","spa","safeParseAsync","_def","safeParse","parseAsync","refine","refinement","superRefine","optional","nullable","nullish","or","and","transform","brand","describe","pipe","readonly","isNullable","isOptional","_getType","_getOrReturnCtx","parsedType","_processInputParams","_parseSync","_parse","_parseAsync","_a","maybeAsyncResult","check","getIssueProperties","_refinement","setError","refinementData","schema","typeName","ZodOptional","incoming","defaultValueFunc","innerType","catchValueFunc","catchValue","This","ZodPipeline","cuidRegex","cuid2Regex","ulidRegex","uuidRegex","emailRegex","emojiRegex","ipv4Regex","ipv6Regex","coerce","checks","tooBig","tooSmall","regex","lastIndex","toUpperCase","precision","offset","ip","version","_regex","_addCheck","email","emoji","cuid","cuid2","ulid","datetime","minLength","maxLength","len","nonempty","isDatetime","ch","isEmail","isURL","isEmoji","isUUID","isCUID","isCUID2","isULID","isIP","floatSafeRemainder","step","valDecCount","stepDecCount","decCount","toFixed","pow","ZodNumber","gte","lte","setLimit","gt","lt","int","positive","negative","nonpositive","nonnegative","finite","safe","MIN_SAFE_INTEGER","minValue","maxValue","isInt","BigInt","minDate","maxDate","ZodAny","_any","_unknown","void","exactLength","deepPartialify","newShape","shape","fieldSchema","unwrap","_cached","nonstrict","passthrough","augment","extend","_getCached","shapeKeys","extraKeys","catchall","unknownKeys","keyValidator","_b","_c","_d","strip","augmentation","merge","merging","setKey","pick","mask","omit","deepPartial","partial","required","newField","keyof","createZodEnum","strictCreate","lazycreate","childCtx","types","getDiscriminator","ZodLazy","ZodDiscriminatedUnion","discriminator","discriminatorValue","optionsMap","discriminatorValues","mergeValues","aType","bType","valid","bKeys","sharedKeys","newObj","sharedValue","newArray","handleParsed","parsedLeft","parsedRight","merged","rest","itemIndex","schemas","keySchema","keyType","valueSchema","valueType","third","finalMap","minSize","maxSize","finalizeSet","elements","parsedSet","validate","implement","makeArgsIssue","makeReturnsIssue","returns","fn","parsedArgs","Reflect","apply","parsedReturns","returnType","func","strictImplement","getter","expectedValues","enumValues","Values","Enum","extract","exclude","opt","nativeEnumValues","promisified","sourceType","checkCtx","fatal","processed","executeRefinement","inner","base","createWithPreprocess","removeDefault","newCtx","removeCatch","inResult","in","out","handleAsync","_fatal","p2","cls","stringType","numberType","nanType","bigIntType","booleanType","dateType","symbolType","undefinedType","nullType","anyType","unknownType","neverType","voidType","arrayType","objectType","strictObjectType","unionType","discriminatedUnionType","intersectionType","tupleType","recordType","record","mapType","setType","functionType","lazyType","literalType","enumType","nativeEnumType","promiseType","effectsType","transformer","optionalType","nullableType","preprocessType","pipelineType","Permissions","PermissionsCommandSchema","zod_1","SetPermissionSchema","PermissionDescriptorSchema","PermissionStateSchema","SetPermissionParametersSchema","Input","LogEventSchema","StorageResultSchema","StorageCommandSchema","ScriptResultSchema","ScriptCommandSchema","ScriptEventSchema","NetworkEventSchema","NetworkCommandSchema","BrowsingContextResultSchema","BrowsingContextEventSchema","Browser","BrowserResultSchema","BrowserCommandSchema","SessionResultSchema","SessionCommandSchema","ErrorCodeSchema","JsIntSchema","ExtensibleSchema","ErrorResponseSchema","MessageSchema","EmptyParamsSchema","ResultDataSchema","EventDataSchema","CommandResponseSchema","EventSchema","Session","Storage","CommandSchema","JsUintSchema","CommandDataSchema","BrowsingContextCommandSchema","InputCommandSchema","EmptyResultSchema","NetworkResultSchema","EndSchema","NewSchema","StatusSchema","SubscribeSchema","UnsubscribeSchema","ProxyConfigurationSchema","AutodetectProxyConfigurationSchema","DirectProxyConfigurationSchema","ManualProxyConfigurationSchema","PacProxyConfigurationSchema","SystemProxyConfigurationSchema","NewResultSchema","StatusResultSchema","CapabilitiesRequestSchema","alwaysMatch","CapabilityRequestSchema","firstMatch","browserName","browserVersion","platformName","proxy","webSocketUrl","proxyType","ftpProxy","httpProxy","sslProxy","SocksProxyConfigurationSchema","noProxy","socksProxy","socksVersion","proxyAutoconfigUrl","SubscriptionRequestSchema","BrowsingContextSchema","NewParametersSchema","capabilities","setWindowRect","CloseSchema","CreateUserContextSchema","GetUserContextsSchema","RemoveUserContextSchema","CreateUserContextResultSchema","GetUserContextsResultSchema","UserContextSchema","UserContextInfoSchema","ActivateSchema","CaptureScreenshotSchema","CreateSchema","GetTreeSchema","HandleUserPromptSchema","LocateNodesSchema","NavigateSchema","PrintSchema","ReloadSchema","SetViewportSchema","TraverseHistorySchema","ContextCreatedSchema","ContextDestroyedSchema","DomContentLoadedSchema","DownloadWillBeginSchema","FragmentNavigatedSchema","LoadSchema","NavigationAbortedSchema","NavigationFailedSchema","NavigationStartedSchema","UserPromptClosedSchema","UserPromptOpenedSchema","CaptureScreenshotResultSchema","CreateResultSchema","GetTreeResultSchema","LocateNodesResultSchema","NavigateResultSchema","PrintResultSchema","TraverseHistoryResultSchema","InfoListSchema","InfoSchema","LocatorSchema","CssLocatorSchema","InnerTextLocatorSchema","XPathLocatorSchema","matchType","NavigationSchema","NavigationInfoSchema","ReadinessStateSchema","ActivateParametersSchema","CaptureScreenshotParametersSchema","ImageFormatSchema","ClipRectangleSchema","BoxClipRectangleSchema","ElementClipRectangleSchema","SharedReferenceSchema","CloseParametersSchema","CreateParametersSchema","CreateTypeSchema","GetTreeParametersSchema","HandleUserPromptParametersSchema","LocateNodesParametersSchema","locator","maxNodeCount","ResultOwnershipSchema","SerializationOptionsSchema","startNodes","nodes","NodeRemoteValueSchema","NavigateParametersSchema","PrintParametersSchema","PrintMarginParametersSchema","PrintPageParametersSchema","ReloadParametersSchema","SetViewportParametersSchema","ViewportSchema","TraverseHistoryParametersSchema","UserPromptClosedParametersSchema","UserPromptOpenedParametersSchema","AddInterceptSchema","ContinueRequestSchema","ContinueResponseSchema","ContinueWithAuthSchema","FailRequestSchema","ProvideResponseSchema","RemoveInterceptSchema","AuthRequiredSchema","BeforeRequestSentSchema","FetchErrorSchema","ResponseCompletedSchema","ResponseStartedSchema","AddInterceptResultSchema","AuthChallengeSchema","scheme","AuthCredentialsSchema","BaseParametersSchema","RequestDataSchema","InterceptSchema","BytesValueSchema","StringValueSchema","Base64ValueSchema","SameSiteSchema","CookieSchema","CookieHeaderSchema","FetchTimingInfoSchema","HeaderSchema","InitiatorSchema","StackTraceSchema","RequestSchema","ResponseContentSchema","ResponseDataSchema","SetCookieHeaderSchema","maxAge","UrlPatternSchema","UrlPatternPatternSchema","UrlPatternStringSchema","AddInterceptParametersSchema","InterceptPhaseSchema","ContinueRequestParametersSchema","ContinueResponseParametersSchema","ContinueWithAuthParametersSchema","ContinueWithAuthCredentialsSchema","ContinueWithAuthNoCredentialsSchema","FailRequestParametersSchema","ProvideResponseParametersSchema","RemoveInterceptParametersSchema","RealmCreatedSchema","RealmDestroyedSchema","AuthRequiredParametersSchema","BeforeRequestSentParametersSchema","FetchErrorParametersSchema","ResponseCompletedParametersSchema","ResponseStartedParametersSchema","AddPreloadScriptSchema","CallFunctionSchema","DisownSchema","EvaluateSchema","GetRealmsSchema","RemovePreloadScriptSchema","AddPreloadScriptResultSchema","EvaluateResultSchema","GetRealmsResultSchema","ChannelSchema","EvaluateResultSuccessSchema","RemoteValueSchema","RealmSchema","ExceptionDetailsSchema","ChannelValueSchema","ChannelPropertiesSchema","EvaluateResultExceptionSchema","HandleSchema","InternalIdSchema","ListLocalValueSchema","LocalValueSchema","RemoteReferenceSchema","PrimitiveProtocolValueSchema","ArrayLocalValueSchema","DateLocalValueSchema","MapLocalValueSchema","ObjectLocalValueSchema","RegExpLocalValueSchema","SetLocalValueSchema","MappingLocalValueSchema","RegExpValueSchema","PreloadScriptSchema","UndefinedValueSchema","NullValueSchema","NumberValueSchema","BooleanValueSchema","BigIntValueSchema","SpecialNumberSchema","RealmInfoSchema","WindowRealmInfoSchema","DedicatedWorkerRealmInfoSchema","SharedWorkerRealmInfoSchema","ServiceWorkerRealmInfoSchema","WorkerRealmInfoSchema","PaintWorkletRealmInfoSchema","AudioWorkletRealmInfoSchema","WorkletRealmInfoSchema","BaseRealmInfoSchema","RealmTypeSchema","ListRemoteValueSchema","MappingRemoteValueSchema","SymbolRemoteValueSchema","ArrayRemoteValueSchema","ObjectRemoteValueSchema","FunctionRemoteValueSchema","RegExpRemoteValueSchema","DateRemoteValueSchema","MapRemoteValueSchema","SetRemoteValueSchema","WeakMapRemoteValueSchema","WeakSetRemoteValueSchema","IteratorRemoteValueSchema","GeneratorRemoteValueSchema","ErrorRemoteValueSchema","ProxyRemoteValueSchema","PromiseRemoteValueSchema","TypedArrayRemoteValueSchema","ArrayBufferRemoteValueSchema","NodeListRemoteValueSchema","HtmlCollectionRemoteValueSchema","WindowProxyRemoteValueSchema","RemoteObjectReferenceSchema","SharedIdSchema","NodePropertiesSchema","nodeType","childNodeCount","attributes","localName","mode","nodeValue","WindowProxyPropertiesSchema","StackFrameSchema","SourceSchema","RealmTargetSchema","ContextTargetSchema","TargetSchema","AddPreloadScriptParametersSchema","DisownParametersSchema","CallFunctionParametersSchema","EvaluateParametersSchema","GetRealmsParametersSchema","RemovePreloadScriptParametersSchema","MessageParametersSchema","RealmDestroyedParametersSchema","DeleteCookiesSchema","GetCookiesSchema","SetCookieSchema","DeleteCookiesResultSchema","GetCookiesResultSchema","SetCookieResultSchema","PartitionKeySchema","GetCookiesParametersSchema","CookieFilterSchema","BrowsingContextPartitionDescriptorSchema","StorageKeyPartitionDescriptorSchema","PartitionDescriptorSchema","SetCookieParametersSchema","PartialCookieSchema","DeleteCookiesParametersSchema","EntryAddedSchema","LevelSchema","EntrySchema","GenericLogEntrySchema","ConsoleLogEntrySchema","JavascriptLogEntrySchema","BaseLogEntrySchema","PerformActionsSchema","ReleaseActionsSchema","SetFilesSchema","ElementOriginSchema","PerformActionsParametersSchema","SourceActionsSchema","NoneSourceActionsSchema","NoneSourceActionSchema","KeySourceActionsSchema","KeySourceActionSchema","PointerSourceActionsSchema","PointerParametersSchema","PointerSourceActionSchema","WheelSourceActionsSchema","PauseActionSchema","KeyDownActionSchema","KeyUpActionSchema","PointerTypeSchema","WheelSourceActionSchema","PointerDownActionSchema","PointerUpActionSchema","PointerMoveActionSchema","WheelScrollActionSchema","PointerCommonPropertiesSchema","OriginSchema","ReleaseActionsParametersSchema","SetFilesParametersSchema","protocolParser","WebDriverBidiPermissions","WebDriverBidi","parseObject","parseResult","parseAddInterceptParameters","parseContinueRequestParameters","parseContinueResponseParameters","parseContinueWithAuthParameters","parseFailRequestParameters","parseProvideResponseParameters","parseRemoveInterceptParameters","parseHandleUserPromptParameters","SendCommandRequestSchema","GetSessionRequestSchema","parseSendCommandRequest","parseGetSessionRequest","BidiParser_1","BidiParser","Parser","BidiParser$1","mapperTabPage","generatePage","findOrCreateTypeLogContainer","logPrefix","logType","containerId","existingContainer","getElementById","debugElement","divider","createElement","className","appendChild","htmlItem","innerHTML","messages","sendDebugMessage","typeLogContainer","lineElement","textContent","Transport","WindowCdpTransport","WindowBidiTransport","mapperTabPage_js_1","onBidiMessage","parseBidiMessage","respondWithError","sendBidiResponse","plainCommandData","errorCode","errorResponse","getErrorResponse","getJsonType","messageId","idType","methodType","paramsType","channelType","onmessage","send","bidiTab","BidiMapper_js_1","CdpConnection_js_1","BidiParser_js_1","Transport_js_1","mapperTabToServerTransport","cdpTransport","runMapperInstance","console","bidiServer"],"mappings":"isBAAe,SAASA,GAAG,MAAM,CAACC,IAAID,EAAEA,GAAG,IAAIE,IAAIC,GAAG,SAASC,EAAEC,GAAG,IAAIC,EAAEN,EAAEO,IAAIH,GAAGE,EAAEA,EAAEE,KAAKH,GAAGL,EAAES,IAAIL,EAAE,CAACC,GAAG,EAAEK,IAAI,SAASN,EAAEC,GAAG,IAAIC,EAAEN,EAAEO,IAAIH,GAAGE,IAAID,EAAEC,EAAEK,OAAOL,EAAEM,QAAQP,KAAK,EAAE,GAAGL,EAAES,IAAIL,EAAE,IAAI,EAAES,KAAK,SAAST,EAAEC,GAAG,IAAIC,EAAEN,EAAEO,IAAIH,GAAGE,GAAGA,EAAEQ,QAAQC,KAAI,SAASf,GAAGA,EAAEK,EAAE,KAAIC,EAAEN,EAAEO,IAAI,OAAOD,EAAEQ,QAAQC,KAAI,SAASf,GAAGA,EAAEI,EAAEC,EAAE,GAAE,EAAE,WCCrTW,EAAmBC,GAAQA,EAAKD,iBAAoB,SAAUE,GAC9D,OAAQA,GAAOA,EAAIC,WAAcD,EAAM,CAAEE,QAAWF,EACxD,EACAG,OAAOC,eAAeC,EAAS,aAAc,CAAEC,OAAO,IAClCD,EAAAE,kBAAG,EAiBvB,MAAMC,EAASV,EAAgBW,GAkDXC,EAAAH,aAjDpB,MACII,IAAW,EAAIH,EAAON,WACtB,EAAAjB,CAAG2B,EAAMC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ACX,IAAK,SACD,MAAO,IACX,IAAK,SACD,MAAO,IACX,IAAK,SACD,MAAO,IACX,IAAK,SACD,MAAO,IACX,IAAK,SACD,MAAO,IACX,IAAK,SACD,MAAO,IACX,IAAK,SACD,MAAO,IACX,IAAK,SACD,MAAO,IACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,MACX,IAAK,SACD,MAAO,MACX,IAAK,SACD,MAAO,MACX,IAAK,SAUL,IAAK,SACD,MAAO,OATX,IAAK,SACD,MAAO,iBA6BX,QACI,OAAOA,EAEnB,EAyQkBm1B,GAAAE,WAvQlB,SAAoBviB,GAChB,OAAQA,GACJ,IAAK,IACL,IAAK,IACD,MAAO,YACX,IAAK,KACL,IAAK,IACD,MAAO,YACX,IAAK,SACD,MAAO,YACX,IAAK,IACL,IAAK,IACD,MAAO,cACX,IAAK,IACL,IAAK,IACD,MAAO,eACX,IAAK,IACL,IAAK,IACD,MAAO,QACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,QACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,OACX,IAAK,IACL,IAAK,IACD,MAAO,QACX,IAAK,IACD,MAAO,SACX,IAAK,IACL,IAAK,IACD,MAAO,QACX,IAAK,IACL,IAAK,IACD,MAAO,YACX,IAAK,IACL,IAAK,IACD,MAAO,QACX,IAAK,SACD,MAAO,UACX,IAAK,SACD,MAAO,WACX,IAAK,SACD,MAAO,cACX,IAAK,SACD,MAAO,eACX,IAAK,SACD,MAAO,QACX,IAAK,SACD,MAAO,WACX,IAAK,SACD,MAAO,YACX,IAAK,SACD,MAAO,YACX,IAAK,SACD,MAAO,aACX,IAAK,IACL,IAAK,SACD,MAAO,QACX,IAAK,SACD,MAAO,MACX,IAAK,SACD,MAAO,SACX,IAAK,SACD,MAAO,MACX,IAAK,SACD,MAAO,OACX,IAAK,SACD,MAAO,OACX,IAAK,SACD,MAAO,SACX,IAAK,SACD,MAAO,WACX,IAAK,SACD,MAAO,SACX,IAAK,SACD,MAAO,YACX,IAAK,SACD,MAAO,YACX,IAAK,SACD,MAAO,aACX,IAAK,SACD,MAAO,UACX,IAAK,SACD,MAAO,SACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,KACX,IAAK,SACD,MAAO,MACX,IAAK,SACD,MAAO,MACX,IAAK,SACD,MAAO,MACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACL,IAAK,SACD,MAAO,UACX,IAAK,SACD,MAAO,YACX,IAAK,SACD,MAAO,cACX,IAAK,SACL,IAAK,SACD,MAAO,gBACX,IAAK,SACD,MAAO,eACX,IAAK,SACD,MAAO,cACX,IAAK,SACD,MAAO,iBACX,IAAK,SACD,MAAO,iBACX,QACI,OAEZ,EA8CsBqiB,GAAAC,eA5CtB,SAAwBtiB,GACpB,OAAQA,GACJ,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACD,OAAO,EACX,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,SAC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IACpB/C,MAAKuO,IAAYtH,KAAK,KAAMlE,EAAQ,CAE3C,CACD,YAAAy7C,CAAajwC,GACTvO,MAAKuO,GAAaA,CACrB,CACD,WAAAG,CAAY3L,GACRqN,OAAOjN,IAAIi0E,KAAKr0E,EACnB,CACD,KAAAuH,GACItK,MAAKuO,GAAa,KAClB6B,OAAOjN,IAAIg0E,UAAY,IAC1B;;;;;;;;;;;;;;;;;;;ACnHL/2E,OAAOC,eAAeg3E,EAAS,aAAc,CAAE92E,OAAO,IACtD,MAAM+2E,GAAkB52E,EAClB62E,GAAqBhwE,GACrB7F,GAAW8F,EACXgwE,GAAkB/vE,GAClB2uE,GAAqB1uE,GACrB+vE,GAAiBp9D,IACvB,EAAI+7D,GAAmBtB,gBACvB,MAAM4C,GAA6B,IAAID,GAAetB,oBAChDwB,GAAe,IAAIF,GAAevB,mBAKlC5qE,GAAgB,IAAIisE,GAAmBl4B,oBAAoBs4B,GAAcvB,GAAmB70E,YAqBlG6O,OAAOwnE,kBAAoBtoE,MAAOyiB,EAAcsR,WAfhD/zB,eAAiCyiB,EAAcsR,GAE3Cw0C,QAAQt2E,IAAI,+CAAgDwwB,GAC5D,MAAM+lD,QAAmBR,GAAgB35B,WAAWe,eAAeg5B,GAA4BpsE,SAIzFA,GAAcs0C,uBAAwB7tB,EAAcsR,EAAS,IAAIm0C,GAAgB9C,WAAc0B,GAAmB70E,KAExH,OADA,EAAI60E,GAAmB70E,KAAKG,GAASJ,QAAQgyB,UAAW,qCACjDwkD,CACX,CAMUF,CAAkB7lD,EAAcsR,EAAQ","x_google_ignoreList":[0,38,39,63,64,65,66,67,68,69,70,71,72]} \ No newline at end of file diff --git a/Scripts/node_modules/chromium-bidi/package.json b/Scripts/node_modules/chromium-bidi/package.json index 83e8df4a..0918e2c9 100644 --- a/Scripts/node_modules/chromium-bidi/package.json +++ b/Scripts/node_modules/chromium-bidi/package.json @@ -1,20 +1,20 @@ { "name": "chromium-bidi", - "version": "0.5.2", + "version": "0.5.8", "description": "An implementation of the WebDriver BiDi protocol for Chromium implemented as a JavaScript layer translating between BiDi and CDP, running inside a Chrome tab.", "scripts": { - "bidi-types": "wireit", + "bidi-types": "node tools/generate-bidi-types.mjs", "build": "wireit", "clean": "rimraf lib .eslintcache .wireit", "e2e-headful": "wireit", "e2e-headless": "wireit", "e2e": "npm run e2e-headless --", - "eslint": "wireit", "flake8": "flake8 examples/ tests/", "format": "npm run pre-commit --", + "format:eslint": "eslint --ext js --ext mjs --ext ts --fix .", + "format:prettier": "prettier --write .", "pre-commit": "pre-commit run --hook-stage manual --all-files", "prepare": "wireit", - "prettier": "prettier --write .", "rollup": "wireit", "server": "npm run server-headless --", "server-headful": "wireit", @@ -32,12 +32,6 @@ ] }, "wireit": { - "bidi-types": { - "command": "tools/generate-bidi-types.sh", - "output": [ - "src/protocol/webdriver-bidi.ts" - ] - }, "build": { "dependencies": [ "rollup", @@ -64,20 +58,6 @@ "tests/**/*.py" ] }, - "eslint": { - "command": "eslint --cache --ext .js,.ts --fix .", - "files": [ - ".eslintignore", - ".eslintrc.js", - "src/**/*.ts" - ], - "output": [ - ".eslintcache" - ], - "dependencies": [ - "tsc" - ] - }, "prepare": { "dependencies": [ "build" @@ -158,10 +138,10 @@ ] }, "wpt-all": { - "command": "tools/runWPTAll.sh", + "command": "tools/run-wpt-all.mjs", "files": [ "tools/run-wpt.mjs", - "tools/runWPTAll.sh", + "tools/run-wpt-all.mjs", "wpt/tools/webdriver/**/*.py", "wpt/webdriver/tests/**/*.py", "wpt-metadata/**/*.ini" @@ -188,56 +168,57 @@ }, "devDependencies": { "@actions/core": "1.10.1", - "@puppeteer/browsers": "1.8.0", + "@puppeteer/browsers": "1.9.1", "@rollup/plugin-commonjs": "25.0.7", "@rollup/plugin-node-resolve": "15.2.3", "@rollup/plugin-terser": "0.4.4", + "@rollup/wasm-node": "4.9.6", "@types/argparse": "2.0.14", "@types/chai": "4.3.11", "@types/chai-as-promised": "7.1.8", "@types/debug": "4.1.12", "@types/mocha": "10.0.6", - "@types/node": "20.10.3", - "@types/sinon": "17.0.2", + "@types/node": "20.11.6", + "@types/sinon": "17.0.3", "@types/websocket": "1.0.10", "@types/ws": "8.5.10", - "@typescript-eslint/eslint-plugin": "6.13.2", - "@typescript-eslint/parser": "6.13.2", + "@types/yargs": "17.0.32", + "@typescript-eslint/eslint-plugin": "6.19.1", + "@typescript-eslint/parser": "6.19.1", "argparse": "2.0.1", - "chai": "4.3.10", + "chai": "4.4.1", "chai-as-promised": "7.1.1", - "chai-exclude": "2.1.0", "debug": "4.3.4", - "devtools-protocol": "0.0.1236148", - "eslint": "8.55.0", + "devtools-protocol": "0.0.1245094", + "eslint": "8.56.0", "eslint-config-prettier": "9.1.0", "eslint-import-resolver-typescript": "3.6.1", - "eslint-plugin-import": "2.29.0", + "eslint-plugin-import": "2.29.1", "eslint-plugin-mocha": "10.2.0", - "eslint-plugin-prettier": "5.0.1", + "eslint-plugin-prettier": "5.1.3", "eslint-plugin-promise": "6.1.1", "gts": "5.2.0", "mocha": "10.2.0", "nyc": "15.1.0", - "pkg-dir": "7.0.0", - "prettier": "3.1.0", + "pkg-dir": "8.0.0", + "prettier": "3.2.4", "rimraf": "5.0.5", - "rollup": "3.29.4", - "selenium-webdriver": "4.15.0", + "rollup": "4.9.6", + "selenium-webdriver": "4.17.0", "sinon": "17.0.1", "source-map-support": "0.5.21", - "terser": "5.25.0", + "terser": "5.27.0", "tslib": "2.6.2", - "typescript": "5.3.2", - "webdriverio": "8.26.1", + "typescript": "5.3.3", + "webdriverio": "8.29.1", "websocket": "1.0.34", - "wireit": "0.14.1", - "ws": "8.14.2", + "wireit": "0.14.3", + "ws": "8.16.0", "yargs": "17.7.2", "zod": "3.22.4" }, "dependencies": { "mitt": "3.0.1", - "urlpattern-polyfill": "9.0.0" + "urlpattern-polyfill": "10.0.0" } } diff --git a/Scripts/node_modules/combined-stream/License b/Scripts/node_modules/combined-stream/License new file mode 100644 index 00000000..4804b7ab --- /dev/null +++ b/Scripts/node_modules/combined-stream/License @@ -0,0 +1,19 @@ +Copyright (c) 2011 Debuggable Limited + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/Scripts/node_modules/combined-stream/Readme.md b/Scripts/node_modules/combined-stream/Readme.md new file mode 100644 index 00000000..9e367b5b --- /dev/null +++ b/Scripts/node_modules/combined-stream/Readme.md @@ -0,0 +1,138 @@ +# combined-stream + +A stream that emits multiple other streams one after another. + +**NB** Currently `combined-stream` works with streams version 1 only. There is ongoing effort to switch this library to streams version 2. Any help is welcome. :) Meanwhile you can explore other libraries that provide streams2 support with more or less compatibility with `combined-stream`. + +- [combined-stream2](https://www.npmjs.com/package/combined-stream2): A drop-in streams2-compatible replacement for the combined-stream module. + +- [multistream](https://www.npmjs.com/package/multistream): A stream that emits multiple other streams one after another. + +## Installation + +``` bash +npm install combined-stream +``` + +## Usage + +Here is a simple example that shows how you can use combined-stream to combine +two files into one: + +``` javascript +var CombinedStream = require('combined-stream'); +var fs = require('fs'); + +var combinedStream = CombinedStream.create(); +combinedStream.append(fs.createReadStream('file1.txt')); +combinedStream.append(fs.createReadStream('file2.txt')); + +combinedStream.pipe(fs.createWriteStream('combined.txt')); +``` + +While the example above works great, it will pause all source streams until +they are needed. If you don't want that to happen, you can set `pauseStreams` +to `false`: + +``` javascript +var CombinedStream = require('combined-stream'); +var fs = require('fs'); + +var combinedStream = CombinedStream.create({pauseStreams: false}); +combinedStream.append(fs.createReadStream('file1.txt')); +combinedStream.append(fs.createReadStream('file2.txt')); + +combinedStream.pipe(fs.createWriteStream('combined.txt')); +``` + +However, what if you don't have all the source streams yet, or you don't want +to allocate the resources (file descriptors, memory, etc.) for them right away? +Well, in that case you can simply provide a callback that supplies the stream +by calling a `next()` function: + +``` javascript +var CombinedStream = require('combined-stream'); +var fs = require('fs'); + +var combinedStream = CombinedStream.create(); +combinedStream.append(function(next) { + next(fs.createReadStream('file1.txt')); +}); +combinedStream.append(function(next) { + next(fs.createReadStream('file2.txt')); +}); + +combinedStream.pipe(fs.createWriteStream('combined.txt')); +``` + +## API + +### CombinedStream.create([options]) + +Returns a new combined stream object. Available options are: + +* `maxDataSize` +* `pauseStreams` + +The effect of those options is described below. + +### combinedStream.pauseStreams = `true` + +Whether to apply back pressure to the underlaying streams. If set to `false`, +the underlaying streams will never be paused. If set to `true`, the +underlaying streams will be paused right after being appended, as well as when +`delayedStream.pipe()` wants to throttle. + +### combinedStream.maxDataSize = `2 * 1024 * 1024` + +The maximum amount of bytes (or characters) to buffer for all source streams. +If this value is exceeded, `combinedStream` emits an `'error'` event. + +### combinedStream.dataSize = `0` + +The amount of bytes (or characters) currently buffered by `combinedStream`. + +### combinedStream.append(stream) + +Appends the given `stream` to the combinedStream object. If `pauseStreams` is +set to `true, this stream will also be paused right away. + +`streams` can also be a function that takes one parameter called `next`. `next` +is a function that must be invoked in order to provide the `next` stream, see +example above. + +Regardless of how the `stream` is appended, combined-stream always attaches an +`'error'` listener to it, so you don't have to do that manually. + +Special case: `stream` can also be a String or Buffer. + +### combinedStream.write(data) + +You should not call this, `combinedStream` takes care of piping the appended +streams into itself for you. + +### combinedStream.resume() + +Causes `combinedStream` to start drain the streams it manages. The function is +idempotent, and also emits a `'resume'` event each time which usually goes to +the stream that is currently being drained. + +### combinedStream.pause(); + +If `combinedStream.pauseStreams` is set to `false`, this does nothing. +Otherwise a `'pause'` event is emitted, this goes to the stream that is +currently being drained, so you can use it to apply back pressure. + +### combinedStream.end(); + +Sets `combinedStream.writable` to false, emits an `'end'` event, and removes +all streams from the queue. + +### combinedStream.destroy(); + +Same as `combinedStream.end()`, except it emits a `'close'` event instead of +`'end'`. + +## License + +combined-stream is licensed under the MIT license. diff --git a/Scripts/node_modules/combined-stream/lib/combined_stream.js b/Scripts/node_modules/combined-stream/lib/combined_stream.js new file mode 100644 index 00000000..125f097f --- /dev/null +++ b/Scripts/node_modules/combined-stream/lib/combined_stream.js @@ -0,0 +1,208 @@ +var util = require('util'); +var Stream = require('stream').Stream; +var DelayedStream = require('delayed-stream'); + +module.exports = CombinedStream; +function CombinedStream() { + this.writable = false; + this.readable = true; + this.dataSize = 0; + this.maxDataSize = 2 * 1024 * 1024; + this.pauseStreams = true; + + this._released = false; + this._streams = []; + this._currentStream = null; + this._insideLoop = false; + this._pendingNext = false; +} +util.inherits(CombinedStream, Stream); + +CombinedStream.create = function(options) { + var combinedStream = new this(); + + options = options || {}; + for (var option in options) { + combinedStream[option] = options[option]; + } + + return combinedStream; +}; + +CombinedStream.isStreamLike = function(stream) { + return (typeof stream !== 'function') + && (typeof stream !== 'string') + && (typeof stream !== 'boolean') + && (typeof stream !== 'number') + && (!Buffer.isBuffer(stream)); +}; + +CombinedStream.prototype.append = function(stream) { + var isStreamLike = CombinedStream.isStreamLike(stream); + + if (isStreamLike) { + if (!(stream instanceof DelayedStream)) { + var newStream = DelayedStream.create(stream, { + maxDataSize: Infinity, + pauseStream: this.pauseStreams, + }); + stream.on('data', this._checkDataSize.bind(this)); + stream = newStream; + } + + this._handleErrors(stream); + + if (this.pauseStreams) { + stream.pause(); + } + } + + this._streams.push(stream); + return this; +}; + +CombinedStream.prototype.pipe = function(dest, options) { + Stream.prototype.pipe.call(this, dest, options); + this.resume(); + return dest; +}; + +CombinedStream.prototype._getNext = function() { + this._currentStream = null; + + if (this._insideLoop) { + this._pendingNext = true; + return; // defer call + } + + this._insideLoop = true; + try { + do { + this._pendingNext = false; + this._realGetNext(); + } while (this._pendingNext); + } finally { + this._insideLoop = false; + } +}; + +CombinedStream.prototype._realGetNext = function() { + var stream = this._streams.shift(); + + + if (typeof stream == 'undefined') { + this.end(); + return; + } + + if (typeof stream !== 'function') { + this._pipeNext(stream); + return; + } + + var getStream = stream; + getStream(function(stream) { + var isStreamLike = CombinedStream.isStreamLike(stream); + if (isStreamLike) { + stream.on('data', this._checkDataSize.bind(this)); + this._handleErrors(stream); + } + + this._pipeNext(stream); + }.bind(this)); +}; + +CombinedStream.prototype._pipeNext = function(stream) { + this._currentStream = stream; + + var isStreamLike = CombinedStream.isStreamLike(stream); + if (isStreamLike) { + stream.on('end', this._getNext.bind(this)); + stream.pipe(this, {end: false}); + return; + } + + var value = stream; + this.write(value); + this._getNext(); +}; + +CombinedStream.prototype._handleErrors = function(stream) { + var self = this; + stream.on('error', function(err) { + self._emitError(err); + }); +}; + +CombinedStream.prototype.write = function(data) { + this.emit('data', data); +}; + +CombinedStream.prototype.pause = function() { + if (!this.pauseStreams) { + return; + } + + if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause(); + this.emit('pause'); +}; + +CombinedStream.prototype.resume = function() { + if (!this._released) { + this._released = true; + this.writable = true; + this._getNext(); + } + + if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume(); + this.emit('resume'); +}; + +CombinedStream.prototype.end = function() { + this._reset(); + this.emit('end'); +}; + +CombinedStream.prototype.destroy = function() { + this._reset(); + this.emit('close'); +}; + +CombinedStream.prototype._reset = function() { + this.writable = false; + this._streams = []; + this._currentStream = null; +}; + +CombinedStream.prototype._checkDataSize = function() { + this._updateDataSize(); + if (this.dataSize <= this.maxDataSize) { + return; + } + + var message = + 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'; + this._emitError(new Error(message)); +}; + +CombinedStream.prototype._updateDataSize = function() { + this.dataSize = 0; + + var self = this; + this._streams.forEach(function(stream) { + if (!stream.dataSize) { + return; + } + + self.dataSize += stream.dataSize; + }); + + if (this._currentStream && this._currentStream.dataSize) { + this.dataSize += this._currentStream.dataSize; + } +}; + +CombinedStream.prototype._emitError = function(err) { + this._reset(); + this.emit('error', err); +}; diff --git a/Scripts/node_modules/combined-stream/package.json b/Scripts/node_modules/combined-stream/package.json new file mode 100644 index 00000000..6982b6da --- /dev/null +++ b/Scripts/node_modules/combined-stream/package.json @@ -0,0 +1,25 @@ +{ + "author": "Felix Geisendörfer (http://debuggable.com/)", + "name": "combined-stream", + "description": "A stream that emits multiple other streams one after another.", + "version": "1.0.8", + "homepage": "https://github.com/felixge/node-combined-stream", + "repository": { + "type": "git", + "url": "git://github.com/felixge/node-combined-stream.git" + }, + "main": "./lib/combined_stream", + "scripts": { + "test": "node test/run.js" + }, + "engines": { + "node": ">= 0.8" + }, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "devDependencies": { + "far": "~0.0.7" + }, + "license": "MIT" +} diff --git a/Scripts/node_modules/combined-stream/yarn.lock b/Scripts/node_modules/combined-stream/yarn.lock new file mode 100644 index 00000000..7edf4184 --- /dev/null +++ b/Scripts/node_modules/combined-stream/yarn.lock @@ -0,0 +1,17 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + +far@~0.0.7: + version "0.0.7" + resolved "https://registry.yarnpkg.com/far/-/far-0.0.7.tgz#01c1fd362bcd26ce9cf161af3938aa34619f79a7" + dependencies: + oop "0.0.3" + +oop@0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/oop/-/oop-0.0.3.tgz#70fa405a5650891a194fdc82ca68dad6dabf4401" diff --git a/Scripts/node_modules/cosmiconfig/README.md b/Scripts/node_modules/cosmiconfig/README.md index 5f99b0a2..59b09d07 100644 --- a/Scripts/node_modules/cosmiconfig/README.md +++ b/Scripts/node_modules/cosmiconfig/README.md @@ -7,7 +7,7 @@ Cosmiconfig searches for and loads configuration for your program. It features smart defaults based on conventional expectations in the JavaScript ecosystem. But it's also flexible enough to search wherever you'd like to search, and load whatever you'd like to load. -By default, Cosmiconfig will start where you tell it to start and search up the directory tree for the following: +By default, Cosmiconfig will check the current directory for the following: - a `package.json` property - a JSON or YAML, extensionless "rc file" @@ -20,10 +20,11 @@ For example, if your module's name is "myapp", cosmiconfig will search up the di - a `myapp` property in `package.json` - a `.myapprc` file in JSON or YAML format - a `.myapprc.json`, `.myapprc.yaml`, `.myapprc.yml`, `.myapprc.js`, `.myapprc.ts`, `.myapprc.mjs`, or `.myapprc.cjs` file -- a `myapprc`, `myapprc.json`, `myapprc.yaml`, `myapprc.yml`, `myapprc.js`, `myapprc.ts` or `myapprc.cjs` file inside a `.config` subdirectory +- a `myapprc`, `myapprc.json`, `myapprc.yaml`, `myapprc.yml`, `myapprc.js`, `myapprc.ts`, `myapprc.mjs`, or `myapprc.cjs` file inside a `.config` subdirectory - a `myapp.config.js`, `myapp.config.ts`, `myapp.config.mjs`, or `myapp.config.cjs` file -Cosmiconfig continues to search up the directory tree, checking each of these places in each directory, until it finds some acceptable configuration (or hits the home directory). +Optionally, you can tell it to search up the directory tree using [search strategies], +checking each of these places in each directory, until it finds some acceptable configuration (or hits the home directory). ## Table of contents @@ -45,6 +46,7 @@ Cosmiconfig continues to search up the directory tree, checking each of these pl - [explorerSync.clearSearchCache()](#explorersyncclearsearchcache) - [explorerSync.clearCaches()](#explorersyncclearcaches) - [cosmiconfigOptions](#cosmiconfigoptions) + - [searchStrategy](#searchstrategy) - [searchPlaces](#searchplaces) - [loaders](#loaders) - [packageProp](#packageprop) @@ -56,6 +58,7 @@ Cosmiconfig continues to search up the directory tree, checking each of these pl - [Caching](#caching) - [Differences from rc](#differences-from-rc) - [Usage for end users](#usage-for-end-users) + - [Imports](#imports) - [Contributing & Development](#contributing--development) ## Installation @@ -93,7 +96,7 @@ explorer.search() // Load a configuration directly when you know where it should be. // The result object is the same as for search. // See documentation for load, below. -explorer.load(pathToConfig).then(..); +explorer.load(pathToConfig).then(/* ... */); // You can also search and load synchronously. const explorerSync = cosmiconfigSync(moduleName); @@ -116,7 +119,7 @@ The result object you get from `search` or `load` has the following properties: ```js const { cosmiconfig } = require('cosmiconfig'); -const explorer = cosmiconfig(moduleName[, cosmiconfigOptions]) +const explorer = cosmiconfig(moduleName, /* optional */ cosmiconfigOptions) ``` Creates a cosmiconfig instance ("explorer") configured according to the arguments, and initializes its caches. @@ -135,7 +138,7 @@ You may not need them, and should first read about the functions you'll use. ### explorer.search() ```js -explorer.search([searchFrom]).then(result => {..}) +explorer.search([searchFrom]).then(result => { /* ... */ }) ``` Searches for a configuration file. Returns a Promise that resolves with a [result] or with `null`, if no configuration file is found. @@ -148,13 +151,18 @@ Here's how your default [`search()`] will work: - Starting from `process.cwd()` (or some other directory defined by the `searchFrom` argument to [`search()`]), look for configuration objects in the following places: 1. A `goldengrahams` property in a `package.json` file. 2. A `.goldengrahamsrc` file with JSON or YAML syntax. - 3. A `.goldengrahamsrc.json`, `.goldengrahamsrc.yaml`, `.goldengrahamsrc.yml`, `.goldengrahamsrc.js`, `.goldengrahamsrc.ts`, or `.goldengrahamsrc.cjs` file. (To learn more about how JS files are loaded, see ["Loading JS modules"].) - 4. A `goldengrahamsrc`, `goldengrahamsrc.json`, `goldengrahamsrc.yaml`, `goldengrahamsrc.yml`, `goldengrahamsrc.js`, `goldengrahamsrc.ts`, or `goldengrahamsrc.cjs` file in the `.config` subdirectory. + 3. A `.goldengrahamsrc.json`, `.goldengrahamsrc.yaml`, `.goldengrahamsrc.yml`, `.goldengrahamsrc.js`, `.goldengrahamsrc.ts`, `.goldengrahamsrc.mjs`, or `.goldengrahamsrc.cjs` file. (To learn more about how JS files are loaded, see ["Loading JS modules"].) + 4. A `goldengrahamsrc`, `goldengrahamsrc.json`, `goldengrahamsrc.yaml`, `goldengrahamsrc.yml`, `goldengrahamsrc.js`, `goldengrahamsrc.ts`, `goldengrahamsrc.mjs`, or `goldengrahamsrc.cjs` file in the `.config` subdirectory. 5. A `goldengrahams.config.js`, `goldengrahams.config.ts`, `goldengrahams.config.mjs`, or `goldengrahams.config.cjs` file. (To learn more about how JS files are loaded, see ["Loading JS modules"].) -- If none of those searches reveal a configuration object, move up one directory level and try again. - So the search continues in `./`, `../`, `../../`, `../../../`, etc., checking the same places in each directory. -- Continue searching until arriving at your home directory (or some other directory defined by the cosmiconfig option [`stopDir`]). -- For JS files, +- If none of those searches reveal a configuration object, continue depending on the current search strategy: + - If it's `none` (which is the default if you don't specify a [`stopDir`] option), stop here and return/resolve with `null`. + - If it's `global` (which is the default if you specify a [`stopDir`] option), move up one directory level and try again, + recursing until arriving at the configured [`stopDir`] option, which defaults to the user's home directory. + - After arriving at the [`stopDir`], the global configuration directory (as defined by [`env-paths`] without prefix) is also checked, + looking at the files `config`, `config.json`, `config.yaml`, `config.yml`, `config.js`, `config.ts`, `config.cjs`, and `config.mjs` + in the directory `~/.config/goldengrahams/` (on Linux; see [`env-paths`] documentation for other OSs). + - If it's `project`, check whether a `package.json` file is present in the current directory, and if not, + move up one directory level and try again, recursing until there is one. - If at any point a parsable configuration is found, the [`search()`] Promise resolves with its [result] \(or, with [`explorerSync.search()`], the [result] is returned). - If no configuration object is found, the [`search()`] Promise resolves with `null` (or, with [`explorerSync.search()`], `null` is returned). - If a configuration object is found *but is malformed* (causing a parsing error), the [`search()`] Promise rejects with that error (so you should `.catch()` it). (Or, with [`explorerSync.search()`], the error is thrown.) @@ -178,7 +186,7 @@ If it's a file, the search starts in that file's directory. ### explorer.load() ```js -explorer.load(loadPath).then(result => {..}) +explorer.load(loadPath).then(result => { /* ... */ }) ``` Loads a configuration file. Returns a Promise that resolves with a [result] or rejects with an error (if the file does not exist or cannot be loaded). @@ -190,6 +198,7 @@ explorer.load('load/this/file.json'); // Tries to load load/this/file.json. ``` If you load a `package.json` file, the result will be derived from whatever property is specified as your [`packageProp`]. +`package.yaml` will work as well if you specify these file names in your [`searchPlaces`]. You can do the same thing synchronously with [`explorerSync.load()`]. @@ -211,7 +220,7 @@ Performs both [`clearLoadCache()`] and [`clearSearchCache()`]. ```js const { cosmiconfigSync } = require('cosmiconfig'); -const explorerSync = cosmiconfigSync(moduleName[, cosmiconfigOptions]) +const explorerSync = cosmiconfigSync(moduleName, /* optional */ cosmiconfigOptions) ``` Creates a *synchronous* cosmiconfig instance ("explorerSync") configured according to the arguments, and initializes its caches. @@ -256,6 +265,33 @@ Type: `Object`. Possible options are documented below. +### searchStrategy + +Type: `string` +Default: `global` if [`stopDir`] is specified, `none` otherwise. + +The strategy that should be used to determine which directories to check for configuration files. + +- `none`: Only checks in the current working directory. +- `project`: Starts in the current working directory, traversing upwards until a `package.{json,yaml}` file is found. +- `global`: Starts in the current working directory, traversing upwards until the configured [`stopDir`] + (or the current user's home directory if none is given). Then, if no configuration is found, also look in the + operating system's default configuration directory (according to [`env-paths`] without prefix), + where a different set of file names is checked: + +```js +[ + `config`, + `config.json`, + `config.yaml`, + `config.yml`, + `config.js`, + `config.ts`, + `config.cjs`, + `config.mjs` +] +``` + ### searchPlaces Type: `Array`. @@ -285,6 +321,7 @@ For the [asynchronous API](#asynchronous-api), these are the default `searchPlac `.config/${moduleName}rc.yml`, `.config/${moduleName}rc.js`, `.config/${moduleName}rc.ts`, + `.config/${moduleName}rc.mjs`, `.config/${moduleName}rc.cjs`, `${moduleName}.config.js`, `${moduleName}.config.ts`, @@ -304,30 +341,41 @@ Read more about [`loaders`] below. `package.json` is a special value: When it is included in `searchPlaces`, Cosmiconfig will always parse it as JSON and load a property within it, not the whole file. That property is defined with the [`packageProp`] option, and defaults to your module name. +`package.yaml` (used by pnpm) works the same way. + Examples, with a module named `porgy`: ```js // Disallow extensions on rc files: -['package.json', '.porgyrc', 'porgy.config.js'][ - // Limit the options dramatically: - ('package.json', '.porgyrc') -][ - // Maybe you want to look for a wide variety of JS flavors: - ('porgy.config.js', +['package.json', '.porgyrc', 'porgy.config.js'] +``` + +```js +// Limit the options dramatically: +['package.json', '.porgyrc'] +``` + +```js +// Maybe you want to look for a wide variety of JS flavors: +[ + 'porgy.config.js', 'porgy.config.mjs', 'porgy.config.ts', - 'porgy.config.coffee') -][ - // ^^ You will need to designate custom loaders to tell - // Cosmiconfig how to handle `.ts` and `.coffee` files. + 'porgy.config.coffee' +] +// ^^ You will need to designate a custom loader to tell +// Cosmiconfig how to handle `.coffee` files. +``` - // Look within a .config/ subdirectory of every searched directory: - ('package.json', +```js +// Look within a .config/ subdirectory of every searched directory: +[ + 'package.json', '.porgyrc', '.config/.porgyrc', '.porgyrc.json', - '.config/.porgyrc.json') -]; + '.config/.porgyrc.json' +] ``` ### loaders @@ -388,24 +436,19 @@ To accomplish that, provide the following `loaders` value: If you want to load files that are not handled by the loader functions Cosmiconfig exposes, you can write a custom loader function or use one from NPM if it exists. -**Third-party loaders:** - -- [cosmiconfig-typescript-loader](https://github.com/codex-/cosmiconfig-typescript-loader) - **Use cases for custom loader function:** - Allow configuration syntaxes that aren't handled by Cosmiconfig's defaults, like JSON5, INI, or XML. -- Allow ES2015 modules from `.mjs` configuration files. - Parse JS files with Babel before deriving the configuration. **Custom loader functions** have the following signature: -```js +```ts // Sync -(filepath: string, content: string) => Object | null +type SyncLoader = (filepath: string, content: string) => Object | null // Async -(filepath: string, content: string) => Object | null | Promise +type AsyncLoader = (filepath: string, content: string) => Object | null | Promise ``` Cosmiconfig reads the file when it checks whether the file exists, so it will provide you with both the file's path and its content. @@ -422,24 +465,32 @@ Examples: ```js // Allow JSON5 syntax: -{ - '.json': json5Loader -} +cosmiconfig('foo', { + loaders: { + '.json': json5Loader + } +}); // Allow a special configuration syntax of your own creation: -{ - '.special': specialLoader -} +cosmiconfig('foo', { + loaders: { + '.special': specialLoader + } +}); // Allow many flavors of JS, using custom loaders: -{ - '.coffee': coffeeScriptLoader -} +cosmiconfig('foo', { + loaders: { + '.coffee': coffeeScriptLoader + } +}); // Allow many flavors of JS but rely on require hooks: -{ - '.coffee': defaultLoaders['.js'] -} +cosmiconfig('foo', { + loaders: { + '.coffee': defaultLoaders['.js'] + } +}); ``` ### packageProp @@ -447,7 +498,7 @@ Examples: Type: `string | Array`. Default: `` `${moduleName}` ``. -Name of the property in `package.json` to look for. +Name of the property in `package.json` (or `package.yaml`) to look for. Use a period-delimited string or an array of strings to describe a path to nested properties. @@ -456,7 +507,7 @@ For example, the value `'configs.myPackage'` or `['configs', 'myPackage']` will ```json { "configs": { - "myPackage": {..} + "myPackage": {"option": "value"} } } ``` @@ -467,7 +518,7 @@ If nested property names within the path include periods, you need to use an arr { "configs": { "foo.bar": { - "baz": {..} + "baz": {"option": "value"} } } } @@ -575,9 +626,11 @@ package.json .config/{NAME}rc.yml .config/{NAME}rc.js .config/{NAME}rc.ts +.config/{NAME}rc.mjs .config/{NAME}rc.cjs {NAME}.config.js {NAME}.config.ts +{NAME}.config.mjs {NAME}.config.cjs ``` @@ -609,25 +662,30 @@ You can also add a `cosmiconfig` key within your `package.json` file or create o to configure `cosmiconfig` itself: ``` -.config.json -.config.yaml -.config.yml -.config.js -.config.ts -.config.cjs +.config/config.json +.config/config.yaml +.config/config.yml +.config/config.js +.config/config.ts +.config/config.cjs ``` -The following property is currently actively supported in these places: +The following properties are currently actively supported in these places: ```yaml cosmiconfig: - # overrides where configuration files are being searched to enforce a custom naming convention and format + # adds places where configuration files are being searched searchPlaces: - .config/{name}.yml + # to enforce a custom naming convention and format, don't merge the above with the tool-defined search places + # (`true` is the default setting) + mergeSearchPlaces: false ``` > **Note:** technically, you can overwrite all options described in [cosmiconfigOptions](#cosmiconfigoptions) here, > but everything not listed above should be used at your own risk, as it has not been tested explicitly. +> The only exceptions to this are the `loaders` property, which is explicitly not supported at this time, +> and the `searchStrategy` property, which is intentionally disallowed. You can also add more root properties outside the `cosmiconfig` property to configure your tools, entirely eliminating the need to look for additional configuration files: @@ -640,6 +698,41 @@ prettier: semi: true ``` +### Imports + +Wherever you put your configuration (the package.json file, a root config file or a package-specific config file), +you can use the special `$import` key to import another file as a base. + +For example, you can import from an npm package (in this example, `@foocorp/config`). + +`.prettierrc.base.yml` in said npm package could define some company-wide defaults: + +```yaml +printWidth: 120 +semi: true +tabWidth: 2 +``` + +And then, the `.prettierrc.yml` file in the project itself would just reference that file, +optionally overriding the defaults with project-specific settings: + +```yaml +$import: node_modules/@foocorp/config/.prettierrc.base.yml +# we want more space! +printWidth: 200 +``` + +It is possible to import multiple base files by specifying an array of paths, +which will be processed in declaration order; +that means that the last entry will win if there are conflicting properties. + +It is also possible to import file formats other than the importing format +as long as they are supported by the loaders specified by the developer of the tool you're configuring. + +```yaml +$import: [first.yml, second.json, third.config.js] +``` + ## Contributing & Development Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms. @@ -683,3 +776,7 @@ And please do participate! [`explorer.load()`]: #explorerload ["Loading JS modules"]: #loading-js-modules + +[`env-paths`]: https://github.com/sindresorhus/env-paths + +[search strategies]: #searchstrategy diff --git a/Scripts/node_modules/cosmiconfig/dist/Explorer.js b/Scripts/node_modules/cosmiconfig/dist/Explorer.js index 4da643a3..fa5fb986 100644 --- a/Scripts/node_modules/cosmiconfig/dist/Explorer.js +++ b/Scripts/node_modules/cosmiconfig/dist/Explorer.js @@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.Explorer = void 0; const promises_1 = __importDefault(require("fs/promises")); const path_1 = __importDefault(require("path")); -const path_type_1 = require("path-type"); +const defaults_1 = require("./defaults"); const ExplorerBase_js_1 = require("./ExplorerBase.js"); -const loaders_js_1 = require("./loaders.js"); +const merge_1 = require("./merge"); const util_js_1 = require("./util.js"); /** * @internal @@ -33,13 +33,19 @@ class Explorer extends ExplorerBase_js_1.ExplorerBase { return config; } } - const stopDir = path_1.default.resolve(this.config.stopDir); from = path_1.default.resolve(from); + const dirs = this.#getDirs(from); + const firstDirIter = await dirs.next(); + /* istanbul ignore if -- @preserve */ + if (firstDirIter.done) { + // this should never happen + throw new Error(`Could not find any folders to iterate through (start from ${from})`); + } + let currentDir = firstDirIter.value; const search = async () => { /* istanbul ignore if -- @preserve */ - if (await (0, path_type_1.isDirectory)(from)) { - for (const place of this.config.searchPlaces) { - const filepath = path_1.default.join(from, place); + if (await (0, util_js_1.isDirectory)(currentDir.path)) { + for (const filepath of this.getSearchPlacesForDir(currentDir, defaults_1.globalConfigSearchPlaces)) { try { const result = await this.#readConfiguration(filepath); if (result !== null && @@ -50,18 +56,19 @@ class Explorer extends ExplorerBase_js_1.ExplorerBase { catch (error) { if (error.code === 'ENOENT' || error.code === 'EISDIR' || - error.code === 'ENOTDIR') { + error.code === 'ENOTDIR' || + error.code === 'EACCES') { continue; } throw error; } } } - const dir = path_1.default.dirname(from); - if (from !== stopDir && from !== dir) { - from = dir; + const nextDirIter = await dirs.next(); + if (!nextDirIter.done) { + currentDir = nextDirIter.value; if (this.searchCache) { - return await (0, util_js_1.emplace)(this.searchCache, from, search); + return await (0, util_js_1.emplace)(this.searchCache, currentDir.path, search); } return await search(); } @@ -72,31 +79,91 @@ class Explorer extends ExplorerBase_js_1.ExplorerBase { } return await search(); } - async #readConfiguration(filepath) { + async #readConfiguration(filepath, importStack = []) { const contents = await promises_1.default.readFile(filepath, { encoding: 'utf-8' }); - return this.toCosmiconfigResult(filepath, await this.#loadConfiguration(filepath, contents)); + return this.toCosmiconfigResult(filepath, await this.#loadConfigFileWithImports(filepath, contents, importStack)); + } + async #loadConfigFileWithImports(filepath, contents, importStack) { + const loadedContent = await this.#loadConfiguration(filepath, contents); + if (!loadedContent || !(0, merge_1.hasOwn)(loadedContent, '$import')) { + return loadedContent; + } + const fileDirectory = path_1.default.dirname(filepath); + const { $import: imports, ...ownContent } = loadedContent; + const importPaths = Array.isArray(imports) ? imports : [imports]; + const newImportStack = [...importStack, filepath]; + this.validateImports(filepath, importPaths, newImportStack); + const importedConfigs = await Promise.all(importPaths.map(async (importPath) => { + const fullPath = path_1.default.resolve(fileDirectory, importPath); + const result = await this.#readConfiguration(fullPath, newImportStack); + return result?.config; + })); + return (0, merge_1.mergeAll)([...importedConfigs, ownContent], { + mergeArrays: this.config.mergeImportArrays, + }); } async #loadConfiguration(filepath, contents) { if (contents.trim() === '') { return; } - if (path_1.default.basename(filepath) === 'package.json') { - return ((0, util_js_1.getPropertyByPath)((0, loaders_js_1.loadJson)(filepath, contents), this.config.packageProp) ?? null); - } const extension = path_1.default.extname(filepath); + const loader = this.config.loaders[extension || 'noExt'] ?? + this.config.loaders['default']; + if (!loader) { + throw new Error(`No loader specified for ${(0, ExplorerBase_js_1.getExtensionDescription)(extension)}`); + } try { - const loader = this.config.loaders[extension || 'noExt'] ?? - this.config.loaders['default']; - if (loader !== undefined) { - // eslint-disable-next-line @typescript-eslint/return-await - return await loader(filepath, contents); + const loadedContents = await loader(filepath, contents); + if (path_1.default.basename(filepath, extension) !== 'package') { + return loadedContents; } + return ((0, util_js_1.getPropertyByPath)(loadedContents, this.config.packageProp ?? this.config.moduleName) ?? null); } catch (error) { error.filepath = filepath; throw error; } - throw new Error(`No loader specified for ${(0, ExplorerBase_js_1.getExtensionDescription)(extension)}`); + } + async #fileExists(path) { + try { + await promises_1.default.stat(path); + return true; + } + catch (e) { + return false; + } + } + async *#getDirs(startDir) { + switch (this.config.searchStrategy) { + case 'none': { + // only check in the passed directory (defaults to working directory) + yield { path: startDir, isGlobalConfig: false }; + return; + } + case 'project': { + let currentDir = startDir; + while (true) { + yield { path: currentDir, isGlobalConfig: false }; + for (const ext of ['json', 'yaml']) { + const packageFile = path_1.default.join(currentDir, `package.${ext}`); + if (await this.#fileExists(packageFile)) { + break; + } + } + const parentDir = path_1.default.dirname(currentDir); + /* istanbul ignore if -- @preserve */ + if (parentDir === currentDir) { + // we're probably at the root of the directory structure + break; + } + currentDir = parentDir; + } + return; + } + case 'global': { + yield* this.getGlobalDirs(startDir); + } + } } } exports.Explorer = Explorer; diff --git a/Scripts/node_modules/cosmiconfig/dist/Explorer.js.map b/Scripts/node_modules/cosmiconfig/dist/Explorer.js.map index 24b278ae..c316dcc9 100644 --- a/Scripts/node_modules/cosmiconfig/dist/Explorer.js.map +++ b/Scripts/node_modules/cosmiconfig/dist/Explorer.js.map @@ -1 +1 @@ -{"version":3,"file":"Explorer.js","sourceRoot":"","sources":["../src/Explorer.ts"],"names":[],"mappings":";;;;;;AAAA,2DAA6B;AAC7B,gDAAwB;AACxB,yCAAwC;AACxC,uDAA0E;AAC1E,6CAAwC;AAExC,uCAAuD;AAEvD;;GAEG;AACH,MAAa,QAAS,SAAQ,8BAA6B;IAClD,KAAK,CAAC,IAAI,CAAC,QAAgB;QAChC,QAAQ,GAAG,cAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAElC,MAAM,IAAI,GAAG,KAAK,IAAgC,EAAE;YAClD,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,CAChC,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CACxC,CAAC;QACJ,CAAC,CAAC;QACF,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,OAAO,MAAM,IAAA,iBAAO,EAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;SACtD;QACD,OAAO,MAAM,IAAI,EAAE,CAAC;IACtB,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,IAAI,GAAG,EAAE;QAC3B,IAAI,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE;YAClC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;YAC9B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI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EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC;oBAClD,KAAK,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;wBAClC,MAAM,WAAW,GAAG,cAAI,CAAC,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,EAAE,CAAC,CAAC;wBAC5D,IAAI,MAAM,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE;4BACvC,MAAM;yBACP;qBACF;oBACD,MAAM,SAAS,GAAG,cAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;oBAC3C,qCAAqC;oBACrC,IAAI,SAAS,KAAK,UAAU,EAAE;wBAC5B,wDAAwD;wBACxD,MAAM;qBACP;oBACD,UAAU,GAAG,SAAS,CAAC;iBACxB;gBACD,OAAO;aACR;YACD,KAAK,QAAQ,CAAC,CAAC;gBACb,KAAK,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;aACrC;SACF;IACH,CAAC;CACF;AA1MD,4BA0MC"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/ExplorerBase.js b/Scripts/node_modules/cosmiconfig/dist/ExplorerBase.js index e3f66f22..3a45b38b 100644 --- a/Scripts/node_modules/cosmiconfig/dist/ExplorerBase.js +++ b/Scripts/node_modules/cosmiconfig/dist/ExplorerBase.js @@ -4,6 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) { }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getExtensionDescription = exports.ExplorerBase = void 0; +const env_paths_1 = __importDefault(require("env-paths")); +const os_1 = __importDefault(require("os")); const path_1 = __importDefault(require("path")); const util_js_1 = require("./util.js"); /** @@ -62,13 +64,55 @@ class ExplorerBase { } if (this.config.applyPackagePropertyPathToConfiguration || this.#loadingMetaConfig) { - config = (0, util_js_1.getPropertyByPath)(config, this.config.packageProp); + const packageProp = this.config.packageProp ?? this.config.moduleName; + config = (0, util_js_1.getPropertyByPath)(config, packageProp); } if (config === undefined) { return { filepath, config: undefined, isEmpty: true }; } return { config, filepath }; } + validateImports(containingFilePath, imports, importStack) { + const fileDirectory = path_1.default.dirname(containingFilePath); + for (const importPath of imports) { + if (typeof importPath !== 'string') { + throw new Error(`${containingFilePath}: Key $import must contain a string or a list of strings`); + } + const fullPath = path_1.default.resolve(fileDirectory, importPath); + if (fullPath === containingFilePath) { + throw new Error(`Self-import detected in ${containingFilePath}`); + } + const idx = importStack.indexOf(fullPath); + if (idx !== -1) { + throw new Error(`Circular import detected: +${[...importStack, fullPath] + .map((path, i) => `${i + 1}. ${path}`) + .join('\n')} (same as ${idx + 1}.)`); + } + } + } + getSearchPlacesForDir(dir, globalConfigPlaces) { + return (dir.isGlobalConfig ? globalConfigPlaces : this.config.searchPlaces).map((place) => path_1.default.join(dir.path, place)); + } + getGlobalConfigDir() { + return (0, env_paths_1.default)(this.config.moduleName, { suffix: '' }).config; + } + *getGlobalDirs(startDir) { + const stopDir = path_1.default.resolve(this.config.stopDir ?? os_1.default.homedir()); + yield { path: startDir, isGlobalConfig: false }; + let currentDir = startDir; + while (currentDir !== stopDir) { + const parentDir = path_1.default.dirname(currentDir); + /* istanbul ignore if -- @preserve */ + if (parentDir === currentDir) { + // we're probably at the root of the directory structure + break; + } + yield { path: parentDir, isGlobalConfig: false }; + currentDir = parentDir; + } + yield { path: this.getGlobalConfigDir(), isGlobalConfig: true }; + } } exports.ExplorerBase = ExplorerBase; /** diff --git a/Scripts/node_modules/cosmiconfig/dist/ExplorerBase.js.map b/Scripts/node_modules/cosmiconfig/dist/ExplorerBase.js.map index 2b6f0d84..d16e5079 100644 --- a/Scripts/node_modules/cosmiconfig/dist/ExplorerBase.js.map +++ b/Scripts/node_modules/cosmiconfig/dist/ExplorerBase.js.map @@ -1 +1 @@ -{"version":3,"file":"ExplorerBase.js","sourceRoot":"","sources":["../src/ExplorerBase.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AASxB,uCAA8C;AAE9C;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;YACpB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;SAC1B;IACH,CAAC;IAEM,WAAW;QAChB,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;IAES,mBAAmB,CAC3B,QAAgB,EAChB,MAAc;QAEd,IAAI,MAAM,KAAK,IAAI,EAAE;YACnB,OAAO,IAAI,CAAC;SACb;QACD,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;SACvD;QACD,IACE,IAAI,CAAC,MAAM,CAAC,uCAAuC;YACnD,IAAI,CAAC,kBAAkB,EACvB;YACA,MAAM,GAAG,IAAA,2BAAiB,EAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;SAC7D;QACD,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;SACvD;QACD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAC9B,CAAC;CACF;AAvFD,oCAuFC;AAED;;GAEG;AACH,SAAgB,uBAAuB,CAAC,SAAkB;IACxD,uCAAuC;IACvC,OAAO,SAAS,CAAC,CAAC,CAAC,cAAc,SAAS,GAAG,CAAC,CAAC,CAAC,0BAA0B,CAAC;AAC7E,CAAC;AAHD,0DAGC"} \ No newline at end of file +{"version":3,"file":"ExplorerBase.js","sourceRoot":"","sources":["../src/ExplorerBase.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAiC;AACjC,4CAAoB;AACpB,gDAAwB;AAUxB,uCAA8C;AAE9C;;GAEG;AACH,MAAsB,YAAY;IAGhC,kBAAkB,GAAG,KAAK,CAAC;IAER,MAAM,CAAI;IACV,SAAS,CAEb;IACI,WAAW,CAEf;IAEf,YAAmB,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,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC;YACjD,UAAU,GAAG,SAAS,CAAC;SACxB;QAED,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,kBAAkB,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC;IAClE,CAAC;CACF;AApJD,oCAoJC;AAED;;GAEG;AACH,SAAgB,uBAAuB,CAAC,SAAkB;IACxD,uCAAuC;IACvC,OAAO,SAAS,CAAC,CAAC,CAAC,cAAc,SAAS,GAAG,CAAC,CAAC,CAAC,0BAA0B,CAAC;AAC7E,CAAC;AAHD,0DAGC"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/ExplorerSync.js b/Scripts/node_modules/cosmiconfig/dist/ExplorerSync.js index eea655dc..2be8aeeb 100644 --- a/Scripts/node_modules/cosmiconfig/dist/ExplorerSync.js +++ b/Scripts/node_modules/cosmiconfig/dist/ExplorerSync.js @@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.ExplorerSync = void 0; const fs_1 = __importDefault(require("fs")); const path_1 = __importDefault(require("path")); -const path_type_1 = require("path-type"); +const defaults_1 = require("./defaults"); const ExplorerBase_js_1 = require("./ExplorerBase.js"); -const loaders_js_1 = require("./loaders.js"); +const merge_1 = require("./merge"); const util_js_1 = require("./util.js"); /** * @internal @@ -33,13 +33,19 @@ class ExplorerSync extends ExplorerBase_js_1.ExplorerBase { return config; } } - const stopDir = path_1.default.resolve(this.config.stopDir); from = path_1.default.resolve(from); + const dirs = this.#getDirs(from); + const firstDirIter = dirs.next(); + /* istanbul ignore if -- @preserve */ + if (firstDirIter.done) { + // this should never happen + throw new Error(`Could not find any folders to iterate through (start from ${from})`); + } + let currentDir = firstDirIter.value; const search = () => { /* istanbul ignore if -- @preserve */ - if ((0, path_type_1.isDirectorySync)(from)) { - for (const place of this.config.searchPlaces) { - const filepath = path_1.default.join(from, place); + if ((0, util_js_1.isDirectorySync)(currentDir.path)) { + for (const filepath of this.getSearchPlacesForDir(currentDir, defaults_1.globalConfigSearchPlacesSync)) { try { const result = this.#readConfiguration(filepath); if (result !== null && @@ -50,18 +56,19 @@ class ExplorerSync extends ExplorerBase_js_1.ExplorerBase { catch (error) { if (error.code === 'ENOENT' || error.code === 'EISDIR' || - error.code === 'ENOTDIR') { + error.code === 'ENOTDIR' || + error.code === 'EACCES') { continue; } throw error; } } } - const dir = path_1.default.dirname(from); - if (from !== stopDir && from !== dir) { - from = dir; + const nextDirIter = dirs.next(); + if (!nextDirIter.done) { + currentDir = nextDirIter.value; if (this.searchCache) { - return (0, util_js_1.emplace)(this.searchCache, from, search); + return (0, util_js_1.emplace)(this.searchCache, currentDir.path, search); } return search(); } @@ -72,30 +79,91 @@ class ExplorerSync extends ExplorerBase_js_1.ExplorerBase { } return search(); } - #readConfiguration(filepath) { + #readConfiguration(filepath, importStack = []) { const contents = fs_1.default.readFileSync(filepath, 'utf8'); - return this.toCosmiconfigResult(filepath, this.#loadConfiguration(filepath, contents)); + return this.toCosmiconfigResult(filepath, this.#loadConfigFileWithImports(filepath, contents, importStack)); + } + #loadConfigFileWithImports(filepath, contents, importStack) { + const loadedContent = this.#loadConfiguration(filepath, contents); + if (!loadedContent || !(0, merge_1.hasOwn)(loadedContent, '$import')) { + return loadedContent; + } + const fileDirectory = path_1.default.dirname(filepath); + const { $import: imports, ...ownContent } = loadedContent; + const importPaths = Array.isArray(imports) ? imports : [imports]; + const newImportStack = [...importStack, filepath]; + this.validateImports(filepath, importPaths, newImportStack); + const importedConfigs = importPaths.map((importPath) => { + const fullPath = path_1.default.resolve(fileDirectory, importPath); + const result = this.#readConfiguration(fullPath, newImportStack); + return result?.config; + }); + return (0, merge_1.mergeAll)([...importedConfigs, ownContent], { + mergeArrays: this.config.mergeImportArrays, + }); } #loadConfiguration(filepath, contents) { if (contents.trim() === '') { return; } - if (path_1.default.basename(filepath) === 'package.json') { - return ((0, util_js_1.getPropertyByPath)((0, loaders_js_1.loadJson)(filepath, contents), this.config.packageProp) ?? null); - } const extension = path_1.default.extname(filepath); + const loader = this.config.loaders[extension || 'noExt'] ?? + this.config.loaders['default']; + if (!loader) { + throw new Error(`No loader specified for ${(0, ExplorerBase_js_1.getExtensionDescription)(extension)}`); + } try { - const loader = this.config.loaders[extension || 'noExt'] ?? - this.config.loaders['default']; - if (loader !== undefined) { - return loader(filepath, contents); + const loadedContents = loader(filepath, contents); + if (path_1.default.basename(filepath, extension) !== 'package') { + return loadedContents; } + return ((0, util_js_1.getPropertyByPath)(loadedContents, this.config.packageProp ?? this.config.moduleName) ?? null); } catch (error) { error.filepath = filepath; throw error; } - throw new Error(`No loader specified for ${(0, ExplorerBase_js_1.getExtensionDescription)(extension)}`); + } + #fileExists(path) { + try { + fs_1.default.statSync(path); + return true; + } + catch (e) { + return false; + } + } + *#getDirs(startDir) { + switch (this.config.searchStrategy) { + case 'none': { + // there is no next dir + yield { path: startDir, isGlobalConfig: false }; + return; + } + case 'project': { + let currentDir = startDir; + while (true) { + yield { path: currentDir, isGlobalConfig: false }; + for (const ext of ['json', 'yaml']) { + const packageFile = path_1.default.join(currentDir, `package.${ext}`); + if (this.#fileExists(packageFile)) { + break; + } + } + const parentDir = path_1.default.dirname(currentDir); + /* istanbul ignore if -- @preserve */ + if (parentDir === currentDir) { + // we're probably at the root of the directory structure + break; + } + currentDir = parentDir; + } + return; + } + case 'global': { + yield* this.getGlobalDirs(startDir); + } + } } /** * @deprecated Use {@link ExplorerSync.prototype.load}. diff --git a/Scripts/node_modules/cosmiconfig/dist/ExplorerSync.js.map b/Scripts/node_modules/cosmiconfig/dist/ExplorerSync.js.map index 588f00a4..3c6ee532 100644 --- a/Scripts/node_modules/cosmiconfig/dist/ExplorerSync.js.map +++ b/Scripts/node_modules/cosmiconfig/dist/ExplorerSync.js.map @@ -1 +1 @@ -{"version":3,"file":"ExplorerSync.js","sourceRoot":"","sources":["../src/ExplorerSync.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB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AAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,0BAA0B;IACnB,UAAU,CAAC,IAAI,GAAG,EAAE;QACzB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;CACF;AAlND,oCAkNC"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/cacheWrapper.d.ts b/Scripts/node_modules/cosmiconfig/dist/cacheWrapper.d.ts new file mode 100644 index 00000000..adb569e8 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/cacheWrapper.d.ts @@ -0,0 +1,5 @@ +import { Cache, CosmiconfigResult } from './types'; +declare function cacheWrapper(cache: Cache, key: string, fn: () => Promise): Promise; +declare function cacheWrapperSync(cache: Cache, key: string, fn: () => CosmiconfigResult): CosmiconfigResult; +export { cacheWrapper, cacheWrapperSync }; +//# sourceMappingURL=cacheWrapper.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/cacheWrapper.d.ts.map b/Scripts/node_modules/cosmiconfig/dist/cacheWrapper.d.ts.map new file mode 100644 index 00000000..dc7e73fc --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/cacheWrapper.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"cacheWrapper.d.ts","sourceRoot":"","sources":["../src/cacheWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEnD,iBAAe,YAAY,CACzB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,MAAM,EACX,EAAE,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,GACnC,OAAO,CAAC,iBAAiB,CAAC,CAS5B;AAED,iBAAS,gBAAgB,CACvB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,MAAM,EACX,EAAE,EAAE,MAAM,iBAAiB,GAC1B,iBAAiB,CASnB;AAED,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/cacheWrapper.js b/Scripts/node_modules/cosmiconfig/dist/cacheWrapper.js new file mode 100644 index 00000000..712db922 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/cacheWrapper.js @@ -0,0 +1,32 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.cacheWrapper = cacheWrapper; +exports.cacheWrapperSync = cacheWrapperSync; + +async function cacheWrapper(cache, key, fn) { + const cached = cache.get(key); + + if (cached !== undefined) { + return cached; + } + + const result = await fn(); + cache.set(key, result); + return result; +} + +function cacheWrapperSync(cache, key, fn) { + const cached = cache.get(key); + + if (cached !== undefined) { + return cached; + } + + const result = fn(); + cache.set(key, result); + return result; +} +//# sourceMappingURL=cacheWrapper.js.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/cacheWrapper.js.map b/Scripts/node_modules/cosmiconfig/dist/cacheWrapper.js.map new file mode 100644 index 00000000..d0b31b65 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/cacheWrapper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"cacheWrapper.js","names":["cacheWrapper","cache","key","fn","cached","get","undefined","result","set","cacheWrapperSync"],"sources":["../src/cacheWrapper.ts"],"sourcesContent":["import { Cache, CosmiconfigResult } from './types';\n\nasync function cacheWrapper(\n cache: Cache,\n key: string,\n fn: () => Promise,\n): Promise {\n const cached = cache.get(key);\n if (cached !== undefined) {\n return cached;\n }\n\n const result = await fn();\n cache.set(key, result);\n return result;\n}\n\nfunction cacheWrapperSync(\n cache: Cache,\n key: string,\n fn: () => CosmiconfigResult,\n): CosmiconfigResult {\n const cached = cache.get(key);\n if (cached !== undefined) {\n return cached;\n }\n\n const result = fn();\n cache.set(key, result);\n return result;\n}\n\nexport { cacheWrapper, cacheWrapperSync };\n"],"mappings":";;;;;;;;AAEA,eAAeA,YAAf,CACEC,KADF,EAEEC,GAFF,EAGEC,EAHF,EAI8B;EAC5B,MAAMC,MAAM,GAAGH,KAAK,CAACI,GAAN,CAAUH,GAAV,CAAf;;EACA,IAAIE,MAAM,KAAKE,SAAf,EAA0B;IACxB,OAAOF,MAAP;EACD;;EAED,MAAMG,MAAM,GAAG,MAAMJ,EAAE,EAAvB;EACAF,KAAK,CAACO,GAAN,CAAUN,GAAV,EAAeK,MAAf;EACA,OAAOA,MAAP;AACD;;AAED,SAASE,gBAAT,CACER,KADF,EAEEC,GAFF,EAGEC,EAHF,EAIqB;EACnB,MAAMC,MAAM,GAAGH,KAAK,CAACI,GAAN,CAAUH,GAAV,CAAf;;EACA,IAAIE,MAAM,KAAKE,SAAf,EAA0B;IACxB,OAAOF,MAAP;EACD;;EAED,MAAMG,MAAM,GAAGJ,EAAE,EAAjB;EACAF,KAAK,CAACO,GAAN,CAAUN,GAAV,EAAeK,MAAf;EACA,OAAOA,MAAP;AACD"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts b/Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts new file mode 100644 index 00000000..a06e2bc3 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts @@ -0,0 +1,3 @@ +declare function canUseDynamicImport(): boolean; +export { canUseDynamicImport }; +//# sourceMappingURL=canUseDynamicImport.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts.map b/Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts.map new file mode 100644 index 00000000..47977930 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"canUseDynamicImport.d.ts","sourceRoot":"","sources":["../src/canUseDynamicImport.ts"],"names":[],"mappings":"AAEA,iBAAS,mBAAmB,IAAI,OAAO,CAUtC;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.js b/Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.js new file mode 100644 index 00000000..31a44e91 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.js @@ -0,0 +1,23 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.canUseDynamicImport = canUseDynamicImport; + +/* istanbul ignore file -- @preserve */ +let result; + +function canUseDynamicImport() { + if (result === undefined) { + try { + new Function('id', 'return import(id);'); + result = true; + } catch (e) { + result = false; + } + } + + return result; +} +//# sourceMappingURL=canUseDynamicImport.js.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.js.map b/Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.js.map new file mode 100644 index 00000000..f298dbac --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/canUseDynamicImport.js.map @@ -0,0 +1 @@ +{"version":3,"file":"canUseDynamicImport.js","names":["result","canUseDynamicImport","undefined","Function","e"],"sources":["../src/canUseDynamicImport.ts"],"sourcesContent":["/* istanbul ignore file -- @preserve */\nlet result: boolean;\nfunction canUseDynamicImport(): boolean {\n if (result === undefined) {\n try {\n new Function('id', 'return import(id);');\n result = true;\n } catch (e) {\n result = false;\n }\n }\n return result;\n}\n\nexport { canUseDynamicImport };\n"],"mappings":";;;;;;;AAAA;AACA,IAAIA,MAAJ;;AACA,SAASC,mBAAT,GAAwC;EACtC,IAAID,MAAM,KAAKE,SAAf,EAA0B;IACxB,IAAI;MACF,IAAIC,QAAJ,CAAa,IAAb,EAAmB,oBAAnB;MACAH,MAAM,GAAG,IAAT;IACD,CAHD,CAGE,OAAOI,CAAP,EAAU;MACVJ,MAAM,GAAG,KAAT;IACD;EACF;;EACD,OAAOA,MAAP;AACD"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/defaults.d.ts b/Scripts/node_modules/cosmiconfig/dist/defaults.d.ts new file mode 100644 index 00000000..1020ba0f --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/defaults.d.ts @@ -0,0 +1,25 @@ +export declare function getDefaultSearchPlaces(moduleName: string): Array; +export declare function getDefaultSearchPlacesSync(moduleName: string): Array; +export declare const globalConfigSearchPlaces: string[]; +export declare const globalConfigSearchPlacesSync: string[]; +export declare const metaSearchPlaces: string[]; +export declare const defaultLoaders: Readonly<{ + readonly '.mjs': import("./types").Loader; + readonly '.cjs': import("./types").Loader; + readonly '.js': import("./types").Loader; + readonly '.ts': import("./types").Loader; + readonly '.json': import("./types").LoaderSync; + readonly '.yaml': import("./types").LoaderSync; + readonly '.yml': import("./types").LoaderSync; + readonly noExt: import("./types").LoaderSync; +}>; +export declare const defaultLoadersSync: Readonly<{ + readonly '.cjs': import("./types").LoaderSync; + readonly '.js': import("./types").LoaderSync; + readonly '.ts': import("./types").LoaderSync; + readonly '.json': import("./types").LoaderSync; + readonly '.yaml': import("./types").LoaderSync; + readonly '.yml': import("./types").LoaderSync; + readonly noExt: import("./types").LoaderSync; +}>; +//# sourceMappingURL=defaults.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/defaults.d.ts.map b/Scripts/node_modules/cosmiconfig/dist/defaults.d.ts.map new file mode 100644 index 00000000..71f7f756 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/defaults.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":"AASA,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAwBxE;AAED,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAqB5E;AAED,eAAO,MAAM,wBAAwB,UASpC,CAAC;AACF,eAAO,MAAM,4BAA4B,UAQxC,CAAC;AAGF,eAAO,MAAM,gBAAgB,UAU5B,CAAC;AAGF,eAAO,MAAM,cAAc;;;;;;;;;EAShB,CAAC;AAEZ,eAAO,MAAM,kBAAkB;;;;;;;;EAQpB,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/defaults.js b/Scripts/node_modules/cosmiconfig/dist/defaults.js new file mode 100644 index 00000000..7b20d0ae --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/defaults.js @@ -0,0 +1,105 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0; +const loaders_1 = require("./loaders"); +function getDefaultSearchPlaces(moduleName) { + return [ + 'package.json', + `.${moduleName}rc`, + `.${moduleName}rc.json`, + `.${moduleName}rc.yaml`, + `.${moduleName}rc.yml`, + `.${moduleName}rc.js`, + `.${moduleName}rc.ts`, + `.${moduleName}rc.cjs`, + `.${moduleName}rc.mjs`, + `.config/${moduleName}rc`, + `.config/${moduleName}rc.json`, + `.config/${moduleName}rc.yaml`, + `.config/${moduleName}rc.yml`, + `.config/${moduleName}rc.js`, + `.config/${moduleName}rc.ts`, + `.config/${moduleName}rc.cjs`, + `.config/${moduleName}rc.mjs`, + `${moduleName}.config.js`, + `${moduleName}.config.ts`, + `${moduleName}.config.cjs`, + `${moduleName}.config.mjs`, + ]; +} +exports.getDefaultSearchPlaces = getDefaultSearchPlaces; +function getDefaultSearchPlacesSync(moduleName) { + return [ + 'package.json', + `.${moduleName}rc`, + `.${moduleName}rc.json`, + `.${moduleName}rc.yaml`, + `.${moduleName}rc.yml`, + `.${moduleName}rc.js`, + `.${moduleName}rc.ts`, + `.${moduleName}rc.cjs`, + `.config/${moduleName}rc`, + `.config/${moduleName}rc.json`, + `.config/${moduleName}rc.yaml`, + `.config/${moduleName}rc.yml`, + `.config/${moduleName}rc.js`, + `.config/${moduleName}rc.ts`, + `.config/${moduleName}rc.cjs`, + `${moduleName}.config.js`, + `${moduleName}.config.ts`, + `${moduleName}.config.cjs`, + ]; +} +exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync; +exports.globalConfigSearchPlaces = [ + 'config', + 'config.json', + 'config.yaml', + 'config.yml', + 'config.js', + 'config.ts', + 'config.cjs', + 'config.mjs', +]; +exports.globalConfigSearchPlacesSync = [ + 'config', + 'config.json', + 'config.yaml', + 'config.yml', + 'config.js', + 'config.ts', + 'config.cjs', +]; +// this needs to be hardcoded, as this is intended for end users, who can't supply options at this point +exports.metaSearchPlaces = [ + 'package.json', + 'package.yaml', + '.config/config.json', + '.config/config.yaml', + '.config/config.yml', + '.config/config.js', + '.config/config.ts', + '.config/config.cjs', + '.config/config.mjs', +]; +// do not allow mutation of default loaders. Make sure it is set inside options +exports.defaultLoaders = Object.freeze({ + '.mjs': loaders_1.loadJs, + '.cjs': loaders_1.loadJs, + '.js': loaders_1.loadJs, + '.ts': loaders_1.loadTs, + '.json': loaders_1.loadJson, + '.yaml': loaders_1.loadYaml, + '.yml': loaders_1.loadYaml, + noExt: loaders_1.loadYaml, +}); +exports.defaultLoadersSync = Object.freeze({ + '.cjs': loaders_1.loadJsSync, + '.js': loaders_1.loadJsSync, + '.ts': loaders_1.loadTsSync, + '.json': loaders_1.loadJson, + '.yaml': loaders_1.loadYaml, + '.yml': loaders_1.loadYaml, + noExt: loaders_1.loadYaml, +}); +//# sourceMappingURL=defaults.js.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/defaults.js.map b/Scripts/node_modules/cosmiconfig/dist/defaults.js.map new file mode 100644 index 00000000..c2e31749 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/defaults.js.map @@ -0,0 +1 @@ +{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":";;;AAAA,uCAOmB;AAEnB,SAAgB,sBAAsB,CAAC,UAAkB;IACvD,OAAO;QACL,cAAc;QACd,IAA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AAa;IACb,YAAY;IACZ,WAAW;IACX,WAAW;IACX,YAAY;CACb,CAAC;AAEF,wGAAwG;AAC3F,QAAA,gBAAgB,GAAG;IAC9B,cAAc;IACd,cAAc;IACd,qBAAqB;IACrB,qBAAqB;IACrB,oBAAoB;IACpB,mBAAmB;IACnB,mBAAmB;IACnB,oBAAoB;IACpB,oBAAoB;CACrB,CAAC;AAEF,+EAA+E;AAClE,QAAA,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,gBAAM;IACd,MAAM,EAAE,gBAAM;IACd,KAAK,EAAE,gBAAM;IACb,KAAK,EAAE,gBAAM;IACb,OAAO,EAAE,kBAAQ;IACjB,OAAO,EAAE,kBAAQ;IACjB,MAAM,EAAE,kBAAQ;IAChB,KAAK,EAAE,kBAAQ;CACP,CAAC,CAAC;AAEC,QAAA,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,MAAM,EAAE,oBAAU;IAClB,KAAK,EAAE,oBAAU;IACjB,KAAK,EAAE,oBAAU;IACjB,OAAO,EAAE,kBAAQ;IACjB,OAAO,EAAE,kBAAQ;IACjB,MAAM,EAAE,kBAAQ;IAChB,KAAK,EAAE,kBAAQ;CACP,CAAC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/getDirectory.d.ts b/Scripts/node_modules/cosmiconfig/dist/getDirectory.d.ts new file mode 100644 index 00000000..3b53068f --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/getDirectory.d.ts @@ -0,0 +1,4 @@ +declare function getDirectory(filepath: string): Promise; +declare function getDirectorySync(filepath: string): string; +export { getDirectory, getDirectorySync }; +//# sourceMappingURL=getDirectory.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/getDirectory.d.ts.map b/Scripts/node_modules/cosmiconfig/dist/getDirectory.d.ts.map new file mode 100644 index 00000000..37288a72 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/getDirectory.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getDirectory.d.ts","sourceRoot":"","sources":["../src/getDirectory.ts"],"names":[],"mappings":"AAGA,iBAAe,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAU7D;AAED,iBAAS,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAUlD;AAED,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/getDirectory.js b/Scripts/node_modules/cosmiconfig/dist/getDirectory.js new file mode 100644 index 00000000..e0f0a69d --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/getDirectory.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.getDirectory = getDirectory; +exports.getDirectorySync = getDirectorySync; + +var _path = _interopRequireDefault(require("path")); + +var _pathType = require("path-type"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +async function getDirectory(filepath) { + const filePathIsDirectory = await (0, _pathType.isDirectory)(filepath); + + if (filePathIsDirectory === true) { + return filepath; + } + + const directory = _path.default.dirname(filepath); + + return directory; +} + +function getDirectorySync(filepath) { + const filePathIsDirectory = (0, _pathType.isDirectorySync)(filepath); + + if (filePathIsDirectory === true) { + return filepath; + } + + const directory = _path.default.dirname(filepath); + + return directory; +} +//# sourceMappingURL=getDirectory.js.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/getDirectory.js.map b/Scripts/node_modules/cosmiconfig/dist/getDirectory.js.map new file mode 100644 index 00000000..29e05867 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/getDirectory.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getDirectory.js","names":["getDirectory","filepath","filePathIsDirectory","isDirectory","directory","path","dirname","getDirectorySync","isDirectorySync"],"sources":["../src/getDirectory.ts"],"sourcesContent":["import path from 'path';\nimport { isDirectory, isDirectorySync } from 'path-type';\n\nasync function getDirectory(filepath: string): Promise {\n const filePathIsDirectory = await isDirectory(filepath);\n\n if (filePathIsDirectory === true) {\n return filepath;\n }\n\n const directory = path.dirname(filepath);\n\n return directory;\n}\n\nfunction getDirectorySync(filepath: string): string {\n const filePathIsDirectory = isDirectorySync(filepath);\n\n if (filePathIsDirectory === true) {\n return filepath;\n }\n\n const directory = path.dirname(filepath);\n\n return directory;\n}\n\nexport { getDirectory, getDirectorySync };\n"],"mappings":";;;;;;;;AAAA;;AACA;;;;AAEA,eAAeA,YAAf,CAA4BC,QAA5B,EAA+D;EAC7D,MAAMC,mBAAmB,GAAG,MAAM,IAAAC,qBAAA,EAAYF,QAAZ,CAAlC;;EAEA,IAAIC,mBAAmB,KAAK,IAA5B,EAAkC;IAChC,OAAOD,QAAP;EACD;;EAED,MAAMG,SAAS,GAAGC,aAAA,CAAKC,OAAL,CAAaL,QAAb,CAAlB;;EAEA,OAAOG,SAAP;AACD;;AAED,SAASG,gBAAT,CAA0BN,QAA1B,EAAoD;EAClD,MAAMC,mBAAmB,GAAG,IAAAM,yBAAA,EAAgBP,QAAhB,CAA5B;;EAEA,IAAIC,mBAAmB,KAAK,IAA5B,EAAkC;IAChC,OAAOD,QAAP;EACD;;EAED,MAAMG,SAAS,GAAGC,aAAA,CAAKC,OAAL,CAAaL,QAAb,CAAlB;;EAEA,OAAOG,SAAP;AACD"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts b/Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts new file mode 100644 index 00000000..0b89fa71 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts @@ -0,0 +1,5 @@ +declare function getPropertyByPath(source: { + [key: string]: unknown; +}, path: string | Array): unknown; +export { getPropertyByPath }; +//# sourceMappingURL=getPropertyByPath.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts.map b/Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts.map new file mode 100644 index 00000000..cbb44eb2 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getPropertyByPath.d.ts","sourceRoot":"","sources":["../src/getPropertyByPath.ts"],"names":[],"mappings":"AAKA,iBAAS,iBAAiB,CACxB,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EAClC,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAC3B,OAAO,CAgBT;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.js b/Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.js new file mode 100644 index 00000000..564972c9 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.js @@ -0,0 +1,28 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.getPropertyByPath = getPropertyByPath; + +// Resolves property names or property paths defined with period-delimited +// strings or arrays of strings. Property names that are found on the source +// object are used directly (even if they include a period). +// Nested property names that include periods, within a path, are only +// understood in array paths. +function getPropertyByPath(source, path) { + if (typeof path === 'string' && Object.prototype.hasOwnProperty.call(source, path)) { + return source[path]; + } + + const parsedPath = typeof path === 'string' ? path.split('.') : path; // eslint-disable-next-line @typescript-eslint/no-explicit-any + + return parsedPath.reduce((previous, key) => { + if (previous === undefined) { + return previous; + } + + return previous[key]; + }, source); +} +//# sourceMappingURL=getPropertyByPath.js.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.js.map b/Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.js.map new file mode 100644 index 00000000..14b7ad02 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/getPropertyByPath.js.map @@ -0,0 +1 @@ +{"version":3,"file":"getPropertyByPath.js","names":["getPropertyByPath","source","path","Object","prototype","hasOwnProperty","call","parsedPath","split","reduce","previous","key","undefined"],"sources":["../src/getPropertyByPath.ts"],"sourcesContent":["// Resolves property names or property paths defined with period-delimited\n// strings or arrays of strings. Property names that are found on the source\n// object are used directly (even if they include a period).\n// Nested property names that include periods, within a path, are only\n// understood in array paths.\nfunction getPropertyByPath(\n source: { [key: string]: unknown },\n path: string | Array,\n): unknown {\n if (\n typeof path === 'string' &&\n Object.prototype.hasOwnProperty.call(source, path)\n ) {\n return source[path];\n }\n\n const parsedPath = typeof path === 'string' ? path.split('.') : path;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return parsedPath.reduce((previous: any, key): unknown => {\n if (previous === undefined) {\n return previous;\n }\n return previous[key];\n }, source);\n}\n\nexport { getPropertyByPath };\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA,SAASA,iBAAT,CACEC,MADF,EAEEC,IAFF,EAGW;EACT,IACE,OAAOA,IAAP,KAAgB,QAAhB,IACAC,MAAM,CAACC,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCL,MAArC,EAA6CC,IAA7C,CAFF,EAGE;IACA,OAAOD,MAAM,CAACC,IAAD,CAAb;EACD;;EAED,MAAMK,UAAU,GAAG,OAAOL,IAAP,KAAgB,QAAhB,GAA2BA,IAAI,CAACM,KAAL,CAAW,GAAX,CAA3B,GAA6CN,IAAhE,CARS,CAST;;EACA,OAAOK,UAAU,CAACE,MAAX,CAAkB,CAACC,QAAD,EAAgBC,GAAhB,KAAiC;IACxD,IAAID,QAAQ,KAAKE,SAAjB,EAA4B;MAC1B,OAAOF,QAAP;IACD;;IACD,OAAOA,QAAQ,CAACC,GAAD,CAAf;EACD,CALM,EAKJV,MALI,CAAP;AAMD"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/index.d.ts b/Scripts/node_modules/cosmiconfig/dist/index.d.ts index 7cc6c3b3..b241da06 100644 --- a/Scripts/node_modules/cosmiconfig/dist/index.d.ts +++ b/Scripts/node_modules/cosmiconfig/dist/index.d.ts @@ -1,25 +1,6 @@ -export * from './types.js'; -import { Options, OptionsSync, PublicExplorer, PublicExplorerSync } from './types.js'; -export declare const metaSearchPlaces: string[]; -export declare const defaultLoaders: Readonly<{ - readonly '.mjs': import("./types.js").Loader; - readonly '.cjs': import("./types.js").Loader; - readonly '.js': import("./types.js").Loader; - readonly '.ts': import("./types.js").Loader; - readonly '.json': import("./types.js").LoaderSync; - readonly '.yaml': import("./types.js").LoaderSync; - readonly '.yml': import("./types.js").LoaderSync; - readonly noExt: import("./types.js").LoaderSync; -}>; -export declare const defaultLoadersSync: Readonly<{ - readonly '.cjs': import("./types.js").LoaderSync; - readonly '.js': import("./types.js").LoaderSync; - readonly '.ts': import("./types.js").LoaderSync; - readonly '.json': import("./types.js").LoaderSync; - readonly '.yaml': import("./types.js").LoaderSync; - readonly '.yml': import("./types.js").LoaderSync; - readonly noExt: import("./types.js").LoaderSync; -}>; -export declare function cosmiconfig(moduleName: string, options?: Readonly): PublicExplorer; -export declare function cosmiconfigSync(moduleName: string, options?: Readonly): PublicExplorerSync; +import { defaultLoaders, defaultLoadersSync, getDefaultSearchPlaces, getDefaultSearchPlacesSync, globalConfigSearchPlaces, globalConfigSearchPlacesSync } from './defaults'; +import { CommonOptions, Config, CosmiconfigResult, Loader, LoaderResult, Loaders, LoadersSync, LoaderSync, Options, OptionsSync, PublicExplorer, PublicExplorerBase, PublicExplorerSync, SearchStrategy, Transform, TransformSync } from './types.js'; +export declare function cosmiconfig(moduleName: string, options?: Readonly>): PublicExplorer; +export declare function cosmiconfigSync(moduleName: string, options?: Readonly>): PublicExplorerSync; +export { Config, CosmiconfigResult, LoaderResult, Loader, Loaders, LoaderSync, LoadersSync, Transform, TransformSync, SearchStrategy, CommonOptions, Options, OptionsSync, PublicExplorerBase, PublicExplorer, PublicExplorerSync, getDefaultSearchPlaces, getDefaultSearchPlacesSync, globalConfigSearchPlaces, globalConfigSearchPlacesSync, defaultLoaders, defaultLoadersSync, }; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/index.d.ts.map b/Scripts/node_modules/cosmiconfig/dist/index.d.ts.map index 9065f412..b916048b 100644 --- a/Scripts/node_modules/cosmiconfig/dist/index.d.ts.map +++ b/Scripts/node_modules/cosmiconfig/dist/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAa3B,OAAO,EAGL,OAAO,EACP,WAAW,EACX,cAAc,EACd,kBAAkB,EAEnB,MAAM,YAAY,CAAC;AAIpB,eAAO,MAAM,gBAAgB,UAS5B,CAAC;AAGF,eAAO,MAAM,cAAc;;;;;;;;;EAShB,CAAC;AACZ,eAAO,MAAM,kBAAkB;;;;;;;;EAQpB,CAAC;AAuIZ,wBAAgB,WAAW,CACzB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,QAAQ,CAAC,OAAO,CAAM,GAC9B,cAAc,CAWhB;AAED,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,QAAQ,CAAC,WAAW,CAAM,GAClC,kBAAkB,CAWpB"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAE1B,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,aAAa,EACb,MAAM,EACN,iBAAiB,EAGjB,MAAM,EACN,YAAY,EACZ,OAAO,EACP,WAAW,EACX,UAAU,EACV,OAAO,EACP,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,aAAa,EACd,MAAM,YAAY,CAAC;AAqKpB,wBAAgB,WAAW,CACzB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAM,GACvC,cAAc,CAUhB;AAED,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAM,GAC3C,kBAAkB,CAUpB;AAED,OAAO,EACL,MAAM,EACN,iBAAiB,EACjB,YAAY,EACZ,MAAM,EACN,OAAO,EACP,UAAU,EACV,WAAW,EACX,SAAS,EACT,aAAa,EACb,cAAc,EACd,aAAa,EACb,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,cAAc,EACd,kBAAkB,GACnB,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/index.js b/Scripts/node_modules/cosmiconfig/dist/index.js index 6fdb0fca..bfb95f94 100644 --- a/Scripts/node_modules/cosmiconfig/dist/index.js +++ b/Scripts/node_modules/cosmiconfig/dist/index.js @@ -1,174 +1,128 @@ "use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.cosmiconfigSync = exports.cosmiconfig = exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = void 0; -/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ -__exportStar(require("./types.js"), exports); -const os_1 = __importDefault(require("os")); +exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = exports.cosmiconfigSync = exports.cosmiconfig = void 0; +const defaults_1 = require("./defaults"); +Object.defineProperty(exports, "defaultLoaders", { enumerable: true, get: function () { return defaults_1.defaultLoaders; } }); +Object.defineProperty(exports, "defaultLoadersSync", { enumerable: true, get: function () { return defaults_1.defaultLoadersSync; } }); +Object.defineProperty(exports, "getDefaultSearchPlaces", { enumerable: true, get: function () { return defaults_1.getDefaultSearchPlaces; } }); +Object.defineProperty(exports, "getDefaultSearchPlacesSync", { enumerable: true, get: function () { return defaults_1.getDefaultSearchPlacesSync; } }); +Object.defineProperty(exports, "globalConfigSearchPlaces", { enumerable: true, get: function () { return defaults_1.globalConfigSearchPlaces; } }); +Object.defineProperty(exports, "globalConfigSearchPlacesSync", { enumerable: true, get: function () { return defaults_1.globalConfigSearchPlacesSync; } }); const Explorer_js_1 = require("./Explorer.js"); const ExplorerSync_js_1 = require("./ExplorerSync.js"); -const loaders_js_1 = require("./loaders.js"); const util_1 = require("./util"); -// this needs to be hardcoded, as this is intended for end users, who can't supply options at this point -exports.metaSearchPlaces = [ - 'package.json', - '.config.json', - '.config.yaml', - '.config.yml', - '.config.js', - '.config.ts', - '.config.cjs', - '.config.mjs', -]; -// do not allow mutation of default loaders. Make sure it is set inside options -exports.defaultLoaders = Object.freeze({ - '.mjs': loaders_js_1.loadJs, - '.cjs': loaders_js_1.loadJs, - '.js': loaders_js_1.loadJs, - '.ts': loaders_js_1.loadTs, - '.json': loaders_js_1.loadJson, - '.yaml': loaders_js_1.loadYaml, - '.yml': loaders_js_1.loadYaml, - noExt: loaders_js_1.loadYaml, -}); -exports.defaultLoadersSync = Object.freeze({ - '.cjs': loaders_js_1.loadJsSync, - '.js': loaders_js_1.loadJsSync, - '.ts': loaders_js_1.loadTsSync, - '.json': loaders_js_1.loadJson, - '.yaml': loaders_js_1.loadYaml, - '.yml': loaders_js_1.loadYaml, - noExt: loaders_js_1.loadYaml, -}); const identity = function identity(x) { return x; }; -function getInternalOptions(moduleName, options) { +function getUserDefinedOptionsFromMetaConfig() { const metaExplorer = new ExplorerSync_js_1.ExplorerSync({ - packageProp: 'cosmiconfig', + moduleName: 'cosmiconfig', stopDir: process.cwd(), - searchPlaces: exports.metaSearchPlaces, + searchPlaces: defaults_1.metaSearchPlaces, ignoreEmptySearchPlaces: false, applyPackagePropertyPathToConfiguration: true, - loaders: exports.defaultLoaders, + loaders: defaults_1.defaultLoaders, transform: identity, cache: true, metaConfigFilePath: null, + mergeImportArrays: true, + mergeSearchPlaces: true, + searchStrategy: 'none', }); const metaConfig = metaExplorer.search(); if (!metaConfig) { - return options; + return null; } if (metaConfig.config?.loaders) { throw new Error('Can not specify loaders in meta config file'); } - const overrideOptions = metaConfig.config ?? {}; - if (overrideOptions.searchPlaces) { - overrideOptions.searchPlaces = overrideOptions.searchPlaces.map((path) => path.replace('{name}', moduleName)); + if (metaConfig.config?.searchStrategy) { + throw new Error('Can not specify searchStrategy in meta config file'); } - overrideOptions.metaConfigFilePath = metaConfig.filepath; - return { ...options, ...(0, util_1.removeUndefinedValuesFromObject)(overrideOptions) }; -} -function normalizeOptions(moduleName, options) { - const defaults = { - packageProp: moduleName, - searchPlaces: [ - 'package.json', - `.${moduleName}rc`, - `.${moduleName}rc.json`, - `.${moduleName}rc.yaml`, - `.${moduleName}rc.yml`, - `.${moduleName}rc.js`, - `.${moduleName}rc.ts`, - `.${moduleName}rc.cjs`, - `.${moduleName}rc.mjs`, - `.config/${moduleName}rc`, - `.config/${moduleName}rc.json`, - `.config/${moduleName}rc.yaml`, - `.config/${moduleName}rc.yml`, - `.config/${moduleName}rc.js`, - `.config/${moduleName}rc.ts`, - `.config/${moduleName}rc.cjs`, - `.config/${moduleName}rc.mjs`, - `${moduleName}.config.js`, - `${moduleName}.config.ts`, - `${moduleName}.config.cjs`, - `${moduleName}.config.mjs`, - ], - ignoreEmptySearchPlaces: true, - stopDir: os_1.default.homedir(), - cache: true, - transform: identity, - loaders: exports.defaultLoaders, - metaConfigFilePath: null, + const overrideOptions = { + mergeSearchPlaces: true, + ...(metaConfig.config ?? {}), }; + return { + config: (0, util_1.removeUndefinedValuesFromObject)(overrideOptions), + filepath: metaConfig.filepath, + }; +} +function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) { + const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path) => path.replace('{name}', moduleName)); + if (userConfiguredOptions.mergeSearchPlaces) { + return [...(userConfiguredSearchPlaces ?? []), ...toolDefinedSearchPlaces]; + } + return (userConfiguredSearchPlaces ?? + /* istanbul ignore next */ toolDefinedSearchPlaces); +} +function mergeOptionsBase(moduleName, defaults, options) { + const userDefinedConfig = getUserDefinedOptionsFromMetaConfig(); + if (!userDefinedConfig) { + return { + ...defaults, + ...(0, util_1.removeUndefinedValuesFromObject)(options), + loaders: { + ...defaults.loaders, + ...options.loaders, + }, + }; + } + const userConfiguredOptions = userDefinedConfig.config; + const toolDefinedSearchPlaces = options.searchPlaces ?? defaults.searchPlaces; return { ...defaults, ...(0, util_1.removeUndefinedValuesFromObject)(options), + metaConfigFilePath: userDefinedConfig.filepath, + ...userConfiguredOptions, + searchPlaces: getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions), loaders: { ...defaults.loaders, ...options.loaders, }, }; } -function normalizeOptionsSync(moduleName, options) { +function validateOptions(options) { + if (options.searchStrategy != null && + options.searchStrategy !== 'global' && + options.stopDir) { + throw new Error('Can not supply `stopDir` option with `searchStrategy` other than "global"'); + } +} +function mergeOptions(moduleName, options) { + validateOptions(options); const defaults = { - packageProp: moduleName, - searchPlaces: [ - 'package.json', - `.${moduleName}rc`, - `.${moduleName}rc.json`, - `.${moduleName}rc.yaml`, - `.${moduleName}rc.yml`, - `.${moduleName}rc.js`, - `.${moduleName}rc.ts`, - `.${moduleName}rc.cjs`, - `.config/${moduleName}rc`, - `.config/${moduleName}rc.json`, - `.config/${moduleName}rc.yaml`, - `.config/${moduleName}rc.yml`, - `.config/${moduleName}rc.js`, - `.config/${moduleName}rc.ts`, - `.config/${moduleName}rc.cjs`, - `${moduleName}.config.js`, - `${moduleName}.config.ts`, - `${moduleName}.config.cjs`, - ], + moduleName, + searchPlaces: (0, defaults_1.getDefaultSearchPlaces)(moduleName), ignoreEmptySearchPlaces: true, - stopDir: os_1.default.homedir(), cache: true, transform: identity, - loaders: exports.defaultLoadersSync, + loaders: defaults_1.defaultLoaders, metaConfigFilePath: null, + mergeImportArrays: true, + mergeSearchPlaces: true, + searchStrategy: options.stopDir ? 'global' : 'none', }; - return { - ...defaults, - ...(0, util_1.removeUndefinedValuesFromObject)(options), - loaders: { - ...defaults.loaders, - ...options.loaders, - }, + return mergeOptionsBase(moduleName, defaults, options); +} +function mergeOptionsSync(moduleName, options) { + validateOptions(options); + const defaults = { + moduleName, + searchPlaces: (0, defaults_1.getDefaultSearchPlacesSync)(moduleName), + ignoreEmptySearchPlaces: true, + cache: true, + transform: identity, + loaders: defaults_1.defaultLoadersSync, + metaConfigFilePath: null, + mergeImportArrays: true, + mergeSearchPlaces: true, + searchStrategy: options.stopDir ? 'global' : 'none', }; + return mergeOptionsBase(moduleName, defaults, options); } function cosmiconfig(moduleName, options = {}) { - const internalOptions = getInternalOptions(moduleName, options); - const normalizedOptions = normalizeOptions(moduleName, internalOptions); + const normalizedOptions = mergeOptions(moduleName, options); const explorer = new Explorer_js_1.Explorer(normalizedOptions); return { search: explorer.search.bind(explorer), @@ -180,8 +134,7 @@ function cosmiconfig(moduleName, options = {}) { } exports.cosmiconfig = cosmiconfig; function cosmiconfigSync(moduleName, options = {}) { - const internalOptions = getInternalOptions(moduleName, options); - const normalizedOptions = normalizeOptionsSync(moduleName, internalOptions); + const normalizedOptions = mergeOptionsSync(moduleName, options); const explorerSync = new ExplorerSync_js_1.ExplorerSync(normalizedOptions); return { search: explorerSync.search.bind(explorerSync), diff --git a/Scripts/node_modules/cosmiconfig/dist/index.js.map b/Scripts/node_modules/cosmiconfig/dist/index.js.map index 6cabb83d..8d352578 100644 --- a/Scripts/node_modules/cosmiconfig/dist/index.js.map +++ b/Scripts/node_modules/cosmiconfig/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,sEAAsE;AACtE,6CAA2B;AAE3B,4CAAoB;AACpB,+CAAyC;AACzC,uDAAiD;AACjD,6CAOsB;AAUtB,iCAAyD;AAEzD,wGAAwG;AAC3F,QAAA,gBAAgB,GAAG;IAC9B,cAAc;IACd,cAAc;IACd,cAAc;IACd,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,aAAa;IACb,aAAa;CACd,CAAC;AAEF,+EAA+E;AAClE,QAAA,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,mBAAM;IACd,MAAM,EAAE,mBAAM;IACd,KAAK,EAAE,mBAAM;IACb,KAAK,EAAE,mBAAM;IACb,OAAO,EAAE,qBAAQ;IACjB,OAAO,EAAE,qBAAQ;IACjB,MAAM,EAAE,qBAAQ;IAChB,KAAK,EAAE,qBAAQ;CACP,CAAC,CAAC;AACC,QAAA,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,MAAM,EAAE,uBAAU;IAClB,KAAK,EAAE,uBAAU;IACjB,KAAK,EAAE,uBAAU;IACjB,OAAO,EAAE,qBAAQ;IACjB,OAAO,EAAE,qBAAQ;IACjB,MAAM,EAAE,qBAAQ;IAChB,KAAK,EAAE,qBAAQ;CACP,CAAC,CAAC;AAEZ,MAAM,QAAQ,GAAkB,SAAS,QAAQ,CAAC,CAAC;I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AQ,CAAC;KACjD,CAAC;AACJ,CAAC;AAbD,kCAaC;AAED,SAAgB,eAAe,CAC7B,UAAkB,EAClB,UAA0C,EAAE;IAE5C,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAChE,MAAM,YAAY,GAAG,IAAI,8BAAY,CAAC,iBAAiB,CAAC,CAAC;IACzD,OAAO;QACL,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC;QAC9C,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;QAC1C,cAAc,EAAE,YAAY,CAAC,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC;QAC9D,gBAAgB,EAAE,YAAY,CAAC,gBAAgB,CAAC,IAAI,CAAC,YAAY,CAAC;QAClE,WAAW,EAAE,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;KACzD,CAAC;AACJ,CAAC;AAbD,0CAaC"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/loaders.d.ts.map b/Scripts/node_modules/cosmiconfig/dist/loaders.d.ts.map index 32a1afb4..db799be5 100644 --- a/Scripts/node_modules/cosmiconfig/dist/loaders.d.ts.map +++ b/Scripts/node_modules/cosmiconfig/dist/loaders.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"loaders.d.ts","sourceRoot":"","sources":["../src/loaders.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGhD,eAAO,MAAM,UAAU,EAAE,UAMxB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MAOpB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,UAWtB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,UAWtB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,UA0BxB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MA0BpB,CAAC"} \ No newline at end of file +{"version":3,"file":"loaders.d.ts","sourceRoot":"","sources":["../src/loaders.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGhD,eAAO,MAAM,UAAU,EAAE,UAMxB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MAqBpB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,UAWtB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,UAWtB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,UA0BxB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MAgCpB,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/loaders.js b/Scripts/node_modules/cosmiconfig/dist/loaders.js index dcdcff6c..b71d7fcd 100644 --- a/Scripts/node_modules/cosmiconfig/dist/loaders.js +++ b/Scripts/node_modules/cosmiconfig/dist/loaders.js @@ -23,7 +23,19 @@ const loadJs = async function loadJs(filepath) { return (await import(href)).default; } catch (error) { - return (0, exports.loadJsSync)(filepath, ''); + try { + return (0, exports.loadJsSync)(filepath, ''); + } + catch (requireError) { + if (requireError.code === 'ERR_REQUIRE_ESM' || + (requireError instanceof SyntaxError && + requireError + .toString() + .includes('Cannot use import statement outside a module'))) { + throw error; + } + throw requireError; + } } }; exports.loadJs = loadJs; @@ -91,23 +103,26 @@ const loadTs = async function loadTs(filepath, content) { typescript = (await import('typescript')).default; } const compiledFilepath = `${filepath.slice(0, -2)}mjs`; + let transpiledContent; try { - const config = resolveTsConfig(path_1.default.dirname(filepath)) ?? {}; - config.compilerOptions = { - ...config.compilerOptions, - module: typescript.ModuleKind.ES2022, - moduleResolution: typescript.ModuleResolutionKind.Bundler, - target: typescript.ScriptTarget.ES2022, - noEmit: false, - }; - content = typescript.transpileModule(content, config).outputText; - await (0, promises_1.writeFile)(compiledFilepath, content); - const { href } = (0, url_1.pathToFileURL)(compiledFilepath); - return (await import(href)).default; - } - catch (error) { - error.message = `TypeScript Error in ${filepath}:\n${error.message}`; - throw error; + try { + const config = resolveTsConfig(path_1.default.dirname(filepath)) ?? {}; + config.compilerOptions = { + ...config.compilerOptions, + module: typescript.ModuleKind.ES2022, + moduleResolution: typescript.ModuleResolutionKind.Bundler, + target: typescript.ScriptTarget.ES2022, + noEmit: false, + }; + transpiledContent = typescript.transpileModule(content, config).outputText; + await (0, promises_1.writeFile)(compiledFilepath, transpiledContent); + } + catch (error) { + error.message = `TypeScript Error in ${filepath}:\n${error.message}`; + throw error; + } + // eslint-disable-next-line @typescript-eslint/return-await + return await (0, exports.loadJs)(compiledFilepath, transpiledContent); } finally { if ((0, fs_1.existsSync)(compiledFilepath)) { diff --git a/Scripts/node_modules/cosmiconfig/dist/loaders.js.map b/Scripts/node_modules/cosmiconfig/dist/loaders.js.map index bf00c9e6..aff5064a 100644 --- a/Scripts/node_modules/cosmiconfig/dist/loaders.js.map +++ b/Scripts/node_modules/cosmiconfig/dist/loaders.js.map @@ -1 +1 @@ -{"version":3,"file":"loaders.js","sourceRoot":"","sources":["../src/loaders.ts"],"names":[],"mappings":";AAAA,0DAA0D;;;;;;AAE1D,2BAAuD;AACvD,0CAA4C;AAC5C,gDAAwB;AACxB,6BAAoC;AAGpC,IAAI,WAA0C,CAAC;AACxC,MAAM,UAAU,GAAe,SAAS,UAAU,CAAC,QAAQ;IAChE,IAAI,WAAW,KAAK,SAAS,EAAE;QAC7B,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;KACvC;IAED,OAAO,WAAW,CAAC,QAAQ,CAAC,CAAC;AAC/B,CAAC,CAAC;AANW,QAAA,UAAU,cAMrB;AAEK,MAAM,MAAM,GAAW,KAAK,UAAU,MAAM,CAAC,QAAQ;IAC1D,IAAI;QACF,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,mBAAa,EAAC,QAAQ,CAAC,CAAC;QACzC,OAAO,CAAC,MAAM,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO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C,IAAI,EAAE,EAAE,CACrE,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAC9B,CAAC;QACF,IAAI,KAAK,EAAE;YACT,MAAM,IAAI,KAAK,CAAC,YAAY,QAAQ,KAAK,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;SAC1E;QACD,OAAO,MAAM,CAAC;KACf;IACD,OAAO;AACT,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/merge.d.ts b/Scripts/node_modules/cosmiconfig/dist/merge.d.ts new file mode 100644 index 00000000..0d05f638 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/merge.d.ts @@ -0,0 +1,9 @@ +export declare const hasOwn: (thisArg: any, ...argArray: any[]) => any; +export interface MergeOptions { + mergeArrays: boolean; +} +/** + * Merges multiple objects. Doesn't care about cloning non-primitives, as we load all these objects fresh from a file. + */ +export declare function mergeAll(objects: ReadonlyArray, options: MergeOptions): any; +//# sourceMappingURL=merge.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/merge.d.ts.map b/Scripts/node_modules/cosmiconfig/dist/merge.d.ts.map new file mode 100644 index 00000000..95000e50 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/merge.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../src/merge.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM,2CAElB,CAAC;AASF,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,OAAO,CAAC;CACtB;AAuBD;;GAEG;AACH,wBAAgB,QAAQ,CAEtB,OAAO,EAAE,aAAa,CAAC,GAAG,CAAC,EAC3B,OAAO,EAAE,YAAY,GAEpB,GAAG,CAEL"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/merge.js b/Scripts/node_modules/cosmiconfig/dist/merge.js new file mode 100644 index 00000000..0e76ae61 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/merge.js @@ -0,0 +1,40 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.mergeAll = exports.hasOwn = void 0; +/* eslint-disable @typescript-eslint/unbound-method */ +exports.hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty); +const objToString = Function.prototype.call.bind(Object.prototype.toString); +/* eslint-enable @typescript-eslint/unbound-method */ +function isPlainObject(obj) { + return objToString(obj) === '[object Object]'; +} +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function merge(target, source, options) { + for (const key of Object.keys(source)) { + const newValue = source[key]; + if ((0, exports.hasOwn)(target, key)) { + if (Array.isArray(target[key]) && Array.isArray(newValue)) { + if (options.mergeArrays) { + target[key].push(...newValue); + continue; + } + } + else if (isPlainObject(target[key]) && isPlainObject(newValue)) { + target[key] = merge(target[key], newValue, options); + continue; + } + } + target[key] = newValue; + } + return target; +} +/** + * Merges multiple objects. Doesn't care about cloning non-primitives, as we load all these objects fresh from a file. + */ +function mergeAll( +// eslint-disable-next-line @typescript-eslint/no-explicit-any +objects, options) { + return objects.reduce((target, source) => merge(target, source, options), {}); +} +exports.mergeAll = mergeAll; +//# sourceMappingURL=merge.js.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/merge.js.map b/Scripts/node_modules/cosmiconfig/dist/merge.js.map new file mode 100644 index 00000000..cf3d1a7c --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/merge.js.map @@ -0,0 +1 @@ +{"version":3,"file":"merge.js","sourceRoot":"","sources":["../src/merge.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACzC,QAAA,MAAM,GAAG,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAChD,MAAM,CAAC,SAAS,CAAC,cAAc,CAChC,CAAC;AACF,MAAM,WAAW,GAAG,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;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fig/dist/readFile.d.ts b/Scripts/node_modules/cosmiconfig/dist/readFile.d.ts new file mode 100644 index 00000000..c59e12ea --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/readFile.d.ts @@ -0,0 +1,7 @@ +interface Options { + throwNotFound?: boolean; +} +declare function readFile(filepath: string, options?: Options): Promise; +declare function readFileSync(filepath: string, options?: Options): string | null; +export { readFile, readFileSync }; +//# sourceMappingURL=readFile.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/readFile.d.ts.map b/Scripts/node_modules/cosmiconfig/dist/readFile.d.ts.map new file mode 100644 index 00000000..3148c922 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/readFile.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"readFile.d.ts","sourceRoot":"","sources":["../src/readFile.ts"],"names":[],"mappings":"AAkBA,UAAU,OAAO;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,iBAAe,QAAQ,CACrB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,OAAY,GACpB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAiBxB;AAED,iBAAS,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,OAAY,GAAG,MAAM,GAAG,IAAI,CAiB5E;AAED,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/readFile.js b/Scripts/node_modules/cosmiconfig/dist/readFile.js new file mode 100644 index 00000000..954081e1 --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/readFile.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.readFile = readFile; +exports.readFileSync = readFileSync; + +var _fs = _interopRequireDefault(require("fs")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +async function fsReadFileAsync(pathname, encoding) { + return new Promise((resolve, reject) => { + _fs.default.readFile(pathname, encoding, (error, contents) => { + if (error) { + reject(error); + return; + } + + resolve(contents); + }); + }); +} + +async function readFile(filepath, options = {}) { + const throwNotFound = options.throwNotFound === true; + + try { + const content = await fsReadFileAsync(filepath, 'utf8'); + return content; + } catch (error) { + if (throwNotFound === false && (error.code === 'ENOENT' || error.code === 'EISDIR')) { + return null; + } + + throw error; + } +} + +function readFileSync(filepath, options = {}) { + const throwNotFound = options.throwNotFound === true; + + try { + const content = _fs.default.readFileSync(filepath, 'utf8'); + + return content; + } catch (error) { + if (throwNotFound === false && (error.code === 'ENOENT' || error.code === 'EISDIR')) { + return null; + } + + throw error; + } +} +//# sourceMappingURL=readFile.js.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/readFile.js.map b/Scripts/node_modules/cosmiconfig/dist/readFile.js.map new file mode 100644 index 00000000..35a5e11b --- /dev/null +++ b/Scripts/node_modules/cosmiconfig/dist/readFile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"readFile.js","names":["fsReadFileAsync","pathname","encoding","Promise","resolve","reject","fs","readFile","error","contents","filepath","options","throwNotFound","content","code","readFileSync"],"sources":["../src/readFile.ts"],"sourcesContent":["import fs from 'fs';\n\nasync function fsReadFileAsync(\n pathname: string,\n encoding: BufferEncoding,\n): Promise {\n return new Promise((resolve, reject): void => {\n fs.readFile(pathname, encoding, (error, contents): void => {\n if (error) {\n reject(error);\n return;\n }\n\n resolve(contents);\n });\n });\n}\n\ninterface Options {\n throwNotFound?: boolean;\n}\n\nasync function readFile(\n filepath: string,\n options: Options = {},\n): Promise {\n const throwNotFound = options.throwNotFound === true;\n\n try {\n const content = await fsReadFileAsync(filepath, 'utf8');\n\n return content;\n } catch (error: any) {\n if (\n throwNotFound === false &&\n (error.code === 'ENOENT' || error.code === 'EISDIR')\n ) {\n return null;\n }\n\n throw error;\n }\n}\n\nfunction readFileSync(filepath: string, options: Options = {}): string | null {\n const throwNotFound = options.throwNotFound === true;\n\n try {\n const content = fs.readFileSync(filepath, 'utf8');\n\n return content;\n } catch (error: any) {\n if (\n throwNotFound === false &&\n (error.code === 'ENOENT' || error.code === 'EISDIR')\n ) {\n return null;\n }\n\n throw error;\n }\n}\n\nexport { readFile, readFileSync };\n"],"mappings":";;;;;;;;AAAA;;;;AAEA,eAAeA,eAAf,CACEC,QADF,EAEEC,QAFF,EAGmB;EACjB,OAAO,IAAIC,OAAJ,CAAY,CAACC,OAAD,EAAUC,MAAV,KAA2B;IAC5CC,WAAA,CAAGC,QAAH,CAAYN,QAAZ,EAAsBC,QAAtB,EAAgC,CAACM,KAAD,EAAQC,QAAR,KAA2B;MACzD,IAAID,KAAJ,EAAW;QACTH,MAAM,CAACG,KAAD,CAAN;QACA;MACD;;MAEDJ,OAAO,CAACK,QAAD,CAAP;IACD,CAPD;EAQD,CATM,CAAP;AAUD;;AAMD,eAAeF,QAAf,CACEG,QADF,EAEEC,OAAgB,GAAG,EAFrB,EAG0B;EACxB,MAAMC,aAAa,GAAGD,OAAO,CAACC,aAAR,KAA0B,IAAhD;;EAEA,IAAI;IACF,MAAMC,OAAO,GAAG,MAAMb,eAAe,CAACU,QAAD,EAAW,MAAX,CAArC;IAEA,OAAOG,OAAP;EACD,CAJD,CAIE,OAAOL,KAAP,EAAmB;IACnB,IACEI,aAAa,KAAK,KAAlB,KACCJ,KAAK,CAACM,IAAN,KAAe,QAAf,IAA2BN,KAAK,CAACM,IAAN,KAAe,QAD3C,CADF,EAGE;MACA,OAAO,IAAP;IACD;;IAED,MAAMN,KAAN;EACD;AACF;;AAED,SAASO,YAAT,CAAsBL,QAAtB,EAAwCC,OAAgB,GAAG,EAA3D,EAA8E;EAC5E,MAAMC,aAAa,GAAGD,OAAO,CAACC,aAAR,KAA0B,IAAhD;;EAEA,IAAI;IACF,MAAMC,OAAO,GAAGP,WAAA,CAAGS,YAAH,CAAgBL,QAAhB,EAA0B,MAA1B,CAAhB;;IAEA,OAAOG,OAAP;EACD,CAJD,CAIE,OAAOL,KAAP,EAAmB;IACnB,IACEI,aAAa,KAAK,KAAlB,KACCJ,KAAK,CAACM,IAAN,KAAe,QAAf,IAA2BN,KAAK,CAACM,IAAN,KAAe,QAD3C,CADF,EAGE;MACA,OAAO,IAAP;IACD;;IAED,MAAMN,KAAN;EACD;AACF"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/types.d.ts b/Scripts/node_modules/cosmiconfig/dist/types.d.ts index d8562b6e..a7ddb910 100644 --- a/Scripts/node_modules/cosmiconfig/dist/types.d.ts +++ b/Scripts/node_modules/cosmiconfig/dist/types.d.ts @@ -30,29 +30,36 @@ export type Transform = ((CosmiconfigResult: CosmiconfigResult) => Promise CosmiconfigResult; +/** + * @public + */ +export type SearchStrategy = 'none' | 'project' | 'global'; /** * @public */ export interface CommonOptions { packageProp?: string | Array; - searchPlaces?: Array; - ignoreEmptySearchPlaces?: boolean; + searchPlaces: Array; + ignoreEmptySearchPlaces: boolean; stopDir?: string; - cache?: boolean; + cache: boolean; + mergeImportArrays: boolean; + mergeSearchPlaces: boolean; + searchStrategy: SearchStrategy; } /** * @public */ export interface Options extends CommonOptions { - loaders?: Loaders; - transform?: Transform; + loaders: Loaders; + transform: Transform; } /** * @public */ export interface OptionsSync extends CommonOptions { - loaders?: LoadersSync; - transform?: TransformSync; + loaders: LoadersSync; + transform: TransformSync; } /** * @public diff --git a/Scripts/node_modules/cosmiconfig/dist/types.d.ts.map b/Scripts/node_modules/cosmiconfig/dist/types.d.ts.map index 074134aa..f47ddd77 100644 --- a/Scripts/node_modules/cosmiconfig/dist/types.d.ts.map +++ b/Scripts/node_modules/cosmiconfig/dist/types.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,MAAM,GAAG,GAAG,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE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AC3B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD,MAAM,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC5D,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACxD;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,MAAM,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,iBAAiB,CAAC;IACnD,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,iBAAiB,CAAC;CAC/C"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/util.js b/Scripts/node_modules/cosmiconfig/dist/util.js index 615a400f..987375a4 100644 --- a/Scripts/node_modules/cosmiconfig/dist/util.js +++ b/Scripts/node_modules/cosmiconfig/dist/util.js @@ -1,6 +1,30 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.removeUndefinedValuesFromObject = exports.getPropertyByPath = exports.emplace = void 0; +exports.isDirectorySync = exports.isDirectory = exports.removeUndefinedValuesFromObject = exports.getPropertyByPath = exports.emplace = void 0; +const fs_1 = __importStar(require("fs")); /** * @internal */ @@ -39,11 +63,37 @@ function getPropertyByPath(source, path) { exports.getPropertyByPath = getPropertyByPath; /** @internal */ function removeUndefinedValuesFromObject(options) { - /* istanbul ignore if -- @preserve */ - if (!options) { - return undefined; - } return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== undefined)); } exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject; +/** @internal */ +/* istanbul ignore next -- @preserve */ +async function isDirectory(path) { + try { + const stat = await fs_1.promises.stat(path); + return stat.isDirectory(); + } + catch (e) { + if (e.code === 'ENOENT') { + return false; + } + throw e; + } +} +exports.isDirectory = isDirectory; +/** @internal */ +/* istanbul ignore next -- @preserve */ +function isDirectorySync(path) { + try { + const stat = fs_1.default.statSync(path); + return stat.isDirectory(); + } + catch (e) { + if (e.code === 'ENOENT') { + return false; + } + throw e; + } +} +exports.isDirectorySync = isDirectorySync; //# sourceMappingURL=util.js.map \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/dist/util.js.map b/Scripts/node_modules/cosmiconfig/dist/util.js.map index cdc6650c..75004c56 100644 --- a/Scripts/node_modules/cosmiconfig/dist/util.js.map +++ b/Scripts/node_modules/cosmiconfig/dist/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,SAAgB,OAAO,CAAO,GAAc,EAAE,GAAM,EAAE,EAAW;IAC/D,MAAM,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC5B,IAAI,MAAM,KAAK,SAAS,EAAE;QACxB,OAAO,MAAM,CAAC;KACf;IACD,MAAM,MAAM,GAAG,EAAE,EAAE,CAAC;IACpB,G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AE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CACnE,CAAC;AACJ,CAAC;AAND,0EAMC;AAED,gBAAgB;AAChB,uCAAuC;AAChC,KAAK,UAAU,WAAW,CAAC,IAAY;IAC5C,IAAI;QACF,MAAM,IAAI,GAAG,MAAM,aAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClC,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;KAC3B;IAAC,OAAO,CAAC,EAAE;QACV,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ,EAAE;YACvB,OAAO,KAAK,CAAC;SACd;QAED,MAAM,CAAC,CAAC;KACT;AACH,CAAC;AAXD,kCAWC;AAED,gBAAgB;AAChB,uCAAuC;AACvC,SAAgB,eAAe,CAAC,IAAY;IAC1C,IAAI;QACF,MAAM,IAAI,GAAG,YAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;KAC3B;IAAC,OAAO,CAAC,EAAE;QACV,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ,EAAE;YACvB,OAAO,KAAK,CAAC;SACd;QACD,MAAM,CAAC,CAAC;KACT;AACH,CAAC;AAVD,0CAUC"} \ No newline at end of file diff --git a/Scripts/node_modules/cosmiconfig/package.json b/Scripts/node_modules/cosmiconfig/package.json index 8a72052b..a3de7f15 100644 --- a/Scripts/node_modules/cosmiconfig/package.json +++ b/Scripts/node_modules/cosmiconfig/package.json @@ -1,6 +1,6 @@ { "name": "cosmiconfig", - "version": "8.3.6", + "version": "9.0.0", "description": "Find and load configuration from a package.json property, rc file, TypeScript module, and more!", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -68,10 +68,10 @@ } }, "dependencies": { + "env-paths": "^2.2.1", "import-fresh": "^3.3.0", "js-yaml": "^4.1.0", - "parse-json": "^5.2.0", - "path-type": "^4.0.0" + "parse-json": "^5.2.0" }, "devDependencies": { "@types/js-yaml": "^4.0.5", @@ -81,8 +81,6 @@ "@typescript-eslint/parser": "^6.5.0", "@vitest/coverage-istanbul": "^0.34.3", "cross-env": "^7.0.3", - "del": "^7.1.0", - "del-cli": "^5.1.0", "eslint": "^8.48.0", "eslint-config-davidtheclark-node": "^0.2.2", "eslint-config-prettier": "^9.0.0", @@ -92,7 +90,6 @@ "eslint-plugin-vitest": "^0.2.8", "husky": "^8.0.3", "lint-staged": "^14.0.1", - "make-dir": "^4.0.0", "parent-module": "^3.0.0", "prettier": "^3.0.3", "remark-preset-davidtheclark": "^0.12.0", diff --git a/Scripts/node_modules/data-uri-to-buffer/dist/common.d.ts b/Scripts/node_modules/data-uri-to-buffer/dist/common.d.ts new file mode 100644 index 00000000..c673ca3f --- /dev/null +++ b/Scripts/node_modules/data-uri-to-buffer/dist/common.d.ts @@ -0,0 +1,17 @@ +export interface ParsedDataURI { + type: string; + typeFull: string; + charset: string; + buffer: ArrayBuffer; +} +export interface IBufferConversions { + base64ToArrayBuffer(base64: string): ArrayBuffer; + stringToBuffer(str: string): ArrayBuffer; +} +/** + * Returns a `Buffer` instance from the given data URI `uri`. + * + * @param {String} uri Data URI to turn into a Buffer instance + */ +export declare const makeDataUriToBuffer: (convert: IBufferConversions) => (uri: string | URL) => ParsedDataURI; +//# sourceMappingURL=common.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/data-uri-to-buffer/dist/common.d.ts.map b/Scripts/node_modules/data-uri-to-buffer/dist/common.d.ts.map new file mode 100644 index 00000000..0186266c --- /dev/null +++ b/Scripts/node_modules/data-uri-to-buffer/dist/common.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IAClC,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CAAC;IACjD,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC;CACzC;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,YAAa,kBAAkB,WAAW,MAAM,GAAG,GAAG,KAAG,aAmDxF,CAAA"} \ No newline at end of file diff --git a/Scripts/node_modules/data-uri-to-buffer/dist/common.js b/Scripts/node_modules/data-uri-to-buffer/dist/common.js new file mode 100644 index 00000000..b875006a --- /dev/null +++ b/Scripts/node_modules/data-uri-to-buffer/dist/common.js @@ -0,0 +1,54 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.makeDataUriToBuffer = void 0; +/** + * Returns a `Buffer` instance from the given data URI `uri`. + * + * @param {String} uri Data URI to turn into a Buffer instance + */ +const makeDataUriToBuffer = (convert) => (uri) => { + uri = String(uri); + if (!/^data:/i.test(uri)) { + throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")'); + } + // strip newlines + uri = uri.replace(/\r?\n/g, ''); + // split the URI up into the "metadata" and the "data" portions + const firstComma = uri.indexOf(','); + if (firstComma === -1 || firstComma <= 4) { + throw new TypeError('malformed data: URI'); + } + // remove the "data:" scheme and parse the metadata + const meta = uri.substring(5, firstComma).split(';'); + let charset = ''; + let base64 = false; + const type = meta[0] || 'text/plain'; + let typeFull = type; + for (let i = 1; i < meta.length; i++) { + if (meta[i] === 'base64') { + base64 = true; + } + else if (meta[i]) { + typeFull += `;${meta[i]}`; + if (meta[i].indexOf('charset=') === 0) { + charset = meta[i].substring(8); + } + } + } + // defaults to US-ASCII only if type is not provided + if (!meta[0] && !charset.length) { + typeFull += ';charset=US-ASCII'; + charset = 'US-ASCII'; + } + // get the encoded data portion and decode URI-encoded chars + const data = unescape(uri.substring(firstComma + 1)); + const buffer = base64 ? convert.base64ToArrayBuffer(data) : convert.stringToBuffer(data); + return { + type, + typeFull, + charset, + buffer, + }; +}; +exports.makeDataUriToBuffer = makeDataUriToBuffer; +//# sourceMappingURL=common.js.map \ No newline at end of file diff --git a/Scripts/node_modules/data-uri-to-buffer/dist/common.js.map b/Scripts/node_modules/data-uri-to-buffer/dist/common.js.map new file mode 100644 index 00000000..0f8e4ede --- /dev/null +++ b/Scripts/node_modules/data-uri-to-buffer/dist/common.js.map @@ -0,0 +1 @@ +{"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":";;;AAYA;;;;GAIG;AACI,MAAM,mBAAmB,GAAG,CAAC,OAA2B,EAAE,EAAE,CAAC,CAAC,GAAiB,EAAiB,EAAE;IACxG,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAElB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QACzB,MAAM,IAAI,SAAS,CAClB,kEAAkE,CAClE,CAAC;KACF;IAED,iBAAiB;IACjB,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAEhC,+DAA+D;IAC/D,MAAM,UAAU,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACpC,IAAI,UAAU,KAAK,CAAC,CAAC,IAAI,UAAU,IAAI,CAAC,EAAE;QACzC,MAAM,IAAI,SAAS,CAAC,qBAAqB,CAAC,CAAC;KAC3C;IAED,mDAAmD;IACnD,MAAM,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAErD,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC;IACrC,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACrC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE;YACzB,MAAM,GAAG,IAAI,CAAC;SACd;aAAM,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE;YACnB,QAAQ,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;YAC1B,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;gBACtC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;aAC/B;SACD;KACD;IACD,oDAAoD;IACpD,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;QAChC,QAAQ,IAAI,mBAAmB,CAAC;QAChC,OAAO,GAAG,UAAU,CAAC;KACrB;IAED,4DAA4D;IAC5D,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC;IACrD,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IAEzF,OAAO;QACN,IAAI;QACJ,QAAQ;QACR,OAAO;QACP,MAAM;KACN,CAAC;AACH,CAAC,CAAA;AAnDY,QAAA,mBAAmB,uBAmD/B"} \ No newline at end of file diff --git a/Scripts/node_modules/data-uri-to-buffer/dist/index.d.ts b/Scripts/node_modules/data-uri-to-buffer/dist/index.d.ts index 7eaf3825..93342c36 100644 --- a/Scripts/node_modules/data-uri-to-buffer/dist/index.d.ts +++ b/Scripts/node_modules/data-uri-to-buffer/dist/index.d.ts @@ -1,13 +1,8 @@ -export interface ParsedDataURI { - type: string; - typeFull: string; - charset: string; - buffer: ArrayBuffer; -} +export type { ParsedDataURI } from './common'; /** * Returns a `Buffer` instance from the given data URI `uri`. * * @param {String} uri Data URI to turn into a Buffer instance */ -export declare function dataUriToBuffer(uri: string | URL): ParsedDataURI; +export declare const dataUriToBuffer: (uri: string | URL) => import("./common").ParsedDataURI; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/data-uri-to-buffer/dist/index.d.ts.map b/Scripts/node_modules/data-uri-to-buffer/dist/index.d.ts.map index 0ad8e69a..2c0f4b32 100644 --- a/Scripts/node_modules/data-uri-to-buffer/dist/index.d.ts.map +++ b/Scripts/node_modules/data-uri-to-buffer/dist/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;CACpB;AAkDD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,aAAa,CAmDhE"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,aAAa,EAAE,MAAO,UAAU,CAAC;AAkD/C;;;;GAIG;AACH,eAAO,MAAM,eAAe,yDAA+D,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/data-uri-to-buffer/dist/index.js b/Scripts/node_modules/data-uri-to-buffer/dist/index.js index c6ab9469..e3921945 100644 --- a/Scripts/node_modules/data-uri-to-buffer/dist/index.js +++ b/Scripts/node_modules/data-uri-to-buffer/dist/index.js @@ -1,6 +1,7 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.dataUriToBuffer = void 0; +const common_1 = require("./common"); function base64ToArrayBuffer(base64) { const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; const bytes = []; @@ -43,49 +44,5 @@ function stringToBuffer(str) { * * @param {String} uri Data URI to turn into a Buffer instance */ -function dataUriToBuffer(uri) { - uri = String(uri); - if (!/^data:/i.test(uri)) { - throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")'); - } - // strip newlines - uri = uri.replace(/\r?\n/g, ''); - // split the URI up into the "metadata" and the "data" portions - const firstComma = uri.indexOf(','); - if (firstComma === -1 || firstComma <= 4) { - throw new TypeError('malformed data: URI'); - } - // remove the "data:" scheme and parse the metadata - const meta = uri.substring(5, firstComma).split(';'); - let charset = ''; - let base64 = false; - const type = meta[0] || 'text/plain'; - let typeFull = type; - for (let i = 1; i < meta.length; i++) { - if (meta[i] === 'base64') { - base64 = true; - } - else if (meta[i]) { - typeFull += `;${meta[i]}`; - if (meta[i].indexOf('charset=') === 0) { - charset = meta[i].substring(8); - } - } - } - // defaults to US-ASCII only if type is not provided - if (!meta[0] && !charset.length) { - typeFull += ';charset=US-ASCII'; - charset = 'US-ASCII'; - } - // get the encoded data portion and decode URI-encoded chars - const data = unescape(uri.substring(firstComma + 1)); - const buffer = base64 ? base64ToArrayBuffer(data) : stringToBuffer(data); - return { - type, - typeFull, - charset, - buffer, - }; -} -exports.dataUriToBuffer = dataUriToBuffer; +exports.dataUriToBuffer = (0, common_1.makeDataUriToBuffer)({ stringToBuffer, base64ToArrayBuffer }); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/Scripts/node_modules/data-uri-to-buffer/dist/index.js.map b/Scripts/node_modules/data-uri-to-buffer/dist/index.js.map index 05c0c71c..b33cda28 100644 --- a/Scripts/node_modules/data-uri-to-buffer/dist/index.js.map +++ b/Scripts/node_modules/data-uri-to-buffer/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAOA,SAAS,mBAAmB,CAAC,MAAc;IAC1C,MAAM,KAAK,GACV,kEAAkE,CAAC;IAEpE,MAAM,KAAK,GAAG,EAAE,CAAC;IAEjB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AC,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC;QAEtC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjB,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG;YAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG;YAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACnD;IAED,MAAM,MAAM,GAAG,IAAI,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7C,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAChB,OAAO,MAAM,CAAC;AACf,CAAC;AAED,SAAS,cAAc,CAAC,GAAW;IAClC,yDAAyD;IACzD,MAAM,MAAM,GAAG,IAAI,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAE3C,iDAAiD;IACjD,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IAEpC,mEAAmE;IACnE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;KAC5B;IAED,OAAO,MAAM,CAAC;AACf,CAAC;AAED;;;;GAIG;AACU,QAAA,eAAe,GAAG,IAAA,4BAAmB,EAAC,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/data-uri-to-buffer/dist/node.d.ts b/Scripts/node_modules/data-uri-to-buffer/dist/node.d.ts new file mode 100644 index 00000000..dd2dc3e2 --- /dev/null +++ b/Scripts/node_modules/data-uri-to-buffer/dist/node.d.ts @@ -0,0 +1,8 @@ +export type { ParsedDataURI } from './common'; +/** + * Returns a `Buffer` instance from the given data URI `uri`. + * + * @param {String} uri Data URI to turn into a Buffer instance + */ +export declare const dataUriToBuffer: (uri: string | URL) => import("./common").ParsedDataURI; +//# sourceMappingURL=node.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/data-uri-to-buffer/dist/node.d.ts.map b/Scripts/node_modules/data-uri-to-buffer/dist/node.d.ts.map new file mode 100644 index 00000000..47b144e7 --- /dev/null +++ b/Scripts/node_modules/data-uri-to-buffer/dist/node.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,aAAa,EAAE,MAAO,UAAU,CAAC;AAoB/C;;;;GAIG;AACH,eAAO,MAAM,eAAe,yDAA+D,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/data-uri-to-buffer/dist/node.js b/Scripts/node_modules/data-uri-to-buffer/dist/node.js new file mode 100644 index 00000000..da4fd2d7 --- /dev/null +++ b/Scripts/node_modules/data-uri-to-buffer/dist/node.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.dataUriToBuffer = void 0; +const common_1 = require("./common"); +function nodeBuffertoArrayBuffer(nodeBuf) { + if (nodeBuf.byteLength === nodeBuf.buffer.byteLength) { + return nodeBuf.buffer; // large strings may get their own memory allocation + } + const buffer = new ArrayBuffer(nodeBuf.byteLength); + const view = new Uint8Array(buffer); + view.set(nodeBuf); + return buffer; +} +function base64ToArrayBuffer(base64) { + return nodeBuffertoArrayBuffer(Buffer.from(base64, 'base64')); +} +function stringToBuffer(str) { + return nodeBuffertoArrayBuffer(Buffer.from(str, 'ascii')); +} +/** + * Returns a `Buffer` instance from the given data URI `uri`. + * + * @param {String} uri Data URI to turn into a Buffer instance + */ +exports.dataUriToBuffer = (0, common_1.makeDataUriToBuffer)({ stringToBuffer, base64ToArrayBuffer }); +//# sourceMappingURL=node.js.map \ No newline at end of file diff --git a/Scripts/node_modules/data-uri-to-buffer/dist/node.js.map b/Scripts/node_modules/data-uri-to-buffer/dist/node.js.map new file mode 100644 index 00000000..d8d6cd76 --- /dev/null +++ b/Scripts/node_modules/data-uri-to-buffer/dist/node.js.map @@ -0,0 +1 @@ +{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":";;;AAAA,qCAA+C;AAI/C,SAAS,uBAAuB,CAAC,OAAe;IAC/C,IAAI,OAAO,CAAC,UAAU,KAAK,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE;QACrD,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,oDAAoD;KAC3E;IACD,MAAM,MAAM,GAAG,IAAI,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACnD,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAClB,OAAO,MAAM,CAAC;AACf,CAAC;AAED,SAAS,mBAAmB,CAAC,MAAc;IAC1C,OAAO,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,cAAc,CAAC,GAAW;IAClC,OAAO,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED;;;;GAIG;AACU,QAAA,eAAe,GAAG,IAAA,4BAAmB,EAAC,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/data-uri-to-buffer/package.json b/Scripts/node_modules/data-uri-to-buffer/package.json index 50057489..abc824bc 100644 --- a/Scripts/node_modules/data-uri-to-buffer/package.json +++ b/Scripts/node_modules/data-uri-to-buffer/package.json @@ -1,9 +1,13 @@ { "name": "data-uri-to-buffer", - "version": "6.0.1", + "version": "6.0.2", "description": "Create an ArrayBuffer instance from a Data URI string", "main": "./dist/index.js", "types": "./dist/index.d.ts", + "exports": { + "node": "./dist/node.js", + "default": "./dist/index.js" + }, "files": [ "dist" ], diff --git a/Scripts/node_modules/delayed-stream/.npmignore b/Scripts/node_modules/delayed-stream/.npmignore new file mode 100644 index 00000000..9daeafb9 --- /dev/null +++ b/Scripts/node_modules/delayed-stream/.npmignore @@ -0,0 +1 @@ +test diff --git a/Scripts/node_modules/delayed-stream/License b/Scripts/node_modules/delayed-stream/License new file mode 100644 index 00000000..4804b7ab --- /dev/null +++ b/Scripts/node_modules/delayed-stream/License @@ -0,0 +1,19 @@ +Copyright (c) 2011 Debuggable Limited + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/Scripts/node_modules/delayed-stream/Makefile b/Scripts/node_modules/delayed-stream/Makefile new file mode 100644 index 00000000..b4ff85a3 --- /dev/null +++ b/Scripts/node_modules/delayed-stream/Makefile @@ -0,0 +1,7 @@ +SHELL := /bin/bash + +test: + @./test/run.js + +.PHONY: test + diff --git a/Scripts/node_modules/delayed-stream/Readme.md b/Scripts/node_modules/delayed-stream/Readme.md new file mode 100644 index 00000000..aca36f9f --- /dev/null +++ b/Scripts/node_modules/delayed-stream/Readme.md @@ -0,0 +1,141 @@ +# delayed-stream + +Buffers events from a stream until you are ready to handle them. + +## Installation + +``` bash +npm install delayed-stream +``` + +## Usage + +The following example shows how to write a http echo server that delays its +response by 1000 ms. + +``` javascript +var DelayedStream = require('delayed-stream'); +var http = require('http'); + +http.createServer(function(req, res) { + var delayed = DelayedStream.create(req); + + setTimeout(function() { + res.writeHead(200); + delayed.pipe(res); + }, 1000); +}); +``` + +If you are not using `Stream#pipe`, you can also manually release the buffered +events by calling `delayedStream.resume()`: + +``` javascript +var delayed = DelayedStream.create(req); + +setTimeout(function() { + // Emit all buffered events and resume underlaying source + delayed.resume(); +}, 1000); +``` + +## Implementation + +In order to use this meta stream properly, here are a few things you should +know about the implementation. + +### Event Buffering / Proxying + +All events of the `source` stream are hijacked by overwriting the `source.emit` +method. Until node implements a catch-all event listener, this is the only way. + +However, delayed-stream still continues to emit all events it captures on the +`source`, regardless of whether you have released the delayed stream yet or +not. + +Upon creation, delayed-stream captures all `source` events and stores them in +an internal event buffer. Once `delayedStream.release()` is called, all +buffered events are emitted on the `delayedStream`, and the event buffer is +cleared. After that, delayed-stream merely acts as a proxy for the underlaying +source. + +### Error handling + +Error events on `source` are buffered / proxied just like any other events. +However, `delayedStream.create` attaches a no-op `'error'` listener to the +`source`. This way you only have to handle errors on the `delayedStream` +object, rather than in two places. + +### Buffer limits + +delayed-stream provides a `maxDataSize` property that can be used to limit +the amount of data being buffered. In order to protect you from bad `source` +streams that don't react to `source.pause()`, this feature is enabled by +default. + +## API + +### DelayedStream.create(source, [options]) + +Returns a new `delayedStream`. Available options are: + +* `pauseStream` +* `maxDataSize` + +The description for those properties can be found below. + +### delayedStream.source + +The `source` stream managed by this object. This is useful if you are +passing your `delayedStream` around, and you still want to access properties +on the `source` object. + +### delayedStream.pauseStream = true + +Whether to pause the underlaying `source` when calling +`DelayedStream.create()`. Modifying this property afterwards has no effect. + +### delayedStream.maxDataSize = 1024 * 1024 + +The amount of data to buffer before emitting an `error`. + +If the underlaying source is emitting `Buffer` objects, the `maxDataSize` +refers to bytes. + +If the underlaying source is emitting JavaScript strings, the size refers to +characters. + +If you know what you are doing, you can set this property to `Infinity` to +disable this feature. You can also modify this property during runtime. + +### delayedStream.dataSize = 0 + +The amount of data buffered so far. + +### delayedStream.readable + +An ECMA5 getter that returns the value of `source.readable`. + +### delayedStream.resume() + +If the `delayedStream` has not been released so far, `delayedStream.release()` +is called. + +In either case, `source.resume()` is called. + +### delayedStream.pause() + +Calls `source.pause()`. + +### delayedStream.pipe(dest) + +Calls `delayedStream.resume()` and then proxies the arguments to `source.pipe`. + +### delayedStream.release() + +Emits and clears all events that have been buffered up so far. This does not +resume the underlaying source, use `delayedStream.resume()` instead. + +## License + +delayed-stream is licensed under the MIT license. diff --git a/Scripts/node_modules/delayed-stream/lib/delayed_stream.js b/Scripts/node_modules/delayed-stream/lib/delayed_stream.js new file mode 100644 index 00000000..b38fc85f --- /dev/null +++ b/Scripts/node_modules/delayed-stream/lib/delayed_stream.js @@ -0,0 +1,107 @@ +var Stream = require('stream').Stream; +var util = require('util'); + +module.exports = DelayedStream; +function DelayedStream() { + this.source = null; + this.dataSize = 0; + this.maxDataSize = 1024 * 1024; + this.pauseStream = true; + + this._maxDataSizeExceeded = false; + this._released = false; + this._bufferedEvents = []; +} +util.inherits(DelayedStream, Stream); + +DelayedStream.create = function(source, options) { + var delayedStream = new this(); + + options = options || {}; + for (var option in options) { + delayedStream[option] = options[option]; + } + + delayedStream.source = source; + + var realEmit = source.emit; + source.emit = function() { + delayedStream._handleEmit(arguments); + return realEmit.apply(source, arguments); + }; + + source.on('error', function() {}); + if (delayedStream.pauseStream) { + source.pause(); + } + + return delayedStream; +}; + +Object.defineProperty(DelayedStream.prototype, 'readable', { + configurable: true, + enumerable: true, + get: function() { + return this.source.readable; + } +}); + +DelayedStream.prototype.setEncoding = function() { + return this.source.setEncoding.apply(this.source, arguments); +}; + +DelayedStream.prototype.resume = function() { + if (!this._released) { + this.release(); + } + + this.source.resume(); +}; + +DelayedStream.prototype.pause = function() { + this.source.pause(); +}; + +DelayedStream.prototype.release = function() { + this._released = true; + + this._bufferedEvents.forEach(function(args) { + this.emit.apply(this, args); + }.bind(this)); + this._bufferedEvents = []; +}; + +DelayedStream.prototype.pipe = function() { + var r = Stream.prototype.pipe.apply(this, arguments); + this.resume(); + return r; +}; + +DelayedStream.prototype._handleEmit = function(args) { + if (this._released) { + this.emit.apply(this, args); + return; + } + + if (args[0] === 'data') { + this.dataSize += args[1].length; + this._checkIfMaxDataSizeExceeded(); + } + + this._bufferedEvents.push(args); +}; + +DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() { + if (this._maxDataSizeExceeded) { + return; + } + + if (this.dataSize <= this.maxDataSize) { + return; + } + + this._maxDataSizeExceeded = true; + var message = + 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.' + this.emit('error', new Error(message)); +}; diff --git a/Scripts/node_modules/delayed-stream/package.json b/Scripts/node_modules/delayed-stream/package.json new file mode 100644 index 00000000..eea3291c --- /dev/null +++ b/Scripts/node_modules/delayed-stream/package.json @@ -0,0 +1,27 @@ +{ + "author": "Felix Geisendörfer (http://debuggable.com/)", + "contributors": [ + "Mike Atkins " + ], + "name": "delayed-stream", + "description": "Buffers events from a stream until you are ready to handle them.", + "license": "MIT", + "version": "1.0.0", + "homepage": "https://github.com/felixge/node-delayed-stream", + "repository": { + "type": "git", + "url": "git://github.com/felixge/node-delayed-stream.git" + }, + "main": "./lib/delayed_stream", + "engines": { + "node": ">=0.4.0" + }, + "scripts": { + "test": "make test" + }, + "dependencies": {}, + "devDependencies": { + "fake": "0.2.0", + "far": "0.0.1" + } +} diff --git a/Scripts/node_modules/devtools-protocol/json/browser_protocol.json b/Scripts/node_modules/devtools-protocol/json/browser_protocol.json index e84d7fae..3ab59913 100644 --- a/Scripts/node_modules/devtools-protocol/json/browser_protocol.json +++ b/Scripts/node_modules/devtools-protocol/json/browser_protocol.json @@ -1011,7 +1011,8 @@ "WarnSameSiteLaxCrossDowngradeLax", "WarnAttributeValueExceedsMaxSize", "WarnDomainNonASCII", - "WarnThirdPartyPhaseout" + "WarnThirdPartyPhaseout", + "WarnCrossSiteRedirectDowngradeChangesInclusion" ] }, { @@ -1581,6 +1582,20 @@ } ] }, + { + "id": "CookieDeprecationMetadataIssueDetails", + "description": "This issue warns about third-party sites that are accessing cookies on the\ncurrent page, and have been permitted due to having a global metadata grant.\nNote that in this context 'site' means eTLD+1. For example, if the URL\n`https://example.test:80/web_page` was accessing cookies, the site reported\nwould be `example.test`.", + "type": "object", + "properties": [ + { + "name": "allowedSites", + "type": "array", + "items": { + "type": "string" + } + } + ] + }, { "id": "ClientHintIssueReason", "type": "string", @@ -1632,13 +1647,16 @@ "IdTokenHttpNotFound", "IdTokenNoResponse", "IdTokenInvalidResponse", + "IdTokenIdpErrorResponse", + "IdTokenCrossSiteIdpErrorResponse", "IdTokenInvalidRequest", "IdTokenInvalidContentType", "ErrorIdToken", "Canceled", "RpPageNotVisible", "SilentMediationFailure", - "ThirdPartyCookiesBlocked" + "ThirdPartyCookiesBlocked", + "NotSignedInWithIdp" ] }, { @@ -1788,6 +1806,7 @@ "ClientHintIssue", "FederatedAuthRequestIssue", "BounceTrackingIssue", + "CookieDeprecationMetadataIssue", "StylesheetLoadingIssue", "FederatedAuthUserInfoRequestIssue", "PropertyRuleIssue" @@ -1879,6 +1898,11 @@ "optional": true, "$ref": "BounceTrackingIssueDetails" }, + { + "name": "cookieDeprecationMetadataIssueDetails", + "optional": true, + "$ref": "CookieDeprecationMetadataIssueDetails" + }, { "name": "stylesheetLoadingIssueDetails", "optional": true, @@ -2495,7 +2519,7 @@ }, { "id": "PermissionDescriptor", - "description": "Definition of PermissionDescriptor defined in the Permissions API:\nhttps://w3c.github.io/permissions/#dictdef-permissiondescriptor.", + "description": "Definition of PermissionDescriptor defined in the Permissions API:\nhttps://w3c.github.io/permissions/#dom-permissiondescriptor.", "experimental": true, "type": "object", "properties": [ @@ -3842,6 +3866,11 @@ "description": "Font's family name reported by platform.", "type": "string" }, + { + "name": "postScriptName", + "description": "Font's PostScript name reported by platform.", + "type": "string" + }, { "name": "isCustomFont", "description": "Indicates if the font was downloaded or resolved locally.", @@ -4033,6 +4062,34 @@ } ] }, + { + "id": "CSSFontPaletteValuesRule", + "description": "CSS font-palette-values rule representation.", + "type": "object", + "properties": [ + { + "name": "styleSheetId", + "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.", + "optional": true, + "$ref": "StyleSheetId" + }, + { + "name": "origin", + "description": "Parent stylesheet's origin.", + "$ref": "StyleSheetOrigin" + }, + { + "name": "fontPaletteName", + "description": "Associated font palette name.", + "$ref": "Value" + }, + { + "name": "style", + "description": "Associated style declaration.", + "$ref": "CSSStyle" + } + ] + }, { "id": "CSSPropertyRule", "description": "CSS property at-rule representation.", @@ -4377,6 +4434,12 @@ "$ref": "CSSPropertyRegistration" } }, + { + "name": "cssFontPaletteValuesRule", + "description": "A font-palette-values rule matching this node.", + "optional": true, + "$ref": "CSSFontPaletteValuesRule" + }, { "name": "parentLayoutNodeId", "description": "Id of the first parent element that does not have display: contents.", @@ -6980,7 +7043,6 @@ "description": "DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript\nexecution will stop on these operations as if there was a regular breakpoint set.", "dependencies": [ "DOM", - "Debugger", "Runtime" ], "types": [ @@ -7137,6 +7199,8 @@ "name": "removeInstrumentationBreakpoint", "description": "Removes breakpoint on particular native event.", "experimental": true, + "deprecated": true, + "redirect": "EventBreakpoints", "parameters": [ { "name": "eventName", @@ -7209,6 +7273,8 @@ "name": "setInstrumentationBreakpoint", "description": "Sets breakpoint on particular native event.", "experimental": true, + "deprecated": true, + "redirect": "EventBreakpoints", "parameters": [ { "name": "eventName", @@ -7232,7 +7298,7 @@ }, { "domain": "EventBreakpoints", - "description": "EventBreakpoints permits setting breakpoints on particular operations and\nevents in targets that run JavaScript but do not have a DOM.\nJavaScript execution will stop on these operations as if there was a regular\nbreakpoint set.", + "description": "EventBreakpoints permits setting JavaScript breakpoints on operations and events\noccurring in native code invoked from JavaScript. Once breakpoint is hit, it is\nreported through Debugger domain, similarly to regular breakpoints being hit.", "experimental": true, "commands": [ { @@ -7256,6 +7322,10 @@ "type": "string" } ] + }, + { + "name": "disable", + "description": "Removes all breakpoints" } ] }, @@ -8501,6 +8571,21 @@ } ] }, + { + "id": "DevicePosture", + "type": "object", + "properties": [ + { + "name": "type", + "description": "Current posture of the device", + "type": "string", + "enum": [ + "continuous", + "folded" + ] + } + ] + }, { "id": "MediaFeature", "type": "object", @@ -8604,6 +8689,120 @@ } ] }, + { + "id": "SensorType", + "description": "Used to specify sensor types to emulate.\nSee https://w3c.github.io/sensors/#automation for more information.", + "experimental": true, + "type": "string", + "enum": [ + "absolute-orientation", + "accelerometer", + "ambient-light", + "gravity", + "gyroscope", + "linear-acceleration", + "magnetometer", + "proximity", + "relative-orientation" + ] + }, + { + "id": "SensorMetadata", + "experimental": true, + "type": "object", + "properties": [ + { + "name": "available", + "optional": true, + "type": "boolean" + }, + { + "name": "minimumFrequency", + "optional": true, + "type": "number" + }, + { + "name": "maximumFrequency", + "optional": true, + "type": "number" + } + ] + }, + { + "id": "SensorReadingSingle", + "experimental": true, + "type": "object", + "properties": [ + { + "name": "value", + "type": "number" + } + ] + }, + { + "id": "SensorReadingXYZ", + "experimental": true, + "type": "object", + "properties": [ + { + "name": "x", + "type": "number" + }, + { + "name": "y", + "type": "number" + }, + { + "name": "z", + "type": "number" + } + ] + }, + { + "id": "SensorReadingQuaternion", + "experimental": true, + "type": "object", + "properties": [ + { + "name": "x", + "type": "number" + }, + { + "name": "y", + "type": "number" + }, + { + "name": "z", + "type": "number" + }, + { + "name": "w", + "type": "number" + } + ] + }, + { + "id": "SensorReading", + "experimental": true, + "type": "object", + "properties": [ + { + "name": "single", + "optional": true, + "$ref": "SensorReadingSingle" + }, + { + "name": "xyz", + "optional": true, + "$ref": "SensorReadingXYZ" + }, + { + "name": "quaternion", + "optional": true, + "$ref": "SensorReadingQuaternion" + } + ] + }, { "id": "DisabledImageType", "description": "Enum of image types that can be disabled.", @@ -8774,6 +8973,13 @@ "experimental": true, "optional": true, "$ref": "DisplayFeature" + }, + { + "name": "devicePosture", + "description": "If set, the posture of a foldable device. If not set the posture is set\nto continuous.", + "experimental": true, + "optional": true, + "$ref": "DevicePosture" } ] }, @@ -8886,6 +9092,57 @@ } ] }, + { + "name": "getOverriddenSensorInformation", + "experimental": true, + "parameters": [ + { + "name": "type", + "$ref": "SensorType" + } + ], + "returns": [ + { + "name": "requestedSamplingFrequency", + "type": "number" + } + ] + }, + { + "name": "setSensorOverrideEnabled", + "description": "Overrides a platform sensor of a given type. If |enabled| is true, calls to\nSensor.start() will use a virtual sensor as backend rather than fetching\ndata from a real hardware sensor. Otherwise, existing virtual\nsensor-backend Sensor objects will fire an error event and new calls to\nSensor.start() will attempt to use a real sensor instead.", + "experimental": true, + "parameters": [ + { + "name": "enabled", + "type": "boolean" + }, + { + "name": "type", + "$ref": "SensorType" + }, + { + "name": "metadata", + "optional": true, + "$ref": "SensorMetadata" + } + ] + }, + { + "name": "setSensorOverrideReadings", + "description": "Updates the sensor readings reported by a sensor type previously overriden\nby setSensorOverrideEnabled.", + "experimental": true, + "parameters": [ + { + "name": "type", + "$ref": "SensorType" + }, + { + "name": "reading", + "$ref": "SensorReading" + } + ] + }, { "name": "setIdleOverride", "description": "Overrides the Idle state.", @@ -9076,7 +9333,7 @@ }, { "name": "acceptLanguage", - "description": "Browser langugage to emulate.", + "description": "Browser language to emulate.", "optional": true, "type": "string" }, @@ -9862,16 +10119,14 @@ { "name": "tiltX", "description": "The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)", - "experimental": true, "optional": true, - "type": "integer" + "type": "number" }, { "name": "tiltY", "description": "The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).", - "experimental": true, "optional": true, - "type": "integer" + "type": "number" }, { "name": "twist", @@ -10235,16 +10490,14 @@ { "name": "tiltX", "description": "The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0).", - "experimental": true, "optional": true, - "type": "integer" + "type": "number" }, { "name": "tiltY", "description": "The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).", - "experimental": true, "optional": true, - "type": "integer" + "type": "number" }, { "name": "twist", @@ -12031,6 +12284,17 @@ "unspecifiedReason" ] }, + { + "id": "ServiceWorkerRouterInfo", + "experimental": true, + "type": "object", + "properties": [ + { + "name": "ruleIdMatched", + "type": "integer" + } + ] + }, { "id": "Response", "description": "HTTP response data.", @@ -12121,6 +12385,13 @@ "optional": true, "type": "boolean" }, + { + "name": "serviceWorkerRouterInfo", + "description": "Infomation about how Service Worker Static Router was used.", + "experimental": true, + "optional": true, + "$ref": "ServiceWorkerRouterInfo" + }, { "name": "encodedDataLength", "description": "Total number of bytes received for this request so far.", @@ -12394,6 +12665,7 @@ "name": "sameParty", "description": "True if cookie is SameParty.", "experimental": true, + "deprecated": true, "type": "boolean" }, { @@ -13828,7 +14100,7 @@ }, { "name": "acceptLanguage", - "description": "Browser langugage to emulate.", + "description": "Browser language to emulate.", "optional": true, "type": "string" }, @@ -15274,6 +15546,28 @@ } ] }, + { + "id": "WindowControlsOverlayConfig", + "description": "Configuration for Window Controls Overlay", + "type": "object", + "properties": [ + { + "name": "showCSS", + "description": "Whether the title bar CSS should be shown when emulating the Window Controls Overlay.", + "type": "boolean" + }, + { + "name": "selectedPlatform", + "description": "Seleted platforms to show the overlay.", + "type": "string" + }, + { + "name": "themeColor", + "description": "The theme color defined in app manifest.", + "type": "string" + } + ] + }, { "id": "ContainerQueryHighlightConfig", "type": "object", @@ -15808,6 +16102,18 @@ } } ] + }, + { + "name": "setShowWindowControlsOverlay", + "description": "Show Window Controls Overlay for PWA", + "parameters": [ + { + "name": "windowControlsOverlayConfig", + "description": "Window Controls Overlay data, null means hide Window Controls Overlay", + "optional": true, + "$ref": "WindowControlsOverlayConfig" + } + ] } ], "events": [ @@ -16038,7 +16344,9 @@ "sync-xhr", "unload", "usb", + "usb-unrestricted", "vertical-scroll", + "web-printing", "web-share", "window-management", "window-placement", @@ -17012,6 +17320,35 @@ "Circumstantial" ] }, + { + "id": "BackForwardCacheBlockingDetails", + "experimental": true, + "type": "object", + "properties": [ + { + "name": "url", + "description": "Url of the file where blockage happened. Optional because of tests.", + "optional": true, + "type": "string" + }, + { + "name": "function", + "description": "Function name where blockage happened. Optional because of anonymous functions and tests.", + "optional": true, + "type": "string" + }, + { + "name": "lineNumber", + "description": "Line number in the script (0-based).", + "type": "integer" + }, + { + "name": "columnNumber", + "description": "Column number in the script (0-based).", + "type": "integer" + } + ] + }, { "id": "BackForwardCacheNotRestoredExplanation", "experimental": true, @@ -17032,6 +17369,14 @@ "description": "Context associated with the reason. The meaning of this context is\ndependent on the reason:\n- EmbedderExtensionSentMessageToCachedFrame: the extension ID.", "optional": true, "type": "string" + }, + { + "name": "details", + "optional": true, + "type": "array", + "items": { + "$ref": "BackForwardCacheBlockingDetails" + } } ] }, @@ -17376,23 +17721,6 @@ } ] }, - { - "name": "getCookies", - "description": "Returns all browser cookies for the page and all of its subframes. Depending\non the backend support, will return detailed cookie information in the\n`cookies` field.", - "experimental": true, - "deprecated": true, - "redirect": "Network", - "returns": [ - { - "name": "cookies", - "description": "Array of cookie objects.", - "type": "array", - "items": { - "$ref": "Network.Cookie" - } - } - ] - }, { "name": "getFrameTree", "description": "Returns present frame tree structure.", @@ -17695,6 +18023,13 @@ "experimental": true, "optional": true, "type": "boolean" + }, + { + "name": "generateDocumentOutline", + "description": "Whether or not to embed the document outline into the PDF.", + "experimental": true, + "optional": true, + "type": "boolean" } ], "returns": [ @@ -19555,6 +19890,11 @@ "name": "targetId", "optional": true, "$ref": "Target.TargetID" + }, + { + "name": "routerRules", + "optional": true, + "type": "string" } ] }, @@ -19833,7 +20173,8 @@ "bid", "win", "additionalBid", - "additionalBidWin" + "additionalBidWin", + "clear" ] }, { @@ -20197,6 +20538,34 @@ } ] }, + { + "id": "AttributionReportingTriggerSpec", + "experimental": true, + "type": "object", + "properties": [ + { + "name": "triggerData", + "description": "number instead of integer because not all uint32 can be represented by\nint", + "type": "array", + "items": { + "type": "number" + } + }, + { + "name": "eventReportWindows", + "$ref": "AttributionReportingEventReportWindows" + } + ] + }, + { + "id": "AttributionReportingTriggerDataMatching", + "experimental": true, + "type": "string", + "enum": [ + "exact", + "modulus" + ] + }, { "id": "AttributionReportingSourceRegistration", "experimental": true, @@ -20209,24 +20578,18 @@ { "name": "expiry", "description": "duration in seconds", - "optional": true, "type": "integer" }, { - "name": "eventReportWindow", - "description": "eventReportWindow and eventReportWindows are mutually exclusive\nduration in seconds", - "optional": true, - "type": "integer" - }, - { - "name": "eventReportWindows", - "optional": true, - "$ref": "AttributionReportingEventReportWindows" + "name": "triggerSpecs", + "type": "array", + "items": { + "$ref": "AttributionReportingTriggerSpec" + } }, { "name": "aggregatableReportWindow", "description": "duration in seconds", - "optional": true, "type": "integer" }, { @@ -20274,6 +20637,10 @@ "name": "debugKey", "optional": true, "$ref": "UnsignedInt64AsBase10" + }, + { + "name": "triggerDataMatching", + "$ref": "AttributionReportingTriggerDataMatching" } ] }, @@ -23272,6 +23639,18 @@ "description": "Sets whether User Verification succeeds or fails for an authenticator.\nDefaults to false.", "optional": true, "type": "boolean" + }, + { + "name": "defaultBackupEligibility", + "description": "Credentials created by this authenticator will have the backup\neligibility (BE) flag set to this value. Defaults to false.\nhttps://w3c.github.io/webauthn/#sctn-credential-backup", + "optional": true, + "type": "boolean" + }, + { + "name": "defaultBackupState", + "description": "Credentials created by this authenticator will have the backup state\n(BS) flag set to this value. Defaults to false.\nhttps://w3c.github.io/webauthn/#sctn-credential-backup", + "optional": true, + "type": "boolean" } ] }, @@ -24020,7 +24399,6 @@ "MemoryPressureOnTrigger", "MemoryPressureAfterTriggered", "PrerenderingDisabledByDevTools", - "ResourceLoadBlockedByClient", "SpeculationRuleRemoved", "ActivatedWithAuxiliaryBrowsingContexts", "MaxNumOfRunningEagerPrerendersExceeded", @@ -24080,6 +24458,27 @@ "PrefetchSuccessfulButNotUsed", "PrefetchNotUsedProbeFailed" ] + }, + { + "id": "PrerenderMismatchedHeaders", + "description": "Information of headers to be displayed when the header mismatch occurred.", + "type": "object", + "properties": [ + { + "name": "headerName", + "type": "string" + }, + { + "name": "initialValue", + "optional": true, + "type": "string" + }, + { + "name": "activationValue", + "optional": true, + "type": "string" + } + ] } ], "commands": [ @@ -24189,6 +24588,14 @@ "description": "This is used to give users more information about the name of Mojo interface\nthat is incompatible with prerender and has caused the cancellation of the attempt.", "optional": true, "type": "string" + }, + { + "name": "mismatchedHeaders", + "optional": true, + "type": "array", + "items": { + "$ref": "PrerenderMismatchedHeaders" + } } ] }, @@ -24227,12 +24634,23 @@ }, { "id": "DialogType", - "description": "Whether the dialog shown is an account chooser or an auto re-authentication dialog.", + "description": "The types of FedCM dialogs.", "type": "string", "enum": [ "AccountChooser", "AutoReauthn", - "ConfirmIdpSignin" + "ConfirmIdpLogin", + "Error" + ] + }, + { + "id": "DialogButton", + "description": "The buttons on the FedCM dialog.", + "type": "string", + "enum": [ + "ConfirmIdpLoginContinue", + "ErrorGotIt", + "ErrorMoreDetails" ] }, { @@ -24265,7 +24683,7 @@ "type": "string" }, { - "name": "idpSigninUrl", + "name": "idpLoginUrl", "type": "string" }, { @@ -24316,6 +24734,16 @@ "type": "string" } ] + }, + { + "name": "dialogClosed", + "description": "Triggered when a dialog is closed, either by user action, JS abort,\nor a command below.", + "parameters": [ + { + "name": "dialogId", + "type": "string" + } + ] } ], "commands": [ @@ -24347,12 +24775,15 @@ ] }, { - "name": "confirmIdpSignin", - "description": "Only valid if the dialog type is ConfirmIdpSignin. Acts as if the user had\nclicked the continue button.", + "name": "clickDialogButton", "parameters": [ { "name": "dialogId", "type": "string" + }, + { + "name": "dialogButton", + "$ref": "DialogButton" } ] }, diff --git a/Scripts/node_modules/devtools-protocol/package.json b/Scripts/node_modules/devtools-protocol/package.json index 476c63fa..107e7573 100644 --- a/Scripts/node_modules/devtools-protocol/package.json +++ b/Scripts/node_modules/devtools-protocol/package.json @@ -1,6 +1,6 @@ { "name": "devtools-protocol", - "version": "0.0.1203626", + "version": "0.0.1232444", "description": "The Chrome DevTools Protocol JSON", "repository": "https://github.com/ChromeDevTools/devtools-protocol", "author": "The Chromium Authors", diff --git a/Scripts/node_modules/devtools-protocol/pdl/browser_protocol.pdl b/Scripts/node_modules/devtools-protocol/pdl/browser_protocol.pdl index 407a53f1..903dd7bc 100644 --- a/Scripts/node_modules/devtools-protocol/pdl/browser_protocol.pdl +++ b/Scripts/node_modules/devtools-protocol/pdl/browser_protocol.pdl @@ -498,6 +498,7 @@ experimental domain Audits WarnAttributeValueExceedsMaxSize WarnDomainNonASCII WarnThirdPartyPhaseout + WarnCrossSiteRedirectDowngradeChangesInclusion type CookieOperation extends string enum @@ -770,6 +771,15 @@ experimental domain Audits properties array of string trackingSites + # This issue warns about third-party sites that are accessing cookies on the + # current page, and have been permitted due to having a global metadata grant. + # Note that in this context 'site' means eTLD+1. For example, if the URL + # `https://example.test:80/web_page` was accessing cookies, the site reported + # would be `example.test`. + type CookieDeprecationMetadataIssueDetails extends object + properties + array of string allowedSites + type ClientHintIssueReason extends string enum # Items in the accept-ch meta tag allow list must be valid origins. @@ -817,6 +827,8 @@ experimental domain Audits IdTokenHttpNotFound IdTokenNoResponse IdTokenInvalidResponse + IdTokenIdpErrorResponse + IdTokenCrossSiteIdpErrorResponse IdTokenInvalidRequest IdTokenInvalidContentType ErrorIdToken @@ -824,6 +836,7 @@ experimental domain Audits RpPageNotVisible SilentMediationFailure ThirdPartyCookiesBlocked + NotSignedInWithIdp type FederatedAuthUserInfoRequestIssueDetails extends object properties @@ -914,6 +927,7 @@ experimental domain Audits ClientHintIssue FederatedAuthRequestIssue BounceTrackingIssue + CookieDeprecationMetadataIssue StylesheetLoadingIssue FederatedAuthUserInfoRequestIssue PropertyRuleIssue @@ -939,6 +953,7 @@ experimental domain Audits optional ClientHintIssueDetails clientHintIssueDetails optional FederatedAuthRequestIssueDetails federatedAuthRequestIssueDetails optional BounceTrackingIssueDetails bounceTrackingIssueDetails + optional CookieDeprecationMetadataIssueDetails cookieDeprecationMetadataIssueDetails optional StylesheetLoadingIssueDetails stylesheetLoadingIssueDetails optional PropertyRuleIssueDetails propertyRuleIssueDetails optional FederatedAuthUserInfoRequestIssueDetails federatedAuthUserInfoRequestIssueDetails @@ -1236,7 +1251,7 @@ domain Browser prompt # Definition of PermissionDescriptor defined in the Permissions API: - # https://w3c.github.io/permissions/#dictdef-permissiondescriptor. + # https://w3c.github.io/permissions/#dom-permissiondescriptor. experimental type PermissionDescriptor extends object properties # Name of permission. @@ -1832,6 +1847,8 @@ experimental domain CSS properties # Font's family name reported by platform. string familyName + # Font's PostScript name reported by platform. + string postScriptName # Indicates if the font was downloaded or resolved locally. boolean isCustomFont # Amount of glyphs that were rendered with this font. @@ -1911,6 +1928,19 @@ experimental domain CSS string syntax + # CSS font-palette-values rule representation. + type CSSFontPaletteValuesRule extends object + properties + # The css style sheet identifier (absent for user agent stylesheet and user-specified + # stylesheet rules) this rule came from. + optional StyleSheetId styleSheetId + # Parent stylesheet's origin. + StyleSheetOrigin origin + # Associated font palette name. + Value fontPaletteName + # Associated style declaration. + CSSStyle style + # CSS property at-rule representation. type CSSPropertyRule extends object properties @@ -2055,6 +2085,8 @@ experimental domain CSS optional array of CSSPropertyRule cssPropertyRules # A list of CSS property registrations matching this node. optional array of CSSPropertyRegistration cssPropertyRegistrations + # A font-palette-values rule matching this node. + optional CSSFontPaletteValuesRule cssFontPaletteValuesRule # Id of the first parent element that does not have display: contents. experimental optional DOM.NodeId parentLayoutNodeId @@ -3268,7 +3300,6 @@ domain DOM # execution will stop on these operations as if there was a regular breakpoint set. domain DOMDebugger depends on DOM - depends on Debugger depends on Runtime # DOM breakpoint type. @@ -3340,7 +3371,8 @@ domain DOMDebugger experimental optional string targetName # Removes breakpoint on particular native event. - experimental command removeInstrumentationBreakpoint + experimental deprecated command removeInstrumentationBreakpoint + redirect EventBreakpoints parameters # Instrumentation name to stop on. string eventName @@ -3375,7 +3407,8 @@ domain DOMDebugger experimental optional string targetName # Sets breakpoint on particular native event. - experimental command setInstrumentationBreakpoint + experimental deprecated command setInstrumentationBreakpoint + redirect EventBreakpoints parameters # Instrumentation name to stop on. string eventName @@ -3386,10 +3419,9 @@ domain DOMDebugger # Resource URL substring. All XHRs having this substring in the URL will get stopped upon. string url -# EventBreakpoints permits setting breakpoints on particular operations and -# events in targets that run JavaScript but do not have a DOM. -# JavaScript execution will stop on these operations as if there was a regular -# breakpoint set. +# EventBreakpoints permits setting JavaScript breakpoints on operations and events +# occurring in native code invoked from JavaScript. Once breakpoint is hit, it is +# reported through Debugger domain, similarly to regular breakpoints being hit. experimental domain EventBreakpoints # Sets breakpoint on particular native event. command setInstrumentationBreakpoint @@ -3403,6 +3435,9 @@ experimental domain EventBreakpoints # Instrumentation name to stop on. string eventName + # Removes all breakpoints + command disable + # This domain facilitates obtaining document snapshots with DOM, layout, and style information. experimental domain DOMSnapshot depends on CSS @@ -3881,6 +3916,13 @@ domain Emulation # A display feature that only splits content will have a 0 mask_length. integer maskLength + type DevicePosture extends object + properties + # Current posture of the device + enum type + continuous + folded + type MediaFeature extends object properties string name @@ -3919,6 +3961,49 @@ domain Emulation optional string bitness optional boolean wow64 + # Used to specify sensor types to emulate. + # See https://w3c.github.io/sensors/#automation for more information. + experimental type SensorType extends string + enum + absolute-orientation + accelerometer + ambient-light + gravity + gyroscope + linear-acceleration + magnetometer + proximity + relative-orientation + + experimental type SensorMetadata extends object + properties + optional boolean available + optional number minimumFrequency + optional number maximumFrequency + + experimental type SensorReadingSingle extends object + properties + number value + + experimental type SensorReadingXYZ extends object + properties + number x + number y + number z + + experimental type SensorReadingQuaternion extends object + properties + number x + number y + number z + number w + + experimental type SensorReading extends object + properties + optional SensorReadingSingle single + optional SensorReadingXYZ xyz + optional SensorReadingQuaternion quaternion + # Tells whether emulation is supported. command canEmulate returns @@ -3995,6 +4080,9 @@ domain Emulation # If set, the display feature of a multi-segment screen. If not set, multi-segment support # is turned-off. experimental optional DisplayFeature displayFeature + # If set, the posture of a foldable device. If not set the posture is set + # to continuous. + experimental optional DevicePosture devicePosture experimental command setScrollbarsHidden parameters @@ -4048,6 +4136,30 @@ domain Emulation # Mock accuracy optional number accuracy + experimental command getOverriddenSensorInformation + parameters + SensorType type + returns + number requestedSamplingFrequency + + # Overrides a platform sensor of a given type. If |enabled| is true, calls to + # Sensor.start() will use a virtual sensor as backend rather than fetching + # data from a real hardware sensor. Otherwise, existing virtual + # sensor-backend Sensor objects will fire an error event and new calls to + # Sensor.start() will attempt to use a real sensor instead. + experimental command setSensorOverrideEnabled + parameters + boolean enabled + SensorType type + optional SensorMetadata metadata + + # Updates the sensor readings reported by a sensor type previously overriden + # by setSensorOverrideEnabled. + experimental command setSensorOverrideReadings + parameters + SensorType type + SensorReading reading + # Overrides the Idle state. experimental command setIdleOverride parameters @@ -4150,7 +4262,7 @@ domain Emulation parameters # User agent to use. string userAgent - # Browser langugage to emulate. + # Browser language to emulate. optional string acceptLanguage # The platform navigator.platform should return. optional string platform @@ -4495,9 +4607,9 @@ domain Input # The normalized tangential pressure, which has a range of [-1,1] (default: 0). experimental optional number tangentialPressure # The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0) - experimental optional integer tiltX + optional number tiltX # The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). - experimental optional integer tiltY + optional number tiltY # The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0). experimental optional integer twist # Identifier used to track touch sources between events, must be unique within an event. @@ -4663,9 +4775,9 @@ domain Input # The normalized tangential pressure, which has a range of [-1,1] (default: 0). experimental optional number tangentialPressure # The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0). - experimental optional integer tiltX + optional number tiltX # The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). - experimental optional integer tiltY + optional number tiltY # The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0). experimental optional integer twist # X delta in CSS pixels for mouse wheel event (default: 0). @@ -5577,6 +5689,10 @@ domain Network # This value is used when the reason is unknown. unspecifiedReason + experimental type ServiceWorkerRouterInfo extends object + properties + integer ruleIdMatched + # HTTP response data. type Response extends object properties @@ -5610,6 +5726,8 @@ domain Network optional boolean fromServiceWorker # Specifies that the request was served from the prefetch cache. optional boolean fromPrefetchCache + # Infomation about how Service Worker Static Router was used. + experimental optional ServiceWorkerRouterInfo serviceWorkerRouterInfo # Total number of bytes received for this request so far. number encodedDataLength # Timing information for the given request. @@ -5725,7 +5843,7 @@ domain Network # Cookie Priority experimental CookiePriority priority # True if cookie is SameParty. - experimental boolean sameParty + experimental deprecated boolean sameParty # Cookie source scheme type. experimental CookieSourceScheme sourceScheme # Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. @@ -6327,7 +6445,7 @@ domain Network parameters # User agent to use. string userAgent - # Browser langugage to emulate. + # Browser language to emulate. optional string acceptLanguage # The platform navigator.platform should return. optional string platform @@ -7107,6 +7225,16 @@ experimental domain Overlay # The content box highlight outline color (default: transparent). optional DOM.RGBA outlineColor + # Configuration for Window Controls Overlay + type WindowControlsOverlayConfig extends object + properties + # Whether the title bar CSS should be shown when emulating the Window Controls Overlay. + boolean showCSS + # Seleted platforms to show the overlay. + string selectedPlatform + # The theme color defined in app manifest. + string themeColor + type ContainerQueryHighlightConfig extends object properties # A descriptor for the highlight appearance of container query containers. @@ -7357,6 +7485,12 @@ experimental domain Overlay # An array of node identifiers and descriptors for the highlight appearance. array of IsolatedElementHighlightConfig isolatedElementHighlightConfigs + # Show Window Controls Overlay for PWA + command setShowWindowControlsOverlay + parameters + # Window Controls Overlay data, null means hide Window Controls Overlay + optional WindowControlsOverlayConfig windowControlsOverlayConfig + # Fired when the node should be inspected. This happens after call to `setInspectMode` or when # user manually inspects an element. event inspectNodeRequested @@ -7527,7 +7661,9 @@ domain Page sync-xhr unload usb + usb-unrestricted vertical-scroll + web-printing web-share # Alias for 'window-placement' (crbug.com/1328581). window-management @@ -8036,16 +8172,6 @@ domain Page # as an ad. Only sent if frame is labelled as an ad and id is available. optional AdScriptId adScriptId - # Returns all browser cookies for the page and all of its subframes. Depending - # on the backend support, will return detailed cookie information in the - # `cookies` field. - experimental deprecated command getCookies - # Use 'Network.getCookies' instead - redirect Network - returns - # Array of cookie objects. - array of Network.Cookie cookies - # Returns present frame tree structure. command getFrameTree returns @@ -8188,6 +8314,8 @@ domain Page ReturnAsStream # Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice. experimental optional boolean generateTaggedPDF + # Whether or not to embed the document outline into the PDF. + experimental optional boolean generateDocumentOutline returns # Base64-encoded pdf data. Empty if |returnAsStream| is specified. binary data @@ -8787,6 +8915,17 @@ domain Page PageSupportNeeded Circumstantial + experimental type BackForwardCacheBlockingDetails extends object + properties + # Url of the file where blockage happened. Optional because of tests. + optional string url + # Function name where blockage happened. Optional because of anonymous functions and tests. + optional string function + # Line number in the script (0-based). + integer lineNumber + # Column number in the script (0-based). + integer columnNumber + experimental type BackForwardCacheNotRestoredExplanation extends object properties # Type of the reason @@ -8798,6 +8937,7 @@ domain Page # - EmbedderExtensionSentMessageToCachedFrame: the extension ID. # optional string context + optional array of BackForwardCacheBlockingDetails details experimental type BackForwardCacheNotRestoredExplanationTree extends object properties @@ -9233,6 +9373,7 @@ experimental domain ServiceWorker optional number scriptResponseTime optional array of Target.TargetID controlledClients optional Target.TargetID targetId + optional string routerRules # ServiceWorker error message. type ServiceWorkerErrorMessage extends object @@ -9359,6 +9500,7 @@ experimental domain Storage win additionalBid additionalBidWin + clear # Ad advertising element inside an interest group. type InterestGroupAd extends object @@ -9815,17 +9957,26 @@ experimental domain Storage # duration in seconds array of integer ends + experimental type AttributionReportingTriggerSpec extends object + properties + # number instead of integer because not all uint32 can be represented by + # int + array of number triggerData + AttributionReportingEventReportWindows eventReportWindows + + experimental type AttributionReportingTriggerDataMatching extends string + enum + exact + modulus + experimental type AttributionReportingSourceRegistration extends object properties Network.TimeSinceEpoch time # duration in seconds - optional integer expiry - # eventReportWindow and eventReportWindows are mutually exclusive + integer expiry + array of AttributionReportingTriggerSpec triggerSpecs # duration in seconds - optional integer eventReportWindow - optional AttributionReportingEventReportWindows eventReportWindows - # duration in seconds - optional integer aggregatableReportWindow + integer aggregatableReportWindow AttributionReportingSourceType type string sourceOrigin string reportingOrigin @@ -9835,6 +9986,7 @@ experimental domain Storage array of AttributionReportingFilterDataEntry filterData array of AttributionReportingAggregationKeysEntry aggregationKeys optional UnsignedInt64AsBase10 debugKey + AttributionReportingTriggerDataMatching triggerDataMatching experimental type AttributionReportingSourceRegistrationResult extends string enum @@ -10961,6 +11113,14 @@ experimental domain WebAuthn # Sets whether User Verification succeeds or fails for an authenticator. # Defaults to false. optional boolean isUserVerified + # Credentials created by this authenticator will have the backup + # eligibility (BE) flag set to this value. Defaults to false. + # https://w3c.github.io/webauthn/#sctn-credential-backup + optional boolean defaultBackupEligibility + # Credentials created by this authenticator will have the backup state + # (BS) flag set to this value. Defaults to false. + # https://w3c.github.io/webauthn/#sctn-credential-backup + optional boolean defaultBackupState type Credential extends object properties @@ -11374,7 +11534,6 @@ experimental domain Preload MemoryPressureOnTrigger MemoryPressureAfterTriggered PrerenderingDisabledByDevTools - ResourceLoadBlockedByClient SpeculationRuleRemoved ActivatedWithAuxiliaryBrowsingContexts MaxNumOfRunningEagerPrerendersExceeded @@ -11457,6 +11616,13 @@ experimental domain Preload PrefetchStatus prefetchStatus Network.RequestId requestId + # Information of headers to be displayed when the header mismatch occurred. + type PrerenderMismatchedHeaders extends object + properties + string headerName + optional string initialValue + optional string activationValue + # Fired when a prerender attempt is updated. event prerenderStatusUpdated parameters @@ -11466,6 +11632,7 @@ experimental domain Preload # This is used to give users more information about the name of Mojo interface # that is incompatible with prerender and has caused the cancellation of the attempt. optional string disallowedMojoInterface + optional array of PrerenderMismatchedHeaders mismatchedHeaders # Send a list of sources for all preloading attempts in a document. event preloadingAttemptSourcesUpdated @@ -11482,12 +11649,20 @@ experimental domain FedCm SignIn SignUp - # Whether the dialog shown is an account chooser or an auto re-authentication dialog. + # The types of FedCM dialogs. type DialogType extends string enum AccountChooser AutoReauthn - ConfirmIdpSignin + ConfirmIdpLogin + Error + + # The buttons on the FedCM dialog. + type DialogButton extends string + enum + ConfirmIdpLoginContinue + ErrorGotIt + ErrorMoreDetails # Corresponds to IdentityRequestAccount type Account extends object @@ -11498,7 +11673,7 @@ experimental domain FedCm string givenName string pictureUrl string idpConfigUrl - string idpSigninUrl + string idpLoginUrl LoginState loginState # These two are only set if the loginState is signUp optional string termsOfServiceUrl @@ -11514,6 +11689,12 @@ experimental domain FedCm string title optional string subtitle + # Triggered when a dialog is closed, either by user action, JS abort, + # or a command below. + event dialogClosed + parameters + string dialogId + command enable parameters # Allows callers to disable the promise rejection delay that would @@ -11528,11 +11709,10 @@ experimental domain FedCm string dialogId integer accountIndex - # Only valid if the dialog type is ConfirmIdpSignin. Acts as if the user had - # clicked the continue button. - command confirmIdpSignin + command clickDialogButton parameters string dialogId + DialogButton dialogButton command dismissDialog parameters diff --git a/Scripts/node_modules/devtools-protocol/types/protocol-mapping.d.ts b/Scripts/node_modules/devtools-protocol/types/protocol-mapping.d.ts index c1f283e5..7309dc41 100644 --- a/Scripts/node_modules/devtools-protocol/types/protocol-mapping.d.ts +++ b/Scripts/node_modules/devtools-protocol/types/protocol-mapping.d.ts @@ -743,6 +743,11 @@ export namespace ProtocolMapping { */ 'Preload.preloadingAttemptSourcesUpdated': [Protocol.Preload.PreloadingAttemptSourcesUpdatedEvent]; 'FedCm.dialogShown': [Protocol.FedCm.DialogShownEvent]; + /** + * Triggered when a dialog is closed, either by user action, JS abort, + * or a command below. + */ + 'FedCm.dialogClosed': [Protocol.FedCm.DialogClosedEvent]; } export interface Commands { @@ -2419,6 +2424,13 @@ export namespace ProtocolMapping { paramsType: [Protocol.EventBreakpoints.RemoveInstrumentationBreakpointRequest]; returnType: void; }; + /** + * Removes all breakpoints + */ + 'EventBreakpoints.disable': { + paramsType: []; + returnType: void; + }; /** * Disables DOM snapshot agent for the given page. */ @@ -2619,6 +2631,29 @@ export namespace ProtocolMapping { paramsType: [Protocol.Emulation.SetGeolocationOverrideRequest?]; returnType: void; }; + 'Emulation.getOverriddenSensorInformation': { + paramsType: [Protocol.Emulation.GetOverriddenSensorInformationRequest]; + returnType: Protocol.Emulation.GetOverriddenSensorInformationResponse; + }; + /** + * Overrides a platform sensor of a given type. If |enabled| is true, calls to + * Sensor.start() will use a virtual sensor as backend rather than fetching + * data from a real hardware sensor. Otherwise, existing virtual + * sensor-backend Sensor objects will fire an error event and new calls to + * Sensor.start() will attempt to use a real sensor instead. + */ + 'Emulation.setSensorOverrideEnabled': { + paramsType: [Protocol.Emulation.SetSensorOverrideEnabledRequest]; + returnType: void; + }; + /** + * Updates the sensor readings reported by a sensor type previously overriden + * by setSensorOverrideEnabled. + */ + 'Emulation.setSensorOverrideReadings': { + paramsType: [Protocol.Emulation.SetSensorOverrideReadingsRequest]; + returnType: void; + }; /** * Overrides the Idle state. */ @@ -3529,6 +3564,13 @@ export namespace ProtocolMapping { paramsType: [Protocol.Overlay.SetShowIsolatedElementsRequest]; returnType: void; }; + /** + * Show Window Controls Overlay for PWA + */ + 'Overlay.setShowWindowControlsOverlay': { + paramsType: [Protocol.Overlay.SetShowWindowControlsOverlayRequest?]; + returnType: void; + }; /** * Deprecated, please use addScriptToEvaluateOnNewDocument instead. */ @@ -3641,15 +3683,6 @@ export namespace ProtocolMapping { paramsType: [Protocol.Page.GetAdScriptIdRequest]; returnType: Protocol.Page.GetAdScriptIdResponse; }; - /** - * Returns all browser cookies for the page and all of its subframes. Depending - * on the backend support, will return detailed cookie information in the - * `cookies` field. - */ - 'Page.getCookies': { - paramsType: []; - returnType: Protocol.Page.GetCookiesResponse; - }; /** * Returns present frame tree structure. */ @@ -4789,12 +4822,8 @@ export namespace ProtocolMapping { paramsType: [Protocol.FedCm.SelectAccountRequest]; returnType: void; }; - /** - * Only valid if the dialog type is ConfirmIdpSignin. Acts as if the user had - * clicked the continue button. - */ - 'FedCm.confirmIdpSignin': { - paramsType: [Protocol.FedCm.ConfirmIdpSigninRequest]; + 'FedCm.clickDialogButton': { + paramsType: [Protocol.FedCm.ClickDialogButtonRequest]; returnType: void; }; 'FedCm.dismissDialog': { diff --git a/Scripts/node_modules/devtools-protocol/types/protocol-proxy-api.d.ts b/Scripts/node_modules/devtools-protocol/types/protocol-proxy-api.d.ts index ca2c774b..795c19e2 100644 --- a/Scripts/node_modules/devtools-protocol/types/protocol-proxy-api.d.ts +++ b/Scripts/node_modules/devtools-protocol/types/protocol-proxy-api.d.ts @@ -1650,6 +1650,11 @@ export namespace ProtocolProxyApi { */ removeInstrumentationBreakpoint(params: Protocol.EventBreakpoints.RemoveInstrumentationBreakpointRequest): Promise; + /** + * Removes all breakpoints + */ + disable(): Promise; + } export interface DOMSnapshotApi { @@ -1813,6 +1818,23 @@ export namespace ProtocolProxyApi { */ setGeolocationOverride(params: Protocol.Emulation.SetGeolocationOverrideRequest): Promise; + getOverriddenSensorInformation(params: Protocol.Emulation.GetOverriddenSensorInformationRequest): Promise; + + /** + * Overrides a platform sensor of a given type. If |enabled| is true, calls to + * Sensor.start() will use a virtual sensor as backend rather than fetching + * data from a real hardware sensor. Otherwise, existing virtual + * sensor-backend Sensor objects will fire an error event and new calls to + * Sensor.start() will attempt to use a real sensor instead. + */ + setSensorOverrideEnabled(params: Protocol.Emulation.SetSensorOverrideEnabledRequest): Promise; + + /** + * Updates the sensor readings reported by a sensor type previously overriden + * by setSensorOverrideEnabled. + */ + setSensorOverrideReadings(params: Protocol.Emulation.SetSensorOverrideReadingsRequest): Promise; + /** * Overrides the Idle state. */ @@ -2687,6 +2709,11 @@ export namespace ProtocolProxyApi { */ setShowIsolatedElements(params: Protocol.Overlay.SetShowIsolatedElementsRequest): Promise; + /** + * Show Window Controls Overlay for PWA + */ + setShowWindowControlsOverlay(params: Protocol.Overlay.SetShowWindowControlsOverlayRequest): Promise; + /** * Fired when the node should be inspected. This happens after call to `setInspectMode` or when * user manually inspects an element. @@ -2789,13 +2816,6 @@ export namespace ProtocolProxyApi { getAdScriptId(params: Protocol.Page.GetAdScriptIdRequest): Promise; - /** - * Returns all browser cookies for the page and all of its subframes. Depending - * on the backend support, will return detailed cookie information in the - * `cookies` field. - */ - getCookies(): Promise; - /** * Returns present frame tree structure. */ @@ -4084,11 +4104,7 @@ export namespace ProtocolProxyApi { selectAccount(params: Protocol.FedCm.SelectAccountRequest): Promise; - /** - * Only valid if the dialog type is ConfirmIdpSignin. Acts as if the user had - * clicked the continue button. - */ - confirmIdpSignin(params: Protocol.FedCm.ConfirmIdpSigninRequest): Promise; + clickDialogButton(params: Protocol.FedCm.ClickDialogButtonRequest): Promise; dismissDialog(params: Protocol.FedCm.DismissDialogRequest): Promise; @@ -4100,6 +4116,12 @@ export namespace ProtocolProxyApi { on(event: 'dialogShown', listener: (params: Protocol.FedCm.DialogShownEvent) => void): void; + /** + * Triggered when a dialog is closed, either by user action, JS abort, + * or a command below. + */ + on(event: 'dialogClosed', listener: (params: Protocol.FedCm.DialogClosedEvent) => void): void; + } } diff --git a/Scripts/node_modules/devtools-protocol/types/protocol.d.ts b/Scripts/node_modules/devtools-protocol/types/protocol.d.ts index 495ac5ab..0143d1f2 100644 --- a/Scripts/node_modules/devtools-protocol/types/protocol.d.ts +++ b/Scripts/node_modules/devtools-protocol/types/protocol.d.ts @@ -3259,7 +3259,7 @@ export namespace Protocol { export type CookieExclusionReason = ('ExcludeSameSiteUnspecifiedTreatedAsLax' | 'ExcludeSameSiteNoneInsecure' | 'ExcludeSameSiteLax' | 'ExcludeSameSiteStrict' | 'ExcludeInvalidSameParty' | 'ExcludeSamePartyCrossPartyContext' | 'ExcludeDomainNonASCII' | 'ExcludeThirdPartyCookieBlockedInFirstPartySet' | 'ExcludeThirdPartyPhaseout'); - export type CookieWarningReason = ('WarnSameSiteUnspecifiedCrossSiteContext' | 'WarnSameSiteNoneInsecure' | 'WarnSameSiteUnspecifiedLaxAllowUnsafe' | 'WarnSameSiteStrictLaxDowngradeStrict' | 'WarnSameSiteStrictCrossDowngradeStrict' | 'WarnSameSiteStrictCrossDowngradeLax' | 'WarnSameSiteLaxCrossDowngradeStrict' | 'WarnSameSiteLaxCrossDowngradeLax' | 'WarnAttributeValueExceedsMaxSize' | 'WarnDomainNonASCII' | 'WarnThirdPartyPhaseout'); + export type CookieWarningReason = ('WarnSameSiteUnspecifiedCrossSiteContext' | 'WarnSameSiteNoneInsecure' | 'WarnSameSiteUnspecifiedLaxAllowUnsafe' | 'WarnSameSiteStrictLaxDowngradeStrict' | 'WarnSameSiteStrictCrossDowngradeStrict' | 'WarnSameSiteStrictCrossDowngradeLax' | 'WarnSameSiteLaxCrossDowngradeStrict' | 'WarnSameSiteLaxCrossDowngradeLax' | 'WarnAttributeValueExceedsMaxSize' | 'WarnDomainNonASCII' | 'WarnThirdPartyPhaseout' | 'WarnCrossSiteRedirectDowngradeChangesInclusion'); export type CookieOperation = ('SetCookie' | 'ReadCookie'); @@ -3496,6 +3496,17 @@ export namespace Protocol { trackingSites: string[]; } + /** + * This issue warns about third-party sites that are accessing cookies on the + * current page, and have been permitted due to having a global metadata grant. + * Note that in this context 'site' means eTLD+1. For example, if the URL + * `https://example.test:80/web_page` was accessing cookies, the site reported + * would be `example.test`. + */ + export interface CookieDeprecationMetadataIssueDetails { + allowedSites: string[]; + } + export type ClientHintIssueReason = ('MetaTagAllowListInvalidOrigin' | 'MetaTagModifiedHTML'); export interface FederatedAuthRequestIssueDetails { @@ -3508,7 +3519,7 @@ export namespace Protocol { * third_party/blink/public/mojom/devtools/inspector_issue.mojom to include * all cases except for success. */ - export type FederatedAuthRequestIssueReason = ('ShouldEmbargo' | 'TooManyRequests' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'WellKnownInvalidContentType' | 'ConfigNotInWellKnown' | 'WellKnownTooBig' | 'ConfigHttpNotFound' | 'ConfigNoResponse' | 'ConfigInvalidResponse' | 'ConfigInvalidContentType' | 'ClientMetadataHttpNotFound' | 'ClientMetadataNoResponse' | 'ClientMetadataInvalidResponse' | 'ClientMetadataInvalidContentType' | 'DisabledInSettings' | 'ErrorFetchingSignin' | 'InvalidSigninResponse' | 'AccountsHttpNotFound' | 'AccountsNoResponse' | 'AccountsInvalidResponse' | 'AccountsListEmpty' | 'AccountsInvalidContentType' | 'IdTokenHttpNotFound' | 'IdTokenNoResponse' | 'IdTokenInvalidResponse' | 'IdTokenInvalidRequest' | 'IdTokenInvalidContentType' | 'ErrorIdToken' | 'Canceled' | 'RpPageNotVisible' | 'SilentMediationFailure' | 'ThirdPartyCookiesBlocked'); + export type FederatedAuthRequestIssueReason = ('ShouldEmbargo' | 'TooManyRequests' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'WellKnownInvalidContentType' | 'ConfigNotInWellKnown' | 'WellKnownTooBig' | 'ConfigHttpNotFound' | 'ConfigNoResponse' | 'ConfigInvalidResponse' | 'ConfigInvalidContentType' | 'ClientMetadataHttpNotFound' | 'ClientMetadataNoResponse' | 'ClientMetadataInvalidResponse' | 'ClientMetadataInvalidContentType' | 'DisabledInSettings' | 'ErrorFetchingSignin' | 'InvalidSigninResponse' | 'AccountsHttpNotFound' | 'AccountsNoResponse' | 'AccountsInvalidResponse' | 'AccountsListEmpty' | 'AccountsInvalidContentType' | 'IdTokenHttpNotFound' | 'IdTokenNoResponse' | 'IdTokenInvalidResponse' | 'IdTokenIdpErrorResponse' | 'IdTokenCrossSiteIdpErrorResponse' | 'IdTokenInvalidRequest' | 'IdTokenInvalidContentType' | 'ErrorIdToken' | 'Canceled' | 'RpPageNotVisible' | 'SilentMediationFailure' | 'ThirdPartyCookiesBlocked' | 'NotSignedInWithIdp'); export interface FederatedAuthUserInfoRequestIssueDetails { federatedAuthUserInfoRequestIssueReason: FederatedAuthUserInfoRequestIssueReason; @@ -3588,7 +3599,7 @@ export namespace Protocol { * optional fields in InspectorIssueDetails to convey more specific * information about the kind of issue. */ - export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue' | 'StylesheetLoadingIssue' | 'FederatedAuthUserInfoRequestIssue' | 'PropertyRuleIssue'); + export type InspectorIssueCode = ('CookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue' | 'FederatedAuthRequestIssue' | 'BounceTrackingIssue' | 'CookieDeprecationMetadataIssue' | 'StylesheetLoadingIssue' | 'FederatedAuthUserInfoRequestIssue' | 'PropertyRuleIssue'); /** * This struct holds a list of optional fields with additional information @@ -3612,6 +3623,7 @@ export namespace Protocol { clientHintIssueDetails?: ClientHintIssueDetails; federatedAuthRequestIssueDetails?: FederatedAuthRequestIssueDetails; bounceTrackingIssueDetails?: BounceTrackingIssueDetails; + cookieDeprecationMetadataIssueDetails?: CookieDeprecationMetadataIssueDetails; stylesheetLoadingIssueDetails?: StylesheetLoadingIssueDetails; propertyRuleIssueDetails?: PropertyRuleIssueDetails; federatedAuthUserInfoRequestIssueDetails?: FederatedAuthUserInfoRequestIssueDetails; @@ -3963,7 +3975,7 @@ export namespace Protocol { /** * Definition of PermissionDescriptor defined in the Permissions API: - * https://w3c.github.io/permissions/#dictdef-permissiondescriptor. + * https://w3c.github.io/permissions/#dom-permissiondescriptor. */ export interface PermissionDescriptor { /** @@ -4909,6 +4921,10 @@ export namespace Protocol { * Font's family name reported by platform. */ familyName: string; + /** + * Font's PostScript name reported by platform. + */ + postScriptName: string; /** * Indicates if the font was downloaded or resolved locally. */ @@ -5046,6 +5062,29 @@ export namespace Protocol { syntax: string; } + /** + * CSS font-palette-values rule representation. + */ + export interface CSSFontPaletteValuesRule { + /** + * The css style sheet identifier (absent for user agent stylesheet and user-specified + * stylesheet rules) this rule came from. + */ + styleSheetId?: StyleSheetId; + /** + * Parent stylesheet's origin. + */ + origin: StyleSheetOrigin; + /** + * Associated font palette name. + */ + fontPaletteName: Value; + /** + * Associated style declaration. + */ + style: CSSStyle; + } + /** * CSS property at-rule representation. */ @@ -5266,6 +5305,10 @@ export namespace Protocol { * A list of CSS property registrations matching this node. */ cssPropertyRegistrations?: CSSPropertyRegistration[]; + /** + * A font-palette-values rule matching this node. + */ + cssFontPaletteValuesRule?: CSSFontPaletteValuesRule; /** * Id of the first parent element that does not have display: contents. */ @@ -7097,10 +7140,9 @@ export namespace Protocol { } /** - * EventBreakpoints permits setting breakpoints on particular operations and - * events in targets that run JavaScript but do not have a DOM. - * JavaScript execution will stop on these operations as if there was a regular - * breakpoint set. + * EventBreakpoints permits setting JavaScript breakpoints on operations and events + * occurring in native code invoked from JavaScript. Once breakpoint is hit, it is + * reported through Debugger domain, similarly to regular breakpoints being hit. */ export namespace EventBreakpoints { @@ -7858,6 +7900,18 @@ export namespace Protocol { maskLength: integer; } + export const enum DevicePostureType { + Continuous = 'continuous', + Folded = 'folded', + } + + export interface DevicePosture { + /** + * Current posture of the device (DevicePostureType enum) + */ + type: ('continuous' | 'folded'); + } + export interface MediaFeature { name: string; value: string; @@ -7902,6 +7956,41 @@ export namespace Protocol { wow64?: boolean; } + /** + * Used to specify sensor types to emulate. + * See https://w3c.github.io/sensors/#automation for more information. + */ + export type SensorType = ('absolute-orientation' | 'accelerometer' | 'ambient-light' | 'gravity' | 'gyroscope' | 'linear-acceleration' | 'magnetometer' | 'proximity' | 'relative-orientation'); + + export interface SensorMetadata { + available?: boolean; + minimumFrequency?: number; + maximumFrequency?: number; + } + + export interface SensorReadingSingle { + value: number; + } + + export interface SensorReadingXYZ { + x: number; + y: number; + z: number; + } + + export interface SensorReadingQuaternion { + x: number; + y: number; + z: number; + w: number; + } + + export interface SensorReading { + single?: SensorReadingSingle; + xyz?: SensorReadingXYZ; + quaternion?: SensorReadingQuaternion; + } + /** * Enum of image types that can be disabled. */ @@ -8000,6 +8089,11 @@ export namespace Protocol { * is turned-off. */ displayFeature?: DisplayFeature; + /** + * If set, the posture of a foldable device. If not set the posture is set + * to continuous. + */ + devicePosture?: DevicePosture; } export interface SetScrollbarsHiddenRequest { @@ -8076,6 +8170,25 @@ export namespace Protocol { accuracy?: number; } + export interface GetOverriddenSensorInformationRequest { + type: SensorType; + } + + export interface GetOverriddenSensorInformationResponse { + requestedSamplingFrequency: number; + } + + export interface SetSensorOverrideEnabledRequest { + enabled: boolean; + type: SensorType; + metadata?: SensorMetadata; + } + + export interface SetSensorOverrideReadingsRequest { + type: SensorType; + reading: SensorReading; + } + export interface SetIdleOverrideRequest { /** * Mock isUserActive @@ -8191,7 +8304,7 @@ export namespace Protocol { */ userAgent: string; /** - * Browser langugage to emulate. + * Browser language to emulate. */ acceptLanguage?: string; /** @@ -8745,11 +8858,11 @@ export namespace Protocol { /** * The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0) */ - tiltX?: integer; + tiltX?: number; /** * The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). */ - tiltY?: integer; + tiltY?: number; /** * The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0). */ @@ -8997,11 +9110,11 @@ export namespace Protocol { /** * The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0). */ - tiltX?: integer; + tiltX?: number; /** * The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). */ - tiltY?: integer; + tiltY?: number; /** * The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0). */ @@ -10143,6 +10256,10 @@ export namespace Protocol { */ export type AlternateProtocolUsage = ('alternativeJobWonWithoutRace' | 'alternativeJobWonRace' | 'mainJobWonRace' | 'mappingMissing' | 'broken' | 'dnsAlpnH3JobWonWithoutRace' | 'dnsAlpnH3JobWonRace' | 'unspecifiedReason'); + export interface ServiceWorkerRouterInfo { + ruleIdMatched: integer; + } + /** * HTTP response data. */ @@ -10207,6 +10324,10 @@ export namespace Protocol { * Specifies that the request was served from the prefetch cache. */ fromPrefetchCache?: boolean; + /** + * Infomation about how Service Worker Static Router was used. + */ + serviceWorkerRouterInfo?: ServiceWorkerRouterInfo; /** * Total number of bytes received for this request so far. */ @@ -11261,7 +11382,7 @@ export namespace Protocol { */ userAgent: string; /** - * Browser langugage to emulate. + * Browser language to emulate. */ acceptLanguage?: string; /** @@ -12356,6 +12477,24 @@ export namespace Protocol { outlineColor?: DOM.RGBA; } + /** + * Configuration for Window Controls Overlay + */ + export interface WindowControlsOverlayConfig { + /** + * Whether the title bar CSS should be shown when emulating the Window Controls Overlay. + */ + showCSS: boolean; + /** + * Seleted platforms to show the overlay. + */ + selectedPlatform: string; + /** + * The theme color defined in app manifest. + */ + themeColor: string; + } + export interface ContainerQueryHighlightConfig { /** * A descriptor for the highlight appearance of container query containers. @@ -12684,6 +12823,13 @@ export namespace Protocol { isolatedElementHighlightConfigs: IsolatedElementHighlightConfig[]; } + export interface SetShowWindowControlsOverlayRequest { + /** + * Window Controls Overlay data, null means hide Window Controls Overlay + */ + windowControlsOverlayConfig?: WindowControlsOverlayConfig; + } + /** * Fired when the node should be inspected. This happens after call to `setInspectMode` or when * user manually inspects an element. @@ -12770,7 +12916,7 @@ export namespace Protocol { * All Permissions Policy features. This enum should match the one defined * in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5. */ - export type PermissionsPolicyFeature = ('accelerometer' | 'ambient-light-sensor' | 'attribution-reporting' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factor' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'cross-origin-isolated' | 'direct-sockets' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'local-fonts' | 'magnetometer' | 'microphone' | 'midi' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-aggregation' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-get' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-autofill' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'storage-access' | 'sync-xhr' | 'unload' | 'usb' | 'vertical-scroll' | 'web-share' | 'window-management' | 'window-placement' | 'xr-spatial-tracking'); + export type PermissionsPolicyFeature = ('accelerometer' | 'ambient-light-sensor' | 'attribution-reporting' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factor' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'cross-origin-isolated' | 'direct-sockets' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'local-fonts' | 'magnetometer' | 'microphone' | 'midi' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-aggregation' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-get' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-autofill' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'storage-access' | 'sync-xhr' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-printing' | 'web-share' | 'window-management' | 'window-placement' | 'xr-spatial-tracking'); /** * Reason for a permissions policy feature to be disabled. @@ -13281,6 +13427,25 @@ export namespace Protocol { */ export type BackForwardCacheNotRestoredReasonType = ('SupportPending' | 'PageSupportNeeded' | 'Circumstantial'); + export interface BackForwardCacheBlockingDetails { + /** + * Url of the file where blockage happened. Optional because of tests. + */ + url?: string; + /** + * Function name where blockage happened. Optional because of anonymous functions and tests. + */ + function?: string; + /** + * Line number in the script (0-based). + */ + lineNumber: integer; + /** + * Column number in the script (0-based). + */ + columnNumber: integer; + } + export interface BackForwardCacheNotRestoredExplanation { /** * Type of the reason @@ -13296,6 +13461,7 @@ export namespace Protocol { * - EmbedderExtensionSentMessageToCachedFrame: the extension ID. */ context?: string; + details?: BackForwardCacheBlockingDetails[]; } export interface BackForwardCacheNotRestoredExplanationTree { @@ -13490,13 +13656,6 @@ export namespace Protocol { adScriptId?: AdScriptId; } - export interface GetCookiesResponse { - /** - * Array of cookie objects. - */ - cookies: Network.Cookie[]; - } - export interface GetFrameTreeResponse { /** * Present frame tree structure. @@ -13715,6 +13874,10 @@ export namespace Protocol { * Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice. */ generateTaggedPDF?: boolean; + /** + * Whether or not to embed the document outline into the PDF. + */ + generateDocumentOutline?: boolean; } export interface PrintToPDFResponse { @@ -14908,6 +15071,7 @@ export namespace Protocol { scriptResponseTime?: number; controlledClients?: Target.TargetID[]; targetId?: Target.TargetID; + routerRules?: string; } /** @@ -15017,7 +15181,7 @@ export namespace Protocol { /** * Enum of interest group access types. */ - export type InterestGroupAccessType = ('join' | 'leave' | 'update' | 'loaded' | 'bid' | 'win' | 'additionalBid' | 'additionalBidWin'); + export type InterestGroupAccessType = ('join' | 'leave' | 'update' | 'loaded' | 'bid' | 'win' | 'additionalBid' | 'additionalBidWin' | 'clear'); /** * Ad advertising element inside an interest group. @@ -15194,22 +15358,28 @@ export namespace Protocol { ends: integer[]; } + export interface AttributionReportingTriggerSpec { + /** + * number instead of integer because not all uint32 can be represented by + * int + */ + triggerData: number[]; + eventReportWindows: AttributionReportingEventReportWindows; + } + + export type AttributionReportingTriggerDataMatching = ('exact' | 'modulus'); + export interface AttributionReportingSourceRegistration { time: Network.TimeSinceEpoch; /** * duration in seconds */ - expiry?: integer; - /** - * eventReportWindow and eventReportWindows are mutually exclusive - * duration in seconds - */ - eventReportWindow?: integer; - eventReportWindows?: AttributionReportingEventReportWindows; + expiry: integer; + triggerSpecs: AttributionReportingTriggerSpec[]; /** * duration in seconds */ - aggregatableReportWindow?: integer; + aggregatableReportWindow: integer; type: AttributionReportingSourceType; sourceOrigin: string; reportingOrigin: string; @@ -15219,6 +15389,7 @@ export namespace Protocol { filterData: AttributionReportingFilterDataEntry[]; aggregationKeys: AttributionReportingAggregationKeysEntry[]; debugKey?: UnsignedInt64AsBase10; + triggerDataMatching: AttributionReportingTriggerDataMatching; } export type AttributionReportingSourceRegistrationResult = ('success' | 'internalError' | 'insufficientSourceCapacity' | 'insufficientUniqueDestinationCapacity' | 'excessiveReportingOrigins' | 'prohibitedByBrowserPolicy' | 'successNoised' | 'destinationReportingLimitReached' | 'destinationGlobalLimitReached' | 'destinationBothLimitsReached' | 'reportingOriginsPerSiteLimitReached' | 'exceedsMaxChannelCapacity'); @@ -17116,6 +17287,18 @@ export namespace Protocol { * Defaults to false. */ isUserVerified?: boolean; + /** + * Credentials created by this authenticator will have the backup + * eligibility (BE) flag set to this value. Defaults to false. + * https://w3c.github.io/webauthn/#sctn-credential-backup + */ + defaultBackupEligibility?: boolean; + /** + * Credentials created by this authenticator will have the backup state + * (BS) flag set to this value. Defaults to false. + * https://w3c.github.io/webauthn/#sctn-credential-backup + */ + defaultBackupState?: boolean; } export interface Credential { @@ -17521,7 +17704,7 @@ export namespace Protocol { /** * List of FinalStatus reasons for Prerender2. */ - export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'MemoryLimitExceeded' | 'DataSaverEnabled' | 'TriggerUrlHasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered' | 'PrerenderingDisabledByDevTools' | 'ResourceLoadBlockedByClient' | 'SpeculationRuleRemoved' | 'ActivatedWithAuxiliaryBrowsingContexts' | 'MaxNumOfRunningEagerPrerendersExceeded' | 'MaxNumOfRunningNonEagerPrerendersExceeded' | 'MaxNumOfRunningEmbedderPrerendersExceeded' | 'PrerenderingUrlHasEffectiveUrl' | 'RedirectedPrerenderingUrlHasEffectiveUrl' | 'ActivationUrlHasEffectiveUrl'); + export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'MemoryLimitExceeded' | 'DataSaverEnabled' | 'TriggerUrlHasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered' | 'PrerenderingDisabledByDevTools' | 'SpeculationRuleRemoved' | 'ActivatedWithAuxiliaryBrowsingContexts' | 'MaxNumOfRunningEagerPrerendersExceeded' | 'MaxNumOfRunningNonEagerPrerendersExceeded' | 'MaxNumOfRunningEmbedderPrerendersExceeded' | 'PrerenderingUrlHasEffectiveUrl' | 'RedirectedPrerenderingUrlHasEffectiveUrl' | 'ActivationUrlHasEffectiveUrl'); /** * Preloading status values, see also PreloadingTriggeringOutcome. This @@ -17535,6 +17718,15 @@ export namespace Protocol { */ export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | 'PrefetchFailedPerPageLimitExceeded' | 'PrefetchEvicted' | 'PrefetchHeldback' | 'PrefetchIneligibleRetryAfter' | 'PrefetchIsPrivacyDecoy' | 'PrefetchIsStale' | 'PrefetchNotEligibleBrowserContextOffTheRecord' | 'PrefetchNotEligibleDataSaverEnabled' | 'PrefetchNotEligibleExistingProxy' | 'PrefetchNotEligibleHostIsNonUnique' | 'PrefetchNotEligibleNonDefaultStoragePartition' | 'PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy' | 'PrefetchNotEligibleSchemeIsNotHttps' | 'PrefetchNotEligibleUserHasCookies' | 'PrefetchNotEligibleUserHasServiceWorker' | 'PrefetchNotEligibleBatterySaverEnabled' | 'PrefetchNotEligiblePreloadingDisabled' | 'PrefetchNotFinishedInTime' | 'PrefetchNotStarted' | 'PrefetchNotUsedCookiesChanged' | 'PrefetchProxyNotAvailable' | 'PrefetchResponseUsed' | 'PrefetchSuccessfulButNotUsed' | 'PrefetchNotUsedProbeFailed'); + /** + * Information of headers to be displayed when the header mismatch occurred. + */ + export interface PrerenderMismatchedHeaders { + headerName: string; + initialValue?: string; + activationValue?: string; + } + /** * Upsert. Currently, it is only emitted when a rule set added. */ @@ -17584,6 +17776,7 @@ export namespace Protocol { * that is incompatible with prerender and has caused the cancellation of the attempt. */ disallowedMojoInterface?: string; + mismatchedHeaders?: PrerenderMismatchedHeaders[]; } /** @@ -17607,9 +17800,14 @@ export namespace Protocol { export type LoginState = ('SignIn' | 'SignUp'); /** - * Whether the dialog shown is an account chooser or an auto re-authentication dialog. + * The types of FedCM dialogs. */ - export type DialogType = ('AccountChooser' | 'AutoReauthn' | 'ConfirmIdpSignin'); + export type DialogType = ('AccountChooser' | 'AutoReauthn' | 'ConfirmIdpLogin' | 'Error'); + + /** + * The buttons on the FedCM dialog. + */ + export type DialogButton = ('ConfirmIdpLoginContinue' | 'ErrorGotIt' | 'ErrorMoreDetails'); /** * Corresponds to IdentityRequestAccount @@ -17621,7 +17819,7 @@ export namespace Protocol { givenName: string; pictureUrl: string; idpConfigUrl: string; - idpSigninUrl: string; + idpLoginUrl: string; loginState: LoginState; /** * These two are only set if the loginState is signUp @@ -17644,8 +17842,9 @@ export namespace Protocol { accountIndex: integer; } - export interface ConfirmIdpSigninRequest { + export interface ClickDialogButtonRequest { dialogId: string; + dialogButton: DialogButton; } export interface DismissDialogRequest { @@ -17664,6 +17863,14 @@ export namespace Protocol { title: string; subtitle?: string; } + + /** + * Triggered when a dialog is closed, either by user action, JS abort, + * or a command below. + */ + export interface DialogClosedEvent { + dialogId: string; + } } } diff --git a/Scripts/node_modules/env-paths/index.d.ts b/Scripts/node_modules/env-paths/index.d.ts new file mode 100644 index 00000000..277ddc0a --- /dev/null +++ b/Scripts/node_modules/env-paths/index.d.ts @@ -0,0 +1,101 @@ +declare namespace envPaths { + export interface Options { + /** + __Don't use this option unless you really have to!__ + + Suffix appended to the project name to avoid name conflicts with native apps. Pass an empty string to disable it. + + @default 'nodejs' + */ + readonly suffix?: string; + } + + export interface Paths { + /** + Directory for data files. + + Example locations (with the default `nodejs` suffix): + + - macOS: `~/Library/Application Support/MyApp-nodejs` + - Windows: `%LOCALAPPDATA%\MyApp-nodejs\Data` (for example, `C:\Users\USERNAME\AppData\Local\MyApp-nodejs\Data`) + - Linux: `~/.local/share/MyApp-nodejs` (or `$XDG_DATA_HOME/MyApp-nodejs`) + */ + readonly data: string; + + /** + Directory for data files. + + Example locations (with the default `nodejs` suffix): + + - macOS: `~/Library/Preferences/MyApp-nodejs` + - Windows: `%APPDATA%\MyApp-nodejs\Config` (for example, `C:\Users\USERNAME\AppData\Roaming\MyApp-nodejs\Config`) + - Linux: `~/.config/MyApp-nodejs` (or `$XDG_CONFIG_HOME/MyApp-nodejs`) + */ + readonly config: string; + + /** + Directory for non-essential data files. + + Example locations (with the default `nodejs` suffix): + + - macOS: `~/Library/Caches/MyApp-nodejs` + - Windows: `%LOCALAPPDATA%\MyApp-nodejs\Cache` (for example, `C:\Users\USERNAME\AppData\Local\MyApp-nodejs\Cache`) + - Linux: `~/.cache/MyApp-nodejs` (or `$XDG_CACHE_HOME/MyApp-nodejs`) + */ + readonly cache: string; + + /** + Directory for log files. + + Example locations (with the default `nodejs` suffix): + + - macOS: `~/Library/Logs/MyApp-nodejs` + - Windows: `%LOCALAPPDATA%\MyApp-nodejs\Log` (for example, `C:\Users\USERNAME\AppData\Local\MyApp-nodejs\Log`) + - Linux: `~/.local/state/MyApp-nodejs` (or `$XDG_STATE_HOME/MyApp-nodejs`) + */ + readonly log: string; + + /** + Directory for temporary files. + + Example locations (with the default `nodejs` suffix): + + - macOS: `/var/folders/jf/f2twvvvs5jl_m49tf034ffpw0000gn/T/MyApp-nodejs` + - Windows: `%LOCALAPPDATA%\Temp\MyApp-nodejs` (for example, `C:\Users\USERNAME\AppData\Local\Temp\MyApp-nodejs`) + - Linux: `/tmp/USERNAME/MyApp-nodejs` + */ + readonly temp: string; + } +} + +declare const envPaths: { + /** + Get paths for storing things like data, config, cache, etc. + + Note: It only generates the path strings. It doesn't create the directories for you. You could use [`make-dir`](https://github.com/sindresorhus/make-dir) to create the directories. + + @param name - Name of your project. Used to generate the paths. + @returns The paths to use for your project on current OS. + + @example + ``` + import envPaths = require('env-paths'); + + const paths = envPaths('MyApp'); + + paths.data; + //=> '/home/sindresorhus/.local/share/MyApp-nodejs' + + paths.config + //=> '/home/sindresorhus/.config/MyApp-nodejs' + ``` + */ + (name: string, options?: envPaths.Options): envPaths.Paths; + + // TODO: Remove this for the next major release, refactor the whole definition to: + // declare function envPaths(name: string, options?: envPaths.Options): envPaths.Paths; + // export = envPaths; + default: typeof envPaths; +}; + +export = envPaths; diff --git a/Scripts/node_modules/env-paths/index.js b/Scripts/node_modules/env-paths/index.js new file mode 100644 index 00000000..7e7b50ba --- /dev/null +++ b/Scripts/node_modules/env-paths/index.js @@ -0,0 +1,74 @@ +'use strict'; +const path = require('path'); +const os = require('os'); + +const homedir = os.homedir(); +const tmpdir = os.tmpdir(); +const {env} = process; + +const macos = name => { + const library = path.join(homedir, 'Library'); + + return { + data: path.join(library, 'Application Support', name), + config: path.join(library, 'Preferences', name), + cache: path.join(library, 'Caches', name), + log: path.join(library, 'Logs', name), + temp: path.join(tmpdir, name) + }; +}; + +const windows = name => { + const appData = env.APPDATA || path.join(homedir, 'AppData', 'Roaming'); + const localAppData = env.LOCALAPPDATA || path.join(homedir, 'AppData', 'Local'); + + return { + // Data/config/cache/log are invented by me as Windows isn't opinionated about this + data: path.join(localAppData, name, 'Data'), + config: path.join(appData, name, 'Config'), + cache: path.join(localAppData, name, 'Cache'), + log: path.join(localAppData, name, 'Log'), + temp: path.join(tmpdir, name) + }; +}; + +// https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html +const linux = name => { + const username = path.basename(homedir); + + return { + data: path.join(env.XDG_DATA_HOME || path.join(homedir, '.local', 'share'), name), + config: path.join(env.XDG_CONFIG_HOME || path.join(homedir, '.config'), name), + cache: path.join(env.XDG_CACHE_HOME || path.join(homedir, '.cache'), name), + // https://wiki.debian.org/XDGBaseDirectorySpecification#state + log: path.join(env.XDG_STATE_HOME || path.join(homedir, '.local', 'state'), name), + temp: path.join(tmpdir, username, name) + }; +}; + +const envPaths = (name, options) => { + if (typeof name !== 'string') { + throw new TypeError(`Expected string, got ${typeof name}`); + } + + options = Object.assign({suffix: 'nodejs'}, options); + + if (options.suffix) { + // Add suffix to prevent possible conflict with native apps + name += `-${options.suffix}`; + } + + if (process.platform === 'darwin') { + return macos(name); + } + + if (process.platform === 'win32') { + return windows(name); + } + + return linux(name); +}; + +module.exports = envPaths; +// TODO: Remove this for the next major release +module.exports.default = envPaths; diff --git a/Scripts/node_modules/path-type/license b/Scripts/node_modules/env-paths/license similarity index 100% rename from Scripts/node_modules/path-type/license rename to Scripts/node_modules/env-paths/license diff --git a/Scripts/node_modules/env-paths/package.json b/Scripts/node_modules/env-paths/package.json new file mode 100644 index 00000000..fae4ebcf --- /dev/null +++ b/Scripts/node_modules/env-paths/package.json @@ -0,0 +1,45 @@ +{ + "name": "env-paths", + "version": "2.2.1", + "description": "Get paths for storing things like data, config, cache, etc", + "license": "MIT", + "repository": "sindresorhus/env-paths", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "common", + "user", + "paths", + "env", + "environment", + "directory", + "dir", + "appdir", + "path", + "data", + "config", + "cache", + "logs", + "temp", + "linux", + "unix" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } +} diff --git a/Scripts/node_modules/env-paths/readme.md b/Scripts/node_modules/env-paths/readme.md new file mode 100644 index 00000000..b66d571a --- /dev/null +++ b/Scripts/node_modules/env-paths/readme.md @@ -0,0 +1,115 @@ +# env-paths + +> Get paths for storing things like data, config, cache, etc + +Uses the correct OS-specific paths. Most developers get this wrong. + + +## Install + +``` +$ npm install env-paths +``` + + +## Usage + +```js +const envPaths = require('env-paths'); + +const paths = envPaths('MyApp'); + +paths.data; +//=> '/home/sindresorhus/.local/share/MyApp-nodejs' + +paths.config +//=> '/home/sindresorhus/.config/MyApp-nodejs' +``` + + +## API + +### paths = envPaths(name, options?) + +Note: It only generates the path strings. It doesn't create the directories for you. You could use [`make-dir`](https://github.com/sindresorhus/make-dir) to create the directories. + +#### name + +Type: `string` + +Name of your project. Used to generate the paths. + +#### options + +Type: `object` + +##### suffix + +Type: `string`
+Default: `'nodejs'` + +**Don't use this option unless you really have to!**
+Suffix appended to the project name to avoid name conflicts with native +apps. Pass an empty string to disable it. + +### paths.data + +Directory for data files. + +Example locations (with the default `nodejs` [suffix](#suffix)): + +- macOS: `~/Library/Application Support/MyApp-nodejs` +- Windows: `%LOCALAPPDATA%\MyApp-nodejs\Data` (for example, `C:\Users\USERNAME\AppData\Local\MyApp-nodejs\Data`) +- Linux: `~/.local/share/MyApp-nodejs` (or `$XDG_DATA_HOME/MyApp-nodejs`) + +### paths.config + +Directory for config files. + +Example locations (with the default `nodejs` [suffix](#suffix)): + +- macOS: `~/Library/Preferences/MyApp-nodejs` +- Windows: `%APPDATA%\MyApp-nodejs\Config` (for example, `C:\Users\USERNAME\AppData\Roaming\MyApp-nodejs\Config`) +- Linux: `~/.config/MyApp-nodejs` (or `$XDG_CONFIG_HOME/MyApp-nodejs`) + +### paths.cache + +Directory for non-essential data files. + +Example locations (with the default `nodejs` [suffix](#suffix)): + +- macOS: `~/Library/Caches/MyApp-nodejs` +- Windows: `%LOCALAPPDATA%\MyApp-nodejs\Cache` (for example, `C:\Users\USERNAME\AppData\Local\MyApp-nodejs\Cache`) +- Linux: `~/.cache/MyApp-nodejs` (or `$XDG_CACHE_HOME/MyApp-nodejs`) + +### paths.log + +Directory for log files. + +Example locations (with the default `nodejs` [suffix](#suffix)): + +- macOS: `~/Library/Logs/MyApp-nodejs` +- Windows: `%LOCALAPPDATA%\MyApp-nodejs\Log` (for example, `C:\Users\USERNAME\AppData\Local\MyApp-nodejs\Log`) +- Linux: `~/.local/state/MyApp-nodejs` (or `$XDG_STATE_HOME/MyApp-nodejs`) + +### paths.temp + +Directory for temporary files. + +Example locations (with the default `nodejs` [suffix](#suffix)): + +- macOS: `/var/folders/jf/f2twvvvs5jl_m49tf034ffpw0000gn/T/MyApp-nodejs` +- Windows: `%LOCALAPPDATA%\Temp\MyApp-nodejs` (for example, `C:\Users\USERNAME\AppData\Local\Temp\MyApp-nodejs`) +- Linux: `/tmp/USERNAME/MyApp-nodejs` + +--- + +
+ + Get professional support for this package with a Tidelift subscription + +
+ + Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. +
+
diff --git a/Scripts/node_modules/escalade/package.json b/Scripts/node_modules/escalade/package.json index 0d1bfce9..e0f52710 100644 --- a/Scripts/node_modules/escalade/package.json +++ b/Scripts/node_modules/escalade/package.json @@ -1,6 +1,6 @@ { "name": "escalade", - "version": "3.1.1", + "version": "3.1.2", "repository": "lukeed/escalade", "description": "A tiny (183B to 210B) and fast utility to ascend parent directories", "module": "dist/index.mjs", @@ -15,6 +15,7 @@ "exports": { ".": [ { + "types": "./index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" }, @@ -22,6 +23,7 @@ ], "./sync": [ { + "types": "./sync/index.d.ts", "import": "./sync/index.mjs", "require": "./sync/index.js" }, diff --git a/Scripts/node_modules/escalade/readme.md b/Scripts/node_modules/escalade/readme.md index 4e2195c1..e07ee0d3 100644 --- a/Scripts/node_modules/escalade/readme.md +++ b/Scripts/node_modules/escalade/readme.md @@ -1,4 +1,4 @@ -# escalade [![CI](https://github.com/lukeed/escalade/workflows/CI/badge.svg)](https://github.com/lukeed/escalade/actions) [![codecov](https://badgen.now.sh/codecov/c/github/lukeed/escalade)](https://codecov.io/gh/lukeed/escalade) +# escalade [![CI](https://github.com/lukeed/escalade/workflows/CI/badge.svg)](https://github.com/lukeed/escalade/actions) [![licenses](https://licenses.dev/b/npm/escalade)](https://licenses.dev/npm/escalade) [![codecov](https://badgen.now.sh/codecov/c/github/lukeed/escalade)](https://codecov.io/gh/lukeed/escalade) > A tiny (183B to 210B) and [fast](#benchmarks) utility to ascend parent directories diff --git a/Scripts/node_modules/follow-redirects/LICENSE b/Scripts/node_modules/follow-redirects/LICENSE new file mode 100644 index 00000000..742cbada --- /dev/null +++ b/Scripts/node_modules/follow-redirects/LICENSE @@ -0,0 +1,18 @@ +Copyright 2014–present Olivier Lalonde , James Talmage , Ruben Verborgh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Scripts/node_modules/follow-redirects/README.md b/Scripts/node_modules/follow-redirects/README.md new file mode 100644 index 00000000..eb869a6f --- /dev/null +++ b/Scripts/node_modules/follow-redirects/README.md @@ -0,0 +1,155 @@ +## Follow Redirects + +Drop-in replacement for Node's `http` and `https` modules that automatically follows redirects. + +[![npm version](https://img.shields.io/npm/v/follow-redirects.svg)](https://www.npmjs.com/package/follow-redirects) +[![Build Status](https://github.com/follow-redirects/follow-redirects/workflows/CI/badge.svg)](https://github.com/follow-redirects/follow-redirects/actions) +[![Coverage Status](https://coveralls.io/repos/follow-redirects/follow-redirects/badge.svg?branch=master)](https://coveralls.io/r/follow-redirects/follow-redirects?branch=master) +[![npm downloads](https://img.shields.io/npm/dm/follow-redirects.svg)](https://www.npmjs.com/package/follow-redirects) +[![Sponsor on GitHub](https://img.shields.io/static/v1?label=Sponsor&message=%F0%9F%92%96&logo=GitHub)](https://github.com/sponsors/RubenVerborgh) + +`follow-redirects` provides [request](https://nodejs.org/api/http.html#http_http_request_options_callback) and [get](https://nodejs.org/api/http.html#http_http_get_options_callback) + methods that behave identically to those found on the native [http](https://nodejs.org/api/http.html#http_http_request_options_callback) and [https](https://nodejs.org/api/https.html#https_https_request_options_callback) + modules, with the exception that they will seamlessly follow redirects. + +```javascript +const { http, https } = require('follow-redirects'); + +http.get('http://bit.ly/900913', response => { + response.on('data', chunk => { + console.log(chunk); + }); +}).on('error', err => { + console.error(err); +}); +``` + +You can inspect the final redirected URL through the `responseUrl` property on the `response`. +If no redirection happened, `responseUrl` is the original request URL. + +```javascript +const request = https.request({ + host: 'bitly.com', + path: '/UHfDGO', +}, response => { + console.log(response.responseUrl); + // 'http://duckduckgo.com/robots.txt' +}); +request.end(); +``` + +## Options +### Global options +Global options are set directly on the `follow-redirects` module: + +```javascript +const followRedirects = require('follow-redirects'); +followRedirects.maxRedirects = 10; +followRedirects.maxBodyLength = 20 * 1024 * 1024; // 20 MB +``` + +The following global options are supported: + +- `maxRedirects` (default: `21`) – sets the maximum number of allowed redirects; if exceeded, an error will be emitted. + +- `maxBodyLength` (default: 10MB) – sets the maximum size of the request body; if exceeded, an error will be emitted. + +### Per-request options +Per-request options are set by passing an `options` object: + +```javascript +const url = require('url'); +const { http, https } = require('follow-redirects'); + +const options = url.parse('http://bit.ly/900913'); +options.maxRedirects = 10; +options.beforeRedirect = (options, response, request) => { + // Use this to adjust the request options upon redirecting, + // to inspect the latest response headers, + // or to cancel the request by throwing an error + + // response.headers = the redirect response headers + // response.statusCode = the redirect response code (eg. 301, 307, etc.) + + // request.url = the requested URL that resulted in a redirect + // request.headers = the headers in the request that resulted in a redirect + // request.method = the method of the request that resulted in a redirect + if (options.hostname === "example.com") { + options.auth = "user:password"; + } +}; +http.request(options); +``` + +In addition to the [standard HTTP](https://nodejs.org/api/http.html#http_http_request_options_callback) and [HTTPS options](https://nodejs.org/api/https.html#https_https_request_options_callback), +the following per-request options are supported: +- `followRedirects` (default: `true`) – whether redirects should be followed. + +- `maxRedirects` (default: `21`) – sets the maximum number of allowed redirects; if exceeded, an error will be emitted. + +- `maxBodyLength` (default: 10MB) – sets the maximum size of the request body; if exceeded, an error will be emitted. + +- `beforeRedirect` (default: `undefined`) – optionally change the request `options` on redirects, or abort the request by throwing an error. + +- `agents` (default: `undefined`) – sets the `agent` option per protocol, since HTTP and HTTPS use different agents. Example value: `{ http: new http.Agent(), https: new https.Agent() }` + +- `trackRedirects` (default: `false`) – whether to store the redirected response details into the `redirects` array on the response object. + + +### Advanced usage +By default, `follow-redirects` will use the Node.js default implementations +of [`http`](https://nodejs.org/api/http.html) +and [`https`](https://nodejs.org/api/https.html). +To enable features such as caching and/or intermediate request tracking, +you might instead want to wrap `follow-redirects` around custom protocol implementations: + +```javascript +const { http, https } = require('follow-redirects').wrap({ + http: require('your-custom-http'), + https: require('your-custom-https'), +}); +``` + +Such custom protocols only need an implementation of the `request` method. + +## Browser Usage + +Due to the way the browser works, +the `http` and `https` browser equivalents perform redirects by default. + +By requiring `follow-redirects` this way: +```javascript +const http = require('follow-redirects/http'); +const https = require('follow-redirects/https'); +``` +you can easily tell webpack and friends to replace +`follow-redirect` by the built-in versions: + +```json +{ + "follow-redirects/http" : "http", + "follow-redirects/https" : "https" +} +``` + +## Contributing + +Pull Requests are always welcome. Please [file an issue](https://github.com/follow-redirects/follow-redirects/issues) + detailing your proposal before you invest your valuable time. Additional features and bug fixes should be accompanied + by tests. You can run the test suite locally with a simple `npm test` command. + +## Debug Logging + +`follow-redirects` uses the excellent [debug](https://www.npmjs.com/package/debug) for logging. To turn on logging + set the environment variable `DEBUG=follow-redirects` for debug output from just this module. When running the test + suite it is sometimes advantageous to set `DEBUG=*` to see output from the express server as well. + +## Authors + +- [Ruben Verborgh](https://ruben.verborgh.org/) +- [Olivier Lalonde](mailto:olalonde@gmail.com) +- [James Talmage](mailto:james@talmage.io) + +## License + +[MIT License](https://github.com/follow-redirects/follow-redirects/blob/master/LICENSE) diff --git a/Scripts/node_modules/follow-redirects/debug.js b/Scripts/node_modules/follow-redirects/debug.js new file mode 100644 index 00000000..decb77de --- /dev/null +++ b/Scripts/node_modules/follow-redirects/debug.js @@ -0,0 +1,15 @@ +var debug; + +module.exports = function () { + if (!debug) { + try { + /* eslint global-require: off */ + debug = require("debug")("follow-redirects"); + } + catch (error) { /* */ } + if (typeof debug !== "function") { + debug = function () { /* */ }; + } + } + debug.apply(null, arguments); +}; diff --git a/Scripts/node_modules/follow-redirects/http.js b/Scripts/node_modules/follow-redirects/http.js new file mode 100644 index 00000000..695e3561 --- /dev/null +++ b/Scripts/node_modules/follow-redirects/http.js @@ -0,0 +1 @@ +module.exports = require("./").http; diff --git a/Scripts/node_modules/follow-redirects/https.js b/Scripts/node_modules/follow-redirects/https.js new file mode 100644 index 00000000..d21c921d --- /dev/null +++ b/Scripts/node_modules/follow-redirects/https.js @@ -0,0 +1 @@ +module.exports = require("./").https; diff --git a/Scripts/node_modules/follow-redirects/index.js b/Scripts/node_modules/follow-redirects/index.js new file mode 100644 index 00000000..f58b9334 --- /dev/null +++ b/Scripts/node_modules/follow-redirects/index.js @@ -0,0 +1,672 @@ +var url = require("url"); +var URL = url.URL; +var http = require("http"); +var https = require("https"); +var Writable = require("stream").Writable; +var assert = require("assert"); +var debug = require("./debug"); + +// Whether to use the native URL object or the legacy url module +var useNativeURL = false; +try { + assert(new URL()); +} +catch (error) { + useNativeURL = error.code === "ERR_INVALID_URL"; +} + +// URL fields to preserve in copy operations +var preservedUrlFields = [ + "auth", + "host", + "hostname", + "href", + "path", + "pathname", + "port", + "protocol", + "query", + "search", + "hash", +]; + +// Create handlers that pass events from native requests +var events = ["abort", "aborted", "connect", "error", "socket", "timeout"]; +var eventHandlers = Object.create(null); +events.forEach(function (event) { + eventHandlers[event] = function (arg1, arg2, arg3) { + this._redirectable.emit(event, arg1, arg2, arg3); + }; +}); + +// Error types with codes +var InvalidUrlError = createErrorType( + "ERR_INVALID_URL", + "Invalid URL", + TypeError +); +var RedirectionError = createErrorType( + "ERR_FR_REDIRECTION_FAILURE", + "Redirected request failed" +); +var TooManyRedirectsError = createErrorType( + "ERR_FR_TOO_MANY_REDIRECTS", + "Maximum number of redirects exceeded", + RedirectionError +); +var MaxBodyLengthExceededError = createErrorType( + "ERR_FR_MAX_BODY_LENGTH_EXCEEDED", + "Request body larger than maxBodyLength limit" +); +var WriteAfterEndError = createErrorType( + "ERR_STREAM_WRITE_AFTER_END", + "write after end" +); + +// istanbul ignore next +var destroy = Writable.prototype.destroy || noop; + +// An HTTP(S) request that can be redirected +function RedirectableRequest(options, responseCallback) { + // Initialize the request + Writable.call(this); + this._sanitizeOptions(options); + this._options = options; + this._ended = false; + this._ending = false; + this._redirectCount = 0; + this._redirects = []; + this._requestBodyLength = 0; + this._requestBodyBuffers = []; + + // Attach a callback if passed + if (responseCallback) { + this.on("response", responseCallback); + } + + // React to responses of native requests + var self = this; + this._onNativeResponse = function (response) { + try { + self._processResponse(response); + } + catch (cause) { + self.emit("error", cause instanceof RedirectionError ? + cause : new RedirectionError({ cause: cause })); + } + }; + + // Perform the first request + this._performRequest(); +} +RedirectableRequest.prototype = Object.create(Writable.prototype); + +RedirectableRequest.prototype.abort = function () { + destroyRequest(this._currentRequest); + this._currentRequest.abort(); + this.emit("abort"); +}; + +RedirectableRequest.prototype.destroy = function (error) { + destroyRequest(this._currentRequest, error); + destroy.call(this, error); + return this; +}; + +// Writes buffered data to the current native request +RedirectableRequest.prototype.write = function (data, encoding, callback) { + // Writing is not allowed if end has been called + if (this._ending) { + throw new WriteAfterEndError(); + } + + // Validate input and shift parameters if necessary + if (!isString(data) && !isBuffer(data)) { + throw new TypeError("data should be a string, Buffer or Uint8Array"); + } + if (isFunction(encoding)) { + callback = encoding; + encoding = null; + } + + // Ignore empty buffers, since writing them doesn't invoke the callback + // https://github.com/nodejs/node/issues/22066 + if (data.length === 0) { + if (callback) { + callback(); + } + return; + } + // Only write when we don't exceed the maximum body length + if (this._requestBodyLength + data.length <= this._options.maxBodyLength) { + this._requestBodyLength += data.length; + this._requestBodyBuffers.push({ data: data, encoding: encoding }); + this._currentRequest.write(data, encoding, callback); + } + // Error when we exceed the maximum body length + else { + this.emit("error", new MaxBodyLengthExceededError()); + this.abort(); + } +}; + +// Ends the current native request +RedirectableRequest.prototype.end = function (data, encoding, callback) { + // Shift parameters if necessary + if (isFunction(data)) { + callback = data; + data = encoding = null; + } + else if (isFunction(encoding)) { + callback = encoding; + encoding = null; + } + + // Write data if needed and end + if (!data) { + this._ended = this._ending = true; + this._currentRequest.end(null, null, callback); + } + else { + var self = this; + var currentRequest = this._currentRequest; + this.write(data, encoding, function () { + self._ended = true; + currentRequest.end(null, null, callback); + }); + this._ending = true; + } +}; + +// Sets a header value on the current native request +RedirectableRequest.prototype.setHeader = function (name, value) { + this._options.headers[name] = value; + this._currentRequest.setHeader(name, value); +}; + +// Clears a header value on the current native request +RedirectableRequest.prototype.removeHeader = function (name) { + delete this._options.headers[name]; + this._currentRequest.removeHeader(name); +}; + +// Global timeout for all underlying requests +RedirectableRequest.prototype.setTimeout = function (msecs, callback) { + var self = this; + + // Destroys the socket on timeout + function destroyOnTimeout(socket) { + socket.setTimeout(msecs); + socket.removeListener("timeout", socket.destroy); + socket.addListener("timeout", socket.destroy); + } + + // Sets up a timer to trigger a timeout event + function startTimer(socket) { + if (self._timeout) { + clearTimeout(self._timeout); + } + self._timeout = setTimeout(function () { + self.emit("timeout"); + clearTimer(); + }, msecs); + destroyOnTimeout(socket); + } + + // Stops a timeout from triggering + function clearTimer() { + // Clear the timeout + if (self._timeout) { + clearTimeout(self._timeout); + self._timeout = null; + } + + // Clean up all attached listeners + self.removeListener("abort", clearTimer); + self.removeListener("error", clearTimer); + self.removeListener("response", clearTimer); + self.removeListener("close", clearTimer); + if (callback) { + self.removeListener("timeout", callback); + } + if (!self.socket) { + self._currentRequest.removeListener("socket", startTimer); + } + } + + // Attach callback if passed + if (callback) { + this.on("timeout", callback); + } + + // Start the timer if or when the socket is opened + if (this.socket) { + startTimer(this.socket); + } + else { + this._currentRequest.once("socket", startTimer); + } + + // Clean up on events + this.on("socket", destroyOnTimeout); + this.on("abort", clearTimer); + this.on("error", clearTimer); + this.on("response", clearTimer); + this.on("close", clearTimer); + + return this; +}; + +// Proxy all other public ClientRequest methods +[ + "flushHeaders", "getHeader", + "setNoDelay", "setSocketKeepAlive", +].forEach(function (method) { + RedirectableRequest.prototype[method] = function (a, b) { + return this._currentRequest[method](a, b); + }; +}); + +// Proxy all public ClientRequest properties +["aborted", "connection", "socket"].forEach(function (property) { + Object.defineProperty(RedirectableRequest.prototype, property, { + get: function () { return this._currentRequest[property]; }, + }); +}); + +RedirectableRequest.prototype._sanitizeOptions = function (options) { + // Ensure headers are always present + if (!options.headers) { + options.headers = {}; + } + + // Since http.request treats host as an alias of hostname, + // but the url module interprets host as hostname plus port, + // eliminate the host property to avoid confusion. + if (options.host) { + // Use hostname if set, because it has precedence + if (!options.hostname) { + options.hostname = options.host; + } + delete options.host; + } + + // Complete the URL object when necessary + if (!options.pathname && options.path) { + var searchPos = options.path.indexOf("?"); + if (searchPos < 0) { + options.pathname = options.path; + } + else { + options.pathname = options.path.substring(0, searchPos); + options.search = options.path.substring(searchPos); + } + } +}; + + +// Executes the next native request (initial or redirect) +RedirectableRequest.prototype._performRequest = function () { + // Load the native protocol + var protocol = this._options.protocol; + var nativeProtocol = this._options.nativeProtocols[protocol]; + if (!nativeProtocol) { + throw new TypeError("Unsupported protocol " + protocol); + } + + // If specified, use the agent corresponding to the protocol + // (HTTP and HTTPS use different types of agents) + if (this._options.agents) { + var scheme = protocol.slice(0, -1); + this._options.agent = this._options.agents[scheme]; + } + + // Create the native request and set up its event handlers + var request = this._currentRequest = + nativeProtocol.request(this._options, this._onNativeResponse); + request._redirectable = this; + for (var event of events) { + request.on(event, eventHandlers[event]); + } + + // RFC7230§5.3.1: When making a request directly to an origin server, […] + // a client MUST send only the absolute path […] as the request-target. + this._currentUrl = /^\//.test(this._options.path) ? + url.format(this._options) : + // When making a request to a proxy, […] + // a client MUST send the target URI in absolute-form […]. + this._options.path; + + // End a redirected request + // (The first request must be ended explicitly with RedirectableRequest#end) + if (this._isRedirect) { + // Write the request entity and end + var i = 0; + var self = this; + var buffers = this._requestBodyBuffers; + (function writeNext(error) { + // Only write if this request has not been redirected yet + /* istanbul ignore else */ + if (request === self._currentRequest) { + // Report any write errors + /* istanbul ignore if */ + if (error) { + self.emit("error", error); + } + // Write the next buffer if there are still left + else if (i < buffers.length) { + var buffer = buffers[i++]; + /* istanbul ignore else */ + if (!request.finished) { + request.write(buffer.data, buffer.encoding, writeNext); + } + } + // End the request if `end` has been called on us + else if (self._ended) { + request.end(); + } + } + }()); + } +}; + +// Processes a response from the current native request +RedirectableRequest.prototype._processResponse = function (response) { + // Store the redirected response + var statusCode = response.statusCode; + if (this._options.trackRedirects) { + this._redirects.push({ + url: this._currentUrl, + headers: response.headers, + statusCode: statusCode, + }); + } + + // RFC7231§6.4: The 3xx (Redirection) class of status code indicates + // that further action needs to be taken by the user agent in order to + // fulfill the request. If a Location header field is provided, + // the user agent MAY automatically redirect its request to the URI + // referenced by the Location field value, + // even if the specific status code is not understood. + + // If the response is not a redirect; return it as-is + var location = response.headers.location; + if (!location || this._options.followRedirects === false || + statusCode < 300 || statusCode >= 400) { + response.responseUrl = this._currentUrl; + response.redirects = this._redirects; + this.emit("response", response); + + // Clean up + this._requestBodyBuffers = []; + return; + } + + // The response is a redirect, so abort the current request + destroyRequest(this._currentRequest); + // Discard the remainder of the response to avoid waiting for data + response.destroy(); + + // RFC7231§6.4: A client SHOULD detect and intervene + // in cyclical redirections (i.e., "infinite" redirection loops). + if (++this._redirectCount > this._options.maxRedirects) { + throw new TooManyRedirectsError(); + } + + // Store the request headers if applicable + var requestHeaders; + var beforeRedirect = this._options.beforeRedirect; + if (beforeRedirect) { + requestHeaders = Object.assign({ + // The Host header was set by nativeProtocol.request + Host: response.req.getHeader("host"), + }, this._options.headers); + } + + // RFC7231§6.4: Automatic redirection needs to done with + // care for methods not known to be safe, […] + // RFC7231§6.4.2–3: For historical reasons, a user agent MAY change + // the request method from POST to GET for the subsequent request. + var method = this._options.method; + if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || + // RFC7231§6.4.4: The 303 (See Other) status code indicates that + // the server is redirecting the user agent to a different resource […] + // A user agent can perform a retrieval request targeting that URI + // (a GET or HEAD request if using HTTP) […] + (statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) { + this._options.method = "GET"; + // Drop a possible entity and headers related to it + this._requestBodyBuffers = []; + removeMatchingHeaders(/^content-/i, this._options.headers); + } + + // Drop the Host header, as the redirect might lead to a different host + var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers); + + // If the redirect is relative, carry over the host of the last request + var currentUrlParts = parseUrl(this._currentUrl); + var currentHost = currentHostHeader || currentUrlParts.host; + var currentUrl = /^\w+:/.test(location) ? this._currentUrl : + url.format(Object.assign(currentUrlParts, { host: currentHost })); + + // Create the redirected request + var redirectUrl = resolveUrl(location, currentUrl); + debug("redirecting to", redirectUrl.href); + this._isRedirect = true; + spreadUrlObject(redirectUrl, this._options); + + // Drop confidential headers when redirecting to a less secure protocol + // or to a different domain that is not a superdomain + if (redirectUrl.protocol !== currentUrlParts.protocol && + redirectUrl.protocol !== "https:" || + redirectUrl.host !== currentHost && + !isSubdomain(redirectUrl.host, currentHost)) { + removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers); + } + + // Evaluate the beforeRedirect callback + if (isFunction(beforeRedirect)) { + var responseDetails = { + headers: response.headers, + statusCode: statusCode, + }; + var requestDetails = { + url: currentUrl, + method: method, + headers: requestHeaders, + }; + beforeRedirect(this._options, responseDetails, requestDetails); + this._sanitizeOptions(this._options); + } + + // Perform the redirected request + this._performRequest(); +}; + +// Wraps the key/value object of protocols with redirect functionality +function wrap(protocols) { + // Default settings + var exports = { + maxRedirects: 21, + maxBodyLength: 10 * 1024 * 1024, + }; + + // Wrap each protocol + var nativeProtocols = {}; + Object.keys(protocols).forEach(function (scheme) { + var protocol = scheme + ":"; + var nativeProtocol = nativeProtocols[protocol] = protocols[scheme]; + var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol); + + // Executes a request, following redirects + function request(input, options, callback) { + // Parse parameters, ensuring that input is an object + if (isURL(input)) { + input = spreadUrlObject(input); + } + else if (isString(input)) { + input = spreadUrlObject(parseUrl(input)); + } + else { + callback = options; + options = validateUrl(input); + input = { protocol: protocol }; + } + if (isFunction(options)) { + callback = options; + options = null; + } + + // Set defaults + options = Object.assign({ + maxRedirects: exports.maxRedirects, + maxBodyLength: exports.maxBodyLength, + }, input, options); + options.nativeProtocols = nativeProtocols; + if (!isString(options.host) && !isString(options.hostname)) { + options.hostname = "::1"; + } + + assert.equal(options.protocol, protocol, "protocol mismatch"); + debug("options", options); + return new RedirectableRequest(options, callback); + } + + // Executes a GET request, following redirects + function get(input, options, callback) { + var wrappedRequest = wrappedProtocol.request(input, options, callback); + wrappedRequest.end(); + return wrappedRequest; + } + + // Expose the properties on the wrapped protocol + Object.defineProperties(wrappedProtocol, { + request: { value: request, configurable: true, enumerable: true, writable: true }, + get: { value: get, configurable: true, enumerable: true, writable: true }, + }); + }); + return exports; +} + +function noop() { /* empty */ } + +function parseUrl(input) { + var parsed; + /* istanbul ignore else */ + if (useNativeURL) { + parsed = new URL(input); + } + else { + // Ensure the URL is valid and absolute + parsed = validateUrl(url.parse(input)); + if (!isString(parsed.protocol)) { + throw new InvalidUrlError({ input }); + } + } + return parsed; +} + +function resolveUrl(relative, base) { + /* istanbul ignore next */ + return useNativeURL ? new URL(relative, base) : parseUrl(url.resolve(base, relative)); +} + +function validateUrl(input) { + if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) { + throw new InvalidUrlError({ input: input.href || input }); + } + if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) { + throw new InvalidUrlError({ input: input.href || input }); + } + return input; +} + +function spreadUrlObject(urlObject, target) { + var spread = target || {}; + for (var key of preservedUrlFields) { + spread[key] = urlObject[key]; + } + + // Fix IPv6 hostname + if (spread.hostname.startsWith("[")) { + spread.hostname = spread.hostname.slice(1, -1); + } + // Ensure port is a number + if (spread.port !== "") { + spread.port = Number(spread.port); + } + // Concatenate path + spread.path = spread.search ? spread.pathname + spread.search : spread.pathname; + + return spread; +} + +function removeMatchingHeaders(regex, headers) { + var lastValue; + for (var header in headers) { + if (regex.test(header)) { + lastValue = headers[header]; + delete headers[header]; + } + } + return (lastValue === null || typeof lastValue === "undefined") ? + undefined : String(lastValue).trim(); +} + +function createErrorType(code, message, baseClass) { + // Create constructor + function CustomError(properties) { + Error.captureStackTrace(this, this.constructor); + Object.assign(this, properties || {}); + this.code = code; + this.message = this.cause ? message + ": " + this.cause.message : message; + } + + // Attach constructor and set default properties + CustomError.prototype = new (baseClass || Error)(); + Object.defineProperties(CustomError.prototype, { + constructor: { + value: CustomError, + enumerable: false, + }, + name: { + value: "Error [" + code + "]", + enumerable: false, + }, + }); + return CustomError; +} + +function destroyRequest(request, error) { + for (var event of events) { + request.removeListener(event, eventHandlers[event]); + } + request.on("error", noop); + request.destroy(error); +} + +function isSubdomain(subdomain, domain) { + assert(isString(subdomain) && isString(domain)); + var dot = subdomain.length - domain.length - 1; + return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain); +} + +function isString(value) { + return typeof value === "string" || value instanceof String; +} + +function isFunction(value) { + return typeof value === "function"; +} + +function isBuffer(value) { + return typeof value === "object" && ("length" in value); +} + +function isURL(value) { + return URL && value instanceof URL; +} + +// Exports +module.exports = wrap({ http: http, https: https }); +module.exports.wrap = wrap; diff --git a/Scripts/node_modules/follow-redirects/package.json b/Scripts/node_modules/follow-redirects/package.json new file mode 100644 index 00000000..9b87663e --- /dev/null +++ b/Scripts/node_modules/follow-redirects/package.json @@ -0,0 +1,58 @@ +{ + "name": "follow-redirects", + "version": "1.15.5", + "description": "HTTP and HTTPS modules that follow redirects.", + "license": "MIT", + "main": "index.js", + "files": [ + "*.js" + ], + "engines": { + "node": ">=4.0" + }, + "scripts": { + "lint": "eslint *.js test", + "test": "nyc mocha" + }, + "repository": { + "type": "git", + "url": "git@github.com:follow-redirects/follow-redirects.git" + }, + "homepage": "https://github.com/follow-redirects/follow-redirects", + "bugs": { + "url": "https://github.com/follow-redirects/follow-redirects/issues" + }, + "keywords": [ + "http", + "https", + "url", + "redirect", + "client", + "location", + "utility" + ], + "author": "Ruben Verborgh (https://ruben.verborgh.org/)", + "contributors": [ + "Olivier Lalonde (http://www.syskall.com)", + "James Talmage " + ], + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "peerDependenciesMeta": { + "debug": { + "optional": true + } + }, + "devDependencies": { + "concat-stream": "^2.0.0", + "eslint": "^5.16.0", + "express": "^4.16.4", + "lolex": "^3.1.0", + "mocha": "^6.0.2", + "nyc": "^14.1.1" + } +} diff --git a/Scripts/node_modules/form-data/License b/Scripts/node_modules/form-data/License new file mode 100644 index 00000000..c7ff12a2 --- /dev/null +++ b/Scripts/node_modules/form-data/License @@ -0,0 +1,19 @@ +Copyright (c) 2012 Felix Geisendörfer (felix@debuggable.com) and contributors + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. diff --git a/Scripts/node_modules/form-data/README.md.bak b/Scripts/node_modules/form-data/README.md.bak new file mode 100644 index 00000000..298a1a24 --- /dev/null +++ b/Scripts/node_modules/form-data/README.md.bak @@ -0,0 +1,358 @@ +# Form-Data [![NPM Module](https://img.shields.io/npm/v/form-data.svg)](https://www.npmjs.com/package/form-data) [![Join the chat at https://gitter.im/form-data/form-data](http://form-data.github.io/images/gitterbadge.svg)](https://gitter.im/form-data/form-data) + +A library to create readable ```"multipart/form-data"``` streams. Can be used to submit forms and file uploads to other web applications. + +The API of this library is inspired by the [XMLHttpRequest-2 FormData Interface][xhr2-fd]. + +[xhr2-fd]: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#the-formdata-interface + +[![Linux Build](https://img.shields.io/travis/form-data/form-data/v4.0.0.svg?label=linux:6.x-12.x)](https://travis-ci.org/form-data/form-data) +[![MacOS Build](https://img.shields.io/travis/form-data/form-data/v4.0.0.svg?label=macos:6.x-12.x)](https://travis-ci.org/form-data/form-data) +[![Windows Build](https://img.shields.io/travis/form-data/form-data/v4.0.0.svg?label=windows:6.x-12.x)](https://travis-ci.org/form-data/form-data) + +[![Coverage Status](https://img.shields.io/coveralls/form-data/form-data/v4.0.0.svg?label=code+coverage)](https://coveralls.io/github/form-data/form-data?branch=master) +[![Dependency Status](https://img.shields.io/david/form-data/form-data.svg)](https://david-dm.org/form-data/form-data) + +## Install + +``` +npm install --save form-data +``` + +## Usage + +In this example we are constructing a form with 3 fields that contain a string, +a buffer and a file stream. + +``` javascript +var FormData = require('form-data'); +var fs = require('fs'); + +var form = new FormData(); +form.append('my_field', 'my value'); +form.append('my_buffer', new Buffer(10)); +form.append('my_file', fs.createReadStream('/foo/bar.jpg')); +``` + +Also you can use http-response stream: + +``` javascript +var FormData = require('form-data'); +var http = require('http'); + +var form = new FormData(); + +http.request('http://nodejs.org/images/logo.png', function(response) { + form.append('my_field', 'my value'); + form.append('my_buffer', new Buffer(10)); + form.append('my_logo', response); +}); +``` + +Or @mikeal's [request](https://github.com/request/request) stream: + +``` javascript +var FormData = require('form-data'); +var request = require('request'); + +var form = new FormData(); + +form.append('my_field', 'my value'); +form.append('my_buffer', new Buffer(10)); +form.append('my_logo', request('http://nodejs.org/images/logo.png')); +``` + +In order to submit this form to a web application, call ```submit(url, [callback])``` method: + +``` javascript +form.submit('http://example.org/', function(err, res) { + // res – response object (http.IncomingMessage) // + res.resume(); +}); + +``` + +For more advanced request manipulations ```submit()``` method returns ```http.ClientRequest``` object, or you can choose from one of the alternative submission methods. + +### Custom options + +You can provide custom options, such as `maxDataSize`: + +``` javascript +var FormData = require('form-data'); + +var form = new FormData({ maxDataSize: 20971520 }); +form.append('my_field', 'my value'); +form.append('my_buffer', /* something big */); +``` + +List of available options could be found in [combined-stream](https://github.com/felixge/node-combined-stream/blob/master/lib/combined_stream.js#L7-L15) + +### Alternative submission methods + +You can use node's http client interface: + +``` javascript +var http = require('http'); + +var request = http.request({ + method: 'post', + host: 'example.org', + path: '/upload', + headers: form.getHeaders() +}); + +form.pipe(request); + +request.on('response', function(res) { + console.log(res.statusCode); +}); +``` + +Or if you would prefer the `'Content-Length'` header to be set for you: + +``` javascript +form.submit('example.org/upload', function(err, res) { + console.log(res.statusCode); +}); +``` + +To use custom headers and pre-known length in parts: + +``` javascript +var CRLF = '\r\n'; +var form = new FormData(); + +var options = { + header: CRLF + '--' + form.getBoundary() + CRLF + 'X-Custom-Header: 123' + CRLF + CRLF, + knownLength: 1 +}; + +form.append('my_buffer', buffer, options); + +form.submit('http://example.com/', function(err, res) { + if (err) throw err; + console.log('Done'); +}); +``` + +Form-Data can recognize and fetch all the required information from common types of streams (```fs.readStream```, ```http.response``` and ```mikeal's request```), for some other types of streams you'd need to provide "file"-related information manually: + +``` javascript +someModule.stream(function(err, stdout, stderr) { + if (err) throw err; + + var form = new FormData(); + + form.append('file', stdout, { + filename: 'unicycle.jpg', // ... or: + filepath: 'photos/toys/unicycle.jpg', + contentType: 'image/jpeg', + knownLength: 19806 + }); + + form.submit('http://example.com/', function(err, res) { + if (err) throw err; + console.log('Done'); + }); +}); +``` + +The `filepath` property overrides `filename` and may contain a relative path. This is typically used when uploading [multiple files from a directory](https://wicg.github.io/entries-api/#dom-htmlinputelement-webkitdirectory). + +For edge cases, like POST request to URL with query string or to pass HTTP auth credentials, object can be passed to `form.submit()` as first parameter: + +``` javascript +form.submit({ + host: 'example.com', + path: '/probably.php?extra=params', + auth: 'username:password' +}, function(err, res) { + console.log(res.statusCode); +}); +``` + +In case you need to also send custom HTTP headers with the POST request, you can use the `headers` key in first parameter of `form.submit()`: + +``` javascript +form.submit({ + host: 'example.com', + path: '/surelynot.php', + headers: {'x-test-header': 'test-header-value'} +}, function(err, res) { + console.log(res.statusCode); +}); +``` + +### Methods + +- [_Void_ append( **String** _field_, **Mixed** _value_ [, **Mixed** _options_] )](https://github.com/form-data/form-data#void-append-string-field-mixed-value--mixed-options-). +- [_Headers_ getHeaders( [**Headers** _userHeaders_] )](https://github.com/form-data/form-data#array-getheaders-array-userheaders-) +- [_String_ getBoundary()](https://github.com/form-data/form-data#string-getboundary) +- [_Void_ setBoundary()](https://github.com/form-data/form-data#void-setboundary) +- [_Buffer_ getBuffer()](https://github.com/form-data/form-data#buffer-getbuffer) +- [_Integer_ getLengthSync()](https://github.com/form-data/form-data#integer-getlengthsync) +- [_Integer_ getLength( **function** _callback_ )](https://github.com/form-data/form-data#integer-getlength-function-callback-) +- [_Boolean_ hasKnownLength()](https://github.com/form-data/form-data#boolean-hasknownlength) +- [_Request_ submit( _params_, **function** _callback_ )](https://github.com/form-data/form-data#request-submit-params-function-callback-) +- [_String_ toString()](https://github.com/form-data/form-data#string-tostring) + +#### _Void_ append( **String** _field_, **Mixed** _value_ [, **Mixed** _options_] ) +Append data to the form. You can submit about any format (string, integer, boolean, buffer, etc.). However, Arrays are not supported and need to be turned into strings by the user. +```javascript +var form = new FormData(); +form.append( 'my_string', 'my value' ); +form.append( 'my_integer', 1 ); +form.append( 'my_boolean', true ); +form.append( 'my_buffer', new Buffer(10) ); +form.append( 'my_array_as_json', JSON.stringify( ['bird','cute'] ) ) +``` + +You may provide a string for options, or an object. +```javascript +// Set filename by providing a string for options +form.append( 'my_file', fs.createReadStream('/foo/bar.jpg'), 'bar.jpg' ); + +// provide an object. +form.append( 'my_file', fs.createReadStream('/foo/bar.jpg'), {filename: 'bar.jpg', contentType: 'image/jpeg', knownLength: 19806} ); +``` + +#### _Headers_ getHeaders( [**Headers** _userHeaders_] ) +This method adds the correct `content-type` header to the provided array of `userHeaders`. + +#### _String_ getBoundary() +Return the boundary of the formData. By default, the boundary consists of 26 `-` followed by 24 numbers +for example: +```javascript +--------------------------515890814546601021194782 +``` + +#### _Void_ setBoundary(String _boundary_) +Set the boundary string, overriding the default behavior described above. + +_Note: The boundary must be unique and may not appear in the data._ + +#### _Buffer_ getBuffer() +Return the full formdata request package, as a Buffer. You can insert this Buffer in e.g. Axios to send multipart data. +```javascript +var form = new FormData(); +form.append( 'my_buffer', Buffer.from([0x4a,0x42,0x20,0x52,0x6f,0x63,0x6b,0x73]) ); +form.append( 'my_file', fs.readFileSync('/foo/bar.jpg') ); + +axios.post( 'https://example.com/path/to/api', + form.getBuffer(), + form.getHeaders() + ) +``` +**Note:** Because the output is of type Buffer, you can only append types that are accepted by Buffer: *string, Buffer, ArrayBuffer, Array, or Array-like Object*. A ReadStream for example will result in an error. + +#### _Integer_ getLengthSync() +Same as `getLength` but synchronous. + +_Note: getLengthSync __doesn't__ calculate streams length._ + +#### _Integer_ getLength( **function** _callback_ ) +Returns the `Content-Length` async. The callback is used to handle errors and continue once the length has been calculated +```javascript +this.getLength(function(err, length) { + if (err) { + this._error(err); + return; + } + + // add content length + request.setHeader('Content-Length', length); + + ... +}.bind(this)); +``` + +#### _Boolean_ hasKnownLength() +Checks if the length of added values is known. + +#### _Request_ submit( _params_, **function** _callback_ ) +Submit the form to a web application. +```javascript +var form = new FormData(); +form.append( 'my_string', 'Hello World' ); + +form.submit( 'http://example.com/', function(err, res) { + // res – response object (http.IncomingMessage) // + res.resume(); +} ); +``` + +#### _String_ toString() +Returns the form data as a string. Don't use this if you are sending files or buffers, use `getBuffer()` instead. + +### Integration with other libraries + +#### Request + +Form submission using [request](https://github.com/request/request): + +```javascript +var formData = { + my_field: 'my_value', + my_file: fs.createReadStream(__dirname + '/unicycle.jpg'), +}; + +request.post({url:'http://service.com/upload', formData: formData}, function(err, httpResponse, body) { + if (err) { + return console.error('upload failed:', err); + } + console.log('Upload successful! Server responded with:', body); +}); +``` + +For more details see [request readme](https://github.com/request/request#multipartform-data-multipart-form-uploads). + +#### node-fetch + +You can also submit a form using [node-fetch](https://github.com/bitinn/node-fetch): + +```javascript +var form = new FormData(); + +form.append('a', 1); + +fetch('http://example.com', { method: 'POST', body: form }) + .then(function(res) { + return res.json(); + }).then(function(json) { + console.log(json); + }); +``` + +#### axios + +In Node.js you can post a file using [axios](https://github.com/axios/axios): +```javascript +const form = new FormData(); +const stream = fs.createReadStream(PATH_TO_FILE); + +form.append('image', stream); + +// In Node.js environment you need to set boundary in the header field 'Content-Type' by calling method `getHeaders` +const formHeaders = form.getHeaders(); + +axios.post('http://example.com', form, { + headers: { + ...formHeaders, + }, +}) +.then(response => response) +.catch(error => error) +``` + +## Notes + +- ```getLengthSync()``` method DOESN'T calculate length for streams, use ```knownLength``` options as workaround. +- ```getLength(cb)``` will send an error as first parameter of callback if stream length cannot be calculated (e.g. send in custom streams w/o using ```knownLength```). +- ```submit``` will not add `content-length` if form length is unknown or not calculable. +- Starting version `2.x` FormData has dropped support for `node@0.10.x`. +- Starting version `3.x` FormData has dropped support for `node@4.x`. + +## License + +Form-Data is released under the [MIT](License) license. diff --git a/Scripts/node_modules/form-data/Readme.md b/Scripts/node_modules/form-data/Readme.md new file mode 100644 index 00000000..298a1a24 --- /dev/null +++ b/Scripts/node_modules/form-data/Readme.md @@ -0,0 +1,358 @@ +# Form-Data [![NPM Module](https://img.shields.io/npm/v/form-data.svg)](https://www.npmjs.com/package/form-data) [![Join the chat at https://gitter.im/form-data/form-data](http://form-data.github.io/images/gitterbadge.svg)](https://gitter.im/form-data/form-data) + +A library to create readable ```"multipart/form-data"``` streams. Can be used to submit forms and file uploads to other web applications. + +The API of this library is inspired by the [XMLHttpRequest-2 FormData Interface][xhr2-fd]. + +[xhr2-fd]: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#the-formdata-interface + +[![Linux Build](https://img.shields.io/travis/form-data/form-data/v4.0.0.svg?label=linux:6.x-12.x)](https://travis-ci.org/form-data/form-data) +[![MacOS Build](https://img.shields.io/travis/form-data/form-data/v4.0.0.svg?label=macos:6.x-12.x)](https://travis-ci.org/form-data/form-data) +[![Windows Build](https://img.shields.io/travis/form-data/form-data/v4.0.0.svg?label=windows:6.x-12.x)](https://travis-ci.org/form-data/form-data) + +[![Coverage Status](https://img.shields.io/coveralls/form-data/form-data/v4.0.0.svg?label=code+coverage)](https://coveralls.io/github/form-data/form-data?branch=master) +[![Dependency Status](https://img.shields.io/david/form-data/form-data.svg)](https://david-dm.org/form-data/form-data) + +## Install + +``` +npm install --save form-data +``` + +## Usage + +In this example we are constructing a form with 3 fields that contain a string, +a buffer and a file stream. + +``` javascript +var FormData = require('form-data'); +var fs = require('fs'); + +var form = new FormData(); +form.append('my_field', 'my value'); +form.append('my_buffer', new Buffer(10)); +form.append('my_file', fs.createReadStream('/foo/bar.jpg')); +``` + +Also you can use http-response stream: + +``` javascript +var FormData = require('form-data'); +var http = require('http'); + +var form = new FormData(); + +http.request('http://nodejs.org/images/logo.png', function(response) { + form.append('my_field', 'my value'); + form.append('my_buffer', new Buffer(10)); + form.append('my_logo', response); +}); +``` + +Or @mikeal's [request](https://github.com/request/request) stream: + +``` javascript +var FormData = require('form-data'); +var request = require('request'); + +var form = new FormData(); + +form.append('my_field', 'my value'); +form.append('my_buffer', new Buffer(10)); +form.append('my_logo', request('http://nodejs.org/images/logo.png')); +``` + +In order to submit this form to a web application, call ```submit(url, [callback])``` method: + +``` javascript +form.submit('http://example.org/', function(err, res) { + // res – response object (http.IncomingMessage) // + res.resume(); +}); + +``` + +For more advanced request manipulations ```submit()``` method returns ```http.ClientRequest``` object, or you can choose from one of the alternative submission methods. + +### Custom options + +You can provide custom options, such as `maxDataSize`: + +``` javascript +var FormData = require('form-data'); + +var form = new FormData({ maxDataSize: 20971520 }); +form.append('my_field', 'my value'); +form.append('my_buffer', /* something big */); +``` + +List of available options could be found in [combined-stream](https://github.com/felixge/node-combined-stream/blob/master/lib/combined_stream.js#L7-L15) + +### Alternative submission methods + +You can use node's http client interface: + +``` javascript +var http = require('http'); + +var request = http.request({ + method: 'post', + host: 'example.org', + path: '/upload', + headers: form.getHeaders() +}); + +form.pipe(request); + +request.on('response', function(res) { + console.log(res.statusCode); +}); +``` + +Or if you would prefer the `'Content-Length'` header to be set for you: + +``` javascript +form.submit('example.org/upload', function(err, res) { + console.log(res.statusCode); +}); +``` + +To use custom headers and pre-known length in parts: + +``` javascript +var CRLF = '\r\n'; +var form = new FormData(); + +var options = { + header: CRLF + '--' + form.getBoundary() + CRLF + 'X-Custom-Header: 123' + CRLF + CRLF, + knownLength: 1 +}; + +form.append('my_buffer', buffer, options); + +form.submit('http://example.com/', function(err, res) { + if (err) throw err; + console.log('Done'); +}); +``` + +Form-Data can recognize and fetch all the required information from common types of streams (```fs.readStream```, ```http.response``` and ```mikeal's request```), for some other types of streams you'd need to provide "file"-related information manually: + +``` javascript +someModule.stream(function(err, stdout, stderr) { + if (err) throw err; + + var form = new FormData(); + + form.append('file', stdout, { + filename: 'unicycle.jpg', // ... or: + filepath: 'photos/toys/unicycle.jpg', + contentType: 'image/jpeg', + knownLength: 19806 + }); + + form.submit('http://example.com/', function(err, res) { + if (err) throw err; + console.log('Done'); + }); +}); +``` + +The `filepath` property overrides `filename` and may contain a relative path. This is typically used when uploading [multiple files from a directory](https://wicg.github.io/entries-api/#dom-htmlinputelement-webkitdirectory). + +For edge cases, like POST request to URL with query string or to pass HTTP auth credentials, object can be passed to `form.submit()` as first parameter: + +``` javascript +form.submit({ + host: 'example.com', + path: '/probably.php?extra=params', + auth: 'username:password' +}, function(err, res) { + console.log(res.statusCode); +}); +``` + +In case you need to also send custom HTTP headers with the POST request, you can use the `headers` key in first parameter of `form.submit()`: + +``` javascript +form.submit({ + host: 'example.com', + path: '/surelynot.php', + headers: {'x-test-header': 'test-header-value'} +}, function(err, res) { + console.log(res.statusCode); +}); +``` + +### Methods + +- [_Void_ append( **String** _field_, **Mixed** _value_ [, **Mixed** _options_] )](https://github.com/form-data/form-data#void-append-string-field-mixed-value--mixed-options-). +- [_Headers_ getHeaders( [**Headers** _userHeaders_] )](https://github.com/form-data/form-data#array-getheaders-array-userheaders-) +- [_String_ getBoundary()](https://github.com/form-data/form-data#string-getboundary) +- [_Void_ setBoundary()](https://github.com/form-data/form-data#void-setboundary) +- [_Buffer_ getBuffer()](https://github.com/form-data/form-data#buffer-getbuffer) +- [_Integer_ getLengthSync()](https://github.com/form-data/form-data#integer-getlengthsync) +- [_Integer_ getLength( **function** _callback_ )](https://github.com/form-data/form-data#integer-getlength-function-callback-) +- [_Boolean_ hasKnownLength()](https://github.com/form-data/form-data#boolean-hasknownlength) +- [_Request_ submit( _params_, **function** _callback_ )](https://github.com/form-data/form-data#request-submit-params-function-callback-) +- [_String_ toString()](https://github.com/form-data/form-data#string-tostring) + +#### _Void_ append( **String** _field_, **Mixed** _value_ [, **Mixed** _options_] ) +Append data to the form. You can submit about any format (string, integer, boolean, buffer, etc.). However, Arrays are not supported and need to be turned into strings by the user. +```javascript +var form = new FormData(); +form.append( 'my_string', 'my value' ); +form.append( 'my_integer', 1 ); +form.append( 'my_boolean', true ); +form.append( 'my_buffer', new Buffer(10) ); +form.append( 'my_array_as_json', JSON.stringify( ['bird','cute'] ) ) +``` + +You may provide a string for options, or an object. +```javascript +// Set filename by providing a string for options +form.append( 'my_file', fs.createReadStream('/foo/bar.jpg'), 'bar.jpg' ); + +// provide an object. +form.append( 'my_file', fs.createReadStream('/foo/bar.jpg'), {filename: 'bar.jpg', contentType: 'image/jpeg', knownLength: 19806} ); +``` + +#### _Headers_ getHeaders( [**Headers** _userHeaders_] ) +This method adds the correct `content-type` header to the provided array of `userHeaders`. + +#### _String_ getBoundary() +Return the boundary of the formData. By default, the boundary consists of 26 `-` followed by 24 numbers +for example: +```javascript +--------------------------515890814546601021194782 +``` + +#### _Void_ setBoundary(String _boundary_) +Set the boundary string, overriding the default behavior described above. + +_Note: The boundary must be unique and may not appear in the data._ + +#### _Buffer_ getBuffer() +Return the full formdata request package, as a Buffer. You can insert this Buffer in e.g. Axios to send multipart data. +```javascript +var form = new FormData(); +form.append( 'my_buffer', Buffer.from([0x4a,0x42,0x20,0x52,0x6f,0x63,0x6b,0x73]) ); +form.append( 'my_file', fs.readFileSync('/foo/bar.jpg') ); + +axios.post( 'https://example.com/path/to/api', + form.getBuffer(), + form.getHeaders() + ) +``` +**Note:** Because the output is of type Buffer, you can only append types that are accepted by Buffer: *string, Buffer, ArrayBuffer, Array, or Array-like Object*. A ReadStream for example will result in an error. + +#### _Integer_ getLengthSync() +Same as `getLength` but synchronous. + +_Note: getLengthSync __doesn't__ calculate streams length._ + +#### _Integer_ getLength( **function** _callback_ ) +Returns the `Content-Length` async. The callback is used to handle errors and continue once the length has been calculated +```javascript +this.getLength(function(err, length) { + if (err) { + this._error(err); + return; + } + + // add content length + request.setHeader('Content-Length', length); + + ... +}.bind(this)); +``` + +#### _Boolean_ hasKnownLength() +Checks if the length of added values is known. + +#### _Request_ submit( _params_, **function** _callback_ ) +Submit the form to a web application. +```javascript +var form = new FormData(); +form.append( 'my_string', 'Hello World' ); + +form.submit( 'http://example.com/', function(err, res) { + // res – response object (http.IncomingMessage) // + res.resume(); +} ); +``` + +#### _String_ toString() +Returns the form data as a string. Don't use this if you are sending files or buffers, use `getBuffer()` instead. + +### Integration with other libraries + +#### Request + +Form submission using [request](https://github.com/request/request): + +```javascript +var formData = { + my_field: 'my_value', + my_file: fs.createReadStream(__dirname + '/unicycle.jpg'), +}; + +request.post({url:'http://service.com/upload', formData: formData}, function(err, httpResponse, body) { + if (err) { + return console.error('upload failed:', err); + } + console.log('Upload successful! Server responded with:', body); +}); +``` + +For more details see [request readme](https://github.com/request/request#multipartform-data-multipart-form-uploads). + +#### node-fetch + +You can also submit a form using [node-fetch](https://github.com/bitinn/node-fetch): + +```javascript +var form = new FormData(); + +form.append('a', 1); + +fetch('http://example.com', { method: 'POST', body: form }) + .then(function(res) { + return res.json(); + }).then(function(json) { + console.log(json); + }); +``` + +#### axios + +In Node.js you can post a file using [axios](https://github.com/axios/axios): +```javascript +const form = new FormData(); +const stream = fs.createReadStream(PATH_TO_FILE); + +form.append('image', stream); + +// In Node.js environment you need to set boundary in the header field 'Content-Type' by calling method `getHeaders` +const formHeaders = form.getHeaders(); + +axios.post('http://example.com', form, { + headers: { + ...formHeaders, + }, +}) +.then(response => response) +.catch(error => error) +``` + +## Notes + +- ```getLengthSync()``` method DOESN'T calculate length for streams, use ```knownLength``` options as workaround. +- ```getLength(cb)``` will send an error as first parameter of callback if stream length cannot be calculated (e.g. send in custom streams w/o using ```knownLength```). +- ```submit``` will not add `content-length` if form length is unknown or not calculable. +- Starting version `2.x` FormData has dropped support for `node@0.10.x`. +- Starting version `3.x` FormData has dropped support for `node@4.x`. + +## License + +Form-Data is released under the [MIT](License) license. diff --git a/Scripts/node_modules/form-data/index.d.ts b/Scripts/node_modules/form-data/index.d.ts new file mode 100644 index 00000000..295e9e9b --- /dev/null +++ b/Scripts/node_modules/form-data/index.d.ts @@ -0,0 +1,62 @@ +// Definitions by: Carlos Ballesteros Velasco +// Leon Yu +// BendingBender +// Maple Miao + +/// +import * as stream from 'stream'; +import * as http from 'http'; + +export = FormData; + +// Extracted because @types/node doesn't export interfaces. +interface ReadableOptions { + highWaterMark?: number; + encoding?: string; + objectMode?: boolean; + read?(this: stream.Readable, size: number): void; + destroy?(this: stream.Readable, error: Error | null, callback: (error: Error | null) => void): void; + autoDestroy?: boolean; +} + +interface Options extends ReadableOptions { + writable?: boolean; + readable?: boolean; + dataSize?: number; + maxDataSize?: number; + pauseStreams?: boolean; +} + +declare class FormData extends stream.Readable { + constructor(options?: Options); + append(key: string, value: any, options?: FormData.AppendOptions | string): void; + getHeaders(userHeaders?: FormData.Headers): FormData.Headers; + submit( + params: string | FormData.SubmitOptions, + callback?: (error: Error | null, response: http.IncomingMessage) => void + ): http.ClientRequest; + getBuffer(): Buffer; + setBoundary(boundary: string): void; + getBoundary(): string; + getLength(callback: (err: Error | null, length: number) => void): void; + getLengthSync(): number; + hasKnownLength(): boolean; +} + +declare namespace FormData { + interface Headers { + [key: string]: any; + } + + interface AppendOptions { + header?: string | Headers; + knownLength?: number; + filename?: string; + filepath?: string; + contentType?: string; + } + + interface SubmitOptions extends http.RequestOptions { + protocol?: 'https:' | 'http:'; + } +} diff --git a/Scripts/node_modules/form-data/lib/browser.js b/Scripts/node_modules/form-data/lib/browser.js new file mode 100644 index 00000000..09e7c70e --- /dev/null +++ b/Scripts/node_modules/form-data/lib/browser.js @@ -0,0 +1,2 @@ +/* eslint-env browser */ +module.exports = typeof self == 'object' ? self.FormData : window.FormData; diff --git a/Scripts/node_modules/form-data/lib/form_data.js b/Scripts/node_modules/form-data/lib/form_data.js new file mode 100644 index 00000000..18dc819c --- /dev/null +++ b/Scripts/node_modules/form-data/lib/form_data.js @@ -0,0 +1,501 @@ +var CombinedStream = require('combined-stream'); +var util = require('util'); +var path = require('path'); +var http = require('http'); +var https = require('https'); +var parseUrl = require('url').parse; +var fs = require('fs'); +var Stream = require('stream').Stream; +var mime = require('mime-types'); +var asynckit = require('asynckit'); +var populate = require('./populate.js'); + +// Public API +module.exports = FormData; + +// make it a Stream +util.inherits(FormData, CombinedStream); + +/** + * Create readable "multipart/form-data" streams. + * Can be used to submit forms + * and file uploads to other web applications. + * + * @constructor + * @param {Object} options - Properties to be added/overriden for FormData and CombinedStream + */ +function FormData(options) { + if (!(this instanceof FormData)) { + return new FormData(options); + } + + this._overheadLength = 0; + this._valueLength = 0; + this._valuesToMeasure = []; + + CombinedStream.call(this); + + options = options || {}; + for (var option in options) { + this[option] = options[option]; + } +} + +FormData.LINE_BREAK = '\r\n'; +FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream'; + +FormData.prototype.append = function(field, value, options) { + + options = options || {}; + + // allow filename as single option + if (typeof options == 'string') { + options = {filename: options}; + } + + var append = CombinedStream.prototype.append.bind(this); + + // all that streamy business can't handle numbers + if (typeof value == 'number') { + value = '' + value; + } + + // https://github.com/felixge/node-form-data/issues/38 + if (util.isArray(value)) { + // Please convert your array into string + // the way web server expects it + this._error(new Error('Arrays are not supported.')); + return; + } + + var header = this._multiPartHeader(field, value, options); + var footer = this._multiPartFooter(); + + append(header); + append(value); + append(footer); + + // pass along options.knownLength + this._trackLength(header, value, options); +}; + +FormData.prototype._trackLength = function(header, value, options) { + var valueLength = 0; + + // used w/ getLengthSync(), when length is known. + // e.g. for streaming directly from a remote server, + // w/ a known file a size, and not wanting to wait for + // incoming file to finish to get its size. + if (options.knownLength != null) { + valueLength += +options.knownLength; + } else if (Buffer.isBuffer(value)) { + valueLength = value.length; + } else if (typeof value === 'string') { + valueLength = Buffer.byteLength(value); + } + + this._valueLength += valueLength; + + // @check why add CRLF? does this account for custom/multiple CRLFs? + this._overheadLength += + Buffer.byteLength(header) + + FormData.LINE_BREAK.length; + + // empty or either doesn't have path or not an http response or not a stream + if (!value || ( !value.path && !(value.readable && value.hasOwnProperty('httpVersion')) && !(value instanceof Stream))) { + return; + } + + // no need to bother with the length + if (!options.knownLength) { + this._valuesToMeasure.push(value); + } +}; + +FormData.prototype._lengthRetriever = function(value, callback) { + + if (value.hasOwnProperty('fd')) { + + // take read range into a account + // `end` = Infinity –> read file till the end + // + // TODO: Looks like there is bug in Node fs.createReadStream + // it doesn't respect `end` options without `start` options + // Fix it when node fixes it. + // https://github.com/joyent/node/issues/7819 + if (value.end != undefined && value.end != Infinity && value.start != undefined) { + + // when end specified + // no need to calculate range + // inclusive, starts with 0 + callback(null, value.end + 1 - (value.start ? value.start : 0)); + + // not that fast snoopy + } else { + // still need to fetch file size from fs + fs.stat(value.path, function(err, stat) { + + var fileSize; + + if (err) { + callback(err); + return; + } + + // update final size based on the range options + fileSize = stat.size - (value.start ? value.start : 0); + callback(null, fileSize); + }); + } + + // or http response + } else if (value.hasOwnProperty('httpVersion')) { + callback(null, +value.headers['content-length']); + + // or request stream http://github.com/mikeal/request + } else if (value.hasOwnProperty('httpModule')) { + // wait till response come back + value.on('response', function(response) { + value.pause(); + callback(null, +response.headers['content-length']); + }); + value.resume(); + + // something else + } else { + callback('Unknown stream'); + } +}; + +FormData.prototype._multiPartHeader = function(field, value, options) { + // custom header specified (as string)? + // it becomes responsible for boundary + // (e.g. to handle extra CRLFs on .NET servers) + if (typeof options.header == 'string') { + return options.header; + } + + var contentDisposition = this._getContentDisposition(value, options); + var contentType = this._getContentType(value, options); + + var contents = ''; + var headers = { + // add custom disposition as third element or keep it two elements if not + 'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []), + // if no content type. allow it to be empty array + 'Content-Type': [].concat(contentType || []) + }; + + // allow custom headers. + if (typeof options.header == 'object') { + populate(headers, options.header); + } + + var header; + for (var prop in headers) { + if (!headers.hasOwnProperty(prop)) continue; + header = headers[prop]; + + // skip nullish headers. + if (header == null) { + continue; + } + + // convert all headers to arrays. + if (!Array.isArray(header)) { + header = [header]; + } + + // add non-empty headers. + if (header.length) { + contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK; + } + } + + return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK; +}; + +FormData.prototype._getContentDisposition = function(value, options) { + + var filename + , contentDisposition + ; + + if (typeof options.filepath === 'string') { + // custom filepath for relative paths + filename = path.normalize(options.filepath).replace(/\\/g, '/'); + } else if (options.filename || value.name || value.path) { + // custom filename take precedence + // formidable and the browser add a name property + // fs- and request- streams have path property + filename = path.basename(options.filename || value.name || value.path); + } else if (value.readable && value.hasOwnProperty('httpVersion')) { + // or try http response + filename = path.basename(value.client._httpMessage.path || ''); + } + + if (filename) { + contentDisposition = 'filename="' + filename + '"'; + } + + return contentDisposition; +}; + +FormData.prototype._getContentType = function(value, options) { + + // use custom content-type above all + var contentType = options.contentType; + + // or try `name` from formidable, browser + if (!contentType && value.name) { + contentType = mime.lookup(value.name); + } + + // or try `path` from fs-, request- streams + if (!contentType && value.path) { + contentType = mime.lookup(value.path); + } + + // or if it's http-reponse + if (!contentType && value.readable && value.hasOwnProperty('httpVersion')) { + contentType = value.headers['content-type']; + } + + // or guess it from the filepath or filename + if (!contentType && (options.filepath || options.filename)) { + contentType = mime.lookup(options.filepath || options.filename); + } + + // fallback to the default content type if `value` is not simple value + if (!contentType && typeof value == 'object') { + contentType = FormData.DEFAULT_CONTENT_TYPE; + } + + return contentType; +}; + +FormData.prototype._multiPartFooter = function() { + return function(next) { + var footer = FormData.LINE_BREAK; + + var lastPart = (this._streams.length === 0); + if (lastPart) { + footer += this._lastBoundary(); + } + + next(footer); + }.bind(this); +}; + +FormData.prototype._lastBoundary = function() { + return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK; +}; + +FormData.prototype.getHeaders = function(userHeaders) { + var header; + var formHeaders = { + 'content-type': 'multipart/form-data; boundary=' + this.getBoundary() + }; + + for (header in userHeaders) { + if (userHeaders.hasOwnProperty(header)) { + formHeaders[header.toLowerCase()] = userHeaders[header]; + } + } + + return formHeaders; +}; + +FormData.prototype.setBoundary = function(boundary) { + this._boundary = boundary; +}; + +FormData.prototype.getBoundary = function() { + if (!this._boundary) { + this._generateBoundary(); + } + + return this._boundary; +}; + +FormData.prototype.getBuffer = function() { + var dataBuffer = new Buffer.alloc( 0 ); + var boundary = this.getBoundary(); + + // Create the form content. Add Line breaks to the end of data. + for (var i = 0, len = this._streams.length; i < len; i++) { + if (typeof this._streams[i] !== 'function') { + + // Add content to the buffer. + if(Buffer.isBuffer(this._streams[i])) { + dataBuffer = Buffer.concat( [dataBuffer, this._streams[i]]); + }else { + dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(this._streams[i])]); + } + + // Add break after content. + if (typeof this._streams[i] !== 'string' || this._streams[i].substring( 2, boundary.length + 2 ) !== boundary) { + dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(FormData.LINE_BREAK)] ); + } + } + } + + // Add the footer and return the Buffer object. + return Buffer.concat( [dataBuffer, Buffer.from(this._lastBoundary())] ); +}; + +FormData.prototype._generateBoundary = function() { + // This generates a 50 character boundary similar to those used by Firefox. + // They are optimized for boyer-moore parsing. + var boundary = '--------------------------'; + for (var i = 0; i < 24; i++) { + boundary += Math.floor(Math.random() * 10).toString(16); + } + + this._boundary = boundary; +}; + +// Note: getLengthSync DOESN'T calculate streams length +// As workaround one can calculate file size manually +// and add it as knownLength option +FormData.prototype.getLengthSync = function() { + var knownLength = this._overheadLength + this._valueLength; + + // Don't get confused, there are 3 "internal" streams for each keyval pair + // so it basically checks if there is any value added to the form + if (this._streams.length) { + knownLength += this._lastBoundary().length; + } + + // https://github.com/form-data/form-data/issues/40 + if (!this.hasKnownLength()) { + // Some async length retrievers are present + // therefore synchronous length calculation is false. + // Please use getLength(callback) to get proper length + this._error(new Error('Cannot calculate proper length in synchronous way.')); + } + + return knownLength; +}; + +// Public API to check if length of added values is known +// https://github.com/form-data/form-data/issues/196 +// https://github.com/form-data/form-data/issues/262 +FormData.prototype.hasKnownLength = function() { + var hasKnownLength = true; + + if (this._valuesToMeasure.length) { + hasKnownLength = false; + } + + return hasKnownLength; +}; + +FormData.prototype.getLength = function(cb) { + var knownLength = this._overheadLength + this._valueLength; + + if (this._streams.length) { + knownLength += this._lastBoundary().length; + } + + if (!this._valuesToMeasure.length) { + process.nextTick(cb.bind(this, null, knownLength)); + return; + } + + asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) { + if (err) { + cb(err); + return; + } + + values.forEach(function(length) { + knownLength += length; + }); + + cb(null, knownLength); + }); +}; + +FormData.prototype.submit = function(params, cb) { + var request + , options + , defaults = {method: 'post'} + ; + + // parse provided url if it's string + // or treat it as options object + if (typeof params == 'string') { + + params = parseUrl(params); + options = populate({ + port: params.port, + path: params.pathname, + host: params.hostname, + protocol: params.protocol + }, defaults); + + // use custom params + } else { + + options = populate(params, defaults); + // if no port provided use default one + if (!options.port) { + options.port = options.protocol == 'https:' ? 443 : 80; + } + } + + // put that good code in getHeaders to some use + options.headers = this.getHeaders(params.headers); + + // https if specified, fallback to http in any other case + if (options.protocol == 'https:') { + request = https.request(options); + } else { + request = http.request(options); + } + + // get content length and fire away + this.getLength(function(err, length) { + if (err && err !== 'Unknown stream') { + this._error(err); + return; + } + + // add content length + if (length) { + request.setHeader('Content-Length', length); + } + + this.pipe(request); + if (cb) { + var onResponse; + + var callback = function (error, responce) { + request.removeListener('error', callback); + request.removeListener('response', onResponse); + + return cb.call(this, error, responce); + }; + + onResponse = callback.bind(this, null); + + request.on('error', callback); + request.on('response', onResponse); + } + }.bind(this)); + + return request; +}; + +FormData.prototype._error = function(err) { + if (!this.error) { + this.error = err; + this.pause(); + this.emit('error', err); + } +}; + +FormData.prototype.toString = function () { + return '[object FormData]'; +}; diff --git a/Scripts/node_modules/form-data/lib/populate.js b/Scripts/node_modules/form-data/lib/populate.js new file mode 100644 index 00000000..4d35738d --- /dev/null +++ b/Scripts/node_modules/form-data/lib/populate.js @@ -0,0 +1,10 @@ +// populates missing values +module.exports = function(dst, src) { + + Object.keys(src).forEach(function(prop) + { + dst[prop] = dst[prop] || src[prop]; + }); + + return dst; +}; diff --git a/Scripts/node_modules/form-data/package.json b/Scripts/node_modules/form-data/package.json new file mode 100644 index 00000000..0f20240b --- /dev/null +++ b/Scripts/node_modules/form-data/package.json @@ -0,0 +1,68 @@ +{ + "author": "Felix Geisendörfer (http://debuggable.com/)", + "name": "form-data", + "description": "A library to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.", + "version": "4.0.0", + "repository": { + "type": "git", + "url": "git://github.com/form-data/form-data.git" + }, + "main": "./lib/form_data", + "browser": "./lib/browser", + "typings": "./index.d.ts", + "scripts": { + "pretest": "rimraf coverage test/tmp", + "test": "istanbul cover test/run.js", + "posttest": "istanbul report lcov text", + "lint": "eslint lib/*.js test/*.js test/integration/*.js", + "report": "istanbul report lcov text", + "ci-lint": "is-node-modern 8 && npm run lint || is-node-not-modern 8", + "ci-test": "npm run test && npm run browser && npm run report", + "predebug": "rimraf coverage test/tmp", + "debug": "verbose=1 ./test/run.js", + "browser": "browserify -t browserify-istanbul test/run-browser.js | obake --coverage", + "check": "istanbul check-coverage coverage/coverage*.json", + "files": "pkgfiles --sort=name", + "get-version": "node -e \"console.log(require('./package.json').version)\"", + "update-readme": "sed -i.bak 's/\\/master\\.svg/\\/v'$(npm --silent run get-version)'.svg/g' README.md", + "restore-readme": "mv README.md.bak README.md", + "prepublish": "in-publish && npm run update-readme || not-in-publish", + "postpublish": "npm run restore-readme" + }, + "pre-commit": [ + "lint", + "ci-test", + "check" + ], + "engines": { + "node": ">= 6" + }, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "devDependencies": { + "@types/node": "^12.0.10", + "browserify": "^13.1.1", + "browserify-istanbul": "^2.0.0", + "coveralls": "^3.0.4", + "cross-spawn": "^6.0.5", + "eslint": "^6.0.1", + "fake": "^0.2.2", + "far": "^0.0.7", + "formidable": "^1.0.17", + "in-publish": "^2.0.0", + "is-node-modern": "^1.0.0", + "istanbul": "^0.4.5", + "obake": "^0.1.2", + "puppeteer": "^1.19.0", + "pkgfiles": "^2.3.0", + "pre-commit": "^1.1.3", + "request": "^2.88.0", + "rimraf": "^2.7.1", + "tape": "^4.6.2", + "typescript": "^3.5.2" + }, + "license": "MIT" +} diff --git a/Scripts/node_modules/fs-extra/README.md b/Scripts/node_modules/fs-extra/README.md index 070a5e76..245de668 100644 --- a/Scripts/node_modules/fs-extra/README.md +++ b/Scripts/node_modules/fs-extra/README.md @@ -4,11 +4,9 @@ Node.js: fs-extra `fs-extra` adds file system methods that aren't included in the native `fs` module and adds promise support to the `fs` methods. It also uses [`graceful-fs`](https://github.com/isaacs/node-graceful-fs) to prevent `EMFILE` errors. It should be a drop in replacement for `fs`. [![npm Package](https://img.shields.io/npm/v/fs-extra.svg)](https://www.npmjs.org/package/fs-extra) -[![License](https://img.shields.io/npm/l/express.svg)](https://github.com/jprichardson/node-fs-extra/blob/master/LICENSE) -[![build status](https://img.shields.io/travis/jprichardson/node-fs-extra/master.svg)](http://travis-ci.org/jprichardson/node-fs-extra) -[![windows Build status](https://img.shields.io/appveyor/ci/jprichardson/node-fs-extra/master.svg?label=windows%20build)](https://ci.appveyor.com/project/jprichardson/node-fs-extra/branch/master) +[![License](https://img.shields.io/npm/l/fs-extra.svg)](https://github.com/jprichardson/node-fs-extra/blob/master/LICENSE) +[![build status](https://img.shields.io/github/actions/workflow/status/jprichardson/node-fs-extra/ci.yml?branch=master)](https://github.com/jprichardson/node-fs-extra/actions/workflows/ci.yml?query=branch%3Amaster) [![downloads per month](http://img.shields.io/npm/dm/fs-extra.svg)](https://www.npmjs.org/package/fs-extra) -[![Coverage Status](https://img.shields.io/coveralls/github/jprichardson/node-fs-extra/master.svg)](https://coveralls.io/github/jprichardson/node-fs-extra) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) Why? @@ -29,6 +27,8 @@ Installation Usage ----- +### CommonJS + `fs-extra` is a drop in replacement for native `fs`. All methods in `fs` are attached to `fs-extra`. All `fs` methods return promises if the callback isn't passed. You don't ever need to include the original `fs` module again: @@ -57,6 +57,31 @@ const fs = require('fs') const fse = require('fs-extra') ``` +### ESM + +There is also an `fs-extra/esm` import, that supports both default and named exports. However, note that `fs` methods are not included in `fs-extra/esm`; you still need to import `fs` and/or `fs/promises` seperately: + +```js +import { readFileSync } from 'fs' +import { readFile } from 'fs/promises' +import { outputFile, outputFileSync } from 'fs-extra/esm' +``` + +Default exports are supported: + +```js +import fs from 'fs' +import fse from 'fs-extra/esm' +// fse.readFileSync is not a function; must use fs.readFileSync +``` + +but you probably want to just use regular `fs-extra` instead of `fs-extra/esm` for default exports: + +```js +import fs from 'fs-extra' +// both fs and fs-extra methods are defined +``` + Sync vs Async vs Async/Await ------------- Most methods are async by default. All async methods will return a promise if the callback isn't passed. @@ -143,7 +168,7 @@ Methods - [writeJsonSync](docs/writeJson-sync.md) -**NOTE:** You can still use the native Node.js methods. They are promisified and copied over to `fs-extra`. See [notes on `fs.read()` & `fs.write()`](docs/fs-read-write.md) +**NOTE:** You can still use the native Node.js methods. They are promisified and copied over to `fs-extra`. See [notes on `fs.read()`, `fs.write()`, & `fs.writev()`](docs/fs-read-write-writev.md) ### What happened to `walk()` and `walkSync()`? @@ -153,6 +178,9 @@ They were removed from `fs-extra` in v2.0.0. If you need the functionality, `wal Third Party ----------- +### CLI + +[fse-cli](https://www.npmjs.com/package/@atao60/fse-cli) allows you to run `fs-extra` from a console or from [npm](https://www.npmjs.com) scripts. ### TypeScript @@ -186,7 +214,7 @@ you're gonna have to get over it :) If `standard` is good enough for `npm`, it's What's needed? - First, take a look at existing issues. Those are probably going to be where the priority lies. - More tests for edge cases. Specifically on different platforms. There can never be enough tests. -- Improve test coverage. See coveralls output for more info. +- Improve test coverage. Note: If you make any big changes, **you should definitely file an issue for discussion first.** @@ -196,7 +224,10 @@ fs-extra contains hundreds of tests. - `npm run lint`: runs the linter ([standard](http://standardjs.com/)) - `npm run unit`: runs the unit tests -- `npm test`: runs both the linter and the tests +- `npm run unit-esm`: runs tests for `fs-extra/esm` exports +- `npm test`: runs the linter and all tests + +When running unit tests, set the environment variable `CROSS_DEVICE_PATH` to the absolute path of an empty directory on another device (like a thumb drive) to enable cross-device move tests. ### Windows diff --git a/Scripts/node_modules/fs-extra/lib/copy-sync/index.js b/Scripts/node_modules/fs-extra/lib/copy-sync/index.js deleted file mode 100644 index 65945aed..00000000 --- a/Scripts/node_modules/fs-extra/lib/copy-sync/index.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict' - -module.exports = { - copySync: require('./copy-sync') -} diff --git a/Scripts/node_modules/fs-extra/lib/copy-sync/copy-sync.js b/Scripts/node_modules/fs-extra/lib/copy/copy-sync.js similarity index 64% rename from Scripts/node_modules/fs-extra/lib/copy-sync/copy-sync.js rename to Scripts/node_modules/fs-extra/lib/copy/copy-sync.js index f2831b32..8bc60119 100644 --- a/Scripts/node_modules/fs-extra/lib/copy-sync/copy-sync.js +++ b/Scripts/node_modules/fs-extra/lib/copy/copy-sync.js @@ -2,8 +2,8 @@ const fs = require('graceful-fs') const path = require('path') -const mkdirpSync = require('../mkdirs').mkdirsSync -const utimesSync = require('../util/utimes.js').utimesMillisSync +const mkdirsSync = require('../mkdirs').mkdirsSync +const utimesMillisSync = require('../util/utimes').utimesMillisSync const stat = require('../util/stat') function copySync (src, dest, opts) { @@ -17,24 +17,18 @@ function copySync (src, dest, opts) { // Warn about using preserveTimestamps on 32-bit node if (opts.preserveTimestamps && process.arch === 'ia32') { - console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n - see https://github.com/jprichardson/node-fs-extra/issues/269`) + process.emitWarning( + 'Using the preserveTimestamps option in 32-bit node is not recommended;\n\n' + + '\tsee https://github.com/jprichardson/node-fs-extra/issues/269', + 'Warning', 'fs-extra-WARN0002' + ) } - const { srcStat, destStat } = stat.checkPathsSync(src, dest, 'copy') + const { srcStat, destStat } = stat.checkPathsSync(src, dest, 'copy', opts) stat.checkParentPathsSync(src, srcStat, dest, 'copy') - return handleFilterAndCopy(destStat, src, dest, opts) -} - -function handleFilterAndCopy (destStat, src, dest, opts) { if (opts.filter && !opts.filter(src, dest)) return const destParent = path.dirname(dest) - if (!fs.existsSync(destParent)) mkdirpSync(destParent) - return startCopy(destStat, src, dest, opts) -} - -function startCopy (destStat, src, dest, opts) { - if (opts.filter && !opts.filter(src, dest)) return + if (!fs.existsSync(destParent)) mkdirsSync(destParent) return getStats(destStat, src, dest, opts) } @@ -47,6 +41,9 @@ function getStats (destStat, src, dest, opts) { srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts) else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts) + else if (srcStat.isSocket()) throw new Error(`Cannot copy a socket file: ${src}`) + else if (srcStat.isFIFO()) throw new Error(`Cannot copy a FIFO pipe: ${src}`) + throw new Error(`Unknown file: ${src}`) } function onFile (srcStat, destStat, src, dest, opts) { @@ -64,49 +61,48 @@ function mayCopyFile (srcStat, src, dest, opts) { } function copyFile (srcStat, src, dest, opts) { - if (typeof fs.copyFileSync === 'function') { - fs.copyFileSync(src, dest) - fs.chmodSync(dest, srcStat.mode) - if (opts.preserveTimestamps) { - return utimesSync(dest, srcStat.atime, srcStat.mtime) - } - return - } - return copyFileFallback(srcStat, src, dest, opts) + fs.copyFileSync(src, dest) + if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest) + return setDestMode(dest, srcStat.mode) } -function copyFileFallback (srcStat, src, dest, opts) { - const BUF_LENGTH = 64 * 1024 - const _buff = require('../util/buffer')(BUF_LENGTH) +function handleTimestamps (srcMode, src, dest) { + // Make sure the file is writable before setting the timestamp + // otherwise open fails with EPERM when invoked with 'r+' + // (through utimes call) + if (fileIsNotWritable(srcMode)) makeFileWritable(dest, srcMode) + return setDestTimestamps(src, dest) +} - const fdr = fs.openSync(src, 'r') - const fdw = fs.openSync(dest, 'w', srcStat.mode) - let pos = 0 +function fileIsNotWritable (srcMode) { + return (srcMode & 0o200) === 0 +} - while (pos < srcStat.size) { - const bytesRead = fs.readSync(fdr, _buff, 0, BUF_LENGTH, pos) - fs.writeSync(fdw, _buff, 0, bytesRead) - pos += bytesRead - } +function makeFileWritable (dest, srcMode) { + return setDestMode(dest, srcMode | 0o200) +} - if (opts.preserveTimestamps) fs.futimesSync(fdw, srcStat.atime, srcStat.mtime) +function setDestMode (dest, srcMode) { + return fs.chmodSync(dest, srcMode) +} - fs.closeSync(fdr) - fs.closeSync(fdw) +function setDestTimestamps (src, dest) { + // The initial srcStat.atime cannot be trusted + // because it is modified by the read(2) system call + // (See https://nodejs.org/api/fs.html#fs_stat_time_values) + const updatedSrcStat = fs.statSync(src) + return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime) } function onDir (srcStat, destStat, src, dest, opts) { - if (!destStat) return mkDirAndCopy(srcStat, src, dest, opts) - if (destStat && !destStat.isDirectory()) { - throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`) - } + if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts) return copyDir(src, dest, opts) } -function mkDirAndCopy (srcStat, src, dest, opts) { +function mkDirAndCopy (srcMode, src, dest, opts) { fs.mkdirSync(dest) copyDir(src, dest, opts) - return fs.chmodSync(dest, srcStat.mode) + return setDestMode(dest, srcMode) } function copyDir (src, dest, opts) { @@ -116,8 +112,9 @@ function copyDir (src, dest, opts) { function copyDirItem (item, src, dest, opts) { const srcItem = path.join(src, item) const destItem = path.join(dest, item) - const { destStat } = stat.checkPathsSync(srcItem, destItem, 'copy') - return startCopy(destStat, srcItem, destItem, opts) + if (opts.filter && !opts.filter(srcItem, destItem)) return + const { destStat } = stat.checkPathsSync(srcItem, destItem, 'copy', opts) + return getStats(destStat, srcItem, destItem, opts) } function onLink (destStat, src, dest, opts) { @@ -149,7 +146,7 @@ function onLink (destStat, src, dest, opts) { // prevent copy if src is a subdir of dest since unlinking // dest in this case would result in removing src contents // and therefore a broken symlink would be created. - if (fs.statSync(dest).isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) { + if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) { throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`) } return copyLink(resolvedSrc, dest) diff --git a/Scripts/node_modules/fs-extra/lib/copy/copy.js b/Scripts/node_modules/fs-extra/lib/copy/copy.js index 411fc64c..6304b021 100644 --- a/Scripts/node_modules/fs-extra/lib/copy/copy.js +++ b/Scripts/node_modules/fs-extra/lib/copy/copy.js @@ -1,212 +1,177 @@ 'use strict' -const fs = require('graceful-fs') +const fs = require('../fs') const path = require('path') -const mkdirp = require('../mkdirs').mkdirs -const pathExists = require('../path-exists').pathExists -const utimes = require('../util/utimes').utimesMillis +const { mkdirs } = require('../mkdirs') +const { pathExists } = require('../path-exists') +const { utimesMillis } = require('../util/utimes') const stat = require('../util/stat') -function copy (src, dest, opts, cb) { - if (typeof opts === 'function' && !cb) { - cb = opts - opts = {} - } else if (typeof opts === 'function') { +async function copy (src, dest, opts = {}) { + if (typeof opts === 'function') { opts = { filter: opts } } - cb = cb || function () {} - opts = opts || {} - opts.clobber = 'clobber' in opts ? !!opts.clobber : true // default to true for now opts.overwrite = 'overwrite' in opts ? !!opts.overwrite : opts.clobber // overwrite falls back to clobber // Warn about using preserveTimestamps on 32-bit node if (opts.preserveTimestamps && process.arch === 'ia32') { - console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n - see https://github.com/jprichardson/node-fs-extra/issues/269`) + process.emitWarning( + 'Using the preserveTimestamps option in 32-bit node is not recommended;\n\n' + + '\tsee https://github.com/jprichardson/node-fs-extra/issues/269', + 'Warning', 'fs-extra-WARN0001' + ) } - stat.checkPaths(src, dest, 'copy', (err, stats) => { - if (err) return cb(err) - const { srcStat, destStat } = stats - stat.checkParentPaths(src, srcStat, dest, 'copy', err => { - if (err) return cb(err) - if (opts.filter) return handleFilter(checkParentDir, destStat, src, dest, opts, cb) - return checkParentDir(destStat, src, dest, opts, cb) - }) - }) -} + const { srcStat, destStat } = await stat.checkPaths(src, dest, 'copy', opts) -function checkParentDir (destStat, src, dest, opts, cb) { + await stat.checkParentPaths(src, srcStat, dest, 'copy') + + const include = await runFilter(src, dest, opts) + + if (!include) return + + // check if the parent of dest exists, and create it if it doesn't exist const destParent = path.dirname(dest) - pathExists(destParent, (err, dirExists) => { - if (err) return cb(err) - if (dirExists) return startCopy(destStat, src, dest, opts, cb) - mkdirp(destParent, err => { - if (err) return cb(err) - return startCopy(destStat, src, dest, opts, cb) - }) - }) + const dirExists = await pathExists(destParent) + if (!dirExists) { + await mkdirs(destParent) + } + + await getStatsAndPerformCopy(destStat, src, dest, opts) } -function handleFilter (onInclude, destStat, src, dest, opts, cb) { - Promise.resolve(opts.filter(src, dest)).then(include => { - if (include) return onInclude(destStat, src, dest, opts, cb) - return cb() - }, error => cb(error)) +async function runFilter (src, dest, opts) { + if (!opts.filter) return true + return opts.filter(src, dest) } -function startCopy (destStat, src, dest, opts, cb) { - if (opts.filter) return handleFilter(getStats, destStat, src, dest, opts, cb) - return getStats(destStat, src, dest, opts, cb) +async function getStatsAndPerformCopy (destStat, src, dest, opts) { + const statFn = opts.dereference ? fs.stat : fs.lstat + const srcStat = await statFn(src) + + if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts) + + if ( + srcStat.isFile() || + srcStat.isCharacterDevice() || + srcStat.isBlockDevice() + ) return onFile(srcStat, destStat, src, dest, opts) + + if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts) + if (srcStat.isSocket()) throw new Error(`Cannot copy a socket file: ${src}`) + if (srcStat.isFIFO()) throw new Error(`Cannot copy a FIFO pipe: ${src}`) + throw new Error(`Unknown file: ${src}`) } -function getStats (destStat, src, dest, opts, cb) { - const stat = opts.dereference ? fs.stat : fs.lstat - stat(src, (err, srcStat) => { - if (err) return cb(err) +async function onFile (srcStat, destStat, src, dest, opts) { + if (!destStat) return copyFile(srcStat, src, dest, opts) - if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts, cb) - else if (srcStat.isFile() || - srcStat.isCharacterDevice() || - srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts, cb) - else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts, cb) - }) -} - -function onFile (srcStat, destStat, src, dest, opts, cb) { - if (!destStat) return copyFile(srcStat, src, dest, opts, cb) - return mayCopyFile(srcStat, src, dest, opts, cb) -} - -function mayCopyFile (srcStat, src, dest, opts, cb) { if (opts.overwrite) { - fs.unlink(dest, err => { - if (err) return cb(err) - return copyFile(srcStat, src, dest, opts, cb) - }) - } else if (opts.errorOnExist) { - return cb(new Error(`'${dest}' already exists`)) - } else return cb() -} - -function copyFile (srcStat, src, dest, opts, cb) { - if (typeof fs.copyFile === 'function') { - return fs.copyFile(src, dest, err => { - if (err) return cb(err) - return setDestModeAndTimestamps(srcStat, dest, opts, cb) - }) + await fs.unlink(dest) + return copyFile(srcStat, src, dest, opts) } - return copyFileFallback(srcStat, src, dest, opts, cb) -} - -function copyFileFallback (srcStat, src, dest, opts, cb) { - const rs = fs.createReadStream(src) - rs.on('error', err => cb(err)).once('open', () => { - const ws = fs.createWriteStream(dest, { mode: srcStat.mode }) - ws.on('error', err => cb(err)) - .on('open', () => rs.pipe(ws)) - .once('close', () => setDestModeAndTimestamps(srcStat, dest, opts, cb)) - }) -} - -function setDestModeAndTimestamps (srcStat, dest, opts, cb) { - fs.chmod(dest, srcStat.mode, err => { - if (err) return cb(err) - if (opts.preserveTimestamps) { - return utimes(dest, srcStat.atime, srcStat.mtime, cb) - } - return cb() - }) -} - -function onDir (srcStat, destStat, src, dest, opts, cb) { - if (!destStat) return mkDirAndCopy(srcStat, src, dest, opts, cb) - if (destStat && !destStat.isDirectory()) { - return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`)) + if (opts.errorOnExist) { + throw new Error(`'${dest}' already exists`) } - return copyDir(src, dest, opts, cb) } -function mkDirAndCopy (srcStat, src, dest, opts, cb) { - fs.mkdir(dest, err => { - if (err) return cb(err) - copyDir(src, dest, opts, err => { - if (err) return cb(err) - return fs.chmod(dest, srcStat.mode, cb) - }) - }) -} - -function copyDir (src, dest, opts, cb) { - fs.readdir(src, (err, items) => { - if (err) return cb(err) - return copyDirItems(items, src, dest, opts, cb) - }) -} - -function copyDirItems (items, src, dest, opts, cb) { - const item = items.pop() - if (!item) return cb() - return copyDirItem(items, item, src, dest, opts, cb) -} - -function copyDirItem (items, item, src, dest, opts, cb) { - const srcItem = path.join(src, item) - const destItem = path.join(dest, item) - stat.checkPaths(srcItem, destItem, 'copy', (err, stats) => { - if (err) return cb(err) - const { destStat } = stats - startCopy(destStat, srcItem, destItem, opts, err => { - if (err) return cb(err) - return copyDirItems(items, src, dest, opts, cb) - }) - }) -} - -function onLink (destStat, src, dest, opts, cb) { - fs.readlink(src, (err, resolvedSrc) => { - if (err) return cb(err) - if (opts.dereference) { - resolvedSrc = path.resolve(process.cwd(), resolvedSrc) +async function copyFile (srcStat, src, dest, opts) { + await fs.copyFile(src, dest) + if (opts.preserveTimestamps) { + // Make sure the file is writable before setting the timestamp + // otherwise open fails with EPERM when invoked with 'r+' + // (through utimes call) + if (fileIsNotWritable(srcStat.mode)) { + await makeFileWritable(dest, srcStat.mode) } - if (!destStat) { - return fs.symlink(resolvedSrc, dest, cb) - } else { - fs.readlink(dest, (err, resolvedDest) => { - if (err) { - // dest exists and is a regular file or directory, - // Windows may throw UNKNOWN error. If dest already exists, - // fs throws error anyway, so no need to guard against it here. - if (err.code === 'EINVAL' || err.code === 'UNKNOWN') return fs.symlink(resolvedSrc, dest, cb) - return cb(err) - } - if (opts.dereference) { - resolvedDest = path.resolve(process.cwd(), resolvedDest) - } - if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) { - return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`)) - } + // Set timestamps and mode correspondingly - // do not copy if src is a subdir of dest since unlinking - // dest in this case would result in removing src contents - // and therefore a broken symlink would be created. - if (destStat.isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) { - return cb(new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`)) - } - return copyLink(resolvedSrc, dest, cb) - }) - } - }) + // Note that The initial srcStat.atime cannot be trusted + // because it is modified by the read(2) system call + // (See https://nodejs.org/api/fs.html#fs_stat_time_values) + const updatedSrcStat = await fs.stat(src) + await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime) + } + + return fs.chmod(dest, srcStat.mode) } -function copyLink (resolvedSrc, dest, cb) { - fs.unlink(dest, err => { - if (err) return cb(err) - return fs.symlink(resolvedSrc, dest, cb) - }) +function fileIsNotWritable (srcMode) { + return (srcMode & 0o200) === 0 +} + +function makeFileWritable (dest, srcMode) { + return fs.chmod(dest, srcMode | 0o200) +} + +async function onDir (srcStat, destStat, src, dest, opts) { + // the dest directory might not exist, create it + if (!destStat) { + await fs.mkdir(dest) + } + + const items = await fs.readdir(src) + + // loop through the files in the current directory to copy everything + await Promise.all(items.map(async item => { + const srcItem = path.join(src, item) + const destItem = path.join(dest, item) + + // skip the item if it is matches by the filter function + const include = await runFilter(srcItem, destItem, opts) + if (!include) return + + const { destStat } = await stat.checkPaths(srcItem, destItem, 'copy', opts) + + // If the item is a copyable file, `getStatsAndPerformCopy` will copy it + // If the item is a directory, `getStatsAndPerformCopy` will call `onDir` recursively + return getStatsAndPerformCopy(destStat, srcItem, destItem, opts) + })) + + if (!destStat) { + await fs.chmod(dest, srcStat.mode) + } +} + +async function onLink (destStat, src, dest, opts) { + let resolvedSrc = await fs.readlink(src) + if (opts.dereference) { + resolvedSrc = path.resolve(process.cwd(), resolvedSrc) + } + if (!destStat) { + return fs.symlink(resolvedSrc, dest) + } + + let resolvedDest = null + try { + resolvedDest = await fs.readlink(dest) + } catch (e) { + // dest exists and is a regular file or directory, + // Windows may throw UNKNOWN error. If dest already exists, + // fs throws error anyway, so no need to guard against it here. + if (e.code === 'EINVAL' || e.code === 'UNKNOWN') return fs.symlink(resolvedSrc, dest) + throw e + } + if (opts.dereference) { + resolvedDest = path.resolve(process.cwd(), resolvedDest) + } + if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) { + throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`) + } + + // do not copy if src is a subdir of dest since unlinking + // dest in this case would result in removing src contents + // and therefore a broken symlink would be created. + if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) { + throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`) + } + + // copy the link + await fs.unlink(dest) + return fs.symlink(resolvedSrc, dest) } module.exports = copy diff --git a/Scripts/node_modules/fs-extra/lib/copy/index.js b/Scripts/node_modules/fs-extra/lib/copy/index.js index b7e4f7f8..2e31d278 100644 --- a/Scripts/node_modules/fs-extra/lib/copy/index.js +++ b/Scripts/node_modules/fs-extra/lib/copy/index.js @@ -1,6 +1,7 @@ 'use strict' -const u = require('universalify').fromCallback +const u = require('universalify').fromPromise module.exports = { - copy: u(require('./copy')) + copy: u(require('./copy')), + copySync: require('./copy-sync') } diff --git a/Scripts/node_modules/fs-extra/lib/empty/index.js b/Scripts/node_modules/fs-extra/lib/empty/index.js index 204d53ba..b4a2e823 100644 --- a/Scripts/node_modules/fs-extra/lib/empty/index.js +++ b/Scripts/node_modules/fs-extra/lib/empty/index.js @@ -1,36 +1,27 @@ 'use strict' -const u = require('universalify').fromCallback -const fs = require('graceful-fs') +const u = require('universalify').fromPromise +const fs = require('../fs') const path = require('path') const mkdir = require('../mkdirs') const remove = require('../remove') -const emptyDir = u(function emptyDir (dir, callback) { - callback = callback || function () {} - fs.readdir(dir, (err, items) => { - if (err) return mkdir.mkdirs(dir, callback) +const emptyDir = u(async function emptyDir (dir) { + let items + try { + items = await fs.readdir(dir) + } catch { + return mkdir.mkdirs(dir) + } - items = items.map(item => path.join(dir, item)) - - deleteItem() - - function deleteItem () { - const item = items.pop() - if (!item) return callback() - remove.remove(item, err => { - if (err) return callback(err) - deleteItem() - }) - } - }) + return Promise.all(items.map(item => remove.remove(path.join(dir, item)))) }) function emptyDirSync (dir) { let items try { items = fs.readdirSync(dir) - } catch (err) { + } catch { return mkdir.mkdirsSync(dir) } diff --git a/Scripts/node_modules/fs-extra/lib/ensure/file.js b/Scripts/node_modules/fs-extra/lib/ensure/file.js index 67eed301..a55c2d96 100644 --- a/Scripts/node_modules/fs-extra/lib/ensure/file.js +++ b/Scripts/node_modules/fs-extra/lib/ensure/file.js @@ -1,43 +1,60 @@ 'use strict' -const u = require('universalify').fromCallback +const u = require('universalify').fromPromise const path = require('path') -const fs = require('graceful-fs') +const fs = require('../fs') const mkdir = require('../mkdirs') -const pathExists = require('../path-exists').pathExists -function createFile (file, callback) { - function makeFile () { - fs.writeFile(file, '', err => { - if (err) return callback(err) - callback() - }) +async function createFile (file) { + let stats + try { + stats = await fs.stat(file) + } catch { } + if (stats && stats.isFile()) return + + const dir = path.dirname(file) + + let dirStats = null + try { + dirStats = await fs.stat(dir) + } catch (err) { + // if the directory doesn't exist, make it + if (err.code === 'ENOENT') { + await mkdir.mkdirs(dir) + await fs.writeFile(file, '') + return + } else { + throw err + } } - fs.stat(file, (err, stats) => { // eslint-disable-line handle-callback-err - if (!err && stats.isFile()) return callback() - const dir = path.dirname(file) - pathExists(dir, (err, dirExists) => { - if (err) return callback(err) - if (dirExists) return makeFile() - mkdir.mkdirs(dir, err => { - if (err) return callback(err) - makeFile() - }) - }) - }) + if (dirStats.isDirectory()) { + await fs.writeFile(file, '') + } else { + // parent is not a directory + // This is just to cause an internal ENOTDIR error to be thrown + await fs.readdir(dir) + } } function createFileSync (file) { let stats try { stats = fs.statSync(file) - } catch (e) {} + } catch { } if (stats && stats.isFile()) return const dir = path.dirname(file) - if (!fs.existsSync(dir)) { - mkdir.mkdirsSync(dir) + try { + if (!fs.statSync(dir).isDirectory()) { + // parent is not a directory + // This is just to cause an internal ENOTDIR error to be thrown + fs.readdirSync(dir) + } + } catch (err) { + // If the stat call above failed because the directory doesn't exist, create it + if (err && err.code === 'ENOENT') mkdir.mkdirsSync(dir) + else throw err } fs.writeFileSync(file, '') diff --git a/Scripts/node_modules/fs-extra/lib/ensure/index.js b/Scripts/node_modules/fs-extra/lib/ensure/index.js index c1f67b71..ecbcdd0b 100644 --- a/Scripts/node_modules/fs-extra/lib/ensure/index.js +++ b/Scripts/node_modules/fs-extra/lib/ensure/index.js @@ -1,23 +1,23 @@ 'use strict' -const file = require('./file') -const link = require('./link') -const symlink = require('./symlink') +const { createFile, createFileSync } = require('./file') +const { createLink, createLinkSync } = require('./link') +const { createSymlink, createSymlinkSync } = require('./symlink') module.exports = { // file - createFile: file.createFile, - createFileSync: file.createFileSync, - ensureFile: file.createFile, - ensureFileSync: file.createFileSync, + createFile, + createFileSync, + ensureFile: createFile, + ensureFileSync: createFileSync, // link - createLink: link.createLink, - createLinkSync: link.createLinkSync, - ensureLink: link.createLink, - ensureLinkSync: link.createLinkSync, + createLink, + createLinkSync, + ensureLink: createLink, + ensureLinkSync: createLinkSync, // symlink - createSymlink: symlink.createSymlink, - createSymlinkSync: symlink.createSymlinkSync, - ensureSymlink: symlink.createSymlink, - ensureSymlinkSync: symlink.createSymlinkSync + createSymlink, + createSymlinkSync, + ensureSymlink: createSymlink, + ensureSymlinkSync: createSymlinkSync } diff --git a/Scripts/node_modules/fs-extra/lib/ensure/link.js b/Scripts/node_modules/fs-extra/lib/ensure/link.js index 2cd41962..c3d1c694 100644 --- a/Scripts/node_modules/fs-extra/lib/ensure/link.js +++ b/Scripts/node_modules/fs-extra/lib/ensure/link.js @@ -1,47 +1,50 @@ 'use strict' -const u = require('universalify').fromCallback +const u = require('universalify').fromPromise const path = require('path') -const fs = require('graceful-fs') +const fs = require('../fs') const mkdir = require('../mkdirs') -const pathExists = require('../path-exists').pathExists +const { pathExists } = require('../path-exists') +const { areIdentical } = require('../util/stat') -function createLink (srcpath, dstpath, callback) { - function makeLink (srcpath, dstpath) { - fs.link(srcpath, dstpath, err => { - if (err) return callback(err) - callback(null) - }) +async function createLink (srcpath, dstpath) { + let dstStat + try { + dstStat = await fs.lstat(dstpath) + } catch { + // ignore error } - pathExists(dstpath, (err, destinationExists) => { - if (err) return callback(err) - if (destinationExists) return callback(null) - fs.lstat(srcpath, (err) => { - if (err) { - err.message = err.message.replace('lstat', 'ensureLink') - return callback(err) - } + let srcStat + try { + srcStat = await fs.lstat(srcpath) + } catch (err) { + err.message = err.message.replace('lstat', 'ensureLink') + throw err + } - const dir = path.dirname(dstpath) - pathExists(dir, (err, dirExists) => { - if (err) return callback(err) - if (dirExists) return makeLink(srcpath, dstpath) - mkdir.mkdirs(dir, err => { - if (err) return callback(err) - makeLink(srcpath, dstpath) - }) - }) - }) - }) + if (dstStat && areIdentical(srcStat, dstStat)) return + + const dir = path.dirname(dstpath) + + const dirExists = await pathExists(dir) + + if (!dirExists) { + await mkdir.mkdirs(dir) + } + + await fs.link(srcpath, dstpath) } function createLinkSync (srcpath, dstpath) { - const destinationExists = fs.existsSync(dstpath) - if (destinationExists) return undefined + let dstStat + try { + dstStat = fs.lstatSync(dstpath) + } catch {} try { - fs.lstatSync(srcpath) + const srcStat = fs.lstatSync(srcpath) + if (dstStat && areIdentical(srcStat, dstStat)) return } catch (err) { err.message = err.message.replace('lstat', 'ensureLink') throw err diff --git a/Scripts/node_modules/fs-extra/lib/ensure/symlink-paths.js b/Scripts/node_modules/fs-extra/lib/ensure/symlink-paths.js index 24e7e1c6..85dda475 100644 --- a/Scripts/node_modules/fs-extra/lib/ensure/symlink-paths.js +++ b/Scripts/node_modules/fs-extra/lib/ensure/symlink-paths.js @@ -1,8 +1,10 @@ 'use strict' const path = require('path') -const fs = require('graceful-fs') -const pathExists = require('../path-exists').pathExists +const fs = require('../fs') +const { pathExists } = require('../path-exists') + +const u = require('universalify').fromPromise /** * Function that returns two types of paths, one relative to symlink, and one @@ -26,74 +28,74 @@ const pathExists = require('../path-exists').pathExists * the ability to pass in `relative to current working direcotry` paths. */ -function symlinkPaths (srcpath, dstpath, callback) { +async function symlinkPaths (srcpath, dstpath) { if (path.isAbsolute(srcpath)) { - return fs.lstat(srcpath, (err) => { - if (err) { - err.message = err.message.replace('lstat', 'ensureSymlink') - return callback(err) - } - return callback(null, { - 'toCwd': srcpath, - 'toDst': srcpath - }) - }) - } else { - const dstdir = path.dirname(dstpath) - const relativeToDst = path.join(dstdir, srcpath) - return pathExists(relativeToDst, (err, exists) => { - if (err) return callback(err) - if (exists) { - return callback(null, { - 'toCwd': relativeToDst, - 'toDst': srcpath - }) - } else { - return fs.lstat(srcpath, (err) => { - if (err) { - err.message = err.message.replace('lstat', 'ensureSymlink') - return callback(err) - } - return callback(null, { - 'toCwd': srcpath, - 'toDst': path.relative(dstdir, srcpath) - }) - }) - } - }) + try { + await fs.lstat(srcpath) + } catch (err) { + err.message = err.message.replace('lstat', 'ensureSymlink') + throw err + } + + return { + toCwd: srcpath, + toDst: srcpath + } + } + + const dstdir = path.dirname(dstpath) + const relativeToDst = path.join(dstdir, srcpath) + + const exists = await pathExists(relativeToDst) + if (exists) { + return { + toCwd: relativeToDst, + toDst: srcpath + } + } + + try { + await fs.lstat(srcpath) + } catch (err) { + err.message = err.message.replace('lstat', 'ensureSymlink') + throw err + } + + return { + toCwd: srcpath, + toDst: path.relative(dstdir, srcpath) } } function symlinkPathsSync (srcpath, dstpath) { - let exists if (path.isAbsolute(srcpath)) { - exists = fs.existsSync(srcpath) + const exists = fs.existsSync(srcpath) if (!exists) throw new Error('absolute srcpath does not exist') return { - 'toCwd': srcpath, - 'toDst': srcpath + toCwd: srcpath, + toDst: srcpath } - } else { - const dstdir = path.dirname(dstpath) - const relativeToDst = path.join(dstdir, srcpath) - exists = fs.existsSync(relativeToDst) - if (exists) { - return { - 'toCwd': relativeToDst, - 'toDst': srcpath - } - } else { - exists = fs.existsSync(srcpath) - if (!exists) throw new Error('relative srcpath does not exist') - return { - 'toCwd': srcpath, - 'toDst': path.relative(dstdir, srcpath) - } + } + + const dstdir = path.dirname(dstpath) + const relativeToDst = path.join(dstdir, srcpath) + const exists = fs.existsSync(relativeToDst) + if (exists) { + return { + toCwd: relativeToDst, + toDst: srcpath } } + + const srcExists = fs.existsSync(srcpath) + if (!srcExists) throw new Error('relative srcpath does not exist') + return { + toCwd: srcpath, + toDst: path.relative(dstdir, srcpath) + } } module.exports = { - symlinkPaths, + symlinkPaths: u(symlinkPaths), symlinkPathsSync } diff --git a/Scripts/node_modules/fs-extra/lib/ensure/symlink-type.js b/Scripts/node_modules/fs-extra/lib/ensure/symlink-type.js index 4f8787c2..518558e5 100644 --- a/Scripts/node_modules/fs-extra/lib/ensure/symlink-type.js +++ b/Scripts/node_modules/fs-extra/lib/ensure/symlink-type.js @@ -1,31 +1,34 @@ 'use strict' -const fs = require('graceful-fs') +const fs = require('../fs') +const u = require('universalify').fromPromise -function symlinkType (srcpath, type, callback) { - callback = (typeof type === 'function') ? type : callback - type = (typeof type === 'function') ? false : type - if (type) return callback(null, type) - fs.lstat(srcpath, (err, stats) => { - if (err) return callback(null, 'file') - type = (stats && stats.isDirectory()) ? 'dir' : 'file' - callback(null, type) - }) +async function symlinkType (srcpath, type) { + if (type) return type + + let stats + try { + stats = await fs.lstat(srcpath) + } catch { + return 'file' + } + + return (stats && stats.isDirectory()) ? 'dir' : 'file' } function symlinkTypeSync (srcpath, type) { - let stats - if (type) return type + + let stats try { stats = fs.lstatSync(srcpath) - } catch (e) { + } catch { return 'file' } return (stats && stats.isDirectory()) ? 'dir' : 'file' } module.exports = { - symlinkType, + symlinkType: u(symlinkType), symlinkTypeSync } diff --git a/Scripts/node_modules/fs-extra/lib/ensure/symlink.js b/Scripts/node_modules/fs-extra/lib/ensure/symlink.js index fe68b799..a3d5f578 100644 --- a/Scripts/node_modules/fs-extra/lib/ensure/symlink.js +++ b/Scripts/node_modules/fs-extra/lib/ensure/symlink.js @@ -1,51 +1,55 @@ 'use strict' -const u = require('universalify').fromCallback +const u = require('universalify').fromPromise const path = require('path') -const fs = require('graceful-fs') -const _mkdirs = require('../mkdirs') -const mkdirs = _mkdirs.mkdirs -const mkdirsSync = _mkdirs.mkdirsSync +const fs = require('../fs') -const _symlinkPaths = require('./symlink-paths') -const symlinkPaths = _symlinkPaths.symlinkPaths -const symlinkPathsSync = _symlinkPaths.symlinkPathsSync +const { mkdirs, mkdirsSync } = require('../mkdirs') -const _symlinkType = require('./symlink-type') -const symlinkType = _symlinkType.symlinkType -const symlinkTypeSync = _symlinkType.symlinkTypeSync +const { symlinkPaths, symlinkPathsSync } = require('./symlink-paths') +const { symlinkType, symlinkTypeSync } = require('./symlink-type') -const pathExists = require('../path-exists').pathExists +const { pathExists } = require('../path-exists') -function createSymlink (srcpath, dstpath, type, callback) { - callback = (typeof type === 'function') ? type : callback - type = (typeof type === 'function') ? false : type +const { areIdentical } = require('../util/stat') - pathExists(dstpath, (err, destinationExists) => { - if (err) return callback(err) - if (destinationExists) return callback(null) - symlinkPaths(srcpath, dstpath, (err, relative) => { - if (err) return callback(err) - srcpath = relative.toDst - symlinkType(relative.toCwd, type, (err, type) => { - if (err) return callback(err) - const dir = path.dirname(dstpath) - pathExists(dir, (err, dirExists) => { - if (err) return callback(err) - if (dirExists) return fs.symlink(srcpath, dstpath, type, callback) - mkdirs(dir, err => { - if (err) return callback(err) - fs.symlink(srcpath, dstpath, type, callback) - }) - }) - }) - }) - }) +async function createSymlink (srcpath, dstpath, type) { + let stats + try { + stats = await fs.lstat(dstpath) + } catch { } + + if (stats && stats.isSymbolicLink()) { + const [srcStat, dstStat] = await Promise.all([ + fs.stat(srcpath), + fs.stat(dstpath) + ]) + + if (areIdentical(srcStat, dstStat)) return + } + + const relative = await symlinkPaths(srcpath, dstpath) + srcpath = relative.toDst + const toType = await symlinkType(relative.toCwd, type) + const dir = path.dirname(dstpath) + + if (!(await pathExists(dir))) { + await mkdirs(dir) + } + + return fs.symlink(srcpath, dstpath, toType) } function createSymlinkSync (srcpath, dstpath, type) { - const destinationExists = fs.existsSync(dstpath) - if (destinationExists) return undefined + let stats + try { + stats = fs.lstatSync(dstpath) + } catch { } + if (stats && stats.isSymbolicLink()) { + const srcStat = fs.statSync(srcpath) + const dstStat = fs.statSync(dstpath) + if (areIdentical(srcStat, dstStat)) return + } const relative = symlinkPathsSync(srcpath, dstpath) srcpath = relative.toDst diff --git a/Scripts/node_modules/fs-extra/lib/esm.mjs b/Scripts/node_modules/fs-extra/lib/esm.mjs new file mode 100644 index 00000000..27b7a1f7 --- /dev/null +++ b/Scripts/node_modules/fs-extra/lib/esm.mjs @@ -0,0 +1,68 @@ +import _copy from './copy/index.js' +import _empty from './empty/index.js' +import _ensure from './ensure/index.js' +import _json from './json/index.js' +import _mkdirs from './mkdirs/index.js' +import _move from './move/index.js' +import _outputFile from './output-file/index.js' +import _pathExists from './path-exists/index.js' +import _remove from './remove/index.js' + +// NOTE: Only exports fs-extra's functions; fs functions must be imported from "node:fs" or "node:fs/promises" + +export const copy = _copy.copy +export const copySync = _copy.copySync +export const emptyDirSync = _empty.emptyDirSync +export const emptydirSync = _empty.emptydirSync +export const emptyDir = _empty.emptyDir +export const emptydir = _empty.emptydir +export const createFile = _ensure.createFile +export const createFileSync = _ensure.createFileSync +export const ensureFile = _ensure.ensureFile +export const ensureFileSync = _ensure.ensureFileSync +export const createLink = _ensure.createLink +export const createLinkSync = _ensure.createLinkSync +export const ensureLink = _ensure.ensureLink +export const ensureLinkSync = _ensure.ensureLinkSync +export const createSymlink = _ensure.createSymlink +export const createSymlinkSync = _ensure.createSymlinkSync +export const ensureSymlink = _ensure.ensureSymlink +export const ensureSymlinkSync = _ensure.ensureSymlinkSync +export const readJson = _json.readJson +export const readJSON = _json.readJSON +export const readJsonSync = _json.readJsonSync +export const readJSONSync = _json.readJSONSync +export const writeJson = _json.writeJson +export const writeJSON = _json.writeJSON +export const writeJsonSync = _json.writeJsonSync +export const writeJSONSync = _json.writeJSONSync +export const outputJson = _json.outputJson +export const outputJSON = _json.outputJSON +export const outputJsonSync = _json.outputJsonSync +export const outputJSONSync = _json.outputJSONSync +export const mkdirs = _mkdirs.mkdirs +export const mkdirsSync = _mkdirs.mkdirsSync +export const mkdirp = _mkdirs.mkdirp +export const mkdirpSync = _mkdirs.mkdirpSync +export const ensureDir = _mkdirs.ensureDir +export const ensureDirSync = _mkdirs.ensureDirSync +export const move = _move.move +export const moveSync = _move.moveSync +export const outputFile = _outputFile.outputFile +export const outputFileSync = _outputFile.outputFileSync +export const pathExists = _pathExists.pathExists +export const pathExistsSync = _pathExists.pathExistsSync +export const remove = _remove.remove +export const removeSync = _remove.removeSync + +export default { + ..._copy, + ..._empty, + ..._ensure, + ..._json, + ..._mkdirs, + ..._move, + ..._outputFile, + ..._pathExists, + ..._remove +} diff --git a/Scripts/node_modules/fs-extra/lib/fs/index.js b/Scripts/node_modules/fs-extra/lib/fs/index.js index a7b22922..3c3ec511 100644 --- a/Scripts/node_modules/fs-extra/lib/fs/index.js +++ b/Scripts/node_modules/fs-extra/lib/fs/index.js @@ -18,18 +18,20 @@ const api = [ 'fsync', 'ftruncate', 'futimes', - 'lchown', 'lchmod', + 'lchown', 'link', 'lstat', 'mkdir', 'mkdtemp', 'open', - 'readFile', + 'opendir', 'readdir', + 'readFile', 'readlink', 'realpath', 'rename', + 'rm', 'rmdir', 'stat', 'symlink', @@ -39,21 +41,13 @@ const api = [ 'writeFile' ].filter(key => { // Some commands are not available on some systems. Ex: - // fs.copyFile was added in Node.js v8.5.0 - // fs.mkdtemp was added in Node.js v5.10.0 + // fs.cp was added in Node.js v16.7.0 // fs.lchown is not available on at least some Linux return typeof fs[key] === 'function' }) -// Export all keys: -Object.keys(fs).forEach(key => { - if (key === 'promises') { - // fs.promises is a getter property that triggers ExperimentalWarning - // Don't re-export it here, the getter is defined in "lib/index.js" - return - } - exports[key] = fs[key] -}) +// Export cloned fs: +Object.assign(exports, fs) // Universalify async methods: api.forEach(method => { @@ -71,7 +65,7 @@ exports.exists = function (filename, callback) { }) } -// fs.read() & fs.write need special treatment due to multiple callback args +// fs.read(), fs.write(), fs.readv(), & fs.writev() need special treatment due to multiple callback args exports.read = function (fd, buffer, offset, length, position, callback) { if (typeof callback === 'function') { @@ -103,7 +97,44 @@ exports.write = function (fd, buffer, ...args) { }) } -// fs.realpath.native only available in Node v9.2+ +// Function signature is +// s.readv(fd, buffers[, position], callback) +// We need to handle the optional arg, so we use ...args +exports.readv = function (fd, buffers, ...args) { + if (typeof args[args.length - 1] === 'function') { + return fs.readv(fd, buffers, ...args) + } + + return new Promise((resolve, reject) => { + fs.readv(fd, buffers, ...args, (err, bytesRead, buffers) => { + if (err) return reject(err) + resolve({ bytesRead, buffers }) + }) + }) +} + +// Function signature is +// s.writev(fd, buffers[, position], callback) +// We need to handle the optional arg, so we use ...args +exports.writev = function (fd, buffers, ...args) { + if (typeof args[args.length - 1] === 'function') { + return fs.writev(fd, buffers, ...args) + } + + return new Promise((resolve, reject) => { + fs.writev(fd, buffers, ...args, (err, bytesWritten, buffers) => { + if (err) return reject(err) + resolve({ bytesWritten, buffers }) + }) + }) +} + +// fs.realpath.native sometimes not available if fs is monkey-patched if (typeof fs.realpath.native === 'function') { exports.realpath.native = u(fs.realpath.native) +} else { + process.emitWarning( + 'fs.realpath.native is not a function. Is fs being monkey-patched?', + 'Warning', 'fs-extra-WARN0003' + ) } diff --git a/Scripts/node_modules/fs-extra/lib/index.js b/Scripts/node_modules/fs-extra/lib/index.js index 40e37b18..da6711a4 100644 --- a/Scripts/node_modules/fs-extra/lib/index.js +++ b/Scripts/node_modules/fs-extra/lib/index.js @@ -1,28 +1,16 @@ 'use strict' -module.exports = Object.assign( - {}, +module.exports = { // Export promiseified graceful-fs: - require('./fs'), + ...require('./fs'), // Export extra methods: - require('./copy-sync'), - require('./copy'), - require('./empty'), - require('./ensure'), - require('./json'), - require('./mkdirs'), - require('./move-sync'), - require('./move'), - require('./output'), - require('./path-exists'), - require('./remove') -) - -// Export fs.promises as a getter property so that we don't trigger -// ExperimentalWarning before fs.promises is actually accessed. -const fs = require('fs') -if (Object.getOwnPropertyDescriptor(fs, 'promises')) { - Object.defineProperty(module.exports, 'promises', { - get () { return fs.promises } - }) + ...require('./copy'), + ...require('./empty'), + ...require('./ensure'), + ...require('./json'), + ...require('./mkdirs'), + ...require('./move'), + ...require('./output-file'), + ...require('./path-exists'), + ...require('./remove') } diff --git a/Scripts/node_modules/fs-extra/lib/json/index.js b/Scripts/node_modules/fs-extra/lib/json/index.js index bae68d45..900126ad 100644 --- a/Scripts/node_modules/fs-extra/lib/json/index.js +++ b/Scripts/node_modules/fs-extra/lib/json/index.js @@ -1,6 +1,6 @@ 'use strict' -const u = require('universalify').fromCallback +const u = require('universalify').fromPromise const jsonFile = require('./jsonfile') jsonFile.outputJson = u(require('./output-json')) diff --git a/Scripts/node_modules/fs-extra/lib/json/jsonfile.js b/Scripts/node_modules/fs-extra/lib/json/jsonfile.js index 59cdb3e4..f11d34d6 100644 --- a/Scripts/node_modules/fs-extra/lib/json/jsonfile.js +++ b/Scripts/node_modules/fs-extra/lib/json/jsonfile.js @@ -1,12 +1,11 @@ 'use strict' -const u = require('universalify').fromCallback const jsonFile = require('jsonfile') module.exports = { // jsonfile exports - readJson: u(jsonFile.readFile), + readJson: jsonFile.readFile, readJsonSync: jsonFile.readFileSync, - writeJson: u(jsonFile.writeFile), + writeJson: jsonFile.writeFile, writeJsonSync: jsonFile.writeFileSync } diff --git a/Scripts/node_modules/fs-extra/lib/json/output-json-sync.js b/Scripts/node_modules/fs-extra/lib/json/output-json-sync.js index 6f76710e..d4e564f2 100644 --- a/Scripts/node_modules/fs-extra/lib/json/output-json-sync.js +++ b/Scripts/node_modules/fs-extra/lib/json/output-json-sync.js @@ -1,18 +1,12 @@ 'use strict' -const fs = require('graceful-fs') -const path = require('path') -const mkdir = require('../mkdirs') -const jsonFile = require('./jsonfile') +const { stringify } = require('jsonfile/utils') +const { outputFileSync } = require('../output-file') function outputJsonSync (file, data, options) { - const dir = path.dirname(file) + const str = stringify(data, options) - if (!fs.existsSync(dir)) { - mkdir.mkdirsSync(dir) - } - - jsonFile.writeJsonSync(file, data, options) + outputFileSync(file, str, options) } module.exports = outputJsonSync diff --git a/Scripts/node_modules/fs-extra/lib/json/output-json.js b/Scripts/node_modules/fs-extra/lib/json/output-json.js index d45edb89..0afdeb63 100644 --- a/Scripts/node_modules/fs-extra/lib/json/output-json.js +++ b/Scripts/node_modules/fs-extra/lib/json/output-json.js @@ -1,27 +1,12 @@ 'use strict' -const path = require('path') -const mkdir = require('../mkdirs') -const pathExists = require('../path-exists').pathExists -const jsonFile = require('./jsonfile') +const { stringify } = require('jsonfile/utils') +const { outputFile } = require('../output-file') -function outputJson (file, data, options, callback) { - if (typeof options === 'function') { - callback = options - options = {} - } +async function outputJson (file, data, options = {}) { + const str = stringify(data, options) - const dir = path.dirname(file) - - pathExists(dir, (err, itDoes) => { - if (err) return callback(err) - if (itDoes) return jsonFile.writeJson(file, data, options, callback) - - mkdir.mkdirs(dir, err => { - if (err) return callback(err) - jsonFile.writeJson(file, data, options, callback) - }) - }) + await outputFile(file, str, options) } module.exports = outputJson diff --git a/Scripts/node_modules/fs-extra/lib/mkdirs/index.js b/Scripts/node_modules/fs-extra/lib/mkdirs/index.js index d6e7e5bf..9edecee0 100644 --- a/Scripts/node_modules/fs-extra/lib/mkdirs/index.js +++ b/Scripts/node_modules/fs-extra/lib/mkdirs/index.js @@ -1,14 +1,14 @@ 'use strict' -const u = require('universalify').fromCallback -const mkdirs = u(require('./mkdirs')) -const mkdirsSync = require('./mkdirs-sync') +const u = require('universalify').fromPromise +const { makeDir: _makeDir, makeDirSync } = require('./make-dir') +const makeDir = u(_makeDir) module.exports = { - mkdirs, - mkdirsSync, + mkdirs: makeDir, + mkdirsSync: makeDirSync, // alias - mkdirp: mkdirs, - mkdirpSync: mkdirsSync, - ensureDir: mkdirs, - ensureDirSync: mkdirsSync + mkdirp: makeDir, + mkdirpSync: makeDirSync, + ensureDir: makeDir, + ensureDirSync: makeDirSync } diff --git a/Scripts/node_modules/fs-extra/lib/mkdirs/make-dir.js b/Scripts/node_modules/fs-extra/lib/mkdirs/make-dir.js new file mode 100644 index 00000000..45ece64d --- /dev/null +++ b/Scripts/node_modules/fs-extra/lib/mkdirs/make-dir.js @@ -0,0 +1,27 @@ +'use strict' +const fs = require('../fs') +const { checkPath } = require('./utils') + +const getMode = options => { + const defaults = { mode: 0o777 } + if (typeof options === 'number') return options + return ({ ...defaults, ...options }).mode +} + +module.exports.makeDir = async (dir, options) => { + checkPath(dir) + + return fs.mkdir(dir, { + mode: getMode(options), + recursive: true + }) +} + +module.exports.makeDirSync = (dir, options) => { + checkPath(dir) + + return fs.mkdirSync(dir, { + mode: getMode(options), + recursive: true + }) +} diff --git a/Scripts/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js b/Scripts/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js deleted file mode 100644 index a34acb99..00000000 --- a/Scripts/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js +++ /dev/null @@ -1,54 +0,0 @@ -'use strict' - -const fs = require('graceful-fs') -const path = require('path') -const invalidWin32Path = require('./win32').invalidWin32Path - -const o777 = parseInt('0777', 8) - -function mkdirsSync (p, opts, made) { - if (!opts || typeof opts !== 'object') { - opts = { mode: opts } - } - - let mode = opts.mode - const xfs = opts.fs || fs - - if (process.platform === 'win32' && invalidWin32Path(p)) { - const errInval = new Error(p + ' contains invalid WIN32 path characters.') - errInval.code = 'EINVAL' - throw errInval - } - - if (mode === undefined) { - mode = o777 & (~process.umask()) - } - if (!made) made = null - - p = path.resolve(p) - - try { - xfs.mkdirSync(p, mode) - made = made || p - } catch (err0) { - if (err0.code === 'ENOENT') { - if (path.dirname(p) === p) throw err0 - made = mkdirsSync(path.dirname(p), opts, made) - mkdirsSync(p, opts, made) - } else { - // In the case of any other error, just see if there's a dir there - // already. If so, then hooray! If not, then something is borked. - let stat - try { - stat = xfs.statSync(p) - } catch (err1) { - throw err0 - } - if (!stat.isDirectory()) throw err0 - } - } - - return made -} - -module.exports = mkdirsSync diff --git a/Scripts/node_modules/fs-extra/lib/mkdirs/mkdirs.js b/Scripts/node_modules/fs-extra/lib/mkdirs/mkdirs.js deleted file mode 100644 index 18975337..00000000 --- a/Scripts/node_modules/fs-extra/lib/mkdirs/mkdirs.js +++ /dev/null @@ -1,63 +0,0 @@ -'use strict' - -const fs = require('graceful-fs') -const path = require('path') -const invalidWin32Path = require('./win32').invalidWin32Path - -const o777 = parseInt('0777', 8) - -function mkdirs (p, opts, callback, made) { - if (typeof opts === 'function') { - callback = opts - opts = {} - } else if (!opts || typeof opts !== 'object') { - opts = { mode: opts } - } - - if (process.platform === 'win32' && invalidWin32Path(p)) { - const errInval = new Error(p + ' contains invalid WIN32 path characters.') - errInval.code = 'EINVAL' - return callback(errInval) - } - - let mode = opts.mode - const xfs = opts.fs || fs - - if (mode === undefined) { - mode = o777 & (~process.umask()) - } - if (!made) made = null - - callback = callback || function () {} - p = path.resolve(p) - - xfs.mkdir(p, mode, er => { - if (!er) { - made = made || p - return callback(null, made) - } - switch (er.code) { - case 'ENOENT': - if (path.dirname(p) === p) return callback(er) - mkdirs(path.dirname(p), opts, (er, made) => { - if (er) callback(er, made) - else mkdirs(p, opts, callback, made) - }) - break - - // In the case of any other error, just see if there's a dir - // there already. If so, then hooray! If not, then something - // is borked. - default: - xfs.stat(p, (er2, stat) => { - // if the stat fails, then that's super weird. - // let the original error be the failure reason. - if (er2 || !stat.isDirectory()) callback(er, made) - else callback(null, made) - }) - break - } - }) -} - -module.exports = mkdirs diff --git a/Scripts/node_modules/fs-extra/lib/mkdirs/utils.js b/Scripts/node_modules/fs-extra/lib/mkdirs/utils.js new file mode 100644 index 00000000..a4059ad4 --- /dev/null +++ b/Scripts/node_modules/fs-extra/lib/mkdirs/utils.js @@ -0,0 +1,21 @@ +// Adapted from https://github.com/sindresorhus/make-dir +// Copyright (c) Sindre Sorhus (sindresorhus.com) +// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +'use strict' +const path = require('path') + +// https://github.com/nodejs/node/issues/8987 +// https://github.com/libuv/libuv/pull/1088 +module.exports.checkPath = function checkPath (pth) { + if (process.platform === 'win32') { + const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, '')) + + if (pathHasInvalidWinCharacters) { + const error = new Error(`Path contains invalid characters: ${pth}`) + error.code = 'EINVAL' + throw error + } + } +} diff --git a/Scripts/node_modules/fs-extra/lib/mkdirs/win32.js b/Scripts/node_modules/fs-extra/lib/mkdirs/win32.js deleted file mode 100644 index 99b3920f..00000000 --- a/Scripts/node_modules/fs-extra/lib/mkdirs/win32.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict' - -const path = require('path') - -// get drive on windows -function getRootPath (p) { - p = path.normalize(path.resolve(p)).split(path.sep) - if (p.length > 0) return p[0] - return null -} - -// http://stackoverflow.com/a/62888/10333 contains more accurate -// TODO: expand to include the rest -const INVALID_PATH_CHARS = /[<>:"|?*]/ - -function invalidWin32Path (p) { - const rp = getRootPath(p) - p = p.replace(rp, '') - return INVALID_PATH_CHARS.test(p) -} - -module.exports = { - getRootPath, - invalidWin32Path -} diff --git a/Scripts/node_modules/fs-extra/lib/move-sync/index.js b/Scripts/node_modules/fs-extra/lib/move-sync/index.js deleted file mode 100644 index af90b06b..00000000 --- a/Scripts/node_modules/fs-extra/lib/move-sync/index.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict' - -module.exports = { - moveSync: require('./move-sync') -} diff --git a/Scripts/node_modules/fs-extra/lib/move/index.js b/Scripts/node_modules/fs-extra/lib/move/index.js index 3785345b..5a2f1ccd 100644 --- a/Scripts/node_modules/fs-extra/lib/move/index.js +++ b/Scripts/node_modules/fs-extra/lib/move/index.js @@ -1,6 +1,7 @@ 'use strict' -const u = require('universalify').fromCallback +const u = require('universalify').fromPromise module.exports = { - move: u(require('./move')) + move: u(require('./move')), + moveSync: require('./move-sync') } diff --git a/Scripts/node_modules/fs-extra/lib/move-sync/move-sync.js b/Scripts/node_modules/fs-extra/lib/move/move-sync.js similarity index 62% rename from Scripts/node_modules/fs-extra/lib/move-sync/move-sync.js rename to Scripts/node_modules/fs-extra/lib/move/move-sync.js index 20f910cc..c456ab33 100644 --- a/Scripts/node_modules/fs-extra/lib/move-sync/move-sync.js +++ b/Scripts/node_modules/fs-extra/lib/move/move-sync.js @@ -2,7 +2,7 @@ const fs = require('graceful-fs') const path = require('path') -const copySync = require('../copy-sync').copySync +const copySync = require('../copy').copySync const removeSync = require('../remove').removeSync const mkdirpSync = require('../mkdirs').mkdirpSync const stat = require('../util/stat') @@ -11,13 +11,20 @@ function moveSync (src, dest, opts) { opts = opts || {} const overwrite = opts.overwrite || opts.clobber || false - const { srcStat } = stat.checkPathsSync(src, dest, 'move') + const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, 'move', opts) stat.checkParentPathsSync(src, srcStat, dest, 'move') - mkdirpSync(path.dirname(dest)) - return doRename(src, dest, overwrite) + if (!isParentRoot(dest)) mkdirpSync(path.dirname(dest)) + return doRename(src, dest, overwrite, isChangingCase) } -function doRename (src, dest, overwrite) { +function isParentRoot (dest) { + const parent = path.dirname(dest) + const parsedPath = path.parse(parent) + return parsedPath.root === parent +} + +function doRename (src, dest, overwrite, isChangingCase) { + if (isChangingCase) return rename(src, dest, overwrite) if (overwrite) { removeSync(dest) return rename(src, dest, overwrite) @@ -38,7 +45,8 @@ function rename (src, dest, overwrite) { function moveAcrossDevice (src, dest, overwrite) { const opts = { overwrite, - errorOnExist: true + errorOnExist: true, + preserveTimestamps: true } copySync(src, dest, opts) return removeSync(src) diff --git a/Scripts/node_modules/fs-extra/lib/move/move.js b/Scripts/node_modules/fs-extra/lib/move/move.js index fa3ea618..992bd0fc 100644 --- a/Scripts/node_modules/fs-extra/lib/move/move.js +++ b/Scripts/node_modules/fs-extra/lib/move/move.js @@ -1,65 +1,59 @@ 'use strict' -const fs = require('graceful-fs') +const fs = require('../fs') const path = require('path') -const copy = require('../copy').copy -const remove = require('../remove').remove -const mkdirp = require('../mkdirs').mkdirp -const pathExists = require('../path-exists').pathExists +const { copy } = require('../copy') +const { remove } = require('../remove') +const { mkdirp } = require('../mkdirs') +const { pathExists } = require('../path-exists') const stat = require('../util/stat') -function move (src, dest, opts, cb) { - if (typeof opts === 'function') { - cb = opts - opts = {} - } - +async function move (src, dest, opts = {}) { const overwrite = opts.overwrite || opts.clobber || false - stat.checkPaths(src, dest, 'move', (err, stats) => { - if (err) return cb(err) - const { srcStat } = stats - stat.checkParentPaths(src, srcStat, dest, 'move', err => { - if (err) return cb(err) - mkdirp(path.dirname(dest), err => { - if (err) return cb(err) - return doRename(src, dest, overwrite, cb) - }) - }) - }) -} + const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, 'move', opts) -function doRename (src, dest, overwrite, cb) { - if (overwrite) { - return remove(dest, err => { - if (err) return cb(err) - return rename(src, dest, overwrite, cb) - }) + await stat.checkParentPaths(src, srcStat, dest, 'move') + + // If the parent of dest is not root, make sure it exists before proceeding + const destParent = path.dirname(dest) + const parsedParentPath = path.parse(destParent) + if (parsedParentPath.root !== destParent) { + await mkdirp(destParent) } - pathExists(dest, (err, destExists) => { - if (err) return cb(err) - if (destExists) return cb(new Error('dest already exists.')) - return rename(src, dest, overwrite, cb) - }) + + return doRename(src, dest, overwrite, isChangingCase) } -function rename (src, dest, overwrite, cb) { - fs.rename(src, dest, err => { - if (!err) return cb() - if (err.code !== 'EXDEV') return cb(err) - return moveAcrossDevice(src, dest, overwrite, cb) - }) +async function doRename (src, dest, overwrite, isChangingCase) { + if (!isChangingCase) { + if (overwrite) { + await remove(dest) + } else if (await pathExists(dest)) { + throw new Error('dest already exists.') + } + } + + try { + // Try w/ rename first, and try copy + remove if EXDEV + await fs.rename(src, dest) + } catch (err) { + if (err.code !== 'EXDEV') { + throw err + } + await moveAcrossDevice(src, dest, overwrite) + } } -function moveAcrossDevice (src, dest, overwrite, cb) { +async function moveAcrossDevice (src, dest, overwrite) { const opts = { overwrite, - errorOnExist: true + errorOnExist: true, + preserveTimestamps: true } - copy(src, dest, opts, err => { - if (err) return cb(err) - return remove(src, cb) - }) + + await copy(src, dest, opts) + return remove(src) } module.exports = move diff --git a/Scripts/node_modules/fs-extra/lib/output-file/index.js b/Scripts/node_modules/fs-extra/lib/output-file/index.js new file mode 100644 index 00000000..a42d9436 --- /dev/null +++ b/Scripts/node_modules/fs-extra/lib/output-file/index.js @@ -0,0 +1,31 @@ +'use strict' + +const u = require('universalify').fromPromise +const fs = require('../fs') +const path = require('path') +const mkdir = require('../mkdirs') +const pathExists = require('../path-exists').pathExists + +async function outputFile (file, data, encoding = 'utf-8') { + const dir = path.dirname(file) + + if (!(await pathExists(dir))) { + await mkdir.mkdirs(dir) + } + + return fs.writeFile(file, data, encoding) +} + +function outputFileSync (file, ...args) { + const dir = path.dirname(file) + if (!fs.existsSync(dir)) { + mkdir.mkdirsSync(dir) + } + + fs.writeFileSync(file, ...args) +} + +module.exports = { + outputFile: u(outputFile), + outputFileSync +} diff --git a/Scripts/node_modules/fs-extra/lib/output/index.js b/Scripts/node_modules/fs-extra/lib/output/index.js deleted file mode 100644 index 92297ca3..00000000 --- a/Scripts/node_modules/fs-extra/lib/output/index.js +++ /dev/null @@ -1,40 +0,0 @@ -'use strict' - -const u = require('universalify').fromCallback -const fs = require('graceful-fs') -const path = require('path') -const mkdir = require('../mkdirs') -const pathExists = require('../path-exists').pathExists - -function outputFile (file, data, encoding, callback) { - if (typeof encoding === 'function') { - callback = encoding - encoding = 'utf8' - } - - const dir = path.dirname(file) - pathExists(dir, (err, itDoes) => { - if (err) return callback(err) - if (itDoes) return fs.writeFile(file, data, encoding, callback) - - mkdir.mkdirs(dir, err => { - if (err) return callback(err) - - fs.writeFile(file, data, encoding, callback) - }) - }) -} - -function outputFileSync (file, ...args) { - const dir = path.dirname(file) - if (fs.existsSync(dir)) { - return fs.writeFileSync(file, ...args) - } - mkdir.mkdirsSync(dir) - fs.writeFileSync(file, ...args) -} - -module.exports = { - outputFile: u(outputFile), - outputFileSync -} diff --git a/Scripts/node_modules/fs-extra/lib/remove/index.js b/Scripts/node_modules/fs-extra/lib/remove/index.js index cee53400..da746c7b 100644 --- a/Scripts/node_modules/fs-extra/lib/remove/index.js +++ b/Scripts/node_modules/fs-extra/lib/remove/index.js @@ -1,9 +1,17 @@ 'use strict' +const fs = require('graceful-fs') const u = require('universalify').fromCallback -const rimraf = require('./rimraf') + +function remove (path, callback) { + fs.rm(path, { recursive: true, force: true }, callback) +} + +function removeSync (path) { + fs.rmSync(path, { recursive: true, force: true }) +} module.exports = { - remove: u(rimraf), - removeSync: rimraf.sync + remove: u(remove), + removeSync } diff --git a/Scripts/node_modules/fs-extra/lib/remove/rimraf.js b/Scripts/node_modules/fs-extra/lib/remove/rimraf.js deleted file mode 100644 index f287e4e1..00000000 --- a/Scripts/node_modules/fs-extra/lib/remove/rimraf.js +++ /dev/null @@ -1,314 +0,0 @@ -'use strict' - -const fs = require('graceful-fs') -const path = require('path') -const assert = require('assert') - -const isWindows = (process.platform === 'win32') - -function defaults (options) { - const methods = [ - 'unlink', - 'chmod', - 'stat', - 'lstat', - 'rmdir', - 'readdir' - ] - methods.forEach(m => { - options[m] = options[m] || fs[m] - m = m + 'Sync' - options[m] = options[m] || fs[m] - }) - - options.maxBusyTries = options.maxBusyTries || 3 -} - -function rimraf (p, options, cb) { - let busyTries = 0 - - if (typeof options === 'function') { - cb = options - options = {} - } - - assert(p, 'rimraf: missing path') - assert.strictEqual(typeof p, 'string', 'rimraf: path should be a string') - assert.strictEqual(typeof cb, 'function', 'rimraf: callback function required') - assert(options, 'rimraf: invalid options argument provided') - assert.strictEqual(typeof options, 'object', 'rimraf: options should be object') - - defaults(options) - - rimraf_(p, options, function CB (er) { - if (er) { - if ((er.code === 'EBUSY' || er.code === 'ENOTEMPTY' || er.code === 'EPERM') && - busyTries < options.maxBusyTries) { - busyTries++ - const time = busyTries * 100 - // try again, with the same exact callback as this one. - return setTimeout(() => rimraf_(p, options, CB), time) - } - - // already gone - if (er.code === 'ENOENT') er = null - } - - cb(er) - }) -} - -// Two possible strategies. -// 1. Assume it's a file. unlink it, then do the dir stuff on EPERM or EISDIR -// 2. Assume it's a directory. readdir, then do the file stuff on ENOTDIR -// -// Both result in an extra syscall when you guess wrong. However, there -// are likely far more normal files in the world than directories. This -// is based on the assumption that a the average number of files per -// directory is >= 1. -// -// If anyone ever complains about this, then I guess the strategy could -// be made configurable somehow. But until then, YAGNI. -function rimraf_ (p, options, cb) { - assert(p) - assert(options) - assert(typeof cb === 'function') - - // sunos lets the root user unlink directories, which is... weird. - // so we have to lstat here and make sure it's not a dir. - options.lstat(p, (er, st) => { - if (er && er.code === 'ENOENT') { - return cb(null) - } - - // Windows can EPERM on stat. Life is suffering. - if (er && er.code === 'EPERM' && isWindows) { - return fixWinEPERM(p, options, er, cb) - } - - if (st && st.isDirectory()) { - return rmdir(p, options, er, cb) - } - - options.unlink(p, er => { - if (er) { - if (er.code === 'ENOENT') { - return cb(null) - } - if (er.code === 'EPERM') { - return (isWindows) - ? fixWinEPERM(p, options, er, cb) - : rmdir(p, options, er, cb) - } - if (er.code === 'EISDIR') { - return rmdir(p, options, er, cb) - } - } - return cb(er) - }) - }) -} - -function fixWinEPERM (p, options, er, cb) { - assert(p) - assert(options) - assert(typeof cb === 'function') - if (er) { - assert(er instanceof Error) - } - - options.chmod(p, 0o666, er2 => { - if (er2) { - cb(er2.code === 'ENOENT' ? null : er) - } else { - options.stat(p, (er3, stats) => { - if (er3) { - cb(er3.code === 'ENOENT' ? null : er) - } else if (stats.isDirectory()) { - rmdir(p, options, er, cb) - } else { - options.unlink(p, cb) - } - }) - } - }) -} - -function fixWinEPERMSync (p, options, er) { - let stats - - assert(p) - assert(options) - if (er) { - assert(er instanceof Error) - } - - try { - options.chmodSync(p, 0o666) - } catch (er2) { - if (er2.code === 'ENOENT') { - return - } else { - throw er - } - } - - try { - stats = options.statSync(p) - } catch (er3) { - if (er3.code === 'ENOENT') { - return - } else { - throw er - } - } - - if (stats.isDirectory()) { - rmdirSync(p, options, er) - } else { - options.unlinkSync(p) - } -} - -function rmdir (p, options, originalEr, cb) { - assert(p) - assert(options) - if (originalEr) { - assert(originalEr instanceof Error) - } - assert(typeof cb === 'function') - - // try to rmdir first, and only readdir on ENOTEMPTY or EEXIST (SunOS) - // if we guessed wrong, and it's not a directory, then - // raise the original error. - options.rmdir(p, er => { - if (er && (er.code === 'ENOTEMPTY' || er.code === 'EEXIST' || er.code === 'EPERM')) { - rmkids(p, options, cb) - } else if (er && er.code === 'ENOTDIR') { - cb(originalEr) - } else { - cb(er) - } - }) -} - -function rmkids (p, options, cb) { - assert(p) - assert(options) - assert(typeof cb === 'function') - - options.readdir(p, (er, files) => { - if (er) return cb(er) - - let n = files.length - let errState - - if (n === 0) return options.rmdir(p, cb) - - files.forEach(f => { - rimraf(path.join(p, f), options, er => { - if (errState) { - return - } - if (er) return cb(errState = er) - if (--n === 0) { - options.rmdir(p, cb) - } - }) - }) - }) -} - -// this looks simpler, and is strictly *faster*, but will -// tie up the JavaScript thread and fail on excessively -// deep directory trees. -function rimrafSync (p, options) { - let st - - options = options || {} - defaults(options) - - assert(p, 'rimraf: missing path') - assert.strictEqual(typeof p, 'string', 'rimraf: path should be a string') - assert(options, 'rimraf: missing options') - assert.strictEqual(typeof options, 'object', 'rimraf: options should be object') - - try { - st = options.lstatSync(p) - } catch (er) { - if (er.code === 'ENOENT') { - return - } - - // Windows can EPERM on stat. Life is suffering. - if (er.code === 'EPERM' && isWindows) { - fixWinEPERMSync(p, options, er) - } - } - - try { - // sunos lets the root user unlink directories, which is... weird. - if (st && st.isDirectory()) { - rmdirSync(p, options, null) - } else { - options.unlinkSync(p) - } - } catch (er) { - if (er.code === 'ENOENT') { - return - } else if (er.code === 'EPERM') { - return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er) - } else if (er.code !== 'EISDIR') { - throw er - } - rmdirSync(p, options, er) - } -} - -function rmdirSync (p, options, originalEr) { - assert(p) - assert(options) - if (originalEr) { - assert(originalEr instanceof Error) - } - - try { - options.rmdirSync(p) - } catch (er) { - if (er.code === 'ENOTDIR') { - throw originalEr - } else if (er.code === 'ENOTEMPTY' || er.code === 'EEXIST' || er.code === 'EPERM') { - rmkidsSync(p, options) - } else if (er.code !== 'ENOENT') { - throw er - } - } -} - -function rmkidsSync (p, options) { - assert(p) - assert(options) - options.readdirSync(p).forEach(f => rimrafSync(path.join(p, f), options)) - - if (isWindows) { - // We only end up here once we got ENOTEMPTY at least once, and - // at this point, we are guaranteed to have removed all the kids. - // So, we know that it won't be ENOENT or ENOTDIR or anything else. - // try really hard to delete stuff on windows, because it has a - // PROFOUNDLY annoying habit of not closing handles promptly when - // files are deleted, resulting in spurious ENOTEMPTY errors. - const startTime = Date.now() - do { - try { - const ret = options.rmdirSync(p, options) - return ret - } catch (er) { } - } while (Date.now() - startTime < 500) // give up after 500ms - } else { - const ret = options.rmdirSync(p, options) - return ret - } -} - -module.exports = rimraf -rimraf.sync = rimrafSync diff --git a/Scripts/node_modules/fs-extra/lib/util/buffer.js b/Scripts/node_modules/fs-extra/lib/util/buffer.js deleted file mode 100644 index dabf2885..00000000 --- a/Scripts/node_modules/fs-extra/lib/util/buffer.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict' -/* eslint-disable node/no-deprecated-api */ -module.exports = function (size) { - if (typeof Buffer.allocUnsafe === 'function') { - try { - return Buffer.allocUnsafe(size) - } catch (e) { - return new Buffer(size) - } - } - return new Buffer(size) -} diff --git a/Scripts/node_modules/fs-extra/lib/util/stat.js b/Scripts/node_modules/fs-extra/lib/util/stat.js index 350cb9f7..dfd37d9c 100644 --- a/Scripts/node_modules/fs-extra/lib/util/stat.js +++ b/Scripts/node_modules/fs-extra/lib/util/stat.js @@ -1,70 +1,30 @@ 'use strict' -const fs = require('graceful-fs') +const fs = require('../fs') const path = require('path') +const u = require('universalify').fromPromise -const NODE_VERSION_MAJOR_WITH_BIGINT = 10 -const NODE_VERSION_MINOR_WITH_BIGINT = 5 -const NODE_VERSION_PATCH_WITH_BIGINT = 0 -const nodeVersion = process.versions.node.split('.') -const nodeVersionMajor = Number.parseInt(nodeVersion[0], 10) -const nodeVersionMinor = Number.parseInt(nodeVersion[1], 10) -const nodeVersionPatch = Number.parseInt(nodeVersion[2], 10) - -function nodeSupportsBigInt () { - if (nodeVersionMajor > NODE_VERSION_MAJOR_WITH_BIGINT) { - return true - } else if (nodeVersionMajor === NODE_VERSION_MAJOR_WITH_BIGINT) { - if (nodeVersionMinor > NODE_VERSION_MINOR_WITH_BIGINT) { - return true - } else if (nodeVersionMinor === NODE_VERSION_MINOR_WITH_BIGINT) { - if (nodeVersionPatch >= NODE_VERSION_PATCH_WITH_BIGINT) { - return true - } - } - } - return false +function getStats (src, dest, opts) { + const statFunc = opts.dereference + ? (file) => fs.stat(file, { bigint: true }) + : (file) => fs.lstat(file, { bigint: true }) + return Promise.all([ + statFunc(src), + statFunc(dest).catch(err => { + if (err.code === 'ENOENT') return null + throw err + }) + ]).then(([srcStat, destStat]) => ({ srcStat, destStat })) } -function getStats (src, dest, cb) { - if (nodeSupportsBigInt()) { - fs.stat(src, { bigint: true }, (err, srcStat) => { - if (err) return cb(err) - fs.stat(dest, { bigint: true }, (err, destStat) => { - if (err) { - if (err.code === 'ENOENT') return cb(null, { srcStat, destStat: null }) - return cb(err) - } - return cb(null, { srcStat, destStat }) - }) - }) - } else { - fs.stat(src, (err, srcStat) => { - if (err) return cb(err) - fs.stat(dest, (err, destStat) => { - if (err) { - if (err.code === 'ENOENT') return cb(null, { srcStat, destStat: null }) - return cb(err) - } - return cb(null, { srcStat, destStat }) - }) - }) - } -} - -function getStatsSync (src, dest) { - let srcStat, destStat - if (nodeSupportsBigInt()) { - srcStat = fs.statSync(src, { bigint: true }) - } else { - srcStat = fs.statSync(src) - } +function getStatsSync (src, dest, opts) { + let destStat + const statFunc = opts.dereference + ? (file) => fs.statSync(file, { bigint: true }) + : (file) => fs.lstatSync(file, { bigint: true }) + const srcStat = statFunc(src) try { - if (nodeSupportsBigInt()) { - destStat = fs.statSync(dest, { bigint: true }) - } else { - destStat = fs.statSync(dest) - } + destStat = statFunc(dest) } catch (err) { if (err.code === 'ENOENT') return { srcStat, destStat: null } throw err @@ -72,25 +32,56 @@ function getStatsSync (src, dest) { return { srcStat, destStat } } -function checkPaths (src, dest, funcName, cb) { - getStats(src, dest, (err, stats) => { - if (err) return cb(err) - const { srcStat, destStat } = stats - if (destStat && destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) { - return cb(new Error('Source and destination must not be the same.')) +async function checkPaths (src, dest, funcName, opts) { + const { srcStat, destStat } = await getStats(src, dest, opts) + if (destStat) { + if (areIdentical(srcStat, destStat)) { + const srcBaseName = path.basename(src) + const destBaseName = path.basename(dest) + if (funcName === 'move' && + srcBaseName !== destBaseName && + srcBaseName.toLowerCase() === destBaseName.toLowerCase()) { + return { srcStat, destStat, isChangingCase: true } + } + throw new Error('Source and destination must not be the same.') } - if (srcStat.isDirectory() && isSrcSubdir(src, dest)) { - return cb(new Error(errMsg(src, dest, funcName))) + if (srcStat.isDirectory() && !destStat.isDirectory()) { + throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`) } - return cb(null, { srcStat, destStat }) - }) + if (!srcStat.isDirectory() && destStat.isDirectory()) { + throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`) + } + } + + if (srcStat.isDirectory() && isSrcSubdir(src, dest)) { + throw new Error(errMsg(src, dest, funcName)) + } + + return { srcStat, destStat } } -function checkPathsSync (src, dest, funcName) { - const { srcStat, destStat } = getStatsSync(src, dest) - if (destStat && destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) { - throw new Error('Source and destination must not be the same.') +function checkPathsSync (src, dest, funcName, opts) { + const { srcStat, destStat } = getStatsSync(src, dest, opts) + + if (destStat) { + if (areIdentical(srcStat, destStat)) { + const srcBaseName = path.basename(src) + const destBaseName = path.basename(dest) + if (funcName === 'move' && + srcBaseName !== destBaseName && + srcBaseName.toLowerCase() === destBaseName.toLowerCase()) { + return { srcStat, destStat, isChangingCase: true } + } + throw new Error('Source and destination must not be the same.') + } + if (srcStat.isDirectory() && !destStat.isDirectory()) { + throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`) + } + if (!srcStat.isDirectory() && destStat.isDirectory()) { + throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`) + } } + if (srcStat.isDirectory() && isSrcSubdir(src, dest)) { throw new Error(errMsg(src, dest, funcName)) } @@ -101,33 +92,24 @@ function checkPathsSync (src, dest, funcName) { // It works for all file types including symlinks since it // checks the src and dest inodes. It starts from the deepest // parent and stops once it reaches the src parent or the root path. -function checkParentPaths (src, srcStat, dest, funcName, cb) { +async function checkParentPaths (src, srcStat, dest, funcName) { const srcParent = path.resolve(path.dirname(src)) const destParent = path.resolve(path.dirname(dest)) - if (destParent === srcParent || destParent === path.parse(destParent).root) return cb() - if (nodeSupportsBigInt()) { - fs.stat(destParent, { bigint: true }, (err, destStat) => { - if (err) { - if (err.code === 'ENOENT') return cb() - return cb(err) - } - if (destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) { - return cb(new Error(errMsg(src, dest, funcName))) - } - return checkParentPaths(src, srcStat, destParent, funcName, cb) - }) - } else { - fs.stat(destParent, (err, destStat) => { - if (err) { - if (err.code === 'ENOENT') return cb() - return cb(err) - } - if (destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) { - return cb(new Error(errMsg(src, dest, funcName))) - } - return checkParentPaths(src, srcStat, destParent, funcName, cb) - }) + if (destParent === srcParent || destParent === path.parse(destParent).root) return + + let destStat + try { + destStat = await fs.stat(destParent, { bigint: true }) + } catch (err) { + if (err.code === 'ENOENT') return + throw err } + + if (areIdentical(srcStat, destStat)) { + throw new Error(errMsg(src, dest, funcName)) + } + + return checkParentPaths(src, srcStat, destParent, funcName) } function checkParentPathsSync (src, srcStat, dest, funcName) { @@ -136,27 +118,27 @@ function checkParentPathsSync (src, srcStat, dest, funcName) { if (destParent === srcParent || destParent === path.parse(destParent).root) return let destStat try { - if (nodeSupportsBigInt()) { - destStat = fs.statSync(destParent, { bigint: true }) - } else { - destStat = fs.statSync(destParent) - } + destStat = fs.statSync(destParent, { bigint: true }) } catch (err) { if (err.code === 'ENOENT') return throw err } - if (destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) { + if (areIdentical(srcStat, destStat)) { throw new Error(errMsg(src, dest, funcName)) } return checkParentPathsSync(src, srcStat, destParent, funcName) } +function areIdentical (srcStat, destStat) { + return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev +} + // return true if dest is a subdir of src, otherwise false. // It only checks the path strings. function isSrcSubdir (src, dest) { const srcArr = path.resolve(src).split(path.sep).filter(i => i) const destArr = path.resolve(dest).split(path.sep).filter(i => i) - return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true) + return srcArr.every((cur, i) => destArr[i] === cur) } function errMsg (src, dest, funcName) { @@ -164,9 +146,13 @@ function errMsg (src, dest, funcName) { } module.exports = { - checkPaths, + // checkPaths + checkPaths: u(checkPaths), checkPathsSync, - checkParentPaths, + // checkParent + checkParentPaths: u(checkParentPaths), checkParentPathsSync, - isSrcSubdir + // Misc + isSrcSubdir, + areIdentical } diff --git a/Scripts/node_modules/fs-extra/lib/util/utimes.js b/Scripts/node_modules/fs-extra/lib/util/utimes.js index 8916a1b8..87f4588c 100644 --- a/Scripts/node_modules/fs-extra/lib/util/utimes.js +++ b/Scripts/node_modules/fs-extra/lib/util/utimes.js @@ -1,67 +1,27 @@ 'use strict' -const fs = require('graceful-fs') -const os = require('os') -const path = require('path') +const fs = require('../fs') +const u = require('universalify').fromPromise -// HFS, ext{2,3}, FAT do not, Node.js v0.10 does not -function hasMillisResSync () { - let tmpfile = path.join('millis-test-sync' + Date.now().toString() + Math.random().toString().slice(2)) - tmpfile = path.join(os.tmpdir(), tmpfile) - - // 550 millis past UNIX epoch - const d = new Date(1435410243862) - fs.writeFileSync(tmpfile, 'https://github.com/jprichardson/node-fs-extra/pull/141') - const fd = fs.openSync(tmpfile, 'r+') - fs.futimesSync(fd, d, d) - fs.closeSync(fd) - return fs.statSync(tmpfile).mtime > 1435410243000 -} - -function hasMillisRes (callback) { - let tmpfile = path.join('millis-test' + Date.now().toString() + Math.random().toString().slice(2)) - tmpfile = path.join(os.tmpdir(), tmpfile) - - // 550 millis past UNIX epoch - const d = new Date(1435410243862) - fs.writeFile(tmpfile, 'https://github.com/jprichardson/node-fs-extra/pull/141', err => { - if (err) return callback(err) - fs.open(tmpfile, 'r+', (err, fd) => { - if (err) return callback(err) - fs.futimes(fd, d, d, err => { - if (err) return callback(err) - fs.close(fd, err => { - if (err) return callback(err) - fs.stat(tmpfile, (err, stats) => { - if (err) return callback(err) - callback(null, stats.mtime > 1435410243000) - }) - }) - }) - }) - }) -} - -function timeRemoveMillis (timestamp) { - if (typeof timestamp === 'number') { - return Math.floor(timestamp / 1000) * 1000 - } else if (timestamp instanceof Date) { - return new Date(Math.floor(timestamp.getTime() / 1000) * 1000) - } else { - throw new Error('fs-extra: timeRemoveMillis() unknown parameter type') - } -} - -function utimesMillis (path, atime, mtime, callback) { +async function utimesMillis (path, atime, mtime) { // if (!HAS_MILLIS_RES) return fs.utimes(path, atime, mtime, callback) - fs.open(path, 'r+', (err, fd) => { - if (err) return callback(err) - fs.futimes(fd, atime, mtime, futimesErr => { - fs.close(fd, closeErr => { - if (callback) callback(futimesErr || closeErr) - }) - }) - }) + const fd = await fs.open(path, 'r+') + + let closeErr = null + + try { + await fs.futimes(fd, atime, mtime) + } finally { + try { + await fs.close(fd) + } catch (e) { + closeErr = e + } + } + + if (closeErr) { + throw closeErr + } } function utimesMillisSync (path, atime, mtime) { @@ -71,9 +31,6 @@ function utimesMillisSync (path, atime, mtime) { } module.exports = { - hasMillisRes, - hasMillisResSync, - timeRemoveMillis, - utimesMillis, + utimesMillis: u(utimesMillis), utimesMillisSync } diff --git a/Scripts/node_modules/fs-extra/package.json b/Scripts/node_modules/fs-extra/package.json index 559d88b1..f3f6ba3a 100644 --- a/Scripts/node_modules/fs-extra/package.json +++ b/Scripts/node_modules/fs-extra/package.json @@ -1,9 +1,9 @@ { "name": "fs-extra", - "version": "8.1.0", - "description": "fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf.", + "version": "11.2.0", + "description": "fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.", "engines": { - "node": ">=6 <7 || >=8" + "node": ">=14.14" }, "homepage": "https://github.com/jprichardson/node-fs-extra", "repository": { @@ -31,39 +31,41 @@ "create", "text", "output", - "move" + "move", + "promise" ], "author": "JP Richardson ", "license": "MIT", "dependencies": { "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "devDependencies": { - "coveralls": "^3.0.0", - "istanbul": "^0.4.5", "klaw": "^2.1.1", "klaw-sync": "^3.0.2", "minimist": "^1.1.1", - "mocha": "^5.0.5", + "mocha": "^10.1.0", + "nyc": "^15.0.0", "proxyquire": "^2.0.1", "read-dir-files": "^0.1.1", - "semver": "^5.3.0", - "standard": "^12.0.1" + "standard": "^17.0.0" }, "main": "./lib/index.js", + "exports": { + ".": "./lib/index.js", + "./esm": "./lib/esm.mjs" + }, "files": [ "lib/", "!lib/**/__tests__/" ], "scripts": { - "full-ci": "npm run lint && npm run coverage", - "coverage": "istanbul cover -i 'lib/**' -x '**/__tests__/**' test.js", - "coveralls": "coveralls < coverage/lcov.info", "lint": "standard", "test-find": "find ./lib/**/__tests__ -name *.test.js | xargs mocha", - "test": "npm run lint && npm run unit", - "unit": "node test.js" - } + "test": "npm run lint && npm run unit && npm run unit-esm", + "unit": "nyc node test.js", + "unit-esm": "node test.mjs" + }, + "sideEffects": false } diff --git a/Scripts/node_modules/get-uri/package.json b/Scripts/node_modules/get-uri/package.json index 0dd58d78..06b11367 100644 --- a/Scripts/node_modules/get-uri/package.json +++ b/Scripts/node_modules/get-uri/package.json @@ -1,6 +1,6 @@ { "name": "get-uri", - "version": "6.0.2", + "version": "6.0.3", "description": "Returns a `stream.Readable` from a URI string", "main": "./dist/index.js", "types": "./dist/index.d.ts", @@ -44,9 +44,9 @@ }, "dependencies": { "basic-ftp": "^5.0.2", - "data-uri-to-buffer": "^6.0.0", + "data-uri-to-buffer": "^6.0.2", "debug": "^4.3.4", - "fs-extra": "^8.1.0" + "fs-extra": "^11.2.0" }, "engines": { "node": ">= 14" diff --git a/Scripts/node_modules/http-proxy-agent/LICENSE b/Scripts/node_modules/http-proxy-agent/LICENSE index aad14057..7ddd1e9b 100644 --- a/Scripts/node_modules/http-proxy-agent/LICENSE +++ b/Scripts/node_modules/http-proxy-agent/LICENSE @@ -1,9 +1,6 @@ -License -------- - (The MIT License) -Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net> +Copyright (c) 2013 Nathan Rajlich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/Scripts/node_modules/http-proxy-agent/README.md b/Scripts/node_modules/http-proxy-agent/README.md index 5d47db10..4eb0732d 100644 --- a/Scripts/node_modules/http-proxy-agent/README.md +++ b/Scripts/node_modules/http-proxy-agent/README.md @@ -41,30 +41,4 @@ some additional properties: in each request. This may also be a function that returns a headers object. **NOTE:** If your proxy does not strip these headers from the request, they - will also be sent to the destination server. - -License -------- - -(The MIT License) - -Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net> - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + will also be sent to the destination server. \ No newline at end of file diff --git a/Scripts/node_modules/http-proxy-agent/dist/index.d.ts b/Scripts/node_modules/http-proxy-agent/dist/index.d.ts index 5baddef8..c9fd933a 100644 --- a/Scripts/node_modules/http-proxy-agent/dist/index.d.ts +++ b/Scripts/node_modules/http-proxy-agent/dist/index.d.ts @@ -5,8 +5,9 @@ import * as net from 'net'; import * as tls from 'tls'; import * as http from 'http'; -import type { OutgoingHttpHeaders } from 'http'; import { Agent, AgentConnectOpts } from 'agent-base'; +import { URL } from 'url'; +import type { OutgoingHttpHeaders } from 'http'; type Protocol = T extends `${infer Protocol}:${infer _}` ? Protocol : never; type ConnectOptsMap = { http: Omit; diff --git a/Scripts/node_modules/http-proxy-agent/dist/index.d.ts.map b/Scripts/node_modules/http-proxy-agent/dist/index.d.ts.map index a1ca571a..eefba9e5 100644 --- a/Scripts/node_modules/http-proxy-agent/dist/index.d.ts.map +++ b/Scripts/node_modules/http-proxy-agent/dist/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAG7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAKrD,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM,QAAQ,IAAI,MAAM,CAAC,EAAE,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE/E,KAAK,cAAc,GAAG;IACrB,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACnD,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CACpD,CAAC;AAEF,KAAK,WAAW,CAAC,CAAC,IAAI;KACpB,CAAC,IAAI,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,GAC/C,cAAc,CAAC,CAAC,CAAC,GACjB,KAAK;CACR,CAAC,MAAM,cAAc,CAAC,CAAC;AAExB,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,GACpD,IAAI,CAAC,YAAY,GAAG;IACnB,OAAO,CAAC,EAAE,mBAAmB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iBAAiB,CAAC;gBAE/C,KAAK,EAAE,GAAG,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,qBAAqB,CAAC,GAAG,CAAC;IAuB/D,UAAU,CAAC,GAAG,EAAE,2BAA2B,EAAE,IAAI,EAAE,gBAAgB,GAAG,IAAI;IAO1E,eAAe,CACd,GAAG,EAAE,2BAA2B,EAChC,IAAI,EAAE,gBAAgB,GACpB,IAAI;IA0CD,OAAO,CACZ,GAAG,EAAE,2BAA2B,EAChC,IAAI,EAAE,gBAAgB,GACpB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;CA2CtB"} \ No newline at end of file diff --git a/Scripts/node_modules/http-proxy-agent/dist/index.js b/Scripts/node_modules/http-proxy-agent/dist/index.js index 4a7daf61..fb2751c2 100644 --- a/Scripts/node_modules/http-proxy-agent/dist/index.js +++ b/Scripts/node_modules/http-proxy-agent/dist/index.js @@ -32,6 +32,7 @@ const tls = __importStar(require("tls")); const debug_1 = __importDefault(require("debug")); const events_1 = require("events"); const agent_base_1 = require("agent-base"); +const url_1 = require("url"); const debug = (0, debug_1.default)('http-proxy-agent'); /** * The `HttpProxyAgent` implements an HTTP Agent subclass that connects @@ -40,7 +41,7 @@ const debug = (0, debug_1.default)('http-proxy-agent'); class HttpProxyAgent extends agent_base_1.Agent { constructor(proxy, opts) { super(opts); - this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy; + this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy; this.proxyHeaders = opts?.headers ?? {}; debug('Creating new HttpProxyAgent instance: %o', this.proxy.href); // Trim off the brackets from IPv6 addresses @@ -67,7 +68,7 @@ class HttpProxyAgent extends agent_base_1.Agent { const protocol = opts.secureEndpoint ? 'https:' : 'http:'; const hostname = req.getHeader('host') || 'localhost'; const base = `${protocol}//${hostname}`; - const url = new URL(req.path, base); + const url = new url_1.URL(req.path, base); if (opts.port !== 80) { url.port = String(opts.port); } diff --git a/Scripts/node_modules/http-proxy-agent/dist/index.js.map b/Scripts/node_modules/http-proxy-agent/dist/index.js.map index 4f866d30..ec82425d 100644 --- a/Scripts/node_modules/http-proxy-agent/dist/index.js.map +++ b/Scripts/node_modules/http-proxy-agent/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yCAA2B;AAE3B,kDAAgC;AAChC,mCAA8B;AAE9B,2CAAqD;AAErD,MAAM,KAAK,GAAG,IAAA,eAAW,EAAC,kBAAkB,CAAC,CAAC;AA6B9C;;;GAGG;AACH,MAAa,cAAmC,SAAQ,kBAAK;IAO5D,YAAY,KAAgB,EAAE,IAAiC;QAC9D,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,KAAK,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAChE,IAAI,CAAC,YAAY,GAAG,IAAI,EAAE,OAAO,IAAI,EAAE,CAAC;QACxC,KAAK,CAAC,0CAA0C,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEnE,4CAA4C;QAC5C,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,CAC5D,UAAU,EACV,EAAE,CACF,CAAC;QACF,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI;YAC3B,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;YAC/B,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,KAAK,QAAQ;gBAClC,CAAC,CAAC,GAAG;gBACL,CAAC,CAAC,EAAE,CAAC;QACN,IAAI,CAAC,WAAW,GAAG;YAClB,GAAG,CAA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/node_modules/http-proxy-agent/package.json index 08c650cb..a53940a3 100644 --- a/Scripts/node_modules/http-proxy-agent/package.json +++ b/Scripts/node_modules/http-proxy-agent/package.json @@ -1,6 +1,6 @@ { "name": "http-proxy-agent", - "version": "7.0.0", + "version": "7.0.2", "description": "An HTTP(s) proxy `http.Agent` implementation for HTTP", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/Scripts/node_modules/https-proxy-agent/LICENSE b/Scripts/node_modules/https-proxy-agent/LICENSE new file mode 100644 index 00000000..008728cb --- /dev/null +++ b/Scripts/node_modules/https-proxy-agent/LICENSE @@ -0,0 +1,22 @@ +(The MIT License) + +Copyright (c) 2013 Nathan Rajlich + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/Scripts/node_modules/https-proxy-agent/README.md b/Scripts/node_modules/https-proxy-agent/README.md index 9ae37979..ebc53cfa 100644 --- a/Scripts/node_modules/https-proxy-agent/README.md +++ b/Scripts/node_modules/https-proxy-agent/README.md @@ -67,31 +67,4 @@ some additional properties: * `headers` - Object containing additional headers to send to the proxy server in the `CONNECT` request. - -License -------- - -(The MIT License) - -Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net> - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - [CONNECT]: http://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_Tunneling diff --git a/Scripts/node_modules/https-proxy-agent/dist/index.d.ts b/Scripts/node_modules/https-proxy-agent/dist/index.d.ts index c9e72960..8cd1151c 100644 --- a/Scripts/node_modules/https-proxy-agent/dist/index.d.ts +++ b/Scripts/node_modules/https-proxy-agent/dist/index.d.ts @@ -5,8 +5,9 @@ import * as net from 'net'; import * as tls from 'tls'; import * as http from 'http'; -import type { OutgoingHttpHeaders } from 'http'; import { Agent, AgentConnectOpts } from 'agent-base'; +import { URL } from 'url'; +import type { OutgoingHttpHeaders } from 'http'; type Protocol = T extends `${infer Protocol}:${infer _}` ? Protocol : never; type ConnectOptsMap = { http: Omit; diff --git a/Scripts/node_modules/https-proxy-agent/dist/index.d.ts.map b/Scripts/node_modules/https-proxy-agent/dist/index.d.ts.map index 6ed6b444..f21239cb 100644 --- a/Scripts/node_modules/https-proxy-agent/dist/index.d.ts.map +++ b/Scripts/node_modules/https-proxy-agent/dist/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAG7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAMrD,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM,QAAQ,IAAI,MAAM,CAAC,EAAE,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE/E,KAAK,cAAc,GAAG;IACrB,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACnD,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CACpD,CAAC;AAEF,KAAK,WAAW,CAAC,CAAC,IAAI;KACpB,CAAC,IAAI,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,GAC/C,cAAc,CAAC,CAAC,CAAC,GACjB,KAAK;CACR,CAAC,MAAM,cAAc,CAAC,CAAC;AAExB,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,GACrD,IAAI,CAAC,YAAY,GAAG;IACnB,OAAO,CAAC,EAAE,mBAAmB,GAAG,CAAC,MAAM,mBAAmB,CAAC,CAAC;CAC5D,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,qBAAa,eAAe,CAAC,GAAG,SAAS,MAAM,CAAE,SAAQ,KAAK;IAC7D,MAAM,CAAC,SAAS,6BAA8B;IAE9C,QA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c,CAAC,CAAC,CAAC,GACjB,KAAK;CACR,CAAC,MAAM,cAAc,CAAC,CAAC;AAExB,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,GACrD,IAAI,CAAC,YAAY,GAAG;IACnB,OAAO,CAAC,EAAE,mBAAmB,GAAG,CAAC,MAAM,mBAAmB,CAAC,CAAC;CAC5D,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,qBAAa,eAAe,CAAC,GAAG,SAAS,MAAM,CAAE,SAAQ,KAAK;IAC7D,MAAM,CAAC,SAAS,6BAA8B;IAE9C,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC;IACpB,YAAY,EAAE,mBAAmB,GAAG,CAAC,MAAM,mBAAmB,CAAC,CAAC;IAChE,WAAW,EAAE,GAAG,CAAC,iBAAiB,GAAG,GAAG,CAAC,iBAAiB,CAAC;gBAE/C,KAAK,EAAE,GAAG,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,sBAAsB,CAAC,GAAG,CAAC;IA0BhE;;;OAGG;IACG,OAAO,CACZ,GAAG,EAAE,IAAI,CAAC,aAAa,EACvB,IAAI,EAAE,gBAAgB,GACpB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;CA2GtB"} \ No newline at end of file diff --git a/Scripts/node_modules/https-proxy-agent/dist/index.js b/Scripts/node_modules/https-proxy-agent/dist/index.js index 978af031..4c420aa7 100644 --- a/Scripts/node_modules/https-proxy-agent/dist/index.js +++ b/Scripts/node_modules/https-proxy-agent/dist/index.js @@ -32,6 +32,7 @@ const tls = __importStar(require("tls")); const assert_1 = __importDefault(require("assert")); const debug_1 = __importDefault(require("debug")); const agent_base_1 = require("agent-base"); +const url_1 = require("url"); const parse_proxy_response_1 = require("./parse-proxy-response"); const debug = (0, debug_1.default)('https-proxy-agent'); /** @@ -50,7 +51,7 @@ class HttpsProxyAgent extends agent_base_1.Agent { constructor(proxy, opts) { super(opts); this.options = { path: undefined }; - this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy; + this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy; this.proxyHeaders = opts?.headers ?? {}; debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href); // Trim off the brackets from IPv6 addresses @@ -84,7 +85,7 @@ class HttpsProxyAgent extends agent_base_1.Agent { const servername = this.connectOpts.servername || this.connectOpts.host; socket = tls.connect({ ...this.connectOpts, - servername: servername && net.isIP(servername) ? undefined : servername + servername: servername && net.isIP(servername) ? undefined : servername, }); } else { diff --git a/Scripts/node_modules/https-proxy-agent/dist/index.js.map b/Scripts/node_modules/https-proxy-agent/dist/index.js.map index d187eabf..909f6cf6 100644 --- a/Scripts/node_modules/https-proxy-agent/dist/index.js.map +++ b/Scripts/node_modules/https-proxy-agent/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yCAA2B;AAE3B,oDAA4B;AAC5B,kDAAgC;AAEhC,2CAAqD;AACrD,iEAA4D;AAE5D,MAAM,KAAK,GAAG,IAAA,eAAW,EAAC,mBAAmB,CAAC,CAAC;AAqB/C;;;;;;;;;;;GAWG;AACH,MAAa,eAAoC,SAAQ,kBAAK;IAO7D,YAAY,KAAgB,EAAE,IAAkC;QAC/D,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,OAAO,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAChE,IAAI,CAAC,YAAY,GAAG,IAAI,EAAE,OAAO,IAAI,EAAE,CAAC;QACxC,KAAK,CAAC,2CAA2C,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEpE,4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G,IAAO;IAIV,MAAM,GAAG,GAAG,EAEX,CAAC;IACF,IAAI,GAAqB,CAAC;IAC1B,KAAK,GAAG,IAAI,GAAG,EAAE;QAChB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACxB,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;SACpB;KACD;IACD,OAAO,GAAG,CAAC;AACZ,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/https-proxy-agent/package.json b/Scripts/node_modules/https-proxy-agent/package.json index 07c04f82..f3c67ef3 100644 --- a/Scripts/node_modules/https-proxy-agent/package.json +++ b/Scripts/node_modules/https-proxy-agent/package.json @@ -1,6 +1,6 @@ { "name": "https-proxy-agent", - "version": "7.0.2", + "version": "7.0.4", "description": "An HTTP(s) proxy `http.Agent` implementation for HTTPS", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/Scripts/node_modules/ip-address/LICENSE b/Scripts/node_modules/ip-address/LICENSE new file mode 100644 index 00000000..ec79adb0 --- /dev/null +++ b/Scripts/node_modules/ip-address/LICENSE @@ -0,0 +1,19 @@ +Copyright (C) 2011 by Beau Gunderson + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/Scripts/node_modules/ip-address/README.md b/Scripts/node_modules/ip-address/README.md new file mode 100644 index 00000000..877a8ca6 --- /dev/null +++ b/Scripts/node_modules/ip-address/README.md @@ -0,0 +1,108 @@ +![CircleCI](https://img.shields.io/circleci/build/github/beaugunderson/ip-address) +[![codecov]](https://codecov.io/github/beaugunderson/ip-address?branch=master) +[![downloads]](https://www.npmjs.com/package/ip-address) +[![npm]](https://www.npmjs.com/package/ip-address) +[![snyk]](https://snyk.io/test/github/beaugunderson/ip-address) + +[codecov]: https://codecov.io/github/beaugunderson/ip-address/coverage.svg?branch=master +[downloads]: https://img.shields.io/npm/dm/ip-address.svg +[npm]: https://img.shields.io/npm/v/ip-address.svg +[snyk]: https://snyk.io/test/github/beaugunderson/ip-address/badge.svg + +## ip-address + +`ip-address` is a library for validating and manipulating IPv4 and IPv6 +addresses in JavaScript. + + +### Migrating from 6.x to 7.x + +`ip-address` was rewritten in TypeScript for version 7. If you were using +version 6 you'll need to make these changes to upgrade: + +- Instead of checking `isValid()`, which has been removed, you'll need to use a + `try`/`catch` if you're accepting unknown input. This made the TypeScript + types substantially easier as well as allowed the use of an `AddressError` + class which will contain a `parseMessage` if an error occurred in the parsing + step. +- Instead of using the `error`, `parseError`, and `valid` attributes you'll + need to use the `message` and `parseMessage` of the thrown `AddressError`. + +### Documentation + +Documentation is available at [ip-address.js.org](http://ip-address.js.org/). + +### Examples + +```js +var Address6 = require('ip-address').Address6; + +var address = new Address6('2001:0:ce49:7601:e866:efff:62c3:fffe'); + +var teredo = address.inspectTeredo(); + +teredo.client4; // '157.60.0.1' +``` + +### Features + +- Usable via CommonJS or ESM +- Parsing of all IPv6 notations +- Parsing of IPv6 addresses and ports from URLs with `Address6.fromURL(url)` +- Validity checking +- Decoding of the [Teredo + information](http://en.wikipedia.org/wiki/Teredo_tunneling#IPv6_addressing) + in an address +- Whether one address is a valid subnet of another +- What special properties a given address has (multicast prefix, unique + local address prefix, etc.) +- Number of subnets of a certain size in a given address +- Display methods + - Hex, binary, and decimal + - Canonical form + - Correct form + - IPv4-compatible (i.e. `::ffff:192.168.0.1`) +- Works in [node](http://nodejs.org/) and the browser (with browserify) +- ~1,600 test cases + +### Used by + +- [anon](https://github.com/edsu/anon) which powers + [@congressedits](https://twitter.com/congressedits), among + [many others](https://github.com/edsu/anon#community) +- [base85](https://github.com/noseglid/base85): base85 encoding/decoding +- [contrail-web-core](https://github.com/Juniper/contrail-web-core): part of + Contrail, a network virtualization solution made by Juniper Networks +- [dhcpjs](https://github.com/apaprocki/node-dhcpjs): a DHCP client and server +- [epochtalk](https://github.com/epochtalk/epochtalk): next generation forum + software +- [geoip-web](https://github.com/tfrce/node-geoip-web): a server for + quickly geolocating IP addresses +- [hexabus](https://github.com/mysmartgrid/hexabus): an IPv6-based home + automation bus +- [hubot-deploy](https://github.com/atmos/hubot-deploy): GitHub Flow via hubot +- [heroku-portscanner](https://github.com/robison/heroku-portscanner): nmap + hosted on Heroku +- [ipfs-swarm](https://github.com/diasdavid/node-ipfs-swarm): a swarm + implementation based on IPFS +- [javascript-x-server](https://github.com/GothAck/javascript-x-server): an X + server written in JavaScript +- [libnmap](https://github.com/jas-/node-libnmap): a node API for nmap +- [mail-io](https://github.com/mofux/mail-io): a lightweight SMTP server +- [maxmind-db-reader](https://github.com/PaddeK/node-maxmind-db): a library for + reading MaxMind database files +- [proxy-protocol-v2](https://github.com/ably/proxy-protocol-v2): a proxy + protocol encoder/decoder built by [Ably](https://www.ably.io/) +- [Samsara](https://github.com/mariusGundersen/Samsara): a Docker web interface +- [sis-api](https://github.com/sis-cmdb/sis-api): a configuration management + database API +- [socks5-client](https://github.com/mattcg/socks5-client): a SOCKS v5 client +- [socksified](https://github.com/vially/node-socksified): a SOCKS v5 client +- [socksv5](https://github.com/mscdex/socksv5): a SOCKS v5 server/client +- [ssdapi](https://github.com/rsolomou/ssdapi): an API created by the + University of Portsmouth +- [SwitchyOmega](https://github.com/FelisCatus/SwitchyOmega): a [Chrome + extension](https://chrome.google.com/webstore/detail/padekgcemlokbadohgkifijomclgjgif) + for switching between multiple proxies with ~311k users! +- [swiz](https://github.com/racker/node-swiz): a serialization framework built + and used by [Rackspace](http://www.rackspace.com/) diff --git a/Scripts/node_modules/ip-address/dist/address-error.d.ts b/Scripts/node_modules/ip-address/dist/address-error.d.ts new file mode 100644 index 00000000..59b21651 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/address-error.d.ts @@ -0,0 +1,5 @@ +export declare class AddressError extends Error { + parseMessage?: string; + constructor(message: string, parseMessage?: string); +} +//# sourceMappingURL=address-error.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/address-error.d.ts.map b/Scripts/node_modules/ip-address/dist/address-error.d.ts.map new file mode 100644 index 00000000..d5a6f7b6 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/address-error.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"address-error.d.ts","sourceRoot":"","sources":["../src/address-error.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAa,SAAQ,KAAK;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;gBAEV,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CASnD"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/address-error.js b/Scripts/node_modules/ip-address/dist/address-error.js new file mode 100644 index 00000000..4fcade3b --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/address-error.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AddressError = void 0; +class AddressError extends Error { + constructor(message, parseMessage) { + super(message); + this.name = 'AddressError'; + if (parseMessage !== null) { + this.parseMessage = parseMessage; + } + } +} +exports.AddressError = AddressError; +//# sourceMappingURL=address-error.js.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/address-error.js.map b/Scripts/node_modules/ip-address/dist/address-error.js.map new file mode 100644 index 00000000..2a0ae225 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/address-error.js.map @@ -0,0 +1 @@ +{"version":3,"file":"address-error.js","sourceRoot":"","sources":["../src/address-error.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAa,SAAQ,KAAK;IAGrC,YAAY,OAAe,EAAE,YAAqB;QAChD,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;QAE3B,IAAI,YAAY,KAAK,IAAI,EAAE;YACzB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;SAClC;IACH,CAAC;CACF;AAZD,oCAYC"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/common.d.ts b/Scripts/node_modules/ip-address/dist/common.d.ts new file mode 100644 index 00000000..d06d63e2 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/common.d.ts @@ -0,0 +1,8 @@ +import { Address4 } from './ipv4'; +import { Address6 } from './ipv6'; +export interface ReverseFormOptions { + omitSuffix?: boolean; +} +export declare function isInSubnet(this: Address4 | Address6, address: Address4 | Address6): boolean; +export declare function isCorrect(defaultBits: number): (this: Address4 | Address6) => boolean; +//# sourceMappingURL=common.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/common.d.ts.map b/Scripts/node_modules/ip-address/dist/common.d.ts.map new file mode 100644 index 00000000..c73c0e3e --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/common.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,QAAQ,GAAG,QAAQ,EAAE,OAAO,EAAE,QAAQ,GAAG,QAAQ,WAUjF;AAED,wBAAgB,SAAS,CAAC,WAAW,EAAE,MAAM,UACpB,QAAQ,GAAG,QAAQ,aAW3C"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/common.js b/Scripts/node_modules/ip-address/dist/common.js new file mode 100644 index 00000000..4d10c9a4 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/common.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isCorrect = exports.isInSubnet = void 0; +function isInSubnet(address) { + if (this.subnetMask < address.subnetMask) { + return false; + } + if (this.mask(address.subnetMask) === address.mask()) { + return true; + } + return false; +} +exports.isInSubnet = isInSubnet; +function isCorrect(defaultBits) { + return function () { + if (this.addressMinusSuffix !== this.correctForm()) { + return false; + } + if (this.subnetMask === defaultBits && !this.parsedSubnet) { + return true; + } + return this.parsedSubnet === String(this.subnetMask); + }; +} +exports.isCorrect = isCorrect; +//# sourceMappingURL=common.js.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/common.js.map b/Scripts/node_modules/ip-address/dist/common.js.map new file mode 100644 index 00000000..23969195 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/common.js.map @@ -0,0 +1 @@ +{"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":";;;AAOA,SAAgB,UAAU,CAA4B,OAA4B;IAChF,IAAI,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,EAAE;QACxC,OAAO,KAAK,CAAC;KACd;IAED,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,OAAO,CAAC,IAAI,EAAE,EAAE;QACpD,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAVD,gCAUC;AAED,SAAgB,SAAS,CAAC,WAAmB;IAC3C,OAAO;QACL,IAAI,IAAI,CAAC,kBAAkB,KAAK,IAAI,CAAC,WAAW,EAAE,EAAE;YAClD,OAAO,KAAK,CAAC;SACd;QAED,IAAI,IAAI,CAAC,UAAU,KAAK,WAAW,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;YACzD,OAAO,IAAI,CAAC;SACb;QAED,OAAO,IAAI,CAAC,YAAY,KAAK,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC,CAAC;AACJ,CAAC;AAZD,8BAYC"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/ip-address.d.ts b/Scripts/node_modules/ip-address/dist/ip-address.d.ts new file mode 100644 index 00000000..b8297c0d --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/ip-address.d.ts @@ -0,0 +1,11 @@ +import { Address4 } from './ipv4'; +import { Address6 } from './ipv6'; +import { AddressError } from './address-error'; +export { Address4 }; +export { Address6 }; +export { AddressError }; +import * as helpers from './v6/helpers'; +export declare const v6: { + helpers: typeof helpers; +}; +//# sourceMappingURL=ip-address.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/ip-address.d.ts.map b/Scripts/node_modules/ip-address/dist/ip-address.d.ts.map new file mode 100644 index 00000000..cff76101 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/ip-address.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ip-address.d.ts","sourceRoot":"","sources":["../src/ip-address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAExC,eAAO,MAAM,EAAE;;CAAc,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/ip-address.js b/Scripts/node_modules/ip-address/dist/ip-address.js new file mode 100644 index 00000000..553c005a --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/ip-address.js @@ -0,0 +1,35 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.v6 = exports.AddressError = exports.Address6 = exports.Address4 = void 0; +const ipv4_1 = require("./ipv4"); +Object.defineProperty(exports, "Address4", { enumerable: true, get: function () { return ipv4_1.Address4; } }); +const ipv6_1 = require("./ipv6"); +Object.defineProperty(exports, "Address6", { enumerable: true, get: function () { return ipv6_1.Address6; } }); +const address_error_1 = require("./address-error"); +Object.defineProperty(exports, "AddressError", { enumerable: true, get: function () { return address_error_1.AddressError; } }); +const helpers = __importStar(require("./v6/helpers")); +exports.v6 = { helpers }; +//# sourceMappingURL=ip-address.js.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/ip-address.js.map b/Scripts/node_modules/ip-address/dist/ip-address.js.map new file mode 100644 index 00000000..a1a3230e --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/ip-address.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ip-address.js","sourceRoot":"","sources":["../src/ip-address.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAkC;AAIzB,yFAJA,eAAQ,OAIA;AAHjB,iCAAkC;AAIzB,yFAJA,eAAQ,OAIA;AAHjB,mDAA+C;AAItC,6FAJA,4BAAY,OAIA;AAErB,sDAAwC;AAE3B,QAAA,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/ipv4.d.ts b/Scripts/node_modules/ip-address/dist/ipv4.d.ts new file mode 100644 index 00000000..06f53bd8 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/ipv4.d.ts @@ -0,0 +1,194 @@ +import * as common from './common'; +import { BigInteger } from 'jsbn'; +/** + * Represents an IPv4 address + * @class Address4 + * @param {string} address - An IPv4 address string + */ +export declare class Address4 { + address: string; + addressMinusSuffix?: string; + groups: number; + parsedAddress: string[]; + parsedSubnet: string; + subnet: string; + subnetMask: number; + v4: boolean; + constructor(address: string); + static isValid(address: string): boolean; + parse(address: string): string[]; + /** + * Returns the correct form of an address + * @memberof Address4 + * @instance + * @returns {String} + */ + correctForm(): string; + /** + * Returns true if the address is correct, false otherwise + * @memberof Address4 + * @instance + * @returns {Boolean} + */ + isCorrect: (this: Address4 | import("./ipv6").Address6) => boolean; + /** + * Converts a hex string to an IPv4 address object + * @memberof Address4 + * @static + * @param {string} hex - a hex string to convert + * @returns {Address4} + */ + static fromHex(hex: string): Address4; + /** + * Converts an integer into a IPv4 address object + * @memberof Address4 + * @static + * @param {integer} integer - a number to convert + * @returns {Address4} + */ + static fromInteger(integer: number): Address4; + /** + * Return an address from in-addr.arpa form + * @memberof Address4 + * @static + * @param {string} arpaFormAddress - an 'in-addr.arpa' form ipv4 address + * @returns {Adress4} + * @example + * var address = Address4.fromArpa(42.2.0.192.in-addr.arpa.) + * address.correctForm(); // '192.0.2.42' + */ + static fromArpa(arpaFormAddress: string): Address4; + /** + * Converts an IPv4 address object to a hex string + * @memberof Address4 + * @instance + * @returns {String} + */ + toHex(): string; + /** + * Converts an IPv4 address object to an array of bytes + * @memberof Address4 + * @instance + * @returns {Array} + */ + toArray(): number[]; + /** + * Converts an IPv4 address object to an IPv6 address group + * @memberof Address4 + * @instance + * @returns {String} + */ + toGroup6(): string; + /** + * Returns the address as a BigInteger + * @memberof Address4 + * @instance + * @returns {BigInteger} + */ + bigInteger(): BigInteger; + /** + * Helper function getting start address. + * @memberof Address4 + * @instance + * @returns {BigInteger} + */ + _startAddress(): BigInteger; + /** + * The first address in the range given by this address' subnet. + * Often referred to as the Network Address. + * @memberof Address4 + * @instance + * @returns {Address4} + */ + startAddress(): Address4; + /** + * The first host address in the range given by this address's subnet ie + * the first address after the Network Address + * @memberof Address4 + * @instance + * @returns {Address4} + */ + startAddressExclusive(): Address4; + /** + * Helper function getting end address. + * @memberof Address4 + * @instance + * @returns {BigInteger} + */ + _endAddress(): BigInteger; + /** + * The last address in the range given by this address' subnet + * Often referred to as the Broadcast + * @memberof Address4 + * @instance + * @returns {Address4} + */ + endAddress(): Address4; + /** + * The last host address in the range given by this address's subnet ie + * the last address prior to the Broadcast Address + * @memberof Address4 + * @instance + * @returns {Address4} + */ + endAddressExclusive(): Address4; + /** + * Converts a BigInteger to a v4 address object + * @memberof Address4 + * @static + * @param {BigInteger} bigInteger - a BigInteger to convert + * @returns {Address4} + */ + static fromBigInteger(bigInteger: BigInteger): Address4; + /** + * Returns the first n bits of the address, defaulting to the + * subnet mask + * @memberof Address4 + * @instance + * @returns {String} + */ + mask(mask?: number): string; + /** + * Returns the bits in the given range as a base-2 string + * @memberof Address4 + * @instance + * @returns {string} + */ + getBitsBase2(start: number, end: number): string; + /** + * Return the reversed ip6.arpa form of the address + * @memberof Address4 + * @param {Object} options + * @param {boolean} options.omitSuffix - omit the "in-addr.arpa" suffix + * @instance + * @returns {String} + */ + reverseForm(options?: common.ReverseFormOptions): string; + /** + * Returns true if the given address is in the subnet of the current address + * @memberof Address4 + * @instance + * @returns {boolean} + */ + isInSubnet: typeof common.isInSubnet; + /** + * Returns true if the given address is a multicast address + * @memberof Address4 + * @instance + * @returns {boolean} + */ + isMulticast(): boolean; + /** + * Returns a zero-padded base-2 string representation of the address + * @memberof Address4 + * @instance + * @returns {string} + */ + binaryZeroPad(): string; + /** + * Groups an IPv4 address for inclusion at the end of an IPv6 address + * @returns {String} + */ + groupForV6(): string; +} +//# sourceMappingURL=ipv4.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/ipv4.d.ts.map b/Scripts/node_modules/ip-address/dist/ipv4.d.ts.map new file mode 100644 index 00000000..26e709a1 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/ipv4.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ipv4.d.ts","sourceRoot":"","sources":["../src/ipv4.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAGnC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC;;;;GAIG;AACH,qBAAa,QAAQ;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAoB;IAClC,aAAa,EAAE,MAAM,EAAE,CAAM;IAC7B,YAAY,EAAE,MAAM,CAAM;IAC1B,MAAM,EAAE,MAAM,CAAS;IACvB,UAAU,EAAE,MAAM,CAAM;IACxB,EAAE,EAAE,OAAO,CAAQ;gBAEP,OAAO,EAAE,MAAM;IAsB3B,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAcxC,KAAK,CAAC,OAAO,EAAE,MAAM;IAUrB;;;;;OAKG;IACH,WAAW,IAAI,MAAM;IAIrB;;;;;OAKG;IACH,SAAS,0DAAoC;IAE7C;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ;IAcrC;;;;;;OAMG;IACH,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,QAAQ;IAI7C;;;;;;;;;OASG;IACH,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,QAAQ;IASlD;;;;;OAKG;IACH,KAAK,IAAI,MAAM;IAIf;;;;;OAKG;IACH,OAAO,IAAI,MAAM,EAAE;IAInB;;;;;OAKG;IACH,QAAQ,IAAI,MAAM;IAiBlB;;;;;OAKG;IACH,UAAU,IAAI,UAAU;IAOxB;;;;;OAKG;IACH,aAAa,IAAI,UAAU;IAI3B;;;;;;OAMG;IACH,YAAY,IAAI,QAAQ;IAIxB;;;;;;OAMG;IACH,qBAAqB,IAAI,QAAQ;IAKjC;;;;;OAKG;IACH,WAAW,IAAI,UAAU;IAIzB;;;;;;OAMG;IACH,UAAU,IAAI,QAAQ;IAItB;;;;;;OAMG;IACH,mBAAmB,IAAI,QAAQ;IAK/B;;;;;;OAMG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,UAAU,GAAG,QAAQ;IAIvD;;;;;;OAMG;IACH,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;IAQ3B;;;;;OAKG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM;IAIhD;;;;;;;OAOG;IACH,WAAW,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,kBAAkB,GAAG,MAAM;IAcxD;;;;;OAKG;IACH,UAAU,2BAAqB;IAE/B;;;;;OAKG;IACH,WAAW,IAAI,OAAO;IAItB;;;;;OAKG;IACH,aAAa,IAAI,MAAM;IAIvB;;;OAGG;IACH,UAAU,IAAI,MAAM;CAYrB"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/ipv4.js b/Scripts/node_modules/ip-address/dist/ipv4.js new file mode 100644 index 00000000..22a81b50 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/ipv4.js @@ -0,0 +1,326 @@ +"use strict"; +/* eslint-disable no-param-reassign */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Address4 = void 0; +const common = __importStar(require("./common")); +const constants = __importStar(require("./v4/constants")); +const address_error_1 = require("./address-error"); +const jsbn_1 = require("jsbn"); +const sprintf_js_1 = require("sprintf-js"); +/** + * Represents an IPv4 address + * @class Address4 + * @param {string} address - An IPv4 address string + */ +class Address4 { + constructor(address) { + this.groups = constants.GROUPS; + this.parsedAddress = []; + this.parsedSubnet = ''; + this.subnet = '/32'; + this.subnetMask = 32; + this.v4 = true; + /** + * Returns true if the address is correct, false otherwise + * @memberof Address4 + * @instance + * @returns {Boolean} + */ + this.isCorrect = common.isCorrect(constants.BITS); + /** + * Returns true if the given address is in the subnet of the current address + * @memberof Address4 + * @instance + * @returns {boolean} + */ + this.isInSubnet = common.isInSubnet; + this.address = address; + const subnet = constants.RE_SUBNET_STRING.exec(address); + if (subnet) { + this.parsedSubnet = subnet[0].replace('/', ''); + this.subnetMask = parseInt(this.parsedSubnet, 10); + this.subnet = `/${this.subnetMask}`; + if (this.subnetMask < 0 || this.subnetMask > constants.BITS) { + throw new address_error_1.AddressError('Invalid subnet mask.'); + } + address = address.replace(constants.RE_SUBNET_STRING, ''); + } + this.addressMinusSuffix = address; + this.parsedAddress = this.parse(address); + } + static isValid(address) { + try { + // eslint-disable-next-line no-new + new Address4(address); + return true; + } + catch (e) { + return false; + } + } + /* + * Parses a v4 address + */ + parse(address) { + const groups = address.split('.'); + if (!address.match(constants.RE_ADDRESS)) { + throw new address_error_1.AddressError('Invalid IPv4 address.'); + } + return groups; + } + /** + * Returns the correct form of an address + * @memberof Address4 + * @instance + * @returns {String} + */ + correctForm() { + return this.parsedAddress.map((part) => parseInt(part, 10)).join('.'); + } + /** + * Converts a hex string to an IPv4 address object + * @memberof Address4 + * @static + * @param {string} hex - a hex string to convert + * @returns {Address4} + */ + static fromHex(hex) { + const padded = hex.replace(/:/g, '').padStart(8, '0'); + const groups = []; + let i; + for (i = 0; i < 8; i += 2) { + const h = padded.slice(i, i + 2); + groups.push(parseInt(h, 16)); + } + return new Address4(groups.join('.')); + } + /** + * Converts an integer into a IPv4 address object + * @memberof Address4 + * @static + * @param {integer} integer - a number to convert + * @returns {Address4} + */ + static fromInteger(integer) { + return Address4.fromHex(integer.toString(16)); + } + /** + * Return an address from in-addr.arpa form + * @memberof Address4 + * @static + * @param {string} arpaFormAddress - an 'in-addr.arpa' form ipv4 address + * @returns {Adress4} + * @example + * var address = Address4.fromArpa(42.2.0.192.in-addr.arpa.) + * address.correctForm(); // '192.0.2.42' + */ + static fromArpa(arpaFormAddress) { + // remove ending ".in-addr.arpa." or just "." + const leader = arpaFormAddress.replace(/(\.in-addr\.arpa)?\.$/, ''); + const address = leader.split('.').reverse().join('.'); + return new Address4(address); + } + /** + * Converts an IPv4 address object to a hex string + * @memberof Address4 + * @instance + * @returns {String} + */ + toHex() { + return this.parsedAddress.map((part) => (0, sprintf_js_1.sprintf)('%02x', parseInt(part, 10))).join(':'); + } + /** + * Converts an IPv4 address object to an array of bytes + * @memberof Address4 + * @instance + * @returns {Array} + */ + toArray() { + return this.parsedAddress.map((part) => parseInt(part, 10)); + } + /** + * Converts an IPv4 address object to an IPv6 address group + * @memberof Address4 + * @instance + * @returns {String} + */ + toGroup6() { + const output = []; + let i; + for (i = 0; i < constants.GROUPS; i += 2) { + const hex = (0, sprintf_js_1.sprintf)('%02x%02x', parseInt(this.parsedAddress[i], 10), parseInt(this.parsedAddress[i + 1], 10)); + output.push((0, sprintf_js_1.sprintf)('%x', parseInt(hex, 16))); + } + return output.join(':'); + } + /** + * Returns the address as a BigInteger + * @memberof Address4 + * @instance + * @returns {BigInteger} + */ + bigInteger() { + return new jsbn_1.BigInteger(this.parsedAddress.map((n) => (0, sprintf_js_1.sprintf)('%02x', parseInt(n, 10))).join(''), 16); + } + /** + * Helper function getting start address. + * @memberof Address4 + * @instance + * @returns {BigInteger} + */ + _startAddress() { + return new jsbn_1.BigInteger(this.mask() + '0'.repeat(constants.BITS - this.subnetMask), 2); + } + /** + * The first address in the range given by this address' subnet. + * Often referred to as the Network Address. + * @memberof Address4 + * @instance + * @returns {Address4} + */ + startAddress() { + return Address4.fromBigInteger(this._startAddress()); + } + /** + * The first host address in the range given by this address's subnet ie + * the first address after the Network Address + * @memberof Address4 + * @instance + * @returns {Address4} + */ + startAddressExclusive() { + const adjust = new jsbn_1.BigInteger('1'); + return Address4.fromBigInteger(this._startAddress().add(adjust)); + } + /** + * Helper function getting end address. + * @memberof Address4 + * @instance + * @returns {BigInteger} + */ + _endAddress() { + return new jsbn_1.BigInteger(this.mask() + '1'.repeat(constants.BITS - this.subnetMask), 2); + } + /** + * The last address in the range given by this address' subnet + * Often referred to as the Broadcast + * @memberof Address4 + * @instance + * @returns {Address4} + */ + endAddress() { + return Address4.fromBigInteger(this._endAddress()); + } + /** + * The last host address in the range given by this address's subnet ie + * the last address prior to the Broadcast Address + * @memberof Address4 + * @instance + * @returns {Address4} + */ + endAddressExclusive() { + const adjust = new jsbn_1.BigInteger('1'); + return Address4.fromBigInteger(this._endAddress().subtract(adjust)); + } + /** + * Converts a BigInteger to a v4 address object + * @memberof Address4 + * @static + * @param {BigInteger} bigInteger - a BigInteger to convert + * @returns {Address4} + */ + static fromBigInteger(bigInteger) { + return Address4.fromInteger(parseInt(bigInteger.toString(), 10)); + } + /** + * Returns the first n bits of the address, defaulting to the + * subnet mask + * @memberof Address4 + * @instance + * @returns {String} + */ + mask(mask) { + if (mask === undefined) { + mask = this.subnetMask; + } + return this.getBitsBase2(0, mask); + } + /** + * Returns the bits in the given range as a base-2 string + * @memberof Address4 + * @instance + * @returns {string} + */ + getBitsBase2(start, end) { + return this.binaryZeroPad().slice(start, end); + } + /** + * Return the reversed ip6.arpa form of the address + * @memberof Address4 + * @param {Object} options + * @param {boolean} options.omitSuffix - omit the "in-addr.arpa" suffix + * @instance + * @returns {String} + */ + reverseForm(options) { + if (!options) { + options = {}; + } + const reversed = this.correctForm().split('.').reverse().join('.'); + if (options.omitSuffix) { + return reversed; + } + return (0, sprintf_js_1.sprintf)('%s.in-addr.arpa.', reversed); + } + /** + * Returns true if the given address is a multicast address + * @memberof Address4 + * @instance + * @returns {boolean} + */ + isMulticast() { + return this.isInSubnet(new Address4('224.0.0.0/4')); + } + /** + * Returns a zero-padded base-2 string representation of the address + * @memberof Address4 + * @instance + * @returns {string} + */ + binaryZeroPad() { + return this.bigInteger().toString(2).padStart(constants.BITS, '0'); + } + /** + * Groups an IPv4 address for inclusion at the end of an IPv6 address + * @returns {String} + */ + groupForV6() { + const segments = this.parsedAddress; + return this.address.replace(constants.RE_ADDRESS, (0, sprintf_js_1.sprintf)('%s.%s', segments.slice(0, 2).join('.'), segments.slice(2, 4).join('.'))); + } +} +exports.Address4 = Address4; +//# sourceMappingURL=ipv4.js.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/ipv4.js.map b/Scripts/node_modules/ip-address/dist/ipv4.js.map new file mode 100644 index 00000000..55334e21 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/ipv4.js.map @@ -0,0 +1 @@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OAAO,CAAC,UAAU,EAAE;YACtB,OAAO,QAAQ,CAAC;SACjB;QAED,OAAO,IAAA,oBAAO,EAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC;IAUD;;;;;OAKG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACrE,CAAC;IAED;;;OAGG;IACH,UAAU;QACR,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC;QAEpC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CACzB,SAAS,CAAC,UAAU,EACpB,IAAA,oBAAO,EACL,2GAA2G,EAC3G,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAC9B,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAC/B,CACF,CAAC;IACJ,CAAC;CACF;AA7VD,4BA6VC"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/ipv6.d.ts b/Scripts/node_modules/ip-address/dist/ipv6.d.ts new file mode 100644 index 00000000..b950947d --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/ipv6.d.ts @@ -0,0 +1,429 @@ +import * as common from './common'; +import { Address4 } from './ipv4'; +import { BigInteger } from 'jsbn'; +interface SixToFourProperties { + prefix: string; + gateway: string; +} +interface TeredoProperties { + prefix: string; + server4: string; + client4: string; + flags: string; + coneNat: boolean; + microsoft: { + reserved: boolean; + universalLocal: boolean; + groupIndividual: boolean; + nonce: string; + }; + udpPort: string; +} +/** + * Represents an IPv6 address + * @class Address6 + * @param {string} address - An IPv6 address string + * @param {number} [groups=8] - How many octets to parse + * @example + * var address = new Address6('2001::/32'); + */ +export declare class Address6 { + address4?: Address4; + address: string; + addressMinusSuffix: string; + elidedGroups?: number; + elisionBegin?: number; + elisionEnd?: number; + groups: number; + parsedAddress4?: string; + parsedAddress: string[]; + parsedSubnet: string; + subnet: string; + subnetMask: number; + v4: boolean; + zone: string; + constructor(address: string, optionalGroups?: number); + static isValid(address: string): boolean; + /** + * Convert a BigInteger to a v6 address object + * @memberof Address6 + * @static + * @param {BigInteger} bigInteger - a BigInteger to convert + * @returns {Address6} + * @example + * var bigInteger = new BigInteger('1000000000000'); + * var address = Address6.fromBigInteger(bigInteger); + * address.correctForm(); // '::e8:d4a5:1000' + */ + static fromBigInteger(bigInteger: BigInteger): Address6; + /** + * Convert a URL (with optional port number) to an address object + * @memberof Address6 + * @static + * @param {string} url - a URL with optional port number + * @example + * var addressAndPort = Address6.fromURL('http://[ffff::]:8080/foo/'); + * addressAndPort.address.correctForm(); // 'ffff::' + * addressAndPort.port; // 8080 + */ + static fromURL(url: string): { + error: string; + address: null; + port: null; + } | { + address: Address6; + port: number | null; + error?: undefined; + }; + /** + * Create an IPv6-mapped address given an IPv4 address + * @memberof Address6 + * @static + * @param {string} address - An IPv4 address string + * @returns {Address6} + * @example + * var address = Address6.fromAddress4('192.168.0.1'); + * address.correctForm(); // '::ffff:c0a8:1' + * address.to4in6(); // '::ffff:192.168.0.1' + */ + static fromAddress4(address: string): Address6; + /** + * Return an address from ip6.arpa form + * @memberof Address6 + * @static + * @param {string} arpaFormAddress - an 'ip6.arpa' form address + * @returns {Adress6} + * @example + * var address = Address6.fromArpa(e.f.f.f.3.c.2.6.f.f.f.e.6.6.8.e.1.0.6.7.9.4.e.c.0.0.0.0.1.0.0.2.ip6.arpa.) + * address.correctForm(); // '2001:0:ce49:7601:e866:efff:62c3:fffe' + */ + static fromArpa(arpaFormAddress: string): Address6; + /** + * Return the Microsoft UNC transcription of the address + * @memberof Address6 + * @instance + * @returns {String} the Microsoft UNC transcription of the address + */ + microsoftTranscription(): string; + /** + * Return the first n bits of the address, defaulting to the subnet mask + * @memberof Address6 + * @instance + * @param {number} [mask=subnet] - the number of bits to mask + * @returns {String} the first n bits of the address as a string + */ + mask(mask?: number): string; + /** + * Return the number of possible subnets of a given size in the address + * @memberof Address6 + * @instance + * @param {number} [size=128] - the subnet size + * @returns {String} + */ + possibleSubnets(subnetSize?: number): string; + /** + * Helper function getting start address. + * @memberof Address6 + * @instance + * @returns {BigInteger} + */ + _startAddress(): BigInteger; + /** + * The first address in the range given by this address' subnet + * Often referred to as the Network Address. + * @memberof Address6 + * @instance + * @returns {Address6} + */ + startAddress(): Address6; + /** + * The first host address in the range given by this address's subnet ie + * the first address after the Network Address + * @memberof Address6 + * @instance + * @returns {Address6} + */ + startAddressExclusive(): Address6; + /** + * Helper function getting end address. + * @memberof Address6 + * @instance + * @returns {BigInteger} + */ + _endAddress(): BigInteger; + /** + * The last address in the range given by this address' subnet + * Often referred to as the Broadcast + * @memberof Address6 + * @instance + * @returns {Address6} + */ + endAddress(): Address6; + /** + * The last host address in the range given by this address's subnet ie + * the last address prior to the Broadcast Address + * @memberof Address6 + * @instance + * @returns {Address6} + */ + endAddressExclusive(): Address6; + /** + * Return the scope of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + getScope(): string; + /** + * Return the type of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + getType(): string; + /** + * Return the bits in the given range as a BigInteger + * @memberof Address6 + * @instance + * @returns {BigInteger} + */ + getBits(start: number, end: number): BigInteger; + /** + * Return the bits in the given range as a base-2 string + * @memberof Address6 + * @instance + * @returns {String} + */ + getBitsBase2(start: number, end: number): string; + /** + * Return the bits in the given range as a base-16 string + * @memberof Address6 + * @instance + * @returns {String} + */ + getBitsBase16(start: number, end: number): string; + /** + * Return the bits that are set past the subnet mask length + * @memberof Address6 + * @instance + * @returns {String} + */ + getBitsPastSubnet(): string; + /** + * Return the reversed ip6.arpa form of the address + * @memberof Address6 + * @param {Object} options + * @param {boolean} options.omitSuffix - omit the "ip6.arpa" suffix + * @instance + * @returns {String} + */ + reverseForm(options?: common.ReverseFormOptions): string; + /** + * Return the correct form of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + correctForm(): string; + /** + * Return a zero-padded base-2 string representation of the address + * @memberof Address6 + * @instance + * @returns {String} + * @example + * var address = new Address6('2001:4860:4001:803::1011'); + * address.binaryZeroPad(); + * // '0010000000000001010010000110000001000000000000010000100000000011 + * // 0000000000000000000000000000000000000000000000000001000000010001' + */ + binaryZeroPad(): string; + parse4in6(address: string): string; + parse(address: string): string[]; + /** + * Return the canonical form of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + canonicalForm(): string; + /** + * Return the decimal form of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + decimal(): string; + /** + * Return the address as a BigInteger + * @memberof Address6 + * @instance + * @returns {BigInteger} + */ + bigInteger(): BigInteger; + /** + * Return the last two groups of this address as an IPv4 address string + * @memberof Address6 + * @instance + * @returns {Address4} + * @example + * var address = new Address6('2001:4860:4001::1825:bf11'); + * address.to4().correctForm(); // '24.37.191.17' + */ + to4(): Address4; + /** + * Return the v4-in-v6 form of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + to4in6(): string; + /** + * Return an object containing the Teredo properties of the address + * @memberof Address6 + * @instance + * @returns {Object} + */ + inspectTeredo(): TeredoProperties; + /** + * Return an object containing the 6to4 properties of the address + * @memberof Address6 + * @instance + * @returns {Object} + */ + inspect6to4(): SixToFourProperties; + /** + * Return a v6 6to4 address from a v6 v4inv6 address + * @memberof Address6 + * @instance + * @returns {Address6} + */ + to6to4(): Address6 | null; + /** + * Return a byte array + * @memberof Address6 + * @instance + * @returns {Array} + */ + toByteArray(): number[]; + /** + * Return an unsigned byte array + * @memberof Address6 + * @instance + * @returns {Array} + */ + toUnsignedByteArray(): number[]; + /** + * Convert a byte array to an Address6 object + * @memberof Address6 + * @static + * @returns {Address6} + */ + static fromByteArray(bytes: Array): Address6; + /** + * Convert an unsigned byte array to an Address6 object + * @memberof Address6 + * @static + * @returns {Address6} + */ + static fromUnsignedByteArray(bytes: Array): Address6; + /** + * Returns true if the given address is in the subnet of the current address + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isInSubnet: typeof common.isInSubnet; + /** + * Returns true if the address is correct, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isCorrect: (this: Address4 | Address6) => boolean; + /** + * Returns true if the address is in the canonical form, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isCanonical(): boolean; + /** + * Returns true if the address is a link local address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isLinkLocal(): boolean; + /** + * Returns true if the address is a multicast address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isMulticast(): boolean; + /** + * Returns true if the address is a v4-in-v6 address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + is4(): boolean; + /** + * Returns true if the address is a Teredo address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isTeredo(): boolean; + /** + * Returns true if the address is a 6to4 address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + is6to4(): boolean; + /** + * Returns true if the address is a loopback address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isLoopback(): boolean; + /** + * @returns {String} the address in link form with a default port of 80 + */ + href(optionalPort?: number | string): string; + /** + * @returns {String} a link suitable for conveying the address via a URL hash + */ + link(options?: { + className?: string; + prefix?: string; + v4?: boolean; + }): string; + /** + * Groups an address + * @returns {String} + */ + group(): string; + /** + * Generate a regular expression string that can be used to find or validate + * all variations of this address + * @memberof Address6 + * @instance + * @param {boolean} substringSearch + * @returns {string} + */ + regularExpressionString(this: Address6, substringSearch?: boolean): string; + /** + * Generate a regular expression that can be used to find or validate all + * variations of this address. + * @memberof Address6 + * @instance + * @param {boolean} substringSearch + * @returns {RegExp} + */ + regularExpression(this: Address6, substringSearch?: boolean): RegExp; +} +export {}; +//# sourceMappingURL=ipv6.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/ipv6.d.ts.map b/Scripts/node_modules/ip-address/dist/ipv6.d.ts.map new file mode 100644 index 00000000..bc64ab70 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/ipv6.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ipv6.d.ts","sourceRoot":"","sources":["../src/ipv6.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAInC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAOlC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAuDlC,UAAU,mBAAmB;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE;QACT,QAAQ,EAAE,OAAO,CAAC;QAClB,cAAc,EAAE,OAAO,CAAC;QACxB,eAAe,EAAE,OAAO,CAAC;QACzB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,qBAAa,QAAQ;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,EAAE,MAAM,CAAM;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,EAAE,M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;OAKG;IACH,WAAW,IAAI,OAAO;IAYtB;;;;;OAKG;IACH,WAAW,IAAI,OAAO;IAItB;;;;;OAKG;IACH,GAAG,IAAI,OAAO;IAId;;;;;OAKG;IACH,QAAQ,IAAI,OAAO;IAInB;;;;;OAKG;IACH,MAAM,IAAI,OAAO;IAIjB;;;;;OAKG;IACH,UAAU,IAAI,OAAO;IAMrB;;OAEG;IACH,IAAI,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IAU5C;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,MAAM;IAmC7E;;;OAGG;IACH,KAAK,IAAI,MAAM;IA8Cf;;;;;;;OAOG;IACH,uBAAuB,CAAC,IAAI,EAAE,QAAQ,EAAE,eAAe,GAAE,OAAe,GAAG,MAAM;IAgDjF;;;;;;;OAOG;IACH,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,eAAe,GAAE,OAAe,GAAG,MAAM;CAI5E"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/ipv6.js b/Scripts/node_modules/ip-address/dist/ipv6.js new file mode 100644 index 00000000..c88ab84b --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/ipv6.js @@ -0,0 +1,998 @@ +"use strict"; +/* eslint-disable prefer-destructuring */ +/* eslint-disable no-param-reassign */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Address6 = void 0; +const common = __importStar(require("./common")); +const constants4 = __importStar(require("./v4/constants")); +const constants6 = __importStar(require("./v6/constants")); +const helpers = __importStar(require("./v6/helpers")); +const ipv4_1 = require("./ipv4"); +const regular_expressions_1 = require("./v6/regular-expressions"); +const address_error_1 = require("./address-error"); +const jsbn_1 = require("jsbn"); +const sprintf_js_1 = require("sprintf-js"); +function assert(condition) { + if (!condition) { + throw new Error('Assertion failed.'); + } +} +function addCommas(number) { + const r = /(\d+)(\d{3})/; + while (r.test(number)) { + number = number.replace(r, '$1,$2'); + } + return number; +} +function spanLeadingZeroes4(n) { + n = n.replace(/^(0{1,})([1-9]+)$/, '$1$2'); + n = n.replace(/^(0{1,})(0)$/, '$1$2'); + return n; +} +/* + * A helper function to compact an array + */ +function compact(address, slice) { + const s1 = []; + const s2 = []; + let i; + for (i = 0; i < address.length; i++) { + if (i < slice[0]) { + s1.push(address[i]); + } + else if (i > slice[1]) { + s2.push(address[i]); + } + } + return s1.concat(['compact']).concat(s2); +} +function paddedHex(octet) { + return (0, sprintf_js_1.sprintf)('%04x', parseInt(octet, 16)); +} +function unsignByte(b) { + // eslint-disable-next-line no-bitwise + return b & 0xff; +} +/** + * Represents an IPv6 address + * @class Address6 + * @param {string} address - An IPv6 address string + * @param {number} [groups=8] - How many octets to parse + * @example + * var address = new Address6('2001::/32'); + */ +class Address6 { + constructor(address, optionalGroups) { + this.addressMinusSuffix = ''; + this.parsedSubnet = ''; + this.subnet = '/128'; + this.subnetMask = 128; + this.v4 = false; + this.zone = ''; + // #region Attributes + /** + * Returns true if the given address is in the subnet of the current address + * @memberof Address6 + * @instance + * @returns {boolean} + */ + this.isInSubnet = common.isInSubnet; + /** + * Returns true if the address is correct, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + this.isCorrect = common.isCorrect(constants6.BITS); + if (optionalGroups === undefined) { + this.groups = constants6.GROUPS; + } + else { + this.groups = optionalGroups; + } + this.address = address; + const subnet = constants6.RE_SUBNET_STRING.exec(address); + if (subnet) { + this.parsedSubnet = subnet[0].replace('/', ''); + this.subnetMask = parseInt(this.parsedSubnet, 10); + this.subnet = `/${this.subnetMask}`; + if (Number.isNaN(this.subnetMask) || + this.subnetMask < 0 || + this.subnetMask > constants6.BITS) { + throw new address_error_1.AddressError('Invalid subnet mask.'); + } + address = address.replace(constants6.RE_SUBNET_STRING, ''); + } + else if (/\//.test(address)) { + throw new address_error_1.AddressError('Invalid subnet mask.'); + } + const zone = constants6.RE_ZONE_STRING.exec(address); + if (zone) { + this.zone = zone[0]; + address = address.replace(constants6.RE_ZONE_STRING, ''); + } + this.addressMinusSuffix = address; + this.parsedAddress = this.parse(this.addressMinusSuffix); + } + static isValid(address) { + try { + // eslint-disable-next-line no-new + new Address6(address); + return true; + } + catch (e) { + return false; + } + } + /** + * Convert a BigInteger to a v6 address object + * @memberof Address6 + * @static + * @param {BigInteger} bigInteger - a BigInteger to convert + * @returns {Address6} + * @example + * var bigInteger = new BigInteger('1000000000000'); + * var address = Address6.fromBigInteger(bigInteger); + * address.correctForm(); // '::e8:d4a5:1000' + */ + static fromBigInteger(bigInteger) { + const hex = bigInteger.toString(16).padStart(32, '0'); + const groups = []; + let i; + for (i = 0; i < constants6.GROUPS; i++) { + groups.push(hex.slice(i * 4, (i + 1) * 4)); + } + return new Address6(groups.join(':')); + } + /** + * Convert a URL (with optional port number) to an address object + * @memberof Address6 + * @static + * @param {string} url - a URL with optional port number + * @example + * var addressAndPort = Address6.fromURL('http://[ffff::]:8080/foo/'); + * addressAndPort.address.correctForm(); // 'ffff::' + * addressAndPort.port; // 8080 + */ + static fromURL(url) { + let host; + let port = null; + let result; + // If we have brackets parse them and find a port + if (url.indexOf('[') !== -1 && url.indexOf(']:') !== -1) { + result = constants6.RE_URL_WITH_PORT.exec(url); + if (result === null) { + return { + error: 'failed to parse address with port', + address: null, + port: null, + }; + } + host = result[1]; + port = result[2]; + // If there's a URL extract the address + } + else if (url.indexOf('/') !== -1) { + // Remove the protocol prefix + url = url.replace(/^[a-z0-9]+:\/\//, ''); + // Parse the address + result = constants6.RE_URL.exec(url); + if (result === null) { + return { + error: 'failed to parse address from URL', + address: null, + port: null, + }; + } + host = result[1]; + // Otherwise just assign the URL to the host and let the library parse it + } + else { + host = url; + } + // If there's a port convert it to an integer + if (port) { + port = parseInt(port, 10); + // squelch out of range ports + if (port < 0 || port > 65536) { + port = null; + } + } + else { + // Standardize `undefined` to `null` + port = null; + } + return { + address: new Address6(host), + port, + }; + } + /** + * Create an IPv6-mapped address given an IPv4 address + * @memberof Address6 + * @static + * @param {string} address - An IPv4 address string + * @returns {Address6} + * @example + * var address = Address6.fromAddress4('192.168.0.1'); + * address.correctForm(); // '::ffff:c0a8:1' + * address.to4in6(); // '::ffff:192.168.0.1' + */ + static fromAddress4(address) { + const address4 = new ipv4_1.Address4(address); + const mask6 = constants6.BITS - (constants4.BITS - address4.subnetMask); + return new Address6(`::ffff:${address4.correctForm()}/${mask6}`); + } + /** + * Return an address from ip6.arpa form + * @memberof Address6 + * @static + * @param {string} arpaFormAddress - an 'ip6.arpa' form address + * @returns {Adress6} + * @example + * var address = Address6.fromArpa(e.f.f.f.3.c.2.6.f.f.f.e.6.6.8.e.1.0.6.7.9.4.e.c.0.0.0.0.1.0.0.2.ip6.arpa.) + * address.correctForm(); // '2001:0:ce49:7601:e866:efff:62c3:fffe' + */ + static fromArpa(arpaFormAddress) { + // remove ending ".ip6.arpa." or just "." + let address = arpaFormAddress.replace(/(\.ip6\.arpa)?\.$/, ''); + const semicolonAmount = 7; + // correct ip6.arpa form with ending removed will be 63 characters + if (address.length !== 63) { + throw new address_error_1.AddressError("Invalid 'ip6.arpa' form."); + } + const parts = address.split('.').reverse(); + for (let i = semicolonAmount; i > 0; i--) { + const insertIndex = i * 4; + parts.splice(insertIndex, 0, ':'); + } + address = parts.join(''); + return new Address6(address); + } + /** + * Return the Microsoft UNC transcription of the address + * @memberof Address6 + * @instance + * @returns {String} the Microsoft UNC transcription of the address + */ + microsoftTranscription() { + return (0, sprintf_js_1.sprintf)('%s.ipv6-literal.net', this.correctForm().replace(/:/g, '-')); + } + /** + * Return the first n bits of the address, defaulting to the subnet mask + * @memberof Address6 + * @instance + * @param {number} [mask=subnet] - the number of bits to mask + * @returns {String} the first n bits of the address as a string + */ + mask(mask = this.subnetMask) { + return this.getBitsBase2(0, mask); + } + /** + * Return the number of possible subnets of a given size in the address + * @memberof Address6 + * @instance + * @param {number} [size=128] - the subnet size + * @returns {String} + */ + // TODO: probably useful to have a numeric version of this too + possibleSubnets(subnetSize = 128) { + const availableBits = constants6.BITS - this.subnetMask; + const subnetBits = Math.abs(subnetSize - constants6.BITS); + const subnetPowers = availableBits - subnetBits; + if (subnetPowers < 0) { + return '0'; + } + return addCommas(new jsbn_1.BigInteger('2', 10).pow(subnetPowers).toString(10)); + } + /** + * Helper function getting start address. + * @memberof Address6 + * @instance + * @returns {BigInteger} + */ + _startAddress() { + return new jsbn_1.BigInteger(this.mask() + '0'.repeat(constants6.BITS - this.subnetMask), 2); + } + /** + * The first address in the range given by this address' subnet + * Often referred to as the Network Address. + * @memberof Address6 + * @instance + * @returns {Address6} + */ + startAddress() { + return Address6.fromBigInteger(this._startAddress()); + } + /** + * The first host address in the range given by this address's subnet ie + * the first address after the Network Address + * @memberof Address6 + * @instance + * @returns {Address6} + */ + startAddressExclusive() { + const adjust = new jsbn_1.BigInteger('1'); + return Address6.fromBigInteger(this._startAddress().add(adjust)); + } + /** + * Helper function getting end address. + * @memberof Address6 + * @instance + * @returns {BigInteger} + */ + _endAddress() { + return new jsbn_1.BigInteger(this.mask() + '1'.repeat(constants6.BITS - this.subnetMask), 2); + } + /** + * The last address in the range given by this address' subnet + * Often referred to as the Broadcast + * @memberof Address6 + * @instance + * @returns {Address6} + */ + endAddress() { + return Address6.fromBigInteger(this._endAddress()); + } + /** + * The last host address in the range given by this address's subnet ie + * the last address prior to the Broadcast Address + * @memberof Address6 + * @instance + * @returns {Address6} + */ + endAddressExclusive() { + const adjust = new jsbn_1.BigInteger('1'); + return Address6.fromBigInteger(this._endAddress().subtract(adjust)); + } + /** + * Return the scope of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + getScope() { + let scope = constants6.SCOPES[this.getBits(12, 16).intValue()]; + if (this.getType() === 'Global unicast' && scope !== 'Link local') { + scope = 'Global'; + } + return scope || 'Unknown'; + } + /** + * Return the type of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + getType() { + for (const subnet of Object.keys(constants6.TYPES)) { + if (this.isInSubnet(new Address6(subnet))) { + return constants6.TYPES[subnet]; + } + } + return 'Global unicast'; + } + /** + * Return the bits in the given range as a BigInteger + * @memberof Address6 + * @instance + * @returns {BigInteger} + */ + getBits(start, end) { + return new jsbn_1.BigInteger(this.getBitsBase2(start, end), 2); + } + /** + * Return the bits in the given range as a base-2 string + * @memberof Address6 + * @instance + * @returns {String} + */ + getBitsBase2(start, end) { + return this.binaryZeroPad().slice(start, end); + } + /** + * Return the bits in the given range as a base-16 string + * @memberof Address6 + * @instance + * @returns {String} + */ + getBitsBase16(start, end) { + const length = end - start; + if (length % 4 !== 0) { + throw new Error('Length of bits to retrieve must be divisible by four'); + } + return this.getBits(start, end) + .toString(16) + .padStart(length / 4, '0'); + } + /** + * Return the bits that are set past the subnet mask length + * @memberof Address6 + * @instance + * @returns {String} + */ + getBitsPastSubnet() { + return this.getBitsBase2(this.subnetMask, constants6.BITS); + } + /** + * Return the reversed ip6.arpa form of the address + * @memberof Address6 + * @param {Object} options + * @param {boolean} options.omitSuffix - omit the "ip6.arpa" suffix + * @instance + * @returns {String} + */ + reverseForm(options) { + if (!options) { + options = {}; + } + const characters = Math.floor(this.subnetMask / 4); + const reversed = this.canonicalForm() + .replace(/:/g, '') + .split('') + .slice(0, characters) + .reverse() + .join('.'); + if (characters > 0) { + if (options.omitSuffix) { + return reversed; + } + return (0, sprintf_js_1.sprintf)('%s.ip6.arpa.', reversed); + } + if (options.omitSuffix) { + return ''; + } + return 'ip6.arpa.'; + } + /** + * Return the correct form of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + correctForm() { + let i; + let groups = []; + let zeroCounter = 0; + const zeroes = []; + for (i = 0; i < this.parsedAddress.length; i++) { + const value = parseInt(this.parsedAddress[i], 16); + if (value === 0) { + zeroCounter++; + } + if (value !== 0 && zeroCounter > 0) { + if (zeroCounter > 1) { + zeroes.push([i - zeroCounter, i - 1]); + } + zeroCounter = 0; + } + } + // Do we end with a string of zeroes? + if (zeroCounter > 1) { + zeroes.push([this.parsedAddress.length - zeroCounter, this.parsedAddress.length - 1]); + } + const zeroLengths = zeroes.map((n) => n[1] - n[0] + 1); + if (zeroes.length > 0) { + const index = zeroLengths.indexOf(Math.max(...zeroLengths)); + groups = compact(this.parsedAddress, zeroes[index]); + } + else { + groups = this.parsedAddress; + } + for (i = 0; i < groups.length; i++) { + if (groups[i] !== 'compact') { + groups[i] = parseInt(groups[i], 16).toString(16); + } + } + let correct = groups.join(':'); + correct = correct.replace(/^compact$/, '::'); + correct = correct.replace(/^compact|compact$/, ':'); + correct = correct.replace(/compact/, ''); + return correct; + } + /** + * Return a zero-padded base-2 string representation of the address + * @memberof Address6 + * @instance + * @returns {String} + * @example + * var address = new Address6('2001:4860:4001:803::1011'); + * address.binaryZeroPad(); + * // '0010000000000001010010000110000001000000000000010000100000000011 + * // 0000000000000000000000000000000000000000000000000001000000010001' + */ + binaryZeroPad() { + return this.bigInteger().toString(2).padStart(constants6.BITS, '0'); + } + // TODO: Improve the semantics of this helper function + parse4in6(address) { + const groups = address.split(':'); + const lastGroup = groups.slice(-1)[0]; + const address4 = lastGroup.match(constants4.RE_ADDRESS); + if (address4) { + this.parsedAddress4 = address4[0]; + this.address4 = new ipv4_1.Address4(this.parsedAddress4); + for (let i = 0; i < this.address4.groups; i++) { + if (/^0[0-9]+/.test(this.address4.parsedAddress[i])) { + throw new address_error_1.AddressError("IPv4 addresses can't have leading zeroes.", address.replace(constants4.RE_ADDRESS, this.address4.parsedAddress.map(spanLeadingZeroes4).join('.'))); + } + } + this.v4 = true; + groups[groups.length - 1] = this.address4.toGroup6(); + address = groups.join(':'); + } + return address; + } + // TODO: Make private? + parse(address) { + address = this.parse4in6(address); + const badCharacters = address.match(constants6.RE_BAD_CHARACTERS); + if (badCharacters) { + throw new address_error_1.AddressError((0, sprintf_js_1.sprintf)('Bad character%s detected in address: %s', badCharacters.length > 1 ? 's' : '', badCharacters.join('')), address.replace(constants6.RE_BAD_CHARACTERS, '$1')); + } + const badAddress = address.match(constants6.RE_BAD_ADDRESS); + if (badAddress) { + throw new address_error_1.AddressError((0, sprintf_js_1.sprintf)('Address failed regex: %s', badAddress.join('')), address.replace(constants6.RE_BAD_ADDRESS, '$1')); + } + let groups = []; + const halves = address.split('::'); + if (halves.length === 2) { + let first = halves[0].split(':'); + let last = halves[1].split(':'); + if (first.length === 1 && first[0] === '') { + first = []; + } + if (last.length === 1 && last[0] === '') { + last = []; + } + const remaining = this.groups - (first.length + last.length); + if (!remaining) { + throw new address_error_1.AddressError('Error parsing groups'); + } + this.elidedGroups = remaining; + this.elisionBegin = first.length; + this.elisionEnd = first.length + this.elidedGroups; + groups = groups.concat(first); + for (let i = 0; i < remaining; i++) { + groups.push('0'); + } + groups = groups.concat(last); + } + else if (halves.length === 1) { + groups = address.split(':'); + this.elidedGroups = 0; + } + else { + throw new address_error_1.AddressError('Too many :: groups found'); + } + groups = groups.map((group) => (0, sprintf_js_1.sprintf)('%x', parseInt(group, 16))); + if (groups.length !== this.groups) { + throw new address_error_1.AddressError('Incorrect number of groups found'); + } + return groups; + } + /** + * Return the canonical form of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + canonicalForm() { + return this.parsedAddress.map(paddedHex).join(':'); + } + /** + * Return the decimal form of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + decimal() { + return this.parsedAddress.map((n) => (0, sprintf_js_1.sprintf)('%05d', parseInt(n, 16))).join(':'); + } + /** + * Return the address as a BigInteger + * @memberof Address6 + * @instance + * @returns {BigInteger} + */ + bigInteger() { + return new jsbn_1.BigInteger(this.parsedAddress.map(paddedHex).join(''), 16); + } + /** + * Return the last two groups of this address as an IPv4 address string + * @memberof Address6 + * @instance + * @returns {Address4} + * @example + * var address = new Address6('2001:4860:4001::1825:bf11'); + * address.to4().correctForm(); // '24.37.191.17' + */ + to4() { + const binary = this.binaryZeroPad().split(''); + return ipv4_1.Address4.fromHex(new jsbn_1.BigInteger(binary.slice(96, 128).join(''), 2).toString(16)); + } + /** + * Return the v4-in-v6 form of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + to4in6() { + const address4 = this.to4(); + const address6 = new Address6(this.parsedAddress.slice(0, 6).join(':'), 6); + const correct = address6.correctForm(); + let infix = ''; + if (!/:$/.test(correct)) { + infix = ':'; + } + return correct + infix + address4.address; + } + /** + * Return an object containing the Teredo properties of the address + * @memberof Address6 + * @instance + * @returns {Object} + */ + inspectTeredo() { + /* + - Bits 0 to 31 are set to the Teredo prefix (normally 2001:0000::/32). + - Bits 32 to 63 embed the primary IPv4 address of the Teredo server that + is used. + - Bits 64 to 79 can be used to define some flags. Currently only the + higher order bit is used; it is set to 1 if the Teredo client is + located behind a cone NAT, 0 otherwise. For Microsoft's Windows Vista + and Windows Server 2008 implementations, more bits are used. In those + implementations, the format for these 16 bits is "CRAAAAUG AAAAAAAA", + where "C" remains the "Cone" flag. The "R" bit is reserved for future + use. The "U" bit is for the Universal/Local flag (set to 0). The "G" bit + is Individual/Group flag (set to 0). The A bits are set to a 12-bit + randomly generated number chosen by the Teredo client to introduce + additional protection for the Teredo node against IPv6-based scanning + attacks. + - Bits 80 to 95 contains the obfuscated UDP port number. This is the + port number that is mapped by the NAT to the Teredo client with all + bits inverted. + - Bits 96 to 127 contains the obfuscated IPv4 address. This is the + public IPv4 address of the NAT with all bits inverted. + */ + const prefix = this.getBitsBase16(0, 32); + const udpPort = this.getBits(80, 96).xor(new jsbn_1.BigInteger('ffff', 16)).toString(); + const server4 = ipv4_1.Address4.fromHex(this.getBitsBase16(32, 64)); + const client4 = ipv4_1.Address4.fromHex(this.getBits(96, 128).xor(new jsbn_1.BigInteger('ffffffff', 16)).toString(16)); + const flags = this.getBits(64, 80); + const flagsBase2 = this.getBitsBase2(64, 80); + const coneNat = flags.testBit(15); + const reserved = flags.testBit(14); + const groupIndividual = flags.testBit(8); + const universalLocal = flags.testBit(9); + const nonce = new jsbn_1.BigInteger(flagsBase2.slice(2, 6) + flagsBase2.slice(8, 16), 2).toString(10); + return { + prefix: (0, sprintf_js_1.sprintf)('%s:%s', prefix.slice(0, 4), prefix.slice(4, 8)), + server4: server4.address, + client4: client4.address, + flags: flagsBase2, + coneNat, + microsoft: { + reserved, + universalLocal, + groupIndividual, + nonce, + }, + udpPort, + }; + } + /** + * Return an object containing the 6to4 properties of the address + * @memberof Address6 + * @instance + * @returns {Object} + */ + inspect6to4() { + /* + - Bits 0 to 15 are set to the 6to4 prefix (2002::/16). + - Bits 16 to 48 embed the IPv4 address of the 6to4 gateway that is used. + */ + const prefix = this.getBitsBase16(0, 16); + const gateway = ipv4_1.Address4.fromHex(this.getBitsBase16(16, 48)); + return { + prefix: (0, sprintf_js_1.sprintf)('%s', prefix.slice(0, 4)), + gateway: gateway.address, + }; + } + /** + * Return a v6 6to4 address from a v6 v4inv6 address + * @memberof Address6 + * @instance + * @returns {Address6} + */ + to6to4() { + if (!this.is4()) { + return null; + } + const addr6to4 = [ + '2002', + this.getBitsBase16(96, 112), + this.getBitsBase16(112, 128), + '', + '/16', + ].join(':'); + return new Address6(addr6to4); + } + /** + * Return a byte array + * @memberof Address6 + * @instance + * @returns {Array} + */ + toByteArray() { + const byteArray = this.bigInteger().toByteArray(); + // work around issue where `toByteArray` returns a leading 0 element + if (byteArray.length === 17 && byteArray[0] === 0) { + return byteArray.slice(1); + } + return byteArray; + } + /** + * Return an unsigned byte array + * @memberof Address6 + * @instance + * @returns {Array} + */ + toUnsignedByteArray() { + return this.toByteArray().map(unsignByte); + } + /** + * Convert a byte array to an Address6 object + * @memberof Address6 + * @static + * @returns {Address6} + */ + static fromByteArray(bytes) { + return this.fromUnsignedByteArray(bytes.map(unsignByte)); + } + /** + * Convert an unsigned byte array to an Address6 object + * @memberof Address6 + * @static + * @returns {Address6} + */ + static fromUnsignedByteArray(bytes) { + const BYTE_MAX = new jsbn_1.BigInteger('256', 10); + let result = new jsbn_1.BigInteger('0', 10); + let multiplier = new jsbn_1.BigInteger('1', 10); + for (let i = bytes.length - 1; i >= 0; i--) { + result = result.add(multiplier.multiply(new jsbn_1.BigInteger(bytes[i].toString(10), 10))); + multiplier = multiplier.multiply(BYTE_MAX); + } + return Address6.fromBigInteger(result); + } + /** + * Returns true if the address is in the canonical form, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isCanonical() { + return this.addressMinusSuffix === this.canonicalForm(); + } + /** + * Returns true if the address is a link local address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isLinkLocal() { + // Zeroes are required, i.e. we can't check isInSubnet with 'fe80::/10' + if (this.getBitsBase2(0, 64) === + '1111111010000000000000000000000000000000000000000000000000000000') { + return true; + } + return false; + } + /** + * Returns true if the address is a multicast address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isMulticast() { + return this.getType() === 'Multicast'; + } + /** + * Returns true if the address is a v4-in-v6 address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + is4() { + return this.v4; + } + /** + * Returns true if the address is a Teredo address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isTeredo() { + return this.isInSubnet(new Address6('2001::/32')); + } + /** + * Returns true if the address is a 6to4 address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + is6to4() { + return this.isInSubnet(new Address6('2002::/16')); + } + /** + * Returns true if the address is a loopback address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isLoopback() { + return this.getType() === 'Loopback'; + } + // #endregion + // #region HTML + /** + * @returns {String} the address in link form with a default port of 80 + */ + href(optionalPort) { + if (optionalPort === undefined) { + optionalPort = ''; + } + else { + optionalPort = (0, sprintf_js_1.sprintf)(':%s', optionalPort); + } + return (0, sprintf_js_1.sprintf)('http://[%s]%s/', this.correctForm(), optionalPort); + } + /** + * @returns {String} a link suitable for conveying the address via a URL hash + */ + link(options) { + if (!options) { + options = {}; + } + if (options.className === undefined) { + options.className = ''; + } + if (options.prefix === undefined) { + options.prefix = '/#address='; + } + if (options.v4 === undefined) { + options.v4 = false; + } + let formFunction = this.correctForm; + if (options.v4) { + formFunction = this.to4in6; + } + if (options.className) { + return (0, sprintf_js_1.sprintf)('%2$s', options.prefix, formFunction.call(this), options.className); + } + return (0, sprintf_js_1.sprintf)('%2$s', options.prefix, formFunction.call(this)); + } + /** + * Groups an address + * @returns {String} + */ + group() { + if (this.elidedGroups === 0) { + // The simple case + return helpers.simpleGroup(this.address).join(':'); + } + assert(typeof this.elidedGroups === 'number'); + assert(typeof this.elisionBegin === 'number'); + // The elided case + const output = []; + const [left, right] = this.address.split('::'); + if (left.length) { + output.push(...helpers.simpleGroup(left)); + } + else { + output.push(''); + } + const classes = ['hover-group']; + for (let i = this.elisionBegin; i < this.elisionBegin + this.elidedGroups; i++) { + classes.push((0, sprintf_js_1.sprintf)('group-%d', i)); + } + output.push((0, sprintf_js_1.sprintf)('', classes.join(' '))); + if (right.length) { + output.push(...helpers.simpleGroup(right, this.elisionEnd)); + } + else { + output.push(''); + } + if (this.is4()) { + assert(this.address4 instanceof ipv4_1.Address4); + output.pop(); + output.push(this.address4.groupForV6()); + } + return output.join(':'); + } + // #endregion + // #region Regular expressions + /** + * Generate a regular expression string that can be used to find or validate + * all variations of this address + * @memberof Address6 + * @instance + * @param {boolean} substringSearch + * @returns {string} + */ + regularExpressionString(substringSearch = false) { + let output = []; + // TODO: revisit why this is necessary + const address6 = new Address6(this.correctForm()); + if (address6.elidedGroups === 0) { + // The simple case + output.push((0, regular_expressions_1.simpleRegularExpression)(address6.parsedAddress)); + } + else if (address6.elidedGroups === constants6.GROUPS) { + // A completely elided address + output.push((0, regular_expressions_1.possibleElisions)(constants6.GROUPS)); + } + else { + // A partially elided address + const halves = address6.address.split('::'); + if (halves[0].length) { + output.push((0, regular_expressions_1.simpleRegularExpression)(halves[0].split(':'))); + } + assert(typeof address6.elidedGroups === 'number'); + output.push((0, regular_expressions_1.possibleElisions)(address6.elidedGroups, halves[0].length !== 0, halves[1].length !== 0)); + if (halves[1].length) { + output.push((0, regular_expressions_1.simpleRegularExpression)(halves[1].split(':'))); + } + output = [output.join(':')]; + } + if (!substringSearch) { + output = [ + '(?=^|', + regular_expressions_1.ADDRESS_BOUNDARY, + '|[^\\w\\:])(', + ...output, + ')(?=[^\\w\\:]|', + regular_expressions_1.ADDRESS_BOUNDARY, + '|$)', + ]; + } + return output.join(''); + } + /** + * Generate a regular expression that can be used to find or validate all + * variations of this address. + * @memberof Address6 + * @instance + * @param {boolean} substringSearch + * @returns {RegExp} + */ + regularExpression(substringSearch = false) { + return new RegExp(this.regularExpressionString(substringSearch), 'i'); + } +} +exports.Address6 = Address6; +//# sourceMappingURL=ipv6.js.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/ipv6.js.map b/Scripts/node_modules/ip-address/dist/ipv6.js.map new file mode 100644 index 00000000..0a967d7c --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/ipv6.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ipv6.js","sourceRoot":"","sources":["../src/ipv6.ts"],"names":[],"mappings":";AAAA,yCAAyC;AACzC,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtC,iDAA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AAE,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CACxF,CAAC;YAEF,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE;gBACpB,MAAM,CAAC,IAAI,CAAC,IAAA,6CAAuB,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;aAC5D;YAED,MAAM,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;SAC7B;QAED,IAAI,CAAC,eAAe,EAAE;YACpB,MAAM,GAAG;gBACP,OAAO;gBACP,sCAAgB;gBAChB,cAAc;gBACd,GAAG,MAAM;gBACT,gBAAgB;gBAChB,sCAAgB;gBAChB,KAAK;aACN,CAAC;SACH;QAED,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACzB,CAAC;IAED;;;;;;;OAOG;IACH,iBAAiB,CAAiB,kBAA2B,KAAK;QAChE,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,eAAe,CAAC,EAAE,GAAG,CAAC,CAAC;IACxE,CAAC;CAEF;AA5lCD,4BA4lCC"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/v4/constants.d.ts b/Scripts/node_modules/ip-address/dist/v4/constants.d.ts new file mode 100644 index 00000000..4e85d4a4 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v4/constants.d.ts @@ -0,0 +1,5 @@ +export declare const BITS = 32; +export declare const GROUPS = 4; +export declare const RE_ADDRESS: RegExp; +export declare const RE_SUBNET_STRING: RegExp; +//# sourceMappingURL=constants.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/v4/constants.d.ts.map b/Scripts/node_modules/ip-address/dist/v4/constants.d.ts.map new file mode 100644 index 00000000..56e7237f --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v4/constants.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/v4/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,KAAK,CAAC;AACvB,eAAO,MAAM,MAAM,IAAI,CAAC;AAExB,eAAO,MAAM,UAAU,QAAsK,CAAC;AAE9L,eAAO,MAAM,gBAAgB,QAAe,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/v4/constants.js b/Scripts/node_modules/ip-address/dist/v4/constants.js new file mode 100644 index 00000000..6fa2518f --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v4/constants.js @@ -0,0 +1,8 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RE_SUBNET_STRING = exports.RE_ADDRESS = exports.GROUPS = exports.BITS = void 0; +exports.BITS = 32; +exports.GROUPS = 4; +exports.RE_ADDRESS = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/g; +exports.RE_SUBNET_STRING = /\/\d{1,2}$/; +//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/v4/constants.js.map b/Scripts/node_modules/ip-address/dist/v4/constants.js.map new file mode 100644 index 00000000..46f409eb --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v4/constants.js.map @@ -0,0 +1 @@ +{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/v4/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,EAAE,CAAC;AACV,QAAA,MAAM,GAAG,CAAC,CAAC;AAEX,QAAA,UAAU,GAAG,mKAAmK,CAAC;AAEjL,QAAA,gBAAgB,GAAG,YAAY,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/v6/constants.d.ts b/Scripts/node_modules/ip-address/dist/v6/constants.d.ts new file mode 100644 index 00000000..13023753 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v6/constants.d.ts @@ -0,0 +1,45 @@ +export declare const BITS = 128; +export declare const GROUPS = 8; +/** + * Represents IPv6 address scopes + * @memberof Address6 + * @static + */ +export declare const SCOPES: { + [key: number]: string | undefined; +}; +/** + * Represents IPv6 address types + * @memberof Address6 + * @static + */ +export declare const TYPES: { + [key: string]: string | undefined; +}; +/** + * A regular expression that matches bad characters in an IPv6 address + * @memberof Address6 + * @static + */ +export declare const RE_BAD_CHARACTERS: RegExp; +/** + * A regular expression that matches an incorrect IPv6 address + * @memberof Address6 + * @static + */ +export declare const RE_BAD_ADDRESS: RegExp; +/** + * A regular expression that matches an IPv6 subnet + * @memberof Address6 + * @static + */ +export declare const RE_SUBNET_STRING: RegExp; +/** + * A regular expression that matches an IPv6 zone + * @memberof Address6 + * @static + */ +export declare const RE_ZONE_STRING: RegExp; +export declare const RE_URL: RegExp; +export declare const RE_URL_WITH_PORT: RegExp; +//# sourceMappingURL=constants.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/v6/constants.d.ts.map b/Scripts/node_modules/ip-address/dist/v6/constants.d.ts.map new file mode 100644 index 00000000..a764b18d --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v6/constants.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/v6/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,MAAM,CAAC;AACxB,eAAO,MAAM,MAAM,IAAI,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CAS9C,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,KAAK,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CAuB7C,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,QAAqB,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAA6C,CAAC;AAEzE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,QAAqB,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAAS,CAAC;AAErC,eAAO,MAAM,MAAM,QAA4C,CAAC;AAChE,eAAO,MAAM,gBAAgB,QAA8C,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/v6/constants.js b/Scripts/node_modules/ip-address/dist/v6/constants.js new file mode 100644 index 00000000..e316bb0d --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v6/constants.js @@ -0,0 +1,76 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RE_URL_WITH_PORT = exports.RE_URL = exports.RE_ZONE_STRING = exports.RE_SUBNET_STRING = exports.RE_BAD_ADDRESS = exports.RE_BAD_CHARACTERS = exports.TYPES = exports.SCOPES = exports.GROUPS = exports.BITS = void 0; +exports.BITS = 128; +exports.GROUPS = 8; +/** + * Represents IPv6 address scopes + * @memberof Address6 + * @static + */ +exports.SCOPES = { + 0: 'Reserved', + 1: 'Interface local', + 2: 'Link local', + 4: 'Admin local', + 5: 'Site local', + 8: 'Organization local', + 14: 'Global', + 15: 'Reserved', +}; +/** + * Represents IPv6 address types + * @memberof Address6 + * @static + */ +exports.TYPES = { + 'ff01::1/128': 'Multicast (All nodes on this interface)', + 'ff01::2/128': 'Multicast (All routers on this interface)', + 'ff02::1/128': 'Multicast (All nodes on this link)', + 'ff02::2/128': 'Multicast (All routers on this link)', + 'ff05::2/128': 'Multicast (All routers in this site)', + 'ff02::5/128': 'Multicast (OSPFv3 AllSPF routers)', + 'ff02::6/128': 'Multicast (OSPFv3 AllDR routers)', + 'ff02::9/128': 'Multicast (RIP routers)', + 'ff02::a/128': 'Multicast (EIGRP routers)', + 'ff02::d/128': 'Multicast (PIM routers)', + 'ff02::16/128': 'Multicast (MLDv2 reports)', + 'ff01::fb/128': 'Multicast (mDNSv6)', + 'ff02::fb/128': 'Multicast (mDNSv6)', + 'ff05::fb/128': 'Multicast (mDNSv6)', + 'ff02::1:2/128': 'Multicast (All DHCP servers and relay agents on this link)', + 'ff05::1:2/128': 'Multicast (All DHCP servers and relay agents in this site)', + 'ff02::1:3/128': 'Multicast (All DHCP servers on this link)', + 'ff05::1:3/128': 'Multicast (All DHCP servers in this site)', + '::/128': 'Unspecified', + '::1/128': 'Loopback', + 'ff00::/8': 'Multicast', + 'fe80::/10': 'Link-local unicast', +}; +/** + * A regular expression that matches bad characters in an IPv6 address + * @memberof Address6 + * @static + */ +exports.RE_BAD_CHARACTERS = /([^0-9a-f:/%])/gi; +/** + * A regular expression that matches an incorrect IPv6 address + * @memberof Address6 + * @static + */ +exports.RE_BAD_ADDRESS = /([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi; +/** + * A regular expression that matches an IPv6 subnet + * @memberof Address6 + * @static + */ +exports.RE_SUBNET_STRING = /\/\d{1,3}(?=%|$)/; +/** + * A regular expression that matches an IPv6 zone + * @memberof Address6 + * @static + */ +exports.RE_ZONE_STRING = /%.*$/; +exports.RE_URL = new RegExp(/^\[{0,1}([0-9a-f:]+)\]{0,1}/); +exports.RE_URL_WITH_PORT = new RegExp(/\[([0-9a-f:]+)\]:([0-9]{1,5})/); +//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/v6/constants.js.map b/Scripts/node_modules/ip-address/dist/v6/constants.js.map new file mode 100644 index 00000000..61e27338 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v6/constants.js.map @@ -0,0 +1 @@ +{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/v6/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,GAAG,CAAC;AACX,QAAA,MAAM,GAAG,CAAC,CAAC;AAExB;;;;GAIG;AACU,QAAA,MAAM,GAA0C;IAC3D,CAAC,E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Scripts/node_modules/ip-address/dist/v6/helpers.d.ts new file mode 100644 index 00000000..e72f0311 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v6/helpers.d.ts @@ -0,0 +1,18 @@ +/** + * @returns {String} the string with all zeroes contained in a + */ +export declare function spanAllZeroes(s: string): string; +/** + * @returns {String} the string with each character contained in a + */ +export declare function spanAll(s: string, offset?: number): string; +/** + * @returns {String} the string with leading zeroes contained in a + */ +export declare function spanLeadingZeroes(address: string): string; +/** + * Groups an address + * @returns {String} a grouped address + */ +export declare function simpleGroup(addressString: string, offset?: number): string[]; +//# sourceMappingURL=helpers.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/v6/helpers.d.ts.map b/Scripts/node_modules/ip-address/dist/v6/helpers.d.ts.map new file mode 100644 index 00000000..a6ff22bd --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v6/helpers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/v6/helpers.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,GAAE,MAAU,GAAG,MAAM,CAc7D;AAMD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAIzD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,GAAE,MAAU,GAAG,MAAM,EAAE,CAc/E"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/v6/helpers.js b/Scripts/node_modules/ip-address/dist/v6/helpers.js new file mode 100644 index 00000000..918aaa58 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v6/helpers.js @@ -0,0 +1,48 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.simpleGroup = exports.spanLeadingZeroes = exports.spanAll = exports.spanAllZeroes = void 0; +const sprintf_js_1 = require("sprintf-js"); +/** + * @returns {String} the string with all zeroes contained in a + */ +function spanAllZeroes(s) { + return s.replace(/(0+)/g, '$1'); +} +exports.spanAllZeroes = spanAllZeroes; +/** + * @returns {String} the string with each character contained in a + */ +function spanAll(s, offset = 0) { + const letters = s.split(''); + return letters + .map((n, i) => (0, sprintf_js_1.sprintf)('%s', n, i + offset, spanAllZeroes(n)) // XXX Use #base-2 .value-0 instead? + ) + .join(''); +} +exports.spanAll = spanAll; +function spanLeadingZeroesSimple(group) { + return group.replace(/^(0+)/, '$1'); +} +/** + * @returns {String} the string with leading zeroes contained in a + */ +function spanLeadingZeroes(address) { + const groups = address.split(':'); + return groups.map((g) => spanLeadingZeroesSimple(g)).join(':'); +} +exports.spanLeadingZeroes = spanLeadingZeroes; +/** + * Groups an address + * @returns {String} a grouped address + */ +function simpleGroup(addressString, offset = 0) { + const groups = addressString.split(':'); + return groups.map((g, i) => { + if (/group-v4/.test(g)) { + return g; + } + return (0, sprintf_js_1.sprintf)('%s', i + offset, spanLeadingZeroesSimple(g)); + }); +} +exports.simpleGroup = simpleGroup; +//# sourceMappingURL=helpers.js.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/v6/helpers.js.map b/Scripts/node_modules/ip-address/dist/v6/helpers.js.map new file mode 100644 index 00000000..251feddb --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v6/helpers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/v6/helpers.ts"],"names":[],"mappings":";;;AAAA,2CAAqC;AAErC;;GAEG;AACH,SAAgB,aAAa,CAAC,CAAS;IACrC,OAAO,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,8BAA8B,CAAC,CAAC;AAC5D,CAAC;AAFD,sCAEC;AAED;;GAEG;AACH,SAAgB,OAAO,CAAC,CAAS,EAAE,SAAiB,CAAC;IACnD,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAE5B,OAAO,OAAO;SACX,GAAG,CACF,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACP,IAAA,oBAAO,EACL,oDAAoD,EACpD,CAAC,EACD,CAAC,GAAG,MAAM,EACV,aAAa,CAAC,CAAC,CAAC,CACjB,CAAC,oCAAoC;KACzC;SACA,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC;AAdD,0BAcC;AAED,SAAS,uBAAuB,CAAC,KAAa;IAC5C,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,8BAA8B,CAAC,CAAC;AAChE,CAAC;AAED;;GAEG;AACH,SAAgB,iBAAiB,CAAC,OAAe;IAC/C,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAElC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACjE,CAAC;AAJD,8CAIC;AAED;;;GAGG;AACH,SAAgB,WAAW,CAAC,aAAqB,EAAE,SAAiB,CAAC;IACnE,MAAM,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAExC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACzB,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;YACtB,OAAO,CAAC,CAAC;SACV;QAED,OAAO,IAAA,oBAAO,EACZ,8CAA8C,EAC9C,CAAC,GAAG,MAAM,EACV,uBAAuB,CAAC,CAAC,CAAC,CAC3B,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAdD,kCAcC"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/v6/regular-expressions.d.ts b/Scripts/node_modules/ip-address/dist/v6/regular-expressions.d.ts new file mode 100644 index 00000000..181b91e8 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v6/regular-expressions.d.ts @@ -0,0 +1,6 @@ +export declare function groupPossibilities(possibilities: string[]): string; +export declare function padGroup(group: string): string; +export declare const ADDRESS_BOUNDARY = "[^A-Fa-f0-9:]"; +export declare function simpleRegularExpression(groups: string[]): string; +export declare function possibleElisions(elidedGroups: number, moreLeft?: boolean, moreRight?: boolean): string; +//# sourceMappingURL=regular-expressions.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/v6/regular-expressions.d.ts.map b/Scripts/node_modules/ip-address/dist/v6/regular-expressions.d.ts.map new file mode 100644 index 00000000..242e6c71 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v6/regular-expressions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"regular-expressions.d.ts","sourceRoot":"","sources":["../../src/v6/regular-expressions.ts"],"names":[],"mappings":"AAGA,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,MAAM,CAElE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM9C;AAED,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAEhD,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,EAAE,UA+BvD;AAED,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,OAAO,EAClB,SAAS,CAAC,EAAE,OAAO,GAClB,MAAM,CA4CR"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/v6/regular-expressions.js b/Scripts/node_modules/ip-address/dist/v6/regular-expressions.js new file mode 100644 index 00000000..616550a8 --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v6/regular-expressions.js @@ -0,0 +1,96 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.possibleElisions = exports.simpleRegularExpression = exports.ADDRESS_BOUNDARY = exports.padGroup = exports.groupPossibilities = void 0; +const v6 = __importStar(require("./constants")); +const sprintf_js_1 = require("sprintf-js"); +function groupPossibilities(possibilities) { + return (0, sprintf_js_1.sprintf)('(%s)', possibilities.join('|')); +} +exports.groupPossibilities = groupPossibilities; +function padGroup(group) { + if (group.length < 4) { + return (0, sprintf_js_1.sprintf)('0{0,%d}%s', 4 - group.length, group); + } + return group; +} +exports.padGroup = padGroup; +exports.ADDRESS_BOUNDARY = '[^A-Fa-f0-9:]'; +function simpleRegularExpression(groups) { + const zeroIndexes = []; + groups.forEach((group, i) => { + const groupInteger = parseInt(group, 16); + if (groupInteger === 0) { + zeroIndexes.push(i); + } + }); + // You can technically elide a single 0, this creates the regular expressions + // to match that eventuality + const possibilities = zeroIndexes.map((zeroIndex) => groups + .map((group, i) => { + if (i === zeroIndex) { + const elision = i === 0 || i === v6.GROUPS - 1 ? ':' : ''; + return groupPossibilities([padGroup(group), elision]); + } + return padGroup(group); + }) + .join(':')); + // The simplest case + possibilities.push(groups.map(padGroup).join(':')); + return groupPossibilities(possibilities); +} +exports.simpleRegularExpression = simpleRegularExpression; +function possibleElisions(elidedGroups, moreLeft, moreRight) { + const left = moreLeft ? '' : ':'; + const right = moreRight ? '' : ':'; + const possibilities = []; + // 1. elision of everything (::) + if (!moreLeft && !moreRight) { + possibilities.push('::'); + } + // 2. complete elision of the middle + if (moreLeft && moreRight) { + possibilities.push(''); + } + if ((moreRight && !moreLeft) || (!moreRight && moreLeft)) { + // 3. complete elision of one side + possibilities.push(':'); + } + // 4. elision from the left side + possibilities.push((0, sprintf_js_1.sprintf)('%s(:0{1,4}){1,%d}', left, elidedGroups - 1)); + // 5. elision from the right side + possibilities.push((0, sprintf_js_1.sprintf)('(0{1,4}:){1,%d}%s', elidedGroups - 1, right)); + // 6. no elision + possibilities.push((0, sprintf_js_1.sprintf)('(0{1,4}:){%d}0{1,4}', elidedGroups - 1)); + // 7. elision (including sloppy elision) from the middle + for (let groups = 1; groups < elidedGroups - 1; groups++) { + for (let position = 1; position < elidedGroups - groups; position++) { + possibilities.push((0, sprintf_js_1.sprintf)('(0{1,4}:){%d}:(0{1,4}:){%d}0{1,4}', position, elidedGroups - position - groups - 1)); + } + } + return groupPossibilities(possibilities); +} +exports.possibleElisions = possibleElisions; +//# sourceMappingURL=regular-expressions.js.map \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/dist/v6/regular-expressions.js.map b/Scripts/node_modules/ip-address/dist/v6/regular-expressions.js.map new file mode 100644 index 00000000..fe6c3c2f --- /dev/null +++ b/Scripts/node_modules/ip-address/dist/v6/regular-expressions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"regular-expressions.js","sourceRoot":"","sources":["../../src/v6/regular-expressions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAkC;AAClC,2CAAqC;AAErC,SAAgB,kBAAkB,CAAC,aAAuB;IACxD,OAAO,IAAA,oBAAO,EAAC,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAClD,CAAC;AAFD,gDAEC;AAED,SAAgB,QAAQ,CAAC,KAAa;IACpC,IAAI,KAAK,C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,QAAQ,GAAG,YAAY,GAAG,MAAM,EAAE,QAAQ,EAAE,EAAE;YACnE,aAAa,CAAC,IAAI,CAChB,IAAA,oBAAO,EACL,mCAAmC,EACnC,QAAQ,EACR,YAAY,GAAG,QAAQ,GAAG,MAAM,GAAG,CAAC,CACrC,CACF,CAAC;SACH;KACF;IAED,OAAO,kBAAkB,CAAC,aAAa,CAAC,CAAC;AAC3C,CAAC;AAhDD,4CAgDC"} \ No newline at end of file diff --git a/Scripts/node_modules/ip-address/package.json b/Scripts/node_modules/ip-address/package.json new file mode 100644 index 00000000..0543fc41 --- /dev/null +++ b/Scripts/node_modules/ip-address/package.json @@ -0,0 +1,87 @@ +{ + "name": "ip-address", + "description": "A library for parsing IPv4 and IPv6 IP addresses in node and the browser.", + "keywords": [ + "ipv6", + "ipv4", + "browser", + "validation" + ], + "version": "9.0.5", + "author": "Beau Gunderson (https://beaugunderson.com/)", + "license": "MIT", + "main": "dist/ip-address.js", + "types": "dist/ip-address.d.ts", + "scripts": { + "docs": "documentation build --github --output docs --format html ./ip-address.js", + "build": "rm -rf dist; mkdir dist; tsc", + "prepack": "npm run build", + "release": "release-it", + "test-ci": "nyc mocha", + "test": "mocha", + "watch": "mocha --watch" + }, + "nyc": { + "extension": [ + ".ts" + ], + "exclude": [ + "**/*.d.ts", + ".eslintrc.js", + "coverage/", + "dist/", + "test/", + "tmp/" + ], + "reporter": [ + "html", + "lcov", + "text" + ], + "all": true + }, + "engines": { + "node": ">= 12" + }, + "files": [ + "src", + "dist" + ], + "repository": { + "type": "git", + "url": "git://github.com/beaugunderson/ip-address.git" + }, + "dependencies": { + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" + }, + "devDependencies": { + "@types/chai": "^4.2.18", + "@types/jsbn": "^1.2.31", + "@types/mocha": "^10.0.1", + "@types/sprintf-js": "^1.1.2", + "@typescript-eslint/eslint-plugin": "^6.7.2", + "@typescript-eslint/parser": "^6.7.2", + "browserify": "^17.0.0", + "chai": "^4.3.4", + "codecov": "^3.8.2", + "documentation": "^14.0.2", + "eslint": "^8.50.0", + "eslint-config-airbnb": "^19.0.4", + "eslint-config-prettier": "^9.0.0", + "eslint-plugin-filenames": "^1.3.2", + "eslint-plugin-import": "^2.23.4", + "eslint-plugin-jsx-a11y": "^6.4.1", + "eslint-plugin-prettier": "^5.0.0", + "eslint-plugin-react": "^7.24.0", + "eslint-plugin-react-hooks": "^4.2.0", + "eslint-plugin-sort-imports-es6-autofix": "^0.6.0", + "mocha": "^10.2.0", + "nyc": "^15.1.0", + "prettier": "^3.0.3", + "release-it": "^16.2.0", + "source-map-support": "^0.5.19", + "ts-node": "^10.0.0", + "typescript": "^5.2.2" + } +} diff --git a/Scripts/node_modules/ip-address/src/address-error.ts b/Scripts/node_modules/ip-address/src/address-error.ts new file mode 100644 index 00000000..a59f503c --- /dev/null +++ b/Scripts/node_modules/ip-address/src/address-error.ts @@ -0,0 +1,13 @@ +export class AddressError extends Error { + parseMessage?: string; + + constructor(message: string, parseMessage?: string) { + super(message); + + this.name = 'AddressError'; + + if (parseMessage !== null) { + this.parseMessage = parseMessage; + } + } +} diff --git a/Scripts/node_modules/ip-address/src/common.ts b/Scripts/node_modules/ip-address/src/common.ts new file mode 100644 index 00000000..e6b30189 --- /dev/null +++ b/Scripts/node_modules/ip-address/src/common.ts @@ -0,0 +1,32 @@ +import { Address4 } from './ipv4'; +import { Address6 } from './ipv6'; + +export interface ReverseFormOptions { + omitSuffix?: boolean; +} + +export function isInSubnet(this: Address4 | Address6, address: Address4 | Address6) { + if (this.subnetMask < address.subnetMask) { + return false; + } + + if (this.mask(address.subnetMask) === address.mask()) { + return true; + } + + return false; +} + +export function isCorrect(defaultBits: number) { + return function (this: Address4 | Address6) { + if (this.addressMinusSuffix !== this.correctForm()) { + return false; + } + + if (this.subnetMask === defaultBits && !this.parsedSubnet) { + return true; + } + + return this.parsedSubnet === String(this.subnetMask); + }; +} diff --git a/Scripts/node_modules/ip-address/src/ip-address.ts b/Scripts/node_modules/ip-address/src/ip-address.ts new file mode 100644 index 00000000..0a452f2d --- /dev/null +++ b/Scripts/node_modules/ip-address/src/ip-address.ts @@ -0,0 +1,11 @@ +import { Address4 } from './ipv4'; +import { Address6 } from './ipv6'; +import { AddressError } from './address-error'; + +export { Address4 }; +export { Address6 }; +export { AddressError }; + +import * as helpers from './v6/helpers'; + +export const v6 = { helpers }; diff --git a/Scripts/node_modules/ip-address/src/ipv4.ts b/Scripts/node_modules/ip-address/src/ipv4.ts new file mode 100644 index 00000000..557216ee --- /dev/null +++ b/Scripts/node_modules/ip-address/src/ipv4.ts @@ -0,0 +1,363 @@ +/* eslint-disable no-param-reassign */ + +import * as common from './common'; +import * as constants from './v4/constants'; +import { AddressError } from './address-error'; +import { BigInteger } from 'jsbn'; +import { sprintf } from 'sprintf-js'; + +/** + * Represents an IPv4 address + * @class Address4 + * @param {string} address - An IPv4 address string + */ +export class Address4 { + address: string; + addressMinusSuffix?: string; + groups: number = constants.GROUPS; + parsedAddress: string[] = []; + parsedSubnet: string = ''; + subnet: string = '/32'; + subnetMask: number = 32; + v4: boolean = true; + + constructor(address: string) { + this.address = address; + + const subnet = constants.RE_SUBNET_STRING.exec(address); + + if (subnet) { + this.parsedSubnet = subnet[0].replace('/', ''); + this.subnetMask = parseInt(this.parsedSubnet, 10); + this.subnet = `/${this.subnetMask}`; + + if (this.subnetMask < 0 || this.subnetMask > constants.BITS) { + throw new AddressError('Invalid subnet mask.'); + } + + address = address.replace(constants.RE_SUBNET_STRING, ''); + } + + this.addressMinusSuffix = address; + + this.parsedAddress = this.parse(address); + } + + static isValid(address: string): boolean { + try { + // eslint-disable-next-line no-new + new Address4(address); + + return true; + } catch (e) { + return false; + } + } + + /* + * Parses a v4 address + */ + parse(address: string) { + const groups = address.split('.'); + + if (!address.match(constants.RE_ADDRESS)) { + throw new AddressError('Invalid IPv4 address.'); + } + + return groups; + } + + /** + * Returns the correct form of an address + * @memberof Address4 + * @instance + * @returns {String} + */ + correctForm(): string { + return this.parsedAddress.map((part) => parseInt(part, 10)).join('.'); + } + + /** + * Returns true if the address is correct, false otherwise + * @memberof Address4 + * @instance + * @returns {Boolean} + */ + isCorrect = common.isCorrect(constants.BITS); + + /** + * Converts a hex string to an IPv4 address object + * @memberof Address4 + * @static + * @param {string} hex - a hex string to convert + * @returns {Address4} + */ + static fromHex(hex: string): Address4 { + const padded = hex.replace(/:/g, '').padStart(8, '0'); + const groups = []; + let i; + + for (i = 0; i < 8; i += 2) { + const h = padded.slice(i, i + 2); + + groups.push(parseInt(h, 16)); + } + + return new Address4(groups.join('.')); + } + + /** + * Converts an integer into a IPv4 address object + * @memberof Address4 + * @static + * @param {integer} integer - a number to convert + * @returns {Address4} + */ + static fromInteger(integer: number): Address4 { + return Address4.fromHex(integer.toString(16)); + } + + /** + * Return an address from in-addr.arpa form + * @memberof Address4 + * @static + * @param {string} arpaFormAddress - an 'in-addr.arpa' form ipv4 address + * @returns {Adress4} + * @example + * var address = Address4.fromArpa(42.2.0.192.in-addr.arpa.) + * address.correctForm(); // '192.0.2.42' + */ + static fromArpa(arpaFormAddress: string): Address4 { + // remove ending ".in-addr.arpa." or just "." + const leader = arpaFormAddress.replace(/(\.in-addr\.arpa)?\.$/, ''); + + const address = leader.split('.').reverse().join('.'); + + return new Address4(address); + } + + /** + * Converts an IPv4 address object to a hex string + * @memberof Address4 + * @instance + * @returns {String} + */ + toHex(): string { + return this.parsedAddress.map((part) => sprintf('%02x', parseInt(part, 10))).join(':'); + } + + /** + * Converts an IPv4 address object to an array of bytes + * @memberof Address4 + * @instance + * @returns {Array} + */ + toArray(): number[] { + return this.parsedAddress.map((part) => parseInt(part, 10)); + } + + /** + * Converts an IPv4 address object to an IPv6 address group + * @memberof Address4 + * @instance + * @returns {String} + */ + toGroup6(): string { + const output = []; + let i; + + for (i = 0; i < constants.GROUPS; i += 2) { + const hex = sprintf( + '%02x%02x', + parseInt(this.parsedAddress[i], 10), + parseInt(this.parsedAddress[i + 1], 10) + ); + + output.push(sprintf('%x', parseInt(hex, 16))); + } + + return output.join(':'); + } + + /** + * Returns the address as a BigInteger + * @memberof Address4 + * @instance + * @returns {BigInteger} + */ + bigInteger(): BigInteger { + return new BigInteger( + this.parsedAddress.map((n) => sprintf('%02x', parseInt(n, 10))).join(''), + 16 + ); + } + + /** + * Helper function getting start address. + * @memberof Address4 + * @instance + * @returns {BigInteger} + */ + _startAddress(): BigInteger { + return new BigInteger(this.mask() + '0'.repeat(constants.BITS - this.subnetMask), 2); + } + + /** + * The first address in the range given by this address' subnet. + * Often referred to as the Network Address. + * @memberof Address4 + * @instance + * @returns {Address4} + */ + startAddress(): Address4 { + return Address4.fromBigInteger(this._startAddress()); + } + + /** + * The first host address in the range given by this address's subnet ie + * the first address after the Network Address + * @memberof Address4 + * @instance + * @returns {Address4} + */ + startAddressExclusive(): Address4 { + const adjust = new BigInteger('1'); + return Address4.fromBigInteger(this._startAddress().add(adjust)); + } + + /** + * Helper function getting end address. + * @memberof Address4 + * @instance + * @returns {BigInteger} + */ + _endAddress(): BigInteger { + return new BigInteger(this.mask() + '1'.repeat(constants.BITS - this.subnetMask), 2); + } + + /** + * The last address in the range given by this address' subnet + * Often referred to as the Broadcast + * @memberof Address4 + * @instance + * @returns {Address4} + */ + endAddress(): Address4 { + return Address4.fromBigInteger(this._endAddress()); + } + + /** + * The last host address in the range given by this address's subnet ie + * the last address prior to the Broadcast Address + * @memberof Address4 + * @instance + * @returns {Address4} + */ + endAddressExclusive(): Address4 { + const adjust = new BigInteger('1'); + return Address4.fromBigInteger(this._endAddress().subtract(adjust)); + } + + /** + * Converts a BigInteger to a v4 address object + * @memberof Address4 + * @static + * @param {BigInteger} bigInteger - a BigInteger to convert + * @returns {Address4} + */ + static fromBigInteger(bigInteger: BigInteger): Address4 { + return Address4.fromInteger(parseInt(bigInteger.toString(), 10)); + } + + /** + * Returns the first n bits of the address, defaulting to the + * subnet mask + * @memberof Address4 + * @instance + * @returns {String} + */ + mask(mask?: number): string { + if (mask === undefined) { + mask = this.subnetMask; + } + + return this.getBitsBase2(0, mask); + } + + /** + * Returns the bits in the given range as a base-2 string + * @memberof Address4 + * @instance + * @returns {string} + */ + getBitsBase2(start: number, end: number): string { + return this.binaryZeroPad().slice(start, end); + } + + /** + * Return the reversed ip6.arpa form of the address + * @memberof Address4 + * @param {Object} options + * @param {boolean} options.omitSuffix - omit the "in-addr.arpa" suffix + * @instance + * @returns {String} + */ + reverseForm(options?: common.ReverseFormOptions): string { + if (!options) { + options = {}; + } + + const reversed = this.correctForm().split('.').reverse().join('.'); + + if (options.omitSuffix) { + return reversed; + } + + return sprintf('%s.in-addr.arpa.', reversed); + } + + /** + * Returns true if the given address is in the subnet of the current address + * @memberof Address4 + * @instance + * @returns {boolean} + */ + isInSubnet = common.isInSubnet; + + /** + * Returns true if the given address is a multicast address + * @memberof Address4 + * @instance + * @returns {boolean} + */ + isMulticast(): boolean { + return this.isInSubnet(new Address4('224.0.0.0/4')); + } + + /** + * Returns a zero-padded base-2 string representation of the address + * @memberof Address4 + * @instance + * @returns {string} + */ + binaryZeroPad(): string { + return this.bigInteger().toString(2).padStart(constants.BITS, '0'); + } + + /** + * Groups an IPv4 address for inclusion at the end of an IPv6 address + * @returns {String} + */ + groupForV6(): string { + const segments = this.parsedAddress; + + return this.address.replace( + constants.RE_ADDRESS, + sprintf( + '%s.%s', + segments.slice(0, 2).join('.'), + segments.slice(2, 4).join('.') + ) + ); + } +} diff --git a/Scripts/node_modules/ip-address/src/ipv6.ts b/Scripts/node_modules/ip-address/src/ipv6.ts new file mode 100644 index 00000000..2565d779 --- /dev/null +++ b/Scripts/node_modules/ip-address/src/ipv6.ts @@ -0,0 +1,1214 @@ +/* eslint-disable prefer-destructuring */ +/* eslint-disable no-param-reassign */ + +import * as common from './common'; +import * as constants4 from './v4/constants'; +import * as constants6 from './v6/constants'; +import * as helpers from './v6/helpers'; +import { Address4 } from './ipv4'; +import { + ADDRESS_BOUNDARY, + possibleElisions, + simpleRegularExpression, +} from './v6/regular-expressions'; +import { AddressError } from './address-error'; +import { BigInteger } from 'jsbn'; +import { sprintf } from 'sprintf-js'; + +function assert(condition: any): asserts condition { + if (!condition) { + throw new Error('Assertion failed.'); + } +} + +function addCommas(number: string): string { + const r = /(\d+)(\d{3})/; + + while (r.test(number)) { + number = number.replace(r, '$1,$2'); + } + + return number; +} + +function spanLeadingZeroes4(n: string): string { + n = n.replace(/^(0{1,})([1-9]+)$/, '$1$2'); + n = n.replace(/^(0{1,})(0)$/, '$1$2'); + + return n; +} + +/* + * A helper function to compact an array + */ +function compact(address: string[], slice: number[]) { + const s1 = []; + const s2 = []; + let i; + + for (i = 0; i < address.length; i++) { + if (i < slice[0]) { + s1.push(address[i]); + } else if (i > slice[1]) { + s2.push(address[i]); + } + } + + return s1.concat(['compact']).concat(s2); +} + +function paddedHex(octet: string): string { + return sprintf('%04x', parseInt(octet, 16)); +} + +function unsignByte(b: number) { + // eslint-disable-next-line no-bitwise + return b & 0xff; +} + + +interface SixToFourProperties { + prefix: string; + gateway: string; +} + +interface TeredoProperties { + prefix: string; + server4: string; + client4: string; + flags: string; + coneNat: boolean; + microsoft: { + reserved: boolean; + universalLocal: boolean; + groupIndividual: boolean; + nonce: string; + }; + udpPort: string; +} + +/** + * Represents an IPv6 address + * @class Address6 + * @param {string} address - An IPv6 address string + * @param {number} [groups=8] - How many octets to parse + * @example + * var address = new Address6('2001::/32'); + */ +export class Address6 { + address4?: Address4; + address: string; + addressMinusSuffix: string = ''; + elidedGroups?: number; + elisionBegin?: number; + elisionEnd?: number; + groups: number; + parsedAddress4?: string; + parsedAddress: string[]; + parsedSubnet: string = ''; + subnet: string = '/128'; + subnetMask: number = 128; + v4: boolean = false; + zone: string = ''; + + constructor(address: string, optionalGroups?: number) { + if (optionalGroups === undefined) { + this.groups = constants6.GROUPS; + } else { + this.groups = optionalGroups; + } + + this.address = address; + + const subnet = constants6.RE_SUBNET_STRING.exec(address); + + if (subnet) { + this.parsedSubnet = subnet[0].replace('/', ''); + this.subnetMask = parseInt(this.parsedSubnet, 10); + this.subnet = `/${this.subnetMask}`; + + if ( + Number.isNaN(this.subnetMask) || + this.subnetMask < 0 || + this.subnetMask > constants6.BITS + ) { + throw new AddressError('Invalid subnet mask.'); + } + + address = address.replace(constants6.RE_SUBNET_STRING, ''); + } else if (/\//.test(address)) { + throw new AddressError('Invalid subnet mask.'); + } + + const zone = constants6.RE_ZONE_STRING.exec(address); + + if (zone) { + this.zone = zone[0]; + + address = address.replace(constants6.RE_ZONE_STRING, ''); + } + + this.addressMinusSuffix = address; + + this.parsedAddress = this.parse(this.addressMinusSuffix); + } + + static isValid(address: string): boolean { + try { + // eslint-disable-next-line no-new + new Address6(address); + + return true; + } catch (e) { + return false; + } + } + + /** + * Convert a BigInteger to a v6 address object + * @memberof Address6 + * @static + * @param {BigInteger} bigInteger - a BigInteger to convert + * @returns {Address6} + * @example + * var bigInteger = new BigInteger('1000000000000'); + * var address = Address6.fromBigInteger(bigInteger); + * address.correctForm(); // '::e8:d4a5:1000' + */ + static fromBigInteger(bigInteger: BigInteger): Address6 { + const hex = bigInteger.toString(16).padStart(32, '0'); + const groups = []; + let i; + + for (i = 0; i < constants6.GROUPS; i++) { + groups.push(hex.slice(i * 4, (i + 1) * 4)); + } + + return new Address6(groups.join(':')); + } + + /** + * Convert a URL (with optional port number) to an address object + * @memberof Address6 + * @static + * @param {string} url - a URL with optional port number + * @example + * var addressAndPort = Address6.fromURL('http://[ffff::]:8080/foo/'); + * addressAndPort.address.correctForm(); // 'ffff::' + * addressAndPort.port; // 8080 + */ + static fromURL(url: string) { + let host: string; + let port: string | number | null = null; + let result: string[] | null; + + // If we have brackets parse them and find a port + if (url.indexOf('[') !== -1 && url.indexOf(']:') !== -1) { + result = constants6.RE_URL_WITH_PORT.exec(url); + + if (result === null) { + return { + error: 'failed to parse address with port', + address: null, + port: null, + }; + } + + host = result[1]; + port = result[2]; + // If there's a URL extract the address + } else if (url.indexOf('/') !== -1) { + // Remove the protocol prefix + url = url.replace(/^[a-z0-9]+:\/\//, ''); + + // Parse the address + result = constants6.RE_URL.exec(url); + + if (result === null) { + return { + error: 'failed to parse address from URL', + address: null, + port: null, + }; + } + + host = result[1]; + // Otherwise just assign the URL to the host and let the library parse it + } else { + host = url; + } + + // If there's a port convert it to an integer + if (port) { + port = parseInt(port, 10); + + // squelch out of range ports + if (port < 0 || port > 65536) { + port = null; + } + } else { + // Standardize `undefined` to `null` + port = null; + } + + return { + address: new Address6(host), + port, + }; + } + + /** + * Create an IPv6-mapped address given an IPv4 address + * @memberof Address6 + * @static + * @param {string} address - An IPv4 address string + * @returns {Address6} + * @example + * var address = Address6.fromAddress4('192.168.0.1'); + * address.correctForm(); // '::ffff:c0a8:1' + * address.to4in6(); // '::ffff:192.168.0.1' + */ + static fromAddress4(address: string): Address6 { + const address4 = new Address4(address); + + const mask6 = constants6.BITS - (constants4.BITS - address4.subnetMask); + + return new Address6(`::ffff:${address4.correctForm()}/${mask6}`); + } + + /** + * Return an address from ip6.arpa form + * @memberof Address6 + * @static + * @param {string} arpaFormAddress - an 'ip6.arpa' form address + * @returns {Adress6} + * @example + * var address = Address6.fromArpa(e.f.f.f.3.c.2.6.f.f.f.e.6.6.8.e.1.0.6.7.9.4.e.c.0.0.0.0.1.0.0.2.ip6.arpa.) + * address.correctForm(); // '2001:0:ce49:7601:e866:efff:62c3:fffe' + */ + static fromArpa(arpaFormAddress: string): Address6 { + // remove ending ".ip6.arpa." or just "." + let address = arpaFormAddress.replace(/(\.ip6\.arpa)?\.$/, ''); + const semicolonAmount = 7; + + // correct ip6.arpa form with ending removed will be 63 characters + if (address.length !== 63) { + throw new AddressError("Invalid 'ip6.arpa' form."); + } + + const parts = address.split('.').reverse(); + + for (let i = semicolonAmount; i > 0; i--) { + const insertIndex = i * 4; + parts.splice(insertIndex, 0, ':'); + } + + address = parts.join(''); + + return new Address6(address); + } + + /** + * Return the Microsoft UNC transcription of the address + * @memberof Address6 + * @instance + * @returns {String} the Microsoft UNC transcription of the address + */ + microsoftTranscription(): string { + return sprintf('%s.ipv6-literal.net', this.correctForm().replace(/:/g, '-')); + } + + /** + * Return the first n bits of the address, defaulting to the subnet mask + * @memberof Address6 + * @instance + * @param {number} [mask=subnet] - the number of bits to mask + * @returns {String} the first n bits of the address as a string + */ + mask(mask: number = this.subnetMask): string { + return this.getBitsBase2(0, mask); + } + + /** + * Return the number of possible subnets of a given size in the address + * @memberof Address6 + * @instance + * @param {number} [size=128] - the subnet size + * @returns {String} + */ + // TODO: probably useful to have a numeric version of this too + possibleSubnets(subnetSize: number = 128): string { + const availableBits = constants6.BITS - this.subnetMask; + const subnetBits = Math.abs(subnetSize - constants6.BITS); + const subnetPowers = availableBits - subnetBits; + + if (subnetPowers < 0) { + return '0'; + } + + return addCommas(new BigInteger('2', 10).pow(subnetPowers).toString(10)); + } + + /** + * Helper function getting start address. + * @memberof Address6 + * @instance + * @returns {BigInteger} + */ + _startAddress(): BigInteger { + return new BigInteger(this.mask() + '0'.repeat(constants6.BITS - this.subnetMask), 2); + } + + /** + * The first address in the range given by this address' subnet + * Often referred to as the Network Address. + * @memberof Address6 + * @instance + * @returns {Address6} + */ + startAddress(): Address6 { + return Address6.fromBigInteger(this._startAddress()); + } + + /** + * The first host address in the range given by this address's subnet ie + * the first address after the Network Address + * @memberof Address6 + * @instance + * @returns {Address6} + */ + startAddressExclusive(): Address6 { + const adjust = new BigInteger('1'); + return Address6.fromBigInteger(this._startAddress().add(adjust)); + } + + /** + * Helper function getting end address. + * @memberof Address6 + * @instance + * @returns {BigInteger} + */ + _endAddress(): BigInteger { + return new BigInteger(this.mask() + '1'.repeat(constants6.BITS - this.subnetMask), 2); + } + + /** + * The last address in the range given by this address' subnet + * Often referred to as the Broadcast + * @memberof Address6 + * @instance + * @returns {Address6} + */ + endAddress(): Address6 { + return Address6.fromBigInteger(this._endAddress()); + } + + /** + * The last host address in the range given by this address's subnet ie + * the last address prior to the Broadcast Address + * @memberof Address6 + * @instance + * @returns {Address6} + */ + endAddressExclusive(): Address6 { + const adjust = new BigInteger('1'); + return Address6.fromBigInteger(this._endAddress().subtract(adjust)); + } + + /** + * Return the scope of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + getScope(): string { + let scope = constants6.SCOPES[this.getBits(12, 16).intValue()]; + + if (this.getType() === 'Global unicast' && scope !== 'Link local') { + scope = 'Global'; + } + + return scope || 'Unknown'; + } + + /** + * Return the type of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + getType(): string { + for (const subnet of Object.keys(constants6.TYPES)) { + if (this.isInSubnet(new Address6(subnet))) { + return constants6.TYPES[subnet] as string; + } + } + + return 'Global unicast'; + } + + /** + * Return the bits in the given range as a BigInteger + * @memberof Address6 + * @instance + * @returns {BigInteger} + */ + getBits(start: number, end: number): BigInteger { + return new BigInteger(this.getBitsBase2(start, end), 2); + } + + /** + * Return the bits in the given range as a base-2 string + * @memberof Address6 + * @instance + * @returns {String} + */ + getBitsBase2(start: number, end: number): string { + return this.binaryZeroPad().slice(start, end); + } + + /** + * Return the bits in the given range as a base-16 string + * @memberof Address6 + * @instance + * @returns {String} + */ + getBitsBase16(start: number, end: number): string { + const length = end - start; + + if (length % 4 !== 0) { + throw new Error('Length of bits to retrieve must be divisible by four'); + } + + return this.getBits(start, end) + .toString(16) + .padStart(length / 4, '0'); + } + + /** + * Return the bits that are set past the subnet mask length + * @memberof Address6 + * @instance + * @returns {String} + */ + getBitsPastSubnet(): string { + return this.getBitsBase2(this.subnetMask, constants6.BITS); + } + + /** + * Return the reversed ip6.arpa form of the address + * @memberof Address6 + * @param {Object} options + * @param {boolean} options.omitSuffix - omit the "ip6.arpa" suffix + * @instance + * @returns {String} + */ + reverseForm(options?: common.ReverseFormOptions): string { + if (!options) { + options = {}; + } + + const characters = Math.floor(this.subnetMask / 4); + + const reversed = this.canonicalForm() + .replace(/:/g, '') + .split('') + .slice(0, characters) + .reverse() + .join('.'); + + if (characters > 0) { + if (options.omitSuffix) { + return reversed; + } + + return sprintf('%s.ip6.arpa.', reversed); + } + + if (options.omitSuffix) { + return ''; + } + + return 'ip6.arpa.'; + } + + /** + * Return the correct form of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + correctForm(): string { + let i; + let groups = []; + + let zeroCounter = 0; + const zeroes = []; + + for (i = 0; i < this.parsedAddress.length; i++) { + const value = parseInt(this.parsedAddress[i], 16); + + if (value === 0) { + zeroCounter++; + } + + if (value !== 0 && zeroCounter > 0) { + if (zeroCounter > 1) { + zeroes.push([i - zeroCounter, i - 1]); + } + + zeroCounter = 0; + } + } + + // Do we end with a string of zeroes? + if (zeroCounter > 1) { + zeroes.push([this.parsedAddress.length - zeroCounter, this.parsedAddress.length - 1]); + } + + const zeroLengths = zeroes.map((n) => n[1] - n[0] + 1); + + if (zeroes.length > 0) { + const index = zeroLengths.indexOf(Math.max(...zeroLengths) as number); + + groups = compact(this.parsedAddress, zeroes[index]); + } else { + groups = this.parsedAddress; + } + + for (i = 0; i < groups.length; i++) { + if (groups[i] !== 'compact') { + groups[i] = parseInt(groups[i], 16).toString(16); + } + } + + let correct = groups.join(':'); + + correct = correct.replace(/^compact$/, '::'); + correct = correct.replace(/^compact|compact$/, ':'); + correct = correct.replace(/compact/, ''); + + return correct; + } + + /** + * Return a zero-padded base-2 string representation of the address + * @memberof Address6 + * @instance + * @returns {String} + * @example + * var address = new Address6('2001:4860:4001:803::1011'); + * address.binaryZeroPad(); + * // '0010000000000001010010000110000001000000000000010000100000000011 + * // 0000000000000000000000000000000000000000000000000001000000010001' + */ + binaryZeroPad(): string { + return this.bigInteger().toString(2).padStart(constants6.BITS, '0'); + } + + // TODO: Improve the semantics of this helper function + parse4in6(address: string): string { + const groups = address.split(':'); + const lastGroup = groups.slice(-1)[0]; + + const address4 = lastGroup.match(constants4.RE_ADDRESS); + + if (address4) { + this.parsedAddress4 = address4[0]; + this.address4 = new Address4(this.parsedAddress4); + + for (let i = 0; i < this.address4.groups; i++) { + if (/^0[0-9]+/.test(this.address4.parsedAddress[i])) { + throw new AddressError( + "IPv4 addresses can't have leading zeroes.", + address.replace( + constants4.RE_ADDRESS, + this.address4.parsedAddress.map(spanLeadingZeroes4).join('.') + ) + ); + } + } + + this.v4 = true; + + groups[groups.length - 1] = this.address4.toGroup6(); + + address = groups.join(':'); + } + + return address; + } + + // TODO: Make private? + parse(address: string): string[] { + address = this.parse4in6(address); + + const badCharacters = address.match(constants6.RE_BAD_CHARACTERS); + + if (badCharacters) { + throw new AddressError( + sprintf( + 'Bad character%s detected in address: %s', + badCharacters.length > 1 ? 's' : '', + badCharacters.join('') + ), + address.replace(constants6.RE_BAD_CHARACTERS, '$1') + ); + } + + const badAddress = address.match(constants6.RE_BAD_ADDRESS); + + if (badAddress) { + throw new AddressError( + sprintf('Address failed regex: %s', badAddress.join('')), + address.replace(constants6.RE_BAD_ADDRESS, '$1') + ); + } + + let groups: string[] = []; + + const halves = address.split('::'); + + if (halves.length === 2) { + let first = halves[0].split(':'); + let last = halves[1].split(':'); + + if (first.length === 1 && first[0] === '') { + first = []; + } + + if (last.length === 1 && last[0] === '') { + last = []; + } + + const remaining = this.groups - (first.length + last.length); + + if (!remaining) { + throw new AddressError('Error parsing groups'); + } + + this.elidedGroups = remaining; + + this.elisionBegin = first.length; + this.elisionEnd = first.length + this.elidedGroups; + + groups = groups.concat(first); + + for (let i = 0; i < remaining; i++) { + groups.push('0'); + } + + groups = groups.concat(last); + } else if (halves.length === 1) { + groups = address.split(':'); + + this.elidedGroups = 0; + } else { + throw new AddressError('Too many :: groups found'); + } + + groups = groups.map((group: string) => sprintf('%x', parseInt(group, 16))); + + if (groups.length !== this.groups) { + throw new AddressError('Incorrect number of groups found'); + } + + return groups; + } + + /** + * Return the canonical form of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + canonicalForm(): string { + return this.parsedAddress.map(paddedHex).join(':'); + } + + /** + * Return the decimal form of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + decimal(): string { + return this.parsedAddress.map((n) => sprintf('%05d', parseInt(n, 16))).join(':'); + } + + /** + * Return the address as a BigInteger + * @memberof Address6 + * @instance + * @returns {BigInteger} + */ + bigInteger(): BigInteger { + return new BigInteger(this.parsedAddress.map(paddedHex).join(''), 16); + } + + /** + * Return the last two groups of this address as an IPv4 address string + * @memberof Address6 + * @instance + * @returns {Address4} + * @example + * var address = new Address6('2001:4860:4001::1825:bf11'); + * address.to4().correctForm(); // '24.37.191.17' + */ + to4(): Address4 { + const binary = this.binaryZeroPad().split(''); + + return Address4.fromHex(new BigInteger(binary.slice(96, 128).join(''), 2).toString(16)); + } + + /** + * Return the v4-in-v6 form of the address + * @memberof Address6 + * @instance + * @returns {String} + */ + to4in6(): string { + const address4 = this.to4(); + const address6 = new Address6(this.parsedAddress.slice(0, 6).join(':'), 6); + + const correct = address6.correctForm(); + + let infix = ''; + + if (!/:$/.test(correct)) { + infix = ':'; + } + + return correct + infix + address4.address; + } + + /** + * Return an object containing the Teredo properties of the address + * @memberof Address6 + * @instance + * @returns {Object} + */ + inspectTeredo(): TeredoProperties { + /* + - Bits 0 to 31 are set to the Teredo prefix (normally 2001:0000::/32). + - Bits 32 to 63 embed the primary IPv4 address of the Teredo server that + is used. + - Bits 64 to 79 can be used to define some flags. Currently only the + higher order bit is used; it is set to 1 if the Teredo client is + located behind a cone NAT, 0 otherwise. For Microsoft's Windows Vista + and Windows Server 2008 implementations, more bits are used. In those + implementations, the format for these 16 bits is "CRAAAAUG AAAAAAAA", + where "C" remains the "Cone" flag. The "R" bit is reserved for future + use. The "U" bit is for the Universal/Local flag (set to 0). The "G" bit + is Individual/Group flag (set to 0). The A bits are set to a 12-bit + randomly generated number chosen by the Teredo client to introduce + additional protection for the Teredo node against IPv6-based scanning + attacks. + - Bits 80 to 95 contains the obfuscated UDP port number. This is the + port number that is mapped by the NAT to the Teredo client with all + bits inverted. + - Bits 96 to 127 contains the obfuscated IPv4 address. This is the + public IPv4 address of the NAT with all bits inverted. + */ + const prefix = this.getBitsBase16(0, 32); + + const udpPort = this.getBits(80, 96).xor(new BigInteger('ffff', 16)).toString(); + + const server4 = Address4.fromHex(this.getBitsBase16(32, 64)); + const client4 = Address4.fromHex( + this.getBits(96, 128).xor(new BigInteger('ffffffff', 16)).toString(16) + ); + + const flags = this.getBits(64, 80); + const flagsBase2 = this.getBitsBase2(64, 80); + + const coneNat = flags.testBit(15); + const reserved = flags.testBit(14); + const groupIndividual = flags.testBit(8); + const universalLocal = flags.testBit(9); + const nonce = new BigInteger(flagsBase2.slice(2, 6) + flagsBase2.slice(8, 16), 2).toString(10); + + return { + prefix: sprintf('%s:%s', prefix.slice(0, 4), prefix.slice(4, 8)), + server4: server4.address, + client4: client4.address, + flags: flagsBase2, + coneNat, + microsoft: { + reserved, + universalLocal, + groupIndividual, + nonce, + }, + udpPort, + }; + } + + /** + * Return an object containing the 6to4 properties of the address + * @memberof Address6 + * @instance + * @returns {Object} + */ + inspect6to4(): SixToFourProperties { + /* + - Bits 0 to 15 are set to the 6to4 prefix (2002::/16). + - Bits 16 to 48 embed the IPv4 address of the 6to4 gateway that is used. + */ + + const prefix = this.getBitsBase16(0, 16); + + const gateway = Address4.fromHex(this.getBitsBase16(16, 48)); + + return { + prefix: sprintf('%s', prefix.slice(0, 4)), + gateway: gateway.address, + }; + } + + /** + * Return a v6 6to4 address from a v6 v4inv6 address + * @memberof Address6 + * @instance + * @returns {Address6} + */ + to6to4(): Address6 | null { + if (!this.is4()) { + return null; + } + + const addr6to4 = [ + '2002', + this.getBitsBase16(96, 112), + this.getBitsBase16(112, 128), + '', + '/16', + ].join(':'); + + return new Address6(addr6to4); + } + + /** + * Return a byte array + * @memberof Address6 + * @instance + * @returns {Array} + */ + toByteArray(): number[] { + const byteArray = this.bigInteger().toByteArray(); + + // work around issue where `toByteArray` returns a leading 0 element + if (byteArray.length === 17 && byteArray[0] === 0) { + return byteArray.slice(1); + } + + return byteArray; + } + + /** + * Return an unsigned byte array + * @memberof Address6 + * @instance + * @returns {Array} + */ + toUnsignedByteArray(): number[] { + return this.toByteArray().map(unsignByte); + } + + /** + * Convert a byte array to an Address6 object + * @memberof Address6 + * @static + * @returns {Address6} + */ + static fromByteArray(bytes: Array): Address6 { + return this.fromUnsignedByteArray(bytes.map(unsignByte)); + } + + /** + * Convert an unsigned byte array to an Address6 object + * @memberof Address6 + * @static + * @returns {Address6} + */ + static fromUnsignedByteArray(bytes: Array): Address6 { + const BYTE_MAX = new BigInteger('256', 10); + let result = new BigInteger('0', 10); + let multiplier = new BigInteger('1', 10); + + for (let i = bytes.length - 1; i >= 0; i--) { + result = result.add(multiplier.multiply(new BigInteger(bytes[i].toString(10), 10))); + + multiplier = multiplier.multiply(BYTE_MAX); + } + + return Address6.fromBigInteger(result); + } + + // #region Attributes + /** + * Returns true if the given address is in the subnet of the current address + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isInSubnet = common.isInSubnet; + + /** + * Returns true if the address is correct, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isCorrect = common.isCorrect(constants6.BITS); + + /** + * Returns true if the address is in the canonical form, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isCanonical(): boolean { + return this.addressMinusSuffix === this.canonicalForm(); + } + + /** + * Returns true if the address is a link local address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isLinkLocal(): boolean { + // Zeroes are required, i.e. we can't check isInSubnet with 'fe80::/10' + if ( + this.getBitsBase2(0, 64) === + '1111111010000000000000000000000000000000000000000000000000000000' + ) { + return true; + } + + return false; + } + + /** + * Returns true if the address is a multicast address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isMulticast(): boolean { + return this.getType() === 'Multicast'; + } + + /** + * Returns true if the address is a v4-in-v6 address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + is4(): boolean { + return this.v4; + } + + /** + * Returns true if the address is a Teredo address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isTeredo(): boolean { + return this.isInSubnet(new Address6('2001::/32')); + } + + /** + * Returns true if the address is a 6to4 address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + is6to4(): boolean { + return this.isInSubnet(new Address6('2002::/16')); + } + + /** + * Returns true if the address is a loopback address, false otherwise + * @memberof Address6 + * @instance + * @returns {boolean} + */ + isLoopback(): boolean { + return this.getType() === 'Loopback'; + } + // #endregion + + // #region HTML + /** + * @returns {String} the address in link form with a default port of 80 + */ + href(optionalPort?: number | string): string { + if (optionalPort === undefined) { + optionalPort = ''; + } else { + optionalPort = sprintf(':%s', optionalPort); + } + + return sprintf('http://[%s]%s/', this.correctForm(), optionalPort); + } + + /** + * @returns {String} a link suitable for conveying the address via a URL hash + */ + link(options?: { className?: string; prefix?: string; v4?: boolean }): string { + if (!options) { + options = {}; + } + + if (options.className === undefined) { + options.className = ''; + } + + if (options.prefix === undefined) { + options.prefix = '/#address='; + } + + if (options.v4 === undefined) { + options.v4 = false; + } + + let formFunction = this.correctForm; + + if (options.v4) { + formFunction = this.to4in6; + } + + if (options.className) { + return sprintf( + '%2$s', + options.prefix, + formFunction.call(this), + options.className + ); + } + + return sprintf('%2$s', options.prefix, formFunction.call(this)); + } + + /** + * Groups an address + * @returns {String} + */ + group(): string { + if (this.elidedGroups === 0) { + // The simple case + return helpers.simpleGroup(this.address).join(':'); + } + + assert(typeof this.elidedGroups === 'number'); + assert(typeof this.elisionBegin === 'number'); + + // The elided case + const output = []; + + const [left, right] = this.address.split('::'); + + if (left.length) { + output.push(...helpers.simpleGroup(left)); + } else { + output.push(''); + } + + const classes = ['hover-group']; + + for (let i = this.elisionBegin; i < this.elisionBegin + this.elidedGroups; i++) { + classes.push(sprintf('group-%d', i)); + } + + output.push(sprintf('', classes.join(' '))); + + if (right.length) { + output.push(...helpers.simpleGroup(right, this.elisionEnd)); + } else { + output.push(''); + } + + if (this.is4()) { + assert(this.address4 instanceof Address4); + + output.pop(); + output.push(this.address4.groupForV6()); + } + + return output.join(':'); + } + // #endregion + + // #region Regular expressions + /** + * Generate a regular expression string that can be used to find or validate + * all variations of this address + * @memberof Address6 + * @instance + * @param {boolean} substringSearch + * @returns {string} + */ + regularExpressionString(this: Address6, substringSearch: boolean = false): string { + let output: string[] = []; + + // TODO: revisit why this is necessary + const address6 = new Address6(this.correctForm()); + + if (address6.elidedGroups === 0) { + // The simple case + output.push(simpleRegularExpression(address6.parsedAddress)); + } else if (address6.elidedGroups === constants6.GROUPS) { + // A completely elided address + output.push(possibleElisions(constants6.GROUPS)); + } else { + // A partially elided address + const halves = address6.address.split('::'); + + if (halves[0].length) { + output.push(simpleRegularExpression(halves[0].split(':'))); + } + + assert(typeof address6.elidedGroups === 'number'); + + output.push( + possibleElisions(address6.elidedGroups, halves[0].length !== 0, halves[1].length !== 0) + ); + + if (halves[1].length) { + output.push(simpleRegularExpression(halves[1].split(':'))); + } + + output = [output.join(':')]; + } + + if (!substringSearch) { + output = [ + '(?=^|', + ADDRESS_BOUNDARY, + '|[^\\w\\:])(', + ...output, + ')(?=[^\\w\\:]|', + ADDRESS_BOUNDARY, + '|$)', + ]; + } + + return output.join(''); + } + + /** + * Generate a regular expression that can be used to find or validate all + * variations of this address. + * @memberof Address6 + * @instance + * @param {boolean} substringSearch + * @returns {RegExp} + */ + regularExpression(this: Address6, substringSearch: boolean = false): RegExp { + return new RegExp(this.regularExpressionString(substringSearch), 'i'); + } + // #endregion +} diff --git a/Scripts/node_modules/ip-address/src/v4/constants.ts b/Scripts/node_modules/ip-address/src/v4/constants.ts new file mode 100644 index 00000000..f25b5af4 --- /dev/null +++ b/Scripts/node_modules/ip-address/src/v4/constants.ts @@ -0,0 +1,6 @@ +export const BITS = 32; +export const GROUPS = 4; + +export const RE_ADDRESS = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/g; + +export const RE_SUBNET_STRING = /\/\d{1,2}$/; diff --git a/Scripts/node_modules/ip-address/src/v6/constants.ts b/Scripts/node_modules/ip-address/src/v6/constants.ts new file mode 100644 index 00000000..617c771b --- /dev/null +++ b/Scripts/node_modules/ip-address/src/v6/constants.ts @@ -0,0 +1,79 @@ +export const BITS = 128; +export const GROUPS = 8; + +/** + * Represents IPv6 address scopes + * @memberof Address6 + * @static + */ +export const SCOPES: { [key: number]: string | undefined } = { + 0: 'Reserved', + 1: 'Interface local', + 2: 'Link local', + 4: 'Admin local', + 5: 'Site local', + 8: 'Organization local', + 14: 'Global', + 15: 'Reserved', +} as const; + +/** + * Represents IPv6 address types + * @memberof Address6 + * @static + */ +export const TYPES: { [key: string]: string | undefined } = { + 'ff01::1/128': 'Multicast (All nodes on this interface)', + 'ff01::2/128': 'Multicast (All routers on this interface)', + 'ff02::1/128': 'Multicast (All nodes on this link)', + 'ff02::2/128': 'Multicast (All routers on this link)', + 'ff05::2/128': 'Multicast (All routers in this site)', + 'ff02::5/128': 'Multicast (OSPFv3 AllSPF routers)', + 'ff02::6/128': 'Multicast (OSPFv3 AllDR routers)', + 'ff02::9/128': 'Multicast (RIP routers)', + 'ff02::a/128': 'Multicast (EIGRP routers)', + 'ff02::d/128': 'Multicast (PIM routers)', + 'ff02::16/128': 'Multicast (MLDv2 reports)', + 'ff01::fb/128': 'Multicast (mDNSv6)', + 'ff02::fb/128': 'Multicast (mDNSv6)', + 'ff05::fb/128': 'Multicast (mDNSv6)', + 'ff02::1:2/128': 'Multicast (All DHCP servers and relay agents on this link)', + 'ff05::1:2/128': 'Multicast (All DHCP servers and relay agents in this site)', + 'ff02::1:3/128': 'Multicast (All DHCP servers on this link)', + 'ff05::1:3/128': 'Multicast (All DHCP servers in this site)', + '::/128': 'Unspecified', + '::1/128': 'Loopback', + 'ff00::/8': 'Multicast', + 'fe80::/10': 'Link-local unicast', +} as const; + +/** + * A regular expression that matches bad characters in an IPv6 address + * @memberof Address6 + * @static + */ +export const RE_BAD_CHARACTERS = /([^0-9a-f:/%])/gi; + +/** + * A regular expression that matches an incorrect IPv6 address + * @memberof Address6 + * @static + */ +export const RE_BAD_ADDRESS = /([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi; + +/** + * A regular expression that matches an IPv6 subnet + * @memberof Address6 + * @static + */ +export const RE_SUBNET_STRING = /\/\d{1,3}(?=%|$)/; + +/** + * A regular expression that matches an IPv6 zone + * @memberof Address6 + * @static + */ +export const RE_ZONE_STRING = /%.*$/; + +export const RE_URL = new RegExp(/^\[{0,1}([0-9a-f:]+)\]{0,1}/); +export const RE_URL_WITH_PORT = new RegExp(/\[([0-9a-f:]+)\]:([0-9]{1,5})/); diff --git a/Scripts/node_modules/ip-address/src/v6/helpers.ts b/Scripts/node_modules/ip-address/src/v6/helpers.ts new file mode 100644 index 00000000..941cd9ff --- /dev/null +++ b/Scripts/node_modules/ip-address/src/v6/helpers.ts @@ -0,0 +1,60 @@ +import { sprintf } from 'sprintf-js'; + +/** + * @returns {String} the string with all zeroes contained in a + */ +export function spanAllZeroes(s: string): string { + return s.replace(/(0+)/g, '$1'); +} + +/** + * @returns {String} the string with each character contained in a + */ +export function spanAll(s: string, offset: number = 0): string { + const letters = s.split(''); + + return letters + .map( + (n, i) => + sprintf( + '%s', + n, + i + offset, + spanAllZeroes(n) + ) // XXX Use #base-2 .value-0 instead? + ) + .join(''); +} + +function spanLeadingZeroesSimple(group: string): string { + return group.replace(/^(0+)/, '$1'); +} + +/** + * @returns {String} the string with leading zeroes contained in a + */ +export function spanLeadingZeroes(address: string): string { + const groups = address.split(':'); + + return groups.map((g) => spanLeadingZeroesSimple(g)).join(':'); +} + +/** + * Groups an address + * @returns {String} a grouped address + */ +export function simpleGroup(addressString: string, offset: number = 0): string[] { + const groups = addressString.split(':'); + + return groups.map((g, i) => { + if (/group-v4/.test(g)) { + return g; + } + + return sprintf( + '%s', + i + offset, + spanLeadingZeroesSimple(g) + ); + }); +} diff --git a/Scripts/node_modules/ip-address/src/v6/regular-expressions.ts b/Scripts/node_modules/ip-address/src/v6/regular-expressions.ts new file mode 100644 index 00000000..a0ad810c --- /dev/null +++ b/Scripts/node_modules/ip-address/src/v6/regular-expressions.ts @@ -0,0 +1,99 @@ +import * as v6 from './constants'; +import { sprintf } from 'sprintf-js'; + +export function groupPossibilities(possibilities: string[]): string { + return sprintf('(%s)', possibilities.join('|')); +} + +export function padGroup(group: string): string { + if (group.length < 4) { + return sprintf('0{0,%d}%s', 4 - group.length, group); + } + + return group; +} + +export const ADDRESS_BOUNDARY = '[^A-Fa-f0-9:]'; + +export function simpleRegularExpression(groups: string[]) { + const zeroIndexes: number[] = []; + + groups.forEach((group, i) => { + const groupInteger = parseInt(group, 16); + + if (groupInteger === 0) { + zeroIndexes.push(i); + } + }); + + // You can technically elide a single 0, this creates the regular expressions + // to match that eventuality + const possibilities = zeroIndexes.map((zeroIndex) => + groups + .map((group, i) => { + if (i === zeroIndex) { + const elision = i === 0 || i === v6.GROUPS - 1 ? ':' : ''; + + return groupPossibilities([padGroup(group), elision]); + } + + return padGroup(group); + }) + .join(':') + ); + + // The simplest case + possibilities.push(groups.map(padGroup).join(':')); + + return groupPossibilities(possibilities); +} + +export function possibleElisions( + elidedGroups: number, + moreLeft?: boolean, + moreRight?: boolean +): string { + const left = moreLeft ? '' : ':'; + const right = moreRight ? '' : ':'; + + const possibilities = []; + + // 1. elision of everything (::) + if (!moreLeft && !moreRight) { + possibilities.push('::'); + } + + // 2. complete elision of the middle + if (moreLeft && moreRight) { + possibilities.push(''); + } + + if ((moreRight && !moreLeft) || (!moreRight && moreLeft)) { + // 3. complete elision of one side + possibilities.push(':'); + } + + // 4. elision from the left side + possibilities.push(sprintf('%s(:0{1,4}){1,%d}', left, elidedGroups - 1)); + + // 5. elision from the right side + possibilities.push(sprintf('(0{1,4}:){1,%d}%s', elidedGroups - 1, right)); + + // 6. no elision + possibilities.push(sprintf('(0{1,4}:){%d}0{1,4}', elidedGroups - 1)); + + // 7. elision (including sloppy elision) from the middle + for (let groups = 1; groups < elidedGroups - 1; groups++) { + for (let position = 1; position < elidedGroups - groups; position++) { + possibilities.push( + sprintf( + '(0{1,4}:){%d}:(0{1,4}:){%d}0{1,4}', + position, + elidedGroups - position - groups - 1 + ) + ); + } + } + + return groupPossibilities(possibilities); +} diff --git a/Scripts/node_modules/ip/README.md b/Scripts/node_modules/ip/README.md deleted file mode 100644 index 22e5819f..00000000 --- a/Scripts/node_modules/ip/README.md +++ /dev/null @@ -1,90 +0,0 @@ -# IP -[![](https://badge.fury.io/js/ip.svg)](https://www.npmjs.com/package/ip) - -IP address utilities for node.js - -## Installation - -### npm -```shell -npm install ip -``` - -### git - -```shell -git clone https://github.com/indutny/node-ip.git -``` - -## Usage -Get your ip address, compare ip addresses, validate ip addresses, etc. - -```js -var ip = require('ip'); - -ip.address() // my ip address -ip.isEqual('::1', '::0:1'); // true -ip.toBuffer('127.0.0.1') // Buffer([127, 0, 0, 1]) -ip.toString(new Buffer([127, 0, 0, 1])) // 127.0.0.1 -ip.fromPrefixLen(24) // 255.255.255.0 -ip.mask('192.168.1.134', '255.255.255.0') // 192.168.1.0 -ip.cidr('192.168.1.134/26') // 192.168.1.128 -ip.not('255.255.255.0') // 0.0.0.255 -ip.or('192.168.1.134', '0.0.0.255') // 192.168.1.255 -ip.isPrivate('127.0.0.1') // true -ip.isV4Format('127.0.0.1'); // true -ip.isV6Format('::ffff:127.0.0.1'); // true - -// operate on buffers in-place -var buf = new Buffer(128); -var offset = 64; -ip.toBuffer('127.0.0.1', buf, offset); // [127, 0, 0, 1] at offset 64 -ip.toString(buf, offset, 4); // '127.0.0.1' - -// subnet information -ip.subnet('192.168.1.134', '255.255.255.192') -// { networkAddress: '192.168.1.128', -// firstAddress: '192.168.1.129', -// lastAddress: '192.168.1.190', -// broadcastAddress: '192.168.1.191', -// subnetMask: '255.255.255.192', -// subnetMaskLength: 26, -// numHosts: 62, -// length: 64, -// contains: function(addr){...} } -ip.cidrSubnet('192.168.1.134/26') -// Same as previous. - -// range checking -ip.cidrSubnet('192.168.1.134/26').contains('192.168.1.190') // true - - -// ipv4 long conversion -ip.toLong('127.0.0.1'); // 2130706433 -ip.fromLong(2130706433); // '127.0.0.1' -``` - -### License - -This software is licensed under the MIT License. - -Copyright Fedor Indutny, 2012. - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to permit -persons to whom the Software is furnished to do so, subject to the -following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Scripts/node_modules/ip/lib/ip.js b/Scripts/node_modules/ip/lib/ip.js deleted file mode 100644 index 5b5ccc24..00000000 --- a/Scripts/node_modules/ip/lib/ip.js +++ /dev/null @@ -1,427 +0,0 @@ -var ip = exports; -var { Buffer } = require('buffer'); -var os = require('os'); - -ip.toBuffer = function (ip, buff, offset) { - offset = ~~offset; - - var result; - - if (this.isV4Format(ip)) { - result = buff || new Buffer(offset + 4); - ip.split(/\./g).map((byte) => { - result[offset++] = parseInt(byte, 10) & 0xff; - }); - } else if (this.isV6Format(ip)) { - var sections = ip.split(':', 8); - - var i; - for (i = 0; i < sections.length; i++) { - var isv4 = this.isV4Format(sections[i]); - var v4Buffer; - - if (isv4) { - v4Buffer = this.toBuffer(sections[i]); - sections[i] = v4Buffer.slice(0, 2).toString('hex'); - } - - if (v4Buffer && ++i < 8) { - sections.splice(i, 0, v4Buffer.slice(2, 4).toString('hex')); - } - } - - if (sections[0] === '') { - while (sections.length < 8) sections.unshift('0'); - } else if (sections[sections.length - 1] === '') { - while (sections.length < 8) sections.push('0'); - } else if (sections.length < 8) { - for (i = 0; i < sections.length && sections[i] !== ''; i++); - var argv = [i, 1]; - for (i = 9 - sections.length; i > 0; i--) { - argv.push('0'); - } - sections.splice.apply(sections, argv); - } - - result = buff || new Buffer(offset + 16); - for (i = 0; i < sections.length; i++) { - var word = parseInt(sections[i], 16); - result[offset++] = (word >> 8) & 0xff; - result[offset++] = word & 0xff; - } - } - - if (!result) { - throw Error(`Invalid ip address: ${ip}`); - } - - return result; -}; - -ip.toString = function (buff, offset, length) { - offset = ~~offset; - length = length || (buff.length - offset); - - var result = []; - var i; - if (length === 4) { - // IPv4 - for (i = 0; i < length; i++) { - result.push(buff[offset + i]); - } - result = result.join('.'); - } else if (length === 16) { - // IPv6 - for (i = 0; i < length; i += 2) { - result.push(buff.readUInt16BE(offset + i).toString(16)); - } - result = result.join(':'); - result = result.replace(/(^|:)0(:0)*:0(:|$)/, '$1::$3'); - result = result.replace(/:{3,4}/, '::'); - } - - return result; -}; - -var ipv4Regex = /^(\d{1,3}\.){3,3}\d{1,3}$/; -var ipv6Regex = /^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i; - -ip.isV4Format = function (ip) { - return ipv4Regex.test(ip); -}; - -ip.isV6Format = function (ip) { - return ipv6Regex.test(ip); -}; - -function _normalizeFamily(family) { - if (family === 4) { - return 'ipv4'; - } - if (family === 6) { - return 'ipv6'; - } - return family ? family.toLowerCase() : 'ipv4'; -} - -ip.fromPrefixLen = function (prefixlen, family) { - if (prefixlen > 32) { - family = 'ipv6'; - } else { - family = _normalizeFamily(family); - } - - var len = 4; - if (family === 'ipv6') { - len = 16; - } - var buff = new Buffer(len); - - for (var i = 0, n = buff.length; i < n; ++i) { - var bits = 8; - if (prefixlen < 8) { - bits = prefixlen; - } - prefixlen -= bits; - - buff[i] = ~(0xff >> bits) & 0xff; - } - - return ip.toString(buff); -}; - -ip.mask = function (addr, mask) { - addr = ip.toBuffer(addr); - mask = ip.toBuffer(mask); - - var result = new Buffer(Math.max(addr.length, mask.length)); - - // Same protocol - do bitwise and - var i; - if (addr.length === mask.length) { - for (i = 0; i < addr.length; i++) { - result[i] = addr[i] & mask[i]; - } - } else if (mask.length === 4) { - // IPv6 address and IPv4 mask - // (Mask low bits) - for (i = 0; i < mask.length; i++) { - result[i] = addr[addr.length - 4 + i] & mask[i]; - } - } else { - // IPv6 mask and IPv4 addr - for (i = 0; i < result.length - 6; i++) { - result[i] = 0; - } - - // ::ffff:ipv4 - result[10] = 0xff; - result[11] = 0xff; - for (i = 0; i < addr.length; i++) { - result[i + 12] = addr[i] & mask[i + 12]; - } - i += 12; - } - for (; i < result.length; i++) { - result[i] = 0; - } - - return ip.toString(result); -}; - -ip.cidr = function (cidrString) { - var cidrParts = cidrString.split('/'); - - var addr = cidrParts[0]; - if (cidrParts.length !== 2) { - throw new Error(`invalid CIDR subnet: ${addr}`); - } - - var mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10)); - - return ip.mask(addr, mask); -}; - -ip.subnet = function (addr, mask) { - var networkAddress = ip.toLong(ip.mask(addr, mask)); - - // Calculate the mask's length. - var maskBuffer = ip.toBuffer(mask); - var maskLength = 0; - - for (var i = 0; i < maskBuffer.length; i++) { - if (maskBuffer[i] === 0xff) { - maskLength += 8; - } else { - var octet = maskBuffer[i] & 0xff; - while (octet) { - octet = (octet << 1) & 0xff; - maskLength++; - } - } - } - - var numberOfAddresses = Math.pow(2, 32 - maskLength); - - return { - networkAddress: ip.fromLong(networkAddress), - firstAddress: numberOfAddresses <= 2 - ? ip.fromLong(networkAddress) - : ip.fromLong(networkAddress + 1), - lastAddress: numberOfAddresses <= 2 - ? ip.fromLong(networkAddress + numberOfAddresses - 1) - : ip.fromLong(networkAddress + numberOfAddresses - 2), - broadcastAddress: ip.fromLong(networkAddress + numberOfAddresses - 1), - subnetMask: mask, - subnetMaskLength: maskLength, - numHosts: numberOfAddresses <= 2 - ? numberOfAddresses : numberOfAddresses - 2, - length: numberOfAddresses, - contains(other) { - return networkAddress === ip.toLong(ip.mask(other, mask)); - }, - }; -}; - -ip.cidrSubnet = function (cidrString) { - var cidrParts = cidrString.split('/'); - - var addr = cidrParts[0]; - if (cidrParts.length !== 2) { - throw new Error(`invalid CIDR subnet: ${addr}`); - } - - var mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10)); - - return ip.subnet(addr, mask); -}; - -ip.not = function (addr) { - var buff = ip.toBuffer(addr); - for (var i = 0; i < buff.length; i++) { - buff[i] = 0xff ^ buff[i]; - } - return ip.toString(buff); -}; - -ip.or = function (a, b) { - var i; - - a = ip.toBuffer(a); - b = ip.toBuffer(b); - - // same protocol - if (a.length === b.length) { - for (i = 0; i < a.length; ++i) { - a[i] |= b[i]; - } - return ip.toString(a); - - // mixed protocols - } - var buff = a; - var other = b; - if (b.length > a.length) { - buff = b; - other = a; - } - - var offset = buff.length - other.length; - for (i = offset; i < buff.length; ++i) { - buff[i] |= other[i - offset]; - } - - return ip.toString(buff); -}; - -ip.isEqual = function (a, b) { - var i; - - a = ip.toBuffer(a); - b = ip.toBuffer(b); - - // Same protocol - if (a.length === b.length) { - for (i = 0; i < a.length; i++) { - if (a[i] !== b[i]) return false; - } - return true; - } - - // Swap - if (b.length === 4) { - var t = b; - b = a; - a = t; - } - - // a - IPv4, b - IPv6 - for (i = 0; i < 10; i++) { - if (b[i] !== 0) return false; - } - - var word = b.readUInt16BE(10); - if (word !== 0 && word !== 0xffff) return false; - - for (i = 0; i < 4; i++) { - if (a[i] !== b[i + 12]) return false; - } - - return true; -}; - -ip.isPrivate = function (addr) { - return /^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i - .test(addr) - || /^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) - || /^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i - .test(addr) - || /^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) - || /^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) - || /^f[cd][0-9a-f]{2}:/i.test(addr) - || /^fe80:/i.test(addr) - || /^::1$/.test(addr) - || /^::$/.test(addr); -}; - -ip.isPublic = function (addr) { - return !ip.isPrivate(addr); -}; - -ip.isLoopback = function (addr) { - return /^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/ - .test(addr) - || /^fe80::1$/.test(addr) - || /^::1$/.test(addr) - || /^::$/.test(addr); -}; - -ip.loopback = function (family) { - // - // Default to `ipv4` - // - family = _normalizeFamily(family); - - if (family !== 'ipv4' && family !== 'ipv6') { - throw new Error('family must be ipv4 or ipv6'); - } - - return family === 'ipv4' ? '127.0.0.1' : 'fe80::1'; -}; - -// -// ### function address (name, family) -// #### @name {string|'public'|'private'} **Optional** Name or security -// of the network interface. -// #### @family {ipv4|ipv6} **Optional** IP family of the address (defaults -// to ipv4). -// -// Returns the address for the network interface on the current system with -// the specified `name`: -// * String: First `family` address of the interface. -// If not found see `undefined`. -// * 'public': the first public ip address of family. -// * 'private': the first private ip address of family. -// * undefined: First address with `ipv4` or loopback address `127.0.0.1`. -// -ip.address = function (name, family) { - var interfaces = os.networkInterfaces(); - - // - // Default to `ipv4` - // - family = _normalizeFamily(family); - - // - // If a specific network interface has been named, - // return the address. - // - if (name && name !== 'private' && name !== 'public') { - var res = interfaces[name].filter((details) => { - var itemFamily = _normalizeFamily(details.family); - return itemFamily === family; - }); - if (res.length === 0) { - return undefined; - } - return res[0].address; - } - - var all = Object.keys(interfaces).map((nic) => { - // - // Note: name will only be `public` or `private` - // when this is called. - // - var addresses = interfaces[nic].filter((details) => { - details.family = _normalizeFamily(details.family); - if (details.family !== family || ip.isLoopback(details.address)) { - return false; - } if (!name) { - return true; - } - - return name === 'public' ? ip.isPrivate(details.address) - : ip.isPublic(details.address); - }); - - return addresses.length ? addresses[0].address : undefined; - }).filter(Boolean); - - return !all.length ? ip.loopback(family) : all[0]; -}; - -ip.toLong = function (ip) { - var ipl = 0; - ip.split('.').forEach((octet) => { - ipl <<= 8; - ipl += parseInt(octet); - }); - return (ipl >>> 0); -}; - -ip.fromLong = function (ipl) { - return (`${ipl >>> 24}.${ - ipl >> 16 & 255}.${ - ipl >> 8 & 255}.${ - ipl & 255}`); -}; diff --git a/Scripts/node_modules/ip/package.json b/Scripts/node_modules/ip/package.json deleted file mode 100644 index 70e1a4f0..00000000 --- a/Scripts/node_modules/ip/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "ip", - "version": "1.1.8", - "author": "Fedor Indutny ", - "homepage": "https://github.com/indutny/node-ip", - "repository": { - "type": "git", - "url": "http://github.com/indutny/node-ip.git" - }, - "files": [ - "lib", - "README.md" - ], - "main": "lib/ip", - "devDependencies": { - "eslint": "^8.15.0", - "mocha": "^10.0.0" - }, - "scripts": { - "lint": "eslint lib/*.js test/*.js", - "test": "npm run lint && mocha --reporter spec test/*-test.js", - "fix": "npm run lint -- --fix" - }, - "license": "MIT" -} diff --git a/Scripts/node_modules/jsbn/.npmignore b/Scripts/node_modules/jsbn/.npmignore new file mode 100644 index 00000000..28f1ba75 --- /dev/null +++ b/Scripts/node_modules/jsbn/.npmignore @@ -0,0 +1,2 @@ +node_modules +.DS_Store \ No newline at end of file diff --git a/Scripts/node_modules/jsbn/CHANGELOG.md b/Scripts/node_modules/jsbn/CHANGELOG.md new file mode 100644 index 00000000..23f17f40 --- /dev/null +++ b/Scripts/node_modules/jsbn/CHANGELOG.md @@ -0,0 +1,16 @@ +# v1.1.0 + +- Allow for es6 "default import", e.g. `import BigInteger from 'jsbn'`. +- Updated license file to read MIT + + +# v1.0.0 + +- breaking change: `require('jsbn')` no longer returns `BigInteger`. Use `require('jsbn').BigInteger` instead. + + + +# v0.1.1 + +- fixed backwards-incompatible change in v0.1.0 where `require('jsbn') != BigInteger`. This patch version allows for `var BigInteger = require('jsbn')` or `var BigInteger = require('jsbn').BigInteger`. + diff --git a/Scripts/node_modules/jsbn/LICENSE b/Scripts/node_modules/jsbn/LICENSE new file mode 100644 index 00000000..24502a9c --- /dev/null +++ b/Scripts/node_modules/jsbn/LICENSE @@ -0,0 +1,40 @@ +Licensing +--------- + +This software is covered under the following copyright: + +/* + * Copyright (c) 2003-2005 Tom Wu + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, + * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY + * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. + * + * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL, + * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER + * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF + * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT + * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * In addition, the following condition applies: + * + * All redistributions must retain an intact copy of this copyright notice + * and disclaimer. + */ + +Address all questions regarding this license to: + + Tom Wu + tjw@cs.Stanford.EDU diff --git a/Scripts/node_modules/jsbn/README.md b/Scripts/node_modules/jsbn/README.md new file mode 100644 index 00000000..62e8273b --- /dev/null +++ b/Scripts/node_modules/jsbn/README.md @@ -0,0 +1,173 @@ +# jsbn: javascript big number + +[Tom Wu's Original Website](http://www-cs-students.stanford.edu/~tjw/jsbn/) + +I felt compelled to put this on github and publish to npm. I haven't tested every other big integer library out there, but the few that I have tested in comparison to this one have not even come close in performance. I am aware of the `bi` module on npm, however it has been modified and I wanted to publish the original without modifications. This is jsbn and jsbn2 from Tom Wu's original website above, with the module pattern applied to prevent global leaks and to allow for use with node.js on the server side. + +## usage + + var BigInteger = require('jsbn').BigInteger; + + var bi = new BigInteger('91823918239182398123'); + console.log(bi.bitLength()); // 67 + + +## API + +### bi.toString() + +returns the base-10 number as a string + +### bi.negate() + +returns a new BigInteger equal to the negation of `bi` + +### bi.abs + +returns new BI of absolute value + +### bi.compareTo + + + +### bi.bitLength + + + +### bi.mod + + + +### bi.modPowInt + + + +### bi.clone + + + +### bi.intValue + + + +### bi.byteValue + + + +### bi.shortValue + + + +### bi.signum + + + +### bi.toByteArray + + + +### bi.equals + + + +### bi.min + + + +### bi.max + + + +### bi.and + + + +### bi.or + + + +### bi.xor + + + +### bi.andNot + + + +### bi.not + + + +### bi.shiftLeft + + + +### bi.shiftRight + + + +### bi.getLowestSetBit + + + +### bi.bitCount + + + +### bi.testBit + + + +### bi.setBit + + + +### bi.clearBit + + + +### bi.flipBit + + + +### bi.add + + + +### bi.subtract + + + +### bi.multiply + + + +### bi.divide + + + +### bi.remainder + + + +### bi.divideAndRemainder + + + +### bi.modPow + + + +### bi.modInverse + + + +### bi.pow + + + +### bi.gcd + + + +### bi.isProbablePrime diff --git a/Scripts/node_modules/jsbn/example.html b/Scripts/node_modules/jsbn/example.html new file mode 100644 index 00000000..1c0489b1 --- /dev/null +++ b/Scripts/node_modules/jsbn/example.html @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Scripts/node_modules/jsbn/example.js b/Scripts/node_modules/jsbn/example.js new file mode 100644 index 00000000..85979909 --- /dev/null +++ b/Scripts/node_modules/jsbn/example.js @@ -0,0 +1,5 @@ +(function () { + var BigInteger = jsbn.BigInteger; + var a = new BigInteger('91823918239182398123'); + console.log(a.bitLength()); +}()); diff --git a/Scripts/node_modules/jsbn/index.js b/Scripts/node_modules/jsbn/index.js new file mode 100644 index 00000000..e9eb697b --- /dev/null +++ b/Scripts/node_modules/jsbn/index.js @@ -0,0 +1,1361 @@ +(function(){ + + // Copyright (c) 2005 Tom Wu + // All Rights Reserved. + // See "LICENSE" for details. + + // Basic JavaScript BN library - subset useful for RSA encryption. + + // Bits per digit + var dbits; + + // JavaScript engine analysis + var canary = 0xdeadbeefcafe; + var j_lm = ((canary&0xffffff)==0xefcafe); + + // (public) Constructor + function BigInteger(a,b,c) { + if(a != null) + if("number" == typeof a) this.fromNumber(a,b,c); + else if(b == null && "string" != typeof a) this.fromString(a,256); + else this.fromString(a,b); + } + + // return new, unset BigInteger + function nbi() { return new BigInteger(null); } + + // am: Compute w_j += (x*this_i), propagate carries, + // c is initial carry, returns final carry. + // c < 3*dvalue, x < 2*dvalue, this_i < dvalue + // We need to select the fastest one that works in this environment. + + // am1: use a single mult and divide to get the high bits, + // max digit bits should be 26 because + // max internal value = 2*dvalue^2-2*dvalue (< 2^53) + function am1(i,x,w,j,c,n) { + while(--n >= 0) { + var v = x*this[i++]+w[j]+c; + c = Math.floor(v/0x4000000); + w[j++] = v&0x3ffffff; + } + return c; + } + // am2 avoids a big mult-and-extract completely. + // Max digit bits should be <= 30 because we do bitwise ops + // on values up to 2*hdvalue^2-hdvalue-1 (< 2^31) + function am2(i,x,w,j,c,n) { + var xl = x&0x7fff, xh = x>>15; + while(--n >= 0) { + var l = this[i]&0x7fff; + var h = this[i++]>>15; + var m = xh*l+h*xl; + l = xl*l+((m&0x7fff)<<15)+w[j]+(c&0x3fffffff); + c = (l>>>30)+(m>>>15)+xh*h+(c>>>30); + w[j++] = l&0x3fffffff; + } + return c; + } + // Alternately, set max digit bits to 28 since some + // browsers slow down when dealing with 32-bit numbers. + function am3(i,x,w,j,c,n) { + var xl = x&0x3fff, xh = x>>14; + while(--n >= 0) { + var l = this[i]&0x3fff; + var h = this[i++]>>14; + var m = xh*l+h*xl; + l = xl*l+((m&0x3fff)<<14)+w[j]+c; + c = (l>>28)+(m>>14)+xh*h; + w[j++] = l&0xfffffff; + } + return c; + } + var inBrowser = typeof navigator !== "undefined"; + if(inBrowser && j_lm && (navigator.appName == "Microsoft Internet Explorer")) { + BigInteger.prototype.am = am2; + dbits = 30; + } + else if(inBrowser && j_lm && (navigator.appName != "Netscape")) { + BigInteger.prototype.am = am1; + dbits = 26; + } + else { // Mozilla/Netscape seems to prefer am3 + BigInteger.prototype.am = am3; + dbits = 28; + } + + BigInteger.prototype.DB = dbits; + BigInteger.prototype.DM = ((1<= 0; --i) r[i] = this[i]; + r.t = this.t; + r.s = this.s; + } + + // (protected) set from integer value x, -DV <= x < DV + function bnpFromInt(x) { + this.t = 1; + this.s = (x<0)?-1:0; + if(x > 0) this[0] = x; + else if(x < -1) this[0] = x+this.DV; + else this.t = 0; + } + + // return bigint initialized to value + function nbv(i) { var r = nbi(); r.fromInt(i); return r; } + + // (protected) set from string and radix + function bnpFromString(s,b) { + var k; + if(b == 16) k = 4; + else if(b == 8) k = 3; + else if(b == 256) k = 8; // byte array + else if(b == 2) k = 1; + else if(b == 32) k = 5; + else if(b == 4) k = 2; + else { this.fromRadix(s,b); return; } + this.t = 0; + this.s = 0; + var i = s.length, mi = false, sh = 0; + while(--i >= 0) { + var x = (k==8)?s[i]&0xff:intAt(s,i); + if(x < 0) { + if(s.charAt(i) == "-") mi = true; + continue; + } + mi = false; + if(sh == 0) + this[this.t++] = x; + else if(sh+k > this.DB) { + this[this.t-1] |= (x&((1<<(this.DB-sh))-1))<>(this.DB-sh)); + } + else + this[this.t-1] |= x<= this.DB) sh -= this.DB; + } + if(k == 8 && (s[0]&0x80) != 0) { + this.s = -1; + if(sh > 0) this[this.t-1] |= ((1<<(this.DB-sh))-1)< 0 && this[this.t-1] == c) --this.t; + } + + // (public) return string representation in given radix + function bnToString(b) { + if(this.s < 0) return "-"+this.negate().toString(b); + var k; + if(b == 16) k = 4; + else if(b == 8) k = 3; + else if(b == 2) k = 1; + else if(b == 32) k = 5; + else if(b == 4) k = 2; + else return this.toRadix(b); + var km = (1< 0) { + if(p < this.DB && (d = this[i]>>p) > 0) { m = true; r = int2char(d); } + while(i >= 0) { + if(p < k) { + d = (this[i]&((1<>(p+=this.DB-k); + } + else { + d = (this[i]>>(p-=k))&km; + if(p <= 0) { p += this.DB; --i; } + } + if(d > 0) m = true; + if(m) r += int2char(d); + } + } + return m?r:"0"; + } + + // (public) -this + function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; } + + // (public) |this| + function bnAbs() { return (this.s<0)?this.negate():this; } + + // (public) return + if this > a, - if this < a, 0 if equal + function bnCompareTo(a) { + var r = this.s-a.s; + if(r != 0) return r; + var i = this.t; + r = i-a.t; + if(r != 0) return (this.s<0)?-r:r; + while(--i >= 0) if((r=this[i]-a[i]) != 0) return r; + return 0; + } + + // returns bit length of the integer x + function nbits(x) { + var r = 1, t; + if((t=x>>>16) != 0) { x = t; r += 16; } + if((t=x>>8) != 0) { x = t; r += 8; } + if((t=x>>4) != 0) { x = t; r += 4; } + if((t=x>>2) != 0) { x = t; r += 2; } + if((t=x>>1) != 0) { x = t; r += 1; } + return r; + } + + // (public) return the number of bits in "this" + function bnBitLength() { + if(this.t <= 0) return 0; + return this.DB*(this.t-1)+nbits(this[this.t-1]^(this.s&this.DM)); + } + + // (protected) r = this << n*DB + function bnpDLShiftTo(n,r) { + var i; + for(i = this.t-1; i >= 0; --i) r[i+n] = this[i]; + for(i = n-1; i >= 0; --i) r[i] = 0; + r.t = this.t+n; + r.s = this.s; + } + + // (protected) r = this >> n*DB + function bnpDRShiftTo(n,r) { + for(var i = n; i < this.t; ++i) r[i-n] = this[i]; + r.t = Math.max(this.t-n,0); + r.s = this.s; + } + + // (protected) r = this << n + function bnpLShiftTo(n,r) { + var bs = n%this.DB; + var cbs = this.DB-bs; + var bm = (1<= 0; --i) { + r[i+ds+1] = (this[i]>>cbs)|c; + c = (this[i]&bm)<= 0; --i) r[i] = 0; + r[ds] = c; + r.t = this.t+ds+1; + r.s = this.s; + r.clamp(); + } + + // (protected) r = this >> n + function bnpRShiftTo(n,r) { + r.s = this.s; + var ds = Math.floor(n/this.DB); + if(ds >= this.t) { r.t = 0; return; } + var bs = n%this.DB; + var cbs = this.DB-bs; + var bm = (1<>bs; + for(var i = ds+1; i < this.t; ++i) { + r[i-ds-1] |= (this[i]&bm)<>bs; + } + if(bs > 0) r[this.t-ds-1] |= (this.s&bm)<>= this.DB; + } + if(a.t < this.t) { + c -= a.s; + while(i < this.t) { + c += this[i]; + r[i++] = c&this.DM; + c >>= this.DB; + } + c += this.s; + } + else { + c += this.s; + while(i < a.t) { + c -= a[i]; + r[i++] = c&this.DM; + c >>= this.DB; + } + c -= a.s; + } + r.s = (c<0)?-1:0; + if(c < -1) r[i++] = this.DV+c; + else if(c > 0) r[i++] = c; + r.t = i; + r.clamp(); + } + + // (protected) r = this * a, r != this,a (HAC 14.12) + // "this" should be the larger one if appropriate. + function bnpMultiplyTo(a,r) { + var x = this.abs(), y = a.abs(); + var i = x.t; + r.t = i+y.t; + while(--i >= 0) r[i] = 0; + for(i = 0; i < y.t; ++i) r[i+x.t] = x.am(0,y[i],r,i,0,x.t); + r.s = 0; + r.clamp(); + if(this.s != a.s) BigInteger.ZERO.subTo(r,r); + } + + // (protected) r = this^2, r != this (HAC 14.16) + function bnpSquareTo(r) { + var x = this.abs(); + var i = r.t = 2*x.t; + while(--i >= 0) r[i] = 0; + for(i = 0; i < x.t-1; ++i) { + var c = x.am(i,x[i],r,2*i,0,1); + if((r[i+x.t]+=x.am(i+1,2*x[i],r,2*i+1,c,x.t-i-1)) >= x.DV) { + r[i+x.t] -= x.DV; + r[i+x.t+1] = 1; + } + } + if(r.t > 0) r[r.t-1] += x.am(i,x[i],r,2*i,0,1); + r.s = 0; + r.clamp(); + } + + // (protected) divide this by m, quotient and remainder to q, r (HAC 14.20) + // r != q, this != m. q or r may be null. + function bnpDivRemTo(m,q,r) { + var pm = m.abs(); + if(pm.t <= 0) return; + var pt = this.abs(); + if(pt.t < pm.t) { + if(q != null) q.fromInt(0); + if(r != null) this.copyTo(r); + return; + } + if(r == null) r = nbi(); + var y = nbi(), ts = this.s, ms = m.s; + var nsh = this.DB-nbits(pm[pm.t-1]); // normalize modulus + if(nsh > 0) { pm.lShiftTo(nsh,y); pt.lShiftTo(nsh,r); } + else { pm.copyTo(y); pt.copyTo(r); } + var ys = y.t; + var y0 = y[ys-1]; + if(y0 == 0) return; + var yt = y0*(1<1)?y[ys-2]>>this.F2:0); + var d1 = this.FV/yt, d2 = (1<= 0) { + r[r.t++] = 1; + r.subTo(t,r); + } + BigInteger.ONE.dlShiftTo(ys,t); + t.subTo(y,y); // "negative" y so we can replace sub with am later + while(y.t < ys) y[y.t++] = 0; + while(--j >= 0) { + // Estimate quotient digit + var qd = (r[--i]==y0)?this.DM:Math.floor(r[i]*d1+(r[i-1]+e)*d2); + if((r[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out + y.dlShiftTo(j,t); + r.subTo(t,r); + while(r[i] < --qd) r.subTo(t,r); + } + } + if(q != null) { + r.drShiftTo(ys,q); + if(ts != ms) BigInteger.ZERO.subTo(q,q); + } + r.t = ys; + r.clamp(); + if(nsh > 0) r.rShiftTo(nsh,r); // Denormalize remainder + if(ts < 0) BigInteger.ZERO.subTo(r,r); + } + + // (public) this mod a + function bnMod(a) { + var r = nbi(); + this.abs().divRemTo(a,null,r); + if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r); + return r; + } + + // Modular reduction using "classic" algorithm + function Classic(m) { this.m = m; } + function cConvert(x) { + if(x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m); + else return x; + } + function cRevert(x) { return x; } + function cReduce(x) { x.divRemTo(this.m,null,x); } + function cMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } + function cSqrTo(x,r) { x.squareTo(r); this.reduce(r); } + + Classic.prototype.convert = cConvert; + Classic.prototype.revert = cRevert; + Classic.prototype.reduce = cReduce; + Classic.prototype.mulTo = cMulTo; + Classic.prototype.sqrTo = cSqrTo; + + // (protected) return "-1/this % 2^DB"; useful for Mont. reduction + // justification: + // xy == 1 (mod m) + // xy = 1+km + // xy(2-xy) = (1+km)(1-km) + // x[y(2-xy)] = 1-k^2m^2 + // x[y(2-xy)] == 1 (mod m^2) + // if y is 1/x mod m, then y(2-xy) is 1/x mod m^2 + // should reduce x and y(2-xy) by m^2 at each step to keep size bounded. + // JS multiply "overflows" differently from C/C++, so care is needed here. + function bnpInvDigit() { + if(this.t < 1) return 0; + var x = this[0]; + if((x&1) == 0) return 0; + var y = x&3; // y == 1/x mod 2^2 + y = (y*(2-(x&0xf)*y))&0xf; // y == 1/x mod 2^4 + y = (y*(2-(x&0xff)*y))&0xff; // y == 1/x mod 2^8 + y = (y*(2-(((x&0xffff)*y)&0xffff)))&0xffff; // y == 1/x mod 2^16 + // last step - calculate inverse mod DV directly; + // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints + y = (y*(2-x*y%this.DV))%this.DV; // y == 1/x mod 2^dbits + // we really want the negative inverse, and -DV < y < DV + return (y>0)?this.DV-y:-y; + } + + // Montgomery reduction + function Montgomery(m) { + this.m = m; + this.mp = m.invDigit(); + this.mpl = this.mp&0x7fff; + this.mph = this.mp>>15; + this.um = (1<<(m.DB-15))-1; + this.mt2 = 2*m.t; + } + + // xR mod m + function montConvert(x) { + var r = nbi(); + x.abs().dlShiftTo(this.m.t,r); + r.divRemTo(this.m,null,r); + if(x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r,r); + return r; + } + + // x/R mod m + function montRevert(x) { + var r = nbi(); + x.copyTo(r); + this.reduce(r); + return r; + } + + // x = x/R mod m (HAC 14.32) + function montReduce(x) { + while(x.t <= this.mt2) // pad x so am has enough room later + x[x.t++] = 0; + for(var i = 0; i < this.m.t; ++i) { + // faster way of calculating u0 = x[i]*mp mod DV + var j = x[i]&0x7fff; + var u0 = (j*this.mpl+(((j*this.mph+(x[i]>>15)*this.mpl)&this.um)<<15))&x.DM; + // use am to combine the multiply-shift-add into one call + j = i+this.m.t; + x[j] += this.m.am(0,u0,x,i,0,this.m.t); + // propagate carry + while(x[j] >= x.DV) { x[j] -= x.DV; x[++j]++; } + } + x.clamp(); + x.drShiftTo(this.m.t,x); + if(x.compareTo(this.m) >= 0) x.subTo(this.m,x); + } + + // r = "x^2/R mod m"; x != r + function montSqrTo(x,r) { x.squareTo(r); this.reduce(r); } + + // r = "xy/R mod m"; x,y != r + function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } + + Montgomery.prototype.convert = montConvert; + Montgomery.prototype.revert = montRevert; + Montgomery.prototype.reduce = montReduce; + Montgomery.prototype.mulTo = montMulTo; + Montgomery.prototype.sqrTo = montSqrTo; + + // (protected) true iff this is even + function bnpIsEven() { return ((this.t>0)?(this[0]&1):this.s) == 0; } + + // (protected) this^e, e < 2^32, doing sqr and mul with "r" (HAC 14.79) + function bnpExp(e,z) { + if(e > 0xffffffff || e < 1) return BigInteger.ONE; + var r = nbi(), r2 = nbi(), g = z.convert(this), i = nbits(e)-1; + g.copyTo(r); + while(--i >= 0) { + z.sqrTo(r,r2); + if((e&(1< 0) z.mulTo(r2,g,r); + else { var t = r; r = r2; r2 = t; } + } + return z.revert(r); + } + + // (public) this^e % m, 0 <= e < 2^32 + function bnModPowInt(e,m) { + var z; + if(e < 256 || m.isEven()) z = new Classic(m); else z = new Montgomery(m); + return this.exp(e,z); + } + + // protected + BigInteger.prototype.copyTo = bnpCopyTo; + BigInteger.prototype.fromInt = bnpFromInt; + BigInteger.prototype.fromString = bnpFromString; + BigInteger.prototype.clamp = bnpClamp; + BigInteger.prototype.dlShiftTo = bnpDLShiftTo; + BigInteger.prototype.drShiftTo = bnpDRShiftTo; + BigInteger.prototype.lShiftTo = bnpLShiftTo; + BigInteger.prototype.rShiftTo = bnpRShiftTo; + BigInteger.prototype.subTo = bnpSubTo; + BigInteger.prototype.multiplyTo = bnpMultiplyTo; + BigInteger.prototype.squareTo = bnpSquareTo; + BigInteger.prototype.divRemTo = bnpDivRemTo; + BigInteger.prototype.invDigit = bnpInvDigit; + BigInteger.prototype.isEven = bnpIsEven; + BigInteger.prototype.exp = bnpExp; + + // public + BigInteger.prototype.toString = bnToString; + BigInteger.prototype.negate = bnNegate; + BigInteger.prototype.abs = bnAbs; + BigInteger.prototype.compareTo = bnCompareTo; + BigInteger.prototype.bitLength = bnBitLength; + BigInteger.prototype.mod = bnMod; + BigInteger.prototype.modPowInt = bnModPowInt; + + // "constants" + BigInteger.ZERO = nbv(0); + BigInteger.ONE = nbv(1); + + // Copyright (c) 2005-2009 Tom Wu + // All Rights Reserved. + // See "LICENSE" for details. + + // Extended JavaScript BN functions, required for RSA private ops. + + // Version 1.1: new BigInteger("0", 10) returns "proper" zero + // Version 1.2: square() API, isProbablePrime fix + + // (public) + function bnClone() { var r = nbi(); this.copyTo(r); return r; } + + // (public) return value as integer + function bnIntValue() { + if(this.s < 0) { + if(this.t == 1) return this[0]-this.DV; + else if(this.t == 0) return -1; + } + else if(this.t == 1) return this[0]; + else if(this.t == 0) return 0; + // assumes 16 < DB < 32 + return ((this[1]&((1<<(32-this.DB))-1))<>24; } + + // (public) return value as short (assumes DB>=16) + function bnShortValue() { return (this.t==0)?this.s:(this[0]<<16)>>16; } + + // (protected) return x s.t. r^x < DV + function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); } + + // (public) 0 if this == 0, 1 if this > 0 + function bnSigNum() { + if(this.s < 0) return -1; + else if(this.t <= 0 || (this.t == 1 && this[0] <= 0)) return 0; + else return 1; + } + + // (protected) convert to radix string + function bnpToRadix(b) { + if(b == null) b = 10; + if(this.signum() == 0 || b < 2 || b > 36) return "0"; + var cs = this.chunkSize(b); + var a = Math.pow(b,cs); + var d = nbv(a), y = nbi(), z = nbi(), r = ""; + this.divRemTo(d,y,z); + while(y.signum() > 0) { + r = (a+z.intValue()).toString(b).substr(1) + r; + y.divRemTo(d,y,z); + } + return z.intValue().toString(b) + r; + } + + // (protected) convert from radix string + function bnpFromRadix(s,b) { + this.fromInt(0); + if(b == null) b = 10; + var cs = this.chunkSize(b); + var d = Math.pow(b,cs), mi = false, j = 0, w = 0; + for(var i = 0; i < s.length; ++i) { + var x = intAt(s,i); + if(x < 0) { + if(s.charAt(i) == "-" && this.signum() == 0) mi = true; + continue; + } + w = b*w+x; + if(++j >= cs) { + this.dMultiply(d); + this.dAddOffset(w,0); + j = 0; + w = 0; + } + } + if(j > 0) { + this.dMultiply(Math.pow(b,j)); + this.dAddOffset(w,0); + } + if(mi) BigInteger.ZERO.subTo(this,this); + } + + // (protected) alternate constructor + function bnpFromNumber(a,b,c) { + if("number" == typeof b) { + // new BigInteger(int,int,RNG) + if(a < 2) this.fromInt(1); + else { + this.fromNumber(a,c); + if(!this.testBit(a-1)) // force MSB set + this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this); + if(this.isEven()) this.dAddOffset(1,0); // force odd + while(!this.isProbablePrime(b)) { + this.dAddOffset(2,0); + if(this.bitLength() > a) this.subTo(BigInteger.ONE.shiftLeft(a-1),this); + } + } + } + else { + // new BigInteger(int,RNG) + var x = new Array(), t = a&7; + x.length = (a>>3)+1; + b.nextBytes(x); + if(t > 0) x[0] &= ((1< 0) { + if(p < this.DB && (d = this[i]>>p) != (this.s&this.DM)>>p) + r[k++] = d|(this.s<<(this.DB-p)); + while(i >= 0) { + if(p < 8) { + d = (this[i]&((1<>(p+=this.DB-8); + } + else { + d = (this[i]>>(p-=8))&0xff; + if(p <= 0) { p += this.DB; --i; } + } + if((d&0x80) != 0) d |= -256; + if(k == 0 && (this.s&0x80) != (d&0x80)) ++k; + if(k > 0 || d != this.s) r[k++] = d; + } + } + return r; + } + + function bnEquals(a) { return(this.compareTo(a)==0); } + function bnMin(a) { return(this.compareTo(a)<0)?this:a; } + function bnMax(a) { return(this.compareTo(a)>0)?this:a; } + + // (protected) r = this op a (bitwise) + function bnpBitwiseTo(a,op,r) { + var i, f, m = Math.min(a.t,this.t); + for(i = 0; i < m; ++i) r[i] = op(this[i],a[i]); + if(a.t < this.t) { + f = a.s&this.DM; + for(i = m; i < this.t; ++i) r[i] = op(this[i],f); + r.t = this.t; + } + else { + f = this.s&this.DM; + for(i = m; i < a.t; ++i) r[i] = op(f,a[i]); + r.t = a.t; + } + r.s = op(this.s,a.s); + r.clamp(); + } + + // (public) this & a + function op_and(x,y) { return x&y; } + function bnAnd(a) { var r = nbi(); this.bitwiseTo(a,op_and,r); return r; } + + // (public) this | a + function op_or(x,y) { return x|y; } + function bnOr(a) { var r = nbi(); this.bitwiseTo(a,op_or,r); return r; } + + // (public) this ^ a + function op_xor(x,y) { return x^y; } + function bnXor(a) { var r = nbi(); this.bitwiseTo(a,op_xor,r); return r; } + + // (public) this & ~a + function op_andnot(x,y) { return x&~y; } + function bnAndNot(a) { var r = nbi(); this.bitwiseTo(a,op_andnot,r); return r; } + + // (public) ~this + function bnNot() { + var r = nbi(); + for(var i = 0; i < this.t; ++i) r[i] = this.DM&~this[i]; + r.t = this.t; + r.s = ~this.s; + return r; + } + + // (public) this << n + function bnShiftLeft(n) { + var r = nbi(); + if(n < 0) this.rShiftTo(-n,r); else this.lShiftTo(n,r); + return r; + } + + // (public) this >> n + function bnShiftRight(n) { + var r = nbi(); + if(n < 0) this.lShiftTo(-n,r); else this.rShiftTo(n,r); + return r; + } + + // return index of lowest 1-bit in x, x < 2^31 + function lbit(x) { + if(x == 0) return -1; + var r = 0; + if((x&0xffff) == 0) { x >>= 16; r += 16; } + if((x&0xff) == 0) { x >>= 8; r += 8; } + if((x&0xf) == 0) { x >>= 4; r += 4; } + if((x&3) == 0) { x >>= 2; r += 2; } + if((x&1) == 0) ++r; + return r; + } + + // (public) returns index of lowest 1-bit (or -1 if none) + function bnGetLowestSetBit() { + for(var i = 0; i < this.t; ++i) + if(this[i] != 0) return i*this.DB+lbit(this[i]); + if(this.s < 0) return this.t*this.DB; + return -1; + } + + // return number of 1 bits in x + function cbit(x) { + var r = 0; + while(x != 0) { x &= x-1; ++r; } + return r; + } + + // (public) return number of set bits + function bnBitCount() { + var r = 0, x = this.s&this.DM; + for(var i = 0; i < this.t; ++i) r += cbit(this[i]^x); + return r; + } + + // (public) true iff nth bit is set + function bnTestBit(n) { + var j = Math.floor(n/this.DB); + if(j >= this.t) return(this.s!=0); + return((this[j]&(1<<(n%this.DB)))!=0); + } + + // (protected) this op (1<>= this.DB; + } + if(a.t < this.t) { + c += a.s; + while(i < this.t) { + c += this[i]; + r[i++] = c&this.DM; + c >>= this.DB; + } + c += this.s; + } + else { + c += this.s; + while(i < a.t) { + c += a[i]; + r[i++] = c&this.DM; + c >>= this.DB; + } + c += a.s; + } + r.s = (c<0)?-1:0; + if(c > 0) r[i++] = c; + else if(c < -1) r[i++] = this.DV+c; + r.t = i; + r.clamp(); + } + + // (public) this + a + function bnAdd(a) { var r = nbi(); this.addTo(a,r); return r; } + + // (public) this - a + function bnSubtract(a) { var r = nbi(); this.subTo(a,r); return r; } + + // (public) this * a + function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; } + + // (public) this^2 + function bnSquare() { var r = nbi(); this.squareTo(r); return r; } + + // (public) this / a + function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; } + + // (public) this % a + function bnRemainder(a) { var r = nbi(); this.divRemTo(a,null,r); return r; } + + // (public) [this/a,this%a] + function bnDivideAndRemainder(a) { + var q = nbi(), r = nbi(); + this.divRemTo(a,q,r); + return new Array(q,r); + } + + // (protected) this *= n, this >= 0, 1 < n < DV + function bnpDMultiply(n) { + this[this.t] = this.am(0,n-1,this,0,0,this.t); + ++this.t; + this.clamp(); + } + + // (protected) this += n << w words, this >= 0 + function bnpDAddOffset(n,w) { + if(n == 0) return; + while(this.t <= w) this[this.t++] = 0; + this[w] += n; + while(this[w] >= this.DV) { + this[w] -= this.DV; + if(++w >= this.t) this[this.t++] = 0; + ++this[w]; + } + } + + // A "null" reducer + function NullExp() {} + function nNop(x) { return x; } + function nMulTo(x,y,r) { x.multiplyTo(y,r); } + function nSqrTo(x,r) { x.squareTo(r); } + + NullExp.prototype.convert = nNop; + NullExp.prototype.revert = nNop; + NullExp.prototype.mulTo = nMulTo; + NullExp.prototype.sqrTo = nSqrTo; + + // (public) this^e + function bnPow(e) { return this.exp(e,new NullExp()); } + + // (protected) r = lower n words of "this * a", a.t <= n + // "this" should be the larger one if appropriate. + function bnpMultiplyLowerTo(a,n,r) { + var i = Math.min(this.t+a.t,n); + r.s = 0; // assumes a,this >= 0 + r.t = i; + while(i > 0) r[--i] = 0; + var j; + for(j = r.t-this.t; i < j; ++i) r[i+this.t] = this.am(0,a[i],r,i,0,this.t); + for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a[i],r,i,0,n-i); + r.clamp(); + } + + // (protected) r = "this * a" without lower n words, n > 0 + // "this" should be the larger one if appropriate. + function bnpMultiplyUpperTo(a,n,r) { + --n; + var i = r.t = this.t+a.t-n; + r.s = 0; // assumes a,this >= 0 + while(--i >= 0) r[i] = 0; + for(i = Math.max(n-this.t,0); i < a.t; ++i) + r[this.t+i-n] = this.am(n-i,a[i],r,0,0,this.t+i-n); + r.clamp(); + r.drShiftTo(1,r); + } + + // Barrett modular reduction + function Barrett(m) { + // setup Barrett + this.r2 = nbi(); + this.q3 = nbi(); + BigInteger.ONE.dlShiftTo(2*m.t,this.r2); + this.mu = this.r2.divide(m); + this.m = m; + } + + function barrettConvert(x) { + if(x.s < 0 || x.t > 2*this.m.t) return x.mod(this.m); + else if(x.compareTo(this.m) < 0) return x; + else { var r = nbi(); x.copyTo(r); this.reduce(r); return r; } + } + + function barrettRevert(x) { return x; } + + // x = x mod m (HAC 14.42) + function barrettReduce(x) { + x.drShiftTo(this.m.t-1,this.r2); + if(x.t > this.m.t+1) { x.t = this.m.t+1; x.clamp(); } + this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3); + this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2); + while(x.compareTo(this.r2) < 0) x.dAddOffset(1,this.m.t+1); + x.subTo(this.r2,x); + while(x.compareTo(this.m) >= 0) x.subTo(this.m,x); + } + + // r = x^2 mod m; x != r + function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); } + + // r = x*y mod m; x,y != r + function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } + + Barrett.prototype.convert = barrettConvert; + Barrett.prototype.revert = barrettRevert; + Barrett.prototype.reduce = barrettReduce; + Barrett.prototype.mulTo = barrettMulTo; + Barrett.prototype.sqrTo = barrettSqrTo; + + // (public) this^e % m (HAC 14.85) + function bnModPow(e,m) { + var i = e.bitLength(), k, r = nbv(1), z; + if(i <= 0) return r; + else if(i < 18) k = 1; + else if(i < 48) k = 3; + else if(i < 144) k = 4; + else if(i < 768) k = 5; + else k = 6; + if(i < 8) + z = new Classic(m); + else if(m.isEven()) + z = new Barrett(m); + else + z = new Montgomery(m); + + // precomputation + var g = new Array(), n = 3, k1 = k-1, km = (1< 1) { + var g2 = nbi(); + z.sqrTo(g[1],g2); + while(n <= km) { + g[n] = nbi(); + z.mulTo(g2,g[n-2],g[n]); + n += 2; + } + } + + var j = e.t-1, w, is1 = true, r2 = nbi(), t; + i = nbits(e[j])-1; + while(j >= 0) { + if(i >= k1) w = (e[j]>>(i-k1))&km; + else { + w = (e[j]&((1<<(i+1))-1))<<(k1-i); + if(j > 0) w |= e[j-1]>>(this.DB+i-k1); + } + + n = k; + while((w&1) == 0) { w >>= 1; --n; } + if((i -= n) < 0) { i += this.DB; --j; } + if(is1) { // ret == 1, don't bother squaring or multiplying it + g[w].copyTo(r); + is1 = false; + } + else { + while(n > 1) { z.sqrTo(r,r2); z.sqrTo(r2,r); n -= 2; } + if(n > 0) z.sqrTo(r,r2); else { t = r; r = r2; r2 = t; } + z.mulTo(r2,g[w],r); + } + + while(j >= 0 && (e[j]&(1< 0) { + x.rShiftTo(g,x); + y.rShiftTo(g,y); + } + while(x.signum() > 0) { + if((i = x.getLowestSetBit()) > 0) x.rShiftTo(i,x); + if((i = y.getLowestSetBit()) > 0) y.rShiftTo(i,y); + if(x.compareTo(y) >= 0) { + x.subTo(y,x); + x.rShiftTo(1,x); + } + else { + y.subTo(x,y); + y.rShiftTo(1,y); + } + } + if(g > 0) y.lShiftTo(g,y); + return y; + } + + // (protected) this % n, n < 2^26 + function bnpModInt(n) { + if(n <= 0) return 0; + var d = this.DV%n, r = (this.s<0)?n-1:0; + if(this.t > 0) + if(d == 0) r = this[0]%n; + else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n; + return r; + } + + // (public) 1/this % m (HAC 14.61) + function bnModInverse(m) { + var ac = m.isEven(); + if((this.isEven() && ac) || m.signum() == 0) return BigInteger.ZERO; + var u = m.clone(), v = this.clone(); + var a = nbv(1), b = nbv(0), c = nbv(0), d = nbv(1); + while(u.signum() != 0) { + while(u.isEven()) { + u.rShiftTo(1,u); + if(ac) { + if(!a.isEven() || !b.isEven()) { a.addTo(this,a); b.subTo(m,b); } + a.rShiftTo(1,a); + } + else if(!b.isEven()) b.subTo(m,b); + b.rShiftTo(1,b); + } + while(v.isEven()) { + v.rShiftTo(1,v); + if(ac) { + if(!c.isEven() || !d.isEven()) { c.addTo(this,c); d.subTo(m,d); } + c.rShiftTo(1,c); + } + else if(!d.isEven()) d.subTo(m,d); + d.rShiftTo(1,d); + } + if(u.compareTo(v) >= 0) { + u.subTo(v,u); + if(ac) a.subTo(c,a); + b.subTo(d,b); + } + else { + v.subTo(u,v); + if(ac) c.subTo(a,c); + d.subTo(b,d); + } + } + if(v.compareTo(BigInteger.ONE) != 0) return BigInteger.ZERO; + if(d.compareTo(m) >= 0) return d.subtract(m); + if(d.signum() < 0) d.addTo(m,d); else return d; + if(d.signum() < 0) return d.add(m); else return d; + } + + var lowprimes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997]; + var lplim = (1<<26)/lowprimes[lowprimes.length-1]; + + // (public) test primality with certainty >= 1-.5^t + function bnIsProbablePrime(t) { + var i, x = this.abs(); + if(x.t == 1 && x[0] <= lowprimes[lowprimes.length-1]) { + for(i = 0; i < lowprimes.length; ++i) + if(x[0] == lowprimes[i]) return true; + return false; + } + if(x.isEven()) return false; + i = 1; + while(i < lowprimes.length) { + var m = lowprimes[i], j = i+1; + while(j < lowprimes.length && m < lplim) m *= lowprimes[j++]; + m = x.modInt(m); + while(i < j) if(m%lowprimes[i++] == 0) return false; + } + return x.millerRabin(t); + } + + // (protected) true if probably prime (HAC 4.24, Miller-Rabin) + function bnpMillerRabin(t) { + var n1 = this.subtract(BigInteger.ONE); + var k = n1.getLowestSetBit(); + if(k <= 0) return false; + var r = n1.shiftRight(k); + t = (t+1)>>1; + if(t > lowprimes.length) t = lowprimes.length; + var a = nbi(); + for(var i = 0; i < t; ++i) { + //Pick bases at random, instead of starting at 2 + a.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]); + var y = a.modPow(r,this); + if(y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) { + var j = 1; + while(j++ < k && y.compareTo(n1) != 0) { + y = y.modPowInt(2,this); + if(y.compareTo(BigInteger.ONE) == 0) return false; + } + if(y.compareTo(n1) != 0) return false; + } + } + return true; + } + + // protected + BigInteger.prototype.chunkSize = bnpChunkSize; + BigInteger.prototype.toRadix = bnpToRadix; + BigInteger.prototype.fromRadix = bnpFromRadix; + BigInteger.prototype.fromNumber = bnpFromNumber; + BigInteger.prototype.bitwiseTo = bnpBitwiseTo; + BigInteger.prototype.changeBit = bnpChangeBit; + BigInteger.prototype.addTo = bnpAddTo; + BigInteger.prototype.dMultiply = bnpDMultiply; + BigInteger.prototype.dAddOffset = bnpDAddOffset; + BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo; + BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo; + BigInteger.prototype.modInt = bnpModInt; + BigInteger.prototype.millerRabin = bnpMillerRabin; + + // public + BigInteger.prototype.clone = bnClone; + BigInteger.prototype.intValue = bnIntValue; + BigInteger.prototype.byteValue = bnByteValue; + BigInteger.prototype.shortValue = bnShortValue; + BigInteger.prototype.signum = bnSigNum; + BigInteger.prototype.toByteArray = bnToByteArray; + BigInteger.prototype.equals = bnEquals; + BigInteger.prototype.min = bnMin; + BigInteger.prototype.max = bnMax; + BigInteger.prototype.and = bnAnd; + BigInteger.prototype.or = bnOr; + BigInteger.prototype.xor = bnXor; + BigInteger.prototype.andNot = bnAndNot; + BigInteger.prototype.not = bnNot; + BigInteger.prototype.shiftLeft = bnShiftLeft; + BigInteger.prototype.shiftRight = bnShiftRight; + BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit; + BigInteger.prototype.bitCount = bnBitCount; + BigInteger.prototype.testBit = bnTestBit; + BigInteger.prototype.setBit = bnSetBit; + BigInteger.prototype.clearBit = bnClearBit; + BigInteger.prototype.flipBit = bnFlipBit; + BigInteger.prototype.add = bnAdd; + BigInteger.prototype.subtract = bnSubtract; + BigInteger.prototype.multiply = bnMultiply; + BigInteger.prototype.divide = bnDivide; + BigInteger.prototype.remainder = bnRemainder; + BigInteger.prototype.divideAndRemainder = bnDivideAndRemainder; + BigInteger.prototype.modPow = bnModPow; + BigInteger.prototype.modInverse = bnModInverse; + BigInteger.prototype.pow = bnPow; + BigInteger.prototype.gcd = bnGCD; + BigInteger.prototype.isProbablePrime = bnIsProbablePrime; + + // JSBN-specific extension + BigInteger.prototype.square = bnSquare; + + // Expose the Barrett function + BigInteger.prototype.Barrett = Barrett + + // BigInteger interfaces not implemented in jsbn: + + // BigInteger(int signum, byte[] magnitude) + // double doubleValue() + // float floatValue() + // int hashCode() + // long longValue() + // static BigInteger valueOf(long val) + + // Random number generator - requires a PRNG backend, e.g. prng4.js + + // For best results, put code like + // + // in your main HTML document. + + var rng_state; + var rng_pool; + var rng_pptr; + + // Mix in a 32-bit integer into the pool + function rng_seed_int(x) { + rng_pool[rng_pptr++] ^= x & 255; + rng_pool[rng_pptr++] ^= (x >> 8) & 255; + rng_pool[rng_pptr++] ^= (x >> 16) & 255; + rng_pool[rng_pptr++] ^= (x >> 24) & 255; + if(rng_pptr >= rng_psize) rng_pptr -= rng_psize; + } + + // Mix in the current time (w/milliseconds) into the pool + function rng_seed_time() { + rng_seed_int(new Date().getTime()); + } + + // Initialize the pool with junk if needed. + if(rng_pool == null) { + rng_pool = new Array(); + rng_pptr = 0; + var t; + if(typeof window !== "undefined" && window.crypto) { + if (window.crypto.getRandomValues) { + // Use webcrypto if available + var ua = new Uint8Array(32); + window.crypto.getRandomValues(ua); + for(t = 0; t < 32; ++t) + rng_pool[rng_pptr++] = ua[t]; + } + else if(navigator.appName == "Netscape" && navigator.appVersion < "5") { + // Extract entropy (256 bits) from NS4 RNG if available + var z = window.crypto.random(32); + for(t = 0; t < z.length; ++t) + rng_pool[rng_pptr++] = z.charCodeAt(t) & 255; + } + } + while(rng_pptr < rng_psize) { // extract some randomness from Math.random() + t = Math.floor(65536 * Math.random()); + rng_pool[rng_pptr++] = t >>> 8; + rng_pool[rng_pptr++] = t & 255; + } + rng_pptr = 0; + rng_seed_time(); + //rng_seed_int(window.screenX); + //rng_seed_int(window.screenY); + } + + function rng_get_byte() { + if(rng_state == null) { + rng_seed_time(); + rng_state = prng_newstate(); + rng_state.init(rng_pool); + for(rng_pptr = 0; rng_pptr < rng_pool.length; ++rng_pptr) + rng_pool[rng_pptr] = 0; + rng_pptr = 0; + //rng_pool = null; + } + // TODO: allow reseeding after first request + return rng_state.next(); + } + + function rng_get_bytes(ba) { + var i; + for(i = 0; i < ba.length; ++i) ba[i] = rng_get_byte(); + } + + function SecureRandom() {} + + SecureRandom.prototype.nextBytes = rng_get_bytes; + + // prng4.js - uses Arcfour as a PRNG + + function Arcfour() { + this.i = 0; + this.j = 0; + this.S = new Array(); + } + + // Initialize arcfour context from key, an array of ints, each from [0..255] + function ARC4init(key) { + var i, j, t; + for(i = 0; i < 256; ++i) + this.S[i] = i; + j = 0; + for(i = 0; i < 256; ++i) { + j = (j + this.S[i] + key[i % key.length]) & 255; + t = this.S[i]; + this.S[i] = this.S[j]; + this.S[j] = t; + } + this.i = 0; + this.j = 0; + } + + function ARC4next() { + var t; + this.i = (this.i + 1) & 255; + this.j = (this.j + this.S[this.i]) & 255; + t = this.S[this.i]; + this.S[this.i] = this.S[this.j]; + this.S[this.j] = t; + return this.S[(t + this.S[this.i]) & 255]; + } + + Arcfour.prototype.init = ARC4init; + Arcfour.prototype.next = ARC4next; + + // Plug in your RNG constructor here + function prng_newstate() { + return new Arcfour(); + } + + // Pool size must be a multiple of 4 and greater than 32. + // An array of bytes the size of the pool will be passed to init() + var rng_psize = 256; + + if (typeof exports !== 'undefined') { + exports = module.exports = { + default: BigInteger, + BigInteger: BigInteger, + SecureRandom: SecureRandom, + }; + } else { + this.jsbn = { + BigInteger: BigInteger, + SecureRandom: SecureRandom + }; + } + +}).call(this); diff --git a/Scripts/node_modules/jsbn/package.json b/Scripts/node_modules/jsbn/package.json new file mode 100644 index 00000000..97b137c2 --- /dev/null +++ b/Scripts/node_modules/jsbn/package.json @@ -0,0 +1,21 @@ +{ + "name": "jsbn", + "version": "1.1.0", + "description": "The jsbn library is a fast, portable implementation of large-number math in pure JavaScript, enabling public-key crypto and other applications on desktop and mobile browsers.", + "main": "index.js", + "scripts": { + "test": "mocha test.js" + }, + "repository": { + "type": "git", + "url": "https://github.com/andyperlitch/jsbn.git" + }, + "keywords": [ + "biginteger", + "bignumber", + "big", + "integer" + ], + "author": "Tom Wu", + "license": "MIT" +} diff --git a/Scripts/node_modules/jsbn/test/es6-import.js b/Scripts/node_modules/jsbn/test/es6-import.js new file mode 100644 index 00000000..668cbdfd --- /dev/null +++ b/Scripts/node_modules/jsbn/test/es6-import.js @@ -0,0 +1,3 @@ +import {BigInteger} from '../'; + +console.log(typeof BigInteger) diff --git a/Scripts/node_modules/jsonfile/CHANGELOG.md b/Scripts/node_modules/jsonfile/CHANGELOG.md index 7718857a..d772e438 100644 --- a/Scripts/node_modules/jsonfile/CHANGELOG.md +++ b/Scripts/node_modules/jsonfile/CHANGELOG.md @@ -1,3 +1,29 @@ +6.1.0 / 2020-10-31 +------------------ + +- Add `finalEOL` option to disable writing final EOL ([#115](https://github.com/jprichardson/node-jsonfile/issues/115), [#137](https://github.com/jprichardson/node-jsonfile/pull/137)) +- Update dependency ([#138](https://github.com/jprichardson/node-jsonfile/pull/138)) + +6.0.1 / 2020-03-07 +------------------ + +- Update dependency ([#130](https://github.com/jprichardson/node-jsonfile/pull/130)) +- Fix code style ([#129](https://github.com/jprichardson/node-jsonfile/pull/129)) + +6.0.0 / 2020-02-24 +------------------ + +- **BREAKING:** Drop support for Node 6 & 8 ([#128](https://github.com/jprichardson/node-jsonfile/pull/128)) +- **BREAKING:** Do not allow passing `null` as options to `readFile()` or `writeFile()` ([#128](https://github.com/jprichardson/node-jsonfile/pull/128)) +- Refactor internals ([#128](https://github.com/jprichardson/node-jsonfile/pull/128)) + +5.0.0 / 2018-09-08 +------------------ + +- **BREAKING:** Drop Node 4 support +- **BREAKING:** If no callback is passed to an asynchronous method, a promise is now returned ([#109](https://github.com/jprichardson/node-jsonfile/pull/109)) +- Cleanup docs + 4.0.0 / 2017-07-12 ------------------ diff --git a/Scripts/node_modules/jsonfile/README.md b/Scripts/node_modules/jsonfile/README.md index 721685c9..910cde00 100644 --- a/Scripts/node_modules/jsonfile/README.md +++ b/Scripts/node_modules/jsonfile/README.md @@ -1,7 +1,7 @@ Node.js - jsonfile ================ -Easily read/write JSON files. +Easily read/write JSON files in Node.js. _Note: this module cannot be used in the browser._ [![npm Package](https://img.shields.io/npm/v/jsonfile.svg?style=flat-square)](https://www.npmjs.org/package/jsonfile) [![build status](https://secure.travis-ci.org/jprichardson/node-jsonfile.svg)](http://travis-ci.org/jprichardson/node-jsonfile) @@ -26,101 +26,152 @@ Installation API --- +* [`readFile(filename, [options], callback)`](#readfilefilename-options-callback) +* [`readFileSync(filename, [options])`](#readfilesyncfilename-options) +* [`writeFile(filename, obj, [options], callback)`](#writefilefilename-obj-options-callback) +* [`writeFileSync(filename, obj, [options])`](#writefilesyncfilename-obj-options) + +---- + ### readFile(filename, [options], callback) -`options` (`object`, default `undefined`): Pass in any `fs.readFile` options or set `reviver` for a [JSON reviver](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse). +`options` (`object`, default `undefined`): Pass in any [`fs.readFile`](https://nodejs.org/api/fs.html#fs_fs_readfile_path_options_callback) options or set `reviver` for a [JSON reviver](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse). - `throws` (`boolean`, default: `true`). If `JSON.parse` throws an error, pass this error to the callback. If `false`, returns `null` for the object. ```js -var jsonfile = require('jsonfile') -var file = '/tmp/data.json' -jsonfile.readFile(file, function(err, obj) { +const jsonfile = require('jsonfile') +const file = '/tmp/data.json' +jsonfile.readFile(file, function (err, obj) { + if (err) console.error(err) console.dir(obj) }) ``` +You can also use this method with promises. The `readFile` method will return a promise if you do not pass a callback function. + +```js +const jsonfile = require('jsonfile') +const file = '/tmp/data.json' +jsonfile.readFile(file) + .then(obj => console.dir(obj)) + .catch(error => console.error(error)) +``` + +---- ### readFileSync(filename, [options]) -`options` (`object`, default `undefined`): Pass in any `fs.readFileSync` options or set `reviver` for a [JSON reviver](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse). +`options` (`object`, default `undefined`): Pass in any [`fs.readFileSync`](https://nodejs.org/api/fs.html#fs_fs_readfilesync_path_options) options or set `reviver` for a [JSON reviver](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse). - `throws` (`boolean`, default: `true`). If an error is encountered reading or parsing the file, throw the error. If `false`, returns `null` for the object. ```js -var jsonfile = require('jsonfile') -var file = '/tmp/data.json' +const jsonfile = require('jsonfile') +const file = '/tmp/data.json' console.dir(jsonfile.readFileSync(file)) ``` +---- ### writeFile(filename, obj, [options], callback) -`options`: Pass in any `fs.writeFile` options or set `replacer` for a [JSON replacer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify). Can also pass in `spaces` and override `EOL` string. +`options`: Pass in any [`fs.writeFile`](https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback) options or set `replacer` for a [JSON replacer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify). Can also pass in `spaces`, or override `EOL` string or set `finalEOL` flag as `false` to not save the file with `EOL` at the end. ```js -var jsonfile = require('jsonfile') +const jsonfile = require('jsonfile') -var file = '/tmp/data.json' -var obj = {name: 'JP'} +const file = '/tmp/data.json' +const obj = { name: 'JP' } jsonfile.writeFile(file, obj, function (err) { - console.error(err) + if (err) console.error(err) }) ``` +Or use with promises as follows: + +```js +const jsonfile = require('jsonfile') + +const file = '/tmp/data.json' +const obj = { name: 'JP' } + +jsonfile.writeFile(file, obj) + .then(res => { + console.log('Write complete') + }) + .catch(error => console.error(error)) +``` + **formatting with spaces:** ```js -var jsonfile = require('jsonfile') +const jsonfile = require('jsonfile') -var file = '/tmp/data.json' -var obj = {name: 'JP'} +const file = '/tmp/data.json' +const obj = { name: 'JP' } -jsonfile.writeFile(file, obj, {spaces: 2}, function(err) { - console.error(err) +jsonfile.writeFile(file, obj, { spaces: 2 }, function (err) { + if (err) console.error(err) }) ``` **overriding EOL:** ```js -var jsonfile = require('jsonfile') +const jsonfile = require('jsonfile') -var file = '/tmp/data.json' -var obj = {name: 'JP'} +const file = '/tmp/data.json' +const obj = { name: 'JP' } -jsonfile.writeFile(file, obj, {spaces: 2, EOL: '\r\n'}, function(err) { - console.error(err) +jsonfile.writeFile(file, obj, { spaces: 2, EOL: '\r\n' }, function (err) { + if (err) console.error(err) +}) +``` + + +**disabling the EOL at the end of file:** + +```js +const jsonfile = require('jsonfile') + +const file = '/tmp/data.json' +const obj = { name: 'JP' } + +jsonfile.writeFile(file, obj, { spaces: 2, finalEOL: false }, function (err) { + if (err) console.log(err) }) ``` **appending to an existing JSON file:** -You can use `fs.writeFile` option `{flag: 'a'}` to achieve this. +You can use `fs.writeFile` option `{ flag: 'a' }` to achieve this. ```js -var jsonfile = require('jsonfile') +const jsonfile = require('jsonfile') -var file = '/tmp/mayAlreadyExistedData.json' -var obj = {name: 'JP'} +const file = '/tmp/mayAlreadyExistedData.json' +const obj = { name: 'JP' } -jsonfile.writeFile(file, obj, {flag: 'a'}, function (err) { - console.error(err) +jsonfile.writeFile(file, obj, { flag: 'a' }, function (err) { + if (err) console.error(err) }) ``` +---- + ### writeFileSync(filename, obj, [options]) -`options`: Pass in any `fs.writeFileSync` options or set `replacer` for a [JSON replacer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify). Can also pass in `spaces` and override `EOL` string. +`options`: Pass in any [`fs.writeFileSync`](https://nodejs.org/api/fs.html#fs_fs_writefilesync_file_data_options) options or set `replacer` for a [JSON replacer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify). Can also pass in `spaces`, or override `EOL` string or set `finalEOL` flag as `false` to not save the file with `EOL` at the end. ```js -var jsonfile = require('jsonfile') +const jsonfile = require('jsonfile') -var file = '/tmp/data.json' -var obj = {name: 'JP'} +const file = '/tmp/data.json' +const obj = { name: 'JP' } jsonfile.writeFileSync(file, obj) ``` @@ -128,36 +179,47 @@ jsonfile.writeFileSync(file, obj) **formatting with spaces:** ```js -var jsonfile = require('jsonfile') +const jsonfile = require('jsonfile') -var file = '/tmp/data.json' -var obj = {name: 'JP'} +const file = '/tmp/data.json' +const obj = { name: 'JP' } -jsonfile.writeFileSync(file, obj, {spaces: 2}) +jsonfile.writeFileSync(file, obj, { spaces: 2 }) ``` **overriding EOL:** ```js -var jsonfile = require('jsonfile') +const jsonfile = require('jsonfile') -var file = '/tmp/data.json' -var obj = {name: 'JP'} +const file = '/tmp/data.json' +const obj = { name: 'JP' } -jsonfile.writeFileSync(file, obj, {spaces: 2, EOL: '\r\n'}) +jsonfile.writeFileSync(file, obj, { spaces: 2, EOL: '\r\n' }) +``` + +**disabling the EOL at the end of file:** + +```js +const jsonfile = require('jsonfile') + +const file = '/tmp/data.json' +const obj = { name: 'JP' } + +jsonfile.writeFileSync(file, obj, { spaces: 2, finalEOL: false }) ``` **appending to an existing JSON file:** -You can use `fs.writeFileSync` option `{flag: 'a'}` to achieve this. +You can use `fs.writeFileSync` option `{ flag: 'a' }` to achieve this. ```js -var jsonfile = require('jsonfile') +const jsonfile = require('jsonfile') -var file = '/tmp/mayAlreadyExistedData.json' -var obj = {name: 'JP'} +const file = '/tmp/mayAlreadyExistedData.json' +const obj = { name: 'JP' } -jsonfile.writeFileSync(file, obj, {flag: 'a'}) +jsonfile.writeFileSync(file, obj, { flag: 'a' }) ``` License diff --git a/Scripts/node_modules/jsonfile/index.js b/Scripts/node_modules/jsonfile/index.js index d1e5827c..0582868f 100644 --- a/Scripts/node_modules/jsonfile/index.js +++ b/Scripts/node_modules/jsonfile/index.js @@ -1,69 +1,58 @@ -var _fs +let _fs try { _fs = require('graceful-fs') } catch (_) { _fs = require('fs') } +const universalify = require('universalify') +const { stringify, stripBom } = require('./utils') -function readFile (file, options, callback) { - if (callback == null) { - callback = options - options = {} - } - +async function _readFile (file, options = {}) { if (typeof options === 'string') { - options = {encoding: options} + options = { encoding: options } } - options = options || {} - var fs = options.fs || _fs + const fs = options.fs || _fs - var shouldThrow = true - if ('throws' in options) { - shouldThrow = options.throws - } + const shouldThrow = 'throws' in options ? options.throws : true - fs.readFile(file, options, function (err, data) { - if (err) return callback(err) + let data = await universalify.fromCallback(fs.readFile)(file, options) - data = stripBom(data) + data = stripBom(data) - var obj - try { - obj = JSON.parse(data, options ? options.reviver : null) - } catch (err2) { - if (shouldThrow) { - err2.message = file + ': ' + err2.message - return callback(err2) - } else { - return callback(null, null) - } + let obj + try { + obj = JSON.parse(data, options ? options.reviver : null) + } catch (err) { + if (shouldThrow) { + err.message = `${file}: ${err.message}` + throw err + } else { + return null } + } - callback(null, obj) - }) + return obj } -function readFileSync (file, options) { - options = options || {} +const readFile = universalify.fromPromise(_readFile) + +function readFileSync (file, options = {}) { if (typeof options === 'string') { - options = {encoding: options} + options = { encoding: options } } - var fs = options.fs || _fs + const fs = options.fs || _fs - var shouldThrow = true - if ('throws' in options) { - shouldThrow = options.throws - } + const shouldThrow = 'throws' in options ? options.throws : true try { - var content = fs.readFileSync(file, options) + let content = fs.readFileSync(file, options) content = stripBom(content) return JSON.parse(content, options.reviver) } catch (err) { if (shouldThrow) { - err.message = file + ': ' + err.message + err.message = `${file}: ${err.message}` throw err } else { return null @@ -71,64 +60,29 @@ function readFileSync (file, options) { } } -function stringify (obj, options) { - var spaces - var EOL = '\n' - if (typeof options === 'object' && options !== null) { - if (options.spaces) { - spaces = options.spaces - } - if (options.EOL) { - EOL = options.EOL - } - } +async function _writeFile (file, obj, options = {}) { + const fs = options.fs || _fs - var str = JSON.stringify(obj, options ? options.replacer : null, spaces) + const str = stringify(obj, options) - return str.replace(/\n/g, EOL) + EOL + await universalify.fromCallback(fs.writeFile)(file, str, options) } -function writeFile (file, obj, options, callback) { - if (callback == null) { - callback = options - options = {} - } - options = options || {} - var fs = options.fs || _fs +const writeFile = universalify.fromPromise(_writeFile) - var str = '' - try { - str = stringify(obj, options) - } catch (err) { - // Need to return whether a callback was passed or not - if (callback) callback(err, null) - return - } +function writeFileSync (file, obj, options = {}) { + const fs = options.fs || _fs - fs.writeFile(file, str, options, callback) -} - -function writeFileSync (file, obj, options) { - options = options || {} - var fs = options.fs || _fs - - var str = stringify(obj, options) + const str = stringify(obj, options) // not sure if fs.writeFileSync returns anything, but just in case return fs.writeFileSync(file, str, options) } -function stripBom (content) { - // we do this because JSON.parse would convert it to a utf8 string if encoding wasn't specified - if (Buffer.isBuffer(content)) content = content.toString('utf8') - content = content.replace(/^\uFEFF/, '') - return content -} - -var jsonfile = { - readFile: readFile, - readFileSync: readFileSync, - writeFile: writeFile, - writeFileSync: writeFileSync +const jsonfile = { + readFile, + readFileSync, + writeFile, + writeFileSync } module.exports = jsonfile diff --git a/Scripts/node_modules/jsonfile/package.json b/Scripts/node_modules/jsonfile/package.json index 29e783f4..4d01eb1d 100644 --- a/Scripts/node_modules/jsonfile/package.json +++ b/Scripts/node_modules/jsonfile/package.json @@ -1,6 +1,6 @@ { "name": "jsonfile", - "version": "4.0.0", + "version": "6.1.0", "description": "Easily read/write JSON files.", "repository": { "type": "git", @@ -16,18 +16,21 @@ ], "author": "JP Richardson ", "license": "MIT", - "dependencies": {}, + "dependencies": { + "universalify": "^2.0.0" + }, "optionalDependencies": { "graceful-fs": "^4.1.6" }, "devDependencies": { - "mocha": "2.x", + "mocha": "^8.2.0", "rimraf": "^2.4.0", - "standard": "^10.0.3" + "standard": "^16.0.1" }, "main": "index.js", "files": [ - "index.js" + "index.js", + "utils.js" ], "scripts": { "lint": "standard", diff --git a/Scripts/node_modules/jsonfile/utils.js b/Scripts/node_modules/jsonfile/utils.js new file mode 100644 index 00000000..b5ff48e5 --- /dev/null +++ b/Scripts/node_modules/jsonfile/utils.js @@ -0,0 +1,14 @@ +function stringify (obj, { EOL = '\n', finalEOL = true, replacer = null, spaces } = {}) { + const EOF = finalEOL ? EOL : '' + const str = JSON.stringify(obj, replacer, spaces) + + return str.replace(/\n/g, EOL) + EOF +} + +function stripBom (content) { + // we do this because JSON.parse would convert it to a utf8 string if encoding wasn't specified + if (Buffer.isBuffer(content)) content = content.toString('utf8') + return content.replace(/^\uFEFF/, '') +} + +module.exports = { stringify, stripBom } diff --git a/Scripts/node_modules/mime-db/HISTORY.md b/Scripts/node_modules/mime-db/HISTORY.md new file mode 100644 index 00000000..7436f641 --- /dev/null +++ b/Scripts/node_modules/mime-db/HISTORY.md @@ -0,0 +1,507 @@ +1.52.0 / 2022-02-21 +=================== + + * Add extensions from IANA for more `image/*` types + * Add extension `.asc` to `application/pgp-keys` + * Add extensions to various XML types + * Add new upstream MIME types + +1.51.0 / 2021-11-08 +=================== + + * Add new upstream MIME types + * Mark `image/vnd.microsoft.icon` as compressible + * Mark `image/vnd.ms-dds` as compressible + +1.50.0 / 2021-09-15 +=================== + + * Add deprecated iWorks mime types and extensions + * Add new upstream MIME types + +1.49.0 / 2021-07-26 +=================== + + * Add extension `.trig` to `application/trig` + * Add new upstream MIME types + +1.48.0 / 2021-05-30 +=================== + + * Add extension `.mvt` to `application/vnd.mapbox-vector-tile` + * Add new upstream MIME types + * Mark `text/yaml` as compressible + +1.47.0 / 2021-04-01 +=================== + + * Add new upstream MIME types + * Remove ambigious extensions from IANA for `application/*+xml` types + * Update primary extension to `.es` for `application/ecmascript` + +1.46.0 / 2021-02-13 +=================== + + * Add extension `.amr` to `audio/amr` + * Add extension `.m4s` to `video/iso.segment` + * Add extension `.opus` to `audio/ogg` + * Add new upstream MIME types + +1.45.0 / 2020-09-22 +=================== + + * Add `application/ubjson` with extension `.ubj` + * Add `image/avif` with extension `.avif` + * Add `image/ktx2` with extension `.ktx2` + * Add extension `.dbf` to `application/vnd.dbf` + * Add extension `.rar` to `application/vnd.rar` + * Add extension `.td` to `application/urc-targetdesc+xml` + * Add new upstream MIME types + * Fix extension of `application/vnd.apple.keynote` to be `.key` + +1.44.0 / 2020-04-22 +=================== + + * Add charsets from IANA + * Add extension `.cjs` to `application/node` + * Add new upstream MIME types + +1.43.0 / 2020-01-05 +=================== + + * Add `application/x-keepass2` with extension `.kdbx` + * Add extension `.mxmf` to `audio/mobile-xmf` + * Add extensions from IANA for `application/*+xml` types + * Add new upstream MIME types + +1.42.0 / 2019-09-25 +=================== + + * Add `image/vnd.ms-dds` with extension `.dds` + * Add new upstream MIME types + * Remove compressible from `multipart/mixed` + +1.41.0 / 2019-08-30 +=================== + + * Add new upstream MIME types + * Add `application/toml` with extension `.toml` + * Mark `font/ttf` as compressible + +1.40.0 / 2019-04-20 +=================== + + * Add extensions from IANA for `model/*` types + * Add `text/mdx` with extension `.mdx` + +1.39.0 / 2019-04-04 +=================== + + * Add extensions `.siv` and `.sieve` to `application/sieve` + * Add new upstream MIME types + +1.38.0 / 2019-02-04 +=================== + + * Add extension `.nq` to `application/n-quads` + * Add extension `.nt` to `application/n-triples` + * Add new upstream MIME types + * Mark `text/less` as compressible + +1.37.0 / 2018-10-19 +=================== + + * Add extensions to HEIC image types + * Add new upstream MIME types + +1.36.0 / 2018-08-20 +=================== + + * Add Apple file extensions from IANA + * Add extensions from IANA for `image/*` types + * Add new upstream MIME types + +1.35.0 / 2018-07-15 +=================== + + * Add extension `.owl` to `application/rdf+xml` + * Add new upstream MIME types + - Removes extension `.woff` from `application/font-woff` + +1.34.0 / 2018-06-03 +=================== + + * Add extension `.csl` to `application/vnd.citationstyles.style+xml` + * Add extension `.es` to `application/ecmascript` + * Add new upstream MIME types + * Add `UTF-8` as default charset for `text/turtle` + * Mark all XML-derived types as compressible + +1.33.0 / 2018-02-15 +=================== + + * Add extensions from IANA for `message/*` types + * Add new upstream MIME types + * Fix some incorrect OOXML types + * Remove `application/font-woff2` + +1.32.0 / 2017-11-29 +=================== + + * Add new upstream MIME types + * Update `text/hjson` to registered `application/hjson` + * Add `text/shex` with extension `.shex` + +1.31.0 / 2017-10-25 +=================== + + * Add `application/raml+yaml` with extension `.raml` + * Add `application/wasm` with extension `.wasm` + * Add new `font` type from IANA + * Add new upstream font extensions + * Add new upstream MIME types + * Add extensions for JPEG-2000 images + +1.30.0 / 2017-08-27 +=================== + + * Add `application/vnd.ms-outlook` + * Add `application/x-arj` + * Add extension `.mjs` to `application/javascript` + * Add glTF types and extensions + * Add new upstream MIME types + * Add `text/x-org` + * Add VirtualBox MIME types + * Fix `source` records for `video/*` types that are IANA + * Update `font/opentype` to registered `font/otf` + +1.29.0 / 2017-07-10 +=================== + + * Add `application/fido.trusted-apps+json` + * Add extension `.wadl` to `application/vnd.sun.wadl+xml` + * Add new upstream MIME types + * Add `UTF-8` as default charset for `text/css` + +1.28.0 / 2017-05-14 +=================== + + * Add new upstream MIME types + * Add extension `.gz` to `application/gzip` + * Update extensions `.md` and `.markdown` to be `text/markdown` + +1.27.0 / 2017-03-16 +=================== + + * Add new upstream MIME types + * Add `image/apng` with extension `.apng` + +1.26.0 / 2017-01-14 +=================== + + * Add new upstream MIME types + * Add extension `.geojson` to `application/geo+json` + +1.25.0 / 2016-11-11 +=================== + + * Add new upstream MIME types + +1.24.0 / 2016-09-18 +=================== + + * Add `audio/mp3` + * Add new upstream MIME types + +1.23.0 / 2016-05-01 +=================== + + * Add new upstream MIME types + * Add extension `.3gpp` to `audio/3gpp` + +1.22.0 / 2016-02-15 +=================== + + * Add `text/slim` + * Add extension `.rng` to `application/xml` + * Add new upstream MIME types + * Fix extension of `application/dash+xml` to be `.mpd` + * Update primary extension to `.m4a` for `audio/mp4` + +1.21.0 / 2016-01-06 +=================== + + * Add Google document types + * Add new upstream MIME types + +1.20.0 / 2015-11-10 +=================== + + * Add `text/x-suse-ymp` + * Add new upstream MIME types + +1.19.0 / 2015-09-17 +=================== + + * Add `application/vnd.apple.pkpass` + * Add new upstream MIME types + +1.18.0 / 2015-09-03 +=================== + + * Add new upstream MIME types + +1.17.0 / 2015-08-13 +=================== + + * Add `application/x-msdos-program` + * Add `audio/g711-0` + * Add `image/vnd.mozilla.apng` + * Add extension `.exe` to `application/x-msdos-program` + +1.16.0 / 2015-07-29 +=================== + + * Add `application/vnd.uri-map` + +1.15.0 / 2015-07-13 +=================== + + * Add `application/x-httpd-php` + +1.14.0 / 2015-06-25 +=================== + + * Add `application/scim+json` + * Add `application/vnd.3gpp.ussd+xml` + * Add `application/vnd.biopax.rdf+xml` + * Add `text/x-processing` + +1.13.0 / 2015-06-07 +=================== + + * Add nginx as a source + * Add `application/x-cocoa` + * Add `application/x-java-archive-diff` + * Add `application/x-makeself` + * Add `application/x-perl` + * Add `application/x-pilot` + * Add `application/x-redhat-package-manager` + * Add `application/x-sea` + * Add `audio/x-m4a` + * Add `audio/x-realaudio` + * Add `image/x-jng` + * Add `text/mathml` + +1.12.0 / 2015-06-05 +=================== + + * Add `application/bdoc` + * Add `application/vnd.hyperdrive+json` + * Add `application/x-bdoc` + * Add extension `.rtf` to `text/rtf` + +1.11.0 / 2015-05-31 +=================== + + * Add `audio/wav` + * Add `audio/wave` + * Add extension `.litcoffee` to `text/coffeescript` + * Add extension `.sfd-hdstx` to `application/vnd.hydrostatix.sof-data` + * Add extension `.n-gage` to `application/vnd.nokia.n-gage.symbian.install` + +1.10.0 / 2015-05-19 +=================== + + * Add `application/vnd.balsamiq.bmpr` + * Add `application/vnd.microsoft.portable-executable` + * Add `application/x-ns-proxy-autoconfig` + +1.9.1 / 2015-04-19 +================== + + * Remove `.json` extension from `application/manifest+json` + - This is causing bugs downstream + +1.9.0 / 2015-04-19 +================== + + * Add `application/manifest+json` + * Add `application/vnd.micro+json` + * Add `image/vnd.zbrush.pcx` + * Add `image/x-ms-bmp` + +1.8.0 / 2015-03-13 +================== + + * Add `application/vnd.citationstyles.style+xml` + * Add `application/vnd.fastcopy-disk-image` + * Add `application/vnd.gov.sk.xmldatacontainer+xml` + * Add extension `.jsonld` to `application/ld+json` + +1.7.0 / 2015-02-08 +================== + + * Add `application/vnd.gerber` + * Add `application/vnd.msa-disk-image` + +1.6.1 / 2015-02-05 +================== + + * Community extensions ownership transferred from `node-mime` + +1.6.0 / 2015-01-29 +================== + + * Add `application/jose` + * Add `application/jose+json` + * Add `application/json-seq` + * Add `application/jwk+json` + * Add `application/jwk-set+json` + * Add `application/jwt` + * Add `application/rdap+json` + * Add `application/vnd.gov.sk.e-form+xml` + * Add `application/vnd.ims.imsccv1p3` + +1.5.0 / 2014-12-30 +================== + + * Add `application/vnd.oracle.resource+json` + * Fix various invalid MIME type entries + - `application/mbox+xml` + - `application/oscp-response` + - `application/vwg-multiplexed` + - `audio/g721` + +1.4.0 / 2014-12-21 +================== + + * Add `application/vnd.ims.imsccv1p2` + * Fix various invalid MIME type entries + - `application/vnd-acucobol` + - `application/vnd-curl` + - `application/vnd-dart` + - `application/vnd-dxr` + - `application/vnd-fdf` + - `application/vnd-mif` + - `application/vnd-sema` + - `application/vnd-wap-wmlc` + - `application/vnd.adobe.flash-movie` + - `application/vnd.dece-zip` + - `application/vnd.dvb_service` + - `application/vnd.micrografx-igx` + - `application/vnd.sealed-doc` + - `application/vnd.sealed-eml` + - `application/vnd.sealed-mht` + - `application/vnd.sealed-ppt` + - `application/vnd.sealed-tiff` + - `application/vnd.sealed-xls` + - `application/vnd.sealedmedia.softseal-html` + - `application/vnd.sealedmedia.softseal-pdf` + - `application/vnd.wap-slc` + - `application/vnd.wap-wbxml` + - `audio/vnd.sealedmedia.softseal-mpeg` + - `image/vnd-djvu` + - `image/vnd-svf` + - `image/vnd-wap-wbmp` + - `image/vnd.sealed-png` + - `image/vnd.sealedmedia.softseal-gif` + - `image/vnd.sealedmedia.softseal-jpg` + - `model/vnd-dwf` + - `model/vnd.parasolid.transmit-binary` + - `model/vnd.parasolid.transmit-text` + - `text/vnd-a` + - `text/vnd-curl` + - `text/vnd.wap-wml` + * Remove example template MIME types + - `application/example` + - `audio/example` + - `image/example` + - `message/example` + - `model/example` + - `multipart/example` + - `text/example` + - `video/example` + +1.3.1 / 2014-12-16 +================== + + * Fix missing extensions + - `application/json5` + - `text/hjson` + +1.3.0 / 2014-12-07 +================== + + * Add `application/a2l` + * Add `application/aml` + * Add `application/atfx` + * Add `application/atxml` + * Add `application/cdfx+xml` + * Add `application/dii` + * Add `application/json5` + * Add `application/lxf` + * Add `application/mf4` + * Add `application/vnd.apache.thrift.compact` + * Add `application/vnd.apache.thrift.json` + * Add `application/vnd.coffeescript` + * Add `application/vnd.enphase.envoy` + * Add `application/vnd.ims.imsccv1p1` + * Add `text/csv-schema` + * Add `text/hjson` + * Add `text/markdown` + * Add `text/yaml` + +1.2.0 / 2014-11-09 +================== + + * Add `application/cea` + * Add `application/dit` + * Add `application/vnd.gov.sk.e-form+zip` + * Add `application/vnd.tmd.mediaflex.api+xml` + * Type `application/epub+zip` is now IANA-registered + +1.1.2 / 2014-10-23 +================== + + * Rebuild database for `application/x-www-form-urlencoded` change + +1.1.1 / 2014-10-20 +================== + + * Mark `application/x-www-form-urlencoded` as compressible. + +1.1.0 / 2014-09-28 +================== + + * Add `application/font-woff2` + +1.0.3 / 2014-09-25 +================== + + * Fix engine requirement in package + +1.0.2 / 2014-09-25 +================== + + * Add `application/coap-group+json` + * Add `application/dcd` + * Add `application/vnd.apache.thrift.binary` + * Add `image/vnd.tencent.tap` + * Mark all JSON-derived types as compressible + * Update `text/vtt` data + +1.0.1 / 2014-08-30 +================== + + * Fix extension ordering + +1.0.0 / 2014-08-30 +================== + + * Add `application/atf` + * Add `application/merge-patch+json` + * Add `multipart/x-mixed-replace` + * Add `source: 'apache'` metadata + * Add `source: 'iana'` metadata + * Remove badly-assumed charset data diff --git a/Scripts/node_modules/mime-db/LICENSE b/Scripts/node_modules/mime-db/LICENSE new file mode 100644 index 00000000..0751cb10 --- /dev/null +++ b/Scripts/node_modules/mime-db/LICENSE @@ -0,0 +1,23 @@ +(The MIT License) + +Copyright (c) 2014 Jonathan Ong +Copyright (c) 2015-2022 Douglas Christopher Wilson + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Scripts/node_modules/mime-db/README.md b/Scripts/node_modules/mime-db/README.md new file mode 100644 index 00000000..5a8fcfe4 --- /dev/null +++ b/Scripts/node_modules/mime-db/README.md @@ -0,0 +1,100 @@ +# mime-db + +[![NPM Version][npm-version-image]][npm-url] +[![NPM Downloads][npm-downloads-image]][npm-url] +[![Node.js Version][node-image]][node-url] +[![Build Status][ci-image]][ci-url] +[![Coverage Status][coveralls-image]][coveralls-url] + +This is a large database of mime types and information about them. +It consists of a single, public JSON file and does not include any logic, +allowing it to remain as un-opinionated as possible with an API. +It aggregates data from the following sources: + +- http://www.iana.org/assignments/media-types/media-types.xhtml +- http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types +- http://hg.nginx.org/nginx/raw-file/default/conf/mime.types + +## Installation + +```bash +npm install mime-db +``` + +### Database Download + +If you're crazy enough to use this in the browser, you can just grab the +JSON file using [jsDelivr](https://www.jsdelivr.com/). It is recommended to +replace `master` with [a release tag](https://github.com/jshttp/mime-db/tags) +as the JSON format may change in the future. + +``` +https://cdn.jsdelivr.net/gh/jshttp/mime-db@master/db.json +``` + +## Usage + +```js +var db = require('mime-db') + +// grab data on .js files +var data = db['application/javascript'] +``` + +## Data Structure + +The JSON file is a map lookup for lowercased mime types. +Each mime type has the following properties: + +- `.source` - where the mime type is defined. + If not set, it's probably a custom media type. + - `apache` - [Apache common media types](http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types) + - `iana` - [IANA-defined media types](http://www.iana.org/assignments/media-types/media-types.xhtml) + - `nginx` - [nginx media types](http://hg.nginx.org/nginx/raw-file/default/conf/mime.types) +- `.extensions[]` - known extensions associated with this mime type. +- `.compressible` - whether a file of this type can be gzipped. +- `.charset` - the default charset associated with this type, if any. + +If unknown, every property could be `undefined`. + +## Contributing + +To edit the database, only make PRs against `src/custom-types.json` or +`src/custom-suffix.json`. + +The `src/custom-types.json` file is a JSON object with the MIME type as the +keys and the values being an object with the following keys: + +- `compressible` - leave out if you don't know, otherwise `true`/`false` to + indicate whether the data represented by the type is typically compressible. +- `extensions` - include an array of file extensions that are associated with + the type. +- `notes` - human-readable notes about the type, typically what the type is. +- `sources` - include an array of URLs of where the MIME type and the associated + extensions are sourced from. This needs to be a [primary source](https://en.wikipedia.org/wiki/Primary_source); + links to type aggregating sites and Wikipedia are _not acceptable_. + +To update the build, run `npm run build`. + +### Adding Custom Media Types + +The best way to get new media types included in this library is to register +them with the IANA. The community registration procedure is outlined in +[RFC 6838 section 5](http://tools.ietf.org/html/rfc6838#section-5). Types +registered with the IANA are automatically pulled into this library. + +If that is not possible / feasible, they can be added directly here as a +"custom" type. To do this, it is required to have a primary source that +definitively lists the media type. If an extension is going to be listed as +associateed with this media type, the source must definitively link the +media type and extension as well. + +[ci-image]: https://badgen.net/github/checks/jshttp/mime-db/master?label=ci +[ci-url]: https://github.com/jshttp/mime-db/actions?query=workflow%3Aci +[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-db/master +[coveralls-url]: https://coveralls.io/r/jshttp/mime-db?branch=master +[node-image]: https://badgen.net/npm/node/mime-db +[node-url]: https://nodejs.org/en/download +[npm-downloads-image]: https://badgen.net/npm/dm/mime-db +[npm-url]: https://npmjs.org/package/mime-db +[npm-version-image]: https://badgen.net/npm/v/mime-db diff --git a/Scripts/node_modules/mime-db/db.json b/Scripts/node_modules/mime-db/db.json new file mode 100644 index 00000000..eb9c42c4 --- /dev/null +++ b/Scripts/node_modules/mime-db/db.json @@ -0,0 +1,8519 @@ +{ + "application/1d-interleaved-parityfec": { + "source": "iana" + }, + "application/3gpdash-qoe-report+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/3gpp-ims+xml": { + "source": "iana", + "compressible": true + }, + "application/3gpphal+json": { + "source": "iana", + "compressible": true + }, + "application/3gpphalforms+json": { + "source": "iana", + "compressible": true + }, + "application/a2l": { + "source": "iana" + }, + "application/ace+cbor": { + "source": "iana" + }, + "application/activemessage": { + "source": "iana" + }, + "application/activity+json": { + "source": "iana", + "compressible": true + }, + "application/alto-costmap+json": { + "source": "iana", + "compressible": true + }, + "application/alto-costmapfilter+json": { + "source": "iana", + "compressible": true + }, + "application/alto-directory+json": { + "source": "iana", + "compressible": true + }, + "application/alto-endpointcost+json": { + "source": "iana", + "compressible": true + }, + "application/alto-endpointcostparams+json": { + "source": "iana", + "compressible": true + }, + "application/alto-endpointprop+json": { + "source": "iana", + "compressible": true + }, + "application/alto-endpointpropparams+json": { + "source": "iana", + "compressible": true + }, + "application/alto-error+json": { + "source": "iana", + "compressible": true + }, + "application/alto-networkmap+json": { + "source": "iana", + "compressible": true + }, + "application/alto-networkmapfilter+json": { + "source": "iana", + "compressible": true + }, + "application/alto-updatestreamcontrol+json": { + "source": "iana", + "compressible": true + }, + "application/alto-updatestreamparams+json": { + "source": "iana", + "compressible": true + }, + "application/aml": { + "source": "iana" + }, + "application/andrew-inset": { + "source": "iana", + "extensions": ["ez"] + }, + "application/applefile": { + "source": "iana" + }, + "application/applixware": { + "source": "apache", + "extensions": ["aw"] + }, + "application/at+jwt": { + "source": "iana" + }, + "application/atf": { + "source": "iana" + }, + "application/atfx": { + "source": "iana" + }, + "application/atom+xml": { + "source": "iana", + "compressible": true, + "extensions": ["atom"] + }, + "application/atomcat+xml": { + "source": "iana", + "compressible": true, + "extensions": ["atomcat"] + }, + "application/atomdeleted+xml": { + "source": "iana", + "compressible": true, + "extensions": ["atomdeleted"] + }, + "application/atomicmail": { + "source": "iana" + }, + "application/atomsvc+xml": { + "source": "iana", + "compressible": true, + "extensions": ["atomsvc"] + }, + "application/atsc-dwd+xml": { + "source": "iana", + "compressible": true, + "extensions": ["dwd"] + }, + "application/atsc-dynamic-event-message": { + "source": "iana" + }, + "application/atsc-held+xml": { + "source": "iana", + "compressible": true, + "extensions": ["held"] + }, + "application/atsc-rdt+json": { + "source": "iana", + "compressible": true + }, + "application/atsc-rsat+xml": { + "source": "iana", + "compressible": true, + "extensions": ["rsat"] + }, + "application/atxml": { + "source": "iana" + }, + "application/auth-policy+xml": { + "source": "iana", + "compressible": true + }, + "application/bacnet-xdd+zip": { + "source": "iana", + "compressible": false + }, + "application/batch-smtp": { + "source": "iana" + }, + "application/bdoc": { + "compressible": false, + "extensions": ["bdoc"] + }, + "application/beep+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/calendar+json": { + "source": "iana", + "compressible": true + }, + "application/calendar+xml": { + "source": "iana", + "compressible": true, + "extensions": ["xcs"] + }, + "application/call-completion": { + "source": "iana" + }, + "application/cals-1840": { + "source": "iana" + }, + "application/captive+json": { + "source": "iana", + "compressible": true + }, + "application/cbor": { + "source": "iana" + }, + "application/cbor-seq": { + "source": "iana" + }, + "application/cccex": { + "source": "iana" + }, + "application/ccmp+xml": { + "source": "iana", + "compressible": true + }, + "application/ccxml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["ccxml"] + }, + "application/cdfx+xml": { + "source": "iana", + "compressible": true, + "extensions": ["cdfx"] + }, + "application/cdmi-capability": { + "source": "iana", + "extensions": ["cdmia"] + }, + "application/cdmi-container": { + "source": "iana", + "extensions": ["cdmic"] + }, + "application/cdmi-domain": { + "source": "iana", + "extensions": ["cdmid"] + }, + "application/cdmi-object": { + "source": "iana", + "extensions": ["cdmio"] + }, + "application/cdmi-queue": { + "source": "iana", + "extensions": ["cdmiq"] + }, + "application/cdni": { + "source": "iana" + }, + "application/cea": { + "source": "iana" + }, + "application/cea-2018+xml": { + "source": "iana", + "compressible": true + }, + "application/cellml+xml": { + "source": "iana", + "compressible": true + }, + "application/cfw": { + "source": "iana" + }, + "application/city+json": { + "source": "iana", + "compressible": true + }, + "application/clr": { + "source": "iana" + }, + "application/clue+xml": { + "source": "iana", + "compressible": true + }, + "application/clue_info+xml": { + "source": "iana", + "compressible": true + }, + "application/cms": { + "source": "iana" + }, + "application/cnrp+xml": { + "source": "iana", + "compressible": true + }, + "application/coap-group+json": { + "source": "iana", + "compressible": true + }, + "application/coap-payload": { + "source": "iana" + }, + "application/commonground": { + "source": "iana" + }, + "application/conference-info+xml": { + "source": "iana", + "compressible": true + }, + "application/cose": { + "source": "iana" + }, + "application/cose-key": { + "source": "iana" + }, + "application/cose-key-set": { + "source": "iana" + }, + "application/cpl+xml": { + "source": "iana", + "compressible": true, + "extensions": ["cpl"] + }, + "application/csrattrs": { + "source": "iana" + }, + "application/csta+xml": { + "source": "iana", + "compressible": true + }, + "application/cstadata+xml": { + "source": "iana", + "compressible": true + }, + "application/csvm+json": { + "source": "iana", + "compressible": true + }, + "application/cu-seeme": { + "source": "apache", + "extensions": ["cu"] + }, + "application/cwt": { + "source": "iana" + }, + "application/cybercash": { + "source": "iana" + }, + "application/dart": { + "compressible": true + }, + "application/dash+xml": { + "source": "iana", + "compressible": true, + "extensions": ["mpd"] + }, + "application/dash-patch+xml": { + "source": "iana", + "compressible": true, + "extensions": ["mpp"] + }, + "application/dashdelta": { + "source": "iana" + }, + "application/davmount+xml": { + "source": "iana", + "compressible": true, + "extensions": ["davmount"] + }, + "application/dca-rft": { + "source": "iana" + }, + "application/dcd": { + "source": "iana" + }, + "application/dec-dx": { + "source": "iana" + }, + "application/dialog-info+xml": { + "source": "iana", + "compressible": true + }, + "application/dicom": { + "source": "iana" + }, + "application/dicom+json": { + "source": "iana", + "compressible": true + }, + "application/dicom+xml": { + "source": "iana", + "compressible": true + }, + "application/dii": { + "source": "iana" + }, + "application/dit": { + "source": "iana" + }, + "application/dns": { + "source": "iana" + }, + "application/dns+json": { + "source": "iana", + "compressible": true + }, + "application/dns-message": { + "source": "iana" + }, + "application/docbook+xml": { + "source": "apache", + "compressible": true, + "extensions": ["dbk"] + }, + "application/dots+cbor": { + "source": "iana" + }, + "application/dskpp+xml": { + "source": "iana", + "compressible": true + }, + "application/dssc+der": { + "source": "iana", + "extensions": ["dssc"] + }, + "application/dssc+xml": { + "source": "iana", + "compressible": true, + "extensions": ["xdssc"] + }, + "application/dvcs": { + "source": "iana" + }, + "application/ecmascript": { + "source": "iana", + "compressible": true, + "extensions": ["es","ecma"] + }, + "application/edi-consent": { + "source": "iana" + }, + "application/edi-x12": { + "source": "iana", + "compressible": false + }, + "application/edifact": { + "source": "iana", + "compressible": false + }, + "application/efi": { + "source": "iana" + }, + "application/elm+json": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/elm+xml": { + "source": "iana", + "compressible": true + }, + "application/emergencycalldata.cap+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/emergencycalldata.comment+xml": { + "source": "iana", + "compressible": true + }, + "application/emergencycalldata.control+xml": { + "source": "iana", + "compressible": true + }, + "application/emergencycalldata.deviceinfo+xml": { + "source": "iana", + "compressible": true + }, + "application/emergencycalldata.ecall.msd": { + "source": "iana" + }, + "application/emergencycalldata.providerinfo+xml": { + "source": "iana", + "compressible": true + }, + "application/emergencycalldata.serviceinfo+xml": { + "source": "iana", + "compressible": true + }, + "application/emergencycalldata.subscriberinfo+xml": { + "source": "iana", + "compressible": true + }, + "application/emergencycalldata.veds+xml": { + "source": "iana", + "compressible": true + }, + "application/emma+xml": { + "source": "iana", + "compressible": true, + "extensions": ["emma"] + }, + "application/emotionml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["emotionml"] + }, + "application/encaprtp": { + "source": "iana" + }, + "application/epp+xml": { + "source": "iana", + "compressible": true + }, + "application/epub+zip": { + "source": "iana", + "compressible": false, + "extensions": ["epub"] + }, + "application/eshop": { + "source": "iana" + }, + "application/exi": { + "source": "iana", + "extensions": ["exi"] + }, + "application/expect-ct-report+json": { + "source": "iana", + "compressible": true + }, + "application/express": { + "source": "iana", + "extensions": ["exp"] + }, + "application/fastinfoset": { + "source": "iana" + }, + "application/fastsoap": { + "source": "iana" + }, + "application/fdt+xml": { + "source": "iana", + "compressible": true, + "extensions": ["fdt"] + }, + "application/fhir+json": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/fhir+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/fido.trusted-apps+json": { + "compressible": true + }, + "application/fits": { + "source": "iana" + }, + "application/flexfec": { + "source": "iana" + }, + "application/font-sfnt": { + "source": "iana" + }, + "application/font-tdpfr": { + "source": "iana", + "extensions": ["pfr"] + }, + "application/font-woff": { + "source": "iana", + "compressible": false + }, + "application/framework-attributes+xml": { + "source": "iana", + "compressible": true + }, + "application/geo+json": { + "source": "iana", + "compressible": true, + "extensions": ["geojson"] + }, + "application/geo+json-seq": { + "source": "iana" + }, + "application/geopackage+sqlite3": { + "source": "iana" + }, + "application/geoxacml+xml": { + "source": "iana", + "compressible": true + }, + "application/gltf-buffer": { + "source": "iana" + }, + "application/gml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["gml"] + }, + "application/gpx+xml": { + "source": "apache", + "compressible": true, + "extensions": ["gpx"] + }, + "application/gxf": { + "source": "apache", + "extensions": ["gxf"] + }, + "application/gzip": { + "source": "iana", + "compressible": false, + "extensions": ["gz"] + }, + "application/h224": { + "source": "iana" + }, + "application/held+xml": { + "source": "iana", + "compressible": true + }, + "application/hjson": { + "extensions": ["hjson"] + }, + "application/http": { + "source": "iana" + }, + "application/hyperstudio": { + "source": "iana", + "extensions": ["stk"] + }, + "application/ibe-key-request+xml": { + "source": "iana", + "compressible": true + }, + "application/ibe-pkg-reply+xml": { + "source": "iana", + "compressible": true + }, + "application/ibe-pp-data": { + "source": "iana" + }, + "application/iges": { + "source": "iana" + }, + "application/im-iscomposing+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/index": { + "source": "iana" + }, + "application/index.cmd": { + "source": "iana" + }, + "application/index.obj": { + "source": "iana" + }, + "application/index.response": { + "source": "iana" + }, + "application/index.vnd": { + "source": "iana" + }, + "application/inkml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["ink","inkml"] + }, + "application/iotp": { + "source": "iana" + }, + "application/ipfix": { + "source": "iana", + "extensions": ["ipfix"] + }, + "application/ipp": { + "source": "iana" + }, + "application/isup": { + "source": "iana" + }, + "application/its+xml": { + "source": "iana", + "compressible": true, + "extensions": ["its"] + }, + "application/java-archive": { + "source": "apache", + "compressible": false, + "extensions": ["jar","war","ear"] + }, + "application/java-serialized-object": { + "source": "apache", + "compressible": false, + "extensions": ["ser"] + }, + "application/java-vm": { + "source": "apache", + "compressible": false, + "extensions": ["class"] + }, + "application/javascript": { + "source": "iana", + "charset": "UTF-8", + "compressible": true, + "extensions": ["js","mjs"] + }, + "application/jf2feed+json": { + "source": "iana", + "compressible": true + }, + "application/jose": { + "source": "iana" + }, + "application/jose+json": { + "source": "iana", + "compressible": true + }, + "application/jrd+json": { + "source": "iana", + "compressible": true + }, + "application/jscalendar+json": { + "source": "iana", + "compressible": true + }, + "application/json": { + "source": "iana", + "charset": "UTF-8", + "compressible": true, + "extensions": ["json","map"] + }, + "application/json-patch+json": { + "source": "iana", + "compressible": true + }, + "application/json-seq": { + "source": "iana" + }, + "application/json5": { + "extensions": ["json5"] + }, + "application/jsonml+json": { + "source": "apache", + "compressible": true, + "extensions": ["jsonml"] + }, + "application/jwk+json": { + "source": "iana", + "compressible": true + }, + "application/jwk-set+json": { + "source": "iana", + "compressible": true + }, + "application/jwt": { + "source": "iana" + }, + "application/kpml-request+xml": { + "source": "iana", + "compressible": true + }, + "application/kpml-response+xml": { + "source": "iana", + "compressible": true + }, + "application/ld+json": { + "source": "iana", + "compressible": true, + "extensions": ["jsonld"] + }, + "application/lgr+xml": { + "source": "iana", + "compressible": true, + "extensions": ["lgr"] + }, + "application/link-format": { + "source": "iana" + }, + "application/load-control+xml": { + "source": "iana", + "compressible": true + }, + "application/lost+xml": { + "source": "iana", + "compressible": true, + "extensions": ["lostxml"] + }, + "application/lostsync+xml": { + "source": "iana", + "compressible": true + }, + "application/lpf+zip": { + "source": "iana", + "compressible": false + }, + "application/lxf": { + "source": "iana" + }, + "application/mac-binhex40": { + "source": "iana", + "extensions": ["hqx"] + }, + "application/mac-compactpro": { + "source": "apache", + "extensions": ["cpt"] + }, + "application/macwriteii": { + "source": "iana" + }, + "application/mads+xml": { + "source": "iana", + "compressible": true, + "extensions": ["mads"] + }, + "application/manifest+json": { + "source": "iana", + "charset": "UTF-8", + "compressible": true, + "extensions": ["webmanifest"] + }, + "application/marc": { + "source": "iana", + "extensions": ["mrc"] + }, + "application/marcxml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["mrcx"] + }, + "application/mathematica": { + "source": "iana", + "extensions": ["ma","nb","mb"] + }, + "application/mathml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["mathml"] + }, + "application/mathml-content+xml": { + "source": "iana", + "compressible": true + }, + "application/mathml-presentation+xml": { + "source": "iana", + "compressible": true + }, + "application/mbms-associated-procedure-description+xml": { + "source": "iana", + "compressible": true + }, + "application/mbms-deregister+xml": { + "source": "iana", + "compressible": true + }, + "application/mbms-envelope+xml": { + "source": "iana", + "compressible": true + }, + "application/mbms-msk+xml": { + "source": "iana", + "compressible": true + }, + "application/mbms-msk-response+xml": { + "source": "iana", + "compressible": true + }, + "application/mbms-protection-description+xml": { + "source": "iana", + "compressible": true + }, + "application/mbms-reception-report+xml": { + "source": "iana", + "compressible": true + }, + "application/mbms-register+xml": { + "source": "iana", + "compressible": true + }, + "application/mbms-register-response+xml": { + "source": "iana", + "compressible": true + }, + "application/mbms-schedule+xml": { + "source": "iana", + "compressible": true + }, + "application/mbms-user-service-description+xml": { + "source": "iana", + "compressible": true + }, + "application/mbox": { + "source": "iana", + "extensions": ["mbox"] + }, + "application/media-policy-dataset+xml": { + "source": "iana", + "compressible": true, + "extensions": ["mpf"] + }, + "application/media_control+xml": { + "source": "iana", + "compressible": true + }, + "application/mediaservercontrol+xml": { + "source": "iana", + "compressible": true, + "extensions": ["mscml"] + }, + "application/merge-patch+json": { + "source": "iana", + "compressible": true + }, + "application/metalink+xml": { + "source": "apache", + "compressible": true, + "extensions": ["metalink"] + }, + "application/metalink4+xml": { + "source": "iana", + "compressible": true, + "extensions": ["meta4"] + }, + "application/mets+xml": { + "source": "iana", + "compressible": true, + "extensions": ["mets"] + }, + "application/mf4": { + "source": "iana" + }, + "application/mikey": { + "source": "iana" + }, + "application/mipc": { + "source": "iana" + }, + "application/missing-blocks+cbor-seq": { + "source": "iana" + }, + "application/mmt-aei+xml": { + "source": "iana", + "compressible": true, + "extensions": ["maei"] + }, + "application/mmt-usd+xml": { + "source": "iana", + "compressible": true, + "extensions": ["musd"] + }, + "application/mods+xml": { + "source": "iana", + "compressible": true, + "extensions": ["mods"] + }, + "application/moss-keys": { + "source": "iana" + }, + "application/moss-signature": { + "source": "iana" + }, + "application/mosskey-data": { + "source": "iana" + }, + "application/mosskey-request": { + "source": "iana" + }, + "application/mp21": { + "source": "iana", + "extensions": ["m21","mp21"] + }, + "application/mp4": { + "source": "iana", + "extensions": ["mp4s","m4p"] + }, + "application/mpeg4-generic": { + "source": "iana" + }, + "application/mpeg4-iod": { + "source": "iana" + }, + "application/mpeg4-iod-xmt": { + "source": "iana" + }, + "application/mrb-consumer+xml": { + "source": "iana", + "compressible": true + }, + "application/mrb-publish+xml": { + "source": "iana", + "compressible": true + }, + "application/msc-ivr+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/msc-mixer+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/msword": { + "source": "iana", + "compressible": false, + "extensions": ["doc","dot"] + }, + "application/mud+json": { + "source": "iana", + "compressible": true + }, + "application/multipart-core": { + "source": "iana" + }, + "application/mxf": { + "source": "iana", + "extensions": ["mxf"] + }, + "application/n-quads": { + "source": "iana", + "extensions": ["nq"] + }, + "application/n-triples": { + "source": "iana", + "extensions": ["nt"] + }, + "application/nasdata": { + "source": "iana" + }, + "application/news-checkgroups": { + "source": "iana", + "charset": "US-ASCII" + }, + "application/news-groupinfo": { + "source": "iana", + "charset": "US-ASCII" + }, + "application/news-transmission": { + "source": "iana" + }, + "application/nlsml+xml": { + "source": "iana", + "compressible": true + }, + "application/node": { + "source": "iana", + "extensions": ["cjs"] + }, + "application/nss": { + "source": "iana" + }, + "application/oauth-authz-req+jwt": { + "source": "iana" + }, + "application/oblivious-dns-message": { + "source": "iana" + }, + "application/ocsp-request": { + "source": "iana" + }, + "application/ocsp-response": { + "source": "iana" + }, + "application/octet-stream": { + "source": "iana", + "compressible": false, + "extensions": ["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"] + }, + "application/oda": { + "source": "iana", + "extensions": ["oda"] + }, + "application/odm+xml": { + "source": "iana", + "compressible": true + }, + "application/odx": { + "source": "iana" + }, + "application/oebps-package+xml": { + "source": "iana", + "compressible": true, + "extensions": ["opf"] + }, + "application/ogg": { + "source": "iana", + "compressible": false, + "extensions": ["ogx"] + }, + "application/omdoc+xml": { + "source": "apache", + "compressible": true, + "extensions": ["omdoc"] + }, + "application/onenote": { + "source": "apache", + "extensions": ["onetoc","onetoc2","onetmp","onepkg"] + }, + "application/opc-nodeset+xml": { + "source": "iana", + "compressible": true + }, + "application/oscore": { + "source": "iana" + }, + "application/oxps": { + "source": "iana", + "extensions": ["oxps"] + }, + "application/p21": { + "source": "iana" + }, + "application/p21+zip": { + "source": "iana", + "compressible": false + }, + "application/p2p-overlay+xml": { + "source": "iana", + "compressible": true, + "extensions": ["relo"] + }, + "application/parityfec": { + "source": "iana" + }, + "application/passport": { + "source": "iana" + }, + "application/patch-ops-error+xml": { + "source": "iana", + "compressible": true, + "extensions": ["xer"] + }, + "application/pdf": { + "source": "iana", + "compressible": false, + "extensions": ["pdf"] + }, + "application/pdx": { + "source": "iana" + }, + "application/pem-certificate-chain": { + "source": "iana" + }, + "application/pgp-encrypted": { + "source": "iana", + "compressible": false, + "extensions": ["pgp"] + }, + "application/pgp-keys": { + "source": "iana", + "extensions": ["asc"] + }, + "application/pgp-signature": { + "source": "iana", + "extensions": ["asc","sig"] + }, + "application/pics-rules": { + "source": "apache", + "extensions": ["prf"] + }, + "application/pidf+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/pidf-diff+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/pkcs10": { + "source": "iana", + "extensions": ["p10"] + }, + "application/pkcs12": { + "source": "iana" + }, + "application/pkcs7-mime": { + "source": "iana", + "extensions": ["p7m","p7c"] + }, + "application/pkcs7-signature": { + "source": "iana", + "extensions": ["p7s"] + }, + "application/pkcs8": { + "source": "iana", + "extensions": ["p8"] + }, + "application/pkcs8-encrypted": { + "source": "iana" + }, + "application/pkix-attr-cert": { + "source": "iana", + "extensions": ["ac"] + }, + "application/pkix-cert": { + "source": "iana", + "extensions": ["cer"] + }, + "application/pkix-crl": { + "source": "iana", + "extensions": ["crl"] + }, + "application/pkix-pkipath": { + "source": "iana", + "extensions": ["pkipath"] + }, + "application/pkixcmp": { + "source": "iana", + "extensions": ["pki"] + }, + "application/pls+xml": { + "source": "iana", + "compressible": true, + "extensions": ["pls"] + }, + "application/poc-settings+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/postscript": { + "source": "iana", + "compressible": true, + "extensions": ["ai","eps","ps"] + }, + "application/ppsp-tracker+json": { + "source": "iana", + "compressible": true + }, + "application/problem+json": { + "source": "iana", + "compressible": true + }, + "application/problem+xml": { + "source": "iana", + "compressible": true + }, + "application/provenance+xml": { + "source": "iana", + "compressible": true, + "extensions": ["provx"] + }, + "application/prs.alvestrand.titrax-sheet": { + "source": "iana" + }, + "application/prs.cww": { + "source": "iana", + "extensions": ["cww"] + }, + "application/prs.cyn": { + "source": "iana", + "charset": "7-BIT" + }, + "application/prs.hpub+zip": { + "source": "iana", + "compressible": false + }, + "application/prs.nprend": { + "source": "iana" + }, + "application/prs.plucker": { + "source": "iana" + }, + "application/prs.rdf-xml-crypt": { + "source": "iana" + }, + "application/prs.xsf+xml": { + "source": "iana", + "compressible": true + }, + "application/pskc+xml": { + "source": "iana", + "compressible": true, + "extensions": ["pskcxml"] + }, + "application/pvd+json": { + "source": "iana", + "compressible": true + }, + "application/qsig": { + "source": "iana" + }, + "application/raml+yaml": { + "compressible": true, + "extensions": ["raml"] + }, + "application/raptorfec": { + "source": "iana" + }, + "application/rdap+json": { + "source": "iana", + "compressible": true + }, + "application/rdf+xml": { + "source": "iana", + "compressible": true, + "extensions": ["rdf","owl"] + }, + "application/reginfo+xml": { + "source": "iana", + "compressible": true, + "extensions": ["rif"] + }, + "application/relax-ng-compact-syntax": { + "source": "iana", + "extensions": ["rnc"] + }, + "application/remote-printing": { + "source": "iana" + }, + "application/reputon+json": { + "source": "iana", + "compressible": true + }, + "application/resource-lists+xml": { + "source": "iana", + "compressible": true, + "extensions": ["rl"] + }, + "application/resource-lists-diff+xml": { + "source": "iana", + "compressible": true, + "extensions": ["rld"] + }, + "application/rfc+xml": { + "source": "iana", + "compressible": true + }, + "application/riscos": { + "source": "iana" + }, + "application/rlmi+xml": { + "source": "iana", + "compressible": true + }, + "application/rls-services+xml": { + "source": "iana", + "compressible": true, + "extensions": ["rs"] + }, + "application/route-apd+xml": { + "source": "iana", + "compressible": true, + "extensions": ["rapd"] + }, + "application/route-s-tsid+xml": { + "source": "iana", + "compressible": true, + "extensions": ["sls"] + }, + "application/route-usd+xml": { + "source": "iana", + "compressible": true, + "extensions": ["rusd"] + }, + "application/rpki-ghostbusters": { + "source": "iana", + "extensions": ["gbr"] + }, + "application/rpki-manifest": { + "source": "iana", + "extensions": ["mft"] + }, + "application/rpki-publication": { + "source": "iana" + }, + "application/rpki-roa": { + "source": "iana", + "extensions": ["roa"] + }, + "application/rpki-updown": { + "source": "iana" + }, + "application/rsd+xml": { + "source": "apache", + "compressible": true, + "extensions": ["rsd"] + }, + "application/rss+xml": { + "source": "apache", + "compressible": true, + "extensions": ["rss"] + }, + "application/rtf": { + "source": "iana", + "compressible": true, + "extensions": ["rtf"] + }, + "application/rtploopback": { + "source": "iana" + }, + "application/rtx": { + "source": "iana" + }, + "application/samlassertion+xml": { + "source": "iana", + "compressible": true + }, + "application/samlmetadata+xml": { + "source": "iana", + "compressible": true + }, + "application/sarif+json": { + "source": "iana", + "compressible": true + }, + "application/sarif-external-properties+json": { + "source": "iana", + "compressible": true + }, + "application/sbe": { + "source": "iana" + }, + "application/sbml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["sbml"] + }, + "application/scaip+xml": { + "source": "iana", + "compressible": true + }, + "application/scim+json": { + "source": "iana", + "compressible": true + }, + "application/scvp-cv-request": { + "source": "iana", + "extensions": ["scq"] + }, + "application/scvp-cv-response": { + "source": "iana", + "extensions": ["scs"] + }, + "application/scvp-vp-request": { + "source": "iana", + "extensions": ["spq"] + }, + "application/scvp-vp-response": { + "source": "iana", + "extensions": ["spp"] + }, + "application/sdp": { + "source": "iana", + "extensions": ["sdp"] + }, + "application/secevent+jwt": { + "source": "iana" + }, + "application/senml+cbor": { + "source": "iana" + }, + "application/senml+json": { + "source": "iana", + "compressible": true + }, + "application/senml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["senmlx"] + }, + "application/senml-etch+cbor": { + "source": "iana" + }, + "application/senml-etch+json": { + "source": "iana", + "compressible": true + }, + "application/senml-exi": { + "source": "iana" + }, + "application/sensml+cbor": { + "source": "iana" + }, + "application/sensml+json": { + "source": "iana", + "compressible": true + }, + "application/sensml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["sensmlx"] + }, + "application/sensml-exi": { + "source": "iana" + }, + "application/sep+xml": { + "source": "iana", + "compressible": true + }, + "application/sep-exi": { + "source": "iana" + }, + "application/session-info": { + "source": "iana" + }, + "application/set-payment": { + "source": "iana" + }, + "application/set-payment-initiation": { + "source": "iana", + "extensions": ["setpay"] + }, + "application/set-registration": { + "source": "iana" + }, + "application/set-registration-initiation": { + "source": "iana", + "extensions": ["setreg"] + }, + "application/sgml": { + "source": "iana" + }, + "application/sgml-open-catalog": { + "source": "iana" + }, + "application/shf+xml": { + "source": "iana", + "compressible": true, + "extensions": ["shf"] + }, + "application/sieve": { + "source": "iana", + "extensions": ["siv","sieve"] + }, + "application/simple-filter+xml": { + "source": "iana", + "compressible": true + }, + "application/simple-message-summary": { + "source": "iana" + }, + "application/simplesymbolcontainer": { + "source": "iana" + }, + "application/sipc": { + "source": "iana" + }, + "application/slate": { + "source": "iana" + }, + "application/smil": { + "source": "iana" + }, + "application/smil+xml": { + "source": "iana", + "compressible": true, + "extensions": ["smi","smil"] + }, + "application/smpte336m": { + "source": "iana" + }, + "application/soap+fastinfoset": { + "source": "iana" + }, + "application/soap+xml": { + "source": "iana", + "compressible": true + }, + "application/sparql-query": { + "source": "iana", + "extensions": ["rq"] + }, + "application/sparql-results+xml": { + "source": "iana", + "compressible": true, + "extensions": ["srx"] + }, + "application/spdx+json": { + "source": "iana", + "compressible": true + }, + "application/spirits-event+xml": { + "source": "iana", + "compressible": true + }, + "application/sql": { + "source": "iana" + }, + "application/srgs": { + "source": "iana", + "extensions": ["gram"] + }, + "application/srgs+xml": { + "source": "iana", + "compressible": true, + "extensions": ["grxml"] + }, + "application/sru+xml": { + "source": "iana", + "compressible": true, + "extensions": ["sru"] + }, + "application/ssdl+xml": { + "source": "apache", + "compressible": true, + "extensions": ["ssdl"] + }, + "application/ssml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["ssml"] + }, + "application/stix+json": { + "source": "iana", + "compressible": true + }, + "application/swid+xml": { + "source": "iana", + "compressible": true, + "extensions": ["swidtag"] + }, + "application/tamp-apex-update": { + "source": "iana" + }, + "application/tamp-apex-update-confirm": { + "source": "iana" + }, + "application/tamp-community-update": { + "source": "iana" + }, + "application/tamp-community-update-confirm": { + "source": "iana" + }, + "application/tamp-error": { + "source": "iana" + }, + "application/tamp-sequence-adjust": { + "source": "iana" + }, + "application/tamp-sequence-adjust-confirm": { + "source": "iana" + }, + "application/tamp-status-query": { + "source": "iana" + }, + "application/tamp-status-response": { + "source": "iana" + }, + "application/tamp-update": { + "source": "iana" + }, + "application/tamp-update-confirm": { + "source": "iana" + }, + "application/tar": { + "compressible": true + }, + "application/taxii+json": { + "source": "iana", + "compressible": true + }, + "application/td+json": { + "source": "iana", + "compressible": true + }, + "application/tei+xml": { + "source": "iana", + "compressible": true, + "extensions": ["tei","teicorpus"] + }, + "application/tetra_isi": { + "source": "iana" + }, + "application/thraud+xml": { + "source": "iana", + "compressible": true, + "extensions": ["tfi"] + }, + "application/timestamp-query": { + "source": "iana" + }, + "application/timestamp-reply": { + "source": "iana" + }, + "application/timestamped-data": { + "source": "iana", + "extensions": ["tsd"] + }, + "application/tlsrpt+gzip": { + "source": "iana" + }, + "application/tlsrpt+json": { + "source": "iana", + "compressible": true + }, + "application/tnauthlist": { + "source": "iana" + }, + "application/token-introspection+jwt": { + "source": "iana" + }, + "application/toml": { + "compressible": true, + "extensions": ["toml"] + }, + "application/trickle-ice-sdpfrag": { + "source": "iana" + }, + "application/trig": { + "source": "iana", + "extensions": ["trig"] + }, + "application/ttml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["ttml"] + }, + "application/tve-trigger": { + "source": "iana" + }, + "application/tzif": { + "source": "iana" + }, + "application/tzif-leap": { + "source": "iana" + }, + "application/ubjson": { + "compressible": false, + "extensions": ["ubj"] + }, + "application/ulpfec": { + "source": "iana" + }, + "application/urc-grpsheet+xml": { + "source": "iana", + "compressible": true + }, + "application/urc-ressheet+xml": { + "source": "iana", + "compressible": true, + "extensions": ["rsheet"] + }, + "application/urc-targetdesc+xml": { + "source": "iana", + "compressible": true, + "extensions": ["td"] + }, + "application/urc-uisocketdesc+xml": { + "source": "iana", + "compressible": true + }, + "application/vcard+json": { + "source": "iana", + "compressible": true + }, + "application/vcard+xml": { + "source": "iana", + "compressible": true + }, + "application/vemmi": { + "source": "iana" + }, + "application/vividence.scriptfile": { + "source": "apache" + }, + "application/vnd.1000minds.decision-model+xml": { + "source": "iana", + "compressible": true, + "extensions": ["1km"] + }, + "application/vnd.3gpp-prose+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp-prose-pc3ch+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp-v2x-local-service-information": { + "source": "iana" + }, + "application/vnd.3gpp.5gnas": { + "source": "iana" + }, + "application/vnd.3gpp.access-transfer-events+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.bsf+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.gmop+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.gtpc": { + "source": "iana" + }, + "application/vnd.3gpp.interworking-data": { + "source": "iana" + }, + "application/vnd.3gpp.lpp": { + "source": "iana" + }, + "application/vnd.3gpp.mc-signalling-ear": { + "source": "iana" + }, + "application/vnd.3gpp.mcdata-affiliation-command+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcdata-info+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcdata-payload": { + "source": "iana" + }, + "application/vnd.3gpp.mcdata-service-config+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcdata-signalling": { + "source": "iana" + }, + "application/vnd.3gpp.mcdata-ue-config+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcdata-user-profile+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcptt-affiliation-command+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcptt-floor-request+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcptt-info+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcptt-location-info+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcptt-mbms-usage-info+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcptt-service-config+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcptt-signed+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcptt-ue-config+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcptt-ue-init-config+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcptt-user-profile+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcvideo-affiliation-command+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcvideo-affiliation-info+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcvideo-info+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcvideo-location-info+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcvideo-mbms-usage-info+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcvideo-service-config+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcvideo-transmission-request+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcvideo-ue-config+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mcvideo-user-profile+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.mid-call+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.ngap": { + "source": "iana" + }, + "application/vnd.3gpp.pfcp": { + "source": "iana" + }, + "application/vnd.3gpp.pic-bw-large": { + "source": "iana", + "extensions": ["plb"] + }, + "application/vnd.3gpp.pic-bw-small": { + "source": "iana", + "extensions": ["psb"] + }, + "application/vnd.3gpp.pic-bw-var": { + "source": "iana", + "extensions": ["pvb"] + }, + "application/vnd.3gpp.s1ap": { + "source": "iana" + }, + "application/vnd.3gpp.sms": { + "source": "iana" + }, + "application/vnd.3gpp.sms+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.srvcc-ext+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.srvcc-info+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.state-and-event-info+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp.ussd+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp2.bcmcsinfo+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.3gpp2.sms": { + "source": "iana" + }, + "application/vnd.3gpp2.tcap": { + "source": "iana", + "extensions": ["tcap"] + }, + "application/vnd.3lightssoftware.imagescal": { + "source": "iana" + }, + "application/vnd.3m.post-it-notes": { + "source": "iana", + "extensions": ["pwn"] + }, + "application/vnd.accpac.simply.aso": { + "source": "iana", + "extensions": ["aso"] + }, + "application/vnd.accpac.simply.imp": { + "source": "iana", + "extensions": ["imp"] + }, + "application/vnd.acucobol": { + "source": "iana", + "extensions": ["acu"] + }, + "application/vnd.acucorp": { + "source": "iana", + "extensions": ["atc","acutc"] + }, + "application/vnd.adobe.air-application-installer-package+zip": { + "source": "apache", + "compressible": false, + "extensions": ["air"] + }, + "application/vnd.adobe.flash.movie": { + "source": "iana" + }, + "application/vnd.adobe.formscentral.fcdt": { + "source": "iana", + "extensions": ["fcdt"] + }, + "application/vnd.adobe.fxp": { + "source": "iana", + "extensions": ["fxp","fxpl"] + }, + "application/vnd.adobe.partial-upload": { + "source": "iana" + }, + "application/vnd.adobe.xdp+xml": { + "source": "iana", + "compressible": true, + "extensions": ["xdp"] + }, + "application/vnd.adobe.xfdf": { + "source": "iana", + "extensions": ["xfdf"] + }, + "application/vnd.aether.imp": { + "source": "iana" + }, + "application/vnd.afpc.afplinedata": { + "source": "iana" + }, + "application/vnd.afpc.afplinedata-pagedef": { + "source": "iana" + }, + "application/vnd.afpc.cmoca-cmresource": { + "source": "iana" + }, + "application/vnd.afpc.foca-charset": { + "source": "iana" + }, + "application/vnd.afpc.foca-codedfont": { + "source": "iana" + }, + "application/vnd.afpc.foca-codepage": { + "source": "iana" + }, + "application/vnd.afpc.modca": { + "source": "iana" + }, + "application/vnd.afpc.modca-cmtable": { + "source": "iana" + }, + "application/vnd.afpc.modca-formdef": { + "source": "iana" + }, + "application/vnd.afpc.modca-mediummap": { + "source": "iana" + }, + "application/vnd.afpc.modca-objectcontainer": { + "source": "iana" + }, + "application/vnd.afpc.modca-overlay": { + "source": "iana" + }, + "application/vnd.afpc.modca-pagesegment": { + "source": "iana" + }, + "application/vnd.age": { + "source": "iana", + "extensions": ["age"] + }, + "application/vnd.ah-barcode": { + "source": "iana" + }, + "application/vnd.ahead.space": { + "source": "iana", + "extensions": ["ahead"] + }, + "application/vnd.airzip.filesecure.azf": { + "source": "iana", + "extensions": ["azf"] + }, + "application/vnd.airzip.filesecure.azs": { + "source": "iana", + "extensions": ["azs"] + }, + "application/vnd.amadeus+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.amazon.ebook": { + "source": "apache", + "extensions": ["azw"] + }, + "application/vnd.amazon.mobi8-ebook": { + "source": "iana" + }, + "application/vnd.americandynamics.acc": { + "source": "iana", + "extensions": ["acc"] + }, + "application/vnd.amiga.ami": { + "source": "iana", + "extensions": ["ami"] + }, + "application/vnd.amundsen.maze+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.android.ota": { + "source": "iana" + }, + "application/vnd.android.package-archive": { + "source": "apache", + "compressible": false, + "extensions": ["apk"] + }, + "application/vnd.anki": { + "source": "iana" + }, + "application/vnd.anser-web-certificate-issue-initiation": { + "source": "iana", + "extensions": ["cii"] + }, + "application/vnd.anser-web-funds-transfer-initiation": { + "source": "apache", + "extensions": ["fti"] + }, + "application/vnd.antix.game-component": { + "source": "iana", + "extensions": ["atx"] + }, + "application/vnd.apache.arrow.file": { + "source": "iana" + }, + "application/vnd.apache.arrow.stream": { + "source": "iana" + }, + "application/vnd.apache.thrift.binary": { + "source": "iana" + }, + "application/vnd.apache.thrift.compact": { + "source": "iana" + }, + "application/vnd.apache.thrift.json": { + "source": "iana" + }, + "application/vnd.api+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.aplextor.warrp+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.apothekende.reservation+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.apple.installer+xml": { + "source": "iana", + "compressible": true, + "extensions": ["mpkg"] + }, + "application/vnd.apple.keynote": { + "source": "iana", + "extensions": ["key"] + }, + "application/vnd.apple.mpegurl": { + "source": "iana", + "extensions": ["m3u8"] + }, + "application/vnd.apple.numbers": { + "source": "iana", + "extensions": ["numbers"] + }, + "application/vnd.apple.pages": { + "source": "iana", + "extensions": ["pages"] + }, + "application/vnd.apple.pkpass": { + "compressible": false, + "extensions": ["pkpass"] + }, + "application/vnd.arastra.swi": { + "source": "iana" + }, + "application/vnd.aristanetworks.swi": { + "source": "iana", + "extensions": ["swi"] + }, + "application/vnd.artisan+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.artsquare": { + "source": "iana" + }, + "application/vnd.astraea-software.iota": { + "source": "iana", + "extensions": ["iota"] + }, + "application/vnd.audiograph": { + "source": "iana", + "extensions": ["aep"] + }, + "application/vnd.autopackage": { + "source": "iana" + }, + "application/vnd.avalon+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.avistar+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.balsamiq.bmml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["bmml"] + }, + "application/vnd.balsamiq.bmpr": { + "source": "iana" + }, + "application/vnd.banana-accounting": { + "source": "iana" + }, + "application/vnd.bbf.usp.error": { + "source": "iana" + }, + "application/vnd.bbf.usp.msg": { + "source": "iana" + }, + "application/vnd.bbf.usp.msg+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.bekitzur-stech+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.bint.med-content": { + "source": "iana" + }, + "application/vnd.biopax.rdf+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.blink-idb-value-wrapper": { + "source": "iana" + }, + "application/vnd.blueice.multipass": { + "source": "iana", + "extensions": ["mpm"] + }, + "application/vnd.bluetooth.ep.oob": { + "source": "iana" + }, + "application/vnd.bluetooth.le.oob": { + "source": "iana" + }, + "application/vnd.bmi": { + "source": "iana", + "extensions": ["bmi"] + }, + "application/vnd.bpf": { + "source": "iana" + }, + "application/vnd.bpf3": { + "source": "iana" + }, + "application/vnd.businessobjects": { + "source": "iana", + "extensions": ["rep"] + }, + "application/vnd.byu.uapi+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.cab-jscript": { + "source": "iana" + }, + "application/vnd.canon-cpdl": { + "source": "iana" + }, + "application/vnd.canon-lips": { + "source": "iana" + }, + "application/vnd.capasystems-pg+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.cendio.thinlinc.clientconf": { + "source": "iana" + }, + "application/vnd.century-systems.tcp_stream": { + "source": "iana" + }, + "application/vnd.chemdraw+xml": { + "source": "iana", + "compressible": true, + "extensions": ["cdxml"] + }, + "application/vnd.chess-pgn": { + "source": "iana" + }, + "application/vnd.chipnuts.karaoke-mmd": { + "source": "iana", + "extensions": ["mmd"] + }, + "application/vnd.ciedi": { + "source": "iana" + }, + "application/vnd.cinderella": { + "source": "iana", + "extensions": ["cdy"] + }, + "application/vnd.cirpack.isdn-ext": { + "source": "iana" + }, + "application/vnd.citationstyles.style+xml": { + "source": "iana", + "compressible": true, + "extensions": ["csl"] + }, + "application/vnd.claymore": { + "source": "iana", + "extensions": ["cla"] + }, + "application/vnd.cloanto.rp9": { + "source": "iana", + "extensions": ["rp9"] + }, + "application/vnd.clonk.c4group": { + "source": "iana", + "extensions": ["c4g","c4d","c4f","c4p","c4u"] + }, + "application/vnd.cluetrust.cartomobile-config": { + "source": "iana", + "extensions": ["c11amc"] + }, + "application/vnd.cluetrust.cartomobile-config-pkg": { + "source": "iana", + "extensions": ["c11amz"] + }, + "application/vnd.coffeescript": { + "source": "iana" + }, + "application/vnd.collabio.xodocuments.document": { + "source": "iana" + }, + "application/vnd.collabio.xodocuments.document-template": { + "source": "iana" + }, + "application/vnd.collabio.xodocuments.presentation": { + "source": "iana" + }, + "application/vnd.collabio.xodocuments.presentation-template": { + "source": "iana" + }, + "application/vnd.collabio.xodocuments.spreadsheet": { + "source": "iana" + }, + "application/vnd.collabio.xodocuments.spreadsheet-template": { + "source": "iana" + }, + "application/vnd.collection+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.collection.doc+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.collection.next+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.comicbook+zip": { + "source": "iana", + "compressible": false + }, + "application/vnd.comicbook-rar": { + "source": "iana" + }, + "application/vnd.commerce-battelle": { + "source": "iana" + }, + "application/vnd.commonspace": { + "source": "iana", + "extensions": ["csp"] + }, + "application/vnd.contact.cmsg": { + "source": "iana", + "extensions": ["cdbcmsg"] + }, + "application/vnd.coreos.ignition+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.cosmocaller": { + "source": "iana", + "extensions": ["cmc"] + }, + "application/vnd.crick.clicker": { + "source": "iana", + "extensions": ["clkx"] + }, + "application/vnd.crick.clicker.keyboard": { + "source": "iana", + "extensions": ["clkk"] + }, + "application/vnd.crick.clicker.palette": { + "source": "iana", + "extensions": ["clkp"] + }, + "application/vnd.crick.clicker.template": { + "source": "iana", + "extensions": ["clkt"] + }, + "application/vnd.crick.clicker.wordbank": { + "source": "iana", + "extensions": ["clkw"] + }, + "application/vnd.criticaltools.wbs+xml": { + "source": "iana", + "compressible": true, + "extensions": ["wbs"] + }, + "application/vnd.cryptii.pipe+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.crypto-shade-file": { + "source": "iana" + }, + "application/vnd.cryptomator.encrypted": { + "source": "iana" + }, + "application/vnd.cryptomator.vault": { + "source": "iana" + }, + "application/vnd.ctc-posml": { + "source": "iana", + "extensions": ["pml"] + }, + "application/vnd.ctct.ws+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.cups-pdf": { + "source": "iana" + }, + "application/vnd.cups-postscript": { + "source": "iana" + }, + "application/vnd.cups-ppd": { + "source": "iana", + "extensions": ["ppd"] + }, + "application/vnd.cups-raster": { + "source": "iana" + }, + "application/vnd.cups-raw": { + "source": "iana" + }, + "application/vnd.curl": { + "source": "iana" + }, + "application/vnd.curl.car": { + "source": "apache", + "extensions": ["car"] + }, + "application/vnd.curl.pcurl": { + "source": "apache", + "extensions": ["pcurl"] + }, + "application/vnd.cyan.dean.root+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.cybank": { + "source": "iana" + }, + "application/vnd.cyclonedx+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.cyclonedx+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.d2l.coursepackage1p0+zip": { + "source": "iana", + "compressible": false + }, + "application/vnd.d3m-dataset": { + "source": "iana" + }, + "application/vnd.d3m-problem": { + "source": "iana" + }, + "application/vnd.dart": { + "source": "iana", + "compressible": true, + "extensions": ["dart"] + }, + "application/vnd.data-vision.rdz": { + "source": "iana", + "extensions": ["rdz"] + }, + "application/vnd.datapackage+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.dataresource+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.dbf": { + "source": "iana", + "extensions": ["dbf"] + }, + "application/vnd.debian.binary-package": { + "source": "iana" + }, + "application/vnd.dece.data": { + "source": "iana", + "extensions": ["uvf","uvvf","uvd","uvvd"] + }, + "application/vnd.dece.ttml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["uvt","uvvt"] + }, + "application/vnd.dece.unspecified": { + "source": "iana", + "extensions": ["uvx","uvvx"] + }, + "application/vnd.dece.zip": { + "source": "iana", + "extensions": ["uvz","uvvz"] + }, + "application/vnd.denovo.fcselayout-link": { + "source": "iana", + "extensions": ["fe_launch"] + }, + "application/vnd.desmume.movie": { + "source": "iana" + }, + "application/vnd.dir-bi.plate-dl-nosuffix": { + "source": "iana" + }, + "application/vnd.dm.delegation+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.dna": { + "source": "iana", + "extensions": ["dna"] + }, + "application/vnd.document+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.dolby.mlp": { + "source": "apache", + "extensions": ["mlp"] + }, + "application/vnd.dolby.mobile.1": { + "source": "iana" + }, + "application/vnd.dolby.mobile.2": { + "source": "iana" + }, + "application/vnd.doremir.scorecloud-binary-document": { + "source": "iana" + }, + "application/vnd.dpgraph": { + "source": "iana", + "extensions": ["dpg"] + }, + "application/vnd.dreamfactory": { + "source": "iana", + "extensions": ["dfac"] + }, + "application/vnd.drive+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.ds-keypoint": { + "source": "apache", + "extensions": ["kpxx"] + }, + "application/vnd.dtg.local": { + "source": "iana" + }, + "application/vnd.dtg.local.flash": { + "source": "iana" + }, + "application/vnd.dtg.local.html": { + "source": "iana" + }, + "application/vnd.dvb.ait": { + "source": "iana", + "extensions": ["ait"] + }, + "application/vnd.dvb.dvbisl+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.dvb.dvbj": { + "source": "iana" + }, + "application/vnd.dvb.esgcontainer": { + "source": "iana" + }, + "application/vnd.dvb.ipdcdftnotifaccess": { + "source": "iana" + }, + "application/vnd.dvb.ipdcesgaccess": { + "source": "iana" + }, + "application/vnd.dvb.ipdcesgaccess2": { + "source": "iana" + }, + "application/vnd.dvb.ipdcesgpdd": { + "source": "iana" + }, + "application/vnd.dvb.ipdcroaming": { + "source": "iana" + }, + "application/vnd.dvb.iptv.alfec-base": { + "source": "iana" + }, + "application/vnd.dvb.iptv.alfec-enhancement": { + "source": "iana" + }, + "application/vnd.dvb.notif-aggregate-root+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.dvb.notif-container+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.dvb.notif-generic+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.dvb.notif-ia-msglist+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.dvb.notif-ia-registration-request+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.dvb.notif-ia-registration-response+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.dvb.notif-init+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.dvb.pfr": { + "source": "iana" + }, + "application/vnd.dvb.service": { + "source": "iana", + "extensions": ["svc"] + }, + "application/vnd.dxr": { + "source": "iana" + }, + "application/vnd.dynageo": { + "source": "iana", + "extensions": ["geo"] + }, + "application/vnd.dzr": { + "source": "iana" + }, + "application/vnd.easykaraoke.cdgdownload": { + "source": "iana" + }, + "application/vnd.ecdis-update": { + "source": "iana" + }, + "application/vnd.ecip.rlp": { + "source": "iana" + }, + "application/vnd.eclipse.ditto+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.ecowin.chart": { + "source": "iana", + "extensions": ["mag"] + }, + "application/vnd.ecowin.filerequest": { + "source": "iana" + }, + "application/vnd.ecowin.fileupdate": { + "source": "iana" + }, + "application/vnd.ecowin.series": { + "source": "iana" + }, + "application/vnd.ecowin.seriesrequest": { + "source": "iana" + }, + "application/vnd.ecowin.seriesupdate": { + "source": "iana" + }, + "application/vnd.efi.img": { + "source": "iana" + }, + "application/vnd.efi.iso": { + "source": "iana" + }, + "application/vnd.emclient.accessrequest+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.enliven": { + "source": "iana", + "extensions": ["nml"] + }, + "application/vnd.enphase.envoy": { + "source": "iana" + }, + "application/vnd.eprints.data+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.epson.esf": { + "source": "iana", + "extensions": ["esf"] + }, + "application/vnd.epson.msf": { + "source": "iana", + "extensions": ["msf"] + }, + "application/vnd.epson.quickanime": { + "source": "iana", + "extensions": ["qam"] + }, + "application/vnd.epson.salt": { + "source": "iana", + "extensions": ["slt"] + }, + "application/vnd.epson.ssf": { + "source": "iana", + "extensions": ["ssf"] + }, + "application/vnd.ericsson.quickcall": { + "source": "iana" + }, + "application/vnd.espass-espass+zip": { + "source": "iana", + "compressible": false + }, + "application/vnd.eszigno3+xml": { + "source": "iana", + "compressible": true, + "extensions": ["es3","et3"] + }, + "application/vnd.etsi.aoc+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.asic-e+zip": { + "source": "iana", + "compressible": false + }, + "application/vnd.etsi.asic-s+zip": { + "source": "iana", + "compressible": false + }, + "application/vnd.etsi.cug+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.iptvcommand+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.iptvdiscovery+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.iptvprofile+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.iptvsad-bc+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.iptvsad-cod+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.iptvsad-npvr+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.iptvservice+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.iptvsync+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.iptvueprofile+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.mcid+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.mheg5": { + "source": "iana" + }, + "application/vnd.etsi.overload-control-policy-dataset+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.pstn+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.sci+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.simservs+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.timestamp-token": { + "source": "iana" + }, + "application/vnd.etsi.tsl+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.etsi.tsl.der": { + "source": "iana" + }, + "application/vnd.eu.kasparian.car+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.eudora.data": { + "source": "iana" + }, + "application/vnd.evolv.ecig.profile": { + "source": "iana" + }, + "application/vnd.evolv.ecig.settings": { + "source": "iana" + }, + "application/vnd.evolv.ecig.theme": { + "source": "iana" + }, + "application/vnd.exstream-empower+zip": { + "source": "iana", + "compressible": false + }, + "application/vnd.exstream-package": { + "source": "iana" + }, + "application/vnd.ezpix-album": { + "source": "iana", + "extensions": ["ez2"] + }, + "application/vnd.ezpix-package": { + "source": "iana", + "extensions": ["ez3"] + }, + "application/vnd.f-secure.mobile": { + "source": "iana" + }, + "application/vnd.familysearch.gedcom+zip": { + "source": "iana", + "compressible": false + }, + "application/vnd.fastcopy-disk-image": { + "source": "iana" + }, + "application/vnd.fdf": { + "source": "iana", + "extensions": ["fdf"] + }, + "application/vnd.fdsn.mseed": { + "source": "iana", + "extensions": ["mseed"] + }, + "application/vnd.fdsn.seed": { + "source": "iana", + "extensions": ["seed","dataless"] + }, + "application/vnd.ffsns": { + "source": "iana" + }, + "application/vnd.ficlab.flb+zip": { + "source": "iana", + "compressible": false + }, + "application/vnd.filmit.zfc": { + "source": "iana" + }, + "application/vnd.fints": { + "source": "iana" + }, + "application/vnd.firemonkeys.cloudcell": { + "source": "iana" + }, + "application/vnd.flographit": { + "source": "iana", + "extensions": ["gph"] + }, + "application/vnd.fluxtime.clip": { + "source": "iana", + "extensions": ["ftc"] + }, + "application/vnd.font-fontforge-sfd": { + "source": "iana" + }, + "application/vnd.framemaker": { + "source": "iana", + "extensions": ["fm","frame","maker","book"] + }, + "application/vnd.frogans.fnc": { + "source": "iana", + "extensions": ["fnc"] + }, + "application/vnd.frogans.ltf": { + "source": "iana", + "extensions": ["ltf"] + }, + "application/vnd.fsc.weblaunch": { + "source": "iana", + "extensions": ["fsc"] + }, + "application/vnd.fujifilm.fb.docuworks": { + "source": "iana" + }, + "application/vnd.fujifilm.fb.docuworks.binder": { + "source": "iana" + }, + "application/vnd.fujifilm.fb.docuworks.container": { + "source": "iana" + }, + "application/vnd.fujifilm.fb.jfi+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.fujitsu.oasys": { + "source": "iana", + "extensions": ["oas"] + }, + "application/vnd.fujitsu.oasys2": { + "source": "iana", + "extensions": ["oa2"] + }, + "application/vnd.fujitsu.oasys3": { + "source": "iana", + "extensions": ["oa3"] + }, + "application/vnd.fujitsu.oasysgp": { + "source": "iana", + "extensions": ["fg5"] + }, + "application/vnd.fujitsu.oasysprs": { + "source": "iana", + "extensions": ["bh2"] + }, + "application/vnd.fujixerox.art-ex": { + "source": "iana" + }, + "application/vnd.fujixerox.art4": { + "source": "iana" + }, + "application/vnd.fujixerox.ddd": { + "source": "iana", + "extensions": ["ddd"] + }, + "application/vnd.fujixerox.docuworks": { + "source": "iana", + "extensions": ["xdw"] + }, + "application/vnd.fujixerox.docuworks.binder": { + "source": "iana", + "extensions": ["xbd"] + }, + "application/vnd.fujixerox.docuworks.container": { + "source": "iana" + }, + "application/vnd.fujixerox.hbpl": { + "source": "iana" + }, + "application/vnd.fut-misnet": { + "source": "iana" + }, + "application/vnd.futoin+cbor": { + "source": "iana" + }, + "application/vnd.futoin+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.fuzzysheet": { + "source": "iana", + "extensions": ["fzs"] + }, + "application/vnd.genomatix.tuxedo": { + "source": "iana", + "extensions": ["txd"] + }, + "application/vnd.gentics.grd+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.geo+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.geocube+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.geogebra.file": { + "source": "iana", + "extensions": ["ggb"] + }, + "application/vnd.geogebra.slides": { + "source": "iana" + }, + "application/vnd.geogebra.tool": { + "source": "iana", + "extensions": ["ggt"] + }, + "application/vnd.geometry-explorer": { + "source": "iana", + "extensions": ["gex","gre"] + }, + "application/vnd.geonext": { + "source": "iana", + "extensions": ["gxt"] + }, + "application/vnd.geoplan": { + "source": "iana", + "extensions": ["g2w"] + }, + "application/vnd.geospace": { + "source": "iana", + "extensions": ["g3w"] + }, + "application/vnd.gerber": { + "source": "iana" + }, + "application/vnd.globalplatform.card-content-mgt": { + "source": "iana" + }, + "application/vnd.globalplatform.card-content-mgt-response": { + "source": "iana" + }, + "application/vnd.gmx": { + "source": "iana", + "extensions": ["gmx"] + }, + "application/vnd.google-apps.document": { + "compressible": false, + "extensions": ["gdoc"] + }, + "application/vnd.google-apps.presentation": { + "compressible": false, + "extensions": ["gslides"] + }, + "application/vnd.google-apps.spreadsheet": { + "compressible": false, + "extensions": ["gsheet"] + }, + "application/vnd.google-earth.kml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["kml"] + }, + "application/vnd.google-earth.kmz": { + "source": "iana", + "compressible": false, + "extensions": ["kmz"] + }, + "application/vnd.gov.sk.e-form+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.gov.sk.e-form+zip": { + "source": "iana", + "compressible": false + }, + "application/vnd.gov.sk.xmldatacontainer+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.grafeq": { + "source": "iana", + "extensions": ["gqf","gqs"] + }, + "application/vnd.gridmp": { + "source": "iana" + }, + "application/vnd.groove-account": { + "source": "iana", + "extensions": ["gac"] + }, + "application/vnd.groove-help": { + "source": "iana", + "extensions": ["ghf"] + }, + "application/vnd.groove-identity-message": { + "source": "iana", + "extensions": ["gim"] + }, + "application/vnd.groove-injector": { + "source": "iana", + "extensions": ["grv"] + }, + "application/vnd.groove-tool-message": { + "source": "iana", + "extensions": ["gtm"] + }, + "application/vnd.groove-tool-template": { + "source": "iana", + "extensions": ["tpl"] + }, + "application/vnd.groove-vcard": { + "source": "iana", + "extensions": ["vcg"] + }, + "application/vnd.hal+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.hal+xml": { + "source": "iana", + "compressible": true, + "extensions": ["hal"] + }, + "application/vnd.handheld-entertainment+xml": { + "source": "iana", + "compressible": true, + "extensions": ["zmm"] + }, + "application/vnd.hbci": { + "source": "iana", + "extensions": ["hbci"] + }, + "application/vnd.hc+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.hcl-bireports": { + "source": "iana" + }, + "application/vnd.hdt": { + "source": "iana" + }, + "application/vnd.heroku+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.hhe.lesson-player": { + "source": "iana", + "extensions": ["les"] + }, + "application/vnd.hl7cda+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/vnd.hl7v2+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/vnd.hp-hpgl": { + "source": "iana", + "extensions": ["hpgl"] + }, + "application/vnd.hp-hpid": { + "source": "iana", + "extensions": ["hpid"] + }, + "application/vnd.hp-hps": { + "source": "iana", + "extensions": ["hps"] + }, + "application/vnd.hp-jlyt": { + "source": "iana", + "extensions": ["jlt"] + }, + "application/vnd.hp-pcl": { + "source": "iana", + "extensions": ["pcl"] + }, + "application/vnd.hp-pclxl": { + "source": "iana", + "extensions": ["pclxl"] + }, + "application/vnd.httphone": { + "source": "iana" + }, + "application/vnd.hydrostatix.sof-data": { + "source": "iana", + "extensions": ["sfd-hdstx"] + }, + "application/vnd.hyper+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.hyper-item+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.hyperdrive+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.hzn-3d-crossword": { + "source": "iana" + }, + "application/vnd.ibm.afplinedata": { + "source": "iana" + }, + "application/vnd.ibm.electronic-media": { + "source": "iana" + }, + "application/vnd.ibm.minipay": { + "source": "iana", + "extensions": ["mpy"] + }, + "application/vnd.ibm.modcap": { + "source": "iana", + "extensions": ["afp","listafp","list3820"] + }, + "application/vnd.ibm.rights-management": { + "source": "iana", + "extensions": ["irm"] + }, + "application/vnd.ibm.secure-container": { + "source": "iana", + "extensions": ["sc"] + }, + "application/vnd.iccprofile": { + "source": "iana", + "extensions": ["icc","icm"] + }, + "application/vnd.ieee.1905": { + "source": "iana" + }, + "application/vnd.igloader": { + "source": "iana", + "extensions": ["igl"] + }, + "application/vnd.imagemeter.folder+zip": { + "source": "iana", + "compressible": false + }, + "application/vnd.imagemeter.image+zip": { + "source": "iana", + "compressible": false + }, + "application/vnd.immervision-ivp": { + "source": "iana", + "extensions": ["ivp"] + }, + "application/vnd.immervision-ivu": { + "source": "iana", + "extensions": ["ivu"] + }, + "application/vnd.ims.imsccv1p1": { + "source": "iana" + }, + "application/vnd.ims.imsccv1p2": { + "source": "iana" + }, + "application/vnd.ims.imsccv1p3": { + "source": "iana" + }, + "application/vnd.ims.lis.v2.result+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.ims.lti.v2.toolconsumerprofile+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.ims.lti.v2.toolproxy+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.ims.lti.v2.toolproxy.id+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.ims.lti.v2.toolsettings+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.ims.lti.v2.toolsettings.simple+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.informedcontrol.rms+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.informix-visionary": { + "source": "iana" + }, + "application/vnd.infotech.project": { + "source": "iana" + }, + "application/vnd.infotech.project+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.innopath.wamp.notification": { + "source": "iana" + }, + "application/vnd.insors.igm": { + "source": "iana", + "extensions": ["igm"] + }, + "application/vnd.intercon.formnet": { + "source": "iana", + "extensions": ["xpw","xpx"] + }, + "application/vnd.intergeo": { + "source": "iana", + "extensions": ["i2g"] + }, + "application/vnd.intertrust.digibox": { + "source": "iana" + }, + "application/vnd.intertrust.nncp": { + "source": "iana" + }, + "application/vnd.intu.qbo": { + "source": "iana", + "extensions": ["qbo"] + }, + "application/vnd.intu.qfx": { + "source": "iana", + "extensions": ["qfx"] + }, + "application/vnd.iptc.g2.catalogitem+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.iptc.g2.conceptitem+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.iptc.g2.knowledgeitem+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.iptc.g2.newsitem+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.iptc.g2.newsmessage+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.iptc.g2.packageitem+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.iptc.g2.planningitem+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.ipunplugged.rcprofile": { + "source": "iana", + "extensions": ["rcprofile"] + }, + "application/vnd.irepository.package+xml": { + "source": "iana", + "compressible": true, + "extensions": ["irp"] + }, + "application/vnd.is-xpr": { + "source": "iana", + "extensions": ["xpr"] + }, + "application/vnd.isac.fcs": { + "source": "iana", + "extensions": ["fcs"] + }, + "application/vnd.iso11783-10+zip": { + "source": "iana", + "compressible": false + }, + "application/vnd.jam": { + "source": "iana", + "extensions": ["jam"] + }, + "application/vnd.japannet-directory-service": { + "source": "iana" + }, + "application/vnd.japannet-jpnstore-wakeup": { + "source": "iana" + }, + "application/vnd.japannet-payment-wakeup": { + "source": "iana" + }, + "application/vnd.japannet-registration": { + "source": "iana" + }, + "application/vnd.japannet-registration-wakeup": { + "source": "iana" + }, + "application/vnd.japannet-setstore-wakeup": { + "source": "iana" + }, + "application/vnd.japannet-verification": { + "source": "iana" + }, + "application/vnd.japannet-verification-wakeup": { + "source": "iana" + }, + "application/vnd.jcp.javame.midlet-rms": { + "source": "iana", + "extensions": ["rms"] + }, + "application/vnd.jisp": { + "source": "iana", + "extensions": ["jisp"] + }, + "application/vnd.joost.joda-archive": { + "source": "iana", + "extensions": ["joda"] + }, + "application/vnd.jsk.isdn-ngn": { + "source": "iana" + }, + "application/vnd.kahootz": { + "source": "iana", + "extensions": ["ktz","ktr"] + }, + "application/vnd.kde.karbon": { + "source": "iana", + "extensions": ["karbon"] + }, + "application/vnd.kde.kchart": { + "source": "iana", + "extensions": ["chrt"] + }, + "application/vnd.kde.kformula": { + "source": "iana", + "extensions": ["kfo"] + }, + "application/vnd.kde.kivio": { + "source": "iana", + "extensions": ["flw"] + }, + "application/vnd.kde.kontour": { + "source": "iana", + "extensions": ["kon"] + }, + "application/vnd.kde.kpresenter": { + "source": "iana", + "extensions": ["kpr","kpt"] + }, + "application/vnd.kde.kspread": { + "source": "iana", + "extensions": ["ksp"] + }, + "application/vnd.kde.kword": { + "source": "iana", + "extensions": ["kwd","kwt"] + }, + "application/vnd.kenameaapp": { + "source": "iana", + "extensions": ["htke"] + }, + "application/vnd.kidspiration": { + "source": "iana", + "extensions": ["kia"] + }, + "application/vnd.kinar": { + "source": "iana", + "extensions": ["kne","knp"] + }, + "application/vnd.koan": { + "source": "iana", + "extensions": ["skp","skd","skt","skm"] + }, + "application/vnd.kodak-descriptor": { + "source": "iana", + "extensions": ["sse"] + }, + "application/vnd.las": { + "source": "iana" + }, + "application/vnd.las.las+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.las.las+xml": { + "source": "iana", + "compressible": true, + "extensions": ["lasxml"] + }, + "application/vnd.laszip": { + "source": "iana" + }, + "application/vnd.leap+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.liberty-request+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.llamagraphics.life-balance.desktop": { + "source": "iana", + "extensions": ["lbd"] + }, + "application/vnd.llamagraphics.life-balance.exchange+xml": { + "source": "iana", + "compressible": true, + "extensions": ["lbe"] + }, + "application/vnd.logipipe.circuit+zip": { + "source": "iana", + "compressible": false + }, + "application/vnd.loom": { + "source": "iana" + }, + "application/vnd.lotus-1-2-3": { + "source": "iana", + "extensions": ["123"] + }, + "application/vnd.lotus-approach": { + "source": "iana", + "extensions": ["apr"] + }, + "application/vnd.lotus-freelance": { + "source": "iana", + "extensions": ["pre"] + }, + "application/vnd.lotus-notes": { + "source": "iana", + "extensions": ["nsf"] + }, + "application/vnd.lotus-organizer": { + "source": "iana", + "extensions": ["org"] + }, + "application/vnd.lotus-screencam": { + "source": "iana", + "extensions": ["scm"] + }, + "application/vnd.lotus-wordpro": { + "source": "iana", + "extensions": ["lwp"] + }, + "application/vnd.macports.portpkg": { + "source": "iana", + "extensions": ["portpkg"] + }, + "application/vnd.mapbox-vector-tile": { + "source": "iana", + "extensions": ["mvt"] + }, + "application/vnd.marlin.drm.actiontoken+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.marlin.drm.conftoken+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.marlin.drm.license+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.marlin.drm.mdcf": { + "source": "iana" + }, + "application/vnd.mason+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.maxar.archive.3tz+zip": { + "source": "iana", + "compressible": false + }, + "application/vnd.maxmind.maxmind-db": { + "source": "iana" + }, + "application/vnd.mcd": { + "source": "iana", + "extensions": ["mcd"] + }, + "application/vnd.medcalcdata": { + "source": "iana", + "extensions": ["mc1"] + }, + "application/vnd.mediastation.cdkey": { + "source": "iana", + "extensions": ["cdkey"] + }, + "application/vnd.meridian-slingshot": { + "source": "iana" + }, + "application/vnd.mfer": { + "source": "iana", + "extensions": ["mwf"] + }, + "application/vnd.mfmp": { + "source": "iana", + "extensions": ["mfm"] + }, + "application/vnd.micro+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.micrografx.flo": { + "source": "iana", + "extensions": ["flo"] + }, + "application/vnd.micrografx.igx": { + "source": "iana", + "extensions": ["igx"] + }, + "application/vnd.microsoft.portable-executable": { + "source": "iana" + }, + "application/vnd.microsoft.windows.thumbnail-cache": { + "source": "iana" + }, + "application/vnd.miele+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.mif": { + "source": "iana", + "extensions": ["mif"] + }, + "application/vnd.minisoft-hp3000-save": { + "source": "iana" + }, + "application/vnd.mitsubishi.misty-guard.trustweb": { + "source": "iana" + }, + "application/vnd.mobius.daf": { + "source": "iana", + "extensions": ["daf"] + }, + "application/vnd.mobius.dis": { + "source": "iana", + "extensions": ["dis"] + }, + "application/vnd.mobius.mbk": { + "source": "iana", + "extensions": ["mbk"] + }, + "application/vnd.mobius.mqy": { + "source": "iana", + "extensions": ["mqy"] + }, + "application/vnd.mobius.msl": { + "source": "iana", + "extensions": ["msl"] + }, + "application/vnd.mobius.plc": { + "source": "iana", + "extensions": ["plc"] + }, + "application/vnd.mobius.txf": { + "source": "iana", + "extensions": ["txf"] + }, + "application/vnd.mophun.application": { + "source": "iana", + "extensions": ["mpn"] + }, + "application/vnd.mophun.certificate": { + "source": "iana", + "extensions": ["mpc"] + }, + "application/vnd.motorola.flexsuite": { + "source": "iana" + }, + "application/vnd.motorola.flexsuite.adsi": { + "source": "iana" + }, + "application/vnd.motorola.flexsuite.fis": { + "source": "iana" + }, + "application/vnd.motorola.flexsuite.gotap": { + "source": "iana" + }, + "application/vnd.motorola.flexsuite.kmr": { + "source": "iana" + }, + "application/vnd.motorola.flexsuite.ttc": { + "source": "iana" + }, + "application/vnd.motorola.flexsuite.wem": { + "source": "iana" + }, + "application/vnd.motorola.iprm": { + "source": "iana" + }, + "application/vnd.mozilla.xul+xml": { + "source": "iana", + "compressible": true, + "extensions": ["xul"] + }, + "application/vnd.ms-3mfdocument": { + "source": "iana" + }, + "application/vnd.ms-artgalry": { + "source": "iana", + "extensions": ["cil"] + }, + "application/vnd.ms-asf": { + "source": "iana" + }, + "application/vnd.ms-cab-compressed": { + "source": "iana", + "extensions": ["cab"] + }, + "application/vnd.ms-color.iccprofile": { + "source": "apache" + }, + "application/vnd.ms-excel": { + "source": "iana", + "compressible": false, + "extensions": ["xls","xlm","xla","xlc","xlt","xlw"] + }, + "application/vnd.ms-excel.addin.macroenabled.12": { + "source": "iana", + "extensions": ["xlam"] + }, + "application/vnd.ms-excel.sheet.binary.macroenabled.12": { + "source": "iana", + "extensions": ["xlsb"] + }, + "application/vnd.ms-excel.sheet.macroenabled.12": { + "source": "iana", + "extensions": ["xlsm"] + }, + "application/vnd.ms-excel.template.macroenabled.12": { + "source": "iana", + "extensions": ["xltm"] + }, + "application/vnd.ms-fontobject": { + "source": "iana", + "compressible": true, + "extensions": ["eot"] + }, + "application/vnd.ms-htmlhelp": { + "source": "iana", + "extensions": ["chm"] + }, + "application/vnd.ms-ims": { + "source": "iana", + "extensions": ["ims"] + }, + "application/vnd.ms-lrm": { + "source": "iana", + "extensions": ["lrm"] + }, + "application/vnd.ms-office.activex+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.ms-officetheme": { + "source": "iana", + "extensions": ["thmx"] + }, + "application/vnd.ms-opentype": { + "source": "apache", + "compressible": true + }, + "application/vnd.ms-outlook": { + "compressible": false, + "extensions": ["msg"] + }, + "application/vnd.ms-package.obfuscated-opentype": { + "source": "apache" + }, + "application/vnd.ms-pki.seccat": { + "source": "apache", + "extensions": ["cat"] + }, + "application/vnd.ms-pki.stl": { + "source": "apache", + "extensions": ["stl"] + }, + "application/vnd.ms-playready.initiator+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.ms-powerpoint": { + "source": "iana", + "compressible": false, + "extensions": ["ppt","pps","pot"] + }, + "application/vnd.ms-powerpoint.addin.macroenabled.12": { + "source": "iana", + "extensions": ["ppam"] + }, + "application/vnd.ms-powerpoint.presentation.macroenabled.12": { + "source": "iana", + "extensions": ["pptm"] + }, + "application/vnd.ms-powerpoint.slide.macroenabled.12": { + "source": "iana", + "extensions": ["sldm"] + }, + "application/vnd.ms-powerpoint.slideshow.macroenabled.12": { + "source": "iana", + "extensions": ["ppsm"] + }, + "application/vnd.ms-powerpoint.template.macroenabled.12": { + "source": "iana", + "extensions": ["potm"] + }, + "application/vnd.ms-printdevicecapabilities+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.ms-printing.printticket+xml": { + "source": "apache", + "compressible": true + }, + "application/vnd.ms-printschematicket+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.ms-project": { + "source": "iana", + "extensions": ["mpp","mpt"] + }, + "application/vnd.ms-tnef": { + "source": "iana" + }, + "application/vnd.ms-windows.devicepairing": { + "source": "iana" + }, + "application/vnd.ms-windows.nwprinting.oob": { + "source": "iana" + }, + "application/vnd.ms-windows.printerpairing": { + "source": "iana" + }, + "application/vnd.ms-windows.wsd.oob": { + "source": "iana" + }, + "application/vnd.ms-wmdrm.lic-chlg-req": { + "source": "iana" + }, + "application/vnd.ms-wmdrm.lic-resp": { + "source": "iana" + }, + "application/vnd.ms-wmdrm.meter-chlg-req": { + "source": "iana" + }, + "application/vnd.ms-wmdrm.meter-resp": { + "source": "iana" + }, + "application/vnd.ms-word.document.macroenabled.12": { + "source": "iana", + "extensions": ["docm"] + }, + "application/vnd.ms-word.template.macroenabled.12": { + "source": "iana", + "extensions": ["dotm"] + }, + "application/vnd.ms-works": { + "source": "iana", + "extensions": ["wps","wks","wcm","wdb"] + }, + "application/vnd.ms-wpl": { + "source": "iana", + "extensions": ["wpl"] + }, + "application/vnd.ms-xpsdocument": { + "source": "iana", + "compressible": false, + "extensions": ["xps"] + }, + "application/vnd.msa-disk-image": { + "source": "iana" + }, + "application/vnd.mseq": { + "source": "iana", + "extensions": ["mseq"] + }, + "application/vnd.msign": { + "source": "iana" + }, + "application/vnd.multiad.creator": { + "source": "iana" + }, + "application/vnd.multiad.creator.cif": { + "source": "iana" + }, + "application/vnd.music-niff": { + "source": "iana" + }, + "application/vnd.musician": { + "source": "iana", + "extensions": ["mus"] + }, + "application/vnd.muvee.style": { + "source": "iana", + "extensions": ["msty"] + }, + "application/vnd.mynfc": { + "source": "iana", + "extensions": ["taglet"] + }, + "application/vnd.nacamar.ybrid+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.ncd.control": { + "source": "iana" + }, + "application/vnd.ncd.reference": { + "source": "iana" + }, + "application/vnd.nearst.inv+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.nebumind.line": { + "source": "iana" + }, + "application/vnd.nervana": { + "source": "iana" + }, + "application/vnd.netfpx": { + "source": "iana" + }, + "application/vnd.neurolanguage.nlu": { + "source": "iana", + "extensions": ["nlu"] + }, + "application/vnd.nimn": { + "source": "iana" + }, + "application/vnd.nintendo.nitro.rom": { + "source": "iana" + }, + "application/vnd.nintendo.snes.rom": { + "source": "iana" + }, + "application/vnd.nitf": { + "source": "iana", + "extensions": ["ntf","nitf"] + }, + "application/vnd.noblenet-directory": { + "source": "iana", + "extensions": ["nnd"] + }, + "application/vnd.noblenet-sealer": { + "source": "iana", + "extensions": ["nns"] + }, + "application/vnd.noblenet-web": { + "source": "iana", + "extensions": ["nnw"] + }, + "application/vnd.nokia.catalogs": { + "source": "iana" + }, + "application/vnd.nokia.conml+wbxml": { + "source": "iana" + }, + "application/vnd.nokia.conml+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.nokia.iptv.config+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.nokia.isds-radio-presets": { + "source": "iana" + }, + "application/vnd.nokia.landmark+wbxml": { + "source": "iana" + }, + "application/vnd.nokia.landmark+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.nokia.landmarkcollection+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.nokia.n-gage.ac+xml": { + "source": "iana", + "compressible": true, + "extensions": ["ac"] + }, + "application/vnd.nokia.n-gage.data": { + "source": "iana", + "extensions": ["ngdat"] + }, + "application/vnd.nokia.n-gage.symbian.install": { + "source": "iana", + "extensions": ["n-gage"] + }, + "application/vnd.nokia.ncd": { + "source": "iana" + }, + "application/vnd.nokia.pcd+wbxml": { + "source": "iana" + }, + "application/vnd.nokia.pcd+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.nokia.radio-preset": { + "source": "iana", + "extensions": ["rpst"] + }, + "application/vnd.nokia.radio-presets": { + "source": "iana", + "extensions": ["rpss"] + }, + "application/vnd.novadigm.edm": { + "source": "iana", + "extensions": ["edm"] + }, + "application/vnd.novadigm.edx": { + "source": "iana", + "extensions": ["edx"] + }, + "application/vnd.novadigm.ext": { + "source": "iana", + "extensions": ["ext"] + }, + "application/vnd.ntt-local.content-share": { + "source": "iana" + }, + "application/vnd.ntt-local.file-transfer": { + "source": "iana" + }, + "application/vnd.ntt-local.ogw_remote-access": { + "source": "iana" + }, + "application/vnd.ntt-local.sip-ta_remote": { + "source": "iana" + }, + "application/vnd.ntt-local.sip-ta_tcp_stream": { + "source": "iana" + }, + "application/vnd.oasis.opendocument.chart": { + "source": "iana", + "extensions": ["odc"] + }, + "application/vnd.oasis.opendocument.chart-template": { + "source": "iana", + "extensions": ["otc"] + }, + "application/vnd.oasis.opendocument.database": { + "source": "iana", + "extensions": ["odb"] + }, + "application/vnd.oasis.opendocument.formula": { + "source": "iana", + "extensions": ["odf"] + }, + "application/vnd.oasis.opendocument.formula-template": { + "source": "iana", + "extensions": ["odft"] + }, + "application/vnd.oasis.opendocument.graphics": { + "source": "iana", + "compressible": false, + "extensions": ["odg"] + }, + "application/vnd.oasis.opendocument.graphics-template": { + "source": "iana", + "extensions": ["otg"] + }, + "application/vnd.oasis.opendocument.image": { + "source": "iana", + "extensions": ["odi"] + }, + "application/vnd.oasis.opendocument.image-template": { + "source": "iana", + "extensions": ["oti"] + }, + "application/vnd.oasis.opendocument.presentation": { + "source": "iana", + "compressible": false, + "extensions": ["odp"] + }, + "application/vnd.oasis.opendocument.presentation-template": { + "source": "iana", + "extensions": ["otp"] + }, + "application/vnd.oasis.opendocument.spreadsheet": { + "source": "iana", + "compressible": false, + "extensions": ["ods"] + }, + "application/vnd.oasis.opendocument.spreadsheet-template": { + "source": "iana", + "extensions": ["ots"] + }, + "application/vnd.oasis.opendocument.text": { + "source": "iana", + "compressible": false, + "extensions": ["odt"] + }, + "application/vnd.oasis.opendocument.text-master": { + "source": "iana", + "extensions": ["odm"] + }, + "application/vnd.oasis.opendocument.text-template": { + "source": "iana", + "extensions": ["ott"] + }, + "application/vnd.oasis.opendocument.text-web": { + "source": "iana", + "extensions": ["oth"] + }, + "application/vnd.obn": { + "source": "iana" + }, + "application/vnd.ocf+cbor": { + "source": "iana" + }, + "application/vnd.oci.image.manifest.v1+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.oftn.l10n+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.oipf.contentaccessdownload+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oipf.contentaccessstreaming+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oipf.cspg-hexbinary": { + "source": "iana" + }, + "application/vnd.oipf.dae.svg+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oipf.dae.xhtml+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oipf.mippvcontrolmessage+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oipf.pae.gem": { + "source": "iana" + }, + "application/vnd.oipf.spdiscovery+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oipf.spdlist+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oipf.ueprofile+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oipf.userprofile+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.olpc-sugar": { + "source": "iana", + "extensions": ["xo"] + }, + "application/vnd.oma-scws-config": { + "source": "iana" + }, + "application/vnd.oma-scws-http-request": { + "source": "iana" + }, + "application/vnd.oma-scws-http-response": { + "source": "iana" + }, + "application/vnd.oma.bcast.associated-procedure-parameter+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.bcast.drm-trigger+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.bcast.imd+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.bcast.ltkm": { + "source": "iana" + }, + "application/vnd.oma.bcast.notification+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.bcast.provisioningtrigger": { + "source": "iana" + }, + "application/vnd.oma.bcast.sgboot": { + "source": "iana" + }, + "application/vnd.oma.bcast.sgdd+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.bcast.sgdu": { + "source": "iana" + }, + "application/vnd.oma.bcast.simple-symbol-container": { + "source": "iana" + }, + "application/vnd.oma.bcast.smartcard-trigger+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.bcast.sprov+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.bcast.stkm": { + "source": "iana" + }, + "application/vnd.oma.cab-address-book+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.cab-feature-handler+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.cab-pcc+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.cab-subs-invite+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.cab-user-prefs+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.dcd": { + "source": "iana" + }, + "application/vnd.oma.dcdc": { + "source": "iana" + }, + "application/vnd.oma.dd2+xml": { + "source": "iana", + "compressible": true, + "extensions": ["dd2"] + }, + "application/vnd.oma.drm.risd+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.group-usage-list+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.lwm2m+cbor": { + "source": "iana" + }, + "application/vnd.oma.lwm2m+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.lwm2m+tlv": { + "source": "iana" + }, + "application/vnd.oma.pal+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.poc.detailed-progress-report+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.poc.final-report+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.poc.groups+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.poc.invocation-descriptor+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.poc.optimized-progress-report+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.push": { + "source": "iana" + }, + "application/vnd.oma.scidm.messages+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oma.xcap-directory+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.omads-email+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/vnd.omads-file+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/vnd.omads-folder+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/vnd.omaloc-supl-init": { + "source": "iana" + }, + "application/vnd.onepager": { + "source": "iana" + }, + "application/vnd.onepagertamp": { + "source": "iana" + }, + "application/vnd.onepagertamx": { + "source": "iana" + }, + "application/vnd.onepagertat": { + "source": "iana" + }, + "application/vnd.onepagertatp": { + "source": "iana" + }, + "application/vnd.onepagertatx": { + "source": "iana" + }, + "application/vnd.openblox.game+xml": { + "source": "iana", + "compressible": true, + "extensions": ["obgx"] + }, + "application/vnd.openblox.game-binary": { + "source": "iana" + }, + "application/vnd.openeye.oeb": { + "source": "iana" + }, + "application/vnd.openofficeorg.extension": { + "source": "apache", + "extensions": ["oxt"] + }, + "application/vnd.openstreetmap.data+xml": { + "source": "iana", + "compressible": true, + "extensions": ["osm"] + }, + "application/vnd.opentimestamps.ots": { + "source": "iana" + }, + "application/vnd.openxmlformats-officedocument.custom-properties+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.customxmlproperties+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.drawing+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.drawingml.chart+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.extended-properties+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.comments+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.presentation": { + "source": "iana", + "compressible": false, + "extensions": ["pptx"] + }, + "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.presprops+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.slide": { + "source": "iana", + "extensions": ["sldx"] + }, + "application/vnd.openxmlformats-officedocument.presentationml.slide+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.slideshow": { + "source": "iana", + "extensions": ["ppsx"] + }, + "application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.tags+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.template": { + "source": "iana", + "extensions": ["potx"] + }, + "application/vnd.openxmlformats-officedocument.presentationml.template.main+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": { + "source": "iana", + "compressible": false, + "extensions": ["xlsx"] + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.template": { + "source": "iana", + "extensions": ["xltx"] + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.theme+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.themeoverride+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.vmldrawing": { + "source": "iana" + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.document": { + "source": "iana", + "compressible": false, + "extensions": ["docx"] + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.template": { + "source": "iana", + "extensions": ["dotx"] + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-package.core-properties+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.openxmlformats-package.relationships+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oracle.resource+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.orange.indata": { + "source": "iana" + }, + "application/vnd.osa.netdeploy": { + "source": "iana" + }, + "application/vnd.osgeo.mapguide.package": { + "source": "iana", + "extensions": ["mgp"] + }, + "application/vnd.osgi.bundle": { + "source": "iana" + }, + "application/vnd.osgi.dp": { + "source": "iana", + "extensions": ["dp"] + }, + "application/vnd.osgi.subsystem": { + "source": "iana", + "extensions": ["esa"] + }, + "application/vnd.otps.ct-kip+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.oxli.countgraph": { + "source": "iana" + }, + "application/vnd.pagerduty+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.palm": { + "source": "iana", + "extensions": ["pdb","pqa","oprc"] + }, + "application/vnd.panoply": { + "source": "iana" + }, + "application/vnd.paos.xml": { + "source": "iana" + }, + "application/vnd.patentdive": { + "source": "iana" + }, + "application/vnd.patientecommsdoc": { + "source": "iana" + }, + "application/vnd.pawaafile": { + "source": "iana", + "extensions": ["paw"] + }, + "application/vnd.pcos": { + "source": "iana" + }, + "application/vnd.pg.format": { + "source": "iana", + "extensions": ["str"] + }, + "application/vnd.pg.osasli": { + "source": "iana", + "extensions": ["ei6"] + }, + "application/vnd.piaccess.application-licence": { + "source": "iana" + }, + "application/vnd.picsel": { + "source": "iana", + "extensions": ["efif"] + }, + "application/vnd.pmi.widget": { + "source": "iana", + "extensions": ["wg"] + }, + "application/vnd.poc.group-advertisement+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.pocketlearn": { + "source": "iana", + "extensions": ["plf"] + }, + "application/vnd.powerbuilder6": { + "source": "iana", + "extensions": ["pbd"] + }, + "application/vnd.powerbuilder6-s": { + "source": "iana" + }, + "application/vnd.powerbuilder7": { + "source": "iana" + }, + "application/vnd.powerbuilder7-s": { + "source": "iana" + }, + "application/vnd.powerbuilder75": { + "source": "iana" + }, + "application/vnd.powerbuilder75-s": { + "source": "iana" + }, + "application/vnd.preminet": { + "source": "iana" + }, + "application/vnd.previewsystems.box": { + "source": "iana", + "extensions": ["box"] + }, + "application/vnd.proteus.magazine": { + "source": "iana", + "extensions": ["mgz"] + }, + "application/vnd.psfs": { + "source": "iana" + }, + "application/vnd.publishare-delta-tree": { + "source": "iana", + "extensions": ["qps"] + }, + "application/vnd.pvi.ptid1": { + "source": "iana", + "extensions": ["ptid"] + }, + "application/vnd.pwg-multiplexed": { + "source": "iana" + }, + "application/vnd.pwg-xhtml-print+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.qualcomm.brew-app-res": { + "source": "iana" + }, + "application/vnd.quarantainenet": { + "source": "iana" + }, + "application/vnd.quark.quarkxpress": { + "source": "iana", + "extensions": ["qxd","qxt","qwd","qwt","qxl","qxb"] + }, + "application/vnd.quobject-quoxdocument": { + "source": "iana" + }, + "application/vnd.radisys.moml+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.radisys.msml+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.radisys.msml-audit+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.radisys.msml-audit-conf+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.radisys.msml-audit-conn+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.radisys.msml-audit-dialog+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.radisys.msml-audit-stream+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.radisys.msml-conf+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.radisys.msml-dialog+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.radisys.msml-dialog-base+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.radisys.msml-dialog-fax-detect+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.radisys.msml-dialog-fax-sendrecv+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.radisys.msml-dialog-group+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.radisys.msml-dialog-speech+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.radisys.msml-dialog-transform+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.rainstor.data": { + "source": "iana" + }, + "application/vnd.rapid": { + "source": "iana" + }, + "application/vnd.rar": { + "source": "iana", + "extensions": ["rar"] + }, + "application/vnd.realvnc.bed": { + "source": "iana", + "extensions": ["bed"] + }, + "application/vnd.recordare.musicxml": { + "source": "iana", + "extensions": ["mxl"] + }, + "application/vnd.recordare.musicxml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["musicxml"] + }, + "application/vnd.renlearn.rlprint": { + "source": "iana" + }, + "application/vnd.resilient.logic": { + "source": "iana" + }, + "application/vnd.restful+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.rig.cryptonote": { + "source": "iana", + "extensions": ["cryptonote"] + }, + "application/vnd.rim.cod": { + "source": "apache", + "extensions": ["cod"] + }, + "application/vnd.rn-realmedia": { + "source": "apache", + "extensions": ["rm"] + }, + "application/vnd.rn-realmedia-vbr": { + "source": "apache", + "extensions": ["rmvb"] + }, + "application/vnd.route66.link66+xml": { + "source": "iana", + "compressible": true, + "extensions": ["link66"] + }, + "application/vnd.rs-274x": { + "source": "iana" + }, + "application/vnd.ruckus.download": { + "source": "iana" + }, + "application/vnd.s3sms": { + "source": "iana" + }, + "application/vnd.sailingtracker.track": { + "source": "iana", + "extensions": ["st"] + }, + "application/vnd.sar": { + "source": "iana" + }, + "application/vnd.sbm.cid": { + "source": "iana" + }, + "application/vnd.sbm.mid2": { + "source": "iana" + }, + "application/vnd.scribus": { + "source": "iana" + }, + "application/vnd.sealed.3df": { + "source": "iana" + }, + "application/vnd.sealed.csf": { + "source": "iana" + }, + "application/vnd.sealed.doc": { + "source": "iana" + }, + "application/vnd.sealed.eml": { + "source": "iana" + }, + "application/vnd.sealed.mht": { + "source": "iana" + }, + "application/vnd.sealed.net": { + "source": "iana" + }, + "application/vnd.sealed.ppt": { + "source": "iana" + }, + "application/vnd.sealed.tiff": { + "source": "iana" + }, + "application/vnd.sealed.xls": { + "source": "iana" + }, + "application/vnd.sealedmedia.softseal.html": { + "source": "iana" + }, + "application/vnd.sealedmedia.softseal.pdf": { + "source": "iana" + }, + "application/vnd.seemail": { + "source": "iana", + "extensions": ["see"] + }, + "application/vnd.seis+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.sema": { + "source": "iana", + "extensions": ["sema"] + }, + "application/vnd.semd": { + "source": "iana", + "extensions": ["semd"] + }, + "application/vnd.semf": { + "source": "iana", + "extensions": ["semf"] + }, + "application/vnd.shade-save-file": { + "source": "iana" + }, + "application/vnd.shana.informed.formdata": { + "source": "iana", + "extensions": ["ifm"] + }, + "application/vnd.shana.informed.formtemplate": { + "source": "iana", + "extensions": ["itp"] + }, + "application/vnd.shana.informed.interchange": { + "source": "iana", + "extensions": ["iif"] + }, + "application/vnd.shana.informed.package": { + "source": "iana", + "extensions": ["ipk"] + }, + "application/vnd.shootproof+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.shopkick+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.shp": { + "source": "iana" + }, + "application/vnd.shx": { + "source": "iana" + }, + "application/vnd.sigrok.session": { + "source": "iana" + }, + "application/vnd.simtech-mindmapper": { + "source": "iana", + "extensions": ["twd","twds"] + }, + "application/vnd.siren+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.smaf": { + "source": "iana", + "extensions": ["mmf"] + }, + "application/vnd.smart.notebook": { + "source": "iana" + }, + "application/vnd.smart.teacher": { + "source": "iana", + "extensions": ["teacher"] + }, + "application/vnd.snesdev-page-table": { + "source": "iana" + }, + "application/vnd.software602.filler.form+xml": { + "source": "iana", + "compressible": true, + "extensions": ["fo"] + }, + "application/vnd.software602.filler.form-xml-zip": { + "source": "iana" + }, + "application/vnd.solent.sdkm+xml": { + "source": "iana", + "compressible": true, + "extensions": ["sdkm","sdkd"] + }, + "application/vnd.spotfire.dxp": { + "source": "iana", + "extensions": ["dxp"] + }, + "application/vnd.spotfire.sfs": { + "source": "iana", + "extensions": ["sfs"] + }, + "application/vnd.sqlite3": { + "source": "iana" + }, + "application/vnd.sss-cod": { + "source": "iana" + }, + "application/vnd.sss-dtf": { + "source": "iana" + }, + "application/vnd.sss-ntf": { + "source": "iana" + }, + "application/vnd.stardivision.calc": { + "source": "apache", + "extensions": ["sdc"] + }, + "application/vnd.stardivision.draw": { + "source": "apache", + "extensions": ["sda"] + }, + "application/vnd.stardivision.impress": { + "source": "apache", + "extensions": ["sdd"] + }, + "application/vnd.stardivision.math": { + "source": "apache", + "extensions": ["smf"] + }, + "application/vnd.stardivision.writer": { + "source": "apache", + "extensions": ["sdw","vor"] + }, + "application/vnd.stardivision.writer-global": { + "source": "apache", + "extensions": ["sgl"] + }, + "application/vnd.stepmania.package": { + "source": "iana", + "extensions": ["smzip"] + }, + "application/vnd.stepmania.stepchart": { + "source": "iana", + "extensions": ["sm"] + }, + "application/vnd.street-stream": { + "source": "iana" + }, + "application/vnd.sun.wadl+xml": { + "source": "iana", + "compressible": true, + "extensions": ["wadl"] + }, + "application/vnd.sun.xml.calc": { + "source": "apache", + "extensions": ["sxc"] + }, + "application/vnd.sun.xml.calc.template": { + "source": "apache", + "extensions": ["stc"] + }, + "application/vnd.sun.xml.draw": { + "source": "apache", + "extensions": ["sxd"] + }, + "application/vnd.sun.xml.draw.template": { + "source": "apache", + "extensions": ["std"] + }, + "application/vnd.sun.xml.impress": { + "source": "apache", + "extensions": ["sxi"] + }, + "application/vnd.sun.xml.impress.template": { + "source": "apache", + "extensions": ["sti"] + }, + "application/vnd.sun.xml.math": { + "source": "apache", + "extensions": ["sxm"] + }, + "application/vnd.sun.xml.writer": { + "source": "apache", + "extensions": ["sxw"] + }, + "application/vnd.sun.xml.writer.global": { + "source": "apache", + "extensions": ["sxg"] + }, + "application/vnd.sun.xml.writer.template": { + "source": "apache", + "extensions": ["stw"] + }, + "application/vnd.sus-calendar": { + "source": "iana", + "extensions": ["sus","susp"] + }, + "application/vnd.svd": { + "source": "iana", + "extensions": ["svd"] + }, + "application/vnd.swiftview-ics": { + "source": "iana" + }, + "application/vnd.sycle+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.syft+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.symbian.install": { + "source": "apache", + "extensions": ["sis","sisx"] + }, + "application/vnd.syncml+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true, + "extensions": ["xsm"] + }, + "application/vnd.syncml.dm+wbxml": { + "source": "iana", + "charset": "UTF-8", + "extensions": ["bdm"] + }, + "application/vnd.syncml.dm+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true, + "extensions": ["xdm"] + }, + "application/vnd.syncml.dm.notification": { + "source": "iana" + }, + "application/vnd.syncml.dmddf+wbxml": { + "source": "iana" + }, + "application/vnd.syncml.dmddf+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true, + "extensions": ["ddf"] + }, + "application/vnd.syncml.dmtnds+wbxml": { + "source": "iana" + }, + "application/vnd.syncml.dmtnds+xml": { + "source": "iana", + "charset": "UTF-8", + "compressible": true + }, + "application/vnd.syncml.ds.notification": { + "source": "iana" + }, + "application/vnd.tableschema+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.tao.intent-module-archive": { + "source": "iana", + "extensions": ["tao"] + }, + "application/vnd.tcpdump.pcap": { + "source": "iana", + "extensions": ["pcap","cap","dmp"] + }, + "application/vnd.think-cell.ppttc+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.tmd.mediaflex.api+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.tml": { + "source": "iana" + }, + "application/vnd.tmobile-livetv": { + "source": "iana", + "extensions": ["tmo"] + }, + "application/vnd.tri.onesource": { + "source": "iana" + }, + "application/vnd.trid.tpt": { + "source": "iana", + "extensions": ["tpt"] + }, + "application/vnd.triscape.mxs": { + "source": "iana", + "extensions": ["mxs"] + }, + "application/vnd.trueapp": { + "source": "iana", + "extensions": ["tra"] + }, + "application/vnd.truedoc": { + "source": "iana" + }, + "application/vnd.ubisoft.webplayer": { + "source": "iana" + }, + "application/vnd.ufdl": { + "source": "iana", + "extensions": ["ufd","ufdl"] + }, + "application/vnd.uiq.theme": { + "source": "iana", + "extensions": ["utz"] + }, + "application/vnd.umajin": { + "source": "iana", + "extensions": ["umj"] + }, + "application/vnd.unity": { + "source": "iana", + "extensions": ["unityweb"] + }, + "application/vnd.uoml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["uoml"] + }, + "application/vnd.uplanet.alert": { + "source": "iana" + }, + "application/vnd.uplanet.alert-wbxml": { + "source": "iana" + }, + "application/vnd.uplanet.bearer-choice": { + "source": "iana" + }, + "application/vnd.uplanet.bearer-choice-wbxml": { + "source": "iana" + }, + "application/vnd.uplanet.cacheop": { + "source": "iana" + }, + "application/vnd.uplanet.cacheop-wbxml": { + "source": "iana" + }, + "application/vnd.uplanet.channel": { + "source": "iana" + }, + "application/vnd.uplanet.channel-wbxml": { + "source": "iana" + }, + "application/vnd.uplanet.list": { + "source": "iana" + }, + "application/vnd.uplanet.list-wbxml": { + "source": "iana" + }, + "application/vnd.uplanet.listcmd": { + "source": "iana" + }, + "application/vnd.uplanet.listcmd-wbxml": { + "source": "iana" + }, + "application/vnd.uplanet.signal": { + "source": "iana" + }, + "application/vnd.uri-map": { + "source": "iana" + }, + "application/vnd.valve.source.material": { + "source": "iana" + }, + "application/vnd.vcx": { + "source": "iana", + "extensions": ["vcx"] + }, + "application/vnd.vd-study": { + "source": "iana" + }, + "application/vnd.vectorworks": { + "source": "iana" + }, + "application/vnd.vel+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.verimatrix.vcas": { + "source": "iana" + }, + "application/vnd.veritone.aion+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.veryant.thin": { + "source": "iana" + }, + "application/vnd.ves.encrypted": { + "source": "iana" + }, + "application/vnd.vidsoft.vidconference": { + "source": "iana" + }, + "application/vnd.visio": { + "source": "iana", + "extensions": ["vsd","vst","vss","vsw"] + }, + "application/vnd.visionary": { + "source": "iana", + "extensions": ["vis"] + }, + "application/vnd.vividence.scriptfile": { + "source": "iana" + }, + "application/vnd.vsf": { + "source": "iana", + "extensions": ["vsf"] + }, + "application/vnd.wap.sic": { + "source": "iana" + }, + "application/vnd.wap.slc": { + "source": "iana" + }, + "application/vnd.wap.wbxml": { + "source": "iana", + "charset": "UTF-8", + "extensions": ["wbxml"] + }, + "application/vnd.wap.wmlc": { + "source": "iana", + "extensions": ["wmlc"] + }, + "application/vnd.wap.wmlscriptc": { + "source": "iana", + "extensions": ["wmlsc"] + }, + "application/vnd.webturbo": { + "source": "iana", + "extensions": ["wtb"] + }, + "application/vnd.wfa.dpp": { + "source": "iana" + }, + "application/vnd.wfa.p2p": { + "source": "iana" + }, + "application/vnd.wfa.wsc": { + "source": "iana" + }, + "application/vnd.windows.devicepairing": { + "source": "iana" + }, + "application/vnd.wmc": { + "source": "iana" + }, + "application/vnd.wmf.bootstrap": { + "source": "iana" + }, + "application/vnd.wolfram.mathematica": { + "source": "iana" + }, + "application/vnd.wolfram.mathematica.package": { + "source": "iana" + }, + "application/vnd.wolfram.player": { + "source": "iana", + "extensions": ["nbp"] + }, + "application/vnd.wordperfect": { + "source": "iana", + "extensions": ["wpd"] + }, + "application/vnd.wqd": { + "source": "iana", + "extensions": ["wqd"] + }, + "application/vnd.wrq-hp3000-labelled": { + "source": "iana" + }, + "application/vnd.wt.stf": { + "source": "iana", + "extensions": ["stf"] + }, + "application/vnd.wv.csp+wbxml": { + "source": "iana" + }, + "application/vnd.wv.csp+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.wv.ssp+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.xacml+json": { + "source": "iana", + "compressible": true + }, + "application/vnd.xara": { + "source": "iana", + "extensions": ["xar"] + }, + "application/vnd.xfdl": { + "source": "iana", + "extensions": ["xfdl"] + }, + "application/vnd.xfdl.webform": { + "source": "iana" + }, + "application/vnd.xmi+xml": { + "source": "iana", + "compressible": true + }, + "application/vnd.xmpie.cpkg": { + "source": "iana" + }, + "application/vnd.xmpie.dpkg": { + "source": "iana" + }, + "application/vnd.xmpie.plan": { + "source": "iana" + }, + "application/vnd.xmpie.ppkg": { + "source": "iana" + }, + "application/vnd.xmpie.xlim": { + "source": "iana" + }, + "application/vnd.yamaha.hv-dic": { + "source": "iana", + "extensions": ["hvd"] + }, + "application/vnd.yamaha.hv-script": { + "source": "iana", + "extensions": ["hvs"] + }, + "application/vnd.yamaha.hv-voice": { + "source": "iana", + "extensions": ["hvp"] + }, + "application/vnd.yamaha.openscoreformat": { + "source": "iana", + "extensions": ["osf"] + }, + "application/vnd.yamaha.openscoreformat.osfpvg+xml": { + "source": "iana", + "compressible": true, + "extensions": ["osfpvg"] + }, + "application/vnd.yamaha.remote-setup": { + "source": "iana" + }, + "application/vnd.yamaha.smaf-audio": { + "source": "iana", + "extensions": ["saf"] + }, + "application/vnd.yamaha.smaf-phrase": { + "source": "iana", + "extensions": ["spf"] + }, + "application/vnd.yamaha.through-ngn": { + "source": "iana" + }, + "application/vnd.yamaha.tunnel-udpencap": { + "source": "iana" + }, + "application/vnd.yaoweme": { + "source": "iana" + }, + "application/vnd.yellowriver-custom-menu": { + "source": "iana", + "extensions": ["cmp"] + }, + "application/vnd.youtube.yt": { + "source": "iana" + }, + "application/vnd.zul": { + "source": "iana", + "extensions": ["zir","zirz"] + }, + "application/vnd.zzazz.deck+xml": { + "source": "iana", + "compressible": true, + "extensions": ["zaz"] + }, + "application/voicexml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["vxml"] + }, + "application/voucher-cms+json": { + "source": "iana", + "compressible": true + }, + "application/vq-rtcpxr": { + "source": "iana" + }, + "application/wasm": { + "source": "iana", + "compressible": true, + "extensions": ["wasm"] + }, + "application/watcherinfo+xml": { + "source": "iana", + "compressible": true, + "extensions": ["wif"] + }, + "application/webpush-options+json": { + "source": "iana", + "compressible": true + }, + "application/whoispp-query": { + "source": "iana" + }, + "application/whoispp-response": { + "source": "iana" + }, + "application/widget": { + "source": "iana", + "extensions": ["wgt"] + }, + "application/winhlp": { + "source": "apache", + "extensions": ["hlp"] + }, + "application/wita": { + "source": "iana" + }, + "application/wordperfect5.1": { + "source": "iana" + }, + "application/wsdl+xml": { + "source": "iana", + "compressible": true, + "extensions": ["wsdl"] + }, + "application/wspolicy+xml": { + "source": "iana", + "compressible": true, + "extensions": ["wspolicy"] + }, + "application/x-7z-compressed": { + "source": "apache", + "compressible": false, + "extensions": ["7z"] + }, + "application/x-abiword": { + "source": "apache", + "extensions": ["abw"] + }, + "application/x-ace-compressed": { + "source": "apache", + "extensions": ["ace"] + }, + "application/x-amf": { + "source": "apache" + }, + "application/x-apple-diskimage": { + "source": "apache", + "extensions": ["dmg"] + }, + "application/x-arj": { + "compressible": false, + "extensions": ["arj"] + }, + "application/x-authorware-bin": { + "source": "apache", + "extensions": ["aab","x32","u32","vox"] + }, + "application/x-authorware-map": { + "source": "apache", + "extensions": ["aam"] + }, + "application/x-authorware-seg": { + "source": "apache", + "extensions": ["aas"] + }, + "application/x-bcpio": { + "source": "apache", + "extensions": ["bcpio"] + }, + "application/x-bdoc": { + "compressible": false, + "extensions": ["bdoc"] + }, + "application/x-bittorrent": { + "source": "apache", + "extensions": ["torrent"] + }, + "application/x-blorb": { + "source": "apache", + "extensions": ["blb","blorb"] + }, + "application/x-bzip": { + "source": "apache", + "compressible": false, + "extensions": ["bz"] + }, + "application/x-bzip2": { + "source": "apache", + "compressible": false, + "extensions": ["bz2","boz"] + }, + "application/x-cbr": { + "source": "apache", + "extensions": ["cbr","cba","cbt","cbz","cb7"] + }, + "application/x-cdlink": { + "source": "apache", + "extensions": ["vcd"] + }, + "application/x-cfs-compressed": { + "source": "apache", + "extensions": ["cfs"] + }, + "application/x-chat": { + "source": "apache", + "extensions": ["chat"] + }, + "application/x-chess-pgn": { + "source": "apache", + "extensions": ["pgn"] + }, + "application/x-chrome-extension": { + "extensions": ["crx"] + }, + "application/x-cocoa": { + "source": "nginx", + "extensions": ["cco"] + }, + "application/x-compress": { + "source": "apache" + }, + "application/x-conference": { + "source": "apache", + "extensions": ["nsc"] + }, + "application/x-cpio": { + "source": "apache", + "extensions": ["cpio"] + }, + "application/x-csh": { + "source": "apache", + "extensions": ["csh"] + }, + "application/x-deb": { + "compressible": false + }, + "application/x-debian-package": { + "source": "apache", + "extensions": ["deb","udeb"] + }, + "application/x-dgc-compressed": { + "source": "apache", + "extensions": ["dgc"] + }, + "application/x-director": { + "source": "apache", + "extensions": ["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"] + }, + "application/x-doom": { + "source": "apache", + "extensions": ["wad"] + }, + "application/x-dtbncx+xml": { + "source": "apache", + "compressible": true, + "extensions": ["ncx"] + }, + "application/x-dtbook+xml": { + "source": "apache", + "compressible": true, + "extensions": ["dtb"] + }, + "application/x-dtbresource+xml": { + "source": "apache", + "compressible": true, + "extensions": ["res"] + }, + "application/x-dvi": { + "source": "apache", + "compressible": false, + "extensions": ["dvi"] + }, + "application/x-envoy": { + "source": "apache", + "extensions": ["evy"] + }, + "application/x-eva": { + "source": "apache", + "extensions": ["eva"] + }, + "application/x-font-bdf": { + "source": "apache", + "extensions": ["bdf"] + }, + "application/x-font-dos": { + "source": "apache" + }, + "application/x-font-framemaker": { + "source": "apache" + }, + "application/x-font-ghostscript": { + "source": "apache", + "extensions": ["gsf"] + }, + "application/x-font-libgrx": { + "source": "apache" + }, + "application/x-font-linux-psf": { + "source": "apache", + "extensions": ["psf"] + }, + "application/x-font-pcf": { + "source": "apache", + "extensions": ["pcf"] + }, + "application/x-font-snf": { + "source": "apache", + "extensions": ["snf"] + }, + "application/x-font-speedo": { + "source": "apache" + }, + "application/x-font-sunos-news": { + "source": "apache" + }, + "application/x-font-type1": { + "source": "apache", + "extensions": ["pfa","pfb","pfm","afm"] + }, + "application/x-font-vfont": { + "source": "apache" + }, + "application/x-freearc": { + "source": "apache", + "extensions": ["arc"] + }, + "application/x-futuresplash": { + "source": "apache", + "extensions": ["spl"] + }, + "application/x-gca-compressed": { + "source": "apache", + "extensions": ["gca"] + }, + "application/x-glulx": { + "source": "apache", + "extensions": ["ulx"] + }, + "application/x-gnumeric": { + "source": "apache", + "extensions": ["gnumeric"] + }, + "application/x-gramps-xml": { + "source": "apache", + "extensions": ["gramps"] + }, + "application/x-gtar": { + "source": "apache", + "extensions": ["gtar"] + }, + "application/x-gzip": { + "source": "apache" + }, + "application/x-hdf": { + "source": "apache", + "extensions": ["hdf"] + }, + "application/x-httpd-php": { + "compressible": true, + "extensions": ["php"] + }, + "application/x-install-instructions": { + "source": "apache", + "extensions": ["install"] + }, + "application/x-iso9660-image": { + "source": "apache", + "extensions": ["iso"] + }, + "application/x-iwork-keynote-sffkey": { + "extensions": ["key"] + }, + "application/x-iwork-numbers-sffnumbers": { + "extensions": ["numbers"] + }, + "application/x-iwork-pages-sffpages": { + "extensions": ["pages"] + }, + "application/x-java-archive-diff": { + "source": "nginx", + "extensions": ["jardiff"] + }, + "application/x-java-jnlp-file": { + "source": "apache", + "compressible": false, + "extensions": ["jnlp"] + }, + "application/x-javascript": { + "compressible": true + }, + "application/x-keepass2": { + "extensions": ["kdbx"] + }, + "application/x-latex": { + "source": "apache", + "compressible": false, + "extensions": ["latex"] + }, + "application/x-lua-bytecode": { + "extensions": ["luac"] + }, + "application/x-lzh-compressed": { + "source": "apache", + "extensions": ["lzh","lha"] + }, + "application/x-makeself": { + "source": "nginx", + "extensions": ["run"] + }, + "application/x-mie": { + "source": "apache", + "extensions": ["mie"] + }, + "application/x-mobipocket-ebook": { + "source": "apache", + "extensions": ["prc","mobi"] + }, + "application/x-mpegurl": { + "compressible": false + }, + "application/x-ms-application": { + "source": "apache", + "extensions": ["application"] + }, + "application/x-ms-shortcut": { + "source": "apache", + "extensions": ["lnk"] + }, + "application/x-ms-wmd": { + "source": "apache", + "extensions": ["wmd"] + }, + "application/x-ms-wmz": { + "source": "apache", + "extensions": ["wmz"] + }, + "application/x-ms-xbap": { + "source": "apache", + "extensions": ["xbap"] + }, + "application/x-msaccess": { + "source": "apache", + "extensions": ["mdb"] + }, + "application/x-msbinder": { + "source": "apache", + "extensions": ["obd"] + }, + "application/x-mscardfile": { + "source": "apache", + "extensions": ["crd"] + }, + "application/x-msclip": { + "source": "apache", + "extensions": ["clp"] + }, + "application/x-msdos-program": { + "extensions": ["exe"] + }, + "application/x-msdownload": { + "source": "apache", + "extensions": ["exe","dll","com","bat","msi"] + }, + "application/x-msmediaview": { + "source": "apache", + "extensions": ["mvb","m13","m14"] + }, + "application/x-msmetafile": { + "source": "apache", + "extensions": ["wmf","wmz","emf","emz"] + }, + "application/x-msmoney": { + "source": "apache", + "extensions": ["mny"] + }, + "application/x-mspublisher": { + "source": "apache", + "extensions": ["pub"] + }, + "application/x-msschedule": { + "source": "apache", + "extensions": ["scd"] + }, + "application/x-msterminal": { + "source": "apache", + "extensions": ["trm"] + }, + "application/x-mswrite": { + "source": "apache", + "extensions": ["wri"] + }, + "application/x-netcdf": { + "source": "apache", + "extensions": ["nc","cdf"] + }, + "application/x-ns-proxy-autoconfig": { + "compressible": true, + "extensions": ["pac"] + }, + "application/x-nzb": { + "source": "apache", + "extensions": ["nzb"] + }, + "application/x-perl": { + "source": "nginx", + "extensions": ["pl","pm"] + }, + "application/x-pilot": { + "source": "nginx", + "extensions": ["prc","pdb"] + }, + "application/x-pkcs12": { + "source": "apache", + "compressible": false, + "extensions": ["p12","pfx"] + }, + "application/x-pkcs7-certificates": { + "source": "apache", + "extensions": ["p7b","spc"] + }, + "application/x-pkcs7-certreqresp": { + "source": "apache", + "extensions": ["p7r"] + }, + "application/x-pki-message": { + "source": "iana" + }, + "application/x-rar-compressed": { + "source": "apache", + "compressible": false, + "extensions": ["rar"] + }, + "application/x-redhat-package-manager": { + "source": "nginx", + "extensions": ["rpm"] + }, + "application/x-research-info-systems": { + "source": "apache", + "extensions": ["ris"] + }, + "application/x-sea": { + "source": "nginx", + "extensions": ["sea"] + }, + "application/x-sh": { + "source": "apache", + "compressible": true, + "extensions": ["sh"] + }, + "application/x-shar": { + "source": "apache", + "extensions": ["shar"] + }, + "application/x-shockwave-flash": { + "source": "apache", + "compressible": false, + "extensions": ["swf"] + }, + "application/x-silverlight-app": { + "source": "apache", + "extensions": ["xap"] + }, + "application/x-sql": { + "source": "apache", + "extensions": ["sql"] + }, + "application/x-stuffit": { + "source": "apache", + "compressible": false, + "extensions": ["sit"] + }, + "application/x-stuffitx": { + "source": "apache", + "extensions": ["sitx"] + }, + "application/x-subrip": { + "source": "apache", + "extensions": ["srt"] + }, + "application/x-sv4cpio": { + "source": "apache", + "extensions": ["sv4cpio"] + }, + "application/x-sv4crc": { + "source": "apache", + "extensions": ["sv4crc"] + }, + "application/x-t3vm-image": { + "source": "apache", + "extensions": ["t3"] + }, + "application/x-tads": { + "source": "apache", + "extensions": ["gam"] + }, + "application/x-tar": { + "source": "apache", + "compressible": true, + "extensions": ["tar"] + }, + "application/x-tcl": { + "source": "apache", + "extensions": ["tcl","tk"] + }, + "application/x-tex": { + "source": "apache", + "extensions": ["tex"] + }, + "application/x-tex-tfm": { + "source": "apache", + "extensions": ["tfm"] + }, + "application/x-texinfo": { + "source": "apache", + "extensions": ["texinfo","texi"] + }, + "application/x-tgif": { + "source": "apache", + "extensions": ["obj"] + }, + "application/x-ustar": { + "source": "apache", + "extensions": ["ustar"] + }, + "application/x-virtualbox-hdd": { + "compressible": true, + "extensions": ["hdd"] + }, + "application/x-virtualbox-ova": { + "compressible": true, + "extensions": ["ova"] + }, + "application/x-virtualbox-ovf": { + "compressible": true, + "extensions": ["ovf"] + }, + "application/x-virtualbox-vbox": { + "compressible": true, + "extensions": ["vbox"] + }, + "application/x-virtualbox-vbox-extpack": { + "compressible": false, + "extensions": ["vbox-extpack"] + }, + "application/x-virtualbox-vdi": { + "compressible": true, + "extensions": ["vdi"] + }, + "application/x-virtualbox-vhd": { + "compressible": true, + "extensions": ["vhd"] + }, + "application/x-virtualbox-vmdk": { + "compressible": true, + "extensions": ["vmdk"] + }, + "application/x-wais-source": { + "source": "apache", + "extensions": ["src"] + }, + "application/x-web-app-manifest+json": { + "compressible": true, + "extensions": ["webapp"] + }, + "application/x-www-form-urlencoded": { + "source": "iana", + "compressible": true + }, + "application/x-x509-ca-cert": { + "source": "iana", + "extensions": ["der","crt","pem"] + }, + "application/x-x509-ca-ra-cert": { + "source": "iana" + }, + "application/x-x509-next-ca-cert": { + "source": "iana" + }, + "application/x-xfig": { + "source": "apache", + "extensions": ["fig"] + }, + "application/x-xliff+xml": { + "source": "apache", + "compressible": true, + "extensions": ["xlf"] + }, + "application/x-xpinstall": { + "source": "apache", + "compressible": false, + "extensions": ["xpi"] + }, + "application/x-xz": { + "source": "apache", + "extensions": ["xz"] + }, + "application/x-zmachine": { + "source": "apache", + "extensions": ["z1","z2","z3","z4","z5","z6","z7","z8"] + }, + "application/x400-bp": { + "source": "iana" + }, + "application/xacml+xml": { + "source": "iana", + "compressible": true + }, + "application/xaml+xml": { + "source": "apache", + "compressible": true, + "extensions": ["xaml"] + }, + "application/xcap-att+xml": { + "source": "iana", + "compressible": true, + "extensions": ["xav"] + }, + "application/xcap-caps+xml": { + "source": "iana", + "compressible": true, + "extensions": ["xca"] + }, + "application/xcap-diff+xml": { + "source": "iana", + "compressible": true, + "extensions": ["xdf"] + }, + "application/xcap-el+xml": { + "source": "iana", + "compressible": true, + "extensions": ["xel"] + }, + "application/xcap-error+xml": { + "source": "iana", + "compressible": true + }, + "application/xcap-ns+xml": { + "source": "iana", + "compressible": true, + "extensions": ["xns"] + }, + "application/xcon-conference-info+xml": { + "source": "iana", + "compressible": true + }, + "application/xcon-conference-info-diff+xml": { + "source": "iana", + "compressible": true + }, + "application/xenc+xml": { + "source": "iana", + "compressible": true, + "extensions": ["xenc"] + }, + "application/xhtml+xml": { + "source": "iana", + "compressible": true, + "extensions": ["xhtml","xht"] + }, + "application/xhtml-voice+xml": { + "source": "apache", + "compressible": true + }, + "application/xliff+xml": { + "source": "iana", + "compressible": true, + "extensions": ["xlf"] + }, + "application/xml": { + "source": "iana", + "compressible": true, + "extensions": ["xml","xsl","xsd","rng"] + }, + "application/xml-dtd": { + "source": "iana", + "compressible": true, + "extensions": ["dtd"] + }, + "application/xml-external-parsed-entity": { + "source": "iana" + }, + "application/xml-patch+xml": { + "source": "iana", + "compressible": true + }, + "application/xmpp+xml": { + "source": "iana", + "compressible": true + }, + "application/xop+xml": { + "source": "iana", + "compressible": true, + "extensions": ["xop"] + }, + "application/xproc+xml": { + "source": "apache", + "compressible": true, + "extensions": ["xpl"] + }, + "application/xslt+xml": { + "source": "iana", + "compressible": true, + "extensions": ["xsl","xslt"] + }, + "application/xspf+xml": { + "source": "apache", + "compressible": true, + "extensions": ["xspf"] + }, + "application/xv+xml": { + "source": "iana", + "compressible": true, + "extensions": ["mxml","xhvml","xvml","xvm"] + }, + "application/yang": { + "source": "iana", + "extensions": ["yang"] + }, + "application/yang-data+json": { + "source": "iana", + "compressible": true + }, + "application/yang-data+xml": { + "source": "iana", + "compressible": true + }, + "application/yang-patch+json": { + "source": "iana", + "compressible": true + }, + "application/yang-patch+xml": { + "source": "iana", + "compressible": true + }, + "application/yin+xml": { + "source": "iana", + "compressible": true, + "extensions": ["yin"] + }, + "application/zip": { + "source": "iana", + "compressible": false, + "extensions": ["zip"] + }, + "application/zlib": { + "source": "iana" + }, + "application/zstd": { + "source": "iana" + }, + "audio/1d-interleaved-parityfec": { + "source": "iana" + }, + "audio/32kadpcm": { + "source": "iana" + }, + "audio/3gpp": { + "source": "iana", + "compressible": false, + "extensions": ["3gpp"] + }, + "audio/3gpp2": { + "source": "iana" + }, + "audio/aac": { + "source": "iana" + }, + "audio/ac3": { + "source": "iana" + }, + "audio/adpcm": { + "source": "apache", + "extensions": ["adp"] + }, + "audio/amr": { + "source": "iana", + "extensions": ["amr"] + }, + "audio/amr-wb": { + "source": "iana" + }, + "audio/amr-wb+": { + "source": "iana" + }, + "audio/aptx": { + "source": "iana" + }, + "audio/asc": { + "source": "iana" + }, + "audio/atrac-advanced-lossless": { + "source": "iana" + }, + "audio/atrac-x": { + "source": "iana" + }, + "audio/atrac3": { + "source": "iana" + }, + "audio/basic": { + "source": "iana", + "compressible": false, + "extensions": ["au","snd"] + }, + "audio/bv16": { + "source": "iana" + }, + "audio/bv32": { + "source": "iana" + }, + "audio/clearmode": { + "source": "iana" + }, + "audio/cn": { + "source": "iana" + }, + "audio/dat12": { + "source": "iana" + }, + "audio/dls": { + "source": "iana" + }, + "audio/dsr-es201108": { + "source": "iana" + }, + "audio/dsr-es202050": { + "source": "iana" + }, + "audio/dsr-es202211": { + "source": "iana" + }, + "audio/dsr-es202212": { + "source": "iana" + }, + "audio/dv": { + "source": "iana" + }, + "audio/dvi4": { + "source": "iana" + }, + "audio/eac3": { + "source": "iana" + }, + "audio/encaprtp": { + "source": "iana" + }, + "audio/evrc": { + "source": "iana" + }, + "audio/evrc-qcp": { + "source": "iana" + }, + "audio/evrc0": { + "source": "iana" + }, + "audio/evrc1": { + "source": "iana" + }, + "audio/evrcb": { + "source": "iana" + }, + "audio/evrcb0": { + "source": "iana" + }, + "audio/evrcb1": { + "source": "iana" + }, + "audio/evrcnw": { + "source": "iana" + }, + "audio/evrcnw0": { + "source": "iana" + }, + "audio/evrcnw1": { + "source": "iana" + }, + "audio/evrcwb": { + "source": "iana" + }, + "audio/evrcwb0": { + "source": "iana" + }, + "audio/evrcwb1": { + "source": "iana" + }, + "audio/evs": { + "source": "iana" + }, + "audio/flexfec": { + "source": "iana" + }, + "audio/fwdred": { + "source": "iana" + }, + "audio/g711-0": { + "source": "iana" + }, + "audio/g719": { + "source": "iana" + }, + "audio/g722": { + "source": "iana" + }, + "audio/g7221": { + "source": "iana" + }, + "audio/g723": { + "source": "iana" + }, + "audio/g726-16": { + "source": "iana" + }, + "audio/g726-24": { + "source": "iana" + }, + "audio/g726-32": { + "source": "iana" + }, + "audio/g726-40": { + "source": "iana" + }, + "audio/g728": { + "source": "iana" + }, + "audio/g729": { + "source": "iana" + }, + "audio/g7291": { + "source": "iana" + }, + "audio/g729d": { + "source": "iana" + }, + "audio/g729e": { + "source": "iana" + }, + "audio/gsm": { + "source": "iana" + }, + "audio/gsm-efr": { + "source": "iana" + }, + "audio/gsm-hr-08": { + "source": "iana" + }, + "audio/ilbc": { + "source": "iana" + }, + "audio/ip-mr_v2.5": { + "source": "iana" + }, + "audio/isac": { + "source": "apache" + }, + "audio/l16": { + "source": "iana" + }, + "audio/l20": { + "source": "iana" + }, + "audio/l24": { + "source": "iana", + "compressible": false + }, + "audio/l8": { + "source": "iana" + }, + "audio/lpc": { + "source": "iana" + }, + "audio/melp": { + "source": "iana" + }, + "audio/melp1200": { + "source": "iana" + }, + "audio/melp2400": { + "source": "iana" + }, + "audio/melp600": { + "source": "iana" + }, + "audio/mhas": { + "source": "iana" + }, + "audio/midi": { + "source": "apache", + "extensions": ["mid","midi","kar","rmi"] + }, + "audio/mobile-xmf": { + "source": "iana", + "extensions": ["mxmf"] + }, + "audio/mp3": { + "compressible": false, + "extensions": ["mp3"] + }, + "audio/mp4": { + "source": "iana", + "compressible": false, + "extensions": ["m4a","mp4a"] + }, + "audio/mp4a-latm": { + "source": "iana" + }, + "audio/mpa": { + "source": "iana" + }, + "audio/mpa-robust": { + "source": "iana" + }, + "audio/mpeg": { + "source": "iana", + "compressible": false, + "extensions": ["mpga","mp2","mp2a","mp3","m2a","m3a"] + }, + "audio/mpeg4-generic": { + "source": "iana" + }, + "audio/musepack": { + "source": "apache" + }, + "audio/ogg": { + "source": "iana", + "compressible": false, + "extensions": ["oga","ogg","spx","opus"] + }, + "audio/opus": { + "source": "iana" + }, + "audio/parityfec": { + "source": "iana" + }, + "audio/pcma": { + "source": "iana" + }, + "audio/pcma-wb": { + "source": "iana" + }, + "audio/pcmu": { + "source": "iana" + }, + "audio/pcmu-wb": { + "source": "iana" + }, + "audio/prs.sid": { + "source": "iana" + }, + "audio/qcelp": { + "source": "iana" + }, + "audio/raptorfec": { + "source": "iana" + }, + "audio/red": { + "source": "iana" + }, + "audio/rtp-enc-aescm128": { + "source": "iana" + }, + "audio/rtp-midi": { + "source": "iana" + }, + "audio/rtploopback": { + "source": "iana" + }, + "audio/rtx": { + "source": "iana" + }, + "audio/s3m": { + "source": "apache", + "extensions": ["s3m"] + }, + "audio/scip": { + "source": "iana" + }, + "audio/silk": { + "source": "apache", + "extensions": ["sil"] + }, + "audio/smv": { + "source": "iana" + }, + "audio/smv-qcp": { + "source": "iana" + }, + "audio/smv0": { + "source": "iana" + }, + "audio/sofa": { + "source": "iana" + }, + "audio/sp-midi": { + "source": "iana" + }, + "audio/speex": { + "source": "iana" + }, + "audio/t140c": { + "source": "iana" + }, + "audio/t38": { + "source": "iana" + }, + "audio/telephone-event": { + "source": "iana" + }, + "audio/tetra_acelp": { + "source": "iana" + }, + "audio/tetra_acelp_bb": { + "source": "iana" + }, + "audio/tone": { + "source": "iana" + }, + "audio/tsvcis": { + "source": "iana" + }, + "audio/uemclip": { + "source": "iana" + }, + "audio/ulpfec": { + "source": "iana" + }, + "audio/usac": { + "source": "iana" + }, + "audio/vdvi": { + "source": "iana" + }, + "audio/vmr-wb": { + "source": "iana" + }, + "audio/vnd.3gpp.iufp": { + "source": "iana" + }, + "audio/vnd.4sb": { + "source": "iana" + }, + "audio/vnd.audiokoz": { + "source": "iana" + }, + "audio/vnd.celp": { + "source": "iana" + }, + "audio/vnd.cisco.nse": { + "source": "iana" + }, + "audio/vnd.cmles.radio-events": { + "source": "iana" + }, + "audio/vnd.cns.anp1": { + "source": "iana" + }, + "audio/vnd.cns.inf1": { + "source": "iana" + }, + "audio/vnd.dece.audio": { + "source": "iana", + "extensions": ["uva","uvva"] + }, + "audio/vnd.digital-winds": { + "source": "iana", + "extensions": ["eol"] + }, + "audio/vnd.dlna.adts": { + "source": "iana" + }, + "audio/vnd.dolby.heaac.1": { + "source": "iana" + }, + "audio/vnd.dolby.heaac.2": { + "source": "iana" + }, + "audio/vnd.dolby.mlp": { + "source": "iana" + }, + "audio/vnd.dolby.mps": { + "source": "iana" + }, + "audio/vnd.dolby.pl2": { + "source": "iana" + }, + "audio/vnd.dolby.pl2x": { + "source": "iana" + }, + "audio/vnd.dolby.pl2z": { + "source": "iana" + }, + "audio/vnd.dolby.pulse.1": { + "source": "iana" + }, + "audio/vnd.dra": { + "source": "iana", + "extensions": ["dra"] + }, + "audio/vnd.dts": { + "source": "iana", + "extensions": ["dts"] + }, + "audio/vnd.dts.hd": { + "source": "iana", + "extensions": ["dtshd"] + }, + "audio/vnd.dts.uhd": { + "source": "iana" + }, + "audio/vnd.dvb.file": { + "source": "iana" + }, + "audio/vnd.everad.plj": { + "source": "iana" + }, + "audio/vnd.hns.audio": { + "source": "iana" + }, + "audio/vnd.lucent.voice": { + "source": "iana", + "extensions": ["lvp"] + }, + "audio/vnd.ms-playready.media.pya": { + "source": "iana", + "extensions": ["pya"] + }, + "audio/vnd.nokia.mobile-xmf": { + "source": "iana" + }, + "audio/vnd.nortel.vbk": { + "source": "iana" + }, + "audio/vnd.nuera.ecelp4800": { + "source": "iana", + "extensions": ["ecelp4800"] + }, + "audio/vnd.nuera.ecelp7470": { + "source": "iana", + "extensions": ["ecelp7470"] + }, + "audio/vnd.nuera.ecelp9600": { + "source": "iana", + "extensions": ["ecelp9600"] + }, + "audio/vnd.octel.sbc": { + "source": "iana" + }, + "audio/vnd.presonus.multitrack": { + "source": "iana" + }, + "audio/vnd.qcelp": { + "source": "iana" + }, + "audio/vnd.rhetorex.32kadpcm": { + "source": "iana" + }, + "audio/vnd.rip": { + "source": "iana", + "extensions": ["rip"] + }, + "audio/vnd.rn-realaudio": { + "compressible": false + }, + "audio/vnd.sealedmedia.softseal.mpeg": { + "source": "iana" + }, + "audio/vnd.vmx.cvsd": { + "source": "iana" + }, + "audio/vnd.wave": { + "compressible": false + }, + "audio/vorbis": { + "source": "iana", + "compressible": false + }, + "audio/vorbis-config": { + "source": "iana" + }, + "audio/wav": { + "compressible": false, + "extensions": ["wav"] + }, + "audio/wave": { + "compressible": false, + "extensions": ["wav"] + }, + "audio/webm": { + "source": "apache", + "compressible": false, + "extensions": ["weba"] + }, + "audio/x-aac": { + "source": "apache", + "compressible": false, + "extensions": ["aac"] + }, + "audio/x-aiff": { + "source": "apache", + "extensions": ["aif","aiff","aifc"] + }, + "audio/x-caf": { + "source": "apache", + "compressible": false, + "extensions": ["caf"] + }, + "audio/x-flac": { + "source": "apache", + "extensions": ["flac"] + }, + "audio/x-m4a": { + "source": "nginx", + "extensions": ["m4a"] + }, + "audio/x-matroska": { + "source": "apache", + "extensions": ["mka"] + }, + "audio/x-mpegurl": { + "source": "apache", + "extensions": ["m3u"] + }, + "audio/x-ms-wax": { + "source": "apache", + "extensions": ["wax"] + }, + "audio/x-ms-wma": { + "source": "apache", + "extensions": ["wma"] + }, + "audio/x-pn-realaudio": { + "source": "apache", + "extensions": ["ram","ra"] + }, + "audio/x-pn-realaudio-plugin": { + "source": "apache", + "extensions": ["rmp"] + }, + "audio/x-realaudio": { + "source": "nginx", + "extensions": ["ra"] + }, + "audio/x-tta": { + "source": "apache" + }, + "audio/x-wav": { + "source": "apache", + "extensions": ["wav"] + }, + "audio/xm": { + "source": "apache", + "extensions": ["xm"] + }, + "chemical/x-cdx": { + "source": "apache", + "extensions": ["cdx"] + }, + "chemical/x-cif": { + "source": "apache", + "extensions": ["cif"] + }, + "chemical/x-cmdf": { + "source": "apache", + "extensions": ["cmdf"] + }, + "chemical/x-cml": { + "source": "apache", + "extensions": ["cml"] + }, + "chemical/x-csml": { + "source": "apache", + "extensions": ["csml"] + }, + "chemical/x-pdb": { + "source": "apache" + }, + "chemical/x-xyz": { + "source": "apache", + "extensions": ["xyz"] + }, + "font/collection": { + "source": "iana", + "extensions": ["ttc"] + }, + "font/otf": { + "source": "iana", + "compressible": true, + "extensions": ["otf"] + }, + "font/sfnt": { + "source": "iana" + }, + "font/ttf": { + "source": "iana", + "compressible": true, + "extensions": ["ttf"] + }, + "font/woff": { + "source": "iana", + "extensions": ["woff"] + }, + "font/woff2": { + "source": "iana", + "extensions": ["woff2"] + }, + "image/aces": { + "source": "iana", + "extensions": ["exr"] + }, + "image/apng": { + "compressible": false, + "extensions": ["apng"] + }, + "image/avci": { + "source": "iana", + "extensions": ["avci"] + }, + "image/avcs": { + "source": "iana", + "extensions": ["avcs"] + }, + "image/avif": { + "source": "iana", + "compressible": false, + "extensions": ["avif"] + }, + "image/bmp": { + "source": "iana", + "compressible": true, + "extensions": ["bmp"] + }, + "image/cgm": { + "source": "iana", + "extensions": ["cgm"] + }, + "image/dicom-rle": { + "source": "iana", + "extensions": ["drle"] + }, + "image/emf": { + "source": "iana", + "extensions": ["emf"] + }, + "image/fits": { + "source": "iana", + "extensions": ["fits"] + }, + "image/g3fax": { + "source": "iana", + "extensions": ["g3"] + }, + "image/gif": { + "source": "iana", + "compressible": false, + "extensions": ["gif"] + }, + "image/heic": { + "source": "iana", + "extensions": ["heic"] + }, + "image/heic-sequence": { + "source": "iana", + "extensions": ["heics"] + }, + "image/heif": { + "source": "iana", + "extensions": ["heif"] + }, + "image/heif-sequence": { + "source": "iana", + "extensions": ["heifs"] + }, + "image/hej2k": { + "source": "iana", + "extensions": ["hej2"] + }, + "image/hsj2": { + "source": "iana", + "extensions": ["hsj2"] + }, + "image/ief": { + "source": "iana", + "extensions": ["ief"] + }, + "image/jls": { + "source": "iana", + "extensions": ["jls"] + }, + "image/jp2": { + "source": "iana", + "compressible": false, + "extensions": ["jp2","jpg2"] + }, + "image/jpeg": { + "source": "iana", + "compressible": false, + "extensions": ["jpeg","jpg","jpe"] + }, + "image/jph": { + "source": "iana", + "extensions": ["jph"] + }, + "image/jphc": { + "source": "iana", + "extensions": ["jhc"] + }, + "image/jpm": { + "source": "iana", + "compressible": false, + "extensions": ["jpm"] + }, + "image/jpx": { + "source": "iana", + "compressible": false, + "extensions": ["jpx","jpf"] + }, + "image/jxr": { + "source": "iana", + "extensions": ["jxr"] + }, + "image/jxra": { + "source": "iana", + "extensions": ["jxra"] + }, + "image/jxrs": { + "source": "iana", + "extensions": ["jxrs"] + }, + "image/jxs": { + "source": "iana", + "extensions": ["jxs"] + }, + "image/jxsc": { + "source": "iana", + "extensions": ["jxsc"] + }, + "image/jxsi": { + "source": "iana", + "extensions": ["jxsi"] + }, + "image/jxss": { + "source": "iana", + "extensions": ["jxss"] + }, + "image/ktx": { + "source": "iana", + "extensions": ["ktx"] + }, + "image/ktx2": { + "source": "iana", + "extensions": ["ktx2"] + }, + "image/naplps": { + "source": "iana" + }, + "image/pjpeg": { + "compressible": false + }, + "image/png": { + "source": "iana", + "compressible": false, + "extensions": ["png"] + }, + "image/prs.btif": { + "source": "iana", + "extensions": ["btif"] + }, + "image/prs.pti": { + "source": "iana", + "extensions": ["pti"] + }, + "image/pwg-raster": { + "source": "iana" + }, + "image/sgi": { + "source": "apache", + "extensions": ["sgi"] + }, + "image/svg+xml": { + "source": "iana", + "compressible": true, + "extensions": ["svg","svgz"] + }, + "image/t38": { + "source": "iana", + "extensions": ["t38"] + }, + "image/tiff": { + "source": "iana", + "compressible": false, + "extensions": ["tif","tiff"] + }, + "image/tiff-fx": { + "source": "iana", + "extensions": ["tfx"] + }, + "image/vnd.adobe.photoshop": { + "source": "iana", + "compressible": true, + "extensions": ["psd"] + }, + "image/vnd.airzip.accelerator.azv": { + "source": "iana", + "extensions": ["azv"] + }, + "image/vnd.cns.inf2": { + "source": "iana" + }, + "image/vnd.dece.graphic": { + "source": "iana", + "extensions": ["uvi","uvvi","uvg","uvvg"] + }, + "image/vnd.djvu": { + "source": "iana", + "extensions": ["djvu","djv"] + }, + "image/vnd.dvb.subtitle": { + "source": "iana", + "extensions": ["sub"] + }, + "image/vnd.dwg": { + "source": "iana", + "extensions": ["dwg"] + }, + "image/vnd.dxf": { + "source": "iana", + "extensions": ["dxf"] + }, + "image/vnd.fastbidsheet": { + "source": "iana", + "extensions": ["fbs"] + }, + "image/vnd.fpx": { + "source": "iana", + "extensions": ["fpx"] + }, + "image/vnd.fst": { + "source": "iana", + "extensions": ["fst"] + }, + "image/vnd.fujixerox.edmics-mmr": { + "source": "iana", + "extensions": ["mmr"] + }, + "image/vnd.fujixerox.edmics-rlc": { + "source": "iana", + "extensions": ["rlc"] + }, + "image/vnd.globalgraphics.pgb": { + "source": "iana" + }, + "image/vnd.microsoft.icon": { + "source": "iana", + "compressible": true, + "extensions": ["ico"] + }, + "image/vnd.mix": { + "source": "iana" + }, + "image/vnd.mozilla.apng": { + "source": "iana" + }, + "image/vnd.ms-dds": { + "compressible": true, + "extensions": ["dds"] + }, + "image/vnd.ms-modi": { + "source": "iana", + "extensions": ["mdi"] + }, + "image/vnd.ms-photo": { + "source": "apache", + "extensions": ["wdp"] + }, + "image/vnd.net-fpx": { + "source": "iana", + "extensions": ["npx"] + }, + "image/vnd.pco.b16": { + "source": "iana", + "extensions": ["b16"] + }, + "image/vnd.radiance": { + "source": "iana" + }, + "image/vnd.sealed.png": { + "source": "iana" + }, + "image/vnd.sealedmedia.softseal.gif": { + "source": "iana" + }, + "image/vnd.sealedmedia.softseal.jpg": { + "source": "iana" + }, + "image/vnd.svf": { + "source": "iana" + }, + "image/vnd.tencent.tap": { + "source": "iana", + "extensions": ["tap"] + }, + "image/vnd.valve.source.texture": { + "source": "iana", + "extensions": ["vtf"] + }, + "image/vnd.wap.wbmp": { + "source": "iana", + "extensions": ["wbmp"] + }, + "image/vnd.xiff": { + "source": "iana", + "extensions": ["xif"] + }, + "image/vnd.zbrush.pcx": { + "source": "iana", + "extensions": ["pcx"] + }, + "image/webp": { + "source": "apache", + "extensions": ["webp"] + }, + "image/wmf": { + "source": "iana", + "extensions": ["wmf"] + }, + "image/x-3ds": { + "source": "apache", + "extensions": ["3ds"] + }, + "image/x-cmu-raster": { + "source": "apache", + "extensions": ["ras"] + }, + "image/x-cmx": { + "source": "apache", + "extensions": ["cmx"] + }, + "image/x-freehand": { + "source": "apache", + "extensions": ["fh","fhc","fh4","fh5","fh7"] + }, + "image/x-icon": { + "source": "apache", + "compressible": true, + "extensions": ["ico"] + }, + "image/x-jng": { + "source": "nginx", + "extensions": ["jng"] + }, + "image/x-mrsid-image": { + "source": "apache", + "extensions": ["sid"] + }, + "image/x-ms-bmp": { + "source": "nginx", + "compressible": true, + "extensions": ["bmp"] + }, + "image/x-pcx": { + "source": "apache", + "extensions": ["pcx"] + }, + "image/x-pict": { + "source": "apache", + "extensions": ["pic","pct"] + }, + "image/x-portable-anymap": { + "source": "apache", + "extensions": ["pnm"] + }, + "image/x-portable-bitmap": { + "source": "apache", + "extensions": ["pbm"] + }, + "image/x-portable-graymap": { + "source": "apache", + "extensions": ["pgm"] + }, + "image/x-portable-pixmap": { + "source": "apache", + "extensions": ["ppm"] + }, + "image/x-rgb": { + "source": "apache", + "extensions": ["rgb"] + }, + "image/x-tga": { + "source": "apache", + "extensions": ["tga"] + }, + "image/x-xbitmap": { + "source": "apache", + "extensions": ["xbm"] + }, + "image/x-xcf": { + "compressible": false + }, + "image/x-xpixmap": { + "source": "apache", + "extensions": ["xpm"] + }, + "image/x-xwindowdump": { + "source": "apache", + "extensions": ["xwd"] + }, + "message/cpim": { + "source": "iana" + }, + "message/delivery-status": { + "source": "iana" + }, + "message/disposition-notification": { + "source": "iana", + "extensions": [ + "disposition-notification" + ] + }, + "message/external-body": { + "source": "iana" + }, + "message/feedback-report": { + "source": "iana" + }, + "message/global": { + "source": "iana", + "extensions": ["u8msg"] + }, + "message/global-delivery-status": { + "source": "iana", + "extensions": ["u8dsn"] + }, + "message/global-disposition-notification": { + "source": "iana", + "extensions": ["u8mdn"] + }, + "message/global-headers": { + "source": "iana", + "extensions": ["u8hdr"] + }, + "message/http": { + "source": "iana", + "compressible": false + }, + "message/imdn+xml": { + "source": "iana", + "compressible": true + }, + "message/news": { + "source": "iana" + }, + "message/partial": { + "source": "iana", + "compressible": false + }, + "message/rfc822": { + "source": "iana", + "compressible": true, + "extensions": ["eml","mime"] + }, + "message/s-http": { + "source": "iana" + }, + "message/sip": { + "source": "iana" + }, + "message/sipfrag": { + "source": "iana" + }, + "message/tracking-status": { + "source": "iana" + }, + "message/vnd.si.simp": { + "source": "iana" + }, + "message/vnd.wfa.wsc": { + "source": "iana", + "extensions": ["wsc"] + }, + "model/3mf": { + "source": "iana", + "extensions": ["3mf"] + }, + "model/e57": { + "source": "iana" + }, + "model/gltf+json": { + "source": "iana", + "compressible": true, + "extensions": ["gltf"] + }, + "model/gltf-binary": { + "source": "iana", + "compressible": true, + "extensions": ["glb"] + }, + "model/iges": { + "source": "iana", + "compressible": false, + "extensions": ["igs","iges"] + }, + "model/mesh": { + "source": "iana", + "compressible": false, + "extensions": ["msh","mesh","silo"] + }, + "model/mtl": { + "source": "iana", + "extensions": ["mtl"] + }, + "model/obj": { + "source": "iana", + "extensions": ["obj"] + }, + "model/step": { + "source": "iana" + }, + "model/step+xml": { + "source": "iana", + "compressible": true, + "extensions": ["stpx"] + }, + "model/step+zip": { + "source": "iana", + "compressible": false, + "extensions": ["stpz"] + }, + "model/step-xml+zip": { + "source": "iana", + "compressible": false, + "extensions": ["stpxz"] + }, + "model/stl": { + "source": "iana", + "extensions": ["stl"] + }, + "model/vnd.collada+xml": { + "source": "iana", + "compressible": true, + "extensions": ["dae"] + }, + "model/vnd.dwf": { + "source": "iana", + "extensions": ["dwf"] + }, + "model/vnd.flatland.3dml": { + "source": "iana" + }, + "model/vnd.gdl": { + "source": "iana", + "extensions": ["gdl"] + }, + "model/vnd.gs-gdl": { + "source": "apache" + }, + "model/vnd.gs.gdl": { + "source": "iana" + }, + "model/vnd.gtw": { + "source": "iana", + "extensions": ["gtw"] + }, + "model/vnd.moml+xml": { + "source": "iana", + "compressible": true + }, + "model/vnd.mts": { + "source": "iana", + "extensions": ["mts"] + }, + "model/vnd.opengex": { + "source": "iana", + "extensions": ["ogex"] + }, + "model/vnd.parasolid.transmit.binary": { + "source": "iana", + "extensions": ["x_b"] + }, + "model/vnd.parasolid.transmit.text": { + "source": "iana", + "extensions": ["x_t"] + }, + "model/vnd.pytha.pyox": { + "source": "iana" + }, + "model/vnd.rosette.annotated-data-model": { + "source": "iana" + }, + "model/vnd.sap.vds": { + "source": "iana", + "extensions": ["vds"] + }, + "model/vnd.usdz+zip": { + "source": "iana", + "compressible": false, + "extensions": ["usdz"] + }, + "model/vnd.valve.source.compiled-map": { + "source": "iana", + "extensions": ["bsp"] + }, + "model/vnd.vtu": { + "source": "iana", + "extensions": ["vtu"] + }, + "model/vrml": { + "source": "iana", + "compressible": false, + "extensions": ["wrl","vrml"] + }, + "model/x3d+binary": { + "source": "apache", + "compressible": false, + "extensions": ["x3db","x3dbz"] + }, + "model/x3d+fastinfoset": { + "source": "iana", + "extensions": ["x3db"] + }, + "model/x3d+vrml": { + "source": "apache", + "compressible": false, + "extensions": ["x3dv","x3dvz"] + }, + "model/x3d+xml": { + "source": "iana", + "compressible": true, + "extensions": ["x3d","x3dz"] + }, + "model/x3d-vrml": { + "source": "iana", + "extensions": ["x3dv"] + }, + "multipart/alternative": { + "source": "iana", + "compressible": false + }, + "multipart/appledouble": { + "source": "iana" + }, + "multipart/byteranges": { + "source": "iana" + }, + "multipart/digest": { + "source": "iana" + }, + "multipart/encrypted": { + "source": "iana", + "compressible": false + }, + "multipart/form-data": { + "source": "iana", + "compressible": false + }, + "multipart/header-set": { + "source": "iana" + }, + "multipart/mixed": { + "source": "iana" + }, + "multipart/multilingual": { + "source": "iana" + }, + "multipart/parallel": { + "source": "iana" + }, + "multipart/related": { + "source": "iana", + "compressible": false + }, + "multipart/report": { + "source": "iana" + }, + "multipart/signed": { + "source": "iana", + "compressible": false + }, + "multipart/vnd.bint.med-plus": { + "source": "iana" + }, + "multipart/voice-message": { + "source": "iana" + }, + "multipart/x-mixed-replace": { + "source": "iana" + }, + "text/1d-interleaved-parityfec": { + "source": "iana" + }, + "text/cache-manifest": { + "source": "iana", + "compressible": true, + "extensions": ["appcache","manifest"] + }, + "text/calendar": { + "source": "iana", + "extensions": ["ics","ifb"] + }, + "text/calender": { + "compressible": true + }, + "text/cmd": { + "compressible": true + }, + "text/coffeescript": { + "extensions": ["coffee","litcoffee"] + }, + "text/cql": { + "source": "iana" + }, + "text/cql-expression": { + "source": "iana" + }, + "text/cql-identifier": { + "source": "iana" + }, + "text/css": { + "source": "iana", + "charset": "UTF-8", + "compressible": true, + "extensions": ["css"] + }, + "text/csv": { + "source": "iana", + "compressible": true, + "extensions": ["csv"] + }, + "text/csv-schema": { + "source": "iana" + }, + "text/directory": { + "source": "iana" + }, + "text/dns": { + "source": "iana" + }, + "text/ecmascript": { + "source": "iana" + }, + "text/encaprtp": { + "source": "iana" + }, + "text/enriched": { + "source": "iana" + }, + "text/fhirpath": { + "source": "iana" + }, + "text/flexfec": { + "source": "iana" + }, + "text/fwdred": { + "source": "iana" + }, + "text/gff3": { + "source": "iana" + }, + "text/grammar-ref-list": { + "source": "iana" + }, + "text/html": { + "source": "iana", + "compressible": true, + "extensions": ["html","htm","shtml"] + }, + "text/jade": { + "extensions": ["jade"] + }, + "text/javascript": { + "source": "iana", + "compressible": true + }, + "text/jcr-cnd": { + "source": "iana" + }, + "text/jsx": { + "compressible": true, + "extensions": ["jsx"] + }, + "text/less": { + "compressible": true, + "extensions": ["less"] + }, + "text/markdown": { + "source": "iana", + "compressible": true, + "extensions": ["markdown","md"] + }, + "text/mathml": { + "source": "nginx", + "extensions": ["mml"] + }, + "text/mdx": { + "compressible": true, + "extensions": ["mdx"] + }, + "text/mizar": { + "source": "iana" + }, + "text/n3": { + "source": "iana", + "charset": "UTF-8", + "compressible": true, + "extensions": ["n3"] + }, + "text/parameters": { + "source": "iana", + "charset": "UTF-8" + }, + "text/parityfec": { + "source": "iana" + }, + "text/plain": { + "source": "iana", + "compressible": true, + "extensions": ["txt","text","conf","def","list","log","in","ini"] + }, + "text/provenance-notation": { + "source": "iana", + "charset": "UTF-8" + }, + "text/prs.fallenstein.rst": { + "source": "iana" + }, + "text/prs.lines.tag": { + "source": "iana", + "extensions": ["dsc"] + }, + "text/prs.prop.logic": { + "source": "iana" + }, + "text/raptorfec": { + "source": "iana" + }, + "text/red": { + "source": "iana" + }, + "text/rfc822-headers": { + "source": "iana" + }, + "text/richtext": { + "source": "iana", + "compressible": true, + "extensions": ["rtx"] + }, + "text/rtf": { + "source": "iana", + "compressible": true, + "extensions": ["rtf"] + }, + "text/rtp-enc-aescm128": { + "source": "iana" + }, + "text/rtploopback": { + "source": "iana" + }, + "text/rtx": { + "source": "iana" + }, + "text/sgml": { + "source": "iana", + "extensions": ["sgml","sgm"] + }, + "text/shaclc": { + "source": "iana" + }, + "text/shex": { + "source": "iana", + "extensions": ["shex"] + }, + "text/slim": { + "extensions": ["slim","slm"] + }, + "text/spdx": { + "source": "iana", + "extensions": ["spdx"] + }, + "text/strings": { + "source": "iana" + }, + "text/stylus": { + "extensions": ["stylus","styl"] + }, + "text/t140": { + "source": "iana" + }, + "text/tab-separated-values": { + "source": "iana", + "compressible": true, + "extensions": ["tsv"] + }, + "text/troff": { + "source": "iana", + "extensions": ["t","tr","roff","man","me","ms"] + }, + "text/turtle": { + "source": "iana", + "charset": "UTF-8", + "extensions": ["ttl"] + }, + "text/ulpfec": { + "source": "iana" + }, + "text/uri-list": { + "source": "iana", + "compressible": true, + "extensions": ["uri","uris","urls"] + }, + "text/vcard": { + "source": "iana", + "compressible": true, + "extensions": ["vcard"] + }, + "text/vnd.a": { + "source": "iana" + }, + "text/vnd.abc": { + "source": "iana" + }, + "text/vnd.ascii-art": { + "source": "iana" + }, + "text/vnd.curl": { + "source": "iana", + "extensions": ["curl"] + }, + "text/vnd.curl.dcurl": { + "source": "apache", + "extensions": ["dcurl"] + }, + "text/vnd.curl.mcurl": { + "source": "apache", + "extensions": ["mcurl"] + }, + "text/vnd.curl.scurl": { + "source": "apache", + "extensions": ["scurl"] + }, + "text/vnd.debian.copyright": { + "source": "iana", + "charset": "UTF-8" + }, + "text/vnd.dmclientscript": { + "source": "iana" + }, + "text/vnd.dvb.subtitle": { + "source": "iana", + "extensions": ["sub"] + }, + "text/vnd.esmertec.theme-descriptor": { + "source": "iana", + "charset": "UTF-8" + }, + "text/vnd.familysearch.gedcom": { + "source": "iana", + "extensions": ["ged"] + }, + "text/vnd.ficlab.flt": { + "source": "iana" + }, + "text/vnd.fly": { + "source": "iana", + "extensions": ["fly"] + }, + "text/vnd.fmi.flexstor": { + "source": "iana", + "extensions": ["flx"] + }, + "text/vnd.gml": { + "source": "iana" + }, + "text/vnd.graphviz": { + "source": "iana", + "extensions": ["gv"] + }, + "text/vnd.hans": { + "source": "iana" + }, + "text/vnd.hgl": { + "source": "iana" + }, + "text/vnd.in3d.3dml": { + "source": "iana", + "extensions": ["3dml"] + }, + "text/vnd.in3d.spot": { + "source": "iana", + "extensions": ["spot"] + }, + "text/vnd.iptc.newsml": { + "source": "iana" + }, + "text/vnd.iptc.nitf": { + "source": "iana" + }, + "text/vnd.latex-z": { + "source": "iana" + }, + "text/vnd.motorola.reflex": { + "source": "iana" + }, + "text/vnd.ms-mediapackage": { + "source": "iana" + }, + "text/vnd.net2phone.commcenter.command": { + "source": "iana" + }, + "text/vnd.radisys.msml-basic-layout": { + "source": "iana" + }, + "text/vnd.senx.warpscript": { + "source": "iana" + }, + "text/vnd.si.uricatalogue": { + "source": "iana" + }, + "text/vnd.sosi": { + "source": "iana" + }, + "text/vnd.sun.j2me.app-descriptor": { + "source": "iana", + "charset": "UTF-8", + "extensions": ["jad"] + }, + "text/vnd.trolltech.linguist": { + "source": "iana", + "charset": "UTF-8" + }, + "text/vnd.wap.si": { + "source": "iana" + }, + "text/vnd.wap.sl": { + "source": "iana" + }, + "text/vnd.wap.wml": { + "source": "iana", + "extensions": ["wml"] + }, + "text/vnd.wap.wmlscript": { + "source": "iana", + "extensions": ["wmls"] + }, + "text/vtt": { + "source": "iana", + "charset": "UTF-8", + "compressible": true, + "extensions": ["vtt"] + }, + "text/x-asm": { + "source": "apache", + "extensions": ["s","asm"] + }, + "text/x-c": { + "source": "apache", + "extensions": ["c","cc","cxx","cpp","h","hh","dic"] + }, + "text/x-component": { + "source": "nginx", + "extensions": ["htc"] + }, + "text/x-fortran": { + "source": "apache", + "extensions": ["f","for","f77","f90"] + }, + "text/x-gwt-rpc": { + "compressible": true + }, + "text/x-handlebars-template": { + "extensions": ["hbs"] + }, + "text/x-java-source": { + "source": "apache", + "extensions": ["java"] + }, + "text/x-jquery-tmpl": { + "compressible": true + }, + "text/x-lua": { + "extensions": ["lua"] + }, + "text/x-markdown": { + "compressible": true, + "extensions": ["mkd"] + }, + "text/x-nfo": { + "source": "apache", + "extensions": ["nfo"] + }, + "text/x-opml": { + "source": "apache", + "extensions": ["opml"] + }, + "text/x-org": { + "compressible": true, + "extensions": ["org"] + }, + "text/x-pascal": { + "source": "apache", + "extensions": ["p","pas"] + }, + "text/x-processing": { + "compressible": true, + "extensions": ["pde"] + }, + "text/x-sass": { + "extensions": ["sass"] + }, + "text/x-scss": { + "extensions": ["scss"] + }, + "text/x-setext": { + "source": "apache", + "extensions": ["etx"] + }, + "text/x-sfv": { + "source": "apache", + "extensions": ["sfv"] + }, + "text/x-suse-ymp": { + "compressible": true, + "extensions": ["ymp"] + }, + "text/x-uuencode": { + "source": "apache", + "extensions": ["uu"] + }, + "text/x-vcalendar": { + "source": "apache", + "extensions": ["vcs"] + }, + "text/x-vcard": { + "source": "apache", + "extensions": ["vcf"] + }, + "text/xml": { + "source": "iana", + "compressible": true, + "extensions": ["xml"] + }, + "text/xml-external-parsed-entity": { + "source": "iana" + }, + "text/yaml": { + "compressible": true, + "extensions": ["yaml","yml"] + }, + "video/1d-interleaved-parityfec": { + "source": "iana" + }, + "video/3gpp": { + "source": "iana", + "extensions": ["3gp","3gpp"] + }, + "video/3gpp-tt": { + "source": "iana" + }, + "video/3gpp2": { + "source": "iana", + "extensions": ["3g2"] + }, + "video/av1": { + "source": "iana" + }, + "video/bmpeg": { + "source": "iana" + }, + "video/bt656": { + "source": "iana" + }, + "video/celb": { + "source": "iana" + }, + "video/dv": { + "source": "iana" + }, + "video/encaprtp": { + "source": "iana" + }, + "video/ffv1": { + "source": "iana" + }, + "video/flexfec": { + "source": "iana" + }, + "video/h261": { + "source": "iana", + "extensions": ["h261"] + }, + "video/h263": { + "source": "iana", + "extensions": ["h263"] + }, + "video/h263-1998": { + "source": "iana" + }, + "video/h263-2000": { + "source": "iana" + }, + "video/h264": { + "source": "iana", + "extensions": ["h264"] + }, + "video/h264-rcdo": { + "source": "iana" + }, + "video/h264-svc": { + "source": "iana" + }, + "video/h265": { + "source": "iana" + }, + "video/iso.segment": { + "source": "iana", + "extensions": ["m4s"] + }, + "video/jpeg": { + "source": "iana", + "extensions": ["jpgv"] + }, + "video/jpeg2000": { + "source": "iana" + }, + "video/jpm": { + "source": "apache", + "extensions": ["jpm","jpgm"] + }, + "video/jxsv": { + "source": "iana" + }, + "video/mj2": { + "source": "iana", + "extensions": ["mj2","mjp2"] + }, + "video/mp1s": { + "source": "iana" + }, + "video/mp2p": { + "source": "iana" + }, + "video/mp2t": { + "source": "iana", + "extensions": ["ts"] + }, + "video/mp4": { + "source": "iana", + "compressible": false, + "extensions": ["mp4","mp4v","mpg4"] + }, + "video/mp4v-es": { + "source": "iana" + }, + "video/mpeg": { + "source": "iana", + "compressible": false, + "extensions": ["mpeg","mpg","mpe","m1v","m2v"] + }, + "video/mpeg4-generic": { + "source": "iana" + }, + "video/mpv": { + "source": "iana" + }, + "video/nv": { + "source": "iana" + }, + "video/ogg": { + "source": "iana", + "compressible": false, + "extensions": ["ogv"] + }, + "video/parityfec": { + "source": "iana" + }, + "video/pointer": { + "source": "iana" + }, + "video/quicktime": { + "source": "iana", + "compressible": false, + "extensions": ["qt","mov"] + }, + "video/raptorfec": { + "source": "iana" + }, + "video/raw": { + "source": "iana" + }, + "video/rtp-enc-aescm128": { + "source": "iana" + }, + "video/rtploopback": { + "source": "iana" + }, + "video/rtx": { + "source": "iana" + }, + "video/scip": { + "source": "iana" + }, + "video/smpte291": { + "source": "iana" + }, + "video/smpte292m": { + "source": "iana" + }, + "video/ulpfec": { + "source": "iana" + }, + "video/vc1": { + "source": "iana" + }, + "video/vc2": { + "source": "iana" + }, + "video/vnd.cctv": { + "source": "iana" + }, + "video/vnd.dece.hd": { + "source": "iana", + "extensions": ["uvh","uvvh"] + }, + "video/vnd.dece.mobile": { + "source": "iana", + "extensions": ["uvm","uvvm"] + }, + "video/vnd.dece.mp4": { + "source": "iana" + }, + "video/vnd.dece.pd": { + "source": "iana", + "extensions": ["uvp","uvvp"] + }, + "video/vnd.dece.sd": { + "source": "iana", + "extensions": ["uvs","uvvs"] + }, + "video/vnd.dece.video": { + "source": "iana", + "extensions": ["uvv","uvvv"] + }, + "video/vnd.directv.mpeg": { + "source": "iana" + }, + "video/vnd.directv.mpeg-tts": { + "source": "iana" + }, + "video/vnd.dlna.mpeg-tts": { + "source": "iana" + }, + "video/vnd.dvb.file": { + "source": "iana", + "extensions": ["dvb"] + }, + "video/vnd.fvt": { + "source": "iana", + "extensions": ["fvt"] + }, + "video/vnd.hns.video": { + "source": "iana" + }, + "video/vnd.iptvforum.1dparityfec-1010": { + "source": "iana" + }, + "video/vnd.iptvforum.1dparityfec-2005": { + "source": "iana" + }, + "video/vnd.iptvforum.2dparityfec-1010": { + "source": "iana" + }, + "video/vnd.iptvforum.2dparityfec-2005": { + "source": "iana" + }, + "video/vnd.iptvforum.ttsavc": { + "source": "iana" + }, + "video/vnd.iptvforum.ttsmpeg2": { + "source": "iana" + }, + "video/vnd.motorola.video": { + "source": "iana" + }, + "video/vnd.motorola.videop": { + "source": "iana" + }, + "video/vnd.mpegurl": { + "source": "iana", + "extensions": ["mxu","m4u"] + }, + "video/vnd.ms-playready.media.pyv": { + "source": "iana", + "extensions": ["pyv"] + }, + "video/vnd.nokia.interleaved-multimedia": { + "source": "iana" + }, + "video/vnd.nokia.mp4vr": { + "source": "iana" + }, + "video/vnd.nokia.videovoip": { + "source": "iana" + }, + "video/vnd.objectvideo": { + "source": "iana" + }, + "video/vnd.radgamettools.bink": { + "source": "iana" + }, + "video/vnd.radgamettools.smacker": { + "source": "iana" + }, + "video/vnd.sealed.mpeg1": { + "source": "iana" + }, + "video/vnd.sealed.mpeg4": { + "source": "iana" + }, + "video/vnd.sealed.swf": { + "source": "iana" + }, + "video/vnd.sealedmedia.softseal.mov": { + "source": "iana" + }, + "video/vnd.uvvu.mp4": { + "source": "iana", + "extensions": ["uvu","uvvu"] + }, + "video/vnd.vivo": { + "source": "iana", + "extensions": ["viv"] + }, + "video/vnd.youtube.yt": { + "source": "iana" + }, + "video/vp8": { + "source": "iana" + }, + "video/vp9": { + "source": "iana" + }, + "video/webm": { + "source": "apache", + "compressible": false, + "extensions": ["webm"] + }, + "video/x-f4v": { + "source": "apache", + "extensions": ["f4v"] + }, + "video/x-fli": { + "source": "apache", + "extensions": ["fli"] + }, + "video/x-flv": { + "source": "apache", + "compressible": false, + "extensions": ["flv"] + }, + "video/x-m4v": { + "source": "apache", + "extensions": ["m4v"] + }, + "video/x-matroska": { + "source": "apache", + "compressible": false, + "extensions": ["mkv","mk3d","mks"] + }, + "video/x-mng": { + "source": "apache", + "extensions": ["mng"] + }, + "video/x-ms-asf": { + "source": "apache", + "extensions": ["asf","asx"] + }, + "video/x-ms-vob": { + "source": "apache", + "extensions": ["vob"] + }, + "video/x-ms-wm": { + "source": "apache", + "extensions": ["wm"] + }, + "video/x-ms-wmv": { + "source": "apache", + "compressible": false, + "extensions": ["wmv"] + }, + "video/x-ms-wmx": { + "source": "apache", + "extensions": ["wmx"] + }, + "video/x-ms-wvx": { + "source": "apache", + "extensions": ["wvx"] + }, + "video/x-msvideo": { + "source": "apache", + "extensions": ["avi"] + }, + "video/x-sgi-movie": { + "source": "apache", + "extensions": ["movie"] + }, + "video/x-smv": { + "source": "apache", + "extensions": ["smv"] + }, + "x-conference/x-cooltalk": { + "source": "apache", + "extensions": ["ice"] + }, + "x-shader/x-fragment": { + "compressible": true + }, + "x-shader/x-vertex": { + "compressible": true + } +} diff --git a/Scripts/node_modules/mime-db/index.js b/Scripts/node_modules/mime-db/index.js new file mode 100644 index 00000000..ec2be30d --- /dev/null +++ b/Scripts/node_modules/mime-db/index.js @@ -0,0 +1,12 @@ +/*! + * mime-db + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015-2022 Douglas Christopher Wilson + * MIT Licensed + */ + +/** + * Module exports. + */ + +module.exports = require('./db.json') diff --git a/Scripts/node_modules/mime-db/package.json b/Scripts/node_modules/mime-db/package.json new file mode 100644 index 00000000..32c14b84 --- /dev/null +++ b/Scripts/node_modules/mime-db/package.json @@ -0,0 +1,60 @@ +{ + "name": "mime-db", + "description": "Media Type Database", + "version": "1.52.0", + "contributors": [ + "Douglas Christopher Wilson ", + "Jonathan Ong (http://jongleberry.com)", + "Robert Kieffer (http://github.com/broofa)" + ], + "license": "MIT", + "keywords": [ + "mime", + "db", + "type", + "types", + "database", + "charset", + "charsets" + ], + "repository": "jshttp/mime-db", + "devDependencies": { + "bluebird": "3.7.2", + "co": "4.6.0", + "cogent": "1.0.1", + "csv-parse": "4.16.3", + "eslint": "7.32.0", + "eslint-config-standard": "15.0.1", + "eslint-plugin-import": "2.25.4", + "eslint-plugin-markdown": "2.2.1", + "eslint-plugin-node": "11.1.0", + "eslint-plugin-promise": "5.1.1", + "eslint-plugin-standard": "4.1.0", + "gnode": "0.1.2", + "media-typer": "1.1.0", + "mocha": "9.2.1", + "nyc": "15.1.0", + "raw-body": "2.5.0", + "stream-to-array": "2.3.0" + }, + "files": [ + "HISTORY.md", + "LICENSE", + "README.md", + "db.json", + "index.js" + ], + "engines": { + "node": ">= 0.6" + }, + "scripts": { + "build": "node scripts/build", + "fetch": "node scripts/fetch-apache && gnode scripts/fetch-iana && node scripts/fetch-nginx", + "lint": "eslint .", + "test": "mocha --reporter spec --bail --check-leaks test/", + "test-ci": "nyc --reporter=lcov --reporter=text npm test", + "test-cov": "nyc --reporter=html --reporter=text npm test", + "update": "npm run fetch && npm run build", + "version": "node scripts/version-history.js && git add HISTORY.md" + } +} diff --git a/Scripts/node_modules/mime-types/HISTORY.md b/Scripts/node_modules/mime-types/HISTORY.md new file mode 100644 index 00000000..c5043b75 --- /dev/null +++ b/Scripts/node_modules/mime-types/HISTORY.md @@ -0,0 +1,397 @@ +2.1.35 / 2022-03-12 +=================== + + * deps: mime-db@1.52.0 + - Add extensions from IANA for more `image/*` types + - Add extension `.asc` to `application/pgp-keys` + - Add extensions to various XML types + - Add new upstream MIME types + +2.1.34 / 2021-11-08 +=================== + + * deps: mime-db@1.51.0 + - Add new upstream MIME types + +2.1.33 / 2021-10-01 +=================== + + * deps: mime-db@1.50.0 + - Add deprecated iWorks mime types and extensions + - Add new upstream MIME types + +2.1.32 / 2021-07-27 +=================== + + * deps: mime-db@1.49.0 + - Add extension `.trig` to `application/trig` + - Add new upstream MIME types + +2.1.31 / 2021-06-01 +=================== + + * deps: mime-db@1.48.0 + - Add extension `.mvt` to `application/vnd.mapbox-vector-tile` + - Add new upstream MIME types + +2.1.30 / 2021-04-02 +=================== + + * deps: mime-db@1.47.0 + - Add extension `.amr` to `audio/amr` + - Remove ambigious extensions from IANA for `application/*+xml` types + - Update primary extension to `.es` for `application/ecmascript` + +2.1.29 / 2021-02-17 +=================== + + * deps: mime-db@1.46.0 + - Add extension `.amr` to `audio/amr` + - Add extension `.m4s` to `video/iso.segment` + - Add extension `.opus` to `audio/ogg` + - Add new upstream MIME types + +2.1.28 / 2021-01-01 +=================== + + * deps: mime-db@1.45.0 + - Add `application/ubjson` with extension `.ubj` + - Add `image/avif` with extension `.avif` + - Add `image/ktx2` with extension `.ktx2` + - Add extension `.dbf` to `application/vnd.dbf` + - Add extension `.rar` to `application/vnd.rar` + - Add extension `.td` to `application/urc-targetdesc+xml` + - Add new upstream MIME types + - Fix extension of `application/vnd.apple.keynote` to be `.key` + +2.1.27 / 2020-04-23 +=================== + + * deps: mime-db@1.44.0 + - Add charsets from IANA + - Add extension `.cjs` to `application/node` + - Add new upstream MIME types + +2.1.26 / 2020-01-05 +=================== + + * deps: mime-db@1.43.0 + - Add `application/x-keepass2` with extension `.kdbx` + - Add extension `.mxmf` to `audio/mobile-xmf` + - Add extensions from IANA for `application/*+xml` types + - Add new upstream MIME types + +2.1.25 / 2019-11-12 +=================== + + * deps: mime-db@1.42.0 + - Add new upstream MIME types + - Add `application/toml` with extension `.toml` + - Add `image/vnd.ms-dds` with extension `.dds` + +2.1.24 / 2019-04-20 +=================== + + * deps: mime-db@1.40.0 + - Add extensions from IANA for `model/*` types + - Add `text/mdx` with extension `.mdx` + +2.1.23 / 2019-04-17 +=================== + + * deps: mime-db@~1.39.0 + - Add extensions `.siv` and `.sieve` to `application/sieve` + - Add new upstream MIME types + +2.1.22 / 2019-02-14 +=================== + + * deps: mime-db@~1.38.0 + - Add extension `.nq` to `application/n-quads` + - Add extension `.nt` to `application/n-triples` + - Add new upstream MIME types + +2.1.21 / 2018-10-19 +=================== + + * deps: mime-db@~1.37.0 + - Add extensions to HEIC image types + - Add new upstream MIME types + +2.1.20 / 2018-08-26 +=================== + + * deps: mime-db@~1.36.0 + - Add Apple file extensions from IANA + - Add extensions from IANA for `image/*` types + - Add new upstream MIME types + +2.1.19 / 2018-07-17 +=================== + + * deps: mime-db@~1.35.0 + - Add extension `.csl` to `application/vnd.citationstyles.style+xml` + - Add extension `.es` to `application/ecmascript` + - Add extension `.owl` to `application/rdf+xml` + - Add new upstream MIME types + - Add UTF-8 as default charset for `text/turtle` + +2.1.18 / 2018-02-16 +=================== + + * deps: mime-db@~1.33.0 + - Add `application/raml+yaml` with extension `.raml` + - Add `application/wasm` with extension `.wasm` + - Add `text/shex` with extension `.shex` + - Add extensions for JPEG-2000 images + - Add extensions from IANA for `message/*` types + - Add new upstream MIME types + - Update font MIME types + - Update `text/hjson` to registered `application/hjson` + +2.1.17 / 2017-09-01 +=================== + + * deps: mime-db@~1.30.0 + - Add `application/vnd.ms-outlook` + - Add `application/x-arj` + - Add extension `.mjs` to `application/javascript` + - Add glTF types and extensions + - Add new upstream MIME types + - Add `text/x-org` + - Add VirtualBox MIME types + - Fix `source` records for `video/*` types that are IANA + - Update `font/opentype` to registered `font/otf` + +2.1.16 / 2017-07-24 +=================== + + * deps: mime-db@~1.29.0 + - Add `application/fido.trusted-apps+json` + - Add extension `.wadl` to `application/vnd.sun.wadl+xml` + - Add extension `.gz` to `application/gzip` + - Add new upstream MIME types + - Update extensions `.md` and `.markdown` to be `text/markdown` + +2.1.15 / 2017-03-23 +=================== + + * deps: mime-db@~1.27.0 + - Add new mime types + - Add `image/apng` + +2.1.14 / 2017-01-14 +=================== + + * deps: mime-db@~1.26.0 + - Add new mime types + +2.1.13 / 2016-11-18 +=================== + + * deps: mime-db@~1.25.0 + - Add new mime types + +2.1.12 / 2016-09-18 +=================== + + * deps: mime-db@~1.24.0 + - Add new mime types + - Add `audio/mp3` + +2.1.11 / 2016-05-01 +=================== + + * deps: mime-db@~1.23.0 + - Add new mime types + +2.1.10 / 2016-02-15 +=================== + + * deps: mime-db@~1.22.0 + - Add new mime types + - Fix extension of `application/dash+xml` + - Update primary extension for `audio/mp4` + +2.1.9 / 2016-01-06 +================== + + * deps: mime-db@~1.21.0 + - Add new mime types + +2.1.8 / 2015-11-30 +================== + + * deps: mime-db@~1.20.0 + - Add new mime types + +2.1.7 / 2015-09-20 +================== + + * deps: mime-db@~1.19.0 + - Add new mime types + +2.1.6 / 2015-09-03 +================== + + * deps: mime-db@~1.18.0 + - Add new mime types + +2.1.5 / 2015-08-20 +================== + + * deps: mime-db@~1.17.0 + - Add new mime types + +2.1.4 / 2015-07-30 +================== + + * deps: mime-db@~1.16.0 + - Add new mime types + +2.1.3 / 2015-07-13 +================== + + * deps: mime-db@~1.15.0 + - Add new mime types + +2.1.2 / 2015-06-25 +================== + + * deps: mime-db@~1.14.0 + - Add new mime types + +2.1.1 / 2015-06-08 +================== + + * perf: fix deopt during mapping + +2.1.0 / 2015-06-07 +================== + + * Fix incorrectly treating extension-less file name as extension + - i.e. `'path/to/json'` will no longer return `application/json` + * Fix `.charset(type)` to accept parameters + * Fix `.charset(type)` to match case-insensitive + * Improve generation of extension to MIME mapping + * Refactor internals for readability and no argument reassignment + * Prefer `application/*` MIME types from the same source + * Prefer any type over `application/octet-stream` + * deps: mime-db@~1.13.0 + - Add nginx as a source + - Add new mime types + +2.0.14 / 2015-06-06 +=================== + + * deps: mime-db@~1.12.0 + - Add new mime types + +2.0.13 / 2015-05-31 +=================== + + * deps: mime-db@~1.11.0 + - Add new mime types + +2.0.12 / 2015-05-19 +=================== + + * deps: mime-db@~1.10.0 + - Add new mime types + +2.0.11 / 2015-05-05 +=================== + + * deps: mime-db@~1.9.1 + - Add new mime types + +2.0.10 / 2015-03-13 +=================== + + * deps: mime-db@~1.8.0 + - Add new mime types + +2.0.9 / 2015-02-09 +================== + + * deps: mime-db@~1.7.0 + - Add new mime types + - Community extensions ownership transferred from `node-mime` + +2.0.8 / 2015-01-29 +================== + + * deps: mime-db@~1.6.0 + - Add new mime types + +2.0.7 / 2014-12-30 +================== + + * deps: mime-db@~1.5.0 + - Add new mime types + - Fix various invalid MIME type entries + +2.0.6 / 2014-12-30 +================== + + * deps: mime-db@~1.4.0 + - Add new mime types + - Fix various invalid MIME type entries + - Remove example template MIME types + +2.0.5 / 2014-12-29 +================== + + * deps: mime-db@~1.3.1 + - Fix missing extensions + +2.0.4 / 2014-12-10 +================== + + * deps: mime-db@~1.3.0 + - Add new mime types + +2.0.3 / 2014-11-09 +================== + + * deps: mime-db@~1.2.0 + - Add new mime types + +2.0.2 / 2014-09-28 +================== + + * deps: mime-db@~1.1.0 + - Add new mime types + - Update charsets + +2.0.1 / 2014-09-07 +================== + + * Support Node.js 0.6 + +2.0.0 / 2014-09-02 +================== + + * Use `mime-db` + * Remove `.define()` + +1.0.2 / 2014-08-04 +================== + + * Set charset=utf-8 for `text/javascript` + +1.0.1 / 2014-06-24 +================== + + * Add `text/jsx` type + +1.0.0 / 2014-05-12 +================== + + * Return `false` for unknown types + * Set charset=utf-8 for `application/json` + +0.1.0 / 2014-05-02 +================== + + * Initial release diff --git a/Scripts/node_modules/mime-types/LICENSE b/Scripts/node_modules/mime-types/LICENSE new file mode 100644 index 00000000..06166077 --- /dev/null +++ b/Scripts/node_modules/mime-types/LICENSE @@ -0,0 +1,23 @@ +(The MIT License) + +Copyright (c) 2014 Jonathan Ong +Copyright (c) 2015 Douglas Christopher Wilson + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Scripts/node_modules/mime-types/README.md b/Scripts/node_modules/mime-types/README.md new file mode 100644 index 00000000..48d2fb47 --- /dev/null +++ b/Scripts/node_modules/mime-types/README.md @@ -0,0 +1,113 @@ +# mime-types + +[![NPM Version][npm-version-image]][npm-url] +[![NPM Downloads][npm-downloads-image]][npm-url] +[![Node.js Version][node-version-image]][node-version-url] +[![Build Status][ci-image]][ci-url] +[![Test Coverage][coveralls-image]][coveralls-url] + +The ultimate javascript content-type utility. + +Similar to [the `mime@1.x` module](https://www.npmjs.com/package/mime), except: + +- __No fallbacks.__ Instead of naively returning the first available type, + `mime-types` simply returns `false`, so do + `var type = mime.lookup('unrecognized') || 'application/octet-stream'`. +- No `new Mime()` business, so you could do `var lookup = require('mime-types').lookup`. +- No `.define()` functionality +- Bug fixes for `.lookup(path)` + +Otherwise, the API is compatible with `mime` 1.x. + +## Install + +This is a [Node.js](https://nodejs.org/en/) module available through the +[npm registry](https://www.npmjs.com/). Installation is done using the +[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): + +```sh +$ npm install mime-types +``` + +## Adding Types + +All mime types are based on [mime-db](https://www.npmjs.com/package/mime-db), +so open a PR there if you'd like to add mime types. + +## API + +```js +var mime = require('mime-types') +``` + +All functions return `false` if input is invalid or not found. + +### mime.lookup(path) + +Lookup the content-type associated with a file. + +```js +mime.lookup('json') // 'application/json' +mime.lookup('.md') // 'text/markdown' +mime.lookup('file.html') // 'text/html' +mime.lookup('folder/file.js') // 'application/javascript' +mime.lookup('folder/.htaccess') // false + +mime.lookup('cats') // false +``` + +### mime.contentType(type) + +Create a full content-type header given a content-type or extension. +When given an extension, `mime.lookup` is used to get the matching +content-type, otherwise the given content-type is used. Then if the +content-type does not already have a `charset` parameter, `mime.charset` +is used to get the default charset and add to the returned content-type. + +```js +mime.contentType('markdown') // 'text/x-markdown; charset=utf-8' +mime.contentType('file.json') // 'application/json; charset=utf-8' +mime.contentType('text/html') // 'text/html; charset=utf-8' +mime.contentType('text/html; charset=iso-8859-1') // 'text/html; charset=iso-8859-1' + +// from a full path +mime.contentType(path.extname('/path/to/file.json')) // 'application/json; charset=utf-8' +``` + +### mime.extension(type) + +Get the default extension for a content-type. + +```js +mime.extension('application/octet-stream') // 'bin' +``` + +### mime.charset(type) + +Lookup the implied default charset of a content-type. + +```js +mime.charset('text/markdown') // 'UTF-8' +``` + +### var type = mime.types[extension] + +A map of content-types by extension. + +### [extensions...] = mime.extensions[type] + +A map of extensions by content-type. + +## License + +[MIT](LICENSE) + +[ci-image]: https://badgen.net/github/checks/jshttp/mime-types/master?label=ci +[ci-url]: https://github.com/jshttp/mime-types/actions/workflows/ci.yml +[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-types/master +[coveralls-url]: https://coveralls.io/r/jshttp/mime-types?branch=master +[node-version-image]: https://badgen.net/npm/node/mime-types +[node-version-url]: https://nodejs.org/en/download +[npm-downloads-image]: https://badgen.net/npm/dm/mime-types +[npm-url]: https://npmjs.org/package/mime-types +[npm-version-image]: https://badgen.net/npm/v/mime-types diff --git a/Scripts/node_modules/mime-types/index.js b/Scripts/node_modules/mime-types/index.js new file mode 100644 index 00000000..b9f34d59 --- /dev/null +++ b/Scripts/node_modules/mime-types/index.js @@ -0,0 +1,188 @@ +/*! + * mime-types + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + */ + +'use strict' + +/** + * Module dependencies. + * @private + */ + +var db = require('mime-db') +var extname = require('path').extname + +/** + * Module variables. + * @private + */ + +var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/ +var TEXT_TYPE_REGEXP = /^text\//i + +/** + * Module exports. + * @public + */ + +exports.charset = charset +exports.charsets = { lookup: charset } +exports.contentType = contentType +exports.extension = extension +exports.extensions = Object.create(null) +exports.lookup = lookup +exports.types = Object.create(null) + +// Populate the extensions/types maps +populateMaps(exports.extensions, exports.types) + +/** + * Get the default charset for a MIME type. + * + * @param {string} type + * @return {boolean|string} + */ + +function charset (type) { + if (!type || typeof type !== 'string') { + return false + } + + // TODO: use media-typer + var match = EXTRACT_TYPE_REGEXP.exec(type) + var mime = match && db[match[1].toLowerCase()] + + if (mime && mime.charset) { + return mime.charset + } + + // default text/* to utf-8 + if (match && TEXT_TYPE_REGEXP.test(match[1])) { + return 'UTF-8' + } + + return false +} + +/** + * Create a full Content-Type header given a MIME type or extension. + * + * @param {string} str + * @return {boolean|string} + */ + +function contentType (str) { + // TODO: should this even be in this module? + if (!str || typeof str !== 'string') { + return false + } + + var mime = str.indexOf('/') === -1 + ? exports.lookup(str) + : str + + if (!mime) { + return false + } + + // TODO: use content-type or other module + if (mime.indexOf('charset') === -1) { + var charset = exports.charset(mime) + if (charset) mime += '; charset=' + charset.toLowerCase() + } + + return mime +} + +/** + * Get the default extension for a MIME type. + * + * @param {string} type + * @return {boolean|string} + */ + +function extension (type) { + if (!type || typeof type !== 'string') { + return false + } + + // TODO: use media-typer + var match = EXTRACT_TYPE_REGEXP.exec(type) + + // get extensions + var exts = match && exports.extensions[match[1].toLowerCase()] + + if (!exts || !exts.length) { + return false + } + + return exts[0] +} + +/** + * Lookup the MIME type for a file path/extension. + * + * @param {string} path + * @return {boolean|string} + */ + +function lookup (path) { + if (!path || typeof path !== 'string') { + return false + } + + // get the extension ("ext" or ".ext" or full path) + var extension = extname('x.' + path) + .toLowerCase() + .substr(1) + + if (!extension) { + return false + } + + return exports.types[extension] || false +} + +/** + * Populate the extensions and types maps. + * @private + */ + +function populateMaps (extensions, types) { + // source preference (least -> most) + var preference = ['nginx', 'apache', undefined, 'iana'] + + Object.keys(db).forEach(function forEachMimeType (type) { + var mime = db[type] + var exts = mime.extensions + + if (!exts || !exts.length) { + return + } + + // mime -> extensions + extensions[type] = exts + + // extension -> mime + for (var i = 0; i < exts.length; i++) { + var extension = exts[i] + + if (types[extension]) { + var from = preference.indexOf(db[types[extension]].source) + var to = preference.indexOf(mime.source) + + if (types[extension] !== 'application/octet-stream' && + (from > to || (from === to && types[extension].substr(0, 12) === 'application/'))) { + // skip the remapping + continue + } + } + + // set the extension -> mime + types[extension] = type + } + }) +} diff --git a/Scripts/node_modules/mime-types/package.json b/Scripts/node_modules/mime-types/package.json new file mode 100644 index 00000000..bbef6964 --- /dev/null +++ b/Scripts/node_modules/mime-types/package.json @@ -0,0 +1,44 @@ +{ + "name": "mime-types", + "description": "The ultimate javascript content-type utility.", + "version": "2.1.35", + "contributors": [ + "Douglas Christopher Wilson ", + "Jeremiah Senkpiel (https://searchbeam.jit.su)", + "Jonathan Ong (http://jongleberry.com)" + ], + "license": "MIT", + "keywords": [ + "mime", + "types" + ], + "repository": "jshttp/mime-types", + "dependencies": { + "mime-db": "1.52.0" + }, + "devDependencies": { + "eslint": "7.32.0", + "eslint-config-standard": "14.1.1", + "eslint-plugin-import": "2.25.4", + "eslint-plugin-markdown": "2.2.1", + "eslint-plugin-node": "11.1.0", + "eslint-plugin-promise": "5.2.0", + "eslint-plugin-standard": "4.1.0", + "mocha": "9.2.2", + "nyc": "15.1.0" + }, + "files": [ + "HISTORY.md", + "LICENSE", + "index.js" + ], + "engines": { + "node": ">= 0.6" + }, + "scripts": { + "lint": "eslint .", + "test": "mocha --reporter spec test/test.js", + "test-ci": "nyc --reporter=lcov --reporter=text npm test", + "test-cov": "nyc --reporter=html --reporter=text npm test" + } +} diff --git a/Scripts/node_modules/pac-resolver/LICENSE b/Scripts/node_modules/pac-resolver/LICENSE new file mode 100644 index 00000000..008728cb --- /dev/null +++ b/Scripts/node_modules/pac-resolver/LICENSE @@ -0,0 +1,22 @@ +(The MIT License) + +Copyright (c) 2013 Nathan Rajlich + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/Scripts/node_modules/pac-resolver/README.md b/Scripts/node_modules/pac-resolver/README.md index a7ea4db4..2b996437 100644 --- a/Scripts/node_modules/pac-resolver/README.md +++ b/Scripts/node_modules/pac-resolver/README.md @@ -55,32 +55,5 @@ passed in which respects the following options: The `qjs` parameter is a QuickJS module instance as returned from `getQuickJS()` from the `quickjs-emscripten` module. - -License -------- - -(The MIT License) - -Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net> - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - [pac-file-docs]: https://web.archive.org/web/20070602031929/http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html [pac-wikipedia]: http://wikipedia.org/wiki/Proxy_auto-config diff --git a/Scripts/node_modules/pac-resolver/dist/ip.d.ts b/Scripts/node_modules/pac-resolver/dist/ip.d.ts new file mode 100644 index 00000000..05f2b246 --- /dev/null +++ b/Scripts/node_modules/pac-resolver/dist/ip.d.ts @@ -0,0 +1,8 @@ +export declare const ip: { + address(): string; + isLoopback(addr: string): boolean; + loopback(family: IpFamily): string; +}; +type IpFamily = 'ipv4' | 'ipv6'; +export {}; +//# sourceMappingURL=ip.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/pac-resolver/dist/ip.d.ts.map b/Scripts/node_modules/pac-resolver/dist/ip.d.ts.map new file mode 100644 index 00000000..45b41788 --- /dev/null +++ b/Scripts/node_modules/pac-resolver/dist/ip.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ip.d.ts","sourceRoot":"","sources":["../src/ip.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,EAAE;eACH,MAAM;qBAsBA,MAAM,GAAG,OAAO;qBAQhB,QAAQ,GAAG,MAAM;CAWlC,CAAC;AAYF,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAA"} \ No newline at end of file diff --git a/Scripts/node_modules/pac-resolver/dist/ip.js b/Scripts/node_modules/pac-resolver/dist/ip.js new file mode 100644 index 00000000..e0397000 --- /dev/null +++ b/Scripts/node_modules/pac-resolver/dist/ip.js @@ -0,0 +1,50 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ip = void 0; +const os_1 = __importDefault(require("os")); +exports.ip = { + address() { + const interfaces = os_1.default.networkInterfaces(); + // Default to `ipv4` + const family = normalizeFamily(); + const all = Object.values(interfaces).map((addrs = []) => { + const addresses = addrs.filter((details) => { + const detailsFamily = normalizeFamily(details.family); + if (detailsFamily !== family || exports.ip.isLoopback(details.address)) { + return false; + } + return true; + }); + return addresses.length ? addresses[0].address : undefined; + }).filter(Boolean); + return !all.length ? exports.ip.loopback(family) : all[0]; + }, + isLoopback(addr) { + return /^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/ + .test(addr) + || /^fe80::1$/.test(addr) + || /^::1$/.test(addr) + || /^::$/.test(addr); + }, + loopback(family) { + // Default to `ipv4` + family = normalizeFamily(family); + if (family !== 'ipv4' && family !== 'ipv6') { + throw new Error('family must be ipv4 or ipv6'); + } + return family === 'ipv4' ? '127.0.0.1' : 'fe80::1'; + } +}; +function normalizeFamily(family) { + if (family === 4) { + return 'ipv4'; + } + if (family === 6) { + return 'ipv6'; + } + return family ? family.toLowerCase() : 'ipv4'; +} +//# sourceMappingURL=ip.js.map \ No newline at end of file diff --git a/Scripts/node_modules/pac-resolver/dist/ip.js.map b/Scripts/node_modules/pac-resolver/dist/ip.js.map new file mode 100644 index 00000000..b0ab97c5 --- /dev/null +++ b/Scripts/node_modules/pac-resolver/dist/ip.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ip.js","sourceRoot":"","sources":["../src/ip.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AAEP,QAAA,EAAE,GAAG;IACjB,OAAO;QACN,MAAM,UAAU,GAAG,YAAE,CAAC,iBAAiB,EAAE,CAAC;QAE1C,oBAAoB;QACpB,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;QAEjC,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,EAAE,EAAE,EAAE;YACxD,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC1C,MAAM,aAAa,GAAG,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;gBACtD,IAAI,aAAa,KAAK,MAAM,IAAI,UAAE,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;oBAC/D,OAAO,KAAK,CAAC;iBACb;gBACD,OAAO,IAAI,CAAC;YAEb,CAAC,CAAC,CAAC;YAEH,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;QAC5D,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEnB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,UAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAW,CAAC;IAC7D,CAAC;IAED,UAAU,CAAC,IAAY;QACtB,OAAO,0DAA0D;aAC/D,IAAI,CAAC,IAAI,CAAC;eACR,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;eACtB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;eAClB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IAED,QAAQ,CAAC,MAAgB;QACxB,oBAAoB;QACpB,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QAEjC,IAAI,MAAM,KAAK,MAAM,IAAI,MAAM,KAAK,MAAM,EAAE;YAC3C,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;SAC/C;QAED,OAAO,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;IACpD,CAAC;CAED,CAAC;AAEF,SAAS,eAAe,CAAC,MAAgB;IACxC,IAAI,MAAM,KAAK,CAAC,EAAE;QACjB,OAAO,MAAM,CAAC;KACd;IACD,IAAI,MAAM,KAAK,CAAC,EAAE;QACjB,OAAO,MAAM,CAAC;KACd;IACD,OAAO,MAAM,CAAC,CAAC,CAAE,MAAiB,CAAC,WAAW,EAAc,CAAC,CAAC,CAAC,MAAM,CAAC;AACvE,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/pac-resolver/dist/myIpAddress.js b/Scripts/node_modules/pac-resolver/dist/myIpAddress.js index d65dfedd..1702462b 100644 --- a/Scripts/node_modules/pac-resolver/dist/myIpAddress.js +++ b/Scripts/node_modules/pac-resolver/dist/myIpAddress.js @@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -const ip_1 = __importDefault(require("ip")); +const ip_1 = require("./ip"); const net_1 = __importDefault(require("net")); /** * Returns the IP address of the host that the Navigator is running on, as @@ -27,7 +27,7 @@ async function myIpAddress() { const onError = () => { // if we fail to access Google DNS (as in firewall blocks access), // fallback to querying IP locally - resolve(ip_1.default.address()); + resolve(ip_1.ip.address()); }; socket.once('error', onError); socket.once('connect', () => { diff --git a/Scripts/node_modules/pac-resolver/dist/myIpAddress.js.map b/Scripts/node_modules/pac-resolver/dist/myIpAddress.js.map index e55b55a9..e8ff48b4 100644 --- a/Scripts/node_modules/pac-resolver/dist/myIpAddress.js.map +++ b/Scripts/node_modules/pac-resolver/dist/myIpAddress.js.map @@ -1 +1 @@ -{"version":3,"file":"myIpAddress.js","sourceRoot":"","sources":["../src/myIpAddress.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,8CAAuC;AAEvC;;;;;;;;;;;;;GAaG;AACY,KAAK,UAAU,WAAW;IACxC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtC,qCAAqC;QACrC,kDAAkD;QAClD,MAAM,MAAM,GAAG,aAAG,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QAC1D,MAAM,OAAO,GAAG,GAAG,EAAE;YACpB,kEAAkE;YAClE,kCAAkC;YAClC,OAAO,CAAC,YAAE,CAAC,OAAO,EAAE,CAAC,CAAC;QACvB,CAAC,CAAC;QACF,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC9B,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE;YAC3B,MAAM,CAAC,cAAc,CAAC,OAAO,E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B,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;gBAC7B,OAAO,CAAC,IAAI,CAAC,CAAC;aACd;iBAAM,IAAK,IAAoB,CAAC,OAAO,EAAE;gBACzC,OAAO,CAAE,IAAoB,CAAC,OAAO,CAAC,CAAC;aACvC;iBAAM;gBACN,MAAM,CAAC,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC;aACzC;QACF,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC;AAxBD,8BAwBC"} \ No newline at end of file diff --git a/Scripts/node_modules/pac-resolver/package.json b/Scripts/node_modules/pac-resolver/package.json index b029b9af..1abfd28d 100644 --- a/Scripts/node_modules/pac-resolver/package.json +++ b/Scripts/node_modules/pac-resolver/package.json @@ -1,6 +1,6 @@ { "name": "pac-resolver", - "version": "7.0.0", + "version": "7.0.1", "description": "Generates an asynchronous resolver function from a PAC file", "main": "./dist/index.js", "types": "./dist/index.d.ts", @@ -9,12 +9,10 @@ ], "dependencies": { "degenerator": "^5.0.0", - "ip": "^1.1.8", "netmask": "^2.0.2" }, "devDependencies": { "@tootallnate/quickjs-emscripten": "^0.23.0", - "@types/ip": "^1.1.0", "@types/jest": "^29.5.2", "@types/netmask": "^1.0.30", "@types/node": "^14.18.52", diff --git a/Scripts/node_modules/path-type/index.d.ts b/Scripts/node_modules/path-type/index.d.ts deleted file mode 100644 index 910a50a5..00000000 --- a/Scripts/node_modules/path-type/index.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -export type PathTypeFunction = (path: string) => Promise; - -/** - * Check whether the passed `path` is a file. - * - * @param path - The path to check. - * @returns Whether the `path` is a file. - */ -export const isFile: PathTypeFunction; - -/** - * Check whether the passed `path` is a directory. - * - * @param path - The path to check. - * @returns Whether the `path` is a directory. - */ -export const isDirectory: PathTypeFunction; - -/** - * Check whether the passed `path` is a symlink. - * - * @param path - The path to check. - * @returns Whether the `path` is a symlink. - */ -export const isSymlink: PathTypeFunction; - -export type PathTypeSyncFunction = (path: string) => boolean; - -/** - * Synchronously check whether the passed `path` is a file. - * - * @param path - The path to check. - * @returns Whether the `path` is a file. - */ -export const isFileSync: PathTypeSyncFunction; - -/** - * Synchronously check whether the passed `path` is a directory. - * - * @param path - The path to check. - * @returns Whether the `path` is a directory. - */ -export const isDirectorySync: PathTypeSyncFunction; - -/** - * Synchronously check whether the passed `path` is a symlink. - * - * @param path - The path to check. - * @returns Whether the `path` is a directory. - */ -export const isSymlinkSync: PathTypeSyncFunction; diff --git a/Scripts/node_modules/path-type/index.js b/Scripts/node_modules/path-type/index.js deleted file mode 100644 index b8f34b24..00000000 --- a/Scripts/node_modules/path-type/index.js +++ /dev/null @@ -1,43 +0,0 @@ -'use strict'; -const {promisify} = require('util'); -const fs = require('fs'); - -async function isType(fsStatType, statsMethodName, filePath) { - if (typeof filePath !== 'string') { - throw new TypeError(`Expected a string, got ${typeof filePath}`); - } - - try { - const stats = await promisify(fs[fsStatType])(filePath); - return stats[statsMethodName](); - } catch (error) { - if (error.code === 'ENOENT') { - return false; - } - - throw error; - } -} - -function isTypeSync(fsStatType, statsMethodName, filePath) { - if (typeof filePath !== 'string') { - throw new TypeError(`Expected a string, got ${typeof filePath}`); - } - - try { - return fs[fsStatType](filePath)[statsMethodName](); - } catch (error) { - if (error.code === 'ENOENT') { - return false; - } - - throw error; - } -} - -exports.isFile = isType.bind(null, 'stat', 'isFile'); -exports.isDirectory = isType.bind(null, 'stat', 'isDirectory'); -exports.isSymlink = isType.bind(null, 'lstat', 'isSymbolicLink'); -exports.isFileSync = isTypeSync.bind(null, 'statSync', 'isFile'); -exports.isDirectorySync = isTypeSync.bind(null, 'statSync', 'isDirectory'); -exports.isSymlinkSync = isTypeSync.bind(null, 'lstatSync', 'isSymbolicLink'); diff --git a/Scripts/node_modules/path-type/package.json b/Scripts/node_modules/path-type/package.json deleted file mode 100644 index 635b7110..00000000 --- a/Scripts/node_modules/path-type/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "path-type", - "version": "4.0.0", - "description": "Check if a path is a file, directory, or symlink", - "license": "MIT", - "repository": "sindresorhus/path-type", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd-check" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "fs", - "type", - "is", - "check", - "directory", - "dir", - "file", - "filepath", - "symlink", - "symbolic", - "link", - "stat", - "stats", - "filesystem" - ], - "devDependencies": { - "ava": "^1.3.1", - "nyc": "^13.3.0", - "tsd-check": "^0.3.0", - "xo": "^0.24.0" - } -} diff --git a/Scripts/node_modules/path-type/readme.md b/Scripts/node_modules/path-type/readme.md deleted file mode 100644 index 4c972fa5..00000000 --- a/Scripts/node_modules/path-type/readme.md +++ /dev/null @@ -1,72 +0,0 @@ -# path-type [![Build Status](https://travis-ci.org/sindresorhus/path-type.svg?branch=master)](https://travis-ci.org/sindresorhus/path-type) - -> Check if a path is a file, directory, or symlink - - -## Install - -``` -$ npm install path-type -``` - - -## Usage - -```js -const {isFile} = require('path-type'); - -(async () => { - console.log(await isFile('package.json')); - //=> true -})(); -``` - - -## API - -### isFile(path) - -Check whether the passed `path` is a file. - -Returns a `Promise`. - -#### path - -Type: `string` - -The path to check. - -### isDirectory(path) - -Check whether the passed `path` is a directory. - -Returns a `Promise`. - -### isSymlink(path) - -Check whether the passed `path` is a symlink. - -Returns a `Promise`. - -### isFileSync(path) - -Synchronously check whether the passed `path` is a file. - -Returns a `boolean`. - -### isDirectorySync(path) - -Synchronously check whether the passed `path` is a directory. - -Returns a `boolean`. - -### isSymlinkSync(path) - -Synchronously check whether the passed `path` is a symlink. - -Returns a `boolean`. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/Scripts/node_modules/puppeteer-core/README.md b/Scripts/node_modules/puppeteer-core/README.md index 2f87f664..74a15c6e 100644 --- a/Scripts/node_modules/puppeteer-core/README.md +++ b/Scripts/node_modules/puppeteer-core/README.md @@ -46,10 +46,10 @@ pnpm i puppeteer ``` When you install Puppeteer, it automatically downloads a recent version of -[Chrome for Testing](https://developer.chrome.com/blog/chrome-for-testing/) (~170MB macOS, ~282MB Linux, ~280MB Windows) that is [guaranteed to +[Chrome for Testing](https://developer.chrome.com/blog/chrome-for-testing/) (~170MB macOS, ~282MB Linux, ~280MB Windows) and a `chrome-headless-shell` binary (starting with Puppeteer v21.6.0) that is [guaranteed to work](https://pptr.dev/faq#q-why-doesnt-puppeteer-vxxx-work-with-chromium-vyyy) with Puppeteer. The browser is downloaded to the `$HOME/.cache/puppeteer` folder -by default (starting with Puppeteer v19.0.0). +by default (starting with Puppeteer v19.0.0). See [configuration](https://pptr.dev/api/puppeteer.configuration) for configuration options and environmental variables to control the download behavor. If you deploy a project using Puppeteer to a hosting provider, such as Render or Heroku, you might need to reconfigure the location of the cache to be within @@ -156,10 +156,10 @@ import puppeteer from 'puppeteer'; await page.setViewport({width: 1080, height: 1024}); // Type into search box - await page.type('.search-box__input', 'automate beyond recorder'); + await page.type('.devsite-search-field', 'automate beyond recorder'); // Wait and click on first result - const searchResultSelector = '.search-box__link'; + const searchResultSelector = '.devsite-result-item-link'; await page.waitForSelector(searchResultSelector); await page.click(searchResultSelector); diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.d.ts index 1943af5d..58622042 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.d.ts @@ -121,6 +121,13 @@ export interface BrowserEvents extends Record { */ [BrowserEvent.TargetDiscovered]: Protocol.Target.TargetInfo; } +/** + * @public + * @experimental + */ +export interface DebugInfo { + pendingProtocolErrors: Error[]; +} /** * {@link Browser} represents a browser instance that is either: * @@ -300,7 +307,7 @@ export declare abstract class Browser extends EventEmitter { /** * Whether Puppeteer is connected to this {@link Browser | browser}. * - * @deprecated Use {@link Browser.connected}. + * @deprecated Use {@link Browser | Browser.connected}. */ isConnected(): boolean; /** @@ -315,5 +322,16 @@ export declare abstract class Browser extends EventEmitter { * @internal */ abstract get protocol(): ProtocolType; + /** + * Get debug information from Puppeteer. + * + * @remarks + * + * Currently, includes pending protocol calls. In the future, we might add more info. + * + * @public + * @experimental + */ + abstract get debugInfo(): DebugInfo; } //# sourceMappingURL=Browser.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.d.ts.map index 61c07ad7..5706fe1c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Browser.d.ts","sourceRoot":"","sources":["../../../../src/api/Browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAWhD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAE,KAAK,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAGvE,OAAO,EAAC,kBAAkB,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAExE,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AACxC;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAA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IACH,QAAQ,CAAC,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC;IAErC;;;OAGG;IACH,QAAQ,CAAC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAE/B;;;OAGG;IACH,QAAQ,CAAC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAEpC;;;;OAIG;IACH,WAAW,IAAI,OAAO;IAItB;;OAEG;IACH,QAAQ,KAAK,SAAS,IAAI,OAAO,CAAC;IAElC,gBAAgB;IAChB,CAAC,aAAa,CAAC,IAAI,IAAI;IAIvB,gBAAgB;IAChB,CAAC,kBAAkB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrC;;OAEG;IACH,QAAQ,KAAK,QAAQ,IAAI,YAAY,CAAC;IAEtC;;;;;;;;;OASG;IACH,QAAQ,KAAK,SAAS,IAAI,SAAS,CAAC;CACrC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.js index c9757e9f..de7961c3 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.js @@ -9,7 +9,6 @@ exports.Browser = exports.WEB_PERMISSION_TO_PROTOCOL_PERMISSION = void 0; const rxjs_js_1 = require("../../third_party/rxjs/rxjs.js"); const EventEmitter_js_1 = require("../common/EventEmitter.js"); const util_js_1 = require("../common/util.js"); -const util_js_2 = require("../common/util.js"); const disposable_js_1 = require("../util/disposable.js"); /** * @internal @@ -100,7 +99,7 @@ class Browser extends EventEmitter_js_1.EventEmitter { */ async waitForTarget(predicate, options = {}) { const { timeout: ms = 30000 } = options; - return await (0, rxjs_js_1.firstValueFrom)((0, rxjs_js_1.merge)((0, rxjs_js_1.fromEvent)(this, "targetcreated" /* BrowserEvent.TargetCreated */), (0, rxjs_js_1.fromEvent)(this, "targetchanged" /* BrowserEvent.TargetChanged */), (0, rxjs_js_1.from)(this.targets())).pipe((0, rxjs_js_1.filterAsync)(predicate), (0, rxjs_js_1.raceWith)((0, util_js_2.timeout)(ms)))); + return await (0, rxjs_js_1.firstValueFrom)((0, rxjs_js_1.merge)((0, util_js_1.fromEmitterEvent)(this, "targetcreated" /* BrowserEvent.TargetCreated */), (0, util_js_1.fromEmitterEvent)(this, "targetchanged" /* BrowserEvent.TargetChanged */), (0, rxjs_js_1.from)(this.targets())).pipe((0, rxjs_js_1.filterAsync)(predicate), (0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms)))); } /** * Gets a list of all open {@link Page | pages} inside this {@link Browser}. @@ -124,7 +123,7 @@ class Browser extends EventEmitter_js_1.EventEmitter { /** * Whether Puppeteer is connected to this {@link Browser | browser}. * - * @deprecated Use {@link Browser.connected}. + * @deprecated Use {@link Browser | Browser.connected}. */ isConnected() { return this.connected; diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.js.map index 6e261d21..52e6f15e 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Browser.js.map @@ -1 +1 @@ -{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/api/Browser.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAMH,4DAQwC;AAExC,+DAAuE;AACvE,+CAA6C;AAC7C,+CAA0C;AAC1C,yDAAwE;AAmCxE;;GAEG;AACU,QAAA,qCAAqC,GAAG,IAAI,GAAG,CAG1D;IACA,CAAC,aAAa,EAAE,aAAa,CAAC;IAC9B,CAAC,MAAM,EAAE,MAAM,CAAC;IAChB,CAAC,eAAe,EAAE,eAAe,CAAC;IAClC,iCAAiC;IACjC,oBAAoB;IACpB,CAAC,QAAQ,EAAE,cAAc,CAAC;IAC1B,CAAC,YAAY,EAAE,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K;QACT,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CACpC,IAAI,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YACnC,OAAO,OAAO,CAAC,KAAK,EAAE,CAAC;QACzB,CAAC,CAAC,CACH,CAAC;QACF,iBAAiB;QACjB,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;YACpC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACvB,CAAC,EAAE,EAAE,CAAC,CAAC;IACT,CAAC;IAoCD;;;;OAIG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAOD,gBAAgB;IAChB,CAAC,6BAAa,CAAC;QACb,OAAO,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,oBAAU,CAAC,CAAC;IAC7C,CAAC;IAED,gBAAgB;IAChB,CAAC,kCAAkB,CAAC;QAClB,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;CAMF;AA9MD,0BA8MC"} \ No newline at end of file +{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/api/Browser.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAMH,4DAMwC;AAExC,+DAAuE;AACvE,+CAAwE;AACxE,yDAAwE;AAmCxE;;GAEG;AACU,QAAA,qCAAqC,GAAG,IAAI,GAAG,CAG1D;IACA,CAAC,aAAa,EAAE,aAAa,CAAC;IAC9B,CAAC,MAAM,EAAE,MAAM,CAAC;IAChB,CAAC,eAAe,EAAE,eAAe,CAAC;IAClC,iCAAiC;IACjC,oBAAoB;IACpB,CAAC,QAAQ,EAAE,cAAc,CAAC;IAC1B,CAAC,YAAY,EAAE,cAAc,CAAC;IAC9B,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;IACrC,CAAC,sBAAsB,EAAE,SAAS,CAAC;IACnC,CAAC,eAAe,EAAE,SAAS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C,OAAO,OAAO,CAAC,KAAK,EAAE,CAAC;QACzB,CAAC,CAAC,CACH,CAAC;QACF,iBAAiB;QACjB,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;YACpC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACvB,CAAC,EAAE,EAAE,CAAC,CAAC;IACT,CAAC;IAoCD;;;;OAIG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAOD,gBAAgB;IAChB,CAAC,6BAAa,CAAC;QACb,OAAO,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,oBAAU,CAAC,CAAC;IAC7C,CAAC;IAED,gBAAgB;IAChB,CAAC,kCAAkB,CAAC;QAClB,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;CAkBF;AA1ND,0BA0NC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.d.ts index 2fc4edea..dec7d55c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.d.ts @@ -50,7 +50,7 @@ export declare abstract class Dialog { /** * @internal */ - protected abstract sendCommand(options: { + protected abstract handle(options: { accept: boolean; text?: string; }): Promise; diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.d.ts.map index 742ad27e..a6bfe4e2 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/api/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAIhD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,8BAAsB,MAAM;;IAM1B;;OAEG;gBAED,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,UAAU,EAC9B,OAAO,EAAE,MAAM,EACf,YAAY,SAAK;IAOnB;;OAEG;IACH,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,UAAU;IAIhC;;OAEG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,YAAY,IAAI,MAAM;IAItB;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO,EAAE;QACtC,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,IAAI,CAAC;IAEjB;;;;;;OAMG;IACG,MAAM,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAShD;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAO/B"} \ No newline at end of file +{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/api/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAIhD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,8BAAsB,MAAM;;IAM1B;;OAEG;gBAED,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,UAAU,EAC9B,OAAO,EAAE,MAAM,EACf,YAAY,SAAK;IAOnB;;OAEG;IACH,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,UAAU;IAIhC;;OAEG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,YAAY,IAAI,MAAM;IAItB;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE;QACjC,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,IAAI,CAAC;IAEjB;;;;;;OAMG;IACG,MAAM,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAShD;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAO/B"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.js index 2454c2a4..c1556eb7 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.js @@ -73,7 +73,7 @@ class Dialog { async accept(promptText) { (0, assert_js_1.assert)(!this.#handled, 'Cannot accept dialog which is already handled!'); this.#handled = true; - await this.sendCommand({ + await this.handle({ accept: true, text: promptText, }); @@ -84,7 +84,7 @@ class Dialog { async dismiss() { (0, assert_js_1.assert)(!this.#handled, 'Cannot dismiss dialog which is already handled!'); this.#handled = true; - await this.sendCommand({ + await this.handle({ accept: false, }); } diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.js.map index cf714373..eb402ece 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Dialog.js.map @@ -1 +1 @@ -{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/api/Dialog.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,iDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAsB,MAAM;IAC1B,KAAK,CAA2B;IAChC,QAAQ,CAAS;IACjB,aAAa,CAAS;IACtB,QAAQ,GAAG,KAAK,CAAC;IAEjB;;OAEG;IACH,YACE,IAA8B,EAC9B,OAAe,EACf,YAAY,GAAG,EAAE;QAEjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;OAEG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,YAAY;QACV,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAUD;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CAAC,UAAmB;QAC9B,IAAA,kBAAM,EAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,gDAAgD,CAAC,CAAC;QACzE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,MAAM,IAAI,CAAC,WAAW,CAAC;YACrB,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,UAAU;SACjB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO;QACX,IAAA,kBAAM,EAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,iDAAiD,CAAC,CAAC;QAC1E,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,MAAM,IAAI,CAAC,WAAW,CAAC;YACrB,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;CACF;AA3ED,wBA2EC"} \ No newline at end of file +{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/api/Dialog.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,iDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAsB,MAAM;IAC1B,KAAK,CAA2B;IAChC,QAAQ,CAAS;IACjB,aAAa,CAAS;IACtB,QAAQ,GAAG,KAAK,CAAC;IAEjB;;OAEG;IACH,YACE,IAA8B,EAC9B,OAAe,EACf,YAAY,GAAG,EAAE;QAEjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;OAEG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,YAAY;QACV,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAUD;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CAAC,UAAmB;QAC9B,IAAA,kBAAM,EAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,gDAAgD,CAAC,CAAC;QACzE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,MAAM,IAAI,CAAC,MAAM,CAAC;YAChB,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,UAAU;SACjB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO;QACX,IAAA,kBAAM,EAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,iDAAiD,CAAC,CAAC;QAC1E,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,MAAM,IAAI,CAAC,MAAM,CAAC;YAChB,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;CACF;AA3ED,wBA2EC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.d.ts.map index 9a891bf9..4106c73a 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ElementHandle.d.ts","sourceRoot":"","sources":["../../../../src/api/ElementHandle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AAG3C,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,OAAO,EACR,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAM5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EAClB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,EAAC,iBAAiB,EAAE,sBAAsB,EAAC,MAAM,WAAW,CAAC;AAEzE;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,IAAI,CAAC;IACd,MAAM,EAAE,IAAI,CAAC;IACb,MAAM,EAAE,IAAI,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,KAAK;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;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E,aAAa,CAAC,OAAO,CAAC,GAC3B,OAAO,CAAC,IAAI,CAAC;IAWhB;;;;;;;OAOG;IAGG,sBAAsB,CAC1B,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,EAC5B,OAAO,GAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;KACf,GACL,OAAO,CAAC,OAAO,CAAC;IAoBnB;;;OAGG;IAGG,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAyCjE;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE;QAEV,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;CACH"} \ No newline at end of file +{"version":3,"file":"ElementHandle.d.ts","sourceRoot":"","sources":["../../../../src/api/ElementHandle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AAG3C,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,OAAO,EACR,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAW5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EAClB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAC,QAAQ,EAAC,MAAM,e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ACb,CAAC;CACH"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.js index 5a21d9eb..aee48806 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.js @@ -91,6 +91,7 @@ const util_js_1 = require("../common/util.js"); const assert_js_1 = require("../util/assert.js"); const AsyncIterableUtil_js_1 = require("../util/AsyncIterableUtil.js"); const decorators_js_1 = require("../util/decorators.js"); +const disposable_js_1 = require("../util/disposable.js"); const ElementHandleSymbol_js_1 = require("./ElementHandleSymbol.js"); const JSHandle_js_1 = require("./JSHandle.js"); /** @@ -1180,26 +1181,62 @@ let ElementHandle = (() => { return point; } async screenshot(options = {}) { - const { scrollIntoView = true } = options; - let clip = await this.#nonEmptyVisibleBoundingBox(); - const page = this.frame.page(); - if (scrollIntoView) { - await this.scrollIntoViewIfNeeded(); - // We measure again just in case. - clip = await this.#nonEmptyVisibleBoundingBox(); - } - const [pageLeft, pageTop] = await this.evaluate(() => { - if (!window.visualViewport) { - throw new Error('window.visualViewport is not supported.'); + const env_6 = { stack: [], error: void 0, hasError: false }; + try { + const { scrollIntoView = true } = options; + let clip = await this.#nonEmptyVisibleBoundingBox(); + const page = this.frame.page(); + // If the element is larger than the viewport, `captureBeyondViewport` will + // _not_ affect element rendering, so we need to adjust the viewport to + // properly render the element. + const viewport = page.viewport() ?? { + width: clip.width, + height: clip.height, + }; + const stack = __addDisposableResource(env_6, new disposable_js_1.AsyncDisposableStack(), true); + if (clip.width > viewport.width || clip.height > viewport.height) { + await this.frame.page().setViewport({ + ...viewport, + width: Math.max(viewport.width, Math.ceil(clip.width)), + height: Math.max(viewport.height, Math.ceil(clip.height)), + }); + stack.defer(async () => { + try { + await this.frame.page().setViewport(viewport); + } + catch (error) { + (0, util_js_1.debugError)(error); + } + }); } - return [ - window.visualViewport.pageLeft, - window.visualViewport.pageTop, - ]; - }); - clip.x += pageLeft; - clip.y += pageTop; - return await page.screenshot({ ...options, clip }); + // Only scroll the element into view if the user wants it. + if (scrollIntoView) { + await this.scrollIntoViewIfNeeded(); + // We measure again just in case. + clip = await this.#nonEmptyVisibleBoundingBox(); + } + const [pageLeft, pageTop] = await this.evaluate(() => { + if (!window.visualViewport) { + throw new Error('window.visualViewport is not supported.'); + } + return [ + window.visualViewport.pageLeft, + window.visualViewport.pageTop, + ]; + }); + clip.x += pageLeft; + clip.y += pageTop; + return await page.screenshot({ ...options, clip }); + } + catch (e_6) { + env_6.error = e_6; + env_6.hasError = true; + } + finally { + const result_1 = __disposeResources(env_6); + if (result_1) + await result_1; + } } async #nonEmptyVisibleBoundingBox() { const box = await this.boundingBox(); @@ -1245,12 +1282,12 @@ let ElementHandle = (() => { * (full intersection). Defaults to 1. */ async isIntersectingViewport(options = {}) { - const env_6 = { stack: [], error: void 0, hasError: false }; + const env_7 = { stack: [], error: void 0, hasError: false }; try { await this.assertConnectedElement(); // eslint-disable-next-line rulesdir/use-using -- Returns `this`. const handle = await this.#asSVGElementHandle(); - const target = __addDisposableResource(env_6, handle && (await handle.#getOwnerSVGElement()), false); + const target = __addDisposableResource(env_7, handle && (await handle.#getOwnerSVGElement()), false); return await (target ?? this).evaluate(async (element, threshold) => { const visibleRatio = await new Promise(resolve => { const observer = new IntersectionObserver(entries => { @@ -1262,12 +1299,12 @@ let ElementHandle = (() => { return threshold === 1 ? visibleRatio === 1 : visibleRatio > threshold; }, options.threshold ?? 0); } - catch (e_6) { - env_6.error = e_6; - env_6.hasError = true; + catch (e_7) { + env_7.error = e_7; + env_7.hasError = true; } finally { - __disposeResources(env_6); + __disposeResources(env_7); } } /** diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.js.map index 28e4da48..25b07658 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/ElementHandle.js.map @@ -1 +1 @@ -{"version":3,"file":"ElementHandle.js","sourceRoot":"","sources":["../../../../src/api/ElementHandle.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKH,qEAAwE;AACxE,qDAA6C;AAS7C,+CAAyE;AACzE,iDAAyC;AACzC,uEAA+D;AAC/D,yDAAsD;AAEtD,qEAA0D;AAM1D,+CAAuC;AA4EvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;IACmB,aAAa;;sBAEzB,sBAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAFI,aAEpB,SAAQ,WAAqB;;;uCAyF5B,IAAA,+BAAe,GAAE,EACjB,CAAA,KAAA,aAAa,CAAA,CAAC,kBAAkB;yCAUhC,IAAA,+BAAe,GAAE,EACjB,CAAA,KAAA,aAAa,CAAA,CAAC,kBAAkB;qCAgDhC,IAAA,+BAAe,GAAE,EACjB,CAAA,KAAA,aAAa,CAAA,CAAC,kBAAkB;6BA6ChC,IAAA,+BAAe,GAAE,EACjB,CAAA,KAAA,aAAa,CAAA,CAAC,kBAAkB;8BAmBhC,IAAA,+BAAe,GAAE,EACjB,CAAA,KAAA,aAAa,CAAA,CAAC,kBAAkB;8BAqIhC,IAAA,+BAAe,GAAE,EACjB,CAAA,KAAA,aAAa,CAAA,CAAC,kBAAkB;2CA6ChC,IAAA,+BAAe,GAAE,EACjB,CAAA,KAAA,aAAa,CAAA,CAAC,kBAAkB;qCA8BhC,IAAA,+BAAe,GAAE,EACjB,CAAA,KAAA,aAAa,CAAA,CAAC,kBAAkB;oCAShC,IAAA,+BAAe,GAAE,EACjB,CAAA,KAAA,a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C,IAAI,OAAO,YAAY,aAAa,EAAE,CAAC;oBACrC,OAAO,OAAO,CAAC;gBACjB,CAAC;gBACD,OAAO,OAAO,CAAC,eAAgB,CAAC;YAClC,CAAC,CAAC,CAAC;QACL,CAAC;;;AAr0CmB,sCAAa;AAi3CnC,SAAS,oBAAoB,CAC3B,GAAgB,EAChB,KAAa,EACb,MAAc;IAEd,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAClB,GAAG,CAAC,CAAC,IAAI,CAAC;QACR,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC;QACpC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,EACtC,CAAC,CACF,CAAC;IACF,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CACnB,GAAG,CAAC,CAAC,IAAI,CAAC;QACR,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC;QACtC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,EACxC,CAAC,CACF,CAAC;AACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"ElementHandle.js","sourceRoot":"","sources":["../../../../src/api/ElementHandle.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKH,qEAAwE;AACxE,qDAA6C;AAS7C,+CAI2B;AAC3B,iDAAyC;AACzC,uEAA+D;AAC/D,yDAAsD;AACtD,yDAA2D;AAE3D,qEAA0D;AAM1D,+CAAuC;AA4EvC;;;;;;;;;;;;;;;;;;;;;;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AAM,GAAG,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC;QACtC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,EACxC,CAAC,CACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.d.ts.map index 41f6ea2c..3fbed5f5 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Frame.d.ts","sourceRoot":"","sources":["../../../../src/api/Frame.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,EAAC,YAAY,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACzE,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EACV,IAAI,EACJ,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAC,YAAY,EAAE,KAAK,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAIvE,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,OAAO,EACR,MAAM,oBAAoB,CAAC;AAS5B,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAChD,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C;IAqE1C;;;;;;;;;;;;;;;;;OAiBG;IAEG,KAAK,CACT,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,QAAQ,CAAC,YAAY,CAAM,GACnC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IAEG,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM5C;;;;;;OAMG;IAEG,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM5C;;;;;;;;;;;;;;;;;OAiBG;IAEG,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAMtE;;;;;OAKG;IAEG,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM1C;;;;;;;;;;;;;;;;;;;;OAoBG;IAEG,IAAI,CACR,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GACtC,OAAO,CAAC,IAAI,CAAC;IAMhB;;;;;;;;;;;;;;;;;;;OAmBG;IACG,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMzD;;OAEG;IAEG,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;IAM9B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CAAC,mBAAmB,CAC1B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,mBAAmB,CAAC;CAChC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js index 1e0b62ee..11c27d26 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js @@ -561,7 +561,20 @@ let Frame = (() => { * The full HTML contents of the frame, including the DOCTYPE. */ async content() { - return await this.evaluate(util_js_1.getPageContent); + return await this.evaluate(() => { + let content = ''; + for (const node of document.childNodes) { + switch (node) { + case document.documentElement: + content += document.documentElement.outerHTML; + break; + default: + content += new XMLSerializer().serializeToString(node); + break; + } + } + return content; + }); } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js.map index f1aacccc..3d0a6aa0 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js.map @@ -1 +1 @@ -{"version":3,"file":"Frame.js","sourceRoot":"","sources":["../../../../src/api/Frame.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcH,+DAAuE;AACvE,qEAAwE;AACxE,mEAAoE;AACpE,qDAA6C;AAQ7C,+CAI2B;AAC3B,iDAAyC;AACzC,yDAAsD;AAItD,wDAIgC;AA4IhC;;;;;GAKG;AACH,2DAA2D;AAC3D,IAAiB,UAAU,CAW1B;AAXD,WAAiB,UAAU;IACZ,yBAAc,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;IAChD,uBAAY,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAC5C,yBAAc,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;IAChD,uCAA4B,GAAG,MAAM,CAChD,oCAAoC,CACrC,CAAC;IACW,wBAAa,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAC9C,mCAAwB,GAAG,MAAM,CAC5C,gCAAgC,CACjC,CAAC;AACJ,CAAC,EAXgB,UAAU,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,IAAY,EACZ,OAAuC;;;gBAEvC,MAAM,MAAM,kCAAG,MAAM,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAA,CAAC;gBACtC,IAAA,kBAAM,EAAC,MAAM,EAAE,kCAAkC,QAAQ,EAAE,CAAC,CAAC;gBAC7D,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;;;;;;;;;SAClC;QAED;;;;;;;;;;;;;;;;;;;WAmBG;QACH,KAAK,CAAC,cAAc,CAAC,YAAoB;YACvC,OAAO,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;gBACjC,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;YACpC,CAAC,CAAC,CAAC;QACL,CAAC;QAED;;WAEG;QAEH,KAAK,CAAC,KAAK;YACT,OAAO,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC,QAAQ,CAAC,GAAG,EAAE;gBAC9C,OAAO,QAAQ,CAAC,KAAK,CAAC;YACxB,CAAC,CAAC,CAAC;QACL,CAAC;;;AA75BmB,sBAAK"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.d.ts index fbb70855..36b67cd7 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.d.ts @@ -10,19 +10,18 @@ import type { Protocol } from 'devtools-protocol'; import { type Observable } from '../../third_party/rxjs/rxjs.js'; import type { HTTPRequest } from '../api/HTTPRequest.js'; import type { HTTPResponse } from '../api/HTTPResponse.js'; -import type { BidiNetworkManager } from '../bidi/NetworkManager.js'; import type { Accessibility } from '../cdp/Accessibility.js'; import type { Coverage } from '../cdp/Coverage.js'; import type { DeviceRequestPrompt } from '../cdp/DeviceRequestPrompt.js'; -import type { NetworkManager as CdpNetworkManager, Credentials, NetworkConditions } from '../cdp/NetworkManager.js'; +import type { Credentials, NetworkConditions } from '../cdp/NetworkManager.js'; import type { Tracing } from '../cdp/Tracing.js'; import type { ConsoleMessage } from '../common/ConsoleMessage.js'; import type { Device } from '../common/Device.js'; import { EventEmitter, type EventsWithWildcard, type EventType } from '../common/EventEmitter.js'; import type { FileChooser } from '../common/FileChooser.js'; -import { type ParsedPDFOptions, type PDFOptions } from '../common/PDFOptions.js'; +import type { PDFOptions } from '../common/PDFOptions.js'; import { TimeoutSettings } from '../common/TimeoutSettings.js'; -import type { Awaitable, EvaluateFunc, EvaluateFuncWith, HandleFor, NodeFor } from '../common/types.js'; +import type { Awaitable, AwaitablePredicate, EvaluateFunc, EvaluateFuncWith, HandleFor, NodeFor } from '../common/types.js'; import type { Viewport } from '../common/Viewport.js'; import type { ScreenRecorder } from '../node/ScreenRecorder.js'; import { asyncDisposeSymbol, disposeSymbol } from '../util/disposable.js'; @@ -55,6 +54,23 @@ export interface Metrics { JSHeapUsedSize?: number; JSHeapTotalSize?: number; } +/** + * @public + */ +export interface WaitForNetworkIdleOptions extends WaitTimeoutOptions { + /** + * Time (in milliseconds) the network should be idle. + * + * @defaultValue `500` + */ + idleTime?: number; + /** + * Maximum number concurrent of network connections to be considered inactive. + * + * @defaultValue `0` + */ + concurrency?: number; +} /** * @public */ @@ -506,7 +522,7 @@ export declare abstract class Page extends EventEmitter { * * @deprecated We no longer support intercepting drag payloads. Use the new * drag APIs found on {@link ElementHandle} to drag (or just use the - * {@link Page.mouse}). + * {@link Page | Page.mouse}). */ abstract isDragInterceptionEnabled(): boolean; /** @@ -675,7 +691,7 @@ export declare abstract class Page extends EventEmitter { * * @deprecated We no longer support intercepting drag payloads. Use the new * drag APIs found on {@link ElementHandle} to drag (or just use the - * {@link Page.mouse}). + * {@link Page | Page.mouse}). */ abstract setDragInterception(enabled: boolean): Promise; /** @@ -1331,9 +1347,7 @@ export declare abstract class Page extends EventEmitter { * `0` to disable the timeout. The default value can be changed by using the * {@link Page.setDefaultTimeout} method. */ - abstract waitForRequest(urlOrPredicate: string | ((req: HTTPRequest) => boolean | Promise), options?: { - timeout?: number; - }): Promise; + waitForRequest(urlOrPredicate: string | AwaitablePredicate, options?: WaitTimeoutOptions): Promise; /** * @param urlOrPredicate - A URL or predicate to wait for. * @param options - Optional waiting parameters @@ -1361,21 +1375,18 @@ export declare abstract class Page extends EventEmitter { * pass `0` to disable the timeout. The default value can be changed by using * the {@link Page.setDefaultTimeout} method. */ - abstract waitForResponse(urlOrPredicate: string | ((res: HTTPResponse) => boolean | Promise), options?: { - timeout?: number; - }): Promise; + waitForResponse(urlOrPredicate: string | AwaitablePredicate, options?: WaitTimeoutOptions): Promise; /** - * @param options - Optional waiting parameters - * @returns Promise which resolves when network is idle + * Waits for the network to be idle. + * + * @param options - Options to configure waiting behavior. + * @returns A promise which resolves once the network is idle. */ - abstract waitForNetworkIdle(options?: { - idleTime?: number; - timeout?: number; - }): Promise; + waitForNetworkIdle(options?: WaitForNetworkIdleOptions): Promise; /** * @internal */ - _waitForNetworkIdle(networkManager: BidiNetworkManager | CdpNetworkManager, idleTime: number, requestsInFlight?: number): Observable; + waitForNetworkIdle$(options?: WaitForNetworkIdleOptions): Observable; /** * Waits for a frame matching the given conditions to appear. * @@ -1675,7 +1686,7 @@ export declare abstract class Page extends EventEmitter { * * This is either the viewport set with the previous {@link Page.setViewport} * call or the default viewport set via - * {@link BrowserConnectOptions.defaultViewport}. + * {@link BrowserConnectOptions | BrowserConnectOptions.defaultViewport}. */ abstract viewport(): Viewport | null; /** @@ -1838,10 +1849,6 @@ export declare abstract class Page extends EventEmitter { * @internal */ abstract _screenshot(options: Readonly): Promise; - /** - * @internal - */ - _getPDFOptions(options?: PDFOptions, lengthUnit?: 'in' | 'cm'): ParsedPDFOptions; /** * Generates a PDF of the page with the `print` CSS media type. * @@ -2229,13 +2236,4 @@ export declare abstract class Page extends EventEmitter { * @internal */ export declare const supportedMetrics: Set; -/** - * @internal - */ -export declare const unitToPixels: { - px: number; - in: number; - cm: number; - mm: number; -}; //# sourceMappingURL=Page.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.d.ts.map index adf46451..b4639c88 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../../src/api/Page.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAErC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAcL,KAAK,UAAU,EAChB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EACV,cAAc,IAAI,iBAAiB,EACnC,WAAW,EACX,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EACL,YAAY,EACZ,KAAK,k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,EAExD,YAAY,EAAE,IAAI,GAAG,MAAM,EAC3B,OAAO,CAAC,EAAE,2BAA2B,EACrC,GAAG,IAAI,EAAE,MAAM,GACd,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAIhD;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,mBAAmB,CAC1B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,mBAAmB,CAAC;IAE/B,gBAAgB;IAChB,CAAC,aAAa,CAAC,IAAI,IAAI;IAIvB,gBAAgB;IAChB,CAAC,kBAAkB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;CAGtC;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,aAc3B,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js index 5227fdc6..e5f9f3e0 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js @@ -107,15 +107,12 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; }); Object.defineProperty(exports, "__esModule", { value: true }); -exports.unitToPixels = exports.supportedMetrics = exports.Page = exports.setDefaultScreenshotOptions = void 0; +exports.supportedMetrics = exports.Page = exports.setDefaultScreenshotOptions = void 0; const rxjs_js_1 = require("../../third_party/rxjs/rxjs.js"); const Errors_js_1 = require("../common/Errors.js"); const EventEmitter_js_1 = require("../common/EventEmitter.js"); -const NetworkManagerEvents_js_1 = require("../common/NetworkManagerEvents.js"); -const PDFOptions_js_1 = require("../common/PDFOptions.js"); const TimeoutSettings_js_1 = require("../common/TimeoutSettings.js"); const util_js_1 = require("../common/util.js"); -const assert_js_1 = require("../util/assert.js"); const decorators_js_1 = require("../util/decorators.js"); const disposable_js_1 = require("../util/disposable.js"); const locators_js_1 = require("./locators/locators.js"); @@ -200,11 +197,25 @@ let Page = (() => { */ _timeoutSettings = new TimeoutSettings_js_1.TimeoutSettings(); #requestHandlers = new WeakMap(); + #inflight$ = new rxjs_js_1.ReplaySubject(1); /** * @internal */ constructor() { super(); + (0, util_js_1.fromEmitterEvent)(this, "request" /* PageEvent.Request */) + .pipe((0, rxjs_js_1.mergeMap)(originalRequest => { + return (0, rxjs_js_1.concat)((0, rxjs_js_1.of)(1), (0, rxjs_js_1.merge)((0, util_js_1.fromEmitterEvent)(this, "requestfailed" /* PageEvent.RequestFailed */), (0, util_js_1.fromEmitterEvent)(this, "requestfinished" /* PageEvent.RequestFinished */), (0, util_js_1.fromEmitterEvent)(this, "response" /* PageEvent.Response */).pipe((0, rxjs_js_1.map)(response => { + return response.request(); + }))).pipe((0, rxjs_js_1.filter)(request => { + return request._requestId === originalRequest._requestId; + }), (0, rxjs_js_1.take)(1), (0, rxjs_js_1.map)(() => { + return -1; + }))); + }), (0, rxjs_js_1.mergeScan)((acc, addend) => { + return (0, rxjs_js_1.of)(acc + addend); + }, 0), (0, rxjs_js_1.takeUntil)((0, util_js_1.fromEmitterEvent)(this, "close" /* PageEvent.Close */)), (0, rxjs_js_1.startWith)(0)) + .subscribe(this.#inflight$); } /** * Listen to page events. @@ -622,15 +633,104 @@ let Page = (() => { async waitForNavigation(options = {}) { return await this.mainFrame().waitForNavigation(options); } + /** + * @param urlOrPredicate - A URL or predicate to wait for + * @param options - Optional waiting parameters + * @returns Promise which resolves to the matched request + * @example + * + * ```ts + * const firstRequest = await page.waitForRequest( + * 'https://example.com/resource' + * ); + * const finalRequest = await page.waitForRequest( + * request => request.url() === 'https://example.com' + * ); + * return finalRequest.response()?.ok(); + * ``` + * + * @remarks + * Optional Waiting Parameters have: + * + * - `timeout`: Maximum wait time in milliseconds, defaults to `30` seconds, pass + * `0` to disable the timeout. The default value can be changed by using the + * {@link Page.setDefaultTimeout} method. + */ + waitForRequest(urlOrPredicate, options = {}) { + const { timeout: ms = this._timeoutSettings.timeout() } = options; + if (typeof urlOrPredicate === 'string') { + const url = urlOrPredicate; + urlOrPredicate = (request) => { + return request.url() === url; + }; + } + const observable$ = (0, util_js_1.fromEmitterEvent)(this, "request" /* PageEvent.Request */).pipe((0, rxjs_js_1.filterAsync)(urlOrPredicate), (0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms), (0, util_js_1.fromEmitterEvent)(this, "close" /* PageEvent.Close */).pipe((0, rxjs_js_1.map)(() => { + throw new Errors_js_1.TargetCloseError('Page closed!'); + })))); + return (0, rxjs_js_1.firstValueFrom)(observable$); + } + /** + * @param urlOrPredicate - A URL or predicate to wait for. + * @param options - Optional waiting parameters + * @returns Promise which resolves to the matched response. + * @example + * + * ```ts + * const firstResponse = await page.waitForResponse( + * 'https://example.com/resource' + * ); + * const finalResponse = await page.waitForResponse( + * response => + * response.url() === 'https://example.com' && response.status() === 200 + * ); + * const finalResponse = await page.waitForResponse(async response => { + * return (await response.text()).includes(''); + * }); + * return finalResponse.ok(); + * ``` + * + * @remarks + * Optional Parameter have: + * + * - `timeout`: Maximum wait time in milliseconds, defaults to `30` seconds, + * pass `0` to disable the timeout. The default value can be changed by using + * the {@link Page.setDefaultTimeout} method. + */ + waitForResponse(urlOrPredicate, options = {}) { + const { timeout: ms = this._timeoutSettings.timeout() } = options; + if (typeof urlOrPredicate === 'string') { + const url = urlOrPredicate; + urlOrPredicate = (response) => { + return response.url() === url; + }; + } + const observable$ = (0, util_js_1.fromEmitterEvent)(this, "response" /* PageEvent.Response */).pipe((0, rxjs_js_1.filterAsync)(urlOrPredicate), (0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms), (0, util_js_1.fromEmitterEvent)(this, "close" /* PageEvent.Close */).pipe((0, rxjs_js_1.map)(() => { + throw new Errors_js_1.TargetCloseError('Page closed!'); + })))); + return (0, rxjs_js_1.firstValueFrom)(observable$); + } + /** + * Waits for the network to be idle. + * + * @param options - Options to configure waiting behavior. + * @returns A promise which resolves once the network is idle. + */ + waitForNetworkIdle(options = {}) { + return (0, rxjs_js_1.firstValueFrom)(this.waitForNetworkIdle$(options)); + } /** * @internal */ - _waitForNetworkIdle(networkManager, idleTime, requestsInFlight = 0) { - return (0, rxjs_js_1.merge)((0, rxjs_js_1.fromEvent)(networkManager, NetworkManagerEvents_js_1.NetworkManagerEvent.Request), (0, rxjs_js_1.fromEvent)(networkManager, NetworkManagerEvents_js_1.NetworkManagerEvent.Response), (0, rxjs_js_1.fromEvent)(networkManager, NetworkManagerEvents_js_1.NetworkManagerEvent.RequestFailed)).pipe((0, rxjs_js_1.startWith)(undefined), (0, rxjs_js_1.filter)(() => { - return networkManager.inFlightRequestsCount() <= requestsInFlight; - }), (0, rxjs_js_1.switchMap)(v => { - return (0, rxjs_js_1.of)(v).pipe((0, rxjs_js_1.delay)(idleTime)); - })); + waitForNetworkIdle$(options = {}) { + const { timeout: ms = this._timeoutSettings.timeout(), idleTime = util_js_1.NETWORK_IDLE_TIME, concurrency = 0, } = options; + return this.#inflight$.pipe((0, rxjs_js_1.switchMap)(inflight => { + if (inflight > concurrency) { + return rxjs_js_1.EMPTY; + } + return (0, rxjs_js_1.timer)(idleTime); + }), (0, rxjs_js_1.map)(() => { }), (0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms), (0, util_js_1.fromEmitterEvent)(this, "close" /* PageEvent.Close */).pipe((0, rxjs_js_1.map)(() => { + throw new Errors_js_1.TargetCloseError('Page closed!'); + })))); } /** * Waits for a frame matching the given conditions to appear. @@ -650,7 +750,7 @@ let Page = (() => { return urlOrPredicate === frame.url(); }; } - return await (0, rxjs_js_1.firstValueFrom)((0, rxjs_js_1.merge)((0, rxjs_js_1.fromEvent)(this, "frameattached" /* PageEvent.FrameAttached */), (0, rxjs_js_1.fromEvent)(this, "framenavigated" /* PageEvent.FrameNavigated */), (0, rxjs_js_1.from)(this.frames())).pipe((0, rxjs_js_1.filterAsync)(urlOrPredicate), (0, rxjs_js_1.first)(), (0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms), (0, rxjs_js_1.fromEvent)(this, "close" /* PageEvent.Close */).pipe((0, rxjs_js_1.map)(() => { + return await (0, rxjs_js_1.firstValueFrom)((0, rxjs_js_1.merge)((0, util_js_1.fromEmitterEvent)(this, "frameattached" /* PageEvent.FrameAttached */), (0, util_js_1.fromEmitterEvent)(this, "framenavigated" /* PageEvent.FrameNavigated */), (0, rxjs_js_1.from)(this.frames())).pipe((0, rxjs_js_1.filterAsync)(urlOrPredicate), (0, rxjs_js_1.first)(), (0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms), (0, util_js_1.fromEmitterEvent)(this, "close" /* PageEvent.Close */).pipe((0, rxjs_js_1.map)(() => { throw new Errors_js_1.TargetCloseError('Page closed.'); }))))); } @@ -1022,50 +1122,6 @@ let Page = (() => { await result_1; } } - /** - * @internal - */ - _getPDFOptions(options = {}, lengthUnit = 'in') { - const defaults = { - scale: 1, - displayHeaderFooter: false, - headerTemplate: '', - footerTemplate: '', - printBackground: false, - landscape: false, - pageRanges: '', - preferCSSPageSize: false, - omitBackground: false, - timeout: 30000, - tagged: false, - }; - let width = 8.5; - let height = 11; - if (options.format) { - const format = PDFOptions_js_1.paperFormats[options.format.toLowerCase()]; - (0, assert_js_1.assert)(format, 'Unknown paper format: ' + options.format); - width = format.width; - height = format.height; - } - else { - width = convertPrintParameterToInches(options.width, lengthUnit) ?? width; - height = - convertPrintParameterToInches(options.height, lengthUnit) ?? height; - } - const margin = { - top: convertPrintParameterToInches(options.margin?.top, lengthUnit) || 0, - left: convertPrintParameterToInches(options.margin?.left, lengthUnit) || 0, - bottom: convertPrintParameterToInches(options.margin?.bottom, lengthUnit) || 0, - right: convertPrintParameterToInches(options.margin?.right, lengthUnit) || 0, - }; - return { - ...defaults, - ...options, - width, - height, - margin, - }; - } /** * The page's title * @@ -1440,46 +1496,6 @@ exports.supportedMetrics = new Set([ 'JSHeapUsedSize', 'JSHeapTotalSize', ]); -/** - * @internal - */ -exports.unitToPixels = { - px: 1, - in: 96, - cm: 37.8, - mm: 3.78, -}; -function convertPrintParameterToInches(parameter, lengthUnit = 'in') { - if (typeof parameter === 'undefined') { - return undefined; - } - let pixels; - if ((0, util_js_1.isNumber)(parameter)) { - // Treat numbers as pixel values to be aligned with phantom's paperSize. - pixels = parameter; - } - else if ((0, util_js_1.isString)(parameter)) { - const text = parameter; - let unit = text.substring(text.length - 2).toLowerCase(); - let valueText = ''; - if (unit in exports.unitToPixels) { - valueText = text.substring(0, text.length - 2); - } - else { - // In case of unknown unit try to parse the whole parameter as number of pixels. - // This is consistent with phantom's paperSize behavior. - unit = 'px'; - valueText = text; - } - const value = Number(valueText); - (0, assert_js_1.assert)(!isNaN(value), 'Failed to parse parameter value: ' + text); - pixels = value * exports.unitToPixels[unit]; - } - else { - throw new Error('page.pdf() Cannot handle parameter type: ' + typeof parameter); - } - return pixels / exports.unitToPixels[lengthUnit]; -} /** @see https://w3c.github.io/webdriver-bidi/#normalize-rect */ function normalizeRectangle(clip) { return { diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js.map index 5fb97622..cd93fe9a 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js.map @@ -1 +1 @@ -{"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../../src/api/Page.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMH,4DAewC;AAexC,mDAAqD;AACrD,+DAKmC;AAEnC,+EAAsE;AACtE,2DAKiC;AACjC,qEAA6D;AAQ7D,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I,CAAC,MAAM,GAAG,CAAC;YACjB,CAAC,CAAC;gBACE,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM;gBACvB,MAAM,EAAE,CAAC,IAAI,CAAC,MAAM;aACrB;YACH,CAAC,CAAC;gBACE,CAAC,EAAE,IAAI,CAAC,CAAC;gBACT,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC;KACP,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CACrB,IAA+B;IAE/B,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7B,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAClD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACpD,OAAO,EAAC,GAAG,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BidiOverCdp.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BidiOverCdp.js.map index 97ebb3ab..1535a745 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BidiOverCdp.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BidiOverCdp.js.map @@ -1 +1 @@ -{"version":3,"file":"BidiOverCdp.js","sourceRoot":"","sources":["../../../../src/bidi/BidiOverCdp.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2FA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AAiB;IAGpC,UAAU,GACR,KAAK,EAAE,EAA6B,EAAiB,EAAE;QACrD,OAAO;IACT,CAAC,CAAC;IAEJ,WAAW,CAAC,OAAkC;QAC5C,KAAK,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAED,YAAY,CACV,SAAuE;QAEvE,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAAkC;QAClD,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,KAAK;QACH,IAAI,CAAC,UAAU,GAAG,KAAK,EAAE,EAA6B,EAAiB,EAAE;YACvE,OAAO;QACT,CAAC,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"BidiOverCdp.js","sourceRoot":"","sources":["../../../../src/bidi/BidiOverCdp.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2FAA6E;AAM7E,iDAAyC;AACzC,mDAAqD;AAGrD,mDAA+C;AAE/C,MAAM,gBAAgB,GAAG,CAAC,MAAc,EAAE,GAAG,IAAe,EAAQ,EAAE;IACpE,IAAA,gBAAK,EAAC,QAAQ,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC,CAAC;AAEF;;GAEG;AACI,KAAK,UAAU,kBAAkB,CACtC,GAAkB;AAClB,uEAAuE;AACvE,sDAAsD;AACtD,OAAuC;IAEvC,MAAM,aAAa,GAAG,IAAI,aAAa,EAAE,CAAC;IAC1C,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAC3D,MAAM,aAAa,GAAG;QACpB,IAAI,CAAC,OAAe;YAClB,4EAA4E;YAC5E,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QACjD,CAAC;QACD,KAAK;YACH,UA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CACf,MAAS,EACT,GAAG,MAAiD;QAEpD,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,OAAO;QACT,CAAC;QACD,IAAI,CAAC;YACH,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC;QACpD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;gBACjB,OAAO;YACT,CAAC;YACD,MAAM,GAAG,CAAC;QACZ,CAAC;IACH,CAAC;IAED,KAAK;QACH,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,eAA+B,CAAC,CAAC;QAC5D,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,YAAY,CAAC,KAAc;QACzB,OAAO,KAAK,YAAY,4BAAgB,CAAC;IAC3C,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,aACJ,SAAQ,UAAU,CAAC,YAEjB;IAGF,UAAU,GACR,KAAK,EAAE,EAA6B,EAAiB,EAAE;QACrD,OAAO;IACT,CAAC,CAAC;IAEJ,WAAW,CAAC,OAAkC;QAC5C,KAAK,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAED,YAAY,CACV,SAAuE;QAEvE,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAAkC;QAClD,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,KAAK;QACH,IAAI,CAAC,UAAU,GAAG,KAAK,EAAE,EAA6B,EAAiB,EAAE;YACvE,OAAO;QACT,CAAC,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.d.ts index acba2478..cb759b02 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.d.ts @@ -6,7 +6,7 @@ /// import type { ChildProcess } from 'child_process'; import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; -import { Browser, type BrowserCloseCallback, type BrowserContextOptions } from '../api/Browser.js'; +import { Browser, type BrowserCloseCallback, type BrowserContextOptions, type DebugInfo } from '../api/Browser.js'; import type { Page } from '../api/Page.js'; import type { Target } from '../api/Target.js'; import type { Viewport } from '../common/Viewport.js'; @@ -32,10 +32,7 @@ export declare class BidiBrowser extends Browser { static readonly subscribeModules: string[]; static readonly subscribeCdpEvents: Bidi.Cdp.EventNames[]; static create(opts: BidiBrowserOptions): Promise; - constructor(opts: BidiBrowserOptions & { - browserName: string; - browserVersion: string; - }); + private constructor(); userAgent(): never; get connection(): BidiConnection; wsEndpoint(): string; @@ -45,12 +42,12 @@ export declare class BidiBrowser extends Browser { createIncognitoBrowserContext(_options?: BrowserContextOptions): Promise; version(): Promise; browserContexts(): BidiBrowserContext[]; - _closeContext(browserContext: BidiBrowserContext): Promise; defaultBrowserContext(): BidiBrowserContext; newPage(): Promise; targets(): Target[]; _getTargetById(id: string): BidiTarget; target(): Target; disconnect(): Promise; + get debugInfo(): DebugInfo; } //# sourceMappingURL=Browser.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.d.ts.map index 6d5ab5b5..3ad6dfda 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Browser.d.ts","sourceRoot":"","sources":["../../../../src/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,SAAS,IAAI,SAAS,CAIlC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.js index 84197a54..a9d73bbe 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.js @@ -11,6 +11,7 @@ const Errors_js_1 = require("../common/Errors.js"); const util_js_1 = require("../common/util.js"); const BrowserContext_js_1 = require("./BrowserContext.js"); const BrowsingContext_js_1 = require("./BrowsingContext.js"); +const Session_js_1 = require("./core/Session.js"); const Target_js_1 = require("./Target.js"); /** * @internal @@ -37,46 +38,26 @@ class BidiBrowser extends Browser_js_1.Browser { 'cdp.Page.screencastFrame', ]; static async create(opts) { - let browserName = ''; - let browserVersion = ''; - // TODO: await until the connection is established. - try { - const { result } = await opts.connection.send('session.new', { - capabilities: { - alwaysMatch: { - acceptInsecureCerts: opts.ignoreHTTPSErrors, - }, - }, - }); - browserName = result.capabilities.browserName ?? ''; - browserVersion = result.capabilities.browserVersion ?? ''; - } - catch (err) { - // Chrome does not support session.new. - (0, util_js_1.debugError)(err); - } - await opts.connection.send('session.subscribe', { - events: browserName.toLocaleLowerCase().includes('firefox') - ? BidiBrowser.subscribeModules - : [...BidiBrowser.subscribeModules, ...BidiBrowser.subscribeCdpEvents], - }); - const browser = new BidiBrowser({ - ...opts, - browserName, - browserVersion, + const session = await Session_js_1.Session.from(opts.connection, { + alwaysMatch: { + acceptInsecureCerts: opts.ignoreHTTPSErrors, + webSocketUrl: true, + }, }); + await session.subscribe(session.capabilities.browserName.toLocaleLowerCase().includes('firefox') + ? BidiBrowser.subscribeModules + : [...BidiBrowser.subscribeModules, ...BidiBrowser.subscribeCdpEvents]); + const browser = new BidiBrowser(session.browser, opts); + browser.#initialize(); await browser.#getTree(); return browser; } - #browserName = ''; - #browserVersion = ''; #process; #closeCallback; - #connection; + #browserCore; #defaultViewport; - #defaultContext; #targets = new Map(); - #contexts = []; + #browserContexts = new WeakMap(); #browserTarget; #connectionEventHandlers = new Map([ ['browsingContext.contextCreated', this.#onContextCreated.bind(this)], @@ -85,35 +66,50 @@ class BidiBrowser extends Browser_js_1.Browser { ['browsingContext.fragmentNavigated', this.#onContextNavigation.bind(this)], ['browsingContext.navigationStarted', this.#onContextNavigation.bind(this)], ]); - constructor(opts) { + constructor(browserCore, opts) { super(); this.#process = opts.process; this.#closeCallback = opts.closeCallback; - this.#connection = opts.connection; + this.#browserCore = browserCore; this.#defaultViewport = opts.defaultViewport; - this.#browserName = opts.browserName; - this.#browserVersion = opts.browserVersion; - this.#process?.once('close', () => { - this.#connection.dispose(); + this.#browserTarget = new Target_js_1.BiDiBrowserTarget(this); + for (const context of this.#browserCore.userContexts) { + this.#createBrowserContext(context); + } + } + #initialize() { + this.#browserCore.once('disconnected', () => { this.emit("disconnected" /* BrowserEvent.Disconnected */, undefined); }); - this.#defaultContext = new BrowserContext_js_1.BidiBrowserContext(this, { - defaultViewport: this.#defaultViewport, - isDefault: true, + this.#process?.once('close', () => { + this.#browserCore.dispose('Browser process exited.', true); + this.connection.dispose(); }); - this.#browserTarget = new Target_js_1.BiDiBrowserTarget(this.#defaultContext); - this.#contexts.push(this.#defaultContext); for (const [eventName, handler] of this.#connectionEventHandlers) { - this.#connection.on(eventName, handler); + this.connection.on(eventName, handler); } } + get #browserName() { + return this.#browserCore.session.capabilities.browserName; + } + get #browserVersion() { + return this.#browserCore.session.capabilities.browserVersion; + } userAgent() { throw new Errors_js_1.UnsupportedOperation(); } + #createBrowserContext(userContext) { + const browserContext = new BrowserContext_js_1.BidiBrowserContext(this, userContext, { + defaultViewport: this.#defaultViewport, + }); + this.#browserContexts.set(userContext, browserContext); + return browserContext; + } #onContextDomLoaded(event) { const target = this.#targets.get(event.context); if (target) { this.emit("targetchanged" /* BrowserEvent.TargetChanged */, target); + target.browserContext().emit("targetchanged" /* BrowserContextEvent.TargetChanged */, target); } } #onContextNavigation(event) { @@ -124,12 +120,13 @@ class BidiBrowser extends Browser_js_1.Browser { } } #onContextCreated(event) { - const context = new BrowsingContext_js_1.BrowsingContext(this.#connection, event, this.#browserName); - this.#connection.registerBrowsingContexts(context); - // TODO: once more browsing context types are supported, this should be - // updated to support those. Currently, all top-level contexts are treated - // as pages. - const browserContext = this.browserContexts().at(-1); + const context = new BrowsingContext_js_1.BrowsingContext(this.connection, event, this.#browserName); + this.connection.registerBrowsingContexts(context); + const browserContext = event.userContext === 'default' + ? this.defaultBrowserContext() + : this.browserContexts().find(browserContext => { + return browserContext.id === event.userContext; + }); if (!browserContext) { throw new Error('Missing browser contexts'); } @@ -140,19 +137,19 @@ class BidiBrowser extends Browser_js_1.Browser { this.emit("targetcreated" /* BrowserEvent.TargetCreated */, target); target.browserContext().emit("targetcreated" /* BrowserContextEvent.TargetCreated */, target); if (context.parent) { - const topLevel = this.#connection.getTopLevelContext(context.parent); + const topLevel = this.connection.getTopLevelContext(context.parent); topLevel.emit(BrowsingContext_js_1.BrowsingContextEvent.Created, context); } } async #getTree() { - const { result } = await this.#connection.send('browsingContext.getTree', {}); + const { result } = await this.connection.send('browsingContext.getTree', {}); for (const context of result.contexts) { this.#onContextCreated(context); } } async #onContextDestroyed(event) { - const context = this.#connection.getBrowsingContext(event.context); - const topLevelContext = this.#connection.getTopLevelContext(event.context); + const context = this.connection.getBrowsingContext(event.context); + const topLevelContext = this.connection.getTopLevelContext(event.context); topLevelContext.emit(BrowsingContext_js_1.BrowsingContextEvent.Destroyed, context); const target = this.#targets.get(event.context); const page = await target?.page(); @@ -164,61 +161,54 @@ class BidiBrowser extends Browser_js_1.Browser { } } get connection() { - return this.#connection; + // SAFETY: We only have one implementation. + return this.#browserCore.session.connection; } wsEndpoint() { - return this.#connection.url; + return this.connection.url; } async close() { for (const [eventName, handler] of this.#connectionEventHandlers) { - this.#connection.off(eventName, handler); + this.connection.off(eventName, handler); } - if (this.#connection.closed) { + if (this.connection.closed) { return; } - // `browser.close` can close connection before the response is received. - await this.#connection.send('browser.close', {}).catch(util_js_1.debugError); - await this.#closeCallback?.call(null); - this.#connection.dispose(); + try { + await this.#browserCore.close(); + await this.#closeCallback?.call(null); + } + catch (error) { + // Fail silently. + (0, util_js_1.debugError)(error); + } + finally { + this.connection.dispose(); + } } get connected() { - return !this.#connection.closed; + return !this.#browserCore.disposed; } process() { return this.#process ?? null; } async createIncognitoBrowserContext(_options) { - // TODO: implement incognito context https://github.com/w3c/webdriver-bidi/issues/289. - const context = new BrowserContext_js_1.BidiBrowserContext(this, { - defaultViewport: this.#defaultViewport, - isDefault: false, - }); - this.#contexts.push(context); - return context; + const userContext = await this.#browserCore.createUserContext(); + return this.#createBrowserContext(userContext); } async version() { return `${this.#browserName}/${this.#browserVersion}`; } browserContexts() { - // TODO: implement incognito context https://github.com/w3c/webdriver-bidi/issues/289. - return this.#contexts; - } - async _closeContext(browserContext) { - this.#contexts = this.#contexts.filter(c => { - return c !== browserContext; + return [...this.#browserCore.userContexts].map(context => { + return this.#browserContexts.get(context); }); - for (const target of browserContext.targets()) { - const page = await target?.page(); - await page?.close().catch(error => { - (0, util_js_1.debugError)(error); - }); - } } defaultBrowserContext() { - return this.#defaultContext; + return this.#browserContexts.get(this.#browserCore.defaultUserContext); } newPage() { - return this.#defaultContext.newPage(); + return this.defaultBrowserContext().newPage(); } targets() { return [this.#browserTarget, ...Array.from(this.#targets.values())]; @@ -235,13 +225,20 @@ class BidiBrowser extends Browser_js_1.Browser { } async disconnect() { try { - // Fail silently if the session cannot be ended. - await this.#connection.send('session.end', {}); + await this.#browserCore.session.end(); } - catch (e) { - (0, util_js_1.debugError)(e); + catch (error) { + // Fail silently. + (0, util_js_1.debugError)(error); } - this.#connection.dispose(); + finally { + this.connection.dispose(); + } + } + get debugInfo() { + return { + pendingProtocolErrors: this.connection.getPendingProtocolErrors(), + }; } } exports.BidiBrowser = BidiBrowser; diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.js.map index 07ae7308..167369a1 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Browser.js.map @@ -1 +1 @@ -{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/bidi/Browser.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAMH,kDAK2B;AAI3B,mDAAyD;AAEzD,+CAA6C;AAG7C,2DAAuD;AACvD,6DAA2E;AAE3E,2CAKqB;AAarB;;GAEG;AACH,MAAa,WAAY,SAAQ,oBAAO;IAC7B,QAAQ,GAAG,eAAe,CAAC;IAEpC,iDAAiD;IACjD,MAAM,CAAU,gBAAgB,GAAa;QAC3C,iBAAiB;QACjB,SAAS;QACT,KAAK;QACL,QAAQ;KACT,CAAC;IACF,MAAM,CAAU,kBAAkB,GAA0B;QAC1D,WAAW;QACX,2BAA2B;QAC3B,yBAAyB;QACzB,sCAAsC;QACtC,UAAU;QACV,6BAA6B;QAC7B,mDAAmD;QACnD,+BAA+B;QAC/B,2BAA2B;QAC3B,0BAA0B;KAC3B,CAAC;IAEF,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAwB;QAC1C,IAAI,WAAW,GAAG,EAAE,CAAC;QACrB,IAAI,cAAc,GAAG,EAAE,CAAC;QAExB,mDAAmD;QACnD,IAAI,CAAC;YACH,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,aAAa,EAAE;gBACzD,YAAY,EAAE;oBACZ,WAAW,EAAE;wBACX,mBAAmB,EAAE,IAAI,CAAC,iBAAiB;qBAC5C;iBACF;aACF,CAAC,CAAC;YACH,WAAW,GAAG,MAAM,CAAC,YAAY,CAAC,WAAW,IAAI,EAAE,CAAC;YACpD,cAAc,GAA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AO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAEQ,KAAK,CAAC,UAAU;QACvB,IAAI,CAAC;YACH,gDAAgD;YAChD,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;QACjD,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,IAAA,oBAAU,EAAC,CAAC,CAAC,CAAC;QAChB,CAAC;QACD,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;;AArRH,kCAsRC"} \ No newline at end of file +{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/bidi/Browser.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAMH,kDAM2B;AAI3B,mDAAyD;AAEzD,+CAA6C;AAG7C,2DAAuD;AACvD,6DAA2E;AAG3E,kDAA0C;AAE1C,2CAKqB;AAarB;;GAEG;AACH,MAAa,WAAY,SAAQ,oBAAO;IAC7B,QAAQ,GAAG,eAAe,CAAC;IAEpC,iDAAiD;IACjD,MAAM,CAAU,gBAAgB,GAAa;QAC3C,iBAAiB;QACjB,SAAS;QACT,KAAK;QACL,QAAQ;KACT,CAAC;IACF,MAAM,CAAU,kBAAkB,GAA0B;QAC1D,WAAW;QACX,2BAA2B;QAC3B,yBAAyB;QACzB,sCAAsC;QACtC,UAAU;QACV,6BAA6B;QAC7B,mDAAmD;QACnD,+BAA+B;QAC/B,2BAA2B;QAC3B,0BAA0B;KAC3B,CAAC;IAEF,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAwB;QAC1C,MAAM,OAAO,GAAG,MAAM,oBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YAClD,WAAW,EAAE;gBACX,mBAAmB,EAAE,IAAI,CAAC,iBAAiB;gBAC3C,YAAY,EAAE,IAAI;aACnB;SACF,CAAC,CAAC;QAEH,MAAM,OAAO,CAAC,SAAS,CACrB,OAAO,CAAC,YAAY,CAAC,WA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AM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAEQ,MAAM;QACb,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAEQ,KAAK,CAAC,UAAU;QACvB,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;QACxC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,iBAAiB;YACjB,IAAA,oBAAU,EAAC,KAAK,CAAC,CAAC;QACpB,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC;IAED,IAAa,SAAS;QACpB,OAAO;YACL,qBAAqB,EAAE,IAAI,CAAC,UAAU,CAAC,wBAAwB,EAAE;SAClE,CAAC;IACJ,CAAC;;AA5QH,kCA6QC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserConnector.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserConnector.js index 03756c35..8640b5a7 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserConnector.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserConnector.js @@ -79,7 +79,7 @@ async function getBiDiConnection(connectionTransport, url, options) { } } catch (e) { - if (!('name' in e && e.name === 'ProtocolError')) { + if (!(e instanceof Errors_js_1.ProtocolError)) { // Unexpected exception not related to BiDi / CDP. Rethrow. throw e; } diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserConnector.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserConnector.js.map index 8f15b642..6eef902c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserConnector.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserConnector.js.map @@ -1 +1 @@ -{"version":3,"file":"BrowserConnector.js","sourceRoot":"","sources":["../../../../src/bidi/BrowserConnector.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,wDAAgD;AAMhD,mDAAyD;AACzD,+CAA+D;AAK/D;;;;;;;GAOG;AACI,KAAK,UAAU,qBAAqB,CACzC,mBAAwC,EACxC,GAAW,EACX,OAA+C;IAE/C,MAAM,EAAC,iBAAiB,GAAG,KAAK,EAAE,eAAe,GAAG,0BAAgB,EAAC,GACnE,OAAO,CAAC;IAEV,MAAM,EAAC,cAAc,EAAE,aAAa,EAAC,GAAG,MAAM,iBAAiB,CAC7D,mBAAmB,EACnB,GAAG,EACH,OAAO,CACR,CAAC;IACF,MAAM,IAAI,GAAG,wDAAa,yBAAyB,CAAC,WAAW,GAAC,CAAC;IACjE,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;QAChD,UAAU,EAAE,cAAc;QAC1B,aAAa;QACb,OAAO,EAAE,SAAS;QAClB,eAAe,EAAE,eAAe;QAChC,iBAAiB,EAAE,iBAAiB;KACrC,CAAC,CAAC;IACH,OAAO,WAAW,CAAC;AACrB,CAAC;AAtBD,sDAsBC;AAED;;;;;;GAMG;AACH,KAAK,UAAU,iBAAiB,CAC9B,mBAAwC,EACxC,GAAW,EACX,OAA8B;IAK9B,MAAM,IAAI,GAAG,wDAAa,yBAAyB,CAAC,WAAW,GAAC,CAAC;IACjE,MAAM,EAAC,iBAAiB,GAAG,KAAK,EAAE,MAAM,GAAG,CAAC,EAAE,eAAe,EAAC,GAAG,OAAO,CAAC;IAEzE,uBAAuB;IACvB,MAAM,kBAAkB,GAAG,IAAI,IAAI,CAAC,cAAc,CAChD,GAAG,EACH,mBAAmB,EACnB,MAAM,EACN,eAAe,CAChB,CAAC;IACF,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,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AAC,KAAK,CAAC,oBAAU,CAAC,CAAC;QAC9D,CAAC;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"BrowserConnector.js","sourceRoot":"","sources":["../../../../src/bidi/BrowserConnector.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,wDAAgD;AAMhD,mDAAwE;AACxE,+CAA+D;AAK/D;;;;;;;GAOG;AACI,KAAK,UAAU,qBAAqB,CACzC,mBAAwC,EACxC,GAAW,EACX,OAA+C;IAE/C,MAAM,EAAC,iBAAiB,GAAG,KAAK,EAAE,eAAe,GAAG,0BAAgB,EAAC,GACnE,OAAO,CAAC;IAEV,MAAM,EAAC,cAAc,EAAE,aAAa,EAAC,GAAG,MAAM,iBAAiB,CAC7D,mBAAmB,EACnB,GAAG,EACH,OAAO,CACR,CAAC;IACF,MAAM,IAAI,GAAG,wDAAa,yBAAyB,CAAC,WAAW,GAAC,CAAC;IACjE,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;QAChD,UAAU,EAAE,cAAc;QAC1B,aAAa;QACb,OAAO,EAAE,SAAS;QAClB,eAAe,EAAE,eAAe;QAChC,iBAAiB,EAAE,iBAAiB;KACrC,CAAC,CAAC;IACH,OAAO,WAAW,CAAC;AACrB,CAAC;AAtBD,sDAsBC;AAED;;;;;;GAMG;AACH,KAAK,UAAU,iBAAiB,CAC9B,mBAAwC,EACxC,GAAW,EACX,OAA8B;IAK9B,MAAM,IAAI,GAAG,wDAAa,yBAAyB,CAAC,WAAW,GAAC,CAAC;IACjE,MAAM,EAAC,iBAAiB,GAAG,KAAK,EAAE,MAAM,GAAG,CAAC,EAAE,eAAe,EAAC,GAAG,OAAO,CAAC;IAEzE,uBAAuB;IACvB,MAAM,kBAAkB,GAAG,IAAI,IAAI,CAAC,cAAc,CAChD,GAAG,EACH,mBAAmB,EACnB,MAAM,EACN,eAAe,CAChB,CAAC;IACF,IAA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CAAC,KAAK,CAAC,oBAAU,CAAC,CAAC;QAC9D,CAAC;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.d.ts index 7ac08582..62f292b6 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.d.ts @@ -10,20 +10,20 @@ import type { Target } from '../api/Target.js'; import type { Viewport } from '../common/Viewport.js'; import type { BidiBrowser } from './Browser.js'; import type { BidiConnection } from './Connection.js'; +import { UserContext } from './core/UserContext.js'; import type { BidiPage } from './Page.js'; /** * @internal */ export interface BidiBrowserContextOptions { defaultViewport: Viewport | null; - isDefault: boolean; } /** * @internal */ export declare class BidiBrowserContext extends BrowserContext { #private; - constructor(browser: BidiBrowser, options: BidiBrowserContextOptions); + constructor(browser: BidiBrowser, userContext: UserContext, options: BidiBrowserContextOptions); targets(): Target[]; waitForTarget(predicate: (x: Target) => boolean | Promise, options?: WaitForTargetOptions): Promise; get connection(): BidiConnection; @@ -34,5 +34,6 @@ export declare class BidiBrowserContext extends BrowserContext { isIncognito(): boolean; overridePermissions(): never; clearPermissionOverrides(): never; + get id(): string | undefined; } //# sourceMappingURL=BrowserContext.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map index 53b44521..bc3de90b 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"BrowserContext.d.ts","sourceRoot":"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;IAI5B,wBAAwB,IAAI,KAAK;IAI1C,IAAa,EAAE,IAAI,MAAM,GAAG,SAAS,CAKpC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.js index 1e0ce9f2..8c3b9f6a 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.js @@ -8,6 +8,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.BidiBrowserContext = void 0; const BrowserContext_js_1 = require("../api/BrowserContext.js"); const Errors_js_1 = require("../common/Errors.js"); +const util_js_1 = require("../common/util.js"); +const UserContext_js_1 = require("./core/UserContext.js"); /** * @internal */ @@ -15,13 +17,13 @@ class BidiBrowserContext extends BrowserContext_js_1.BrowserContext { #browser; #connection; #defaultViewport; - #isDefault = false; - constructor(browser, options) { + #userContext; + constructor(browser, userContext, options) { super(); this.#browser = browser; + this.#userContext = userContext; this.#connection = this.#browser.connection; this.#defaultViewport = options.defaultViewport; - this.#isDefault = options.isDefault; } targets() { return this.#browser.targets().filter(target => { @@ -39,6 +41,7 @@ class BidiBrowserContext extends BrowserContext_js_1.BrowserContext { async newPage() { const { result } = await this.#connection.send('browsingContext.create', { type: "tab" /* Bidi.BrowsingContext.CreateType.Tab */, + userContext: this.#userContext.id, }); const target = this.#browser._getTargetById(result.context); // TODO: once BiDi has some concept matching BrowserContext, the newly @@ -62,10 +65,15 @@ class BidiBrowserContext extends BrowserContext_js_1.BrowserContext { return page; } async close() { - if (this.#isDefault) { + if (!this.isIncognito()) { throw new Error('Default context cannot be closed!'); } - await this.#browser._closeContext(this); + try { + await this.#userContext.remove(); + } + catch (error) { + (0, util_js_1.debugError)(error); + } } browser() { return this.#browser; @@ -79,7 +87,7 @@ class BidiBrowserContext extends BrowserContext_js_1.BrowserContext { }); } isIncognito() { - return !this.#isDefault; + return this.#userContext.id !== UserContext_js_1.UserContext.DEFAULT; } overridePermissions() { throw new Errors_js_1.UnsupportedOperation(); @@ -87,6 +95,12 @@ class BidiBrowserContext extends BrowserContext_js_1.BrowserContext { clearPermissionOverrides() { throw new Errors_js_1.UnsupportedOperation(); } + get id() { + if (this.#userContext.id === 'default') { + return undefined; + } + return this.#userContext.id; + } } exports.BidiBrowserContext = BidiBrowserContext; //# sourceMappingURL=BrowserContext.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.js.map index a10e5462..e7b27b1c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/BrowserContext.js.map @@ -1 +1 @@ -{"version":3,"file":"BrowserContext.js","sourceRoot":"","sources":["../../../../src/bidi/BrowserContext.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAKH,gEAAwD;AAGxD,mDAAyD;AAezD;;GAEG;AACH,MAAa,kBAAmB,SAAQ,kCAAc;IACpD,QAAQ,CAAc;IACtB,WAAW,CAAiB;IAC5B,gBAAgB,CAAkB;IAClC,UAAU,GAAG,KAAK,CAAC;IAEnB,YAAY,OAAoB,EAAE,OAAkC;QAClE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC;QAC5C,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;QAChD,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC;IACtC,CAAC;IAEQ,OAAO;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,CAA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I,CAAC,UAAU,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;QACvD,CAAC;QAED,MAAM,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IAEQ,OAAO;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAEQ,KAAK,CAAC,KAAK;QAClB,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAC/B,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;YAC1B,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;QAClB,CAAC,CAAC,CACH,CAAC;QACF,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAiB,EAAE;YACzC,OAAO,CAAC,KAAK,IAAI,CAAC;QACpB,CAAC,CAAC,CAAC;IACL,CAAC;IAEQ,WAAW;QAClB,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC;IAC1B,CAAC;IAEQ,mBAAmB;QAC1B,MAAM,IAAI,gCAAoB,EAAE,CAAC;IACnC,CAAC;IAEQ,wBAAwB;QAC/B,MAAM,IAAI,gCAAoB,EAAE,CAAC;IACnC,CAAC;CACF;AA/FD,gDA+FC"} \ No newline at end of file +{"version":3,"file":"BrowserContext.js","sourceRoot":"","sources":["../../../../src/bidi/BrowserContext.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAKH,gEAAwD;AAGxD,mDAAyD;AACzD,+CAA6C;AAK7C,0DAAkD;AAUlD;;GAEG;AACH,MAAa,kBAAmB,SAAQ,kCAAc;IACpD,QAAQ,CAAc;IACtB,WAAW,CAAiB;IAC5B,gBAAgB,CAAkB;IAClC,YAAY,CAAc;IAE1B,YACE,OAAoB,EACpB,WAAwB,EACxB,OAAkC;QAElC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IA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ED,IAAa,EAAE;QACb,IAAI,IAAI,CAAC,YAAY,CAAC,EAAE,KAAK,SAAS,EAAE,CAAC;YACvC,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;IAC9B,CAAC;CACF;AA/GD,gDA+GC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.d.ts index a84e6615..d189ba8d 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.d.ts @@ -5,108 +5,14 @@ */ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; import type { ConnectionTransport } from '../common/ConnectionTransport.js'; +import type { EventsWithWildcard } from '../common/EventEmitter.js'; import { EventEmitter } from '../common/EventEmitter.js'; import { type BrowsingContext } from './BrowsingContext.js'; +import type { BidiEvents, Commands as BidiCommands, Connection } from './core/Connection.js'; /** * @internal */ -export interface Commands { - 'script.evaluate': { - params: Bidi.Script.EvaluateParameters; - returnType: Bidi.Script.EvaluateResult; - }; - 'script.callFunction': { - params: Bidi.Script.CallFunctionParameters; - returnType: Bidi.Script.EvaluateResult; - }; - 'script.disown': { - params: Bidi.Script.DisownParameters; - returnType: Bidi.EmptyResult; - }; - 'script.addPreloadScript': { - params: Bidi.Script.AddPreloadScriptParameters; - returnType: Bidi.Script.AddPreloadScriptResult; - }; - 'script.removePreloadScript': { - params: Bidi.Script.RemovePreloadScriptParameters; - returnType: Bidi.EmptyResult; - }; - 'browser.close': { - params: Bidi.EmptyParams; - returnType: Bidi.EmptyResult; - }; - 'browsingContext.activate': { - params: Bidi.BrowsingContext.ActivateParameters; - returnType: Bidi.EmptyResult; - }; - 'browsingContext.create': { - params: Bidi.BrowsingContext.CreateParameters; - returnType: Bidi.BrowsingContext.CreateResult; - }; - 'browsingContext.close': { - params: Bidi.BrowsingContext.CloseParameters; - returnType: Bidi.EmptyResult; - }; - 'browsingContext.getTree': { - params: Bidi.BrowsingContext.GetTreeParameters; - returnType: Bidi.BrowsingContext.GetTreeResult; - }; - 'browsingContext.navigate': { - params: Bidi.BrowsingContext.NavigateParameters; - returnType: Bidi.BrowsingContext.NavigateResult; - }; - 'browsingContext.reload': { - params: Bidi.BrowsingContext.ReloadParameters; - returnType: Bidi.BrowsingContext.NavigateResult; - }; - 'browsingContext.print': { - params: Bidi.BrowsingContext.PrintParameters; - returnType: Bidi.BrowsingContext.PrintResult; - }; - 'browsingContext.captureScreenshot': { - params: Bidi.BrowsingContext.CaptureScreenshotParameters; - returnType: Bidi.BrowsingContext.CaptureScreenshotResult; - }; - 'browsingContext.handleUserPrompt': { - params: Bidi.BrowsingContext.HandleUserPromptParameters; - returnType: Bidi.EmptyResult; - }; - 'browsingContext.setViewport': { - params: Bidi.BrowsingContext.SetViewportParameters; - returnType: Bidi.EmptyResult; - }; - 'browsingContext.traverseHistory': { - params: Bidi.BrowsingContext.TraverseHistoryParameters; - returnType: Bidi.EmptyResult; - }; - 'input.performActions': { - params: Bidi.Input.PerformActionsParameters; - returnType: Bidi.EmptyResult; - }; - 'input.releaseActions': { - params: Bidi.Input.ReleaseActionsParameters; - returnType: Bidi.EmptyResult; - }; - 'session.end': { - params: Bidi.EmptyParams; - returnType: Bidi.EmptyResult; - }; - 'session.new': { - params: Bidi.Session.NewParameters; - returnType: Bidi.Session.NewResult; - }; - 'session.status': { - params: object; - returnType: Bidi.Session.StatusResult; - }; - 'session.subscribe': { - params: Bidi.Session.SubscriptionRequest; - returnType: Bidi.EmptyResult; - }; - 'session.unsubscribe': { - params: Bidi.Session.SubscriptionRequest; - returnType: Bidi.EmptyResult; - }; +export interface Commands extends BidiCommands { 'cdp.sendCommand': { params: Bidi.Cdp.SendCommandParameters; returnType: Bidi.Cdp.SendCommandResult; @@ -119,19 +25,13 @@ export interface Commands { /** * @internal */ -export type BidiEvents = { - [K in Bidi.ChromiumBidi.Event['method']]: Extract['params']; -}; -/** - * @internal - */ -export declare class BidiConnection extends EventEmitter { +export declare class BidiConnection extends EventEmitter implements Connection { #private; constructor(url: string, transport: ConnectionTransport, delay?: number, timeout?: number); get closed(): boolean; get url(): string; + pipeTo(emitter: EventEmitter): void; + emit>(type: Key, event: EventsWithWildcard[Key]): boolean; send(method: T, params: Commands[T]['params']): Promise<{ result: Commands[T]['returnType']; }>; @@ -153,5 +53,6 @@ export declare class BidiConnection extends EventEmitter { * Unbinds the connection and closes the transport. */ dispose(): void; + getPendingProtocolErrors(): Error[]; } //# sourceMappingURL=Connection.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.d.ts.map index 7f9c2afb..db052e16 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Connection.d.ts","sourceRoot":"","sources":["../../../../src/bidi/Connection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAGxE,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;AAE1E,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAIvD,OAAO,EAAC,KAAK,eAAe,EAAc,MAAM,sBAAsB,CAAC;AAKvE;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,iBAAiB,EAAE;QACjB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC;QACvC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC;KACxC,CAAC;IACF,qBAAqB,EAAE;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BAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe;IAetD,0BAA0B,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAI5C;;;;OAIG;IACH,MAAM,IAAI,IAAI;IAad;;OAEG;IACH,OAAO,IAAI,IAAI;IAKf,wBAAwB,IAAI,KAAK,EAAE;CAGpC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.js index 8b4a100b..26da6a02 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.js @@ -25,6 +25,7 @@ class BidiConnection extends EventEmitter_js_1.EventEmitter { #closed = false; #callbacks = new CallbackRegistry_js_1.CallbackRegistry(); #browsingContexts = new Map(); + #emitters = []; constructor(url, transport, delay = 0, timeout) { super(); this.#url = url; @@ -40,6 +41,15 @@ class BidiConnection extends EventEmitter_js_1.EventEmitter { get url() { return this.#url; } + pipeTo(emitter) { + this.#emitters.push(emitter); + } + emit(type, event) { + for (const emitter of this.#emitters) { + emitter.emit(type, event); + } + return super.emit(type, event); + } send(method, params) { (0, assert_js_1.assert)(!this.#closed, 'Protocol error: Connection closed.'); return this.#callbacks.create(method, this.#timeout, id => { @@ -157,6 +167,9 @@ class BidiConnection extends EventEmitter_js_1.EventEmitter { this.unbind(); this.#transport.close(); } + getPendingProtocolErrors() { + return this.#callbacks.getPendingProtocolErrors(); + } } exports.BidiConnection = BidiConnection; /** diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.js.map index b30ea614..9a97eb85 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Connection.js.map @@ -1 +1 @@ -{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../../src/bidi/Connection.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,uEAA+D;AAE/D,iDAAyC;AACzC,+DAAuD;AACvD,+CAA6C;AAC7C,iDAAyC;AAEzC,6DAAuE;AAEvE,MAAM,iBAAiB,GAAG,IAAA,gBAAK,EAAC,gCAAgC,CAAC,CAAC;AAClE,MAAM,oBAAoB,GAAG,IAAA,gBAAK,EAAC,gCAAgC,CAAC,CAAC;AA8HrE;;GAEG;AACH,MAAa,cAAe,SAAQ,8BAAwB;IAC1D,IAAI,CAAS;IACb,UAAU,CAAsB;IAChC,MAAM,CAAS;IACf,QAAQ,GAAI,CAAC,CAAC;IACd,OAAO,GAAG,KAAK,CAAC;IAChB,UAAU,GAAG,IAAI,sCAAgB,EAAE,CAAC;IACpC,iBAAiB,GAAG,IAAI,GAAG,EAA2B,CAAC;IAEvD,YACE,GAAW,EACX,SAA8B,EAC9B,KAAK,GAAG,CAAC,EACT,OAAgB;QAEhB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,MAAO,CAAC;QAEnC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtD,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,IAAI,CACF,MAAS,EACT,MAA6B;QAE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IAAI,CAAC;QACpB,+CAA+C;QAC/C,IAAI,CAAC,UAAU,CAAC,SAAS,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QACrC,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QAEnC,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;QAC/B,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAC1B,CAAC;CACF;AA/KD,wCA+KC;AAED;;GAEG;AACH,SAAS,mBAAmB,CAAC,MAA0B;IACrD,IAAI,OAAO,GAAG,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;IAClD,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;QACtB,OAAO,IAAI,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;IACrC,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,UAAU,CAAC,KAA8B;IAChD,OAAO,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC"} \ No newline at end of file +{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../../src/bidi/Connection.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,uEAA+D;AAE/D,iDAAyC;AAEzC,+DAAuD;AACvD,+CAA6C;AAC7C,iDAAyC;AAEzC,6DAAuE;AAOvE,MAAM,iBAAiB,GAAG,IAAA,gBAAK,EAAC,gCAAgC,CAAC,CAAC;AAClE,MAAM,oBAAoB,GAAG,IAAA,gBAAK,EAAC,gCAAgC,CAAC,CAAC;AAgBrE;;GAEG;AACH,MAAa,cACX,SAAQ,8BAAwB;IAGhC,IAAI,CAAS;IACb,UAAU,CAAsB;IAChC,MAAM,CAAS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SAAS,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QACrC,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QAEnC,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;QAC/B,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAC1B,CAAC;IAED,wBAAwB;QACtB,OAAO,IAAI,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC;IACpD,CAAC;CACF;AArMD,wCAqMC;AAED;;GAEG;AACH,SAAS,mBAAmB,CAAC,MAA0B;IACrD,IAAI,OAAO,GAAG,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;IAClD,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;QACtB,OAAO,IAAI,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;IACrC,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,UAAU,CAAC,KAA8B;IAChD,OAAO,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.d.ts index 3100a60d..7338aa3b 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.d.ts @@ -18,7 +18,7 @@ export declare class BidiDialog extends Dialog { /** * @internal */ - sendCommand(options: { + handle(options: { accept: boolean; text?: string; }): Promise; diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.d.ts.map index 7cdda384..b1ac6167 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/bidi/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAExC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAE1D;;GAEG;AACH,qBAAa,UAAW,SAAQ,MAAM;;IAGpC;;OAEG;gBAED,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,0BAA0B,CAAC,MAAM,CAAC,EAC7D,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,MAAM;IAMvB;;OAEG;IACY,WAAW,CAAC,OAAO,EAAE;QAClC,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,IAAI,CAAC;CAOlB"} \ No newline at end of file +{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/bidi/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAExC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAE1D;;GAEG;AACH,qBAAa,UAAW,SAAQ,MAAM;;IAGpC;;OAEG;gBAED,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,0BAA0B,CAAC,MAAM,CAAC,EAC7D,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,MAAM;IAMvB;;OAEG;IACY,MAAM,CAAC,OAAO,EAAE;QAC7B,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,IAAI,CAAC;CAOlB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.js index 6fb7c058..77f52b02 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.js @@ -22,7 +22,7 @@ class BidiDialog extends Dialog_js_1.Dialog { /** * @internal */ - async sendCommand(options) { + async handle(options) { await this.#context.connection.send('browsingContext.handleUserPrompt', { context: this.#context.id, accept: options.accept, diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.js.map index eed6f956..e59de20a 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Dialog.js.map @@ -1 +1 @@ -{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/bidi/Dialog.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,gDAAwC;AAIxC;;GAEG;AACH,MAAa,UAAW,SAAQ,kBAAM;IACpC,QAAQ,CAAkB;IAE1B;;OAEG;IACH,YACE,OAAwB,EACxB,IAA6D,EAC7D,OAAe,EACf,YAAqB;QAErB,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;IAED;;OAEG;IACM,KAAK,CAAC,WAAW,CAAC,OAG1B;QACC,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,kCAAkC,EAAE;YACtE,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE;YACzB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,QAAQ,EAAE,OAAO,CAAC,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF;AA7BD,gCA6BC"} \ No newline at end of file +{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/bidi/Dialog.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,gDAAwC;AAIxC;;GAEG;AACH,MAAa,UAAW,SAAQ,kBAAM;IACpC,QAAQ,CAAkB;IAE1B;;OAEG;IACH,YACE,OAAwB,EACxB,IAA6D,EAC7D,OAAe,EACf,YAAqB;QAErB,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;IAED;;OAEG;IACM,KAAK,CAAC,MAAM,CAAC,OAGrB;QACC,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,kCAAkC,EAAE;YACtE,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE;YACzB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,QAAQ,EAAE,OAAO,CAAC,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF;AA7BD,gCA6BC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/ExposedFunction.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/ExposedFunction.d.ts.map index d9c1b18d..19560840 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/ExposedFunction.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/ExposedFunction.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ExposedFunction.d.ts","sourceRoot":"","sources":["../../../../src/bidi/ExposedFunction.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAC,SAAS,EAAgB,MAAM,oBAAoB,CAAC;AAQjE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AAgB1C;;GAEG;AACH,qBAAa,kBAAkB,CAAC,IAAI,SAAS,OAAO,EAAE,EAAE,GAAG;;IAGzD,QAAQ,CAAC,IAAI,SAAC;gBAYZ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,GAAG,CAAC;IAapC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAkN7B,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI;IAIlB,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;CAO7C"} \ No newline at end of file +{"version":3,"file":"ExposedFunction.d.ts","sourceRoot":"","sources":["../../../../src/bidi/ExposedFunction.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAC,SAAS,EAAgB,MAAM,oBAAoB,CAAC;AAQjE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AAgB1C;;GAEG;AACH,qBAAa,kBAAkB,CAAC,IAAI,SAAS,OAAO,EAAE,EAAE,GAAG;;IAGzD,QAAQ,CAAC,IAAI,SAAC;gBAYZ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,GAAG,CAAC;IAapC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IA0N7B,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI;IAIlB,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;CAO7C"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/ExposedFunction.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/ExposedFunction.js index 94cf617c..c140d4ba 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/ExposedFunction.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/ExposedFunction.js @@ -59,7 +59,6 @@ class ExposeableFunction { async expose() { const connection = this.#connection; const channelArguments = this.#channelArguments; - const { name } = this; // TODO(jrandolf): Implement cleanup with removePreloadScript. connection.on(Bidi.ChromiumBidi.Script.EventNames.Message, this.#handleArgumentsMessage); connection.on(Bidi.ChromiumBidi.Script.EventNames.Message, this.#handleResolveMessage); @@ -76,7 +75,7 @@ class ExposeableFunction { }); }, }); - }, { name: JSON.stringify(name) })); + }, { name: JSON.stringify(this.name) })); const { result } = await connection.send('script.addPreloadScript', { functionDeclaration, arguments: channelArguments, @@ -114,7 +113,9 @@ class ExposeableFunction { Serializer_js_1.BidiSerializer.serializeRemoteValue(result), ], awaitPromise: false, - target: params.source, + target: { + realm: params.source.realm, + }, }); } catch (error) { @@ -136,7 +137,9 @@ class ExposeableFunction { Serializer_js_1.BidiSerializer.serializeRemoteValue(error.stack), ], awaitPromise: false, - target: params.source, + target: { + realm: params.source.realm, + }, }); } else { @@ -149,7 +152,9 @@ class ExposeableFunction { Serializer_js_1.BidiSerializer.serializeRemoteValue(error), ], awaitPromise: false, - target: params.source, + target: { + realm: params.source.realm, + }, }); } } diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/ExposedFunction.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/ExposedFunction.js.map index 53cdb263..fc3772a4 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/ExposedFunction.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/ExposedFunction.js.map @@ -1 +1 @@ -{"version":3,"file":"ExposedFunction.js","sourceRoot":"","sources":["../../../../src/bidi/ExposedFunction.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iFAAmE;AAGnE,+CAA6C;AAC7C,iDAAyC;AACzC,qDAA6C;AAC7C,qDAA2E;AAG3E,uDAAmD;AAEnD,mDAA+C;AAe/C;;GAEG;AACH,MAAa,kBAAkB;IACpB,MAAM,CAAC;IAEP,IAAI,CAAC;IACL,MAAM,CAAC;IAEP,SAAS,CAAC;IACV,YAAY,GAAG,IAAI,GAAG,EAG5B,CAAC;IAEJ,gBAAgB,CAA6B;IAE7C,YACE,KAAgB,EAChB,IAAY,EACZ,KAAwC;QAExC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,IAAI,CAAC,SAAS,GAAG;YACf,IAAI,EAAE,gBAAgB,IAAI,CAAC,MAAM,CAAC,GAAG,wBAAwB,IAAI,CAAC,IAAI,OAAO;YAC7E,OAAO,EAAE,gBAAgB,IAAI,CAAC,MAAM,CAAC,GAAG,wBAAwB,IAAI,CAAC,IAAI,UAAU;YACnF,MAAM,EAAE,gBAAgB,IAAI,CAAC,MAAM,CAAC,GAAG,wBAAwB,IAAI,CAAC,IAAI,SAAS;SAClF,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,MAAM;QACV,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,MAAM,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,CAAC;QAChD,MAAM,EAAC,IAAI,EAAC,GAAG,IAAI,CAAC;QAEpB,8DAA8D;QAC9D,UAAU,CAAC,EAAE,CACX,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC,OAA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AG;gBACV,OAAO,EAAE,IAAI,sBAAQ,EAAE;gBACvB,MAAM,EAAE,IAAI,sBAAQ,EAAE;aACvB,CAAC;YACF,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,EAAC,SAAS,EAAE,WAAW,EAAE,IAAI,EAAC,CAAC;IACxC,CAAC;IAED,CAAC,MAAM,CAAC,OAAO,CAAC;QACd,KAAK,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,oBAAU,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;QACzB,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC1B,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,4BAA4B,EAAE;gBACxD,MAAM,EAAE,IAAI,CAAC,gBAAgB;aAC9B,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF;AA3PD,gDA2PC"} \ No newline at end of file +{"version":3,"file":"ExposedFunction.js","sourceRoot":"","sources":["../../../../src/bidi/ExposedFunction.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iFAAmE;AAGnE,+CAA6C;AAC7C,iDAAyC;AACzC,qDAA6C;AAC7C,qDAA2E;AAG3E,uDAAmD;AAEnD,mDAA+C;AAe/C;;GAEG;AACH,MAAa,kBAAkB;IACpB,MAAM,CAAC;IAEP,IAAI,CAAC;IACL,MAAM,CAAC;IAEP,SAAS,CAAC;IACV,YAAY,GAAG,IAAI,GAAG,EAG5B,CAAC;IAEJ,gBAAgB,CAA6B;IAE7C,YACE,KAAgB,EAChB,IAAY,EACZ,KAAwC;QAExC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,IAAI,CA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CAAC;QACL,CAAC;IACH,CAAC;CACF;AAnQD,gDAmQC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Frame.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Frame.d.ts.map index 43a34198..f5a40adf 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Frame.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Frame.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Frame.d.ts","sourceRoot":"","sources":["../../../../src/bidi/Frame.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAeH,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EACL,KAAK,EACL,KAAK,WAAW,EAChB,KAAK,cAAc,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,gBAAgB,CAAC;AAE3D,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAC,SAAS,EAAE,OAAO,EAAC,MAAM,oBAAoB,CAAC;AAG3D,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAEpD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAMxD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAC;AACxC,OAAO,EAGL,OAAO,EACP,KAAK,YAAY,EAClB,MAAM,cAAc,CAAC;AAEtB;;;GAGG;AACH,qBAAa,SAAU,SAAQ,KAAK;;IAMlC,SAAS,EAAE,YAAY,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;gBAGnB,IAAI,EAAE,QAAQ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AsCpB,UAAU,CACvB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC;IAkChB,OAAO,IAAI,eAAe;IAKX,iBAAiB,CAC9B,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAmD1B,mBAAmB,IAAI,KAAK;IAIrC,IAAa,QAAQ,IAAI,OAAO,CAE/B;IAED,CAAC,aAAa,CAAC,IAAI,IAAI;IAYjB,cAAc,CAAC,IAAI,SAAS,OAAO,EAAE,EAAE,GAAG,EAC9C,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,GAAG,CAAC,GACvC,OAAO,CAAC,IAAI,CAAC;IAgBP,eAAe,CAAC,QAAQ,SAAS,MAAM,EAC9C,QAAQ,EAAE,QAAQ,EAClB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC;CASpD"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Frame.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Frame.js index e3f2828b..dcd75ec3 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Frame.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Frame.js @@ -137,28 +137,42 @@ let BidiFrame = (() => { async goto(url, options = {}) { const { waitUntil = 'load', timeout: ms = this.#timeoutSettings.navigationTimeout(), } = options; const [readiness, networkIdle] = (0, lifecycle_js_1.getBiDiReadinessState)(waitUntil); - const response = await (0, rxjs_js_1.firstValueFrom)(this.#page - ._waitWithNetworkIdle(this.#context.connection.send('browsingContext.navigate', { + const result$ = (0, rxjs_js_1.zip)((0, rxjs_js_1.from)(this.#context.connection.send('browsingContext.navigate', { context: this.#context.id, url, wait: readiness, - }), networkIdle) - .pipe((0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms), (0, rxjs_js_1.from)(this.#abortDeferred.valueOrThrow()))) - .pipe((0, lifecycle_js_1.rewriteNavigationError)(url, ms))); - return this.#page.getNavigationResponse(response?.result.navigation); + })), ...(networkIdle !== null + ? [ + this.#page.waitForNetworkIdle$({ + timeout: ms, + concurrency: networkIdle === 'networkidle2' ? 2 : 0, + idleTime: util_js_1.NETWORK_IDLE_TIME, + }), + ] + : [])).pipe((0, rxjs_js_1.map)(([{ result }]) => { + return result; + }), (0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms), (0, rxjs_js_1.from)(this.#abortDeferred.valueOrThrow())), (0, lifecycle_js_1.rewriteNavigationError)(url, ms)); + const result = await (0, rxjs_js_1.firstValueFrom)(result$); + return this.#page.getNavigationResponse(result.navigation); } async setContent(html, options = {}) { const { waitUntil = 'load', timeout: ms = this.#timeoutSettings.navigationTimeout(), } = options; const [waitEvent, networkIdle] = (0, lifecycle_js_1.getBiDiLifecycleEvent)(waitUntil); - await (0, rxjs_js_1.firstValueFrom)(this.#page - ._waitWithNetworkIdle((0, rxjs_js_1.forkJoin)([ - (0, rxjs_js_1.fromEvent)(this.#context, waitEvent).pipe((0, rxjs_js_1.first)()), + const result$ = (0, rxjs_js_1.zip)((0, rxjs_js_1.forkJoin)([ + (0, util_js_1.fromEmitterEvent)(this.#context, waitEvent).pipe((0, rxjs_js_1.first)()), (0, rxjs_js_1.from)(this.setFrameContent(html)), ]).pipe((0, rxjs_js_1.map)(() => { return null; - })), networkIdle) - .pipe((0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms), (0, rxjs_js_1.from)(this.#abortDeferred.valueOrThrow()))) - .pipe((0, lifecycle_js_1.rewriteNavigationError)('setContent', ms))); + })), ...(networkIdle !== null + ? [ + this.#page.waitForNetworkIdle$({ + timeout: ms, + concurrency: networkIdle === 'networkidle2' ? 2 : 0, + idleTime: util_js_1.NETWORK_IDLE_TIME, + }), + ] + : [])).pipe((0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms), (0, rxjs_js_1.from)(this.#abortDeferred.valueOrThrow())), (0, lifecycle_js_1.rewriteNavigationError)('setContent', ms)); + await (0, rxjs_js_1.firstValueFrom)(result$); } context() { return this.#context; @@ -166,19 +180,28 @@ let BidiFrame = (() => { async waitForNavigation(options = {}) { const { waitUntil = 'load', timeout: ms = this.#timeoutSettings.navigationTimeout(), } = options; const [waitUntilEvent, networkIdle] = (0, lifecycle_js_1.getBiDiLifecycleEvent)(waitUntil); - const navigatedObservable = (0, rxjs_js_1.merge)((0, rxjs_js_1.forkJoin)([ - (0, rxjs_js_1.fromEvent)(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted).pipe((0, rxjs_js_1.first)()), - (0, rxjs_js_1.fromEvent)(this.#context, waitUntilEvent).pipe((0, rxjs_js_1.first)()), - ]), (0, rxjs_js_1.fromEvent)(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated)).pipe((0, rxjs_js_1.map)(result => { + const navigation$ = (0, rxjs_js_1.merge)((0, rxjs_js_1.forkJoin)([ + (0, util_js_1.fromEmitterEvent)(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted).pipe((0, rxjs_js_1.first)()), + (0, util_js_1.fromEmitterEvent)(this.#context, waitUntilEvent).pipe((0, rxjs_js_1.first)()), + ]), (0, util_js_1.fromEmitterEvent)(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated)).pipe((0, rxjs_js_1.map)(result => { if (Array.isArray(result)) { return { result: result[1] }; } return { result }; })); - const response = await (0, rxjs_js_1.firstValueFrom)(this.#page - ._waitWithNetworkIdle(navigatedObservable, networkIdle) - .pipe((0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms), (0, rxjs_js_1.from)(this.#abortDeferred.valueOrThrow())))); - return this.#page.getNavigationResponse(response?.result.navigation); + const result$ = (0, rxjs_js_1.zip)(navigation$, ...(networkIdle !== null + ? [ + this.#page.waitForNetworkIdle$({ + timeout: ms, + concurrency: networkIdle === 'networkidle2' ? 2 : 0, + idleTime: util_js_1.NETWORK_IDLE_TIME, + }), + ] + : [])).pipe((0, rxjs_js_1.map)(([{ result }]) => { + return result; + }), (0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms), (0, rxjs_js_1.from)(this.#abortDeferred.valueOrThrow()))); + const result = await (0, rxjs_js_1.firstValueFrom)(result$); + return this.#page.getNavigationResponse(result.navigation); } waitForDevicePrompt() { throw new Errors_js_1.UnsupportedOperation(); diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Frame.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Frame.js.map index 9f5bbc56..111d6dc4 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Frame.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Frame.js.map @@ -1 +1 @@ -{"version":3,"file":"Frame.js","sourceRoot":"","sources":["../../../../src/bidi/Frame.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iFAAmE;AAEnE,4DAUwC;AAGxC,8CAKyB;AAEzB,mDAAyD;AAGzD,+CAA8D;AAC9D,qDAA6C;AAC7C,yDAAoD;AAGpD,6DAAwD;AAExD,iDAIwB;AAExB,6CAKsB;AAEtB;;;GAGG;IACU,SAAS;sBAAS,gBAAK;;;;;iBAAvB,SAAU,SAAQ,WAAK;;;YAkElC,+JAAe,IAAI,6DA0BlB;YAGD,iLAAe,UAAU,6DA2BxB;YAOD,sMAAe,iBAAiB,6DAwC/B;;;QAxKD,KAAK,iEAAW;QAChB,QAAQ,CAAkB;QAC1B,gBAAgB,CAAkB;QAClC,cAAc,GAAG,sBAAQ,CAAC,MAAM,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ACd,CAAC;QACH,CAAC;QAEQ,eAAe,CACtB,QAAkB,EAClB,OAAgC;YAEhC,IAAI,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;gBAChC,MAAM,IAAI,gCAAoB,CAC5B,0CAA0C,CAC3C,CAAC;YACJ,CAAC;YAED,OAAO,KAAK,CAAC,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAClD,CAAC;;;AA5PU,8BAAS"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.d.ts index 23464575..7858dbff 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.d.ts @@ -6,9 +6,7 @@ /// /// import type { Readable } from 'stream'; -import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; import type Protocol from 'devtools-protocol'; -import type { Observable, ObservableInput } from '../../third_party/rxjs/rxjs.js'; import type { CDPSession } from '../api/CDPSession.js'; import type { WaitForOptions } from '../api/Frame.js'; import type { HTTPResponse } from '../api/HTTPResponse.js'; @@ -24,11 +22,9 @@ import type { BidiBrowserContext } from './BrowserContext.js'; import { type BrowsingContext } from './BrowsingContext.js'; import type { BidiConnection } from './Connection.js'; import { BidiFrame } from './Frame.js'; -import type { BidiHTTPRequest } from './HTTPRequest.js'; import type { BidiHTTPResponse } from './HTTPResponse.js'; import { BidiKeyboard, BidiMouse, BidiTouchscreen } from './Input.js'; import type { BidiJSHandle } from './JSHandle.js'; -import type { BiDiNetworkIdle } from './lifecycle.js'; import type { BiDiPageTarget } from './Target.js'; /** * @internal @@ -87,22 +83,6 @@ export declare class BidiPage extends Page { pdf(options?: PDFOptions): Promise; createPDFStream(options?: PDFOptions | undefined): Promise; _screenshot(options: Readonly): Promise; - waitForRequest(urlOrPredicate: string | ((req: BidiHTTPRequest) => boolean | Promise), options?: { - timeout?: number; - }): Promise; - waitForResponse(urlOrPredicate: string | ((res: BidiHTTPResponse) => boolean | Promise), options?: { - timeout?: number; - }): Promise; - waitForNetworkIdle(options?: { - idleTime?: number; - timeout?: number; - }): Promise; - /** @internal */ - _waitWithNetworkIdle(observableInput: ObservableInput<{ - result: Bidi.BrowsingContext.NavigateResult; - } | null>, networkIdle: BiDiNetworkIdle): Observable<{ - result: Bidi.BrowsingContext.NavigateResult; - } | null>; createCDPSession(): Promise; bringToFront(): Promise; evaluateOnNewDocument unknown = (...args: Params) => unknown>(pageFunction: Func | string, ...args: Params): Promise; diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.d.ts.map index 1031012e..728bcb08 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../../src/bidi/Page.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAErC,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AACxE,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,EAAC,UAAU,EAAE,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAShF,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AACzD,OAAO,EACL,IAAI,EAEJ,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,2B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AAO,IAAI,KAAK;IAIV,MAAM,CACnB,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAIhB,SAAS,CACtB,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IA4BtB,mBAAmB,IAAI,KAAK;CAGtC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.js index 40be451a..7a7d326b 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.js @@ -421,13 +421,22 @@ class BidiPage extends Page_js_1.Page { async reload(options = {}) { const { waitUntil = 'load', timeout: ms = this._timeoutSettings.navigationTimeout(), } = options; const [readiness, networkIdle] = (0, lifecycle_js_1.getBiDiReadinessState)(waitUntil); - const response = await (0, rxjs_js_1.firstValueFrom)(this._waitWithNetworkIdle(this.#connection.send('browsingContext.reload', { + const result$ = (0, rxjs_js_1.zip)((0, rxjs_js_1.from)(this.#connection.send('browsingContext.reload', { context: this.mainFrame()._id, wait: readiness, - }), networkIdle) - .pipe((0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms), (0, rxjs_js_1.from)(this.#closedDeferred.valueOrThrow()))) - .pipe((0, lifecycle_js_1.rewriteNavigationError)(this.url(), ms))); - return this.getNavigationResponse(response?.result.navigation); + })), ...(networkIdle !== null + ? [ + this.waitForNetworkIdle$({ + timeout: ms, + concurrency: networkIdle === 'networkidle2' ? 2 : 0, + idleTime: util_js_1.NETWORK_IDLE_TIME, + }), + ] + : [])).pipe((0, rxjs_js_1.map)(([{ result }]) => { + return result; + }), (0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms), (0, rxjs_js_1.from)(this.#closedDeferred.valueOrThrow())), (0, lifecycle_js_1.rewriteNavigationError)(this.url(), ms)); + const result = await (0, rxjs_js_1.firstValueFrom)(result$); + return this.getNavigationResponse(result.navigation); } setDefaultNavigationTimeout(timeout) { this._timeoutSettings.setDefaultNavigationTimeout(timeout); @@ -481,8 +490,8 @@ class BidiPage extends Page_js_1.Page { return this.#viewport; } async pdf(options = {}) { - const { path = undefined } = options; - const { printBackground: background, margin, landscape, width, height, pageRanges: ranges, scale, preferCSSPageSize, timeout: ms, } = this._getPDFOptions(options, 'cm'); + const { timeout: ms = this._timeoutSettings.timeout(), path = undefined } = options; + const { printBackground: background, margin, landscape, width, height, pageRanges: ranges, scale, preferCSSPageSize, } = (0, util_js_1.parsePDFOptions)(options, 'cm'); const pageRanges = ranges ? ranges.split(', ') : []; const { result } = await (0, rxjs_js_1.firstValueFrom)((0, rxjs_js_1.from)(this.#connection.send('browsingContext.print', { context: this.mainFrame()._id, @@ -564,30 +573,6 @@ class BidiPage extends Page_js_1.Page { }); return data; } - async waitForRequest(urlOrPredicate, options = {}) { - const { timeout = this._timeoutSettings.timeout() } = options; - return await (0, util_js_1.waitForHTTP)(this.#networkManager, NetworkManagerEvents_js_1.NetworkManagerEvent.Request, urlOrPredicate, timeout, this.#closedDeferred); - } - async waitForResponse(urlOrPredicate, options = {}) { - const { timeout = this._timeoutSettings.timeout() } = options; - return await (0, util_js_1.waitForHTTP)(this.#networkManager, NetworkManagerEvents_js_1.NetworkManagerEvent.Response, urlOrPredicate, timeout, this.#closedDeferred); - } - async waitForNetworkIdle(options = {}) { - const { idleTime = util_js_1.NETWORK_IDLE_TIME, timeout: ms = this._timeoutSettings.timeout(), } = options; - await (0, rxjs_js_1.firstValueFrom)(this._waitForNetworkIdle(this.#networkManager, idleTime).pipe((0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms), (0, rxjs_js_1.from)(this.#closedDeferred.valueOrThrow())))); - } - /** @internal */ - _waitWithNetworkIdle(observableInput, networkIdle) { - const delay = networkIdle - ? this._waitForNetworkIdle(this.#networkManager, util_js_1.NETWORK_IDLE_TIME, networkIdle === 'networkidle0' ? 0 : 2) - : (0, rxjs_js_1.from)(Promise.resolve()); - return (0, rxjs_js_1.forkJoin)([ - (0, rxjs_js_1.from)(observableInput).pipe((0, rxjs_js_1.first)()), - delay.pipe((0, rxjs_js_1.first)()), - ]).pipe((0, rxjs_js_1.map)(([response]) => { - return response; - })); - } async createCDPSession() { const { sessionId } = await this.mainFrame() .context() diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.js.map index 9dcf6cce..5ffa7ec8 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Page.js.map @@ -1 +1 @@ -{"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../../src/bidi/Page.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQH,4DAOwC;AAKxC,4CAOwB;AACxB,8DAAsD;AACtD,oDAA4C;AAC5C,oEAAmF;AACnF,sDAA8C;AAC9C,kDAA0C;AAC1C,mEAGqC;AACrC,mDAA2E;AAE3E,+EAAsE;AAGtE,+CAO2B;AAE3B,iDAAyC;AACzC,qDAA6C;AAC7C,yDAAoD;AACpD,uDAAiD;AAIjD,6DAI8B;AAE9B,uDAAmD;AACnD,2CAAuC;AACvC,yDAAqD;AACrD,+DAAuD;AACvD,yCAAqC;AAGrC,yCAAoE;AAGpE,iDAA6E;AAC7E,2DAAuD;AACvD,yCAA4C;AAG5C;;GAEG;AACH,MAAa,QAAS,SAAQ,cAAI;IAChC,cAAc,CAAgB;IAC9B,WAAW,CAAiB;IAC5B,UAAU,GAAG,IAAI,wBAAS,EAAa,CAAC;IACxC,eAAe,CAAqB;IACpC,SAAS,GAAoB,IAAI,CAAC;I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CAAC;oBAClD,OAAO,IAAI,CAAC;gBACd,CAAC;YACH,CAAC;YACD,MAAM,GAAG,CAAC;QACZ,CAAC;IACH,CAAC;IAEQ,mBAAmB;QAC1B,MAAM,IAAI,gCAAoB,EAAE,CAAC;IACnC,CAAC;CACF;AA11BD,4BA01BC;AAED,SAAS,iBAAiB,CACxB,KAAqB;IAErB,OAAO,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC;AAClC,CAAC;AAED,SAAS,oBAAoB,CAC3B,KAAqB;IAErB,OAAO,KAAK,CAAC,IAAI,KAAK,YAAY,CAAC;AACrC,CAAC;AAED,SAAS,sBAAsB,CAC7B,UAAmC;IAEnC,MAAM,mBAAmB,GAA6B,EAAE,CAAC;IACzD,IAAI,UAAU,EAAE,CAAC;QACf,KAAK,MAAM,SAAS,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC;YAC9C,mBAAmB,CAAC,IAAI,CAAC;gBACvB,GAAG,EAAE,SAAS,CAAC,GAAG;gBAClB,UAAU,EAAE,SAAS,CAAC,UAAU;gBAChC,YAAY,EAAE,SAAS,CAAC,YAAY;aACrC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IACD,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AAED,SAAS,oBAAoB,CAAC,GAAsB,EAAE,GAAG,IAAe;IACtE,OAAO,UAAU,IAAA,0BAAgB,EAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC;AACrD,CAAC"} \ No newline at end of file +{"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../../src/bidi/Page.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOH,4DAMwC;AAKxC,4CAOwB;AACxB,8DAAsD;AACtD,oDAA4C;AAC5C,oEAAmF;AACnF,sDAA8C;AAC9C,kDAA0C;AAC1C,mEAGqC;AACrC,mDAA2E;AAE3E,+EAA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,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC;AACrD,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.d.ts index 1bf6e5f2..3b0a9bfc 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.d.ts @@ -26,9 +26,16 @@ export declare abstract class BidiTarget extends Target { /** * @internal */ -export declare class BiDiBrowserTarget extends BidiTarget { +export declare class BiDiBrowserTarget extends Target { + #private; + constructor(browser: BidiBrowser); url(): string; type(): TargetType; + asPage(): Promise; + browser(): BidiBrowser; + browserContext(): BidiBrowserContext; + opener(): never; + createCDPSession(): Promise; } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.d.ts.map index 057befe5..8a14bd9b 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Target.d.ts","sourceRoot":"","sources":["../../../../src/bidi/Target.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAGpD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,KAAK,eAAe,EAAoB,MA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IAAI,OAAO,CAAC,QAAQ,CAAC;IAI/B,kBAAkB,CAAC,cAAc,EAAE,kBAAkB,GAAG,IAAI;CAItE"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.js index d5379038..6568d96a 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.js @@ -42,13 +42,33 @@ exports.BidiTarget = BidiTarget; /** * @internal */ -class BiDiBrowserTarget extends BidiTarget { +class BiDiBrowserTarget extends Target_js_1.Target { + #browser; + constructor(browser) { + super(); + this.#browser = browser; + } url() { return ''; } type() { return Target_js_1.TargetType.BROWSER; } + asPage() { + throw new Errors_js_1.UnsupportedOperation(); + } + browser() { + return this.#browser; + } + browserContext() { + return this.#browser.defaultBrowserContext(); + } + opener() { + throw new Errors_js_1.UnsupportedOperation(); + } + createCDPSession() { + throw new Errors_js_1.UnsupportedOperation(); + } } exports.BiDiBrowserTarget = BiDiBrowserTarget; /** diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.js.map index 8e70d705..eed847aa 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/Target.js.map @@ -1 +1 @@ -{"version":3,"file":"Target.js","sourceRoot":"","sources":["../../../../src/bidi/Target.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,gDAAoD;AACpD,mDAAyD;AAIzD,6DAA6E;AAC7E,uCAAmC;AAEnC;;GAEG;AACH,MAAsB,UAAW,SAAQ,kBAAM;IACnC,eAAe,CAAqB;IAE9C,YAAY,cAAkC;QAC5C,KAAK,EAAE,CAAC;QACR,IAAI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F,CAAC;QACF,OAAO,IAAI,sCAAiB,CAAC,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;IACjE,CAAC;IAEQ,IAAI;QACX,OAAO,sBAAU,CAAC,IAAI,CAAC;IACzB,CAAC;CACF;AA9BD,8DA8BC;AAED;;GAEG;AACH,MAAa,cAAe,SAAQ,yBAAyB;IAC3D,KAAK,CAAW;IAEhB,YACE,cAAkC,EAClC,eAAgC;QAEhC,KAAK,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;QAEvC,IAAI,CAAC,KAAK,GAAG,IAAI,kBAAQ,CAAC,eAAe,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAEQ,kBAAkB,CAAC,cAAkC;QAC5D,KAAK,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;QACzC,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;IAChD,CAAC;CACF;AApBD,wCAoBC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.d.ts new file mode 100644 index 00000000..992de702 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.d.ts @@ -0,0 +1,55 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { disposeSymbol } from '../../util/disposable.js'; +import type { BrowsingContext } from './BrowsingContext.js'; +import type { SharedWorkerRealm } from './Realm.js'; +import type { Session } from './Session.js'; +import { UserContext } from './UserContext.js'; +/** + * @internal + */ +export type AddPreloadScriptOptions = Omit & { + contexts?: [BrowsingContext, ...BrowsingContext[]]; +}; +/** + * @internal + */ +export declare class Browser extends EventEmitter<{ + /** Emitted before the browser closes. */ + closed: { + /** The reason for closing the browser. */ + reason: string; + }; + /** Emitted after the browser disconnects. */ + disconnected: { + /** The reason for disconnecting the browser. */ + reason: string; + }; + /** Emitted when a shared worker is created. */ + sharedworker: { + /** The realm of the shared worker. */ + realm: SharedWorkerRealm; + }; +}> { + #private; + static from(session: Session): Promise; + readonly session: Session; + private constructor(); + get closed(): boolean; + get defaultUserContext(): UserContext; + get disconnected(): boolean; + get disposed(): boolean; + get userContexts(): Iterable; + dispose(reason?: string, closed?: boolean): void; + close(): Promise; + addPreloadScript(functionDeclaration: string, options?: AddPreloadScriptOptions): Promise; + removePreloadScript(script: string): Promise; + createUserContext(): Promise; + [disposeSymbol](): void; +} +//# sourceMappingURL=Browser.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.d.ts.map new file mode 100644 index 00000000..8b6339a8 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Browser.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/Browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAkB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAExE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,kBAA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AAa,CAAC,IAAI,IAAI;CAWxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.js new file mode 100644 index 00000000..e81553ea --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.js @@ -0,0 +1,272 @@ +"use strict"; +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; +}; +var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { + return function (env) { + function fail(e) { + env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + function next() { + while (env.stack.length) { + var rec = env.stack.pop(); + try { + var result = rec.dispose && rec.dispose.call(rec.value); + if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + catch (e) { + fail(e); + } + } + if (env.hasError) throw env.error; + } + return next(); + }; +})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; +}); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Browser = void 0; +const EventEmitter_js_1 = require("../../common/EventEmitter.js"); +const decorators_js_1 = require("../../util/decorators.js"); +const disposable_js_1 = require("../../util/disposable.js"); +const UserContext_js_1 = require("./UserContext.js"); +/** + * @internal + */ +let Browser = (() => { + let _classSuper = EventEmitter_js_1.EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + let _close_decorators; + let _addPreloadScript_decorators; + let _removePreloadScript_decorators; + let _createUserContext_decorators; + return class Browser extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _close_decorators, { kind: "method", name: "close", static: false, private: false, access: { has: obj => "close" in obj, get: obj => obj.close }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _addPreloadScript_decorators, { kind: "method", name: "addPreloadScript", static: false, private: false, access: { has: obj => "addPreloadScript" in obj, get: obj => obj.addPreloadScript }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _removePreloadScript_decorators, { kind: "method", name: "removePreloadScript", static: false, private: false, access: { has: obj => "removePreloadScript" in obj, get: obj => obj.removePreloadScript }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _createUserContext_decorators, { kind: "method", name: "createUserContext", static: false, private: false, access: { has: obj => "createUserContext" in obj, get: obj => obj.createUserContext }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + static async from(session) { + const browser = new Browser(session); + await browser.#initialize(); + return browser; + } + // keep-sorted start + #closed = (__runInitializers(this, _instanceExtraInitializers), false); + #reason; + #disposables = new disposable_js_1.DisposableStack(); + #userContexts = new Map(); + session; + // keep-sorted end + constructor(session) { + super(); + // keep-sorted start + this.session = session; + // keep-sorted end + this.#userContexts.set(UserContext_js_1.UserContext.DEFAULT, UserContext_js_1.UserContext.create(this, UserContext_js_1.UserContext.DEFAULT)); + } + async #initialize() { + const sessionEmitter = this.#disposables.use(new EventEmitter_js_1.EventEmitter(this.session)); + sessionEmitter.once('ended', ({ reason }) => { + this.dispose(reason); + }); + sessionEmitter.on('script.realmCreated', info => { + if (info.type === 'shared-worker') { + // TODO: Create a SharedWorkerRealm. + } + }); + await this.#syncUserContexts(); + await this.#syncBrowsingContexts(); + } + async #syncUserContexts() { + const { result: { userContexts }, } = await this.session.send('browser.getUserContexts', {}); + for (const context of userContexts) { + if (context.userContext === UserContext_js_1.UserContext.DEFAULT) { + continue; + } + this.#userContexts.set(context.userContext, UserContext_js_1.UserContext.create(this, context.userContext)); + } + } + async #syncBrowsingContexts() { + // In case contexts are created or destroyed during `getTree`, we use this + // set to detect them. + const contextIds = new Set(); + let contexts; + { + const env_1 = { stack: [], error: void 0, hasError: false }; + try { + const sessionEmitter = __addDisposableResource(env_1, new EventEmitter_js_1.EventEmitter(this.session), false); + sessionEmitter.on('browsingContext.contextCreated', info => { + contextIds.add(info.context); + }); + sessionEmitter.on('browsingContext.contextDestroyed', info => { + contextIds.delete(info.context); + }); + const { result } = await this.session.send('browsingContext.getTree', {}); + contexts = result.contexts; + } + catch (e_1) { + env_1.error = e_1; + env_1.hasError = true; + } + finally { + __disposeResources(env_1); + } + } + // Simulating events so contexts are created naturally. + for (const info of contexts) { + if (contextIds.has(info.context)) { + this.session.emit('browsingContext.contextCreated', info); + } + if (info.children) { + contexts.push(...info.children); + } + } + } + // keep-sorted start block=yes + get closed() { + return this.#closed; + } + get defaultUserContext() { + // SAFETY: A UserContext is always created for the default context. + return this.#userContexts.get(UserContext_js_1.UserContext.DEFAULT); + } + get disconnected() { + return this.#reason !== undefined; + } + get disposed() { + return this.disconnected; + } + get userContexts() { + return this.#userContexts.values(); + } + // keep-sorted end + dispose(reason, closed = false) { + this.#closed = closed; + this.#reason = reason; + this[disposable_js_1.disposeSymbol](); + } + async close() { + try { + await this.session.send('browser.close', {}); + } + finally { + this.dispose('Browser already closed.', true); + } + } + async addPreloadScript(functionDeclaration, options = {}) { + const { result: { script }, } = await this.session.send('script.addPreloadScript', { + functionDeclaration, + ...options, + contexts: options.contexts?.map(context => { + return context.id; + }), + }); + return script; + } + async removePreloadScript(script) { + await this.session.send('script.removePreloadScript', { + script, + }); + } + async createUserContext() { + const { result: { userContext: context }, } = await this.session.send('browser.createUserContext', {}); + const userContext = UserContext_js_1.UserContext.create(this, context); + this.#userContexts.set(userContext.id, userContext); + const userContextEmitter = this.#disposables.use(new EventEmitter_js_1.EventEmitter(userContext)); + userContextEmitter.once('closed', () => { + userContextEmitter.removeAllListeners(); + this.#userContexts.delete(context); + }); + return userContext; + } + [(_dispose_decorators = [decorators_js_1.inertIfDisposed], _close_decorators = [(0, decorators_js_1.throwIfDisposed)(browser => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return browser.#reason; + })], _addPreloadScript_decorators = [(0, decorators_js_1.throwIfDisposed)(browser => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return browser.#reason; + })], _removePreloadScript_decorators = [(0, decorators_js_1.throwIfDisposed)(browser => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return browser.#reason; + })], _createUserContext_decorators = [(0, decorators_js_1.throwIfDisposed)(browser => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return browser.#reason; + })], disposable_js_1.disposeSymbol)]() { + this.#reason ??= + 'Browser was disconnected, probably because the session ended.'; + if (this.closed) { + this.emit('closed', { reason: this.#reason }); + } + this.emit('disconnected', { reason: this.#reason }); + this.#disposables.dispose(); + super[disposable_js_1.disposeSymbol](); + } + }; +})(); +exports.Browser = Browser; +//# sourceMappingURL=Browser.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.js.map new file mode 100644 index 00000000..bc35c7e8 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Browser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../../src/bidi/core/Browser.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,kEAA0D;AAC1D,4DAA0E;AAC1E,4DAAwE;AAKxE,qDAA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AAC;gBAExC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACrC,CAAC,CAAC,CAAC;YAEH,OAAO,WAAW,CAAC;QACrB,CAAC;QAED,yBAzEC,+BAAe,wBAOf,IAAA,+BAAe,EAAU,OAAO,CAAC,EAAE;gBAClC,6DAA6D;gBAC7D,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,mCASD,IAAA,+BAAe,EAAU,OAAO,CAAC,EAAE;gBAClC,6DAA6D;gBAC7D,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,sCAiBD,IAAA,+BAAe,EAAU,OAAO,CAAC,EAAE;gBAClC,6DAA6D;gBAC7D,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,oCAOD,IAAA,+BAAe,EAAU,OAAO,CAAC,EAAE;gBAClC,6DAA6D;gBAC7D,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,GAqBD,6BAAa,EAAC;YACb,IAAI,CAAC,OAAO;gBACV,+DAA+D,CAAC;YAClE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;gBAChB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAC,CAAC,CAAC;YAC9C,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,EAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAC,CAAC,CAAC;YAElD,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;YAC5B,KAAK,CAAC,6BAAa,CAAC,EAAE,CAAC;QACzB,CAAC;;;AAhNU,0BAAO"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts new file mode 100644 index 00000000..93fb6be9 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts @@ -0,0 +1,104 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { disposeSymbol } from '../../util/disposable.js'; +import type { AddPreloadScriptOptions } from './Browser.js'; +import { Navigation } from './Navigation.js'; +import { WindowRealm } from './Realm.js'; +import { Request } from './Request.js'; +import type { UserContext } from './UserContext.js'; +import { UserPrompt } from './UserPrompt.js'; +/** + * @internal + */ +export type CaptureScreenshotOptions = Omit; +/** + * @internal + */ +export type ReloadOptions = Omit; +/** + * @internal + */ +export type PrintOptions = Omit; +/** + * @internal + */ +export type HandleUserPromptOptions = Omit; +/** + * @internal + */ +export type SetViewportOptions = Omit; +/** + * @internal + */ +export declare class BrowsingContext extends EventEmitter<{ + /** Emitted when this context is closed. */ + closed: { + /** The reason the browsing context was closed */ + reason: string; + }; + /** Emitted when a child browsing context is created. */ + browsingcontext: { + /** The newly created child browsing context. */ + browsingContext: BrowsingContext; + }; + /** Emitted whenever a navigation occurs. */ + navigation: { + /** The navigation that occurred. */ + navigation: Navigation; + }; + /** Emitted whenever a request is made. */ + request: { + /** The request that was made. */ + request: Request; + }; + /** Emitted whenever a log entry is added. */ + log: { + /** Entry added to the log. */ + entry: Bidi.Log.Entry; + }; + /** Emitted whenever a prompt is opened. */ + userprompt: { + /** The prompt that was opened. */ + userPrompt: UserPrompt; + }; + /** Emitted whenever the frame emits `DOMContentLoaded` */ + DOMContentLoaded: void; + /** Emitted whenever the frame emits `load` */ + load: void; +}> { + #private; + static from(userContext: UserContext, parent: BrowsingContext | undefined, id: string, url: string): BrowsingContext; + readonly defaultRealm: WindowRealm; + readonly id: string; + readonly parent: BrowsingContext | undefined; + readonly userContext: UserContext; + private constructor(); + get children(): Iterable; + get closed(): boolean; + get disposed(): boolean; + get realms(): Iterable; + get top(): BrowsingContext; + get url(): string; + private dispose; + activate(): Promise; + captureScreenshot(options?: CaptureScreenshotOptions): Promise; + close(promptUnload?: boolean): Promise; + traverseHistory(delta: number): Promise; + navigate(url: string, wait?: Bidi.BrowsingContext.ReadinessState): Promise; + reload(options?: ReloadOptions): Promise; + print(options?: PrintOptions): Promise; + handleUserPrompt(options?: HandleUserPromptOptions): Promise; + setViewport(options?: SetViewportOptions): Promise; + performActions(actions: Bidi.Input.SourceActions[]): Promise; + releaseActions(): Promise; + createWindowRealm(sandbox: string): WindowRealm; + addPreloadScript(functionDeclaration: string, options?: AddPreloadScriptOptions): Promise; + removePreloadScript(script: string): Promise; + [disposeSymbol](): void; +} +//# sourceMappingURL=BrowsingContext.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map new file mode 100644 index 00000000..4aeff4fb --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"BrowsingContext.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/BrowsingContext.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAkB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAExE,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAC;AACvC,OAAO,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,EAAC,WAAW,EAA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C,MAAM,CAAC;IAclD,gBAAgB,CAAC,OAAO,GAAE,uBAA4B,GAAG,OAAO,CAAC,IAAI,CAAC;IAWtE,WAAW,CAAC,OAAO,GAAE,kBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAW5D,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAWlE,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAUrC,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW;IAQzC,gBAAgB,CACpB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,MAAM,CAAC;IAcZ,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD,CAAC,aAAa,CAAC,IAAI,IAAI;CAQxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.js new file mode 100644 index 00000000..a5d3ed3f --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.js @@ -0,0 +1,376 @@ +"use strict"; +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BrowsingContext = void 0; +const EventEmitter_js_1 = require("../../common/EventEmitter.js"); +const decorators_js_1 = require("../../util/decorators.js"); +const disposable_js_1 = require("../../util/disposable.js"); +const Navigation_js_1 = require("./Navigation.js"); +const Realm_js_1 = require("./Realm.js"); +const Request_js_1 = require("./Request.js"); +const UserPrompt_js_1 = require("./UserPrompt.js"); +/** + * @internal + */ +let BrowsingContext = (() => { + var _a; + let _classSuper = EventEmitter_js_1.EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + let _activate_decorators; + let _captureScreenshot_decorators; + let _close_decorators; + let _traverseHistory_decorators; + let _navigate_decorators; + let _reload_decorators; + let _print_decorators; + let _handleUserPrompt_decorators; + let _setViewport_decorators; + let _performActions_decorators; + let _releaseActions_decorators; + let _createWindowRealm_decorators; + let _addPreloadScript_decorators; + let _removePreloadScript_decorators; + return class BrowsingContext extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _activate_decorators, { kind: "method", name: "activate", static: false, private: false, access: { has: obj => "activate" in obj, get: obj => obj.activate }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _captureScreenshot_decorators, { kind: "method", name: "captureScreenshot", static: false, private: false, access: { has: obj => "captureScreenshot" in obj, get: obj => obj.captureScreenshot }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _close_decorators, { kind: "method", name: "close", static: false, private: false, access: { has: obj => "close" in obj, get: obj => obj.close }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _traverseHistory_decorators, { kind: "method", name: "traverseHistory", static: false, private: false, access: { has: obj => "traverseHistory" in obj, get: obj => obj.traverseHistory }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _navigate_decorators, { kind: "method", name: "navigate", static: false, private: false, access: { has: obj => "navigate" in obj, get: obj => obj.navigate }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _reload_decorators, { kind: "method", name: "reload", static: false, private: false, access: { has: obj => "reload" in obj, get: obj => obj.reload }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _print_decorators, { kind: "method", name: "print", static: false, private: false, access: { has: obj => "print" in obj, get: obj => obj.print }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _handleUserPrompt_decorators, { kind: "method", name: "handleUserPrompt", static: false, private: false, access: { has: obj => "handleUserPrompt" in obj, get: obj => obj.handleUserPrompt }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _setViewport_decorators, { kind: "method", name: "setViewport", static: false, private: false, access: { has: obj => "setViewport" in obj, get: obj => obj.setViewport }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _performActions_decorators, { kind: "method", name: "performActions", static: false, private: false, access: { has: obj => "performActions" in obj, get: obj => obj.performActions }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _releaseActions_decorators, { kind: "method", name: "releaseActions", static: false, private: false, access: { has: obj => "releaseActions" in obj, get: obj => obj.releaseActions }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _createWindowRealm_decorators, { kind: "method", name: "createWindowRealm", static: false, private: false, access: { has: obj => "createWindowRealm" in obj, get: obj => obj.createWindowRealm }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _addPreloadScript_decorators, { kind: "method", name: "addPreloadScript", static: false, private: false, access: { has: obj => "addPreloadScript" in obj, get: obj => obj.addPreloadScript }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _removePreloadScript_decorators, { kind: "method", name: "removePreloadScript", static: false, private: false, access: { has: obj => "removePreloadScript" in obj, get: obj => obj.removePreloadScript }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + static from(userContext, parent, id, url) { + const browsingContext = new BrowsingContext(userContext, parent, id, url); + browsingContext.#initialize(); + return browsingContext; + } + // keep-sorted start + #navigation = (__runInitializers(this, _instanceExtraInitializers), void 0); + #reason; + #url; + #children = new Map(); + #disposables = new disposable_js_1.DisposableStack(); + #realms = new Map(); + #requests = new Map(); + defaultRealm; + id; + parent; + userContext; + // keep-sorted end + constructor(context, parent, id, url) { + super(); + // keep-sorted start + this.#url = url; + this.id = id; + this.parent = parent; + this.userContext = context; + // keep-sorted end + this.defaultRealm = Realm_js_1.WindowRealm.from(this); + } + #initialize() { + const userContextEmitter = this.#disposables.use(new EventEmitter_js_1.EventEmitter(this.userContext)); + userContextEmitter.once('closed', ({ reason }) => { + this.dispose(`Browsing context already closed: ${reason}`); + }); + const sessionEmitter = this.#disposables.use(new EventEmitter_js_1.EventEmitter(this.#session)); + sessionEmitter.on('browsingContext.contextCreated', info => { + if (info.parent !== this.id) { + return; + } + const browsingContext = BrowsingContext.from(this.userContext, this, info.context, info.url); + this.#children.set(info.context, browsingContext); + const browsingContextEmitter = this.#disposables.use(new EventEmitter_js_1.EventEmitter(browsingContext)); + browsingContextEmitter.once('closed', () => { + browsingContextEmitter.removeAllListeners(); + this.#children.delete(browsingContext.id); + }); + this.emit('browsingcontext', { browsingContext }); + }); + sessionEmitter.on('browsingContext.contextDestroyed', info => { + if (info.context !== this.id) { + return; + } + this.dispose('Browsing context already closed.'); + }); + sessionEmitter.on('browsingContext.domContentLoaded', info => { + if (info.context !== this.id) { + return; + } + this.#url = info.url; + this.emit('DOMContentLoaded', undefined); + }); + sessionEmitter.on('browsingContext.load', info => { + if (info.context !== this.id) { + return; + } + this.#url = info.url; + this.emit('load', undefined); + }); + sessionEmitter.on('browsingContext.navigationStarted', info => { + if (info.context !== this.id) { + return; + } + this.#url = info.url; + this.#requests.clear(); + // Note the navigation ID is null for this event. + this.#navigation = Navigation_js_1.Navigation.from(this); + const navigationEmitter = this.#disposables.use(new EventEmitter_js_1.EventEmitter(this.#navigation)); + for (const eventName of ['fragment', 'failed', 'aborted']) { + navigationEmitter.once(eventName, ({ url }) => { + navigationEmitter[disposable_js_1.disposeSymbol](); + this.#url = url; + }); + } + this.emit('navigation', { navigation: this.#navigation }); + }); + sessionEmitter.on('network.beforeRequestSent', event => { + if (event.context !== this.id) { + return; + } + if (this.#requests.has(event.request.request)) { + return; + } + const request = Request_js_1.Request.from(this, event); + this.#requests.set(request.id, request); + this.emit('request', { request }); + }); + sessionEmitter.on('log.entryAdded', entry => { + if (entry.source.context !== this.id) { + return; + } + this.emit('log', { entry }); + }); + sessionEmitter.on('browsingContext.userPromptOpened', info => { + if (info.context !== this.id) { + return; + } + const userPrompt = UserPrompt_js_1.UserPrompt.from(this, info); + this.emit('userprompt', { userPrompt }); + }); + } + // keep-sorted start block=yes + get #session() { + return this.userContext.browser.session; + } + get children() { + return this.#children.values(); + } + get closed() { + return this.#reason !== undefined; + } + get disposed() { + return this.closed; + } + get realms() { + return this.#realms.values(); + } + get top() { + let context = this; + for (let { parent } = context; parent; { parent } = context) { + context = parent; + } + return context; + } + get url() { + return this.#url; + } + // keep-sorted end + dispose(reason) { + this.#reason = reason; + this[disposable_js_1.disposeSymbol](); + } + async activate() { + await this.#session.send('browsingContext.activate', { + context: this.id, + }); + } + async captureScreenshot(options = {}) { + const { result: { data }, } = await this.#session.send('browsingContext.captureScreenshot', { + context: this.id, + ...options, + }); + return data; + } + async close(promptUnload) { + await Promise.all([...this.#children.values()].map(async (child) => { + await child.close(promptUnload); + })); + await this.#session.send('browsingContext.close', { + context: this.id, + promptUnload, + }); + } + async traverseHistory(delta) { + await this.#session.send('browsingContext.traverseHistory', { + context: this.id, + delta, + }); + } + async navigate(url, wait) { + await this.#session.send('browsingContext.navigate', { + context: this.id, + url, + wait, + }); + return await new Promise(resolve => { + this.once('navigation', ({ navigation }) => { + resolve(navigation); + }); + }); + } + async reload(options = {}) { + await this.#session.send('browsingContext.reload', { + context: this.id, + ...options, + }); + return await new Promise(resolve => { + this.once('navigation', ({ navigation }) => { + resolve(navigation); + }); + }); + } + async print(options = {}) { + const { result: { data }, } = await this.#session.send('browsingContext.print', { + context: this.id, + ...options, + }); + return data; + } + async handleUserPrompt(options = {}) { + await this.#session.send('browsingContext.handleUserPrompt', { + context: this.id, + ...options, + }); + } + async setViewport(options = {}) { + await this.#session.send('browsingContext.setViewport', { + context: this.id, + ...options, + }); + } + async performActions(actions) { + await this.#session.send('input.performActions', { + context: this.id, + actions, + }); + } + async releaseActions() { + await this.#session.send('input.releaseActions', { + context: this.id, + }); + } + createWindowRealm(sandbox) { + return Realm_js_1.WindowRealm.from(this, sandbox); + } + async addPreloadScript(functionDeclaration, options = {}) { + return await this.userContext.browser.addPreloadScript(functionDeclaration, { + ...options, + contexts: [this, ...(options.contexts ?? [])], + }); + } + async removePreloadScript(script) { + await this.userContext.browser.removePreloadScript(script); + } + [(_dispose_decorators = [decorators_js_1.inertIfDisposed], _activate_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _captureScreenshot_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _close_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _traverseHistory_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _navigate_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _reload_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _print_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _handleUserPrompt_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _setViewport_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _performActions_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _releaseActions_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _createWindowRealm_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _addPreloadScript_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _removePreloadScript_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], disposable_js_1.disposeSymbol)]() { + this.#reason ??= + 'Browsing context already closed, probably because the user context closed.'; + this.emit('closed', { reason: this.#reason }); + this.#disposables.dispose(); + super[disposable_js_1.disposeSymbol](); + } + }; +})(); +exports.BrowsingContext = BrowsingContext; +//# sourceMappingURL=BrowsingContext.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map new file mode 100644 index 00000000..29ae8ba3 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BrowsingContext.js","sourceRoot":"","sources":["../../../../../src/bidi/core/BrowsingContext.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,kEAA0D;AAC1D,4DAA0E;AAC1E,4DAAwE;AAGxE,mDAA2C;AAC3C,yCAAuC;AACvC,6CAAqC;AAErC,mDAA2C;AA0C3C;;GAEG;IACU,eAAe;;sBAAS,8BAAY;;;;;;;;;;;;;;;;;iBAApC,eAAgB,SAAQ,WAmCnC;;;YAyLA,wKAAQ,OAAO,6DAGd;YAMD,2KAAM,QAAQ,6DAIb;YAMD,sMAAM,iBAAiB,6DAUtB;YAMD,kKAAM,KAAK,6DAUV;YAMD,gMAAM,eAAe,6DAKpB;YAMD,2KAAM,QAAQ,6DAcb;YAMD,qKAAM,MAAM,6DAUX;YAMD,kKAAM,KAAK,6DAQV;YAMD,mMAAM,gBAAgB,6DAKrB;YAMD,oLAAM,WAAW,6DAKhB;YAMD,6LAAM,cAAc,6DAKnB;YAMD,6LAAM,cAAc,6DAInB;YAMD,sMAAA,iBAAiB,6DAEhB;YAMD,mMAAM,gBAAgB,6DAWrB;YAMD,4MAAM,mBAAmB,6DAExB;;;QA9WD,MAAM,CAAC,IAAI,CACT,WAAwB,EACxB,MAAmC,EACnC,EAAU,EACV,GAAW;YAEX,MAAM,eAAe,GAAG,IAAI,eAAe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AA3ZU,0CAAe"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Connection.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Connection.d.ts new file mode 100644 index 00000000..b9ec97f1 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Connection.d.ts @@ -0,0 +1,140 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import type { EventEmitter } from '../../common/EventEmitter.js'; +/** + * @internal + */ +export interface Commands { + 'script.evaluate': { + params: Bidi.Script.EvaluateParameters; + returnType: Bidi.Script.EvaluateResult; + }; + 'script.callFunction': { + params: Bidi.Script.CallFunctionParameters; + returnType: Bidi.Script.EvaluateResult; + }; + 'script.disown': { + params: Bidi.Script.DisownParameters; + returnType: Bidi.EmptyResult; + }; + 'script.addPreloadScript': { + params: Bidi.Script.AddPreloadScriptParameters; + returnType: Bidi.Script.AddPreloadScriptResult; + }; + 'script.removePreloadScript': { + params: Bidi.Script.RemovePreloadScriptParameters; + returnType: Bidi.EmptyResult; + }; + 'browser.close': { + params: Bidi.EmptyParams; + returnType: Bidi.EmptyResult; + }; + 'browser.createUserContext': { + params: Bidi.EmptyParams; + returnType: Bidi.Browser.CreateUserContextResult; + }; + 'browser.getUserContexts': { + params: Bidi.EmptyParams; + returnType: Bidi.Browser.GetUserContextsResult; + }; + 'browser.removeUserContext': { + params: { + userContext: Bidi.Browser.UserContext; + }; + returnType: Bidi.Browser.RemoveUserContext; + }; + 'browsingContext.activate': { + params: Bidi.BrowsingContext.ActivateParameters; + returnType: Bidi.EmptyResult; + }; + 'browsingContext.create': { + params: Bidi.BrowsingContext.CreateParameters; + returnType: Bidi.BrowsingContext.CreateResult; + }; + 'browsingContext.close': { + params: Bidi.BrowsingContext.CloseParameters; + returnType: Bidi.EmptyResult; + }; + 'browsingContext.getTree': { + params: Bidi.BrowsingContext.GetTreeParameters; + returnType: Bidi.BrowsingContext.GetTreeResult; + }; + 'browsingContext.navigate': { + params: Bidi.BrowsingContext.NavigateParameters; + returnType: Bidi.BrowsingContext.NavigateResult; + }; + 'browsingContext.reload': { + params: Bidi.BrowsingContext.ReloadParameters; + returnType: Bidi.BrowsingContext.NavigateResult; + }; + 'browsingContext.print': { + params: Bidi.BrowsingContext.PrintParameters; + returnType: Bidi.BrowsingContext.PrintResult; + }; + 'browsingContext.captureScreenshot': { + params: Bidi.BrowsingContext.CaptureScreenshotParameters; + returnType: Bidi.BrowsingContext.CaptureScreenshotResult; + }; + 'browsingContext.handleUserPrompt': { + params: Bidi.BrowsingContext.HandleUserPromptParameters; + returnType: Bidi.EmptyResult; + }; + 'browsingContext.setViewport': { + params: Bidi.BrowsingContext.SetViewportParameters; + returnType: Bidi.EmptyResult; + }; + 'browsingContext.traverseHistory': { + params: Bidi.BrowsingContext.TraverseHistoryParameters; + returnType: Bidi.EmptyResult; + }; + 'input.performActions': { + params: Bidi.Input.PerformActionsParameters; + returnType: Bidi.EmptyResult; + }; + 'input.releaseActions': { + params: Bidi.Input.ReleaseActionsParameters; + returnType: Bidi.EmptyResult; + }; + 'session.end': { + params: Bidi.EmptyParams; + returnType: Bidi.EmptyResult; + }; + 'session.new': { + params: Bidi.Session.NewParameters; + returnType: Bidi.Session.NewResult; + }; + 'session.status': { + params: object; + returnType: Bidi.Session.StatusResult; + }; + 'session.subscribe': { + params: Bidi.Session.SubscriptionRequest; + returnType: Bidi.EmptyResult; + }; + 'session.unsubscribe': { + params: Bidi.Session.SubscriptionRequest; + returnType: Bidi.EmptyResult; + }; +} +/** + * @internal + */ +export type BidiEvents = { + [K in Bidi.ChromiumBidi.Event['method']]: Extract['params']; +}; +/** + * @internal + */ +export interface Connection extends EventEmitter { + send(method: T, params: Commands[T]['params']): Promise<{ + result: Commands[T]['returnType']; + }>; + pipeTo(emitter: EventEmitter): void; +} +//# sourceMappingURL=Connection.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Connection.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Connection.d.ts.map new file mode 100644 index 00000000..176d579f --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Connection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Connection.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/Connection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,iBAAiB,EAAE;QACjB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC;QACvC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC;KACxC,CAAC;IACF,qBAAqB,EAAE;QACrB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC;QAC3C,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC;KACxC,CAAC;IACF,eAAe,EAAE;QACf,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;QACrC,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC;KAC9B,CAAC;IACF,yBAAyB,EAAE;QACzB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,0BAA0B,CAAC;QAC/C,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC;KAChD,CAAC;IACF,4BAA4B,EAAE;QAC5B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,6BAA6B,CAAC;QAClD,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC;KAC9B,CAAC;IAEF,eAAe,EAAE;QACf,MAAM,EAA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/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Connection.js new file mode 100644 index 00000000..197639eb --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Connection.js @@ -0,0 +1,8 @@ +"use strict"; +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Connection.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Connection.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Connection.js.map new file mode 100644 index 00000000..8a42637e --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Connection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../../../src/bidi/core/Connection.ts"],"names":[],"mappings":";AAAA;;;;GAIG"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.d.ts new file mode 100644 index 00000000..a002c6a7 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.d.ts @@ -0,0 +1,38 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import { EventEmitter } from '../../common/EventEmitter.js'; +import { disposeSymbol } from '../../util/disposable.js'; +import type { BrowsingContext } from './BrowsingContext.js'; +import type { Request } from './Request.js'; +/** + * @internal + */ +export interface NavigationInfo { + url: string; + timestamp: Date; +} +/** + * @internal + */ +export declare class Navigation extends EventEmitter<{ + /** Emitted when navigation has a request associated with it. */ + request: Request; + /** Emitted when fragment navigation occurred. */ + fragment: NavigationInfo; + /** Emitted when navigation failed. */ + failed: NavigationInfo; + /** Emitted when navigation was aborted. */ + aborted: NavigationInfo; +}> { + #private; + static from(context: BrowsingContext): Navigation; + private constructor(); + get disposed(): boolean; + get request(): Request | undefined; + private dispose; + [disposeSymbol](): void; +} +//# sourceMappingURL=Navigation.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.d.ts.map new file mode 100644 index 00000000..3b91bdfd --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Navigation.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/Navigation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAG1D,OAAO,EAAkB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAExE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,IAAI,CAAC;CACjB;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,YAAY,CAAC;IAC3C,gEAAgE;IAChE,OAAO,EAAE,OAAO,CAAC;IACjB,iDAAiD;IACjD,QAAQ,EAAE,cAAc,CAAC;IACzB,sCAAsC;IACtC,MAAM,EAAE,cAAc,CAAC;IACvB,2CAA2C;IAC3C,OAAO,EAAE,cAAc,CAAC;CACzB,CAAC;;IACA,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,eAAe,GAAG,UAAU;IAajD,OAAO;IA8EP,IAAI,QAAQ,IAAI,OAAO,CAEtB;IACD,IAAI,OAAO,IAAI,OAAO,GAAG,SAAS,CAEjC;IAID,OAAO,CAAC,OAAO;IAIf,CAAC,aAAa,CAAC,IAAI,IAAI;CAIxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.js new file mode 100644 index 00000000..6d41007c --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.js @@ -0,0 +1,157 @@ +"use strict"; +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Navigation = void 0; +const EventEmitter_js_1 = require("../../common/EventEmitter.js"); +const decorators_js_1 = require("../../util/decorators.js"); +const Deferred_js_1 = require("../../util/Deferred.js"); +const disposable_js_1 = require("../../util/disposable.js"); +/** + * @internal + */ +let Navigation = (() => { + let _classSuper = EventEmitter_js_1.EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + return class Navigation extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + static from(context) { + const navigation = new Navigation(context); + navigation.#initialize(); + return navigation; + } + // keep-sorted start + #request = (__runInitializers(this, _instanceExtraInitializers), void 0); + #browsingContext; + #disposables = new disposable_js_1.DisposableStack(); + #id = new Deferred_js_1.Deferred(); + // keep-sorted end + constructor(context) { + super(); + // keep-sorted start + this.#browsingContext = context; + // keep-sorted end + } + #initialize() { + const browsingContextEmitter = this.#disposables.use(new EventEmitter_js_1.EventEmitter(this.#browsingContext)); + browsingContextEmitter.once('closed', () => { + this.emit('failed', { + url: this.#browsingContext.url, + timestamp: new Date(), + }); + this.dispose(); + }); + this.#browsingContext.on('request', ({ request }) => { + if (request.navigation === this.#id.value()) { + this.#request = request; + this.emit('request', request); + } + }); + const sessionEmitter = this.#disposables.use(new EventEmitter_js_1.EventEmitter(this.#session)); + // To get the navigation ID if any. + for (const eventName of [ + 'browsingContext.domContentLoaded', + 'browsingContext.load', + ]) { + sessionEmitter.on(eventName, info => { + if (info.context !== this.#browsingContext.id) { + return; + } + if (!info.navigation) { + return; + } + if (!this.#id.resolved()) { + this.#id.resolve(info.navigation); + } + }); + } + for (const [eventName, event] of [ + ['browsingContext.fragmentNavigated', 'fragment'], + ['browsingContext.navigationFailed', 'failed'], + ['browsingContext.navigationAborted', 'aborted'], + ]) { + sessionEmitter.on(eventName, info => { + if (info.context !== this.#browsingContext.id) { + return; + } + if (!info.navigation) { + return; + } + if (!this.#id.resolved()) { + this.#id.resolve(info.navigation); + } + if (this.#id.value() !== info.navigation) { + return; + } + this.emit(event, { + url: info.url, + timestamp: new Date(info.timestamp), + }); + this.dispose(); + }); + } + } + // keep-sorted start block=yes + get #session() { + return this.#browsingContext.userContext.browser.session; + } + get disposed() { + return this.#disposables.disposed; + } + get request() { + return this.#request; + } + // keep-sorted end + dispose() { + this[disposable_js_1.disposeSymbol](); + } + [(_dispose_decorators = [decorators_js_1.inertIfDisposed], disposable_js_1.disposeSymbol)]() { + this.#disposables.dispose(); + super[disposable_js_1.disposeSymbol](); + } + }; +})(); +exports.Navigation = Navigation; +//# sourceMappingURL=Navigation.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.js.map new file mode 100644 index 00000000..5dedf6b6 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Navigation.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Navigation.js","sourceRoot":"","sources":["../../../../../src/bidi/core/Navigation.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,kEAA0D;AAC1D,4DAAyD;AACzD,wDAAgD;AAChD,4DAAwE;AAaxE;;GAEG;IACU,UAAU;sBAAS,8BAAY;;;iBAA/B,UAAW,SAAQ,WAS9B;;;YAqGA,wKAAQ,OAAO,6DAEd;;;QAtGD,MAAM,CAAC,IAAI,CAAC,OAAwB;YAClC,MAAM,UAAU,G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oBACD,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;wBACf,GAAG,EAAE,IAAI,CAAC,GAAG;wBACb,SAAS,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;qBACpC,CAAC,CAAC;oBACH,IAAI,CAAC,OAAO,EAAE,CAAC;gBACjB,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,8BAA8B;QAC9B,IAAI,QAAQ;YACV,OAAO,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC;QAC3D,CAAC;QACD,IAAI,QAAQ;YACV,OAAO,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;QACpC,CAAC;QACD,IAAI,OAAO;YACT,OAAO,IAAI,CAAC,QAAQ,CAAC;QACvB,CAAC;QACD,kBAAkB;QAGV,OAAO;YACb,IAAI,CAAC,6BAAa,CAAC,EAAE,CAAC;QACxB,CAAC;QAED,yBALC,+BAAe,GAKf,6BAAa,EAAC;YACb,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;YAC5B,KAAK,CAAC,6BAAa,CAAC,EAAE,CAAC;QACzB,CAAC;;;AArHU,gCAAU"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Realm.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Realm.d.ts new file mode 100644 index 00000000..1a2daf39 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Realm.d.ts @@ -0,0 +1,86 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { DisposableStack, disposeSymbol } from '../../util/disposable.js'; +import type { BrowsingContext } from './BrowsingContext.js'; +import type { Session } from './Session.js'; +/** + * @internal + */ +export type CallFunctionOptions = Omit; +/** + * @internal + */ +export type EvaluateOptions = Omit; +/** + * @internal + */ +export declare abstract class Realm extends EventEmitter<{ + /** Emitted when the realm is destroyed. */ + destroyed: { + reason: string; + }; + /** Emitted when a dedicated worker is created in the realm. */ + worker: DedicatedWorkerRealm; + /** Emitted when a shared worker is created in the realm. */ + sharedworker: SharedWorkerRealm; +}> { + #private; + protected readonly disposables: DisposableStack; + readonly id: string; + readonly origin: string; + protected constructor(id: string, origin: string); + protected initialize(): void; + get disposed(): boolean; + protected abstract get session(): Session; + protected get target(): Bidi.Script.Target; + protected dispose(reason?: string): void; + disown(handles: string[]): Promise; + callFunction(functionDeclaration: string, awaitPromise: boolean, options?: CallFunctionOptions): Promise; + evaluate(expression: string, awaitPromise: boolean, options?: EvaluateOptions): Promise; + [disposeSymbol](): void; +} +/** + * @internal + */ +export declare class WindowRealm extends Realm { + #private; + static from(context: BrowsingContext, sandbox?: string): WindowRealm; + readonly browsingContext: BrowsingContext; + readonly sandbox?: string; + private constructor(); + initialize(): void; + get session(): Session; + get target(): Bidi.Script.Target; +} +/** + * @internal + */ +export type DedicatedWorkerOwnerRealm = DedicatedWorkerRealm | SharedWorkerRealm | WindowRealm; +/** + * @internal + */ +export declare class DedicatedWorkerRealm extends Realm { + #private; + static from(owner: DedicatedWorkerOwnerRealm, id: string, origin: string): DedicatedWorkerRealm; + readonly owners: Set; + private constructor(); + initialize(): void; + get session(): Session; +} +/** + * @internal + */ +export declare class SharedWorkerRealm extends Realm { + #private; + static from(owners: [WindowRealm, ...WindowRealm[]], id: string, origin: string): SharedWorkerRealm; + readonly owners: Set; + private constructor(); + initialize(): void; + get session(): Session; +} +//# sourceMappingURL=Realm.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Realm.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Realm.d.ts.map new file mode 100644 index 00000000..e673a37d --- /dev/null +++ b/Scripts/node_modules/puppe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CAAC,yBAAyB,CAAC,CAAC;IAGhD,OAAO;IASE,UAAU,IAAI,IAAI;IAwB3B,IAAa,OAAO,IAAI,OAAO,CAG9B;CACF;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;;IAC1C,MAAM,CAAC,IAAI,CACT,MAAM,EAAE,CAAC,WAAW,EAAE,GAAG,WAAW,EAAE,CAAC,EACvC,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,MAAM,GACb,iBAAiB;IAQpB,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;IAGlC,OAAO;IASE,UAAU,IAAI,IAAI;IAwB3B,IAAa,OAAO,IAAI,OAAO,CAG9B;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Realm.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Realm.js new file mode 100644 index 00000000..9e751f6b --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Realm.js @@ -0,0 +1,297 @@ +"use strict"; +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SharedWorkerRealm = exports.DedicatedWorkerRealm = exports.WindowRealm = exports.Realm = void 0; +const EventEmitter_js_1 = require("../../common/EventEmitter.js"); +const decorators_js_1 = require("../../util/decorators.js"); +const disposable_js_1 = require("../../util/disposable.js"); +/** + * @internal + */ +let Realm = (() => { + let _classSuper = EventEmitter_js_1.EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + let _disown_decorators; + let _callFunction_decorators; + let _evaluate_decorators; + return class Realm extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _disown_decorators, { kind: "method", name: "disown", static: false, private: false, access: { has: obj => "disown" in obj, get: obj => obj.disown }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _callFunction_decorators, { kind: "method", name: "callFunction", static: false, private: false, access: { has: obj => "callFunction" in obj, get: obj => obj.callFunction }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _evaluate_decorators, { kind: "method", name: "evaluate", static: false, private: false, access: { has: obj => "evaluate" in obj, get: obj => obj.evaluate }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + // keep-sorted start + #reason = (__runInitializers(this, _instanceExtraInitializers), void 0); + disposables = new disposable_js_1.DisposableStack(); + id; + origin; + // keep-sorted end + constructor(id, origin) { + super(); + // keep-sorted start + this.id = id; + this.origin = origin; + // keep-sorted end + } + initialize() { + const sessionEmitter = this.disposables.use(new EventEmitter_js_1.EventEmitter(this.session)); + sessionEmitter.on('script.realmDestroyed', info => { + if (info.realm !== this.id) { + return; + } + this.dispose('Realm already destroyed.'); + }); + } + // keep-sorted start block=yes + get disposed() { + return this.#reason !== undefined; + } + get target() { + return { realm: this.id }; + } + // keep-sorted end + dispose(reason) { + this.#reason = reason; + this[disposable_js_1.disposeSymbol](); + } + async disown(handles) { + await this.session.send('script.disown', { + target: this.target, + handles, + }); + } + async callFunction(functionDeclaration, awaitPromise, options = {}) { + const { result } = await this.session.send('script.callFunction', { + functionDeclaration, + awaitPromise, + target: this.target, + ...options, + }); + return result; + } + async evaluate(expression, awaitPromise, options = {}) { + const { result } = await this.session.send('script.evaluate', { + expression, + awaitPromise, + target: this.target, + ...options, + }); + return result; + } + [(_dispose_decorators = [decorators_js_1.inertIfDisposed], _disown_decorators = [(0, decorators_js_1.throwIfDisposed)(realm => { + // SAFETY: Disposal implies this exists. + return realm.#reason; + })], _callFunction_decorators = [(0, decorators_js_1.throwIfDisposed)(realm => { + // SAFETY: Disposal implies this exists. + return realm.#reason; + })], _evaluate_decorators = [(0, decorators_js_1.throwIfDisposed)(realm => { + // SAFETY: Disposal implies this exists. + return realm.#reason; + })], disposable_js_1.disposeSymbol)]() { + this.#reason ??= + 'Realm already destroyed, probably because all associated browsing contexts closed.'; + this.emit('destroyed', { reason: this.#reason }); + this.disposables.dispose(); + super[disposable_js_1.disposeSymbol](); + } + }; +})(); +exports.Realm = Realm; +/** + * @internal + */ +class WindowRealm extends Realm { + static from(context, sandbox) { + const realm = new WindowRealm(context, sandbox); + realm.initialize(); + return realm; + } + // keep-sorted start + browsingContext; + sandbox; + // keep-sorted end + #workers = { + dedicated: new Map(), + shared: new Map(), + }; + constructor(context, sandbox) { + super('', ''); + // keep-sorted start + this.browsingContext = context; + this.sandbox = sandbox; + // keep-sorted end + } + initialize() { + super.initialize(); + const sessionEmitter = this.disposables.use(new EventEmitter_js_1.EventEmitter(this.session)); + sessionEmitter.on('script.realmCreated', info => { + if (info.type !== 'window') { + return; + } + this.id = info.realm; + this.origin = info.origin; + }); + sessionEmitter.on('script.realmCreated', info => { + if (info.type !== 'dedicated-worker') { + return; + } + if (!info.owners.includes(this.id)) { + return; + } + const realm = DedicatedWorkerRealm.from(this, info.realm, info.origin); + this.#workers.dedicated.set(realm.id, realm); + const realmEmitter = this.disposables.use(new EventEmitter_js_1.EventEmitter(realm)); + realmEmitter.once('destroyed', () => { + realmEmitter.removeAllListeners(); + this.#workers.dedicated.delete(realm.id); + }); + this.emit('worker', realm); + }); + this.browsingContext.userContext.browser.on('sharedworker', ({ realm }) => { + if (!realm.owners.has(this)) { + return; + } + this.#workers.shared.set(realm.id, realm); + const realmEmitter = this.disposables.use(new EventEmitter_js_1.EventEmitter(realm)); + realmEmitter.once('destroyed', () => { + realmEmitter.removeAllListeners(); + this.#workers.shared.delete(realm.id); + }); + this.emit('sharedworker', realm); + }); + } + get session() { + return this.browsingContext.userContext.browser.session; + } + get target() { + return { context: this.browsingContext.id, sandbox: this.sandbox }; + } +} +exports.WindowRealm = WindowRealm; +/** + * @internal + */ +class DedicatedWorkerRealm extends Realm { + static from(owner, id, origin) { + const realm = new DedicatedWorkerRealm(owner, id, origin); + realm.initialize(); + return realm; + } + // keep-sorted start + #workers = new Map(); + owners; + // keep-sorted end + constructor(owner, id, origin) { + super(id, origin); + this.owners = new Set([owner]); + } + initialize() { + super.initialize(); + const sessionEmitter = this.disposables.use(new EventEmitter_js_1.EventEmitter(this.session)); + sessionEmitter.on('script.realmCreated', info => { + if (info.type !== 'dedicated-worker') { + return; + } + if (!info.owners.includes(this.id)) { + return; + } + const realm = DedicatedWorkerRealm.from(this, info.realm, info.origin); + this.#workers.set(realm.id, realm); + const realmEmitter = this.disposables.use(new EventEmitter_js_1.EventEmitter(realm)); + realmEmitter.once('destroyed', () => { + this.#workers.delete(realm.id); + }); + this.emit('worker', realm); + }); + } + get session() { + // SAFETY: At least one owner will exist. + return this.owners.values().next().value.session; + } +} +exports.DedicatedWorkerRealm = DedicatedWorkerRealm; +/** + * @internal + */ +class SharedWorkerRealm extends Realm { + static from(owners, id, origin) { + const realm = new SharedWorkerRealm(owners, id, origin); + realm.initialize(); + return realm; + } + // keep-sorted start + #workers = new Map(); + owners; + // keep-sorted end + constructor(owners, id, origin) { + super(id, origin); + this.owners = new Set(owners); + } + initialize() { + super.initialize(); + const sessionEmitter = this.disposables.use(new EventEmitter_js_1.EventEmitter(this.session)); + sessionEmitter.on('script.realmCreated', info => { + if (info.type !== 'dedicated-worker') { + return; + } + if (!info.owners.includes(this.id)) { + return; + } + const realm = DedicatedWorkerRealm.from(this, info.realm, info.origin); + this.#workers.set(realm.id, realm); + const realmEmitter = this.disposables.use(new EventEmitter_js_1.EventEmitter(realm)); + realmEmitter.once('destroyed', () => { + this.#workers.delete(realm.id); + }); + this.emit('worker', realm); + }); + } + get session() { + // SAFETY: At least one owner will exist. + return this.owners.values().next().value.session; + } +} +exports.SharedWorkerRealm = SharedWorkerRealm; +//# sourceMappingURL=Realm.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Realm.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Realm.js.map new file mode 100644 index 00000000..48f95f1f --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Realm.js.map @@ -0,0 +1 @@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,CAAC,CAAC;YACnE,YAAY,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE;gBAClC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YACjC,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;IACL,CAAC;IAED,IAAa,OAAO;QAClB,yCAAyC;QACzC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;IACnD,CAAC;CACF;AArDD,8CAqDC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.d.ts new file mode 100644 index 00000000..7ef33da2 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.d.ts @@ -0,0 +1,37 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { disposeSymbol } from '../../util/disposable.js'; +import type { BrowsingContext } from './BrowsingContext.js'; +/** + * @internal + */ +export declare class Request extends EventEmitter<{ + /** Emitted when the request is redirected. */ + redirect: Request; + /** Emitted when the request succeeds. */ + success: Bidi.Network.ResponseData; + /** Emitted when the request fails. */ + error: string; +}> { + #private; + static from(browsingContext: BrowsingContext, event: Bidi.Network.BeforeRequestSentParameters): Request; + private constructor(); + get disposed(): boolean; + get error(): string | undefined; + get headers(): Bidi.Network.Header[]; + get id(): string; + get initiator(): Bidi.Network.Initiator; + get method(): string; + get navigation(): string | undefined; + get redirect(): Request | undefined; + get response(): Bidi.Network.ResponseData | undefined; + get url(): string; + private dispose; + [disposeSymbol](): void; +} +//# sourceMappingURL=Request.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.d.ts.map new file mode 100644 index 00000000..eda9b897 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/Request.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAkB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAExE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAE1D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,YAAY,CAAC;IACxC,8CAA8C;IAC9C,QAAQ,EAAE,OAAO,CAAC;IAClB,yCAAyC;IACzC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;IACnC,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;;IACA,MAAM,CAAC,IAAI,CACT,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,2BAA2B,GAC9C,OAAO;IAeV,OAAO;IA+DP,IAAI,QAAQ,IAAI,OAAO,CAEtB;IACD,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;IACD,IAAI,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAEnC;IACD,IAAI,EAAE,IAAI,MAAM,CAEf;IACD,IAAI,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAEtC;IACD,IAAI,MAAM,IAAI,MAAM,CAEnB;IACD,IAAI,UAAU,IAAI,MAAM,GAAG,SAAS,CAEnC;IACD,IAAI,QAAQ,IAAI,OAAO,GAAG,SAAS,CAElC;IACD,IAAI,QAAQ,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,GAAG,SAAS,CAEpD;IACD,IAAI,GAAG,IAAI,MAAM,CAEhB;IAID,OAAO,CAAC,OAAO;IAIf,CAAC,aAAa,CAAC,IAAI,IAAI;CAIxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.js new file mode 100644 index 00000000..19344f36 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.js @@ -0,0 +1,167 @@ +"use strict"; +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Request = void 0; +const EventEmitter_js_1 = require("../../common/EventEmitter.js"); +const decorators_js_1 = require("../../util/decorators.js"); +const disposable_js_1 = require("../../util/disposable.js"); +/** + * @internal + */ +let Request = (() => { + var _a; + let _classSuper = EventEmitter_js_1.EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + return class Request extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + static from(browsingContext, event) { + const request = new Request(browsingContext, event); + request.#initialize(); + return request; + } + // keep-sorted start + #error = (__runInitializers(this, _instanceExtraInitializers), void 0); + #redirect; + #response; + #browsingContext; + #disposables = new disposable_js_1.DisposableStack(); + #event; + // keep-sorted end + constructor(browsingContext, event) { + super(); + // keep-sorted start + this.#browsingContext = browsingContext; + this.#event = event; + // keep-sorted end + } + #initialize() { + const browsingContextEmitter = this.#disposables.use(new EventEmitter_js_1.EventEmitter(this.#browsingContext)); + browsingContextEmitter.once('closed', ({ reason }) => { + this.#error = reason; + this.emit('error', this.#error); + this.dispose(); + }); + const sessionEmitter = this.#disposables.use(new EventEmitter_js_1.EventEmitter(this.#session)); + sessionEmitter.on('network.beforeRequestSent', event => { + if (event.context !== this.#browsingContext.id) { + return; + } + if (event.request.request !== this.id) { + return; + } + this.#redirect = Request.from(this.#browsingContext, event); + this.emit('redirect', this.#redirect); + this.dispose(); + }); + sessionEmitter.on('network.fetchError', event => { + if (event.context !== this.#browsingContext.id) { + return; + } + if (event.request.request !== this.id) { + return; + } + this.#error = event.errorText; + this.emit('error', this.#error); + this.dispose(); + }); + sessionEmitter.on('network.responseCompleted', event => { + if (event.context !== this.#browsingContext.id) { + return; + } + if (event.request.request !== this.id) { + return; + } + this.#response = event.response; + this.emit('success', this.#response); + this.dispose(); + }); + } + // keep-sorted start block=yes + get #session() { + return this.#browsingContext.userContext.browser.session; + } + get disposed() { + return this.#disposables.disposed; + } + get error() { + return this.#error; + } + get headers() { + return this.#event.request.headers; + } + get id() { + return this.#event.request.request; + } + get initiator() { + return this.#event.initiator; + } + get method() { + return this.#event.request.method; + } + get navigation() { + return this.#event.navigation ?? undefined; + } + get redirect() { + return this.redirect; + } + get response() { + return this.#response; + } + get url() { + return this.#event.request.url; + } + // keep-sorted end + dispose() { + this[disposable_js_1.disposeSymbol](); + } + [(_dispose_decorators = [decorators_js_1.inertIfDisposed], disposable_js_1.disposeSymbol)]() { + this.#disposables.dispose(); + super[disposable_js_1.disposeSymbol](); + } + }; +})(); +exports.Request = Request; +//# sourceMappingURL=Request.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.js.map new file mode 100644 index 00000000..b382f010 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../../src/bidi/core/Request.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,kEAA0D;AAC1D,4DAAyD;AACzD,4DAAwE;AA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CAAC,6BAAa,CAAC,EAAE,CAAC;QACzB,CAAC;;;AAjIU,0BAAO"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.d.ts new file mode 100644 index 00000000..dc993e30 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.d.ts @@ -0,0 +1,48 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { disposeSymbol } from '../../util/disposable.js'; +import { Browser } from './Browser.js'; +import type { BidiEvents, Commands, Connection } from './Connection.js'; +/** + * @internal + */ +export declare class Session extends EventEmitter implements Connection { + #private; + static from(connection: Connection, capabilities: Bidi.Session.CapabilitiesRequest): Promise; + readonly browser: Browser; + readonly connection: Connection; + private constructor(); + get capabilities(): Bidi.Session.NewResult['capabilities']; + get disposed(): boolean; + get ended(): boolean; + get id(): string; + private dispose; + pipeTo(emitter: EventEmitter): void; + /** + * Currently, there is a 1:1 relationship between the session and the + * session. In the future, we might support multiple sessions and in that + * case we always needs to make sure that the session for the right session + * object is used, so we implement this method here, although it's not defined + * in the spec. + */ + send(method: T, params: Commands[T]['params']): Promise<{ + result: Commands[T]['returnType']; + }>; + subscribe(events: string[]): Promise; + end(): Promise; + [disposeSymbol](): void; +} +//# sourceMappingURL=Session.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.d.ts.map new file mode 100644 index 00000000..f25d85b5 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"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,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAC5B,OAAO,CAAC;QAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAA;KAAC,CAAC;IAQzC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAU1C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ1B,CAAC,aAAa,CAAC,IAAI,IAAI;CAQxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.js new file mode 100644 index 00000000..d2428851 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.js @@ -0,0 +1,199 @@ +"use strict"; +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Session = void 0; +const EventEmitter_js_1 = require("../../common/EventEmitter.js"); +const util_js_1 = require("../../common/util.js"); +const decorators_js_1 = require("../../util/decorators.js"); +const disposable_js_1 = require("../../util/disposable.js"); +const Browser_js_1 = require("./Browser.js"); +// TODO: Once Chrome supports session.status properly, uncomment this block. +// const MAX_RETRIES = 5; +/** + * @internal + */ +let Session = (() => { + let _classSuper = EventEmitter_js_1.EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + let _send_decorators; + let _subscribe_decorators; + let _end_decorators; + return class Session extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _send_decorators, { kind: "method", name: "send", static: false, private: false, access: { has: obj => "send" in obj, get: obj => obj.send }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _subscribe_decorators, { kind: "method", name: "subscribe", static: false, private: false, access: { has: obj => "subscribe" in obj, get: obj => obj.subscribe }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _end_decorators, { kind: "method", name: "end", static: false, private: false, access: { has: obj => "end" in obj, get: obj => obj.end }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + static async from(connection, capabilities) { + // Wait until the session is ready. + // + // TODO: Once Chrome supports session.status properly, uncomment this block + // and remove `getBiDiConnection` in BrowserConnector. + // let status = {message: '', ready: false}; + // for (let i = 0; i < MAX_RETRIES; ++i) { + // status = (await connection.send('session.status', {})).result; + // if (status.ready) { + // break; + // } + // // Backoff a little bit each time. + // await new Promise(resolve => { + // return setTimeout(resolve, (1 << i) * 100); + // }); + // } + // if (!status.ready) { + // throw new Error(status.message); + // } + let result; + try { + result = (await connection.send('session.new', { + capabilities, + })).result; + } + catch (err) { + // Chrome does not support session.new. + (0, util_js_1.debugError)(err); + result = { + sessionId: '', + capabilities: { + acceptInsecureCerts: false, + browserName: '', + browserVersion: '', + platformName: '', + setWindowRect: false, + webSocketUrl: '', + }, + }; + } + const session = new Session(connection, result); + await session.#initialize(); + return session; + } + // keep-sorted start + #reason = (__runInitializers(this, _instanceExtraInitializers), void 0); + #disposables = new disposable_js_1.DisposableStack(); + #info; + browser; + connection; + // keep-sorted end + constructor(connection, info) { + super(); + // keep-sorted start + this.#info = info; + this.connection = connection; + // keep-sorted end + } + async #initialize() { + this.connection.pipeTo(this); + // SAFETY: We use `any` to allow assignment of the readonly property. + this.browser = await Browser_js_1.Browser.from(this); + const browserEmitter = this.#disposables.use(this.browser); + browserEmitter.once('closed', ({ reason }) => { + this.dispose(reason); + }); + } + // keep-sorted start block=yes + get capabilities() { + return this.#info.capabilities; + } + get disposed() { + return this.ended; + } + get ended() { + return this.#reason !== undefined; + } + get id() { + return this.#info.sessionId; + } + // keep-sorted end + dispose(reason) { + this.#reason = reason; + this[disposable_js_1.disposeSymbol](); + } + pipeTo(emitter) { + this.connection.pipeTo(emitter); + } + /** + * Currently, there is a 1:1 relationship between the session and the + * session. In the future, we might support multiple sessions and in that + * case we always needs to make sure that the session for the right session + * object is used, so we implement this method here, although it's not defined + * in the spec. + */ + async send(method, params) { + return await this.connection.send(method, params); + } + async subscribe(events) { + await this.send('session.subscribe', { + events, + }); + } + async end() { + try { + await this.send('session.end', {}); + } + finally { + this.dispose(`Session already ended.`); + } + } + [(_dispose_decorators = [decorators_js_1.inertIfDisposed], _send_decorators = [(0, decorators_js_1.throwIfDisposed)(session => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return session.#reason; + })], _subscribe_decorators = [(0, decorators_js_1.throwIfDisposed)(session => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return session.#reason; + })], _end_decorators = [(0, decorators_js_1.throwIfDisposed)(session => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return session.#reason; + })], disposable_js_1.disposeSymbol)]() { + this.#reason ??= + 'Session already destroyed, probably because the connection broke.'; + this.emit('ended', { reason: this.#reason }); + this.#disposables.dispose(); + super[disposable_js_1.disposeSymbol](); + } + }; +})(); +exports.Session = Session; +//# sourceMappingURL=Session.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.js.map new file mode 100644 index 00000000..095b7a61 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/Session.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Session.js","sourceRoot":"","sources":["../../../../../src/bidi/core/Session.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,kEAA0D;AAC1D,kDAAgD;AAChD,4DAA0E;AAC1E,4DAAwE;AAExE,6CAAqC;AAGrC,4EAA4E;AAC5E,yBAAyB;AAEzB;;GAEG;IACU,OAAO;sBACV,8BAAY;;;;;;iBADT,OACX,SAAQ,WAAoD;;;YAmG5D,wKAAQ,OAAO,6DAGd;YAiBD,+JAAM,IAAI,6DAKT;YAMD,8KAAM,SAAS,6DAId;YAMD,4JAAM,GAAG,6DAMR;;;QA/ID,MAAM,CAAC,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IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE;gBACnC,MAAM;aACP,CAAC,CAAC;QACL,CAAC;QAMD,KAAK,CAAC,GAAG;YACP,IAAI,CAAC;gBACH,MAAM,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;YACrC,CAAC;oBAAS,CAAC;gBACT,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC;YACzC,CAAC;QACH,CAAC;QAED,yBAlDC,+BAAe,uBAiBf,IAAA,+BAAe,EAAU,OAAO,CAAC,EAAE;gBAClC,6DAA6D;gBAC7D,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,4BAQD,IAAA,+BAAe,EAAU,OAAO,CAAC,EAAE;gBAClC,6DAA6D;gBAC7D,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,sBAOD,IAAA,+BAAe,EAAU,OAAO,CAAC,EAAE;gBAClC,6DAA6D;gBAC7D,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,GASD,6BAAa,EAAC;YACb,IAAI,CAAC,OAAO;gBACV,mEAAmE,CAAC;YACtE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAC,CAAC,CAAC;YAE3C,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;YAC5B,KAAK,CAAC,6BAAa,CAAC,EAAE,CAAC;QACzB,CAAC;;;AA5JU,0BAAO"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.d.ts new file mode 100644 index 00000000..dfec0909 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.d.ts @@ -0,0 +1,50 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { disposeSymbol } from '../../util/disposable.js'; +import type { Browser } from './Browser.js'; +import { BrowsingContext } from './BrowsingContext.js'; +/** + * @internal + */ +export type CreateBrowsingContextOptions = Omit & { + referenceContext?: BrowsingContext; +}; +/** + * @internal + */ +export declare class UserContext extends EventEmitter<{ + /** + * Emitted when a new browsing context is created. + */ + browsingcontext: { + /** The new browsing context. */ + browsingContext: BrowsingContext; + }; + /** + * Emitted when the user context is closed. + */ + closed: { + /** The reason the user context was closed. */ + reason: string; + }; +}> { + #private; + static DEFAULT: string; + static create(browser: Browser, id: string): UserContext; + readonly browser: Browser; + private constructor(); + get browsingContexts(): Iterable; + get closed(): boolean; + get disposed(): boolean; + get id(): string; + private dispose; + createBrowsingContext(type: Bidi.BrowsingContext.CreateType, options?: CreateBrowsingContextOptions): Promise; + remove(): Promise; + [disposeSymbol](): void; +} +//# sourceMappingURL=UserContext.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.d.ts.map new file mode 100644 index 00000000..b1129d37 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UserContext.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/UserContext.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAG1D,OAAO,EAAkB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAExE,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,IAAI,CAAC,eAAe,CAAC,gBAAgB,EACrC,MAAM,GAAG,kBAAkB,CAC5B,GAAG;IACF,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC,CAAC;AAEF;;GAEG;AACH,qBAAa,WAAY,SAAQ,YAAY,CAAC;IAC5C;;OAEG;IACH,eAAe,EAAE;QACf,gCAAgC;QAChC,eAAe,EAAE,eAAe,CAAC;KAClC,CAAC;IACF;;OAEG;IACH,MAAM,EAAE;QACN,8CAA8C;QAC9C,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;;IACA,MAAM,CAAC,OAAO,SAAa;IAE3B,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,GAAG,WAAW;IAYxD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAG1B,OAAO;IAqDP,IAAI,gBAAgB,IAAI,QAAQ,CAAC,eAAe,CAAC,CAEhD;IACD,IAAI,MAAM,IAAI,OAAO,CAEpB;IACD,IAAI,QAAQ,IAAI,OAAO,CAEtB;IACD,IAAI,EAAE,IAAI,MAAM,CAEf;IAID,OAAO,CAAC,OAAO;IAST,qBAAqB,CACzB,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,UAAU,EACrC,OAAO,GAAE,4BAAiC,GACzC,OAAO,CAAC,eAAe,CAAC;IAwBrB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAU7B,CAAC,aAAa,CAAC,IAAI,IAAI;CAQxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.js new file mode 100644 index 00000000..21aac720 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.js @@ -0,0 +1,168 @@ +"use strict"; +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UserContext = void 0; +const EventEmitter_js_1 = require("../../common/EventEmitter.js"); +const assert_js_1 = require("../../util/assert.js"); +const decorators_js_1 = require("../../util/decorators.js"); +const disposable_js_1 = require("../../util/disposable.js"); +const BrowsingContext_js_1 = require("./BrowsingContext.js"); +/** + * @internal + */ +let UserContext = (() => { + let _classSuper = EventEmitter_js_1.EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + let _createBrowsingContext_decorators; + let _remove_decorators; + return class UserContext extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _createBrowsingContext_decorators, { kind: "method", name: "createBrowsingContext", static: false, private: false, access: { has: obj => "createBrowsingContext" in obj, get: obj => obj.createBrowsingContext }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _remove_decorators, { kind: "method", name: "remove", static: false, private: false, access: { has: obj => "remove" in obj, get: obj => obj.remove }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + static DEFAULT = 'default'; + static create(browser, id) { + const context = new UserContext(browser, id); + context.#initialize(); + return context; + } + // keep-sorted start + #reason = (__runInitializers(this, _instanceExtraInitializers), void 0); + // Note these are only top-level contexts. + #browsingContexts = new Map(); + #disposables = new disposable_js_1.DisposableStack(); + #id; + browser; + // keep-sorted end + constructor(browser, id) { + super(); + // keep-sorted start + this.#id = id; + this.browser = browser; + // keep-sorted end + } + #initialize() { + const browserEmitter = this.#disposables.use(new EventEmitter_js_1.EventEmitter(this.browser)); + browserEmitter.once('closed', ({ reason }) => { + this.dispose(`User context already closed: ${reason}`); + }); + const sessionEmitter = this.#disposables.use(new EventEmitter_js_1.EventEmitter(this.#session)); + sessionEmitter.on('browsingContext.contextCreated', info => { + if (info.parent) { + return; + } + if (info.userContext !== this.#id) { + return; + } + const browsingContext = BrowsingContext_js_1.BrowsingContext.from(this, undefined, info.context, info.url); + this.#browsingContexts.set(browsingContext.id, browsingContext); + const browsingContextEmitter = this.#disposables.use(new EventEmitter_js_1.EventEmitter(browsingContext)); + browsingContextEmitter.on('closed', () => { + browsingContextEmitter.removeAllListeners(); + this.#browsingContexts.delete(browsingContext.id); + }); + this.emit('browsingcontext', { browsingContext }); + }); + } + // keep-sorted start block=yes + get #session() { + return this.browser.session; + } + get browsingContexts() { + return this.#browsingContexts.values(); + } + get closed() { + return this.#reason !== undefined; + } + get disposed() { + return this.closed; + } + get id() { + return this.#id; + } + // keep-sorted end + dispose(reason) { + this.#reason = reason; + this[disposable_js_1.disposeSymbol](); + } + async createBrowsingContext(type, options = {}) { + const { result: { context: contextId }, } = await this.#session.send('browsingContext.create', { + type, + ...options, + referenceContext: options.referenceContext?.id, + userContext: this.#id, + }); + const browsingContext = this.#browsingContexts.get(contextId); + (0, assert_js_1.assert)(browsingContext, 'The WebDriver BiDi implementation is failing to create a browsing context correctly.'); + // We use an array to avoid the promise from being awaited. + return browsingContext; + } + async remove() { + try { + await this.#session.send('browser.removeUserContext', { + userContext: this.#id, + }); + } + finally { + this.dispose('User context already closed.'); + } + } + [(_dispose_decorators = [decorators_js_1.inertIfDisposed], _createBrowsingContext_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _remove_decorators = [(0, decorators_js_1.throwIfDisposed)(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], disposable_js_1.disposeSymbol)]() { + this.#reason ??= + 'User context already closed, probably because the browser disconnected/closed.'; + this.emit('closed', { reason: this.#reason }); + this.#disposables.dispose(); + super[disposable_js_1.disposeSymbol](); + } + }; +})(); +exports.UserContext = UserContext; +//# sourceMappingURL=UserContext.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.js.map new file mode 100644 index 00000000..8eba16b0 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserContext.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UserContext.js","sourceRoot":"","sources":["../../../../../src/bidi/core/UserContext.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,kEAA0D;AAC1D,oDAA4C;AAC5C,4DAA0E;AAC1E,4DAAwE;AAGxE,6DAAqD;AAYrD;;GAEG;IACU,WAAW;sBAAS,8BAAY;;;;;iBAAhC,WAAY,SAAQ,WAe/B;;;YAsFA,wKAAQ,OAAO,6DAGd;YAMD,kNAAM,qBAAqB,6DAqB1B;YAMD,qKAAM,MAAM,6DAQX;;;QAjID,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;QAE3B,MAAM,CAAC,MAAM,CAAC,OAAgB,EAAE,EAAU;YACxC,MAAM,OAAO,GAAG,IAAI,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YAC7C,OAAO,CAAC,WAAW,EAAE,CAAC;YACtB,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,oBAAoB;QACpB,OAAO,iEAAU;QACjB,0CAA0C;QACjC,iBAAiB,GAAG,IAAI,GAAG,EAA2B,CAAC;QACvD,YAAY,GAAG,IAAI,+BAAe,EAAE,CAAC;QACrC,GAAG,CAAS;QACZ,OAAO,CAAU;QAC1B,kBAAkB;QAElB,YAAoB,OAAgB,EAAE,EAAU;YAC9C,KAAK,EAAE,CAAC;YACR,oBAAoB;YACpB,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;YACd,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,kBAAkB;QACpB,CAAC;QAED,WAAW;YACT,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAC1C,IAAI,8BAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAC/B,CAAC;YACF,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE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AAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,yBAwBD,IAAA,+BAAe,EAAc,OAAO,CAAC,EAAE;gBACtC,wCAAwC;gBACxC,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,GAWD,6BAAa,EAAC;YACb,IAAI,CAAC,OAAO;gBACV,gFAAgF,CAAC;YACnF,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAC,CAAC,CAAC;YAE5C,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;YAC5B,KAAK,CAAC,6BAAa,CAAC,EAAE,CAAC;QACzB,CAAC;;;AA1JU,kCAAW"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserPrompt.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserPrompt.d.ts new file mode 100644 index 00000000..cef20ed4 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserPrompt.d.ts @@ -0,0 +1,43 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { disposeSymbol } from '../../util/disposable.js'; +import type { BrowsingContext } from './BrowsingContext.js'; +/** + * @internal + */ +export type HandleOptions = Omit; +/** + * @internal + */ +export type UserPromptResult = Omit; +/** + * @internal + */ +export declare class UserPrompt extends EventEmitter<{ + /** Emitted when the user prompt is handled. */ + handled: UserPromptResult; + /** Emitted when the user prompt is closed. */ + closed: { + /** The reason the user prompt was closed. */ + reason: string; + }; +}> { + #private; + static from(browsingContext: BrowsingContext, info: Bidi.BrowsingContext.UserPromptOpenedParameters): UserPrompt; + readonly browsingContext: BrowsingContext; + readonly info: Bidi.BrowsingContext.UserPromptOpenedParameters; + private constructor(); + get closed(): boolean; + get disposed(): boolean; + get handled(): boolean; + get result(): UserPromptResult | undefined; + private dispose; + handle(options?: HandleOptions): Promise; + [disposeSymbol](): void; +} +//# sourceMappingURL=UserPrompt.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserPrompt.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserPrompt.d.ts.map new file mode 100644 index 00000000..d16a54ef --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserPrompt.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UserPrompt.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/UserPrompt.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAkB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAExE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,IAAI,CAAC,eAAe,CAAC,0BAA0B,EAC/C,SAAS,CACV,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,IAAI,CAAC,eAAe,CAAC,0BAA0B,EAC/C,SAAS,CACV,CAAC;AAEF;;GAEG;AACH,qBAAa,UAAW,SAAQ,YAAY,CAAC;IAC3C,+CAA+C;IAC/C,OAAO,EAAE,gBAAgB,CAAC;IAC1B,8CAA8C;IAC9C,MAAM,EAAE;QACN,6CAA6C;QAC7C,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;;IACA,MAAM,CAAC,IAAI,CACT,eAAe,EAAE,eAAe,EAChC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,0BAA0B,GACpD,UAAU;IAUb,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,0BAA0B,CAAC;IAG/D,OAAO;IAoCP,IAAI,MAAM,IAAI,OAAO,CAEpB;IACD,IAAI,QAAQ,IAAI,OAAO,CAEtB;IACD,IAAI,OAAO,IAAI,OAAO,CAErB;IACD,IAAI,MAAM,IAAI,gBAAgB,GAAG,SAAS,CAEzC;IAID,OAAO,CAAC,OAAO;IAST,MAAM,CAAC,OAAO,GAAE,aAAkB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IASpE,CAAC,aAAa,CAAC,IAAI,IAAI;CAQxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserPrompt.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserPrompt.js new file mode 100644 index 00000000..3551b4c2 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserPrompt.js @@ -0,0 +1,137 @@ +"use strict"; +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UserPrompt = void 0; +const EventEmitter_js_1 = require("../../common/EventEmitter.js"); +const decorators_js_1 = require("../../util/decorators.js"); +const disposable_js_1 = require("../../util/disposable.js"); +/** + * @internal + */ +let UserPrompt = (() => { + let _classSuper = EventEmitter_js_1.EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + let _handle_decorators; + return class UserPrompt extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _handle_decorators, { kind: "method", name: "handle", static: false, private: false, access: { has: obj => "handle" in obj, get: obj => obj.handle }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + static from(browsingContext, info) { + const userPrompt = new UserPrompt(browsingContext, info); + userPrompt.#initialize(); + return userPrompt; + } + // keep-sorted start + #reason = (__runInitializers(this, _instanceExtraInitializers), void 0); + #result; + #disposables = new disposable_js_1.DisposableStack(); + browsingContext; + info; + // keep-sorted end + constructor(context, info) { + super(); + // keep-sorted start + this.browsingContext = context; + this.info = info; + // keep-sorted end + } + #initialize() { + const browserContextEmitter = this.#disposables.use(new EventEmitter_js_1.EventEmitter(this.browsingContext)); + browserContextEmitter.once('closed', ({ reason }) => { + this.dispose(`User prompt already closed: ${reason}`); + }); + const sessionEmitter = this.#disposables.use(new EventEmitter_js_1.EventEmitter(this.#session)); + sessionEmitter.on('browsingContext.userPromptClosed', parameters => { + if (parameters.context !== this.browsingContext.id) { + return; + } + this.#result = parameters; + this.emit('handled', parameters); + this.dispose('User prompt already handled.'); + }); + } + // keep-sorted start block=yes + get #session() { + return this.browsingContext.userContext.browser.session; + } + get closed() { + return this.#reason !== undefined; + } + get disposed() { + return this.closed; + } + get handled() { + return this.#result !== undefined; + } + get result() { + return this.#result; + } + // keep-sorted end + dispose(reason) { + this.#reason = reason; + this[disposable_js_1.disposeSymbol](); + } + async handle(options = {}) { + await this.#session.send('browsingContext.handleUserPrompt', { + ...options, + context: this.info.context, + }); + // SAFETY: `handled` is triggered before the above promise resolved. + return this.#result; + } + [(_dispose_decorators = [decorators_js_1.inertIfDisposed], _handle_decorators = [(0, decorators_js_1.throwIfDisposed)(prompt => { + // SAFETY: Disposal implies this exists. + return prompt.#reason; + })], disposable_js_1.disposeSymbol)]() { + this.#reason ??= + 'User prompt already closed, probably because the associated browsing context was destroyed.'; + this.emit('closed', { reason: this.#reason }); + this.#disposables.dispose(); + super[disposable_js_1.disposeSymbol](); + } + }; +})(); +exports.UserPrompt = UserPrompt; +//# sourceMappingURL=UserPrompt.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserPrompt.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/UserPrompt.js.map new file mode 100644 index 00000000..91785508 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/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Mf,IAAA,+BAAe,EAAa,MAAM,CAAC,EAAE;gBACpC,wCAAwC;gBACxC,OAAO,MAAM,CAAC,OAAQ,CAAC;YACzB,CAAC,CAAC,GAUD,6BAAa,EAAC;YACb,IAAI,CAAC,OAAO;gBACV,6FAA6F,CAAC;YAChG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAC,CAAC,CAAC;YAE5C,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;YAC5B,KAAK,CAAC,6BAAa,CAAC,EAAE,CAAC;QACzB,CAAC;;;AAtGU,gCAAU"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.d.ts new file mode 100644 index 00000000..961c678d --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.d.ts @@ -0,0 +1,15 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +export * from './Browser.js'; +export * from './BrowsingContext.js'; +export * from './Connection.js'; +export * from './Navigation.js'; +export * from './Realm.js'; +export * from './Request.js'; +export * from './Session.js'; +export * from './UserContext.js'; +export * from './UserPrompt.js'; +//# sourceMappingURL=core.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.d.ts.map new file mode 100644 index 00000000..51a36ea7 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/core.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.js new file mode 100644 index 00000000..556079ca --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.js @@ -0,0 +1,31 @@ +"use strict"; +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./Browser.js"), exports); +__exportStar(require("./BrowsingContext.js"), exports); +__exportStar(require("./Connection.js"), exports); +__exportStar(require("./Navigation.js"), exports); +__exportStar(require("./Realm.js"), exports); +__exportStar(require("./Request.js"), exports); +__exportStar(require("./Session.js"), exports); +__exportStar(require("./UserContext.js"), exports); +__exportStar(require("./UserPrompt.js"), exports); +//# sourceMappingURL=core.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.js.map new file mode 100644 index 00000000..dd17651c --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/core/core.js.map @@ -0,0 +1 @@ +{"version":3,"file":"core.js","sourceRoot":"","sources":["../../../../../src/bidi/core/core.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,uDAAqC;AACrC,kDAAgC;AAChC,kDAAgC;AAChC,6CAA2B;AAC3B,+CAA6B;AAC7B,+CAA6B;AAC7B,mDAAiC;AACjC,kDAAgC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/util.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/util.js index 712b0b65..e5fa1a33 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/util.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/util.js @@ -20,7 +20,7 @@ async function releaseReference(client, remoteReference) { target: client.target, handles: [remoteReference.handle], }) - .catch((error) => { + .catch(error => { // Exceptions might happen in case of a page been navigated or closed. // Swallow these since they are harmless and we don't leak anything in this case. (0, util_js_1.debugError)(error); diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/util.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/util.js.map index 6449218d..43641b78 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/util.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/bidi/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/bidi/util.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,+CAA2D;AAE3D,uDAAmD;AAGnD;;GAEG;AACI,KAAK,UAAU,gBAAgB,CACpC,MAAiB,EACjB,eAA4C;IAE5C,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC;QAC5B,OAAO;IACT,CA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AAC;gBAC1C,UAAU,CAAC,OAAO,CAChB,UAAU,KAAK,CAAC,YAAY,IAAI,GAAG,CAAC,YAAY,KAC9C,GAAG,CAAC,YACN,OAAO,GAAG,CAAC,UAAU,iBAAiB,KAAK,CAAC,UAAU,IACpD,KAAK,CAAC,YACR,GAAG,CACJ,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,UAAU,CAAC,IAAI,CACb,UAAU,KAAK,CAAC,YAAY,IAAI,aAAa,KAAK,KAAK,CAAC,GAAG,IACzD,KAAK,CAAC,UACR,IAAI,KAAK,CAAC,YAAY,GAAG,CAC1B,CAAC;YACJ,CAAC;YACD,IAAI,UAAU,CAAC,MAAM,IAAI,KAAK,CAAC,eAAe,EAAE,CAAC;gBAC/C,MAAM;YACR,CAAC;QACH,CAAC;IACH,CAAC;IAED,KAAK,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,KAAK,CAAC;AACf,CAAC;AA1CD,sDA0CC"} \ No newline at end of file +{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/bidi/util.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,+CAA2D;AAE3D,uDAAmD;AAGnD;;GAEG;AACI,KAAK,UAAU,gBAAgB,CACpC,MAAiB,EACjB,eAA4C;IAE5C,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC;QAC5B,OAAO;IACT,CAAC;IACD,MAAM,MAAM,CAAC,UAAU;SACpB,IAAI,CAAC,eAAe,EAAE;QACrB,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,OAAO,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC;KAClC,CAAC;SACD,KAAK,CAAC,KAAK,CAAC,EAAE;QACb,sEAAsE;QACtE,iFAAiF;QACjF,IAAA,oBAAU,EAAC,KAAK,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC;A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,GAAG,IACzD,KAAK,CAAC,UACR,IAAI,KAAK,CAAC,YAAY,GAAG,CAC1B,CAAC;YACJ,CAAC;YACD,IAAI,UAAU,CAAC,MAAM,IAAI,KAAK,CAAC,eAAe,EAAE,CAAC;gBAC/C,MAAM;YACR,CAAC;QACH,CAAC;IACH,CAAC;IAED,KAAK,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,KAAK,CAAC;AACf,CAAC;AA1CD,sDA0CC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.d.ts index dbd37dfc..30e47146 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.d.ts @@ -5,6 +5,7 @@ */ /// import type { ChildProcess } from 'child_process'; +import type { DebugInfo } from '../api/Browser.js'; import { Browser as BrowserBase, type BrowserCloseCallback, type BrowserContextOptions, type IsPageTargetCallback, type Permission, type TargetFilterCallback, type WaitForTargetOptions } from '../api/Browser.js'; import { BrowserContext } from '../api/BrowserContext.js'; import type { Page } from '../api/Page.js'; @@ -40,6 +41,7 @@ export declare class CdpBrowser extends BrowserBase { close(): Promise; disconnect(): Promise; get connected(): boolean; + get debugInfo(): DebugInfo; } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.d.ts.map index 9844c421..2a24bce6 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.d.ts.map @@ -1 +1 @@ -{"version":3,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puppeteer-core/lib/cjs/puppeteer/cdp/Browser.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.js index e7bddc12..49e01127 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.js @@ -235,6 +235,11 @@ class CdpBrowser extends Browser_js_1.Browser { #getVersion() { return this.#connection.send('Browser.getVersion'); } + get debugInfo() { + return { + pendingProtocolErrors: this.#connection.getPendingProtocolErrors(), + }; + } } exports.CdpBrowser = CdpBrowser; /** diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.js.map index 01e89430..b59b2626 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.js.map @@ -1 +1 @@ -{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/cdp/Browser.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAMH,kDAU2B;AAC3B,gEAA6E;AAC7E,wDAAsE;AAItE,iDAAyC;AAEzC,qEAA6D;AAE7D,uEAA+D;AAC/D,2CAOqB;AAGrB;;GAEG;AACH,MAAa,UAAW,SAAQ,oBAAW;IAChC,QAAQ,GAAG,KAAK,CAAC;IAE1B,MAAM,CAAC,KAAK,CAAC,OAAO,CAClB,OAAyC,EACzC,UAAsB,EACtB,UAAoB,EACpB,iBAA0B,EAC1B,eAAiC,EACjC,OAAsB,EACtB,aAAoC,EACpC,oBAA2C,EAC3C,oBAA2C,EAC3C,iCAAiC,GAAG,IAAI;QAExC,MAAM,OAAO,GAAG,IAAI,UAAU,CAC5B,OAAO,EACP,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,OAAO,EACP,aAAa,EACb,oBAAoB,EACpB,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E,IAAI,CAAC,GAAG,IAAI,SAAS;YACvC,WAAW,EAAE,mBAAmB;SACjC,CAAC,CAAC;IACL,CAAC;IAEQ,KAAK,CAAC,wBAAwB;QACrC,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACtD,gBAAgB,EAAE,IAAI,CAAC,GAAG,IAAI,SAAS;SACxC,CAAC,CAAC;IACL,CAAC;IAEQ,OAAO;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtD,CAAC;IAEQ,OAAO;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAEQ,KAAK,CAAC,KAAK;QAClB,IAAA,kBAAM,EAAC,IAAI,CAAC,GAAG,EAAE,0CAA0C,CAAC,CAAC;QAC7D,MAAM,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChD,CAAC;CACF;AA3FD,8CA2FC"} \ No newline at end of file +{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/cdp/Browser.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAOH,kDAU2B;AAC3B,gEAA6E;AAC7E,wDAAsE;AAItE,iDAAyC;AAEzC,qEAA6D;AAE7D,uEAA+D;AAC/D,2CAOqB;AAGrB;;GAEG;AACH,MAAa,UAAW,SAAQ,oBAAW;IAChC,QAAQ,GAAG,KAAK,CAAC;IAE1B,MAAM,CAAC,KAAK,CAAC,OAAO,CAClB,OAAyC,EACzC,UAAsB,EACtB,UAAoB,EACpB,iBAA0B,EAC1B,eAAiC,EACjC,OAAsB,EACtB,aAAoC,EACpC,oBAA2C,EAC3C,oBAA2C,EAC3C,iCAAiC,GAAG,IAAI;QAExC,MAAM,OAAO,GAAG,IAAI,UAAU,CAC5B,OAAO,EACP,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,OAAO,EACP,aAAa,EACb,o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B,CAAC;QAC5B,CAAC,CAAC,CAAC;QACH,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACtD,MAAM;YACN,gBAAgB,EAAE,IAAI,CAAC,GAAG,IAAI,SAAS;YACvC,WAAW,EAAE,mBAAmB;SACjC,CAAC,CAAC;IACL,CAAC;IAEQ,KAAK,CAAC,wBAAwB;QACrC,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACtD,gBAAgB,EAAE,IAAI,CAAC,GAAG,IAAI,SAAS;SACxC,CAAC,CAAC;IACL,CAAC;IAEQ,OAAO;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtD,CAAC;IAEQ,OAAO;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAEQ,KAAK,CAAC,KAAK;QAClB,IAAA,kBAAM,EAAC,IAAI,CAAC,GAAG,EAAE,0CAA0C,CAAC,CAAC;QAC7D,MAAM,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChD,CAAC;CACF;AA3FD,8CA2FC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.d.ts index 027b2f95..67bcb4e8 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.d.ts @@ -58,5 +58,9 @@ export declare class CdpCDPSession extends CDPSession { * Returns the session's id. */ id(): string; + /** + * @internal + */ + getPendingProtocolErrors(): Error[]; } //# sourceMappingURL=CDPSession.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.d.ts.map index 4195117c..51772d10 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"CDPSession.d.ts","sourceRoot":"","sources":["../../../../src/cdp/CDPSession.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,6CAA6C,CAAC;AAEjF,OAAO,EACL,KAAK,SAAS,EACd,UAAU,EAEV,KAAK,cAAc,EACpB,MAAM,sBAAsB,CAAC;AAM9B,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAE3C;;GAEG;AAEH,qBAAa,aAAc,SAAQ,UAAU;;IAQ3C;;OAEG;gBAED,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,GAAG,SAAS;IASrC;;;;OAIG;IACH,UAAU,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI;IAInC;;;;OAIG;IACH,OAAO,IAAI,SAAS;IAKX,UAAU,IAAI,UAAU,GAAG,SAAS;IAIpC,aAAa,IAAI,UAAU,GAAG,SAAS;IASvC,IAAI,CAAC,CAAC,SAAS,MAAM,eAAe,CAAC,QAAQ,EACpD,MAAM,EAAE,CAAC,EACT,MAAM,CAAC,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IAiBrD;;OAEG;IACH,UAAU,CAAC,MAAM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EACT,MAAM,CAAC,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IAiBrD;;OAEG;IACH,UAAU,CAAC,MAAM,EAAE;QACjB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,SAAS,CAAC;QACxB,MAAM,EAAE,SAAS,CAAC,MAAM,SAAS,CAAC,CAAC;QACnC,KAAK,EAAE;YAAC,OAAO,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAC,CAAC;QAClD,MAAM,CAAC,EAAE,GAAG,CAAC;KACd,GAAG,IAAI;IAiBR;;;OAGG;IACY,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAWtC;;OAEG;IACH,SAAS,IAAI,IAAI;IAMjB;;OAEG;IACM,EAAE,IAAI,MAAM;IAIrB;;OAEG;IACH,wBAAwB,IAAI,KAAK,EAAE;CAGpC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js index 2f3d371e..a48a2c03 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js @@ -108,6 +108,12 @@ class CdpCDPSession extends CDPSession_js_1.CDPSession { id() { return this.#sessionId; } + /** + * @internal + */ + getPendingProtocolErrors() { + return this.#callbacks.getPendingProtocolErrors(); + } } exports.CdpCDPSession = CdpCDPSession; //# sourceMappingURL=CDPSession.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js.map index f6cbe9df..6fb9c440 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js.map @@ -1 +1 @@ -{"version":3,"file":"CDPSession.js","sourceRoot":"","sources":["../../../../src/cdp/CDPSession.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,wDAK8B;AAC9B,uEAA+D;AAC/D,mDAAqD;AACrD,iDAAyC;AACzC,uDAAgE;AAKhE;;GAEG;AAEH,MAAa,aAAc,SAAQ,0BAAU;IAC3C,UAAU,CAAS;IACnB,WAAW,CAAS;IACpB,UAAU,GAAG,IAAI,sCAAgB,EAAE,CAAC;IACpC,WAAW,CAAc;IACzB,gBAAgB,CAAU;IAC1B,OAAO,CAAa;IAEpB;;OAEG;IACH,YACE,UAAsB,EACtB,UAAkB,EAClB,SAAiB,EACjB,eAAmC;QAEnC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;IAC1C,CAAC;IAED;;;;OAIG;IACH,UAAU,CAAC,MAAiB;QAC1B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;;OAIG;IACH,OAAO;QACL,IAAA,kBAAM,EAAC,IAAI,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAEQ,UAAU;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAEQ,aAAa;QACpB,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC3B,uEAAu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B,MAAM,IAAI,KAAK,CACb,6CAA6C,IAAI,CAAC,WAAW,mBAAmB,CACjF,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,yBAAyB,EAAE;YACrD,SAAS,EAAE,IAAI,CAAC,UAAU;SAC3B,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,SAAS;QACP,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;QAC7B,IAAI,CAAC,IAAI,CAAC,+BAAe,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IACrD,CAAC;IAED;;OAEG;IACM,EAAE;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CACF;AArID,sCAqIC"} \ No newline at end of file +{"version":3,"file":"CDPSession.js","sourceRoot":"","sources":["../../../../src/cdp/CDPSession.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,wDAK8B;AAC9B,uEAA+D;AAC/D,mDAAqD;AACrD,iDAAyC;AACzC,uDAAgE;AAKhE;;GAEG;AAEH,MAAa,aAAc,SAAQ,0BAAU;IAC3C,UAAU,CAAS;IACnB,WAAW,CAAS;IACpB,UAAU,GAAG,IAAI,sCAAgB,EAAE,CAAC;IACpC,WAAW,CAAc;IACzB,gBAAgB,CAAU;IAC1B,OAAO,CAAa;IAEpB;;OAEG;IACH,YACE,UAAsB,EACtB,UAAkB,EAClB,SAAiB,EACjB,eAAmC;QAEnC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;IAC1C,CAAC;IAED;;;;OAIG;IACH,UAAU,CAAC,MAAiB;QAC1B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAC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;YACpD,CAAC;QACH,CAAC;aAAM,CAAC;YACN,IAAA,kBAAM,EAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACnB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC;IAED;;;OAGG;IACM,KAAK,CAAC,MAAM;QACnB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CACb,6CAA6C,IAAI,CAAC,WAAW,mBAAmB,CACjF,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,yBAAyB,EAAE;YACrD,SAAS,EAAE,IAAI,CAAC,UAAU;SAC3B,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,SAAS;QACP,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;QAC7B,IAAI,CAAC,IAAI,CAAC,+BAAe,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IACrD,CAAC;IAED;;OAEG;IACM,EAAE;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,wBAAwB;QACtB,OAAO,IAAI,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC;IACpD,CAAC;CACF;AA5ID,sCA4IC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ChromeTargetManager.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ChromeTargetManager.d.ts.map index 1041f8ef..4fd56370 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ChromeTargetManager.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ChromeTargetManager.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ChromeTargetManager.d.ts","sourceRoot":"","sources":["../../../../src/cdp/ChromeTargetManager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAMvD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAC,SAAS,EAAuB,MAAM,aAAa,CAAC;AAC5D,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAElB,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAC;AAS5B;;;;;;GAMG;AACH,qBAAa,mBACX,SAAQ,YAAY,CAAC,mBAAmB,CACxC,YAAW,aAAa;;gBA+CtB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,oBAAoB,CAAC,EAAE,oBAAoB,EAC3C,iCAAiC,UAAO;IA2CpC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBjC,OAAO,IAAI,IAAI;IAYf,mBAAmB,IAAI,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC;CA0PtD"} \ No newline at end of file +{"version":3,"file":"ChromeTargetManager.d.ts","sourceRoot":"","sources":["../../../../src/cdp/ChromeTargetManager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAMvD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAC,SAAS,EAAuB,MAAM,aAAa,CAAC;AAC5D,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAElB,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAC;AAS5B;;;;;;GAMG;AACH,qBAAa,mBACX,SAAQ,YAAY,CAAC,mBAAmB,CACxC,YAAW,aAAa;;gBA+CtB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,oBAAoB,CAAC,EAAE,oBAAoB,EAC3C,iCAAiC,UAAO;IA2CpC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBjC,OAAO,IAAI,IAAI;IAYf,mBAAmB,IAAI,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC;CAsPtD"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ChromeTargetManager.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ChromeTargetManager.js index bbafdbab..4b9a6abf 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ChromeTargetManager.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ChromeTargetManager.js @@ -256,12 +256,7 @@ class ChromeTargetManager extends EventEmitter_js_1.EventEmitter { this.#attachedTargetsByTargetId.set(targetInfo.targetId, target); this.#attachedTargetsBySessionId.set(session.id(), target); } - if (parentSession instanceof CDPSession_js_1.CDPSession) { - parentSession.emit(CDPSession_js_1.CDPSessionEvent.Ready, session); - } - else { - parentSession.emit(CDPSession_js_1.CDPSessionEvent.Ready, session); - } + parentSession.emit(CDPSession_js_1.CDPSessionEvent.Ready, session); this.#targetsIdsForInit.delete(target._targetId); if (!isExistingTarget) { this.emit("targetAvailable" /* TargetManagerEvent.TargetAvailable */, target); diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ChromeTargetManager.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ChromeTargetManager.js.map index 4d7602aa..302df54b 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ChromeTargetManager.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ChromeTargetManager.js.map @@ -1 +1 @@ -{"version":3,"file":"ChromeTargetManager.js","sourceRoot":"","sources":["../../../../src/c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CAAC;IACH,CAAC;IAED,qBAAqB,GAAG,CACtB,cAAuC,EACvC,KAA8C,EAC9C,EAAE;QACF,MAAM,MAAM,GAAG,IAAI,CAAC,2BAA2B,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAErE,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAEzD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO;QACT,CAAC;QAED,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACzD,IAAI,CAAC,IAAI,mDAAgC,MAAM,CAAC,CAAC;IACnD,CAAC,CAAC;CACH;AA7XD,kDA6XC"} \ No newline at end of file +{"version":3,"file":"ChromeTargetManager.js","sourceRoot":"","sources":["../../../../src/cdp/ChromeTargetManager.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAKH,wDAAiE;AACjE,+DAAuD;AACvD,+CAA6C;AAC7C,iDAAyC;AACzC,qDAA6C;AAI7C,2CAA4D;AAQ5D,SAAS,2BAA2B,CAClC,MAAiB,EACjB,aAAyC;IAEzC,OAAO,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC;AAC9D,CAAC;AAED;;;;;;GAMG;AACH,MAAa,mBACX,SAAQ,8BAAiC;IAGzC,WAAW,CAAa;IACxB;;;;;;;;;OASG;IACH,4BAA4B,GAAG,IAAI,GAAG,EAAsC,CAAC;IAC7E;;;OAGG;IACH,0BAA0B,GAAG,IAAI,GAAG,EAAqB,CAAC;IAC1D;;OAEG;IACH,2BAA2B,GAAG,IAAI,GAAG,EAAqB,CAAC;IAC3D;;;OAGG;IACH,eAAe,GAAG,IAAI,GAAG,EAAU,CAAC;IACpC,qBAAqB,CAAmC;IACxD,cAAc,CAAgB;IAE9B,mCAAmC,GAAG,IAAI,OAAO,EAG9C,CAAC;IACJ,qCAA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AC,gBAAgB;aAC9B,CAAC;YACF,OAAO,CAAC,IAAI,CAAC,iCAAiC,CAAC;SAChD,CAAC,CAAC,KAAK,CAAC,oBAAU,CAAC,CAAC;IACvB,CAAC,CAAC;IAEF,4BAA4B,CAAC,QAAiB;QAC5C,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACnE,IAAI,IAAI,CAAC,kBAAkB,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;YACvC,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,CAAC;QACrC,CAAC;IACH,CAAC;IAED,qBAAqB,GAAG,CACtB,cAAuC,EACvC,KAA8C,EAC9C,EAAE;QACF,MAAM,MAAM,GAAG,IAAI,CAAC,2BAA2B,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAErE,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAEzD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO;QACT,CAAC;QAED,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACzD,IAAI,CAAC,IAAI,mDAAgC,MAAM,CAAC,CAAC;IACnD,CAAC,CAAC;CACH;AAzXD,kDAyXC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.d.ts index 0b7c1547..9b3b12df 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.d.ts @@ -63,6 +63,10 @@ export declare class Connection extends EventEmitter { * @returns The CDP session that is created */ createSession(targetInfo: Protocol.Target.TargetInfo): Promise; + /** + * @internal + */ + getPendingProtocolErrors(): Error[]; } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.d.ts.map index c6fa9cc7..5082d901 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Connection.d.ts","sourceRoot":"","sources":["../../../../src/cdp/Connection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,6CAA6C,CAAC;AAEjF,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;AAG1E,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAQvD;;GAEG;AACH,YAAY,EAAC,mBAAmB,EAAE,eAAe,EAAC,CAAC;AAEnD;;GAEG;AACH,qBAAa,UAAW,SAAQ,YAAY,CAAC,gBAAgB,CAAC;;gBAW1D,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,mBAAmB,EAC9B,KAAK,SAAI,EACT,OAAO,CAAC,EAAE,MAAM;IAYlB,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS;IAI/D,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;OAEG;IACH,IAAI,SAAS,IAAI,GAAG,CAAC,MAAM,EAA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s/puppeteer/cdp/Connection.js index c4e9eafe..a2b4fddb 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js @@ -194,6 +194,17 @@ class Connection extends EventEmitter_js_1.EventEmitter { async createSession(targetInfo) { return await this._createSession(targetInfo, false); } + /** + * @internal + */ + getPendingProtocolErrors() { + const result = []; + result.push(...this.#callbacks.getPendingProtocolErrors()); + for (const session of this.#sessions.values()) { + result.push(...session.getPendingProtocolErrors()); + } + return result; + } } exports.Connection = Connection; /** diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js.map index f7bcf8e0..bbe9c8a0 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js.map @@ -1 +1 @@ -{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../../src/cdp/Connection.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAMH,wDAI8B;AAC9B,uEAA+D;AAE/D,iDAAyC;AACzC,mDAAqD;AACrD,+DAAuD;AACvD,uDAAgE;AAEhE,mDAA8C;AAE9C,MAAM,iBAAiB,GAAG,IAAA,gBAAK,EAAC,2BAA2B,CAAC,CAAC;AAC7D,MAAM,oBAAoB,GAAG,IAAA,gBAAK,EAAC,2BAA2B,CAAC,CAAC;AAOhE;;GAEG;AACH,MAAa,UAAW,SAAQ,8BAA8B;IAC5D,IAAI,CAAS;IACb,UAAU,CAAsB;IAChC,MAAM,CAAS;IACf,QAAQ,CAAS;IACjB,SAAS,GAAG,IAAI,GAAG,EAAyB,CAAC;IAC7C,OAAO,GAAG,KAAK,CAAC;IAChB,iBAAiB,GAAG,IAAI,GAAG,EAAU,CAAC;IACtC,UAAU,GAAG,IAAI,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;IACH,KAAK,CAAC,cAAc,CAClB,UAAsC,EACtC,oBAAoB,GAAG,IAAI;QAE3B,IAAI,CAAC,oBAAoB,EAAE,CAAC;YAC1B,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAClD,CAAC;QACD,MAAM,EAAC,SAAS,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE;YAC3D,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,OAAO,EAAE,IAAI;SACd,CAAC,CAAC;QACH,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QACnD,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACjD,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa,CACjB,UAAsC;QAEtC,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IACtD,CAAC;CACF;AA1ND,gCA0NC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAY;IAC9C,OAAO,KAAK,YAAY,4BAAgB,CAAC;AAC3C,CAAC;AAFD,kDAEC"} \ No newline at end of file +{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../../src/cdp/Connection.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAMH,wDAI8B;AAC9B,uEAA+D;AAE/D,iDAAyC;AACzC,mDAAqD;AACrD,+DAAuD;AACvD,uDAAgE;AAEhE,mDAA8C;AAE9C,MAAM,iBAAiB,GAAG,IAAA,gBAAK,EAAC,2BAA2B,CAAC,CAAC;AAC7D,MAAM,oBAAoB,GAAG,IAAA,gBAAK,EAAC,2BAA2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,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE,CAAC;YAC9C,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,wBAAwB,EAAE,CAAC,CAAC;QACrD,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAtOD,gCAsOC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAY;IAC9C,OAAO,KAAK,YAAY,4BAAgB,CAAC;AAC3C,CAAC;AAFD,kDAEC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.d.ts index d58de895..37d88166 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.d.ts @@ -12,7 +12,7 @@ import { Dialog } from '../api/Dialog.js'; export declare class CdpDialog extends Dialog { #private; constructor(client: CDPSession, type: Protocol.Page.DialogType, message: string, defaultValue?: string); - sendCommand(options: { + handle(options: { accept: boolean; text?: string; }): Promise; diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.d.ts.map index 061259ff..172a73de 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/cdp/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAExC;;GAEG;AACH,qBAAa,SAAU,SAAQ,MAAM;;gBAIjC,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,UAAU,EAC9B,OAAO,EAAE,MAAM,EACf,YAAY,SAAK;IAMJ,WAAW,CAAC,OAAO,EAAE;QAClC,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,IAAI,CAAC;CAMlB"} \ No newline at end of file +{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/cdp/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAExC;;GAEG;AACH,qBAAa,SAAU,SAAQ,MAAM;;gBAIjC,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,UAAU,EAC9B,OAAO,EAAE,MAAM,EACf,YAAY,SAAK;IAMJ,MAAM,CAAC,OAAO,EAAE;QAC7B,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,IAAI,CAAC;CAMlB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.js index f31afeb2..92bf77ab 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.js @@ -16,7 +16,7 @@ class CdpDialog extends Dialog_js_1.Dialog { super(type, message, defaultValue); this.#client = client; } - async sendCommand(options) { + async handle(options) { await this.#client.send('Page.handleJavaScriptDialog', { accept: options.accept, promptText: options.text, diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.js.map index d2cbd8a1..5df537b5 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Dialog.js.map @@ -1 +1 @@ -{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/cdp/Dialog.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAKH,gDAAwC;AAExC;;GAEG;AACH,MAAa,SAAU,SAAQ,kBAAM;IACnC,OAAO,CAAa;IAEpB,YACE,MAAkB,EAClB,IAA8B,EAC9B,OAAe,EACf,YAAY,GAAG,EAAE;QAEjB,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAEQ,KAAK,CAAC,WAAW,CAAC,OAG1B;QACC,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACrD,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,UAAU,EAAE,OAAO,CAAC,IAAI;SACzB,CAAC,CAAC;IACL,CAAC;CACF;AAtBD,8BAsBC"} \ No newline at end of file +{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/cdp/Dialog.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAKH,gDAAwC;AAExC;;GAEG;AACH,MAAa,SAAU,SAAQ,kBAAM;IACnC,OAAO,CAAa;IAEpB,YACE,MAAkB,EAClB,IAA8B,EAC9B,OAAe,EACf,YAAY,GAAG,EAAE;QAEjB,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAEQ,KAAK,CAAC,MAAM,CAAC,OAGrB;QACC,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACrD,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,UAAU,EAAE,OAAO,CAAC,IAAI;SACzB,CAAC,CAAC;IACL,CAAC;CACF;AAtBD,8BAsBC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.d.ts.map index 1930157e..e054c217 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ExecutionContext.d.ts","sourceRoot":"","sources":["../../../../src/cdp/ExecutionContext.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAUhE,OAAO,KAAK,aAAa,MAAM,yBAAyB,CAAC;AAOzD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAGtD;;GAEG;AACH,qBAAa,gBAAgB;;IAC3B,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;gBAGpB,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AC,CAAC,CAAC;CAiJjD;AAqBD;;GAEG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,aAAa,EACpB,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY,GAC1C,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,CAKhC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js index a10095bc..0d0411d7 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js @@ -15,6 +15,7 @@ const AriaQueryHandler_js_1 = require("./AriaQueryHandler.js"); const Binding_js_1 = require("./Binding.js"); const ElementHandle_js_1 = require("./ElementHandle.js"); const JSHandle_js_1 = require("./JSHandle.js"); +const utils_js_1 = require("./utils.js"); /** * @internal */ @@ -186,10 +187,10 @@ class ExecutionContext { }) .catch(rewriteError); if (exceptionDetails) { - throw (0, util_js_1.createEvaluationError)(exceptionDetails); + throw (0, utils_js_1.createEvaluationError)(exceptionDetails); } return returnByValue - ? (0, util_js_1.valueFromRemoteObject)(remoteObject) + ? (0, utils_js_1.valueFromRemoteObject)(remoteObject) : createCdpHandle(this._world, remoteObject); } const functionDeclaration = (0, Function_js_1.stringifyFunction)(pageFunction); @@ -218,10 +219,10 @@ class ExecutionContext { } const { exceptionDetails, result: remoteObject } = await callFunctionOnPromise.catch(rewriteError); if (exceptionDetails) { - throw (0, util_js_1.createEvaluationError)(exceptionDetails); + throw (0, utils_js_1.createEvaluationError)(exceptionDetails); } return returnByValue - ? (0, util_js_1.valueFromRemoteObject)(remoteObject) + ? (0, utils_js_1.valueFromRemoteObject)(remoteObject) : createCdpHandle(this._world, remoteObject); async function convertArgument(arg) { if (arg instanceof LazyArg_js_1.LazyArg) { diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js.map index a2aef55b..4765c639 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js.map @@ -1 +1 @@ -{"version":3,"file":"ExecutionContext.js","sourceRoot":"","sources":["../../../../src/cdp/ExecutionContext.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAOH,qDAA6C;AAC7C,mEAA2D;AAE3D,+CAQ2B;AAE3B,uEAA+D;AAC/D,qDAAsD;AAEtD,+DAAuD;AACvD,6CAAqC;AACrC,yDAAoD;AAEpD,+CAA0C;AAE1C;;GAEG;AACH,MAAa,gBAAgB;IAC3B,OAAO,CAAa;IACpB,MAAM,CAAgB;IACtB,UAAU,CAAS;IACnB,YAAY,CAAU;IAEtB,YACE,MAAkB,EAClB,cAA4D,EAC5D,KAAoB;QAEpB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,cAAc,CAAC,EAAE,CAAC;QACpC,IAAI,cAAc,CAAC,IAAI,EAAE,CAAC;YACxB,IAAI,CAAC,YAAY,GAAG,cAAc,CAAC,IAAI,CAAC;QAC1C,CAAC;IACH,CAAC;IAED,kBAAkB,GAAG,KAAK,CAAC;IAC3B,cAAc,CAAoC;IAClD,IAAI,aAAa;QACf,IAAI,OAAO,GAAG,OAAO,CAAC,OAAO,EAAsB,CAAC;QACpD,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAC7B,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC;gBACpB,IAAI,CAAC,qBAAqB,CACxB,IAAI,oBAAO,CACT,qBAAqB,EACrB,sCAAgB,CAAC,QAA2C,CAC7D,CACF;gBACD,I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C,QAAQ,CAAC,sCAAsC,CAAC,EAAE,CAAC;QACnE,OAAO,EAAC,MAAM,EAAE,EAAC,IAAI,EAAE,WAAW,EAAC,EAAC,CAAC;IACvC,CAAC;IAED,IACE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,uCAAuC,CAAC;QAC/D,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,sCAAsC,CAAC,EAC9D,CAAC;QACD,MAAM,IAAI,KAAK,CACb,uEAAuE,CACxE,CAAC;IACJ,CAAC;IACD,MAAM,KAAK,CAAC;AACd,CAAC,CAAC;AAEF;;GAEG;AACH,SAAgB,eAAe,CAC7B,KAAoB,EACpB,YAA2C;IAE3C,IAAI,YAAY,CAAC,OAAO,KAAK,MAAM,EAAE,CAAC;QACpC,OAAO,IAAI,mCAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,IAAI,yBAAW,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;AAC9C,CAAC;AARD,0CAQC"} \ No newline at end of file +{"version":3,"file":"ExecutionContext.js","sourceRoot":"","sources":["../../../../src/cdp/ExecutionContext.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAOH,qDAA6C;AAC7C,mEAA2D;AAE3D,+CAM2B;AAE3B,uEAA+D;AAC/D,qDAAsD;AAEtD,+DAAuD;AACvD,6CAAqC;AACrC,yDAAoD;AAEpD,+CAA0C;AAC1C,yCAAwE;AAExE;;GAEG;AACH,MAAa,gBAAgB;IAC3B,OAAO,CAAa;IACpB,MAAM,CAAgB;IACtB,UAAU,CAAS;IACnB,YAAY,CAAU;IAEtB,YACE,MAAkB,EAClB,cAA4D,EAC5D,KAAoB;QAEpB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,cAAc,CAAC,EAAE,CAAC;QACpC,IAAI,cAAc,CAAC,IAAI,EAAE,CAAC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AAQ,EAAE,YAAY,CAAC,YAAY,EAAE,CAAC,QAAQ,EAAC,CAAC;YAC1D,CAAC;YACD,OAAO,EAAC,KAAK,EAAE,GAAG,EAAC,CAAC;QACtB,CAAC;IACH,CAAC;CACF;AApUD,4CAoUC;AAED,MAAM,YAAY,GAAG,CAAC,KAAY,EAAqC,EAAE;IACvE,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,oCAAoC,CAAC,EAAE,CAAC;QACjE,OAAO,EAAC,MAAM,EAAE,EAAC,IAAI,EAAE,WAAW,EAAC,EAAC,CAAC;IACvC,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,sCAAsC,CAAC,EAAE,CAAC;QACnE,OAAO,EAAC,MAAM,EAAE,EAAC,IAAI,EAAE,WAAW,EAAC,EAAC,CAAC;IACvC,CAAC;IAED,IACE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,uCAAuC,CAAC;QAC/D,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,sCAAsC,CAAC,EAC9D,CAAC;QACD,MAAM,IAAI,KAAK,CACb,uEAAuE,CACxE,CAAC;IACJ,CAAC;IACD,MAAM,KAAK,CAAC;AACd,CAAC,CAAC;AAEF;;GAEG;AACH,SAAgB,eAAe,CAC7B,KAAoB,EACpB,YAA2C;IAE3C,IAAI,YAAY,CAAC,OAAO,KAAK,MAAM,EAAE,CAAC;QACpC,OAAO,IAAI,mCAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,IAAI,yBAAW,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;AAC9C,CAAC;AARD,0CAQC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FirefoxTargetManager.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FirefoxTargetManager.d.ts.map index a2da9c62..b84a2b7c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FirefoxTargetManager.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FirefoxTargetManager.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"FirefoxTargetManager.d.ts","sourceRoot":"","sources":["../../../../src/cdp/FirefoxTargetManager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAC,KAAK,UAAU,EAAkB,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAKvD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;;;;GAaG;AACH,qBAAa,oBACX,SAAQ,YAAY,CAAC,mBAAmB,CACxC,YAAW,aAAa;;gBA0CtB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,oBAAoB,CAAC,EAAE,oBAAoB;IAgB7C,wBAAwB,CAAC,OAAO,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI;IAchE,sBAAsB,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI;IAUjD,mBAAmB,IAAI,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC;IAIrD,OAAO,IAAI,IAAI;IAKT,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAkFlC"} \ No newline at end of file +{"version":3,"file":"FirefoxTargetManager.d.ts","sourceRoot":"","sources":["../../../../src/cdp/FirefoxTargetManager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAC,KAAK,UAAU,EAAkB,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAKvD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;;;;GAaG;AACH,qBAAa,oBACX,SAAQ,YAAY,CAAC,mBAAmB,CACxC,YAAW,aAAa;;gBAqCtB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,oBAAoB,CAAC,EAAE,oBAAoB;IAgB7C,wBAAwB,CAAC,OAAO,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI;IAchE,sBAAsB,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI;IAUjD,mBAAmB,IAAI,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC;IAIrD,OAAO,IAAI,IAAI;IAKT,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAiFlC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FirefoxTargetManager.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FirefoxTargetManager.js index e38a01f5..994bb598 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FirefoxTargetManager.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FirefoxTargetManager.js @@ -48,11 +48,6 @@ class FirefoxTargetManager extends EventEmitter_js_1.EventEmitter { * Tracks which sessions attach to which target. */ #availableTargetsBySessionId = new Map(); - /** - * If a target was filtered out by `targetFilterCallback`, we still receive - * events about it from CDP, but we don't forward them to the rest of Puppeteer. - */ - #ignoredTargets = new Set(); #targetFilterCallback; #targetFactory; #attachedToTargetListenersBySession = new WeakMap(); @@ -115,7 +110,6 @@ class FirefoxTargetManager extends EventEmitter_js_1.EventEmitter { } const target = this.#targetFactory(event.targetInfo, undefined); if (this.#targetFilterCallback && !this.#targetFilterCallback(target)) { - this.#ignoredTargets.add(event.targetInfo.targetId); this.#finishInitializationIfReady(event.targetInfo.targetId); return; } diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FirefoxTargetManager.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FirefoxTargetManager.js.map index a6a829c9..19df67d5 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FirefoxTargetManager.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FirefoxTargetManager.js.map @@ -1 +1 @@ -{"version":3,"file":"FirefoxTargetManager.js","sourceRoot":"","sources":["../../../../src/cdp/FirefoxTargetManager.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAKH,wDAAsE;AACtE,+DAAuD;AACvD,iDAAyC;AACzC,qDAA6C;AAY7C;;;;;;;;;;;;;GAaG;AACH,MAAa,oBACX,SAAQ,8BAAiC;IAGzC,WAAW,CAAa;IACxB;;;;;;;;;OASG;IACH,4BAA4B,GAAG,IAAI,GAAG,EAAsC,CAAC;IAC7E;;;;;OAKG;IACH,2BAA2B,GAAG,IAAI,GAAG,EAAqB,CAAC;IAC3D;;OAEG;IACH,4BAA4B,GAAG,IAAI,GAAG,EAAqB,CAAC;IAC5D;;;OAGG;IACH,eAAe,GAAG,IAAI,GAAG,EAAU,CAAC;IACpC,qBAAqB,CAAmC;IACxD,cAAc,CAAgB;IAE9B,mCAAmC,GAAG,IAAI,OAAO,EAG9C,CAAC;IAEJ,mBAAmB,GAAG,sBAAQ,CAAC,MAAM,EAAQ,CAAC;IAC9C,kBAAkB,GAAG,IAAI,GAAG,EAAU,CAAC;IAEvC,YACE,UAAsB,EACtB,aAA4B,EAC5B,oBAA2C;QAE3C,KAAK,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AAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;QAEvC,IAAI,CAAC,4BAA4B,CAAC,GAAG,CACnC,OAAO,CAAC,EAAE,EAAE,EACZ,IAAI,CAAC,2BAA2B,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAE,CAC3D,CAAC;QAEF,aAAa,CAAC,IAAI,CAAC,+BAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC,CAAC;IAEF,4BAA4B,CAAC,QAAgB;QAC3C,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,IAAI,CAAC,kBAAkB,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;YACvC,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,CAAC;QACrC,CAAC;IACH,CAAC;CACF;AA3KD,oDA2KC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.d.ts.map index e7d82138..cbe5f543 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IsolatedWorld.d.ts","sourceRoot":"","sources":["../../../../src/cdp/IsolatedWorld.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC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GAAG,MAAM,EAC3B,GAAG,IAAI,EAAE,MAAM,GACd,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAS1C,QAAQ,CACZ,MAAM,SAAS,OAAO,EAAE,EACxB,IAAI,SAAS,YAAY,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,EAExD,YAAY,EAAE,IAAI,GAAG,MAAM,EAC3B,GAAG,IAAI,EAAE,MAAM,GACd,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IAe/B,oBAAoB,CACxB,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC;IA0ED,gBAAgB,CAC7B,aAAa,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,aAAa,GACzC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IASpB,WAAW,CAAC,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAc5D,cAAc,CAAC,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAkBrE,CAAC,aAAa,CAAC,IAAI,IAAI;CAIxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js index 28ff566e..af8f4e89 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js @@ -57,6 +57,7 @@ const Deferred_js_1 = require("../util/Deferred.js"); const disposable_js_1 = require("../util/disposable.js"); const Mutex_js_1 = require("../util/Mutex.js"); const ExecutionContext_js_1 = require("./ExecutionContext.js"); +const utils_js_1 = require("./utils.js"); /** * @internal */ @@ -142,7 +143,7 @@ class IsolatedWorld extends Realm_js_1.Realm { name, executionContextId: context._contextId, }); - await context.evaluate(util_js_1.addPageBinding, 'internal', name); + await context.evaluate(utils_js_1.addPageBinding, 'internal', name); this.#contextBindings.add(name); } catch (error) { diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js.map index 2e867a47..a173de3a 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js.map @@ -1 +1 @@ -{"version":3,"file":"IsolatedWorld.js","sourceRoot":"","sources":["../../../../src/cdp/IsolatedWorld.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMH,8CAAsC;AAGtC,+CAI2B;AAC3B,qDAA6C;AAC7C,yDAAoD;AACpD,+CAAuC;AAGvC,+DAAwE;AAsBxE;;GAEG;AACH,MAAa,aAAc,SAAQ,gBAAK;IACtC,QAAQ,GAAG,sBAAQ,CAAC,MAAM,EAAoB,CAAC;IAE/C,oEAAoE;IACpE,gBAAgB,GAAG,IAAI,GAAG,EAAU,CAAC;IAErC,+EAA+E;IAC/E,SAAS,GAAG,IAAI,GAAG,EAAmB,CAAC;IAEvC,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAEQ,cAAc,CAA0B;IAEjD,YACE,aAAsC,EACtC,eAAgC;QAEhC,KAAK,CAAC,eAAe,CAAC,CAAC;QACvB,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;IAED,IAAI,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.map index 80a54e62..c2258957 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/JSHandle.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/JSHandle.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"JSHandle.d.ts","sourceRoot":"","sources":["../../../../src/cdp/JSHandle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAG5C,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEtD;;GAEG;AACH,qBAAa,WAAW,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,QAAQ,CAAC,CAAC,CAAC;;gBAMrD,KAAK,EAAE,aAAa,EACpB,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY;IAO7C,IAAa,QAAQ,IAAI,OAAO,CAE/B;IAED,IAAa,KAAK,IAAI,aAAa,CAElC;IAED,IAAI,MAAM,IAAI,UAAU,CAEvB;IAEc,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC;IAatC;;;OAGG;IACM,SAAS,IAAI,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI;IAIpC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ9B,QAAQ,IAAI,MAAM;IAQ3B,IAAa,EAAE,IAAI,MAAM,GAAG,SAAS,CAEpC;IAEQ,YAAY,IAAI,QAAQ,CAAC,OAAO,CAAC,YAAY;CAGvD;AAED;;GAEG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY,GAC1C,OAAO,CAAC,IAAI,CAAC,CAWf"} \ No newline at end of file +{"version":3,"file":"JSHandle.d.ts","sourceRoot":"","sources":["../../../../src/cdp/JSHandle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAG5C,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAGtD;;GAEG;AACH,qBAAa,WAAW,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,QAAQ,CAAC,CAAC,CAAC;;gBAMrD,KAAK,EAAE,aAAa,EACpB,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY;IAO7C,IAAa,QAAQ,IAAI,OAAO,CAE/B;IAED,IAAa,KAAK,IAAI,aAAa,CAElC;IAED,IAAI,MAAM,IAAI,UAAU,CAEvB;IAEc,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC;IAatC;;;OAGG;IACM,SAAS,IAAI,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI;IAIpC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ9B,QAAQ,IAAI,MAAM;IAQ3B,IAAa,EAAE,IAAI,MAAM,GAAG,SAAS,CAEpC;IAEQ,YAAY,IAAI,QAAQ,CAAC,OAAO,CAAC,YAAY;CAGvD;AAED;;GAEG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY,GAC1C,OAAO,CAAC,IAAI,CAAC,CAWf"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/JSHandle.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/JSHandle.js index 68ad590f..85a07409 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/JSHandle.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/JSHandle.js @@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.releaseObject = exports.CdpJSHandle = void 0; const JSHandle_js_1 = require("../api/JSHandle.js"); const util_js_1 = require("../common/util.js"); +const utils_js_1 = require("./utils.js"); /** * @internal */ @@ -31,7 +32,7 @@ class CdpJSHandle extends JSHandle_js_1.JSHandle { } async jsonValue() { if (!this.#remoteObject.objectId) { - return (0, util_js_1.valueFromRemoteObject)(this.#remoteObject); + return (0, utils_js_1.valueFromRemoteObject)(this.#remoteObject); } const value = await this.evaluate(object => { return object; @@ -57,7 +58,7 @@ class CdpJSHandle extends JSHandle_js_1.JSHandle { } toString() { if (!this.#remoteObject.objectId) { - return 'JSHandle:' + (0, util_js_1.valueFromRemoteObject)(this.#remoteObject); + return 'JSHandle:' + (0, utils_js_1.valueFromRemoteObject)(this.#remoteObject); } const type = this.#remoteObject.subtype || this.#remoteObject.type; return 'JSHandle@' + type; diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/JSHandle.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/JSHandle.js.map index c1c48df3..d43840be 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/JSHandle.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/JSHandle.js.map @@ -1 +1 @@ -{"version":3,"file":"JSHandle.js","sourceRoot":"","sources":["../../../../src/cdp/JSHandle.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAKH,oDAA4C;AAC5C,+CAAoE;AAKpE;;GAEG;AACH,MAAa,WAAyB,SAAQ,sBAAW;IACvD,SAAS,GAAG,KAAK,CAAC;IACT,aAAa,CAAgC;IAC7C,MAAM,CAA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AAC;QACD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;QACnE,OAAO,WAAW,GAAG,IAAI,CAAC;IAC5B,CAAC;IAED,IAAa,EAAE;QACb,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IACrC,CAAC;IAEQ,YAAY;QACnB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;CACF;AAtED,kCAsEC;AAED;;GAEG;AACI,KAAK,UAAU,aAAa,CACjC,MAAkB,EAClB,YAA2C;IAE3C,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;QAC3B,OAAO;IACT,CAAC;IACD,MAAM,MAAM;SACT,IAAI,CAAC,uBAAuB,EAAE,EAAC,QAAQ,EAAE,YAAY,CAAC,QAAQ,EAAC,CAAC;SAChE,KAAK,CAAC,KAAK,CAAC,EAAE;QACb,sEAAsE;QACtE,iFAAiF;QACjF,IAAA,oBAAU,EAAC,KAAK,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC;AAdD,sCAcC"} \ No newline at end of file +{"version":3,"file":"JSHandle.js","sourceRoot":"","sources":["../../../../src/cdp/JSHandle.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAKH,oDAA4C;AAC5C,+CAA6C;AAI7C,yCAAiD;AAEjD;;GAEG;AACH,MAAa,WAAyB,SAAQ,sBAAW;IACvD,SAAS,GAAG,KAAK,CAAC;IACT,aAAa,CAAgC;IAC7C,MAAM,CAAgB;IAE/B,YACE,KAAoB,EACpB,YAA2C;QAE3C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,IAAa,KAAK;QAChB,OAAO,IAAI,CAAC,MAAM,C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AAC;IAC5B,CAAC;CACF;AAtED,kCAsEC;AAED;;GAEG;AACI,KAAK,UAAU,aAAa,CACjC,MAAkB,EAClB,YAA2C;IAE3C,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;QAC3B,OAAO;IACT,CAAC;IACD,MAAM,MAAM;SACT,IAAI,CAAC,uBAAuB,EAAE,EAAC,QAAQ,EAAE,YAAY,CAAC,QAAQ,EAAC,CAAC;SAChE,KAAK,CAAC,KAAK,CAAC,EAAE;QACb,sEAAsE;QACtE,iFAAiF;QACjF,IAAA,oBAAU,EAAC,KAAK,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC;AAdD,sCAcC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.d.ts index f76ebc16..2cbf8ca1 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.d.ts @@ -11,7 +11,6 @@ import type { Browser } from '../api/Browser.js'; import type { BrowserContext } from '../api/BrowserContext.js'; import { type CDPSession } from '../api/CDPSession.js'; import type { Frame, WaitForOptions } from '../api/Frame.js'; -import type { HTTPRequest } from '../api/HTTPRequest.js'; import type { HTTPResponse } from '../api/HTTPResponse.js'; import type { JSHandle } from '../api/JSHandle.js'; import { Page, type GeolocationOptions, type MediaFeature, type Metrics, type NewDocumentScriptEvaluation, type ScreenshotOptions, type WaitTimeoutOptions } from '../api/Page.js'; @@ -73,16 +72,6 @@ export declare class CdpPage extends Page { metrics(): Promise; reload(options?: WaitForOptions): Promise; createCDPSession(): Promise; - waitForRequest(urlOrPredicate: string | ((req: HTTPRequest) => boolean | Promise), options?: { - timeout?: number; - }): Promise; - waitForResponse(urlOrPredicate: string | ((res: HTTPResponse) => boolean | Promise), options?: { - timeout?: number; - }): Promise; - waitForNetworkIdle(options?: { - idleTime?: number; - timeout?: number; - }): Promise; goBack(options?: WaitForOptions): Promise; goForward(options?: WaitForOptions): Promise; bringToFront(): Promise; diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.d.ts.map index 022a3c30..3618d3c8 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../../src/cdp/Page.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAErC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAGhD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAkB,KAAK,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAEtE,OAAO,KAAK,EAAC,KAAK,EAAE,cAAc,EAAC,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACL,IAAI,EAEJ,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,2BAA2B,EAEhC,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACxB,MAAM,gBAAgB,CAAC;AAMxB,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAErD,OAAO,K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G,OAAO,CAAC,QAAQ,CAAC;IA6D5D,GAAG,CAAC,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAQ9C,KAAK,CAClB,OAAO,GAAE;QAAC,eAAe,CAAC,EAAE,OAAO,CAAA;KAAgC,GAClE,OAAO,CAAC,IAAI,CAAC;IAiBP,QAAQ,IAAI,OAAO;IAI5B,IAAa,KAAK,IAAI,QAAQ,CAE7B;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACY,mBAAmB,CAChC,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,mBAAmB,CAAC;CAGhC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.js index 860af723..2d986092 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.js @@ -78,6 +78,7 @@ const Input_js_1 = require("./Input.js"); const IsolatedWorlds_js_1 = require("./IsolatedWorlds.js"); const JSHandle_js_1 = require("./JSHandle.js"); const Tracing_js_1 = require("./Tracing.js"); +const utils_js_1 = require("./utils.js"); const WebWorker_js_1 = require("./WebWorker.js"); /** * @internal @@ -517,7 +518,7 @@ class CdpPage extends Page_js_1.Page { break; } this.#bindings.set(name, binding); - const expression = (0, util_js_1.pageBindingInitString)('exposedFun', name); + const expression = (0, utils_js_1.pageBindingInitString)('exposedFun', name); await this.#primaryTargetClient.send('Runtime.addBinding', { name }); // TODO: investigate this as it appears to only apply to the main frame and // local subframes instead of the entire frame tree (including future @@ -588,7 +589,7 @@ class CdpPage extends Page_js_1.Page { return result; } #handleException(exception) { - this.emit("pageerror" /* PageEvent.PageError */, (0, util_js_1.createClientError)(exception.exceptionDetails)); + this.emit("pageerror" /* PageEvent.PageError */, (0, utils_js_1.createClientError)(exception.exceptionDetails)); } async #onConsoleAPI(event) { if (event.executionContextId === 0) { @@ -654,7 +655,7 @@ class CdpPage extends Page_js_1.Page { textTokens.push(arg.toString()); } else { - textTokens.push((0, util_js_1.valueFromRemoteObject)(remoteObject)); + textTokens.push((0, utils_js_1.valueFromRemoteObject)(remoteObject)); } } const stackTraceLocations = []; @@ -685,18 +686,6 @@ class CdpPage extends Page_js_1.Page { async createCDPSession() { return await this.target().createCDPSession(); } - async waitForRequest(urlOrPredicate, options = {}) { - const { timeout = this._timeoutSettings.timeout() } = options; - return await (0, util_js_1.waitForHTTP)(this.#frameManager.networkManager, NetworkManagerEvents_js_1.NetworkManagerEvent.Request, urlOrPredicate, timeout, this.#sessionCloseDeferred); - } - async waitForResponse(urlOrPredicate, options = {}) { - const { timeout = this._timeoutSettings.timeout() } = options; - return await (0, util_js_1.waitForHTTP)(this.#frameManager.networkManager, NetworkManagerEvents_js_1.NetworkManagerEvent.Response, urlOrPredicate, timeout, this.#sessionCloseDeferred); - } - async waitForNetworkIdle(options = {}) { - const { idleTime = util_js_1.NETWORK_IDLE_TIME, timeout: ms = this._timeoutSettings.timeout(), } = options; - await (0, rxjs_js_1.firstValueFrom)(this._waitForNetworkIdle(this.#frameManager.networkManager, idleTime).pipe((0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms), (0, rxjs_js_1.from)(this.#sessionCloseDeferred.valueOrThrow())))); - } async goBack(options = {}) { return await this.#go(-1, options); } @@ -816,7 +805,8 @@ class CdpPage extends Page_js_1.Page { } } async createPDFStream(options = {}) { - const { landscape, displayHeaderFooter, headerTemplate, footerTemplate, printBackground, scale, width: paperWidth, height: paperHeight, margin, pageRanges, preferCSSPageSize, omitBackground, timeout: ms, tagged: generateTaggedPDF, } = this._getPDFOptions(options); + const { timeout: ms = this._timeoutSettings.timeout() } = options; + const { landscape, displayHeaderFooter, headerTemplate, footerTemplate, printBackground, scale, width: paperWidth, height: paperHeight, margin, pageRanges, preferCSSPageSize, omitBackground, tagged: generateTaggedPDF, outline: generateDocumentOutline, } = (0, util_js_1.parsePDFOptions)(options); if (omitBackground) { await this.#emulationManager.setTransparentBackgroundColor(); } @@ -837,6 +827,7 @@ class CdpPage extends Page_js_1.Page { pageRanges, preferCSSPageSize, generateTaggedPDF, + generateDocumentOutline, }); const result = await (0, rxjs_js_1.firstValueFrom)((0, rxjs_js_1.from)(printCommandPromise).pipe((0, rxjs_js_1.raceWith)((0, util_js_1.timeout)(ms)))); if (omitBackground) { diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.js.map index dffb899f..9e3a04cf 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.js.map @@ -1 +1 @@ -{"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../../src/cdp/Page.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMH,4DAA8E;AAG9E,wDAAsE;AAMtE,4CAUwB;AACxB,mEAGqC;AACrC,mDAAqD;AACrD,6DAAqD;AACrD,+EAAsE;AAGtE,+CAY2B;AAE3B,iDAAyC;AACzC,qDAA6C;AAC7C,yDAA2D;AAC3D,uDAAiD;AAEjD,yDAAiD;AACjD,6CAAqC;AACrC,mDAA8C;AAC9C,mDAAoD;AACpD,+CAAuC;AAEvC,2CAAsC;AACtC,+DAAuD;AACvD,+DAAsD;AACtD,uEAA+D;AAE/D,uDAA+C;AAC/C,mEAA0D;AAC1D,yCAAiE;AACjE,2DAA+C;AAC/C,+CAA4C;AAK5C,6CAAqC;AACrC,iDAA4C;AAE5C;;GAEG;AACH,MAAa,OAAQ,SAAQ,cAAI;IAC/B,MAAM,CAAC,KAAK,CAAC,OAAO,CAClB,MAAkB,EAClB,MAAiB,EACjB,iBAA0B,EAC1B,eAAgC;QAEh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BAAmB,CAC1B,IAA8B,EAC9B,QAAqC;IAErC,yCAAyC;IACzC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IACvC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IACvC,OAAO;QACL,CAAC;QACD,CAAC;QACD,KAAK,EAAE,IAAI,CAAC,GAAG,CACb,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAC9D,CAAC,CACF;QACD,MAAM,EAAE,IAAI,CAAC,GAAG,CACd,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,EAChE,CAAC,CACF;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Target.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Target.js index 2e92755a..c060b37c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Target.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Target.js @@ -114,13 +114,13 @@ class CdpTarget extends Target_js_1.Target { } browser() { if (!this.#browserContext) { - throw new Error('browserContext is not initialised'); + throw new Error('browserContext is not initialized'); } return this.#browserContext.browser(); } browserContext() { if (!this.#browserContext) { - throw new Error('browserContext is not initialised'); + throw new Error('browserContext is not initialized'); } return this.#browserContext; } diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.d.ts index 943bcc68..480989a6 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.d.ts @@ -8,6 +8,7 @@ export * from './AriaQueryHandler.js'; export * from './Binding.js'; export * from './Browser.js'; export * from './BrowserConnector.js'; +export * from './cdp.js'; export * from './CDPSession.js'; export * from './ChromeTargetManager.js'; export * from './Connection.js'; @@ -36,6 +37,6 @@ export * from './PredefinedNetworkConditions.js'; export * from './Target.js'; export * from './TargetManager.js'; export * from './Tracing.js'; +export * from './utils.js'; export * from './WebWorker.js'; -export * from './cdp.js'; //# sourceMappingURL=cdp.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.d.ts.map index 7658e1f6..276cf429 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"cdp.d.ts","sourceRoot":"","sources":["../../../../src/cdp/cdp.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cA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AAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,kCAAkC,CAAC;AACjD,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.js index b629331a..eaaa1011 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.js @@ -24,6 +24,7 @@ __exportStar(require("./AriaQueryHandler.js"), exports); __exportStar(require("./Binding.js"), exports); __exportStar(require("./Browser.js"), exports); __exportStar(require("./BrowserConnector.js"), exports); +__exportStar(require("./cdp.js"), exports); __exportStar(require("./CDPSession.js"), exports); __exportStar(require("./ChromeTargetManager.js"), exports); __exportStar(require("./Connection.js"), exports); @@ -52,6 +53,6 @@ __exportStar(require("./PredefinedNetworkConditions.js"), exports); __exportStar(require("./Target.js"), exports); __exportStar(require("./TargetManager.js"), exports); __exportStar(require("./Tracing.js"), exports); +__exportStar(require("./utils.js"), exports); __exportStar(require("./WebWorker.js"), exports); -__exportStar(require("./cdp.js"), exports); //# sourceMappingURL=cdp.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.js.map index bc2bf94d..481d4309 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/cdp.js.map @@ -1 +1 @@ -{"version":3,"file":"cdp.js","sourceRoot":"","sources":["../../../../src/cdp/cdp.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,qDAAmC;AACnC,wDAAsC;AACtC,+CAA6B;AAC7B,+CAA6B;AAC7B,wDAAsC;AACtC,kDAAgC;AAChC,2DAAyC;AACzC,kDAAgC;AAChC,gDAA8B;AAC9B,2DAAyC;AACzC,8CAA4B;AAC5B,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,0DAAwC;AACxC,iDAA+B;AAC/B,mDAAiC;AACjC,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,sDAAoC;AACpC,gDAA8B;AAC9B,wDAAsC;AACtC,2DAAyC;AACzC,sDAAoC;AACpC,4CAA0B;AAC1B,mEAAiD;AACjD,8CAA4B;AAC5B,qDAAmC;AACnC,+CAA6B;AAC7B,iDAA+B;AAC/B,2CAAyB"} \ No newline at end of file +{"version":3,"file":"cdp.js","sourceRoot":"","sources":["../../../../src/cdp/cdp.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,qDAAmC;AACnC,wDAAsC;AACtC,+CAA6B;AAC7B,+CAA6B;AAC7B,wDAAsC;AACtC,2CAAyB;AACzB,kDAAgC;AAChC,2DAAyC;AACzC,kDAAgC;AAChC,gDAA8B;AAC9B,2DAAyC;AACzC,8CAA4B;AAC5B,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,0DAAwC;AACxC,iDAA+B;AAC/B,mDAAiC;AACjC,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,sDAAoC;AACpC,gDAA8B;AAC9B,wDAAsC;AACtC,2DAAyC;AACzC,sDAAoC;AACpC,4CAA0B;AAC1B,mEAAiD;AACjD,8CAA4B;AAC5B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,iDAA+B"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/utils.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/utils.d.ts new file mode 100644 index 00000000..35fb5bdb --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/utils.d.ts @@ -0,0 +1,27 @@ +/** + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type { Protocol } from 'devtools-protocol'; +/** + * @internal + */ +export declare function createEvaluationError(details: Protocol.Runtime.ExceptionDetails): unknown; +/** + * @internal + */ +export declare function createClientError(details: Protocol.Runtime.ExceptionDetails): Error; +/** + * @internal + */ +export declare function valueFromRemoteObject(remoteObject: Protocol.Runtime.RemoteObject): any; +/** + * @internal + */ +export declare function addPageBinding(type: string, name: string): void; +/** + * @internal + */ +export declare function pageBindingInitString(type: string, name: string): string; +//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/utils.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/utils.d.ts.map new file mode 100644 index 00000000..56757c6f --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/utils.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/cdp/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAKhD;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,gBAAgB,GACzC,OAAO,CAsDT;AAqBD;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,gBAAgB,GACzC,KAAK,CAwCP;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY,GAC1C,GAAG,CAuBL;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAqD/D;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAExE"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/utils.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/utils.js new file mode 100644 index 00000000..b3ecf9cb --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/utils.js @@ -0,0 +1,194 @@ +"use strict"; +/** + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.pageBindingInitString = exports.addPageBinding = exports.valueFromRemoteObject = exports.createClientError = exports.createEvaluationError = void 0; +const util_js_1 = require("../common/util.js"); +const assert_js_1 = require("../util/assert.js"); +/** + * @internal + */ +function createEvaluationError(details) { + let name; + let message; + if (!details.exception) { + name = 'Error'; + message = details.text; + } + else if ((details.exception.type !== 'object' || + details.exception.subtype !== 'error') && + !details.exception.objectId) { + return valueFromRemoteObject(details.exception); + } + else { + const detail = getErrorDetails(details); + name = detail.name; + message = detail.message; + } + const messageHeight = message.split('\n').length; + const error = new Error(message); + error.name = name; + const stackLines = error.stack.split('\n'); + const messageLines = stackLines.splice(0, messageHeight); + // The first line is this function which we ignore. + stackLines.shift(); + if (details.stackTrace && stackLines.length < Error.stackTraceLimit) { + for (const frame of details.stackTrace.callFrames.reverse()) { + if (util_js_1.PuppeteerURL.isPuppeteerURL(frame.url) && + frame.url !== util_js_1.PuppeteerURL.INTERNAL_URL) { + const url = util_js_1.PuppeteerURL.parse(frame.url); + stackLines.unshift(` at ${frame.functionName || url.functionName} (${url.functionName} at ${url.siteString}, :${frame.lineNumber}:${frame.columnNumber})`); + } + else { + stackLines.push(` at ${frame.functionName || ''} (${frame.url}:${frame.lineNumber}:${frame.columnNumber})`); + } + if (stackLines.length >= Error.stackTraceLimit) { + break; + } + } + } + error.stack = [...messageLines, ...stackLines].join('\n'); + return error; +} +exports.createEvaluationError = createEvaluationError; +const getErrorDetails = (details) => { + let name = ''; + let message; + const lines = details.exception?.description?.split('\n at ') ?? []; + const size = Math.min(details.stackTrace?.callFrames.length ?? 0, lines.length - 1); + lines.splice(-size, size); + if (details.exception?.className) { + name = details.exception.className; + } + message = lines.join('\n'); + if (name && message.startsWith(`${name}: `)) { + message = message.slice(name.length + 2); + } + return { message, name }; +}; +/** + * @internal + */ +function createClientError(details) { + let name; + let message; + if (!details.exception) { + name = 'Error'; + message = details.text; + } + else if ((details.exception.type !== 'object' || + details.exception.subtype !== 'error') && + !details.exception.objectId) { + return valueFromRemoteObject(details.exception); + } + else { + const detail = getErrorDetails(details); + name = detail.name; + message = detail.message; + } + const error = new Error(message); + error.name = name; + const messageHeight = error.message.split('\n').length; + const messageLines = error.stack.split('\n').splice(0, messageHeight); + const stackLines = []; + if (details.stackTrace) { + for (const frame of details.stackTrace.callFrames) { + // Note we need to add `1` because the values are 0-indexed. + stackLines.push(` at ${frame.functionName || ''} (${frame.url}:${frame.lineNumber + 1}:${frame.columnNumber + 1})`); + if (stackLines.length >= Error.stackTraceLimit) { + break; + } + } + } + error.stack = [...messageLines, ...stackLines].join('\n'); + return error; +} +exports.createClientError = createClientError; +/** + * @internal + */ +function valueFromRemoteObject(remoteObject) { + (0, assert_js_1.assert)(!remoteObject.objectId, 'Cannot extract value when objectId is given'); + if (remoteObject.unserializableValue) { + if (remoteObject.type === 'bigint') { + return BigInt(remoteObject.unserializableValue.replace('n', '')); + } + switch (remoteObject.unserializableValue) { + case '-0': + return -0; + case 'NaN': + return NaN; + case 'Infinity': + return Infinity; + case '-Infinity': + return -Infinity; + default: + throw new Error('Unsupported unserializable value: ' + + remoteObject.unserializableValue); + } + } + return remoteObject.value; +} +exports.valueFromRemoteObject = valueFromRemoteObject; +/** + * @internal + */ +function addPageBinding(type, name) { + // This is the CDP binding. + // @ts-expect-error: In a different context. + const callCdp = globalThis[name]; + // Depending on the frame loading state either Runtime.evaluate or + // Page.addScriptToEvaluateOnNewDocument might succeed. Let's check that we + // don't re-wrap Puppeteer's binding. + if (callCdp[Symbol.toStringTag] === 'PuppeteerBinding') { + return; + } + // We replace the CDP binding with a Puppeteer binding. + Object.assign(globalThis, { + [name](...args) { + // This is the Puppeteer binding. + // @ts-expect-error: In a different context. + const callPuppeteer = globalThis[name]; + callPuppeteer.args ??= new Map(); + callPuppeteer.callbacks ??= new Map(); + const seq = (callPuppeteer.lastSeq ?? 0) + 1; + callPuppeteer.lastSeq = seq; + callPuppeteer.args.set(seq, args); + callCdp(JSON.stringify({ + type, + name, + seq, + args, + isTrivial: !args.some(value => { + return value instanceof Node; + }), + })); + return new Promise((resolve, reject) => { + callPuppeteer.callbacks.set(seq, { + resolve(value) { + callPuppeteer.args.delete(seq); + resolve(value); + }, + reject(value) { + callPuppeteer.args.delete(seq); + reject(value); + }, + }); + }); + }, + }); + // @ts-expect-error: In a different context. + globalThis[name][Symbol.toStringTag] = 'PuppeteerBinding'; +} +exports.addPageBinding = addPageBinding; +/** + * @internal + */ +function pageBindingInitString(type, name) { + return (0, util_js_1.evaluationString)(addPageBinding, type, name); +} +exports.pageBindingInitString = pageBindingInitString; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/utils.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/utils.js.map new file mode 100644 index 00000000..63f2fa72 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppete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S,CAAC;gBACb,IAAI;gBACJ,IAAI;gBACJ,GAAG;gBACH,IAAI;gBACJ,SAAS,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;oBAC5B,OAAO,KAAK,YAAY,IAAI,CAAC;gBAC/B,CAAC,CAAC;aACH,CAAC,CACH,CAAC;YAEF,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACrC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE;oBAC/B,OAAO,CAAC,KAAc;wBACpB,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;wBAC/B,OAAO,CAAC,KAAK,CAAC,CAAC;oBACjB,CAAC;oBACD,MAAM,CAAC,KAAe;wBACpB,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;wBAC/B,MAAM,CAAC,KAAK,CAAC,CAAC;oBAChB,CAAC;iBACF,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;IACH,4CAA4C;IAC5C,UAAU,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,kBAAkB,CAAC;AAC5D,CAAC;AArDD,wCAqDC;AAED;;GAEG;AACH,SAAgB,qBAAqB,CAAC,IAAY,EAAE,IAAY;IAC9D,OAAO,IAAA,0BAAgB,EAAC,cAAc,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACtD,CAAC;AAFD,sDAEC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.d.ts index 1ae111d1..60e9f4a9 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.d.ts @@ -17,6 +17,10 @@ export declare class CallbackRegistry { _reject(callback: Callback, errorMessage: string | ProtocolError, originalMessage?: string): void; resolve(id: number, value: unknown): void; clear(): void; + /** + * @internal + */ + getPendingProtocolErrors(): Error[]; } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.d.ts.map index 6ed6786e..ecef7b92 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"CallbackRegistry.d.ts","sourceRoot":"","sources":["../../../../src/common/CallbackRegistry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAG7C,OAAO,EAAC,aAAa,EAAmB,MAAM,aAAa,CAAC;AAG5D;;;;GAIG;AACH,qBAAa,gBAAgB;;IAI3B,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,GAC5B,OAAO,CAAC,OAAO,CAAC;IAuBnB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI;IAQnE,OAAO,CACL,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,MAAM,GAAG,aAAa,EACpC,eAAe,CAAC,EAAE,MAAM,GACvB,IAAI;IAqBP,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAQzC,KAAK,IAAI,IAAI;CAOd;AACD;;GAEG;AAEH,qBAAa,QAAQ;;gBAOP,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAevD,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAK7B,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAK1B,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,IAAI,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC,CAE/B;IAED,IAAI,KAAK,IAAI,aAAa,CAEzB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;CACF;AAED;;GAEG;AACH,wBAAgB,4BAA4B,IAAI,OAAO,CAKtD;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC"} \ No newline at end of file +{"version":3,"file":"CallbackRegistry.d.ts","sourceRoot":"","sources":["../../../../src/common/CallbackRegistry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAG7C,OAAO,EAAC,aAAa,EAAmB,MAAM,aAAa,CAAC;AAG5D;;;;GAIG;AACH,qBAAa,gBAAgB;;IAI3B,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,GAC5B,OAAO,CAAC,OAAO,CAAC;IAuBnB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI;IAQnE,OAAO,CACL,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,MAAM,GAAG,aAAa,EACpC,eAAe,CAAC,EAAE,MAAM,GACvB,IAAI;IAqBP,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAQzC,KAAK,IAAI,IAAI;IAQb;;OAEG;IACH,wBAAwB,IAAI,KAAK,EAAE;CASpC;AACD;;GAEG;AAEH,qBAAa,QAAQ;;gBAOP,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAevD,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAK7B,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAK1B,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,IAAI,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC,CAE/B;IAED,IAAI,KAAK,IAAI,aAAa,CAEzB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;CACF;AAED;;GAEG;AACH,wBAAgB,4BAA4B,IAAI,OAAO,CAKtD;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js index 38f65043..f4851dc3 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js @@ -76,6 +76,16 @@ class CallbackRegistry { } this.#callbacks.clear(); } + /** + * @internal + */ + getPendingProtocolErrors() { + const result = []; + for (const callback of this.#callbacks.values()) { + result.push(new Error(`${callback.label} timed out. Trace: ${callback.error.stack}`)); + } + return result; + } } exports.CallbackRegistry = CallbackRegistry; /** diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js.map index cf071b06..b3387852 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js.map @@ -1 +1 @@ -{"version":3,"file":"CallbackRegistry.js","sourceRoot":"","sources":["../../../../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,CAAC;AALD,oEAKC"} \ No newline at end of file +{"version":3,"file":"CallbackRegistry.js","sourceRoot":"","sources":["../../../../src/common/CallbackRegistry.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,qDAA6C;AAC7C,uDAAkD;AAElD,2CAA4D;AAC5D,uCAAqC;AAErC;;;;GAIG;AACH,MAAa,gBAAgB;IAC3B,UAAU,GAAG,IAAI,GAAG,EAAoB,CAAC;IACzC,YAAY,GAAG,4BAA4B,EAAE,CAAC;IAE9C,MAAM,CACJ,KAAa,EACb,OAA2B,EAC3B,OAA6B;QAE7B,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QACnE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;QAC3C,IAAI,CAAC;YACH,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,sEAAsE;YACtE,YAAY;YACZ,QAAQ,CAAC,OAAO;iBACb,YAAY,EAAE;iBACd,KAAK,CAAC,oBAAU,CAAC;iBACjB,OAAO,CAAC,GAAG,EAAE;gBACZ,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YACtC,CAAC,CAAC,CAAC;YACL,QAAQ,CAAC,MAAM,CAAC,KAAc,CAAC,CAAC;YAChC,MAAM,KAAK,CAAC;QACd,CAAC;QACD,0CAA0C;QAC1C,OAAO,QAAQ,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE;YAClD,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACtC,CAAC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,OAAe,EAAE,eAAwB;QAC1D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;QACJ,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF;AA/CD,4BA+CC;AAED;;GAEG;AACH,SAAgB,4BAA4B;IAC1C,IAAI,EAAE,GAAG,CAAC,CAAC;IACX,OAAO,GAAW,EAAE;QAClB,OAAO,EAAE,EAAE,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AALD,oEAKC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Configuration.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Configuration.d.ts index 741d878b..fbb74dfb 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Configuration.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Configuration.d.ts @@ -29,7 +29,13 @@ export interface Configuration { * See {@link PuppeteerNode.launch | puppeteer.launch} on how executable path * is inferred. * - * @defaultValue A compatible-revision of the browser. + * Use a specific browser version (e.g., 119.0.6045.105). If you use an alias + * such `stable` or `canary` it will only work during the installation of + * Puppeteer and it will fail when launching the browser. + * + * @example 119.0.6045.105 + * @defaultValue The pinned browser version supported by the current Puppeteer + * version. */ browserRevision?: string; /** @@ -92,6 +98,18 @@ export interface Configuration { * Can be overridden by `PUPPETEER_SKIP_DOWNLOAD`. */ skipDownload?: boolean; + /** + * Tells Puppeteer to not Chrome download during installation. + * + * Can be overridden by `PUPPETEER_SKIP_CHROME_DOWNLOAD`. + */ + skipChromeDownload?: boolean; + /** + * Tells Puppeteer to not chrome-headless-shell download during installation. + * + * Can be overridden by `PUPPETEER_SKIP_CHROME_HEADLESSS_HELL_DOWNLOAD`. + */ + skipChromeHeadlessShellDownload?: boolean; /** * Tells Puppeteer to log at the given level. * diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Configuration.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Configuration.d.ts.map index a8a25b50..f897c5f5 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Configuration.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Configuration.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../../src/common/Configuration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IACvC;;OAEG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC;CACxC"} \ No newline at end of file +{"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../../src/common/Configuration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;;;;;;;OAeG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;OAIG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IACvC;;OAEG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC;CACxC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts index 0ddd2a86..e78b9193 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts @@ -3,6 +3,7 @@ * Copyright 2022 Google Inc. * SPDX-License-Identifier: Apache-2.0 */ +import { type Emitter } from '../../third_party/mitt/mitt.js'; import { disposeSymbol } from '../util/disposable.js'; /** * @public @@ -46,9 +47,11 @@ export type EventsWithWildcard> = Even export declare class EventEmitter> implements CommonEventEmitter> { #private; /** + * If you pass an emitter, the returned emitter will wrap the passed emitter. + * * @internal */ - constructor(); + constructor(emitter?: Emitter> | EventEmitter); /** * Bind an event listener to fire when an event occurs. * @param type - the event type you'd like to listen to. Can be a string or symbol. @@ -63,6 +66,14 @@ export declare class EventEmitter> imp * @returns `this` to enable you to chain method calls. */ off>(type: Key, handler?: Handler[Key]>): this; + /** + * Emit an event and call any associated listeners. + * + * @param type - the event you'd like to emit + * @param eventData - any data you'd like to emit with the event + * @returns `true` if there are any listeners, `false` if there are not. + */ + emit>(type: Key, event: EventsWithWildcard[Key]): boolean; /** * Remove an event listener. * @@ -75,14 +86,6 @@ export declare class EventEmitter> imp * @deprecated please use {@link EventEmitter.on} instead. */ addListener>(type: Key, handler: Handler[Key]>): this; - /** - * Emit an event and call any associated listeners. - * - * @param type - the event you'd like to emit - * @param eventData - any data you'd like to emit with the event - * @returns `true` if there are any listeners, `false` if there are not. - */ - emit>(type: Key, event: EventsWithWildcard[Key]): boolean; /** * Like `on` but the listener will only be fired once and then it will be removed. * @param type - the event you'd like to listen to @@ -105,6 +108,10 @@ export declare class EventEmitter> imp * @returns `this` to enable you to chain method calls. */ removeAllListeners(type?: keyof EventsWithWildcard): this; + /** + * @internal + */ + [disposeSymbol](): void; } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts.map index 1943f336..640998f1 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"EventEmitter.d.ts","sourceRoot":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CAAC,GAAG,CAAC,CAAC,GAChD,IAAI;IAKP;;;;;;OAMG;IACH,IAAI,CAAC,GAAG,SAAS,MAAM,kBAAkB,CAAC,MAAM,CAAC,EAC/C,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GACrC,OAAO;IAKV;;;;;OAKG;IACH,IAAI,CAAC,GAAG,SAAS,MAAM,kBAAkB,CAAC,MAAM,CAAC,EAC/C,IAAI,EAAE,GAAG,EACT,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,GAChD,IAAI;IASP;;;;;OAKG;IACH,aAAa,CAAC,IAAI,EAAE,MAAM,kBAAkB,CAAC,MAAM,CAAC,GAAG,MAAM;IAI7D;;;;;;OAMG;IACH,kBAAkB,CAAC,IAAI,CAAC,EAAE,MAAM,kBAAkB,CAAC,MAAM,CAAC,GAAG,IAAI;CAQlE;AAED;;GAEG;AACH,qBAAa,iBAAiB,CAC5B,MAAM,SAAS,kBAAkB,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,EACtD,IAAI,SAAS,SAAS,GAAG,SAAS,EAClC,KAAK,GAAG,OAAO;;gBAMH,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;IAO/D,CAAC,aAAa,CAAC,IAAI,IAAI;CAGxB"} \ No newline at end of file +{"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/common/EventEmitter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAa,EAAC,KAAK,OAAO,EAAC,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,OAAO,CA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AG,EACT,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,GAChD,IAAI;IAIP;;;;;OAKG;IACH,IAAI,CAAC,GAAG,SAAS,MAAM,kBAAkB,CAAC,MAAM,CAAC,EAC/C,IAAI,EAAE,GAAG,EACT,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,GAChD,IAAI;IASP;;;;;OAKG;IACH,aAAa,CAAC,IAAI,EAAE,MAAM,kBAAkB,CAAC,MAAM,CAAC,GAAG,MAAM;IAI7D;;;;;;OAMG;IACH,kBAAkB,CAAC,IAAI,CAAC,EAAE,MAAM,kBAAkB,CAAC,MAAM,CAAC,GAAG,IAAI;IAQjE;;OAEG;IACH,CAAC,aAAa,CAAC,IAAI,IAAI;CAQxB;AAED;;GAEG;AACH,qBAAa,iBAAiB,CAC5B,MAAM,SAAS,kBAAkB,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,EACtD,IAAI,SAAS,SAAS,GAAG,SAAS,EAClC,KAAK,GAAG,OAAO;;gBAMH,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;IAO/D,CAAC,aAAa,CAAC,IAAI,IAAI;CAGxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js index 36584bcd..fdcb4711 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js @@ -27,10 +27,12 @@ class EventEmitter { #emitter; #handlers = new Map(); /** + * If you pass an emitter, the returned emitter will wrap the passed emitter. + * * @internal */ - constructor() { - this.#emitter = (0, mitt_js_1.default)(this.#handlers); + constructor(emitter = (0, mitt_js_1.default)(new Map())) { + this.#emitter = emitter; } /** * Bind an event listener to fire when an event occurs. @@ -39,6 +41,13 @@ class EventEmitter { * @returns `this` to enable you to chain method calls. */ on(type, handler) { + const handlers = this.#handlers.get(type); + if (handlers === undefined) { + this.#handlers.set(type, [handler]); + } + else { + handlers.push(handler); + } this.#emitter.on(type, handler); return this; } @@ -49,25 +58,18 @@ class EventEmitter { * @returns `this` to enable you to chain method calls. */ off(type, handler) { - this.#emitter.off(type, handler); - return this; - } - /** - * Remove an event listener. - * - * @deprecated please use {@link EventEmitter.off} instead. - */ - removeListener(type, handler) { - this.off(type, handler); - return this; - } - /** - * Add an event listener. - * - * @deprecated please use {@link EventEmitter.on} instead. - */ - addListener(type, handler) { - this.on(type, handler); + const handlers = this.#handlers.get(type) ?? []; + if (handler === undefined) { + for (const handler of handlers) { + this.#emitter.off(type, handler); + } + this.#handlers.delete(type); + return this; + } + const index = handlers.lastIndexOf(handler); + if (index > -1) { + this.#emitter.off(type, ...handlers.splice(index, 1)); + } return this; } /** @@ -81,6 +83,22 @@ class EventEmitter { this.#emitter.emit(type, event); return this.listenerCount(type) > 0; } + /** + * Remove an event listener. + * + * @deprecated please use {@link EventEmitter.off} instead. + */ + removeListener(type, handler) { + return this.off(type, handler); + } + /** + * Add an event listener. + * + * @deprecated please use {@link EventEmitter.on} instead. + */ + addListener(type, handler) { + return this.on(type, handler); + } /** * Like `on` but the listener will only be fired once and then it will be removed. * @param type - the event you'd like to listen to @@ -111,14 +129,23 @@ class EventEmitter { * @returns `this` to enable you to chain method calls. */ removeAllListeners(type) { - if (type === undefined || type === '*') { - this.#handlers.clear(); - } - else { - this.#handlers.delete(type); + if (type !== undefined) { + return this.off(type); } + this[disposable_js_1.disposeSymbol](); return this; } + /** + * @internal + */ + [disposable_js_1.disposeSymbol]() { + for (const [type, handlers] of this.#handlers) { + for (const handler of handlers) { + this.#emitter.off(type, handler); + } + } + this.#handlers.clear(); + } } exports.EventEmitter = EventEmitter; /** diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js.map index 7f7af59b..67e08c98 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js.map @@ -1 +1 @@ -{"version":3,"file":"EventEmitter.js","sourceRoot":"","sources":["../../../../src/common/EventEmitter.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,6EAGwC;AACxC,yDAAoD;AAmDpD;;;;;;;;;;;GAWG;AACH,MAAa,YAAY;IAGvB,QAAQ,CAAgD;IACxD,SAAS,GAA0D,IAAI,GAAG,EAAE,CAAC;IAE7E;;OAEG;IACH;QACE,IAAI,CAAC,QAAQ,GAAG,IAAA,iBAAI,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACvC,CAAC;IAED;;;;;OAKG;IACH,EAAE,CACA,IAAS,EACT,OAAiD;QAEjD,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,IAAS,EACT,OAAkD;QAElD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;OAIG;IACH,cAAc,CACZ,IAAS,EACT,OAAiD;QAEjD,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;OAIG;IACH,WAAW,CACT,IAAS,EACT,OAAiD;QAEjD,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;O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C,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7C,CAAC;IAED,CAAC,6BAAa,CAAC;QACb,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;CACF;AAnBD,8CAmBC"} \ No newline at end of file +{"version":3,"file":"EventEmitter.js","sourceRoot":"","sources":["../../../../src/common/EventEmitter.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,6EAAkE;AAClE,yDAAoD;AAmDpD;;;;;;;;;;;GAWG;AACH,MAAa,YAAY;IAGvB,QAAQ,CAA6D;IACrE,SAAS,GAAG,IAAI,GAAG,EAA2C,CAAC;IAE/D;;;;OAIG;IACH,YACE,UAAsE,IAAA,iBAAI,EACxE,IAAI,GAAG,EAAE,CACV;QAED,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;IAED;;;;;OAKG;IACH,EAAE,CACA,IAAS,EACT,OAAiD;QAEjD,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;QACtC,CAAC;aAAM,CAAC;YACN,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzB,CAAC;QAED,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,IAAS,EACT,OAAkD;QAElD,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAChD,IAAI,OAAO,KAAK,SAAS,EAAE,C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AAQ,CAAC,CAAC;IAC9C,CAAC;CACF;AAnBD,8CAmBC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts index 3e0f9be9..623add71 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts @@ -144,6 +144,18 @@ export interface PDFOptions { * @experimental */ tagged?: boolean; + /** + * Generate document outline. + * + * @remarks + * If this is enabled the PDF will also be tagged (accessible) + * Currently only works in old Headless (headless = true) + * crbug/840455#c47 + * + * @defaultValue `false` + * @experimental + */ + outline?: boolean; /** * Timeout in milliseconds. Pass `0` to disable timeout. * @defaultValue `30_000` @@ -173,7 +185,7 @@ export interface ParsedPDFOptionsInterface { /** * @internal */ -export type ParsedPDFOptions = Required & ParsedPDFOptionsInterface>; +export type ParsedPDFOptions = Required & ParsedPDFOptionsInterface>; /** * @internal */ diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts.map index 6d5d8e8c..36caa01c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"PDFOptions.d.ts","sourceRoot":"","sources":["../../../../src/common/PDFOptions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAA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H,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE;QACN,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACrC,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAC,GAAG,yBAAyB,CAChE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,oBAAoB,EAAE,qBAAqB,CAajE,CAAC"} \ No newline at end of file +{"version":3,"file":"PDFOptions.d.ts","sourceRoot":"","sources":["../../../../src/common/PDFOptions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,QAAQ,GACR,OAAO,GACP,SAAS,GACT,QAAQ,GACR,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAET;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,MAAM,WAAW,GACnB,SAAS,CAAC,oBAAoB,CAAC,GAC/B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;QACZ,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACrC,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC,GAAG,yBAAyB,CAC5E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,oBAAoB,EAAE,qBAAqB,CAajE,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js.map index 863d0fd1..e6f3335f 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js.map @@ -1 +1 @@ -{"version":3,"file":"PDFOptions.js","sourceRoot":"","sources":["../../../../src/common/PDFOptions.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAoMH;;GAEG;AACU,QAAA,YAAY,GACvB;IACE,MAAM,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAC;IAChC,KAAK,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAC;IAC/B,OAAO,EAAE,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAC;IAChC,MAAM,EAAE,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAC;IAC/B,EAAE,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC;IAC/B,EAAE,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC;IAC/B,EAAE,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,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E,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC;CACvB,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.d.ts deleted file mode 100644 index 61cb6c68..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.d.ts +++ /dev/null @@ -1 +0,0 @@ -//# sourceMappingURL=Browser.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.d.ts.map deleted file mode 100644 index 5a2c7169..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Browser.d.ts","sourceRoot":"","sources":["../../../../../src/common/bidi/Browser.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.js deleted file mode 100644 index bd571ffb..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -//# sourceMappingURL=Browser.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.js.map deleted file mode 100644 index 23380fac..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/bidi/Browser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../../src/common/bidi/Browser.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/types.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/types.d.ts index 3c4bdca7..d0aaaa3e 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/types.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/types.d.ts @@ -6,6 +6,10 @@ import type { ElementHandle } from '../api/ElementHandle.js'; import type { JSHandle } from '../api/JSHandle.js'; import type { LazyArg } from './LazyArg.js'; +/** + * @public + */ +export type AwaitablePredicate = (value: T) => Awaitable; /** * @public */ diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/types.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/types.d.ts.map index f0cd2f06..482f5427 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/types.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/types.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/common/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,IAAI,IAAI,IAAI,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,QAAQ,IAAI,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB;;OAEG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AE,GAAG,CAAC,CAAC;AAEvD,KAAK,IAAI,CACP,GAAG,SAAS,SAAS,OAAO,EAAE,EAC9B,MAAM,EACN,GAAG,SAAS,OAAO,EAAE,GAAG,EAAE,IACxB,GAAG,SAAS,CAAC,MAAM,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,GACvC,IAAI,SAAS,MAAM,GACjB,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,GAClB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,IAAI,CAAC,CAAC,GACpC,GAAG,CAAC;AAER,KAAK,0BAA0B,CAC7B,MAAM,SAAS,SAAS,MAAM,EAAE,EAChC,UAAU,SAAS,SAAS,MAAM,EAAE,EACpC,GAAG,SAAS,MAAM,EAAE,GAAG,EAAE,IACvB,MAAM,SAAS,CAAC,MAAM,UAAU,EAAE,GAAG,MAAM,UAAU,CAAC,GACtD,UAAU,SAAS,MAAM,GACvB,UAAU,SAAS,SAAS,MAAM,EAAE,GAClC,0BAA0B,CACxB,UAAU,EACV,UAAU,EACV;IAAC,GAAG,GAAG;IAAE,GAAG,mBAAmB,CAAC,UAAU,EAAE,UAAU,CAAC;CAAC,CACzD,GACD,GAAG,GACL,GAAG,GACL,GAAG,CAAC;AAER,KAAK,KAAK,CACR,KAAK,SAAS,MAAM,EACpB,SAAS,SAAS,MAAM,EACxB,GAAG,SAAS,MAAM,EAAE,GAAG,EAAE,IACvB,KAAK,SAAS,GAAG,MAAM,MAAM,GAAG,SAAS,GAAG,MAAM,MAAM,EAAE,GAC1D,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,GAAG,GAAG,EAAE,MAAM,CAAC,CAAC,GAC1C,CAAC,GAAG,GAAG,EAAE,KAAK,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/common/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,aAAa,EAAC,M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,UAAU,EACV,UAAU,EACV;IAAC,GAAG,GAAG;IAAE,GAAG,mBAAmB,CAAC,UAAU,EAAE,UAAU,CAAC;CAAC,CACzD,GACD,GAAG,GACL,GAAG,GACL,GAAG,CAAC;AAER,KAAK,KAAK,CACR,KAAK,SAAS,MAAM,EACpB,SAAS,SAAS,MAAM,EACxB,GAAG,SAAS,MAAM,EAAE,GAAG,EAAE,IACvB,KAAK,SAAS,GAAG,MAAM,MAAM,GAAG,SAAS,GAAG,MAAM,MAAM,EAAE,GAC1D,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,GAAG,GAAG,EAAE,MAAM,CAAC,CAAC,GAC1C,CAAC,GAAG,GAAG,EAAE,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.d.ts index 1488acdb..b5773859 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.d.ts @@ -9,12 +9,10 @@ /// import type FS from 'fs/promises'; import type { Readable } from 'stream'; -import type { Protocol } from 'devtools-protocol'; -import { type Observable } from '../../third_party/rxjs/rxjs.js'; +import { Observable } from '../../third_party/rxjs/rxjs.js'; import type { CDPSession } from '../api/CDPSession.js'; -import type { Deferred } from '../util/Deferred.js'; import type { EventEmitter, EventType } from './EventEmitter.js'; -import type { NetworkManagerEvents } from './NetworkManagerEvents.js'; +import type { ParsedPDFOptions, PDFOptions } from './PDFOptions.js'; /** * @internal */ @@ -26,14 +24,6 @@ export declare const DEFAULT_VIEWPORT: Readonly<{ width: 800; height: 600; }>; -/** - * @internal - */ -export declare function createEvaluationError(details: Protocol.Runtime.ExceptionDetails): unknown; -/** - * @internal - */ -export declare function createClientError(details: Protocol.Runtime.ExceptionDetails): Error; /** * @internal */ @@ -55,10 +45,6 @@ export declare const withSourcePuppeteerURLIfNone: (functionName: * @internal */ export declare const getSourcePuppeteerURLIfAvailable: (object: T) => PuppeteerURL | undefined; -/** - * @internal - */ -export declare function valueFromRemoteObject(remoteObject: Protocol.Runtime.RemoteObject): any; /** * @internal */ @@ -83,14 +69,6 @@ export declare const isDate: (obj: unknown) => obj is Date; * @internal */ export declare function evaluationString(fun: Function | string, ...args: unknown[]): string; -/** - * @internal - */ -export declare function addPageBinding(type: string, name: string): void; -/** - * @internal - */ -export declare function pageBindingInitString(type: string, name: string): string; /** * @internal */ @@ -103,10 +81,6 @@ export declare function getReadableAsBuffer(readable: Readable, path?: string): * @internal */ export declare function getReadableFromProtocolStream(client: CDPSession, handle: string): Promise; -/** - * @internal - */ -export declare function getPageContent(): string; /** * @internal */ @@ -130,13 +104,22 @@ export declare function getSourceUrlComment(url: string): string; /** * @internal */ -export declare function waitForHTTP(networkManager: EventEmitter, eventName: EventType, urlOrPredicate: string | ((res: T) => boolean | Promise), -/** Time after the function will timeout */ -ms: number, cancelation: Deferred): Promise; +export declare const NETWORK_IDLE_TIME = 500; /** * @internal */ -export declare const NETWORK_IDLE_TIME = 500; +export declare function parsePDFOptions(options?: PDFOptions, lengthUnit?: 'in' | 'cm'): ParsedPDFOptions; +/** + * @internal + */ +export declare const unitToPixels: { + px: number; + in: number; + cm: number; + mm: number; +}; +/** + * @internal + */ +export declare function fromEmitterEvent, Event extends keyof Events>(emitter: EventEmitter, eventName: Event): Observable; //# sourceMappingURL=util.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.d.ts.map index 05e816be..a0e1be6c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/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CACvC,QAAQ,EAAE,QAAQ,EAClB,IAAI,CAAC,EAAE,MAAM,GACZ,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAuBxB;AAED;;GAEG;AACH,wBAAsB,6BAA6B,CACjD,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,QAAQ,CAAC,CAiCnB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,GACX,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,CAcjD;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAQrD;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,gCAAgC,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC;;GAEG;AACH,wBAAgB,eAAe,CAC7B,OAAO,GAAE,UAAe,EACxB,UAAU,GAAE,IAAI,GAAG,IAAW,GAC7B,gBAAgB,CAkDlB;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;CAKxB,CAAC;AAoCF;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,SAAS,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,EACzC,KAAK,SAAS,MAAM,MAAM,EAC1B,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAU5E"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.js index 540e16f5..19840b3f 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.js @@ -28,13 +28,14 @@ var __importStar = (this && this.__importStar) || function (mod) { return result; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.NETWORK_IDLE_TIME = exports.waitForHTTP = exports.getSourceUrlComment = exports.SOURCE_URL_REGEX = exports.UTILITY_WORLD_NAME = exports.timeout = exports.validateDialogType = exports.getPageContent = exports.getReadableFromProtocolStream = exports.getReadableAsBuffer = exports.importFSPromises = exports.pageBindingInitString = exports.addPageBinding = exports.evaluationString = exports.isDate = exports.isRegExp = exports.isPlainObject = exports.isNumber = exports.isString = exports.valueFromRemoteObject = exports.getSourcePuppeteerURLIfAvailable = exports.withSourcePuppeteerURLIfNone = exports.PuppeteerURL = exports.createClientError = exports.createEvaluationError = exports.DEFAULT_VIEWPORT = exports.debugError = void 0; +exports.fromEmitterEvent = exports.unitToPixels = exports.parsePDFOptions = exports.NETWORK_IDLE_TIME = exports.getSourceUrlComment = exports.SOURCE_URL_REGEX = exports.UTILITY_WORLD_NAME = exports.timeout = exports.validateDialogType = exports.getReadableFromProtocolStream = exports.getReadableAsBuffer = exports.importFSPromises = exports.evaluationString = exports.isDate = exports.isRegExp = exports.isPlainObject = exports.isNumber = exports.isString = exports.getSourcePuppeteerURLIfAvailable = exports.withSourcePuppeteerURLIfNone = exports.PuppeteerURL = exports.DEFAULT_VIEWPORT = exports.debugError = void 0; const rxjs_js_1 = require("../../third_party/rxjs/rxjs.js"); const environment_js_1 = require("../environment.js"); const assert_js_1 = require("../util/assert.js"); const ErrorLike_js_1 = require("../util/ErrorLike.js"); const Debug_js_1 = require("./Debug.js"); const Errors_js_1 = require("./Errors.js"); +const PDFOptions_js_1 = require("./PDFOptions.js"); /** * @internal */ @@ -43,105 +44,6 @@ exports.debugError = (0, Debug_js_1.debug)('puppeteer:error'); * @internal */ exports.DEFAULT_VIEWPORT = Object.freeze({ width: 800, height: 600 }); -/** - * @internal - */ -function createEvaluationError(details) { - let name; - let message; - if (!details.exception) { - name = 'Error'; - message = details.text; - } - else if ((details.exception.type !== 'object' || - details.exception.subtype !== 'error') && - !details.exception.objectId) { - return valueFromRemoteObject(details.exception); - } - else { - const detail = getErrorDetails(details); - name = detail.name; - message = detail.message; - } - const messageHeight = message.split('\n').length; - const error = new Error(message); - error.name = name; - const stackLines = error.stack.split('\n'); - const messageLines = stackLines.splice(0, messageHeight); - // The first line is this function which we ignore. - stackLines.shift(); - if (details.stackTrace && stackLines.length < Error.stackTraceLimit) { - for (const frame of details.stackTrace.callFrames.reverse()) { - if (PuppeteerURL.isPuppeteerURL(frame.url) && - frame.url !== PuppeteerURL.INTERNAL_URL) { - const url = PuppeteerURL.parse(frame.url); - stackLines.unshift(` at ${frame.functionName || url.functionName} (${url.functionName} at ${url.siteString}, :${frame.lineNumber}:${frame.columnNumber})`); - } - else { - stackLines.push(` at ${frame.functionName || ''} (${frame.url}:${frame.lineNumber}:${frame.columnNumber})`); - } - if (stackLines.length >= Error.stackTraceLimit) { - break; - } - } - } - error.stack = [...messageLines, ...stackLines].join('\n'); - return error; -} -exports.createEvaluationError = createEvaluationError; -/** - * @internal - */ -function createClientError(details) { - let name; - let message; - if (!details.exception) { - name = 'Error'; - message = details.text; - } - else if ((details.exception.type !== 'object' || - details.exception.subtype !== 'error') && - !details.exception.objectId) { - return valueFromRemoteObject(details.exception); - } - else { - const detail = getErrorDetails(details); - name = detail.name; - message = detail.message; - } - const error = new Error(message); - error.name = name; - const messageHeight = error.message.split('\n').length; - const messageLines = error.stack.split('\n').splice(0, messageHeight); - const stackLines = []; - if (details.stackTrace) { - for (const frame of details.stackTrace.callFrames) { - // Note we need to add `1` because the values are 0-indexed. - stackLines.push(` at ${frame.functionName || ''} (${frame.url}:${frame.lineNumber + 1}:${frame.columnNumber + 1})`); - if (stackLines.length >= Error.stackTraceLimit) { - break; - } - } - } - error.stack = [...messageLines, ...stackLines].join('\n'); - return error; -} -exports.createClientError = createClientError; -const getErrorDetails = (details) => { - let name = ''; - let message; - const lines = details.exception?.description?.split('\n at ') ?? []; - const size = Math.min(details.stackTrace?.callFrames.length ?? 0, lines.length - 1); - lines.splice(-size, size); - if (details.exception?.className) { - name = details.exception.className; - } - message = lines.join('\n'); - if (name && message.startsWith(`${name}: `)) { - message = message.slice(name.length + 2); - } - return { message, name }; -}; /** * @internal */ @@ -216,32 +118,6 @@ const getSourcePuppeteerURLIfAvailable = (object) => { return undefined; }; exports.getSourcePuppeteerURLIfAvailable = getSourcePuppeteerURLIfAvailable; -/** - * @internal - */ -function valueFromRemoteObject(remoteObject) { - (0, assert_js_1.assert)(!remoteObject.objectId, 'Cannot extract value when objectId is given'); - if (remoteObject.unserializableValue) { - if (remoteObject.type === 'bigint') { - return BigInt(remoteObject.unserializableValue.replace('n', '')); - } - switch (remoteObject.unserializableValue) { - case '-0': - return -0; - case 'NaN': - return NaN; - case 'Infinity': - return Infinity; - case '-Infinity': - return -Infinity; - default: - throw new Error('Unsupported unserializable value: ' + - remoteObject.unserializableValue); - } - } - return remoteObject.value; -} -exports.valueFromRemoteObject = valueFromRemoteObject; /** * @internal */ @@ -294,64 +170,6 @@ function evaluationString(fun, ...args) { return `(${fun})(${args.map(serializeArgument).join(',')})`; } exports.evaluationString = evaluationString; -/** - * @internal - */ -function addPageBinding(type, name) { - // This is the CDP binding. - // @ts-expect-error: In a different context. - const callCdp = globalThis[name]; - // Depending on the frame loading state either Runtime.evaluate or - // Page.addScriptToEvaluateOnNewDocument might succeed. Let's check that we - // don't re-wrap Puppeteer's binding. - if (callCdp[Symbol.toStringTag] === 'PuppeteerBinding') { - return; - } - // We replace the CDP binding with a Puppeteer binding. - Object.assign(globalThis, { - [name](...args) { - // This is the Puppeteer binding. - // @ts-expect-error: In a different context. - const callPuppeteer = globalThis[name]; - callPuppeteer.args ??= new Map(); - callPuppeteer.callbacks ??= new Map(); - const seq = (callPuppeteer.lastSeq ?? 0) + 1; - callPuppeteer.lastSeq = seq; - callPuppeteer.args.set(seq, args); - callCdp(JSON.stringify({ - type, - name, - seq, - args, - isTrivial: !args.some(value => { - return value instanceof Node; - }), - })); - return new Promise((resolve, reject) => { - callPuppeteer.callbacks.set(seq, { - resolve(value) { - callPuppeteer.args.delete(seq); - resolve(value); - }, - reject(value) { - callPuppeteer.args.delete(seq); - reject(value); - }, - }); - }); - }, - }); - // @ts-expect-error: In a different context. - globalThis[name][Symbol.toStringTag] = 'PuppeteerBinding'; -} -exports.addPageBinding = addPageBinding; -/** - * @internal - */ -function pageBindingInitString(type, name) { - return evaluationString(addPageBinding, type, name); -} -exports.pageBindingInitString = pageBindingInitString; /** * @internal */ @@ -441,24 +259,6 @@ async function getReadableFromProtocolStream(client, handle) { }); } exports.getReadableFromProtocolStream = getReadableFromProtocolStream; -/** - * @internal - */ -function getPageContent() { - let content = ''; - for (const node of document.childNodes) { - switch (node) { - case document.documentElement: - content += document.documentElement.outerHTML; - break; - default: - content += new XMLSerializer().serializeToString(node); - break; - } - } - return content; -} -exports.getPageContent = getPageContent; /** * @internal */ @@ -506,22 +306,109 @@ exports.getSourceUrlComment = getSourceUrlComment; /** * @internal */ -async function waitForHTTP(networkManager, eventName, urlOrPredicate, -/** Time after the function will timeout */ -ms, cancelation) { - return await (0, rxjs_js_1.firstValueFrom)((0, rxjs_js_1.fromEvent)(networkManager, eventName).pipe((0, rxjs_js_1.filterAsync)(async (http) => { - if ((0, exports.isString)(urlOrPredicate)) { - return urlOrPredicate === http.url(); - } - if (typeof urlOrPredicate === 'function') { - return !!(await urlOrPredicate(http)); - } - return false; - }), (0, rxjs_js_1.raceWith)(timeout(ms), (0, rxjs_js_1.from)(cancelation.valueOrThrow())))); -} -exports.waitForHTTP = waitForHTTP; +exports.NETWORK_IDLE_TIME = 500; /** * @internal */ -exports.NETWORK_IDLE_TIME = 500; +function parsePDFOptions(options = {}, lengthUnit = 'in') { + const defaults = { + scale: 1, + displayHeaderFooter: false, + headerTemplate: '', + footerTemplate: '', + printBackground: false, + landscape: false, + pageRanges: '', + preferCSSPageSize: false, + omitBackground: false, + tagged: false, + outline: false, + }; + let width = 8.5; + let height = 11; + if (options.format) { + const format = PDFOptions_js_1.paperFormats[options.format.toLowerCase()]; + (0, assert_js_1.assert)(format, 'Unknown paper format: ' + options.format); + width = format.width; + height = format.height; + } + else { + width = convertPrintParameterToInches(options.width, lengthUnit) ?? width; + height = + convertPrintParameterToInches(options.height, lengthUnit) ?? height; + } + const margin = { + top: convertPrintParameterToInches(options.margin?.top, lengthUnit) || 0, + left: convertPrintParameterToInches(options.margin?.left, lengthUnit) || 0, + bottom: convertPrintParameterToInches(options.margin?.bottom, lengthUnit) || 0, + right: convertPrintParameterToInches(options.margin?.right, lengthUnit) || 0, + }; + // Quirk https://bugs.chromium.org/p/chromium/issues/detail?id=840455#c44 + if (options.outline) { + options.tagged = true; + } + return { + ...defaults, + ...options, + width, + height, + margin, + }; +} +exports.parsePDFOptions = parsePDFOptions; +/** + * @internal + */ +exports.unitToPixels = { + px: 1, + in: 96, + cm: 37.8, + mm: 3.78, +}; +function convertPrintParameterToInches(parameter, lengthUnit = 'in') { + if (typeof parameter === 'undefined') { + return undefined; + } + let pixels; + if ((0, exports.isNumber)(parameter)) { + // Treat numbers as pixel values to be aligned with phantom's paperSize. + pixels = parameter; + } + else if ((0, exports.isString)(parameter)) { + const text = parameter; + let unit = text.substring(text.length - 2).toLowerCase(); + let valueText = ''; + if (unit in exports.unitToPixels) { + valueText = text.substring(0, text.length - 2); + } + else { + // In case of unknown unit try to parse the whole parameter as number of pixels. + // This is consistent with phantom's paperSize behavior. + unit = 'px'; + valueText = text; + } + const value = Number(valueText); + (0, assert_js_1.assert)(!isNaN(value), 'Failed to parse parameter value: ' + text); + pixels = value * exports.unitToPixels[unit]; + } + else { + throw new Error('page.pdf() Cannot handle parameter type: ' + typeof parameter); + } + return pixels / exports.unitToPixels[lengthUnit]; +} +/** + * @internal + */ +function fromEmitterEvent(emitter, eventName) { + return new rxjs_js_1.Observable(subscriber => { + const listener = (event) => { + subscriber.next(event); + }; + emitter.on(eventName, listener); + return () => { + emitter.off(eventName, listener); + }; + }); +} +exports.fromEmitterEvent = fromEmitterEvent; //# sourceMappingURL=util.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.js.map index 1cef9d9b..dbb1cbb9 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/common/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/common/util.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;AAOH,4DAUwC;AAExC,sDAAyC;AACzC,iDAAyC;AAEzC,uDAAiD;AAEjD,yCAAiC;AACjC,2CAAyC;AAIzC;;GAEG;AACU,QAAA,UAAU,GAAG,IAAA,gBAAK,EAAC,iBAAiB,CAAC,CAAC;AAEnD;;GAEG;AACU,QAAA,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAC,CAAC,CAAC;AAEzE;;GAEG;AACH,SAAgB,qBAAqB,CACnC,OAA0C;IAE1C,IAAI,IAAY,CAAC;IACjB,IAAI,OAAe,CAAC;IACpB,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;QACvB,IAAI,GAAG,OAAO,CAAC;QACf,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IACzB,CAAC;SAAM,IACL,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,KAAK,QAAQ;QAClC,OAAO,CAAC,SAAS,CAAC,OAAO,KAAK,OAAO,CAAC;QACxC,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAC3B,CAAC;QACD,OAAO,qBAAqB,CAAC,OAAO,CAAC,SAAS,CA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Y,EAAE,CAAC,CAAC,CACxD,CACF,CAAC;AACJ,CAAC;AAxBD,kCAwBC;AAED;;GAEG;AACU,QAAA,iBAAiB,GAAG,GAAG,CAAC"} \ No newline at end of file +{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/common/util.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;AAKH,4DAA6E;AAE7E,sDAAyC;AACzC,iDAAyC;AACzC,uDAAiD;AAEjD,yCAAiC;AACjC,2CAAyC;AAOzC,mDAA6C;AAE7C;;GAEG;AACU,QAAA,UAAU,GAAG,IAAA,gBAAK,EAAC,iBAAiB,CAAC,CAAC;AAEnD;;GAEG;AACU,QAAA,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAC,CAAC,CAAC;AAEzE;;GAEG;AACH,MAAM,UAAU,GAAG,MAAM,CAAC,6CAA6C,CAAC,CAAC;AAEzE;;GAEG;AACH,MAAa,YAAY;IACvB,MAAM,CAAC,YAAY,GAAG,eAAe,CAAC;IAEtC,MAAM,CAAC,YAAY,CACjB,YAAoB,EACpB,IAAqB;QAErB,MAAM,GAAG,GAAG,IAAI,YAAY,EAAE,CAAC;QAC/B,GAAG,CAAC,aAAa,GAAG,YAAY,CAAC;QACjC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClC,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAC,KAAK,GAAG,CAAC,GAAW,EAAgB,EAAE;QAC3C,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAChC,MAAM,CAAC,YAAY,GAAG,EAAE,EAAE,UAAU,GAAG,EAAE,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC5D,MAAM,YAAY,GAAG,IAAI,YAAY,EAAE,CAAC;QACxC,YAAY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AACL,CAAC;AAbD,4CAaC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts index acd0a27f..23cf209f 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts @@ -7,8 +7,4 @@ * @internal */ export declare const isNode: boolean; -/** - * @internal - */ -export declare const DEFERRED_PROMISE_DEBUG_TIMEOUT: number; //# sourceMappingURL=environment.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts.map index 8e6f123e..e481532f 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/environment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,MAAM,SAAwD,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,8BAA8B,QAInC,CAAC"} \ No newline at end of file +{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/environment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,MAAM,SAAwD,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js index d170c8a9..5365afce 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js @@ -5,16 +5,9 @@ * SPDX-License-Identifier: Apache-2.0 */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.DEFERRED_PROMISE_DEBUG_TIMEOUT = exports.isNode = void 0; +exports.isNode = void 0; /** * @internal */ exports.isNode = !!(typeof process !== 'undefined' && process.version); -/** - * @internal - */ -exports.DEFERRED_PROMISE_DEBUG_TIMEOUT = typeof process !== 'undefined' && - typeof process.env['PUPPETEER_DEFERRED_PROMISE_DEBUG_TIMEOUT'] !== 'undefined' - ? Number(process.env['PUPPETEER_DEFERRED_PROMISE_DEBUG_TIMEOUT']) - : -1; //# sourceMappingURL=environment.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js.map index 864edc4c..5882e321 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js.map @@ -1 +1 @@ -{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../src/environment.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH;;GAEG;AACU,QAAA,MAAM,GAAG,CAAC,CAAC,CAAC,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;AAE5E;;GAEG;AACU,QAAA,8BAA8B,GACzC,OAAO,OAAO,KAAK,WAAW;IAC9B,OAAO,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,KAAK,WAAW;IAC5E,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../src/environment.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH;;GAEG;AACU,QAAA,MAAM,GAAG,CAAC,CAAC,CAAC,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.d.ts index b9b2e005..900c9bcf 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.d.ts @@ -5,5 +5,5 @@ * * @internal */ -export declare const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{#e=!1;#t=!1;#n;#r=()=>{};#o=new Promise(e=>{this.#r=e});#s;#i;constructor(e){e&&e.timeout>0&&(this.#i=new S(e.message),this.#s=setTimeout(()=>{this.reject(this.#i)},e.timeout))}#l(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#l(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#l(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}async valueOrThrow(){if(await this.#o,this.#t)throw this.#n;return this.#n}static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}};var X=new Map,G=t=>{let e=X.get(t);return e||(e=new Function(`return ${t}`)(),X.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var E=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},P=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var W={};u(W,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)\\s*(?:(?\\W?=)\\s*(?.+?)\\s*(\\s(?[iIsS]))?\\s*)?\\]/gu,id:/#(?[-\\w\\P{ASCII}]+)/gu,class:/\\.(?[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?[-\\w\\P{ASCII}]+)(?:\\((?\u00B6*)\\))?/gu,\"pseudo-class\":/:(?[-\\w\\P{ASCII}]+)(?:\\((?\u00B6*)\\))?/gu,universal:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?\\xB6*)\",\"(?.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Ee=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Ee.observe(t,{childList:!0,characterData:!0,subtree:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Pe=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Pe.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var U={};u(U,{xpathQuerySelectorAll:()=>j});var j=function*(t,e,n=-1){let o=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),i=[],s;for(;(s=o.iterateNext())&&(i.push(s),!(n&&i.length===n)););for(let l=0;l\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*j(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},V=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...W,...Q,...$,...U,Deferred:f,createFunction:G,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:E,RAFPoller:P}),Re=ke;\n/**\n * @license\n * Copyright 2018 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2023 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2022 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2020 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n"; +export declare const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}#e=!1;#t=!1;#n;#r;#o=new Promise(e=>{this.#r=e});#s;#l;constructor(e){e&&e.timeout>0&&(this.#l=new S(e.message),this.#s=setTimeout(()=>{this.reject(this.#l)},e.timeout))}#a(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#a(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#a(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}#i;valueOrThrow(){return this.#i||(this.#i=(async()=>{if(await this.#o,this.#t)throw this.#n;return this.#n})()),this.#i}};var z=new Map,G=t=>{let e=z.get(t);return e||(e=new Function(`return ${t}`)(),z.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var E=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},P=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var W={};u(W,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)\\s*(?:(?\\W?=)\\s*(?.+?)\\s*(\\s(?[iIsS]))?\\s*)?\\]/gu,id:/#(?[-\\w\\P{ASCII}]+)/gu,class:/\\.(?[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?[-\\w\\P{ASCII}]+)(?:\\((?\u00B6*)\\))?/gu,\"pseudo-class\":/:(?[-\\w\\P{ASCII}]+)(?:\\((?\u00B6*)\\))?/gu,universal:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?\\xB6*)\",\"(?.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Ee=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Ee.observe(t,{childList:!0,characterData:!0,subtree:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Pe=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Pe.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var U={};u(U,{xpathQuerySelectorAll:()=>j});var j=function*(t,e,n=-1){let o=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),i=[],s;for(;(s=o.iterateNext())&&(i.push(s),!(n&&i.length===n)););for(let l=0;l\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*j(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},V=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...W,...Q,...$,...U,Deferred:f,createFunction:G,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:E,RAFPoller:P}),Re=ke;\n/**\n * @license\n * Copyright 2018 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2023 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2022 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2020 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n"; //# sourceMappingURL=injected.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.d.ts.map index c3fdb582..3c65e450 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"injected.d.ts","sourceRoot":"","sources":["../../../../src/generated/injected.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,6jbAAmjb,CAAC"} \ No newline at end of file +{"version":3,"file":"injected.d.ts","sourceRoot":"","sources":["../../../../src/generated/injected.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,ombAA0lb,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.js index b55e790d..a8fe16f3 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.js @@ -8,5 +8,5 @@ exports.source = void 0; * * @internal */ -exports.source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{#e=!1;#t=!1;#n;#r=()=>{};#o=new Promise(e=>{this.#r=e});#s;#i;constructor(e){e&&e.timeout>0&&(this.#i=new S(e.message),this.#s=setTimeout(()=>{this.reject(this.#i)},e.timeout))}#l(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#l(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#l(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}async valueOrThrow(){if(await this.#o,this.#t)throw this.#n;return this.#n}static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}};var X=new Map,G=t=>{let e=X.get(t);return e||(e=new Function(`return ${t}`)(),X.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var E=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},P=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var W={};u(W,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)\\s*(?:(?\\W?=)\\s*(?.+?)\\s*(\\s(?[iIsS]))?\\s*)?\\]/gu,id:/#(?[-\\w\\P{ASCII}]+)/gu,class:/\\.(?[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?[-\\w\\P{ASCII}]+)(?:\\((?¶*)\\))?/gu,\"pseudo-class\":/:(?[-\\w\\P{ASCII}]+)(?:\\((?¶*)\\))?/gu,universal:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?\\xB6*)\",\"(?.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Ee=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Ee.observe(t,{childList:!0,characterData:!0,subtree:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Pe=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Pe.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var U={};u(U,{xpathQuerySelectorAll:()=>j});var j=function*(t,e,n=-1){let o=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),i=[],s;for(;(s=o.iterateNext())&&(i.push(s),!(n&&i.length===n)););for(let l=0;l\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*j(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},V=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...W,...Q,...$,...U,Deferred:f,createFunction:G,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:E,RAFPoller:P}),Re=ke;\n/**\n * @license\n * Copyright 2018 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2023 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2022 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2020 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n"; +exports.source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}#e=!1;#t=!1;#n;#r;#o=new Promise(e=>{this.#r=e});#s;#l;constructor(e){e&&e.timeout>0&&(this.#l=new S(e.message),this.#s=setTimeout(()=>{this.reject(this.#l)},e.timeout))}#a(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#a(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#a(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}#i;valueOrThrow(){return this.#i||(this.#i=(async()=>{if(await this.#o,this.#t)throw this.#n;return this.#n})()),this.#i}};var z=new Map,G=t=>{let e=z.get(t);return e||(e=new Function(`return ${t}`)(),z.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var E=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},P=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var W={};u(W,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)\\s*(?:(?\\W?=)\\s*(?.+?)\\s*(\\s(?[iIsS]))?\\s*)?\\]/gu,id:/#(?[-\\w\\P{ASCII}]+)/gu,class:/\\.(?[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?[-\\w\\P{ASCII}]+)(?:\\((?¶*)\\))?/gu,\"pseudo-class\":/:(?[-\\w\\P{ASCII}]+)(?:\\((?¶*)\\))?/gu,universal:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?\\xB6*)\",\"(?.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Ee=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Ee.observe(t,{childList:!0,characterData:!0,subtree:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Pe=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Pe.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var U={};u(U,{xpathQuerySelectorAll:()=>j});var j=function*(t,e,n=-1){let o=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),i=[],s;for(;(s=o.iterateNext())&&(i.push(s),!(n&&i.length===n)););for(let l=0;l\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*j(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},V=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...W,...Q,...$,...U,Deferred:f,createFunction:G,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:E,RAFPoller:P}),Re=ke;\n/**\n * @license\n * Copyright 2018 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2023 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2022 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2020 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n"; //# sourceMappingURL=injected.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.js.map index be9813ef..cac12838 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/injected.js.map @@ -1 +1 @@ -{"version":3,"file":"injected.js","sourceRoot":"","sources":["../../../../src/generated/injected.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACU,QAAA,MAAM,GAAG,gjbAAgjb,CAAC"} \ No newline at end of file +{"version":3,"file":"injected.js","sourceRoot":"","sources":["../../../../src/generated/injected.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACU,QAAA,MAAM,GAAG,ulbAAulb,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.d.ts index 8b5d1ad5..3d86f353 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.d.ts @@ -1,5 +1,5 @@ /** * @internal */ -export declare const packageVersion = "21.7.0"; +export declare const packageVersion = "21.11.0"; //# sourceMappingURL=version.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.d.ts.map index 3f56535d..87bad7d5 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../src/generated/version.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,cAAc,WAAW,CAAC"} \ No newline at end of file +{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../src/generated/version.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,cAAc,YAAY,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.js index 0f7430cc..3283542c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.js @@ -4,5 +4,5 @@ exports.packageVersion = void 0; /** * @internal */ -exports.packageVersion = '21.7.0'; +exports.packageVersion = '21.11.0'; //# sourceMappingURL=version.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.js.map index 9c7464de..38e640e8 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/generated/version.js.map @@ -1 +1 @@ -{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../src/generated/version.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,cAAc,GAAG,QAAQ,CAAC"} \ No newline at end of file +{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../src/generated/version.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,cAAc,GAAG,SAAS,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/injected.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/injected.d.ts index 6b24cfeb..8d144cd2 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/injected.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/injected/injected.d.ts @@ -27,7 +27,7 @@ declare const PuppeteerUtil: Readonly<{ pierceQuerySelector: (root: Node, selector: string) => Element | null; pierceQuerySelectorAll: (element: Node, selector: string) => Element[]; customQuerySelectors: { - "__#50450@#selectors": Map; + "__#51577@#selectors": Map; register(name: string, handler: import("../puppeteer-core.js").CustomQueryHandler): void; unregister(name: string): void; get(name: string): CustomQuerySelectors.CustomQuerySelector | undefined; diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.d.ts index 6cbf471f..badc4c9f 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.d.ts @@ -24,7 +24,7 @@ export declare class ChromeLauncher extends ProductLauncher { isTemp: boolean; }): Promise; defaultArgs(options?: BrowserLaunchArgumentOptions): string[]; - executablePath(channel?: ChromeReleaseChannel): string; + executablePath(channel?: ChromeReleaseChannel, headless?: boolean | 'new'): string; } /** * Extracts all features from the given command-line flag diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map index 785dbaac..79f84072 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ChromeLauncher.d.ts","sourceRoot":"","sources":["../../../../src/node/ChromeLauncher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAYH,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAI/C,OAAO,KAAK,EACV,4BAA4B,EAC5B,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,eAAe,EAAE,KAAK,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAGt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AAO,CAAC,OAAO,CAAC;IA2C3E;;OAEG;IACY,sBAAsB,CACnC,OAAO,GAAE,0BAA+B,GACvC,OAAO,CAAC,kBAAkB,CAAC;IA0E9B;;OAEG;IACY,gBAAgB,CAC7B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE;QAAC,MAAM,EAAE,OAAO,CAAA;KAAC,GACtB,OAAO,CAAC,IAAI,CAAC;IAWP,WAAW,CAAC,OAAO,GAAE,4BAAiC,GAAG,MAAM,EAAE;IAgGjE,cAAc,CACrB,OAAO,CAAC,EAAE,oBAAoB,EAC9B,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,GACzB,MAAM;CAUV;AAiBD;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,MAAM,EAAO,GAAG,MAAM,EAAE,CAW1E;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAW3E"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js index ce2d0ab3..a48083ea 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js @@ -100,7 +100,7 @@ class ChromeLauncher extends ProductLauncher_js_1.ProductLauncher { let chromeExecutable = executablePath; if (!chromeExecutable) { (0, assert_js_1.assert)(channel || !this.puppeteer._isPuppeteerCore, `An \`executablePath\` or \`channel\` must be specified for \`puppeteer-core\``); - chromeExecutable = this.executablePath(channel); + chromeExecutable = this.executablePath(channel, options.headless ?? true); } return { executablePath: chromeExecutable, @@ -172,6 +172,7 @@ class ChromeLauncher extends ProductLauncher_js_1.ProductLauncher { '--disable-sync', '--enable-automation', '--export-tagged-pdf', + '--generate-pdf-document-outline', '--force-color-profile=srgb', '--metrics-recording-only', '--no-first-run', @@ -198,7 +199,7 @@ class ChromeLauncher extends ProductLauncher_js_1.ProductLauncher { chromeArguments.push(...args); return chromeArguments; } - executablePath(channel) { + executablePath(channel, headless) { if (channel) { return (0, browsers_1.computeSystemExecutablePath)({ browser: browsers_1.Browser.CHROME, @@ -206,7 +207,7 @@ class ChromeLauncher extends ProductLauncher_js_1.ProductLauncher { }); } else { - return this.resolveExecutablePath(); + return this.resolveExecutablePath(headless); } } } diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js.map index 067c6e81..6d26a6c1 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js.map @@ -1 +1 @@ -{"version":3,"file":"ChromeLauncher.js","sourceRoot":"","sources":["../../../../src/node/ChromeLauncher.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,0CAAoC;AACpC,4CAAoB;AACpB,gDAAwB;AAExB,kDAI6B;AAG7B,+CAA6C;AAC7C,iDAAyC;AAOzC,6DAA8E;AAE9E,wCAAgC;AAEhC;;GAEG;AACH,MAAa,cAAe,SAAQ,oCAAe;IACjD,YAAY,SAAwB;QAClC,KAAK,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC7B,CAAC;IAEQ,MAAM,CAAC,UAAsC,EAAE;QACtD,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC;QAC1C,IACE,QAAQ,KAAK,IAAI;YACjB,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,KAAK,MAAM;YAChD,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC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C,EAAE;QACV,OAAO,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;IAC9D,CAAC,CAAC;SACD,GAAG,CAAC,CAAC,CAAC,EAAE;QACP,OAAO,CAAC,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;IACxD,CAAC,CAAC;SACD,MAAM,CAAC,CAAC,CAAC,EAAE;QACV,OAAO,CAAC,CAAC;IACX,CAAC,CAAa,CAAC;AACnB,CAAC;AAXD,kCAWC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAC,KAAe,EAAE,IAAY;IAC/D,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,IAAI,IAAI,KAAK,CAAC,CAAC;IACxC,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QACxB,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,EAAE,CAAC;YAC1B,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACrB,CAAC;aAAM,CAAC;YACN,CAAC,EAAE,CAAC;QACN,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAXD,kDAWC"} \ No newline at end of file +{"version":3,"file":"ChromeLauncher.js","sourceRoot":"","sources":["../../../../src/node/ChromeLauncher.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,0CAAoC;AACpC,4CAAoB;AACpB,gDAAwB;AAExB,kDAI6B;AAG7B,+CAA6C;AAC7C,iDAAyC;AAOzC,6DAA8E;AAE9E,wCAAgC;AAEhC;;GAEG;AACH,MAAa,cAAe,SAAQ,oCAAe;IACjD,YAAY,SAAwB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aAAM,CAAC;YACN,CAAC,EAAE,CAAC;QACN,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAXD,kDAWC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map index c54f75c6..c49e4de5 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"FirefoxLauncher.d.ts","sourceRoot":"","sources":["../../../../src/node/FirefoxLauncher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAkBH,OAAO,KAAK,EACV,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,eAAe,EAAE,KAAK,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAGtD;;GAEG;AACH,qBAAa,eAAgB,SAAQ,eAAe;gBACtC,SAAS,EAAE,aAAa;IAIpC,MAAM,CAAC,cAAc,CACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3C,QAAQ,CAAC,EAAE,KAAK,GAAG,eAAe,GACjC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAkB1B;;OAEG;IACY,sBAAsB,CACnC,OAAO,GAAE,0BAA+B,GACvC,OAAO,CAAC,kBAAkB,CAAC;IAwF9B;;OAEG;IACY,gBAAgB,CAC7B,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE;QAAC,MAAM,EAAE,OAAO,CAAA;KAAC,GACtB,OAAO,CAAC,IAAI,CAAC;IA0BP,cAAc,IAAI,MAAM;IAiBxB,WAAW,CAAC,OAAO,GAAE,4BAAiC,GAAG,MAAM,EAAE;CAsC3E"} \ No newline at end of file +{"version":3,"file":"FirefoxLauncher.d.ts","sourceRoot":"","sources":["../../../../src/node/FirefoxLauncher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAkBH,OAAO,KAAK,EACV,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,eAAe,EAAE,KAAK,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAGtD;;GAEG;AACH,qBAAa,eAAgB,SAAQ,eAAe;gBACtC,SAAS,EAAE,aAAa;IAIpC,MAAM,CAAC,cAAc,CACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3C,QAAQ,CAAC,EAAE,KAAK,GAAG,eAAe,GACjC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAoB1B;;OAEG;IACY,sBAAsB,CACnC,OAAO,GAAE,0BAA+B,GACvC,OAAO,CAAC,kBAAkB,CAAC;IAwF9B;;OAEG;IACY,gBAAgB,CAC7B,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE;QAAC,MAAM,EAAE,OAAO,CAAA;KAAC,GACtB,OAAO,CAAC,IAAI,CAAC;IA0BP,cAAc,IAAI,MAAM;IAiBxB,WAAW,CAAC,OAAO,GAAE,4BAAiC,GAAG,MAAM,EAAE;CAsC3E"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.js index 058d232b..8c31b4f6 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.js @@ -31,6 +31,8 @@ class FirefoxLauncher extends ProductLauncher_js_1.ProductLauncher { ...(protocol === 'webDriverBiDi' ? {} : { + // Do not close the window when the last tab gets closed + 'browser.tabs.closeWindowWithLastTab': false, // Temporarily force disable BFCache in parent (https://bit.ly/bug-1732263) 'fission.bfcacheInParent': false, }), diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.js.map index 8f5bdc11..94ce821d 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/FirefoxLauncher.js.map @@ -1 +1 @@ -{"version":3,"file":"FirefoxLauncher.js","sourceRoot":"","sources":["../../../../src/node/FirefoxLauncher.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,4CAAoB;AACpB,0CAAoD;AACpD,4CAAoB;AACpB,gDAAwB;AAExB,kDAM6B;AAE7B,+CAA6C;AAC7C,iDAAyC;AAMzC,6DAA8E;AAE9E,wCAAgC;AAEhC;;GAEG;AACH,MAAa,eAAgB,SAAQ,oCAAe;IAClD,YAAY,SAAwB;QAClC,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM,CAAC,cAAc,CACnB,iBAA2C,EAC3C,QAAkC;QAElC,OAAO;YACL,GAAG,iBAAiB;YACpB,GAAG,CAAC,QAAQ,KAAK,eAAe;gBAC9B,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC;oBACE,2EAA2E;oBAC3E,yBAAyB,EAAE,KAAK;iBACjC,CAAC;YACN,sEAAsE;YACtE,sEAAsE;YACtE,sEAAsE;YACtE,sBAAsB;YACtB,uDAAuD;YACvD,qCAAqC,EAAE,CAAC;SACzC,CAAC;IACJ,CAAC;IAED;;OAEG;IACM,KAAK,CAAC,sBAAsB,CACnC,UAAsC,EAAE;QAExC,MAAM,EACJ,iB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gB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QAC/B,OAAO,gBAAgB,CAAC;IAC1B,CAAC;CACF;AA9MD,0CA8MC"} \ No newline at end of file +{"version":3,"file":"FirefoxLauncher.js","sourceRoot":"","sources":["../../../../src/node/FirefoxLauncher.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,4CAAoB;AACpB,0CAAoD;AACpD,4CAAoB;AACpB,gDAAwB;AAExB,kDAM6B;AAE7B,+CAA6C;AAC7C,iDAAyC;AAMzC,6DAA8E;AAE9E,wCAAgC;AAEhC;;GAEG;AACH,MAAa,eAAgB,SAAQ,oCAAe;IAClD,YAAY,SAAwB;QAClC,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM,CAAC,cAAc,CACnB,iBAA2C,EAC3C,QAAkC;QAElC,OAAO;YACL,GAAG,iBAAiB;YACpB,GAAG,CAAC,QAAQ,KAAK,eAAe;gBAC9B,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC;oBACE,wDAAwD;oBACxD,qCAAqC,EAAE,KAAK;oBAC5C,2EAA2E;oBAC3E,yBAAyB,EAAE,KAAK;iBACjC,CAAC;YACN,sEAAsE;YACtE,sEAAsE;YACtE,sEAAsE;YACtE,sBAAsB;YACtB,uDAAuD;YACvD,qCAAqC,EAAE,CAAC;SACzC,CAAC;IACJ,CAAC;IAED;;OAEG;IACM,KAAK,CAAC,sBAAsB,CACnC,UAAsC,EAAE;QAExC,MAAM,EACJ,iBAAiB,GAAG,KAAK,EACzB,IAAI,GAAG,EAAE,EACT,cAAc,EACd,IAAI,GAAG,KAAK,EACZ,iBAAiB,GAAG,EAAE,EACtB,aAAa,GAAG,IAAI,GACrB,GAAG,OAAO,CAAC;QAEZ,MAAM,gBAAgB,GAAG,EAAE,CAAC;QAC5B,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,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C7D,MAAM,EACJ,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,CAAC,QAAQ,EACpB,IAAI,GAAG,EAAE,EACT,WAAW,GAAG,IAAI,GACnB,GAAG,OAAO,CAAC;QAEZ,MAAM,gBAAgB,GAAG,CAAC,aAAa,CAAC,CAAC;QAEzC,QAAQ,YAAE,CAAC,QAAQ,EAAE,EAAE,CAAC;YACtB,KAAK,QAAQ;gBACX,gBAAgB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBACtC,MAAM;YACR,KAAK,OAAO;gBACV,gBAAgB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;gBAC5C,MAAM;QACV,CAAC;QACD,IAAI,WAAW,EAAE,CAAC;YAChB,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACnC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACrC,CAAC;QACD,IAAI,QAAQ,EAAE,CAAC;YACb,gBAAgB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACtC,CAAC;QACD,IAAI,QAAQ,EAAE,CAAC;YACb,gBAAgB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACtC,CAAC;QACD,IACE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YACf,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC7B,CAAC,CAAC,EACF,CAAC;YACD,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACvC,CAAC;QACD,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QAC/B,OAAO,gBAAgB,CAAC;IAC1B,CAAC;CACF;AAhND,0CAgNC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.d.ts index f53d689b..ccd4c8b9 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.d.ts @@ -104,6 +104,6 @@ export declare abstract class ProductLauncher { /** * @internal */ - protected resolveExecutablePath(): string; + protected resolveExecutablePath(headless?: boolean | 'new'): string; } //# sourceMappingURL=ProductLauncher.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.d.ts.map index 14b41738..4aa4c8f1 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ProductLauncher.d.ts","sourceRoot":"","sources":["../../../../src/node/ProductLauncher.ts"],"names":[],"mappings":"AASA,OAAO,EAGL,MAAM,EAIP,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAC,OAAO,EAAE,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAEhD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAElD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAEpD,OAAO,KAAK,EACV,4BAA4B,EAC5B,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED;;;;GAIG;A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AAC;IActB;;OAEG;cACa,uBAAuB,CACrC,cAAc,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,EACzC,IAAI,EAAE;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,GAC3E,OAAO,CAAC,UAAU,CAAC;IAWtB;;OAEG;cACa,wBAAwB,CACtC,cAAc,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,EACzC,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,oBAAoB,EACnC,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;QACpC,MAAM,EAAE,MAAM,CAAC;QACf,eAAe,EAAE,QAAQ,GAAG,IAAI,CAAC;QACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B,GACA,OAAO,CAAC,OAAO,CAAC;IAenB;;OAEG;cACa,iBAAiB,CAC/B,cAAc,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,EACzC,aAAa,EAAE,oBAAoB,EACnC,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;QACpC,MAAM,EAAE,MAAM,CAAC;QACf,eAAe,EAAE,QAAQ,GAAG,IAAI,CAAC;QACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B,GACA,OAAO,CAAC,OAAO,CAAC;IAwBnB;;OAEG;IACH,SAAS,CAAC,cAAc,IAAI,MAAM;IAOlC;;OAEG;IACH,SAAS,CAAC,qBAAqB,IAAI,MAAM;CAoD1C"} \ No newline at end of file +{"version":3,"file":"ProductLauncher.d.ts","sourceRoot":"","sources":["../../../../src/node/ProductLauncher.ts"],"names":[],"mappings":"AASA,OAAO,EAGL,MAAM,EAIP,MAAM,qBAAqB,CAAC;AAS7B,OAAO,KAAK,EAAC,OAAO,EAAE,oB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,oBAAoB,EACnC,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;QACpC,MAAM,EAAE,MAAM,CAAC;QACf,eAAe,EAAE,QAAQ,GAAG,IAAI,CAAC;QACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B,GACA,OAAO,CAAC,OAAO,CAAC;IAwBnB;;OAEG;IACH,SAAS,CAAC,cAAc,IAAI,MAAM;IAOlC;;OAEG;IACH,SAAS,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM;CAuDpE"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js index 0d3e572c..cfcb6ae8 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js @@ -33,6 +33,7 @@ const fs_1 = require("fs"); const os_1 = require("os"); const path_1 = require("path"); const browsers_1 = require("@puppeteer/browsers"); +const rxjs_js_1 = require("../../third_party/rxjs/rxjs.js"); const Browser_js_1 = require("../cdp/Browser.js"); const Connection_js_1 = require("../cdp/Connection.js"); const Errors_js_1 = require("../common/Errors.js"); @@ -169,7 +170,10 @@ class ProductLauncher { } } else { - await browserProcess.close(); + // Wait for a possible graceful shutdown. + await (0, rxjs_js_1.firstValueFrom)((0, rxjs_js_1.race)((0, rxjs_js_1.from)(browserProcess.hasClosed()), (0, rxjs_js_1.timer)(5000).pipe((0, rxjs_js_1.map)(() => { + return (0, rxjs_js_1.from)(browserProcess.close()); + })))); } } /** @@ -247,7 +251,7 @@ class ProductLauncher { /** * @internal */ - resolveExecutablePath() { + resolveExecutablePath(headless) { let executablePath = this.puppeteer.configuration.executablePath; if (executablePath) { if (!(0, fs_1.existsSync)(executablePath)) { @@ -255,9 +259,12 @@ class ProductLauncher { } return executablePath; } - function productToBrowser(product) { + function productToBrowser(product, headless) { switch (product) { case 'chrome': + if (headless === true) { + return browsers_1.Browser.CHROMEHEADLESSSHELL; + } return browsers_1.Browser.CHROME; case 'firefox': return browsers_1.Browser.FIREFOX; @@ -266,7 +273,7 @@ class ProductLauncher { } executablePath = (0, browsers_1.computeExecutablePath)({ cacheDir: this.puppeteer.defaultDownloadPath, - browser: productToBrowser(this.product), + browser: productToBrowser(this.product, headless), buildId: this.puppeteer.browserRevision, }); if (!(0, fs_1.existsSync)(executablePath)) { diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js.map index 0fdc5814..3ecb6e70 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js.map @@ -1 +1 @@ -{"version":3,"file":"ProductLauncher.js","sourceRoot":"","sources":["../../../../src/node/ProductLauncher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,2BAA8B;AAC9B,2BAA0B;AAC1B,+BAA0B;AAE1B,kDAO6B;AAG7B,kDAA6C;AAC7C,wDAAgD;AAChD,mDAAiD;AAEjD,+CAA+D;AAQ/D,2EAAyF;AACzF,yDAAiD;AAajD;;;;GAIG;AACH,MAAsB,eAAe;IACnC,QAAQ,CAAU;IAElB;;OAEG;IACH,SAAS,CAAgB;IAEzB;;OAEG;IACO,qBAAqB,CAAU;IAEzC;;OAEG;IACH,YAAY,SAAwB,EAAE,OAAgB;QACpD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,Q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O,EAAE,gBAAgB,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC;YACjD,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,eAAe;SACxC,CAAC,CAAC;QAEH,IAAI,CAAC,IAAA,eAAU,EAAC,cAAc,CAAC,EAAE,CAAC;YAChC,IAAI,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,eAAe,EAAE,CAAC;gBACjD,MAAM,IAAI,KAAK,CACb,qDAAqD,cAAc,kBAAkB,IAAI,CAAC,SAAS,CAAC,eAAe,gCAAgC,CACpJ,CAAC;YACJ,CAAC;YACD,QAAQ,IAAI,CAAC,OAAO,EAAE,CAAC;gBACrB,KAAK,QAAQ;oBACX,MAAM,IAAI,KAAK,CACb,+BAA+B,IAAI,CAAC,SAAS,CAAC,eAAe,+BAA+B;wBAC1F,uHAAuH;wBACvH,4DAA4D,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,cAAc,MAAM;wBAC7G,iGAAiG,CACpG,CAAC;gBACJ,KAAK,SAAS;oBACZ,MAAM,IAAI,KAAK,CACb,gCAAgC,IAAI,CAAC,SAAS,CAAC,eAAe,+BAA+B;wBAC3F,oIAAoI;wBACpI,4DAA4D,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,cAAc,MAAM;wBAC7G,iGAAiG,CACpG,CAAC;YACN,CAAC;QACH,CAAC;QACD,OAAO,cAAc,CAAC;IACxB,CAAC;CACF;AAzYD,0CAyYC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ScreenRecorder.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ScreenRecorder.d.ts.map index b3b5f919..8060088f 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ScreenRecorder.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ScreenRecorder.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ScreenRecorder.d.ts","sourceRoot":"","sources":["../../../../src/node/ScreenRecorder.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAIH,OAAO,EAAC,WAAW,EAAC,MAAM,QAAQ,CAAC;AAqBnC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AAGzC,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AAOzD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;;IAQ7C;;OAEG;gBAED,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,EAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,GAAE,qBAA0B;IAyJhE;;;;OAIG;IAEG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IA6B3B;;OAEG;IACG,CAAC,kBAAkB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5C"} \ No newline at end of file +{"version":3,"file":"ScreenRecorder.d.ts","sourceRoot":"","sources":["../../../../src/node/ScreenRecorder.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAIH,OAAO,EAAC,WAAW,EAAC,MAAM,QAAQ,CAAC;AAiBnC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AAGzC,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AAOzD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;;IAQ7C;;OAEG;gBAED,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,EAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,GAAE,qBAA0B;IAoJhE;;;;OAIG;IAEG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IA6B3B;;OAEG;IACG,CAAC,kBAAkB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5C"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ScreenRecorder.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ScreenRecorder.js index c971f1ad..0ecd4990 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ScreenRecorder.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ScreenRecorder.js @@ -143,7 +143,7 @@ let ScreenRecorder = (() => { client.once(CDPSession_js_1.CDPSessionEvent.Disconnected, () => { void this.stop().catch(util_js_1.debugError); }); - this.#lastFrame = (0, rxjs_js_1.lastValueFrom)((0, rxjs_js_1.fromEvent)(client, 'Page.screencastFrame').pipe((0, rxjs_js_1.tap)(event => { + this.#lastFrame = (0, rxjs_js_1.lastValueFrom)((0, util_js_1.fromEmitterEvent)(client, 'Page.screencastFrame').pipe((0, rxjs_js_1.tap)(event => { void client.send('Page.screencastFrameAck', { sessionId: event.sessionId, }); diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ScreenRecorder.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ScreenRecorder.js.map index c18b6d28..5af4258f 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ScreenRecorder.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ScreenRecorder.js.map @@ -1 +1 @@ -{"version":3,"file":"ScreenRecorder.js","sourceRoot":"","sources":["../../../../src/node/ScreenRecorder.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,iDAA+C;AAC/C,mCAAmC;AAEnC,kDAA0B;AAO1B,4DAUwC;AACxC,wDAAqD;AAGrD,+CAA6C;AAC7C,yDAA8C;AAC9C,yDAAyD;AAEzD,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,WAAW,GAAG,EAAE,CAAC;AAEvB,MAAM,WAAW,GAAG,IAAA,eAAK,EAAC,kBAAkB,CAAC,CAAC;AAa9C;;GAEG;IACU,cAAc;sBAAS,oBAAW;;;;;iBAAlC,cAAe,SAAQ,WAAW;;;YA+J7C,sDAAA,yBAAA,KAAK,WAAa,MAAc;oBAC9B,MAAM,KAAK,GAAG,MAAM,IAAI,OAAO,CAA2B,OAAO,CAAC,EAAE;wBAClE,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;oBAC7C,CAAC,CAAC,CAAC;oBACH,IAAI,KAAK,EAAE,CAAC;wBACV,OAAO,CAAC,GAAG,CAAC,2BAA2B,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC;oBAC3D,CAAC;gBACH,CAAC,gBAAA,+HAPK,WAAW,yBAAX,WAAW,6DAOhB;YAQD,+JAAM,IAAI,6DA2BT;;;QAxMD,KAAK,iEAAO;QAEZ,QAAQ,CAAiC;QAEzC,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QACpC,UAAU,CAAqC;QAE/C;;W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CAAC;iBACZ,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CACpC,CAAC;YAEF,4CAA4C;YAC5C,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;YAC1B,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;gBAC1B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACvC,CAAC,CAAC,CAAC;QACL,CAAC;QAED;;WAEG;QACH,KAAK,CAAC,oCAhDL,IAAA,uBAAO,GAAE,uBAeT,IAAA,uBAAO,GAAE,GAiCH,kCAAkB,EAAC;YACxB,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QACpB,CAAC;;;AA3MU,wCAAc"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts index a9512471..ce93aa80 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts @@ -7,7 +7,8 @@ * @internal */ export declare const PUPPETEER_REVISIONS: Readonly<{ - chrome: "119.0.6045.105"; + chrome: "121.0.6167.85"; + 'chrome-headless-shell': "121.0.6167.85"; firefox: "latest"; }>; //# sourceMappingURL=revisions.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts.map index edb72312..a774f9a8 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"revisions.d.ts","sourceRoot":"","sources":["../../../src/revisions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;EAG9B,CAAC"} \ No newline at end of file +{"version":3,"file":"revisions.d.ts","sourceRoot":"","sources":["../../../src/revisions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;EAI9B,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js index 7d0f45ad..048b042e 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js @@ -10,7 +10,8 @@ exports.PUPPETEER_REVISIONS = void 0; * @internal */ exports.PUPPETEER_REVISIONS = Object.freeze({ - chrome: '119.0.6045.105', + chrome: '121.0.6167.85', + 'chrome-headless-shell': '121.0.6167.85', firefox: 'latest', }); //# sourceMappingURL=revisions.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js.map index a7946405..5f85c671 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js.map @@ -1 +1 @@ -{"version":3,"file":"revisions.js","sourceRoot":"","sources":["../../../src/revisions.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH;;GAEG;AACU,QAAA,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,gBAAgB;IACxB,OAAO,EAAE,QAAQ;CAClB,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"revisions.js","sourceRoot":"","sources":["../../../src/revisions.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH;;GAEG;AACU,QAAA,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,eAAe;IACvB,uBAAuB,EAAE,eAAe;IACxC,OAAO,EAAE,QAAQ;CAClB,CAAC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.d.ts deleted file mode 100644 index 3da4dd0e..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Deferred } from './Deferred.js'; -/** - * Creates and returns a deferred promise using DEFERRED_PROMISE_DEBUG_TIMEOUT - * if it's specified or a normal deferred promise otherwise. - * - * @internal - */ -export declare function createDebuggableDeferred(message: string): Deferred; -//# sourceMappingURL=DebuggableDeferred.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.d.ts.map deleted file mode 100644 index 6f53e02a..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DebuggableDeferred.d.ts","sourceRoot":"","sources":["../../../../src/util/DebuggableDeferred.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,CAQxE"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.js deleted file mode 100644 index e78678fd..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDebuggableDeferred = void 0; -const environment_js_1 = require("../environment.js"); -const Deferred_js_1 = require("./Deferred.js"); -/** - * Creates and returns a deferred promise using DEFERRED_PROMISE_DEBUG_TIMEOUT - * if it's specified or a normal deferred promise otherwise. - * - * @internal - */ -function createDebuggableDeferred(message) { - if (environment_js_1.DEFERRED_PROMISE_DEBUG_TIMEOUT > 0) { - return Deferred_js_1.Deferred.create({ - message, - timeout: environment_js_1.DEFERRED_PROMISE_DEBUG_TIMEOUT, - }); - } - return Deferred_js_1.Deferred.create(); -} -exports.createDebuggableDeferred = createDebuggableDeferred; -//# sourceMappingURL=DebuggableDeferred.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.js.map deleted file mode 100644 index 6093484d..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/DebuggableDeferred.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DebuggableDeferred.js","sourceRoot":"","sources":["../../../../src/util/DebuggableDeferred.ts"],"names":[],"mappings":";;;AAAA,sDAAiE;AAEjE,+CAAuC;AAEvC;;;;;GAKG;AACH,SAAgB,wBAAwB,CAAI,OAAe;IACzD,IAAI,+CAA8B,GAAG,CAAC,EAAE,CAAC;QACvC,OAAO,sBAAQ,CAAC,MAAM,CAAC;YACrB,OAAO;YACP,OAAO,EAAE,+CAA8B;SACxC,CAAC,CAAC;IACL,CAAC;IACD,OAAO,sBAAQ,CAAC,MAAM,EAAE,CAAC;AAC3B,CAAC;AARD,4DAQC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.d.ts index c9d24f4f..58806880 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.d.ts @@ -17,6 +17,8 @@ export interface DeferredOptions { */ export declare class Deferred { #private; + static create(opts?: DeferredOptions): Deferred; + static race(awaitables: Array | Deferred>): Promise; constructor(opts?: DeferredOptions); resolve(value: T): void; reject(error: V | TimeoutError): void; @@ -24,7 +26,5 @@ export declare class Deferred { finished(): boolean; value(): T | V | TimeoutError | undefined; valueOrThrow(): Promise; - static create(opts?: DeferredOptions): Deferred; - static race(awaitables: Array | Deferred>): Promise; } //# sourceMappingURL=Deferred.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.d.ts.map index 13322dce..2fee1188 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Deferred.d.ts","sourceRoot":"","sources":["../../../../src/util/Deferred.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;GAQG;AACH,qBAAa,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,GAAG,KAAK;;gBAWlC,IAAI,CAAC,EAAE,eAAe;IAelC,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;IAQvB,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,YAAY,GAAG,IAAI;IAQrC,QAAQ,IAAI,OAAO;IAInB,QAA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AK,IAAI,CAAC,GAAG,CAAC,GAAG,YAAY,GAAG,SAAS;IAKzC,YAAY,IAAI,OAAO,CAAC,CAAC,CAAC;CAY3B"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.js index ec3f90e2..f3fe4930 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.js @@ -12,58 +12,6 @@ const Errors_js_1 = require("../common/Errors.js"); * @internal */ class Deferred { - #isResolved = false; - #isRejected = false; - #value; - #resolver = () => { }; - #taskPromise = new Promise(resolve => { - this.#resolver = resolve; - }); - #timeoutId; - #timeoutError; - constructor(opts) { - if (opts && opts.timeout > 0) { - this.#timeoutError = new Errors_js_1.TimeoutError(opts.message); - this.#timeoutId = setTimeout(() => { - this.reject(this.#timeoutError); - }, opts.timeout); - } - } - #finish(value) { - clearTimeout(this.#timeoutId); - this.#value = value; - this.#resolver(); - } - resolve(value) { - if (this.#isRejected || this.#isResolved) { - return; - } - this.#isResolved = true; - this.#finish(value); - } - reject(error) { - if (this.#isRejected || this.#isResolved) { - return; - } - this.#isRejected = true; - this.#finish(error); - } - resolved() { - return this.#isResolved; - } - finished() { - return this.#isResolved || this.#isRejected; - } - value() { - return this.#value; - } - async valueOrThrow() { - await this.#taskPromise; - if (this.#isRejected) { - throw this.#value; - } - return this.#value; - } static create(opts) { return new Deferred(opts); } @@ -91,6 +39,65 @@ class Deferred { } } } + #isResolved = false; + #isRejected = false; + #value; + // SAFETY: This is ensured by #taskPromise. + #resolve; + #taskPromise = new Promise(resolve => { + this.#resolve = resolve; + }); + #timeoutId; + #timeoutError; + constructor(opts) { + if (opts && opts.timeout > 0) { + this.#timeoutError = new Errors_js_1.TimeoutError(opts.message); + this.#timeoutId = setTimeout(() => { + this.reject(this.#timeoutError); + }, opts.timeout); + } + } + #finish(value) { + clearTimeout(this.#timeoutId); + this.#value = value; + this.#resolve(); + } + resolve(value) { + if (this.#isRejected || this.#isResolved) { + return; + } + this.#isResolved = true; + this.#finish(value); + } + reject(error) { + if (this.#isRejected || this.#isResolved) { + return; + } + this.#isRejected = true; + this.#finish(error); + } + resolved() { + return this.#isResolved; + } + finished() { + return this.#isResolved || this.#isRejected; + } + value() { + return this.#value; + } + #promise; + valueOrThrow() { + if (!this.#promise) { + this.#promise = (async () => { + await this.#taskPromise; + if (this.#isRejected) { + throw this.#value; + } + return this.#value; + })(); + } + return this.#promise; + } } exports.Deferred = Deferred; //# sourceMappingURL=Deferred.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.js.map index e8485d82..75b97194 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.js.map @@ -1 +1 @@ -{"version":3,"file":"Deferred.js","sourceRoot":"","sources":["../../../../src/util/Deferred.ts"],"names":[],"mappings":";;;AAAA,mDAAiD;AAUjD;;;;;;;;GAQG;AACH,MAAa,QAAQ;IACnB,WAAW,GAAG,KAAK,CAAC;IACpB,WAAW,GAAG,KAAK,CAAC;IACpB,MAAM,CAAmC;IACzC,SAAS,GAA0B,GAAG,EAAE,GAAE,CAAC,CAAC;IAC5C,YAAY,GAAG,IAAI,OAAO,CAAO,OAAO,CAAC,EAAE;QACzC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC;IAC3B,CAAC,CAAC,CAAC;IACH,UAAU,CAA4C;IACtD,aAAa,CAA2B;IAExC,YAAY,IAAsB;QAChC,IAAI,IAAI,IAAI,IAAI,CAAC,OAAO,GAAG,CAAC,EAAE,CAAC;YAC7B,IAAI,CAAC,aAAa,GAAG,IAAI,wBAAY,CAAC,IAAI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AAsB;QAEtB,OAAO,IAAI,QAAQ,CAAO,IAAI,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,IAAI,CACf,UAA2C;QAE3C,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAe,CAAC;QACnD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;gBACtC,IAAI,KAAK,YAAY,QAAQ,EAAE,CAAC;oBAC9B,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;wBACrB,mBAAmB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;oBACjC,CAAC;oBAED,OAAO,KAAK,CAAC,YAAY,EAAE,CAAC;gBAC9B,CAAC;gBAED,OAAO,KAAK,CAAC;YACf,CAAC,CAAC,CAAC;YACH,gDAAgD;YAChD,OAAO,MAAM,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtC,CAAC;gBAAS,CAAC;YACT,KAAK,MAAM,QAAQ,IAAI,mBAAmB,EAAE,CAAC;gBAC3C,mCAAmC;gBACnC,oDAAoD;gBACpD,iBAAiB;gBACjB,QAAQ,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;YAChD,CAAC;QACH,CAAC;IACH,CAAC;CACF;AA/FD,4BA+FC"} \ No newline at end of file +{"version":3,"file":"Deferred.js","sourceRoot":"","sources":["../../../../src/util/Deferred.ts"],"names":[],"mappings":";;;AAAA,mDAAiD;AAUjD;;;;;;;;GAQG;AACH,MAAa,QAAQ;IACnB,MAAM,CAAC,MAAM,CACX,IAAsB;QAEtB,OAAO,IAAI,QAAQ,CAAO,IAAI,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,IAAI,CACf,UAA2C;QAE3C,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAe,CAAC;QACnD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,UAAU,CAAC,GA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eteer-core/lib/cjs/puppeteer/util/Mutex.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Mutex.d.ts index f36f7076..ceb278e2 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Mutex.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Mutex.d.ts @@ -6,7 +6,7 @@ export declare class Mutex { #private; static Guard: { new (mutex: Mutex): { - "__#50440@#mutex": Mutex; + "__#51567@#mutex": Mutex; [Symbol.dispose](): void; }; }; diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.d.ts index e734193d..4014b408 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.d.ts @@ -6,6 +6,7 @@ import type { Disposed, Moveable } from '../common/types.js'; export declare function moveable Moveable>(Class: Class, _: ClassDecoratorContext): Class; export declare function throwIfDisposed(message?: (value: This) => string): (target: (this: This, ...args: any[]) => any, _: unknown) => (this: This, ...args: any[]) => any; +export declare function inertIfDisposed(target: (this: This, ...args: any[]) => any, _: unknown): (this: This, ...args: any[]) => any; /** * The decorator only invokes the target if the target has not been invoked with * the same arguments before. The decorated method throws an error if it's diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.d.ts.map index cbf0300d..04a399a6 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../../src/util/decorators.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,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IAAI,SAAS,QAAQ,EACnD,OAAO,GAAE,CAAC,KAAK,EAAE,IAAI,KAAK,MAEzB,mBAEsB,IAAI,WAAW,GAAG,EAAE,KAAK,GAAG,KAAK,OAAO,YACtC,IAAI,WAAW,GAAG,EAAE,KAAG,GAAG,CAOpD;AAED,wBAAgB,eAAe,CAAC,IAAI,SAAS,QAAQ,EACnD,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC3C,CAAC,EAAE,OAAO,UAEa,IAAI,WAAW,GAAG,EAAE,KAAG,GAAG,CAMlD;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC9C,CAAC,EAAE,OAAO,GACT,OAAO,MAAM,CA4Bf;AAED,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EACtC,MAAM,UAAmB,CAAC,KAAG,MAE5B,mBAGgB,CAAC,WAAW,GAAG,EAAE,KAAK,QAAQ,GAAG,CAAC,KAC9C,4BAA4B,CAAC,CAAC,YADlB,CAAC,WAAW,GAAG,EAAE,KAAK,QAAQ,GAAG,CAAC,CAepD"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js index 385cb0fe..4c6d5ba7 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js @@ -50,7 +50,7 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; }); Object.defineProperty(exports, "__esModule", { value: true }); -exports.guarded = exports.invokeAtMostOnceForArguments = exports.throwIfDisposed = exports.moveable = void 0; +exports.guarded = exports.invokeAtMostOnceForArguments = exports.inertIfDisposed = exports.throwIfDisposed = exports.moveable = void 0; const disposable_js_1 = require("./disposable.js"); const Mutex_js_1 = require("./Mutex.js"); const instances = new WeakSet(); @@ -100,6 +100,15 @@ function throwIfDisposed(message = value => { }; } exports.throwIfDisposed = throwIfDisposed; +function inertIfDisposed(target, _) { + return function (...args) { + if (this.disposed) { + return; + } + return target.call(this, ...args); + }; +} +exports.inertIfDisposed = inertIfDisposed; /** * The decorator only invokes the target if the target has not been invoked with * the same arguments before. The decorated method throws an error if it's diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js.map index 9492e4a1..fafe60d2 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js.map @@ -1 +1 @@ -{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../src/util/decorators.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,mDAAkE;AAClE,yCAAiC;AAEjC,MAAM,SAAS,GAAG,IAAI,OAAO,EAAU,CAAC;AAExC,SAAgB,QAAQ,CAEtB,KAAY,EAAE,CAA+B;IAC7C,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,KAAK,CAAC,SAAS,CAAC,6BAAa,CAAC,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,6BAAa,CAAC,CAAC;QAC/C,KAAK,CAAC,SAAS,CAAC,6BAAa,CAAC,GAAG;YAC/B,IAAI,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBACxB,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBACvB,OAAO;YACT,CAAC;YACD,OAAO,OAAO,CAAC,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AAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC9B,IAAI,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBAC7B,IAAI,CAAC,KAAK,EAAE,CAAC;oBACX,KAAK,GAAG,IAAI,gBAAK,EAAE,CAAC;oBACpB,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;gBAC1B,CAAC;gBACD,MAAY,CAAC,kCAAG,MAAM,KAAK,CAAC,OAAO,EAAE,OAAA,CAAC;gBACtC,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;;;;;;;;;;;SACzC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AArBD,0BAqBC"} \ No newline at end of file +{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../src/util/decorators.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,mDAAkE;AAClE,yCAAiC;AAEjC,MAAM,SAAS,GAAG,IAAI,OAAO,EAAU,CAAC;AAExC,SAAgB,QAAQ,CAEtB,KAAY,EAAE,CAA+B;IAC7C,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,KAAK,CAAC,SAAS,CAAC,6BAAa,CAAC,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,6BAAa,CAAC,CAAC;QAC/C,KAAK,CAAC,SAAS,CAAC,6BAAa,CAAC,GAAG;YAC/B,IAAI,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBACxB,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBACvB,OAAO;YACT,CAAC;YACD,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC,CAAC;QACF,UAAU,GAAG,IAAI,CAAC;IACpB,CAAC;IACD,IA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OAAO,CACL,MAAiD,EACjD,CAAiC,EAClB,EAAE;QACjB,MAAM,OAAO,GAAG,IAAI,OAAO,EAAiB,CAAC;QAC7C,OAAO,KAAK,WAAW,GAAG,IAAI;;;gBAC5B,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC9B,IAAI,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBAC7B,IAAI,CAAC,KAAK,EAAE,CAAC;oBACX,KAAK,GAAG,IAAI,gBAAK,EAAE,CAAC;oBACpB,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;gBAC1B,CAAC;gBACD,MAAY,CAAC,kCAAG,MAAM,KAAK,CAAC,OAAO,EAAE,OAAA,CAAC;gBACtC,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;;;;;;;;;;;SACzC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AArBD,0BAqBC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.d.ts index 9176be35..ef5a5280 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.d.ts @@ -4,7 +4,6 @@ * SPDX-License-Identifier: Apache-2.0 */ export * from './assert.js'; -export * from './DebuggableDeferred.js'; export * from './Deferred.js'; export * from './ErrorLike.js'; export * from './AsyncIterableUtil.js'; diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.d.ts.map index a3a4d2aa..5ad260e8 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/util/util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC"} \ No newline at end of file +{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/util/util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.js b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.js index 672a7209..8193d1c8 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.js @@ -20,7 +20,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { }; Object.defineProperty(exports, "__esModule", { value: true }); __exportStar(require("./assert.js"), exports); -__exportStar(require("./DebuggableDeferred.js"), exports); __exportStar(require("./Deferred.js"), exports); __exportStar(require("./ErrorLike.js"), exports); __exportStar(require("./AsyncIterableUtil.js"), exports); diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.js.map b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.js.map index 55fcd19c..5cdeb96c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/puppeteer/util/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/util/util.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,8CAA4B;AAC5B,0DAAwC;AACxC,gDAA8B;AAC9B,iDAA+B;AAC/B,yDAAuC;AACvC,kDAAgC"} \ No newline at end of file +{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/util/util.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,8CAA4B;AAC5B,gDAA8B;AAC9B,iDAA+B;AAC/B,yDAAuC;AACvC,kDAAgC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.d.ts b/Scripts/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.d.ts index 0822c807..01dece05 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.d.ts @@ -3,6 +3,6 @@ * Copyright 2023 Google Inc. * SPDX-License-Identifier: Apache-2.0 */ -export { bufferCount, catchError, concatMap, defaultIfEmpty, defer, delay, EMPTY, filter, first, firstValueFrom, forkJoin, from, fromEvent, identity, ignoreElements, lastValueFrom, map, merge, mergeMap, NEVER, noop, of, pipe, race, raceWith, retry, startWith, switchMap, takeUntil, tap, throwIfEmpty, timer, } from 'rxjs'; +export { bufferCount, catchError, concat, concatMap, defaultIfEmpty, defer, delay, EMPTY, filter, first, firstValueFrom, forkJoin, from, fromEvent, identity, ignoreElements, lastValueFrom, map, ReplaySubject, merge, mergeMap, mergeScan, NEVER, noop, Observable, of, pipe, race, raceWith, retry, startWith, switchMap, take, takeUntil, tap, throwIfEmpty, timer, zip, } from 'rxjs'; export type * from 'rxjs'; export declare function filterAsync(predicate: (value: T) => boolean | PromiseLike): import("rxjs").OperatorFunction; diff --git a/Scripts/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.js b/Scripts/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.js index 4114f9b0..074e2f56 100644 --- a/Scripts/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.js +++ b/Scripts/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.js @@ -1,6 +1,6 @@ "use strict";var s=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports);var j=s(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.isFunction=void 0;function xs(r){return typeof r=="function"}xr.isFunction=xs});var H=s(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.createErrorClass=void 0;function ks(r){var t=function(n){Error.call(n),n.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}kr.createErrorClass=ks});var Bi=s(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.UnsubscriptionError=void 0;var Cs=H();Cr.UnsubscriptionError=Cs.createErrorClass(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription: `+e.map(function(n,i){return i+1+") "+n.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=e}})});var K=s(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.arrRemove=void 0;function Rs(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}Rr.arrRemove=Rs});var C=s(T=>{"use strict";var uo=T&&T.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},oo=T&&T.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},ao=T&&T.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.config=void 0;Wr.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var Gi=s(V=>{"use strict";var so=V&&V.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},fo=V&&V.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.reportUnhandledError=void 0;var Ls=ke(),Ns=Gi();function Vs(r){Ns.timeoutProvider.setTimeout(function(){var t=Ls.config.onUnhandledError;if(t)t(r);else throw r})}Lr.reportUnhandledError=Vs});var E=s(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.noop=void 0;function Us(){}Nr.noop=Us});var vo=s(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.createNotification=U.nextNotification=U.errorNotification=U.COMPLETE_NOTIFICATION=void 0;U.COMPLETE_NOTIFICATION=function(){return Vr("C",void 0,void 0)}();function zs(r){return Vr("E",void 0,r)}U.errorNotification=zs;function Ys(r){return Vr("N",r,void 0)}U.nextNotification=Ys;function Vr(r,t,e){return{kind:r,value:t,error:e}}U.createNotification=Vr});var Ur=s(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.captureError=Ce.errorContext=void 0;var po=ke(),Se=null;function Bs(r){if(po.config.useDeprecatedSynchronousErrorHandling){var t=!Se;if(t&&(Se={errorThrown:!1,error:null}),r(),t){var e=Se,n=e.errorThrown,i=e.error;if(Se=null,n)throw i}}else r()}Ce.errorContext=Bs;function Ds(r){po.config.useDeprecatedSynchronousErrorHandling&&Se&&(Se.errorThrown=!0,Se.error=r)}Ce.captureError=Ds});var Re=s(W=>{"use strict";var ho=W&&W.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(W,"__esModule",{value:!0});W.EMPTY_OBSERVER=W.SafeSubscriber=W.Subscriber=void 0;var Ks=j(),bo=C(),Hi=ke(),Gs=Qi(),_o=E(),Ji=vo(),Qs=Gi(),Js=Ur(),yo=function(r){ho(t,r);function t(e){var n=r.call(this)||this;return n.isStopped=!1,e?(n.destination=e,bo.isSubscription(e)&&e.add(n)):n.destination=W.EMPTY_OBSERVER,n}return t.create=function(e,n,i){return new mo(e,n,i)},t.prototype.next=function(e){this.isStopped?$i(Ji.nextNotification(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?$i(Ji.errorNotification(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?$i(Ji.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(bo.Subscription);W.Subscriber=yo;var Zs=Function.prototype.bind;function Zi(r,t){return Zs.call(r,t)}var $s=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(n){zr(n)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(n){zr(n)}else zr(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){zr(e)}},r}(),mo=function(r){ho(t,r);function t(e,n,i){var u=r.call(this)||this,o;if(Ks.isFunction(e)||!e)o={next:e??void 0,error:n??void 0,complete:i??void 0};else{var c;u&&Hi.config.useDeprecatedNextContext?(c=Object.create(e),c.unsubscribe=function(){return u.unsubscribe()},o={next:e.next&&Zi(e.next,c),error:e.error&&Zi(e.error,c),complete:e.complete&&Zi(e.complete,c)}):o=e}return u.destination=new $s(o),u}return t}(yo);W.SafeSubscriber=mo;function zr(r){Hi.config.useDeprecatedSynchronousErrorHandling?Js.captureError(r):Gs.reportUnhandledError(r)}function Hs(r){throw r}function $i(r,t){var e=Hi.config.onStoppedNotification;e&&Qs.timeoutProvider.setTimeout(function(){return e(r,t)})}W.EMPTY_OBSERVER={closed:!0,next:_o.noop,error:Hs,complete:_o.noop}});var yr=s(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.observable=void 0;Yr.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var M=s(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.identity=void 0;function Xs(r){return r}Br.identity=Xs});var mr=s(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.pipeFromArray=We.pipe=void 0;var ef=M();function rf(){for(var r=[],t=0;t{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.Observable=void 0;var eu=Re(),tf=C(),nf=yr(),uf=mr(),of=ke(),Xi=j(),af=Ur(),cf=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,n){var i=this,u=sf(t)?t:new eu.SafeSubscriber(t,e,n);return af.errorContext(function(){var o=i,c=o.operator,f=o.source;u.add(c?c.call(u,f):f?i._subscribe(u):i._trySubscribe(u))}),u},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var n=this;return e=go(e),new e(function(i,u){var o=new eu.SafeSubscriber({next:function(c){try{t(c)}catch(f){u(f),o.unsubscribe()}},error:u,complete:i});n.subscribe(o)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[nf.observable]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.operate=Le.hasLift=void 0;var ff=j();function qo(r){return ff.isFunction(r==null?void 0:r.lift)}Le.hasLift=qo;function vf(r){return function(t){if(qo(t))return t.lift(function(e){try{return r(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}Le.operate=vf});var O=s(X=>{"use strict";var df=X&&X.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(X,"__esModule",{value:!0});X.OperatorSubscriber=X.createOperatorSubscriber=void 0;var pf=Re();function bf(r,t,e,n,i){return new So(r,t,e,n,i)}X.createOperatorSubscriber=bf;var So=function(r){df(t,r);function t(e,n,i,u,o,c){var f=r.call(this,e)||this;return f.onFinalize=o,f.shouldUnsubscribe=c,f._next=n?function(l){try{n(l)}catch(v){e.error(v)}}:r.prototype._next,f._error=u?function(l){try{u(l)}catch(v){e.error(v)}finally{this.unsubscribe()}}:r.prototype._error,f._complete=i?function(){try{i()}catch(l){e.error(l)}finally{this.unsubscribe()}}:r.prototype._complete,f}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;r.prototype.unsubscribe.call(this),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(pf.Subscriber);X.OperatorSubscriber=So});var ru=s(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.refCount=void 0;var _f=b(),hf=O();function yf(){return _f.operate(function(r,t){var e=null;r._refCount++;var n=hf.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!r||r._refCount<=0||0<--r._refCount){e=null;return}var i=r._connection,u=e;e=null,i&&(!u||i===u)&&i.unsubscribe(),t.unsubscribe()});r.subscribe(n),n.closed||(e=r.connect())})}Kr.refCount=yf});var Or=s(Ne=>{"use strict";var mf=Ne&&Ne.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ne,"__esModule",{value:!0});Ne.ConnectableObservable=void 0;var Of=P(),jo=C(),gf=ru(),qf=O(),Sf=b(),jf=function(r){mf(t,r);function t(e,n){var i=r.call(this)||this;return i.source=e,i.subjectFactory=n,i._subject=null,i._refCount=0,i._connection=null,Sf.hasLift(e)&&(i.lift=e.lift),i}return t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,e==null||e.unsubscribe()},t.prototype.connect=function(){var e=this,n=this._connection;if(!n){n=this._connection=new jo.Subscription;var i=this.getSubject();n.add(this.source.subscribe(qf.createOperatorSubscriber(i,void 0,function(){e._teardown(),i.complete()},function(u){e._teardown(),i.error(u)},function(){return e._teardown()}))),n.closed&&(this._connection=null,n=jo.Subscription.EMPTY)}return n},t.prototype.refCount=function(){return gf.refCount()(this)},t}(Of.Observable);Ne.ConnectableObservable=jf});var Po=s(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.performanceTimestampProvider=void 0;gr.performanceTimestampProvider={now:function(){return(gr.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var tu=s(L=>{"use strict";var wo=L&&L.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Ao=L&&L.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.animationFrames=void 0;var wf=P(),Af=Po(),Eo=tu();function Ef(r){return r?Mo(r):Mf}Gr.animationFrames=Ef;function Mo(r){return new wf.Observable(function(t){var e=r||Af.performanceTimestampProvider,n=e.now(),i=0,u=function(){t.closed||(i=Eo.animationFrameProvider.requestAnimationFrame(function(o){i=0;var c=e.now();t.next({timestamp:r?c:o,elapsed:c-n}),u()}))};return u(),function(){i&&Eo.animationFrameProvider.cancelAnimationFrame(i)}})}var Mf=Mo()});var nu=s(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.ObjectUnsubscribedError=void 0;var Ff=H();Qr.ObjectUnsubscribedError=Ff.createErrorClass(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var F=s(z=>{"use strict";var To=z&&z.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),If=z&&z.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(z,"__esModule",{value:!0});z.AnonymousSubject=z.Subject=void 0;var Io=P(),uu=C(),Tf=nu(),xf=K(),iu=Ur(),xo=function(r){To(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var n=new ou(this,this);return n.operator=e,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Tf.ObjectUnsubscribedError},t.prototype.next=function(e){var n=this;iu.errorContext(function(){var i,u;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=If(n.currentObservers),c=o.next();!c.done;c=o.next()){var f=c.value;f.next(e)}}catch(l){i={error:l}}finally{try{c&&!c.done&&(u=o.return)&&u.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(e){var n=this;iu.errorContext(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=e;for(var i=n.observers;i.length;)i.shift().error(e)}})},t.prototype.complete=function(){var e=this;iu.errorContext(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var n=e.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var n=this,i=this,u=i.hasError,o=i.isStopped,c=i.observers;return u||o?uu.EMPTY_SUBSCRIPTION:(this.currentObservers=null,c.push(e),new uu.Subscription(function(){n.currentObservers=null,xf.arrRemove(c,e)}))},t.prototype._checkFinalizedStatuses=function(e){var n=this,i=n.hasError,u=n.thrownError,o=n.isStopped;i?e.error(u):o&&e.complete()},t.prototype.asObservable=function(){var e=new Io.Observable;return e.source=this,e},t.create=function(e,n){return new ou(e,n)},t}(Io.Observable);z.Subject=xo;var ou=function(r){To(t,r);function t(e,n){var i=r.call(this)||this;return i.destination=e,i.source=n,i}return t.prototype.next=function(e){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,e)},t.prototype.error=function(e){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,e)},t.prototype.complete=function(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)},t.prototype._subscribe=function(e){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&i!==void 0?i:uu.EMPTY_SUBSCRIPTION},t}(xo);z.AnonymousSubject=ou});var au=s(Ve=>{"use strict";var kf=Ve&&Ve.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.BehaviorSubject=void 0;var Cf=F(),Rf=function(r){kf(t,r);function t(e){var n=r.call(this)||this;return n._value=e,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var n=r.prototype._subscribe.call(this,e);return!n.closed&&e.next(this._value),n},t.prototype.getValue=function(){var e=this,n=e.hasError,i=e.thrownError,u=e._value;if(n)throw i;return this._throwIfClosed(),u},t.prototype.next=function(e){r.prototype.next.call(this,this._value=e)},t}(Cf.Subject);Ve.BehaviorSubject=Rf});var Jr=s(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.dateTimestampProvider=void 0;qr.dateTimestampProvider={now:function(){return(qr.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var Zr=s(Ue=>{"use strict";var Wf=Ue&&Ue.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.ReplaySubject=void 0;var Lf=F(),Nf=Jr(),Vf=function(r){Wf(t,r);function t(e,n,i){e===void 0&&(e=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Nf.dateTimestampProvider);var u=r.call(this)||this;return u._bufferSize=e,u._windowTime=n,u._timestampProvider=i,u._buffer=[],u._infiniteTimeWindow=!0,u._infiniteTimeWindow=n===1/0,u._bufferSize=Math.max(1,e),u._windowTime=Math.max(1,n),u}return t.prototype.next=function(e){var n=this,i=n.isStopped,u=n._buffer,o=n._infiniteTimeWindow,c=n._timestampProvider,f=n._windowTime;i||(u.push(e),!o&&u.push(c.now()+f)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(e),i=this,u=i._infiniteTimeWindow,o=i._buffer,c=o.slice(),f=0;f{"use strict";var Uf=ze&&ze.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(ze,"__esModule",{value:!0});ze.AsyncSubject=void 0;var zf=F(),Yf=function(r){Uf(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}return t.prototype._checkFinalizedStatuses=function(e){var n=this,i=n.hasError,u=n._hasValue,o=n._value,c=n.thrownError,f=n.isStopped,l=n._isComplete;i?e.error(c):(f||l)&&(u&&e.next(o),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var e=this,n=e._hasValue,i=e._value,u=e._isComplete;u||(this._isComplete=!0,n&&r.prototype.next.call(this,i),r.prototype.complete.call(this))},t}(zf.Subject);ze.AsyncSubject=Yf});var ko=s(Ye=>{"use strict";var Bf=Ye&&Ye.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.Action=void 0;var Df=C(),Kf=function(r){Bf(t,r);function t(e,n){return r.call(this)||this}return t.prototype.schedule=function(e,n){return n===void 0&&(n=0),this},t}(Df.Subscription);Ye.Action=Kf});var Wo=s(Y=>{"use strict";var Co=Y&&Y.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Ro=Y&&Y.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var Gf=Be&&Be.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Be,"__esModule",{value:!0});Be.AsyncAction=void 0;var Qf=ko(),Lo=Wo(),Jf=K(),Zf=function(r){Gf(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(e,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=e;var u=this.id,o=this.scheduler;return u!=null&&(this.id=this.recycleAsyncId(o,u,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,n),this},t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),Lo.intervalProvider.setInterval(e.flush.bind(e,this),i)},t.prototype.recycleAsyncId=function(e,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&Lo.intervalProvider.clearInterval(n)},t.prototype.execute=function(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(e,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,n){var i=!1,u;try{this.work(e)}catch(o){i=!0,u=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),u},t.prototype.unsubscribe=function(){if(!this.closed){var e=this,n=e.id,i=e.scheduler,u=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Jf.arrRemove(u,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,r.prototype.unsubscribe.call(this)}},t}(Qf.Action);Be.AsyncAction=Zf});var Vo=s(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.TestTools=Ke.Immediate=void 0;var $f=1,cu,Hr={};function No(r){return r in Hr?(delete Hr[r],!0):!1}Ke.Immediate={setImmediate:function(r){var t=$f++;return Hr[t]=!0,cu||(cu=Promise.resolve()),cu.then(function(){return No(t)&&r()}),t},clearImmediate:function(r){No(r)}};Ke.TestTools={pending:function(){return Object.keys(Hr).length}}});var zo=s(B=>{"use strict";var Hf=B&&B.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Xf=B&&B.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var tv=Ge&&Ge.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.AsapAction=void 0;var nv=De(),Yo=zo(),iv=function(r){tv(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),i!==null&&i>0?r.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e._scheduled||(e._scheduled=Yo.immediateProvider.setImmediate(e.flush.bind(e,void 0))))},t.prototype.recycleAsyncId=function(e,n,i){var u;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return r.prototype.recycleAsyncId.call(this,e,n,i);var o=e.actions;n!=null&&((u=o[o.length-1])===null||u===void 0?void 0:u.id)!==n&&(Yo.immediateProvider.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))},t}(nv.AsyncAction);Ge.AsapAction=iv});var lu=s(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Scheduler=void 0;var uv=Jr(),ov=function(){function r(t,e){e===void 0&&(e=r.now),this.schedulerActionCtor=t,this.now=e}return r.prototype.schedule=function(t,e,n){return e===void 0&&(e=0),new this.schedulerActionCtor(this,t).schedule(n,e)},r.now=uv.dateTimestampProvider.now,r}();Xr.Scheduler=ov});var Je=s(Qe=>{"use strict";var av=Qe&&Qe.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.AsyncScheduler=void 0;var Do=lu(),cv=function(r){av(t,r);function t(e,n){n===void 0&&(n=Do.Scheduler.now);var i=r.call(this,e,n)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(e){var n=this.actions;if(this._active){n.push(e);return}var i;this._active=!0;do if(i=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,i){for(;e=n.shift();)e.unsubscribe();throw i}},t}(Do.Scheduler);Qe.AsyncScheduler=cv});var Ko=s(Ze=>{"use strict";var lv=Ze&&Ze.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.AsapScheduler=void 0;var sv=Je(),fv=function(r){lv(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.flush=function(e){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var i=this.actions,u;e=e||i.shift();do if(u=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===n&&i.shift());if(this._active=!1,u){for(;(e=i[0])&&e.id===n&&i.shift();)e.unsubscribe();throw u}},t}(sv.AsyncScheduler);Ze.AsapScheduler=fv});var Go=s(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.asap=je.asapScheduler=void 0;var vv=Bo(),dv=Ko();je.asapScheduler=new dv.AsapScheduler(vv.AsapAction);je.asap=je.asapScheduler});var x=s(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.async=Pe.asyncScheduler=void 0;var pv=De(),bv=Je();Pe.asyncScheduler=new bv.AsyncScheduler(pv.AsyncAction);Pe.async=Pe.asyncScheduler});var Qo=s($e=>{"use strict";var _v=$e&&$e.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty($e,"__esModule",{value:!0});$e.QueueAction=void 0;var hv=De(),yv=function(r){_v(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return t.prototype.schedule=function(e,n){return n===void 0&&(n=0),n>0?r.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},t.prototype.execute=function(e,n){return n>0||this.closed?r.prototype.execute.call(this,e,n):this._execute(e,n)},t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),i!=null&&i>0||i==null&&this.delay>0?r.prototype.requestAsyncId.call(this,e,n,i):(e.flush(this),0)},t}(hv.AsyncAction);$e.QueueAction=yv});var Jo=s(He=>{"use strict";var mv=He&&He.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(He,"__esModule",{value:!0});He.QueueScheduler=void 0;var Ov=Je(),gv=function(r){mv(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ov.AsyncScheduler);He.QueueScheduler=gv});var Zo=s(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.queue=we.queueScheduler=void 0;var qv=Qo(),Sv=Jo();we.queueScheduler=new Sv.QueueScheduler(qv.QueueAction);we.queue=we.queueScheduler});var Ho=s(Xe=>{"use strict";var jv=Xe&&Xe.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.AnimationFrameAction=void 0;var Pv=De(),$o=tu(),wv=function(r){jv(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),i!==null&&i>0?r.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e._scheduled||(e._scheduled=$o.animationFrameProvider.requestAnimationFrame(function(){return e.flush(void 0)})))},t.prototype.recycleAsyncId=function(e,n,i){var u;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return r.prototype.recycleAsyncId.call(this,e,n,i);var o=e.actions;n!=null&&((u=o[o.length-1])===null||u===void 0?void 0:u.id)!==n&&($o.animationFrameProvider.cancelAnimationFrame(n),e._scheduled=void 0)},t}(Pv.AsyncAction);Xe.AnimationFrameAction=wv});var Xo=s(er=>{"use strict";var Av=er&&er.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(er,"__esModule",{value:!0});er.AnimationFrameScheduler=void 0;var Ev=Je(),Mv=function(r){Av(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.flush=function(e){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var i=this.actions,u;e=e||i.shift();do if(u=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===n&&i.shift());if(this._active=!1,u){for(;(e=i[0])&&e.id===n&&i.shift();)e.unsubscribe();throw u}},t}(Ev.AsyncScheduler);er.AnimationFrameScheduler=Mv});var ea=s(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.animationFrame=Ae.animationFrameScheduler=void 0;var Fv=Ho(),Iv=Xo();Ae.animationFrameScheduler=new Iv.AnimationFrameScheduler(Fv.AnimationFrameAction);Ae.animationFrame=Ae.animationFrameScheduler});var na=s(ee=>{"use strict";var ra=ee&&ee.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(ee,"__esModule",{value:!0});ee.VirtualAction=ee.VirtualTimeScheduler=void 0;var Tv=De(),xv=C(),kv=Je(),Cv=function(r){ra(t,r);function t(e,n){e===void 0&&(e=ta),n===void 0&&(n=1/0);var i=r.call(this,e,function(){return i.frame})||this;return i.maxFrames=n,i.frame=0,i.index=-1,i}return t.prototype.flush=function(){for(var e=this,n=e.actions,i=e.maxFrames,u,o;(o=n[0])&&o.delay<=i&&(n.shift(),this.frame=o.delay,!(u=o.execute(o.state,o.delay))););if(u){for(;o=n.shift();)o.unsubscribe();throw u}},t.frameTimeFactor=10,t}(kv.AsyncScheduler);ee.VirtualTimeScheduler=Cv;var ta=function(r){ra(t,r);function t(e,n,i){i===void 0&&(i=e.index+=1);var u=r.call(this,e,n)||this;return u.scheduler=e,u.work=n,u.index=i,u.active=!0,u.index=e.index=i,u}return t.prototype.schedule=function(e,n){if(n===void 0&&(n=0),Number.isFinite(n)){if(!this.id)return r.prototype.schedule.call(this,e,n);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(e,n)}else return xv.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,n,i){i===void 0&&(i=0),this.delay=e.frame+i;var u=e.actions;return u.push(this),u.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(e,n,i){i===void 0&&(i=0)},t.prototype._execute=function(e,n){if(this.active===!0)return r.prototype._execute.call(this,e,n)},t.sortActions=function(e,n){return e.delay===n.delay?e.index===n.index?0:e.index>n.index?1:-1:e.delay>n.delay?1:-1},t}(Tv.AsyncAction);ee.VirtualAction=ta});var N=s(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.empty=Ee.EMPTY=void 0;var ia=P();Ee.EMPTY=new ia.Observable(function(r){return r.complete()});function Rv(r){return r?Wv(r):Ee.EMPTY}Ee.empty=Rv;function Wv(r){return new ia.Observable(function(t){return r.schedule(function(){return t.complete()})})}});var Sr=s(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.isScheduler=void 0;var Lv=j();function Nv(r){return r&&Lv.isFunction(r.schedule)}et.isScheduler=Nv});var k=s(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.popNumber=re.popScheduler=re.popResultSelector=void 0;var Vv=j(),Uv=Sr();function su(r){return r[r.length-1]}function zv(r){return Vv.isFunction(su(r))?r.pop():void 0}re.popResultSelector=zv;function Yv(r){return Uv.isScheduler(su(r))?r.pop():void 0}re.popScheduler=Yv;function Bv(r,t){return typeof su(r)=="number"?r.pop():t}re.popNumber=Bv});var tt=s(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.isArrayLike=void 0;rt.isArrayLike=function(r){return r&&typeof r.length=="number"&&typeof r!="function"}});var fu=s(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.isPromise=void 0;var Dv=j();function Kv(r){return Dv.isFunction(r==null?void 0:r.then)}nt.isPromise=Kv});var vu=s(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.isInteropObservable=void 0;var Gv=yr(),Qv=j();function Jv(r){return Qv.isFunction(r[Gv.observable])}it.isInteropObservable=Jv});var du=s(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.isAsyncIterable=void 0;var Zv=j();function $v(r){return Symbol.asyncIterator&&Zv.isFunction(r==null?void 0:r[Symbol.asyncIterator])}ut.isAsyncIterable=$v});var pu=s(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.createInvalidObservableTypeError=void 0;function Hv(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}ot.createInvalidObservableTypeError=Hv});var bu=s(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.iterator=rr.getSymbolIterator=void 0;function ua(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}rr.getSymbolIterator=ua;rr.iterator=ua()});var _u=s(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.isIterable=void 0;var Xv=bu(),ed=j();function rd(r){return ed.isFunction(r==null?void 0:r[Xv.iterator])}at.isIterable=rd});var ct=s(R=>{"use strict";var td=R&&R.__generator||function(r,t){var e={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(l){return function(v){return f([l,v])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,i&&(u=l[0]&2?i.return:l[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,l[1])).done)return u;switch(i=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,i=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(u=e.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]1||c(p,y)})})}function c(p,y){try{f(n[p](y))}catch(h){d(u[0][3],h)}}function f(p){p.value instanceof tr?Promise.resolve(p.value.v).then(l,v):d(u[0][2],p)}function l(p){c("next",p)}function v(p){c("throw",p)}function d(p,y){p(y),u.shift(),u.length&&c(u[0][0],u[0][1])}};Object.defineProperty(R,"__esModule",{value:!0});R.isReadableStreamLike=R.readableStreamLikeToAsyncGenerator=void 0;var id=j();function ud(r){return nd(this,arguments,function(){var e,n,i,u;return td(this,function(o){switch(o.label){case 0:e=r.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,tr(e.read())];case 3:return n=o.sent(),i=n.value,u=n.done,u?[4,tr(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,tr(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}R.readableStreamLikeToAsyncGenerator=ud;function od(r){return id.isFunction(r==null?void 0:r.getReader)}R.isReadableStreamLike=od});var q=s(A=>{"use strict";var ad=A&&A.__awaiter||function(r,t,e,n){function i(u){return u instanceof e?u:new e(function(o){o(u)})}return new(e||(e=Promise))(function(u,o){function c(v){try{l(n.next(v))}catch(d){o(d)}}function f(v){try{l(n.throw(v))}catch(d){o(d)}}function l(v){v.done?u(v.value):i(v.value).then(c,f)}l((n=n.apply(r,t||[])).next())})},cd=A&&A.__generator||function(r,t){var e={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(l){return function(v){return f([l,v])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,i&&(u=l[0]&2?i.return:l[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,l[1])).done)return u;switch(i=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,i=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(u=e.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0});A.fromReadableStreamLike=A.fromAsyncIterable=A.fromIterable=A.fromPromise=A.fromArrayLike=A.fromInteropObservable=A.innerFrom=void 0;var sd=tt(),fd=fu(),nr=P(),vd=vu(),dd=du(),pd=pu(),bd=_u(),oa=ct(),_d=j(),hd=Qi(),yd=yr();function md(r){if(r instanceof nr.Observable)return r;if(r!=null){if(vd.isInteropObservable(r))return aa(r);if(sd.isArrayLike(r))return ca(r);if(fd.isPromise(r))return la(r);if(dd.isAsyncIterable(r))return yu(r);if(bd.isIterable(r))return sa(r);if(oa.isReadableStreamLike(r))return fa(r)}throw pd.createInvalidObservableTypeError(r)}A.innerFrom=md;function aa(r){return new nr.Observable(function(t){var e=r[yd.observable]();if(_d.isFunction(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}A.fromInteropObservable=aa;function ca(r){return new nr.Observable(function(t){for(var e=0;e{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.executeSchedule=void 0;function gd(r,t,e,n,i){n===void 0&&(n=0),i===void 0&&(i=!1);var u=t.schedule(function(){e(),i?r.add(this.schedule(null,n)):this.unsubscribe()},n);if(r.add(u),!i)return u}lt.executeSchedule=gd});var jr=s(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.observeOn=void 0;var mu=G(),qd=b(),Sd=O();function jd(r,t){return t===void 0&&(t=0),qd.operate(function(e,n){e.subscribe(Sd.createOperatorSubscriber(n,function(i){return mu.executeSchedule(n,r,function(){return n.next(i)},t)},function(){return mu.executeSchedule(n,r,function(){return n.complete()},t)},function(i){return mu.executeSchedule(n,r,function(){return n.error(i)},t)}))})}st.observeOn=jd});var Pr=s(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.subscribeOn=void 0;var Pd=b();function wd(r,t){return t===void 0&&(t=0),Pd.operate(function(e,n){n.add(r.schedule(function(){return e.subscribe(n)},t))})}ft.subscribeOn=wd});var va=s(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.scheduleObservable=void 0;var Ad=q(),Ed=jr(),Md=Pr();function Fd(r,t){return Ad.innerFrom(r).pipe(Md.subscribeOn(t),Ed.observeOn(t))}vt.scheduleObservable=Fd});var da=s(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.schedulePromise=void 0;var Id=q(),Td=jr(),xd=Pr();function kd(r,t){return Id.innerFrom(r).pipe(xd.subscribeOn(t),Td.observeOn(t))}dt.schedulePromise=kd});var pa=s(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.scheduleArray=void 0;var Cd=P();function Rd(r,t){return new Cd.Observable(function(e){var n=0;return t.schedule(function(){n===r.length?e.complete():(e.next(r[n++]),e.closed||this.schedule())})})}pt.scheduleArray=Rd});var Ou=s(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.scheduleIterable=void 0;var Wd=P(),Ld=bu(),Nd=j(),ba=G();function Vd(r,t){return new Wd.Observable(function(e){var n;return ba.executeSchedule(e,t,function(){n=r[Ld.iterator](),ba.executeSchedule(e,t,function(){var i,u,o;try{i=n.next(),u=i.value,o=i.done}catch(c){e.error(c);return}o?e.complete():e.next(u)},0,!0)}),function(){return Nd.isFunction(n==null?void 0:n.return)&&n.return()}})}bt.scheduleIterable=Vd});var gu=s(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.scheduleAsyncIterable=void 0;var Ud=P(),_a=G();function zd(r,t){if(!r)throw new Error("Iterable cannot be null");return new Ud.Observable(function(e){_a.executeSchedule(e,t,function(){var n=r[Symbol.asyncIterator]();_a.executeSchedule(e,t,function(){n.next().then(function(i){i.done?e.complete():e.next(i.value)})},0,!0)})})}_t.scheduleAsyncIterable=zd});var ha=s(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.scheduleReadableStreamLike=void 0;var Yd=gu(),Bd=ct();function Dd(r,t){return Yd.scheduleAsyncIterable(Bd.readableStreamLikeToAsyncGenerator(r),t)}ht.scheduleReadableStreamLike=Dd});var qu=s(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.scheduled=void 0;var Kd=va(),Gd=da(),Qd=pa(),Jd=Ou(),Zd=gu(),$d=vu(),Hd=fu(),Xd=tt(),ep=_u(),rp=du(),tp=pu(),np=ct(),ip=ha();function up(r,t){if(r!=null){if($d.isInteropObservable(r))return Kd.scheduleObservable(r,t);if(Xd.isArrayLike(r))return Qd.scheduleArray(r,t);if(Hd.isPromise(r))return Gd.schedulePromise(r,t);if(rp.isAsyncIterable(r))return Zd.scheduleAsyncIterable(r,t);if(ep.isIterable(r))return Jd.scheduleIterable(r,t);if(np.isReadableStreamLike(r))return ip.scheduleReadableStreamLike(r,t)}throw tp.createInvalidObservableTypeError(r)}yt.scheduled=up});var Q=s(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.from=void 0;var op=qu(),ap=q();function cp(r,t){return t?op.scheduled(r,t):ap.innerFrom(r)}mt.from=cp});var gt=s(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.of=void 0;var lp=k(),sp=Q();function fp(){for(var r=[],t=0;t{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.throwError=void 0;var vp=P(),dp=j();function pp(r,t){var e=dp.isFunction(r)?r:function(){return r},n=function(i){return i.error(e())};return new vp.Observable(t?function(i){return t.schedule(n,0,i)}:n)}qt.throwError=pp});var St=s(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.observeNotification=J.Notification=J.NotificationKind=void 0;var bp=N(),_p=gt(),hp=Su(),yp=j(),mp;(function(r){r.NEXT="N",r.ERROR="E",r.COMPLETE="C"})(mp=J.NotificationKind||(J.NotificationKind={}));var Op=function(){function r(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue=t==="N"}return r.prototype.observe=function(t){return ya(this,t)},r.prototype.do=function(t,e,n){var i=this,u=i.kind,o=i.value,c=i.error;return u==="N"?t==null?void 0:t(o):u==="E"?e==null?void 0:e(c):n==null?void 0:n()},r.prototype.accept=function(t,e,n){var i;return yp.isFunction((i=t)===null||i===void 0?void 0:i.next)?this.observe(t):this.do(t,e,n)},r.prototype.toObservable=function(){var t=this,e=t.kind,n=t.value,i=t.error,u=e==="N"?_p.of(n):e==="E"?hp.throwError(function(){return i}):e==="C"?bp.EMPTY:0;if(!u)throw new TypeError("Unexpected notification kind "+e);return u},r.createNext=function(t){return new r("N",t)},r.createError=function(t){return new r("E",void 0,t)},r.createComplete=function(){return r.completeNotification},r.completeNotification=new r("C"),r}();J.Notification=Op;function ya(r,t){var e,n,i,u=r,o=u.kind,c=u.value,f=u.error;if(typeof o!="string")throw new TypeError('Invalid notification, missing "kind"');o==="N"?(e=t.next)===null||e===void 0||e.call(t,c):o==="E"?(n=t.error)===null||n===void 0||n.call(t,f):(i=t.complete)===null||i===void 0||i.call(t)}J.observeNotification=ya});var Oa=s(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.isObservable=void 0;var gp=P(),ma=j();function qp(r){return!!r&&(r instanceof gp.Observable||ma.isFunction(r.lift)&&ma.isFunction(r.subscribe))}jt.isObservable=qp});var te=s(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.EmptyError=void 0;var Sp=H();Pt.EmptyError=Sp.createErrorClass(function(r){return function(){r(this),this.name="EmptyError",this.message="no elements in sequence"}})});var ga=s(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.lastValueFrom=void 0;var jp=te();function Pp(r,t){var e=typeof t=="object";return new Promise(function(n,i){var u=!1,o;r.subscribe({next:function(c){o=c,u=!0},error:i,complete:function(){u?n(o):e?n(t.defaultValue):i(new jp.EmptyError)}})})}wt.lastValueFrom=Pp});var qa=s(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.firstValueFrom=void 0;var wp=te(),Ap=Re();function Ep(r,t){var e=typeof t=="object";return new Promise(function(n,i){var u=new Ap.SafeSubscriber({next:function(o){n(o),u.unsubscribe()},error:i,complete:function(){e?n(t.defaultValue):i(new wp.EmptyError)}});r.subscribe(u)})}At.firstValueFrom=Ep});var ju=s(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.ArgumentOutOfRangeError=void 0;var Mp=H();Et.ArgumentOutOfRangeError=Mp.createErrorClass(function(r){return function(){r(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})});var Pu=s(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.NotFoundError=void 0;var Fp=H();Mt.NotFoundError=Fp.createErrorClass(function(r){return function(e){r(this),this.name="NotFoundError",this.message=e}})});var wu=s(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.SequenceError=void 0;var Ip=H();Ft.SequenceError=Ip.createErrorClass(function(r){return function(e){r(this),this.name="SequenceError",this.message=e}})});var Tt=s(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.isValidDate=void 0;function Tp(r){return r instanceof Date&&!isNaN(r)}It.isValidDate=Tp});var xt=s(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.timeout=Me.TimeoutError=void 0;var xp=x(),kp=Tt(),Cp=b(),Rp=q(),Wp=H(),Lp=O(),Np=G();Me.TimeoutError=Wp.createErrorClass(function(r){return function(e){e===void 0&&(e=null),r(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}});function Vp(r,t){var e=kp.isValidDate(r)?{first:r}:typeof r=="number"?{each:r}:r,n=e.first,i=e.each,u=e.with,o=u===void 0?Up:u,c=e.scheduler,f=c===void 0?t??xp.asyncScheduler:c,l=e.meta,v=l===void 0?null:l;if(n==null&&i==null)throw new TypeError("No timeout provided.");return Cp.operate(function(d,p){var y,h,_=null,m=0,g=function(w){h=Np.executeSchedule(p,f,function(){try{y.unsubscribe(),Rp.innerFrom(o({meta:v,lastValue:_,seen:m})).subscribe(p)}catch(I){p.error(I)}},w)};y=d.subscribe(Lp.createOperatorSubscriber(p,function(w){h==null||h.unsubscribe(),m++,p.next(_=w),i>0&&g(i)},void 0,void 0,function(){h!=null&&h.closed||h==null||h.unsubscribe(),_=null})),!m&&g(n!=null?typeof n=="number"?n:+n-f.now():i)})}Me.timeout=Vp;function Up(r){throw new Me.TimeoutError(r)}});var ne=s(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.map=void 0;var zp=b(),Yp=O();function Bp(r,t){return zp.operate(function(e,n){var i=0;e.subscribe(Yp.createOperatorSubscriber(n,function(u){n.next(r.call(t,u,i++))}))})}kt.map=Bp});var ue=s(ie=>{"use strict";var Dp=ie&&ie.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Kp=ie&&ie.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var $p=oe&&oe.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Sa=oe&&oe.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.bindCallback=void 0;var ib=Eu();function ub(r,t,e){return ib.bindCallbackInternals(!1,r,t,e)}Ct.bindCallback=ub});var Pa=s(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.bindNodeCallback=void 0;var ob=Eu();function ab(r,t,e){return ob.bindCallbackInternals(!0,r,t,e)}Rt.bindNodeCallback=ab});var Mu=s(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.argsArgArrayOrObject=void 0;var cb=Array.isArray,lb=Object.getPrototypeOf,sb=Object.prototype,fb=Object.keys;function vb(r){if(r.length===1){var t=r[0];if(cb(t))return{args:t,keys:null};if(db(t)){var e=fb(t);return{args:e.map(function(n){return t[n]}),keys:e}}}return{args:r,keys:null}}Wt.argsArgArrayOrObject=vb;function db(r){return r&&typeof r=="object"&&lb(r)===sb}});var Fu=s(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.createObject=void 0;function pb(r,t){return r.reduce(function(e,n,i){return e[n]=t[i],e},{})}Lt.createObject=pb});var Nt=s(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.combineLatestInit=ir.combineLatest=void 0;var bb=P(),_b=Mu(),Ea=Q(),Ma=M(),hb=ue(),wa=k(),yb=Fu(),mb=O(),Ob=G();function gb(){for(var r=[],t=0;t{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.mergeInternals=void 0;var qb=q(),Sb=G(),Ia=O();function jb(r,t,e,n,i,u,o,c){var f=[],l=0,v=0,d=!1,p=function(){d&&!f.length&&!l&&t.complete()},y=function(_){return l{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.mergeMap=void 0;var Pb=ne(),wb=q(),Ab=b(),Eb=Ut(),Mb=j();function Ta(r,t,e){return e===void 0&&(e=1/0),Mb.isFunction(t)?Ta(function(n,i){return Pb.map(function(u,o){return t(n,u,i,o)})(wb.innerFrom(r(n,i)))},e):(typeof t=="number"&&(e=t),Ab.operate(function(n,i){return Eb.mergeInternals(n,i,r,e)}))}zt.mergeMap=Ta});var wr=s(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.mergeAll=void 0;var Fb=Z(),Ib=M();function Tb(r){return r===void 0&&(r=1/0),Fb.mergeMap(Ib.identity,r)}Yt.mergeAll=Tb});var Dt=s(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.concatAll=void 0;var xb=wr();function kb(){return xb.mergeAll(1)}Bt.concatAll=kb});var Ar=s(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.concat=void 0;var Cb=Dt(),Rb=k(),Wb=Q();function Lb(){for(var r=[],t=0;t{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.defer=void 0;var Nb=P(),Vb=q();function Ub(r){return new Nb.Observable(function(t){Vb.innerFrom(r()).subscribe(t)})}Gt.defer=Ub});var xa=s(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.connectable=void 0;var zb=F(),Yb=P(),Bb=Er(),Db={connector:function(){return new zb.Subject},resetOnDisconnect:!0};function Kb(r,t){t===void 0&&(t=Db);var e=null,n=t.connector,i=t.resetOnDisconnect,u=i===void 0?!0:i,o=n(),c=new Yb.Observable(function(f){return o.subscribe(f)});return c.connect=function(){return(!e||e.closed)&&(e=Bb.defer(function(){return r}).subscribe(o),u&&e.add(function(){return o=n()})),e},c}Qt.connectable=Kb});var ka=s(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.forkJoin=void 0;var Gb=P(),Qb=Mu(),Jb=q(),Zb=k(),$b=O(),Hb=ue(),Xb=Fu();function e_(){for(var r=[],t=0;t{"use strict";var r_=ur&&ur.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u};Object.defineProperty(ur,"__esModule",{value:!0});ur.fromEvent=void 0;var t_=q(),n_=P(),i_=Z(),u_=tt(),Fe=j(),o_=ue(),a_=["addListener","removeListener"],c_=["addEventListener","removeEventListener"],l_=["on","off"];function Iu(r,t,e,n){if(Fe.isFunction(e)&&(n=e,e=void 0),n)return Iu(r,t,e).pipe(o_.mapOneOrManyArgs(n));var i=r_(v_(r)?c_.map(function(c){return function(f){return r[c](t,f,e)}}):s_(r)?a_.map(Ca(r,t)):f_(r)?l_.map(Ca(r,t)):[],2),u=i[0],o=i[1];if(!u&&u_.isArrayLike(r))return i_.mergeMap(function(c){return Iu(c,t,e)})(t_.innerFrom(r));if(!u)throw new TypeError("Invalid event target");return new n_.Observable(function(c){var f=function(){for(var l=[],v=0;v{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.fromEventPattern=void 0;var d_=P(),p_=j(),b_=ue();function Wa(r,t,e){return e?Wa(r,t).pipe(b_.mapOneOrManyArgs(e)):new d_.Observable(function(n){var i=function(){for(var o=[],c=0;c{"use strict";var __=or&&or.__generator||function(r,t){var e={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(l){return function(v){return f([l,v])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,i&&(u=l[0]&2?i.return:l[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,l[1])).done)return u;switch(i=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,i=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(u=e.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.iif=void 0;var g_=Er();function q_(r,t,e){return g_.defer(function(){return r()?t:e})}$t.iif=q_});var ae=s(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.timer=void 0;var S_=P(),j_=x(),P_=Sr(),w_=Tt();function A_(r,t,e){r===void 0&&(r=0),e===void 0&&(e=j_.async);var n=-1;return t!=null&&(P_.isScheduler(t)?e=t:n=t),new S_.Observable(function(i){var u=w_.isValidDate(r)?+r-e.now():r;u<0&&(u=0);var o=0;return e.schedule(function(){i.closed||(i.next(o++),0<=n?this.schedule(void 0,n):i.complete())},u)})}Ht.timer=A_});var Tu=s(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.interval=void 0;var E_=x(),M_=ae();function F_(r,t){return r===void 0&&(r=0),t===void 0&&(t=E_.asyncScheduler),r<0&&(r=0),M_.timer(r,r,t)}Xt.interval=F_});var Ya=s(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.merge=void 0;var I_=wr(),T_=q(),x_=N(),za=k(),k_=Q();function C_(){for(var r=[],t=0;t{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.never=Ie.NEVER=void 0;var R_=P(),W_=E();Ie.NEVER=new R_.Observable(W_.noop);function L_(){return Ie.NEVER}Ie.never=L_});var Te=s(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.argsOrArgArray=void 0;var N_=Array.isArray;function V_(r){return r.length===1&&N_(r[0])?r[0]:r}rn.argsOrArgArray=V_});var ku=s(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.onErrorResumeNext=void 0;var U_=P(),z_=Te(),Y_=O(),Ba=E(),B_=q();function D_(){for(var r=[],t=0;t{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.pairs=void 0;var K_=Q();function G_(r,t){return K_.from(Object.entries(r),t)}nn.pairs=G_});var Ka=s(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.not=void 0;function Q_(r,t){return function(e,n){return!r.call(t,e,n)}}un.not=Q_});var xe=s(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.filter=void 0;var J_=b(),Z_=O();function $_(r,t){return J_.operate(function(e,n){var i=0;e.subscribe(Z_.createOperatorSubscriber(n,function(u){return r.call(t,u,i++)&&n.next(u)}))})}on.filter=$_});var Ja=s(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.partition=void 0;var H_=Ka(),Ga=xe(),Qa=q();function X_(r,t,e){return[Ga.filter(t,e)(Qa.innerFrom(r)),Ga.filter(H_.not(t,e))(Qa.innerFrom(r))]}an.partition=X_});var Cu=s(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.raceInit=ar.race=void 0;var eh=P(),Za=q(),rh=Te(),th=O();function nh(){for(var r=[],t=0;t{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.range=void 0;var ih=P(),uh=N();function oh(r,t,e){if(t==null&&(t=r,r=0),t<=0)return uh.EMPTY;var n=t+r;return new ih.Observable(e?function(i){var u=r;return e.schedule(function(){u{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.using=void 0;var ah=P(),ch=q(),lh=N();function sh(r,t){return new ah.Observable(function(e){var n=r(),i=t(n),u=i?ch.innerFrom(i):lh.EMPTY;return u.subscribe(e),function(){n&&n.unsubscribe()}})}ln.using=sh});var sn=s(ce=>{"use strict";var fh=ce&&ce.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},vh=ce&&ce.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(ec,"__esModule",{value:!0})});var Ru=s(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.audit=void 0;var Oh=b(),gh=q(),tc=O();function qh(r){return Oh.operate(function(t,e){var n=!1,i=null,u=null,o=!1,c=function(){if(u==null||u.unsubscribe(),u=null,n){n=!1;var l=i;i=null,e.next(l)}o&&e.complete()},f=function(){u=null,o&&e.complete()};t.subscribe(tc.createOperatorSubscriber(e,function(l){n=!0,i=l,u||gh.innerFrom(r(l)).subscribe(u=tc.createOperatorSubscriber(e,c,f))},function(){o=!0,(!n||!u||u.closed)&&e.complete()}))})}fn.audit=qh});var nc=s(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.auditTime=void 0;var Sh=x(),jh=Ru(),Ph=ae();function wh(r,t){return t===void 0&&(t=Sh.asyncScheduler),jh.audit(function(){return Ph.timer(r,t)})}vn.auditTime=wh});var uc=s(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.buffer=void 0;var Ah=b(),Eh=E(),ic=O(),Mh=q();function Fh(r){return Ah.operate(function(t,e){var n=[];return t.subscribe(ic.createOperatorSubscriber(e,function(i){return n.push(i)},function(){e.next(n),e.complete()})),Mh.innerFrom(r).subscribe(ic.createOperatorSubscriber(e,function(){var i=n;n=[],e.next(i)},Eh.noop)),function(){n=null}})}dn.buffer=Fh});var oc=s(cr=>{"use strict";var Wu=cr&&cr.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(cr,"__esModule",{value:!0});cr.bufferCount=void 0;var Ih=b(),Th=O(),xh=K();function kh(r,t){return t===void 0&&(t=null),t=t??r,Ih.operate(function(e,n){var i=[],u=0;e.subscribe(Th.createOperatorSubscriber(n,function(o){var c,f,l,v,d=null;u++%t===0&&i.push([]);try{for(var p=Wu(i),y=p.next();!y.done;y=p.next()){var h=y.value;h.push(o),r<=h.length&&(d=d??[],d.push(h))}}catch(g){c={error:g}}finally{try{y&&!y.done&&(f=p.return)&&f.call(p)}finally{if(c)throw c.error}}if(d)try{for(var _=Wu(d),m=_.next();!m.done;m=_.next()){var h=m.value;xh.arrRemove(i,h),n.next(h)}}catch(g){l={error:g}}finally{try{m&&!m.done&&(v=_.return)&&v.call(_)}finally{if(l)throw l.error}}},function(){var o,c;try{for(var f=Wu(i),l=f.next();!l.done;l=f.next()){var v=l.value;n.next(v)}}catch(d){o={error:d}}finally{try{l&&!l.done&&(c=f.return)&&c.call(f)}finally{if(o)throw o.error}}n.complete()},void 0,function(){i=null}))})}cr.bufferCount=kh});var cc=s(lr=>{"use strict";var Ch=lr&&lr.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(lr,"__esModule",{value:!0});lr.bufferTime=void 0;var Rh=C(),Wh=b(),Lh=O(),Nh=K(),Vh=x(),Uh=k(),ac=G();function zh(r){for(var t,e,n=[],i=1;i=0?ac.executeSchedule(l,u,y,o,!0):d=!0,y();var h=Lh.createOperatorSubscriber(l,function(_){var m,g,w=v.slice();try{for(var I=Ch(w),$=I.next();!$.done;$=I.next()){var ge=$.value,qe=ge.buffer;qe.push(_),c<=qe.length&&p(ge)}}catch(Ts){m={error:Ts}}finally{try{$&&!$.done&&(g=I.return)&&g.call(I)}finally{if(m)throw m.error}}},function(){for(;v!=null&&v.length;)l.next(v.shift().buffer);h==null||h.unsubscribe(),l.complete(),l.unsubscribe()},void 0,function(){return v=null});f.subscribe(h)})}lr.bufferTime=zh});var fc=s(sr=>{"use strict";var Yh=sr&&sr.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(sr,"__esModule",{value:!0});sr.bufferToggle=void 0;var Bh=C(),Dh=b(),lc=q(),Lu=O(),sc=E(),Kh=K();function Gh(r,t){return Dh.operate(function(e,n){var i=[];lc.innerFrom(r).subscribe(Lu.createOperatorSubscriber(n,function(u){var o=[];i.push(o);var c=new Bh.Subscription,f=function(){Kh.arrRemove(i,o),n.next(o),c.unsubscribe()};c.add(lc.innerFrom(t(u)).subscribe(Lu.createOperatorSubscriber(n,f,sc.noop)))},sc.noop)),e.subscribe(Lu.createOperatorSubscriber(n,function(u){var o,c;try{for(var f=Yh(i),l=f.next();!l.done;l=f.next()){var v=l.value;v.push(u)}}catch(d){o={error:d}}finally{try{l&&!l.done&&(c=f.return)&&c.call(f)}finally{if(o)throw o.error}}},function(){for(;i.length>0;)n.next(i.shift());n.complete()}))})}sr.bufferToggle=Gh});var dc=s(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.bufferWhen=void 0;var Qh=b(),Jh=E(),vc=O(),Zh=q();function $h(r){return Qh.operate(function(t,e){var n=null,i=null,u=function(){i==null||i.unsubscribe();var o=n;n=[],o&&e.next(o),Zh.innerFrom(r()).subscribe(i=vc.createOperatorSubscriber(e,u,Jh.noop))};u(),t.subscribe(vc.createOperatorSubscriber(e,function(o){return n==null?void 0:n.push(o)},function(){n&&e.next(n),e.complete()},void 0,function(){return n=i=null}))})}pn.bufferWhen=$h});var bc=s(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.catchError=void 0;var Hh=q(),Xh=O(),ey=b();function pc(r){return ey.operate(function(t,e){var n=null,i=!1,u;n=t.subscribe(Xh.createOperatorSubscriber(e,void 0,void 0,function(o){u=Hh.innerFrom(r(o,pc(r)(t))),n?(n.unsubscribe(),n=null,u.subscribe(e)):i=!0})),i&&(n.unsubscribe(),n=null,u.subscribe(e))})}bn.catchError=pc});var Nu=s(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.scanInternals=void 0;var ry=O();function ty(r,t,e,n,i){return function(u,o){var c=e,f=t,l=0;u.subscribe(ry.createOperatorSubscriber(o,function(v){var d=l++;f=c?r(f,v,d):(c=!0,v),n&&o.next(f)},i&&function(){c&&o.next(f),o.complete()}))}}_n.scanInternals=ty});var fr=s(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.reduce=void 0;var ny=Nu(),iy=b();function uy(r,t){return iy.operate(ny.scanInternals(r,t,arguments.length>=2,!1,!0))}hn.reduce=uy});var Vu=s(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.toArray=void 0;var oy=fr(),ay=b(),cy=function(r,t){return r.push(t),r};function ly(){return ay.operate(function(r,t){oy.reduce(cy,[])(r).subscribe(t)})}yn.toArray=ly});var Uu=s(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.joinAllInternals=void 0;var sy=M(),fy=ue(),vy=mr(),dy=Z(),py=Vu();function by(r,t){return vy.pipe(py.toArray(),dy.mergeMap(function(e){return r(e)}),t?fy.mapOneOrManyArgs(t):sy.identity)}mn.joinAllInternals=by});var zu=s(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.combineLatestAll=void 0;var _y=Nt(),hy=Uu();function yy(r){return hy.joinAllInternals(_y.combineLatest,r)}On.combineLatestAll=yy});var _c=s(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.combineAll=void 0;var my=zu();gn.combineAll=my.combineLatestAll});var Oc=s(le=>{"use strict";var hc=le&&le.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},yc=le&&le.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var wy=se&&se.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Ay=se&&se.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.concatMap=void 0;var qc=Z(),Fy=j();function Iy(r,t){return Fy.isFunction(t)?qc.mergeMap(r,t,1):qc.mergeMap(r,1)}qn.concatMap=Iy});var jc=s(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.concatMapTo=void 0;var Sc=Yu(),Ty=j();function xy(r,t){return Ty.isFunction(t)?Sc.concatMap(function(){return r},t):Sc.concatMap(function(){return r})}Sn.concatMapTo=xy});var Pc=s(fe=>{"use strict";var ky=fe&&fe.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Cy=fe&&fe.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var Uy=ve&&ve.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},zy=ve&&ve.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.fromSubscribable=void 0;var Dy=P();function Ky(r){return new Dy.Observable(function(t){return r.subscribe(t)})}jn.fromSubscribable=Ky});var wn=s(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.connect=void 0;var Gy=F(),Qy=q(),Jy=b(),Zy=Ac(),$y={connector:function(){return new Gy.Subject}};function Hy(r,t){t===void 0&&(t=$y);var e=t.connector;return Jy.operate(function(n,i){var u=e();Qy.innerFrom(r(Zy.fromSubscribable(u))).subscribe(i),i.add(n.subscribe(u))})}Pn.connect=Hy});var Ec=s(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.count=void 0;var Xy=fr();function em(r){return Xy.reduce(function(t,e,n){return!r||r(e,n)?t+1:t},0)}An.count=em});var Fc=s(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.debounce=void 0;var rm=b(),tm=E(),Mc=O(),nm=q();function im(r){return rm.operate(function(t,e){var n=!1,i=null,u=null,o=function(){if(u==null||u.unsubscribe(),u=null,n){n=!1;var c=i;i=null,e.next(c)}};t.subscribe(Mc.createOperatorSubscriber(e,function(c){u==null||u.unsubscribe(),n=!0,i=c,u=Mc.createOperatorSubscriber(e,o,tm.noop),nm.innerFrom(r(c)).subscribe(u)},function(){o(),e.complete()},void 0,function(){i=u=null}))})}En.debounce=im});var Ic=s(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.debounceTime=void 0;var um=x(),om=b(),am=O();function cm(r,t){return t===void 0&&(t=um.asyncScheduler),om.operate(function(e,n){var i=null,u=null,o=null,c=function(){if(i){i.unsubscribe(),i=null;var l=u;u=null,n.next(l)}};function f(){var l=o+r,v=t.now();if(v{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.defaultIfEmpty=void 0;var lm=b(),sm=O();function fm(r){return lm.operate(function(t,e){var n=!1;t.subscribe(sm.createOperatorSubscriber(e,function(i){n=!0,e.next(i)},function(){n||e.next(r),e.complete()}))})}Fn.defaultIfEmpty=fm});var Fr=s(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.take=void 0;var vm=N(),dm=b(),pm=O();function bm(r){return r<=0?function(){return vm.EMPTY}:dm.operate(function(t,e){var n=0;t.subscribe(pm.createOperatorSubscriber(e,function(i){++n<=r&&(e.next(i),r<=n&&e.complete())}))})}In.take=bm});var Bu=s(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.ignoreElements=void 0;var _m=b(),hm=O(),ym=E();function mm(){return _m.operate(function(r,t){r.subscribe(hm.createOperatorSubscriber(t,ym.noop))})}Tn.ignoreElements=mm});var Du=s(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.mapTo=void 0;var Om=ne();function gm(r){return Om.map(function(){return r})}xn.mapTo=gm});var Ku=s(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.delayWhen=void 0;var qm=Ar(),Tc=Fr(),Sm=Bu(),jm=Du(),Pm=Z(),wm=q();function xc(r,t){return t?function(e){return qm.concat(t.pipe(Tc.take(1),Sm.ignoreElements()),e.pipe(xc(r)))}:Pm.mergeMap(function(e,n){return wm.innerFrom(r(e,n)).pipe(Tc.take(1),jm.mapTo(e))})}kn.delayWhen=xc});var kc=s(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.delay=void 0;var Am=x(),Em=Ku(),Mm=ae();function Fm(r,t){t===void 0&&(t=Am.asyncScheduler);var e=Mm.timer(r,t);return Em.delayWhen(function(){return e})}Cn.delay=Fm});var Cc=s(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.dematerialize=void 0;var Im=St(),Tm=b(),xm=O();function km(){return Tm.operate(function(r,t){r.subscribe(xm.createOperatorSubscriber(t,function(e){return Im.observeNotification(e,t)}))})}Rn.dematerialize=km});var Wc=s(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.distinct=void 0;var Cm=b(),Rc=O(),Rm=E(),Wm=q();function Lm(r,t){return Cm.operate(function(e,n){var i=new Set;e.subscribe(Rc.createOperatorSubscriber(n,function(u){var o=r?r(u):u;i.has(o)||(i.add(o),n.next(u))})),t&&Wm.innerFrom(t).subscribe(Rc.createOperatorSubscriber(n,function(){return i.clear()},Rm.noop))})}Wn.distinct=Lm});var Gu=s(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.distinctUntilChanged=void 0;var Nm=M(),Vm=b(),Um=O();function zm(r,t){return t===void 0&&(t=Nm.identity),r=r??Ym,Vm.operate(function(e,n){var i,u=!0;e.subscribe(Um.createOperatorSubscriber(n,function(o){var c=t(o);(u||!r(i,c))&&(u=!1,i=c,n.next(o))}))})}Ln.distinctUntilChanged=zm;function Ym(r,t){return r===t}});var Lc=s(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.distinctUntilKeyChanged=void 0;var Bm=Gu();function Dm(r,t){return Bm.distinctUntilChanged(function(e,n){return t?t(e[r],n[r]):e[r]===n[r]})}Nn.distinctUntilKeyChanged=Dm});var Ir=s(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.throwIfEmpty=void 0;var Km=te(),Gm=b(),Qm=O();function Jm(r){return r===void 0&&(r=Zm),Gm.operate(function(t,e){var n=!1;t.subscribe(Qm.createOperatorSubscriber(e,function(i){n=!0,e.next(i)},function(){return n?e.complete():e.error(r())}))})}Vn.throwIfEmpty=Jm;function Zm(){return new Km.EmptyError}});var Vc=s(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.elementAt=void 0;var Nc=ju(),$m=xe(),Hm=Ir(),Xm=Mr(),eO=Fr();function rO(r,t){if(r<0)throw new Nc.ArgumentOutOfRangeError;var e=arguments.length>=2;return function(n){return n.pipe($m.filter(function(i,u){return u===r}),eO.take(1),e?Xm.defaultIfEmpty(t):Hm.throwIfEmpty(function(){return new Nc.ArgumentOutOfRangeError}))}}Un.elementAt=rO});var Uc=s(de=>{"use strict";var tO=de&&de.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},nO=de&&de.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.every=void 0;var aO=b(),cO=O();function lO(r,t){return aO.operate(function(e,n){var i=0;e.subscribe(cO.createOperatorSubscriber(n,function(u){r.call(t,u,i++,e)||(n.next(!1),n.complete())},function(){n.next(!0),n.complete()}))})}zn.every=lO});var Qu=s(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.exhaustMap=void 0;var sO=ne(),Yc=q(),fO=b(),Bc=O();function Dc(r,t){return t?function(e){return e.pipe(Dc(function(n,i){return Yc.innerFrom(r(n,i)).pipe(sO.map(function(u,o){return t(n,u,i,o)}))}))}:fO.operate(function(e,n){var i=0,u=null,o=!1;e.subscribe(Bc.createOperatorSubscriber(n,function(c){u||(u=Bc.createOperatorSubscriber(n,void 0,function(){u=null,o&&n.complete()}),Yc.innerFrom(r(c,i++)).subscribe(u))},function(){o=!0,!u&&n.complete()}))})}Yn.exhaustMap=Dc});var Ju=s(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.exhaustAll=void 0;var vO=Qu(),dO=M();function pO(){return vO.exhaustMap(dO.identity)}Bn.exhaustAll=pO});var Kc=s(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.exhaust=void 0;var bO=Ju();Dn.exhaust=bO.exhaustAll});var Gc=s(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.expand=void 0;var _O=b(),hO=Ut();function yO(r,t,e){return t===void 0&&(t=1/0),t=(t||0)<1?1/0:t,_O.operate(function(n,i){return hO.mergeInternals(n,i,r,t,void 0,!0,e)})}Kn.expand=yO});var Qc=s(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.finalize=void 0;var mO=b();function OO(r){return mO.operate(function(t,e){try{t.subscribe(e)}finally{e.add(r)}})}Gn.finalize=OO});var Zu=s(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.createFind=vr.find=void 0;var gO=b(),qO=O();function SO(r,t){return gO.operate(Jc(r,t,"value"))}vr.find=SO;function Jc(r,t,e){var n=e==="index";return function(i,u){var o=0;i.subscribe(qO.createOperatorSubscriber(u,function(c){var f=o++;r.call(t,c,f,i)&&(u.next(n?f:c),u.complete())},function(){u.next(n?-1:void 0),u.complete()}))}}vr.createFind=Jc});var Zc=s(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.findIndex=void 0;var jO=b(),PO=Zu();function wO(r,t){return jO.operate(PO.createFind(r,t,"index"))}Qn.findIndex=wO});var $c=s(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.first=void 0;var AO=te(),EO=xe(),MO=Fr(),FO=Mr(),IO=Ir(),TO=M();function xO(r,t){var e=arguments.length>=2;return function(n){return n.pipe(r?EO.filter(function(i,u){return r(i,u,n)}):TO.identity,MO.take(1),e?FO.defaultIfEmpty(t):IO.throwIfEmpty(function(){return new AO.EmptyError}))}}Jn.first=xO});var Xc=s(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.groupBy=void 0;var kO=P(),CO=q(),RO=F(),WO=b(),Hc=O();function LO(r,t,e,n){return WO.operate(function(i,u){var o;!t||typeof t=="function"?o=t:(e=t.duration,o=t.element,n=t.connector);var c=new Map,f=function(h){c.forEach(h),h(u)},l=function(h){return f(function(_){return _.error(h)})},v=0,d=!1,p=new Hc.OperatorSubscriber(u,function(h){try{var _=r(h),m=c.get(_);if(!m){c.set(_,m=n?n():new RO.Subject);var g=y(_,m);if(u.next(g),e){var w=Hc.createOperatorSubscriber(m,function(){m.complete(),w==null||w.unsubscribe()},void 0,void 0,function(){return c.delete(_)});p.add(CO.innerFrom(e(g)).subscribe(w))}}m.next(o?o(h):h)}catch(I){l(I)}},function(){return f(function(h){return h.complete()})},l,function(){return c.clear()},function(){return d=!0,v===0});i.subscribe(p);function y(h,_){var m=new kO.Observable(function(g){v++;var w=_.subscribe(g);return function(){w.unsubscribe(),--v===0&&d&&p.unsubscribe()}});return m.key=h,m}})}Zn.groupBy=LO});var el=s($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.isEmpty=void 0;var NO=b(),VO=O();function UO(){return NO.operate(function(r,t){r.subscribe(VO.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}$n.isEmpty=UO});var $u=s(dr=>{"use strict";var zO=dr&&dr.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(dr,"__esModule",{value:!0});dr.takeLast=void 0;var YO=N(),BO=b(),DO=O();function KO(r){return r<=0?function(){return YO.EMPTY}:BO.operate(function(t,e){var n=[];t.subscribe(DO.createOperatorSubscriber(e,function(i){n.push(i),r{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.last=void 0;var GO=te(),QO=xe(),JO=$u(),ZO=Ir(),$O=Mr(),HO=M();function XO(r,t){var e=arguments.length>=2;return function(n){return n.pipe(r?QO.filter(function(i,u){return r(i,u,n)}):HO.identity,JO.takeLast(1),e?$O.defaultIfEmpty(t):ZO.throwIfEmpty(function(){return new GO.EmptyError}))}}Hn.last=XO});var tl=s(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.materialize=void 0;var Hu=St(),eg=b(),rg=O();function tg(){return eg.operate(function(r,t){r.subscribe(rg.createOperatorSubscriber(t,function(e){t.next(Hu.Notification.createNext(e))},function(){t.next(Hu.Notification.createComplete()),t.complete()},function(e){t.next(Hu.Notification.createError(e)),t.complete()}))})}Xn.materialize=tg});var nl=s(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.max=void 0;var ng=fr(),ig=j();function ug(r){return ng.reduce(ig.isFunction(r)?function(t,e){return r(t,e)>0?t:e}:function(t,e){return t>e?t:e})}ei.max=ug});var il=s(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.flatMap=void 0;var og=Z();ri.flatMap=og.mergeMap});var ol=s(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.mergeMapTo=void 0;var ul=Z(),ag=j();function cg(r,t,e){return e===void 0&&(e=1/0),ag.isFunction(t)?ul.mergeMap(function(){return r},t,e):(typeof t=="number"&&(e=t),ul.mergeMap(function(){return r},e))}ti.mergeMapTo=cg});var al=s(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.mergeScan=void 0;var lg=b(),sg=Ut();function fg(r,t,e){return e===void 0&&(e=1/0),lg.operate(function(n,i){var u=t;return sg.mergeInternals(n,i,function(o,c){return r(u,o,c)},e,function(o){u=o},!1,void 0,function(){return u=null})})}ni.mergeScan=fg});var ll=s(pe=>{"use strict";var vg=pe&&pe.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},dg=pe&&pe.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var mg=be&&be.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Og=be&&be.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.min=void 0;var Sg=fr(),jg=j();function Pg(r){return Sg.reduce(jg.isFunction(r)?function(t,e){return r(t,e)<0?t:e}:function(t,e){return t{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.multicast=void 0;var wg=Or(),vl=j(),Ag=wn();function Eg(r,t){var e=vl.isFunction(r)?r:function(){return r};return vl.isFunction(t)?Ag.connect(t,{connector:e}):function(n){return new wg.ConnectableObservable(n,e)}}ui.multicast=Eg});var pl=s(D=>{"use strict";var Mg=D&&D.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Fg=D&&D.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.pairwise=void 0;var xg=b(),kg=O();function Cg(){return xg.operate(function(r,t){var e,n=!1;r.subscribe(kg.createOperatorSubscriber(t,function(i){var u=e;e=i,n&&t.next([u,i]),n=!0}))})}ai.pairwise=Cg});var _l=s(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.pluck=void 0;var Rg=ne();function Wg(){for(var r=[],t=0;t{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.publish=void 0;var Lg=F(),Ng=oi(),Vg=wn();function Ug(r){return r?function(t){return Vg.connect(r)(t)}:function(t){return Ng.multicast(new Lg.Subject)(t)}}li.publish=Ug});var yl=s(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.publishBehavior=void 0;var zg=au(),Yg=Or();function Bg(r){return function(t){var e=new zg.BehaviorSubject(r);return new Yg.ConnectableObservable(t,function(){return e})}}si.publishBehavior=Bg});var ml=s(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.publishLast=void 0;var Dg=$r(),Kg=Or();function Gg(){return function(r){var t=new Dg.AsyncSubject;return new Kg.ConnectableObservable(r,function(){return t})}}fi.publishLast=Gg});var gl=s(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.publishReplay=void 0;var Qg=Zr(),Jg=oi(),Ol=j();function Zg(r,t,e,n){e&&!Ol.isFunction(e)&&(n=e);var i=Ol.isFunction(e)?e:void 0;return function(u){return Jg.multicast(new Qg.ReplaySubject(r,t,n),i)(u)}}vi.publishReplay=Zg});var ql=s(_e=>{"use strict";var $g=_e&&_e.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Hg=_e&&_e.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.repeat=void 0;var n0=N(),i0=b(),Sl=O(),u0=q(),o0=ae();function a0(r){var t,e=1/0,n;return r!=null&&(typeof r=="object"?(t=r.count,e=t===void 0?1/0:t,n=r.delay):e=r),e<=0?function(){return n0.EMPTY}:i0.operate(function(i,u){var o=0,c,f=function(){if(c==null||c.unsubscribe(),c=null,n!=null){var v=typeof n=="number"?o0.timer(n):u0.innerFrom(n(o)),d=Sl.createOperatorSubscriber(u,function(){d.unsubscribe(),l()});v.subscribe(d)}else l()},l=function(){var v=!1;c=i.subscribe(Sl.createOperatorSubscriber(u,void 0,function(){++o{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.repeatWhen=void 0;var c0=q(),l0=F(),s0=b(),Pl=O();function f0(r){return s0.operate(function(t,e){var n,i=!1,u,o=!1,c=!1,f=function(){return c&&o&&(e.complete(),!0)},l=function(){return u||(u=new l0.Subject,c0.innerFrom(r(u)).subscribe(Pl.createOperatorSubscriber(e,function(){n?v():i=!0},function(){o=!0,f()}))),u},v=function(){c=!1,n=t.subscribe(Pl.createOperatorSubscriber(e,void 0,function(){c=!0,!f()&&l().next()})),i&&(n.unsubscribe(),n=null,i=!1,v())};v()})}pi.repeatWhen=f0});var El=s(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.retry=void 0;var v0=b(),Al=O(),d0=M(),p0=ae(),b0=q();function _0(r){r===void 0&&(r=1/0);var t;r&&typeof r=="object"?t=r:t={count:r};var e=t.count,n=e===void 0?1/0:e,i=t.delay,u=t.resetOnSuccess,o=u===void 0?!1:u;return n<=0?d0.identity:v0.operate(function(c,f){var l=0,v,d=function(){var p=!1;v=c.subscribe(Al.createOperatorSubscriber(f,function(y){o&&(l=0),f.next(y)},void 0,function(y){if(l++{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.retryWhen=void 0;var h0=q(),y0=F(),m0=b(),Ml=O();function O0(r){return m0.operate(function(t,e){var n,i=!1,u,o=function(){n=t.subscribe(Ml.createOperatorSubscriber(e,void 0,void 0,function(c){u||(u=new y0.Subject,h0.innerFrom(r(u)).subscribe(Ml.createOperatorSubscriber(e,function(){return n?o():i=!0}))),u&&u.next(c)})),i&&(n.unsubscribe(),n=null,i=!1,o())};o()})}_i.retryWhen=O0});var Xu=s(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.sample=void 0;var g0=q(),q0=b(),S0=E(),Il=O();function j0(r){return q0.operate(function(t,e){var n=!1,i=null;t.subscribe(Il.createOperatorSubscriber(e,function(u){n=!0,i=u})),g0.innerFrom(r).subscribe(Il.createOperatorSubscriber(e,function(){if(n){n=!1;var u=i;i=null,e.next(u)}},S0.noop))})}hi.sample=j0});var Tl=s(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.sampleTime=void 0;var P0=x(),w0=Xu(),A0=Tu();function E0(r,t){return t===void 0&&(t=P0.asyncScheduler),w0.sample(A0.interval(r,t))}yi.sampleTime=E0});var xl=s(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.scan=void 0;var M0=b(),F0=Nu();function I0(r,t){return M0.operate(F0.scanInternals(r,t,arguments.length>=2,!0))}mi.scan=I0});var Cl=s(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.sequenceEqual=void 0;var T0=b(),x0=O(),k0=q();function C0(r,t){return t===void 0&&(t=function(e,n){return e===n}),T0.operate(function(e,n){var i=kl(),u=kl(),o=function(f){n.next(f),n.complete()},c=function(f,l){var v=x0.createOperatorSubscriber(n,function(d){var p=l.buffer,y=l.complete;p.length===0?y?o(!1):f.buffer.push(d):!t(d,p.shift())&&o(!1)},function(){f.complete=!0;var d=l.complete,p=l.buffer;d&&o(p.length===0),v==null||v.unsubscribe()});return v};e.subscribe(c(i,u)),k0.innerFrom(r).subscribe(c(u,i))})}Oi.sequenceEqual=C0;function kl(){return{buffer:[],complete:!1}}});var ro=s(he=>{"use strict";var R0=he&&he.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},W0=he&&he.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e0&&(v=new Wl.SafeSubscriber({next:function(qe){return ge.next(qe)},error:function(qe){_=!0,m(),d=eo(g,i,qe),ge.error(qe)},complete:function(){h=!0,m(),d=eo(g,o),ge.complete()}}),Rl.innerFrom(I).subscribe(v))})(l)}}he.share=V0;function eo(r,t){for(var e=[],n=2;n{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.shareReplay=void 0;var U0=Zr(),z0=ro();function Y0(r,t,e){var n,i,u,o,c=!1;return r&&typeof r=="object"?(n=r.bufferSize,o=n===void 0?1/0:n,i=r.windowTime,t=i===void 0?1/0:i,u=r.refCount,c=u===void 0?!1:u,e=r.scheduler):o=r??1/0,z0.share({connector:function(){return new U0.ReplaySubject(o,t,e)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}gi.shareReplay=Y0});var Nl=s(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.single=void 0;var B0=te(),D0=wu(),K0=Pu(),G0=b(),Q0=O();function J0(r){return G0.operate(function(t,e){var n=!1,i,u=!1,o=0;t.subscribe(Q0.createOperatorSubscriber(e,function(c){u=!0,(!r||r(c,o++,t))&&(n&&e.error(new D0.SequenceError("Too many matching values")),n=!0,i=c)},function(){n?(e.next(i),e.complete()):e.error(u?new K0.NotFoundError("No matching values"):new B0.EmptyError)}))})}qi.single=J0});var Vl=s(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.skip=void 0;var Z0=xe();function $0(r){return Z0.filter(function(t,e){return r<=e})}Si.skip=$0});var Ul=s(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.skipLast=void 0;var H0=M(),X0=b(),eq=O();function rq(r){return r<=0?H0.identity:X0.operate(function(t,e){var n=new Array(r),i=0;return t.subscribe(eq.createOperatorSubscriber(e,function(u){var o=i++;if(o{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.skipUntil=void 0;var tq=b(),zl=O(),nq=q(),iq=E();function uq(r){return tq.operate(function(t,e){var n=!1,i=zl.createOperatorSubscriber(e,function(){i==null||i.unsubscribe(),n=!0},iq.noop);nq.innerFrom(r).subscribe(i),t.subscribe(zl.createOperatorSubscriber(e,function(u){return n&&e.next(u)}))})}Pi.skipUntil=uq});var Bl=s(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.skipWhile=void 0;var oq=b(),aq=O();function cq(r){return oq.operate(function(t,e){var n=!1,i=0;t.subscribe(aq.createOperatorSubscriber(e,function(u){return(n||(n=!r(u,i++)))&&e.next(u)}))})}wi.skipWhile=cq});var Kl=s(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.startWith=void 0;var Dl=Ar(),lq=k(),sq=b();function fq(){for(var r=[],t=0;t{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.switchMap=void 0;var vq=q(),dq=b(),Gl=O();function pq(r,t){return dq.operate(function(e,n){var i=null,u=0,o=!1,c=function(){return o&&!i&&n.complete()};e.subscribe(Gl.createOperatorSubscriber(n,function(f){i==null||i.unsubscribe();var l=0,v=u++;vq.innerFrom(r(f,v)).subscribe(i=Gl.createOperatorSubscriber(n,function(d){return n.next(t?t(f,d,v,l++):d)},function(){i=null,c()}))},function(){o=!0,c()}))})}Ei.switchMap=pq});var Ql=s(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.switchAll=void 0;var bq=Tr(),_q=M();function hq(){return bq.switchMap(_q.identity)}Mi.switchAll=hq});var Zl=s(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.switchMapTo=void 0;var Jl=Tr(),yq=j();function mq(r,t){return yq.isFunction(t)?Jl.switchMap(function(){return r},t):Jl.switchMap(function(){return r})}Fi.switchMapTo=mq});var $l=s(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.switchScan=void 0;var Oq=Tr(),gq=b();function qq(r,t){return gq.operate(function(e,n){var i=t;return Oq.switchMap(function(u,o){return r(i,u,o)},function(u,o){return i=o,o})(e).subscribe(n),function(){i=null}})}Ii.switchScan=qq});var Hl=s(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.takeUntil=void 0;var Sq=b(),jq=O(),Pq=q(),wq=E();function Aq(r){return Sq.operate(function(t,e){Pq.innerFrom(r).subscribe(jq.createOperatorSubscriber(e,function(){return e.complete()},wq.noop)),!e.closed&&t.subscribe(e)})}Ti.takeUntil=Aq});var Xl=s(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.takeWhile=void 0;var Eq=b(),Mq=O();function Fq(r,t){return t===void 0&&(t=!1),Eq.operate(function(e,n){var i=0;e.subscribe(Mq.createOperatorSubscriber(n,function(u){var o=r(u,i++);(o||t)&&n.next(u),!o&&n.complete()}))})}xi.takeWhile=Fq});var es=s(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.tap=void 0;var Iq=j(),Tq=b(),xq=O(),kq=M();function Cq(r,t,e){var n=Iq.isFunction(r)||t||e?{next:r,error:t,complete:e}:r;return n?Tq.operate(function(i,u){var o;(o=n.subscribe)===null||o===void 0||o.call(n);var c=!0;i.subscribe(xq.createOperatorSubscriber(u,function(f){var l;(l=n.next)===null||l===void 0||l.call(n,f),u.next(f)},function(){var f;c=!1,(f=n.complete)===null||f===void 0||f.call(n),u.complete()},function(f){var l;c=!1,(l=n.error)===null||l===void 0||l.call(n,f),u.error(f)},function(){var f,l;c&&((f=n.unsubscribe)===null||f===void 0||f.call(n)),(l=n.finalize)===null||l===void 0||l.call(n)}))}):kq.identity}ki.tap=Cq});var to=s(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.throttle=void 0;var Rq=b(),rs=O(),Wq=q();function Lq(r,t){return Rq.operate(function(e,n){var i=t??{},u=i.leading,o=u===void 0?!0:u,c=i.trailing,f=c===void 0?!1:c,l=!1,v=null,d=null,p=!1,y=function(){d==null||d.unsubscribe(),d=null,f&&(m(),p&&n.complete())},h=function(){d=null,p&&n.complete()},_=function(g){return d=Wq.innerFrom(r(g)).subscribe(rs.createOperatorSubscriber(n,y,h))},m=function(){if(l){l=!1;var g=v;v=null,n.next(g),!p&&_(g)}};e.subscribe(rs.createOperatorSubscriber(n,function(g){l=!0,v=g,!(d&&!d.closed)&&(o?m():_(g))},function(){p=!0,!(f&&l&&d&&!d.closed)&&n.complete()}))})}Ci.throttle=Lq});var ts=s(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.throttleTime=void 0;var Nq=x(),Vq=to(),Uq=ae();function zq(r,t,e){t===void 0&&(t=Nq.asyncScheduler);var n=Uq.timer(r,t);return Vq.throttle(function(){return n},e)}Ri.throttleTime=zq});var is=s(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.TimeInterval=pr.timeInterval=void 0;var Yq=x(),Bq=b(),Dq=O();function Kq(r){return r===void 0&&(r=Yq.asyncScheduler),Bq.operate(function(t,e){var n=r.now();t.subscribe(Dq.createOperatorSubscriber(e,function(i){var u=r.now(),o=u-n;n=u,e.next(new ns(i,o))}))})}pr.timeInterval=Kq;var ns=function(){function r(t,e){this.value=t,this.interval=e}return r}();pr.TimeInterval=ns});var us=s(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.timeoutWith=void 0;var Gq=x(),Qq=Tt(),Jq=xt();function Zq(r,t,e){var n,i,u;if(e=e??Gq.async,Qq.isValidDate(r)?n=r:typeof r=="number"&&(i=r),t)u=function(){return t};else throw new TypeError("No observable provided to switch to");if(n==null&&i==null)throw new TypeError("No timeout provided.");return Jq.timeout({first:n,each:i,scheduler:e,with:u})}Wi.timeoutWith=Zq});var os=s(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.timestamp=void 0;var $q=Jr(),Hq=ne();function Xq(r){return r===void 0&&(r=$q.dateTimestampProvider),Hq.map(function(t){return{value:t,timestamp:r.now()}})}Li.timestamp=Xq});var ls=s(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.window=void 0;var as=F(),e1=b(),cs=O(),r1=E(),t1=q();function n1(r){return e1.operate(function(t,e){var n=new as.Subject;e.next(n.asObservable());var i=function(u){n.error(u),e.error(u)};return t.subscribe(cs.createOperatorSubscriber(e,function(u){return n==null?void 0:n.next(u)},function(){n.complete(),e.complete()},i)),t1.innerFrom(r).subscribe(cs.createOperatorSubscriber(e,function(){n.complete(),e.next(n=new as.Subject)},r1.noop,i)),function(){n==null||n.unsubscribe(),n=null}})}Ni.window=n1});var fs=s(br=>{"use strict";var i1=br&&br.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(br,"__esModule",{value:!0});br.windowCount=void 0;var ss=F(),u1=b(),o1=O();function a1(r,t){t===void 0&&(t=0);var e=t>0?t:r;return u1.operate(function(n,i){var u=[new ss.Subject],o=[],c=0;i.next(u[0].asObservable()),n.subscribe(o1.createOperatorSubscriber(i,function(f){var l,v;try{for(var d=i1(u),p=d.next();!p.done;p=d.next()){var y=p.value;y.next(f)}}catch(m){l={error:m}}finally{try{p&&!p.done&&(v=d.return)&&v.call(d)}finally{if(l)throw l.error}}var h=c-r+1;if(h>=0&&h%e===0&&u.shift().complete(),++c%e===0){var _=new ss.Subject;u.push(_),i.next(_.asObservable())}},function(){for(;u.length>0;)u.shift().complete();i.complete()},function(f){for(;u.length>0;)u.shift().error(f);i.error(f)},function(){o=null,u=null}))})}br.windowCount=a1});var ds=s(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.windowTime=void 0;var c1=F(),l1=x(),s1=C(),f1=b(),v1=O(),d1=K(),p1=k(),vs=G();function b1(r){for(var t,e,n=[],i=1;i=0?vs.executeSchedule(l,u,y,o,!0):d=!0,y();var h=function(m){return v.slice().forEach(m)},_=function(m){h(function(g){var w=g.window;return m(w)}),m(l),l.unsubscribe()};return f.subscribe(v1.createOperatorSubscriber(l,function(m){h(function(g){g.window.next(m),c<=++g.seen&&p(g)})},function(){return _(function(m){return m.complete()})},function(m){return _(function(g){return g.error(m)})})),function(){v=null}})}Vi.windowTime=b1});var _s=s(_r=>{"use strict";var _1=_r&&_r.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(_r,"__esModule",{value:!0});_r.windowToggle=void 0;var h1=F(),y1=C(),m1=b(),ps=q(),no=O(),bs=E(),O1=K();function g1(r,t){return m1.operate(function(e,n){var i=[],u=function(o){for(;0{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.windowWhen=void 0;var q1=F(),S1=b(),hs=O(),j1=q();function P1(r){return S1.operate(function(t,e){var n,i,u=function(c){n.error(c),e.error(c)},o=function(){i==null||i.unsubscribe(),n==null||n.complete(),n=new q1.Subject,e.next(n.asObservable());var c;try{c=j1.innerFrom(r())}catch(f){u(f);return}c.subscribe(i=hs.createOperatorSubscriber(e,o,o,u))};o(),t.subscribe(hs.createOperatorSubscriber(e,function(c){return n.next(c)},function(){n.complete(),e.complete()},u,function(){i==null||i.unsubscribe(),n=null}))})}Ui.windowWhen=P1});var qs=s(ye=>{"use strict";var ms=ye&&ye.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Os=ye&&ye.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.zipAll=void 0;var T1=sn(),x1=Uu();function k1(r){return x1.joinAllInternals(T1.zip,r)}zi.zipAll=k1});var js=s(me=>{"use strict";var C1=me&&me.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},R1=me&&me.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var V1=Oe&&Oe.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},U1=Oe&&Oe.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var B1=a&&a.__createBinding||(Object.create?function(r,t,e,n){n===void 0&&(n=e),Object.defineProperty(r,n,{enumerable:!0,get:function(){return t[e]}})}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]}),D1=a&&a.__exportStar||function(r,t){for(var e in r)e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e)&&B1(t,r,e)};Object.defineProperty(a,"__esModule",{value:!0});a.interval=a.iif=a.generate=a.fromEventPattern=a.fromEvent=a.from=a.forkJoin=a.empty=a.defer=a.connectable=a.concat=a.combineLatest=a.bindNodeCallback=a.bindCallback=a.UnsubscriptionError=a.TimeoutError=a.SequenceError=a.ObjectUnsubscribedError=a.NotFoundError=a.EmptyError=a.ArgumentOutOfRangeError=a.firstValueFrom=a.lastValueFrom=a.isObservable=a.identity=a.noop=a.pipe=a.NotificationKind=a.Notification=a.Subscriber=a.Subscription=a.Scheduler=a.VirtualAction=a.VirtualTimeScheduler=a.animationFrameScheduler=a.animationFrame=a.queueScheduler=a.queue=a.asyncScheduler=a.async=a.asapScheduler=a.asap=a.AsyncSubject=a.ReplaySubject=a.BehaviorSubject=a.Subject=a.animationFrames=a.observable=a.ConnectableObservable=a.Observable=void 0;a.filter=a.expand=a.exhaustMap=a.exhaustAll=a.exhaust=a.every=a.endWith=a.elementAt=a.distinctUntilKeyChanged=a.distinctUntilChanged=a.distinct=a.dematerialize=a.delayWhen=a.delay=a.defaultIfEmpty=a.debounceTime=a.debounce=a.count=a.connect=a.concatWith=a.concatMapTo=a.concatMap=a.concatAll=a.combineLatestWith=a.combineLatestAll=a.combineAll=a.catchError=a.bufferWhen=a.bufferToggle=a.bufferTime=a.bufferCount=a.buffer=a.auditTime=a.audit=a.config=a.NEVER=a.EMPTY=a.scheduled=a.zip=a.using=a.timer=a.throwError=a.range=a.race=a.partition=a.pairs=a.onErrorResumeNext=a.of=a.never=a.merge=void 0;a.switchMap=a.switchAll=a.subscribeOn=a.startWith=a.skipWhile=a.skipUntil=a.skipLast=a.skip=a.single=a.shareReplay=a.share=a.sequenceEqual=a.scan=a.sampleTime=a.sample=a.refCount=a.retryWhen=a.retry=a.repeatWhen=a.repeat=a.reduce=a.raceWith=a.publishReplay=a.publishLast=a.publishBehavior=a.publish=a.pluck=a.pairwise=a.onErrorResumeNextWith=a.observeOn=a.multicast=a.min=a.mergeWith=a.mergeScan=a.mergeMapTo=a.mergeMap=a.flatMap=a.mergeAll=a.max=a.materialize=a.mapTo=a.map=a.last=a.isEmpty=a.ignoreElements=a.groupBy=a.first=a.findIndex=a.find=a.finalize=void 0;a.zipWith=a.zipAll=a.withLatestFrom=a.windowWhen=a.windowToggle=a.windowTime=a.windowCount=a.window=a.toArray=a.timestamp=a.timeoutWith=a.timeout=a.timeInterval=a.throwIfEmpty=a.throttleTime=a.throttle=a.tap=a.takeWhile=a.takeUntil=a.takeLast=a.take=a.switchScan=a.switchMapTo=void 0;var K1=P();Object.defineProperty(a,"Observable",{enumerable:!0,get:function(){return K1.Observable}});var G1=Or();Object.defineProperty(a,"ConnectableObservable",{enumerable:!0,get:function(){return G1.ConnectableObservable}});var Q1=yr();Object.defineProperty(a,"observable",{enumerable:!0,get:function(){return Q1.observable}});var J1=Fo();Object.defineProperty(a,"animationFrames",{enumerable:!0,get:function(){return J1.animationFrames}});var Z1=F();Object.defineProperty(a,"Subject",{enumerable:!0,get:function(){return Z1.Subject}});var $1=au();Object.defineProperty(a,"BehaviorSubject",{enumerable:!0,get:function(){return $1.BehaviorSubject}});var H1=Zr();Object.defineProperty(a,"ReplaySubject",{enumerable:!0,get:function(){return H1.ReplaySubject}});var X1=$r();Object.defineProperty(a,"AsyncSubject",{enumerable:!0,get:function(){return X1.AsyncSubject}});var ws=Go();Object.defineProperty(a,"asap",{enumerable:!0,get:function(){return ws.asap}});Object.defineProperty(a,"asapScheduler",{enumerable:!0,get:function(){return ws.asapScheduler}});var As=x();Object.defineProperty(a,"async",{enumerable:!0,get:function(){return As.async}});Object.defineProperty(a,"asyncScheduler",{enumerable:!0,get:function(){return As.asyncScheduler}});var Es=Zo();Object.defineProperty(a,"queue",{enumerable:!0,get:function(){return Es.queue}});Object.defineProperty(a,"queueScheduler",{enumerable:!0,get:function(){return Es.queueScheduler}});var Ms=ea();Object.defineProperty(a,"animationFrame",{enumerable:!0,get:function(){return Ms.animationFrame}});Object.defineProperty(a,"animationFrameScheduler",{enumerable:!0,get:function(){return Ms.animationFrameScheduler}});var Fs=na();Object.defineProperty(a,"VirtualTimeScheduler",{enumerable:!0,get:function(){return Fs.VirtualTimeScheduler}});Object.defineProperty(a,"VirtualAction",{enumerable:!0,get:function(){return Fs.VirtualAction}});var eS=lu();Object.defineProperty(a,"Scheduler",{enumerable:!0,get:function(){return eS.Scheduler}});var rS=C();Object.defineProperty(a,"Subscription",{enumerable:!0,get:function(){return rS.Subscription}});var tS=Re();Object.defineProperty(a,"Subscriber",{enumerable:!0,get:function(){return tS.Subscriber}});var Is=St();Object.defineProperty(a,"Notification",{enumerable:!0,get:function(){return Is.Notification}});Object.defineProperty(a,"NotificationKind",{enumerable:!0,get:function(){return Is.NotificationKind}});var nS=mr();Object.defineProperty(a,"pipe",{enumerable:!0,get:function(){return nS.pipe}});var iS=E();Object.defineProperty(a,"noop",{enumerable:!0,get:function(){return iS.noop}});var uS=M();Object.defineProperty(a,"identity",{enumerable:!0,get:function(){return uS.identity}});var oS=Oa();Object.defineProperty(a,"isObservable",{enumerable:!0,get:function(){return oS.isObservable}});var aS=ga();Object.defineProperty(a,"lastValueFrom",{enumerable:!0,get:function(){return aS.lastValueFrom}});var cS=qa();Object.defineProperty(a,"firstValueFrom",{enumerable:!0,get:function(){return cS.firstValueFrom}});var lS=ju();Object.defineProperty(a,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return lS.ArgumentOutOfRangeError}});var sS=te();Object.defineProperty(a,"EmptyError",{enumerable:!0,get:function(){return sS.EmptyError}});var fS=Pu();Object.defineProperty(a,"NotFoundError",{enumerable:!0,get:function(){return fS.NotFoundError}});var vS=nu();Object.defineProperty(a,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return vS.ObjectUnsubscribedError}});var dS=wu();Object.defineProperty(a,"SequenceError",{enumerable:!0,get:function(){return dS.SequenceError}});var pS=xt();Object.defineProperty(a,"TimeoutError",{enumerable:!0,get:function(){return pS.TimeoutError}});var bS=Bi();Object.defineProperty(a,"UnsubscriptionError",{enumerable:!0,get:function(){return bS.UnsubscriptionError}});var _S=ja();Object.defineProperty(a,"bindCallback",{enumerable:!0,get:function(){return _S.bindCallback}});var hS=Pa();Object.defineProperty(a,"bindNodeCallback",{enumerable:!0,get:function(){return hS.bindNodeCallback}});var yS=Nt();Object.defineProperty(a,"combineLatest",{enumerable:!0,get:function(){return yS.combineLatest}});var mS=Ar();Object.defineProperty(a,"concat",{enumerable:!0,get:function(){return mS.concat}});var OS=xa();Object.defineProperty(a,"connectable",{enumerable:!0,get:function(){return OS.connectable}});var gS=Er();Object.defineProperty(a,"defer",{enumerable:!0,get:function(){return gS.defer}});var qS=N();Object.defineProperty(a,"empty",{enumerable:!0,get:function(){return qS.empty}});var SS=ka();Object.defineProperty(a,"forkJoin",{enumerable:!0,get:function(){return SS.forkJoin}});var jS=Q();Object.defineProperty(a,"from",{enumerable:!0,get:function(){return jS.from}});var PS=Ra();Object.defineProperty(a,"fromEvent",{enumerable:!0,get:function(){return PS.fromEvent}});var wS=La();Object.defineProperty(a,"fromEventPattern",{enumerable:!0,get:function(){return wS.fromEventPattern}});var AS=Va();Object.defineProperty(a,"generate",{enumerable:!0,get:function(){return AS.generate}});var ES=Ua();Object.defineProperty(a,"iif",{enumerable:!0,get:function(){return ES.iif}});var MS=Tu();Object.defineProperty(a,"interval",{enumerable:!0,get:function(){return MS.interval}});var FS=Ya();Object.defineProperty(a,"merge",{enumerable:!0,get:function(){return FS.merge}});var IS=xu();Object.defineProperty(a,"never",{enumerable:!0,get:function(){return IS.never}});var TS=gt();Object.defineProperty(a,"of",{enumerable:!0,get:function(){return TS.of}});var xS=ku();Object.defineProperty(a,"onErrorResumeNext",{enumerable:!0,get:function(){return xS.onErrorResumeNext}});var kS=Da();Object.defineProperty(a,"pairs",{enumerable:!0,get:function(){return kS.pairs}});var CS=Ja();Object.defineProperty(a,"partition",{enumerable:!0,get:function(){return CS.partition}});var RS=Cu();Object.defineProperty(a,"race",{enumerable:!0,get:function(){return RS.race}});var WS=Ha();Object.defineProperty(a,"range",{enumerable:!0,get:function(){return WS.range}});var LS=Su();Object.defineProperty(a,"throwError",{enumerable:!0,get:function(){return LS.throwError}});var NS=ae();Object.defineProperty(a,"timer",{enumerable:!0,get:function(){return NS.timer}});var VS=Xa();Object.defineProperty(a,"using",{enumerable:!0,get:function(){return VS.using}});var US=sn();Object.defineProperty(a,"zip",{enumerable:!0,get:function(){return US.zip}});var zS=qu();Object.defineProperty(a,"scheduled",{enumerable:!0,get:function(){return zS.scheduled}});var YS=N();Object.defineProperty(a,"EMPTY",{enumerable:!0,get:function(){return YS.EMPTY}});var BS=xu();Object.defineProperty(a,"NEVER",{enumerable:!0,get:function(){return BS.NEVER}});D1(rc(),a);var DS=ke();Object.defineProperty(a,"config",{enumerable:!0,get:function(){return DS.config}});var KS=Ru();Object.defineProperty(a,"audit",{enumerable:!0,get:function(){return KS.audit}});var GS=nc();Object.defineProperty(a,"auditTime",{enumerable:!0,get:function(){return GS.auditTime}});var QS=uc();Object.defineProperty(a,"buffer",{enumerable:!0,get:function(){return QS.buffer}});var JS=oc();Object.defineProperty(a,"bufferCount",{enumerable:!0,get:function(){return JS.bufferCount}});var ZS=cc();Object.defineProperty(a,"bufferTime",{enumerable:!0,get:function(){return ZS.bufferTime}});var $S=fc();Object.defineProperty(a,"bufferToggle",{enumerable:!0,get:function(){return $S.bufferToggle}});var HS=dc();Object.defineProperty(a,"bufferWhen",{enumerable:!0,get:function(){return HS.bufferWhen}});var XS=bc();Object.defineProperty(a,"catchError",{enumerable:!0,get:function(){return XS.catchError}});var ej=_c();Object.defineProperty(a,"combineAll",{enumerable:!0,get:function(){return ej.combineAll}});var rj=zu();Object.defineProperty(a,"combineLatestAll",{enumerable:!0,get:function(){return rj.combineLatestAll}});var tj=gc();Object.defineProperty(a,"combineLatestWith",{enumerable:!0,get:function(){return tj.combineLatestWith}});var nj=Dt();Object.defineProperty(a,"concatAll",{enumerable:!0,get:function(){return nj.concatAll}});var ij=Yu();Object.defineProperty(a,"concatMap",{enumerable:!0,get:function(){return ij.concatMap}});var uj=jc();Object.defineProperty(a,"concatMapTo",{enumerable:!0,get:function(){return uj.concatMapTo}});var oj=wc();Object.defineProperty(a,"concatWith",{enumerable:!0,get:function(){return oj.concatWith}});var aj=wn();Object.defineProperty(a,"connect",{enumerable:!0,get:function(){return aj.connect}});var cj=Ec();Object.defineProperty(a,"count",{enumerable:!0,get:function(){return cj.count}});var lj=Fc();Object.defineProperty(a,"debounce",{enumerable:!0,get:function(){return lj.debounce}});var sj=Ic();Object.defineProperty(a,"debounceTime",{enumerable:!0,get:function(){return sj.debounceTime}});var fj=Mr();Object.defineProperty(a,"defaultIfEmpty",{enumerable:!0,get:function(){return fj.defaultIfEmpty}});var vj=kc();Object.defineProperty(a,"delay",{enumerable:!0,get:function(){return vj.delay}});var dj=Ku();Object.defineProperty(a,"delayWhen",{enumerable:!0,get:function(){return dj.delayWhen}});var pj=Cc();Object.defineProperty(a,"dematerialize",{enumerable:!0,get:function(){return pj.dematerialize}});var bj=Wc();Object.defineProperty(a,"distinct",{enumerable:!0,get:function(){return bj.distinct}});var _j=Gu();Object.defineProperty(a,"distinctUntilChanged",{enumerable:!0,get:function(){return _j.distinctUntilChanged}});var hj=Lc();Object.defineProperty(a,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return hj.distinctUntilKeyChanged}});var yj=Vc();Object.defineProperty(a,"elementAt",{enumerable:!0,get:function(){return yj.elementAt}});var mj=Uc();Object.defineProperty(a,"endWith",{enumerable:!0,get:function(){return mj.endWith}});var Oj=zc();Object.defineProperty(a,"every",{enumerable:!0,get:function(){return Oj.every}});var gj=Kc();Object.defineProperty(a,"exhaust",{enumerable:!0,get:function(){return gj.exhaust}});var qj=Ju();Object.defineProperty(a,"exhaustAll",{enumerable:!0,get:function(){return qj.exhaustAll}});var Sj=Qu();Object.defineProperty(a,"exhaustMap",{enumerable:!0,get:function(){return Sj.exhaustMap}});var jj=Gc();Object.defineProperty(a,"expand",{enumerable:!0,get:function(){return jj.expand}});var Pj=xe();Object.defineProperty(a,"filter",{enumerable:!0,get:function(){return Pj.filter}});var wj=Qc();Object.defineProperty(a,"finalize",{enumerable:!0,get:function(){return wj.finalize}});var Aj=Zu();Object.defineProperty(a,"find",{enumerable:!0,get:function(){return Aj.find}});var Ej=Zc();Object.defineProperty(a,"findIndex",{enumerable:!0,get:function(){return Ej.findIndex}});var Mj=$c();Object.defineProperty(a,"first",{enumerable:!0,get:function(){return Mj.first}});var Fj=Xc();Object.defineProperty(a,"groupBy",{enumerable:!0,get:function(){return Fj.groupBy}});var Ij=Bu();Object.defineProperty(a,"ignoreElements",{enumerable:!0,get:function(){return Ij.ignoreElements}});var Tj=el();Object.defineProperty(a,"isEmpty",{enumerable:!0,get:function(){return Tj.isEmpty}});var xj=rl();Object.defineProperty(a,"last",{enumerable:!0,get:function(){return xj.last}});var kj=ne();Object.defineProperty(a,"map",{enumerable:!0,get:function(){return kj.map}});var Cj=Du();Object.defineProperty(a,"mapTo",{enumerable:!0,get:function(){return Cj.mapTo}});var Rj=tl();Object.defineProperty(a,"materialize",{enumerable:!0,get:function(){return Rj.materialize}});var Wj=nl();Object.defineProperty(a,"max",{enumerable:!0,get:function(){return Wj.max}});var Lj=wr();Object.defineProperty(a,"mergeAll",{enumerable:!0,get:function(){return Lj.mergeAll}});var Nj=il();Object.defineProperty(a,"flatMap",{enumerable:!0,get:function(){return Nj.flatMap}});var Vj=Z();Object.defineProperty(a,"mergeMap",{enumerable:!0,get:function(){return Vj.mergeMap}});var Uj=ol();Object.defineProperty(a,"mergeMapTo",{enumerable:!0,get:function(){return Uj.mergeMapTo}});var zj=al();Object.defineProperty(a,"mergeScan",{enumerable:!0,get:function(){return zj.mergeScan}});var Yj=sl();Object.defineProperty(a,"mergeWith",{enumerable:!0,get:function(){return Yj.mergeWith}});var Bj=fl();Object.defineProperty(a,"min",{enumerable:!0,get:function(){return Bj.min}});var Dj=oi();Object.defineProperty(a,"multicast",{enumerable:!0,get:function(){return Dj.multicast}});var Kj=jr();Object.defineProperty(a,"observeOn",{enumerable:!0,get:function(){return Kj.observeOn}});var Gj=pl();Object.defineProperty(a,"onErrorResumeNextWith",{enumerable:!0,get:function(){return Gj.onErrorResumeNextWith}});var Qj=bl();Object.defineProperty(a,"pairwise",{enumerable:!0,get:function(){return Qj.pairwise}});var Jj=_l();Object.defineProperty(a,"pluck",{enumerable:!0,get:function(){return Jj.pluck}});var Zj=hl();Object.defineProperty(a,"publish",{enumerable:!0,get:function(){return Zj.publish}});var $j=yl();Object.defineProperty(a,"publishBehavior",{enumerable:!0,get:function(){return $j.publishBehavior}});var Hj=ml();Object.defineProperty(a,"publishLast",{enumerable:!0,get:function(){return Hj.publishLast}});var Xj=gl();Object.defineProperty(a,"publishReplay",{enumerable:!0,get:function(){return Xj.publishReplay}});var eP=ql();Object.defineProperty(a,"raceWith",{enumerable:!0,get:function(){return eP.raceWith}});var rP=fr();Object.defineProperty(a,"reduce",{enumerable:!0,get:function(){return rP.reduce}});var tP=jl();Object.defineProperty(a,"repeat",{enumerable:!0,get:function(){return tP.repeat}});var nP=wl();Object.defineProperty(a,"repeatWhen",{enumerable:!0,get:function(){return nP.repeatWhen}});var iP=El();Object.defineProperty(a,"retry",{enumerable:!0,get:function(){return iP.retry}});var uP=Fl();Object.defineProperty(a,"retryWhen",{enumerable:!0,get:function(){return uP.retryWhen}});var oP=ru();Object.defineProperty(a,"refCount",{enumerable:!0,get:function(){return oP.refCount}});var aP=Xu();Object.defineProperty(a,"sample",{enumerable:!0,get:function(){return aP.sample}});var cP=Tl();Object.defineProperty(a,"sampleTime",{enumerable:!0,get:function(){return cP.sampleTime}});var lP=xl();Object.defineProperty(a,"scan",{enumerable:!0,get:function(){return lP.scan}});var sP=Cl();Object.defineProperty(a,"sequenceEqual",{enumerable:!0,get:function(){return sP.sequenceEqual}});var fP=ro();Object.defineProperty(a,"share",{enumerable:!0,get:function(){return fP.share}});var vP=Ll();Object.defineProperty(a,"shareReplay",{enumerable:!0,get:function(){return vP.shareReplay}});var dP=Nl();Object.defineProperty(a,"single",{enumerable:!0,get:function(){return dP.single}});var pP=Vl();Object.defineProperty(a,"skip",{enumerable:!0,get:function(){return pP.skip}});var bP=Ul();Object.defineProperty(a,"skipLast",{enumerable:!0,get:function(){return bP.skipLast}});var _P=Yl();Object.defineProperty(a,"skipUntil",{enumerable:!0,get:function(){return _P.skipUntil}});var hP=Bl();Object.defineProperty(a,"skipWhile",{enumerable:!0,get:function(){return hP.skipWhile}});var yP=Kl();Object.defineProperty(a,"startWith",{enumerable:!0,get:function(){return yP.startWith}});var mP=Pr();Object.defineProperty(a,"subscribeOn",{enumerable:!0,get:function(){return mP.subscribeOn}});var OP=Ql();Object.defineProperty(a,"switchAll",{enumerable:!0,get:function(){return OP.switchAll}});var gP=Tr();Object.defineProperty(a,"switchMap",{enumerable:!0,get:function(){return gP.switchMap}});var qP=Zl();Object.defineProperty(a,"switchMapTo",{enumerable:!0,get:function(){return qP.switchMapTo}});var SP=$l();Object.defineProperty(a,"switchScan",{enumerable:!0,get:function(){return SP.switchScan}});var jP=Fr();Object.defineProperty(a,"take",{enumerable:!0,get:function(){return jP.take}});var PP=$u();Object.defineProperty(a,"takeLast",{enumerable:!0,get:function(){return PP.takeLast}});var wP=Hl();Object.defineProperty(a,"takeUntil",{enumerable:!0,get:function(){return wP.takeUntil}});var AP=Xl();Object.defineProperty(a,"takeWhile",{enumerable:!0,get:function(){return AP.takeWhile}});var EP=es();Object.defineProperty(a,"tap",{enumerable:!0,get:function(){return EP.tap}});var MP=to();Object.defineProperty(a,"throttle",{enumerable:!0,get:function(){return MP.throttle}});var FP=ts();Object.defineProperty(a,"throttleTime",{enumerable:!0,get:function(){return FP.throttleTime}});var IP=Ir();Object.defineProperty(a,"throwIfEmpty",{enumerable:!0,get:function(){return IP.throwIfEmpty}});var TP=is();Object.defineProperty(a,"timeInterval",{enumerable:!0,get:function(){return TP.timeInterval}});var xP=xt();Object.defineProperty(a,"timeout",{enumerable:!0,get:function(){return xP.timeout}});var kP=us();Object.defineProperty(a,"timeoutWith",{enumerable:!0,get:function(){return kP.timeoutWith}});var CP=os();Object.defineProperty(a,"timestamp",{enumerable:!0,get:function(){return CP.timestamp}});var RP=Vu();Object.defineProperty(a,"toArray",{enumerable:!0,get:function(){return RP.toArray}});var WP=ls();Object.defineProperty(a,"window",{enumerable:!0,get:function(){return WP.window}});var LP=fs();Object.defineProperty(a,"windowCount",{enumerable:!0,get:function(){return LP.windowCount}});var NP=ds();Object.defineProperty(a,"windowTime",{enumerable:!0,get:function(){return NP.windowTime}});var VP=_s();Object.defineProperty(a,"windowToggle",{enumerable:!0,get:function(){return VP.windowToggle}});var UP=ys();Object.defineProperty(a,"windowWhen",{enumerable:!0,get:function(){return UP.windowWhen}});var zP=qs();Object.defineProperty(a,"withLatestFrom",{enumerable:!0,get:function(){return zP.withLatestFrom}});var YP=Ss();Object.defineProperty(a,"zipAll",{enumerable:!0,get:function(){return YP.zipAll}});var BP=Ps();Object.defineProperty(a,"zipWith",{enumerable:!0,get:function(){return BP.zipWith}})});Object.defineProperty(exports,"__esModule",{value:!0});exports.filterAsync=exports.timer=exports.throwIfEmpty=exports.tap=exports.takeUntil=exports.switchMap=exports.startWith=exports.retry=exports.raceWith=exports.race=exports.pipe=exports.of=exports.noop=exports.NEVER=exports.mergeMap=exports.merge=exports.map=exports.lastValueFrom=exports.ignoreElements=exports.identity=exports.fromEvent=exports.from=exports.forkJoin=exports.firstValueFrom=exports.first=exports.filter=exports.EMPTY=exports.delay=exports.defer=exports.defaultIfEmpty=exports.concatMap=exports.catchError=exports.bufferCount=void 0;var S=io();Object.defineProperty(exports,"bufferCount",{enumerable:!0,get:function(){return S.bufferCount}});Object.defineProperty(exports,"catchError",{enumerable:!0,get:function(){return S.catchError}});Object.defineProperty(exports,"concatMap",{enumerable:!0,get:function(){return S.concatMap}});Object.defineProperty(exports,"defaultIfEmpty",{enumerable:!0,get:function(){return S.defaultIfEmpty}});Object.defineProperty(exports,"defer",{enumerable:!0,get:function(){return S.defer}});Object.defineProperty(exports,"delay",{enumerable:!0,get:function(){return S.delay}});Object.defineProperty(exports,"EMPTY",{enumerable:!0,get:function(){return S.EMPTY}});Object.defineProperty(exports,"filter",{enumerable:!0,get:function(){return S.filter}});Object.defineProperty(exports,"first",{enumerable:!0,get:function(){return S.first}});Object.defineProperty(exports,"firstValueFrom",{enumerable:!0,get:function(){return S.firstValueFrom}});Object.defineProperty(exports,"forkJoin",{enumerable:!0,get:function(){return S.forkJoin}});Object.defineProperty(exports,"from",{enumerable:!0,get:function(){return S.from}});Object.defineProperty(exports,"fromEvent",{enumerable:!0,get:function(){return S.fromEvent}});Object.defineProperty(exports,"identity",{enumerable:!0,get:function(){return S.identity}});Object.defineProperty(exports,"ignoreElements",{enumerable:!0,get:function(){return S.ignoreElements}});Object.defineProperty(exports,"lastValueFrom",{enumerable:!0,get:function(){return S.lastValueFrom}});Object.defineProperty(exports,"map",{enumerable:!0,get:function(){return S.map}});Object.defineProperty(exports,"merge",{enumerable:!0,get:function(){return S.merge}});Object.defineProperty(exports,"mergeMap",{enumerable:!0,get:function(){return S.mergeMap}});Object.defineProperty(exports,"NEVER",{enumerable:!0,get:function(){return S.NEVER}});Object.defineProperty(exports,"noop",{enumerable:!0,get:function(){return S.noop}});Object.defineProperty(exports,"of",{enumerable:!0,get:function(){return S.of}});Object.defineProperty(exports,"pipe",{enumerable:!0,get:function(){return S.pipe}});Object.defineProperty(exports,"race",{enumerable:!0,get:function(){return S.race}});Object.defineProperty(exports,"raceWith",{enumerable:!0,get:function(){return S.raceWith}});Object.defineProperty(exports,"retry",{enumerable:!0,get:function(){return S.retry}});Object.defineProperty(exports,"startWith",{enumerable:!0,get:function(){return S.startWith}});Object.defineProperty(exports,"switchMap",{enumerable:!0,get:function(){return S.switchMap}});Object.defineProperty(exports,"takeUntil",{enumerable:!0,get:function(){return S.takeUntil}});Object.defineProperty(exports,"tap",{enumerable:!0,get:function(){return S.tap}});Object.defineProperty(exports,"throwIfEmpty",{enumerable:!0,get:function(){return S.throwIfEmpty}});Object.defineProperty(exports,"timer",{enumerable:!0,get:function(){return S.timer}});var Yi=io();function DP(r){return(0,Yi.mergeMap)(t=>(0,Yi.from)(Promise.resolve(r(t))).pipe((0,Yi.filter)(e=>e),(0,Yi.map)(()=>t)))}exports.filterAsync=DP; + `):"",this.name="UnsubscriptionError",this.errors=e}})});var K=s(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.arrRemove=void 0;function Rs(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}Rr.arrRemove=Rs});var C=s(T=>{"use strict";var uo=T&&T.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},oo=T&&T.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},ao=T&&T.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.config=void 0;Wr.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var Gi=s(V=>{"use strict";var so=V&&V.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},fo=V&&V.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.reportUnhandledError=void 0;var Ls=ke(),Ns=Gi();function Vs(r){Ns.timeoutProvider.setTimeout(function(){var t=Ls.config.onUnhandledError;if(t)t(r);else throw r})}Lr.reportUnhandledError=Vs});var E=s(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.noop=void 0;function Us(){}Nr.noop=Us});var vo=s(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.createNotification=U.nextNotification=U.errorNotification=U.COMPLETE_NOTIFICATION=void 0;U.COMPLETE_NOTIFICATION=function(){return Vr("C",void 0,void 0)}();function zs(r){return Vr("E",void 0,r)}U.errorNotification=zs;function Ys(r){return Vr("N",r,void 0)}U.nextNotification=Ys;function Vr(r,t,e){return{kind:r,value:t,error:e}}U.createNotification=Vr});var Ur=s(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.captureError=Ce.errorContext=void 0;var po=ke(),Se=null;function Bs(r){if(po.config.useDeprecatedSynchronousErrorHandling){var t=!Se;if(t&&(Se={errorThrown:!1,error:null}),r(),t){var e=Se,n=e.errorThrown,i=e.error;if(Se=null,n)throw i}}else r()}Ce.errorContext=Bs;function Ds(r){po.config.useDeprecatedSynchronousErrorHandling&&Se&&(Se.errorThrown=!0,Se.error=r)}Ce.captureError=Ds});var Re=s(W=>{"use strict";var ho=W&&W.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(W,"__esModule",{value:!0});W.EMPTY_OBSERVER=W.SafeSubscriber=W.Subscriber=void 0;var Ks=j(),bo=C(),Hi=ke(),Gs=Qi(),_o=E(),Ji=vo(),Qs=Gi(),Js=Ur(),yo=function(r){ho(t,r);function t(e){var n=r.call(this)||this;return n.isStopped=!1,e?(n.destination=e,bo.isSubscription(e)&&e.add(n)):n.destination=W.EMPTY_OBSERVER,n}return t.create=function(e,n,i){return new mo(e,n,i)},t.prototype.next=function(e){this.isStopped?$i(Ji.nextNotification(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?$i(Ji.errorNotification(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?$i(Ji.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(bo.Subscription);W.Subscriber=yo;var Zs=Function.prototype.bind;function Zi(r,t){return Zs.call(r,t)}var $s=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(n){zr(n)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(n){zr(n)}else zr(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){zr(e)}},r}(),mo=function(r){ho(t,r);function t(e,n,i){var u=r.call(this)||this,o;if(Ks.isFunction(e)||!e)o={next:e??void 0,error:n??void 0,complete:i??void 0};else{var c;u&&Hi.config.useDeprecatedNextContext?(c=Object.create(e),c.unsubscribe=function(){return u.unsubscribe()},o={next:e.next&&Zi(e.next,c),error:e.error&&Zi(e.error,c),complete:e.complete&&Zi(e.complete,c)}):o=e}return u.destination=new $s(o),u}return t}(yo);W.SafeSubscriber=mo;function zr(r){Hi.config.useDeprecatedSynchronousErrorHandling?Js.captureError(r):Gs.reportUnhandledError(r)}function Hs(r){throw r}function $i(r,t){var e=Hi.config.onStoppedNotification;e&&Qs.timeoutProvider.setTimeout(function(){return e(r,t)})}W.EMPTY_OBSERVER={closed:!0,next:_o.noop,error:Hs,complete:_o.noop}});var yr=s(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.observable=void 0;Yr.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var M=s(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.identity=void 0;function Xs(r){return r}Br.identity=Xs});var mr=s(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.pipeFromArray=We.pipe=void 0;var ef=M();function rf(){for(var r=[],t=0;t{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.Observable=void 0;var eu=Re(),tf=C(),nf=yr(),uf=mr(),of=ke(),Xi=j(),af=Ur(),cf=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,n){var i=this,u=sf(t)?t:new eu.SafeSubscriber(t,e,n);return af.errorContext(function(){var o=i,c=o.operator,f=o.source;u.add(c?c.call(u,f):f?i._subscribe(u):i._trySubscribe(u))}),u},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var n=this;return e=go(e),new e(function(i,u){var o=new eu.SafeSubscriber({next:function(c){try{t(c)}catch(f){u(f),o.unsubscribe()}},error:u,complete:i});n.subscribe(o)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[nf.observable]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.operate=Le.hasLift=void 0;var ff=j();function qo(r){return ff.isFunction(r==null?void 0:r.lift)}Le.hasLift=qo;function vf(r){return function(t){if(qo(t))return t.lift(function(e){try{return r(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}Le.operate=vf});var O=s(X=>{"use strict";var df=X&&X.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(X,"__esModule",{value:!0});X.OperatorSubscriber=X.createOperatorSubscriber=void 0;var pf=Re();function bf(r,t,e,n,i){return new So(r,t,e,n,i)}X.createOperatorSubscriber=bf;var So=function(r){df(t,r);function t(e,n,i,u,o,c){var f=r.call(this,e)||this;return f.onFinalize=o,f.shouldUnsubscribe=c,f._next=n?function(l){try{n(l)}catch(v){e.error(v)}}:r.prototype._next,f._error=u?function(l){try{u(l)}catch(v){e.error(v)}finally{this.unsubscribe()}}:r.prototype._error,f._complete=i?function(){try{i()}catch(l){e.error(l)}finally{this.unsubscribe()}}:r.prototype._complete,f}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;r.prototype.unsubscribe.call(this),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(pf.Subscriber);X.OperatorSubscriber=So});var ru=s(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.refCount=void 0;var _f=b(),hf=O();function yf(){return _f.operate(function(r,t){var e=null;r._refCount++;var n=hf.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!r||r._refCount<=0||0<--r._refCount){e=null;return}var i=r._connection,u=e;e=null,i&&(!u||i===u)&&i.unsubscribe(),t.unsubscribe()});r.subscribe(n),n.closed||(e=r.connect())})}Kr.refCount=yf});var Or=s(Ne=>{"use strict";var mf=Ne&&Ne.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ne,"__esModule",{value:!0});Ne.ConnectableObservable=void 0;var Of=P(),jo=C(),gf=ru(),qf=O(),Sf=b(),jf=function(r){mf(t,r);function t(e,n){var i=r.call(this)||this;return i.source=e,i.subjectFactory=n,i._subject=null,i._refCount=0,i._connection=null,Sf.hasLift(e)&&(i.lift=e.lift),i}return t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,e==null||e.unsubscribe()},t.prototype.connect=function(){var e=this,n=this._connection;if(!n){n=this._connection=new jo.Subscription;var i=this.getSubject();n.add(this.source.subscribe(qf.createOperatorSubscriber(i,void 0,function(){e._teardown(),i.complete()},function(u){e._teardown(),i.error(u)},function(){return e._teardown()}))),n.closed&&(this._connection=null,n=jo.Subscription.EMPTY)}return n},t.prototype.refCount=function(){return gf.refCount()(this)},t}(Of.Observable);Ne.ConnectableObservable=jf});var Po=s(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.performanceTimestampProvider=void 0;gr.performanceTimestampProvider={now:function(){return(gr.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var tu=s(L=>{"use strict";var wo=L&&L.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Ao=L&&L.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.animationFrames=void 0;var wf=P(),Af=Po(),Eo=tu();function Ef(r){return r?Mo(r):Mf}Gr.animationFrames=Ef;function Mo(r){return new wf.Observable(function(t){var e=r||Af.performanceTimestampProvider,n=e.now(),i=0,u=function(){t.closed||(i=Eo.animationFrameProvider.requestAnimationFrame(function(o){i=0;var c=e.now();t.next({timestamp:r?c:o,elapsed:c-n}),u()}))};return u(),function(){i&&Eo.animationFrameProvider.cancelAnimationFrame(i)}})}var Mf=Mo()});var nu=s(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.ObjectUnsubscribedError=void 0;var Ff=H();Qr.ObjectUnsubscribedError=Ff.createErrorClass(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var F=s(z=>{"use strict";var To=z&&z.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),If=z&&z.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(z,"__esModule",{value:!0});z.AnonymousSubject=z.Subject=void 0;var Io=P(),uu=C(),Tf=nu(),xf=K(),iu=Ur(),xo=function(r){To(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var n=new ou(this,this);return n.operator=e,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Tf.ObjectUnsubscribedError},t.prototype.next=function(e){var n=this;iu.errorContext(function(){var i,u;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=If(n.currentObservers),c=o.next();!c.done;c=o.next()){var f=c.value;f.next(e)}}catch(l){i={error:l}}finally{try{c&&!c.done&&(u=o.return)&&u.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(e){var n=this;iu.errorContext(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=e;for(var i=n.observers;i.length;)i.shift().error(e)}})},t.prototype.complete=function(){var e=this;iu.errorContext(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var n=e.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var n=this,i=this,u=i.hasError,o=i.isStopped,c=i.observers;return u||o?uu.EMPTY_SUBSCRIPTION:(this.currentObservers=null,c.push(e),new uu.Subscription(function(){n.currentObservers=null,xf.arrRemove(c,e)}))},t.prototype._checkFinalizedStatuses=function(e){var n=this,i=n.hasError,u=n.thrownError,o=n.isStopped;i?e.error(u):o&&e.complete()},t.prototype.asObservable=function(){var e=new Io.Observable;return e.source=this,e},t.create=function(e,n){return new ou(e,n)},t}(Io.Observable);z.Subject=xo;var ou=function(r){To(t,r);function t(e,n){var i=r.call(this)||this;return i.destination=e,i.source=n,i}return t.prototype.next=function(e){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,e)},t.prototype.error=function(e){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,e)},t.prototype.complete=function(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)},t.prototype._subscribe=function(e){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&i!==void 0?i:uu.EMPTY_SUBSCRIPTION},t}(xo);z.AnonymousSubject=ou});var au=s(Ve=>{"use strict";var kf=Ve&&Ve.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.BehaviorSubject=void 0;var Cf=F(),Rf=function(r){kf(t,r);function t(e){var n=r.call(this)||this;return n._value=e,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var n=r.prototype._subscribe.call(this,e);return!n.closed&&e.next(this._value),n},t.prototype.getValue=function(){var e=this,n=e.hasError,i=e.thrownError,u=e._value;if(n)throw i;return this._throwIfClosed(),u},t.prototype.next=function(e){r.prototype.next.call(this,this._value=e)},t}(Cf.Subject);Ve.BehaviorSubject=Rf});var Jr=s(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.dateTimestampProvider=void 0;qr.dateTimestampProvider={now:function(){return(qr.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var Zr=s(Ue=>{"use strict";var Wf=Ue&&Ue.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.ReplaySubject=void 0;var Lf=F(),Nf=Jr(),Vf=function(r){Wf(t,r);function t(e,n,i){e===void 0&&(e=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Nf.dateTimestampProvider);var u=r.call(this)||this;return u._bufferSize=e,u._windowTime=n,u._timestampProvider=i,u._buffer=[],u._infiniteTimeWindow=!0,u._infiniteTimeWindow=n===1/0,u._bufferSize=Math.max(1,e),u._windowTime=Math.max(1,n),u}return t.prototype.next=function(e){var n=this,i=n.isStopped,u=n._buffer,o=n._infiniteTimeWindow,c=n._timestampProvider,f=n._windowTime;i||(u.push(e),!o&&u.push(c.now()+f)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(e),i=this,u=i._infiniteTimeWindow,o=i._buffer,c=o.slice(),f=0;f{"use strict";var Uf=ze&&ze.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(ze,"__esModule",{value:!0});ze.AsyncSubject=void 0;var zf=F(),Yf=function(r){Uf(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}return t.prototype._checkFinalizedStatuses=function(e){var n=this,i=n.hasError,u=n._hasValue,o=n._value,c=n.thrownError,f=n.isStopped,l=n._isComplete;i?e.error(c):(f||l)&&(u&&e.next(o),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var e=this,n=e._hasValue,i=e._value,u=e._isComplete;u||(this._isComplete=!0,n&&r.prototype.next.call(this,i),r.prototype.complete.call(this))},t}(zf.Subject);ze.AsyncSubject=Yf});var ko=s(Ye=>{"use strict";var Bf=Ye&&Ye.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.Action=void 0;var Df=C(),Kf=function(r){Bf(t,r);function t(e,n){return r.call(this)||this}return t.prototype.schedule=function(e,n){return n===void 0&&(n=0),this},t}(Df.Subscription);Ye.Action=Kf});var Wo=s(Y=>{"use strict";var Co=Y&&Y.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Ro=Y&&Y.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var Gf=Be&&Be.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Be,"__esModule",{value:!0});Be.AsyncAction=void 0;var Qf=ko(),Lo=Wo(),Jf=K(),Zf=function(r){Gf(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(e,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=e;var u=this.id,o=this.scheduler;return u!=null&&(this.id=this.recycleAsyncId(o,u,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,n),this},t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),Lo.intervalProvider.setInterval(e.flush.bind(e,this),i)},t.prototype.recycleAsyncId=function(e,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&Lo.intervalProvider.clearInterval(n)},t.prototype.execute=function(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(e,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,n){var i=!1,u;try{this.work(e)}catch(o){i=!0,u=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),u},t.prototype.unsubscribe=function(){if(!this.closed){var e=this,n=e.id,i=e.scheduler,u=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Jf.arrRemove(u,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,r.prototype.unsubscribe.call(this)}},t}(Qf.Action);Be.AsyncAction=Zf});var Vo=s(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.TestTools=Ke.Immediate=void 0;var $f=1,cu,Hr={};function No(r){return r in Hr?(delete Hr[r],!0):!1}Ke.Immediate={setImmediate:function(r){var t=$f++;return Hr[t]=!0,cu||(cu=Promise.resolve()),cu.then(function(){return No(t)&&r()}),t},clearImmediate:function(r){No(r)}};Ke.TestTools={pending:function(){return Object.keys(Hr).length}}});var zo=s(B=>{"use strict";var Hf=B&&B.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Xf=B&&B.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var tv=Ge&&Ge.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.AsapAction=void 0;var nv=De(),Yo=zo(),iv=function(r){tv(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),i!==null&&i>0?r.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e._scheduled||(e._scheduled=Yo.immediateProvider.setImmediate(e.flush.bind(e,void 0))))},t.prototype.recycleAsyncId=function(e,n,i){var u;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return r.prototype.recycleAsyncId.call(this,e,n,i);var o=e.actions;n!=null&&((u=o[o.length-1])===null||u===void 0?void 0:u.id)!==n&&(Yo.immediateProvider.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))},t}(nv.AsyncAction);Ge.AsapAction=iv});var lu=s(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Scheduler=void 0;var uv=Jr(),ov=function(){function r(t,e){e===void 0&&(e=r.now),this.schedulerActionCtor=t,this.now=e}return r.prototype.schedule=function(t,e,n){return e===void 0&&(e=0),new this.schedulerActionCtor(this,t).schedule(n,e)},r.now=uv.dateTimestampProvider.now,r}();Xr.Scheduler=ov});var Je=s(Qe=>{"use strict";var av=Qe&&Qe.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.AsyncScheduler=void 0;var Do=lu(),cv=function(r){av(t,r);function t(e,n){n===void 0&&(n=Do.Scheduler.now);var i=r.call(this,e,n)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(e){var n=this.actions;if(this._active){n.push(e);return}var i;this._active=!0;do if(i=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,i){for(;e=n.shift();)e.unsubscribe();throw i}},t}(Do.Scheduler);Qe.AsyncScheduler=cv});var Ko=s(Ze=>{"use strict";var lv=Ze&&Ze.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.AsapScheduler=void 0;var sv=Je(),fv=function(r){lv(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.flush=function(e){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var i=this.actions,u;e=e||i.shift();do if(u=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===n&&i.shift());if(this._active=!1,u){for(;(e=i[0])&&e.id===n&&i.shift();)e.unsubscribe();throw u}},t}(sv.AsyncScheduler);Ze.AsapScheduler=fv});var Go=s(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.asap=je.asapScheduler=void 0;var vv=Bo(),dv=Ko();je.asapScheduler=new dv.AsapScheduler(vv.AsapAction);je.asap=je.asapScheduler});var x=s(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.async=Pe.asyncScheduler=void 0;var pv=De(),bv=Je();Pe.asyncScheduler=new bv.AsyncScheduler(pv.AsyncAction);Pe.async=Pe.asyncScheduler});var Qo=s($e=>{"use strict";var _v=$e&&$e.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty($e,"__esModule",{value:!0});$e.QueueAction=void 0;var hv=De(),yv=function(r){_v(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return t.prototype.schedule=function(e,n){return n===void 0&&(n=0),n>0?r.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},t.prototype.execute=function(e,n){return n>0||this.closed?r.prototype.execute.call(this,e,n):this._execute(e,n)},t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),i!=null&&i>0||i==null&&this.delay>0?r.prototype.requestAsyncId.call(this,e,n,i):(e.flush(this),0)},t}(hv.AsyncAction);$e.QueueAction=yv});var Jo=s(He=>{"use strict";var mv=He&&He.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(He,"__esModule",{value:!0});He.QueueScheduler=void 0;var Ov=Je(),gv=function(r){mv(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ov.AsyncScheduler);He.QueueScheduler=gv});var Zo=s(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.queue=we.queueScheduler=void 0;var qv=Qo(),Sv=Jo();we.queueScheduler=new Sv.QueueScheduler(qv.QueueAction);we.queue=we.queueScheduler});var Ho=s(Xe=>{"use strict";var jv=Xe&&Xe.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.AnimationFrameAction=void 0;var Pv=De(),$o=tu(),wv=function(r){jv(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),i!==null&&i>0?r.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e._scheduled||(e._scheduled=$o.animationFrameProvider.requestAnimationFrame(function(){return e.flush(void 0)})))},t.prototype.recycleAsyncId=function(e,n,i){var u;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return r.prototype.recycleAsyncId.call(this,e,n,i);var o=e.actions;n!=null&&((u=o[o.length-1])===null||u===void 0?void 0:u.id)!==n&&($o.animationFrameProvider.cancelAnimationFrame(n),e._scheduled=void 0)},t}(Pv.AsyncAction);Xe.AnimationFrameAction=wv});var Xo=s(er=>{"use strict";var Av=er&&er.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(er,"__esModule",{value:!0});er.AnimationFrameScheduler=void 0;var Ev=Je(),Mv=function(r){Av(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.flush=function(e){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var i=this.actions,u;e=e||i.shift();do if(u=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===n&&i.shift());if(this._active=!1,u){for(;(e=i[0])&&e.id===n&&i.shift();)e.unsubscribe();throw u}},t}(Ev.AsyncScheduler);er.AnimationFrameScheduler=Mv});var ea=s(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.animationFrame=Ae.animationFrameScheduler=void 0;var Fv=Ho(),Iv=Xo();Ae.animationFrameScheduler=new Iv.AnimationFrameScheduler(Fv.AnimationFrameAction);Ae.animationFrame=Ae.animationFrameScheduler});var na=s(ee=>{"use strict";var ra=ee&&ee.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(ee,"__esModule",{value:!0});ee.VirtualAction=ee.VirtualTimeScheduler=void 0;var Tv=De(),xv=C(),kv=Je(),Cv=function(r){ra(t,r);function t(e,n){e===void 0&&(e=ta),n===void 0&&(n=1/0);var i=r.call(this,e,function(){return i.frame})||this;return i.maxFrames=n,i.frame=0,i.index=-1,i}return t.prototype.flush=function(){for(var e=this,n=e.actions,i=e.maxFrames,u,o;(o=n[0])&&o.delay<=i&&(n.shift(),this.frame=o.delay,!(u=o.execute(o.state,o.delay))););if(u){for(;o=n.shift();)o.unsubscribe();throw u}},t.frameTimeFactor=10,t}(kv.AsyncScheduler);ee.VirtualTimeScheduler=Cv;var ta=function(r){ra(t,r);function t(e,n,i){i===void 0&&(i=e.index+=1);var u=r.call(this,e,n)||this;return u.scheduler=e,u.work=n,u.index=i,u.active=!0,u.index=e.index=i,u}return t.prototype.schedule=function(e,n){if(n===void 0&&(n=0),Number.isFinite(n)){if(!this.id)return r.prototype.schedule.call(this,e,n);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(e,n)}else return xv.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,n,i){i===void 0&&(i=0),this.delay=e.frame+i;var u=e.actions;return u.push(this),u.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(e,n,i){i===void 0&&(i=0)},t.prototype._execute=function(e,n){if(this.active===!0)return r.prototype._execute.call(this,e,n)},t.sortActions=function(e,n){return e.delay===n.delay?e.index===n.index?0:e.index>n.index?1:-1:e.delay>n.delay?1:-1},t}(Tv.AsyncAction);ee.VirtualAction=ta});var N=s(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.empty=Ee.EMPTY=void 0;var ia=P();Ee.EMPTY=new ia.Observable(function(r){return r.complete()});function Rv(r){return r?Wv(r):Ee.EMPTY}Ee.empty=Rv;function Wv(r){return new ia.Observable(function(t){return r.schedule(function(){return t.complete()})})}});var Sr=s(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.isScheduler=void 0;var Lv=j();function Nv(r){return r&&Lv.isFunction(r.schedule)}et.isScheduler=Nv});var k=s(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.popNumber=re.popScheduler=re.popResultSelector=void 0;var Vv=j(),Uv=Sr();function su(r){return r[r.length-1]}function zv(r){return Vv.isFunction(su(r))?r.pop():void 0}re.popResultSelector=zv;function Yv(r){return Uv.isScheduler(su(r))?r.pop():void 0}re.popScheduler=Yv;function Bv(r,t){return typeof su(r)=="number"?r.pop():t}re.popNumber=Bv});var tt=s(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.isArrayLike=void 0;rt.isArrayLike=function(r){return r&&typeof r.length=="number"&&typeof r!="function"}});var fu=s(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.isPromise=void 0;var Dv=j();function Kv(r){return Dv.isFunction(r==null?void 0:r.then)}nt.isPromise=Kv});var vu=s(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.isInteropObservable=void 0;var Gv=yr(),Qv=j();function Jv(r){return Qv.isFunction(r[Gv.observable])}it.isInteropObservable=Jv});var du=s(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.isAsyncIterable=void 0;var Zv=j();function $v(r){return Symbol.asyncIterator&&Zv.isFunction(r==null?void 0:r[Symbol.asyncIterator])}ut.isAsyncIterable=$v});var pu=s(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.createInvalidObservableTypeError=void 0;function Hv(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}ot.createInvalidObservableTypeError=Hv});var bu=s(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.iterator=rr.getSymbolIterator=void 0;function ua(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}rr.getSymbolIterator=ua;rr.iterator=ua()});var _u=s(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.isIterable=void 0;var Xv=bu(),ed=j();function rd(r){return ed.isFunction(r==null?void 0:r[Xv.iterator])}at.isIterable=rd});var ct=s(R=>{"use strict";var td=R&&R.__generator||function(r,t){var e={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(l){return function(v){return f([l,v])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,i&&(u=l[0]&2?i.return:l[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,l[1])).done)return u;switch(i=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,i=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(u=e.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]1||c(p,y)})})}function c(p,y){try{f(n[p](y))}catch(h){d(u[0][3],h)}}function f(p){p.value instanceof tr?Promise.resolve(p.value.v).then(l,v):d(u[0][2],p)}function l(p){c("next",p)}function v(p){c("throw",p)}function d(p,y){p(y),u.shift(),u.length&&c(u[0][0],u[0][1])}};Object.defineProperty(R,"__esModule",{value:!0});R.isReadableStreamLike=R.readableStreamLikeToAsyncGenerator=void 0;var id=j();function ud(r){return nd(this,arguments,function(){var e,n,i,u;return td(this,function(o){switch(o.label){case 0:e=r.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,tr(e.read())];case 3:return n=o.sent(),i=n.value,u=n.done,u?[4,tr(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,tr(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}R.readableStreamLikeToAsyncGenerator=ud;function od(r){return id.isFunction(r==null?void 0:r.getReader)}R.isReadableStreamLike=od});var q=s(A=>{"use strict";var ad=A&&A.__awaiter||function(r,t,e,n){function i(u){return u instanceof e?u:new e(function(o){o(u)})}return new(e||(e=Promise))(function(u,o){function c(v){try{l(n.next(v))}catch(d){o(d)}}function f(v){try{l(n.throw(v))}catch(d){o(d)}}function l(v){v.done?u(v.value):i(v.value).then(c,f)}l((n=n.apply(r,t||[])).next())})},cd=A&&A.__generator||function(r,t){var e={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(l){return function(v){return f([l,v])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,i&&(u=l[0]&2?i.return:l[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,l[1])).done)return u;switch(i=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,i=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(u=e.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0});A.fromReadableStreamLike=A.fromAsyncIterable=A.fromIterable=A.fromPromise=A.fromArrayLike=A.fromInteropObservable=A.innerFrom=void 0;var sd=tt(),fd=fu(),nr=P(),vd=vu(),dd=du(),pd=pu(),bd=_u(),oa=ct(),_d=j(),hd=Qi(),yd=yr();function md(r){if(r instanceof nr.Observable)return r;if(r!=null){if(vd.isInteropObservable(r))return aa(r);if(sd.isArrayLike(r))return ca(r);if(fd.isPromise(r))return la(r);if(dd.isAsyncIterable(r))return yu(r);if(bd.isIterable(r))return sa(r);if(oa.isReadableStreamLike(r))return fa(r)}throw pd.createInvalidObservableTypeError(r)}A.innerFrom=md;function aa(r){return new nr.Observable(function(t){var e=r[yd.observable]();if(_d.isFunction(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}A.fromInteropObservable=aa;function ca(r){return new nr.Observable(function(t){for(var e=0;e{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.executeSchedule=void 0;function gd(r,t,e,n,i){n===void 0&&(n=0),i===void 0&&(i=!1);var u=t.schedule(function(){e(),i?r.add(this.schedule(null,n)):this.unsubscribe()},n);if(r.add(u),!i)return u}lt.executeSchedule=gd});var jr=s(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.observeOn=void 0;var mu=G(),qd=b(),Sd=O();function jd(r,t){return t===void 0&&(t=0),qd.operate(function(e,n){e.subscribe(Sd.createOperatorSubscriber(n,function(i){return mu.executeSchedule(n,r,function(){return n.next(i)},t)},function(){return mu.executeSchedule(n,r,function(){return n.complete()},t)},function(i){return mu.executeSchedule(n,r,function(){return n.error(i)},t)}))})}st.observeOn=jd});var Pr=s(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.subscribeOn=void 0;var Pd=b();function wd(r,t){return t===void 0&&(t=0),Pd.operate(function(e,n){n.add(r.schedule(function(){return e.subscribe(n)},t))})}ft.subscribeOn=wd});var va=s(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.scheduleObservable=void 0;var Ad=q(),Ed=jr(),Md=Pr();function Fd(r,t){return Ad.innerFrom(r).pipe(Md.subscribeOn(t),Ed.observeOn(t))}vt.scheduleObservable=Fd});var da=s(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.schedulePromise=void 0;var Id=q(),Td=jr(),xd=Pr();function kd(r,t){return Id.innerFrom(r).pipe(xd.subscribeOn(t),Td.observeOn(t))}dt.schedulePromise=kd});var pa=s(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.scheduleArray=void 0;var Cd=P();function Rd(r,t){return new Cd.Observable(function(e){var n=0;return t.schedule(function(){n===r.length?e.complete():(e.next(r[n++]),e.closed||this.schedule())})})}pt.scheduleArray=Rd});var Ou=s(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.scheduleIterable=void 0;var Wd=P(),Ld=bu(),Nd=j(),ba=G();function Vd(r,t){return new Wd.Observable(function(e){var n;return ba.executeSchedule(e,t,function(){n=r[Ld.iterator](),ba.executeSchedule(e,t,function(){var i,u,o;try{i=n.next(),u=i.value,o=i.done}catch(c){e.error(c);return}o?e.complete():e.next(u)},0,!0)}),function(){return Nd.isFunction(n==null?void 0:n.return)&&n.return()}})}bt.scheduleIterable=Vd});var gu=s(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.scheduleAsyncIterable=void 0;var Ud=P(),_a=G();function zd(r,t){if(!r)throw new Error("Iterable cannot be null");return new Ud.Observable(function(e){_a.executeSchedule(e,t,function(){var n=r[Symbol.asyncIterator]();_a.executeSchedule(e,t,function(){n.next().then(function(i){i.done?e.complete():e.next(i.value)})},0,!0)})})}_t.scheduleAsyncIterable=zd});var ha=s(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.scheduleReadableStreamLike=void 0;var Yd=gu(),Bd=ct();function Dd(r,t){return Yd.scheduleAsyncIterable(Bd.readableStreamLikeToAsyncGenerator(r),t)}ht.scheduleReadableStreamLike=Dd});var qu=s(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.scheduled=void 0;var Kd=va(),Gd=da(),Qd=pa(),Jd=Ou(),Zd=gu(),$d=vu(),Hd=fu(),Xd=tt(),ep=_u(),rp=du(),tp=pu(),np=ct(),ip=ha();function up(r,t){if(r!=null){if($d.isInteropObservable(r))return Kd.scheduleObservable(r,t);if(Xd.isArrayLike(r))return Qd.scheduleArray(r,t);if(Hd.isPromise(r))return Gd.schedulePromise(r,t);if(rp.isAsyncIterable(r))return Zd.scheduleAsyncIterable(r,t);if(ep.isIterable(r))return Jd.scheduleIterable(r,t);if(np.isReadableStreamLike(r))return ip.scheduleReadableStreamLike(r,t)}throw tp.createInvalidObservableTypeError(r)}yt.scheduled=up});var Q=s(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.from=void 0;var op=qu(),ap=q();function cp(r,t){return t?op.scheduled(r,t):ap.innerFrom(r)}mt.from=cp});var gt=s(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.of=void 0;var lp=k(),sp=Q();function fp(){for(var r=[],t=0;t{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.throwError=void 0;var vp=P(),dp=j();function pp(r,t){var e=dp.isFunction(r)?r:function(){return r},n=function(i){return i.error(e())};return new vp.Observable(t?function(i){return t.schedule(n,0,i)}:n)}qt.throwError=pp});var St=s(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.observeNotification=J.Notification=J.NotificationKind=void 0;var bp=N(),_p=gt(),hp=Su(),yp=j(),mp;(function(r){r.NEXT="N",r.ERROR="E",r.COMPLETE="C"})(mp=J.NotificationKind||(J.NotificationKind={}));var Op=function(){function r(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue=t==="N"}return r.prototype.observe=function(t){return ya(this,t)},r.prototype.do=function(t,e,n){var i=this,u=i.kind,o=i.value,c=i.error;return u==="N"?t==null?void 0:t(o):u==="E"?e==null?void 0:e(c):n==null?void 0:n()},r.prototype.accept=function(t,e,n){var i;return yp.isFunction((i=t)===null||i===void 0?void 0:i.next)?this.observe(t):this.do(t,e,n)},r.prototype.toObservable=function(){var t=this,e=t.kind,n=t.value,i=t.error,u=e==="N"?_p.of(n):e==="E"?hp.throwError(function(){return i}):e==="C"?bp.EMPTY:0;if(!u)throw new TypeError("Unexpected notification kind "+e);return u},r.createNext=function(t){return new r("N",t)},r.createError=function(t){return new r("E",void 0,t)},r.createComplete=function(){return r.completeNotification},r.completeNotification=new r("C"),r}();J.Notification=Op;function ya(r,t){var e,n,i,u=r,o=u.kind,c=u.value,f=u.error;if(typeof o!="string")throw new TypeError('Invalid notification, missing "kind"');o==="N"?(e=t.next)===null||e===void 0||e.call(t,c):o==="E"?(n=t.error)===null||n===void 0||n.call(t,f):(i=t.complete)===null||i===void 0||i.call(t)}J.observeNotification=ya});var Oa=s(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.isObservable=void 0;var gp=P(),ma=j();function qp(r){return!!r&&(r instanceof gp.Observable||ma.isFunction(r.lift)&&ma.isFunction(r.subscribe))}jt.isObservable=qp});var te=s(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.EmptyError=void 0;var Sp=H();Pt.EmptyError=Sp.createErrorClass(function(r){return function(){r(this),this.name="EmptyError",this.message="no elements in sequence"}})});var ga=s(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.lastValueFrom=void 0;var jp=te();function Pp(r,t){var e=typeof t=="object";return new Promise(function(n,i){var u=!1,o;r.subscribe({next:function(c){o=c,u=!0},error:i,complete:function(){u?n(o):e?n(t.defaultValue):i(new jp.EmptyError)}})})}wt.lastValueFrom=Pp});var qa=s(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.firstValueFrom=void 0;var wp=te(),Ap=Re();function Ep(r,t){var e=typeof t=="object";return new Promise(function(n,i){var u=new Ap.SafeSubscriber({next:function(o){n(o),u.unsubscribe()},error:i,complete:function(){e?n(t.defaultValue):i(new wp.EmptyError)}});r.subscribe(u)})}At.firstValueFrom=Ep});var ju=s(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.ArgumentOutOfRangeError=void 0;var Mp=H();Et.ArgumentOutOfRangeError=Mp.createErrorClass(function(r){return function(){r(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})});var Pu=s(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.NotFoundError=void 0;var Fp=H();Mt.NotFoundError=Fp.createErrorClass(function(r){return function(e){r(this),this.name="NotFoundError",this.message=e}})});var wu=s(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.SequenceError=void 0;var Ip=H();Ft.SequenceError=Ip.createErrorClass(function(r){return function(e){r(this),this.name="SequenceError",this.message=e}})});var Tt=s(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.isValidDate=void 0;function Tp(r){return r instanceof Date&&!isNaN(r)}It.isValidDate=Tp});var xt=s(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.timeout=Me.TimeoutError=void 0;var xp=x(),kp=Tt(),Cp=b(),Rp=q(),Wp=H(),Lp=O(),Np=G();Me.TimeoutError=Wp.createErrorClass(function(r){return function(e){e===void 0&&(e=null),r(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}});function Vp(r,t){var e=kp.isValidDate(r)?{first:r}:typeof r=="number"?{each:r}:r,n=e.first,i=e.each,u=e.with,o=u===void 0?Up:u,c=e.scheduler,f=c===void 0?t??xp.asyncScheduler:c,l=e.meta,v=l===void 0?null:l;if(n==null&&i==null)throw new TypeError("No timeout provided.");return Cp.operate(function(d,p){var y,h,_=null,m=0,g=function(w){h=Np.executeSchedule(p,f,function(){try{y.unsubscribe(),Rp.innerFrom(o({meta:v,lastValue:_,seen:m})).subscribe(p)}catch(I){p.error(I)}},w)};y=d.subscribe(Lp.createOperatorSubscriber(p,function(w){h==null||h.unsubscribe(),m++,p.next(_=w),i>0&&g(i)},void 0,void 0,function(){h!=null&&h.closed||h==null||h.unsubscribe(),_=null})),!m&&g(n!=null?typeof n=="number"?n:+n-f.now():i)})}Me.timeout=Vp;function Up(r){throw new Me.TimeoutError(r)}});var ne=s(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.map=void 0;var zp=b(),Yp=O();function Bp(r,t){return zp.operate(function(e,n){var i=0;e.subscribe(Yp.createOperatorSubscriber(n,function(u){n.next(r.call(t,u,i++))}))})}kt.map=Bp});var ue=s(ie=>{"use strict";var Dp=ie&&ie.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Kp=ie&&ie.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var $p=oe&&oe.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Sa=oe&&oe.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.bindCallback=void 0;var ib=Eu();function ub(r,t,e){return ib.bindCallbackInternals(!1,r,t,e)}Ct.bindCallback=ub});var Pa=s(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.bindNodeCallback=void 0;var ob=Eu();function ab(r,t,e){return ob.bindCallbackInternals(!0,r,t,e)}Rt.bindNodeCallback=ab});var Mu=s(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.argsArgArrayOrObject=void 0;var cb=Array.isArray,lb=Object.getPrototypeOf,sb=Object.prototype,fb=Object.keys;function vb(r){if(r.length===1){var t=r[0];if(cb(t))return{args:t,keys:null};if(db(t)){var e=fb(t);return{args:e.map(function(n){return t[n]}),keys:e}}}return{args:r,keys:null}}Wt.argsArgArrayOrObject=vb;function db(r){return r&&typeof r=="object"&&lb(r)===sb}});var Fu=s(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.createObject=void 0;function pb(r,t){return r.reduce(function(e,n,i){return e[n]=t[i],e},{})}Lt.createObject=pb});var Nt=s(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.combineLatestInit=ir.combineLatest=void 0;var bb=P(),_b=Mu(),Ea=Q(),Ma=M(),hb=ue(),wa=k(),yb=Fu(),mb=O(),Ob=G();function gb(){for(var r=[],t=0;t{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.mergeInternals=void 0;var qb=q(),Sb=G(),Ia=O();function jb(r,t,e,n,i,u,o,c){var f=[],l=0,v=0,d=!1,p=function(){d&&!f.length&&!l&&t.complete()},y=function(_){return l{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.mergeMap=void 0;var Pb=ne(),wb=q(),Ab=b(),Eb=Ut(),Mb=j();function Ta(r,t,e){return e===void 0&&(e=1/0),Mb.isFunction(t)?Ta(function(n,i){return Pb.map(function(u,o){return t(n,u,i,o)})(wb.innerFrom(r(n,i)))},e):(typeof t=="number"&&(e=t),Ab.operate(function(n,i){return Eb.mergeInternals(n,i,r,e)}))}zt.mergeMap=Ta});var wr=s(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.mergeAll=void 0;var Fb=Z(),Ib=M();function Tb(r){return r===void 0&&(r=1/0),Fb.mergeMap(Ib.identity,r)}Yt.mergeAll=Tb});var Dt=s(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.concatAll=void 0;var xb=wr();function kb(){return xb.mergeAll(1)}Bt.concatAll=kb});var Ar=s(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.concat=void 0;var Cb=Dt(),Rb=k(),Wb=Q();function Lb(){for(var r=[],t=0;t{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.defer=void 0;var Nb=P(),Vb=q();function Ub(r){return new Nb.Observable(function(t){Vb.innerFrom(r()).subscribe(t)})}Gt.defer=Ub});var xa=s(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.connectable=void 0;var zb=F(),Yb=P(),Bb=Er(),Db={connector:function(){return new zb.Subject},resetOnDisconnect:!0};function Kb(r,t){t===void 0&&(t=Db);var e=null,n=t.connector,i=t.resetOnDisconnect,u=i===void 0?!0:i,o=n(),c=new Yb.Observable(function(f){return o.subscribe(f)});return c.connect=function(){return(!e||e.closed)&&(e=Bb.defer(function(){return r}).subscribe(o),u&&e.add(function(){return o=n()})),e},c}Qt.connectable=Kb});var ka=s(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.forkJoin=void 0;var Gb=P(),Qb=Mu(),Jb=q(),Zb=k(),$b=O(),Hb=ue(),Xb=Fu();function e_(){for(var r=[],t=0;t{"use strict";var r_=ur&&ur.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u};Object.defineProperty(ur,"__esModule",{value:!0});ur.fromEvent=void 0;var t_=q(),n_=P(),i_=Z(),u_=tt(),Fe=j(),o_=ue(),a_=["addListener","removeListener"],c_=["addEventListener","removeEventListener"],l_=["on","off"];function Iu(r,t,e,n){if(Fe.isFunction(e)&&(n=e,e=void 0),n)return Iu(r,t,e).pipe(o_.mapOneOrManyArgs(n));var i=r_(v_(r)?c_.map(function(c){return function(f){return r[c](t,f,e)}}):s_(r)?a_.map(Ca(r,t)):f_(r)?l_.map(Ca(r,t)):[],2),u=i[0],o=i[1];if(!u&&u_.isArrayLike(r))return i_.mergeMap(function(c){return Iu(c,t,e)})(t_.innerFrom(r));if(!u)throw new TypeError("Invalid event target");return new n_.Observable(function(c){var f=function(){for(var l=[],v=0;v{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.fromEventPattern=void 0;var d_=P(),p_=j(),b_=ue();function Wa(r,t,e){return e?Wa(r,t).pipe(b_.mapOneOrManyArgs(e)):new d_.Observable(function(n){var i=function(){for(var o=[],c=0;c{"use strict";var __=or&&or.__generator||function(r,t){var e={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(l){return function(v){return f([l,v])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,i&&(u=l[0]&2?i.return:l[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,l[1])).done)return u;switch(i=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,i=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(u=e.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.iif=void 0;var g_=Er();function q_(r,t,e){return g_.defer(function(){return r()?t:e})}$t.iif=q_});var ae=s(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.timer=void 0;var S_=P(),j_=x(),P_=Sr(),w_=Tt();function A_(r,t,e){r===void 0&&(r=0),e===void 0&&(e=j_.async);var n=-1;return t!=null&&(P_.isScheduler(t)?e=t:n=t),new S_.Observable(function(i){var u=w_.isValidDate(r)?+r-e.now():r;u<0&&(u=0);var o=0;return e.schedule(function(){i.closed||(i.next(o++),0<=n?this.schedule(void 0,n):i.complete())},u)})}Ht.timer=A_});var Tu=s(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.interval=void 0;var E_=x(),M_=ae();function F_(r,t){return r===void 0&&(r=0),t===void 0&&(t=E_.asyncScheduler),r<0&&(r=0),M_.timer(r,r,t)}Xt.interval=F_});var Ya=s(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.merge=void 0;var I_=wr(),T_=q(),x_=N(),za=k(),k_=Q();function C_(){for(var r=[],t=0;t{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.never=Ie.NEVER=void 0;var R_=P(),W_=E();Ie.NEVER=new R_.Observable(W_.noop);function L_(){return Ie.NEVER}Ie.never=L_});var Te=s(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.argsOrArgArray=void 0;var N_=Array.isArray;function V_(r){return r.length===1&&N_(r[0])?r[0]:r}rn.argsOrArgArray=V_});var ku=s(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.onErrorResumeNext=void 0;var U_=P(),z_=Te(),Y_=O(),Ba=E(),B_=q();function D_(){for(var r=[],t=0;t{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.pairs=void 0;var K_=Q();function G_(r,t){return K_.from(Object.entries(r),t)}nn.pairs=G_});var Ka=s(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.not=void 0;function Q_(r,t){return function(e,n){return!r.call(t,e,n)}}un.not=Q_});var xe=s(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.filter=void 0;var J_=b(),Z_=O();function $_(r,t){return J_.operate(function(e,n){var i=0;e.subscribe(Z_.createOperatorSubscriber(n,function(u){return r.call(t,u,i++)&&n.next(u)}))})}on.filter=$_});var Ja=s(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.partition=void 0;var H_=Ka(),Ga=xe(),Qa=q();function X_(r,t,e){return[Ga.filter(t,e)(Qa.innerFrom(r)),Ga.filter(H_.not(t,e))(Qa.innerFrom(r))]}an.partition=X_});var Cu=s(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.raceInit=ar.race=void 0;var eh=P(),Za=q(),rh=Te(),th=O();function nh(){for(var r=[],t=0;t{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.range=void 0;var ih=P(),uh=N();function oh(r,t,e){if(t==null&&(t=r,r=0),t<=0)return uh.EMPTY;var n=t+r;return new ih.Observable(e?function(i){var u=r;return e.schedule(function(){u{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.using=void 0;var ah=P(),ch=q(),lh=N();function sh(r,t){return new ah.Observable(function(e){var n=r(),i=t(n),u=i?ch.innerFrom(i):lh.EMPTY;return u.subscribe(e),function(){n&&n.unsubscribe()}})}ln.using=sh});var sn=s(ce=>{"use strict";var fh=ce&&ce.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},vh=ce&&ce.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(ec,"__esModule",{value:!0})});var Ru=s(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.audit=void 0;var Oh=b(),gh=q(),tc=O();function qh(r){return Oh.operate(function(t,e){var n=!1,i=null,u=null,o=!1,c=function(){if(u==null||u.unsubscribe(),u=null,n){n=!1;var l=i;i=null,e.next(l)}o&&e.complete()},f=function(){u=null,o&&e.complete()};t.subscribe(tc.createOperatorSubscriber(e,function(l){n=!0,i=l,u||gh.innerFrom(r(l)).subscribe(u=tc.createOperatorSubscriber(e,c,f))},function(){o=!0,(!n||!u||u.closed)&&e.complete()}))})}fn.audit=qh});var nc=s(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.auditTime=void 0;var Sh=x(),jh=Ru(),Ph=ae();function wh(r,t){return t===void 0&&(t=Sh.asyncScheduler),jh.audit(function(){return Ph.timer(r,t)})}vn.auditTime=wh});var uc=s(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.buffer=void 0;var Ah=b(),Eh=E(),ic=O(),Mh=q();function Fh(r){return Ah.operate(function(t,e){var n=[];return t.subscribe(ic.createOperatorSubscriber(e,function(i){return n.push(i)},function(){e.next(n),e.complete()})),Mh.innerFrom(r).subscribe(ic.createOperatorSubscriber(e,function(){var i=n;n=[],e.next(i)},Eh.noop)),function(){n=null}})}dn.buffer=Fh});var oc=s(cr=>{"use strict";var Wu=cr&&cr.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(cr,"__esModule",{value:!0});cr.bufferCount=void 0;var Ih=b(),Th=O(),xh=K();function kh(r,t){return t===void 0&&(t=null),t=t??r,Ih.operate(function(e,n){var i=[],u=0;e.subscribe(Th.createOperatorSubscriber(n,function(o){var c,f,l,v,d=null;u++%t===0&&i.push([]);try{for(var p=Wu(i),y=p.next();!y.done;y=p.next()){var h=y.value;h.push(o),r<=h.length&&(d=d??[],d.push(h))}}catch(g){c={error:g}}finally{try{y&&!y.done&&(f=p.return)&&f.call(p)}finally{if(c)throw c.error}}if(d)try{for(var _=Wu(d),m=_.next();!m.done;m=_.next()){var h=m.value;xh.arrRemove(i,h),n.next(h)}}catch(g){l={error:g}}finally{try{m&&!m.done&&(v=_.return)&&v.call(_)}finally{if(l)throw l.error}}},function(){var o,c;try{for(var f=Wu(i),l=f.next();!l.done;l=f.next()){var v=l.value;n.next(v)}}catch(d){o={error:d}}finally{try{l&&!l.done&&(c=f.return)&&c.call(f)}finally{if(o)throw o.error}}n.complete()},void 0,function(){i=null}))})}cr.bufferCount=kh});var cc=s(lr=>{"use strict";var Ch=lr&&lr.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(lr,"__esModule",{value:!0});lr.bufferTime=void 0;var Rh=C(),Wh=b(),Lh=O(),Nh=K(),Vh=x(),Uh=k(),ac=G();function zh(r){for(var t,e,n=[],i=1;i=0?ac.executeSchedule(l,u,y,o,!0):d=!0,y();var h=Lh.createOperatorSubscriber(l,function(_){var m,g,w=v.slice();try{for(var I=Ch(w),$=I.next();!$.done;$=I.next()){var ge=$.value,qe=ge.buffer;qe.push(_),c<=qe.length&&p(ge)}}catch(Ts){m={error:Ts}}finally{try{$&&!$.done&&(g=I.return)&&g.call(I)}finally{if(m)throw m.error}}},function(){for(;v!=null&&v.length;)l.next(v.shift().buffer);h==null||h.unsubscribe(),l.complete(),l.unsubscribe()},void 0,function(){return v=null});f.subscribe(h)})}lr.bufferTime=zh});var fc=s(sr=>{"use strict";var Yh=sr&&sr.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(sr,"__esModule",{value:!0});sr.bufferToggle=void 0;var Bh=C(),Dh=b(),lc=q(),Lu=O(),sc=E(),Kh=K();function Gh(r,t){return Dh.operate(function(e,n){var i=[];lc.innerFrom(r).subscribe(Lu.createOperatorSubscriber(n,function(u){var o=[];i.push(o);var c=new Bh.Subscription,f=function(){Kh.arrRemove(i,o),n.next(o),c.unsubscribe()};c.add(lc.innerFrom(t(u)).subscribe(Lu.createOperatorSubscriber(n,f,sc.noop)))},sc.noop)),e.subscribe(Lu.createOperatorSubscriber(n,function(u){var o,c;try{for(var f=Yh(i),l=f.next();!l.done;l=f.next()){var v=l.value;v.push(u)}}catch(d){o={error:d}}finally{try{l&&!l.done&&(c=f.return)&&c.call(f)}finally{if(o)throw o.error}}},function(){for(;i.length>0;)n.next(i.shift());n.complete()}))})}sr.bufferToggle=Gh});var dc=s(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.bufferWhen=void 0;var Qh=b(),Jh=E(),vc=O(),Zh=q();function $h(r){return Qh.operate(function(t,e){var n=null,i=null,u=function(){i==null||i.unsubscribe();var o=n;n=[],o&&e.next(o),Zh.innerFrom(r()).subscribe(i=vc.createOperatorSubscriber(e,u,Jh.noop))};u(),t.subscribe(vc.createOperatorSubscriber(e,function(o){return n==null?void 0:n.push(o)},function(){n&&e.next(n),e.complete()},void 0,function(){return n=i=null}))})}pn.bufferWhen=$h});var bc=s(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.catchError=void 0;var Hh=q(),Xh=O(),ey=b();function pc(r){return ey.operate(function(t,e){var n=null,i=!1,u;n=t.subscribe(Xh.createOperatorSubscriber(e,void 0,void 0,function(o){u=Hh.innerFrom(r(o,pc(r)(t))),n?(n.unsubscribe(),n=null,u.subscribe(e)):i=!0})),i&&(n.unsubscribe(),n=null,u.subscribe(e))})}bn.catchError=pc});var Nu=s(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.scanInternals=void 0;var ry=O();function ty(r,t,e,n,i){return function(u,o){var c=e,f=t,l=0;u.subscribe(ry.createOperatorSubscriber(o,function(v){var d=l++;f=c?r(f,v,d):(c=!0,v),n&&o.next(f)},i&&function(){c&&o.next(f),o.complete()}))}}_n.scanInternals=ty});var fr=s(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.reduce=void 0;var ny=Nu(),iy=b();function uy(r,t){return iy.operate(ny.scanInternals(r,t,arguments.length>=2,!1,!0))}hn.reduce=uy});var Vu=s(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.toArray=void 0;var oy=fr(),ay=b(),cy=function(r,t){return r.push(t),r};function ly(){return ay.operate(function(r,t){oy.reduce(cy,[])(r).subscribe(t)})}yn.toArray=ly});var Uu=s(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.joinAllInternals=void 0;var sy=M(),fy=ue(),vy=mr(),dy=Z(),py=Vu();function by(r,t){return vy.pipe(py.toArray(),dy.mergeMap(function(e){return r(e)}),t?fy.mapOneOrManyArgs(t):sy.identity)}mn.joinAllInternals=by});var zu=s(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.combineLatestAll=void 0;var _y=Nt(),hy=Uu();function yy(r){return hy.joinAllInternals(_y.combineLatest,r)}On.combineLatestAll=yy});var _c=s(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.combineAll=void 0;var my=zu();gn.combineAll=my.combineLatestAll});var Oc=s(le=>{"use strict";var hc=le&&le.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},yc=le&&le.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var wy=se&&se.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Ay=se&&se.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.concatMap=void 0;var qc=Z(),Fy=j();function Iy(r,t){return Fy.isFunction(t)?qc.mergeMap(r,t,1):qc.mergeMap(r,1)}qn.concatMap=Iy});var jc=s(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.concatMapTo=void 0;var Sc=Yu(),Ty=j();function xy(r,t){return Ty.isFunction(t)?Sc.concatMap(function(){return r},t):Sc.concatMap(function(){return r})}Sn.concatMapTo=xy});var Pc=s(fe=>{"use strict";var ky=fe&&fe.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Cy=fe&&fe.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var Uy=ve&&ve.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},zy=ve&&ve.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.fromSubscribable=void 0;var Dy=P();function Ky(r){return new Dy.Observable(function(t){return r.subscribe(t)})}jn.fromSubscribable=Ky});var wn=s(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.connect=void 0;var Gy=F(),Qy=q(),Jy=b(),Zy=Ac(),$y={connector:function(){return new Gy.Subject}};function Hy(r,t){t===void 0&&(t=$y);var e=t.connector;return Jy.operate(function(n,i){var u=e();Qy.innerFrom(r(Zy.fromSubscribable(u))).subscribe(i),i.add(n.subscribe(u))})}Pn.connect=Hy});var Ec=s(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.count=void 0;var Xy=fr();function em(r){return Xy.reduce(function(t,e,n){return!r||r(e,n)?t+1:t},0)}An.count=em});var Fc=s(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.debounce=void 0;var rm=b(),tm=E(),Mc=O(),nm=q();function im(r){return rm.operate(function(t,e){var n=!1,i=null,u=null,o=function(){if(u==null||u.unsubscribe(),u=null,n){n=!1;var c=i;i=null,e.next(c)}};t.subscribe(Mc.createOperatorSubscriber(e,function(c){u==null||u.unsubscribe(),n=!0,i=c,u=Mc.createOperatorSubscriber(e,o,tm.noop),nm.innerFrom(r(c)).subscribe(u)},function(){o(),e.complete()},void 0,function(){i=u=null}))})}En.debounce=im});var Ic=s(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.debounceTime=void 0;var um=x(),om=b(),am=O();function cm(r,t){return t===void 0&&(t=um.asyncScheduler),om.operate(function(e,n){var i=null,u=null,o=null,c=function(){if(i){i.unsubscribe(),i=null;var l=u;u=null,n.next(l)}};function f(){var l=o+r,v=t.now();if(v{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.defaultIfEmpty=void 0;var lm=b(),sm=O();function fm(r){return lm.operate(function(t,e){var n=!1;t.subscribe(sm.createOperatorSubscriber(e,function(i){n=!0,e.next(i)},function(){n||e.next(r),e.complete()}))})}Fn.defaultIfEmpty=fm});var Fr=s(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.take=void 0;var vm=N(),dm=b(),pm=O();function bm(r){return r<=0?function(){return vm.EMPTY}:dm.operate(function(t,e){var n=0;t.subscribe(pm.createOperatorSubscriber(e,function(i){++n<=r&&(e.next(i),r<=n&&e.complete())}))})}In.take=bm});var Bu=s(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.ignoreElements=void 0;var _m=b(),hm=O(),ym=E();function mm(){return _m.operate(function(r,t){r.subscribe(hm.createOperatorSubscriber(t,ym.noop))})}Tn.ignoreElements=mm});var Du=s(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.mapTo=void 0;var Om=ne();function gm(r){return Om.map(function(){return r})}xn.mapTo=gm});var Ku=s(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.delayWhen=void 0;var qm=Ar(),Tc=Fr(),Sm=Bu(),jm=Du(),Pm=Z(),wm=q();function xc(r,t){return t?function(e){return qm.concat(t.pipe(Tc.take(1),Sm.ignoreElements()),e.pipe(xc(r)))}:Pm.mergeMap(function(e,n){return wm.innerFrom(r(e,n)).pipe(Tc.take(1),jm.mapTo(e))})}kn.delayWhen=xc});var kc=s(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.delay=void 0;var Am=x(),Em=Ku(),Mm=ae();function Fm(r,t){t===void 0&&(t=Am.asyncScheduler);var e=Mm.timer(r,t);return Em.delayWhen(function(){return e})}Cn.delay=Fm});var Cc=s(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.dematerialize=void 0;var Im=St(),Tm=b(),xm=O();function km(){return Tm.operate(function(r,t){r.subscribe(xm.createOperatorSubscriber(t,function(e){return Im.observeNotification(e,t)}))})}Rn.dematerialize=km});var Wc=s(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.distinct=void 0;var Cm=b(),Rc=O(),Rm=E(),Wm=q();function Lm(r,t){return Cm.operate(function(e,n){var i=new Set;e.subscribe(Rc.createOperatorSubscriber(n,function(u){var o=r?r(u):u;i.has(o)||(i.add(o),n.next(u))})),t&&Wm.innerFrom(t).subscribe(Rc.createOperatorSubscriber(n,function(){return i.clear()},Rm.noop))})}Wn.distinct=Lm});var Gu=s(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.distinctUntilChanged=void 0;var Nm=M(),Vm=b(),Um=O();function zm(r,t){return t===void 0&&(t=Nm.identity),r=r??Ym,Vm.operate(function(e,n){var i,u=!0;e.subscribe(Um.createOperatorSubscriber(n,function(o){var c=t(o);(u||!r(i,c))&&(u=!1,i=c,n.next(o))}))})}Ln.distinctUntilChanged=zm;function Ym(r,t){return r===t}});var Lc=s(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.distinctUntilKeyChanged=void 0;var Bm=Gu();function Dm(r,t){return Bm.distinctUntilChanged(function(e,n){return t?t(e[r],n[r]):e[r]===n[r]})}Nn.distinctUntilKeyChanged=Dm});var Ir=s(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.throwIfEmpty=void 0;var Km=te(),Gm=b(),Qm=O();function Jm(r){return r===void 0&&(r=Zm),Gm.operate(function(t,e){var n=!1;t.subscribe(Qm.createOperatorSubscriber(e,function(i){n=!0,e.next(i)},function(){return n?e.complete():e.error(r())}))})}Vn.throwIfEmpty=Jm;function Zm(){return new Km.EmptyError}});var Vc=s(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.elementAt=void 0;var Nc=ju(),$m=xe(),Hm=Ir(),Xm=Mr(),eO=Fr();function rO(r,t){if(r<0)throw new Nc.ArgumentOutOfRangeError;var e=arguments.length>=2;return function(n){return n.pipe($m.filter(function(i,u){return u===r}),eO.take(1),e?Xm.defaultIfEmpty(t):Hm.throwIfEmpty(function(){return new Nc.ArgumentOutOfRangeError}))}}Un.elementAt=rO});var Uc=s(de=>{"use strict";var tO=de&&de.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},nO=de&&de.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.every=void 0;var aO=b(),cO=O();function lO(r,t){return aO.operate(function(e,n){var i=0;e.subscribe(cO.createOperatorSubscriber(n,function(u){r.call(t,u,i++,e)||(n.next(!1),n.complete())},function(){n.next(!0),n.complete()}))})}zn.every=lO});var Qu=s(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.exhaustMap=void 0;var sO=ne(),Yc=q(),fO=b(),Bc=O();function Dc(r,t){return t?function(e){return e.pipe(Dc(function(n,i){return Yc.innerFrom(r(n,i)).pipe(sO.map(function(u,o){return t(n,u,i,o)}))}))}:fO.operate(function(e,n){var i=0,u=null,o=!1;e.subscribe(Bc.createOperatorSubscriber(n,function(c){u||(u=Bc.createOperatorSubscriber(n,void 0,function(){u=null,o&&n.complete()}),Yc.innerFrom(r(c,i++)).subscribe(u))},function(){o=!0,!u&&n.complete()}))})}Yn.exhaustMap=Dc});var Ju=s(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.exhaustAll=void 0;var vO=Qu(),dO=M();function pO(){return vO.exhaustMap(dO.identity)}Bn.exhaustAll=pO});var Kc=s(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.exhaust=void 0;var bO=Ju();Dn.exhaust=bO.exhaustAll});var Gc=s(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.expand=void 0;var _O=b(),hO=Ut();function yO(r,t,e){return t===void 0&&(t=1/0),t=(t||0)<1?1/0:t,_O.operate(function(n,i){return hO.mergeInternals(n,i,r,t,void 0,!0,e)})}Kn.expand=yO});var Qc=s(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.finalize=void 0;var mO=b();function OO(r){return mO.operate(function(t,e){try{t.subscribe(e)}finally{e.add(r)}})}Gn.finalize=OO});var Zu=s(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.createFind=vr.find=void 0;var gO=b(),qO=O();function SO(r,t){return gO.operate(Jc(r,t,"value"))}vr.find=SO;function Jc(r,t,e){var n=e==="index";return function(i,u){var o=0;i.subscribe(qO.createOperatorSubscriber(u,function(c){var f=o++;r.call(t,c,f,i)&&(u.next(n?f:c),u.complete())},function(){u.next(n?-1:void 0),u.complete()}))}}vr.createFind=Jc});var Zc=s(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.findIndex=void 0;var jO=b(),PO=Zu();function wO(r,t){return jO.operate(PO.createFind(r,t,"index"))}Qn.findIndex=wO});var $c=s(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.first=void 0;var AO=te(),EO=xe(),MO=Fr(),FO=Mr(),IO=Ir(),TO=M();function xO(r,t){var e=arguments.length>=2;return function(n){return n.pipe(r?EO.filter(function(i,u){return r(i,u,n)}):TO.identity,MO.take(1),e?FO.defaultIfEmpty(t):IO.throwIfEmpty(function(){return new AO.EmptyError}))}}Jn.first=xO});var Xc=s(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.groupBy=void 0;var kO=P(),CO=q(),RO=F(),WO=b(),Hc=O();function LO(r,t,e,n){return WO.operate(function(i,u){var o;!t||typeof t=="function"?o=t:(e=t.duration,o=t.element,n=t.connector);var c=new Map,f=function(h){c.forEach(h),h(u)},l=function(h){return f(function(_){return _.error(h)})},v=0,d=!1,p=new Hc.OperatorSubscriber(u,function(h){try{var _=r(h),m=c.get(_);if(!m){c.set(_,m=n?n():new RO.Subject);var g=y(_,m);if(u.next(g),e){var w=Hc.createOperatorSubscriber(m,function(){m.complete(),w==null||w.unsubscribe()},void 0,void 0,function(){return c.delete(_)});p.add(CO.innerFrom(e(g)).subscribe(w))}}m.next(o?o(h):h)}catch(I){l(I)}},function(){return f(function(h){return h.complete()})},l,function(){return c.clear()},function(){return d=!0,v===0});i.subscribe(p);function y(h,_){var m=new kO.Observable(function(g){v++;var w=_.subscribe(g);return function(){w.unsubscribe(),--v===0&&d&&p.unsubscribe()}});return m.key=h,m}})}Zn.groupBy=LO});var el=s($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.isEmpty=void 0;var NO=b(),VO=O();function UO(){return NO.operate(function(r,t){r.subscribe(VO.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}$n.isEmpty=UO});var $u=s(dr=>{"use strict";var zO=dr&&dr.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(dr,"__esModule",{value:!0});dr.takeLast=void 0;var YO=N(),BO=b(),DO=O();function KO(r){return r<=0?function(){return YO.EMPTY}:BO.operate(function(t,e){var n=[];t.subscribe(DO.createOperatorSubscriber(e,function(i){n.push(i),r{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.last=void 0;var GO=te(),QO=xe(),JO=$u(),ZO=Ir(),$O=Mr(),HO=M();function XO(r,t){var e=arguments.length>=2;return function(n){return n.pipe(r?QO.filter(function(i,u){return r(i,u,n)}):HO.identity,JO.takeLast(1),e?$O.defaultIfEmpty(t):ZO.throwIfEmpty(function(){return new GO.EmptyError}))}}Hn.last=XO});var tl=s(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.materialize=void 0;var Hu=St(),eg=b(),rg=O();function tg(){return eg.operate(function(r,t){r.subscribe(rg.createOperatorSubscriber(t,function(e){t.next(Hu.Notification.createNext(e))},function(){t.next(Hu.Notification.createComplete()),t.complete()},function(e){t.next(Hu.Notification.createError(e)),t.complete()}))})}Xn.materialize=tg});var nl=s(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.max=void 0;var ng=fr(),ig=j();function ug(r){return ng.reduce(ig.isFunction(r)?function(t,e){return r(t,e)>0?t:e}:function(t,e){return t>e?t:e})}ei.max=ug});var il=s(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.flatMap=void 0;var og=Z();ri.flatMap=og.mergeMap});var ol=s(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.mergeMapTo=void 0;var ul=Z(),ag=j();function cg(r,t,e){return e===void 0&&(e=1/0),ag.isFunction(t)?ul.mergeMap(function(){return r},t,e):(typeof t=="number"&&(e=t),ul.mergeMap(function(){return r},e))}ti.mergeMapTo=cg});var al=s(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.mergeScan=void 0;var lg=b(),sg=Ut();function fg(r,t,e){return e===void 0&&(e=1/0),lg.operate(function(n,i){var u=t;return sg.mergeInternals(n,i,function(o,c){return r(u,o,c)},e,function(o){u=o},!1,void 0,function(){return u=null})})}ni.mergeScan=fg});var ll=s(pe=>{"use strict";var vg=pe&&pe.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},dg=pe&&pe.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var mg=be&&be.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Og=be&&be.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.min=void 0;var Sg=fr(),jg=j();function Pg(r){return Sg.reduce(jg.isFunction(r)?function(t,e){return r(t,e)<0?t:e}:function(t,e){return t{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.multicast=void 0;var wg=Or(),vl=j(),Ag=wn();function Eg(r,t){var e=vl.isFunction(r)?r:function(){return r};return vl.isFunction(t)?Ag.connect(t,{connector:e}):function(n){return new wg.ConnectableObservable(n,e)}}ui.multicast=Eg});var pl=s(D=>{"use strict";var Mg=D&&D.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Fg=D&&D.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.pairwise=void 0;var xg=b(),kg=O();function Cg(){return xg.operate(function(r,t){var e,n=!1;r.subscribe(kg.createOperatorSubscriber(t,function(i){var u=e;e=i,n&&t.next([u,i]),n=!0}))})}ai.pairwise=Cg});var _l=s(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.pluck=void 0;var Rg=ne();function Wg(){for(var r=[],t=0;t{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.publish=void 0;var Lg=F(),Ng=oi(),Vg=wn();function Ug(r){return r?function(t){return Vg.connect(r)(t)}:function(t){return Ng.multicast(new Lg.Subject)(t)}}li.publish=Ug});var yl=s(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.publishBehavior=void 0;var zg=au(),Yg=Or();function Bg(r){return function(t){var e=new zg.BehaviorSubject(r);return new Yg.ConnectableObservable(t,function(){return e})}}si.publishBehavior=Bg});var ml=s(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.publishLast=void 0;var Dg=$r(),Kg=Or();function Gg(){return function(r){var t=new Dg.AsyncSubject;return new Kg.ConnectableObservable(r,function(){return t})}}fi.publishLast=Gg});var gl=s(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.publishReplay=void 0;var Qg=Zr(),Jg=oi(),Ol=j();function Zg(r,t,e,n){e&&!Ol.isFunction(e)&&(n=e);var i=Ol.isFunction(e)?e:void 0;return function(u){return Jg.multicast(new Qg.ReplaySubject(r,t,n),i)(u)}}vi.publishReplay=Zg});var ql=s(_e=>{"use strict";var $g=_e&&_e.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Hg=_e&&_e.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.repeat=void 0;var n0=N(),i0=b(),Sl=O(),u0=q(),o0=ae();function a0(r){var t,e=1/0,n;return r!=null&&(typeof r=="object"?(t=r.count,e=t===void 0?1/0:t,n=r.delay):e=r),e<=0?function(){return n0.EMPTY}:i0.operate(function(i,u){var o=0,c,f=function(){if(c==null||c.unsubscribe(),c=null,n!=null){var v=typeof n=="number"?o0.timer(n):u0.innerFrom(n(o)),d=Sl.createOperatorSubscriber(u,function(){d.unsubscribe(),l()});v.subscribe(d)}else l()},l=function(){var v=!1;c=i.subscribe(Sl.createOperatorSubscriber(u,void 0,function(){++o{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.repeatWhen=void 0;var c0=q(),l0=F(),s0=b(),Pl=O();function f0(r){return s0.operate(function(t,e){var n,i=!1,u,o=!1,c=!1,f=function(){return c&&o&&(e.complete(),!0)},l=function(){return u||(u=new l0.Subject,c0.innerFrom(r(u)).subscribe(Pl.createOperatorSubscriber(e,function(){n?v():i=!0},function(){o=!0,f()}))),u},v=function(){c=!1,n=t.subscribe(Pl.createOperatorSubscriber(e,void 0,function(){c=!0,!f()&&l().next()})),i&&(n.unsubscribe(),n=null,i=!1,v())};v()})}pi.repeatWhen=f0});var El=s(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.retry=void 0;var v0=b(),Al=O(),d0=M(),p0=ae(),b0=q();function _0(r){r===void 0&&(r=1/0);var t;r&&typeof r=="object"?t=r:t={count:r};var e=t.count,n=e===void 0?1/0:e,i=t.delay,u=t.resetOnSuccess,o=u===void 0?!1:u;return n<=0?d0.identity:v0.operate(function(c,f){var l=0,v,d=function(){var p=!1;v=c.subscribe(Al.createOperatorSubscriber(f,function(y){o&&(l=0),f.next(y)},void 0,function(y){if(l++{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.retryWhen=void 0;var h0=q(),y0=F(),m0=b(),Ml=O();function O0(r){return m0.operate(function(t,e){var n,i=!1,u,o=function(){n=t.subscribe(Ml.createOperatorSubscriber(e,void 0,void 0,function(c){u||(u=new y0.Subject,h0.innerFrom(r(u)).subscribe(Ml.createOperatorSubscriber(e,function(){return n?o():i=!0}))),u&&u.next(c)})),i&&(n.unsubscribe(),n=null,i=!1,o())};o()})}_i.retryWhen=O0});var Xu=s(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.sample=void 0;var g0=q(),q0=b(),S0=E(),Il=O();function j0(r){return q0.operate(function(t,e){var n=!1,i=null;t.subscribe(Il.createOperatorSubscriber(e,function(u){n=!0,i=u})),g0.innerFrom(r).subscribe(Il.createOperatorSubscriber(e,function(){if(n){n=!1;var u=i;i=null,e.next(u)}},S0.noop))})}hi.sample=j0});var Tl=s(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.sampleTime=void 0;var P0=x(),w0=Xu(),A0=Tu();function E0(r,t){return t===void 0&&(t=P0.asyncScheduler),w0.sample(A0.interval(r,t))}yi.sampleTime=E0});var xl=s(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.scan=void 0;var M0=b(),F0=Nu();function I0(r,t){return M0.operate(F0.scanInternals(r,t,arguments.length>=2,!0))}mi.scan=I0});var Cl=s(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.sequenceEqual=void 0;var T0=b(),x0=O(),k0=q();function C0(r,t){return t===void 0&&(t=function(e,n){return e===n}),T0.operate(function(e,n){var i=kl(),u=kl(),o=function(f){n.next(f),n.complete()},c=function(f,l){var v=x0.createOperatorSubscriber(n,function(d){var p=l.buffer,y=l.complete;p.length===0?y?o(!1):f.buffer.push(d):!t(d,p.shift())&&o(!1)},function(){f.complete=!0;var d=l.complete,p=l.buffer;d&&o(p.length===0),v==null||v.unsubscribe()});return v};e.subscribe(c(i,u)),k0.innerFrom(r).subscribe(c(u,i))})}Oi.sequenceEqual=C0;function kl(){return{buffer:[],complete:!1}}});var ro=s(he=>{"use strict";var R0=he&&he.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},W0=he&&he.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e0&&(v=new Wl.SafeSubscriber({next:function(qe){return ge.next(qe)},error:function(qe){_=!0,m(),d=eo(g,i,qe),ge.error(qe)},complete:function(){h=!0,m(),d=eo(g,o),ge.complete()}}),Rl.innerFrom(I).subscribe(v))})(l)}}he.share=V0;function eo(r,t){for(var e=[],n=2;n{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.shareReplay=void 0;var U0=Zr(),z0=ro();function Y0(r,t,e){var n,i,u,o,c=!1;return r&&typeof r=="object"?(n=r.bufferSize,o=n===void 0?1/0:n,i=r.windowTime,t=i===void 0?1/0:i,u=r.refCount,c=u===void 0?!1:u,e=r.scheduler):o=r??1/0,z0.share({connector:function(){return new U0.ReplaySubject(o,t,e)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}gi.shareReplay=Y0});var Nl=s(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.single=void 0;var B0=te(),D0=wu(),K0=Pu(),G0=b(),Q0=O();function J0(r){return G0.operate(function(t,e){var n=!1,i,u=!1,o=0;t.subscribe(Q0.createOperatorSubscriber(e,function(c){u=!0,(!r||r(c,o++,t))&&(n&&e.error(new D0.SequenceError("Too many matching values")),n=!0,i=c)},function(){n?(e.next(i),e.complete()):e.error(u?new K0.NotFoundError("No matching values"):new B0.EmptyError)}))})}qi.single=J0});var Vl=s(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.skip=void 0;var Z0=xe();function $0(r){return Z0.filter(function(t,e){return r<=e})}Si.skip=$0});var Ul=s(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.skipLast=void 0;var H0=M(),X0=b(),eq=O();function rq(r){return r<=0?H0.identity:X0.operate(function(t,e){var n=new Array(r),i=0;return t.subscribe(eq.createOperatorSubscriber(e,function(u){var o=i++;if(o{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.skipUntil=void 0;var tq=b(),zl=O(),nq=q(),iq=E();function uq(r){return tq.operate(function(t,e){var n=!1,i=zl.createOperatorSubscriber(e,function(){i==null||i.unsubscribe(),n=!0},iq.noop);nq.innerFrom(r).subscribe(i),t.subscribe(zl.createOperatorSubscriber(e,function(u){return n&&e.next(u)}))})}Pi.skipUntil=uq});var Bl=s(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.skipWhile=void 0;var oq=b(),aq=O();function cq(r){return oq.operate(function(t,e){var n=!1,i=0;t.subscribe(aq.createOperatorSubscriber(e,function(u){return(n||(n=!r(u,i++)))&&e.next(u)}))})}wi.skipWhile=cq});var Kl=s(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.startWith=void 0;var Dl=Ar(),lq=k(),sq=b();function fq(){for(var r=[],t=0;t{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.switchMap=void 0;var vq=q(),dq=b(),Gl=O();function pq(r,t){return dq.operate(function(e,n){var i=null,u=0,o=!1,c=function(){return o&&!i&&n.complete()};e.subscribe(Gl.createOperatorSubscriber(n,function(f){i==null||i.unsubscribe();var l=0,v=u++;vq.innerFrom(r(f,v)).subscribe(i=Gl.createOperatorSubscriber(n,function(d){return n.next(t?t(f,d,v,l++):d)},function(){i=null,c()}))},function(){o=!0,c()}))})}Ei.switchMap=pq});var Ql=s(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.switchAll=void 0;var bq=Tr(),_q=M();function hq(){return bq.switchMap(_q.identity)}Mi.switchAll=hq});var Zl=s(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.switchMapTo=void 0;var Jl=Tr(),yq=j();function mq(r,t){return yq.isFunction(t)?Jl.switchMap(function(){return r},t):Jl.switchMap(function(){return r})}Fi.switchMapTo=mq});var $l=s(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.switchScan=void 0;var Oq=Tr(),gq=b();function qq(r,t){return gq.operate(function(e,n){var i=t;return Oq.switchMap(function(u,o){return r(i,u,o)},function(u,o){return i=o,o})(e).subscribe(n),function(){i=null}})}Ii.switchScan=qq});var Hl=s(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.takeUntil=void 0;var Sq=b(),jq=O(),Pq=q(),wq=E();function Aq(r){return Sq.operate(function(t,e){Pq.innerFrom(r).subscribe(jq.createOperatorSubscriber(e,function(){return e.complete()},wq.noop)),!e.closed&&t.subscribe(e)})}Ti.takeUntil=Aq});var Xl=s(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.takeWhile=void 0;var Eq=b(),Mq=O();function Fq(r,t){return t===void 0&&(t=!1),Eq.operate(function(e,n){var i=0;e.subscribe(Mq.createOperatorSubscriber(n,function(u){var o=r(u,i++);(o||t)&&n.next(u),!o&&n.complete()}))})}xi.takeWhile=Fq});var es=s(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.tap=void 0;var Iq=j(),Tq=b(),xq=O(),kq=M();function Cq(r,t,e){var n=Iq.isFunction(r)||t||e?{next:r,error:t,complete:e}:r;return n?Tq.operate(function(i,u){var o;(o=n.subscribe)===null||o===void 0||o.call(n);var c=!0;i.subscribe(xq.createOperatorSubscriber(u,function(f){var l;(l=n.next)===null||l===void 0||l.call(n,f),u.next(f)},function(){var f;c=!1,(f=n.complete)===null||f===void 0||f.call(n),u.complete()},function(f){var l;c=!1,(l=n.error)===null||l===void 0||l.call(n,f),u.error(f)},function(){var f,l;c&&((f=n.unsubscribe)===null||f===void 0||f.call(n)),(l=n.finalize)===null||l===void 0||l.call(n)}))}):kq.identity}ki.tap=Cq});var to=s(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.throttle=void 0;var Rq=b(),rs=O(),Wq=q();function Lq(r,t){return Rq.operate(function(e,n){var i=t??{},u=i.leading,o=u===void 0?!0:u,c=i.trailing,f=c===void 0?!1:c,l=!1,v=null,d=null,p=!1,y=function(){d==null||d.unsubscribe(),d=null,f&&(m(),p&&n.complete())},h=function(){d=null,p&&n.complete()},_=function(g){return d=Wq.innerFrom(r(g)).subscribe(rs.createOperatorSubscriber(n,y,h))},m=function(){if(l){l=!1;var g=v;v=null,n.next(g),!p&&_(g)}};e.subscribe(rs.createOperatorSubscriber(n,function(g){l=!0,v=g,!(d&&!d.closed)&&(o?m():_(g))},function(){p=!0,!(f&&l&&d&&!d.closed)&&n.complete()}))})}Ci.throttle=Lq});var ts=s(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.throttleTime=void 0;var Nq=x(),Vq=to(),Uq=ae();function zq(r,t,e){t===void 0&&(t=Nq.asyncScheduler);var n=Uq.timer(r,t);return Vq.throttle(function(){return n},e)}Ri.throttleTime=zq});var is=s(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.TimeInterval=pr.timeInterval=void 0;var Yq=x(),Bq=b(),Dq=O();function Kq(r){return r===void 0&&(r=Yq.asyncScheduler),Bq.operate(function(t,e){var n=r.now();t.subscribe(Dq.createOperatorSubscriber(e,function(i){var u=r.now(),o=u-n;n=u,e.next(new ns(i,o))}))})}pr.timeInterval=Kq;var ns=function(){function r(t,e){this.value=t,this.interval=e}return r}();pr.TimeInterval=ns});var us=s(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.timeoutWith=void 0;var Gq=x(),Qq=Tt(),Jq=xt();function Zq(r,t,e){var n,i,u;if(e=e??Gq.async,Qq.isValidDate(r)?n=r:typeof r=="number"&&(i=r),t)u=function(){return t};else throw new TypeError("No observable provided to switch to");if(n==null&&i==null)throw new TypeError("No timeout provided.");return Jq.timeout({first:n,each:i,scheduler:e,with:u})}Wi.timeoutWith=Zq});var os=s(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.timestamp=void 0;var $q=Jr(),Hq=ne();function Xq(r){return r===void 0&&(r=$q.dateTimestampProvider),Hq.map(function(t){return{value:t,timestamp:r.now()}})}Li.timestamp=Xq});var ls=s(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.window=void 0;var as=F(),e1=b(),cs=O(),r1=E(),t1=q();function n1(r){return e1.operate(function(t,e){var n=new as.Subject;e.next(n.asObservable());var i=function(u){n.error(u),e.error(u)};return t.subscribe(cs.createOperatorSubscriber(e,function(u){return n==null?void 0:n.next(u)},function(){n.complete(),e.complete()},i)),t1.innerFrom(r).subscribe(cs.createOperatorSubscriber(e,function(){n.complete(),e.next(n=new as.Subject)},r1.noop,i)),function(){n==null||n.unsubscribe(),n=null}})}Ni.window=n1});var fs=s(br=>{"use strict";var i1=br&&br.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(br,"__esModule",{value:!0});br.windowCount=void 0;var ss=F(),u1=b(),o1=O();function a1(r,t){t===void 0&&(t=0);var e=t>0?t:r;return u1.operate(function(n,i){var u=[new ss.Subject],o=[],c=0;i.next(u[0].asObservable()),n.subscribe(o1.createOperatorSubscriber(i,function(f){var l,v;try{for(var d=i1(u),p=d.next();!p.done;p=d.next()){var y=p.value;y.next(f)}}catch(m){l={error:m}}finally{try{p&&!p.done&&(v=d.return)&&v.call(d)}finally{if(l)throw l.error}}var h=c-r+1;if(h>=0&&h%e===0&&u.shift().complete(),++c%e===0){var _=new ss.Subject;u.push(_),i.next(_.asObservable())}},function(){for(;u.length>0;)u.shift().complete();i.complete()},function(f){for(;u.length>0;)u.shift().error(f);i.error(f)},function(){o=null,u=null}))})}br.windowCount=a1});var ds=s(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.windowTime=void 0;var c1=F(),l1=x(),s1=C(),f1=b(),v1=O(),d1=K(),p1=k(),vs=G();function b1(r){for(var t,e,n=[],i=1;i=0?vs.executeSchedule(l,u,y,o,!0):d=!0,y();var h=function(m){return v.slice().forEach(m)},_=function(m){h(function(g){var w=g.window;return m(w)}),m(l),l.unsubscribe()};return f.subscribe(v1.createOperatorSubscriber(l,function(m){h(function(g){g.window.next(m),c<=++g.seen&&p(g)})},function(){return _(function(m){return m.complete()})},function(m){return _(function(g){return g.error(m)})})),function(){v=null}})}Vi.windowTime=b1});var _s=s(_r=>{"use strict";var _1=_r&&_r.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(_r,"__esModule",{value:!0});_r.windowToggle=void 0;var h1=F(),y1=C(),m1=b(),ps=q(),no=O(),bs=E(),O1=K();function g1(r,t){return m1.operate(function(e,n){var i=[],u=function(o){for(;0{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.windowWhen=void 0;var q1=F(),S1=b(),hs=O(),j1=q();function P1(r){return S1.operate(function(t,e){var n,i,u=function(c){n.error(c),e.error(c)},o=function(){i==null||i.unsubscribe(),n==null||n.complete(),n=new q1.Subject,e.next(n.asObservable());var c;try{c=j1.innerFrom(r())}catch(f){u(f);return}c.subscribe(i=hs.createOperatorSubscriber(e,o,o,u))};o(),t.subscribe(hs.createOperatorSubscriber(e,function(c){return n.next(c)},function(){n.complete(),e.complete()},u,function(){i==null||i.unsubscribe(),n=null}))})}Ui.windowWhen=P1});var qs=s(ye=>{"use strict";var ms=ye&&ye.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Os=ye&&ye.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.zipAll=void 0;var T1=sn(),x1=Uu();function k1(r){return x1.joinAllInternals(T1.zip,r)}zi.zipAll=k1});var js=s(me=>{"use strict";var C1=me&&me.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},R1=me&&me.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var V1=Oe&&Oe.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},U1=Oe&&Oe.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e{"use strict";var B1=a&&a.__createBinding||(Object.create?function(r,t,e,n){n===void 0&&(n=e),Object.defineProperty(r,n,{enumerable:!0,get:function(){return t[e]}})}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]}),D1=a&&a.__exportStar||function(r,t){for(var e in r)e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e)&&B1(t,r,e)};Object.defineProperty(a,"__esModule",{value:!0});a.interval=a.iif=a.generate=a.fromEventPattern=a.fromEvent=a.from=a.forkJoin=a.empty=a.defer=a.connectable=a.concat=a.combineLatest=a.bindNodeCallback=a.bindCallback=a.UnsubscriptionError=a.TimeoutError=a.SequenceError=a.ObjectUnsubscribedError=a.NotFoundError=a.EmptyError=a.ArgumentOutOfRangeError=a.firstValueFrom=a.lastValueFrom=a.isObservable=a.identity=a.noop=a.pipe=a.NotificationKind=a.Notification=a.Subscriber=a.Subscription=a.Scheduler=a.VirtualAction=a.VirtualTimeScheduler=a.animationFrameScheduler=a.animationFrame=a.queueScheduler=a.queue=a.asyncScheduler=a.async=a.asapScheduler=a.asap=a.AsyncSubject=a.ReplaySubject=a.BehaviorSubject=a.Subject=a.animationFrames=a.observable=a.ConnectableObservable=a.Observable=void 0;a.filter=a.expand=a.exhaustMap=a.exhaustAll=a.exhaust=a.every=a.endWith=a.elementAt=a.distinctUntilKeyChanged=a.distinctUntilChanged=a.distinct=a.dematerialize=a.delayWhen=a.delay=a.defaultIfEmpty=a.debounceTime=a.debounce=a.count=a.connect=a.concatWith=a.concatMapTo=a.concatMap=a.concatAll=a.combineLatestWith=a.combineLatestAll=a.combineAll=a.catchError=a.bufferWhen=a.bufferToggle=a.bufferTime=a.bufferCount=a.buffer=a.auditTime=a.audit=a.config=a.NEVER=a.EMPTY=a.scheduled=a.zip=a.using=a.timer=a.throwError=a.range=a.race=a.partition=a.pairs=a.onErrorResumeNext=a.of=a.never=a.merge=void 0;a.switchMap=a.switchAll=a.subscribeOn=a.startWith=a.skipWhile=a.skipUntil=a.skipLast=a.skip=a.single=a.shareReplay=a.share=a.sequenceEqual=a.scan=a.sampleTime=a.sample=a.refCount=a.retryWhen=a.retry=a.repeatWhen=a.repeat=a.reduce=a.raceWith=a.publishReplay=a.publishLast=a.publishBehavior=a.publish=a.pluck=a.pairwise=a.onErrorResumeNextWith=a.observeOn=a.multicast=a.min=a.mergeWith=a.mergeScan=a.mergeMapTo=a.mergeMap=a.flatMap=a.mergeAll=a.max=a.materialize=a.mapTo=a.map=a.last=a.isEmpty=a.ignoreElements=a.groupBy=a.first=a.findIndex=a.find=a.finalize=void 0;a.zipWith=a.zipAll=a.withLatestFrom=a.windowWhen=a.windowToggle=a.windowTime=a.windowCount=a.window=a.toArray=a.timestamp=a.timeoutWith=a.timeout=a.timeInterval=a.throwIfEmpty=a.throttleTime=a.throttle=a.tap=a.takeWhile=a.takeUntil=a.takeLast=a.take=a.switchScan=a.switchMapTo=void 0;var K1=P();Object.defineProperty(a,"Observable",{enumerable:!0,get:function(){return K1.Observable}});var G1=Or();Object.defineProperty(a,"ConnectableObservable",{enumerable:!0,get:function(){return G1.ConnectableObservable}});var Q1=yr();Object.defineProperty(a,"observable",{enumerable:!0,get:function(){return Q1.observable}});var J1=Fo();Object.defineProperty(a,"animationFrames",{enumerable:!0,get:function(){return J1.animationFrames}});var Z1=F();Object.defineProperty(a,"Subject",{enumerable:!0,get:function(){return Z1.Subject}});var $1=au();Object.defineProperty(a,"BehaviorSubject",{enumerable:!0,get:function(){return $1.BehaviorSubject}});var H1=Zr();Object.defineProperty(a,"ReplaySubject",{enumerable:!0,get:function(){return H1.ReplaySubject}});var X1=$r();Object.defineProperty(a,"AsyncSubject",{enumerable:!0,get:function(){return X1.AsyncSubject}});var ws=Go();Object.defineProperty(a,"asap",{enumerable:!0,get:function(){return ws.asap}});Object.defineProperty(a,"asapScheduler",{enumerable:!0,get:function(){return ws.asapScheduler}});var As=x();Object.defineProperty(a,"async",{enumerable:!0,get:function(){return As.async}});Object.defineProperty(a,"asyncScheduler",{enumerable:!0,get:function(){return As.asyncScheduler}});var Es=Zo();Object.defineProperty(a,"queue",{enumerable:!0,get:function(){return Es.queue}});Object.defineProperty(a,"queueScheduler",{enumerable:!0,get:function(){return Es.queueScheduler}});var Ms=ea();Object.defineProperty(a,"animationFrame",{enumerable:!0,get:function(){return Ms.animationFrame}});Object.defineProperty(a,"animationFrameScheduler",{enumerable:!0,get:function(){return Ms.animationFrameScheduler}});var Fs=na();Object.defineProperty(a,"VirtualTimeScheduler",{enumerable:!0,get:function(){return Fs.VirtualTimeScheduler}});Object.defineProperty(a,"VirtualAction",{enumerable:!0,get:function(){return Fs.VirtualAction}});var eS=lu();Object.defineProperty(a,"Scheduler",{enumerable:!0,get:function(){return eS.Scheduler}});var rS=C();Object.defineProperty(a,"Subscription",{enumerable:!0,get:function(){return rS.Subscription}});var tS=Re();Object.defineProperty(a,"Subscriber",{enumerable:!0,get:function(){return tS.Subscriber}});var Is=St();Object.defineProperty(a,"Notification",{enumerable:!0,get:function(){return Is.Notification}});Object.defineProperty(a,"NotificationKind",{enumerable:!0,get:function(){return Is.NotificationKind}});var nS=mr();Object.defineProperty(a,"pipe",{enumerable:!0,get:function(){return nS.pipe}});var iS=E();Object.defineProperty(a,"noop",{enumerable:!0,get:function(){return iS.noop}});var uS=M();Object.defineProperty(a,"identity",{enumerable:!0,get:function(){return uS.identity}});var oS=Oa();Object.defineProperty(a,"isObservable",{enumerable:!0,get:function(){return oS.isObservable}});var aS=ga();Object.defineProperty(a,"lastValueFrom",{enumerable:!0,get:function(){return aS.lastValueFrom}});var cS=qa();Object.defineProperty(a,"firstValueFrom",{enumerable:!0,get:function(){return cS.firstValueFrom}});var lS=ju();Object.defineProperty(a,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return lS.ArgumentOutOfRangeError}});var sS=te();Object.defineProperty(a,"EmptyError",{enumerable:!0,get:function(){return sS.EmptyError}});var fS=Pu();Object.defineProperty(a,"NotFoundError",{enumerable:!0,get:function(){return fS.NotFoundError}});var vS=nu();Object.defineProperty(a,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return vS.ObjectUnsubscribedError}});var dS=wu();Object.defineProperty(a,"SequenceError",{enumerable:!0,get:function(){return dS.SequenceError}});var pS=xt();Object.defineProperty(a,"TimeoutError",{enumerable:!0,get:function(){return pS.TimeoutError}});var bS=Bi();Object.defineProperty(a,"UnsubscriptionError",{enumerable:!0,get:function(){return bS.UnsubscriptionError}});var _S=ja();Object.defineProperty(a,"bindCallback",{enumerable:!0,get:function(){return _S.bindCallback}});var hS=Pa();Object.defineProperty(a,"bindNodeCallback",{enumerable:!0,get:function(){return hS.bindNodeCallback}});var yS=Nt();Object.defineProperty(a,"combineLatest",{enumerable:!0,get:function(){return yS.combineLatest}});var mS=Ar();Object.defineProperty(a,"concat",{enumerable:!0,get:function(){return mS.concat}});var OS=xa();Object.defineProperty(a,"connectable",{enumerable:!0,get:function(){return OS.connectable}});var gS=Er();Object.defineProperty(a,"defer",{enumerable:!0,get:function(){return gS.defer}});var qS=N();Object.defineProperty(a,"empty",{enumerable:!0,get:function(){return qS.empty}});var SS=ka();Object.defineProperty(a,"forkJoin",{enumerable:!0,get:function(){return SS.forkJoin}});var jS=Q();Object.defineProperty(a,"from",{enumerable:!0,get:function(){return jS.from}});var PS=Ra();Object.defineProperty(a,"fromEvent",{enumerable:!0,get:function(){return PS.fromEvent}});var wS=La();Object.defineProperty(a,"fromEventPattern",{enumerable:!0,get:function(){return wS.fromEventPattern}});var AS=Va();Object.defineProperty(a,"generate",{enumerable:!0,get:function(){return AS.generate}});var ES=Ua();Object.defineProperty(a,"iif",{enumerable:!0,get:function(){return ES.iif}});var MS=Tu();Object.defineProperty(a,"interval",{enumerable:!0,get:function(){return MS.interval}});var FS=Ya();Object.defineProperty(a,"merge",{enumerable:!0,get:function(){return FS.merge}});var IS=xu();Object.defineProperty(a,"never",{enumerable:!0,get:function(){return IS.never}});var TS=gt();Object.defineProperty(a,"of",{enumerable:!0,get:function(){return TS.of}});var xS=ku();Object.defineProperty(a,"onErrorResumeNext",{enumerable:!0,get:function(){return xS.onErrorResumeNext}});var kS=Da();Object.defineProperty(a,"pairs",{enumerable:!0,get:function(){return kS.pairs}});var CS=Ja();Object.defineProperty(a,"partition",{enumerable:!0,get:function(){return CS.partition}});var RS=Cu();Object.defineProperty(a,"race",{enumerable:!0,get:function(){return RS.race}});var WS=Ha();Object.defineProperty(a,"range",{enumerable:!0,get:function(){return WS.range}});var LS=Su();Object.defineProperty(a,"throwError",{enumerable:!0,get:function(){return LS.throwError}});var NS=ae();Object.defineProperty(a,"timer",{enumerable:!0,get:function(){return NS.timer}});var VS=Xa();Object.defineProperty(a,"using",{enumerable:!0,get:function(){return VS.using}});var US=sn();Object.defineProperty(a,"zip",{enumerable:!0,get:function(){return US.zip}});var zS=qu();Object.defineProperty(a,"scheduled",{enumerable:!0,get:function(){return zS.scheduled}});var YS=N();Object.defineProperty(a,"EMPTY",{enumerable:!0,get:function(){return YS.EMPTY}});var BS=xu();Object.defineProperty(a,"NEVER",{enumerable:!0,get:function(){return BS.NEVER}});D1(rc(),a);var DS=ke();Object.defineProperty(a,"config",{enumerable:!0,get:function(){return DS.config}});var KS=Ru();Object.defineProperty(a,"audit",{enumerable:!0,get:function(){return KS.audit}});var GS=nc();Object.defineProperty(a,"auditTime",{enumerable:!0,get:function(){return GS.auditTime}});var QS=uc();Object.defineProperty(a,"buffer",{enumerable:!0,get:function(){return QS.buffer}});var JS=oc();Object.defineProperty(a,"bufferCount",{enumerable:!0,get:function(){return JS.bufferCount}});var ZS=cc();Object.defineProperty(a,"bufferTime",{enumerable:!0,get:function(){return ZS.bufferTime}});var $S=fc();Object.defineProperty(a,"bufferToggle",{enumerable:!0,get:function(){return $S.bufferToggle}});var HS=dc();Object.defineProperty(a,"bufferWhen",{enumerable:!0,get:function(){return HS.bufferWhen}});var XS=bc();Object.defineProperty(a,"catchError",{enumerable:!0,get:function(){return XS.catchError}});var ej=_c();Object.defineProperty(a,"combineAll",{enumerable:!0,get:function(){return ej.combineAll}});var rj=zu();Object.defineProperty(a,"combineLatestAll",{enumerable:!0,get:function(){return rj.combineLatestAll}});var tj=gc();Object.defineProperty(a,"combineLatestWith",{enumerable:!0,get:function(){return tj.combineLatestWith}});var nj=Dt();Object.defineProperty(a,"concatAll",{enumerable:!0,get:function(){return nj.concatAll}});var ij=Yu();Object.defineProperty(a,"concatMap",{enumerable:!0,get:function(){return ij.concatMap}});var uj=jc();Object.defineProperty(a,"concatMapTo",{enumerable:!0,get:function(){return uj.concatMapTo}});var oj=wc();Object.defineProperty(a,"concatWith",{enumerable:!0,get:function(){return oj.concatWith}});var aj=wn();Object.defineProperty(a,"connect",{enumerable:!0,get:function(){return aj.connect}});var cj=Ec();Object.defineProperty(a,"count",{enumerable:!0,get:function(){return cj.count}});var lj=Fc();Object.defineProperty(a,"debounce",{enumerable:!0,get:function(){return lj.debounce}});var sj=Ic();Object.defineProperty(a,"debounceTime",{enumerable:!0,get:function(){return sj.debounceTime}});var fj=Mr();Object.defineProperty(a,"defaultIfEmpty",{enumerable:!0,get:function(){return fj.defaultIfEmpty}});var vj=kc();Object.defineProperty(a,"delay",{enumerable:!0,get:function(){return vj.delay}});var dj=Ku();Object.defineProperty(a,"delayWhen",{enumerable:!0,get:function(){return dj.delayWhen}});var pj=Cc();Object.defineProperty(a,"dematerialize",{enumerable:!0,get:function(){return pj.dematerialize}});var bj=Wc();Object.defineProperty(a,"distinct",{enumerable:!0,get:function(){return bj.distinct}});var _j=Gu();Object.defineProperty(a,"distinctUntilChanged",{enumerable:!0,get:function(){return _j.distinctUntilChanged}});var hj=Lc();Object.defineProperty(a,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return hj.distinctUntilKeyChanged}});var yj=Vc();Object.defineProperty(a,"elementAt",{enumerable:!0,get:function(){return yj.elementAt}});var mj=Uc();Object.defineProperty(a,"endWith",{enumerable:!0,get:function(){return mj.endWith}});var Oj=zc();Object.defineProperty(a,"every",{enumerable:!0,get:function(){return Oj.every}});var gj=Kc();Object.defineProperty(a,"exhaust",{enumerable:!0,get:function(){return gj.exhaust}});var qj=Ju();Object.defineProperty(a,"exhaustAll",{enumerable:!0,get:function(){return qj.exhaustAll}});var Sj=Qu();Object.defineProperty(a,"exhaustMap",{enumerable:!0,get:function(){return Sj.exhaustMap}});var jj=Gc();Object.defineProperty(a,"expand",{enumerable:!0,get:function(){return jj.expand}});var Pj=xe();Object.defineProperty(a,"filter",{enumerable:!0,get:function(){return Pj.filter}});var wj=Qc();Object.defineProperty(a,"finalize",{enumerable:!0,get:function(){return wj.finalize}});var Aj=Zu();Object.defineProperty(a,"find",{enumerable:!0,get:function(){return Aj.find}});var Ej=Zc();Object.defineProperty(a,"findIndex",{enumerable:!0,get:function(){return Ej.findIndex}});var Mj=$c();Object.defineProperty(a,"first",{enumerable:!0,get:function(){return Mj.first}});var Fj=Xc();Object.defineProperty(a,"groupBy",{enumerable:!0,get:function(){return Fj.groupBy}});var Ij=Bu();Object.defineProperty(a,"ignoreElements",{enumerable:!0,get:function(){return Ij.ignoreElements}});var Tj=el();Object.defineProperty(a,"isEmpty",{enumerable:!0,get:function(){return Tj.isEmpty}});var xj=rl();Object.defineProperty(a,"last",{enumerable:!0,get:function(){return xj.last}});var kj=ne();Object.defineProperty(a,"map",{enumerable:!0,get:function(){return kj.map}});var Cj=Du();Object.defineProperty(a,"mapTo",{enumerable:!0,get:function(){return Cj.mapTo}});var Rj=tl();Object.defineProperty(a,"materialize",{enumerable:!0,get:function(){return Rj.materialize}});var Wj=nl();Object.defineProperty(a,"max",{enumerable:!0,get:function(){return Wj.max}});var Lj=wr();Object.defineProperty(a,"mergeAll",{enumerable:!0,get:function(){return Lj.mergeAll}});var Nj=il();Object.defineProperty(a,"flatMap",{enumerable:!0,get:function(){return Nj.flatMap}});var Vj=Z();Object.defineProperty(a,"mergeMap",{enumerable:!0,get:function(){return Vj.mergeMap}});var Uj=ol();Object.defineProperty(a,"mergeMapTo",{enumerable:!0,get:function(){return Uj.mergeMapTo}});var zj=al();Object.defineProperty(a,"mergeScan",{enumerable:!0,get:function(){return zj.mergeScan}});var Yj=sl();Object.defineProperty(a,"mergeWith",{enumerable:!0,get:function(){return Yj.mergeWith}});var Bj=fl();Object.defineProperty(a,"min",{enumerable:!0,get:function(){return Bj.min}});var Dj=oi();Object.defineProperty(a,"multicast",{enumerable:!0,get:function(){return Dj.multicast}});var Kj=jr();Object.defineProperty(a,"observeOn",{enumerable:!0,get:function(){return Kj.observeOn}});var Gj=pl();Object.defineProperty(a,"onErrorResumeNextWith",{enumerable:!0,get:function(){return Gj.onErrorResumeNextWith}});var Qj=bl();Object.defineProperty(a,"pairwise",{enumerable:!0,get:function(){return Qj.pairwise}});var Jj=_l();Object.defineProperty(a,"pluck",{enumerable:!0,get:function(){return Jj.pluck}});var Zj=hl();Object.defineProperty(a,"publish",{enumerable:!0,get:function(){return Zj.publish}});var $j=yl();Object.defineProperty(a,"publishBehavior",{enumerable:!0,get:function(){return $j.publishBehavior}});var Hj=ml();Object.defineProperty(a,"publishLast",{enumerable:!0,get:function(){return Hj.publishLast}});var Xj=gl();Object.defineProperty(a,"publishReplay",{enumerable:!0,get:function(){return Xj.publishReplay}});var eP=ql();Object.defineProperty(a,"raceWith",{enumerable:!0,get:function(){return eP.raceWith}});var rP=fr();Object.defineProperty(a,"reduce",{enumerable:!0,get:function(){return rP.reduce}});var tP=jl();Object.defineProperty(a,"repeat",{enumerable:!0,get:function(){return tP.repeat}});var nP=wl();Object.defineProperty(a,"repeatWhen",{enumerable:!0,get:function(){return nP.repeatWhen}});var iP=El();Object.defineProperty(a,"retry",{enumerable:!0,get:function(){return iP.retry}});var uP=Fl();Object.defineProperty(a,"retryWhen",{enumerable:!0,get:function(){return uP.retryWhen}});var oP=ru();Object.defineProperty(a,"refCount",{enumerable:!0,get:function(){return oP.refCount}});var aP=Xu();Object.defineProperty(a,"sample",{enumerable:!0,get:function(){return aP.sample}});var cP=Tl();Object.defineProperty(a,"sampleTime",{enumerable:!0,get:function(){return cP.sampleTime}});var lP=xl();Object.defineProperty(a,"scan",{enumerable:!0,get:function(){return lP.scan}});var sP=Cl();Object.defineProperty(a,"sequenceEqual",{enumerable:!0,get:function(){return sP.sequenceEqual}});var fP=ro();Object.defineProperty(a,"share",{enumerable:!0,get:function(){return fP.share}});var vP=Ll();Object.defineProperty(a,"shareReplay",{enumerable:!0,get:function(){return vP.shareReplay}});var dP=Nl();Object.defineProperty(a,"single",{enumerable:!0,get:function(){return dP.single}});var pP=Vl();Object.defineProperty(a,"skip",{enumerable:!0,get:function(){return pP.skip}});var bP=Ul();Object.defineProperty(a,"skipLast",{enumerable:!0,get:function(){return bP.skipLast}});var _P=Yl();Object.defineProperty(a,"skipUntil",{enumerable:!0,get:function(){return _P.skipUntil}});var hP=Bl();Object.defineProperty(a,"skipWhile",{enumerable:!0,get:function(){return hP.skipWhile}});var yP=Kl();Object.defineProperty(a,"startWith",{enumerable:!0,get:function(){return yP.startWith}});var mP=Pr();Object.defineProperty(a,"subscribeOn",{enumerable:!0,get:function(){return mP.subscribeOn}});var OP=Ql();Object.defineProperty(a,"switchAll",{enumerable:!0,get:function(){return OP.switchAll}});var gP=Tr();Object.defineProperty(a,"switchMap",{enumerable:!0,get:function(){return gP.switchMap}});var qP=Zl();Object.defineProperty(a,"switchMapTo",{enumerable:!0,get:function(){return qP.switchMapTo}});var SP=$l();Object.defineProperty(a,"switchScan",{enumerable:!0,get:function(){return SP.switchScan}});var jP=Fr();Object.defineProperty(a,"take",{enumerable:!0,get:function(){return jP.take}});var PP=$u();Object.defineProperty(a,"takeLast",{enumerable:!0,get:function(){return PP.takeLast}});var wP=Hl();Object.defineProperty(a,"takeUntil",{enumerable:!0,get:function(){return wP.takeUntil}});var AP=Xl();Object.defineProperty(a,"takeWhile",{enumerable:!0,get:function(){return AP.takeWhile}});var EP=es();Object.defineProperty(a,"tap",{enumerable:!0,get:function(){return EP.tap}});var MP=to();Object.defineProperty(a,"throttle",{enumerable:!0,get:function(){return MP.throttle}});var FP=ts();Object.defineProperty(a,"throttleTime",{enumerable:!0,get:function(){return FP.throttleTime}});var IP=Ir();Object.defineProperty(a,"throwIfEmpty",{enumerable:!0,get:function(){return IP.throwIfEmpty}});var TP=is();Object.defineProperty(a,"timeInterval",{enumerable:!0,get:function(){return TP.timeInterval}});var xP=xt();Object.defineProperty(a,"timeout",{enumerable:!0,get:function(){return xP.timeout}});var kP=us();Object.defineProperty(a,"timeoutWith",{enumerable:!0,get:function(){return kP.timeoutWith}});var CP=os();Object.defineProperty(a,"timestamp",{enumerable:!0,get:function(){return CP.timestamp}});var RP=Vu();Object.defineProperty(a,"toArray",{enumerable:!0,get:function(){return RP.toArray}});var WP=ls();Object.defineProperty(a,"window",{enumerable:!0,get:function(){return WP.window}});var LP=fs();Object.defineProperty(a,"windowCount",{enumerable:!0,get:function(){return LP.windowCount}});var NP=ds();Object.defineProperty(a,"windowTime",{enumerable:!0,get:function(){return NP.windowTime}});var VP=_s();Object.defineProperty(a,"windowToggle",{enumerable:!0,get:function(){return VP.windowToggle}});var UP=ys();Object.defineProperty(a,"windowWhen",{enumerable:!0,get:function(){return UP.windowWhen}});var zP=qs();Object.defineProperty(a,"withLatestFrom",{enumerable:!0,get:function(){return zP.withLatestFrom}});var YP=Ss();Object.defineProperty(a,"zipAll",{enumerable:!0,get:function(){return YP.zipAll}});var BP=Ps();Object.defineProperty(a,"zipWith",{enumerable:!0,get:function(){return BP.zipWith}})});Object.defineProperty(exports,"__esModule",{value:!0});exports.filterAsync=exports.zip=exports.timer=exports.throwIfEmpty=exports.tap=exports.takeUntil=exports.take=exports.switchMap=exports.startWith=exports.retry=exports.raceWith=exports.race=exports.pipe=exports.of=exports.Observable=exports.noop=exports.NEVER=exports.mergeScan=exports.mergeMap=exports.merge=exports.ReplaySubject=exports.map=exports.lastValueFrom=exports.ignoreElements=exports.identity=exports.fromEvent=exports.from=exports.forkJoin=exports.firstValueFrom=exports.first=exports.filter=exports.EMPTY=exports.delay=exports.defer=exports.defaultIfEmpty=exports.concatMap=exports.concat=exports.catchError=exports.bufferCount=void 0;var S=io();Object.defineProperty(exports,"bufferCount",{enumerable:!0,get:function(){return S.bufferCount}});Object.defineProperty(exports,"catchError",{enumerable:!0,get:function(){return S.catchError}});Object.defineProperty(exports,"concat",{enumerable:!0,get:function(){return S.concat}});Object.defineProperty(exports,"concatMap",{enumerable:!0,get:function(){return S.concatMap}});Object.defineProperty(exports,"defaultIfEmpty",{enumerable:!0,get:function(){return S.defaultIfEmpty}});Object.defineProperty(exports,"defer",{enumerable:!0,get:function(){return S.defer}});Object.defineProperty(exports,"delay",{enumerable:!0,get:function(){return S.delay}});Object.defineProperty(exports,"EMPTY",{enumerable:!0,get:function(){return S.EMPTY}});Object.defineProperty(exports,"filter",{enumerable:!0,get:function(){return S.filter}});Object.defineProperty(exports,"first",{enumerable:!0,get:function(){return S.first}});Object.defineProperty(exports,"firstValueFrom",{enumerable:!0,get:function(){return S.firstValueFrom}});Object.defineProperty(exports,"forkJoin",{enumerable:!0,get:function(){return S.forkJoin}});Object.defineProperty(exports,"from",{enumerable:!0,get:function(){return S.from}});Object.defineProperty(exports,"fromEvent",{enumerable:!0,get:function(){return S.fromEvent}});Object.defineProperty(exports,"identity",{enumerable:!0,get:function(){return S.identity}});Object.defineProperty(exports,"ignoreElements",{enumerable:!0,get:function(){return S.ignoreElements}});Object.defineProperty(exports,"lastValueFrom",{enumerable:!0,get:function(){return S.lastValueFrom}});Object.defineProperty(exports,"map",{enumerable:!0,get:function(){return S.map}});Object.defineProperty(exports,"ReplaySubject",{enumerable:!0,get:function(){return S.ReplaySubject}});Object.defineProperty(exports,"merge",{enumerable:!0,get:function(){return S.merge}});Object.defineProperty(exports,"mergeMap",{enumerable:!0,get:function(){return S.mergeMap}});Object.defineProperty(exports,"mergeScan",{enumerable:!0,get:function(){return S.mergeScan}});Object.defineProperty(exports,"NEVER",{enumerable:!0,get:function(){return S.NEVER}});Object.defineProperty(exports,"noop",{enumerable:!0,get:function(){return S.noop}});Object.defineProperty(exports,"Observable",{enumerable:!0,get:function(){return S.Observable}});Object.defineProperty(exports,"of",{enumerable:!0,get:function(){return S.of}});Object.defineProperty(exports,"pipe",{enumerable:!0,get:function(){return S.pipe}});Object.defineProperty(exports,"race",{enumerable:!0,get:function(){return S.race}});Object.defineProperty(exports,"raceWith",{enumerable:!0,get:function(){return S.raceWith}});Object.defineProperty(exports,"retry",{enumerable:!0,get:function(){return S.retry}});Object.defineProperty(exports,"startWith",{enumerable:!0,get:function(){return S.startWith}});Object.defineProperty(exports,"switchMap",{enumerable:!0,get:function(){return S.switchMap}});Object.defineProperty(exports,"take",{enumerable:!0,get:function(){return S.take}});Object.defineProperty(exports,"takeUntil",{enumerable:!0,get:function(){return S.takeUntil}});Object.defineProperty(exports,"tap",{enumerable:!0,get:function(){return S.tap}});Object.defineProperty(exports,"throwIfEmpty",{enumerable:!0,get:function(){return S.throwIfEmpty}});Object.defineProperty(exports,"timer",{enumerable:!0,get:function(){return S.timer}});Object.defineProperty(exports,"zip",{enumerable:!0,get:function(){return S.zip}});var Yi=io();function DP(r){return(0,Yi.mergeMap)(t=>(0,Yi.from)(Promise.resolve(r(t))).pipe((0,Yi.filter)(e=>e),(0,Yi.map)(()=>t)))}exports.filterAsync=DP; /** * @license * Copyright 2023 Google Inc. diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.d.ts index 1943af5d..58622042 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.d.ts @@ -121,6 +121,13 @@ export interface BrowserEvents extends Record { */ [BrowserEvent.TargetDiscovered]: Protocol.Target.TargetInfo; } +/** + * @public + * @experimental + */ +export interface DebugInfo { + pendingProtocolErrors: Error[]; +} /** * {@link Browser} represents a browser instance that is either: * @@ -300,7 +307,7 @@ export declare abstract class Browser extends EventEmitter { /** * Whether Puppeteer is connected to this {@link Browser | browser}. * - * @deprecated Use {@link Browser.connected}. + * @deprecated Use {@link Browser | Browser.connected}. */ isConnected(): boolean; /** @@ -315,5 +322,16 @@ export declare abstract class Browser extends EventEmitter { * @internal */ abstract get protocol(): ProtocolType; + /** + * Get debug information from Puppeteer. + * + * @remarks + * + * Currently, includes pending protocol calls. In the future, we might add more info. + * + * @public + * @experimental + */ + abstract get debugInfo(): DebugInfo; } //# sourceMappingURL=Browser.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.d.ts.map index 61c07ad7..5706fe1c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Browser.d.ts","sourceRoot":"","sources":["../../../../src/api/Browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAWhD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAE,KAAK,SAAS,EAAC,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;;;;;;OAcG;IACG,aAAa,CACjB,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EACpD,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,MAAM,CAAC;IAWlB;;;;;;;;;OASG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;IAY9B;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;IAEnC;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC;IAErC;;;OAGG;IACH,QAAQ,CAAC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAE/B;;;OAGG;IACH,QAAQ,CAAC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAEpC;;;;OAIG;IACH,WAAW,IAAI,OAAO;IAItB;;OAEG;IACH,QAAQ,KAAK,SAAS,IAAI,OAAO,CAAC;IAElC,gBAAgB;IAChB,CAAC,aAAa,CAAC,IAAI,IAAI;IAIvB,gBAAgB;IAChB,CAAC,kBAAkB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrC;;OAEG;IACH,QAAQ,KAAK,QAAQ,IAAI,YAAY,CAAC;IAEtC;;;;;;;;;OASG;IACH,QAAQ,KAAK,SAAS,IAAI,SAAS,CAAC;CACrC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js index 4dc7c3dd..a323f11b 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js @@ -3,10 +3,9 @@ * Copyright 2017 Google Inc. * SPDX-License-Identifier: Apache-2.0 */ -import { firstValueFrom, from, merge, raceWith, filterAsync, fromEvent, } from '../../third_party/rxjs/rxjs.js'; +import { filterAsync, firstValueFrom, from, merge, raceWith, } from '../../third_party/rxjs/rxjs.js'; import { EventEmitter } from '../common/EventEmitter.js'; -import { debugError } from '../common/util.js'; -import { timeout } from '../common/util.js'; +import { debugError, fromEmitterEvent, timeout } from '../common/util.js'; import { asyncDisposeSymbol, disposeSymbol } from '../util/disposable.js'; /** * @internal @@ -97,7 +96,7 @@ export class Browser extends EventEmitter { */ async waitForTarget(predicate, options = {}) { const { timeout: ms = 30000 } = options; - return await firstValueFrom(merge(fromEvent(this, "targetcreated" /* BrowserEvent.TargetCreated */), fromEvent(this, "targetchanged" /* BrowserEvent.TargetChanged */), from(this.targets())).pipe(filterAsync(predicate), raceWith(timeout(ms)))); + return await firstValueFrom(merge(fromEmitterEvent(this, "targetcreated" /* BrowserEvent.TargetCreated */), fromEmitterEvent(this, "targetchanged" /* BrowserEvent.TargetChanged */), from(this.targets())).pipe(filterAsync(predicate), raceWith(timeout(ms)))); } /** * Gets a list of all open {@link Page | pages} inside this {@link Browser}. @@ -121,7 +120,7 @@ export class Browser extends EventEmitter { /** * Whether Puppeteer is connected to this {@link Browser | browser}. * - * @deprecated Use {@link Browser.connected}. + * @deprecated Use {@link Browser | Browser.connected}. */ isConnected() { return this.connected; diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js.map index 2be98f8f..80349325 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js.map @@ -1 +1 @@ -{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/api/Browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EACL,cAAc,EACd,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAS,GAEV,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAC,YAAY,EAAiB,MAA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EACpD,UAAgC,EAAE;QAElC,MAAM,EAAC,OAAO,EAAE,EAAE,GAAG,KAAK,EAAC,GAAG,OAAO,CAAC;QACtC,OAAO,MAAM,cAAc,CACzB,KAAK,CACH,SAAS,CAAC,IAAI,mDAAmD,EACjE,SAAS,CAAC,IAAI,mDAAmD,EACjE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CACrB,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CACtD,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,KAAK;QACT,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CACpC,IAAI,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YACnC,OAAO,OAAO,CAAC,KAAK,EAAE,CAAC;QACzB,CAAC,CAAC,CACH,CAAC;QACF,iBAAiB;QACjB,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;YACpC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACvB,CAAC,EAAE,EAAE,CAAC,CAAC;IACT,CAAC;IAoCD;;;;OAIG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAOD,gBAAgB;IAChB,CAAC,aAAa,CAAC;QACb,OAAO,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAC7C,CAAC;IAED,gBAAgB;IAChB,CAAC,kBAAkB,CAAC;QAClB,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;CAMF"} \ No newline at end of file +{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/api/Browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EACL,WAAW,EACX,cAAc,EACd,IAAI,EACJ,KA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;;;;;;OAcG;IACH,KAAK,CAAC,aAAa,CACjB,SAAoD,EACpD,UAAgC,EAAE;QAElC,MAAM,EAAC,OAAO,EAAE,EAAE,GAAG,KAAK,EAAC,GAAG,OAAO,CAAC;QACtC,OAAO,MAAM,cAAc,CACzB,KAAK,CACH,gBAAgB,CAAC,IAAI,mDAA6B,EAClD,gBAAgB,CAAC,IAAI,mDAA6B,EAClD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CACrB,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CACtD,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,KAAK;QACT,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CACpC,IAAI,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YACnC,OAAO,OAAO,CAAC,KAAK,EAAE,CAAC;QACzB,CAAC,CAAC,CACH,CAAC;QACF,iBAAiB;QACjB,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;YACpC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACvB,CAAC,EAAE,EAAE,CAAC,CAAC;IACT,CAAC;IAoCD;;;;OAIG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAOD,gBAAgB;IAChB,CAAC,aAAa,CAAC;QACb,OAAO,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAC7C,CAAC;IAED,gBAAgB;IAChB,CAAC,kBAAkB,CAAC;QAClB,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;CAkBF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.d.ts index 2fc4edea..dec7d55c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.d.ts @@ -50,7 +50,7 @@ export declare abstract class Dialog { /** * @internal */ - protected abstract sendCommand(options: { + protected abstract handle(options: { accept: boolean; text?: string; }): Promise; diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.d.ts.map index 742ad27e..a6bfe4e2 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/api/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAIhD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,8BAAsB,MAAM;;IAM1B;;OAEG;gBAED,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,UAAU,EAC9B,OAAO,EAAE,MAAM,EACf,YAAY,SAAK;IAOnB;;OAEG;IACH,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,UAAU;IAIhC;;OAEG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,YAAY,IAAI,MAAM;IAItB;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO,EAAE;QACtC,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,IAAI,CAAC;IAEjB;;;;;;OAMG;IACG,MAAM,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAShD;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAO/B"} \ No newline at end of file +{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/api/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAIhD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,8BAAsB,MAAM;;IAM1B;;OAEG;gBAED,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,UAAU,EAC9B,OAAO,EAAE,MAAM,EACf,YAAY,SAAK;IAOnB;;OAEG;IACH,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,UAAU;IAIhC;;OAEG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,YAAY,IAAI,MAAM;IAItB;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE;QACjC,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,IAAI,CAAC;IAEjB;;;;;;OAMG;IACG,MAAM,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAShD;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAO/B"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js index 3f106ee5..f4801f55 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js @@ -70,7 +70,7 @@ export class Dialog { async accept(promptText) { assert(!this.#handled, 'Cannot accept dialog which is already handled!'); this.#handled = true; - await this.sendCommand({ + await this.handle({ accept: true, text: promptText, }); @@ -81,7 +81,7 @@ export class Dialog { async dismiss() { assert(!this.#handled, 'Cannot dismiss dialog which is already handled!'); this.#handled = true; - await this.sendCommand({ + await this.handle({ accept: false, }); } diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js.map index afd788b8..0d1cfe46 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js.map @@ -1 +1 @@ -{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/api/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,OAAgB,MAAM;IAC1B,KAAK,CAA2B;IAChC,QAAQ,CAAS;IACjB,aAAa,CAAS;IACtB,QAAQ,GAAG,KAAK,CAAC;IAEjB;;OAEG;IACH,YACE,IAA8B,EAC9B,OAAe,EACf,YAAY,GAAG,EAAE;QAEjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;OAEG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,YAAY;QACV,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAUD;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CAAC,UAAmB;QAC9B,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,gDAAgD,CAAC,CAAC;QACzE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,MAAM,IAAI,CAAC,WAAW,CAAC;YACrB,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,UAAU;SACjB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO;QACX,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,iDAAiD,CAAC,CAAC;QAC1E,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,MAAM,IAAI,CAAC,WAAW,CAAC;YACrB,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/api/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,OAAgB,MAAM;IAC1B,KAAK,CAA2B;IAChC,QAAQ,CAAS;IACjB,aAAa,CAAS;IACtB,QAAQ,GAAG,KAAK,CAAC;IAEjB;;OAEG;IACH,YACE,IAA8B,EAC9B,OAAe,EACf,YAAY,GAAG,EAAE;QAEjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;OAEG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,YAAY;QACV,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAUD;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CAAC,UAAmB;QAC9B,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,gDAAgD,CAAC,CAAC;QACzE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,MAAM,IAAI,CAAC,MAAM,CAAC;YAChB,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,UAAU;SACjB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO;QACX,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,iDAAiD,CAAC,CAAC;QAC1E,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,MAAM,IAAI,CAAC,MAAM,CAAC;YAChB,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.d.ts.map index 9a891bf9..4106c73a 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ElementHandle.d.ts","sourceRoot":"","sources":["../../../../src/api/ElementHandle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AAG3C,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,OAAO,EACR,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAM5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EAClB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,EAAC,iBAAi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C,OAAO,CAAC,EAC5B,OAAO,GAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;KACf,GACL,OAAO,CAAC,OAAO,CAAC;IAoBnB;;;OAGG;IAGG,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAyCjE;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE;QAEV,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;CACH"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js index 43e109b2..6182e847 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js @@ -84,10 +84,11 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres }); import { getQueryHandlerAndSelector } from '../common/GetQueryHandler.js'; import { LazyArg } from '../common/LazyArg.js'; -import { isString, withSourcePuppeteerURLIfNone } from '../common/util.js'; +import { debugError, isString, withSourcePuppeteerURLIfNone, } from '../common/util.js'; import { assert } from '../util/assert.js'; import { AsyncIterableUtil } from '../util/AsyncIterableUtil.js'; import { throwIfDisposed } from '../util/decorators.js'; +import { AsyncDisposableStack } from '../util/disposable.js'; import { _isElementHandle } from './ElementHandleSymbol.js'; import { JSHandle } from './JSHandle.js'; /** @@ -1177,26 +1178,62 @@ let ElementHandle = (() => { return point; } async screenshot(options = {}) { - const { scrollIntoView = true } = options; - let clip = await this.#nonEmptyVisibleBoundingBox(); - const page = this.frame.page(); - if (scrollIntoView) { - await this.scrollIntoViewIfNeeded(); - // We measure again just in case. - clip = await this.#nonEmptyVisibleBoundingBox(); - } - const [pageLeft, pageTop] = await this.evaluate(() => { - if (!window.visualViewport) { - throw new Error('window.visualViewport is not supported.'); + const env_6 = { stack: [], error: void 0, hasError: false }; + try { + const { scrollIntoView = true } = options; + let clip = await this.#nonEmptyVisibleBoundingBox(); + const page = this.frame.page(); + // If the element is larger than the viewport, `captureBeyondViewport` will + // _not_ affect element rendering, so we need to adjust the viewport to + // properly render the element. + const viewport = page.viewport() ?? { + width: clip.width, + height: clip.height, + }; + const stack = __addDisposableResource(env_6, new AsyncDisposableStack(), true); + if (clip.width > viewport.width || clip.height > viewport.height) { + await this.frame.page().setViewport({ + ...viewport, + width: Math.max(viewport.width, Math.ceil(clip.width)), + height: Math.max(viewport.height, Math.ceil(clip.height)), + }); + stack.defer(async () => { + try { + await this.frame.page().setViewport(viewport); + } + catch (error) { + debugError(error); + } + }); } - return [ - window.visualViewport.pageLeft, - window.visualViewport.pageTop, - ]; - }); - clip.x += pageLeft; - clip.y += pageTop; - return await page.screenshot({ ...options, clip }); + // Only scroll the element into view if the user wants it. + if (scrollIntoView) { + await this.scrollIntoViewIfNeeded(); + // We measure again just in case. + clip = await this.#nonEmptyVisibleBoundingBox(); + } + const [pageLeft, pageTop] = await this.evaluate(() => { + if (!window.visualViewport) { + throw new Error('window.visualViewport is not supported.'); + } + return [ + window.visualViewport.pageLeft, + window.visualViewport.pageTop, + ]; + }); + clip.x += pageLeft; + clip.y += pageTop; + return await page.screenshot({ ...options, clip }); + } + catch (e_6) { + env_6.error = e_6; + env_6.hasError = true; + } + finally { + const result_1 = __disposeResources(env_6); + if (result_1) + await result_1; + } } async #nonEmptyVisibleBoundingBox() { const box = await this.boundingBox(); @@ -1242,12 +1279,12 @@ let ElementHandle = (() => { * (full intersection). Defaults to 1. */ async isIntersectingViewport(options = {}) { - const env_6 = { stack: [], error: void 0, hasError: false }; + const env_7 = { stack: [], error: void 0, hasError: false }; try { await this.assertConnectedElement(); // eslint-disable-next-line rulesdir/use-using -- Returns `this`. const handle = await this.#asSVGElementHandle(); - const target = __addDisposableResource(env_6, handle && (await handle.#getOwnerSVGElement()), false); + const target = __addDisposableResource(env_7, handle && (await handle.#getOwnerSVGElement()), false); return await (target ?? this).evaluate(async (element, threshold) => { const visibleRatio = await new Promise(resolve => { const observer = new IntersectionObserver(entries => { @@ -1259,12 +1296,12 @@ let ElementHandle = (() => { return threshold === 1 ? visibleRatio === 1 : visibleRatio > threshold; }, options.threshold ?? 0); } - catch (e_6) { - env_6.error = e_6; - env_6.hasError = true; + catch (e_7) { + env_7.error = e_7; + env_7.hasError = true; } finally { - __disposeResources(env_6); + __disposeResources(env_7); } } /** diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js.map index 2e66c076..6051ddd1 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js.map @@ -1 +1 @@ -{"version":3,"file":"ElementHandle.js","sourceRoot":"","sources":["../../../../src/api/ElementHandle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKH,OAAO,EAAC,0BAA0B,EAAC,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAS7C,OAAO,EAAC,QAAQ,EAAE,4BAA4B,EAAC,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAC,iBAAiB,EAAC,MAAM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IAAI,OAAO,YAAY,aAAa,EAAE,CAAC;oBACrC,OAAO,OAAO,CAAC;gBACjB,CAAC;gBACD,OAAO,OAAO,CAAC,eAAgB,CAAC;YAClC,CAAC,CAAC,CAAC;QACL,CAAC;;;SA91CmB,aAAa;AA04CnC,SAAS,oBAAoB,CAC3B,GAAgB,EAChB,KAAa,EACb,MAAc;IAEd,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAClB,GAAG,CAAC,CAAC,IAAI,CAAC;QACR,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC;QACpC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,EACtC,CAAC,CACF,CAAC;IACF,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CACnB,GAAG,CAAC,CAAC,IAAI,CAAC;QACR,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC;QACtC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,EACxC,CAAC,CACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.d.ts.map index 41f6ea2c..3fbed5f5 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Frame.d.ts","sourceRoot":"","sources":["../../../../src/api/Frame.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KA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OAoBG;IAEG,IAAI,CACR,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GACtC,OAAO,CAAC,IAAI,CAAC;IAMhB;;;;;;;;;;;;;;;;;;;OAmBG;IACG,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMzD;;OAEG;IAEG,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;IAM9B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CAAC,mBAAmB,CAC1B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,mBAAmB,CAAC;CAChC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js index b9d4d4ce..8a778e1c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js @@ -86,7 +86,7 @@ import { EventEmitter } from '../common/EventEmitter.js'; import { getQueryHandlerAndSelector } from '../common/GetQueryHandler.js'; import { transposeIterableHandle } from '../common/HandleIterator.js'; import { LazyArg } from '../common/LazyArg.js'; -import { getPageContent, importFSPromises, withSourcePuppeteerURLIfNone, } from '../common/util.js'; +import { importFSPromises, withSourcePuppeteerURLIfNone, } from '../common/util.js'; import { assert } from '../util/assert.js'; import { throwIfDisposed } from '../util/decorators.js'; import { FunctionLocator, NodeLocator, } from './locators/locators.js'; @@ -558,7 +558,20 @@ let Frame = (() => { * The full HTML contents of the frame, including the DOCTYPE. */ async content() { - return await this.evaluate(getPageContent); + return await this.evaluate(() => { + let content = ''; + for (const node of document.childNodes) { + switch (node) { + case document.documentElement: + content += document.documentElement.outerHTML; + break; + default: + content += new XMLSerializer().serializeToString(node); + break; + } + } + return content; + }); } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js.map index 86020545..13366375 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js.map @@ -1 +1 @@ -{"version":3,"file":"Frame.js","sourceRoot":"","sources":["../../../../src/api/Frame.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcH,OAAO,EAAC,YAAY,EAAiB,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAC,0BAA0B,EAAC,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAQ7C,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,4BAA4B,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAC;AAItD,OAAO,EACL,eAAe,EAEf,WAAW,GACZ,MAAM,wBAAwB,CAAC;AA4IhC;;;;;GAKG;AACH,2DAA2D;AAC3D,MAAM,KAAW,UAAU,CAW1B;AAXD,WAAiB,UAAU;IACZ,yBAAc,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;IAChD,uBAAY,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAC5C,yBAAc,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;IAChD,uCAA4B,GAAG,MAAM,CAChD,oCAAoC,CACrC,CAAC;IACW,wBAAa,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAC9C,mCAAwB,GAA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E,CAAC,CAAC;gBAC7D,MAAM,MAAM,CAAC,GAAG,EAAE,CAAC;;;;;;;;;SACpB;QAED;;;;;;;;;;;;;;;;;;;;WAoBG;QAEH,KAAK,CAAC,IAAI,CACR,QAAgB,EAChB,IAAY,EACZ,OAAuC;;;gBAEvC,MAAM,MAAM,kCAAG,MAAM,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAA,CAAC;gBACtC,MAAM,CAAC,MAAM,EAAE,kCAAkC,QAAQ,EAAE,CAAC,CAAC;gBAC7D,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;;;;;;;;;SAClC;QAED;;;;;;;;;;;;;;;;;;;WAmBG;QACH,KAAK,CAAC,cAAc,CAAC,YAAoB;YACvC,OAAO,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;gBACjC,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;YACpC,CAAC,CAAC,CAAC;QACL,CAAC;QAED;;WAEG;QAEH,KAAK,CAAC,KAAK;YACT,OAAO,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC,QAAQ,CAAC,GAAG,EAAE;gBAC9C,OAAO,QAAQ,CAAC,KAAK,CAAC;YACxB,CAAC,CAAC,CAAC;QACL,CAAC;;;SA75BmB,KAAK"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.d.ts index fbb70855..36b67cd7 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.d.ts @@ -10,19 +10,18 @@ import type { Protocol } from 'devtools-protocol'; import { type Observable } from '../../third_party/rxjs/rxjs.js'; import type { HTTPRequest } from '../api/HTTPRequest.js'; import type { HTTPResponse } from '../api/HTTPResponse.js'; -import type { BidiNetworkManager } from '../bidi/NetworkManager.js'; import type { Accessibility } from '../cdp/Accessibility.js'; import type { Coverage } from '../cdp/Coverage.js'; import type { DeviceRequestPrompt } from '../cdp/DeviceRequestPrompt.js'; -import type { NetworkManager as CdpNetworkManager, Credentials, NetworkConditions } from '../cdp/NetworkManager.js'; +import type { Credentials, NetworkConditions } from '../cdp/NetworkManager.js'; import type { Tracing } from '../cdp/Tracing.js'; import type { ConsoleMessage } from '../common/ConsoleMessage.js'; import type { Device } from '../common/Device.js'; import { EventEmitter, type EventsWithWildcard, type EventType } from '../common/EventEmitter.js'; import type { FileChooser } from '../common/FileChooser.js'; -import { type ParsedPDFOptions, type PDFOptions } from '../common/PDFOptions.js'; +import type { PDFOptions } from '../common/PDFOptions.js'; import { TimeoutSettings } from '../common/TimeoutSettings.js'; -import type { Awaitable, EvaluateFunc, EvaluateFuncWith, HandleFor, NodeFor } from '../common/types.js'; +import type { Awaitable, AwaitablePredicate, EvaluateFunc, EvaluateFuncWith, HandleFor, NodeFor } from '../common/types.js'; import type { Viewport } from '../common/Viewport.js'; import type { ScreenRecorder } from '../node/ScreenRecorder.js'; import { asyncDisposeSymbol, disposeSymbol } from '../util/disposable.js'; @@ -55,6 +54,23 @@ export interface Metrics { JSHeapUsedSize?: number; JSHeapTotalSize?: number; } +/** + * @public + */ +export interface WaitForNetworkIdleOptions extends WaitTimeoutOptions { + /** + * Time (in milliseconds) the network should be idle. + * + * @defaultValue `500` + */ + idleTime?: number; + /** + * Maximum number concurrent of network connections to be considered inactive. + * + * @defaultValue `0` + */ + concurrency?: number; +} /** * @public */ @@ -506,7 +522,7 @@ export declare abstract class Page extends EventEmitter { * * @deprecated We no longer support intercepting drag payloads. Use the new * drag APIs found on {@link ElementHandle} to drag (or just use the - * {@link Page.mouse}). + * {@link Page | Page.mouse}). */ abstract isDragInterceptionEnabled(): boolean; /** @@ -675,7 +691,7 @@ export declare abstract class Page extends EventEmitter { * * @deprecated We no longer support intercepting drag payloads. Use the new * drag APIs found on {@link ElementHandle} to drag (or just use the - * {@link Page.mouse}). + * {@link Page | Page.mouse}). */ abstract setDragInterception(enabled: boolean): Promise; /** @@ -1331,9 +1347,7 @@ export declare abstract class Page extends EventEmitter { * `0` to disable the timeout. The default value can be changed by using the * {@link Page.setDefaultTimeout} method. */ - abstract waitForRequest(urlOrPredicate: string | ((req: HTTPRequest) => boolean | Promise), options?: { - timeout?: number; - }): Promise; + waitForRequest(urlOrPredicate: string | AwaitablePredicate, options?: WaitTimeoutOptions): Promise; /** * @param urlOrPredicate - A URL or predicate to wait for. * @param options - Optional waiting parameters @@ -1361,21 +1375,18 @@ export declare abstract class Page extends EventEmitter { * pass `0` to disable the timeout. The default value can be changed by using * the {@link Page.setDefaultTimeout} method. */ - abstract waitForResponse(urlOrPredicate: string | ((res: HTTPResponse) => boolean | Promise), options?: { - timeout?: number; - }): Promise; + waitForResponse(urlOrPredicate: string | AwaitablePredicate, options?: WaitTimeoutOptions): Promise; /** - * @param options - Optional waiting parameters - * @returns Promise which resolves when network is idle + * Waits for the network to be idle. + * + * @param options - Options to configure waiting behavior. + * @returns A promise which resolves once the network is idle. */ - abstract waitForNetworkIdle(options?: { - idleTime?: number; - timeout?: number; - }): Promise; + waitForNetworkIdle(options?: WaitForNetworkIdleOptions): Promise; /** * @internal */ - _waitForNetworkIdle(networkManager: BidiNetworkManager | CdpNetworkManager, idleTime: number, requestsInFlight?: number): Observable; + waitForNetworkIdle$(options?: WaitForNetworkIdleOptions): Observable; /** * Waits for a frame matching the given conditions to appear. * @@ -1675,7 +1686,7 @@ export declare abstract class Page extends EventEmitter { * * This is either the viewport set with the previous {@link Page.setViewport} * call or the default viewport set via - * {@link BrowserConnectOptions.defaultViewport}. + * {@link BrowserConnectOptions | BrowserConnectOptions.defaultViewport}. */ abstract viewport(): Viewport | null; /** @@ -1838,10 +1849,6 @@ export declare abstract class Page extends EventEmitter { * @internal */ abstract _screenshot(options: Readonly): Promise; - /** - * @internal - */ - _getPDFOptions(options?: PDFOptions, lengthUnit?: 'in' | 'cm'): ParsedPDFOptions; /** * Generates a PDF of the page with the `print` CSS media type. * @@ -2229,13 +2236,4 @@ export declare abstract class Page extends EventEmitter { * @internal */ export declare const supportedMetrics: Set; -/** - * @internal - */ -export declare const unitToPixels: { - px: number; - in: number; - cm: number; - mm: number; -}; //# sourceMappingURL=Page.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.d.ts.map index adf46451..b4639c88 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../../src/api/Page.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAErC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAcL,KAAK,UAAU,EAChB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EACV,cAAc,IAAI,iBAAiB,EACnC,WAAW,EACX,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,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;;;;;;;;;;;;OAyDG;IACH,eAAe,CACb,MAAM,SAAS,OAAO,EAAE,EACxB,IAAI,SAAS,YAAY,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,EAExD,YAAY,EAAE,IAAI,GAAG,MAAM,EAC3B,OAAO,CAAC,EAAE,2BAA2B,EACrC,GAAG,IAAI,EAAE,MAAM,GACd,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAIhD;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,mBAAmB,CAC1B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,mBAAmB,CAAC;IAE/B,gBAAgB;IAChB,CAAC,aAAa,CAAC,IAAI,IAAI;IAIvB,gBAAgB;IAChB,CAAC,kBAAkB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;CAGtC;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,aAc3B,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js index 7c83aa59..57407229 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js @@ -82,14 +82,11 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres var e = new Error(message); return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; }); -import { delay, filter, filterAsync, first, firstValueFrom, from, fromEvent, map, merge, of, raceWith, startWith, switchMap, } from '../../third_party/rxjs/rxjs.js'; +import { concat, EMPTY, filter, filterAsync, first, firstValueFrom, from, map, merge, mergeMap, mergeScan, of, raceWith, ReplaySubject, startWith, switchMap, take, takeUntil, timer, } from '../../third_party/rxjs/rxjs.js'; import { TargetCloseError } from '../common/Errors.js'; import { EventEmitter, } from '../common/EventEmitter.js'; -import { NetworkManagerEvent } from '../common/NetworkManagerEvents.js'; -import { paperFormats, } from '../common/PDFOptions.js'; import { TimeoutSettings } from '../common/TimeoutSettings.js'; -import { debugError, importFSPromises, isNumber, isString, timeout, withSourcePuppeteerURLIfNone, } from '../common/util.js'; -import { assert } from '../util/assert.js'; +import { debugError, fromEmitterEvent, importFSPromises, isString, NETWORK_IDLE_TIME, timeout, withSourcePuppeteerURLIfNone, } from '../common/util.js'; import { guarded } from '../util/decorators.js'; import { AsyncDisposableStack, asyncDisposeSymbol, DisposableStack, disposeSymbol, } from '../util/disposable.js'; import { FunctionLocator, Locator, NodeLocator, } from './locators/locators.js'; @@ -173,11 +170,25 @@ let Page = (() => { */ _timeoutSettings = new TimeoutSettings(); #requestHandlers = new WeakMap(); + #inflight$ = new ReplaySubject(1); /** * @internal */ constructor() { super(); + fromEmitterEvent(this, "request" /* PageEvent.Request */) + .pipe(mergeMap(originalRequest => { + return concat(of(1), merge(fromEmitterEvent(this, "requestfailed" /* PageEvent.RequestFailed */), fromEmitterEvent(this, "requestfinished" /* PageEvent.RequestFinished */), fromEmitterEvent(this, "response" /* PageEvent.Response */).pipe(map(response => { + return response.request(); + }))).pipe(filter(request => { + return request._requestId === originalRequest._requestId; + }), take(1), map(() => { + return -1; + }))); + }), mergeScan((acc, addend) => { + return of(acc + addend); + }, 0), takeUntil(fromEmitterEvent(this, "close" /* PageEvent.Close */)), startWith(0)) + .subscribe(this.#inflight$); } /** * Listen to page events. @@ -595,15 +606,104 @@ let Page = (() => { async waitForNavigation(options = {}) { return await this.mainFrame().waitForNavigation(options); } + /** + * @param urlOrPredicate - A URL or predicate to wait for + * @param options - Optional waiting parameters + * @returns Promise which resolves to the matched request + * @example + * + * ```ts + * const firstRequest = await page.waitForRequest( + * 'https://example.com/resource' + * ); + * const finalRequest = await page.waitForRequest( + * request => request.url() === 'https://example.com' + * ); + * return finalRequest.response()?.ok(); + * ``` + * + * @remarks + * Optional Waiting Parameters have: + * + * - `timeout`: Maximum wait time in milliseconds, defaults to `30` seconds, pass + * `0` to disable the timeout. The default value can be changed by using the + * {@link Page.setDefaultTimeout} method. + */ + waitForRequest(urlOrPredicate, options = {}) { + const { timeout: ms = this._timeoutSettings.timeout() } = options; + if (typeof urlOrPredicate === 'string') { + const url = urlOrPredicate; + urlOrPredicate = (request) => { + return request.url() === url; + }; + } + const observable$ = fromEmitterEvent(this, "request" /* PageEvent.Request */).pipe(filterAsync(urlOrPredicate), raceWith(timeout(ms), fromEmitterEvent(this, "close" /* PageEvent.Close */).pipe(map(() => { + throw new TargetCloseError('Page closed!'); + })))); + return firstValueFrom(observable$); + } + /** + * @param urlOrPredicate - A URL or predicate to wait for. + * @param options - Optional waiting parameters + * @returns Promise which resolves to the matched response. + * @example + * + * ```ts + * const firstResponse = await page.waitForResponse( + * 'https://example.com/resource' + * ); + * const finalResponse = await page.waitForResponse( + * response => + * response.url() === 'https://example.com' && response.status() === 200 + * ); + * const finalResponse = await page.waitForResponse(async response => { + * return (await response.text()).includes(''); + * }); + * return finalResponse.ok(); + * ``` + * + * @remarks + * Optional Parameter have: + * + * - `timeout`: Maximum wait time in milliseconds, defaults to `30` seconds, + * pass `0` to disable the timeout. The default value can be changed by using + * the {@link Page.setDefaultTimeout} method. + */ + waitForResponse(urlOrPredicate, options = {}) { + const { timeout: ms = this._timeoutSettings.timeout() } = options; + if (typeof urlOrPredicate === 'string') { + const url = urlOrPredicate; + urlOrPredicate = (response) => { + return response.url() === url; + }; + } + const observable$ = fromEmitterEvent(this, "response" /* PageEvent.Response */).pipe(filterAsync(urlOrPredicate), raceWith(timeout(ms), fromEmitterEvent(this, "close" /* PageEvent.Close */).pipe(map(() => { + throw new TargetCloseError('Page closed!'); + })))); + return firstValueFrom(observable$); + } + /** + * Waits for the network to be idle. + * + * @param options - Options to configure waiting behavior. + * @returns A promise which resolves once the network is idle. + */ + waitForNetworkIdle(options = {}) { + return firstValueFrom(this.waitForNetworkIdle$(options)); + } /** * @internal */ - _waitForNetworkIdle(networkManager, idleTime, requestsInFlight = 0) { - return merge(fromEvent(networkManager, NetworkManagerEvent.Request), fromEvent(networkManager, NetworkManagerEvent.Response), fromEvent(networkManager, NetworkManagerEvent.RequestFailed)).pipe(startWith(undefined), filter(() => { - return networkManager.inFlightRequestsCount() <= requestsInFlight; - }), switchMap(v => { - return of(v).pipe(delay(idleTime)); - })); + waitForNetworkIdle$(options = {}) { + const { timeout: ms = this._timeoutSettings.timeout(), idleTime = NETWORK_IDLE_TIME, concurrency = 0, } = options; + return this.#inflight$.pipe(switchMap(inflight => { + if (inflight > concurrency) { + return EMPTY; + } + return timer(idleTime); + }), map(() => { }), raceWith(timeout(ms), fromEmitterEvent(this, "close" /* PageEvent.Close */).pipe(map(() => { + throw new TargetCloseError('Page closed!'); + })))); } /** * Waits for a frame matching the given conditions to appear. @@ -623,7 +723,7 @@ let Page = (() => { return urlOrPredicate === frame.url(); }; } - return await firstValueFrom(merge(fromEvent(this, "frameattached" /* PageEvent.FrameAttached */), fromEvent(this, "framenavigated" /* PageEvent.FrameNavigated */), from(this.frames())).pipe(filterAsync(urlOrPredicate), first(), raceWith(timeout(ms), fromEvent(this, "close" /* PageEvent.Close */).pipe(map(() => { + return await firstValueFrom(merge(fromEmitterEvent(this, "frameattached" /* PageEvent.FrameAttached */), fromEmitterEvent(this, "framenavigated" /* PageEvent.FrameNavigated */), from(this.frames())).pipe(filterAsync(urlOrPredicate), first(), raceWith(timeout(ms), fromEmitterEvent(this, "close" /* PageEvent.Close */).pipe(map(() => { throw new TargetCloseError('Page closed.'); }))))); } @@ -995,50 +1095,6 @@ let Page = (() => { await result_1; } } - /** - * @internal - */ - _getPDFOptions(options = {}, lengthUnit = 'in') { - const defaults = { - scale: 1, - displayHeaderFooter: false, - headerTemplate: '', - footerTemplate: '', - printBackground: false, - landscape: false, - pageRanges: '', - preferCSSPageSize: false, - omitBackground: false, - timeout: 30000, - tagged: false, - }; - let width = 8.5; - let height = 11; - if (options.format) { - const format = paperFormats[options.format.toLowerCase()]; - assert(format, 'Unknown paper format: ' + options.format); - width = format.width; - height = format.height; - } - else { - width = convertPrintParameterToInches(options.width, lengthUnit) ?? width; - height = - convertPrintParameterToInches(options.height, lengthUnit) ?? height; - } - const margin = { - top: convertPrintParameterToInches(options.margin?.top, lengthUnit) || 0, - left: convertPrintParameterToInches(options.margin?.left, lengthUnit) || 0, - bottom: convertPrintParameterToInches(options.margin?.bottom, lengthUnit) || 0, - right: convertPrintParameterToInches(options.margin?.right, lengthUnit) || 0, - }; - return { - ...defaults, - ...options, - width, - height, - margin, - }; - } /** * The page's title * @@ -1413,46 +1469,6 @@ export const supportedMetrics = new Set([ 'JSHeapUsedSize', 'JSHeapTotalSize', ]); -/** - * @internal - */ -export const unitToPixels = { - px: 1, - in: 96, - cm: 37.8, - mm: 3.78, -}; -function convertPrintParameterToInches(parameter, lengthUnit = 'in') { - if (typeof parameter === 'undefined') { - return undefined; - } - let pixels; - if (isNumber(parameter)) { - // Treat numbers as pixel values to be aligned with phantom's paperSize. - pixels = parameter; - } - else if (isString(parameter)) { - const text = parameter; - let unit = text.substring(text.length - 2).toLowerCase(); - let valueText = ''; - if (unit in unitToPixels) { - valueText = text.substring(0, text.length - 2); - } - else { - // In case of unknown unit try to parse the whole parameter as number of pixels. - // This is consistent with phantom's paperSize behavior. - unit = 'px'; - valueText = text; - } - const value = Number(valueText); - assert(!isNaN(value), 'Failed to parse parameter value: ' + text); - pixels = value * unitToPixels[unit]; - } - else { - throw new Error('page.pdf() Cannot handle parameter type: ' + typeof parameter); - } - return pixels / unitToPixels[lengthUnit]; -} /** @see https://w3c.github.io/webdriver-bidi/#normalize-rect */ function normalizeRectangle(clip) { return { diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js.map index 2f043b0c..f086a062 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js.map @@ -1 +1 @@ -{"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../../src/api/Page.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMH,OAAO,EACL,KAAK,EACL,MAAM,EACN,WAAW,EACX,KAAK,EACL,cAAc,EACd,IAAI,EACJ,SAAS,EACT,GAAG,EACH,KAAK,EACL,EAAE,EACF,QAAQ,EACR,SAAS,EACT,SAAS,GAEV,MAAM,gCAAgC,CAAC;AAexC,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EACL,YAAY,GAIb,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAC,mBAAmB,EAAC,MAAM,mCAAmC,CAAC;AACtE,OAAO,EACL,YAAY,GAIb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAQ7D,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,4BAA4B,GAC7B,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,aAAa,GACd,MAAM,uBAAuB,CAAC;AA0B/B,OAAO,EACL,eAAe,EACf,OAAO,EACP,WAAW,GAEZ,MAAM,wBAAwB,CAAC;AAyZhC;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,OAA0B;IACpE,OAAO,CAAC,gBAAgB,KAAK,KAAK,CAAC;IACnC,OAAO,CAAC,IAAI,KAAK,KAAK,CAAC;IACvB,OAAO,CAAC,WAAW,KAAK,IAAI,CAAC;IAC7B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AAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAClD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACpD,OAAO,EAAC,GAAG,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAC,CAAC;AACxC,CAAC"} \ No newline at end of file +{"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../../src/api/Page.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMH,OAAO,EACL,MAAM,EACN,KAAK,EACL,MAAM,EACN,WAAW,EACX,KAAK,EACL,cAAc,EACd,IAAI,EACJ,GAAG,EACH,KAAK,EACL,QAAQ,EACR,SAAS,EACT,EAAE,EACF,QAAQ,EACR,aAAa,EACb,SAAS,EACT,SAAS,EACT,IAAI,EACJ,SAAS,EACT,KAAK,GAEN,MAAM,gCAAgC,CAAC;AAUxC,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EACL,YAAY,GAIb,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAS7D,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACP,4BAA4B,GAC7B,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,aAAa,GACd,MAAM,uBAAuB,CAAC;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 No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js index cbc3cb67..4c3ccaeb 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js @@ -43,7 +43,7 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres var e = new Error(message); return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; }); -import { mergeMap, from, EMPTY, defer, filter, first, identity, ignoreElements, retry, throwIfEmpty, race, catchError, defaultIfEmpty, firstValueFrom, fromEvent, map, merge, noop, pipe, raceWith, tap, } from '../../../third_party/rxjs/rxjs.js'; +import { EMPTY, catchError, defaultIfEmpty, defer, filter, first, firstValueFrom, from, fromEvent, identity, ignoreElements, map, merge, mergeMap, noop, pipe, race, raceWith, retry, tap, throwIfEmpty, } from '../../../third_party/rxjs/rxjs.js'; import { EventEmitter } from '../../common/EventEmitter.js'; import { debugError, timeout } from '../../common/util.js'; /** diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js.map index 24a4f87c..0ee927c1 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js.map @@ -1 +1 @@ -{"version":3,"file":"locators.js","sourceRoot":"","sources":["../../../../../src/api/locators/locators.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,KAAK,EACL,MAAM,EACN,KAAK,EACL,QAAQ,EACR,cAAc,EACd,KAAK,EACL,YAAY,EACZ,IAAI,EACJ,UAAU,EACV,cAAc,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O,IAAI,QAAQ,EAAE,CAAC;QAC/B,IAAI,CAAC,CAAC,OAAO,YAAY,OAAO,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;QACxD,CAAC;IACH,CAAC;IACD,OAAO,QAA6D,CAAC;AACvE,CAAC;AACD;;GAEG;AACH,MAAM,OAAO,WAAe,SAAQ,OAAU;IAC5C,MAAM,CAAC,MAAM,CACX,QAAW;QAEX,MAAM,KAAK,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC1C,OAAO,IAAI,WAAW,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,SAAS,CAA4B;IAErC,YAAY,QAAmC;QAC7C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAEQ,MAAM;QACb,OAAO,IAAI,WAAW,CACpB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YAC3B,OAAO,OAAO,CAAC,KAAK,EAAE,CAAC;QACzB,CAAC,CAAC,CACH,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEQ,KAAK,CAAC,OAAiC;QAC9C,OAAO,IAAI,CACT,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YAC9B,OAAO,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAChC,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;CACF;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAC"} \ No newline at end of file +{"version":3,"file":"locators.js","sourceRoot":"","sources":["../../../../../src/api/locators/locators.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,OAAO,EACL,KAAK,EACL,UAAU,EACV,cAAc,EACd,KAAK,EACL,MAAM,EACN,KAAK,EACL,cAAc,E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,CAAC;CACF;AAMD,SAAS,iBAAiB,CACxB,QAAW;IAEX,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,IAAI,CAAC,CAAC,OAAO,YAAY,OAAO,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;QACxD,CAAC;IACH,CAAC;IACD,OAAO,QAA6D,CAAC;AACvE,CAAC;AACD;;GAEG;AACH,MAAM,OAAO,WAAe,SAAQ,OAAU;IAC5C,MAAM,CAAC,MAAM,CACX,QAAW;QAEX,MAAM,KAAK,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC1C,OAAO,IAAI,WAAW,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,SAAS,CAA4B;IAErC,YAAY,QAAmC;QAC7C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAEQ,MAAM;QACb,OAAO,IAAI,WAAW,CACpB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YAC3B,OAAO,OAAO,CAAC,KAAK,EAAE,CAAC;QACzB,CAAC,CAAC,CACH,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEQ,KAAK,CAAC,OAAiC;QAC9C,OAAO,IAAI,CACT,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YAC9B,OAAO,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAChC,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;CACF;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BidiOverCdp.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BidiOverCdp.js.map index e24ccc84..d5ddfb74 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BidiOverCdp.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BidiOverCdp.js.map @@ -1 +1 @@ -{"version":3,"file":"BidiOverCdp.js","sourceRoot":"","sources":["../../../../src/bidi/BidiOverCdp.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,UAAU,MAAM,gDAAgD,CAAC;AAM7E,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAGrD,OAAO,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;AAE/C,MAAM,gBAAgB,GAAG,CAAC,MAAc,EAAE,GAAG,IAAe,EAAQ,EAAE;IACpE,KAAK,CAAC,QAAQ,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,GAAkB;AAClB,uEAAuE;AACvE,sDAAsD;AACtD,OAAuC;IAEvC,MAAM,aAAa,GAAG,IAAI,aAAa,EAAE,CAAC;IAC1C,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAC3D,MAAM,aAAa,GAAG;QACpB,IAAI,CAAC,OAAe;YAClB,4EAA4E;YAC5E,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QACjD,CAAC;QACD,KAAK;YACH,UAAU,CAAC,KAAK,EAAE,CAAC;YACnB,oBAAoB,CAAC,KAAK,EAAE,CAAC;YAC7B,GAAG,CAAC,OAAO,EAAE,CAAC;QAChB,CAAC;QACD,SAAS,CAAC,QAAgB;YACxB,8CAA8C;QAChD,CAAC;KACF,CAAC;IACF,aAAa,CAAC,EAAE,CAAC,cAAc,EAAE,CAAC,OAAe,EAAE,EAAE;QACnD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AI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAED,YAAY,CACV,SAAuE;QAEvE,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAAkC;QAClD,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,KAAK;QACH,IAAI,CAAC,UAAU,GAAG,KAAK,EAAE,EAA6B,EAAiB,EAAE;YACvE,OAAO;QACT,CAAC,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.d.ts index acba2478..cb759b02 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.d.ts @@ -6,7 +6,7 @@ /// import type { ChildProcess } from 'child_process'; import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; -import { Browser, type BrowserCloseCallback, type BrowserContextOptions } from '../api/Browser.js'; +import { Browser, type BrowserCloseCallback, type BrowserContextOptions, type DebugInfo } from '../api/Browser.js'; import type { Page } from '../api/Page.js'; import type { Target } from '../api/Target.js'; import type { Viewport } from '../common/Viewport.js'; @@ -32,10 +32,7 @@ export declare class BidiBrowser extends Browser { static readonly subscribeModules: string[]; static readonly subscribeCdpEvents: Bidi.Cdp.EventNames[]; static create(opts: BidiBrowserOptions): Promise; - constructor(opts: BidiBrowserOptions & { - browserName: string; - browserVersion: string; - }); + private constructor(); userAgent(): never; get connection(): BidiConnection; wsEndpoint(): string; @@ -45,12 +42,12 @@ export declare class BidiBrowser extends Browser { createIncognitoBrowserContext(_options?: BrowserContextOptions): Promise; version(): Promise; browserContexts(): BidiBrowserContext[]; - _closeContext(browserContext: BidiBrowserContext): Promise; defaultBrowserContext(): BidiBrowserContext; newPage(): Promise; targets(): Target[]; _getTargetById(id: string): BidiTarget; target(): Target; disconnect(): Promise; + get debugInfo(): DebugInfo; } //# sourceMappingURL=Browser.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.d.ts.map index 6d5ab5b5..3ad6dfda 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Browser.d.ts","sourceRoot":"","sources":["../../../../src/bidi/Browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EACL,OAAO,EAEP,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAI7C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EAAC,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAIL,KAAK,UAAU,EAChB,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,UAAU,EAAE,cAAc,CAAC;IAC3B,eAAe,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC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Aa,SAAS,IAAI,OAAO,CAEhC;IAEQ,OAAO,IAAI,YAAY,GAAG,IAAI;IAIxB,6BAA6B,CAC1C,QAAQ,CAAC,EAAE,qBAAqB,GAC/B,OAAO,CAAC,kBAAkB,CAAC;IAKf,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;IAIhC,eAAe,IAAI,kBAAkB,EAAE;IAMvC,qBAAqB,IAAI,kBAAkB;IAI3C,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB,OAAO,IAAI,MAAM,EAAE;IAI5B,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU;IAQ7B,MAAM,IAAI,MAAM;IAIV,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAW1C,IAAa,SAAS,IAAI,SAAS,CAIlC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.js index 3beb809a..8967f9e1 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.js @@ -8,6 +8,7 @@ import { UnsupportedOperation } from '../common/Errors.js'; import { debugError } from '../common/util.js'; import { BidiBrowserContext } from './BrowserContext.js'; import { BrowsingContext, BrowsingContextEvent } from './BrowsingContext.js'; +import { Session } from './core/Session.js'; import { BiDiBrowserTarget, BiDiBrowsingContextTarget, BiDiPageTarget, } from './Target.js'; /** * @internal @@ -34,46 +35,26 @@ export class BidiBrowser extends Browser { 'cdp.Page.screencastFrame', ]; static async create(opts) { - let browserName = ''; - let browserVersion = ''; - // TODO: await until the connection is established. - try { - const { result } = await opts.connection.send('session.new', { - capabilities: { - alwaysMatch: { - acceptInsecureCerts: opts.ignoreHTTPSErrors, - }, - }, - }); - browserName = result.capabilities.browserName ?? ''; - browserVersion = result.capabilities.browserVersion ?? ''; - } - catch (err) { - // Chrome does not support session.new. - debugError(err); - } - await opts.connection.send('session.subscribe', { - events: browserName.toLocaleLowerCase().includes('firefox') - ? BidiBrowser.subscribeModules - : [...BidiBrowser.subscribeModules, ...BidiBrowser.subscribeCdpEvents], - }); - const browser = new BidiBrowser({ - ...opts, - browserName, - browserVersion, + const session = await Session.from(opts.connection, { + alwaysMatch: { + acceptInsecureCerts: opts.ignoreHTTPSErrors, + webSocketUrl: true, + }, }); + await session.subscribe(session.capabilities.browserName.toLocaleLowerCase().includes('firefox') + ? BidiBrowser.subscribeModules + : [...BidiBrowser.subscribeModules, ...BidiBrowser.subscribeCdpEvents]); + const browser = new BidiBrowser(session.browser, opts); + browser.#initialize(); await browser.#getTree(); return browser; } - #browserName = ''; - #browserVersion = ''; #process; #closeCallback; - #connection; + #browserCore; #defaultViewport; - #defaultContext; #targets = new Map(); - #contexts = []; + #browserContexts = new WeakMap(); #browserTarget; #connectionEventHandlers = new Map([ ['browsingContext.contextCreated', this.#onContextCreated.bind(this)], @@ -82,35 +63,50 @@ export class BidiBrowser extends Browser { ['browsingContext.fragmentNavigated', this.#onContextNavigation.bind(this)], ['browsingContext.navigationStarted', this.#onContextNavigation.bind(this)], ]); - constructor(opts) { + constructor(browserCore, opts) { super(); this.#process = opts.process; this.#closeCallback = opts.closeCallback; - this.#connection = opts.connection; + this.#browserCore = browserCore; this.#defaultViewport = opts.defaultViewport; - this.#browserName = opts.browserName; - this.#browserVersion = opts.browserVersion; - this.#process?.once('close', () => { - this.#connection.dispose(); + this.#browserTarget = new BiDiBrowserTarget(this); + for (const context of this.#browserCore.userContexts) { + this.#createBrowserContext(context); + } + } + #initialize() { + this.#browserCore.once('disconnected', () => { this.emit("disconnected" /* BrowserEvent.Disconnected */, undefined); }); - this.#defaultContext = new BidiBrowserContext(this, { - defaultViewport: this.#defaultViewport, - isDefault: true, + this.#process?.once('close', () => { + this.#browserCore.dispose('Browser process exited.', true); + this.connection.dispose(); }); - this.#browserTarget = new BiDiBrowserTarget(this.#defaultContext); - this.#contexts.push(this.#defaultContext); for (const [eventName, handler] of this.#connectionEventHandlers) { - this.#connection.on(eventName, handler); + this.connection.on(eventName, handler); } } + get #browserName() { + return this.#browserCore.session.capabilities.browserName; + } + get #browserVersion() { + return this.#browserCore.session.capabilities.browserVersion; + } userAgent() { throw new UnsupportedOperation(); } + #createBrowserContext(userContext) { + const browserContext = new BidiBrowserContext(this, userContext, { + defaultViewport: this.#defaultViewport, + }); + this.#browserContexts.set(userContext, browserContext); + return browserContext; + } #onContextDomLoaded(event) { const target = this.#targets.get(event.context); if (target) { this.emit("targetchanged" /* BrowserEvent.TargetChanged */, target); + target.browserContext().emit("targetchanged" /* BrowserContextEvent.TargetChanged */, target); } } #onContextNavigation(event) { @@ -121,12 +117,13 @@ export class BidiBrowser extends Browser { } } #onContextCreated(event) { - const context = new BrowsingContext(this.#connection, event, this.#browserName); - this.#connection.registerBrowsingContexts(context); - // TODO: once more browsing context types are supported, this should be - // updated to support those. Currently, all top-level contexts are treated - // as pages. - const browserContext = this.browserContexts().at(-1); + const context = new BrowsingContext(this.connection, event, this.#browserName); + this.connection.registerBrowsingContexts(context); + const browserContext = event.userContext === 'default' + ? this.defaultBrowserContext() + : this.browserContexts().find(browserContext => { + return browserContext.id === event.userContext; + }); if (!browserContext) { throw new Error('Missing browser contexts'); } @@ -137,19 +134,19 @@ export class BidiBrowser extends Browser { this.emit("targetcreated" /* BrowserEvent.TargetCreated */, target); target.browserContext().emit("targetcreated" /* BrowserContextEvent.TargetCreated */, target); if (context.parent) { - const topLevel = this.#connection.getTopLevelContext(context.parent); + const topLevel = this.connection.getTopLevelContext(context.parent); topLevel.emit(BrowsingContextEvent.Created, context); } } async #getTree() { - const { result } = await this.#connection.send('browsingContext.getTree', {}); + const { result } = await this.connection.send('browsingContext.getTree', {}); for (const context of result.contexts) { this.#onContextCreated(context); } } async #onContextDestroyed(event) { - const context = this.#connection.getBrowsingContext(event.context); - const topLevelContext = this.#connection.getTopLevelContext(event.context); + const context = this.connection.getBrowsingContext(event.context); + const topLevelContext = this.connection.getTopLevelContext(event.context); topLevelContext.emit(BrowsingContextEvent.Destroyed, context); const target = this.#targets.get(event.context); const page = await target?.page(); @@ -161,61 +158,54 @@ export class BidiBrowser extends Browser { } } get connection() { - return this.#connection; + // SAFETY: We only have one implementation. + return this.#browserCore.session.connection; } wsEndpoint() { - return this.#connection.url; + return this.connection.url; } async close() { for (const [eventName, handler] of this.#connectionEventHandlers) { - this.#connection.off(eventName, handler); + this.connection.off(eventName, handler); } - if (this.#connection.closed) { + if (this.connection.closed) { return; } - // `browser.close` can close connection before the response is received. - await this.#connection.send('browser.close', {}).catch(debugError); - await this.#closeCallback?.call(null); - this.#connection.dispose(); + try { + await this.#browserCore.close(); + await this.#closeCallback?.call(null); + } + catch (error) { + // Fail silently. + debugError(error); + } + finally { + this.connection.dispose(); + } } get connected() { - return !this.#connection.closed; + return !this.#browserCore.disposed; } process() { return this.#process ?? null; } async createIncognitoBrowserContext(_options) { - // TODO: implement incognito context https://github.com/w3c/webdriver-bidi/issues/289. - const context = new BidiBrowserContext(this, { - defaultViewport: this.#defaultViewport, - isDefault: false, - }); - this.#contexts.push(context); - return context; + const userContext = await this.#browserCore.createUserContext(); + return this.#createBrowserContext(userContext); } async version() { return `${this.#browserName}/${this.#browserVersion}`; } browserContexts() { - // TODO: implement incognito context https://github.com/w3c/webdriver-bidi/issues/289. - return this.#contexts; - } - async _closeContext(browserContext) { - this.#contexts = this.#contexts.filter(c => { - return c !== browserContext; + return [...this.#browserCore.userContexts].map(context => { + return this.#browserContexts.get(context); }); - for (const target of browserContext.targets()) { - const page = await target?.page(); - await page?.close().catch(error => { - debugError(error); - }); - } } defaultBrowserContext() { - return this.#defaultContext; + return this.#browserContexts.get(this.#browserCore.defaultUserContext); } newPage() { - return this.#defaultContext.newPage(); + return this.defaultBrowserContext().newPage(); } targets() { return [this.#browserTarget, ...Array.from(this.#targets.values())]; @@ -232,13 +222,20 @@ export class BidiBrowser extends Browser { } async disconnect() { try { - // Fail silently if the session cannot be ended. - await this.#connection.send('session.end', {}); + await this.#browserCore.session.end(); } - catch (e) { - debugError(e); + catch (error) { + // Fail silently. + debugError(error); } - this.#connection.dispose(); + finally { + this.connection.dispose(); + } + } + get debugInfo() { + return { + pendingProtocolErrors: this.connection.getPendingProtocolErrors(), + }; } } //# sourceMappingURL=Browser.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.js.map index d980875d..bbf53682 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.js.map @@ -1 +1 @@ -{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/bidi/Browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EACL,OAAO,GAIR,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAG7C,OAAO,EAAC,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAC,eAAe,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAE3E,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,cAAc,GAEf,MAAM,aAAa,CAAC;AAarB;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,OAAO;IAC7B,QAAQ,GAAG,eAAe,CAAC;IAEpC,iDAAiD;IACjD,MAAM,CAAU,gBAAgB,GAAa;QAC3C,iBAAiB;QACjB,SAAS;QACT,KAAK;QACL,QAAQ;KACT,CAAC;IACF,MAAM,CAAU,kBAAkB,GAA0B;QAC1D,WAAW;QACX,2BAA2B;QAC3B,yBAAyB;QACzB,sCAAsC;QACtC,UAAU;QACV,6BAA6B;QAC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BAAqB,EAAE,IAAI,CAAC,UAAU,CAAC,wBAAwB,EAAE;SAClE,CAAC;IACJ,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js index cb7010c4..76d4140b 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js @@ -4,7 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ import { Connection } from '../cdp/Connection.js'; -import { UnsupportedOperation } from '../common/Errors.js'; +import { ProtocolError, UnsupportedOperation } from '../common/Errors.js'; import { debugError, DEFAULT_VIEWPORT } from '../common/util.js'; /** * Users should never call this directly; it's called when calling `puppeteer.connect` @@ -52,7 +52,7 @@ async function getBiDiConnection(connectionTransport, url, options) { } } catch (e) { - if (!('name' in e && e.name === 'ProtocolError')) { + if (!(e instanceof ProtocolError)) { // Unexpected exception not related to BiDi / CDP. Rethrow. throw e; } diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js.map index 148ec104..49bf1af5 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js.map @@ -1 +1 @@ -{"version":3,"file":"BrowserConnector.js","sourceRoot":"","sources":["../../../../src/bidi/BrowserConnector.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAMhD,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;A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a,EAAE,KAAK,IAAI,EAAE;oBACxB,MAAM,kBAAkB,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;gBACvE,CAAC;aACF,CAAC;QACJ,CAAC;IACH,CAAC;IAAC,OAAO,CAAM,EAAE,CAAC;QAChB,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,eAAe,CAAC,EAAE,CAAC;YACjD,2DAA2D;YAC3D,MAAM,CAAC,CAAC;QACV,CAAC;IACH,CAAC;IACD,+CAA+C;IAC/C,kBAAkB,CAAC,MAAM,EAAE,CAAC;IAE5B,wDAAwD;IACxD,MAAM,aAAa,GAAG,IAAI,UAAU,CAClC,GAAG,EACH,mBAAmB,EACnB,MAAM,EACN,eAAe,CAChB,CAAC;IAEF,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAC/D,IAAI,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,oBAAoB,CAC5B,iDAAiD,CAClD,CAAC;IACJ,CAAC;IAED,+BAA+B;IAC/B,MAAM,qBAAqB,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,aAAa,EAAE;QACzE,mBAAmB,EAAE,iBAAiB;KACvC,CAAC,CAAC;IACH,OAAO;QACL,cAAc,EAAE,qBAAqB;QACrC,aAAa,EAAE,KAAK,IAAI,EAAE;YACxB,8DAA8D;YAC9D,MAAM,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC9D,CAAC;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"BrowserConnector.js","sourceRoot":"","sources":["../../../../src/bidi/BrowserConnector.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAC,UAAU,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file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.d.ts index 7ac08582..62f292b6 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.d.ts @@ -10,20 +10,20 @@ import type { Target } from '../api/Target.js'; import type { Viewport } from '../common/Viewport.js'; import type { BidiBrowser } from './Browser.js'; import type { BidiConnection } from './Connection.js'; +import { UserContext } from './core/UserContext.js'; import type { BidiPage } from './Page.js'; /** * @internal */ export interface BidiBrowserContextOptions { defaultViewport: Viewport | null; - isDefault: boolean; } /** * @internal */ export declare class BidiBrowserContext extends BrowserContext { #private; - constructor(browser: BidiBrowser, options: BidiBrowserContextOptions); + constructor(browser: BidiBrowser, userContext: UserContext, options: BidiBrowserContextOptions); targets(): Target[]; waitForTarget(predicate: (x: Target) => boolean | Promise, options?: WaitForTargetOptions): Promise; get connection(): BidiConnection; @@ -34,5 +34,6 @@ export declare class BidiBrowserContext extends BrowserContext { isIncognito(): boolean; overridePermissions(): never; clearPermissionOverrides(): never; + get id(): string | undefined; } //# sourceMappingURL=BrowserContext.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map index 53b44521..bc3de90b 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"BrowserContext.d.ts","sourceRoot":"","sources":["../../../../src/bidi/BrowserContext.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAC,oBAAoB,E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of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.js index d46aae0e..94922b20 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.js @@ -5,6 +5,8 @@ */ import { BrowserContext } from '../api/BrowserContext.js'; import { UnsupportedOperation } from '../common/Errors.js'; +import { debugError } from '../common/util.js'; +import { UserContext } from './core/UserContext.js'; /** * @internal */ @@ -12,13 +14,13 @@ export class BidiBrowserContext extends BrowserContext { #browser; #connection; #defaultViewport; - #isDefault = false; - constructor(browser, options) { + #userContext; + constructor(browser, userContext, options) { super(); this.#browser = browser; + this.#userContext = userContext; this.#connection = this.#browser.connection; this.#defaultViewport = options.defaultViewport; - this.#isDefault = options.isDefault; } targets() { return this.#browser.targets().filter(target => { @@ -36,6 +38,7 @@ export class BidiBrowserContext extends BrowserContext { async newPage() { const { result } = await this.#connection.send('browsingContext.create', { type: "tab" /* Bidi.BrowsingContext.CreateType.Tab */, + userContext: this.#userContext.id, }); const target = this.#browser._getTargetById(result.context); // TODO: once BiDi has some concept matching BrowserContext, the newly @@ -59,10 +62,15 @@ export class BidiBrowserContext extends BrowserContext { return page; } async close() { - if (this.#isDefault) { + if (!this.isIncognito()) { throw new Error('Default context cannot be closed!'); } - await this.#browser._closeContext(this); + try { + await this.#userContext.remove(); + } + catch (error) { + debugError(error); + } } browser() { return this.#browser; @@ -76,7 +84,7 @@ export class BidiBrowserContext extends BrowserContext { }); } isIncognito() { - return !this.#isDefault; + return this.#userContext.id !== UserContext.DEFAULT; } overridePermissions() { throw new UnsupportedOperation(); @@ -84,5 +92,11 @@ export class BidiBrowserContext extends BrowserContext { clearPermissionOverrides() { throw new UnsupportedOperation(); } + get id() { + if (this.#userContext.id === 'default') { + return undefined; + } + return this.#userContext.id; + } } //# sourceMappingURL=BrowserContext.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.js.map index 6f83696d..4abbd803 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.js.map @@ -1 +1 @@ -{"version":3,"file":"BrowserContext.js","sourceRoot":"","sources":["../../../../src/bidi/BrowserContext.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AAGxD,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AAezD;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IACpD,QAAQ,CAAc;IACtB,WAAW,CAAiB;IAC5B,gBAAgB,CAAkB;IAClC,UAAU,GAAG,KAAK,CAAC;IAEnB,YAAY,OAAoB,EAAE,OAAkC;QAClE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC;QAC5C,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;QAChD,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC;IACtC,CAAC;IAEQ,OAAO;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;YAC7C,OAAO,MAAM,CAAC,cAAc,EAAE,KAAK,IAAI,CAAC;QAC1C,CAAC,CAAC,CAAC;IACL,CAAC;IAEQ,aAAa,CACpB,SAAoD,EACpD,UAAgC,EAAE;QAElC,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE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CAAC;IAEQ,KAAK,CAAC,KAAK;QAClB,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAC/B,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;YAC1B,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;QAClB,CAAC,CAAC,CACH,CAAC;QACF,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAiB,EAAE;YACzC,OAAO,CAAC,KAAK,IAAI,CAAC;QACpB,CAAC,CAAC,CAAC;IACL,CAAC;IAEQ,WAAW;QAClB,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC;IAC1B,CAAC;IAEQ,mBAAmB;QAC1B,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAEQ,wBAAwB;QAC/B,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"BrowserContext.js","sourceRoot":"","sources":["../../../../src/bidi/BrowserContext.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AAGxD,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAK7C,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAUlD;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IACpD,QAAQ,CAAc;IACtB,WAAW,CAAiB;IAC5B,gBAAgB,CAAkB;IAClC,YAAY,CAAc;IAE1B,YACE,OAAoB,EACpB,WAAwB,EACxB,OAAkC;QAElC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,U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AAC;QACnB,CAAC;QACD,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;IAC9B,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.d.ts index a84e6615..d189ba8d 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.d.ts @@ -5,108 +5,14 @@ */ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; import type { ConnectionTransport } from '../common/ConnectionTransport.js'; +import type { EventsWithWildcard } from '../common/EventEmitter.js'; import { EventEmitter } from '../common/EventEmitter.js'; import { type BrowsingContext } from './BrowsingContext.js'; +import type { BidiEvents, Commands as BidiCommands, Connection } from './core/Connection.js'; /** * @internal */ -export interface Commands { - 'script.evaluate': { - params: Bidi.Script.EvaluateParameters; - returnType: Bidi.Script.EvaluateResult; - }; - 'script.callFunction': { - params: Bidi.Script.CallFunctionParameters; - returnType: Bidi.Script.EvaluateResult; - }; - 'script.disown': { - params: Bidi.Script.DisownParameters; - returnType: Bidi.EmptyResult; - }; - 'script.addPreloadScript': { - params: Bidi.Script.AddPreloadScriptParameters; - returnType: Bidi.Script.AddPreloadScriptResult; - }; - 'script.removePreloadScript': { - params: Bidi.Script.RemovePreloadScriptParameters; - returnType: Bidi.EmptyResult; - }; - 'browser.close': { - params: Bidi.EmptyParams; - returnType: Bidi.EmptyResult; - }; - 'browsingContext.activate': { - params: Bidi.BrowsingContext.ActivateParameters; - returnType: Bidi.EmptyResult; - }; - 'browsingContext.create': { - params: Bidi.BrowsingContext.CreateParameters; - returnType: Bidi.BrowsingContext.CreateResult; - }; - 'browsingContext.close': { - params: Bidi.BrowsingContext.CloseParameters; - returnType: Bidi.EmptyResult; - }; - 'browsingContext.getTree': { - params: Bidi.BrowsingContext.GetTreeParameters; - returnType: Bidi.BrowsingContext.GetTreeResult; - }; - 'browsingContext.navigate': { - params: Bidi.BrowsingContext.NavigateParameters; - returnType: Bidi.BrowsingContext.NavigateResult; - }; - 'browsingContext.reload': { - params: Bidi.BrowsingContext.ReloadParameters; - returnType: Bidi.BrowsingContext.NavigateResult; - }; - 'browsingContext.print': { - params: Bidi.BrowsingContext.PrintParameters; - returnType: Bidi.BrowsingContext.PrintResult; - }; - 'browsingContext.captureScreenshot': { - params: Bidi.BrowsingContext.CaptureScreenshotParameters; - returnType: Bidi.BrowsingContext.CaptureScreenshotResult; - }; - 'browsingContext.handleUserPrompt': { - params: Bidi.BrowsingContext.HandleUserPromptParameters; - returnType: Bidi.EmptyResult; - }; - 'browsingContext.setViewport': { - params: Bidi.BrowsingContext.SetViewportParameters; - returnType: Bidi.EmptyResult; - }; - 'browsingContext.traverseHistory': { - params: Bidi.BrowsingContext.TraverseHistoryParameters; - returnType: Bidi.EmptyResult; - }; - 'input.performActions': { - params: Bidi.Input.PerformActionsParameters; - returnType: Bidi.EmptyResult; - }; - 'input.releaseActions': { - params: Bidi.Input.ReleaseActionsParameters; - returnType: Bidi.EmptyResult; - }; - 'session.end': { - params: Bidi.EmptyParams; - returnType: Bidi.EmptyResult; - }; - 'session.new': { - params: Bidi.Session.NewParameters; - returnType: Bidi.Session.NewResult; - }; - 'session.status': { - params: object; - returnType: Bidi.Session.StatusResult; - }; - 'session.subscribe': { - params: Bidi.Session.SubscriptionRequest; - returnType: Bidi.EmptyResult; - }; - 'session.unsubscribe': { - params: Bidi.Session.SubscriptionRequest; - returnType: Bidi.EmptyResult; - }; +export interface Commands extends BidiCommands { 'cdp.sendCommand': { params: Bidi.Cdp.SendCommandParameters; returnType: Bidi.Cdp.SendCommandResult; @@ -119,19 +25,13 @@ export interface Commands { /** * @internal */ -export type BidiEvents = { - [K in Bidi.ChromiumBidi.Event['method']]: Extract['params']; -}; -/** - * @internal - */ -export declare class BidiConnection extends EventEmitter { +export declare class BidiConnection extends EventEmitter implements Connection { #private; constructor(url: string, transport: ConnectionTransport, delay?: number, timeout?: number); get closed(): boolean; get url(): string; + pipeTo(emitter: EventEmitter): void; + emit>(type: Key, event: EventsWithWildcard[Key]): boolean; send(method: T, params: Commands[T]['params']): Promise<{ result: Commands[T]['returnType']; }>; @@ -153,5 +53,6 @@ export declare class BidiConnection extends EventEmitter { * Unbinds the connection and closes the transport. */ dispose(): void; + getPendingProtocolErrors(): Error[]; } //# sourceMappingURL=Connection.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.d.ts.map index 7f9c2afb..db052e16 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Connection.d.ts","sourceRoot":"","sources":["../../../../src/bidi/Connection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAGxE,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;AAE1E,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAIvD,OAAO,EAAC,KAAK,eAAe,EAAc,MAAM,sBAAsB,CAAC;AAKvE;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,iBAAiB,EAAE;QACjB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC;QACvC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC;KACxC,CAAC;IACF,qBAAqB,EAAE;QACrB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC;QAC3C,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC;KACxC,CAAC;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AI,IAAI;IAad;;OAEG;IACH,OAAO,IAAI,IAAI;IAKf,wBAAwB,IAAI,KAAK,EAAE;CAGpC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.js index dce876b0..13640abb 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.js @@ -22,6 +22,7 @@ export class BidiConnection extends EventEmitter { #closed = false; #callbacks = new CallbackRegistry(); #browsingContexts = new Map(); + #emitters = []; constructor(url, transport, delay = 0, timeout) { super(); this.#url = url; @@ -37,6 +38,15 @@ export class BidiConnection extends EventEmitter { get url() { return this.#url; } + pipeTo(emitter) { + this.#emitters.push(emitter); + } + emit(type, event) { + for (const emitter of this.#emitters) { + emitter.emit(type, event); + } + return super.emit(type, event); + } send(method, params) { assert(!this.#closed, 'Protocol error: Connection closed.'); return this.#callbacks.create(method, this.#timeout, id => { @@ -154,6 +164,9 @@ export class BidiConnection extends EventEmitter { this.unbind(); this.#transport.close(); } + getPendingProtocolErrors() { + return this.#callbacks.getPendingProtocolErrors(); + } } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.js.map index f805ba87..63eb0fe1 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.js.map @@ -1 +1 @@ -{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../../src/bidi/Connection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAC,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AACz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C;QAC/C,IAAI,CAAC,UAAU,CAAC,SAAS,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QACrC,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QAEnC,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;QAC/B,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAC1B,CAAC;CACF;AAED;;GAEG;AACH,SAAS,mBAAmB,CAAC,MAA0B;IACrD,IAAI,OAAO,GAAG,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;IAClD,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;QACtB,OAAO,IAAI,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;IACrC,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,UAAU,CAAC,KAA8B;IAChD,OAAO,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC"} \ No newline at end of file +{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../../src/bidi/Connection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAC,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAEzC,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAC,WAAW,EAAuB,MAAM,sBAAsB,CAAC;AAOvE,MAAM,iBAAiB,GAAG,KAAK,CAAC,gCAAgC,CAAC,CA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;QACJ,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,OAAO;QACT,CAAC;QACD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,+CAA+C;QAC/C,IAAI,CAAC,UAAU,CAAC,SAAS,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QACrC,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QAEnC,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;QAC/B,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAC1B,CAAC;IAED,wBAAwB;QACtB,OAAO,IAAI,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC;IACpD,CAAC;CACF;AAED;;GAEG;AACH,SAAS,mBAAmB,CAAC,MAA0B;IACrD,IAAI,OAAO,GAAG,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;IAClD,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;QACtB,OAAO,IAAI,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;IACrC,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,UAAU,CAAC,KAA8B;IAChD,OAAO,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.d.ts index 3100a60d..7338aa3b 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.d.ts @@ -18,7 +18,7 @@ export declare class BidiDialog extends Dialog { /** * @internal */ - sendCommand(options: { + handle(options: { accept: boolean; text?: string; }): Promise; diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.d.ts.map index 7cdda384..b1ac6167 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/bidi/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAExC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAE1D;;GAEG;AACH,qBAAa,UAAW,SAAQ,MAAM;;IAGpC;;OAEG;gBAED,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,0BAA0B,CAAC,MAAM,CAAC,EAC7D,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,MAAM;IAMvB;;OAEG;IACY,WAAW,CAAC,OAAO,EAAE;QAClC,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,IAAI,CAAC;CAOlB"} \ No newline at end of file +{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/bidi/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAExC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAE1D;;GAEG;AACH,qBAAa,UAAW,SAAQ,MAAM;;IAGpC;;OAEG;gBAED,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,0BAA0B,CAAC,MAAM,CAAC,EAC7D,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,MAAM;IAMvB;;OAEG;IACY,MAAM,CAAC,OAAO,EAAE;QAC7B,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,IAAI,CAAC;CAOlB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.js index 78c642cc..ad2bcab6 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.js @@ -19,7 +19,7 @@ export class BidiDialog extends Dialog { /** * @internal */ - async sendCommand(options) { + async handle(options) { await this.#context.connection.send('browsingContext.handleUserPrompt', { context: this.#context.id, accept: options.accept, diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.js.map index 5755cd00..2cc42e85 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.js.map @@ -1 +1 @@ -{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/bidi/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAIxC;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,MAAM;IACpC,QAAQ,CAAkB;IAE1B;;OAEG;IACH,YACE,OAAwB,EACxB,IAA6D,EAC7D,OAAe,EACf,YAAqB;QAErB,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;IAED;;OAEG;IACM,KAAK,CAAC,WAAW,CAAC,OAG1B;QACC,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,kCAAkC,EAAE;YACtE,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE;YACzB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,QAAQ,EAAE,OAAO,CAAC,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/bidi/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAIxC;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,MAAM;IACpC,QAAQ,CAAkB;IAE1B;;OAEG;IACH,YACE,OAAwB,EACxB,IAA6D,EAC7D,OAAe,EACf,YAAqB;QAErB,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;IAED;;OAEG;IACM,KAAK,CAAC,MAAM,CAAC,OAGrB;QACC,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,kCAAkC,EAAE;YACtE,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE;YACzB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,QAAQ,EAAE,OAAO,CAAC,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.d.ts.map index d9c1b18d..19560840 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ExposedFunction.d.ts","sourceRoot":"","sources":["../../../../src/bidi/ExposedFunction.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAC,SAAS,EAAgB,MAAM,oBAAoB,CAAC;AAQjE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AAgB1C;;GAEG;AACH,qBAAa,kBAAkB,CAAC,IAAI,SAAS,OAAO,EAAE,EAAE,GAAG;;IAGzD,QAAQ,CAAC,IAAI,SAAC;gBAYZ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,GAAG,CAAC;IAapC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAkN7B,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI;IAIlB,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;CAO7C"} \ No newline at end of file +{"version":3,"file":"ExposedFunction.d.ts","sourceRoot":"","sources":["../../../../src/bidi/ExposedFunction.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAC,SAAS,EAAgB,MAAM,oBAAoB,CAAC;AAQjE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AAgB1C;;GAEG;AACH,qBAAa,kBAAkB,CAAC,IAAI,SAAS,OAAO,EAAE,EAAE,GAAG;;IAGzD,QAAQ,CAAC,IAAI,SAAC;gBAYZ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,GAAG,CAAC;IAapC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IA0N7B,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI;IAIlB,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;CAO7C"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js index 65d9f53a..b0965338 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js @@ -33,7 +33,6 @@ export class ExposeableFunction { async expose() { const connection = this.#connection; const channelArguments = this.#channelArguments; - const { name } = this; // TODO(jrandolf): Implement cleanup with removePreloadScript. connection.on(Bidi.ChromiumBidi.Script.EventNames.Message, this.#handleArgumentsMessage); connection.on(Bidi.ChromiumBidi.Script.EventNames.Message, this.#handleResolveMessage); @@ -50,7 +49,7 @@ export class ExposeableFunction { }); }, }); - }, { name: JSON.stringify(name) })); + }, { name: JSON.stringify(this.name) })); const { result } = await connection.send('script.addPreloadScript', { functionDeclaration, arguments: channelArguments, @@ -88,7 +87,9 @@ export class ExposeableFunction { BidiSerializer.serializeRemoteValue(result), ], awaitPromise: false, - target: params.source, + target: { + realm: params.source.realm, + }, }); } catch (error) { @@ -110,7 +111,9 @@ export class ExposeableFunction { BidiSerializer.serializeRemoteValue(error.stack), ], awaitPromise: false, - target: params.source, + target: { + realm: params.source.realm, + }, }); } else { @@ -123,7 +126,9 @@ export class ExposeableFunction { BidiSerializer.serializeRemoteValue(error), ], awaitPromise: false, - target: params.source, + target: { + realm: params.source.realm, + }, }); } } diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js.map index bfafcb27..7e031a71 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js.map @@ -1 +1 @@ -{"version":3,"file":"ExposedFunction.js","sourceRoot":"","sources":["../../../../src/bidi/ExposedFunction.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAGnE,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAC,mBAAmB,EAAE,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAG3E,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;AAe/C;;GAEG;AACH,MAAM,OAAO,kBAAkB;IACpB,MAAM,CAAC;IAEP,IAAI,CAAC;IACL,MAAM,CAAC;IAEP,SAAS,CAAC;IACV,YAAY,GAAG,IAAI,GAAG,EAG5B,CAAC;IAEJ,gBAAgB,CAA6B;IAE7C,YACE,KAAgB,EAChB,IAAY,EACZ,KAAwC;QAExC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,IAAI,CAAC,SAAS,GAAG;YACf,IAAI,EAAE,gBAAgB,IAAI,CAAC,MAAM,CAAC,GAAG,wBAAwB,IAAI,CAAC,IAAI,OAAO;YAC7E,OAAO,EAAE,gBAAgB,IAAI,CAAC,MAAM,CAAC,GAAG,wBAAwB,IAAI,CAAC,IAAI,UAAU;YACnF,MAAM,EAAE,gBAA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AAE,CAAC;YACvB,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;QAClD,CAAC;QAED,MAAM,QAAQ,GAAG,cAAc,CAAC,KAAK,CAAC;QACtC,IAAI,SAAS,GAAG,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,SAAS,GAAG;gBACV,OAAO,EAAE,IAAI,QAAQ,EAAE;gBACvB,MAAM,EAAE,IAAI,QAAQ,EAAE;aACvB,CAAC;YACF,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,EAAC,SAAS,EAAE,WAAW,EAAE,IAAI,EAAC,CAAC;IACxC,CAAC;IAED,CAAC,MAAM,CAAC,OAAO,CAAC;QACd,KAAK,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;QACzB,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC1B,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,4BAA4B,EAAE;gBACxD,MAAM,EAAE,IAAI,CAAC,gBAAgB;aAC9B,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"ExposedFunction.js","sourceRoot":"","sources":["../../../../src/bidi/ExposedFunction.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAGnE,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAC,mBAAmB,EAAE,iBAAiB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,EAAC,SAAS,EAAE,WAAW,EAAE,IAAI,EAAC,CAAC;IACxC,CAAC;IAED,CAAC,MAAM,CAAC,OAAO,CAAC;QACd,KAAK,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;QACzB,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC1B,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,4BAA4B,EAAE;gBACxD,MAAM,EAAE,IAAI,CAAC,gBAAgB;aAC9B,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.d.ts.map index 43a34198..f5a40adf 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Frame.d.ts","sourceRoot":"","sources":["../../../../src/bidi/Frame.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAeH,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EACL,KAAK,EACL,KAAK,WAAW,EAChB,KAAK,cAAc,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,gBAAgB,CAAC;AAE3D,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAC,SAAS,EAAE,OAAO,EAAC,MAAM,oBAAoB,CAAC;AAG3D,OAAO,EAAC,aAAa,EAAC,MAAM,uB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,EAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI;IAoB1B,IAAa,MAAM,IAAI,UAAU,CAEhC;IAEQ,SAAS,IAAI,OAAO;IAIpB,aAAa,IAAI,OAAO;IAIxB,IAAI,IAAI,QAAQ;IAIhB,UAAU,IAAI,KAAK;IAInB,GAAG,IAAI,MAAM;IAIb,WAAW,IAAI,SAAS,GAAG,IAAI;IAI/B,WAAW,IAAI,SAAS,EAAE;IAKpB,IAAI,CACjB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAsCpB,UAAU,CACvB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC;IAkChB,OAAO,IAAI,eAAe;IAKX,iBAAiB,CAC9B,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAmD1B,mBAAmB,IAAI,KAAK;IAIrC,IAAa,QAAQ,IAAI,OAAO,CAE/B;IAED,CAAC,aAAa,CAAC,IAAI,IAAI;IAYjB,cAAc,CAAC,IAAI,SAAS,OAAO,EAAE,EAAE,GAAG,EAC9C,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,GAAG,CAAC,GACvC,OAAO,CAAC,IAAI,CAAC;IAgBP,eAAe,CAAC,QAAQ,SAAS,MAAM,EAC9C,QAAQ,EAAE,QAAQ,EAClB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC;CASpD"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.js index e07aa2ab..2d3b6fe7 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.js @@ -38,10 +38,10 @@ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, done = true; }; import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; -import { from, fromEvent, merge, map, forkJoin, first, firstValueFrom, raceWith, } from '../../third_party/rxjs/rxjs.js'; +import { first, firstValueFrom, forkJoin, from, map, merge, raceWith, zip, } from '../../third_party/rxjs/rxjs.js'; import { Frame, throwIfDetached, } from '../api/Frame.js'; import { UnsupportedOperation } from '../common/Errors.js'; -import { UTILITY_WORLD_NAME, timeout } from '../common/util.js'; +import { fromEmitterEvent, NETWORK_IDLE_TIME, timeout, UTILITY_WORLD_NAME, } from '../common/util.js'; import { Deferred } from '../util/Deferred.js'; import { disposeSymbol } from '../util/disposable.js'; import { ExposeableFunction } from './ExposedFunction.js'; @@ -111,28 +111,42 @@ let BidiFrame = (() => { async goto(url, options = {}) { const { waitUntil = 'load', timeout: ms = this.#timeoutSettings.navigationTimeout(), } = options; const [readiness, networkIdle] = getBiDiReadinessState(waitUntil); - const response = await firstValueFrom(this.#page - ._waitWithNetworkIdle(this.#context.connection.send('browsingContext.navigate', { + const result$ = zip(from(this.#context.connection.send('browsingContext.navigate', { context: this.#context.id, url, wait: readiness, - }), networkIdle) - .pipe(raceWith(timeout(ms), from(this.#abortDeferred.valueOrThrow()))) - .pipe(rewriteNavigationError(url, ms))); - return this.#page.getNavigationResponse(response?.result.navigation); + })), ...(networkIdle !== null + ? [ + this.#page.waitForNetworkIdle$({ + timeout: ms, + concurrency: networkIdle === 'networkidle2' ? 2 : 0, + idleTime: NETWORK_IDLE_TIME, + }), + ] + : [])).pipe(map(([{ result }]) => { + return result; + }), raceWith(timeout(ms), from(this.#abortDeferred.valueOrThrow())), rewriteNavigationError(url, ms)); + const result = await firstValueFrom(result$); + return this.#page.getNavigationResponse(result.navigation); } async setContent(html, options = {}) { const { waitUntil = 'load', timeout: ms = this.#timeoutSettings.navigationTimeout(), } = options; const [waitEvent, networkIdle] = getBiDiLifecycleEvent(waitUntil); - await firstValueFrom(this.#page - ._waitWithNetworkIdle(forkJoin([ - fromEvent(this.#context, waitEvent).pipe(first()), + const result$ = zip(forkJoin([ + fromEmitterEvent(this.#context, waitEvent).pipe(first()), from(this.setFrameContent(html)), ]).pipe(map(() => { return null; - })), networkIdle) - .pipe(raceWith(timeout(ms), from(this.#abortDeferred.valueOrThrow()))) - .pipe(rewriteNavigationError('setContent', ms))); + })), ...(networkIdle !== null + ? [ + this.#page.waitForNetworkIdle$({ + timeout: ms, + concurrency: networkIdle === 'networkidle2' ? 2 : 0, + idleTime: NETWORK_IDLE_TIME, + }), + ] + : [])).pipe(raceWith(timeout(ms), from(this.#abortDeferred.valueOrThrow())), rewriteNavigationError('setContent', ms)); + await firstValueFrom(result$); } context() { return this.#context; @@ -140,19 +154,28 @@ let BidiFrame = (() => { async waitForNavigation(options = {}) { const { waitUntil = 'load', timeout: ms = this.#timeoutSettings.navigationTimeout(), } = options; const [waitUntilEvent, networkIdle] = getBiDiLifecycleEvent(waitUntil); - const navigatedObservable = merge(forkJoin([ - fromEvent(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted).pipe(first()), - fromEvent(this.#context, waitUntilEvent).pipe(first()), - ]), fromEvent(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated)).pipe(map(result => { + const navigation$ = merge(forkJoin([ + fromEmitterEvent(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted).pipe(first()), + fromEmitterEvent(this.#context, waitUntilEvent).pipe(first()), + ]), fromEmitterEvent(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated)).pipe(map(result => { if (Array.isArray(result)) { return { result: result[1] }; } return { result }; })); - const response = await firstValueFrom(this.#page - ._waitWithNetworkIdle(navigatedObservable, networkIdle) - .pipe(raceWith(timeout(ms), from(this.#abortDeferred.valueOrThrow())))); - return this.#page.getNavigationResponse(response?.result.navigation); + const result$ = zip(navigation$, ...(networkIdle !== null + ? [ + this.#page.waitForNetworkIdle$({ + timeout: ms, + concurrency: networkIdle === 'networkidle2' ? 2 : 0, + idleTime: NETWORK_IDLE_TIME, + }), + ] + : [])).pipe(map(([{ result }]) => { + return result; + }), raceWith(timeout(ms), from(this.#abortDeferred.valueOrThrow()))); + const result = await firstValueFrom(result$); + return this.#page.getNavigationResponse(result.navigation); } waitForDevicePrompt() { throw new UnsupportedOperation(); diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.js.map index 5d3946d1..a22f5eca 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.js.map @@ -1 +1 @@ -{"version":3,"file":"Frame.js","sourceRoot":"","sources":["../../../../src/bidi/Frame.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,OAAO,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAEnE,OAAO,EAEL,IAAI,EACJ,SAAS,EACT,KAAK,EACL,GAAG,EACH,QAAQ,EACR,KAAK,EACL,cAAc,EACd,QAAQ,GACT,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EACL,KAAK,EAGL,eAAe,GAChB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AAGzD,OAAO,EAAC,kBAAkB,EAAE,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAGpD,OAAO,EAAC,kBAAkB,EAAC,MAAM,s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,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBACrC,MAAM,IAAI,KAAK,CACb,wCAAwC,IAAI,iBAAiB,IAAI,oBAAoB,CACtF,CAAC;YACJ,CAAC;YACD,MAAM,UAAU,GAAG,IAAI,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;YAC7D,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;YAC7C,IAAI,CAAC;gBACH,MAAM,UAAU,CAAC,MAAM,EAAE,CAAC;YAC5B,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBACpC,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;QAEQ,eAAe,CACtB,QAAkB,EAClB,OAAgC;YAEhC,IAAI,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;gBAChC,MAAM,IAAI,oBAAoB,CAC5B,0CAA0C,CAC3C,CAAC;YACJ,CAAC;YAED,OAAO,KAAK,CAAC,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAClD,CAAC;;;SA5PU,SAAS"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.d.ts index 23464575..7858dbff 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.d.ts @@ -6,9 +6,7 @@ /// /// import type { Readable } from 'stream'; -import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; import type Protocol from 'devtools-protocol'; -import type { Observable, ObservableInput } from '../../third_party/rxjs/rxjs.js'; import type { CDPSession } from '../api/CDPSession.js'; import type { WaitForOptions } from '../api/Frame.js'; import type { HTTPResponse } from '../api/HTTPResponse.js'; @@ -24,11 +22,9 @@ import type { BidiBrowserContext } from './BrowserContext.js'; import { type BrowsingContext } from './BrowsingContext.js'; import type { BidiConnection } from './Connection.js'; import { BidiFrame } from './Frame.js'; -import type { BidiHTTPRequest } from './HTTPRequest.js'; import type { BidiHTTPResponse } from './HTTPResponse.js'; import { BidiKeyboard, BidiMouse, BidiTouchscreen } from './Input.js'; import type { BidiJSHandle } from './JSHandle.js'; -import type { BiDiNetworkIdle } from './lifecycle.js'; import type { BiDiPageTarget } from './Target.js'; /** * @internal @@ -87,22 +83,6 @@ export declare class BidiPage extends Page { pdf(options?: PDFOptions): Promise; createPDFStream(options?: PDFOptions | undefined): Promise; _screenshot(options: Readonly): Promise; - waitForRequest(urlOrPredicate: string | ((req: BidiHTTPRequest) => boolean | Promise), options?: { - timeout?: number; - }): Promise; - waitForResponse(urlOrPredicate: string | ((res: BidiHTTPResponse) => boolean | Promise), options?: { - timeout?: number; - }): Promise; - waitForNetworkIdle(options?: { - idleTime?: number; - timeout?: number; - }): Promise; - /** @internal */ - _waitWithNetworkIdle(observableInput: ObservableInput<{ - result: Bidi.BrowsingContext.NavigateResult; - } | null>, networkIdle: BiDiNetworkIdle): Observable<{ - result: Bidi.BrowsingContext.NavigateResult; - } | null>; createCDPSession(): Promise; bringToFront(): Promise; evaluateOnNewDocument unknown = (...args: Params) => unknown>(pageFunction: Func | string, ...args: Params): Promise; diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.d.ts.map index 1031012e..728bcb08 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../../src/bidi/Page.ts"],"names":[],"mappings":"AAAA;;;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AI9B,eAAe,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAOvD,uBAAuB,IAAI,KAAK;IAIhC,MAAM,IAAI,cAAc;IAIxB,kBAAkB,IAAI,KAAK;IAI3B,OAAO,IAAI,KAAK;IAIhB,sBAAsB,IAAI,KAAK;IAI/B,mBAAmB,IAAI,KAAK;IAI5B,sBAAsB,IAAI,KAAK;IAI/B,cAAc,IAAI,KAAK;IAIvB,wBAAwB,IAAI,KAAK;IAIjC,OAAO,IAAI,KAAK;IAIhB,SAAS,IAAI,KAAK;IAIlB,YAAY,IAAI,KAAK;IAIrB,qBAAqB,IAAI,KAAK;IAK9B,YAAY,IAAI,KAAK;IAIrB,mBAAmB,IAAI,KAAK;IAI5B,OAAO,IAAI,KAAK;IAIV,MAAM,CACnB,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAIhB,SAAS,CACtB,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IA4BtB,mBAAmB,IAAI,KAAK;CAGtC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.js index 6d414b78..3c0e1e62 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.js @@ -48,7 +48,7 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres var e = new Error(message); return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; }); -import { first, firstValueFrom, forkJoin, from, map, raceWith, } from '../../third_party/rxjs/rxjs.js'; +import { firstValueFrom, from, map, raceWith, zip, } from '../../third_party/rxjs/rxjs.js'; import { Page, } from '../api/Page.js'; import { Accessibility } from '../cdp/Accessibility.js'; import { Coverage } from '../cdp/Coverage.js'; @@ -58,7 +58,7 @@ import { Tracing } from '../cdp/Tracing.js'; import { ConsoleMessage, } from '../common/ConsoleMessage.js'; import { TargetCloseError, UnsupportedOperation } from '../common/Errors.js'; import { NetworkManagerEvent } from '../common/NetworkManagerEvents.js'; -import { debugError, evaluationString, NETWORK_IDLE_TIME, timeout, validateDialogType, waitForHTTP, } from '../common/util.js'; +import { debugError, evaluationString, NETWORK_IDLE_TIME, parsePDFOptions, timeout, validateDialogType, } from '../common/util.js'; import { assert } from '../util/assert.js'; import { Deferred } from '../util/Deferred.js'; import { disposeSymbol } from '../util/disposable.js'; @@ -395,13 +395,22 @@ export class BidiPage extends Page { async reload(options = {}) { const { waitUntil = 'load', timeout: ms = this._timeoutSettings.navigationTimeout(), } = options; const [readiness, networkIdle] = getBiDiReadinessState(waitUntil); - const response = await firstValueFrom(this._waitWithNetworkIdle(this.#connection.send('browsingContext.reload', { + const result$ = zip(from(this.#connection.send('browsingContext.reload', { context: this.mainFrame()._id, wait: readiness, - }), networkIdle) - .pipe(raceWith(timeout(ms), from(this.#closedDeferred.valueOrThrow()))) - .pipe(rewriteNavigationError(this.url(), ms))); - return this.getNavigationResponse(response?.result.navigation); + })), ...(networkIdle !== null + ? [ + this.waitForNetworkIdle$({ + timeout: ms, + concurrency: networkIdle === 'networkidle2' ? 2 : 0, + idleTime: NETWORK_IDLE_TIME, + }), + ] + : [])).pipe(map(([{ result }]) => { + return result; + }), raceWith(timeout(ms), from(this.#closedDeferred.valueOrThrow())), rewriteNavigationError(this.url(), ms)); + const result = await firstValueFrom(result$); + return this.getNavigationResponse(result.navigation); } setDefaultNavigationTimeout(timeout) { this._timeoutSettings.setDefaultNavigationTimeout(timeout); @@ -455,8 +464,8 @@ export class BidiPage extends Page { return this.#viewport; } async pdf(options = {}) { - const { path = undefined } = options; - const { printBackground: background, margin, landscape, width, height, pageRanges: ranges, scale, preferCSSPageSize, timeout: ms, } = this._getPDFOptions(options, 'cm'); + const { timeout: ms = this._timeoutSettings.timeout(), path = undefined } = options; + const { printBackground: background, margin, landscape, width, height, pageRanges: ranges, scale, preferCSSPageSize, } = parsePDFOptions(options, 'cm'); const pageRanges = ranges ? ranges.split(', ') : []; const { result } = await firstValueFrom(from(this.#connection.send('browsingContext.print', { context: this.mainFrame()._id, @@ -538,30 +547,6 @@ export class BidiPage extends Page { }); return data; } - async waitForRequest(urlOrPredicate, options = {}) { - const { timeout = this._timeoutSettings.timeout() } = options; - return await waitForHTTP(this.#networkManager, NetworkManagerEvent.Request, urlOrPredicate, timeout, this.#closedDeferred); - } - async waitForResponse(urlOrPredicate, options = {}) { - const { timeout = this._timeoutSettings.timeout() } = options; - return await waitForHTTP(this.#networkManager, NetworkManagerEvent.Response, urlOrPredicate, timeout, this.#closedDeferred); - } - async waitForNetworkIdle(options = {}) { - const { idleTime = NETWORK_IDLE_TIME, timeout: ms = this._timeoutSettings.timeout(), } = options; - await firstValueFrom(this._waitForNetworkIdle(this.#networkManager, idleTime).pipe(raceWith(timeout(ms), from(this.#closedDeferred.valueOrThrow())))); - } - /** @internal */ - _waitWithNetworkIdle(observableInput, networkIdle) { - const delay = networkIdle - ? this._waitForNetworkIdle(this.#networkManager, NETWORK_IDLE_TIME, networkIdle === 'networkidle0' ? 0 : 2) - : from(Promise.resolve()); - return forkJoin([ - from(observableInput).pipe(first()), - delay.pipe(first()), - ]).pipe(map(([response]) => { - return response; - })); - } async createCDPSession() { const { sessionId } = await this.mainFrame() .context() diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.js.map index 6be1d438..2bc75ebb 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.js.map @@ -1 +1 @@ -{"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../../src/bidi/Page.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;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of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.d.ts index 1bf6e5f2..3b0a9bfc 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.d.ts @@ -26,9 +26,16 @@ export declare abstract class BidiTarget extends Target { /** * @internal */ -export declare class BiDiBrowserTarget extends BidiTarget { +export declare class BiDiBrowserTarget extends Target { + #private; + constructor(browser: BidiBrowser); url(): string; type(): TargetType; + asPage(): Promise; + browser(): BidiBrowser; + browserContext(): BidiBrowserContext; + opener(): never; + createCDPSession(): Promise; } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.d.ts.map index 057befe5..8a14bd9b 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Target.d.ts","sourceRoot":"","sources":["../../../../src/bidi/Target.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAGpD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,KAAK,eAAe,EAAoB,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAC;AAEnC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AAG,IAAI;CAItE"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.js index 0e26fe23..a87217d5 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.js @@ -38,13 +38,33 @@ export class BidiTarget extends Target { /** * @internal */ -export class BiDiBrowserTarget extends BidiTarget { +export class BiDiBrowserTarget extends Target { + #browser; + constructor(browser) { + super(); + this.#browser = browser; + } url() { return ''; } type() { return TargetType.BROWSER; } + asPage() { + throw new UnsupportedOperation(); + } + browser() { + return this.#browser; + } + browserContext() { + return this.#browser.defaultBrowserContext(); + } + opener() { + throw new UnsupportedOperation(); + } + createCDPSession() { + throw new UnsupportedOperation(); + } } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.js.map index f2b5dd18..a4390b26 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.js.map @@ -1 +1 @@ -{"version":3,"file":"Target.js","sourceRoot":"","sources":["../../../../src/bidi/Target.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AAIzD,OAAO,EAAuB,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAC;AAEnC;;GAEG;AACH,MAAM,OAAgB,UAAW,SAAQ,MAAM;IACnC,eAAe,CAAqB;IAE9C,YAAY,cAAkC;QAC5C,KAAK,EAAE,CAAC;Q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AI,CAC7D,uBAAuB,EACvB;YACE,QAAQ,EAAE,IAAI,CAAC,gBAAgB,CAAC,EAAE;YAClC,OAAO,EAAE,IAAI;SACd,CACF,CAAC;QACF,OAAO,IAAI,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;IACjE,CAAC;IAEQ,IAAI;QACX,OAAO,UAAU,CAAC,IAAI,CAAC;IACzB,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,yBAAyB;IAC3D,KAAK,CAAW;IAEhB,YACE,cAAkC,EAClC,eAAgC;QAEhC,KAAK,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;QAEvC,IAAI,CAAC,KAAK,GAAG,IAAI,QAAQ,CAAC,eAAe,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAEQ,kBAAkB,CAAC,cAAkC;QAC5D,KAAK,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;QACzC,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;IAChD,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.d.ts new file mode 100644 index 00000000..992de702 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.d.ts @@ -0,0 +1,55 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { disposeSymbol } from '../../util/disposable.js'; +import type { BrowsingContext } from './BrowsingContext.js'; +import type { SharedWorkerRealm } from './Realm.js'; +import type { Session } from './Session.js'; +import { UserContext } from './UserContext.js'; +/** + * @internal + */ +export type AddPreloadScriptOptions = Omit & { + contexts?: [BrowsingContext, ...BrowsingContext[]]; +}; +/** + * @internal + */ +export declare class Browser extends EventEmitter<{ + /** Emitted before the browser closes. */ + closed: { + /** The reason for closing the browser. */ + reason: string; + }; + /** Emitted after the browser disconnects. */ + disconnected: { + /** The reason for disconnecting the browser. */ + reason: string; + }; + /** Emitted when a shared worker is created. */ + sharedworker: { + /** The realm of the shared worker. */ + realm: SharedWorkerRealm; + }; +}> { + #private; + static from(session: Session): Promise; + readonly session: Session; + private constructor(); + get closed(): boolean; + get defaultUserContext(): UserContext; + get disconnected(): boolean; + get disposed(): boolean; + get userContexts(): Iterable; + dispose(reason?: string, closed?: boolean): void; + close(): Promise; + addPreloadScript(functionDeclaration: string, options?: AddPreloadScriptOptions): Promise; + removePreloadScript(script: string): Promise; + createUserContext(): Promise; + [disposeSymbol](): void; +} +//# sourceMappingURL=Browser.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.d.ts.map new file mode 100644 index 00000000..8b6339a8 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Browser.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/Browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAkB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAExE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC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IAAI,CAAC;IAUlD,iBAAiB,IAAI,OAAO,CAAC,WAAW,CAAC;IAoB/C,CAAC,aAAa,CAAC,IAAI,IAAI;CAWxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.js new file mode 100644 index 00000000..1f73cfdb --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.js @@ -0,0 +1,269 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; +}; +var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { + return function (env) { + function fail(e) { + env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + function next() { + while (env.stack.length) { + var rec = env.stack.pop(); + try { + var result = rec.dispose && rec.dispose.call(rec.value); + if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + catch (e) { + fail(e); + } + } + if (env.hasError) throw env.error; + } + return next(); + }; +})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; +}); +import { EventEmitter } from '../../common/EventEmitter.js'; +import { inertIfDisposed, throwIfDisposed } from '../../util/decorators.js'; +import { DisposableStack, disposeSymbol } from '../../util/disposable.js'; +import { UserContext } from './UserContext.js'; +/** + * @internal + */ +let Browser = (() => { + let _classSuper = EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + let _close_decorators; + let _addPreloadScript_decorators; + let _removePreloadScript_decorators; + let _createUserContext_decorators; + return class Browser extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _close_decorators, { kind: "method", name: "close", static: false, private: false, access: { has: obj => "close" in obj, get: obj => obj.close }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _addPreloadScript_decorators, { kind: "method", name: "addPreloadScript", static: false, private: false, access: { has: obj => "addPreloadScript" in obj, get: obj => obj.addPreloadScript }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _removePreloadScript_decorators, { kind: "method", name: "removePreloadScript", static: false, private: false, access: { has: obj => "removePreloadScript" in obj, get: obj => obj.removePreloadScript }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _createUserContext_decorators, { kind: "method", name: "createUserContext", static: false, private: false, access: { has: obj => "createUserContext" in obj, get: obj => obj.createUserContext }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + static async from(session) { + const browser = new Browser(session); + await browser.#initialize(); + return browser; + } + // keep-sorted start + #closed = (__runInitializers(this, _instanceExtraInitializers), false); + #reason; + #disposables = new DisposableStack(); + #userContexts = new Map(); + session; + // keep-sorted end + constructor(session) { + super(); + // keep-sorted start + this.session = session; + // keep-sorted end + this.#userContexts.set(UserContext.DEFAULT, UserContext.create(this, UserContext.DEFAULT)); + } + async #initialize() { + const sessionEmitter = this.#disposables.use(new EventEmitter(this.session)); + sessionEmitter.once('ended', ({ reason }) => { + this.dispose(reason); + }); + sessionEmitter.on('script.realmCreated', info => { + if (info.type === 'shared-worker') { + // TODO: Create a SharedWorkerRealm. + } + }); + await this.#syncUserContexts(); + await this.#syncBrowsingContexts(); + } + async #syncUserContexts() { + const { result: { userContexts }, } = await this.session.send('browser.getUserContexts', {}); + for (const context of userContexts) { + if (context.userContext === UserContext.DEFAULT) { + continue; + } + this.#userContexts.set(context.userContext, UserContext.create(this, context.userContext)); + } + } + async #syncBrowsingContexts() { + // In case contexts are created or destroyed during `getTree`, we use this + // set to detect them. + const contextIds = new Set(); + let contexts; + { + const env_1 = { stack: [], error: void 0, hasError: false }; + try { + const sessionEmitter = __addDisposableResource(env_1, new EventEmitter(this.session), false); + sessionEmitter.on('browsingContext.contextCreated', info => { + contextIds.add(info.context); + }); + sessionEmitter.on('browsingContext.contextDestroyed', info => { + contextIds.delete(info.context); + }); + const { result } = await this.session.send('browsingContext.getTree', {}); + contexts = result.contexts; + } + catch (e_1) { + env_1.error = e_1; + env_1.hasError = true; + } + finally { + __disposeResources(env_1); + } + } + // Simulating events so contexts are created naturally. + for (const info of contexts) { + if (contextIds.has(info.context)) { + this.session.emit('browsingContext.contextCreated', info); + } + if (info.children) { + contexts.push(...info.children); + } + } + } + // keep-sorted start block=yes + get closed() { + return this.#closed; + } + get defaultUserContext() { + // SAFETY: A UserContext is always created for the default context. + return this.#userContexts.get(UserContext.DEFAULT); + } + get disconnected() { + return this.#reason !== undefined; + } + get disposed() { + return this.disconnected; + } + get userContexts() { + return this.#userContexts.values(); + } + // keep-sorted end + dispose(reason, closed = false) { + this.#closed = closed; + this.#reason = reason; + this[disposeSymbol](); + } + async close() { + try { + await this.session.send('browser.close', {}); + } + finally { + this.dispose('Browser already closed.', true); + } + } + async addPreloadScript(functionDeclaration, options = {}) { + const { result: { script }, } = await this.session.send('script.addPreloadScript', { + functionDeclaration, + ...options, + contexts: options.contexts?.map(context => { + return context.id; + }), + }); + return script; + } + async removePreloadScript(script) { + await this.session.send('script.removePreloadScript', { + script, + }); + } + async createUserContext() { + const { result: { userContext: context }, } = await this.session.send('browser.createUserContext', {}); + const userContext = UserContext.create(this, context); + this.#userContexts.set(userContext.id, userContext); + const userContextEmitter = this.#disposables.use(new EventEmitter(userContext)); + userContextEmitter.once('closed', () => { + userContextEmitter.removeAllListeners(); + this.#userContexts.delete(context); + }); + return userContext; + } + [(_dispose_decorators = [inertIfDisposed], _close_decorators = [throwIfDisposed(browser => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return browser.#reason; + })], _addPreloadScript_decorators = [throwIfDisposed(browser => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return browser.#reason; + })], _removePreloadScript_decorators = [throwIfDisposed(browser => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return browser.#reason; + })], _createUserContext_decorators = [throwIfDisposed(browser => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return browser.#reason; + })], disposeSymbol)]() { + this.#reason ??= + 'Browser was disconnected, probably because the session ended.'; + if (this.closed) { + this.emit('closed', { reason: this.#reason }); + } + this.emit('disconnected', { reason: this.#reason }); + this.#disposables.dispose(); + super[disposeSymbol](); + } + }; +})(); +export { Browser }; +//# sourceMappingURL=Browser.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.js.map new file mode 100644 index 00000000..226c8e35 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../../src/bidi/core/Browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,eAAe,EAAE,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAKxE,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAY7C;;GAEG;IACU,OAAO;sBAAS,YAAY;;;;;;;i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YACrC,CAAC,CAAC,CAAC;YAEH,OAAO,WAAW,CAAC;QACrB,CAAC;QAED,yBAzEC,eAAe,wBAOf,eAAe,CAAU,OAAO,CAAC,EAAE;gBAClC,6DAA6D;gBAC7D,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,mCASD,eAAe,CAAU,OAAO,CAAC,EAAE;gBAClC,6DAA6D;gBAC7D,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,sCAiBD,eAAe,CAAU,OAAO,CAAC,EAAE;gBAClC,6DAA6D;gBAC7D,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,oCAOD,eAAe,CAAU,OAAO,CAAC,EAAE;gBAClC,6DAA6D;gBAC7D,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,GAqBD,aAAa,EAAC;YACb,IAAI,CAAC,OAAO;gBACV,+DAA+D,CAAC;YAClE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;gBAChB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAC,CAAC,CAAC;YAC9C,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,EAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAC,CAAC,CAAC;YAElD,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;YAC5B,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;QACzB,CAAC;;;SAhNU,OAAO"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts new file mode 100644 index 00000000..93fb6be9 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts @@ -0,0 +1,104 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { disposeSymbol } from '../../util/disposable.js'; +import type { AddPreloadScriptOptions } from './Browser.js'; +import { Navigation } from './Navigation.js'; +import { WindowRealm } from './Realm.js'; +import { Request } from './Request.js'; +import type { UserContext } from './UserContext.js'; +import { UserPrompt } from './UserPrompt.js'; +/** + * @internal + */ +export type CaptureScreenshotOptions = Omit; +/** + * @internal + */ +export type ReloadOptions = Omit; +/** + * @internal + */ +export type PrintOptions = Omit; +/** + * @internal + */ +export type HandleUserPromptOptions = Omit; +/** + * @internal + */ +export type SetViewportOptions = Omit; +/** + * @internal + */ +export declare class BrowsingContext extends EventEmitter<{ + /** Emitted when this context is closed. */ + closed: { + /** The reason the browsing context was closed */ + reason: string; + }; + /** Emitted when a child browsing context is created. */ + browsingcontext: { + /** The newly created child browsing context. */ + browsingContext: BrowsingContext; + }; + /** Emitted whenever a navigation occurs. */ + navigation: { + /** The navigation that occurred. */ + navigation: Navigation; + }; + /** Emitted whenever a request is made. */ + request: { + /** The request that was made. */ + request: Request; + }; + /** Emitted whenever a log entry is added. */ + log: { + /** Entry added to the log. */ + entry: Bidi.Log.Entry; + }; + /** Emitted whenever a prompt is opened. */ + userprompt: { + /** The prompt that was opened. */ + userPrompt: UserPrompt; + }; + /** Emitted whenever the frame emits `DOMContentLoaded` */ + DOMContentLoaded: void; + /** Emitted whenever the frame emits `load` */ + load: void; +}> { + #private; + static from(userContext: UserContext, parent: BrowsingContext | undefined, id: string, url: string): BrowsingContext; + readonly defaultRealm: WindowRealm; + readonly id: string; + readonly parent: BrowsingContext | undefined; + readonly userContext: UserContext; + private constructor(); + get children(): Iterable; + get closed(): boolean; + get disposed(): boolean; + get realms(): Iterable; + get top(): BrowsingContext; + get url(): string; + private dispose; + activate(): Promise; + captureScreenshot(options?: CaptureScreenshotOptions): Promise; + close(promptUnload?: boolean): Promise; + traverseHistory(delta: number): Promise; + navigate(url: string, wait?: Bidi.BrowsingContext.ReadinessState): Promise; + reload(options?: ReloadOptions): Promise; + print(options?: PrintOptions): Promise; + handleUserPrompt(options?: HandleUserPromptOptions): Promise; + setViewport(options?: SetViewportOptions): Promise; + performActions(actions: Bidi.Input.SourceActions[]): Promise; + releaseActions(): Promise; + createWindowRealm(sandbox: string): WindowRealm; + addPreloadScript(functionDeclaration: string, options?: AddPreloadScriptOptions): Promise; + removePreloadScript(script: string): Promise; + [disposeSymbol](): void; +} +//# sourceMappingURL=BrowsingContext.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map new file mode 100644 index 00000000..4aeff4fb --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"BrowsingContext.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/BrowsingContext.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAkB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAExE,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAC;AACvC,OAAO,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,wB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AO,GAAE,kBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAW5D,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAWlE,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAUrC,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW;IAQzC,gBAAgB,CACpB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,MAAM,CAAC;IAcZ,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD,CAAC,aAAa,CAAC,IAAI,IAAI;CAQxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.js new file mode 100644 index 00000000..57617887 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.js @@ -0,0 +1,373 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { inertIfDisposed, throwIfDisposed } from '../../util/decorators.js'; +import { DisposableStack, disposeSymbol } from '../../util/disposable.js'; +import { Navigation } from './Navigation.js'; +import { WindowRealm } from './Realm.js'; +import { Request } from './Request.js'; +import { UserPrompt } from './UserPrompt.js'; +/** + * @internal + */ +let BrowsingContext = (() => { + var _a; + let _classSuper = EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + let _activate_decorators; + let _captureScreenshot_decorators; + let _close_decorators; + let _traverseHistory_decorators; + let _navigate_decorators; + let _reload_decorators; + let _print_decorators; + let _handleUserPrompt_decorators; + let _setViewport_decorators; + let _performActions_decorators; + let _releaseActions_decorators; + let _createWindowRealm_decorators; + let _addPreloadScript_decorators; + let _removePreloadScript_decorators; + return class BrowsingContext extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _activate_decorators, { kind: "method", name: "activate", static: false, private: false, access: { has: obj => "activate" in obj, get: obj => obj.activate }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _captureScreenshot_decorators, { kind: "method", name: "captureScreenshot", static: false, private: false, access: { has: obj => "captureScreenshot" in obj, get: obj => obj.captureScreenshot }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _close_decorators, { kind: "method", name: "close", static: false, private: false, access: { has: obj => "close" in obj, get: obj => obj.close }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _traverseHistory_decorators, { kind: "method", name: "traverseHistory", static: false, private: false, access: { has: obj => "traverseHistory" in obj, get: obj => obj.traverseHistory }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _navigate_decorators, { kind: "method", name: "navigate", static: false, private: false, access: { has: obj => "navigate" in obj, get: obj => obj.navigate }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _reload_decorators, { kind: "method", name: "reload", static: false, private: false, access: { has: obj => "reload" in obj, get: obj => obj.reload }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _print_decorators, { kind: "method", name: "print", static: false, private: false, access: { has: obj => "print" in obj, get: obj => obj.print }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _handleUserPrompt_decorators, { kind: "method", name: "handleUserPrompt", static: false, private: false, access: { has: obj => "handleUserPrompt" in obj, get: obj => obj.handleUserPrompt }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _setViewport_decorators, { kind: "method", name: "setViewport", static: false, private: false, access: { has: obj => "setViewport" in obj, get: obj => obj.setViewport }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _performActions_decorators, { kind: "method", name: "performActions", static: false, private: false, access: { has: obj => "performActions" in obj, get: obj => obj.performActions }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _releaseActions_decorators, { kind: "method", name: "releaseActions", static: false, private: false, access: { has: obj => "releaseActions" in obj, get: obj => obj.releaseActions }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _createWindowRealm_decorators, { kind: "method", name: "createWindowRealm", static: false, private: false, access: { has: obj => "createWindowRealm" in obj, get: obj => obj.createWindowRealm }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _addPreloadScript_decorators, { kind: "method", name: "addPreloadScript", static: false, private: false, access: { has: obj => "addPreloadScript" in obj, get: obj => obj.addPreloadScript }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _removePreloadScript_decorators, { kind: "method", name: "removePreloadScript", static: false, private: false, access: { has: obj => "removePreloadScript" in obj, get: obj => obj.removePreloadScript }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + static from(userContext, parent, id, url) { + const browsingContext = new BrowsingContext(userContext, parent, id, url); + browsingContext.#initialize(); + return browsingContext; + } + // keep-sorted start + #navigation = (__runInitializers(this, _instanceExtraInitializers), void 0); + #reason; + #url; + #children = new Map(); + #disposables = new DisposableStack(); + #realms = new Map(); + #requests = new Map(); + defaultRealm; + id; + parent; + userContext; + // keep-sorted end + constructor(context, parent, id, url) { + super(); + // keep-sorted start + this.#url = url; + this.id = id; + this.parent = parent; + this.userContext = context; + // keep-sorted end + this.defaultRealm = WindowRealm.from(this); + } + #initialize() { + const userContextEmitter = this.#disposables.use(new EventEmitter(this.userContext)); + userContextEmitter.once('closed', ({ reason }) => { + this.dispose(`Browsing context already closed: ${reason}`); + }); + const sessionEmitter = this.#disposables.use(new EventEmitter(this.#session)); + sessionEmitter.on('browsingContext.contextCreated', info => { + if (info.parent !== this.id) { + return; + } + const browsingContext = BrowsingContext.from(this.userContext, this, info.context, info.url); + this.#children.set(info.context, browsingContext); + const browsingContextEmitter = this.#disposables.use(new EventEmitter(browsingContext)); + browsingContextEmitter.once('closed', () => { + browsingContextEmitter.removeAllListeners(); + this.#children.delete(browsingContext.id); + }); + this.emit('browsingcontext', { browsingContext }); + }); + sessionEmitter.on('browsingContext.contextDestroyed', info => { + if (info.context !== this.id) { + return; + } + this.dispose('Browsing context already closed.'); + }); + sessionEmitter.on('browsingContext.domContentLoaded', info => { + if (info.context !== this.id) { + return; + } + this.#url = info.url; + this.emit('DOMContentLoaded', undefined); + }); + sessionEmitter.on('browsingContext.load', info => { + if (info.context !== this.id) { + return; + } + this.#url = info.url; + this.emit('load', undefined); + }); + sessionEmitter.on('browsingContext.navigationStarted', info => { + if (info.context !== this.id) { + return; + } + this.#url = info.url; + this.#requests.clear(); + // Note the navigation ID is null for this event. + this.#navigation = Navigation.from(this); + const navigationEmitter = this.#disposables.use(new EventEmitter(this.#navigation)); + for (const eventName of ['fragment', 'failed', 'aborted']) { + navigationEmitter.once(eventName, ({ url }) => { + navigationEmitter[disposeSymbol](); + this.#url = url; + }); + } + this.emit('navigation', { navigation: this.#navigation }); + }); + sessionEmitter.on('network.beforeRequestSent', event => { + if (event.context !== this.id) { + return; + } + if (this.#requests.has(event.request.request)) { + return; + } + const request = Request.from(this, event); + this.#requests.set(request.id, request); + this.emit('request', { request }); + }); + sessionEmitter.on('log.entryAdded', entry => { + if (entry.source.context !== this.id) { + return; + } + this.emit('log', { entry }); + }); + sessionEmitter.on('browsingContext.userPromptOpened', info => { + if (info.context !== this.id) { + return; + } + const userPrompt = UserPrompt.from(this, info); + this.emit('userprompt', { userPrompt }); + }); + } + // keep-sorted start block=yes + get #session() { + return this.userContext.browser.session; + } + get children() { + return this.#children.values(); + } + get closed() { + return this.#reason !== undefined; + } + get disposed() { + return this.closed; + } + get realms() { + return this.#realms.values(); + } + get top() { + let context = this; + for (let { parent } = context; parent; { parent } = context) { + context = parent; + } + return context; + } + get url() { + return this.#url; + } + // keep-sorted end + dispose(reason) { + this.#reason = reason; + this[disposeSymbol](); + } + async activate() { + await this.#session.send('browsingContext.activate', { + context: this.id, + }); + } + async captureScreenshot(options = {}) { + const { result: { data }, } = await this.#session.send('browsingContext.captureScreenshot', { + context: this.id, + ...options, + }); + return data; + } + async close(promptUnload) { + await Promise.all([...this.#children.values()].map(async (child) => { + await child.close(promptUnload); + })); + await this.#session.send('browsingContext.close', { + context: this.id, + promptUnload, + }); + } + async traverseHistory(delta) { + await this.#session.send('browsingContext.traverseHistory', { + context: this.id, + delta, + }); + } + async navigate(url, wait) { + await this.#session.send('browsingContext.navigate', { + context: this.id, + url, + wait, + }); + return await new Promise(resolve => { + this.once('navigation', ({ navigation }) => { + resolve(navigation); + }); + }); + } + async reload(options = {}) { + await this.#session.send('browsingContext.reload', { + context: this.id, + ...options, + }); + return await new Promise(resolve => { + this.once('navigation', ({ navigation }) => { + resolve(navigation); + }); + }); + } + async print(options = {}) { + const { result: { data }, } = await this.#session.send('browsingContext.print', { + context: this.id, + ...options, + }); + return data; + } + async handleUserPrompt(options = {}) { + await this.#session.send('browsingContext.handleUserPrompt', { + context: this.id, + ...options, + }); + } + async setViewport(options = {}) { + await this.#session.send('browsingContext.setViewport', { + context: this.id, + ...options, + }); + } + async performActions(actions) { + await this.#session.send('input.performActions', { + context: this.id, + actions, + }); + } + async releaseActions() { + await this.#session.send('input.releaseActions', { + context: this.id, + }); + } + createWindowRealm(sandbox) { + return WindowRealm.from(this, sandbox); + } + async addPreloadScript(functionDeclaration, options = {}) { + return await this.userContext.browser.addPreloadScript(functionDeclaration, { + ...options, + contexts: [this, ...(options.contexts ?? [])], + }); + } + async removePreloadScript(script) { + await this.userContext.browser.removePreloadScript(script); + } + [(_dispose_decorators = [inertIfDisposed], _activate_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _captureScreenshot_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _close_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _traverseHistory_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _navigate_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _reload_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _print_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _handleUserPrompt_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _setViewport_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _performActions_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _releaseActions_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _createWindowRealm_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _addPreloadScript_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _removePreloadScript_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], disposeSymbol)]() { + this.#reason ??= + 'Browsing context already closed, probably because the user context closed.'; + this.emit('closed', { reason: this.#reason }); + this.#disposables.dispose(); + super[disposeSymbol](); + } + }; +})(); +export { BrowsingContext }; +//# sourceMappingURL=BrowsingContext.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map new file mode 100644 index 00000000..26d7d548 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BrowsingContext.js","sourceRoot":"","sources":["../../../../../src/bidi/core/BrowsingContext.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,eAAe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AO,CAAC,EAAE;gBAC1C,wCAAwC;gBACxC,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,iCAQD,eAAe,CAAkB,OAAO,CAAC,EAAE;gBAC1C,wCAAwC;gBACxC,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,oCAOD,eAAe,CAAkB,OAAO,CAAC,EAAE;gBAC1C,wCAAwC;gBACxC,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,mCAKD,eAAe,CAAkB,OAAO,CAAC,EAAE;gBAC1C,wCAAwC;gBACxC,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,sCAcD,eAAe,CAAkB,OAAO,CAAC,EAAE;gBAC1C,wCAAwC;gBACxC,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,GAKD,aAAa,EAAC;YACb,IAAI,CAAC,OAAO;gBACV,4EAA4E,CAAC;YAC/E,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAC,CAAC,CAAC;YAE5C,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;YAC5B,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;QACzB,CAAC;;;SA3ZU,eAAe"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.d.ts new file mode 100644 index 00000000..b9ec97f1 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.d.ts @@ -0,0 +1,140 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import type { EventEmitter } from '../../common/EventEmitter.js'; +/** + * @internal + */ +export interface Commands { + 'script.evaluate': { + params: Bidi.Script.EvaluateParameters; + returnType: Bidi.Script.EvaluateResult; + }; + 'script.callFunction': { + params: Bidi.Script.CallFunctionParameters; + returnType: Bidi.Script.EvaluateResult; + }; + 'script.disown': { + params: Bidi.Script.DisownParameters; + returnType: Bidi.EmptyResult; + }; + 'script.addPreloadScript': { + params: Bidi.Script.AddPreloadScriptParameters; + returnType: Bidi.Script.AddPreloadScriptResult; + }; + 'script.removePreloadScript': { + params: Bidi.Script.RemovePreloadScriptParameters; + returnType: Bidi.EmptyResult; + }; + 'browser.close': { + params: Bidi.EmptyParams; + returnType: Bidi.EmptyResult; + }; + 'browser.createUserContext': { + params: Bidi.EmptyParams; + returnType: Bidi.Browser.CreateUserContextResult; + }; + 'browser.getUserContexts': { + params: Bidi.EmptyParams; + returnType: Bidi.Browser.GetUserContextsResult; + }; + 'browser.removeUserContext': { + params: { + userContext: Bidi.Browser.UserContext; + }; + returnType: Bidi.Browser.RemoveUserContext; + }; + 'browsingContext.activate': { + params: Bidi.BrowsingContext.ActivateParameters; + returnType: Bidi.EmptyResult; + }; + 'browsingContext.create': { + params: Bidi.BrowsingContext.CreateParameters; + returnType: Bidi.BrowsingContext.CreateResult; + }; + 'browsingContext.close': { + params: Bidi.BrowsingContext.CloseParameters; + returnType: Bidi.EmptyResult; + }; + 'browsingContext.getTree': { + params: Bidi.BrowsingContext.GetTreeParameters; + returnType: Bidi.BrowsingContext.GetTreeResult; + }; + 'browsingContext.navigate': { + params: Bidi.BrowsingContext.NavigateParameters; + returnType: Bidi.BrowsingContext.NavigateResult; + }; + 'browsingContext.reload': { + params: Bidi.BrowsingContext.ReloadParameters; + returnType: Bidi.BrowsingContext.NavigateResult; + }; + 'browsingContext.print': { + params: Bidi.BrowsingContext.PrintParameters; + returnType: Bidi.BrowsingContext.PrintResult; + }; + 'browsingContext.captureScreenshot': { + params: Bidi.BrowsingContext.CaptureScreenshotParameters; + returnType: Bidi.BrowsingContext.CaptureScreenshotResult; + }; + 'browsingContext.handleUserPrompt': { + params: Bidi.BrowsingContext.HandleUserPromptParameters; + returnType: Bidi.EmptyResult; + }; + 'browsingContext.setViewport': { + params: Bidi.BrowsingContext.SetViewportParameters; + returnType: Bidi.EmptyResult; + }; + 'browsingContext.traverseHistory': { + params: Bidi.BrowsingContext.TraverseHistoryParameters; + returnType: Bidi.EmptyResult; + }; + 'input.performActions': { + params: Bidi.Input.PerformActionsParameters; + returnType: Bidi.EmptyResult; + }; + 'input.releaseActions': { + params: Bidi.Input.ReleaseActionsParameters; + returnType: Bidi.EmptyResult; + }; + 'session.end': { + params: Bidi.EmptyParams; + returnType: Bidi.EmptyResult; + }; + 'session.new': { + params: Bidi.Session.NewParameters; + returnType: Bidi.Session.NewResult; + }; + 'session.status': { + params: object; + returnType: Bidi.Session.StatusResult; + }; + 'session.subscribe': { + params: Bidi.Session.SubscriptionRequest; + returnType: Bidi.EmptyResult; + }; + 'session.unsubscribe': { + params: Bidi.Session.SubscriptionRequest; + returnType: Bidi.EmptyResult; + }; +} +/** + * @internal + */ +export type BidiEvents = { + [K in Bidi.ChromiumBidi.Event['method']]: Extract['params']; +}; +/** + * @internal + */ +export interface Connection extends EventEmitter { + send(method: T, params: Commands[T]['params']): Promise<{ + result: Commands[T]['returnType']; + }>; + pipeTo(emitter: EventEmitter): void; +} +//# sourceMappingURL=Connection.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.d.ts.map new file mode 100644 index 00000000..176d579f --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Connection.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/Connection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,KAAK,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I,CAAC,WAAW,CAAC;KAC9B,CAAC;CACH;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;KACtB,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,OAAO,CAC/C,IAAI,CAAC,YAAY,CAAC,KAAK,EACvB;QAAC,MAAM,EAAE,CAAC,CAAA;KAAC,CACZ,CAAC,QAAQ,CAAC;CACZ,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,UAAU,CAAC,MAAM,SAAS,UAAU,GAAG,UAAU,CAChE,SAAQ,YAAY,CAAC,MAAM,CAAC;IAC5B,IAAI,CAAC,CAAC,SAAS,MAAM,QAAQ,EAC3B,MAAM,EAAE,CAAC,EACT,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAC5B,OAAO,CAAC;QAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAA;KAAC,CAAC,CAAC;IAGhD,MAAM,CAAC,MAAM,SAAS,UAAU,EAAE,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACxE"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.js new file mode 100644 index 00000000..8fd1941d --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.js @@ -0,0 +1,7 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +export {}; +//# sourceMappingURL=Connection.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.js.map new file mode 100644 index 00000000..b92460bc --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Connection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../../../src/bidi/core/Connection.ts"],"names":[],"mappings":"AAAA;;;;GAIG"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.d.ts new file mode 100644 index 00000000..a002c6a7 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.d.ts @@ -0,0 +1,38 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import { EventEmitter } from '../../common/EventEmitter.js'; +import { disposeSymbol } from '../../util/disposable.js'; +import type { BrowsingContext } from './BrowsingContext.js'; +import type { Request } from './Request.js'; +/** + * @internal + */ +export interface NavigationInfo { + url: string; + timestamp: Date; +} +/** + * @internal + */ +export declare class Navigation extends EventEmitter<{ + /** Emitted when navigation has a request associated with it. */ + request: Request; + /** Emitted when fragment navigation occurred. */ + fragment: NavigationInfo; + /** Emitted when navigation failed. */ + failed: NavigationInfo; + /** Emitted when navigation was aborted. */ + aborted: NavigationInfo; +}> { + #private; + static from(context: BrowsingContext): Navigation; + private constructor(); + get disposed(): boolean; + get request(): Request | undefined; + private dispose; + [disposeSymbol](): void; +} +//# sourceMappingURL=Navigation.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.d.ts.map new file mode 100644 index 00000000..3b91bdfd --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Navigation.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/Navigation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAG1D,OAAO,EAAkB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAExE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,IAAI,CAAC;CACjB;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,YAAY,CAAC;IAC3C,gEAAgE;IAChE,OAAO,EAAE,OAAO,CAAC;IACjB,iDAAiD;IACjD,QAAQ,EAAE,cAAc,CAAC;IACzB,sCAAsC;IACtC,MAAM,EAAE,cAAc,CAAC;IACvB,2CAA2C;IAC3C,OAAO,EAAE,cAAc,CAAC;CACzB,CAAC;;IACA,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,eAAe,GAAG,UAAU;IAajD,OAAO;IA8EP,IAAI,QAAQ,IAAI,OAAO,CAEtB;IACD,IAAI,OAAO,IAAI,OAAO,GAAG,SAAS,CAEjC;IAID,OAAO,CAAC,OAAO;IAIf,CAAC,aAAa,CAAC,IAAI,IAAI;CAIxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.js new file mode 100644 index 00000000..1cc53bff --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.js @@ -0,0 +1,154 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { inertIfDisposed } from '../../util/decorators.js'; +import { Deferred } from '../../util/Deferred.js'; +import { DisposableStack, disposeSymbol } from '../../util/disposable.js'; +/** + * @internal + */ +let Navigation = (() => { + let _classSuper = EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + return class Navigation extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + static from(context) { + const navigation = new Navigation(context); + navigation.#initialize(); + return navigation; + } + // keep-sorted start + #request = (__runInitializers(this, _instanceExtraInitializers), void 0); + #browsingContext; + #disposables = new DisposableStack(); + #id = new Deferred(); + // keep-sorted end + constructor(context) { + super(); + // keep-sorted start + this.#browsingContext = context; + // keep-sorted end + } + #initialize() { + const browsingContextEmitter = this.#disposables.use(new EventEmitter(this.#browsingContext)); + browsingContextEmitter.once('closed', () => { + this.emit('failed', { + url: this.#browsingContext.url, + timestamp: new Date(), + }); + this.dispose(); + }); + this.#browsingContext.on('request', ({ request }) => { + if (request.navigation === this.#id.value()) { + this.#request = request; + this.emit('request', request); + } + }); + const sessionEmitter = this.#disposables.use(new EventEmitter(this.#session)); + // To get the navigation ID if any. + for (const eventName of [ + 'browsingContext.domContentLoaded', + 'browsingContext.load', + ]) { + sessionEmitter.on(eventName, info => { + if (info.context !== this.#browsingContext.id) { + return; + } + if (!info.navigation) { + return; + } + if (!this.#id.resolved()) { + this.#id.resolve(info.navigation); + } + }); + } + for (const [eventName, event] of [ + ['browsingContext.fragmentNavigated', 'fragment'], + ['browsingContext.navigationFailed', 'failed'], + ['browsingContext.navigationAborted', 'aborted'], + ]) { + sessionEmitter.on(eventName, info => { + if (info.context !== this.#browsingContext.id) { + return; + } + if (!info.navigation) { + return; + } + if (!this.#id.resolved()) { + this.#id.resolve(info.navigation); + } + if (this.#id.value() !== info.navigation) { + return; + } + this.emit(event, { + url: info.url, + timestamp: new Date(info.timestamp), + }); + this.dispose(); + }); + } + } + // keep-sorted start block=yes + get #session() { + return this.#browsingContext.userContext.browser.session; + } + get disposed() { + return this.#disposables.disposed; + } + get request() { + return this.#request; + } + // keep-sorted end + dispose() { + this[disposeSymbol](); + } + [(_dispose_decorators = [inertIfDisposed], disposeSymbol)]() { + this.#disposables.dispose(); + super[disposeSymbol](); + } + }; +})(); +export { Navigation }; +//# sourceMappingURL=Navigation.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.js.map new file mode 100644 index 00000000..89e3bd95 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Navigation.js","sourceRoot":"","sources":["../../../../../src/bidi/core/Navigation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAaxE;;GAEG;IACU,UAAU;sBAAS,YAAY;;;iBAA/B,UAAW,SAAQ,WAS9B;;;YAqGA,wKAAQ,OAAO,6DAEd;;;QAtGD,MAAM,CAAC,IAAI,CAAC,OAAwB;YAClC,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC;YAC3C,UAAU,CAAC,WAAW,EAAE,CAAC;YACzB,OAAO,UAAU,CAAC;QACpB,CAAC;QAED,oBAAoB;QACpB,QAAQ,iEAAsB;QACrB,gBAAgB,CAAkB;QAClC,YAAY,GAAG,IAAI,eAAe,EAAE,CAAC;QACrC,GAAG,GAAG,IAAI,QAAQ,EAAU,CAAC;QACtC,kBAAkB;QAElB,YAAoB,OAAwB;YAC1C,KAAK,EAAE,CAAC;YACR,oBAAoB;YACpB,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC;YAChC,kBAAkB;QACpB,CAAC;QAED,WAAW;YACT,MAAM,sBAAsB,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAClD,IAAI,YAAY,CA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QACvB,CAAC;QACD,kBAAkB;QAGV,OAAO;YACb,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC;QACxB,CAAC;QAED,yBALC,eAAe,GAKf,aAAa,EAAC;YACb,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;YAC5B,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;QACzB,CAAC;;;SArHU,UAAU"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.d.ts new file mode 100644 index 00000000..1a2daf39 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.d.ts @@ -0,0 +1,86 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { DisposableStack, disposeSymbol } from '../../util/disposable.js'; +import type { BrowsingContext } from './BrowsingContext.js'; +import type { Session } from './Session.js'; +/** + * @internal + */ +export type CallFunctionOptions = Omit; +/** + * @internal + */ +export type EvaluateOptions = Omit; +/** + * @internal + */ +export declare abstract class Realm extends EventEmitter<{ + /** Emitted when the realm is destroyed. */ + destroyed: { + reason: string; + }; + /** Emitted when a dedicated worker is created in the realm. */ + worker: DedicatedWorkerRealm; + /** Emitted when a shared worker is created in the realm. */ + sharedworker: SharedWorkerRealm; +}> { + #private; + protected readonly disposables: DisposableStack; + readonly id: string; + readonly origin: string; + protected constructor(id: string, origin: string); + protected initialize(): void; + get disposed(): boolean; + protected abstract get session(): Session; + protected get target(): Bidi.Script.Target; + protected dispose(reason?: string): void; + disown(handles: string[]): Promise; + callFunction(functionDeclaration: string, awaitPromise: boolean, options?: CallFunctionOptions): Promise; + evaluate(expression: string, awaitPromise: boolean, options?: EvaluateOptions): Promise; + [disposeSymbol](): void; +} +/** + * @internal + */ +export declare class WindowRealm extends Realm { + #private; + static from(context: BrowsingContext, sandbox?: string): WindowRealm; + readonly browsingContext: BrowsingContext; + readonly sandbox?: string; + private constructor(); + initialize(): void; + get session(): Session; + get target(): Bidi.Script.Target; +} +/** + * @internal + */ +export type DedicatedWorkerOwnerRealm = DedicatedWorkerRealm | SharedWorkerRealm | WindowRealm; +/** + * @internal + */ +export declare class DedicatedWorkerRealm extends Realm { + #private; + static from(owner: DedicatedWorkerOwnerRealm, id: string, origin: string): DedicatedWorkerRealm; + readonly owners: Set; + private constructor(); + initialize(): void; + get session(): Session; +} +/** + * @internal + */ +export declare class SharedWorkerRealm extends Realm { + #private; + static from(owners: [WindowRealm, ...WindowRealm[]], id: string, origin: string): SharedWorkerRealm; + readonly owners: Set; + private constructor(); + initialize(): void; + get session(): Session; +} +//# sourceMappingURL=Realm.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.d.ts.map new file mode 100644 index 00000000..e673a37d --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Realm.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/Realm.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAExE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,IAAI,CAAC,MAAM,C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realm.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.js new file mode 100644 index 00000000..b87057ef --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.js @@ -0,0 +1,291 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { inertIfDisposed, throwIfDisposed } from '../../util/decorators.js'; +import { DisposableStack, disposeSymbol } from '../../util/disposable.js'; +/** + * @internal + */ +let Realm = (() => { + let _classSuper = EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + let _disown_decorators; + let _callFunction_decorators; + let _evaluate_decorators; + return class Realm extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _disown_decorators, { kind: "method", name: "disown", static: false, private: false, access: { has: obj => "disown" in obj, get: obj => obj.disown }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _callFunction_decorators, { kind: "method", name: "callFunction", static: false, private: false, access: { has: obj => "callFunction" in obj, get: obj => obj.callFunction }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _evaluate_decorators, { kind: "method", name: "evaluate", static: false, private: false, access: { has: obj => "evaluate" in obj, get: obj => obj.evaluate }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + // keep-sorted start + #reason = (__runInitializers(this, _instanceExtraInitializers), void 0); + disposables = new DisposableStack(); + id; + origin; + // keep-sorted end + constructor(id, origin) { + super(); + // keep-sorted start + this.id = id; + this.origin = origin; + // keep-sorted end + } + initialize() { + const sessionEmitter = this.disposables.use(new EventEmitter(this.session)); + sessionEmitter.on('script.realmDestroyed', info => { + if (info.realm !== this.id) { + return; + } + this.dispose('Realm already destroyed.'); + }); + } + // keep-sorted start block=yes + get disposed() { + return this.#reason !== undefined; + } + get target() { + return { realm: this.id }; + } + // keep-sorted end + dispose(reason) { + this.#reason = reason; + this[disposeSymbol](); + } + async disown(handles) { + await this.session.send('script.disown', { + target: this.target, + handles, + }); + } + async callFunction(functionDeclaration, awaitPromise, options = {}) { + const { result } = await this.session.send('script.callFunction', { + functionDeclaration, + awaitPromise, + target: this.target, + ...options, + }); + return result; + } + async evaluate(expression, awaitPromise, options = {}) { + const { result } = await this.session.send('script.evaluate', { + expression, + awaitPromise, + target: this.target, + ...options, + }); + return result; + } + [(_dispose_decorators = [inertIfDisposed], _disown_decorators = [throwIfDisposed(realm => { + // SAFETY: Disposal implies this exists. + return realm.#reason; + })], _callFunction_decorators = [throwIfDisposed(realm => { + // SAFETY: Disposal implies this exists. + return realm.#reason; + })], _evaluate_decorators = [throwIfDisposed(realm => { + // SAFETY: Disposal implies this exists. + return realm.#reason; + })], disposeSymbol)]() { + this.#reason ??= + 'Realm already destroyed, probably because all associated browsing contexts closed.'; + this.emit('destroyed', { reason: this.#reason }); + this.disposables.dispose(); + super[disposeSymbol](); + } + }; +})(); +export { Realm }; +/** + * @internal + */ +export class WindowRealm extends Realm { + static from(context, sandbox) { + const realm = new WindowRealm(context, sandbox); + realm.initialize(); + return realm; + } + // keep-sorted start + browsingContext; + sandbox; + // keep-sorted end + #workers = { + dedicated: new Map(), + shared: new Map(), + }; + constructor(context, sandbox) { + super('', ''); + // keep-sorted start + this.browsingContext = context; + this.sandbox = sandbox; + // keep-sorted end + } + initialize() { + super.initialize(); + const sessionEmitter = this.disposables.use(new EventEmitter(this.session)); + sessionEmitter.on('script.realmCreated', info => { + if (info.type !== 'window') { + return; + } + this.id = info.realm; + this.origin = info.origin; + }); + sessionEmitter.on('script.realmCreated', info => { + if (info.type !== 'dedicated-worker') { + return; + } + if (!info.owners.includes(this.id)) { + return; + } + const realm = DedicatedWorkerRealm.from(this, info.realm, info.origin); + this.#workers.dedicated.set(realm.id, realm); + const realmEmitter = this.disposables.use(new EventEmitter(realm)); + realmEmitter.once('destroyed', () => { + realmEmitter.removeAllListeners(); + this.#workers.dedicated.delete(realm.id); + }); + this.emit('worker', realm); + }); + this.browsingContext.userContext.browser.on('sharedworker', ({ realm }) => { + if (!realm.owners.has(this)) { + return; + } + this.#workers.shared.set(realm.id, realm); + const realmEmitter = this.disposables.use(new EventEmitter(realm)); + realmEmitter.once('destroyed', () => { + realmEmitter.removeAllListeners(); + this.#workers.shared.delete(realm.id); + }); + this.emit('sharedworker', realm); + }); + } + get session() { + return this.browsingContext.userContext.browser.session; + } + get target() { + return { context: this.browsingContext.id, sandbox: this.sandbox }; + } +} +/** + * @internal + */ +export class DedicatedWorkerRealm extends Realm { + static from(owner, id, origin) { + const realm = new DedicatedWorkerRealm(owner, id, origin); + realm.initialize(); + return realm; + } + // keep-sorted start + #workers = new Map(); + owners; + // keep-sorted end + constructor(owner, id, origin) { + super(id, origin); + this.owners = new Set([owner]); + } + initialize() { + super.initialize(); + const sessionEmitter = this.disposables.use(new EventEmitter(this.session)); + sessionEmitter.on('script.realmCreated', info => { + if (info.type !== 'dedicated-worker') { + return; + } + if (!info.owners.includes(this.id)) { + return; + } + const realm = DedicatedWorkerRealm.from(this, info.realm, info.origin); + this.#workers.set(realm.id, realm); + const realmEmitter = this.disposables.use(new EventEmitter(realm)); + realmEmitter.once('destroyed', () => { + this.#workers.delete(realm.id); + }); + this.emit('worker', realm); + }); + } + get session() { + // SAFETY: At least one owner will exist. + return this.owners.values().next().value.session; + } +} +/** + * @internal + */ +export class SharedWorkerRealm extends Realm { + static from(owners, id, origin) { + const realm = new SharedWorkerRealm(owners, id, origin); + realm.initialize(); + return realm; + } + // keep-sorted start + #workers = new Map(); + owners; + // keep-sorted end + constructor(owners, id, origin) { + super(id, origin); + this.owners = new Set(owners); + } + initialize() { + super.initialize(); + const sessionEmitter = this.disposables.use(new EventEmitter(this.session)); + sessionEmitter.on('script.realmCreated', info => { + if (info.type !== 'dedicated-worker') { + return; + } + if (!info.owners.includes(this.id)) { + return; + } + const realm = DedicatedWorkerRealm.from(this, info.realm, info.origin); + this.#workers.set(realm.id, realm); + const realmEmitter = this.disposables.use(new EventEmitter(realm)); + realmEmitter.once('destroyed', () => { + this.#workers.delete(realm.id); + }); + this.emit('worker', realm); + }); + } + get session() { + // SAFETY: At least one owner will exist. + return this.owners.values().next().value.session; + } +} +//# sourceMappingURL=Realm.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.js.map new file mode 100644 index 00000000..56b4333d --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Realm.js","sourceRoot":"","sources":["../../../../../src/bidi/core/Realm.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,eAAe,EAAE,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAqBxE;;GAEG;IACmB,KAAK;sBAAS,YAAY;;;;;;iBAA1B,KAAM,SAAQ,WAOlC;;;YAqCA,wKAAU,OAAO,6DAGhB;YAMD,qKAAM,MAAM,6DAKX;YAMD,uLAAM,YAAY,6DAYjB;YAMD,2KAAM,QAAQ,6DAYb;;;QAtFD,oBAAoB;QACpB,OAAO,iEAAU;QACE,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC9C,EAAE,CAAS;QACX,MAAM,CAAS;QACxB,kBAAkB;QAElB,YAAsB,EAAU,EAAE,MAAc;YAC9C,KAAK,EAAE,CAAC;YACR,oBAAoB;YACpB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;YACb,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;YACrB,kBAAkB;QACpB,CAAC;QAES,UAAU;YAClB,MAAM,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,YAAY,CAAC,IAAI,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AC;YACD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;gBACnC,OAAO;YACT,CAAC;YAED,MAAM,KAAK,GAAG,oBAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YACvE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;YAEnC,MAAM,YAAY,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;YACnE,YAAY,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE;gBAClC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YACjC,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;IACL,CAAC;IAED,IAAa,OAAO;QAClB,yCAAyC;QACzC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;IACnD,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.d.ts new file mode 100644 index 00000000..7ef33da2 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.d.ts @@ -0,0 +1,37 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { disposeSymbol } from '../../util/disposable.js'; +import type { BrowsingContext } from './BrowsingContext.js'; +/** + * @internal + */ +export declare class Request extends EventEmitter<{ + /** Emitted when the request is redirected. */ + redirect: Request; + /** Emitted when the request succeeds. */ + success: Bidi.Network.ResponseData; + /** Emitted when the request fails. */ + error: string; +}> { + #private; + static from(browsingContext: BrowsingContext, event: Bidi.Network.BeforeRequestSentParameters): Request; + private constructor(); + get disposed(): boolean; + get error(): string | undefined; + get headers(): Bidi.Network.Header[]; + get id(): string; + get initiator(): Bidi.Network.Initiator; + get method(): string; + get navigation(): string | undefined; + get redirect(): Request | undefined; + get response(): Bidi.Network.ResponseData | undefined; + get url(): string; + private dispose; + [disposeSymbol](): void; +} +//# sourceMappingURL=Request.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.d.ts.map new file mode 100644 index 00000000..eda9b897 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/Request.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAkB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAExE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAE1D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,YAAY,CAAC;IACxC,8CAA8C;IAC9C,QAAQ,EAAE,OAAO,CAAC;IAClB,yCAAyC;IACzC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;IACnC,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;;IACA,MAAM,CAAC,IAAI,CACT,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,2BAA2B,GAC9C,OAAO;IAeV,OAAO;IA+DP,IAAI,QAAQ,IAAI,OAAO,CAEtB;IACD,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;IACD,IAAI,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAEnC;IACD,IAAI,EAAE,IAAI,MAAM,CAEf;IACD,IAAI,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAEtC;IACD,IAAI,MAAM,IAAI,MAAM,CAEnB;IACD,IAAI,UAAU,IAAI,MAAM,GAAG,SAAS,CAEnC;IACD,IAAI,QAAQ,IAAI,OAAO,GAAG,SAAS,CAElC;IACD,IAAI,QAAQ,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,GAAG,SAAS,CAEpD;IACD,IAAI,GAAG,IAAI,MAAM,CAEhB;IAID,OAAO,CAAC,OAAO;IAIf,CAAC,aAAa,CAAC,IAAI,IAAI;CAIxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.js new file mode 100644 index 00000000..829fa2df --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.js @@ -0,0 +1,164 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { inertIfDisposed } from '../../util/decorators.js'; +import { DisposableStack, disposeSymbol } from '../../util/disposable.js'; +/** + * @internal + */ +let Request = (() => { + var _a; + let _classSuper = EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + return class Request extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + static from(browsingContext, event) { + const request = new Request(browsingContext, event); + request.#initialize(); + return request; + } + // keep-sorted start + #error = (__runInitializers(this, _instanceExtraInitializers), void 0); + #redirect; + #response; + #browsingContext; + #disposables = new DisposableStack(); + #event; + // keep-sorted end + constructor(browsingContext, event) { + super(); + // keep-sorted start + this.#browsingContext = browsingContext; + this.#event = event; + // keep-sorted end + } + #initialize() { + const browsingContextEmitter = this.#disposables.use(new EventEmitter(this.#browsingContext)); + browsingContextEmitter.once('closed', ({ reason }) => { + this.#error = reason; + this.emit('error', this.#error); + this.dispose(); + }); + const sessionEmitter = this.#disposables.use(new EventEmitter(this.#session)); + sessionEmitter.on('network.beforeRequestSent', event => { + if (event.context !== this.#browsingContext.id) { + return; + } + if (event.request.request !== this.id) { + return; + } + this.#redirect = Request.from(this.#browsingContext, event); + this.emit('redirect', this.#redirect); + this.dispose(); + }); + sessionEmitter.on('network.fetchError', event => { + if (event.context !== this.#browsingContext.id) { + return; + } + if (event.request.request !== this.id) { + return; + } + this.#error = event.errorText; + this.emit('error', this.#error); + this.dispose(); + }); + sessionEmitter.on('network.responseCompleted', event => { + if (event.context !== this.#browsingContext.id) { + return; + } + if (event.request.request !== this.id) { + return; + } + this.#response = event.response; + this.emit('success', this.#response); + this.dispose(); + }); + } + // keep-sorted start block=yes + get #session() { + return this.#browsingContext.userContext.browser.session; + } + get disposed() { + return this.#disposables.disposed; + } + get error() { + return this.#error; + } + get headers() { + return this.#event.request.headers; + } + get id() { + return this.#event.request.request; + } + get initiator() { + return this.#event.initiator; + } + get method() { + return this.#event.request.method; + } + get navigation() { + return this.#event.navigation ?? undefined; + } + get redirect() { + return this.redirect; + } + get response() { + return this.#response; + } + get url() { + return this.#event.request.url; + } + // keep-sorted end + dispose() { + this[disposeSymbol](); + } + [(_dispose_decorators = [inertIfDisposed], disposeSymbol)]() { + this.#disposables.dispose(); + super[disposeSymbol](); + } + }; +})(); +export { Request }; +//# sourceMappingURL=Request.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.js.map new file mode 100644 index 00000000..1b434309 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../../src/bidi/core/Request.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAIxE;;GAEG;IACU,OAAO;;sBAAS,YAAY;;;iBAA5B,OAAQ,SAAQ,WAO3B;;;YAmHA,wKAAQ,OAAO,6DAEd;;;QApHD,MAAM,CAAC,IAAI,CACT,eAAgC,EAChC,KAA+C;YAE/C,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;YACpD,OAAO,CAAC,WAAW,EAAE,CAAC;YACtB,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,oBAAoB;QACpB,MAAM,iEAAU;QAChB,SAAS,CAAW;QACpB,SAAS,CAA6B;QAC7B,gBAAgB,CAAkB;QAClC,YAAY,GAAG,IAAI,eAAe,EAAE,CAAC;QACrC,MAAM,CAA2C;QAC1D,kBAAkB;QAElB,YACE,eAAgC,EAChC,KAA+C;YAE/C,KAAK,EAAE,CAAC;YACR,oBAAoB;YACpB,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;YACxC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;YACpB,kBAAkB;QACpB,CAAC;QAED,WAAW;YACT,MAAM,sBAAsB,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAClD,IAAI,YAAY,CAAC,IAAI,CAAC,gBAAgB,CAAC,CACxC,CAAC;YACF,sBAAsB,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE;gBACjD,IAAI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QAAQ,CAAC;QACvB,CAAC;QACD,IAAI,QAAQ;YACV,OAAO,IAAI,CAAC,SAAS,CAAC;QACxB,CAAC;QACD,IAAI,GAAG;YACL,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;QACjC,CAAC;QACD,kBAAkB;QAGV,OAAO;YACb,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC;QACxB,CAAC;QAED,yBALC,eAAe,GAKf,aAAa,EAAC;YACb,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;YAC5B,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;QACzB,CAAC;;;SAjIU,OAAO"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.d.ts new file mode 100644 index 00000000..dc993e30 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.d.ts @@ -0,0 +1,48 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { disposeSymbol } from '../../util/disposable.js'; +import { Browser } from './Browser.js'; +import type { BidiEvents, Commands, Connection } from './Connection.js'; +/** + * @internal + */ +export declare class Session extends EventEmitter implements Connection { + #private; + static from(connection: Connection, capabilities: Bidi.Session.CapabilitiesRequest): Promise; + readonly browser: Browser; + readonly connection: Connection; + private constructor(); + get capabilities(): Bidi.Session.NewResult['capabilities']; + get disposed(): boolean; + get ended(): boolean; + get id(): string; + private dispose; + pipeTo(emitter: EventEmitter): void; + /** + * Currently, there is a 1:1 relationship between the session and the + * session. In the future, we might support multiple sessions and in that + * case we always needs to make sure that the session for the right session + * object is used, so we implement this method here, although it's not defined + * in the spec. + */ + send(method: T, params: Commands[T]['params']): Promise<{ + result: Commands[T]['returnType']; + }>; + subscribe(events: string[]): Promise; + end(): Promise; + [disposeSymbol](): void; +} +//# sourceMappingURL=Session.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.d.ts.map new file mode 100644 index 00000000..f25d85b5 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/Session.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAG1D,OAAO,EAAkB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAExE,OAAO,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,EAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAKtE;;GAEG;AACH,qBAAa,OACX,SAAQ,YAAY,CAAC,UAAU,GAAG;IAAC,KAAK,EAAE;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,CAAA;CAAC,CAC3D,YAAW,UAAU,CAAC,UAAU,GAAG;IAAC,KAAK,EAAE;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,CAAA;CAAC,CAAC;;WAEhD,IAAI,CACf,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,mBAAmB,GAC7C,OAAO,CAAC,OAAO,CAAC;IAqDnB,QAAQ,CAAC,OAAO,EAAG,OAAO,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAGhC,OAAO;IAqBP,IAAI,YAAY,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,cAAc,CAAC,CAEzD;IACD,IAAI,QAAQ,IAAI,OAAO,CAEtB;IACD,IAAI,KAAK,IAAI,OAAO,CAEnB;IACD,IAAI,EAAE,IAAI,MAAM,CAEf;IAID,OAAO,CAAC,OAAO;IAKf,MAAM,CAAC,MAAM,SAAS,UAAU,EAAE,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,IAAI;IAItE;;;;;;OAMG;IAKG,IAAI,CAAC,CAAC,SAAS,MAAM,QAAQ,EACjC,MAAM,EAAE,CAAC,EACT,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAC5B,OAAO,CAAC;QAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAA;KAAC,CAAC;IAQzC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAU1C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ1B,CAAC,aAAa,CAAC,IAAI,IAAI;CAQxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.js new file mode 100644 index 00000000..1ae01af7 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.js @@ -0,0 +1,196 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { debugError } from '../../common/util.js'; +import { inertIfDisposed, throwIfDisposed } from '../../util/decorators.js'; +import { DisposableStack, disposeSymbol } from '../../util/disposable.js'; +import { Browser } from './Browser.js'; +// TODO: Once Chrome supports session.status properly, uncomment this block. +// const MAX_RETRIES = 5; +/** + * @internal + */ +let Session = (() => { + let _classSuper = EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + let _send_decorators; + let _subscribe_decorators; + let _end_decorators; + return class Session extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _send_decorators, { kind: "method", name: "send", static: false, private: false, access: { has: obj => "send" in obj, get: obj => obj.send }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _subscribe_decorators, { kind: "method", name: "subscribe", static: false, private: false, access: { has: obj => "subscribe" in obj, get: obj => obj.subscribe }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _end_decorators, { kind: "method", name: "end", static: false, private: false, access: { has: obj => "end" in obj, get: obj => obj.end }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + static async from(connection, capabilities) { + // Wait until the session is ready. + // + // TODO: Once Chrome supports session.status properly, uncomment this block + // and remove `getBiDiConnection` in BrowserConnector. + // let status = {message: '', ready: false}; + // for (let i = 0; i < MAX_RETRIES; ++i) { + // status = (await connection.send('session.status', {})).result; + // if (status.ready) { + // break; + // } + // // Backoff a little bit each time. + // await new Promise(resolve => { + // return setTimeout(resolve, (1 << i) * 100); + // }); + // } + // if (!status.ready) { + // throw new Error(status.message); + // } + let result; + try { + result = (await connection.send('session.new', { + capabilities, + })).result; + } + catch (err) { + // Chrome does not support session.new. + debugError(err); + result = { + sessionId: '', + capabilities: { + acceptInsecureCerts: false, + browserName: '', + browserVersion: '', + platformName: '', + setWindowRect: false, + webSocketUrl: '', + }, + }; + } + const session = new Session(connection, result); + await session.#initialize(); + return session; + } + // keep-sorted start + #reason = (__runInitializers(this, _instanceExtraInitializers), void 0); + #disposables = new DisposableStack(); + #info; + browser; + connection; + // keep-sorted end + constructor(connection, info) { + super(); + // keep-sorted start + this.#info = info; + this.connection = connection; + // keep-sorted end + } + async #initialize() { + this.connection.pipeTo(this); + // SAFETY: We use `any` to allow assignment of the readonly property. + this.browser = await Browser.from(this); + const browserEmitter = this.#disposables.use(this.browser); + browserEmitter.once('closed', ({ reason }) => { + this.dispose(reason); + }); + } + // keep-sorted start block=yes + get capabilities() { + return this.#info.capabilities; + } + get disposed() { + return this.ended; + } + get ended() { + return this.#reason !== undefined; + } + get id() { + return this.#info.sessionId; + } + // keep-sorted end + dispose(reason) { + this.#reason = reason; + this[disposeSymbol](); + } + pipeTo(emitter) { + this.connection.pipeTo(emitter); + } + /** + * Currently, there is a 1:1 relationship between the session and the + * session. In the future, we might support multiple sessions and in that + * case we always needs to make sure that the session for the right session + * object is used, so we implement this method here, although it's not defined + * in the spec. + */ + async send(method, params) { + return await this.connection.send(method, params); + } + async subscribe(events) { + await this.send('session.subscribe', { + events, + }); + } + async end() { + try { + await this.send('session.end', {}); + } + finally { + this.dispose(`Session already ended.`); + } + } + [(_dispose_decorators = [inertIfDisposed], _send_decorators = [throwIfDisposed(session => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return session.#reason; + })], _subscribe_decorators = [throwIfDisposed(session => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return session.#reason; + })], _end_decorators = [throwIfDisposed(session => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return session.#reason; + })], disposeSymbol)]() { + this.#reason ??= + 'Session already destroyed, probably because the connection broke.'; + this.emit('ended', { reason: this.#reason }); + this.#disposables.dispose(); + super[disposeSymbol](); + } + }; +})(); +export { Session }; +//# sourceMappingURL=Session.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.js.map new file mode 100644 index 00000000..7a8c6fb8 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Session.js","sourceRoot":"","sources":["../../../../../src/bidi/core/Session.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,eAAe,EAAE,eAAe,EAAC,M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EAAE,CAAC;QACzB,CAAC;;;SA5JU,OAAO"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.d.ts new file mode 100644 index 00000000..dfec0909 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.d.ts @@ -0,0 +1,50 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { disposeSymbol } from '../../util/disposable.js'; +import type { Browser } from './Browser.js'; +import { BrowsingContext } from './BrowsingContext.js'; +/** + * @internal + */ +export type CreateBrowsingContextOptions = Omit & { + referenceContext?: BrowsingContext; +}; +/** + * @internal + */ +export declare class UserContext extends EventEmitter<{ + /** + * Emitted when a new browsing context is created. + */ + browsingcontext: { + /** The new browsing context. */ + browsingContext: BrowsingContext; + }; + /** + * Emitted when the user context is closed. + */ + closed: { + /** The reason the user context was closed. */ + reason: string; + }; +}> { + #private; + static DEFAULT: string; + static create(browser: Browser, id: string): UserContext; + readonly browser: Browser; + private constructor(); + get browsingContexts(): Iterable; + get closed(): boolean; + get disposed(): boolean; + get id(): string; + private dispose; + createBrowsingContext(type: Bidi.BrowsingContext.CreateType, options?: CreateBrowsingContextOptions): Promise; + remove(): Promise; + [disposeSymbol](): void; +} +//# sourceMappingURL=UserContext.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.d.ts.map new file mode 100644 index 00000000..b1129d37 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"U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AAC;IAwBrB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAU7B,CAAC,aAAa,CAAC,IAAI,IAAI;CAQxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.js new file mode 100644 index 00000000..d8000732 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.js @@ -0,0 +1,165 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { assert } from '../../util/assert.js'; +import { inertIfDisposed, throwIfDisposed } from '../../util/decorators.js'; +import { DisposableStack, disposeSymbol } from '../../util/disposable.js'; +import { BrowsingContext } from './BrowsingContext.js'; +/** + * @internal + */ +let UserContext = (() => { + let _classSuper = EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + let _createBrowsingContext_decorators; + let _remove_decorators; + return class UserContext extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _createBrowsingContext_decorators, { kind: "method", name: "createBrowsingContext", static: false, private: false, access: { has: obj => "createBrowsingContext" in obj, get: obj => obj.createBrowsingContext }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _remove_decorators, { kind: "method", name: "remove", static: false, private: false, access: { has: obj => "remove" in obj, get: obj => obj.remove }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + static DEFAULT = 'default'; + static create(browser, id) { + const context = new UserContext(browser, id); + context.#initialize(); + return context; + } + // keep-sorted start + #reason = (__runInitializers(this, _instanceExtraInitializers), void 0); + // Note these are only top-level contexts. + #browsingContexts = new Map(); + #disposables = new DisposableStack(); + #id; + browser; + // keep-sorted end + constructor(browser, id) { + super(); + // keep-sorted start + this.#id = id; + this.browser = browser; + // keep-sorted end + } + #initialize() { + const browserEmitter = this.#disposables.use(new EventEmitter(this.browser)); + browserEmitter.once('closed', ({ reason }) => { + this.dispose(`User context already closed: ${reason}`); + }); + const sessionEmitter = this.#disposables.use(new EventEmitter(this.#session)); + sessionEmitter.on('browsingContext.contextCreated', info => { + if (info.parent) { + return; + } + if (info.userContext !== this.#id) { + return; + } + const browsingContext = BrowsingContext.from(this, undefined, info.context, info.url); + this.#browsingContexts.set(browsingContext.id, browsingContext); + const browsingContextEmitter = this.#disposables.use(new EventEmitter(browsingContext)); + browsingContextEmitter.on('closed', () => { + browsingContextEmitter.removeAllListeners(); + this.#browsingContexts.delete(browsingContext.id); + }); + this.emit('browsingcontext', { browsingContext }); + }); + } + // keep-sorted start block=yes + get #session() { + return this.browser.session; + } + get browsingContexts() { + return this.#browsingContexts.values(); + } + get closed() { + return this.#reason !== undefined; + } + get disposed() { + return this.closed; + } + get id() { + return this.#id; + } + // keep-sorted end + dispose(reason) { + this.#reason = reason; + this[disposeSymbol](); + } + async createBrowsingContext(type, options = {}) { + const { result: { context: contextId }, } = await this.#session.send('browsingContext.create', { + type, + ...options, + referenceContext: options.referenceContext?.id, + userContext: this.#id, + }); + const browsingContext = this.#browsingContexts.get(contextId); + assert(browsingContext, 'The WebDriver BiDi implementation is failing to create a browsing context correctly.'); + // We use an array to avoid the promise from being awaited. + return browsingContext; + } + async remove() { + try { + await this.#session.send('browser.removeUserContext', { + userContext: this.#id, + }); + } + finally { + this.dispose('User context already closed.'); + } + } + [(_dispose_decorators = [inertIfDisposed], _createBrowsingContext_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], _remove_decorators = [throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason; + })], disposeSymbol)]() { + this.#reason ??= + 'User context already closed, probably because the browser disconnected/closed.'; + this.emit('closed', { reason: this.#reason }); + this.#disposables.dispose(); + super[disposeSymbol](); + } + }; +})(); +export { UserContext }; +//# sourceMappingURL=UserContext.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.js.map new file mode 100644 index 00000000..63074bb9 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UserContext.js","sourceRoot":"","sources":["../../../../../src/bidi/core/UserContext.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,eAAe,EAAE,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAGxE,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAYrD;;GAEG;IACU,WAAW;sBAAS,YAAY;;;;;iBAAhC,WAAY,SAAQ,WAe/B;;;YAsFA,wKAAQ,OAAO,6DAGd;YAMD,kNAAM,qBAAqB,6DAqB1B;YAMD,qKAAM,MAAM,6DAQX;;;QAjID,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;QAE3B,MAAM,CAAC,MAAM,CAAC,OAAgB,EAAE,EAAU;YACxC,MAAM,OAAO,GAAG,IAAI,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YAC7C,OAAO,CAAC,WAAW,EAAE,CAAC;YACtB,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,oBAAoB;QACpB,OAAO,iEAAU;QACjB,0CAA0C;QACjC,iBAAiB,GAAG,IAAI,GAAG,EAA2B,CAAC;QACvD,YAAY,GAAG,IAAI,eAAe,EAAE,CAAC;QACrC,GAAG,CAAS;QACZ,OAAO,CAAU;QAC1B,kBAAkB;QAElB,YAAoB,OAAgB,EAAE,EAAU;YAC9C,KAAK,EAAE,CAAC;YACR,oBAAoB;YACpB,IAA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,QAAQ,CAAC,IAAI,CAAC,2BAA2B,EAAE;oBACpD,WAAW,EAAE,IAAI,CAAC,GAAG;iBACtB,CAAC,CAAC;YACL,CAAC;oBAAS,CAAC;gBACT,IAAI,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC;YAC/C,CAAC;QACH,CAAC;QAED,yBA/CC,eAAe,wCAMf,eAAe,CAAc,OAAO,CAAC,EAAE;gBACtC,wCAAwC;gBACxC,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,yBAwBD,eAAe,CAAc,OAAO,CAAC,EAAE;gBACtC,wCAAwC;gBACxC,OAAO,OAAO,CAAC,OAAQ,CAAC;YAC1B,CAAC,CAAC,GAWD,aAAa,EAAC;YACb,IAAI,CAAC,OAAO;gBACV,gFAAgF,CAAC;YACnF,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAC,CAAC,CAAC;YAE5C,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;YAC5B,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;QACzB,CAAC;;;SA1JU,WAAW"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.d.ts new file mode 100644 index 00000000..cef20ed4 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.d.ts @@ -0,0 +1,43 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { disposeSymbol } from '../../util/disposable.js'; +import type { BrowsingContext } from './BrowsingContext.js'; +/** + * @internal + */ +export type HandleOptions = Omit; +/** + * @internal + */ +export type UserPromptResult = Omit; +/** + * @internal + */ +export declare class UserPrompt extends EventEmitter<{ + /** Emitted when the user prompt is handled. */ + handled: UserPromptResult; + /** Emitted when the user prompt is closed. */ + closed: { + /** The reason the user prompt was closed. */ + reason: string; + }; +}> { + #private; + static from(browsingContext: BrowsingContext, info: Bidi.BrowsingContext.UserPromptOpenedParameters): UserPrompt; + readonly browsingContext: BrowsingContext; + readonly info: Bidi.BrowsingContext.UserPromptOpenedParameters; + private constructor(); + get closed(): boolean; + get disposed(): boolean; + get handled(): boolean; + get result(): UserPromptResult | undefined; + private dispose; + handle(options?: HandleOptions): Promise; + [disposeSymbol](): void; +} +//# sourceMappingURL=UserPrompt.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.d.ts.map new file mode 100644 index 00000000..d16a54ef --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UserPrompt.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/UserPrompt.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAkB,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAExE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,IAAI,CAAC,eAAe,CAAC,0BAA0B,EAC/C,SAAS,CACV,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,IAAI,CAAC,eAAe,CAAC,0BAA0B,EAC/C,SAAS,CACV,CAAC;AAEF;;GAEG;AACH,qBAAa,UAAW,SAAQ,YAAY,CAAC;IAC3C,+CAA+C;IAC/C,OAAO,EAAE,gBAAgB,CAAC;IAC1B,8CAA8C;IAC9C,MAAM,EAAE;QACN,6CAA6C;QAC7C,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;;IACA,MAAM,CAAC,IAAI,CACT,eAAe,EAAE,eAAe,EAChC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,0BAA0B,GACpD,UAAU;IAUb,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,0BAA0B,CAAC;IAG/D,OAAO;IAoCP,IAAI,MAAM,IAAI,OAAO,CAEpB;IACD,IAAI,QAAQ,IAAI,OAAO,CAEtB;IACD,IAAI,OAAO,IAAI,OAAO,CAErB;IACD,IAAI,MAAM,IAAI,gBAAgB,GAAG,SAAS,CAEzC;IAID,OAAO,CAAC,OAAO;IAST,MAAM,CAAC,OAAO,GAAE,aAAkB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IASpE,CAAC,aAAa,CAAC,IAAI,IAAI;CAQxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.js new file mode 100644 index 00000000..fb61296d --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.js @@ -0,0 +1,134 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +import { EventEmitter } from '../../common/EventEmitter.js'; +import { inertIfDisposed, throwIfDisposed } from '../../util/decorators.js'; +import { DisposableStack, disposeSymbol } from '../../util/disposable.js'; +/** + * @internal + */ +let UserPrompt = (() => { + let _classSuper = EventEmitter; + let _instanceExtraInitializers = []; + let _dispose_decorators; + let _handle_decorators; + return class UserPrompt extends _classSuper { + static { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0; + __esDecorate(this, null, _dispose_decorators, { kind: "method", name: "dispose", static: false, private: false, access: { has: obj => "dispose" in obj, get: obj => obj.dispose }, metadata: _metadata }, null, _instanceExtraInitializers); + __esDecorate(this, null, _handle_decorators, { kind: "method", name: "handle", static: false, private: false, access: { has: obj => "handle" in obj, get: obj => obj.handle }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + } + static from(browsingContext, info) { + const userPrompt = new UserPrompt(browsingContext, info); + userPrompt.#initialize(); + return userPrompt; + } + // keep-sorted start + #reason = (__runInitializers(this, _instanceExtraInitializers), void 0); + #result; + #disposables = new DisposableStack(); + browsingContext; + info; + // keep-sorted end + constructor(context, info) { + super(); + // keep-sorted start + this.browsingContext = context; + this.info = info; + // keep-sorted end + } + #initialize() { + const browserContextEmitter = this.#disposables.use(new EventEmitter(this.browsingContext)); + browserContextEmitter.once('closed', ({ reason }) => { + this.dispose(`User prompt already closed: ${reason}`); + }); + const sessionEmitter = this.#disposables.use(new EventEmitter(this.#session)); + sessionEmitter.on('browsingContext.userPromptClosed', parameters => { + if (parameters.context !== this.browsingContext.id) { + return; + } + this.#result = parameters; + this.emit('handled', parameters); + this.dispose('User prompt already handled.'); + }); + } + // keep-sorted start block=yes + get #session() { + return this.browsingContext.userContext.browser.session; + } + get closed() { + return this.#reason !== undefined; + } + get disposed() { + return this.closed; + } + get handled() { + return this.#result !== undefined; + } + get result() { + return this.#result; + } + // keep-sorted end + dispose(reason) { + this.#reason = reason; + this[disposeSymbol](); + } + async handle(options = {}) { + await this.#session.send('browsingContext.handleUserPrompt', { + ...options, + context: this.info.context, + }); + // SAFETY: `handled` is triggered before the above promise resolved. + return this.#result; + } + [(_dispose_decorators = [inertIfDisposed], _handle_decorators = [throwIfDisposed(prompt => { + // SAFETY: Disposal implies this exists. + return prompt.#reason; + })], disposeSymbol)]() { + this.#reason ??= + 'User prompt already closed, probably because the associated browsing context was destroyed.'; + this.emit('closed', { reason: this.#reason }); + this.#disposables.dispose(); + super[disposeSymbol](); + } + }; +})(); +export { UserPrompt }; +//# sourceMappingURL=UserPrompt.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.js.map new file mode 100644 index 00000000..e528dd0c --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UserPrompt.js","sourceRoot":"","sources":["../../../../../src/bidi/core/UserPrompt.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,eAAe,EAAE,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAoBxE;;GAEG;IACU,UAAU;sBAAS,YAAY;;;;iBAA/B,UAAW,SAAQ,WAQ9B;;;YAqEA,wKAAQ,OAAO,6DAGd;YAMD,qKAAM,MAAM,6DAOX;;;QApFD,MAAM,CAAC,IAAI,CACT,eAAgC,EAChC,IAAqD;YAErD,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;YACzD,UAAU,CAAC,WAAW,EAAE,CAAC;YACzB,OAAO,UAAU,CAAC;QACpB,CAAC;QAED,oBAAoB;QACpB,OAAO,iEAAU;QACjB,OAAO,CAAoB;QAClB,YAAY,GAAG,IAAI,eAAe,EAAE,CAAC;QACrC,eAAe,CAAkB;QACjC,IAAI,CAAkD;QAC/D,kBAAkB;QAElB,YACE,OAAwB,EACxB,IAAqD;YAErD,KAAK,EAAE,CAAC;YACR,oBAAoB;YACpB,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC;YAC/B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;YACjB,kBAAkB;QACpB,CAAC;QAED,WAAW;YACT,MAAM,qBAAqB,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CACjD,IAAI,YAAY,CAAC,IAAI,CAAC,eAAe,CAAC,CACvC,CAAC;YAC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AI,CAAC,QAAQ,CAAC,IAAI,CAAC,kCAAkC,EAAE;gBAC3D,GAAG,OAAO;gBACV,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO;aAC3B,CAAC,CAAC;YACH,oEAAoE;YACpE,OAAO,IAAI,CAAC,OAAQ,CAAC;QACvB,CAAC;QAED,yBAnBC,eAAe,yBAMf,eAAe,CAAa,MAAM,CAAC,EAAE;gBACpC,wCAAwC;gBACxC,OAAO,MAAM,CAAC,OAAQ,CAAC;YACzB,CAAC,CAAC,GAUD,aAAa,EAAC;YACb,IAAI,CAAC,OAAO;gBACV,6FAA6F,CAAC;YAChG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAC,CAAC,CAAC;YAE5C,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;YAC5B,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;QACzB,CAAC;;;SAtGU,UAAU"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.d.ts new file mode 100644 index 00000000..961c678d --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.d.ts @@ -0,0 +1,15 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +export * from './Browser.js'; +export * from './BrowsingContext.js'; +export * from './Connection.js'; +export * from './Navigation.js'; +export * from './Realm.js'; +export * from './Request.js'; +export * from './Session.js'; +export * from './UserContext.js'; +export * from './UserPrompt.js'; +//# sourceMappingURL=core.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.d.ts.map new file mode 100644 index 00000000..51a36ea7 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../../../src/bidi/core/core.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.js new file mode 100644 index 00000000..7bde6db9 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.js @@ -0,0 +1,15 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +export * from './Browser.js'; +export * from './BrowsingContext.js'; +export * from './Connection.js'; +export * from './Navigation.js'; +export * from './Realm.js'; +export * from './Request.js'; +export * from './Session.js'; +export * from './UserContext.js'; +export * from './UserPrompt.js'; +//# sourceMappingURL=core.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.js.map new file mode 100644 index 00000000..101c2626 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/core.js.map @@ -0,0 +1 @@ +{"version":3,"file":"core.js","sourceRoot":"","sources":["../../../../../src/bidi/core/core.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/util.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/util.js index d8b71f88..8c6ca233 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/util.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/util.js @@ -17,7 +17,7 @@ export async function releaseReference(client, remoteReference) { target: client.target, handles: [remoteReference.handle], }) - .catch((error) => { + .catch(error => { // Exceptions might happen in case of a page been navigated or closed. // Swallow these since they are harmless and we don't leak anything in this case. debugError(error); diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/util.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/util.js.map index c48b2178..6816b8f7 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/util.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/bidi/util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAC,YAAY,EAAE,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAGnD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAAiB,EACjB,eAA4C;IAE5C,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC;QAC5B,OAAO;IACT,CAAC;IACD,MAAM,MAAM,CAAC,UAAU;SACpB,IAAI,CAAC,eAAe,EAAE;QACrB,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,OAAO,EAAE,CAAC,eAAe,CA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,UAAU,IACpD,KAAK,CAAC,YACR,GAAG,CACJ,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,UAAU,CAAC,IAAI,CACb,UAAU,KAAK,CAAC,YAAY,IAAI,aAAa,KAAK,KAAK,CAAC,GAAG,IACzD,KAAK,CAAC,UACR,IAAI,KAAK,CAAC,YAAY,GAAG,CAC1B,CAAC;YACJ,CAAC;YACD,IAAI,UAAU,CAAC,MAAM,IAAI,KAAK,CAAC,eAAe,EAAE,CAAC;gBAC/C,MAAM;YACR,CAAC;QACH,CAAC;IACH,CAAC;IAED,KAAK,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file +{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/bidi/util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAC,YAAY,EAAE,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAGnD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAAiB,EACjB,eAA4C;IAE5C,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC;QAC5B,OAAO;IACT,CAAC;IACD,MAAM,MAAM,CAAC,UAAU;SACpB,IAAI,CAAC,eAAe,EAAE;QACrB,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,OAAO,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC;KAClC,CAAC;SACD,KAAK,CAAC,KAAK,CAAC,EAAE;QACb,sEAAsE;QACtE,iFAAiF;QACjF,UAAU,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB,CACnC,OAAqC;IAErC,IAAI,OAAO,CAAC,SAAS,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I,UAAU,CAAC,MAAM,IAAI,KAAK,CAAC,eAAe,EAAE,CAAC;gBAC/C,MAAM;YACR,CAAC;QACH,CAAC;IACH,CAAC;IAED,KAAK,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.d.ts index dbd37dfc..30e47146 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.d.ts @@ -5,6 +5,7 @@ */ /// import type { ChildProcess } from 'child_process'; +import type { DebugInfo } from '../api/Browser.js'; import { Browser as BrowserBase, type BrowserCloseCallback, type BrowserContextOptions, type IsPageTargetCallback, type Permission, type TargetFilterCallback, type WaitForTargetOptions } from '../api/Browser.js'; import { BrowserContext } from '../api/BrowserContext.js'; import type { Page } from '../api/Page.js'; @@ -40,6 +41,7 @@ export declare class CdpBrowser extends BrowserBase { close(): Promise; disconnect(): Promise; get connected(): boolean; + get debugInfo(): DebugInfo; } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.d.ts.map index 9844c421..2a24bce6 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Browser.d.ts","sourceRoot":"","sources":["../../../../src/cdp/Browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,KAAK,EAAC,YAAY,EAAC,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jC,oBAAoB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA0BpD,OAAO,IAAI,SAAS,EAAE;IAWtB,MAAM,IAAI,SAAS;IAUb,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;IAK1B,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC;IAK5B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAK5B,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAOpC,IAAa,SAAS,IAAI,OAAO,CAEhC;IAMD,IAAa,SAAS,IAAI,SAAS,CAIlC;CACF;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,cAAc;;gBAKvC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,MAAM;IAO3E,IAAa,EAAE,IAAI,MAAM,GAAG,SAAS,CAEpC;IAEQ,OAAO,IAAI,SAAS,EAAE;IAMtB,aAAa,CACpB,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EACpD,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,MAAM,CAAC;IAMH,KAAK,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;IAmB9B,WAAW,IAAI,OAAO;IAIhB,mBAAmB,CAChC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,UAAU,EAAE,GACxB,OAAO,CAAC,IAAI,CAAC;IAgBD,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC;IAM/C,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB,OAAO,IAAI,UAAU;IAIf,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAItC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js index f81cb48e..f4af2170 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js @@ -232,6 +232,11 @@ export class CdpBrowser extends BrowserBase { #getVersion() { return this.#connection.send('Browser.getVersion'); } + get debugInfo() { + return { + pendingProtocolErrors: this.#connection.getPendingProtocolErrors(), + }; + } } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js.map index 2b5c695e..2bdc47f3 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js.map @@ -1 +1 @@ -{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/cdp/Browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EACL,OAAO,IAAI,WAAW,EAEtB,qCAAqC,GAOtC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAC,cAAc,EAAsB,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAC,eAAe,EAAkB,MAAM,sBAAsB,CAAC;AAItE,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAC,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAC,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,UAAU,EACV,YAAY,GAEb,MAAM,aAAa,CAAC;AAGrB;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IAChC,QAAQ,GAAG,KAAK,CAAC;IAE1B,MAAM,CAAC,KAAK,CAAC,OAAO,CAClB,OAAyC,EACzC,UAAsB,EACtB,UAAoB,EACpB,iBAA0B,EAC1B,eAAiC,EACjC,OAAsB,EACtB,aAAoC,EACpC,o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er-core/lib/esm/puppeteer/cdp/CDPSession.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.d.ts index 027b2f95..67bcb4e8 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.d.ts @@ -58,5 +58,9 @@ export declare class CdpCDPSession extends CDPSession { * Returns the session's id. */ id(): string; + /** + * @internal + */ + getPendingProtocolErrors(): Error[]; } //# sourceMappingURL=CDPSession.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.d.ts.map index 4195117c..51772d10 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"CDPSession.d.ts","sourceRoot":"","sources":["../../../../src/cdp/CDPSession.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,6CAA6C,CAAC;AAEjF,OAAO,EACL,KAAK,SAAS,EACd,UAAU,EAEV,KAAK,cAAc,EACpB,MAAM,sBAAsB,CAAC;AAM9B,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAE3C;;GAEG;AAEH,qBAAa,aAAc,SAAQ,UAAU;;IAQ3C;;OAEG;gBAED,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,GAAG,SAAS;IASrC;;;;OAIG;IACH,UAAU,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI;IAInC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b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js index b11a5c5c..d25ab4e1 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js @@ -105,5 +105,11 @@ export class CdpCDPSession extends CDPSession { id() { return this.#sessionId; } + /** + * @internal + */ + getPendingProtocolErrors() { + return this.#callbacks.getPendingProtocolErrors(); + } } //# sourceMappingURL=CDPSession.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js.map index c786c4be..361e1a1f 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js.map @@ -1 +1 @@ -{"version":3,"file":"CDPSession.js","sourceRoot":"","sources":["../../../../src/cdp/CDPSession.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAEL,UAAU,EACV,eAAe,GAEhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAC,0BAA0B,EAAC,MAAM,sBAAsB,CAAC;AAKhE;;GAEG;AAEH,MAAM,OAAO,aAAc,SAAQ,UAAU;IAC3C,UAAU,CAAS;IACnB,WAAW,CAAS;IACpB,UAAU,GAAG,IAAI,gBAAgB,EAAE,CAAC;IACpC,WAAW,CAAc;IACzB,gBAAgB,CAAU;IAC1B,OAAO,CAAa;IAEpB;;OAEG;IACH,YACE,UAAsB,EACtB,UAAkB,EAClB,SAAiB,EACjB,eAAmC;QAE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KAAK,EAAE,CAAC;gBACjB,IAAI,CAAC,UAAU,CAAC,MAAM,CACpB,MAAM,CAAC,EAAE,EACT,0BAA0B,CAAC,MAAM,CAAC,EAClC,MAAM,CAAC,KAAK,CAAC,OAAO,CACrB,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;YACpD,CAAC;QACH,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACnB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC;IAED;;;OAGG;IACM,KAAK,CAAC,MAAM;QACnB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CACb,6CAA6C,IAAI,CAAC,WAAW,mBAAmB,CACjF,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,yBAAyB,EAAE;YACrD,SAAS,EAAE,IAAI,CAAC,UAAU;SAC3B,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,SAAS;QACP,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;QAC7B,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IACrD,CAAC;IAED;;OAEG;IACM,EAAE;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"CDPSession.js","sourceRoot":"","sources":["../../../../src/cdp/CDPSession.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAEL,UAAU,EACV,eAAe,GAEhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC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AC;IAED;;OAEG;IACH,SAAS;QACP,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;QAC7B,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IACrD,CAAC;IAED;;OAEG;IACM,EAAE;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,wBAAwB;QACtB,OAAO,IAAI,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC;IACpD,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.d.ts.map index 1041f8ef..4fd56370 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ChromeTargetManager.d.ts","sourceRoot":"","sources":["../../../../src/cdp/ChromeTargetManager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAMvD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAC,SAAS,EAAuB,MAAM,aAAa,CAAC;AAC5D,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAElB,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAC;AAS5B;;;;;;GAMG;AACH,qBAAa,mBACX,SAAQ,YAAY,CAAC,mBAAmB,CACxC,YAAW,aAAa;;gBA+CtB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,oBAAoB,CAAC,EAAE,oBAAoB,EAC3C,iCAAiC,UAAO;IA2CpC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBjC,OAAO,IAAI,IAAI;IAYf,mBAAmB,IAAI,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC;CA0PtD"} \ No newline at end of file +{"version":3,"file":"ChromeTargetManager.d.ts","sourceRoot":"","sources":["../../../../src/cdp/ChromeTargetManager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAMvD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAC,SAAS,EAAuB,MAAM,aAAa,CAAC;AAC5D,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAElB,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAC;AAS5B;;;;;;GAMG;AACH,qBAAa,mBACX,SAAQ,YAAY,CAAC,mBAAmB,CACxC,YAAW,aAAa;;gBA+CtB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,oBAAoB,CAAC,EAAE,oBAAoB,EAC3C,iCAAiC,UAAO;IA2CpC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBjC,OAAO,IAAI,IAAI;IAYf,mBAAmB,IAAI,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC;CAsPtD"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js index 8271a1ee..02c0d731 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js @@ -253,12 +253,7 @@ export class ChromeTargetManager extends EventEmitter { this.#attachedTargetsByTargetId.set(targetInfo.targetId, target); this.#attachedTargetsBySessionId.set(session.id(), target); } - if (parentSession instanceof CDPSession) { - parentSession.emit(CDPSessionEvent.Ready, session); - } - else { - parentSession.emit(CDPSessionEvent.Ready, session); - } + parentSession.emit(CDPSessionEvent.Ready, session); this.#targetsIdsForInit.delete(target._targetId); if (!isExistingTarget) { this.emit("targetAvailable" /* TargetManagerEvent.TargetAvailable */, target); diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js.map index d7e4a4ec..bb8eb7d8 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js.map @@ -1 +1 @@ -{"version":3,"file":"ChromeTargetManager.js","sourceRoot":"","sources":["../../../../src/cdp/ChromeTargetManager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAC,UAAU,EAAE,eAAe,EAAC,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAI7C,OAAO,EAAC,SAAS,EAAE,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAQ5D,SAAS,2BAA2B,CAClC,MAAiB,EACjB,aAAyC;IAEzC,OAAO,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC;AAC9D,CAAC;AAED;;;;;;GAMG;AACH,MAAM,OAAO,mBACX,SAAQ,YAAi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D,IAAI,CAAC,IAAI,mDAAgC,MAAM,CAAC,CAAC;IACnD,CAAC,CAAC;CACH"} \ No newline at end of file +{"version":3,"file":"ChromeTargetManager.js","sourceRoot":"","sources":["../../../../src/cdp/ChromeTargetManager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAC,UAAU,EAAE,eAAe,EAAC,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAI7C,OAAO,EAAC,SAAS,EAAE,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAQ5D,SAAS,2BAA2B,CAClC,MAAiB,EACjB,aAAyC;IAEzC,OAAO,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC;AAC9D,CAAC;AAED;;;;;;GAMG;AACH,MAAM,OAAO,mBACX,SAAQ,YAAiC;IAGzC,WAAW,CAAa;IACxB;;;;;;;;;OASG;IACH,4BAA4B,GAAG,IAAI,GAAG,EAAsC,CAAC;IAC7E;;;OAGG;IACH,0BAA0B,GAAG,IAAI,GAAG,EAAqB,CAAC;IAC1D;;OAEG;IACH,2BAA2B,GAAG,IAAI,GAAG,EAAqB,CAAC;IAC3D;;;OAGG;IACH,eAAe,GAAG,IAAI,GAAG,EAAU,CAAC;IACpC,qBAAqB,CAAmC;IACxD,cAAc,CAAgB;IAE9B,mCAAmC,GAAG,IAAI,OAAO,EAG9C,CAAC;IACJ,qCAAqC,GAAG,IAAI,OAAO,EAGhD,CAAC;IAEJ,mBAAmB,GAAG,QAAQ,CAAC,MAAM,EAAQ,CAAC;IAC9C,kBAAkB,GAAG,IAAI,GAAG,EAAU,CAAC;IACvC,kCAAkC,G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SAAS,IAAI,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACnE,IAAI,IAAI,CAAC,kBAAkB,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;YACvC,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,CAAC;QACrC,CAAC;IACH,CAAC;IAED,qBAAqB,GAAG,CACtB,cAAuC,EACvC,KAA8C,EAC9C,EAAE;QACF,MAAM,MAAM,GAAG,IAAI,CAAC,2BAA2B,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAErE,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAEzD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO;QACT,CAAC;QAED,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACzD,IAAI,CAAC,IAAI,mDAAgC,MAAM,CAAC,CAAC;IACnD,CAAC,CAAC;CACH"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.d.ts index 0b7c1547..9b3b12df 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.d.ts @@ -63,6 +63,10 @@ export declare class Connection extends EventEmitter { * @returns The CDP session that is created */ createSession(targetInfo: Protocol.Target.TargetInfo): Promise; + /** + * @internal + */ + getPendingProtocolErrors(): Error[]; } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.d.ts.map index c6fa9cc7..5082d901 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Connection.d.ts","sourceRoot":"","sources":["../../../../src/cdp/Connection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,6CAA6C,CAAC;AAEjF,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;AAG1E,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAQvD;;GAEG;AACH,YAAY,EAAC,mBAAmB,EAAE,eAAe,EAAC,CAAC;AAEnD;;GAEG;AACH,qBAAa,UAAW,SAAQ,YAAY,CAAC,gBAAgB,CAAC;;gBAW1D,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,mBAAmB,EAC9B,KAAK,SAAI,EACT,OAAO,CAAC,EAAE,MAAM;IAYlB,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS;IAI/D,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;OAEG;IACH,IAAI,SAAS,IAAI,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAEvC;IAED;;;OAGG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI;IAI7C,GAAG,IAAI,MAAM;IAIb,IAAI,CAAC,CAAC,SAAS,MAAM,eAAe,CAAC,QAAQ,EAC3C,MAAM,EAAE,CAAC,EACT,MAAM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AEG;IACH,QAAQ,CAAC,CAAC,SAAS,MAAM,eAAe,CAAC,QAAQ,EAC/C,SAAS,EAAE,gBAAgB,EAC3B,MAAM,EAAE,CAAC,EACT,MAAM,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EACpD,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IAarD;;OAEG;IACG,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAInC;;OAEG;cACa,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAqEzD,OAAO,IAAI,IAAI;IAKf;;OAEG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIzC;;OAEG;IACG,cAAc,CAClB,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,EACtC,oBAAoB,UAAO,GAC1B,OAAO,CAAC,UAAU,CAAC;IAgBtB;;;OAGG;IACG,aAAa,CACjB,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,GACrC,OAAO,CAAC,UAAU,CAAC;IAItB;;OAEG;IACH,wBAAwB,IAAI,KAAK,EAAE;CAQpC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAEzD"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js index b2a0ea07..1ea264e4 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js @@ -191,6 +191,17 @@ export class Connection extends EventEmitter { async createSession(targetInfo) { return await this._createSession(targetInfo, false); } + /** + * @internal + */ + getPendingProtocolErrors() { + const result = []; + result.push(...this.#callbacks.getPendingProtocolErrors()); + for (const session of this.#sessions.values()) { + result.push(...session.getPendingProtocolErrors()); + } + return result; + } } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js.map index dfbc013d..77ea7bef 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js.map @@ -1 +1 @@ -{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../../src/cdp/Connection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EACL,eAAe,GAGhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAC,0BAA0B,EAAC,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,MAAM,iBAAiB,GAAG,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAC7D,MAAM,oBAAoB,GAAG,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAOhE;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,YAA8B;IAC5D,IAAI,CAAS;IACb,UAAU,CAAsB;IAChC,MAAM,CAAS;IACf,QAAQ,CAAS;IACjB,SAAS,GAAG,IAAI,GAAG,EAAyB,CAAC;IAC7C,OAAO,GAAG,KAAK,CAAC;IAChB,iBAAiB,GAAG,IAAI,GAAG,EAAU,CAAC;IACtC,UAAU,GAAG,IAA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,CAAC,cAAc,CAClB,UAAsC,EACtC,oBAAoB,GAAG,IAAI;QAE3B,IAAI,CAAC,oBAAoB,EAAE,CAAC;YAC1B,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAClD,CAAC;QACD,MAAM,EAAC,SAAS,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE;YAC3D,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,OAAO,EAAE,IAAI;SACd,CAAC,CAAC;QACH,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QACnD,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACjD,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa,CACjB,UAAsC;QAEtC,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IACtD,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAY;IAC9C,OAAO,KAAK,YAAY,gBAAgB,CAAC;AAC3C,CAAC"} \ No newline at end of file +{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../../src/cdp/Connection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EACL,eAAe,GAGhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAC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C,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,wBAAwB;QACtB,MAAM,MAAM,GAAY,EAAE,CAAC;QAC3B,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC,CAAC;QAC3D,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE,CAAC;YAC9C,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,wBAAwB,EAAE,CAAC,CAAC;QACrD,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAY;IAC9C,OAAO,KAAK,YAAY,gBAAgB,CAAC;AAC3C,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.d.ts index d58de895..37d88166 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.d.ts @@ -12,7 +12,7 @@ import { Dialog } from '../api/Dialog.js'; export declare class CdpDialog extends Dialog { #private; constructor(client: CDPSession, type: Protocol.Page.DialogType, message: string, defaultValue?: string); - sendCommand(options: { + handle(options: { accept: boolean; text?: string; }): Promise; diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.d.ts.map index 061259ff..172a73de 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/cdp/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAExC;;GAEG;AACH,qBAAa,SAAU,SAAQ,MAAM;;gBAIjC,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,UAAU,EAC9B,OAAO,EAAE,MAAM,EACf,YAAY,SAAK;IAMJ,WAAW,CAAC,OAAO,EAAE;QAClC,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,IAAI,CAAC;CAMlB"} \ No newline at end of file +{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/cdp/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAExC;;GAEG;AACH,qBAAa,SAAU,SAAQ,MAAM;;gBAIjC,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,UAAU,EAC9B,OAAO,EAAE,MAAM,EACf,YAAY,SAAK;IAMJ,MAAM,CAAC,OAAO,EAAE;QAC7B,MAAM,EAAE,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,IAAI,CAAC;CAMlB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js index e4f36ccd..a6b3458b 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js @@ -13,7 +13,7 @@ export class CdpDialog extends Dialog { super(type, message, defaultValue); this.#client = client; } - async sendCommand(options) { + async handle(options) { await this.#client.send('Page.handleJavaScriptDialog', { accept: options.accept, promptText: options.text, diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js.map index bcd5e71f..10df0a99 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js.map @@ -1 +1 @@ -{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/cdp/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAExC;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,MAAM;IACnC,OAAO,CAAa;IAEpB,YACE,MAAkB,EAClB,IAA8B,EAC9B,OAAe,EACf,YAAY,GAAG,EAAE;QAEjB,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAEQ,KAAK,CAAC,WAAW,CAAC,OAG1B;QACC,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACrD,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,UAAU,EAAE,OAAO,CAAC,IAAI;SACzB,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/cdp/Dialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAExC;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,MAAM;IACnC,OAAO,CAAa;IAEpB,YACE,MAAkB,EAClB,IAA8B,EAC9B,OAAe,EACf,YAAY,GAAG,EAAE;QAEjB,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAEQ,KAAK,CAAC,MAAM,CAAC,OAGrB;QACC,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACrD,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,UAAU,EAAE,OAAO,CAAC,IAAI;SACzB,CAAC,CAAC;IACL,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.d.ts.map index 1930157e..e054c217 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ExecutionContext.d.ts","sourceRoot":"","sources":["../../../../src/cdp/ExecutionContext.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAUhE,OAAO,KAAK,aAAa,MAAM,yBAAyB,CAAC;AAOzD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM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AAY,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,EAExD,YAAY,EAAE,IAAI,GAAG,MAAM,EAC3B,GAAG,IAAI,EAAE,MAAM,GACd,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;CAiJjD;AAqBD;;GAEG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,aAAa,EACpB,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY,GAC1C,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,CAKhC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js index ec23eb15..065acdd4 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js @@ -5,13 +5,14 @@ */ import { LazyArg } from '../common/LazyArg.js'; import { scriptInjector } from '../common/ScriptInjector.js'; -import { PuppeteerURL, SOURCE_URL_REGEX, createEvaluationError, getSourcePuppeteerURLIfAvailable, getSourceUrlComment, isString, valueFromRemoteObject, } from '../common/util.js'; +import { PuppeteerURL, SOURCE_URL_REGEX, getSourcePuppeteerURLIfAvailable, getSourceUrlComment, isString, } from '../common/util.js'; import { AsyncIterableUtil } from '../util/AsyncIterableUtil.js'; import { stringifyFunction } from '../util/Function.js'; import { ARIAQueryHandler } from './AriaQueryHandler.js'; import { Binding } from './Binding.js'; import { CdpElementHandle } from './ElementHandle.js'; import { CdpJSHandle } from './JSHandle.js'; +import { createEvaluationError, valueFromRemoteObject } from './utils.js'; /** * @internal */ diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js.map index b9d52ee3..4784e739 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js.map @@ -1 +1 @@ -{"version":3,"file":"ExecutionContext.js","sourceRoot":"","sources":["../../../../src/cdp/ExecutionContext.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAC,cAAc,EAAC,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,EACrB,gCAAgC,EAChC,mBAAmB,EACnB,QAAQ,EACR,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAC,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C;;GAEG;AACH,MAAM,OAAO,gBAAgB;IAC3B,OAAO,CAAa;IACpB,MAAM,CAAgB;IACtB,UAAU,CAAS;IACnB,YAAY,CAAU;IAEtB,YACE,MAAkB,EAClB,cAA4D,EAC5D,KAAoB;QAEpB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,cAAc,CAAC,EAAE,CAAC;QACpC,IAAI,cAAc,CAAC,IAAI,EAAE,CAAC;YACxB,IAAI,CAAC,YAAY,GAAG,cAAc,CAAC,IAAI,CAAC;QAC1C,CAAC;IACH,CAAC;IAED,kBAAk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F;AAED,MAAM,YAAY,GAAG,CAAC,KAAY,EAAqC,EAAE;IACvE,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,oCAAoC,CAAC,EAAE,CAAC;QACjE,OAAO,EAAC,MAAM,EAAE,EAAC,IAAI,EAAE,WAAW,EAAC,EAAC,CAAC;IACvC,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,sCAAsC,CAAC,EAAE,CAAC;QACnE,OAAO,EAAC,MAAM,EAAE,EAAC,IAAI,EAAE,WAAW,EAAC,EAAC,CAAC;IACvC,CAAC;IAED,IACE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,uCAAuC,CAAC;QAC/D,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,sCAAsC,CAAC,EAC9D,CAAC;QACD,MAAM,IAAI,KAAK,CACb,uEAAuE,CACxE,CAAC;IACJ,CAAC;IACD,MAAM,KAAK,CAAC;AACd,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,eAAe,CAC7B,KAAoB,EACpB,YAA2C;IAE3C,IAAI,YAAY,CAAC,OAAO,KAAK,MAAM,EAAE,CAAC;QACpC,OAAO,IAAI,gBAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,IAAI,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;AAC9C,CAAC"} \ No newline at end of file +{"version":3,"file":"ExecutionContext.js","sourceRoot":"","sources":["../../../../src/cdp/ExecutionContext.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAC,cAAc,EAAC,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,gCAAgC,EAChC,mBAAmB,EACnB,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B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CAAC,sCAAsC,CAAC,EAC9D,CAAC;QACD,MAAM,IAAI,KAAK,CACb,uEAAuE,CACxE,CAAC;IACJ,CAAC;IACD,MAAM,KAAK,CAAC;AACd,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,eAAe,CAC7B,KAAoB,EACpB,YAA2C;IAE3C,IAAI,YAAY,CAAC,OAAO,KAAK,MAAM,EAAE,CAAC;QACpC,OAAO,IAAI,gBAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,IAAI,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;AAC9C,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.d.ts.map index a2da9c62..b84a2b7c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"FirefoxTargetManager.d.ts","sourceRoot":"","sources":["../../../../src/cdp/FirefoxTargetManager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAC,KAAK,UAAU,EAAkB,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAKvD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;;;;GAaG;AACH,qBAAa,oBACX,SAAQ,YAAY,CAAC,mBAAmB,CACxC,YAAW,aAAa;;gBA0CtB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,oBAAoB,CAAC,EAAE,oBAAoB;IAgB7C,wBAAwB,CAAC,OAAO,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI;IAchE,sBAAsB,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI;IAUjD,mBAAmB,IAAI,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC;IAIrD,OAAO,IAAI,IAAI;IAKT,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAkFlC"} \ No newline at end of file +{"version":3,"file":"FirefoxTargetManager.d.ts","sourceRoot":"","sources":["../../../../src/cdp/FirefoxTargetManager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAC,KAAK,UAAU,EAAkB,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAKvD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;;;;GAaG;AACH,qBAAa,oBACX,SAAQ,YAAY,CAAC,mBAAmB,CACxC,YAAW,aAAa;;gBAqCtB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,oBAAoB,CAAC,EAAE,oBAAoB;IAgB7C,wBAAwB,CAAC,OAAO,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI;IAchE,sBAAsB,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI;IAUjD,mBAAmB,IAAI,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC;IAIrD,OAAO,IAAI,IAAI;IAKT,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAiFlC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.js index 33b6006c..1d3ac5d0 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.js @@ -45,11 +45,6 @@ export class FirefoxTargetManager extends EventEmitter { * Tracks which sessions attach to which target. */ #availableTargetsBySessionId = new Map(); - /** - * If a target was filtered out by `targetFilterCallback`, we still receive - * events about it from CDP, but we don't forward them to the rest of Puppeteer. - */ - #ignoredTargets = new Set(); #targetFilterCallback; #targetFactory; #attachedToTargetListenersBySession = new WeakMap(); @@ -112,7 +107,6 @@ export class FirefoxTargetManager extends EventEmitter { } const target = this.#targetFactory(event.targetInfo, undefined); if (this.#targetFilterCallback && !this.#targetFilterCallback(target)) { - this.#ignoredTargets.add(event.targetInfo.targetId); this.#finishInitializationIfReady(event.targetInfo.targetId); return; } diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.js.map index 7a5492cf..235dafdc 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.js.map @@ -1 +1 @@ -{"version":3,"file":"FirefoxTargetManager.js","sourceRoot":"","sources":["../../../../src/cdp/FirefoxTargetManager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAkB,eAAe,EAAC,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAC,YA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AC,MAAM,EAAE,UAAU,UAAU,CAAC,QAAQ,aAAa,CAAC,CAAC;QAE1D,OAAyB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAC9C,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;QAEvC,IAAI,CAAC,4BAA4B,CAAC,GAAG,CACnC,OAAO,CAAC,EAAE,EAAE,EACZ,IAAI,CAAC,2BAA2B,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAE,CAC3D,CAAC;QAEF,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC,CAAC;IAEF,4BAA4B,CAAC,QAAgB;QAC3C,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,IAAI,CAAC,kBAAkB,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;YACvC,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,CAAC;QACrC,CAAC;IACH,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"FirefoxTargetManager.js","sourceRoot":"","sources":["../../../../src/cdp/FirefoxTargetManager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAkB,eAAe,EAAC,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAY7C;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,oBACX,SAAQ,YAAiC;IAGzC,WAAW,CAAa;IACxB;;;;;;;;;OASG;IACH,4BAA4B,GAAG,IAAI,GAAG,EAAsC,CAAC;IAC7E;;;;;OAKG;IACH,2BAA2B,GAAG,IAAI,GAAG,EAAqB,CAAC;IAC3D;;OAEG;IACH,4BAA4B,GAAG,IAAI,GAAG,EAAqB,CAA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KAAK,CAAC,EAAE,CAAC;YACvC,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,CAAC;QACrC,CAAC;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.d.ts.map index e7d82138..cbe5f543 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IsolatedWorld.d.ts","sourceRoot":"","sources":["../../../../src/cdp/IsolatedWorld.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAiB,YAAY,EAAE,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAOhF,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAGpD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAC,gBAAgB,EAAkB,MAAM,uBAAuB,CAAC;AACxE,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,EAAC,UAAU,EAAE,eAAe,EAAC,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,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,OAAO,CAAC,IAAI,CAAC;IA0ED,gBAAgB,CAC7B,aAAa,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,aAAa,GACzC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IASpB,WAAW,CAAC,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAc5D,cAAc,CAAC,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAkBrE,CAAC,aAAa,CAAC,IAAI,IAAI;CAIxB"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js index 537d1f4c..f73502f7 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js @@ -49,11 +49,12 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; }); import { Realm } from '../api/Realm.js'; -import { addPageBinding, debugError, withSourcePuppeteerURLIfNone, } from '../common/util.js'; +import { debugError, withSourcePuppeteerURLIfNone } from '../common/util.js'; import { Deferred } from '../util/Deferred.js'; import { disposeSymbol } from '../util/disposable.js'; import { Mutex } from '../util/Mutex.js'; import { ExecutionContext, createCdpHandle } from './ExecutionContext.js'; +import { addPageBinding } from './utils.js'; /** * @internal */ diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js.map index bf52c84d..3d6cf0f1 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js.map @@ -1 +1 @@ -{"version":3,"file":"IsolatedWorld.js","sourceRoot":"","sources":["../../../../src/cdp/IsolatedWorld.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMH,OAAO,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AAGtC,OAAO,EACL,cAAc,EACd,UAAU,EACV,4BAA4B,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAC;AAGvC,OAAO,EAAC,gBAAgB,EAAE,eAAe,EAAC,MAAM,uBAAuB,CAAC;AAsBxE;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,KAAK;IACtC,QAAQ,GAAG,QAAQ,CAAC,MAAM,EAAoB,CAAC;IAE/C,oEAAoE;IACpE,gBAAgB,GAAG,IAAI,GAAG,EAAU,CAAC;IAErC,+EAA+E;IAC/E,SAAS,GAAG,IAAI,GAAG,EAAmB,CAAC;IAEvC,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAEQ,cAAc,CAA0B;IAEjD,YACE,aAAsC,EACtC,eAAgC;QAEhC,KAAK,CAAC,eAAe,CAAC,CAAC;QACvB,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAED,YAAY;QACV,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,uBAAuB,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACjE,CAAC;IAED,IAA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KAAK,CAAC,EAAE;gBAC1C,OAAO,KAAK,CAAC;YACf,CAAC,CAAC,CAAiB,CAAC;QACtB,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAkB,EAAE;YAC1D,QAAQ,EAAE,MAAM,CAAC,EAAE;SACpB,CAAC,CAAC;QACH,OAAO,CAAC,MAAM,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAM,CAAC;IACzE,CAAC;IAED,KAAK,CAAC,cAAc,CAA2B,MAAS;QACtD,IAAI,MAAM,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;YAC1B,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,4CAA4C;QAC5C,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YACjD,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAkB,EAAE;YACtD,QAAQ,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,QAAQ;SACzC,CAAC,CAAC;QACH,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,CAAC,gBAAgB,CAC5C,IAAI,CAAC,IAAI,CAAC,aAAa,CACxB,CAAM,CAAC;QACR,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;QACvB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,CAAC,aAAa,CAAC;QACb,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;QACvB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,uBAAuB,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAClE,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.d.ts.map index 80a54e62..c2258957 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"JSHandle.d.ts","sourceRoot":"","sources":["../../../../src/cdp/JSHandle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAG5C,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEtD;;GAEG;AACH,qBAAa,WAAW,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,QAAQ,CAAC,CAAC,CAAC;;gBAMrD,KAAK,EAAE,aAAa,EACpB,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY;IAO7C,IAAa,QAAQ,IAAI,OAAO,CAE/B;IAED,IAAa,KAAK,IAAI,aAAa,CAElC;IAED,IAAI,MAAM,IAAI,UAAU,CAEvB;IAEc,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC;IAatC;;;OAGG;IACM,SAAS,IAAI,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI;IAIpC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ9B,QAAQ,IAAI,MAAM;IAQ3B,IAAa,EAAE,IAAI,MAAM,GAAG,SAAS,CAEpC;IAEQ,YAAY,IAAI,QAAQ,CAAC,OAAO,CAAC,YAAY;CAGvD;AAED;;GAEG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY,GAC1C,OAAO,CAAC,IAAI,CAAC,CAWf"} \ No newline at end of file +{"version":3,"file":"JSHandle.d.ts","sourceRoot":"","sources":["../../../../src/cdp/JSHandle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAG5C,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAGtD;;GAEG;AACH,qBAAa,WAAW,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,QAAQ,CAAC,CAAC,CAAC;;gBAMrD,KAAK,EAAE,aAAa,EACpB,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY;IAO7C,IAAa,QAAQ,IAAI,OAAO,CAE/B;IAED,IAAa,KAAK,IAAI,aAAa,CAElC;IAED,IAAI,MAAM,IAAI,UAAU,CAEvB;IAEc,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC;IAatC;;;OAGG;IACM,SAAS,IAAI,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI;IAIpC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ9B,QAAQ,IAAI,MAAM;IAQ3B,IAAa,EAAE,IAAI,MAAM,GAAG,SAAS,CAEpC;IAEQ,YAAY,IAAI,QAAQ,CAAC,OAAO,CAAC,YAAY;CAGvD;AAED;;GAEG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY,GAC1C,OAAO,CAAC,IAAI,CAAC,CAWf"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js index 8259fb82..83735e46 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js @@ -4,7 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ import { JSHandle } from '../api/JSHandle.js'; -import { debugError, valueFromRemoteObject } from '../common/util.js'; +import { debugError } from '../common/util.js'; +import { valueFromRemoteObject } from './utils.js'; /** * @internal */ diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js.map index c068de37..40f5ae67 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js.map @@ -1 +1 @@ -{"version":3,"file":"JSHandle.js","sourceRoot":"","sources":["../../../../src/cdp/JSHandle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAE,qBAAqB,EAAC,MAAM,mBAAmB,CAAC;AAKpE;;GAEG;AACH,MAAM,OAAO,WAAyB,SAAQ,QAAW;IACvD,SAAS,GAAG,KAAK,CAAC;IACT,aAAa,CAAgC;IAC7C,MAAM,CAAgB;IAE/B,YACE,KAAoB,EACpB,YAA2C;QAE3C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,IAAa,KAAK;QAChB,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,KAAK,CAAC,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,KAAK,CAAC,KAAK,CAAC,EAAE;QACb,sEAAsE;QACtE,iFAAiF;QACjF,UAAU,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.d.ts index f76ebc16..2cbf8ca1 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.d.ts @@ -11,7 +11,6 @@ import type { Browser } from '../api/Browser.js'; import type { BrowserContext } from '../api/BrowserContext.js'; import { type CDPSession } from '../api/CDPSession.js'; import type { Frame, WaitForOptions } from '../api/Frame.js'; -import type { HTTPRequest } from '../api/HTTPRequest.js'; import type { HTTPResponse } from '../api/HTTPResponse.js'; import type { JSHandle } from '../api/JSHandle.js'; import { Page, type GeolocationOptions, type MediaFeature, type Metrics, type NewDocumentScriptEvaluation, type ScreenshotOptions, type WaitTimeoutOptions } from '../api/Page.js'; @@ -73,16 +72,6 @@ export declare class CdpPage extends Page { metrics(): Promise; reload(options?: WaitForOptions): Promise; createCDPSession(): Promise; - waitForRequest(urlOrPredicate: string | ((req: HTTPRequest) => boolean | Promise), options?: { - timeout?: number; - }): Promise; - waitForResponse(urlOrPredicate: string | ((res: HTTPResponse) => boolean | Promise), options?: { - timeout?: number; - }): Promise; - waitForNetworkIdle(options?: { - idleTime?: number; - timeout?: number; - }): Promise; goBack(options?: WaitForOptions): Promise; goForward(options?: WaitForOptions): Promise; bringToFront(): Promise; diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.d.ts.map index 022a3c30..3618d3c8 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.d.ts.map +++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ACY,mBAAmB,CAChC,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,mBAAmB,CAAC;CAGhC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js index 8cb0ac02..9e6a4bd5 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js @@ -55,7 +55,7 @@ import { ConsoleMessage, } from '../common/ConsoleMessage.js'; import { TargetCloseError } from '../common/Errors.js'; import { FileChooser } from '../common/FileChooser.js'; import { NetworkManagerEvent } from '../common/NetworkManagerEvents.js'; -import { createClientError, debugError, evaluationString, getReadableAsBuffer, getReadableFromProtocolStream, NETWORK_IDLE_TIME, pageBindingInitString, timeout, validateDialogType, valueFromRemoteObject, waitForHTTP, } from '../common/util.js'; +import { debugError, evaluationString, getReadableAsBuffer, getReadableFromProtocolStream, parsePDFOptions, timeout, validateDialogType, } from '../common/util.js'; import { assert } from '../util/assert.js'; import { Deferred } from '../util/Deferred.js'; import { AsyncDisposableStack } from '../util/disposable.js'; @@ -75,6 +75,7 @@ import { CdpKeyboard, CdpMouse, CdpTouchscreen } from './Input.js'; import { MAIN_WORLD } from './IsolatedWorlds.js'; import { releaseObject } from './JSHandle.js'; import { Tracing } from './Tracing.js'; +import { createClientError, pageBindingInitString, valueFromRemoteObject, } from './utils.js'; import { CdpWebWorker } from './WebWorker.js'; /** * @internal @@ -682,18 +683,6 @@ export class CdpPage extends Page { async createCDPSession() { return await this.target().createCDPSession(); } - async waitForRequest(urlOrPredicate, options = {}) { - const { timeout = this._timeoutSettings.timeout() } = options; - return await waitForHTTP(this.#frameManager.networkManager, NetworkManagerEvent.Request, urlOrPredicate, timeout, this.#sessionCloseDeferred); - } - async waitForResponse(urlOrPredicate, options = {}) { - const { timeout = this._timeoutSettings.timeout() } = options; - return await waitForHTTP(this.#frameManager.networkManager, NetworkManagerEvent.Response, urlOrPredicate, timeout, this.#sessionCloseDeferred); - } - async waitForNetworkIdle(options = {}) { - const { idleTime = NETWORK_IDLE_TIME, timeout: ms = this._timeoutSettings.timeout(), } = options; - await firstValueFrom(this._waitForNetworkIdle(this.#frameManager.networkManager, idleTime).pipe(raceWith(timeout(ms), from(this.#sessionCloseDeferred.valueOrThrow())))); - } async goBack(options = {}) { return await this.#go(-1, options); } @@ -813,7 +802,8 @@ export class CdpPage extends Page { } } async createPDFStream(options = {}) { - const { landscape, displayHeaderFooter, headerTemplate, footerTemplate, printBackground, scale, width: paperWidth, height: paperHeight, margin, pageRanges, preferCSSPageSize, omitBackground, timeout: ms, tagged: generateTaggedPDF, } = this._getPDFOptions(options); + const { timeout: ms = this._timeoutSettings.timeout() } = options; + const { landscape, displayHeaderFooter, headerTemplate, footerTemplate, printBackground, scale, width: paperWidth, height: paperHeight, margin, pageRanges, preferCSSPageSize, omitBackground, tagged: generateTaggedPDF, outline: generateDocumentOutline, } = parsePDFOptions(options); if (omitBackground) { await this.#emulationManager.setTransparentBackgroundColor(); } @@ -834,6 +824,7 @@ export class CdpPage extends Page { pageRanges, preferCSSPageSize, generateTaggedPDF, + generateDocumentOutline, }); const result = await firstValueFrom(from(printCommandPromise).pipe(raceWith(timeout(ms)))); if (omitBackground) { diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js.map index a8d3e5e0..a47ffda6 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js.map @@ -1 +1 @@ -{"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../../src/cdp/Page.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA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Q,CAAC,CAAC,CAAC,CAAC;IACvC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IACvC,OAAO;QACL,CAAC;QACD,CAAC;QACD,KAAK,EAAE,IAAI,CAAC,GAAG,CACb,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAC9D,CAAC,CACF;QACD,MAAM,EAAE,IAAI,CAAC,GAAG,CACd,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,EAChE,CAAC,CACF;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js index 3ed097dd..341c721b 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js @@ -111,13 +111,13 @@ export class CdpTarget extends Target { } browser() { if (!this.#browserContext) { - throw new Error('browserContext is not initialised'); + throw new Error('browserContext is not initialized'); } return this.#browserContext.browser(); } browserContext() { if (!this.#browserContext) { - throw new Error('browserContext is not initialised'); + throw new Error('browserContext is not initialized'); } return this.#browserContext; } diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.d.ts index 943bcc68..480989a6 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.d.ts @@ -8,6 +8,7 @@ export * from './AriaQueryHandler.js'; export * from './Binding.js'; export * from './Browser.js'; export * from './BrowserConnector.js'; +export * from './cdp.js'; export * from './CDPSession.js'; export * from './ChromeTargetManager.js'; export * from './Connection.js'; @@ -36,6 +37,6 @@ export * from './PredefinedNetworkConditions.js'; export * from './Target.js'; export * from './TargetManager.js'; export * from './Tracing.js'; +export * from './utils.js'; export * from './WebWorker.js'; -export * from './cdp.js'; //# sourceMappingURL=cdp.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.d.ts.map index 7658e1f6..276cf429 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"cdp.d.ts","sourceRoot":"","sources":["../../../../src/cdp/cdp.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAA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,cAAc,WAAW,CAAC;AAC1B,cAAc,kCAAkC,CAAC;AACjD,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js index 1989eeba..500cc9ed 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js @@ -8,6 +8,7 @@ export * from './AriaQueryHandler.js'; export * from './Binding.js'; export * from './Browser.js'; export * from './BrowserConnector.js'; +export * from './cdp.js'; export * from './CDPSession.js'; export * from './ChromeTargetManager.js'; export * from './Connection.js'; @@ -36,6 +37,6 @@ export * from './PredefinedNetworkConditions.js'; export * from './Target.js'; export * from './TargetManager.js'; export * from './Tracing.js'; +export * from './utils.js'; export * from './WebWorker.js'; -export * from './cdp.js'; //# sourceMappingURL=cdp.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js.map index 72044d57..1416e0fd 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js.map @@ -1 +1 @@ -{"version":3,"file":"cdp.js","sourceRoot":"","sources":["../../../../src/cdp/cdp.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAA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CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,kCAAkC,CAAC;AACjD,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.d.ts new file mode 100644 index 00000000..35fb5bdb --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.d.ts @@ -0,0 +1,27 @@ +/** + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import type { Protocol } from 'devtools-protocol'; +/** + * @internal + */ +export declare function createEvaluationError(details: Protocol.Runtime.ExceptionDetails): unknown; +/** + * @internal + */ +export declare function createClientError(details: Protocol.Runtime.ExceptionDetails): Error; +/** + * @internal + */ +export declare function valueFromRemoteObject(remoteObject: Protocol.Runtime.RemoteObject): any; +/** + * @internal + */ +export declare function addPageBinding(type: string, name: string): void; +/** + * @internal + */ +export declare function pageBindingInitString(type: string, name: string): string; +//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.d.ts.map new file mode 100644 index 00000000..56757c6f --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/cdp/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAKhD;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,gBAAgB,GACzC,OAAO,CAsDT;AAqBD;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,gBAAgB,GACzC,KAAK,CAwCP;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY,GAC1C,GAAG,CAuBL;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAqD/D;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAExE"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js new file mode 100644 index 00000000..cc686409 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js @@ -0,0 +1,186 @@ +/** + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ +import { PuppeteerURL, evaluationString } from '../common/util.js'; +import { assert } from '../util/assert.js'; +/** + * @internal + */ +export function createEvaluationError(details) { + let name; + let message; + if (!details.exception) { + name = 'Error'; + message = details.text; + } + else if ((details.exception.type !== 'object' || + details.exception.subtype !== 'error') && + !details.exception.objectId) { + return valueFromRemoteObject(details.exception); + } + else { + const detail = getErrorDetails(details); + name = detail.name; + message = detail.message; + } + const messageHeight = message.split('\n').length; + const error = new Error(message); + error.name = name; + const stackLines = error.stack.split('\n'); + const messageLines = stackLines.splice(0, messageHeight); + // The first line is this function which we ignore. + stackLines.shift(); + if (details.stackTrace && stackLines.length < Error.stackTraceLimit) { + for (const frame of details.stackTrace.callFrames.reverse()) { + if (PuppeteerURL.isPuppeteerURL(frame.url) && + frame.url !== PuppeteerURL.INTERNAL_URL) { + const url = PuppeteerURL.parse(frame.url); + stackLines.unshift(` at ${frame.functionName || url.functionName} (${url.functionName} at ${url.siteString}, :${frame.lineNumber}:${frame.columnNumber})`); + } + else { + stackLines.push(` at ${frame.functionName || ''} (${frame.url}:${frame.lineNumber}:${frame.columnNumber})`); + } + if (stackLines.length >= Error.stackTraceLimit) { + break; + } + } + } + error.stack = [...messageLines, ...stackLines].join('\n'); + return error; +} +const getErrorDetails = (details) => { + let name = ''; + let message; + const lines = details.exception?.description?.split('\n at ') ?? []; + const size = Math.min(details.stackTrace?.callFrames.length ?? 0, lines.length - 1); + lines.splice(-size, size); + if (details.exception?.className) { + name = details.exception.className; + } + message = lines.join('\n'); + if (name && message.startsWith(`${name}: `)) { + message = message.slice(name.length + 2); + } + return { message, name }; +}; +/** + * @internal + */ +export function createClientError(details) { + let name; + let message; + if (!details.exception) { + name = 'Error'; + message = details.text; + } + else if ((details.exception.type !== 'object' || + details.exception.subtype !== 'error') && + !details.exception.objectId) { + return valueFromRemoteObject(details.exception); + } + else { + const detail = getErrorDetails(details); + name = detail.name; + message = detail.message; + } + const error = new Error(message); + error.name = name; + const messageHeight = error.message.split('\n').length; + const messageLines = error.stack.split('\n').splice(0, messageHeight); + const stackLines = []; + if (details.stackTrace) { + for (const frame of details.stackTrace.callFrames) { + // Note we need to add `1` because the values are 0-indexed. + stackLines.push(` at ${frame.functionName || ''} (${frame.url}:${frame.lineNumber + 1}:${frame.columnNumber + 1})`); + if (stackLines.length >= Error.stackTraceLimit) { + break; + } + } + } + error.stack = [...messageLines, ...stackLines].join('\n'); + return error; +} +/** + * @internal + */ +export function valueFromRemoteObject(remoteObject) { + assert(!remoteObject.objectId, 'Cannot extract value when objectId is given'); + if (remoteObject.unserializableValue) { + if (remoteObject.type === 'bigint') { + return BigInt(remoteObject.unserializableValue.replace('n', '')); + } + switch (remoteObject.unserializableValue) { + case '-0': + return -0; + case 'NaN': + return NaN; + case 'Infinity': + return Infinity; + case '-Infinity': + return -Infinity; + default: + throw new Error('Unsupported unserializable value: ' + + remoteObject.unserializableValue); + } + } + return remoteObject.value; +} +/** + * @internal + */ +export function addPageBinding(type, name) { + // This is the CDP binding. + // @ts-expect-error: In a different context. + const callCdp = globalThis[name]; + // Depending on the frame loading state either Runtime.evaluate or + // Page.addScriptToEvaluateOnNewDocument might succeed. Let's check that we + // don't re-wrap Puppeteer's binding. + if (callCdp[Symbol.toStringTag] === 'PuppeteerBinding') { + return; + } + // We replace the CDP binding with a Puppeteer binding. + Object.assign(globalThis, { + [name](...args) { + // This is the Puppeteer binding. + // @ts-expect-error: In a different context. + const callPuppeteer = globalThis[name]; + callPuppeteer.args ??= new Map(); + callPuppeteer.callbacks ??= new Map(); + const seq = (callPuppeteer.lastSeq ?? 0) + 1; + callPuppeteer.lastSeq = seq; + callPuppeteer.args.set(seq, args); + callCdp(JSON.stringify({ + type, + name, + seq, + args, + isTrivial: !args.some(value => { + return value instanceof Node; + }), + })); + return new Promise((resolve, reject) => { + callPuppeteer.callbacks.set(seq, { + resolve(value) { + callPuppeteer.args.delete(seq); + resolve(value); + }, + reject(value) { + callPuppeteer.args.delete(seq); + reject(value); + }, + }); + }); + }, + }); + // @ts-expect-error: In a different context. + globalThis[name][Symbol.toStringTag] = 'PuppeteerBinding'; +} +/** + * @internal + */ +export function pageBindingInitString(type, name) { + return evaluationString(addPageBinding, type, name); +} +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js.map new file mode 100644 index 00000000..3fc96160 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/cdp/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAC,YAAY,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC;;GAEG;AACH,MAAM,UAAU,qBAAqB,CACnC,OAA0C;IAE1C,IAAI,IAAY,CAAC;IACjB,IAAI,OAAe,CAAC;IACpB,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;QACvB,IAAI,GAAG,OAAO,CAAC;QACf,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IACzB,CAAC;SAAM,IACL,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,KAAK,QAAQ;QAClC,OAAO,CAAC,SAAS,CAAC,OAAO,KAAK,OAAO,CAAC;QACxC,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAC3B,CAAC;QACD,OAAO,qBAAqB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,CAAC;SAAM,CAAC;QACN,MAAM,MAAM,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;QACxC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACnB,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;IAC3B,CAAC;IACD,MAAM,aAAa,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;IACjD,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IACjC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,MAA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_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.d.ts index 1ae111d1..60e9f4a9 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.d.ts @@ -17,6 +17,10 @@ export declare class CallbackRegistry { _reject(callback: Callback, errorMessage: string | ProtocolError, originalMessage?: string): void; resolve(id: number, value: unknown): void; clear(): void; + /** + * @internal + */ + getPendingProtocolErrors(): Error[]; } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map index 6ed6786e..ecef7b92 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"CallbackRegistry.d.ts","sourceRoot":"","sources":["../../../../src/common/CallbackRegistry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAG7C,OAAO,EAAC,aAAa,EAAmB,MAAM,aAAa,CAAC;AAG5D;;;;GAIG;AACH,qBAAa,gBAAgB;;IAI3B,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,GAC5B,OAAO,CAAC,OAAO,CAAC;IAuBnB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI;IAQnE,OAAO,CACL,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,MAAM,GAAG,aAAa,EACpC,eAAe,CAAC,EAAE,MAAM,GACvB,IAAI;IAqBP,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAQzC,KAAK,IAAI,IAAI;CAOd;AACD;;GAEG;AAEH,qBAAa,QAAQ;;gBAOP,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAevD,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAK7B,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAK1B,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,IAAI,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC,CAE/B;IAED,IAAI,KAAK,IAAI,aAAa,CAEzB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;CACF;AAED;;GAEG;AACH,wBAAgB,4BAA4B,IAAI,OAAO,CAKtD;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC"} \ No newline at end of file +{"version":3,"file":"CallbackRegistry.d.ts","sourceRoot":"","sources":["../../../../src/common/CallbackRegistry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAG7C,OAAO,EAAC,aAAa,EAAmB,MAAM,aAAa,CAAC;AAG5D;;;;GAIG;AACH,qBAAa,gBAAgB;;IAI3B,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,GAC5B,OAAO,CAAC,OAAO,CAAC;IAuBnB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI;IAQnE,OAAO,CACL,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,MAAM,GAAG,aAAa,EACpC,eAAe,CAAC,EAAE,MAAM,GACvB,IAAI;IAqBP,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAQzC,KAAK,IAAI,IAAI;IAQb;;OAEG;IACH,wBAAwB,IAAI,KAAK,EAAE;CASpC;AACD;;GAEG;AAEH,qBAAa,QAAQ;;gBAOP,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAevD,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAK7B,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAK1B,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,IAAI,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC,CAE/B;IAED,IAAI,KAAK,IAAI,aAAa,CAEzB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;CACF;AAED;;GAEG;AACH,wBAAgB,4BAA4B,IAAI,OAAO,CAKtD;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js index cc1e1aaa..585f776d 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js @@ -73,6 +73,16 @@ export class CallbackRegistry { } this.#callbacks.clear(); } + /** + * @internal + */ + getPendingProtocolErrors() { + const result = []; + for (const callback of this.#callbacks.values()) { + result.push(new Error(`${callback.label} timed out. Trace: ${callback.error.stack}`)); + } + return result; + } } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js.map index bddeb683..4d2d25a0 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js.map @@ -1 +1 @@ -{"version":3,"file":"CallbackRegistry.js","sourceRoot":"","sources":["../../../../src/common/CallbackRegistry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAErC;;;;GAIG;AACH,MAAM,OAAO,gBAAgB;IAC3B,UAAU,GAAG,IAAI,GAAG,EAAoB,CAAC;IACzC,YAAY,GAAG,4BAA4B,EAAE,CAAC;IAE9C,MAAM,CACJ,KAAa,EACb,OAA2B,EAC3B,OAA6B;QAE7B,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QACnE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;QAC3C,IAAI,CAAC;YACH,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,sEAAsE;YACtE,YAAY;YACZ,QAAQ,CAAC,OAAO;iBACb,YAAY,EAAE;iBACd,KAAK,CAAC,UAAU,CAAC;iBACjB,OAAO,CAAC,GAAG,EAAE;gBACZ,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YACtC,CAAC,CAAC,CAAC;YACL,QAAQ,CAAC,MAAM,CAAC,KAAc,CAAC,CAAC;YAChC,MAAM,KAAK,CAAC;QACd,CAAC;QACD,0CAA0C;QAC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IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,4BAA4B;IAC1C,IAAI,EAAE,GAAG,CAAC,CAAC;IACX,OAAO,GAAW,EAAE;QAClB,OAAO,EAAE,EAAE,CAAC;IACd,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"CallbackRegistry.js","sourceRoot":"","sources":["../../../../src/common/CallbackRegistry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAErC;;;;GAIG;AACH,MAAM,OAAO,gBAAgB;IAC3B,UAAU,GAAG,IAAI,GAAG,EAAoB,CAAC;IACzC,YAAY,GAAG,4BAA4B,EAAE,CAAC;IAE9C,MAAM,CACJ,KAAa,EACb,OAA2B,EAC3B,OAA6B;QAE7B,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QACnE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;QAC3C,IAAI,CAAC;YACH,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,sEAAsE;YACtE,YAAY;YACZ,QAAQ,CAAC,OAAO;iBACb,YAAY,EAAE;iBACd,KAAK,CAAC,UAAU,CAAC;iBACjB,OAAO,CAAC,GAAG,EAAE;gBACZ,IAAI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AG,KAAK,4GAA4G,CACrH,CACF,CAAC;YACJ,CAAC,EAAE,OAAO,CAAC,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,CAAC,KAAc;QACpB,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1B,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,KAAY;QACjB,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1B,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAED,IAAI,EAAE;QACJ,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,4BAA4B;IAC1C,IAAI,EAAE,GAAG,CAAC,CAAC;IACX,OAAO,GAAW,EAAE;QAClB,OAAO,EAAE,EAAE,CAAC;IACd,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/Configuration.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/Configuration.d.ts index 741d878b..fbb74dfb 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/Configuration.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/Configuration.d.ts @@ -29,7 +29,13 @@ export interface Configuration { * See {@link PuppeteerNode.launch | puppeteer.launch} on how executable path * is inferred. * - * @defaultValue A compatible-revision of the browser. + * Use a specific browser version (e.g., 119.0.6045.105). If you use an alias + * such `stable` or `canary` it will only work during the installation of + * Puppeteer and it will fail when launching the browser. + * + * @example 119.0.6045.105 + * @defaultValue The pinned browser version supported by the current Puppeteer + * version. */ browserRevision?: string; /** @@ -92,6 +98,18 @@ export interface Configuration { * Can be overridden by `PUPPETEER_SKIP_DOWNLOAD`. */ skipDownload?: boolean; + /** + * Tells Puppeteer to not Chrome download during installation. + * + * Can be overridden by `PUPPETEER_SKIP_CHROME_DOWNLOAD`. + */ + skipChromeDownload?: boolean; + /** + * Tells Puppeteer to not chrome-headless-shell download during installation. + * + * Can be overridden by `PUPPETEER_SKIP_CHROME_HEADLESSS_HELL_DOWNLOAD`. + */ + skipChromeHeadlessShellDownload?: boolean; /** * Tells Puppeteer to log at the given level. * diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/Configuration.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/Configuration.d.ts.map index a8a25b50..f897c5f5 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/Configuration.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/Configuration.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../../src/common/Configuration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IACvC;;OAEG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC;CACxC"} \ No newline at end of file +{"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../../src/common/Configuration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;;;;;;;OAeG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;OAIG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IACvC;;OAEG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC;CACxC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts index 0ddd2a86..e78b9193 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts @@ -3,6 +3,7 @@ * Copyright 2022 Google Inc. * SPDX-License-Identifier: Apache-2.0 */ +import { type Emitter } from '../../third_party/mitt/mitt.js'; import { disposeSymbol } from '../util/disposable.js'; /** * @public @@ -46,9 +47,11 @@ export type EventsWithWildcard> = Even export declare class EventEmitter> implements CommonEventEmitter> { #private; /** + * If you pass an emitter, the returned emitter will wrap the passed emitter. + * * @internal */ - constructor(); + constructor(emitter?: Emitter> | EventEmitter); /** * Bind an event listener to fire when an event occurs. * @param type - the event type you'd like to listen to. Can be a string or symbol. @@ -63,6 +66,14 @@ export declare class EventEmitter> imp * @returns `this` to enable you to chain method calls. */ off>(type: Key, handler?: Handler[Key]>): this; + /** + * Emit an event and call any associated listeners. + * + * @param type - the event you'd like to emit + * @param eventData - any data you'd like to emit with the event + * @returns `true` if there are any listeners, `false` if there are not. + */ + emit>(type: Key, event: EventsWithWildcard[Key]): boolean; /** * Remove an event listener. * @@ -75,14 +86,6 @@ export declare class EventEmitter> imp * @deprecated please use {@link EventEmitter.on} instead. */ addListener>(type: Key, handler: Handler[Key]>): this; - /** - * Emit an event and call any associated listeners. - * - * @param type - the event you'd like to emit - * @param eventData - any data you'd like to emit with the event - * @returns `true` if there are any listeners, `false` if there are not. - */ - emit>(type: Key, event: EventsWithWildcard[Key]): boolean; /** * Like `on` but the listener will only be fired once and then it will be removed. * @param type - the event you'd like to listen to @@ -105,6 +108,10 @@ export declare class EventEmitter> imp * @returns `this` to enable you to chain method calls. */ removeAllListeners(type?: keyof EventsWithWildcard): this; + /** + * @internal + */ + [disposeSymbol](): void; } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts.map index 1943f336..640998f1 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/common/EventEmitter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,kBAAkB,CAAC,MAAM,SAAS,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC;IAC3E,EAAE,CAAC,GAAG,SAAS,MAAM,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;IAC7E,GAAG,CAAC,GAAG,SAAS,MAAM,MAAM,EAC1B,IAAI,EAAE,GAAG,EACT,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAC7B,IAAI,CAAC;IACR,IAAI,CAAC,GAAG,SAAS,MAAM,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;IAKvE,WAAW,CAAC,GAAG,SAAS,MAAM,MAAM,EAClC,IAAI,EAAE,GAAG,EACT,O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eteer-core/lib/esm/puppeteer/common/EventEmitter.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js index 0b63c7e5..c6040d96 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js @@ -21,10 +21,12 @@ export class EventEmitter { #emitter; #handlers = new Map(); /** + * If you pass an emitter, the returned emitter will wrap the passed emitter. + * * @internal */ - constructor() { - this.#emitter = mitt(this.#handlers); + constructor(emitter = mitt(new Map())) { + this.#emitter = emitter; } /** * Bind an event listener to fire when an event occurs. @@ -33,6 +35,13 @@ export class EventEmitter { * @returns `this` to enable you to chain method calls. */ on(type, handler) { + const handlers = this.#handlers.get(type); + if (handlers === undefined) { + this.#handlers.set(type, [handler]); + } + else { + handlers.push(handler); + } this.#emitter.on(type, handler); return this; } @@ -43,25 +52,18 @@ export class EventEmitter { * @returns `this` to enable you to chain method calls. */ off(type, handler) { - this.#emitter.off(type, handler); - return this; - } - /** - * Remove an event listener. - * - * @deprecated please use {@link EventEmitter.off} instead. - */ - removeListener(type, handler) { - this.off(type, handler); - return this; - } - /** - * Add an event listener. - * - * @deprecated please use {@link EventEmitter.on} instead. - */ - addListener(type, handler) { - this.on(type, handler); + const handlers = this.#handlers.get(type) ?? []; + if (handler === undefined) { + for (const handler of handlers) { + this.#emitter.off(type, handler); + } + this.#handlers.delete(type); + return this; + } + const index = handlers.lastIndexOf(handler); + if (index > -1) { + this.#emitter.off(type, ...handlers.splice(index, 1)); + } return this; } /** @@ -75,6 +77,22 @@ export class EventEmitter { this.#emitter.emit(type, event); return this.listenerCount(type) > 0; } + /** + * Remove an event listener. + * + * @deprecated please use {@link EventEmitter.off} instead. + */ + removeListener(type, handler) { + return this.off(type, handler); + } + /** + * Add an event listener. + * + * @deprecated please use {@link EventEmitter.on} instead. + */ + addListener(type, handler) { + return this.on(type, handler); + } /** * Like `on` but the listener will only be fired once and then it will be removed. * @param type - the event you'd like to listen to @@ -105,14 +123,23 @@ export class EventEmitter { * @returns `this` to enable you to chain method calls. */ removeAllListeners(type) { - if (type === undefined || type === '*') { - this.#handlers.clear(); - } - else { - this.#handlers.delete(type); + if (type !== undefined) { + return this.off(type); } + this[disposeSymbol](); return this; } + /** + * @internal + */ + [disposeSymbol]() { + for (const [type, handlers] of this.#handlers) { + for (const handler of handlers) { + this.#emitter.off(type, handler); + } + } + this.#handlers.clear(); + } } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js.map index 017a3b3b..d238ad2d 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js.map @@ -1 +1 @@ -{"version":3,"file":"EventEmitter.js","sourceRoot":"","sources":["../../../../src/common/EventEmitter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,IAGN,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAmDpD;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,YAAY;IAGvB,QAAQ,CAAgD;IACxD,SAAS,GAA0D,IAAI,GAAG,EAAE,CAAC;IAE7E;;OAEG;IACH;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACvC,CAAC;IAED;;;;;OAKG;IACH,EAAE,CACA,IAAS,EACT,OAAiD;QAEjD,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,IAAS,EACT,OAAkD;QAElD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,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AO,IAAI,CAAC;IACd,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,iBAAiB;IAK5B,OAAO,CAAS;IAChB,KAAK,CAAO;IACZ,QAAQ,CAAiB;IAEzB,YAAY,MAAc,EAAE,IAAU,EAAE,OAAuB;QAC7D,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7C,CAAC;IAED,CAAC,aAAa,CAAC;QACb,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"EventEmitter.js","sourceRoot":"","sources":["../../../../src/common/EventEmitter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,IAAoB,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAmDpD;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,YAAY;IAGvB,QAAQ,CAA6D;IACrE,SAAS,GAAG,IAAI,GAAG,EAA2C,CAAC;IAE/D;;;;OAIG;IACH,YACE,UAAsE,IAAI,CACxE,IAAI,GAAG,EAAE,CACV;QAED,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC1B,CAAC;IAED;;;;;OAKG;IACH,EAAE,CACA,IAAS,EACT,OAAiD;QAEjD,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,CAAC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AE,IAAU,EAAE,OAAuB;QAC7D,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7C,CAAC;IAED,CAAC,aAAa,CAAC;QACb,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts index 3e0f9be9..623add71 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts @@ -144,6 +144,18 @@ export interface PDFOptions { * @experimental */ tagged?: boolean; + /** + * Generate document outline. + * + * @remarks + * If this is enabled the PDF will also be tagged (accessible) + * Currently only works in old Headless (headless = true) + * crbug/840455#c47 + * + * @defaultValue `false` + * @experimental + */ + outline?: boolean; /** * Timeout in milliseconds. Pass `0` to disable timeout. * @defaultValue `30_000` @@ -173,7 +185,7 @@ export interface ParsedPDFOptionsInterface { /** * @internal */ -export type ParsedPDFOptions = Required & ParsedPDFOptionsInterface>; +export type ParsedPDFOptions = Required & ParsedPDFOptionsInterface>; /** * @internal */ diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts.map index 6d5d8e8c..36caa01c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"PDFOptions.d.ts","sourceRoot":"","sources":["../../../../src/common/PDFOptions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,QAAQ,GACR,OAAO,GACP,SAAS,GACT,QAAQ,GACR,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAET;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,MAAM,WAAW,GACnB,SAAS,CAAC,oBAAoB,CAAC,GAC/B,UAAU,CAAC,oBAAoB,CAAC,GAChC,oBAAoB,CAAC;AAEzB;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;;;;;;;;;OAaG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE;QACN,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACrC,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAC,GAAG,yBAAyB,CAChE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,oBAAoB,EAAE,qBAAqB,CAajE,CAAC"} \ No newline at end of file +{"version":3,"file":"PDFOptions.d.ts","sourceRoot":"","sources":["../../../../src/common/PDFOptions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC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AUG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE;QACN,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACrC,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC,GAAG,yBAAyB,CAC5E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,oBAAoB,EAAE,qBAAqB,CAajE,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js.map index 117ef782..32aa67e5 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js.map @@ -1 +1 @@ -{"version":3,"file":"PDFOptions.js","sourceRoot":"","sources":["../../../../src/common/PDFOptions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAoMH;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GACvB;IACE,MAAM,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAC;IAChC,KAAK,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAC;I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MAAM,EAAE,IAAI,EAAC;IAC/B,EAAE,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAC;IAChC,EAAE,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAC;IAChC,EAAE,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC;IAC/B,EAAE,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC;IAC/B,EAAE,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC;CACvB,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.d.ts deleted file mode 100644 index 61cb6c68..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.d.ts +++ /dev/null @@ -1 +0,0 @@ -//# sourceMappingURL=Browser.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.d.ts.map deleted file mode 100644 index 5a2c7169..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Browser.d.ts","sourceRoot":"","sources":["../../../../../src/common/bidi/Browser.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.js deleted file mode 100644 index bd571ffb..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -//# sourceMappingURL=Browser.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.js.map deleted file mode 100644 index 23380fac..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/bidi/Browser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../../src/common/bidi/Browser.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/types.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/types.d.ts index 3c4bdca7..d0aaaa3e 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/types.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/types.d.ts @@ -6,6 +6,10 @@ import type { ElementHandle } from '../api/ElementHandle.js'; import type { JSHandle } from '../api/JSHandle.js'; import type { LazyArg } from './LazyArg.js'; +/** + * @public + */ +export type AwaitablePredicate = (value: T) => Awaitable; /** * @public */ diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/types.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/types.d.ts.map index f0cd2f06..482f5427 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/types.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/types.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/common/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AAE1C;;GA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AG,EAAE,IAAI,CAAC,CAAC,GACpC,GAAG,CAAC;AAER,KAAK,0BAA0B,CAC7B,MAAM,SAAS,SAAS,MAAM,EAAE,EAChC,UAAU,SAAS,SAAS,MAAM,EAAE,EACpC,GAAG,SAAS,MAAM,EAAE,GAAG,EAAE,IACvB,MAAM,SAAS,CAAC,MAAM,UAAU,EAAE,GAAG,MAAM,UAAU,CAAC,GACtD,UAAU,SAAS,MAAM,GACvB,UAAU,SAAS,SAAS,MAAM,EAAE,GAClC,0BAA0B,CACxB,UAAU,EACV,UAAU,EACV;IAAC,GAAG,GAAG;IAAE,GAAG,mBAAmB,CAAC,UAAU,EAAE,UAAU,CAAC;CAAC,CACzD,GACD,GAAG,GACL,GAAG,GACL,GAAG,CAAC;AAER,KAAK,KAAK,CACR,KAAK,SAAS,MAAM,EACpB,SAAS,SAAS,MAAM,EACxB,GAAG,SAAS,MAAM,EAAE,GAAG,EAAE,IACvB,KAAK,SAAS,GAAG,MAAM,MAAM,GAAG,SAAS,GAAG,MAAM,MAAM,EAAE,GAC1D,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,GAAG,GAAG,EAAE,MAAM,CAAC,CAAC,GAC1C,CAAC,GAAG,GAAG,EAAE,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.d.ts index 1488acdb..b5773859 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.d.ts @@ -9,12 +9,10 @@ /// import type FS from 'fs/promises'; import type { Readable } from 'stream'; -import type { Protocol } from 'devtools-protocol'; -import { type Observable } from '../../third_party/rxjs/rxjs.js'; +import { Observable } from '../../third_party/rxjs/rxjs.js'; import type { CDPSession } from '../api/CDPSession.js'; -import type { Deferred } from '../util/Deferred.js'; import type { EventEmitter, EventType } from './EventEmitter.js'; -import type { NetworkManagerEvents } from './NetworkManagerEvents.js'; +import type { ParsedPDFOptions, PDFOptions } from './PDFOptions.js'; /** * @internal */ @@ -26,14 +24,6 @@ export declare const DEFAULT_VIEWPORT: Readonly<{ width: 800; height: 600; }>; -/** - * @internal - */ -export declare function createEvaluationError(details: Protocol.Runtime.ExceptionDetails): unknown; -/** - * @internal - */ -export declare function createClientError(details: Protocol.Runtime.ExceptionDetails): Error; /** * @internal */ @@ -55,10 +45,6 @@ export declare const withSourcePuppeteerURLIfNone: (functionName: * @internal */ export declare const getSourcePuppeteerURLIfAvailable: (object: T) => PuppeteerURL | undefined; -/** - * @internal - */ -export declare function valueFromRemoteObject(remoteObject: Protocol.Runtime.RemoteObject): any; /** * @internal */ @@ -83,14 +69,6 @@ export declare const isDate: (obj: unknown) => obj is Date; * @internal */ export declare function evaluationString(fun: Function | string, ...args: unknown[]): string; -/** - * @internal - */ -export declare function addPageBinding(type: string, name: string): void; -/** - * @internal - */ -export declare function pageBindingInitString(type: string, name: string): string; /** * @internal */ @@ -103,10 +81,6 @@ export declare function getReadableAsBuffer(readable: Readable, path?: string): * @internal */ export declare function getReadableFromProtocolStream(client: CDPSession, handle: string): Promise; -/** - * @internal - */ -export declare function getPageContent(): string; /** * @internal */ @@ -130,13 +104,22 @@ export declare function getSourceUrlComment(url: string): string; /** * @internal */ -export declare function waitForHTTP(networkManager: EventEmitter, eventName: EventType, urlOrPredicate: string | ((res: T) => boolean | Promise), -/** Time after the function will timeout */ -ms: number, cancelation: Deferred): Promise; +export declare const NETWORK_IDLE_TIME = 500; /** * @internal */ -export declare const NETWORK_IDLE_TIME = 500; +export declare function parsePDFOptions(options?: PDFOptions, lengthUnit?: 'in' | 'cm'): ParsedPDFOptions; +/** + * @internal + */ +export declare const unitToPixels: { + px: number; + in: number; + cm: number; + mm: number; +}; +/** + * @internal + */ +export declare function fromEmitterEvent, Event extends keyof Events>(emitter: EventEmitter, eventName: Event): Observable; //# sourceMappingURL=util.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.d.ts.map index 05e816be..a0e1be6c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/common/util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;AAEH,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAErC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAIL,KAAK,UAAU,EAMhB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAGrD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAKlD,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,UAAU,8BAA2B,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;EAA2C,CAAC;AAEzE;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,gBAAgB,GACzC,OAAO,CAsDT;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,gBAAgB,GACzC,KAAK,CAwCP;AA0BD;;GAEG;AACH,qBAAa,YAAY;;IACvB,MAAM,CAAC,YAAY,SAAmB;IAEtC,MAAM,CAAC,YAAY,C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AAE,CAAC,CAc3D;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,QAAQ,EAClB,IAAI,CAAC,EAAE,MAAM,GACZ,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAuBxB;AAED;;GAEG;AACH,wBAAsB,6BAA6B,CACjD,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,QAAQ,CAAC,CAiCnB;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAcvC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,GACX,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,CAcjD;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAQrD;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,gCAAgC,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,CAAC,SAAS;IAAC,GAAG,IAAI,MAAM,CAAA;CAAC,EACzD,cAAc,EAAE,YAAY,CAAC,oBAAoB,CAAC,EAClD,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjE,2CAA2C;AAC3C,EAAE,EAAE,MAAM,EACV,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,GAC3B,OAAO,CAAC,CAAC,CAAC,CAiBZ;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,MAAM,CAAC"} \ No newline at end of file +{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/common/util.ts"],"names":[],"mappings":"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,OAAO,CAAC,EACzC,KAAK,SAAS,MAAM,MAAM,EAC1B,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAU5E"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js index 13c03b92..1ed59b6d 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js @@ -3,12 +3,13 @@ * Copyright 2017 Google Inc. * SPDX-License-Identifier: Apache-2.0 */ -import { map, NEVER, timer, firstValueFrom, fromEvent, filterAsync, from, raceWith, } from '../../third_party/rxjs/rxjs.js'; +import { map, NEVER, Observable, timer } from '../../third_party/rxjs/rxjs.js'; import { isNode } from '../environment.js'; import { assert } from '../util/assert.js'; import { isErrorLike } from '../util/ErrorLike.js'; import { debug } from './Debug.js'; import { TimeoutError } from './Errors.js'; +import { paperFormats } from './PDFOptions.js'; /** * @internal */ @@ -17,103 +18,6 @@ export const debugError = debug('puppeteer:error'); * @internal */ export const DEFAULT_VIEWPORT = Object.freeze({ width: 800, height: 600 }); -/** - * @internal - */ -export function createEvaluationError(details) { - let name; - let message; - if (!details.exception) { - name = 'Error'; - message = details.text; - } - else if ((details.exception.type !== 'object' || - details.exception.subtype !== 'error') && - !details.exception.objectId) { - return valueFromRemoteObject(details.exception); - } - else { - const detail = getErrorDetails(details); - name = detail.name; - message = detail.message; - } - const messageHeight = message.split('\n').length; - const error = new Error(message); - error.name = name; - const stackLines = error.stack.split('\n'); - const messageLines = stackLines.splice(0, messageHeight); - // The first line is this function which we ignore. - stackLines.shift(); - if (details.stackTrace && stackLines.length < Error.stackTraceLimit) { - for (const frame of details.stackTrace.callFrames.reverse()) { - if (PuppeteerURL.isPuppeteerURL(frame.url) && - frame.url !== PuppeteerURL.INTERNAL_URL) { - const url = PuppeteerURL.parse(frame.url); - stackLines.unshift(` at ${frame.functionName || url.functionName} (${url.functionName} at ${url.siteString}, :${frame.lineNumber}:${frame.columnNumber})`); - } - else { - stackLines.push(` at ${frame.functionName || ''} (${frame.url}:${frame.lineNumber}:${frame.columnNumber})`); - } - if (stackLines.length >= Error.stackTraceLimit) { - break; - } - } - } - error.stack = [...messageLines, ...stackLines].join('\n'); - return error; -} -/** - * @internal - */ -export function createClientError(details) { - let name; - let message; - if (!details.exception) { - name = 'Error'; - message = details.text; - } - else if ((details.exception.type !== 'object' || - details.exception.subtype !== 'error') && - !details.exception.objectId) { - return valueFromRemoteObject(details.exception); - } - else { - const detail = getErrorDetails(details); - name = detail.name; - message = detail.message; - } - const error = new Error(message); - error.name = name; - const messageHeight = error.message.split('\n').length; - const messageLines = error.stack.split('\n').splice(0, messageHeight); - const stackLines = []; - if (details.stackTrace) { - for (const frame of details.stackTrace.callFrames) { - // Note we need to add `1` because the values are 0-indexed. - stackLines.push(` at ${frame.functionName || ''} (${frame.url}:${frame.lineNumber + 1}:${frame.columnNumber + 1})`); - if (stackLines.length >= Error.stackTraceLimit) { - break; - } - } - } - error.stack = [...messageLines, ...stackLines].join('\n'); - return error; -} -const getErrorDetails = (details) => { - let name = ''; - let message; - const lines = details.exception?.description?.split('\n at ') ?? []; - const size = Math.min(details.stackTrace?.callFrames.length ?? 0, lines.length - 1); - lines.splice(-size, size); - if (details.exception?.className) { - name = details.exception.className; - } - message = lines.join('\n'); - if (name && message.startsWith(`${name}: `)) { - message = message.slice(name.length + 2); - } - return { message, name }; -}; /** * @internal */ @@ -185,31 +89,6 @@ export const getSourcePuppeteerURLIfAvailable = (object) => { } return undefined; }; -/** - * @internal - */ -export function valueFromRemoteObject(remoteObject) { - assert(!remoteObject.objectId, 'Cannot extract value when objectId is given'); - if (remoteObject.unserializableValue) { - if (remoteObject.type === 'bigint') { - return BigInt(remoteObject.unserializableValue.replace('n', '')); - } - switch (remoteObject.unserializableValue) { - case '-0': - return -0; - case 'NaN': - return NaN; - case 'Infinity': - return Infinity; - case '-Infinity': - return -Infinity; - default: - throw new Error('Unsupported unserializable value: ' + - remoteObject.unserializableValue); - } - } - return remoteObject.value; -} /** * @internal */ @@ -256,62 +135,6 @@ export function evaluationString(fun, ...args) { } return `(${fun})(${args.map(serializeArgument).join(',')})`; } -/** - * @internal - */ -export function addPageBinding(type, name) { - // This is the CDP binding. - // @ts-expect-error: In a different context. - const callCdp = globalThis[name]; - // Depending on the frame loading state either Runtime.evaluate or - // Page.addScriptToEvaluateOnNewDocument might succeed. Let's check that we - // don't re-wrap Puppeteer's binding. - if (callCdp[Symbol.toStringTag] === 'PuppeteerBinding') { - return; - } - // We replace the CDP binding with a Puppeteer binding. - Object.assign(globalThis, { - [name](...args) { - // This is the Puppeteer binding. - // @ts-expect-error: In a different context. - const callPuppeteer = globalThis[name]; - callPuppeteer.args ??= new Map(); - callPuppeteer.callbacks ??= new Map(); - const seq = (callPuppeteer.lastSeq ?? 0) + 1; - callPuppeteer.lastSeq = seq; - callPuppeteer.args.set(seq, args); - callCdp(JSON.stringify({ - type, - name, - seq, - args, - isTrivial: !args.some(value => { - return value instanceof Node; - }), - })); - return new Promise((resolve, reject) => { - callPuppeteer.callbacks.set(seq, { - resolve(value) { - callPuppeteer.args.delete(seq); - resolve(value); - }, - reject(value) { - callPuppeteer.args.delete(seq); - reject(value); - }, - }); - }); - }, - }); - // @ts-expect-error: In a different context. - globalThis[name][Symbol.toStringTag] = 'PuppeteerBinding'; -} -/** - * @internal - */ -export function pageBindingInitString(type, name) { - return evaluationString(addPageBinding, type, name); -} /** * @internal */ @@ -398,23 +221,6 @@ export async function getReadableFromProtocolStream(client, handle) { }, }); } -/** - * @internal - */ -export function getPageContent() { - let content = ''; - for (const node of document.childNodes) { - switch (node) { - case document.documentElement: - content += document.documentElement.outerHTML; - break; - default: - content += new XMLSerializer().serializeToString(node); - break; - } - } - return content; -} /** * @internal */ @@ -459,21 +265,107 @@ export function getSourceUrlComment(url) { /** * @internal */ -export async function waitForHTTP(networkManager, eventName, urlOrPredicate, -/** Time after the function will timeout */ -ms, cancelation) { - return await firstValueFrom(fromEvent(networkManager, eventName).pipe(filterAsync(async (http) => { - if (isString(urlOrPredicate)) { - return urlOrPredicate === http.url(); - } - if (typeof urlOrPredicate === 'function') { - return !!(await urlOrPredicate(http)); - } - return false; - }), raceWith(timeout(ms), from(cancelation.valueOrThrow())))); +export const NETWORK_IDLE_TIME = 500; +/** + * @internal + */ +export function parsePDFOptions(options = {}, lengthUnit = 'in') { + const defaults = { + scale: 1, + displayHeaderFooter: false, + headerTemplate: '', + footerTemplate: '', + printBackground: false, + landscape: false, + pageRanges: '', + preferCSSPageSize: false, + omitBackground: false, + tagged: false, + outline: false, + }; + let width = 8.5; + let height = 11; + if (options.format) { + const format = paperFormats[options.format.toLowerCase()]; + assert(format, 'Unknown paper format: ' + options.format); + width = format.width; + height = format.height; + } + else { + width = convertPrintParameterToInches(options.width, lengthUnit) ?? width; + height = + convertPrintParameterToInches(options.height, lengthUnit) ?? height; + } + const margin = { + top: convertPrintParameterToInches(options.margin?.top, lengthUnit) || 0, + left: convertPrintParameterToInches(options.margin?.left, lengthUnit) || 0, + bottom: convertPrintParameterToInches(options.margin?.bottom, lengthUnit) || 0, + right: convertPrintParameterToInches(options.margin?.right, lengthUnit) || 0, + }; + // Quirk https://bugs.chromium.org/p/chromium/issues/detail?id=840455#c44 + if (options.outline) { + options.tagged = true; + } + return { + ...defaults, + ...options, + width, + height, + margin, + }; } /** * @internal */ -export const NETWORK_IDLE_TIME = 500; +export const unitToPixels = { + px: 1, + in: 96, + cm: 37.8, + mm: 3.78, +}; +function convertPrintParameterToInches(parameter, lengthUnit = 'in') { + if (typeof parameter === 'undefined') { + return undefined; + } + let pixels; + if (isNumber(parameter)) { + // Treat numbers as pixel values to be aligned with phantom's paperSize. + pixels = parameter; + } + else if (isString(parameter)) { + const text = parameter; + let unit = text.substring(text.length - 2).toLowerCase(); + let valueText = ''; + if (unit in unitToPixels) { + valueText = text.substring(0, text.length - 2); + } + else { + // In case of unknown unit try to parse the whole parameter as number of pixels. + // This is consistent with phantom's paperSize behavior. + unit = 'px'; + valueText = text; + } + const value = Number(valueText); + assert(!isNaN(value), 'Failed to parse parameter value: ' + text); + pixels = value * unitToPixels[unit]; + } + else { + throw new Error('page.pdf() Cannot handle parameter type: ' + typeof parameter); + } + return pixels / unitToPixels[lengthUnit]; +} +/** + * @internal + */ +export function fromEmitterEvent(emitter, eventName) { + return new Observable(subscriber => { + const listener = (event) => { + subscriber.next(event); + }; + emitter.on(eventName, listener); + return () => { + emitter.off(eventName, listener); + }; + }); +} //# sourceMappingURL=util.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js.map index e18a7da3..81300194 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/common/util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,EACL,GAAG,EACH,KAAK,EACL,KAAK,EAEL,cAAc,EACd,SAAS,EACT,WAAW,EACX,IAAI,EACJ,QAAQ,GACT,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAC;AACjC,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAIzC;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAE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AAC3C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAG9B,OAA6B,EAAE,SAAgB;IAC/C,OAAO,IAAI,UAAU,CAAC,UAAU,CAAC,EAAE;QACjC,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAE,EAAE;YACxC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC,CAAC;QACF,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAChC,OAAO,GAAG,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QACnC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts index acd0a27f..23cf209f 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts @@ -7,8 +7,4 @@ * @internal */ export declare const isNode: boolean; -/** - * @internal - */ -export declare const DEFERRED_PROMISE_DEBUG_TIMEOUT: number; //# sourceMappingURL=environment.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts.map index 8e6f123e..e481532f 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/environment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,MAAM,SAAwD,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,8BAA8B,QAInC,CAAC"} \ No newline at end of file +{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/environment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,MAAM,SAAwD,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js index 439830e1..9e2ede0b 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js @@ -7,11 +7,4 @@ * @internal */ export const isNode = !!(typeof process !== 'undefined' && process.version); -/** - * @internal - */ -export const DEFERRED_PROMISE_DEBUG_TIMEOUT = typeof process !== 'undefined' && - typeof process.env['PUPPETEER_DEFERRED_PROMISE_DEBUG_TIMEOUT'] !== 'undefined' - ? Number(process.env['PUPPETEER_DEFERRED_PROMISE_DEBUG_TIMEOUT']) - : -1; //# sourceMappingURL=environment.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js.map index 502584fd..f6272f03 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js.map @@ -1 +1 @@ -{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../src/environment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,CAAC,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;AAE5E;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GACzC,OAAO,OAAO,KAAK,WAAW;IAC9B,OAAO,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,KAAK,WAAW;IAC5E,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../src/environment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,CAAC,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.d.ts index b9b2e005..900c9bcf 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.d.ts @@ -5,5 +5,5 @@ * * @internal */ -export declare const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{#e=!1;#t=!1;#n;#r=()=>{};#o=new Promise(e=>{this.#r=e});#s;#i;constructor(e){e&&e.timeout>0&&(this.#i=new S(e.message),this.#s=setTimeout(()=>{this.reject(this.#i)},e.timeout))}#l(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#l(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#l(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}async valueOrThrow(){if(await this.#o,this.#t)throw this.#n;return this.#n}static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}};var X=new Map,G=t=>{let e=X.get(t);return e||(e=new Function(`return ${t}`)(),X.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var E=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},P=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var W={};u(W,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)\\s*(?:(?\\W?=)\\s*(?.+?)\\s*(\\s(?[iIsS]))?\\s*)?\\]/gu,id:/#(?[-\\w\\P{ASCII}]+)/gu,class:/\\.(?[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?[-\\w\\P{ASCII}]+)(?:\\((?\u00B6*)\\))?/gu,\"pseudo-class\":/:(?[-\\w\\P{ASCII}]+)(?:\\((?\u00B6*)\\))?/gu,universal:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?\\xB6*)\",\"(?.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Ee=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Ee.observe(t,{childList:!0,characterData:!0,subtree:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Pe=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Pe.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var U={};u(U,{xpathQuerySelectorAll:()=>j});var j=function*(t,e,n=-1){let o=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),i=[],s;for(;(s=o.iterateNext())&&(i.push(s),!(n&&i.length===n)););for(let l=0;l\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*j(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},V=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...W,...Q,...$,...U,Deferred:f,createFunction:G,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:E,RAFPoller:P}),Re=ke;\n/**\n * @license\n * Copyright 2018 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2023 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2022 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2020 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n"; +export declare const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}#e=!1;#t=!1;#n;#r;#o=new Promise(e=>{this.#r=e});#s;#l;constructor(e){e&&e.timeout>0&&(this.#l=new S(e.message),this.#s=setTimeout(()=>{this.reject(this.#l)},e.timeout))}#a(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#a(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#a(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}#i;valueOrThrow(){return this.#i||(this.#i=(async()=>{if(await this.#o,this.#t)throw this.#n;return this.#n})()),this.#i}};var z=new Map,G=t=>{let e=z.get(t);return e||(e=new Function(`return ${t}`)(),z.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var E=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},P=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var W={};u(W,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)\\s*(?:(?\\W?=)\\s*(?.+?)\\s*(\\s(?[iIsS]))?\\s*)?\\]/gu,id:/#(?[-\\w\\P{ASCII}]+)/gu,class:/\\.(?[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?[-\\w\\P{ASCII}]+)(?:\\((?\u00B6*)\\))?/gu,\"pseudo-class\":/:(?[-\\w\\P{ASCII}]+)(?:\\((?\u00B6*)\\))?/gu,universal:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?\\xB6*)\",\"(?.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Ee=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Ee.observe(t,{childList:!0,characterData:!0,subtree:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Pe=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Pe.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var U={};u(U,{xpathQuerySelectorAll:()=>j});var j=function*(t,e,n=-1){let o=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),i=[],s;for(;(s=o.iterateNext())&&(i.push(s),!(n&&i.length===n)););for(let l=0;l\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*j(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},V=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...W,...Q,...$,...U,Deferred:f,createFunction:G,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:E,RAFPoller:P}),Re=ke;\n/**\n * @license\n * Copyright 2018 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2023 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2022 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2020 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n"; //# sourceMappingURL=injected.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.d.ts.map index c3fdb582..3c65e450 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"injected.d.ts","sourceRoot":"","sources":["../../../../src/generated/injected.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,6jbAAmjb,CAAC"} \ No newline at end of file +{"version":3,"file":"injected.d.ts","sourceRoot":"","sources":["../../../../src/generated/injected.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,ombAA0lb,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js index c39c761d..685e65cd 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js @@ -5,5 +5,5 @@ * * @internal */ -export const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{#e=!1;#t=!1;#n;#r=()=>{};#o=new Promise(e=>{this.#r=e});#s;#i;constructor(e){e&&e.timeout>0&&(this.#i=new S(e.message),this.#s=setTimeout(()=>{this.reject(this.#i)},e.timeout))}#l(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#l(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#l(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}async valueOrThrow(){if(await this.#o,this.#t)throw this.#n;return this.#n}static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}};var X=new Map,G=t=>{let e=X.get(t);return e||(e=new Function(`return ${t}`)(),X.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var E=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},P=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var W={};u(W,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)\\s*(?:(?\\W?=)\\s*(?.+?)\\s*(\\s(?[iIsS]))?\\s*)?\\]/gu,id:/#(?[-\\w\\P{ASCII}]+)/gu,class:/\\.(?[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?[-\\w\\P{ASCII}]+)(?:\\((?¶*)\\))?/gu,\"pseudo-class\":/:(?[-\\w\\P{ASCII}]+)(?:\\((?¶*)\\))?/gu,universal:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?\\xB6*)\",\"(?.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Ee=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Ee.observe(t,{childList:!0,characterData:!0,subtree:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Pe=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Pe.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var U={};u(U,{xpathQuerySelectorAll:()=>j});var j=function*(t,e,n=-1){let o=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),i=[],s;for(;(s=o.iterateNext())&&(i.push(s),!(n&&i.length===n)););for(let l=0;l\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*j(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},V=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...W,...Q,...$,...U,Deferred:f,createFunction:G,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:E,RAFPoller:P}),Re=ke;\n/**\n * @license\n * Copyright 2018 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2023 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2022 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2020 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n"; +export const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}#e=!1;#t=!1;#n;#r;#o=new Promise(e=>{this.#r=e});#s;#l;constructor(e){e&&e.timeout>0&&(this.#l=new S(e.message),this.#s=setTimeout(()=>{this.reject(this.#l)},e.timeout))}#a(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#a(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#a(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}#i;valueOrThrow(){return this.#i||(this.#i=(async()=>{if(await this.#o,this.#t)throw this.#n;return this.#n})()),this.#i}};var z=new Map,G=t=>{let e=z.get(t);return e||(e=new Function(`return ${t}`)(),z.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var E=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},P=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var W={};u(W,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)\\s*(?:(?\\W?=)\\s*(?.+?)\\s*(\\s(?[iIsS]))?\\s*)?\\]/gu,id:/#(?[-\\w\\P{ASCII}]+)/gu,class:/\\.(?[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?[-\\w\\P{ASCII}]+)(?:\\((?¶*)\\))?/gu,\"pseudo-class\":/:(?[-\\w\\P{ASCII}]+)(?:\\((?¶*)\\))?/gu,universal:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?\\xB6*)\",\"(?.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Ee=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Ee.observe(t,{childList:!0,characterData:!0,subtree:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Pe=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Pe.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var U={};u(U,{xpathQuerySelectorAll:()=>j});var j=function*(t,e,n=-1){let o=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),i=[],s;for(;(s=o.iterateNext())&&(i.push(s),!(n&&i.length===n)););for(let l=0;l\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*j(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},V=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...W,...Q,...$,...U,Deferred:f,createFunction:G,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:E,RAFPoller:P}),Re=ke;\n/**\n * @license\n * Copyright 2018 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2023 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2022 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2020 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n"; //# sourceMappingURL=injected.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js.map index 4652e335..bf403bd6 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js.map @@ -1 +1 @@ -{"version":3,"file":"injected.js","sourceRoot":"","sources":["../../../../src/generated/injected.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,gjbAAgjb,CAAC"} \ No newline at end of file +{"version":3,"file":"injected.js","sourceRoot":"","sources":["../../../../src/generated/injected.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,ulbAAulb,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.d.ts index 8b5d1ad5..3d86f353 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.d.ts @@ -1,5 +1,5 @@ /** * @internal */ -export declare const packageVersion = "21.7.0"; +export declare const packageVersion = "21.11.0"; //# sourceMappingURL=version.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.d.ts.map index 3f56535d..87bad7d5 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../src/generated/version.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,cAAc,WAAW,CAAC"} \ No newline at end of file +{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../src/generated/version.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,cAAc,YAAY,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.js index 62f7674e..49bc2fac 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.js @@ -1,5 +1,5 @@ /** * @internal */ -export const packageVersion = '21.7.0'; +export const packageVersion = '21.11.0'; //# sourceMappingURL=version.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.js.map index 079c8650..a41a75a3 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.js.map @@ -1 +1 @@ -{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../src/generated/version.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC"} \ No newline at end of file +{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../src/generated/version.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/injected/injected.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/injected/injected.d.ts index f0ad67a4..2184ce25 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/injected/injected.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/injected/injected.d.ts @@ -27,7 +27,7 @@ declare const PuppeteerUtil: Readonly<{ pierceQuerySelector: (root: Node, selector: string) => Element | null; pierceQuerySelectorAll: (element: Node, selector: string) => Element[]; customQuerySelectors: { - "__#989@#selectors": Map; + "__#995@#selectors": Map; register(name: string, handler: import("../puppeteer-core.js").CustomQueryHandler): void; unregister(name: string): void; get(name: string): CustomQuerySelectors.CustomQuerySelector | undefined; diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.d.ts index 6cbf471f..badc4c9f 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.d.ts @@ -24,7 +24,7 @@ export declare class ChromeLauncher extends ProductLauncher { isTemp: boolean; }): Promise; defaultArgs(options?: BrowserLaunchArgumentOptions): string[]; - executablePath(channel?: ChromeReleaseChannel): string; + executablePath(channel?: ChromeReleaseChannel, headless?: boolean | 'new'): string; } /** * Extracts all features from the given command-line flag diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map index 785dbaac..79f84072 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ChromeLauncher.d.ts","sourceRoot":"","sources":["../../../../src/node/ChromeLauncher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAYH,OAAO,KAAK,EAAC,O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B,CAAC;AAC5B,OAAO,EAAC,eAAe,EAAE,KAAK,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAGtD;;GAEG;AACH,qBAAa,cAAe,SAAQ,eAAe;gBACrC,SAAS,EAAE,aAAa;IAI3B,MAAM,CAAC,OAAO,GAAE,0BAA+B,GAAG,OAAO,CAAC,OAAO,CAAC;IA2C3E;;OAEG;IACY,sBAAsB,CACnC,OAAO,GAAE,0BAA+B,GACvC,OAAO,CAAC,kBAAkB,CAAC;IA0E9B;;OAEG;IACY,gBAAgB,CAC7B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE;QAAC,MAAM,EAAE,OAAO,CAAA;KAAC,GACtB,OAAO,CAAC,IAAI,CAAC;IAWP,WAAW,CAAC,OAAO,GAAE,4BAAiC,GAAG,MAAM,EAAE;IAgGjE,cAAc,CACrB,OAAO,CAAC,EAAE,oBAAoB,EAC9B,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,GACzB,MAAM;CAUV;AAiBD;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,MAAM,EAAO,GAAG,MAAM,EAAE,CAW1E;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAW3E"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js index e60a8d75..f21c556b 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js @@ -94,7 +94,7 @@ export class ChromeLauncher extends ProductLauncher { let chromeExecutable = executablePath; if (!chromeExecutable) { assert(channel || !this.puppeteer._isPuppeteerCore, `An \`executablePath\` or \`channel\` must be specified for \`puppeteer-core\``); - chromeExecutable = this.executablePath(channel); + chromeExecutable = this.executablePath(channel, options.headless ?? true); } return { executablePath: chromeExecutable, @@ -166,6 +166,7 @@ export class ChromeLauncher extends ProductLauncher { '--disable-sync', '--enable-automation', '--export-tagged-pdf', + '--generate-pdf-document-outline', '--force-color-profile=srgb', '--metrics-recording-only', '--no-first-run', @@ -192,7 +193,7 @@ export class ChromeLauncher extends ProductLauncher { chromeArguments.push(...args); return chromeArguments; } - executablePath(channel) { + executablePath(channel, headless) { if (channel) { return computeSystemExecutablePath({ browser: SupportedBrowsers.CHROME, @@ -200,7 +201,7 @@ export class ChromeLauncher extends ProductLauncher { }); } else { - return this.resolveExecutablePath(); + return this.resolveExecutablePath(headless); } } } diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js.map index c956b8d0..e2c07243 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js.map @@ -1 +1 @@ -{"version":3,"file":"ChromeLauncher.js","sourceRoot":"","sources":["../../../../src/node/ChromeLauncher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EACL,2BAA2B,EAC3B,OAAO,IAAI,iBAAiB,EAC5B,oBAAoB,IAAI,4BAA4B,GACrD,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAOzC,OAAO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B,CAAC;aAAM,CAAC;YACN,CAAC,EAAE,CAAC;QACN,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file +{"version":3,"file":"ChromeLauncher.js","sourceRoot":"","sources":["../../../../src/node/ChromeLauncher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EACL,2BAA2B,EAC3B,OAAO,IAAI,iBAAiB,EAC5B,oBAAoB,IAAI,4BAA4B,GACrD,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAOzC,OAAO,EAAC,eAAe,EAA0B,MAAM,sBAAsB,CAAC;AAE9E,OAAO,EAAC,EAAE,EAAC,MAAM,cAAc,CAAC;AAEhC;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,eAAe;IACjD,YAAY,SAAwB;QAClC,KAAK,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC7B,CAAC;IAEQ,MAAM,CAAC,UAAsC,EAAE;QACtD,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC;QAC1C,IACE,QAAQ,KAAK,IAAI;YACjB,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,KAAK,MAAM;YAChD,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC,EAC3D,CAAC;YACD,OAAO,CAAC,IAAI,CACV;gBACE,yBAAyB;gBACzB,4DAA4D;gBAC5D,6EAA6E;gBAC7E,mEAAmE;gBACnE,gFAAgF;gBAChF,iFAAiF;gBACjF,uHAAuH;aACxH,CAAC,IAAI,CAAC,MAAM,CAAC,CACf,CAAC;QAC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AAG,CAAC,CAAC,CAAC,EAAE;QACP,OAAO,CAAC,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;IACxD,CAAC,CAAC;SACD,MAAM,CAAC,CAAC,CAAC,EAAE;QACV,OAAO,CAAC,CAAC;IACX,CAAC,CAAa,CAAC;AACnB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAe,EAAE,IAAY;IAC/D,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,IAAI,IAAI,KAAK,CAAC,CAAC;IACxC,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QACxB,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,EAAE,CAAC;YAC1B,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACrB,CAAC;aAAM,CAAC;YACN,CAAC,EAAE,CAAC;QACN,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map index c54f75c6..c49e4de5 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"FirefoxLauncher.d.ts","sourceRoot":"","sources":["../../../../src/node/FirefoxLauncher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAkBH,OAAO,KAAK,EACV,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,e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AO,CAAC;IAoB1B;;OAEG;IACY,sBAAsB,CACnC,OAAO,GAAE,0BAA+B,GACvC,OAAO,CAAC,kBAAkB,CAAC;IAwF9B;;OAEG;IACY,gBAAgB,CAC7B,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE;QAAC,MAAM,EAAE,OAAO,CAAA;KAAC,GACtB,OAAO,CAAC,IAAI,CAAC;IA0BP,cAAc,IAAI,MAAM;IAiBxB,WAAW,CAAC,OAAO,GAAE,4BAAiC,GAAG,MAAM,EAAE;CAsC3E"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.js index a442ecc3..29eebd58 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.js @@ -25,6 +25,8 @@ export class FirefoxLauncher extends ProductLauncher { ...(protocol === 'webDriverBiDi' ? {} : { + // Do not close the window when the last tab gets closed + 'browser.tabs.closeWindowWithLastTab': false, // Temporarily force disable BFCache in parent (https://bit.ly/bug-1732263) 'fission.bfcacheInParent': false, }), diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.js.map index aee2f8d6..006f1ff5 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.js.map @@ -1 +1 @@ -{"version":3,"file":"FirefoxLauncher.js","sourceRoot":"","sources":["../../../../src/node/FirefoxLauncher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAA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,EACpB,IAAI,GAAG,EAAE,EACT,WAAW,GAAG,IAAI,GACnB,GAAG,OAAO,CAAC;QAEZ,MAAM,gBAAgB,GAAG,CAAC,aAAa,CAAC,CAAC;QAEzC,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC;YACtB,KAAK,QAAQ;gBACX,gBAAgB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBACtC,MAAM;YACR,KAAK,OAAO;gBACV,gBAAgB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;gBAC5C,MAAM;QACV,CAAC;QACD,IAAI,WAAW,EAAE,CAAC;YAChB,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACnC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACrC,CAAC;QACD,IAAI,QAAQ,EAAE,CAAC;YACb,gBAAgB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACtC,CAAC;QACD,IAAI,QAAQ,EAAE,CAAC;YACb,gBAAgB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACtC,CAAC;QACD,IACE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YACf,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC7B,CAAC,CAAC,EACF,CAAC;YACD,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACvC,CAAC;QACD,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QAC/B,OAAO,gBAAgB,CAAC;IAC1B,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"FirefoxLauncher.js","sourceRoot":"","sources":["../../../../src/node/FirefoxLauncher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,MAAM,IAAI,CAAC;A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GAAG,EAAE,EACT,WAAW,GAAG,IAAI,GACnB,GAAG,OAAO,CAAC;QAEZ,MAAM,gBAAgB,GAAG,CAAC,aAAa,CAAC,CAAC;QAEzC,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC;YACtB,KAAK,QAAQ;gBACX,gBAAgB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBACtC,MAAM;YACR,KAAK,OAAO;gBACV,gBAAgB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;gBAC5C,MAAM;QACV,CAAC;QACD,IAAI,WAAW,EAAE,CAAC;YAChB,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACnC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACrC,CAAC;QACD,IAAI,QAAQ,EAAE,CAAC;YACb,gBAAgB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACtC,CAAC;QACD,IAAI,QAAQ,EAAE,CAAC;YACb,gBAAgB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACtC,CAAC;QACD,IACE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YACf,OAAO,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC7B,CAAC,CAAC,EACF,CAAC;YACD,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACvC,CAAC;QACD,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QAC/B,OAAO,gBAAgB,CAAC;IAC1B,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.d.ts index f53d689b..ccd4c8b9 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.d.ts @@ -104,6 +104,6 @@ export declare abstract class ProductLauncher { /** * @internal */ - protected resolveExecutablePath(): string; + protected resolveExecutablePath(headless?: boolean | 'new'): string; } //# sourceMappingURL=ProductLauncher.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.d.ts.map index 14b41738..4aa4c8f1 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ProductLauncher.d.ts","sourceRoot":"","sources":["../../../../src/node/ProductLauncher.ts"],"names":[],"mappings":"AASA,OAAO,EAGL,MAAM,EAIP,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAC,OAAO,EAAE,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAEhD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAElD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAEpD,OAAO,KAAK,EACV,4BAA4B,EAC5B,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED;;;;GAIG;AACH,8BAAsB,eAAe;;IAGnC;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,qBAAqB,CA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AO,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,GAC3E,OAAO,CAAC,UAAU,CAAC;IAWtB;;OAEG;cACa,wBAAwB,CACtC,cAAc,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,EACzC,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,oBAAoB,EACnC,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;QACpC,MAAM,EAAE,MAAM,CAAC;QACf,eAAe,EAAE,QAAQ,GAAG,IAAI,CAAC;QACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B,GACA,OAAO,CAAC,OAAO,CAAC;IAenB;;OAEG;cACa,iBAAiB,CAC/B,cAAc,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,EACzC,aAAa,EAAE,oBAAoB,EACnC,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;QACpC,MAAM,EAAE,MAAM,CAAC;QACf,eAAe,EAAE,QAAQ,GAAG,IAAI,CAAC;QACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B,GACA,OAAO,CAAC,OAAO,CAAC;IAwBnB;;OAEG;IACH,SAAS,CAAC,cAAc,IAAI,MAAM;IAOlC;;OAEG;IACH,SAAS,CAAC,qBAAqB,IAAI,MAAM;CAoD1C"} \ No newline at end of file +{"version":3,"file":"ProductLauncher.d.ts","sourceRoot":"","sources":["../../../../src/node/ProductLauncher.ts"],"names":[],"mappings":"AASA,OAAO,EAGL,MAAM,EAIP,MAAM,qBAAqB,CAAC;AAS7B,OAAO,KAAK,EAAC,OAAO,EAAE,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAEhD,OAAO,KAAK,EA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,MAAM,EAAE,MAAM,CAAC;QACf,eAAe,EAAE,QAAQ,GAAG,IAAI,CAAC;QACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B,GACA,OAAO,CAAC,OAAO,CAAC;IAwBnB;;OAEG;IACH,SAAS,CAAC,cAAc,IAAI,MAAM;IAOlC;;OAEG;IACH,SAAS,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM;CAuDpE"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js index a1e51071..99a70dac 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js @@ -7,6 +7,7 @@ import { existsSync } from 'fs'; import { tmpdir } from 'os'; import { join } from 'path'; import { Browser as InstalledBrowser, CDP_WEBSOCKET_ENDPOINT_REGEX, launch, TimeoutError as BrowsersTimeoutError, WEBDRIVER_BIDI_WEBSOCKET_ENDPOINT_REGEX, computeExecutablePath, } from '@puppeteer/browsers'; +import { firstValueFrom, from, map, race, timer, } from '../../third_party/rxjs/rxjs.js'; import { CdpBrowser } from '../cdp/Browser.js'; import { Connection } from '../cdp/Connection.js'; import { TimeoutError } from '../common/Errors.js'; @@ -143,7 +144,10 @@ export class ProductLauncher { } } else { - await browserProcess.close(); + // Wait for a possible graceful shutdown. + await firstValueFrom(race(from(browserProcess.hasClosed()), timer(5000).pipe(map(() => { + return from(browserProcess.close()); + })))); } } /** @@ -221,7 +225,7 @@ export class ProductLauncher { /** * @internal */ - resolveExecutablePath() { + resolveExecutablePath(headless) { let executablePath = this.puppeteer.configuration.executablePath; if (executablePath) { if (!existsSync(executablePath)) { @@ -229,9 +233,12 @@ export class ProductLauncher { } return executablePath; } - function productToBrowser(product) { + function productToBrowser(product, headless) { switch (product) { case 'chrome': + if (headless === true) { + return InstalledBrowser.CHROMEHEADLESSSHELL; + } return InstalledBrowser.CHROME; case 'firefox': return InstalledBrowser.FIREFOX; @@ -240,7 +247,7 @@ export class ProductLauncher { } executablePath = computeExecutablePath({ cacheDir: this.puppeteer.defaultDownloadPath, - browser: productToBrowser(this.product), + browser: productToBrowser(this.product, headless), buildId: this.puppeteer.browserRevision, }); if (!existsSync(executablePath)) { diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js.map index e929fbb8..ae10503c 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js.map @@ -1 +1 @@ -{"version":3,"file":"ProductLauncher.js","sourceRoot":"","sources":["../../../../src/node/ProductLauncher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,IAAI,CAAC;AAC9B,OAAO,EAAC,MAAM,EAAC,MAAM,IAAI,CAAC;AAC1B,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAE1B,OAAO,EACL,OAAO,IAAI,gBAAgB,EAC3B,4BAA4B,EAC5B,MAAM,EACN,YAAY,IAAI,oBAAoB,EACpC,uCAAuC,EACvC,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAQ/D,OAAO,EAAC,sBAAsB,IAAI,kBAAkB,EAAC,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAC,aA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ACZ,MAAM,IAAI,KAAK,CACb,gCAAgC,IAAI,CAAC,SAAS,CAAC,eAAe,+BAA+B;wBAC3F,oIAAoI;wBACpI,4DAA4D,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,cAAc,MAAM;wBAC7G,iGAAiG,CACpG,CAAC;YACN,CAAC;QACH,CAAC;QACD,OAAO,cAAc,CAAC;IACxB,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"ProductLauncher.js","sourceRoot":"","sources":["../../../../src/node/ProductLauncher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,IAAI,CAAC;AAC9B,OAAO,EAAC,MAAM,EAAC,MAAM,IAAI,CAAC;AAC1B,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAE1B,OAAO,EACL,OAAO,IAAI,gBAAgB,EAC3B,4BAA4B,EAC5B,MAAM,EACN,YAAY,IAAI,oBAAoB,EACpC,uCAAuC,EACvC,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,cAAc,EACd,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,KAAK,GACN,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAQ/D,OAAO,EAAC,sBAAsB,IAAI,kBAAkB,EAAC,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAajD;;;;GAIG;AACH,MAAM,OAAgB,eAAe;IACnC,QAAQ,CAAU;IAElB;;OAEG;IACH,SAAS,CAAgB;IAEzB;;OAEG;IACO,qBAAqB,CAAU;IAEzC;;OAEG;IACH,YAAY,SAA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+B,IAAI,CAAC,SAAS,CAAC,eAAe,+BAA+B;wBAC1F,uHAAuH;wBACvH,4DAA4D,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,cAAc,MAAM;wBAC7G,iGAAiG,CACpG,CAAC;gBACJ,KAAK,SAAS;oBACZ,MAAM,IAAI,KAAK,CACb,gCAAgC,IAAI,CAAC,SAAS,CAAC,eAAe,+BAA+B;wBAC3F,oIAAoI;wBACpI,4DAA4D,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,cAAc,MAAM;wBAC7G,iGAAiG,CACpG,CAAC;YACN,CAAC;QACH,CAAC;QACD,OAAO,cAAc,CAAC;IACxB,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ScreenRecorder.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ScreenRecorder.d.ts.map index b3b5f919..8060088f 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ScreenRecorder.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ScreenRecorder.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ScreenRecorder.d.ts","sourceRoot":"","sources":["../../../../src/node/ScreenRecorder.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAIH,OAAO,EAAC,WAAW,EAAC,MAAM,QAAQ,CAAC;AAqBnC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AAGzC,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AAOzD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,I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6B3B;;OAEG;IACG,CAAC,kBAAkB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5C"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ScreenRecorder.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ScreenRecorder.js index 122361fe..2e934865 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ScreenRecorder.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ScreenRecorder.js @@ -46,7 +46,7 @@ import { PassThrough } from 'stream'; import debug from 'debug'; import { bufferCount, concatMap, filter, from, fromEvent, lastValueFrom, map, takeUntil, tap, } from '../../third_party/rxjs/rxjs.js'; import { CDPSessionEvent } from '../api/CDPSession.js'; -import { debugError } from '../common/util.js'; +import { debugError, fromEmitterEvent } from '../common/util.js'; import { guarded } from '../util/decorators.js'; import { asyncDisposeSymbol } from '../util/disposable.js'; const CRF_VALUE = 30; @@ -137,7 +137,7 @@ let ScreenRecorder = (() => { client.once(CDPSessionEvent.Disconnected, () => { void this.stop().catch(debugError); }); - this.#lastFrame = lastValueFrom(fromEvent(client, 'Page.screencastFrame').pipe(tap(event => { + this.#lastFrame = lastValueFrom(fromEmitterEvent(client, 'Page.screencastFrame').pipe(tap(event => { void client.send('Page.screencastFrameAck', { sessionId: event.sessionId, }); diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ScreenRecorder.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ScreenRecorder.js.map index 8177c5e9..0b72e206 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ScreenRecorder.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/node/ScreenRecorder.js.map @@ -1 +1 @@ -{"version":3,"file":"ScreenRecorder.js","sourceRoot":"","sources":["../../../../src/node/ScreenRecorder.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;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AAC,GAAG,CACf,KAAK,CACH,IAAI,CAAC,GAAG,CACN,CAAC,EACD,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,GAAG,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,CACnE,CACF;iBACE,IAAI,CAAC,MAAM,CAAC;iBACZ,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CACpC,CAAC;YAEF,4CAA4C;YAC5C,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;YAC1B,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;gBAC1B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACvC,CAAC,CAAC,CAAC;QACL,CAAC;QAED;;WAEG;QACH,KAAK,CAAC,oCAhDL,OAAO,EAAE,uBAeT,OAAO,EAAE,GAiCH,kBAAkB,EAAC;YACxB,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QACpB,CAAC;;;SA3MU,cAAc"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts index a9512471..ce93aa80 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts @@ -7,7 +7,8 @@ * @internal */ export declare const PUPPETEER_REVISIONS: Readonly<{ - chrome: "119.0.6045.105"; + chrome: "121.0.6167.85"; + 'chrome-headless-shell': "121.0.6167.85"; firefox: "latest"; }>; //# sourceMappingURL=revisions.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts.map index edb72312..a774f9a8 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"revisions.d.ts","sourceRoot":"","sources":["../../../src/revisions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;EAG9B,CAAC"} \ No newline at end of file +{"version":3,"file":"revisions.d.ts","sourceRoot":"","sources":["../../../src/revisions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;EAI9B,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js index 6a0f72fd..4699ea3e 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js @@ -7,7 +7,8 @@ * @internal */ export const PUPPETEER_REVISIONS = Object.freeze({ - chrome: '119.0.6045.105', + chrome: '121.0.6167.85', + 'chrome-headless-shell': '121.0.6167.85', firefox: 'latest', }); //# sourceMappingURL=revisions.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js.map index 2b3464b4..cde97854 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js.map @@ -1 +1 @@ -{"version":3,"file":"revisions.js","sourceRoot":"","sources":["../../../src/revisions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,gBAAgB;IACxB,OAAO,EAAE,QAAQ;CAClB,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"revisions.js","sourceRoot":"","sources":["../../../src/revisions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,eAAe;IACvB,uBAAuB,EAAE,eAAe;IACxC,OAAO,EAAE,QAAQ;CAClB,CAAC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.d.ts deleted file mode 100644 index 3da4dd0e..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Deferred } from './Deferred.js'; -/** - * Creates and returns a deferred promise using DEFERRED_PROMISE_DEBUG_TIMEOUT - * if it's specified or a normal deferred promise otherwise. - * - * @internal - */ -export declare function createDebuggableDeferred(message: string): Deferred; -//# sourceMappingURL=DebuggableDeferred.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.d.ts.map deleted file mode 100644 index 6f53e02a..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DebuggableDeferred.d.ts","sourceRoot":"","sources":["../../../../src/util/DebuggableDeferred.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,CAQxE"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.js deleted file mode 100644 index 4a6b060d..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.js +++ /dev/null @@ -1,18 +0,0 @@ -import { DEFERRED_PROMISE_DEBUG_TIMEOUT } from '../environment.js'; -import { Deferred } from './Deferred.js'; -/** - * Creates and returns a deferred promise using DEFERRED_PROMISE_DEBUG_TIMEOUT - * if it's specified or a normal deferred promise otherwise. - * - * @internal - */ -export function createDebuggableDeferred(message) { - if (DEFERRED_PROMISE_DEBUG_TIMEOUT > 0) { - return Deferred.create({ - message, - timeout: DEFERRED_PROMISE_DEBUG_TIMEOUT, - }); - } - return Deferred.create(); -} -//# sourceMappingURL=DebuggableDeferred.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.js.map deleted file mode 100644 index e63d81c2..00000000 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/DebuggableDeferred.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DebuggableDeferred.js","sourceRoot":"","sources":["../../../../src/util/DebuggableDeferred.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,mBAAmB,CAAC;AAEjE,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,UAAU,wBAAwB,CAAI,OAAe;IACzD,IAAI,8BAA8B,GAAG,CAAC,EAAE,CAAC;QACvC,OAAO,QAAQ,CAAC,MAAM,CAAC;YACrB,OAAO;YACP,OAAO,EAAE,8BAA8B;SACxC,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC,MAAM,EAAE,CAAC;AAC3B,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.d.ts index c9d24f4f..58806880 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.d.ts @@ -17,6 +17,8 @@ export interface DeferredOptions { */ export declare class Deferred { #private; + static create(opts?: DeferredOptions): Deferred; + static race(awaitables: Array | Deferred>): Promise; constructor(opts?: DeferredOptions); resolve(value: T): void; reject(error: V | TimeoutError): void; @@ -24,7 +26,5 @@ export declare class Deferred { finished(): boolean; value(): T | V | TimeoutError | undefined; valueOrThrow(): Promise; - static create(opts?: DeferredOptions): Deferred; - static race(awaitables: Array | Deferred>): Promise; } //# sourceMappingURL=Deferred.d.ts.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.d.ts.map index 13322dce..2fee1188 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Deferred.d.ts","sourceRoot":"","sources":["../../../../src/util/Deferred.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;GAQG;AACH,qBAAa,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,GAAG,KAAK;;gBAWlC,IAAI,CAAC,EAAE,eAAe;IAelC,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,IAA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AK,EAAE,CAAC,GAAG,YAAY,GAAG,IAAI;IAQrC,QAAQ,IAAI,OAAO;IAInB,QAAQ,IAAI,OAAO;IAInB,KAAK,IAAI,CAAC,GAAG,CAAC,GAAG,YAAY,GAAG,SAAS;IAKzC,YAAY,IAAI,OAAO,CAAC,CAAC,CAAC;CAY3B"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js index c2c8b8d7..6de7edd6 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js @@ -9,58 +9,6 @@ import { TimeoutError } from '../common/Errors.js'; * @internal */ export class Deferred { - #isResolved = false; - #isRejected = false; - #value; - #resolver = () => { }; - #taskPromise = new Promise(resolve => { - this.#resolver = resolve; - }); - #timeoutId; - #timeoutError; - constructor(opts) { - if (opts && opts.timeout > 0) { - this.#timeoutError = new TimeoutError(opts.message); - this.#timeoutId = setTimeout(() => { - this.reject(this.#timeoutError); - }, opts.timeout); - } - } - #finish(value) { - clearTimeout(this.#timeoutId); - this.#value = value; - this.#resolver(); - } - resolve(value) { - if (this.#isRejected || this.#isResolved) { - return; - } - this.#isResolved = true; - this.#finish(value); - } - reject(error) { - if (this.#isRejected || this.#isResolved) { - return; - } - this.#isRejected = true; - this.#finish(error); - } - resolved() { - return this.#isResolved; - } - finished() { - return this.#isResolved || this.#isRejected; - } - value() { - return this.#value; - } - async valueOrThrow() { - await this.#taskPromise; - if (this.#isRejected) { - throw this.#value; - } - return this.#value; - } static create(opts) { return new Deferred(opts); } @@ -88,5 +36,64 @@ export class Deferred { } } } + #isResolved = false; + #isRejected = false; + #value; + // SAFETY: This is ensured by #taskPromise. + #resolve; + #taskPromise = new Promise(resolve => { + this.#resolve = resolve; + }); + #timeoutId; + #timeoutError; + constructor(opts) { + if (opts && opts.timeout > 0) { + this.#timeoutError = new TimeoutError(opts.message); + this.#timeoutId = setTimeout(() => { + this.reject(this.#timeoutError); + }, opts.timeout); + } + } + #finish(value) { + clearTimeout(this.#timeoutId); + this.#value = value; + this.#resolve(); + } + resolve(value) { + if (this.#isRejected || this.#isResolved) { + return; + } + this.#isResolved = true; + this.#finish(value); + } + reject(error) { + if (this.#isRejected || this.#isResolved) { + return; + } + this.#isRejected = true; + this.#finish(error); + } + resolved() { + return this.#isResolved; + } + finished() { + return this.#isResolved || this.#isRejected; + } + value() { + return this.#value; + } + #promise; + valueOrThrow() { + if (!this.#promise) { + this.#promise = (async () => { + await this.#taskPromise; + if (this.#isRejected) { + throw this.#value; + } + return this.#value; + })(); + } + return this.#promise; + } } //# sourceMappingURL=Deferred.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js.map index 2bf9825f..1494808d 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js.map @@ -1 +1 @@ -{"version":3,"file":"Deferred.js","sourceRoot":"","sources":["../../../../src/util/Deferred.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAUjD;;;;;;;;GAQG;AACH,MAAM,OAAO,QAAQ;IACnB,WAAW,GAAG,KAAK,CAAC;IACpB,WAAW,GAAG,KAAK,CAAC;IACpB,MAAM,CAAmC;IACzC,SAAS,GAA0B,GAAG,EAAE,GAAE,CAAC,CAAC;IAC5C,YAAY,GAAG,IAAI,OAAO,CAAO,OAAO,CAAC,EAAE;QACzC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC;IAC3B,CAAC,CAAC,CAAC;IACH,UAAU,CAA4C;IACtD,aAAa,CAA2B;IAExC,YAAY,IAAsB;QAChC,IAAI,IAAI,IAA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AM,CAAC;QACpB,CAAC;QACD,OAAO,IAAI,CAAC,MAAW,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,MAAM,CACX,IAAsB;QAEtB,OAAO,IAAI,QAAQ,CAAO,IAAI,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,IAAI,CACf,UAA2C;QAE3C,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAe,CAAC;QACnD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;gBACtC,IAAI,KAAK,YAAY,QAAQ,EAAE,CAAC;oBAC9B,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;wBACrB,mBAAmB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;oBACjC,CAAC;oBAED,OAAO,KAAK,CAAC,YAAY,EAAE,CAAC;gBAC9B,CAAC;gBAED,OAAO,KAAK,CAAC;YACf,CAAC,CAAC,CAAC;YACH,gDAAgD;YAChD,OAAO,MAAM,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtC,CAAC;gBAAS,CAAC;YACT,KAAK,MAAM,QAAQ,IAAI,mBAAmB,EAAE,CAAC;gBAC3C,mCAAmC;gBACnC,oDAAoD;gBACpD,iBAAiB;gBACjB,QAAQ,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;YAChD,CAAC;QACH,CAAC;IACH,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"Deferred.js","sourceRoot":"","sources":["../../../../src/util/Deferred.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAUjD;;;;;;;;GAQG;AACH,MAAM,OAAO,QAAQ;IACnB,MAAM,CAAC,MAAM,CACX,IAAsB;QAEtB,OAAO,IAAI,QAAQ,CAAO,IAAI,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,IAA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E,CAAC;QACP,CAAC;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.d.ts index 0cc43d95..37e3386a 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.d.ts @@ -6,7 +6,7 @@ export declare class Mutex { #private; static Guard: { new (mutex: Mutex): { - "__#979@#mutex": Mutex; + "__#985@#mutex": Mutex; [Symbol.dispose](): void; }; }; diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.d.ts index e734193d..4014b408 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.d.ts @@ -6,6 +6,7 @@ import type { Disposed, Moveable } from '../common/types.js'; export declare function moveable Moveable>(Class: Class, _: ClassDecoratorContext): Class; export declare function throwIfDisposed(message?: (value: This) => string): (target: (this: This, ...args: any[]) => any, _: unknown) => (this: This, ...args: any[]) => any; +export declare function inertIfDisposed(target: (this: This, ...args: any[]) => any, _: unknown): (this: This, ...args: any[]) => any; /** * The decorator only invokes the target if the target has not been invoked with * the same arguments before. The decorated method throws an error if it's diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.d.ts.map index cbf0300d..04a399a6 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../../src/util/decorators.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAO3D,wBAAgB,QAAQ,CACtB,KAAK,SAAS,QAAQ,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,QAAQ,EACzD,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,qBAAqB,CAAC,KAAK,CAAC,GAAG,KAAK,CAiCtD;AAED,wBAAgB,eAAe,CAAC,IAAI,SAAS,QAAQ,EACnD,OAAO,GAAE,CAAC,KAAK,EAAE,IAAI,KAAK,MAEzB,mBAEsB,IAAI,WAAW,GAAG,EAAE,KAAK,GAAG,KAAK,OAAO,YACtC,IAAI,WAAW,GAAG,EAAE,KAAG,GAAG,CAOpD;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC9C,CAAC,EAAE,OAAO,GACT,OAAO,MAAM,CA4Bf;AAED,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EACtC,MAAM,UAAmB,CAAC,KAAG,MAE5B,mBAGgB,CAAC,WAAW,GAAG,EAAE,KAAK,QAAQ,GAAG,CAAC,KAC9C,4BAA4B,CAAC,CAAC,YADlB,CAAC,WAAW,GAAG,EAAE,KAAK,QAAQ,GAAG,CAAC,CAepD"} \ No newline at end of file +{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../../src/util/decorators.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAO3D,wBAAgB,QAAQ,CACtB,KAAK,SAAS,QAAQ,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,QAAQ,EACzD,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,qBAAqB,CAAC,KAAK,CAAC,GAAG,KAAK,CAiCtD;AAED,wBAAgB,eAAe,CAAC,IAAI,SAAS,QAAQ,EACnD,OAAO,GAAE,CAAC,KAAK,EAAE,IAAI,KAAK,MAEzB,mBAEsB,IAAI,WAAW,GAAG,EAAE,KAAK,GAAG,KAAK,OAAO,YACtC,IAAI,WAAW,GAAG,EAAE,KAAG,GAAG,CAOpD;AAED,wBAAgB,eAAe,CAAC,IAAI,SAAS,QAAQ,EACnD,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC3C,CAAC,EAAE,OAAO,UAEa,IAAI,WAAW,GAAG,EAAE,KAAG,GAAG,CAMlD;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC9C,CAAC,EAAE,OAAO,GACT,OAAO,MAAM,CA4Bf;AAED,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EACtC,MAAM,UAAmB,CAAC,KAAG,MAE5B,mBAGgB,CAAC,WAAW,GAAG,EAAE,KAAK,QAAQ,GAAG,CAAC,KAC9C,4BAA4B,CAAC,CAAC,YADlB,CAAC,WAAW,GAAG,EAAE,KAAK,QAAQ,GAAG,CAAC,CAepD"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js index 6ee6ea13..21efe7df 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js @@ -95,6 +95,14 @@ export function throwIfDisposed(message = value => { }; }; } +export function inertIfDisposed(target, _) { + return function (...args) { + if (this.disposed) { + return; + } + return target.call(this, ...args); + }; +} /** * The decorator only invokes the target if the target has not been invoked with * the same arguments before. The decorated method throws an error if it's diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js.map index c6da2d1d..1a24dcc2 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js.map @@ -1 +1 @@ -{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../src/util/decorators.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,OAAO,EAAC,kBAAkB,EAAE,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAC;AAEjC,MAAM,SAAS,GAAG,IAAI,OAAO,EAAU,CAAC;AAExC,MAAM,UAAU,QAAQ,CAEtB,KAAY,EAAE,CAA+B;IAC7C,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QAC/C,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,GAAG;YAC/B,IAAI,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBACxB,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBACvB,OAAO;YACT,CAAC;YACD,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC,CAAC;QACF,UAAU,GAAG,IAAI,CAAC;IACpB,CAAC;IACD,IAAI,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,EAAE,CAAC;QACxC,MAAM,YAAY,GAAG,KAAK,CAAC,SAAS,CAAC,kBAAk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AK,CAAC,CAAC;gBAC1B,CAAC;gBACD,MAAY,CAAC,kCAAG,MAAM,KAAK,CAAC,OAAO,EAAE,OAAA,CAAC;gBACtC,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;;;;;;;;;;;SACzC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../src/util/decorators.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,OAAO,EAAC,kBAAkB,EAAE,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAC;AAEjC,MAAM,SAAS,GAAG,IAAI,OAAO,EAAU,CAAC;AAExC,MAAM,UAAU,QAAQ,CAEtB,KAAY,EAAE,CAA+B;IAC7C,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QAC/C,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,GAAG;YAC/B,IAAI,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBACxB,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBACvB,OAAO;YACT,CAAC;YACD,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC,CAAC;QACF,UAAU,GAAG,IAAI,CAAC;IACpB,CAAC;IACD,IAAI,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,EAAE,CAAC;QACxC,MAAM,YAAY,GAAG,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QACzD,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,G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B,IAAI,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBAC7B,IAAI,CAAC,KAAK,EAAE,CAAC;oBACX,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;oBACpB,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;gBAC1B,CAAC;gBACD,MAAY,CAAC,kCAAG,MAAM,KAAK,CAAC,OAAO,EAAE,OAAA,CAAC;gBACtC,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;;;;;;;;;;;SACzC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.d.ts index 9176be35..ef5a5280 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.d.ts @@ -4,7 +4,6 @@ * SPDX-License-Identifier: Apache-2.0 */ export * from './assert.js'; -export * from './DebuggableDeferred.js'; export * from './Deferred.js'; export * from './ErrorLike.js'; export * from './AsyncIterableUtil.js'; diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.d.ts.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.d.ts.map index a3a4d2aa..5ad260e8 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.d.ts.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/util/util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC"} \ No newline at end of file +{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/util/util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js index 7e1f5ac6..3d293d82 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js @@ -4,7 +4,6 @@ * SPDX-License-Identifier: Apache-2.0 */ export * from './assert.js'; -export * from './DebuggableDeferred.js'; export * from './Deferred.js'; export * from './ErrorLike.js'; export * from './AsyncIterableUtil.js'; diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js.map b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js.map index 32d312a2..6e3aba19 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js.map +++ b/Scripts/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/util/util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC"} \ No newline at end of file +{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/util/util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.d.ts b/Scripts/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.d.ts index 0822c807..01dece05 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.d.ts @@ -3,6 +3,6 @@ * Copyright 2023 Google Inc. * SPDX-License-Identifier: Apache-2.0 */ -export { bufferCount, catchError, concatMap, defaultIfEmpty, defer, delay, EMPTY, filter, first, firstValueFrom, forkJoin, from, fromEvent, identity, ignoreElements, lastValueFrom, map, merge, mergeMap, NEVER, noop, of, pipe, race, raceWith, retry, startWith, switchMap, takeUntil, tap, throwIfEmpty, timer, } from 'rxjs'; +export { bufferCount, catchError, concat, concatMap, defaultIfEmpty, defer, delay, EMPTY, filter, first, firstValueFrom, forkJoin, from, fromEvent, identity, ignoreElements, lastValueFrom, map, ReplaySubject, merge, mergeMap, mergeScan, NEVER, noop, Observable, of, pipe, race, raceWith, retry, startWith, switchMap, take, takeUntil, tap, throwIfEmpty, timer, zip, } from 'rxjs'; export type * from 'rxjs'; export declare function filterAsync(predicate: (value: T) => boolean | PromiseLike): import("rxjs").OperatorFunction; diff --git a/Scripts/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.js b/Scripts/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.js index 70daa7a5..94c77870 100644 --- a/Scripts/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.js +++ b/Scripts/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.js @@ -1,6 +1,6 @@ -var Sr=function(r,e){return Sr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},Sr(r,e)};function T(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Sr(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Rr(r,e,t,o){function n(i){return i instanceof t?i:new t(function(f){f(i)})}return new(t||(t=Promise))(function(i,f){function c(m){try{a(o.next(m))}catch(h){f(h)}}function u(m){try{a(o.throw(m))}catch(h){f(h)}}function a(m){m.done?i(m.value):n(m.value).then(c,u)}a((o=o.apply(r,e||[])).next())})}function $(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,f;return f={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function c(a){return function(m){return u([a,m])}}function u(a){if(o)throw new TypeError("Generator is already executing.");for(;f&&(f=0,a[0]&&(t=0)),t;)try{if(o=1,n&&(i=a[0]&2?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,n=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var o=t.call(r),n,i=[],f;try{for(;(e===void 0||e-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(c){f={error:c}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(f)throw f.error}}return i}function A(r,e,t){if(t||arguments.length===2)for(var o=0,n=e.length,i;o1||c(l,y)})})}function c(l,y){try{u(o[l](y))}catch(g){h(i[0][3],g)}}function u(l){l.value instanceof C?Promise.resolve(l.value.v).then(a,m):h(i[0][2],l)}function a(l){c("next",l)}function m(l){c("throw",l)}function h(l,y){l(y),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Cr(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof I=="function"?I(r):r[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(i){t[i]=r[i]&&function(f){return new Promise(function(c,u){f=r[i](f),n(c,u,f.done,f.value)})}}function n(i,f,c,u){Promise.resolve(u).then(function(a){i({value:a,done:c})},f)}}function p(r){return typeof r=="function"}function B(r){var e=function(o){Error.call(o),o.stack=new Error().stack},t=r(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var rr=B(function(r){return function(t){r(this),this.message=t?t.length+` errors occurred during unsubscription: -`+t.map(function(o,n){return n+1+") "+o.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=t}});function U(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var W=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,o,n,i;if(!this.closed){this.closed=!0;var f=this._parentage;if(f)if(this._parentage=null,Array.isArray(f))try{for(var c=I(f),u=c.next();!u.done;u=c.next()){var a=u.value;a.remove(this)}}catch(x){e={error:x}}finally{try{u&&!u.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}else f.remove(this);var m=this.initialTeardown;if(p(m))try{m()}catch(x){i=x instanceof rr?x.errors:[x]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var l=I(h),y=l.next();!y.done;y=l.next()){var g=y.value;try{Ur(g)}catch(x){i=i??[],x instanceof rr?i=A(A([],w(i)),w(x.errors)):i.push(x)}}}catch(x){o={error:x}}finally{try{y&&!y.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}}if(i)throw new rr(i)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ur(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&U(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&U(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}();var vt=W.EMPTY;function er(r){return r instanceof W||r&&"closed"in r&&p(r.remove)&&p(r.add)&&p(r.unsubscribe)}function Ur(r){p(r)?r():r.unsubscribe()}var P={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var D={setTimeout:function(r,e){for(var t=[],o=2;o=2;return function(o){return o.pipe(r?J(function(n,i){return r(n,i,o)}):S,X(1),t?br(e):wr(function(){return new L}))}}function Oe(){for(var r=[],e=0;ej(Promise.resolve(r(e))).pipe(J(t=>t),k(()=>e)))}export{N as EMPTY,ve as NEVER,be as bufferCount,kr as catchError,ge as concatMap,br as defaultIfEmpty,se as defer,Se as delay,J as filter,Au as filterAsync,Ee as first,fe as firstValueFrom,le as forkJoin,j as from,xr as fromEvent,S as identity,gr as ignoreElements,ie as lastValueFrom,k as map,he as merge,E as mergeMap,F as noop,ne as of,Nr as pipe,xe as race,Oe as raceWith,Ae as retry,_e as startWith,Ie as switchMap,Te as takeUntil,Pe as tap,wr as throwIfEmpty,H as timer}; +var Ir=function(r,t){return Ir=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])},Ir(r,t)};function S(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ir(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Dr(r,t,e,o){function n(i){return i instanceof e?i:new e(function(f){f(i)})}return new(e||(e=Promise))(function(i,f){function a(p){try{u(o.next(p))}catch(h){f(h)}}function c(p){try{u(o.throw(p))}catch(h){f(h)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((o=o.apply(r,t||[])).next())})}function er(r,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,f;return f={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function a(u){return function(p){return c([u,p])}}function c(u){if(o)throw new TypeError("Generator is already executing.");for(;f&&(f=0,u[0]&&(e=0)),e;)try{if(o=1,n&&(i=u[0]&2?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,n=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var o=e.call(r),n,i=[],f;try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(a){f={error:a}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(f)throw f.error}}return i}function _(r,t,e){if(e||arguments.length===2)for(var o=0,n=t.length,i;o1||a(l,x)})})}function a(l,x){try{c(o[l](x))}catch(g){h(i[0][3],g)}}function c(l){l.value instanceof V?Promise.resolve(l.value.v).then(u,p):h(i[0][2],l)}function u(l){a("next",l)}function p(l){a("throw",l)}function h(l,x){l(x),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Nr(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof I=="function"?I(r):r[Symbol.iterator](),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(i){e[i]=r[i]&&function(f){return new Promise(function(a,c){f=r[i](f),n(a,c,f.done,f.value)})}}function n(i,f,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},f)}}function s(r){return typeof r=="function"}function q(r){var t=function(o){Error.call(o),o.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var tr=q(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription: +`+e.map(function(o,n){return n+1+") "+o.toString()}).join(` + `):"",this.name="UnsubscriptionError",this.errors=e}});function R(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var C=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,o,n,i;if(!this.closed){this.closed=!0;var f=this._parentage;if(f)if(this._parentage=null,Array.isArray(f))try{for(var a=I(f),c=a.next();!c.done;c=a.next()){var u=c.value;u.remove(this)}}catch(b){t={error:b}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else f.remove(this);var p=this.initialTeardown;if(s(p))try{p()}catch(b){i=b instanceof tr?b.errors:[b]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var l=I(h),x=l.next();!x.done;x=l.next()){var g=x.value;try{qr(g)}catch(b){i=i??[],b instanceof tr?i=_(_([],w(i)),w(b.errors)):i.push(b)}}}catch(b){o={error:b}}finally{try{x&&!x.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}}if(i)throw new tr(i)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)qr(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&R(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&R(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}();var Tr=C.EMPTY;function or(r){return r instanceof C||r&&"closed"in r&&s(r.remove)&&s(r.add)&&s(r.unsubscribe)}function qr(r){s(r)?r():r.unsubscribe()}var P={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var z={setTimeout:function(r,t){for(var e=[],o=2;o0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var o=this,n=this,i=n.hasError,f=n.isStopped,a=n.observers;return i||f?Tr:(this.currentObservers=null,a.push(e),new C(function(){o.currentObservers=null,R(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var o=this,n=o.hasError,i=o.thrownError,f=o.isStopped;n?e.error(i):f&&e.complete()},t.prototype.asObservable=function(){var e=new v;return e.source=this,e},t.create=function(e,o){return new Xr(e,o)},t}(v);var Xr=function(r){S(t,r);function t(e,o){var n=r.call(this)||this;return n.destination=e,n.source=o,n}return t.prototype.next=function(e){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,e)},t.prototype.error=function(e){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,e)},t.prototype.complete=function(){var e,o;(o=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||o===void 0||o.call(e)},t.prototype._subscribe=function(e){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(e))!==null&&n!==void 0?n:Tr},t}(Mr);var Z={now:function(){return(Z.delegate||Date).now()},delegate:void 0};var Zr=function(r){S(t,r);function t(e,o,n){e===void 0&&(e=1/0),o===void 0&&(o=1/0),n===void 0&&(n=Z);var i=r.call(this)||this;return i._bufferSize=e,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,o),i}return t.prototype.next=function(e){var o=this,n=o.isStopped,i=o._buffer,f=o._infiniteTimeWindow,a=o._timestampProvider,c=o._windowTime;n||(i.push(e),!f&&i.push(a.now()+c)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(e),n=this,i=n._infiniteTimeWindow,f=n._buffer,a=f.slice(),c=0;c=2;return function(o){return o.pipe(r?Q(function(n,i){return r(n,i,o)}):E,N(1),e?Er(t):Ar(function(){return new W}))}}function je(r,t,e){return e===void 0&&(e=1/0),d(function(o,n){var i=t;return gr(o,n,function(f,a){return r(i,f,a)},e,function(f){i=f},!1,void 0,function(){return i=null})})}function Fe(){for(var r=[],t=0;tF(Promise.resolve(r(t))).pipe(Q(e=>e),k(()=>t)))}export{L as EMPTY,Se as NEVER,v as Observable,Zr as ReplaySubject,Oe as bufferCount,Wr as catchError,Y as concat,Ae as concatMap,Er as defaultIfEmpty,xe as defer,Te as delay,Q as filter,ac as filterAsync,Pe as first,me as firstValueFrom,be as forkJoin,F as from,Sr as fromEvent,E as identity,Or as ignoreElements,le as lastValueFrom,k as map,we as merge,O as mergeMap,je as mergeScan,j as noop,se as of,Kr as pipe,_e as race,Fe as raceWith,ke as retry,Me as startWith,Re as switchMap,N as take,Ce as takeUntil,Le as tap,Ar as throwIfEmpty,B as timer,Ee as zip}; /** * @license * Copyright 2023 Google Inc. diff --git a/Scripts/node_modules/puppeteer-core/lib/types.d.ts b/Scripts/node_modules/puppeteer-core/lib/types.d.ts index b944e123..53e0fc4f 100644 --- a/Scripts/node_modules/puppeteer-core/lib/types.d.ts +++ b/Scripts/node_modules/puppeteer-core/lib/types.d.ts @@ -127,6 +127,11 @@ export declare type AwaitableIterable = Iterable | AsyncIterable; /* Excluded from this release type: AwaitableIterator */ +/** + * @public + */ +export declare type AwaitablePredicate = (value: T) => Awaitable; + /** * @public */ @@ -134,52 +139,6 @@ export declare type AwaitedLocator = T extends Locator ? S : never; declare type BeginSubclassSelectorTokens = ['.', '#', '[', ':']; -/* Excluded from this release type: BidiBrowser */ - -/* Excluded from this release type: BidiBrowserContext */ - -/* Excluded from this release type: BidiBrowserContextOptions */ - -/* Excluded from this release type: BidiBrowserOptions */ - -/* Excluded from this release type: BiDiBrowsingContextTarget */ - -/* Excluded from this release type: BidiConnection */ - -/* Excluded from this release type: BidiEvents */ - -/* Excluded from this release type: BidiFrame */ - -/* Excluded from this release type: BidiHTTPRequest */ - -/* Excluded from this release type: BidiHTTPResponse */ - -/* Excluded from this release type: BidiJSHandle */ - -/* Excluded from this release type: BidiKeyboard */ - -/* Excluded from this release type: BidiMouse */ - -/* Excluded from this release type: BidiMouseClickOptions */ - -/* Excluded from this release type: BidiMouseMoveOptions */ - -/* Excluded from this release type: BiDiNetworkIdle */ - -/* Excluded from this release type: BidiNetworkManager */ - -/* Excluded from this release type: BidiPage */ - -/* Excluded from this release type: BiDiPageTarget */ - -/* Excluded from this release type: BidiRealm */ - -/* Excluded from this release type: BidiTarget */ - -/* Excluded from this release type: BidiTouchMoveOptions */ - -/* Excluded from this release type: BidiTouchscreen */ - /* Excluded from this release type: Binding */ /* Excluded from this release type: BindingPayload */ @@ -386,7 +345,7 @@ export declare abstract class Browser extends EventEmitter { /** * Whether Puppeteer is connected to this {@link Browser | browser}. * - * @deprecated Use {@link Browser.connected}. + * @deprecated Use {@link Browser | Browser.connected}. */ isConnected(): boolean; /** @@ -396,6 +355,17 @@ export declare abstract class Browser extends EventEmitter { /* Excluded from this release type: [disposeSymbol] */ /* Excluded from this release type: [asyncDisposeSymbol] */ /* Excluded from this release type: protocol */ + /** + * Get debug information from Puppeteer. + * + * @remarks + * + * Currently, includes pending protocol calls. In the future, we might add more info. + * + * @public + * @experimental + */ + abstract get debugInfo(): DebugInfo; } /* Excluded from this release type: BrowserCloseCallback */ @@ -723,8 +693,6 @@ export declare interface BrowserLaunchArgumentOptions { /* Excluded from this release type: BrowserWebSocketTransport */ -/* Excluded from this release type: BrowsingContext */ - /* Excluded from this release type: Callback */ /* Excluded from this release type: CallbackRegistry */ @@ -872,8 +840,6 @@ export declare interface CommandOptions { timeout: number; } -/* Excluded from this release type: Commands */ - /** * @public */ @@ -909,7 +875,13 @@ export declare interface Configuration { * See {@link PuppeteerNode.launch | puppeteer.launch} on how executable path * is inferred. * - * @defaultValue A compatible-revision of the browser. + * Use a specific browser version (e.g., 119.0.6045.105). If you use an alias + * such `stable` or `canary` it will only work during the installation of + * Puppeteer and it will fail when launching the browser. + * + * @example 119.0.6045.105 + * @defaultValue The pinned browser version supported by the current Puppeteer + * version. */ browserRevision?: string; /** @@ -972,6 +944,18 @@ export declare interface Configuration { * Can be overridden by `PUPPETEER_SKIP_DOWNLOAD`. */ skipDownload?: boolean; + /** + * Tells Puppeteer to not Chrome download during installation. + * + * Can be overridden by `PUPPETEER_SKIP_CHROME_DOWNLOAD`. + */ + skipChromeDownload?: boolean; + /** + * Tells Puppeteer to not chrome-headless-shell download during installation. + * + * Can be overridden by `PUPPETEER_SKIP_CHROME_HEADLESSS_HELL_DOWNLOAD`. + */ + skipChromeHeadlessShellDownload?: boolean; /** * Tells Puppeteer to log at the given level. * @@ -1024,6 +1008,7 @@ export declare class Connection extends EventEmitter { * @returns The CDP session that is created */ createSession(targetInfo: Protocol.Target.TargetInfo): Promise; + /* Excluded from this release type: getPendingProtocolErrors */ } /** @@ -1236,8 +1221,6 @@ export declare interface CoverageEntry { /* Excluded from this release type: createClientError */ -/* Excluded from this release type: createDebuggableDeferred */ - /* Excluded from this release type: createEvaluationError */ /* Excluded from this release type: createIncrementalIdGenerator */ @@ -1346,6 +1329,14 @@ declare const customQuerySelectors: CustomQuerySelectorRegistry; /* Excluded from this release type: debugError */ +/** + * @public + * @experimental + */ +export declare interface DebugInfo { + pendingProtocolErrors: Error[]; +} + /** * The default cooperative request interception resolution priority * @@ -1492,7 +1483,7 @@ export declare abstract class Dialog { * is not a `prompt`. */ defaultValue(): string; - /* Excluded from this release type: sendCommand */ + /* Excluded from this release type: handle */ /** * A promise that resolves when the dialog has been accepted. * @@ -2095,6 +2086,14 @@ export declare class EventEmitter> imp * @returns `this` to enable you to chain method calls. */ off>(type: Key, handler?: Handler[Key]>): this; + /** + * Emit an event and call any associated listeners. + * + * @param type - the event you'd like to emit + * @param eventData - any data you'd like to emit with the event + * @returns `true` if there are any listeners, `false` if there are not. + */ + emit>(type: Key, event: EventsWithWildcard[Key]): boolean; /** * Remove an event listener. * @@ -2107,14 +2106,6 @@ export declare class EventEmitter> imp * @deprecated please use {@link EventEmitter.on} instead. */ addListener>(type: Key, handler: Handler[Key]>): this; - /** - * Emit an event and call any associated listeners. - * - * @param type - the event you'd like to emit - * @param eventData - any data you'd like to emit with the event - * @returns `true` if there are any listeners, `false` if there are not. - */ - emit>(type: Key, event: EventsWithWildcard[Key]): boolean; /** * Like `on` but the listener will only be fired once and then it will be removed. * @param type - the event you'd like to listen to @@ -2137,6 +2128,7 @@ export declare class EventEmitter> imp * @returns `this` to enable you to chain method calls. */ removeAllListeners(type?: keyof EventsWithWildcard): this; + /* Excluded from this release type: [disposeSymbol] */ } /* Excluded from this release type: EventSubscription */ @@ -2863,6 +2855,8 @@ export declare interface FrameWaitForFunctionOptions { signal?: AbortSignal; } +/* Excluded from this release type: fromEmitterEvent */ + /* Excluded from this release type: FunctionLocator */ /** @@ -2891,8 +2885,6 @@ export declare interface GeolocationOptions { /* Excluded from this release type: GetIdFn */ -/* Excluded from this release type: getPageContent */ - /* Excluded from this release type: getQueryHandlerAndSelector */ /* Excluded from this release type: getReadableAsBuffer */ @@ -3976,8 +3968,6 @@ export declare interface LocatorScrollOptions extends ActionOptions { */ export declare type LowerCasePaperFormat = 'letter' | 'legal' | 'tabloid' | 'ledger' | 'a0' | 'a1' | 'a2' | 'a3' | 'a4' | 'a5' | 'a6'; -/* Excluded from this release type: MAIN_SANDBOX */ - /* Excluded from this release type: MAIN_WORLD */ /* Excluded from this release type: MappedLocator */ @@ -4393,7 +4383,7 @@ export declare abstract class Page extends EventEmitter { * * @deprecated We no longer support intercepting drag payloads. Use the new * drag APIs found on {@link ElementHandle} to drag (or just use the - * {@link Page.mouse}). + * {@link Page | Page.mouse}). */ abstract isDragInterceptionEnabled(): boolean; /** @@ -4549,7 +4539,7 @@ export declare abstract class Page extends EventEmitter { * * @deprecated We no longer support intercepting drag payloads. Use the new * drag APIs found on {@link ElementHandle} to drag (or just use the - * {@link Page.mouse}). + * {@link Page | Page.mouse}). */ abstract setDragInterception(enabled: boolean): Promise; /** @@ -5200,9 +5190,7 @@ export declare abstract class Page extends EventEmitter { * `0` to disable the timeout. The default value can be changed by using the * {@link Page.setDefaultTimeout} method. */ - abstract waitForRequest(urlOrPredicate: string | ((req: HTTPRequest) => boolean | Promise), options?: { - timeout?: number; - }): Promise; + waitForRequest(urlOrPredicate: string | AwaitablePredicate, options?: WaitTimeoutOptions): Promise; /** * @param urlOrPredicate - A URL or predicate to wait for. * @param options - Optional waiting parameters @@ -5230,18 +5218,15 @@ export declare abstract class Page extends EventEmitter { * pass `0` to disable the timeout. The default value can be changed by using * the {@link Page.setDefaultTimeout} method. */ - abstract waitForResponse(urlOrPredicate: string | ((res: HTTPResponse) => boolean | Promise), options?: { - timeout?: number; - }): Promise; + waitForResponse(urlOrPredicate: string | AwaitablePredicate, options?: WaitTimeoutOptions): Promise; /** - * @param options - Optional waiting parameters - * @returns Promise which resolves when network is idle + * Waits for the network to be idle. + * + * @param options - Options to configure waiting behavior. + * @returns A promise which resolves once the network is idle. */ - abstract waitForNetworkIdle(options?: { - idleTime?: number; - timeout?: number; - }): Promise; - /* Excluded from this release type: _waitForNetworkIdle */ + waitForNetworkIdle(options?: WaitForNetworkIdleOptions): Promise; + /* Excluded from this release type: waitForNetworkIdle$ */ /** * Waits for a frame matching the given conditions to appear. * @@ -5541,7 +5526,7 @@ export declare abstract class Page extends EventEmitter { * * This is either the viewport set with the previous {@link Page.setViewport} * call or the default viewport set via - * {@link BrowserConnectOptions.defaultViewport}. + * {@link BrowserConnectOptions | BrowserConnectOptions.defaultViewport}. */ abstract viewport(): Viewport | null; /** @@ -5692,7 +5677,6 @@ export declare abstract class Page extends EventEmitter { }): Promise; screenshot(options?: Readonly): Promise; /* Excluded from this release type: _screenshot */ - /* Excluded from this release type: _getPDFOptions */ /** * Generates a PDF of the page with the `print` CSS media type. * @@ -6311,6 +6295,8 @@ export declare type PaperFormat = Uppercase | Capitalize { [BrowserEvent.TargetDiscovered]: Protocol.Target.TargetInfo; } +/** + * @public + * @experimental + */ +export interface DebugInfo { + pendingProtocolErrors: Error[]; +} + /** * {@link Browser} represents a browser instance that is either: * @@ -343,8 +348,8 @@ export abstract class Browser extends EventEmitter { const {timeout: ms = 30000} = options; return await firstValueFrom( merge( - fromEvent(this, BrowserEvent.TargetCreated) as Observable, - fromEvent(this, BrowserEvent.TargetChanged) as Observable, + fromEmitterEvent(this, BrowserEvent.TargetCreated), + fromEmitterEvent(this, BrowserEvent.TargetChanged), from(this.targets()) ).pipe(filterAsync(predicate), raceWith(timeout(ms))) ); @@ -409,7 +414,7 @@ export abstract class Browser extends EventEmitter { /** * Whether Puppeteer is connected to this {@link Browser | browser}. * - * @deprecated Use {@link Browser.connected}. + * @deprecated Use {@link Browser | Browser.connected}. */ isConnected(): boolean { return this.connected; @@ -434,4 +439,16 @@ export abstract class Browser extends EventEmitter { * @internal */ abstract get protocol(): ProtocolType; + + /** + * Get debug information from Puppeteer. + * + * @remarks + * + * Currently, includes pending protocol calls. In the future, we might add more info. + * + * @public + * @experimental + */ + abstract get debugInfo(): DebugInfo; } diff --git a/Scripts/node_modules/puppeteer-core/src/api/Dialog.ts b/Scripts/node_modules/puppeteer-core/src/api/Dialog.ts index ff70eec4..352337f3 100644 --- a/Scripts/node_modules/puppeteer-core/src/api/Dialog.ts +++ b/Scripts/node_modules/puppeteer-core/src/api/Dialog.ts @@ -76,7 +76,7 @@ export abstract class Dialog { /** * @internal */ - protected abstract sendCommand(options: { + protected abstract handle(options: { accept: boolean; text?: string; }): Promise; @@ -91,7 +91,7 @@ export abstract class Dialog { async accept(promptText?: string): Promise { assert(!this.#handled, 'Cannot accept dialog which is already handled!'); this.#handled = true; - await this.sendCommand({ + await this.handle({ accept: true, text: promptText, }); @@ -103,7 +103,7 @@ export abstract class Dialog { async dismiss(): Promise { assert(!this.#handled, 'Cannot dismiss dialog which is already handled!'); this.#handled = true; - await this.sendCommand({ + await this.handle({ accept: false, }); } diff --git a/Scripts/node_modules/puppeteer-core/src/api/ElementHandle.ts b/Scripts/node_modules/puppeteer-core/src/api/ElementHandle.ts index 4a27cc55..43fec58e 100644 --- a/Scripts/node_modules/puppeteer-core/src/api/ElementHandle.ts +++ b/Scripts/node_modules/puppeteer-core/src/api/ElementHandle.ts @@ -17,10 +17,15 @@ import type { NodeFor, } from '../common/types.js'; import type {KeyInput} from '../common/USKeyboardLayout.js'; -import {isString, withSourcePuppeteerURLIfNone} from '../common/util.js'; +import { + debugError, + isString, + withSourcePuppeteerURLIfNone, +} from '../common/util.js'; import {assert} from '../util/assert.js'; import {AsyncIterableUtil} from '../util/AsyncIterableUtil.js'; import {throwIfDisposed} from '../util/decorators.js'; +import {AsyncDisposableStack} from '../util/disposable.js'; import {_isElementHandle} from './ElementHandleSymbol.js'; import type { @@ -1341,6 +1346,31 @@ export abstract class ElementHandle< const page = this.frame.page(); + // If the element is larger than the viewport, `captureBeyondViewport` will + // _not_ affect element rendering, so we need to adjust the viewport to + // properly render the element. + const viewport = page.viewport() ?? { + width: clip.width, + height: clip.height, + }; + await using stack = new AsyncDisposableStack(); + if (clip.width > viewport.width || clip.height > viewport.height) { + await this.frame.page().setViewport({ + ...viewport, + width: Math.max(viewport.width, Math.ceil(clip.width)), + height: Math.max(viewport.height, Math.ceil(clip.height)), + }); + + stack.defer(async () => { + try { + await this.frame.page().setViewport(viewport); + } catch (error) { + debugError(error); + } + }); + } + + // Only scroll the element into view if the user wants it. if (scrollIntoView) { await this.scrollIntoViewIfNeeded(); diff --git a/Scripts/node_modules/puppeteer-core/src/api/Frame.ts b/Scripts/node_modules/puppeteer-core/src/api/Frame.ts index 28c8243c..757ec872 100644 --- a/Scripts/node_modules/puppeteer-core/src/api/Frame.ts +++ b/Scripts/node_modules/puppeteer-core/src/api/Frame.ts @@ -28,7 +28,6 @@ import type { NodeFor, } from '../common/types.js'; import { - getPageContent, importFSPromises, withSourcePuppeteerURLIfNone, } from '../common/util.js'; @@ -776,7 +775,21 @@ export abstract class Frame extends EventEmitter { */ @throwIfDetached async content(): Promise { - return await this.evaluate(getPageContent); + return await this.evaluate(() => { + let content = ''; + for (const node of document.childNodes) { + switch (node) { + case document.documentElement: + content += document.documentElement.outerHTML; + break; + default: + content += new XMLSerializer().serializeToString(node); + break; + } + } + + return content; + }); } /** diff --git a/Scripts/node_modules/puppeteer-core/src/api/Page.ts b/Scripts/node_modules/puppeteer-core/src/api/Page.ts index b7664c4c..63b18c8e 100644 --- a/Scripts/node_modules/puppeteer-core/src/api/Page.ts +++ b/Scripts/node_modules/puppeteer-core/src/api/Page.ts @@ -9,32 +9,33 @@ import type {Readable} from 'stream'; import type {Protocol} from 'devtools-protocol'; import { - delay, + concat, + EMPTY, filter, filterAsync, first, firstValueFrom, from, - fromEvent, map, merge, + mergeMap, + mergeScan, of, raceWith, + ReplaySubject, startWith, switchMap, + take, + takeUntil, + timer, type Observable, } from '../../third_party/rxjs/rxjs.js'; import type {HTTPRequest} from '../api/HTTPRequest.js'; import type {HTTPResponse} from '../api/HTTPResponse.js'; -import type {BidiNetworkManager} from '../bidi/NetworkManager.js'; import type {Accessibility} from '../cdp/Accessibility.js'; import type {Coverage} from '../cdp/Coverage.js'; import type {DeviceRequestPrompt} from '../cdp/DeviceRequestPrompt.js'; -import type { - NetworkManager as CdpNetworkManager, - Credentials, - NetworkConditions, -} from '../cdp/NetworkManager.js'; +import type {Credentials, NetworkConditions} from '../cdp/NetworkManager.js'; import type {Tracing} from '../cdp/Tracing.js'; import type {ConsoleMessage} from '../common/ConsoleMessage.js'; import type {Device} from '../common/Device.js'; @@ -46,16 +47,11 @@ import { type Handler, } from '../common/EventEmitter.js'; import type {FileChooser} from '../common/FileChooser.js'; -import {NetworkManagerEvent} from '../common/NetworkManagerEvents.js'; -import { - paperFormats, - type LowerCasePaperFormat, - type ParsedPDFOptions, - type PDFOptions, -} from '../common/PDFOptions.js'; +import type {PDFOptions} from '../common/PDFOptions.js'; import {TimeoutSettings} from '../common/TimeoutSettings.js'; import type { Awaitable, + AwaitablePredicate, EvaluateFunc, EvaluateFuncWith, HandleFor, @@ -63,15 +59,15 @@ import type { } from '../common/types.js'; import { debugError, + fromEmitterEvent, importFSPromises, - isNumber, isString, + NETWORK_IDLE_TIME, timeout, withSourcePuppeteerURLIfNone, } from '../common/util.js'; import type {Viewport} from '../common/Viewport.js'; import type {ScreenRecorder} from '../node/ScreenRecorder.js'; -import {assert} from '../util/assert.js'; import {guarded} from '../util/decorators.js'; import { AsyncDisposableStack, @@ -132,6 +128,24 @@ export interface Metrics { JSHeapTotalSize?: number; } +/** + * @public + */ +export interface WaitForNetworkIdleOptions extends WaitTimeoutOptions { + /** + * Time (in milliseconds) the network should be idle. + * + * @defaultValue `500` + */ + idleTime?: number; + /** + * Maximum number concurrent of network connections to be considered inactive. + * + * @defaultValue `0` + */ + concurrency?: number; +} + /** * @public */ @@ -592,11 +606,45 @@ export abstract class Page extends EventEmitter { #requestHandlers = new WeakMap, Handler>(); + #inflight$ = new ReplaySubject(1); + /** * @internal */ constructor() { super(); + + fromEmitterEvent(this, PageEvent.Request) + .pipe( + mergeMap(originalRequest => { + return concat( + of(1), + merge( + fromEmitterEvent(this, PageEvent.RequestFailed), + fromEmitterEvent(this, PageEvent.RequestFinished), + fromEmitterEvent(this, PageEvent.Response).pipe( + map(response => { + return response.request(); + }) + ) + ).pipe( + filter(request => { + return request._requestId === originalRequest._requestId; + }), + take(1), + map(() => { + return -1; + }) + ) + ); + }), + mergeScan((acc, addend) => { + return of(acc + addend); + }, 0), + takeUntil(fromEmitterEvent(this, PageEvent.Close)), + startWith(0) + ) + .subscribe(this.#inflight$); } /** @@ -609,7 +657,7 @@ export abstract class Page extends EventEmitter { * * @deprecated We no longer support intercepting drag payloads. Use the new * drag APIs found on {@link ElementHandle} to drag (or just use the - * {@link Page.mouse}). + * {@link Page | Page.mouse}). */ abstract isDragInterceptionEnabled(): boolean; @@ -838,7 +886,7 @@ export abstract class Page extends EventEmitter { * * @deprecated We no longer support intercepting drag payloads. Use the new * drag APIs found on {@link ElementHandle} to drag (or just use the - * {@link Page.mouse}). + * {@link Page | Page.mouse}). */ abstract setDragInterception(enabled: boolean): Promise; @@ -1627,10 +1675,30 @@ export abstract class Page extends EventEmitter { * `0` to disable the timeout. The default value can be changed by using the * {@link Page.setDefaultTimeout} method. */ - abstract waitForRequest( - urlOrPredicate: string | ((req: HTTPRequest) => boolean | Promise), - options?: {timeout?: number} - ): Promise; + waitForRequest( + urlOrPredicate: string | AwaitablePredicate, + options: WaitTimeoutOptions = {} + ): Promise { + const {timeout: ms = this._timeoutSettings.timeout()} = options; + if (typeof urlOrPredicate === 'string') { + const url = urlOrPredicate; + urlOrPredicate = (request: HTTPRequest) => { + return request.url() === url; + }; + } + const observable$ = fromEmitterEvent(this, PageEvent.Request).pipe( + filterAsync(urlOrPredicate), + raceWith( + timeout(ms), + fromEmitterEvent(this, PageEvent.Close).pipe( + map(() => { + throw new TargetCloseError('Page closed!'); + }) + ) + ) + ); + return firstValueFrom(observable$); + } /** * @param urlOrPredicate - A URL or predicate to wait for. @@ -1659,51 +1727,69 @@ export abstract class Page extends EventEmitter { * pass `0` to disable the timeout. The default value can be changed by using * the {@link Page.setDefaultTimeout} method. */ - abstract waitForResponse( - urlOrPredicate: - | string - | ((res: HTTPResponse) => boolean | Promise), - options?: {timeout?: number} - ): Promise; + waitForResponse( + urlOrPredicate: string | AwaitablePredicate, + options: WaitTimeoutOptions = {} + ): Promise { + const {timeout: ms = this._timeoutSettings.timeout()} = options; + if (typeof urlOrPredicate === 'string') { + const url = urlOrPredicate; + urlOrPredicate = (response: HTTPResponse) => { + return response.url() === url; + }; + } + const observable$ = fromEmitterEvent(this, PageEvent.Response).pipe( + filterAsync(urlOrPredicate), + raceWith( + timeout(ms), + fromEmitterEvent(this, PageEvent.Close).pipe( + map(() => { + throw new TargetCloseError('Page closed!'); + }) + ) + ) + ); + return firstValueFrom(observable$); + } /** - * @param options - Optional waiting parameters - * @returns Promise which resolves when network is idle + * Waits for the network to be idle. + * + * @param options - Options to configure waiting behavior. + * @returns A promise which resolves once the network is idle. */ - abstract waitForNetworkIdle(options?: { - idleTime?: number; - timeout?: number; - }): Promise; + waitForNetworkIdle(options: WaitForNetworkIdleOptions = {}): Promise { + return firstValueFrom(this.waitForNetworkIdle$(options)); + } /** * @internal */ - _waitForNetworkIdle( - networkManager: BidiNetworkManager | CdpNetworkManager, - idleTime: number, - requestsInFlight = 0 + waitForNetworkIdle$( + options: WaitForNetworkIdleOptions = {} ): Observable { - return merge( - fromEvent( - networkManager, - NetworkManagerEvent.Request as unknown as string - ) as Observable, - fromEvent( - networkManager, - NetworkManagerEvent.Response as unknown as string - ) as Observable, - fromEvent( - networkManager, - NetworkManagerEvent.RequestFailed as unknown as string - ) as Observable - ).pipe( - startWith(undefined), - filter(() => { - return networkManager.inFlightRequestsCount() <= requestsInFlight; + const { + timeout: ms = this._timeoutSettings.timeout(), + idleTime = NETWORK_IDLE_TIME, + concurrency = 0, + } = options; + + return this.#inflight$.pipe( + switchMap(inflight => { + if (inflight > concurrency) { + return EMPTY; + } + return timer(idleTime); }), - switchMap(v => { - return of(v).pipe(delay(idleTime)); - }) + map(() => {}), + raceWith( + timeout(ms), + fromEmitterEvent(this, PageEvent.Close).pipe( + map(() => { + throw new TargetCloseError('Page closed!'); + }) + ) + ) ); } @@ -1732,15 +1818,15 @@ export abstract class Page extends EventEmitter { return await firstValueFrom( merge( - fromEvent(this, PageEvent.FrameAttached) as Observable, - fromEvent(this, PageEvent.FrameNavigated) as Observable, + fromEmitterEvent(this, PageEvent.FrameAttached), + fromEmitterEvent(this, PageEvent.FrameNavigated), from(this.frames()) ).pipe( filterAsync(urlOrPredicate), first(), raceWith( timeout(ms), - fromEvent(this, PageEvent.Close).pipe( + fromEmitterEvent(this, PageEvent.Close).pipe( map(() => { throw new TargetCloseError('Page closed.'); }) @@ -2057,7 +2143,7 @@ export abstract class Page extends EventEmitter { * * This is either the viewport set with the previous {@link Page.setViewport} * call or the default viewport set via - * {@link BrowserConnectOptions.defaultViewport}. + * {@link BrowserConnectOptions | BrowserConnectOptions.defaultViewport}. */ abstract viewport(): Viewport | null; @@ -2499,60 +2585,6 @@ export abstract class Page extends EventEmitter { */ abstract _screenshot(options: Readonly): Promise; - /** - * @internal - */ - _getPDFOptions( - options: PDFOptions = {}, - lengthUnit: 'in' | 'cm' = 'in' - ): ParsedPDFOptions { - const defaults: Omit = { - scale: 1, - displayHeaderFooter: false, - headerTemplate: '', - footerTemplate: '', - printBackground: false, - landscape: false, - pageRanges: '', - preferCSSPageSize: false, - omitBackground: false, - timeout: 30000, - tagged: false, - }; - - let width = 8.5; - let height = 11; - if (options.format) { - const format = - paperFormats[options.format.toLowerCase() as LowerCasePaperFormat]; - assert(format, 'Unknown paper format: ' + options.format); - width = format.width; - height = format.height; - } else { - width = convertPrintParameterToInches(options.width, lengthUnit) ?? width; - height = - convertPrintParameterToInches(options.height, lengthUnit) ?? height; - } - - const margin = { - top: convertPrintParameterToInches(options.margin?.top, lengthUnit) || 0, - left: - convertPrintParameterToInches(options.margin?.left, lengthUnit) || 0, - bottom: - convertPrintParameterToInches(options.margin?.bottom, lengthUnit) || 0, - right: - convertPrintParameterToInches(options.margin?.right, lengthUnit) || 0, - }; - - return { - ...defaults, - ...options, - width, - height, - margin, - }; - } - /** * Generates a PDF of the page with the `print` CSS media type. * @@ -3017,50 +3049,6 @@ export const supportedMetrics = new Set([ 'JSHeapTotalSize', ]); -/** - * @internal - */ -export const unitToPixels = { - px: 1, - in: 96, - cm: 37.8, - mm: 3.78, -}; - -function convertPrintParameterToInches( - parameter?: string | number, - lengthUnit: 'in' | 'cm' = 'in' -): number | undefined { - if (typeof parameter === 'undefined') { - return undefined; - } - let pixels; - if (isNumber(parameter)) { - // Treat numbers as pixel values to be aligned with phantom's paperSize. - pixels = parameter; - } else if (isString(parameter)) { - const text = parameter; - let unit = text.substring(text.length - 2).toLowerCase(); - let valueText = ''; - if (unit in unitToPixels) { - valueText = text.substring(0, text.length - 2); - } else { - // In case of unknown unit try to parse the whole parameter as number of pixels. - // This is consistent with phantom's paperSize behavior. - unit = 'px'; - valueText = text; - } - const value = Number(valueText); - assert(!isNaN(value), 'Failed to parse parameter value: ' + text); - pixels = value * unitToPixels[unit as keyof typeof unitToPixels]; - } else { - throw new Error( - 'page.pdf() Cannot handle parameter type: ' + typeof parameter - ); - } - return pixels / unitToPixels[lengthUnit]; -} - /** @see https://w3c.github.io/webdriver-bidi/#normalize-rect */ function normalizeRectangle( clip: Readonly diff --git a/Scripts/node_modules/puppeteer-core/src/api/locators/locators.ts b/Scripts/node_modules/puppeteer-core/src/api/locators/locators.ts index 7626a001..7bec11e3 100644 --- a/Scripts/node_modules/puppeteer-core/src/api/locators/locators.ts +++ b/Scripts/node_modules/puppeteer-core/src/api/locators/locators.ts @@ -8,27 +8,27 @@ import type { OperatorFunction, } from '../../../third_party/rxjs/rxjs.js'; import { - mergeMap, - from, EMPTY, + catchError, + defaultIfEmpty, defer, filter, first, + firstValueFrom, + from, + fromEvent, identity, ignoreElements, - retry, - throwIfEmpty, - race, - catchError, - defaultIfEmpty, - firstValueFrom, - fromEvent, map, merge, + mergeMap, noop, pipe, + race, raceWith, + retry, tap, + throwIfEmpty, } from '../../../third_party/rxjs/rxjs.js'; import type {EventType} from '../../common/EventEmitter.js'; import {EventEmitter} from '../../common/EventEmitter.js'; diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/BidiOverCdp.ts b/Scripts/node_modules/puppeteer-core/src/bidi/BidiOverCdp.ts index 9cb2270e..ace35a52 100644 --- a/Scripts/node_modules/puppeteer-core/src/bidi/BidiOverCdp.ts +++ b/Scripts/node_modules/puppeteer-core/src/bidi/BidiOverCdp.ts @@ -166,7 +166,7 @@ class CDPClientAdapter this.#closed = true; } - isCloseError(error: any): boolean { + isCloseError(error: unknown): boolean { return error instanceof TargetCloseError; } } @@ -177,7 +177,9 @@ class CDPClientAdapter * @internal */ class NoOpTransport - extends BidiMapper.EventEmitter + extends BidiMapper.EventEmitter<{ + bidiResponse: Bidi.ChromiumBidi.Message; + }> implements BidiMapper.BidiTransport { #onMessage: (message: Bidi.ChromiumBidi.Command) => Promise | void = diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/Browser.ts b/Scripts/node_modules/puppeteer-core/src/bidi/Browser.ts index 7a148f02..cad13c8e 100644 --- a/Scripts/node_modules/puppeteer-core/src/bidi/Browser.ts +++ b/Scripts/node_modules/puppeteer-core/src/bidi/Browser.ts @@ -13,6 +13,7 @@ import { BrowserEvent, type BrowserCloseCallback, type BrowserContextOptions, + type DebugInfo, } from '../api/Browser.js'; import {BrowserContextEvent} from '../api/BrowserContext.js'; import type {Page} from '../api/Page.js'; @@ -25,6 +26,9 @@ import type {Viewport} from '../common/Viewport.js'; import {BidiBrowserContext} from './BrowserContext.js'; import {BrowsingContext, BrowsingContextEvent} from './BrowsingContext.js'; import type {BidiConnection} from './Connection.js'; +import type {Browser as BrowserCore} from './core/Browser.js'; +import {Session} from './core/Session.js'; +import type {UserContext} from './core/UserContext.js'; import { BiDiBrowserTarget, BiDiBrowsingContextTarget, @@ -70,51 +74,31 @@ export class BidiBrowser extends Browser { ]; static async create(opts: BidiBrowserOptions): Promise { - let browserName = ''; - let browserVersion = ''; + const session = await Session.from(opts.connection, { + alwaysMatch: { + acceptInsecureCerts: opts.ignoreHTTPSErrors, + webSocketUrl: true, + }, + }); - // TODO: await until the connection is established. - try { - const {result} = await opts.connection.send('session.new', { - capabilities: { - alwaysMatch: { - acceptInsecureCerts: opts.ignoreHTTPSErrors, - }, - }, - }); - browserName = result.capabilities.browserName ?? ''; - browserVersion = result.capabilities.browserVersion ?? ''; - } catch (err) { - // Chrome does not support session.new. - debugError(err); - } - - await opts.connection.send('session.subscribe', { - events: browserName.toLocaleLowerCase().includes('firefox') + await session.subscribe( + session.capabilities.browserName.toLocaleLowerCase().includes('firefox') ? BidiBrowser.subscribeModules - : [...BidiBrowser.subscribeModules, ...BidiBrowser.subscribeCdpEvents], - }); - - const browser = new BidiBrowser({ - ...opts, - browserName, - browserVersion, - }); + : [...BidiBrowser.subscribeModules, ...BidiBrowser.subscribeCdpEvents] + ); + const browser = new BidiBrowser(session.browser, opts); + browser.#initialize(); await browser.#getTree(); - return browser; } - #browserName = ''; - #browserVersion = ''; #process?: ChildProcess; #closeCallback?: BrowserCloseCallback; - #connection: BidiConnection; + #browserCore: BrowserCore; #defaultViewport: Viewport | null; - #defaultContext: BidiBrowserContext; #targets = new Map(); - #contexts: BidiBrowserContext[] = []; + #browserContexts = new WeakMap(); #browserTarget: BiDiBrowserTarget; #connectionEventHandlers = new Map< @@ -128,44 +112,56 @@ export class BidiBrowser extends Browser { ['browsingContext.navigationStarted', this.#onContextNavigation.bind(this)], ]); - constructor( - opts: BidiBrowserOptions & { - browserName: string; - browserVersion: string; - } - ) { + private constructor(browserCore: BrowserCore, opts: BidiBrowserOptions) { super(); this.#process = opts.process; this.#closeCallback = opts.closeCallback; - this.#connection = opts.connection; + this.#browserCore = browserCore; this.#defaultViewport = opts.defaultViewport; - this.#browserName = opts.browserName; - this.#browserVersion = opts.browserVersion; + this.#browserTarget = new BiDiBrowserTarget(this); + for (const context of this.#browserCore.userContexts) { + this.#createBrowserContext(context); + } + } - this.#process?.once('close', () => { - this.#connection.dispose(); + #initialize() { + this.#browserCore.once('disconnected', () => { this.emit(BrowserEvent.Disconnected, undefined); }); - this.#defaultContext = new BidiBrowserContext(this, { - defaultViewport: this.#defaultViewport, - isDefault: true, + this.#process?.once('close', () => { + this.#browserCore.dispose('Browser process exited.', true); + this.connection.dispose(); }); - this.#browserTarget = new BiDiBrowserTarget(this.#defaultContext); - this.#contexts.push(this.#defaultContext); for (const [eventName, handler] of this.#connectionEventHandlers) { - this.#connection.on(eventName, handler); + this.connection.on(eventName, handler); } } + get #browserName() { + return this.#browserCore.session.capabilities.browserName; + } + get #browserVersion() { + return this.#browserCore.session.capabilities.browserVersion; + } + override userAgent(): never { throw new UnsupportedOperation(); } + #createBrowserContext(userContext: UserContext) { + const browserContext = new BidiBrowserContext(this, userContext, { + defaultViewport: this.#defaultViewport, + }); + this.#browserContexts.set(userContext, browserContext); + return browserContext; + } + #onContextDomLoaded(event: Bidi.BrowsingContext.Info) { const target = this.#targets.get(event.context); if (target) { this.emit(BrowserEvent.TargetChanged, target); + target.browserContext().emit(BrowserContextEvent.TargetChanged, target); } } @@ -179,15 +175,17 @@ export class BidiBrowser extends Browser { #onContextCreated(event: Bidi.BrowsingContext.ContextCreated['params']) { const context = new BrowsingContext( - this.#connection, + this.connection, event, this.#browserName ); - this.#connection.registerBrowsingContexts(context); - // TODO: once more browsing context types are supported, this should be - // updated to support those. Currently, all top-level contexts are treated - // as pages. - const browserContext = this.browserContexts().at(-1); + this.connection.registerBrowsingContexts(context); + const browserContext = + event.userContext === 'default' + ? this.defaultBrowserContext() + : this.browserContexts().find(browserContext => { + return browserContext.id === event.userContext; + }); if (!browserContext) { throw new Error('Missing browser contexts'); } @@ -200,13 +198,13 @@ export class BidiBrowser extends Browser { target.browserContext().emit(BrowserContextEvent.TargetCreated, target); if (context.parent) { - const topLevel = this.#connection.getTopLevelContext(context.parent); + const topLevel = this.connection.getTopLevelContext(context.parent); topLevel.emit(BrowsingContextEvent.Created, context); } } async #getTree(): Promise { - const {result} = await this.#connection.send('browsingContext.getTree', {}); + const {result} = await this.connection.send('browsingContext.getTree', {}); for (const context of result.contexts) { this.#onContextCreated(context); } @@ -215,8 +213,8 @@ export class BidiBrowser extends Browser { async #onContextDestroyed( event: Bidi.BrowsingContext.ContextDestroyed['params'] ) { - const context = this.#connection.getBrowsingContext(event.context); - const topLevelContext = this.#connection.getTopLevelContext(event.context); + const context = this.connection.getBrowsingContext(event.context); + const topLevelContext = this.connection.getTopLevelContext(event.context); topLevelContext.emit(BrowsingContextEvent.Destroyed, context); const target = this.#targets.get(event.context); const page = await target?.page(); @@ -229,29 +227,35 @@ export class BidiBrowser extends Browser { } get connection(): BidiConnection { - return this.#connection; + // SAFETY: We only have one implementation. + return this.#browserCore.session.connection as BidiConnection; } override wsEndpoint(): string { - return this.#connection.url; + return this.connection.url; } override async close(): Promise { for (const [eventName, handler] of this.#connectionEventHandlers) { - this.#connection.off(eventName, handler); + this.connection.off(eventName, handler); } - if (this.#connection.closed) { + if (this.connection.closed) { return; } - // `browser.close` can close connection before the response is received. - await this.#connection.send('browser.close', {}).catch(debugError); - await this.#closeCallback?.call(null); - this.#connection.dispose(); + try { + await this.#browserCore.close(); + await this.#closeCallback?.call(null); + } catch (error) { + // Fail silently. + debugError(error); + } finally { + this.connection.dispose(); + } } override get connected(): boolean { - return !this.#connection.closed; + return !this.#browserCore.disposed; } override process(): ChildProcess | null { @@ -261,13 +265,8 @@ export class BidiBrowser extends Browser { override async createIncognitoBrowserContext( _options?: BrowserContextOptions ): Promise { - // TODO: implement incognito context https://github.com/w3c/webdriver-bidi/issues/289. - const context = new BidiBrowserContext(this, { - defaultViewport: this.#defaultViewport, - isDefault: false, - }); - this.#contexts.push(context); - return context; + const userContext = await this.#browserCore.createUserContext(); + return this.#createBrowserContext(userContext); } override async version(): Promise { @@ -275,28 +274,17 @@ export class BidiBrowser extends Browser { } override browserContexts(): BidiBrowserContext[] { - // TODO: implement incognito context https://github.com/w3c/webdriver-bidi/issues/289. - return this.#contexts; - } - - async _closeContext(browserContext: BidiBrowserContext): Promise { - this.#contexts = this.#contexts.filter(c => { - return c !== browserContext; + return [...this.#browserCore.userContexts].map(context => { + return this.#browserContexts.get(context)!; }); - for (const target of browserContext.targets()) { - const page = await target?.page(); - await page?.close().catch(error => { - debugError(error); - }); - } } override defaultBrowserContext(): BidiBrowserContext { - return this.#defaultContext; + return this.#browserContexts.get(this.#browserCore.defaultUserContext)!; } override newPage(): Promise { - return this.#defaultContext.newPage(); + return this.defaultBrowserContext().newPage(); } override targets(): Target[] { @@ -317,11 +305,18 @@ export class BidiBrowser extends Browser { override async disconnect(): Promise { try { - // Fail silently if the session cannot be ended. - await this.#connection.send('session.end', {}); - } catch (e) { - debugError(e); + await this.#browserCore.session.end(); + } catch (error) { + // Fail silently. + debugError(error); + } finally { + this.connection.dispose(); } - this.#connection.dispose(); + } + + override get debugInfo(): DebugInfo { + return { + pendingProtocolErrors: this.connection.getPendingProtocolErrors(), + }; } } diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/BrowserConnector.ts b/Scripts/node_modules/puppeteer-core/src/bidi/BrowserConnector.ts index 66531a7a..f616e905 100644 --- a/Scripts/node_modules/puppeteer-core/src/bidi/BrowserConnector.ts +++ b/Scripts/node_modules/puppeteer-core/src/bidi/BrowserConnector.ts @@ -11,7 +11,7 @@ import type { BrowserConnectOptions, ConnectOptions, } from '../common/ConnectOptions.js'; -import {UnsupportedOperation} from '../common/Errors.js'; +import {ProtocolError, UnsupportedOperation} from '../common/Errors.js'; import {debugError, DEFAULT_VIEWPORT} from '../common/util.js'; import type {BidiBrowser} from './Browser.js'; @@ -85,8 +85,8 @@ async function getBiDiConnection( }, }; } - } catch (e: any) { - if (!('name' in e && e.name === 'ProtocolError')) { + } catch (e) { + if (!(e instanceof ProtocolError)) { // Unexpected exception not related to BiDi / CDP. Rethrow. throw e; } diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/BrowserContext.ts b/Scripts/node_modules/puppeteer-core/src/bidi/BrowserContext.ts index 4f0ad5e4..4105dc5c 100644 --- a/Scripts/node_modules/puppeteer-core/src/bidi/BrowserContext.ts +++ b/Scripts/node_modules/puppeteer-core/src/bidi/BrowserContext.ts @@ -11,10 +11,12 @@ import {BrowserContext} from '../api/BrowserContext.js'; import type {Page} from '../api/Page.js'; import type {Target} from '../api/Target.js'; import {UnsupportedOperation} from '../common/Errors.js'; +import {debugError} from '../common/util.js'; import type {Viewport} from '../common/Viewport.js'; import type {BidiBrowser} from './Browser.js'; import type {BidiConnection} from './Connection.js'; +import {UserContext} from './core/UserContext.js'; import type {BidiPage} from './Page.js'; /** @@ -22,7 +24,6 @@ import type {BidiPage} from './Page.js'; */ export interface BidiBrowserContextOptions { defaultViewport: Viewport | null; - isDefault: boolean; } /** @@ -32,14 +33,18 @@ export class BidiBrowserContext extends BrowserContext { #browser: BidiBrowser; #connection: BidiConnection; #defaultViewport: Viewport | null; - #isDefault = false; + #userContext: UserContext; - constructor(browser: BidiBrowser, options: BidiBrowserContextOptions) { + constructor( + browser: BidiBrowser, + userContext: UserContext, + options: BidiBrowserContextOptions + ) { super(); this.#browser = browser; + this.#userContext = userContext; this.#connection = this.#browser.connection; this.#defaultViewport = options.defaultViewport; - this.#isDefault = options.isDefault; } override targets(): Target[] { @@ -64,6 +69,7 @@ export class BidiBrowserContext extends BrowserContext { override async newPage(): Promise { const {result} = await this.#connection.send('browsingContext.create', { type: Bidi.BrowsingContext.CreateType.Tab, + userContext: this.#userContext.id, }); const target = this.#browser._getTargetById(result.context); @@ -90,11 +96,15 @@ export class BidiBrowserContext extends BrowserContext { } override async close(): Promise { - if (this.#isDefault) { + if (!this.isIncognito()) { throw new Error('Default context cannot be closed!'); } - await this.#browser._closeContext(this); + try { + await this.#userContext.remove(); + } catch (error) { + debugError(error); + } } override browser(): BidiBrowser { @@ -113,7 +123,7 @@ export class BidiBrowserContext extends BrowserContext { } override isIncognito(): boolean { - return !this.#isDefault; + return this.#userContext.id !== UserContext.DEFAULT; } override overridePermissions(): never { @@ -123,4 +133,11 @@ export class BidiBrowserContext extends BrowserContext { override clearPermissionOverrides(): never { throw new UnsupportedOperation(); } + + override get id(): string | undefined { + if (this.#userContext.id === 'default') { + return undefined; + } + return this.#userContext.id; + } } diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/Connection.ts b/Scripts/node_modules/puppeteer-core/src/bidi/Connection.ts index 0284d1af..bce952ba 100644 --- a/Scripts/node_modules/puppeteer-core/src/bidi/Connection.ts +++ b/Scripts/node_modules/puppeteer-core/src/bidi/Connection.ts @@ -9,11 +9,17 @@ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; import {CallbackRegistry} from '../common/CallbackRegistry.js'; import type {ConnectionTransport} from '../common/ConnectionTransport.js'; import {debug} from '../common/Debug.js'; +import type {EventsWithWildcard} from '../common/EventEmitter.js'; import {EventEmitter} from '../common/EventEmitter.js'; import {debugError} from '../common/util.js'; import {assert} from '../util/assert.js'; -import {type BrowsingContext, cdpSessions} from './BrowsingContext.js'; +import {cdpSessions, type BrowsingContext} from './BrowsingContext.js'; +import type { + BidiEvents, + Commands as BidiCommands, + Connection, +} from './core/Connection.js'; const debugProtocolSend = debug('puppeteer:webDriverBiDi:SEND ►'); const debugProtocolReceive = debug('puppeteer:webDriverBiDi:RECV ◀'); @@ -21,107 +27,7 @@ const debugProtocolReceive = debug('puppeteer:webDriverBiDi:RECV ◀'); /** * @internal */ -export interface Commands { - 'script.evaluate': { - params: Bidi.Script.EvaluateParameters; - returnType: Bidi.Script.EvaluateResult; - }; - 'script.callFunction': { - params: Bidi.Script.CallFunctionParameters; - returnType: Bidi.Script.EvaluateResult; - }; - 'script.disown': { - params: Bidi.Script.DisownParameters; - returnType: Bidi.EmptyResult; - }; - 'script.addPreloadScript': { - params: Bidi.Script.AddPreloadScriptParameters; - returnType: Bidi.Script.AddPreloadScriptResult; - }; - 'script.removePreloadScript': { - params: Bidi.Script.RemovePreloadScriptParameters; - returnType: Bidi.EmptyResult; - }; - - 'browser.close': { - params: Bidi.EmptyParams; - returnType: Bidi.EmptyResult; - }; - - 'browsingContext.activate': { - params: Bidi.BrowsingContext.ActivateParameters; - returnType: Bidi.EmptyResult; - }; - 'browsingContext.create': { - params: Bidi.BrowsingContext.CreateParameters; - returnType: Bidi.BrowsingContext.CreateResult; - }; - 'browsingContext.close': { - params: Bidi.BrowsingContext.CloseParameters; - returnType: Bidi.EmptyResult; - }; - 'browsingContext.getTree': { - params: Bidi.BrowsingContext.GetTreeParameters; - returnType: Bidi.BrowsingContext.GetTreeResult; - }; - 'browsingContext.navigate': { - params: Bidi.BrowsingContext.NavigateParameters; - returnType: Bidi.BrowsingContext.NavigateResult; - }; - 'browsingContext.reload': { - params: Bidi.BrowsingContext.ReloadParameters; - returnType: Bidi.BrowsingContext.NavigateResult; - }; - 'browsingContext.print': { - params: Bidi.BrowsingContext.PrintParameters; - returnType: Bidi.BrowsingContext.PrintResult; - }; - 'browsingContext.captureScreenshot': { - params: Bidi.BrowsingContext.CaptureScreenshotParameters; - returnType: Bidi.BrowsingContext.CaptureScreenshotResult; - }; - 'browsingContext.handleUserPrompt': { - params: Bidi.BrowsingContext.HandleUserPromptParameters; - returnType: Bidi.EmptyResult; - }; - 'browsingContext.setViewport': { - params: Bidi.BrowsingContext.SetViewportParameters; - returnType: Bidi.EmptyResult; - }; - 'browsingContext.traverseHistory': { - params: Bidi.BrowsingContext.TraverseHistoryParameters; - returnType: Bidi.EmptyResult; - }; - - 'input.performActions': { - params: Bidi.Input.PerformActionsParameters; - returnType: Bidi.EmptyResult; - }; - 'input.releaseActions': { - params: Bidi.Input.ReleaseActionsParameters; - returnType: Bidi.EmptyResult; - }; - - 'session.end': { - params: Bidi.EmptyParams; - returnType: Bidi.EmptyResult; - }; - 'session.new': { - params: Bidi.Session.NewParameters; - returnType: Bidi.Session.NewResult; - }; - 'session.status': { - params: object; - returnType: Bidi.Session.StatusResult; - }; - 'session.subscribe': { - params: Bidi.Session.SubscriptionRequest; - returnType: Bidi.EmptyResult; - }; - 'session.unsubscribe': { - params: Bidi.Session.SubscriptionRequest; - returnType: Bidi.EmptyResult; - }; +export interface Commands extends BidiCommands { 'cdp.sendCommand': { params: Bidi.Cdp.SendCommandParameters; returnType: Bidi.Cdp.SendCommandResult; @@ -135,17 +41,10 @@ export interface Commands { /** * @internal */ -export type BidiEvents = { - [K in Bidi.ChromiumBidi.Event['method']]: Extract< - Bidi.ChromiumBidi.Event, - {method: K} - >['params']; -}; - -/** - * @internal - */ -export class BidiConnection extends EventEmitter { +export class BidiConnection + extends EventEmitter + implements Connection +{ #url: string; #transport: ConnectionTransport; #delay: number; @@ -153,6 +52,7 @@ export class BidiConnection extends EventEmitter { #closed = false; #callbacks = new CallbackRegistry(); #browsingContexts = new Map(); + #emitters: Array> = []; constructor( url: string, @@ -178,6 +78,20 @@ export class BidiConnection extends EventEmitter { return this.#url; } + pipeTo(emitter: EventEmitter): void { + this.#emitters.push(emitter); + } + + override emit>( + type: Key, + event: EventsWithWildcard[Key] + ): boolean { + for (const emitter of this.#emitters) { + emitter.emit(type, event); + } + return super.emit(type, event); + } + send( method: T, params: Commands[T]['params'] @@ -320,6 +234,10 @@ export class BidiConnection extends EventEmitter { this.unbind(); this.#transport.close(); } + + getPendingProtocolErrors(): Error[] { + return this.#callbacks.getPendingProtocolErrors(); + } } /** diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/Dialog.ts b/Scripts/node_modules/puppeteer-core/src/bidi/Dialog.ts index 4bf741cc..ce222234 100644 --- a/Scripts/node_modules/puppeteer-core/src/bidi/Dialog.ts +++ b/Scripts/node_modules/puppeteer-core/src/bidi/Dialog.ts @@ -32,7 +32,7 @@ export class BidiDialog extends Dialog { /** * @internal */ - override async sendCommand(options: { + override async handle(options: { accept: boolean; text?: string; }): Promise { diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/ExposedFunction.ts b/Scripts/node_modules/puppeteer-core/src/bidi/ExposedFunction.ts index d385ffed..62c6b5e3 100644 --- a/Scripts/node_modules/puppeteer-core/src/bidi/ExposedFunction.ts +++ b/Scripts/node_modules/puppeteer-core/src/bidi/ExposedFunction.ts @@ -66,7 +66,6 @@ export class ExposeableFunction { async expose(): Promise { const connection = this.#connection; const channelArguments = this.#channelArguments; - const {name} = this; // TODO(jrandolf): Implement cleanup with removePreloadScript. connection.on( @@ -103,7 +102,7 @@ export class ExposeableFunction { }, }); }, - {name: JSON.stringify(name)} + {name: JSON.stringify(this.name)} ) ); @@ -148,7 +147,9 @@ export class ExposeableFunction { BidiSerializer.serializeRemoteValue(result), ], awaitPromise: false, - target: params.source, + target: { + realm: params.source.realm, + }, }); } catch (error) { try { @@ -156,7 +157,7 @@ export class ExposeableFunction { await connection.send('script.callFunction', { functionDeclaration: stringifyFunction( ( - [_, reject]: any, + [_, reject]: [unknown, (error: Error) => void], name: string, message: string, stack?: string @@ -176,12 +177,17 @@ export class ExposeableFunction { BidiSerializer.serializeRemoteValue(error.stack), ], awaitPromise: false, - target: params.source, + target: { + realm: params.source.realm, + }, }); } else { await connection.send('script.callFunction', { functionDeclaration: stringifyFunction( - ([_, reject]: any, error: unknown) => { + ( + [_, reject]: [unknown, (error: unknown) => void], + error: unknown + ) => { reject(error); } ), @@ -190,7 +196,9 @@ export class ExposeableFunction { BidiSerializer.serializeRemoteValue(error), ], awaitPromise: false, - target: params.source, + target: { + realm: params.source.realm, + }, }); } } catch (error) { diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/Frame.ts b/Scripts/node_modules/puppeteer-core/src/bidi/Frame.ts index b8990487..1638c2cb 100644 --- a/Scripts/node_modules/puppeteer-core/src/bidi/Frame.ts +++ b/Scripts/node_modules/puppeteer-core/src/bidi/Frame.ts @@ -7,29 +7,33 @@ import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; import { - type Observable, - from, - fromEvent, - merge, - map, - forkJoin, first, firstValueFrom, + forkJoin, + from, + map, + merge, raceWith, + zip, } from '../../third_party/rxjs/rxjs.js'; import type {CDPSession} from '../api/CDPSession.js'; import type {ElementHandle} from '../api/ElementHandle.js'; import { Frame, + throwIfDetached, type GoToOptions, type WaitForOptions, - throwIfDetached, } from '../api/Frame.js'; import type {WaitForSelectorOptions} from '../api/Page.js'; import {UnsupportedOperation} from '../common/Errors.js'; import type {TimeoutSettings} from '../common/TimeoutSettings.js'; import type {Awaitable, NodeFor} from '../common/types.js'; -import {UTILITY_WORLD_NAME, timeout} from '../common/util.js'; +import { + fromEmitterEvent, + NETWORK_IDLE_TIME, + timeout, + UTILITY_WORLD_NAME, +} from '../common/util.js'; import {Deferred} from '../util/Deferred.js'; import {disposeSymbol} from '../util/disposable.js'; @@ -130,21 +134,33 @@ export class BidiFrame extends Frame { const [readiness, networkIdle] = getBiDiReadinessState(waitUntil); - const response = await firstValueFrom( - this.#page - ._waitWithNetworkIdle( - this.#context.connection.send('browsingContext.navigate', { - context: this.#context.id, - url, - wait: readiness, - }), - networkIdle - ) - .pipe(raceWith(timeout(ms), from(this.#abortDeferred.valueOrThrow()))) - .pipe(rewriteNavigationError(url, ms)) + const result$ = zip( + from( + this.#context.connection.send('browsingContext.navigate', { + context: this.#context.id, + url, + wait: readiness, + }) + ), + ...(networkIdle !== null + ? [ + this.#page.waitForNetworkIdle$({ + timeout: ms, + concurrency: networkIdle === 'networkidle2' ? 2 : 0, + idleTime: NETWORK_IDLE_TIME, + }), + ] + : []) + ).pipe( + map(([{result}]) => { + return result; + }), + raceWith(timeout(ms), from(this.#abortDeferred.valueOrThrow())), + rewriteNavigationError(url, ms) ); - return this.#page.getNavigationResponse(response?.result.navigation); + const result = await firstValueFrom(result$); + return this.#page.getNavigationResponse(result.navigation); } @throwIfDetached @@ -159,22 +175,30 @@ export class BidiFrame extends Frame { const [waitEvent, networkIdle] = getBiDiLifecycleEvent(waitUntil); - await firstValueFrom( - this.#page - ._waitWithNetworkIdle( - forkJoin([ - fromEvent(this.#context, waitEvent).pipe(first()), - from(this.setFrameContent(html)), - ]).pipe( - map(() => { - return null; - }) - ), - networkIdle - ) - .pipe(raceWith(timeout(ms), from(this.#abortDeferred.valueOrThrow()))) - .pipe(rewriteNavigationError('setContent', ms)) + const result$ = zip( + forkJoin([ + fromEmitterEvent(this.#context, waitEvent).pipe(first()), + from(this.setFrameContent(html)), + ]).pipe( + map(() => { + return null; + }) + ), + ...(networkIdle !== null + ? [ + this.#page.waitForNetworkIdle$({ + timeout: ms, + concurrency: networkIdle === 'networkidle2' ? 2 : 0, + idleTime: NETWORK_IDLE_TIME, + }), + ] + : []) + ).pipe( + raceWith(timeout(ms), from(this.#abortDeferred.valueOrThrow())), + rewriteNavigationError('setContent', ms) ); + + await firstValueFrom(result$); } context(): BrowsingContext { @@ -192,20 +216,18 @@ export class BidiFrame extends Frame { const [waitUntilEvent, networkIdle] = getBiDiLifecycleEvent(waitUntil); - const navigatedObservable = merge( + const navigation$ = merge( forkJoin([ - fromEvent( + fromEmitterEvent( this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted ).pipe(first()), - fromEvent(this.#context, waitUntilEvent).pipe( - first() - ) as Observable, + fromEmitterEvent(this.#context, waitUntilEvent).pipe(first()), ]), - fromEvent( + fromEmitterEvent( this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated - ) as Observable + ) ).pipe( map(result => { if (Array.isArray(result)) { @@ -215,13 +237,26 @@ export class BidiFrame extends Frame { }) ); - const response = await firstValueFrom( - this.#page - ._waitWithNetworkIdle(navigatedObservable, networkIdle) - .pipe(raceWith(timeout(ms), from(this.#abortDeferred.valueOrThrow()))) + const result$ = zip( + navigation$, + ...(networkIdle !== null + ? [ + this.#page.waitForNetworkIdle$({ + timeout: ms, + concurrency: networkIdle === 'networkidle2' ? 2 : 0, + idleTime: NETWORK_IDLE_TIME, + }), + ] + : []) + ).pipe( + map(([{result}]) => { + return result; + }), + raceWith(timeout(ms), from(this.#abortDeferred.valueOrThrow())) ); - return this.#page.getNavigationResponse(response?.result.navigation); + const result = await firstValueFrom(result$); + return this.#page.getNavigationResponse(result.navigation); } override waitForDevicePrompt(): never { diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/Page.ts b/Scripts/node_modules/puppeteer-core/src/bidi/Page.ts index b45aec69..053d23b6 100644 --- a/Scripts/node_modules/puppeteer-core/src/bidi/Page.ts +++ b/Scripts/node_modules/puppeteer-core/src/bidi/Page.ts @@ -9,14 +9,12 @@ import type {Readable} from 'stream'; import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; import type Protocol from 'devtools-protocol'; -import type {Observable, ObservableInput} from '../../third_party/rxjs/rxjs.js'; import { - first, firstValueFrom, - forkJoin, from, map, raceWith, + zip, } from '../../third_party/rxjs/rxjs.js'; import type {CDPSession} from '../api/CDPSession.js'; import type {BoundingBox} from '../api/ElementHandle.js'; @@ -48,9 +46,9 @@ import { debugError, evaluationString, NETWORK_IDLE_TIME, + parsePDFOptions, timeout, validateDialogType, - waitForHTTP, } from '../common/util.js'; import type {Viewport} from '../common/Viewport.js'; import {assert} from '../util/assert.js'; @@ -75,7 +73,6 @@ import type {BidiHTTPRequest} from './HTTPRequest.js'; import type {BidiHTTPResponse} from './HTTPResponse.js'; import {BidiKeyboard, BidiMouse, BidiTouchscreen} from './Input.js'; import type {BidiJSHandle} from './JSHandle.js'; -import type {BiDiNetworkIdle} from './lifecycle.js'; import {getBiDiReadinessState, rewriteNavigationError} from './lifecycle.js'; import {BidiNetworkManager} from './NetworkManager.js'; import {createBidiHandle} from './Realm.js'; @@ -497,19 +494,32 @@ export class BidiPage extends Page { const [readiness, networkIdle] = getBiDiReadinessState(waitUntil); - const response = await firstValueFrom( - this._waitWithNetworkIdle( + const result$ = zip( + from( this.#connection.send('browsingContext.reload', { context: this.mainFrame()._id, wait: readiness, - }), - networkIdle - ) - .pipe(raceWith(timeout(ms), from(this.#closedDeferred.valueOrThrow()))) - .pipe(rewriteNavigationError(this.url(), ms)) + }) + ), + ...(networkIdle !== null + ? [ + this.waitForNetworkIdle$({ + timeout: ms, + concurrency: networkIdle === 'networkidle2' ? 2 : 0, + idleTime: NETWORK_IDLE_TIME, + }), + ] + : []) + ).pipe( + map(([{result}]) => { + return result; + }), + raceWith(timeout(ms), from(this.#closedDeferred.valueOrThrow())), + rewriteNavigationError(this.url(), ms) ); - return this.getNavigationResponse(response?.result.navigation); + const result = await firstValueFrom(result$); + return this.getNavigationResponse(result.navigation); } override setDefaultNavigationTimeout(timeout: number): void { @@ -586,7 +596,8 @@ export class BidiPage extends Page { } override async pdf(options: PDFOptions = {}): Promise { - const {path = undefined} = options; + const {timeout: ms = this._timeoutSettings.timeout(), path = undefined} = + options; const { printBackground: background, margin, @@ -596,8 +607,7 @@ export class BidiPage extends Page { pageRanges: ranges, scale, preferCSSPageSize, - timeout: ms, - } = this._getPDFOptions(options, 'cm'); + } = parsePDFOptions(options, 'cm'); const pageRanges = ranges ? ranges.split(', ') : []; const {result} = await firstValueFrom( from( @@ -701,80 +711,6 @@ export class BidiPage extends Page { return data; } - override async waitForRequest( - urlOrPredicate: - | string - | ((req: BidiHTTPRequest) => boolean | Promise), - options: {timeout?: number} = {} - ): Promise { - const {timeout = this._timeoutSettings.timeout()} = options; - return await waitForHTTP( - this.#networkManager, - NetworkManagerEvent.Request, - urlOrPredicate, - timeout, - this.#closedDeferred - ); - } - - override async waitForResponse( - urlOrPredicate: - | string - | ((res: BidiHTTPResponse) => boolean | Promise), - options: {timeout?: number} = {} - ): Promise { - const {timeout = this._timeoutSettings.timeout()} = options; - return await waitForHTTP( - this.#networkManager, - NetworkManagerEvent.Response, - urlOrPredicate, - timeout, - this.#closedDeferred - ); - } - - override async waitForNetworkIdle( - options: {idleTime?: number; timeout?: number} = {} - ): Promise { - const { - idleTime = NETWORK_IDLE_TIME, - timeout: ms = this._timeoutSettings.timeout(), - } = options; - - await firstValueFrom( - this._waitForNetworkIdle(this.#networkManager, idleTime).pipe( - raceWith(timeout(ms), from(this.#closedDeferred.valueOrThrow())) - ) - ); - } - - /** @internal */ - _waitWithNetworkIdle( - observableInput: ObservableInput<{ - result: Bidi.BrowsingContext.NavigateResult; - } | null>, - networkIdle: BiDiNetworkIdle - ): Observable<{ - result: Bidi.BrowsingContext.NavigateResult; - } | null> { - const delay = networkIdle - ? this._waitForNetworkIdle( - this.#networkManager, - NETWORK_IDLE_TIME, - networkIdle === 'networkidle0' ? 0 : 2 - ) - : from(Promise.resolve()); - - return forkJoin([ - from(observableInput).pipe(first()), - delay.pipe(first()), - ]).pipe( - map(([response]) => { - return response; - }) - ); - } - override async createCDPSession(): Promise { const {sessionId} = await this.mainFrame() .context() diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/Target.ts b/Scripts/node_modules/puppeteer-core/src/bidi/Target.ts index 5823e101..fb01c346 100644 --- a/Scripts/node_modules/puppeteer-core/src/bidi/Target.ts +++ b/Scripts/node_modules/puppeteer-core/src/bidi/Target.ts @@ -53,7 +53,14 @@ export abstract class BidiTarget extends Target { /** * @internal */ -export class BiDiBrowserTarget extends BidiTarget { +export class BiDiBrowserTarget extends Target { + #browser: BidiBrowser; + + constructor(browser: BidiBrowser) { + super(); + this.#browser = browser; + } + override url(): string { return ''; } @@ -61,6 +68,26 @@ export class BiDiBrowserTarget extends BidiTarget { override type(): TargetType { return TargetType.BROWSER; } + + override asPage(): Promise { + throw new UnsupportedOperation(); + } + + override browser(): BidiBrowser { + return this.#browser; + } + + override browserContext(): BidiBrowserContext { + return this.#browser.defaultBrowserContext(); + } + + override opener(): never { + throw new UnsupportedOperation(); + } + + override createCDPSession(): Promise { + throw new UnsupportedOperation(); + } } /** diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/core/Browser.ts b/Scripts/node_modules/puppeteer-core/src/bidi/core/Browser.ts new file mode 100644 index 00000000..ea2668d3 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/src/bidi/core/Browser.ts @@ -0,0 +1,240 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; + +import {EventEmitter} from '../../common/EventEmitter.js'; +import {inertIfDisposed, throwIfDisposed} from '../../util/decorators.js'; +import {DisposableStack, disposeSymbol} from '../../util/disposable.js'; + +import type {BrowsingContext} from './BrowsingContext.js'; +import type {SharedWorkerRealm} from './Realm.js'; +import type {Session} from './Session.js'; +import {UserContext} from './UserContext.js'; + +/** + * @internal + */ +export type AddPreloadScriptOptions = Omit< + Bidi.Script.AddPreloadScriptParameters, + 'functionDeclaration' | 'contexts' +> & { + contexts?: [BrowsingContext, ...BrowsingContext[]]; +}; + +/** + * @internal + */ +export class Browser extends EventEmitter<{ + /** Emitted before the browser closes. */ + closed: { + /** The reason for closing the browser. */ + reason: string; + }; + /** Emitted after the browser disconnects. */ + disconnected: { + /** The reason for disconnecting the browser. */ + reason: string; + }; + /** Emitted when a shared worker is created. */ + sharedworker: { + /** The realm of the shared worker. */ + realm: SharedWorkerRealm; + }; +}> { + static async from(session: Session): Promise { + const browser = new Browser(session); + await browser.#initialize(); + return browser; + } + + // keep-sorted start + #closed = false; + #reason: string | undefined; + readonly #disposables = new DisposableStack(); + readonly #userContexts = new Map(); + readonly session: Session; + // keep-sorted end + + private constructor(session: Session) { + super(); + // keep-sorted start + this.session = session; + // keep-sorted end + + this.#userContexts.set( + UserContext.DEFAULT, + UserContext.create(this, UserContext.DEFAULT) + ); + } + + async #initialize() { + const sessionEmitter = this.#disposables.use( + new EventEmitter(this.session) + ); + sessionEmitter.once('ended', ({reason}) => { + this.dispose(reason); + }); + + sessionEmitter.on('script.realmCreated', info => { + if (info.type === 'shared-worker') { + // TODO: Create a SharedWorkerRealm. + } + }); + + await this.#syncUserContexts(); + await this.#syncBrowsingContexts(); + } + + async #syncUserContexts() { + const { + result: {userContexts}, + } = await this.session.send('browser.getUserContexts', {}); + + for (const context of userContexts) { + if (context.userContext === UserContext.DEFAULT) { + continue; + } + this.#userContexts.set( + context.userContext, + UserContext.create(this, context.userContext) + ); + } + } + + async #syncBrowsingContexts() { + // In case contexts are created or destroyed during `getTree`, we use this + // set to detect them. + const contextIds = new Set(); + let contexts: Bidi.BrowsingContext.Info[]; + + { + using sessionEmitter = new EventEmitter(this.session); + sessionEmitter.on('browsingContext.contextCreated', info => { + contextIds.add(info.context); + }); + sessionEmitter.on('browsingContext.contextDestroyed', info => { + contextIds.delete(info.context); + }); + const {result} = await this.session.send('browsingContext.getTree', {}); + contexts = result.contexts; + } + + // Simulating events so contexts are created naturally. + for (const info of contexts) { + if (contextIds.has(info.context)) { + this.session.emit('browsingContext.contextCreated', info); + } + if (info.children) { + contexts.push(...info.children); + } + } + } + + // keep-sorted start block=yes + get closed(): boolean { + return this.#closed; + } + get defaultUserContext(): UserContext { + // SAFETY: A UserContext is always created for the default context. + return this.#userContexts.get(UserContext.DEFAULT)!; + } + get disconnected(): boolean { + return this.#reason !== undefined; + } + get disposed(): boolean { + return this.disconnected; + } + get userContexts(): Iterable { + return this.#userContexts.values(); + } + // keep-sorted end + + @inertIfDisposed + dispose(reason?: string, closed = false): void { + this.#closed = closed; + this.#reason = reason; + this[disposeSymbol](); + } + + @throwIfDisposed(browser => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return browser.#reason!; + }) + async close(): Promise { + try { + await this.session.send('browser.close', {}); + } finally { + this.dispose('Browser already closed.', true); + } + } + + @throwIfDisposed(browser => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return browser.#reason!; + }) + async addPreloadScript( + functionDeclaration: string, + options: AddPreloadScriptOptions = {} + ): Promise { + const { + result: {script}, + } = await this.session.send('script.addPreloadScript', { + functionDeclaration, + ...options, + contexts: options.contexts?.map(context => { + return context.id; + }) as [string, ...string[]], + }); + return script; + } + + @throwIfDisposed(browser => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return browser.#reason!; + }) + async removePreloadScript(script: string): Promise { + await this.session.send('script.removePreloadScript', { + script, + }); + } + + @throwIfDisposed(browser => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return browser.#reason!; + }) + async createUserContext(): Promise { + const { + result: {userContext: context}, + } = await this.session.send('browser.createUserContext', {}); + + const userContext = UserContext.create(this, context); + this.#userContexts.set(userContext.id, userContext); + + const userContextEmitter = this.#disposables.use( + new EventEmitter(userContext) + ); + userContextEmitter.once('closed', () => { + userContextEmitter.removeAllListeners(); + + this.#userContexts.delete(context); + }); + + return userContext; + } + + [disposeSymbol](): void { + this.#reason ??= + 'Browser was disconnected, probably because the session ended.'; + if (this.closed) { + this.emit('closed', {reason: this.#reason}); + } + this.emit('disconnected', {reason: this.#reason}); + + this.#disposables.dispose(); + super[disposeSymbol](); + } +} diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/core/BrowsingContext.ts b/Scripts/node_modules/puppeteer-core/src/bidi/core/BrowsingContext.ts new file mode 100644 index 00000000..9bec2a50 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/src/bidi/core/BrowsingContext.ts @@ -0,0 +1,475 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; + +import {EventEmitter} from '../../common/EventEmitter.js'; +import {inertIfDisposed, throwIfDisposed} from '../../util/decorators.js'; +import {DisposableStack, disposeSymbol} from '../../util/disposable.js'; + +import type {AddPreloadScriptOptions} from './Browser.js'; +import {Navigation} from './Navigation.js'; +import {WindowRealm} from './Realm.js'; +import {Request} from './Request.js'; +import type {UserContext} from './UserContext.js'; +import {UserPrompt} from './UserPrompt.js'; + +/** + * @internal + */ +export type CaptureScreenshotOptions = Omit< + Bidi.BrowsingContext.CaptureScreenshotParameters, + 'context' +>; + +/** + * @internal + */ +export type ReloadOptions = Omit< + Bidi.BrowsingContext.ReloadParameters, + 'context' +>; + +/** + * @internal + */ +export type PrintOptions = Omit< + Bidi.BrowsingContext.PrintParameters, + 'context' +>; + +/** + * @internal + */ +export type HandleUserPromptOptions = Omit< + Bidi.BrowsingContext.HandleUserPromptParameters, + 'context' +>; + +/** + * @internal + */ +export type SetViewportOptions = Omit< + Bidi.BrowsingContext.SetViewportParameters, + 'context' +>; + +/** + * @internal + */ +export class BrowsingContext extends EventEmitter<{ + /** Emitted when this context is closed. */ + closed: { + /** The reason the browsing context was closed */ + reason: string; + }; + /** Emitted when a child browsing context is created. */ + browsingcontext: { + /** The newly created child browsing context. */ + browsingContext: BrowsingContext; + }; + /** Emitted whenever a navigation occurs. */ + navigation: { + /** The navigation that occurred. */ + navigation: Navigation; + }; + /** Emitted whenever a request is made. */ + request: { + /** The request that was made. */ + request: Request; + }; + /** Emitted whenever a log entry is added. */ + log: { + /** Entry added to the log. */ + entry: Bidi.Log.Entry; + }; + /** Emitted whenever a prompt is opened. */ + userprompt: { + /** The prompt that was opened. */ + userPrompt: UserPrompt; + }; + /** Emitted whenever the frame emits `DOMContentLoaded` */ + DOMContentLoaded: void; + /** Emitted whenever the frame emits `load` */ + load: void; +}> { + static from( + userContext: UserContext, + parent: BrowsingContext | undefined, + id: string, + url: string + ): BrowsingContext { + const browsingContext = new BrowsingContext(userContext, parent, id, url); + browsingContext.#initialize(); + return browsingContext; + } + + // keep-sorted start + #navigation: Navigation | undefined; + #reason?: string; + #url: string; + readonly #children = new Map(); + readonly #disposables = new DisposableStack(); + readonly #realms = new Map(); + readonly #requests = new Map(); + readonly defaultRealm: WindowRealm; + readonly id: string; + readonly parent: BrowsingContext | undefined; + readonly userContext: UserContext; + // keep-sorted end + + private constructor( + context: UserContext, + parent: BrowsingContext | undefined, + id: string, + url: string + ) { + super(); + // keep-sorted start + this.#url = url; + this.id = id; + this.parent = parent; + this.userContext = context; + // keep-sorted end + + this.defaultRealm = WindowRealm.from(this); + } + + #initialize() { + const userContextEmitter = this.#disposables.use( + new EventEmitter(this.userContext) + ); + userContextEmitter.once('closed', ({reason}) => { + this.dispose(`Browsing context already closed: ${reason}`); + }); + + const sessionEmitter = this.#disposables.use( + new EventEmitter(this.#session) + ); + sessionEmitter.on('browsingContext.contextCreated', info => { + if (info.parent !== this.id) { + return; + } + + const browsingContext = BrowsingContext.from( + this.userContext, + this, + info.context, + info.url + ); + this.#children.set(info.context, browsingContext); + + const browsingContextEmitter = this.#disposables.use( + new EventEmitter(browsingContext) + ); + browsingContextEmitter.once('closed', () => { + browsingContextEmitter.removeAllListeners(); + + this.#children.delete(browsingContext.id); + }); + + this.emit('browsingcontext', {browsingContext}); + }); + sessionEmitter.on('browsingContext.contextDestroyed', info => { + if (info.context !== this.id) { + return; + } + this.dispose('Browsing context already closed.'); + }); + + sessionEmitter.on('browsingContext.domContentLoaded', info => { + if (info.context !== this.id) { + return; + } + this.#url = info.url; + this.emit('DOMContentLoaded', undefined); + }); + + sessionEmitter.on('browsingContext.load', info => { + if (info.context !== this.id) { + return; + } + this.#url = info.url; + this.emit('load', undefined); + }); + + sessionEmitter.on('browsingContext.navigationStarted', info => { + if (info.context !== this.id) { + return; + } + this.#url = info.url; + + this.#requests.clear(); + + // Note the navigation ID is null for this event. + this.#navigation = Navigation.from(this); + + const navigationEmitter = this.#disposables.use( + new EventEmitter(this.#navigation) + ); + for (const eventName of ['fragment', 'failed', 'aborted'] as const) { + navigationEmitter.once(eventName, ({url}) => { + navigationEmitter[disposeSymbol](); + + this.#url = url; + }); + } + + this.emit('navigation', {navigation: this.#navigation}); + }); + sessionEmitter.on('network.beforeRequestSent', event => { + if (event.context !== this.id) { + return; + } + if (this.#requests.has(event.request.request)) { + return; + } + + const request = Request.from(this, event); + this.#requests.set(request.id, request); + this.emit('request', {request}); + }); + + sessionEmitter.on('log.entryAdded', entry => { + if (entry.source.context !== this.id) { + return; + } + + this.emit('log', {entry}); + }); + + sessionEmitter.on('browsingContext.userPromptOpened', info => { + if (info.context !== this.id) { + return; + } + + const userPrompt = UserPrompt.from(this, info); + this.emit('userprompt', {userPrompt}); + }); + } + + // keep-sorted start block=yes + get #session() { + return this.userContext.browser.session; + } + get children(): Iterable { + return this.#children.values(); + } + get closed(): boolean { + return this.#reason !== undefined; + } + get disposed(): boolean { + return this.closed; + } + get realms(): Iterable { + return this.#realms.values(); + } + get top(): BrowsingContext { + let context = this as BrowsingContext; + for (let {parent} = context; parent; {parent} = context) { + context = parent; + } + return context; + } + get url(): string { + return this.#url; + } + // keep-sorted end + + @inertIfDisposed + private dispose(reason?: string): void { + this.#reason = reason; + this[disposeSymbol](); + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + async activate(): Promise { + await this.#session.send('browsingContext.activate', { + context: this.id, + }); + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + async captureScreenshot( + options: CaptureScreenshotOptions = {} + ): Promise { + const { + result: {data}, + } = await this.#session.send('browsingContext.captureScreenshot', { + context: this.id, + ...options, + }); + return data; + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + async close(promptUnload?: boolean): Promise { + await Promise.all( + [...this.#children.values()].map(async child => { + await child.close(promptUnload); + }) + ); + await this.#session.send('browsingContext.close', { + context: this.id, + promptUnload, + }); + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + async traverseHistory(delta: number): Promise { + await this.#session.send('browsingContext.traverseHistory', { + context: this.id, + delta, + }); + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + async navigate( + url: string, + wait?: Bidi.BrowsingContext.ReadinessState + ): Promise { + await this.#session.send('browsingContext.navigate', { + context: this.id, + url, + wait, + }); + return await new Promise(resolve => { + this.once('navigation', ({navigation}) => { + resolve(navigation); + }); + }); + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + async reload(options: ReloadOptions = {}): Promise { + await this.#session.send('browsingContext.reload', { + context: this.id, + ...options, + }); + return await new Promise(resolve => { + this.once('navigation', ({navigation}) => { + resolve(navigation); + }); + }); + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + async print(options: PrintOptions = {}): Promise { + const { + result: {data}, + } = await this.#session.send('browsingContext.print', { + context: this.id, + ...options, + }); + return data; + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + async handleUserPrompt(options: HandleUserPromptOptions = {}): Promise { + await this.#session.send('browsingContext.handleUserPrompt', { + context: this.id, + ...options, + }); + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + async setViewport(options: SetViewportOptions = {}): Promise { + await this.#session.send('browsingContext.setViewport', { + context: this.id, + ...options, + }); + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + async performActions(actions: Bidi.Input.SourceActions[]): Promise { + await this.#session.send('input.performActions', { + context: this.id, + actions, + }); + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + async releaseActions(): Promise { + await this.#session.send('input.releaseActions', { + context: this.id, + }); + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + createWindowRealm(sandbox: string): WindowRealm { + return WindowRealm.from(this, sandbox); + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + async addPreloadScript( + functionDeclaration: string, + options: AddPreloadScriptOptions = {} + ): Promise { + return await this.userContext.browser.addPreloadScript( + functionDeclaration, + { + ...options, + contexts: [this, ...(options.contexts ?? [])], + } + ); + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + async removePreloadScript(script: string): Promise { + await this.userContext.browser.removePreloadScript(script); + } + + [disposeSymbol](): void { + this.#reason ??= + 'Browsing context already closed, probably because the user context closed.'; + this.emit('closed', {reason: this.#reason}); + + this.#disposables.dispose(); + super[disposeSymbol](); + } +} diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/core/Connection.ts b/Scripts/node_modules/puppeteer-core/src/bidi/core/Connection.ts new file mode 100644 index 00000000..b72a72d2 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/src/bidi/core/Connection.ts @@ -0,0 +1,154 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; + +import type {EventEmitter} from '../../common/EventEmitter.js'; + +/** + * @internal + */ +export interface Commands { + 'script.evaluate': { + params: Bidi.Script.EvaluateParameters; + returnType: Bidi.Script.EvaluateResult; + }; + 'script.callFunction': { + params: Bidi.Script.CallFunctionParameters; + returnType: Bidi.Script.EvaluateResult; + }; + 'script.disown': { + params: Bidi.Script.DisownParameters; + returnType: Bidi.EmptyResult; + }; + 'script.addPreloadScript': { + params: Bidi.Script.AddPreloadScriptParameters; + returnType: Bidi.Script.AddPreloadScriptResult; + }; + 'script.removePreloadScript': { + params: Bidi.Script.RemovePreloadScriptParameters; + returnType: Bidi.EmptyResult; + }; + + 'browser.close': { + params: Bidi.EmptyParams; + returnType: Bidi.EmptyResult; + }; + + 'browser.createUserContext': { + params: Bidi.EmptyParams; + returnType: Bidi.Browser.CreateUserContextResult; + }; + 'browser.getUserContexts': { + params: Bidi.EmptyParams; + returnType: Bidi.Browser.GetUserContextsResult; + }; + 'browser.removeUserContext': { + params: { + userContext: Bidi.Browser.UserContext; + }; + returnType: Bidi.Browser.RemoveUserContext; + }; + + 'browsingContext.activate': { + params: Bidi.BrowsingContext.ActivateParameters; + returnType: Bidi.EmptyResult; + }; + 'browsingContext.create': { + params: Bidi.BrowsingContext.CreateParameters; + returnType: Bidi.BrowsingContext.CreateResult; + }; + 'browsingContext.close': { + params: Bidi.BrowsingContext.CloseParameters; + returnType: Bidi.EmptyResult; + }; + 'browsingContext.getTree': { + params: Bidi.BrowsingContext.GetTreeParameters; + returnType: Bidi.BrowsingContext.GetTreeResult; + }; + 'browsingContext.navigate': { + params: Bidi.BrowsingContext.NavigateParameters; + returnType: Bidi.BrowsingContext.NavigateResult; + }; + 'browsingContext.reload': { + params: Bidi.BrowsingContext.ReloadParameters; + returnType: Bidi.BrowsingContext.NavigateResult; + }; + 'browsingContext.print': { + params: Bidi.BrowsingContext.PrintParameters; + returnType: Bidi.BrowsingContext.PrintResult; + }; + 'browsingContext.captureScreenshot': { + params: Bidi.BrowsingContext.CaptureScreenshotParameters; + returnType: Bidi.BrowsingContext.CaptureScreenshotResult; + }; + 'browsingContext.handleUserPrompt': { + params: Bidi.BrowsingContext.HandleUserPromptParameters; + returnType: Bidi.EmptyResult; + }; + 'browsingContext.setViewport': { + params: Bidi.BrowsingContext.SetViewportParameters; + returnType: Bidi.EmptyResult; + }; + 'browsingContext.traverseHistory': { + params: Bidi.BrowsingContext.TraverseHistoryParameters; + returnType: Bidi.EmptyResult; + }; + + 'input.performActions': { + params: Bidi.Input.PerformActionsParameters; + returnType: Bidi.EmptyResult; + }; + 'input.releaseActions': { + params: Bidi.Input.ReleaseActionsParameters; + returnType: Bidi.EmptyResult; + }; + + 'session.end': { + params: Bidi.EmptyParams; + returnType: Bidi.EmptyResult; + }; + 'session.new': { + params: Bidi.Session.NewParameters; + returnType: Bidi.Session.NewResult; + }; + 'session.status': { + params: object; + returnType: Bidi.Session.StatusResult; + }; + 'session.subscribe': { + params: Bidi.Session.SubscriptionRequest; + returnType: Bidi.EmptyResult; + }; + 'session.unsubscribe': { + params: Bidi.Session.SubscriptionRequest; + returnType: Bidi.EmptyResult; + }; +} + +/** + * @internal + */ +export type BidiEvents = { + [K in Bidi.ChromiumBidi.Event['method']]: Extract< + Bidi.ChromiumBidi.Event, + {method: K} + >['params']; +}; + +/** + * @internal + */ +export interface Connection + extends EventEmitter { + send( + method: T, + params: Commands[T]['params'] + ): Promise<{result: Commands[T]['returnType']}>; + + // This will pipe events into the provided emitter. + pipeTo(emitter: EventEmitter): void; +} diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/core/Navigation.ts b/Scripts/node_modules/puppeteer-core/src/bidi/core/Navigation.ts new file mode 100644 index 00000000..a7efbfeb --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/src/bidi/core/Navigation.ts @@ -0,0 +1,144 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + +import {EventEmitter} from '../../common/EventEmitter.js'; +import {inertIfDisposed} from '../../util/decorators.js'; +import {Deferred} from '../../util/Deferred.js'; +import {DisposableStack, disposeSymbol} from '../../util/disposable.js'; + +import type {BrowsingContext} from './BrowsingContext.js'; +import type {Request} from './Request.js'; + +/** + * @internal + */ +export interface NavigationInfo { + url: string; + timestamp: Date; +} + +/** + * @internal + */ +export class Navigation extends EventEmitter<{ + /** Emitted when navigation has a request associated with it. */ + request: Request; + /** Emitted when fragment navigation occurred. */ + fragment: NavigationInfo; + /** Emitted when navigation failed. */ + failed: NavigationInfo; + /** Emitted when navigation was aborted. */ + aborted: NavigationInfo; +}> { + static from(context: BrowsingContext): Navigation { + const navigation = new Navigation(context); + navigation.#initialize(); + return navigation; + } + + // keep-sorted start + #request: Request | undefined; + readonly #browsingContext: BrowsingContext; + readonly #disposables = new DisposableStack(); + readonly #id = new Deferred(); + // keep-sorted end + + private constructor(context: BrowsingContext) { + super(); + // keep-sorted start + this.#browsingContext = context; + // keep-sorted end + } + + #initialize() { + const browsingContextEmitter = this.#disposables.use( + new EventEmitter(this.#browsingContext) + ); + browsingContextEmitter.once('closed', () => { + this.emit('failed', { + url: this.#browsingContext.url, + timestamp: new Date(), + }); + this.dispose(); + }); + + this.#browsingContext.on('request', ({request}) => { + if (request.navigation === this.#id.value()) { + this.#request = request; + this.emit('request', request); + } + }); + + const sessionEmitter = this.#disposables.use( + new EventEmitter(this.#session) + ); + // To get the navigation ID if any. + for (const eventName of [ + 'browsingContext.domContentLoaded', + 'browsingContext.load', + ] as const) { + sessionEmitter.on(eventName, info => { + if (info.context !== this.#browsingContext.id) { + return; + } + if (!info.navigation) { + return; + } + if (!this.#id.resolved()) { + this.#id.resolve(info.navigation); + } + }); + } + + for (const [eventName, event] of [ + ['browsingContext.fragmentNavigated', 'fragment'], + ['browsingContext.navigationFailed', 'failed'], + ['browsingContext.navigationAborted', 'aborted'], + ] as const) { + sessionEmitter.on(eventName, info => { + if (info.context !== this.#browsingContext.id) { + return; + } + if (!info.navigation) { + return; + } + if (!this.#id.resolved()) { + this.#id.resolve(info.navigation); + } + if (this.#id.value() !== info.navigation) { + return; + } + this.emit(event, { + url: info.url, + timestamp: new Date(info.timestamp), + }); + this.dispose(); + }); + } + } + + // keep-sorted start block=yes + get #session() { + return this.#browsingContext.userContext.browser.session; + } + get disposed(): boolean { + return this.#disposables.disposed; + } + get request(): Request | undefined { + return this.#request; + } + // keep-sorted end + + @inertIfDisposed + private dispose(): void { + this[disposeSymbol](); + } + + [disposeSymbol](): void { + this.#disposables.dispose(); + super[disposeSymbol](); + } +} diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/core/Realm.ts b/Scripts/node_modules/puppeteer-core/src/bidi/core/Realm.ts new file mode 100644 index 00000000..d9bbbede --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/src/bidi/core/Realm.ts @@ -0,0 +1,351 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; + +import {EventEmitter} from '../../common/EventEmitter.js'; +import {inertIfDisposed, throwIfDisposed} from '../../util/decorators.js'; +import {DisposableStack, disposeSymbol} from '../../util/disposable.js'; + +import type {BrowsingContext} from './BrowsingContext.js'; +import type {Session} from './Session.js'; + +/** + * @internal + */ +export type CallFunctionOptions = Omit< + Bidi.Script.CallFunctionParameters, + 'functionDeclaration' | 'awaitPromise' | 'target' +>; + +/** + * @internal + */ +export type EvaluateOptions = Omit< + Bidi.Script.EvaluateParameters, + 'expression' | 'awaitPromise' | 'target' +>; + +/** + * @internal + */ +export abstract class Realm extends EventEmitter<{ + /** Emitted when the realm is destroyed. */ + destroyed: {reason: string}; + /** Emitted when a dedicated worker is created in the realm. */ + worker: DedicatedWorkerRealm; + /** Emitted when a shared worker is created in the realm. */ + sharedworker: SharedWorkerRealm; +}> { + // keep-sorted start + #reason?: string; + protected readonly disposables = new DisposableStack(); + readonly id: string; + readonly origin: string; + // keep-sorted end + + protected constructor(id: string, origin: string) { + super(); + // keep-sorted start + this.id = id; + this.origin = origin; + // keep-sorted end + } + + protected initialize(): void { + const sessionEmitter = this.disposables.use(new EventEmitter(this.session)); + sessionEmitter.on('script.realmDestroyed', info => { + if (info.realm !== this.id) { + return; + } + this.dispose('Realm already destroyed.'); + }); + } + + // keep-sorted start block=yes + get disposed(): boolean { + return this.#reason !== undefined; + } + protected abstract get session(): Session; + protected get target(): Bidi.Script.Target { + return {realm: this.id}; + } + // keep-sorted end + + @inertIfDisposed + protected dispose(reason?: string): void { + this.#reason = reason; + this[disposeSymbol](); + } + + @throwIfDisposed(realm => { + // SAFETY: Disposal implies this exists. + return realm.#reason!; + }) + async disown(handles: string[]): Promise { + await this.session.send('script.disown', { + target: this.target, + handles, + }); + } + + @throwIfDisposed(realm => { + // SAFETY: Disposal implies this exists. + return realm.#reason!; + }) + async callFunction( + functionDeclaration: string, + awaitPromise: boolean, + options: CallFunctionOptions = {} + ): Promise { + const {result} = await this.session.send('script.callFunction', { + functionDeclaration, + awaitPromise, + target: this.target, + ...options, + }); + return result; + } + + @throwIfDisposed(realm => { + // SAFETY: Disposal implies this exists. + return realm.#reason!; + }) + async evaluate( + expression: string, + awaitPromise: boolean, + options: EvaluateOptions = {} + ): Promise { + const {result} = await this.session.send('script.evaluate', { + expression, + awaitPromise, + target: this.target, + ...options, + }); + return result; + } + + [disposeSymbol](): void { + this.#reason ??= + 'Realm already destroyed, probably because all associated browsing contexts closed.'; + this.emit('destroyed', {reason: this.#reason}); + + this.disposables.dispose(); + super[disposeSymbol](); + } +} + +/** + * @internal + */ +export class WindowRealm extends Realm { + static from(context: BrowsingContext, sandbox?: string): WindowRealm { + const realm = new WindowRealm(context, sandbox); + realm.initialize(); + return realm; + } + + // keep-sorted start + readonly browsingContext: BrowsingContext; + readonly sandbox?: string; + // keep-sorted end + + readonly #workers: { + dedicated: Map; + shared: Map; + } = { + dedicated: new Map(), + shared: new Map(), + }; + + private constructor(context: BrowsingContext, sandbox?: string) { + super('', ''); + // keep-sorted start + this.browsingContext = context; + this.sandbox = sandbox; + // keep-sorted end + } + + override initialize(): void { + super.initialize(); + + const sessionEmitter = this.disposables.use(new EventEmitter(this.session)); + sessionEmitter.on('script.realmCreated', info => { + if (info.type !== 'window') { + return; + } + (this as any).id = info.realm; + (this as any).origin = info.origin; + }); + sessionEmitter.on('script.realmCreated', info => { + if (info.type !== 'dedicated-worker') { + return; + } + if (!info.owners.includes(this.id)) { + return; + } + + const realm = DedicatedWorkerRealm.from(this, info.realm, info.origin); + this.#workers.dedicated.set(realm.id, realm); + + const realmEmitter = this.disposables.use(new EventEmitter(realm)); + realmEmitter.once('destroyed', () => { + realmEmitter.removeAllListeners(); + this.#workers.dedicated.delete(realm.id); + }); + + this.emit('worker', realm); + }); + + this.browsingContext.userContext.browser.on('sharedworker', ({realm}) => { + if (!realm.owners.has(this)) { + return; + } + + this.#workers.shared.set(realm.id, realm); + + const realmEmitter = this.disposables.use(new EventEmitter(realm)); + realmEmitter.once('destroyed', () => { + realmEmitter.removeAllListeners(); + this.#workers.shared.delete(realm.id); + }); + + this.emit('sharedworker', realm); + }); + } + + override get session(): Session { + return this.browsingContext.userContext.browser.session; + } + + override get target(): Bidi.Script.Target { + return {context: this.browsingContext.id, sandbox: this.sandbox}; + } +} + +/** + * @internal + */ +export type DedicatedWorkerOwnerRealm = + | DedicatedWorkerRealm + | SharedWorkerRealm + | WindowRealm; + +/** + * @internal + */ +export class DedicatedWorkerRealm extends Realm { + static from( + owner: DedicatedWorkerOwnerRealm, + id: string, + origin: string + ): DedicatedWorkerRealm { + const realm = new DedicatedWorkerRealm(owner, id, origin); + realm.initialize(); + return realm; + } + + // keep-sorted start + readonly #workers = new Map(); + readonly owners: Set; + // keep-sorted end + + private constructor( + owner: DedicatedWorkerOwnerRealm, + id: string, + origin: string + ) { + super(id, origin); + this.owners = new Set([owner]); + } + + override initialize(): void { + super.initialize(); + + const sessionEmitter = this.disposables.use(new EventEmitter(this.session)); + sessionEmitter.on('script.realmCreated', info => { + if (info.type !== 'dedicated-worker') { + return; + } + if (!info.owners.includes(this.id)) { + return; + } + + const realm = DedicatedWorkerRealm.from(this, info.realm, info.origin); + this.#workers.set(realm.id, realm); + + const realmEmitter = this.disposables.use(new EventEmitter(realm)); + realmEmitter.once('destroyed', () => { + this.#workers.delete(realm.id); + }); + + this.emit('worker', realm); + }); + } + + override get session(): Session { + // SAFETY: At least one owner will exist. + return this.owners.values().next().value.session; + } +} + +/** + * @internal + */ +export class SharedWorkerRealm extends Realm { + static from( + owners: [WindowRealm, ...WindowRealm[]], + id: string, + origin: string + ): SharedWorkerRealm { + const realm = new SharedWorkerRealm(owners, id, origin); + realm.initialize(); + return realm; + } + + // keep-sorted start + readonly #workers = new Map(); + readonly owners: Set; + // keep-sorted end + + private constructor( + owners: [WindowRealm, ...WindowRealm[]], + id: string, + origin: string + ) { + super(id, origin); + this.owners = new Set(owners); + } + + override initialize(): void { + super.initialize(); + + const sessionEmitter = this.disposables.use(new EventEmitter(this.session)); + sessionEmitter.on('script.realmCreated', info => { + if (info.type !== 'dedicated-worker') { + return; + } + if (!info.owners.includes(this.id)) { + return; + } + + const realm = DedicatedWorkerRealm.from(this, info.realm, info.origin); + this.#workers.set(realm.id, realm); + + const realmEmitter = this.disposables.use(new EventEmitter(realm)); + realmEmitter.once('destroyed', () => { + this.#workers.delete(realm.id); + }); + + this.emit('worker', realm); + }); + } + + override get session(): Session { + // SAFETY: At least one owner will exist. + return this.owners.values().next().value.session; + } +} diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/core/Request.ts b/Scripts/node_modules/puppeteer-core/src/bidi/core/Request.ts new file mode 100644 index 00000000..2a445f7d --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/src/bidi/core/Request.ts @@ -0,0 +1,148 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; + +import {EventEmitter} from '../../common/EventEmitter.js'; +import {inertIfDisposed} from '../../util/decorators.js'; +import {DisposableStack, disposeSymbol} from '../../util/disposable.js'; + +import type {BrowsingContext} from './BrowsingContext.js'; + +/** + * @internal + */ +export class Request extends EventEmitter<{ + /** Emitted when the request is redirected. */ + redirect: Request; + /** Emitted when the request succeeds. */ + success: Bidi.Network.ResponseData; + /** Emitted when the request fails. */ + error: string; +}> { + static from( + browsingContext: BrowsingContext, + event: Bidi.Network.BeforeRequestSentParameters + ): Request { + const request = new Request(browsingContext, event); + request.#initialize(); + return request; + } + + // keep-sorted start + #error?: string; + #redirect?: Request; + #response?: Bidi.Network.ResponseData; + readonly #browsingContext: BrowsingContext; + readonly #disposables = new DisposableStack(); + readonly #event: Bidi.Network.BeforeRequestSentParameters; + // keep-sorted end + + private constructor( + browsingContext: BrowsingContext, + event: Bidi.Network.BeforeRequestSentParameters + ) { + super(); + // keep-sorted start + this.#browsingContext = browsingContext; + this.#event = event; + // keep-sorted end + } + + #initialize() { + const browsingContextEmitter = this.#disposables.use( + new EventEmitter(this.#browsingContext) + ); + browsingContextEmitter.once('closed', ({reason}) => { + this.#error = reason; + this.emit('error', this.#error); + this.dispose(); + }); + + const sessionEmitter = this.#disposables.use( + new EventEmitter(this.#session) + ); + sessionEmitter.on('network.beforeRequestSent', event => { + if (event.context !== this.#browsingContext.id) { + return; + } + if (event.request.request !== this.id) { + return; + } + this.#redirect = Request.from(this.#browsingContext, event); + this.emit('redirect', this.#redirect); + this.dispose(); + }); + sessionEmitter.on('network.fetchError', event => { + if (event.context !== this.#browsingContext.id) { + return; + } + if (event.request.request !== this.id) { + return; + } + this.#error = event.errorText; + this.emit('error', this.#error); + this.dispose(); + }); + sessionEmitter.on('network.responseCompleted', event => { + if (event.context !== this.#browsingContext.id) { + return; + } + if (event.request.request !== this.id) { + return; + } + this.#response = event.response; + this.emit('success', this.#response); + this.dispose(); + }); + } + + // keep-sorted start block=yes + get #session() { + return this.#browsingContext.userContext.browser.session; + } + get disposed(): boolean { + return this.#disposables.disposed; + } + get error(): string | undefined { + return this.#error; + } + get headers(): Bidi.Network.Header[] { + return this.#event.request.headers; + } + get id(): string { + return this.#event.request.request; + } + get initiator(): Bidi.Network.Initiator { + return this.#event.initiator; + } + get method(): string { + return this.#event.request.method; + } + get navigation(): string | undefined { + return this.#event.navigation ?? undefined; + } + get redirect(): Request | undefined { + return this.redirect; + } + get response(): Bidi.Network.ResponseData | undefined { + return this.#response; + } + get url(): string { + return this.#event.request.url; + } + // keep-sorted end + + @inertIfDisposed + private dispose(): void { + this[disposeSymbol](); + } + + [disposeSymbol](): void { + this.#disposables.dispose(); + super[disposeSymbol](); + } +} diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/core/Session.ts b/Scripts/node_modules/puppeteer-core/src/bidi/core/Session.ts new file mode 100644 index 00000000..b6e28061 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/src/bidi/core/Session.ts @@ -0,0 +1,180 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; + +import {EventEmitter} from '../../common/EventEmitter.js'; +import {debugError} from '../../common/util.js'; +import {inertIfDisposed, throwIfDisposed} from '../../util/decorators.js'; +import {DisposableStack, disposeSymbol} from '../../util/disposable.js'; + +import {Browser} from './Browser.js'; +import type {BidiEvents, Commands, Connection} from './Connection.js'; + +// TODO: Once Chrome supports session.status properly, uncomment this block. +// const MAX_RETRIES = 5; + +/** + * @internal + */ +export class Session + extends EventEmitter + implements Connection +{ + static async from( + connection: Connection, + capabilities: Bidi.Session.CapabilitiesRequest + ): Promise { + // Wait until the session is ready. + // + // TODO: Once Chrome supports session.status properly, uncomment this block + // and remove `getBiDiConnection` in BrowserConnector. + + // let status = {message: '', ready: false}; + // for (let i = 0; i < MAX_RETRIES; ++i) { + // status = (await connection.send('session.status', {})).result; + // if (status.ready) { + // break; + // } + // // Backoff a little bit each time. + // await new Promise(resolve => { + // return setTimeout(resolve, (1 << i) * 100); + // }); + // } + // if (!status.ready) { + // throw new Error(status.message); + // } + + let result; + try { + result = ( + await connection.send('session.new', { + capabilities, + }) + ).result; + } catch (err) { + // Chrome does not support session.new. + debugError(err); + result = { + sessionId: '', + capabilities: { + acceptInsecureCerts: false, + browserName: '', + browserVersion: '', + platformName: '', + setWindowRect: false, + webSocketUrl: '', + }, + }; + } + + const session = new Session(connection, result); + await session.#initialize(); + return session; + } + + // keep-sorted start + #reason: string | undefined; + readonly #disposables = new DisposableStack(); + readonly #info: Bidi.Session.NewResult; + readonly browser!: Browser; + readonly connection: Connection; + // keep-sorted end + + private constructor(connection: Connection, info: Bidi.Session.NewResult) { + super(); + // keep-sorted start + this.#info = info; + this.connection = connection; + // keep-sorted end + } + + async #initialize(): Promise { + this.connection.pipeTo(this); + + // SAFETY: We use `any` to allow assignment of the readonly property. + (this as any).browser = await Browser.from(this); + + const browserEmitter = this.#disposables.use(this.browser); + browserEmitter.once('closed', ({reason}) => { + this.dispose(reason); + }); + } + + // keep-sorted start block=yes + get capabilities(): Bidi.Session.NewResult['capabilities'] { + return this.#info.capabilities; + } + get disposed(): boolean { + return this.ended; + } + get ended(): boolean { + return this.#reason !== undefined; + } + get id(): string { + return this.#info.sessionId; + } + // keep-sorted end + + @inertIfDisposed + private dispose(reason?: string): void { + this.#reason = reason; + this[disposeSymbol](); + } + + pipeTo(emitter: EventEmitter): void { + this.connection.pipeTo(emitter); + } + + /** + * Currently, there is a 1:1 relationship between the session and the + * session. In the future, we might support multiple sessions and in that + * case we always needs to make sure that the session for the right session + * object is used, so we implement this method here, although it's not defined + * in the spec. + */ + @throwIfDisposed(session => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return session.#reason!; + }) + async send( + method: T, + params: Commands[T]['params'] + ): Promise<{result: Commands[T]['returnType']}> { + return await this.connection.send(method, params); + } + + @throwIfDisposed(session => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return session.#reason!; + }) + async subscribe(events: string[]): Promise { + await this.send('session.subscribe', { + events, + }); + } + + @throwIfDisposed(session => { + // SAFETY: By definition of `disposed`, `#reason` is defined. + return session.#reason!; + }) + async end(): Promise { + try { + await this.send('session.end', {}); + } finally { + this.dispose(`Session already ended.`); + } + } + + [disposeSymbol](): void { + this.#reason ??= + 'Session already destroyed, probably because the connection broke.'; + this.emit('ended', {reason: this.#reason}); + + this.#disposables.dispose(); + super[disposeSymbol](); + } +} diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/core/UserContext.ts b/Scripts/node_modules/puppeteer-core/src/bidi/core/UserContext.ts new file mode 100644 index 00000000..7617d771 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/src/bidi/core/UserContext.ts @@ -0,0 +1,185 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; + +import {EventEmitter} from '../../common/EventEmitter.js'; +import {assert} from '../../util/assert.js'; +import {inertIfDisposed, throwIfDisposed} from '../../util/decorators.js'; +import {DisposableStack, disposeSymbol} from '../../util/disposable.js'; + +import type {Browser} from './Browser.js'; +import {BrowsingContext} from './BrowsingContext.js'; + +/** + * @internal + */ +export type CreateBrowsingContextOptions = Omit< + Bidi.BrowsingContext.CreateParameters, + 'type' | 'referenceContext' +> & { + referenceContext?: BrowsingContext; +}; + +/** + * @internal + */ +export class UserContext extends EventEmitter<{ + /** + * Emitted when a new browsing context is created. + */ + browsingcontext: { + /** The new browsing context. */ + browsingContext: BrowsingContext; + }; + /** + * Emitted when the user context is closed. + */ + closed: { + /** The reason the user context was closed. */ + reason: string; + }; +}> { + static DEFAULT = 'default'; + + static create(browser: Browser, id: string): UserContext { + const context = new UserContext(browser, id); + context.#initialize(); + return context; + } + + // keep-sorted start + #reason?: string; + // Note these are only top-level contexts. + readonly #browsingContexts = new Map(); + readonly #disposables = new DisposableStack(); + readonly #id: string; + readonly browser: Browser; + // keep-sorted end + + private constructor(browser: Browser, id: string) { + super(); + // keep-sorted start + this.#id = id; + this.browser = browser; + // keep-sorted end + } + + #initialize() { + const browserEmitter = this.#disposables.use( + new EventEmitter(this.browser) + ); + browserEmitter.once('closed', ({reason}) => { + this.dispose(`User context already closed: ${reason}`); + }); + + const sessionEmitter = this.#disposables.use( + new EventEmitter(this.#session) + ); + sessionEmitter.on('browsingContext.contextCreated', info => { + if (info.parent) { + return; + } + + if (info.userContext !== this.#id) { + return; + } + + const browsingContext = BrowsingContext.from( + this, + undefined, + info.context, + info.url + ); + this.#browsingContexts.set(browsingContext.id, browsingContext); + + const browsingContextEmitter = this.#disposables.use( + new EventEmitter(browsingContext) + ); + browsingContextEmitter.on('closed', () => { + browsingContextEmitter.removeAllListeners(); + + this.#browsingContexts.delete(browsingContext.id); + }); + + this.emit('browsingcontext', {browsingContext}); + }); + } + + // keep-sorted start block=yes + get #session() { + return this.browser.session; + } + get browsingContexts(): Iterable { + return this.#browsingContexts.values(); + } + get closed(): boolean { + return this.#reason !== undefined; + } + get disposed(): boolean { + return this.closed; + } + get id(): string { + return this.#id; + } + // keep-sorted end + + @inertIfDisposed + private dispose(reason?: string): void { + this.#reason = reason; + this[disposeSymbol](); + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + async createBrowsingContext( + type: Bidi.BrowsingContext.CreateType, + options: CreateBrowsingContextOptions = {} + ): Promise { + const { + result: {context: contextId}, + } = await this.#session.send('browsingContext.create', { + type, + ...options, + referenceContext: options.referenceContext?.id, + userContext: this.#id, + }); + + const browsingContext = this.#browsingContexts.get(contextId); + assert( + browsingContext, + 'The WebDriver BiDi implementation is failing to create a browsing context correctly.' + ); + + // We use an array to avoid the promise from being awaited. + return browsingContext; + } + + @throwIfDisposed(context => { + // SAFETY: Disposal implies this exists. + return context.#reason!; + }) + async remove(): Promise { + try { + await this.#session.send('browser.removeUserContext', { + userContext: this.#id, + }); + } finally { + this.dispose('User context already closed.'); + } + } + + [disposeSymbol](): void { + this.#reason ??= + 'User context already closed, probably because the browser disconnected/closed.'; + this.emit('closed', {reason: this.#reason}); + + this.#disposables.dispose(); + super[disposeSymbol](); + } +} diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/core/UserPrompt.ts b/Scripts/node_modules/puppeteer-core/src/bidi/core/UserPrompt.ts new file mode 100644 index 00000000..073233be --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/src/bidi/core/UserPrompt.ts @@ -0,0 +1,137 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + +import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; + +import {EventEmitter} from '../../common/EventEmitter.js'; +import {inertIfDisposed, throwIfDisposed} from '../../util/decorators.js'; +import {DisposableStack, disposeSymbol} from '../../util/disposable.js'; + +import type {BrowsingContext} from './BrowsingContext.js'; + +/** + * @internal + */ +export type HandleOptions = Omit< + Bidi.BrowsingContext.HandleUserPromptParameters, + 'context' +>; + +/** + * @internal + */ +export type UserPromptResult = Omit< + Bidi.BrowsingContext.UserPromptClosedParameters, + 'context' +>; + +/** + * @internal + */ +export class UserPrompt extends EventEmitter<{ + /** Emitted when the user prompt is handled. */ + handled: UserPromptResult; + /** Emitted when the user prompt is closed. */ + closed: { + /** The reason the user prompt was closed. */ + reason: string; + }; +}> { + static from( + browsingContext: BrowsingContext, + info: Bidi.BrowsingContext.UserPromptOpenedParameters + ): UserPrompt { + const userPrompt = new UserPrompt(browsingContext, info); + userPrompt.#initialize(); + return userPrompt; + } + + // keep-sorted start + #reason?: string; + #result?: UserPromptResult; + readonly #disposables = new DisposableStack(); + readonly browsingContext: BrowsingContext; + readonly info: Bidi.BrowsingContext.UserPromptOpenedParameters; + // keep-sorted end + + private constructor( + context: BrowsingContext, + info: Bidi.BrowsingContext.UserPromptOpenedParameters + ) { + super(); + // keep-sorted start + this.browsingContext = context; + this.info = info; + // keep-sorted end + } + + #initialize() { + const browserContextEmitter = this.#disposables.use( + new EventEmitter(this.browsingContext) + ); + browserContextEmitter.once('closed', ({reason}) => { + this.dispose(`User prompt already closed: ${reason}`); + }); + + const sessionEmitter = this.#disposables.use( + new EventEmitter(this.#session) + ); + sessionEmitter.on('browsingContext.userPromptClosed', parameters => { + if (parameters.context !== this.browsingContext.id) { + return; + } + this.#result = parameters; + this.emit('handled', parameters); + this.dispose('User prompt already handled.'); + }); + } + + // keep-sorted start block=yes + get #session() { + return this.browsingContext.userContext.browser.session; + } + get closed(): boolean { + return this.#reason !== undefined; + } + get disposed(): boolean { + return this.closed; + } + get handled(): boolean { + return this.#result !== undefined; + } + get result(): UserPromptResult | undefined { + return this.#result; + } + // keep-sorted end + + @inertIfDisposed + private dispose(reason?: string): void { + this.#reason = reason; + this[disposeSymbol](); + } + + @throwIfDisposed(prompt => { + // SAFETY: Disposal implies this exists. + return prompt.#reason!; + }) + async handle(options: HandleOptions = {}): Promise { + await this.#session.send('browsingContext.handleUserPrompt', { + ...options, + context: this.info.context, + }); + // SAFETY: `handled` is triggered before the above promise resolved. + return this.#result!; + } + + [disposeSymbol](): void { + this.#reason ??= + 'User prompt already closed, probably because the associated browsing context was destroyed.'; + this.emit('closed', {reason: this.#reason}); + + this.#disposables.dispose(); + super[disposeSymbol](); + } +} diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/core/core.ts b/Scripts/node_modules/puppeteer-core/src/bidi/core/core.ts new file mode 100644 index 00000000..20328161 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/src/bidi/core/core.ts @@ -0,0 +1,15 @@ +/** + * @license + * Copyright 2024 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + +export * from './Browser.js'; +export * from './BrowsingContext.js'; +export * from './Connection.js'; +export * from './Navigation.js'; +export * from './Realm.js'; +export * from './Request.js'; +export * from './Session.js'; +export * from './UserContext.js'; +export * from './UserPrompt.js'; diff --git a/Scripts/node_modules/puppeteer-core/src/bidi/util.ts b/Scripts/node_modules/puppeteer-core/src/bidi/util.ts index c799f21d..41e88e26 100644 --- a/Scripts/node_modules/puppeteer-core/src/bidi/util.ts +++ b/Scripts/node_modules/puppeteer-core/src/bidi/util.ts @@ -26,7 +26,7 @@ export async function releaseReference( target: client.target, handles: [remoteReference.handle], }) - .catch((error: any) => { + .catch(error => { // Exceptions might happen in case of a page been navigated or closed. // Swallow these since they are harmless and we don't leak anything in this case. debugError(error); diff --git a/Scripts/node_modules/puppeteer-core/src/cdp/Browser.ts b/Scripts/node_modules/puppeteer-core/src/cdp/Browser.ts index ea7e8b82..7698acd1 100644 --- a/Scripts/node_modules/puppeteer-core/src/cdp/Browser.ts +++ b/Scripts/node_modules/puppeteer-core/src/cdp/Browser.ts @@ -8,6 +8,7 @@ import type {ChildProcess} from 'child_process'; import type {Protocol} from 'devtools-protocol'; +import type {DebugInfo} from '../api/Browser.js'; import { Browser as BrowserBase, BrowserEvent, @@ -417,6 +418,12 @@ export class CdpBrowser extends BrowserBase { #getVersion(): Promise { return this.#connection.send('Browser.getVersion'); } + + override get debugInfo(): DebugInfo { + return { + pendingProtocolErrors: this.#connection.getPendingProtocolErrors(), + }; + } } /** diff --git a/Scripts/node_modules/puppeteer-core/src/cdp/CDPSession.ts b/Scripts/node_modules/puppeteer-core/src/cdp/CDPSession.ts index 324d092a..fe5faa56 100644 --- a/Scripts/node_modules/puppeteer-core/src/cdp/CDPSession.ts +++ b/Scripts/node_modules/puppeteer-core/src/cdp/CDPSession.ts @@ -157,4 +157,11 @@ export class CdpCDPSession extends CDPSession { override id(): string { return this.#sessionId; } + + /** + * @internal + */ + getPendingProtocolErrors(): Error[] { + return this.#callbacks.getPendingProtocolErrors(); + } } diff --git a/Scripts/node_modules/puppeteer-core/src/cdp/ChromeTargetManager.ts b/Scripts/node_modules/puppeteer-core/src/cdp/ChromeTargetManager.ts index 7fd6cac5..e87d71ff 100644 --- a/Scripts/node_modules/puppeteer-core/src/cdp/ChromeTargetManager.ts +++ b/Scripts/node_modules/puppeteer-core/src/cdp/ChromeTargetManager.ts @@ -371,11 +371,7 @@ export class ChromeTargetManager this.#attachedTargetsBySessionId.set(session.id(), target); } - if (parentSession instanceof CDPSession) { - parentSession.emit(CDPSessionEvent.Ready, session); - } else { - parentSession.emit(CDPSessionEvent.Ready, session); - } + parentSession.emit(CDPSessionEvent.Ready, session); this.#targetsIdsForInit.delete(target._targetId); if (!isExistingTarget) { diff --git a/Scripts/node_modules/puppeteer-core/src/cdp/Connection.ts b/Scripts/node_modules/puppeteer-core/src/cdp/Connection.ts index 0a11cf4e..3c565341 100644 --- a/Scripts/node_modules/puppeteer-core/src/cdp/Connection.ts +++ b/Scripts/node_modules/puppeteer-core/src/cdp/Connection.ts @@ -251,6 +251,18 @@ export class Connection extends EventEmitter { ): Promise { return await this._createSession(targetInfo, false); } + + /** + * @internal + */ + getPendingProtocolErrors(): Error[] { + const result: Error[] = []; + result.push(...this.#callbacks.getPendingProtocolErrors()); + for (const session of this.#sessions.values()) { + result.push(...session.getPendingProtocolErrors()); + } + return result; + } } /** diff --git a/Scripts/node_modules/puppeteer-core/src/cdp/Dialog.ts b/Scripts/node_modules/puppeteer-core/src/cdp/Dialog.ts index 77ea8aa4..fe8fffbc 100644 --- a/Scripts/node_modules/puppeteer-core/src/cdp/Dialog.ts +++ b/Scripts/node_modules/puppeteer-core/src/cdp/Dialog.ts @@ -25,7 +25,7 @@ export class CdpDialog extends Dialog { this.#client = client; } - override async sendCommand(options: { + override async handle(options: { accept: boolean; text?: string; }): Promise { diff --git a/Scripts/node_modules/puppeteer-core/src/cdp/ExecutionContext.ts b/Scripts/node_modules/puppeteer-core/src/cdp/ExecutionContext.ts index 59fdd887..6efdf8ac 100644 --- a/Scripts/node_modules/puppeteer-core/src/cdp/ExecutionContext.ts +++ b/Scripts/node_modules/puppeteer-core/src/cdp/ExecutionContext.ts @@ -15,11 +15,9 @@ import type {EvaluateFunc, HandleFor} from '../common/types.js'; import { PuppeteerURL, SOURCE_URL_REGEX, - createEvaluationError, getSourcePuppeteerURLIfAvailable, getSourceUrlComment, isString, - valueFromRemoteObject, } from '../common/util.js'; import type PuppeteerUtil from '../injected/injected.js'; import {AsyncIterableUtil} from '../util/AsyncIterableUtil.js'; @@ -30,6 +28,7 @@ import {Binding} from './Binding.js'; import {CdpElementHandle} from './ElementHandle.js'; import type {IsolatedWorld} from './IsolatedWorld.js'; import {CdpJSHandle} from './JSHandle.js'; +import {createEvaluationError, valueFromRemoteObject} from './utils.js'; /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/src/cdp/FirefoxTargetManager.ts b/Scripts/node_modules/puppeteer-core/src/cdp/FirefoxTargetManager.ts index 631610cf..0ef09a00 100644 --- a/Scripts/node_modules/puppeteer-core/src/cdp/FirefoxTargetManager.ts +++ b/Scripts/node_modules/puppeteer-core/src/cdp/FirefoxTargetManager.ts @@ -63,11 +63,6 @@ export class FirefoxTargetManager * Tracks which sessions attach to which target. */ #availableTargetsBySessionId = new Map(); - /** - * If a target was filtered out by `targetFilterCallback`, we still receive - * events about it from CDP, but we don't forward them to the rest of Puppeteer. - */ - #ignoredTargets = new Set(); #targetFilterCallback: TargetFilterCallback | undefined; #targetFactory: TargetFactory; @@ -162,7 +157,6 @@ export class FirefoxTargetManager const target = this.#targetFactory(event.targetInfo, undefined); if (this.#targetFilterCallback && !this.#targetFilterCallback(target)) { - this.#ignoredTargets.add(event.targetInfo.targetId); this.#finishInitializationIfReady(event.targetInfo.targetId); return; } diff --git a/Scripts/node_modules/puppeteer-core/src/cdp/IsolatedWorld.ts b/Scripts/node_modules/puppeteer-core/src/cdp/IsolatedWorld.ts index c944d79d..5846ef36 100644 --- a/Scripts/node_modules/puppeteer-core/src/cdp/IsolatedWorld.ts +++ b/Scripts/node_modules/puppeteer-core/src/cdp/IsolatedWorld.ts @@ -11,11 +11,7 @@ import type {JSHandle} from '../api/JSHandle.js'; import {Realm} from '../api/Realm.js'; import type {TimeoutSettings} from '../common/TimeoutSettings.js'; import type {BindingPayload, EvaluateFunc, HandleFor} from '../common/types.js'; -import { - addPageBinding, - debugError, - withSourcePuppeteerURLIfNone, -} from '../common/util.js'; +import {debugError, withSourcePuppeteerURLIfNone} from '../common/util.js'; import {Deferred} from '../util/Deferred.js'; import {disposeSymbol} from '../util/disposable.js'; import {Mutex} from '../util/Mutex.js'; @@ -24,6 +20,7 @@ import type {Binding} from './Binding.js'; import {ExecutionContext, createCdpHandle} from './ExecutionContext.js'; import type {CdpFrame} from './Frame.js'; import type {MAIN_WORLD, PUPPETEER_WORLD} from './IsolatedWorlds.js'; +import {addPageBinding} from './utils.js'; import type {CdpWebWorker} from './WebWorker.js'; /** diff --git a/Scripts/node_modules/puppeteer-core/src/cdp/JSHandle.ts b/Scripts/node_modules/puppeteer-core/src/cdp/JSHandle.ts index 6cde1e42..bba5f96b 100644 --- a/Scripts/node_modules/puppeteer-core/src/cdp/JSHandle.ts +++ b/Scripts/node_modules/puppeteer-core/src/cdp/JSHandle.ts @@ -8,10 +8,11 @@ import type {Protocol} from 'devtools-protocol'; import type {CDPSession} from '../api/CDPSession.js'; import {JSHandle} from '../api/JSHandle.js'; -import {debugError, valueFromRemoteObject} from '../common/util.js'; +import {debugError} from '../common/util.js'; import type {CdpElementHandle} from './ElementHandle.js'; import type {IsolatedWorld} from './IsolatedWorld.js'; +import {valueFromRemoteObject} from './utils.js'; /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/src/cdp/Page.ts b/Scripts/node_modules/puppeteer-core/src/cdp/Page.ts index 5fc819a3..701a204a 100644 --- a/Scripts/node_modules/puppeteer-core/src/cdp/Page.ts +++ b/Scripts/node_modules/puppeteer-core/src/cdp/Page.ts @@ -38,17 +38,13 @@ import {NetworkManagerEvent} from '../common/NetworkManagerEvents.js'; import type {PDFOptions} from '../common/PDFOptions.js'; import type {BindingPayload, HandleFor} from '../common/types.js'; import { - createClientError, debugError, evaluationString, getReadableAsBuffer, getReadableFromProtocolStream, - NETWORK_IDLE_TIME, - pageBindingInitString, + parsePDFOptions, timeout, validateDialogType, - valueFromRemoteObject, - waitForHTTP, } from '../common/util.js'; import type {Viewport} from '../common/Viewport.js'; import {assert} from '../util/assert.js'; @@ -77,6 +73,11 @@ import type {CdpTarget} from './Target.js'; import type {TargetManager} from './TargetManager.js'; import {TargetManagerEvent} from './TargetManager.js'; import {Tracing} from './Tracing.js'; +import { + createClientError, + pageBindingInitString, + valueFromRemoteObject, +} from './utils.js'; import {CdpWebWorker} from './WebWorker.js'; /** @@ -907,54 +908,6 @@ export class CdpPage extends Page { return await this.target().createCDPSession(); } - override async waitForRequest( - urlOrPredicate: string | ((req: HTTPRequest) => boolean | Promise), - options: {timeout?: number} = {} - ): Promise { - const {timeout = this._timeoutSettings.timeout()} = options; - return await waitForHTTP( - this.#frameManager.networkManager, - NetworkManagerEvent.Request, - urlOrPredicate, - timeout, - this.#sessionCloseDeferred - ); - } - - override async waitForResponse( - urlOrPredicate: - | string - | ((res: HTTPResponse) => boolean | Promise), - options: {timeout?: number} = {} - ): Promise { - const {timeout = this._timeoutSettings.timeout()} = options; - return await waitForHTTP( - this.#frameManager.networkManager, - NetworkManagerEvent.Response, - urlOrPredicate, - timeout, - this.#sessionCloseDeferred - ); - } - - override async waitForNetworkIdle( - options: {idleTime?: number; timeout?: number} = {} - ): Promise { - const { - idleTime = NETWORK_IDLE_TIME, - timeout: ms = this._timeoutSettings.timeout(), - } = options; - - await firstValueFrom( - this._waitForNetworkIdle( - this.#frameManager.networkManager, - idleTime - ).pipe( - raceWith(timeout(ms), from(this.#sessionCloseDeferred.valueOrThrow())) - ) - ); - } - override async goBack( options: WaitForOptions = {} ): Promise { @@ -1134,6 +1087,7 @@ export class CdpPage extends Page { } override async createPDFStream(options: PDFOptions = {}): Promise { + const {timeout: ms = this._timeoutSettings.timeout()} = options; const { landscape, displayHeaderFooter, @@ -1147,9 +1101,9 @@ export class CdpPage extends Page { pageRanges, preferCSSPageSize, omitBackground, - timeout: ms, tagged: generateTaggedPDF, - } = this._getPDFOptions(options); + outline: generateDocumentOutline, + } = parsePDFOptions(options); if (omitBackground) { await this.#emulationManager.setTransparentBackgroundColor(); @@ -1174,6 +1128,7 @@ export class CdpPage extends Page { pageRanges, preferCSSPageSize, generateTaggedPDF, + generateDocumentOutline, } ); diff --git a/Scripts/node_modules/puppeteer-core/src/cdp/Target.ts b/Scripts/node_modules/puppeteer-core/src/cdp/Target.ts index 8509c098..b3e9ea83 100644 --- a/Scripts/node_modules/puppeteer-core/src/cdp/Target.ts +++ b/Scripts/node_modules/puppeteer-core/src/cdp/Target.ts @@ -146,14 +146,14 @@ export class CdpTarget extends Target { override browser(): Browser { if (!this.#browserContext) { - throw new Error('browserContext is not initialised'); + throw new Error('browserContext is not initialized'); } return this.#browserContext.browser(); } override browserContext(): BrowserContext { if (!this.#browserContext) { - throw new Error('browserContext is not initialised'); + throw new Error('browserContext is not initialized'); } return this.#browserContext; } diff --git a/Scripts/node_modules/puppeteer-core/src/cdp/cdp.ts b/Scripts/node_modules/puppeteer-core/src/cdp/cdp.ts index a39952cb..1533d63f 100644 --- a/Scripts/node_modules/puppeteer-core/src/cdp/cdp.ts +++ b/Scripts/node_modules/puppeteer-core/src/cdp/cdp.ts @@ -9,6 +9,7 @@ export * from './AriaQueryHandler.js'; export * from './Binding.js'; export * from './Browser.js'; export * from './BrowserConnector.js'; +export * from './cdp.js'; export * from './CDPSession.js'; export * from './ChromeTargetManager.js'; export * from './Connection.js'; @@ -37,5 +38,5 @@ export * from './PredefinedNetworkConditions.js'; export * from './Target.js'; export * from './TargetManager.js'; export * from './Tracing.js'; +export * from './utils.js'; export * from './WebWorker.js'; -export * from './cdp.js'; diff --git a/Scripts/node_modules/puppeteer-core/src/cdp/utils.ts b/Scripts/node_modules/puppeteer-core/src/cdp/utils.ts new file mode 100644 index 00000000..989a3cd6 --- /dev/null +++ b/Scripts/node_modules/puppeteer-core/src/cdp/utils.ts @@ -0,0 +1,232 @@ +/** + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + +import type {Protocol} from 'devtools-protocol'; + +import {PuppeteerURL, evaluationString} from '../common/util.js'; +import {assert} from '../util/assert.js'; + +/** + * @internal + */ +export function createEvaluationError( + details: Protocol.Runtime.ExceptionDetails +): unknown { + let name: string; + let message: string; + if (!details.exception) { + name = 'Error'; + message = details.text; + } else if ( + (details.exception.type !== 'object' || + details.exception.subtype !== 'error') && + !details.exception.objectId + ) { + return valueFromRemoteObject(details.exception); + } else { + const detail = getErrorDetails(details); + name = detail.name; + message = detail.message; + } + const messageHeight = message.split('\n').length; + const error = new Error(message); + error.name = name; + const stackLines = error.stack!.split('\n'); + const messageLines = stackLines.splice(0, messageHeight); + + // The first line is this function which we ignore. + stackLines.shift(); + if (details.stackTrace && stackLines.length < Error.stackTraceLimit) { + for (const frame of details.stackTrace.callFrames.reverse()) { + if ( + PuppeteerURL.isPuppeteerURL(frame.url) && + frame.url !== PuppeteerURL.INTERNAL_URL + ) { + const url = PuppeteerURL.parse(frame.url); + stackLines.unshift( + ` at ${frame.functionName || url.functionName} (${ + url.functionName + } at ${url.siteString}, :${frame.lineNumber}:${ + frame.columnNumber + })` + ); + } else { + stackLines.push( + ` at ${frame.functionName || ''} (${frame.url}:${ + frame.lineNumber + }:${frame.columnNumber})` + ); + } + if (stackLines.length >= Error.stackTraceLimit) { + break; + } + } + } + + error.stack = [...messageLines, ...stackLines].join('\n'); + return error; +} + +const getErrorDetails = (details: Protocol.Runtime.ExceptionDetails) => { + let name = ''; + let message: string; + const lines = details.exception?.description?.split('\n at ') ?? []; + const size = Math.min( + details.stackTrace?.callFrames.length ?? 0, + lines.length - 1 + ); + lines.splice(-size, size); + if (details.exception?.className) { + name = details.exception.className; + } + message = lines.join('\n'); + if (name && message.startsWith(`${name}: `)) { + message = message.slice(name.length + 2); + } + return {message, name}; +}; + +/** + * @internal + */ +export function createClientError( + details: Protocol.Runtime.ExceptionDetails +): Error { + let name: string; + let message: string; + if (!details.exception) { + name = 'Error'; + message = details.text; + } else if ( + (details.exception.type !== 'object' || + details.exception.subtype !== 'error') && + !details.exception.objectId + ) { + return valueFromRemoteObject(details.exception); + } else { + const detail = getErrorDetails(details); + name = detail.name; + message = detail.message; + } + const error = new Error(message); + error.name = name; + + const messageHeight = error.message.split('\n').length; + const messageLines = error.stack!.split('\n').splice(0, messageHeight); + + const stackLines = []; + if (details.stackTrace) { + for (const frame of details.stackTrace.callFrames) { + // Note we need to add `1` because the values are 0-indexed. + stackLines.push( + ` at ${frame.functionName || ''} (${frame.url}:${ + frame.lineNumber + 1 + }:${frame.columnNumber + 1})` + ); + if (stackLines.length >= Error.stackTraceLimit) { + break; + } + } + } + + error.stack = [...messageLines, ...stackLines].join('\n'); + return error; +} + +/** + * @internal + */ +export function valueFromRemoteObject( + remoteObject: Protocol.Runtime.RemoteObject +): any { + assert(!remoteObject.objectId, 'Cannot extract value when objectId is given'); + if (remoteObject.unserializableValue) { + if (remoteObject.type === 'bigint') { + return BigInt(remoteObject.unserializableValue.replace('n', '')); + } + switch (remoteObject.unserializableValue) { + case '-0': + return -0; + case 'NaN': + return NaN; + case 'Infinity': + return Infinity; + case '-Infinity': + return -Infinity; + default: + throw new Error( + 'Unsupported unserializable value: ' + + remoteObject.unserializableValue + ); + } + } + return remoteObject.value; +} + +/** + * @internal + */ +export function addPageBinding(type: string, name: string): void { + // This is the CDP binding. + // @ts-expect-error: In a different context. + const callCdp = globalThis[name]; + + // Depending on the frame loading state either Runtime.evaluate or + // Page.addScriptToEvaluateOnNewDocument might succeed. Let's check that we + // don't re-wrap Puppeteer's binding. + if (callCdp[Symbol.toStringTag] === 'PuppeteerBinding') { + return; + } + + // We replace the CDP binding with a Puppeteer binding. + Object.assign(globalThis, { + [name](...args: unknown[]): Promise { + // This is the Puppeteer binding. + // @ts-expect-error: In a different context. + const callPuppeteer = globalThis[name]; + callPuppeteer.args ??= new Map(); + callPuppeteer.callbacks ??= new Map(); + + const seq = (callPuppeteer.lastSeq ?? 0) + 1; + callPuppeteer.lastSeq = seq; + callPuppeteer.args.set(seq, args); + + callCdp( + JSON.stringify({ + type, + name, + seq, + args, + isTrivial: !args.some(value => { + return value instanceof Node; + }), + }) + ); + + return new Promise((resolve, reject) => { + callPuppeteer.callbacks.set(seq, { + resolve(value: unknown) { + callPuppeteer.args.delete(seq); + resolve(value); + }, + reject(value?: unknown) { + callPuppeteer.args.delete(seq); + reject(value); + }, + }); + }); + }, + }); + // @ts-expect-error: In a different context. + globalThis[name][Symbol.toStringTag] = 'PuppeteerBinding'; +} + +/** + * @internal + */ +export function pageBindingInitString(type: string, name: string): string { + return evaluationString(addPageBinding, type, name); +} diff --git a/Scripts/node_modules/puppeteer-core/src/common/CallbackRegistry.ts b/Scripts/node_modules/puppeteer-core/src/common/CallbackRegistry.ts index fc8b18a5..ea9f3d5a 100644 --- a/Scripts/node_modules/puppeteer-core/src/common/CallbackRegistry.ts +++ b/Scripts/node_modules/puppeteer-core/src/common/CallbackRegistry.ts @@ -94,6 +94,19 @@ export class CallbackRegistry { } this.#callbacks.clear(); } + + /** + * @internal + */ + getPendingProtocolErrors(): Error[] { + const result: Error[] = []; + for (const callback of this.#callbacks.values()) { + result.push( + new Error(`${callback.label} timed out. Trace: ${callback.error.stack}`) + ); + } + return result; + } } /** * @internal diff --git a/Scripts/node_modules/puppeteer-core/src/common/Configuration.ts b/Scripts/node_modules/puppeteer-core/src/common/Configuration.ts index 9a677aa0..7b55ef39 100644 --- a/Scripts/node_modules/puppeteer-core/src/common/Configuration.ts +++ b/Scripts/node_modules/puppeteer-core/src/common/Configuration.ts @@ -32,7 +32,13 @@ export interface Configuration { * See {@link PuppeteerNode.launch | puppeteer.launch} on how executable path * is inferred. * - * @defaultValue A compatible-revision of the browser. + * Use a specific browser version (e.g., 119.0.6045.105). If you use an alias + * such `stable` or `canary` it will only work during the installation of + * Puppeteer and it will fail when launching the browser. + * + * @example 119.0.6045.105 + * @defaultValue The pinned browser version supported by the current Puppeteer + * version. */ browserRevision?: string; /** @@ -95,6 +101,18 @@ export interface Configuration { * Can be overridden by `PUPPETEER_SKIP_DOWNLOAD`. */ skipDownload?: boolean; + /** + * Tells Puppeteer to not Chrome download during installation. + * + * Can be overridden by `PUPPETEER_SKIP_CHROME_DOWNLOAD`. + */ + skipChromeDownload?: boolean; + /** + * Tells Puppeteer to not chrome-headless-shell download during installation. + * + * Can be overridden by `PUPPETEER_SKIP_CHROME_HEADLESSS_HELL_DOWNLOAD`. + */ + skipChromeHeadlessShellDownload?: boolean; /** * Tells Puppeteer to log at the given level. * diff --git a/Scripts/node_modules/puppeteer-core/src/common/EventEmitter.ts b/Scripts/node_modules/puppeteer-core/src/common/EventEmitter.ts index 9a39cc0a..4a8bcb80 100644 --- a/Scripts/node_modules/puppeteer-core/src/common/EventEmitter.ts +++ b/Scripts/node_modules/puppeteer-core/src/common/EventEmitter.ts @@ -4,10 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import mitt, { - type Emitter, - type EventHandlerMap, -} from '../../third_party/mitt/mitt.js'; +import mitt, {type Emitter} from '../../third_party/mitt/mitt.js'; import {disposeSymbol} from '../util/disposable.js'; /** @@ -74,14 +71,20 @@ export type EventsWithWildcard> = export class EventEmitter> implements CommonEventEmitter> { - #emitter: Emitter; - #handlers: EventHandlerMap = new Map(); + #emitter: Emitter> | EventEmitter; + #handlers = new Map>>(); /** + * If you pass an emitter, the returned emitter will wrap the passed emitter. + * * @internal */ - constructor() { - this.#emitter = mitt(this.#handlers); + constructor( + emitter: Emitter> | EventEmitter = mitt( + new Map() + ) + ) { + this.#emitter = emitter; } /** @@ -94,6 +97,13 @@ export class EventEmitter> type: Key, handler: Handler[Key]> ): this { + const handlers = this.#handlers.get(type); + if (handlers === undefined) { + this.#handlers.set(type, [handler]); + } else { + handlers.push(handler); + } + this.#emitter.on(type, handler); return this; } @@ -108,33 +118,18 @@ export class EventEmitter> type: Key, handler?: Handler[Key]> ): this { - this.#emitter.off(type, handler); - return this; - } - - /** - * Remove an event listener. - * - * @deprecated please use {@link EventEmitter.off} instead. - */ - removeListener>( - type: Key, - handler: Handler[Key]> - ): this { - this.off(type, handler); - return this; - } - - /** - * Add an event listener. - * - * @deprecated please use {@link EventEmitter.on} instead. - */ - addListener>( - type: Key, - handler: Handler[Key]> - ): this { - this.on(type, handler); + const handlers = this.#handlers.get(type) ?? []; + if (handler === undefined) { + for (const handler of handlers) { + this.#emitter.off(type, handler); + } + this.#handlers.delete(type); + return this; + } + const index = handlers.lastIndexOf(handler); + if (index > -1) { + this.#emitter.off(type, ...handlers.splice(index, 1)); + } return this; } @@ -153,6 +148,30 @@ export class EventEmitter> return this.listenerCount(type) > 0; } + /** + * Remove an event listener. + * + * @deprecated please use {@link EventEmitter.off} instead. + */ + removeListener>( + type: Key, + handler: Handler[Key]> + ): this { + return this.off(type, handler); + } + + /** + * Add an event listener. + * + * @deprecated please use {@link EventEmitter.on} instead. + */ + addListener>( + type: Key, + handler: Handler[Key]> + ): this { + return this.on(type, handler); + } + /** * Like `on` but the listener will only be fired once and then it will be removed. * @param type - the event you'd like to listen to @@ -189,13 +208,24 @@ export class EventEmitter> * @returns `this` to enable you to chain method calls. */ removeAllListeners(type?: keyof EventsWithWildcard): this { - if (type === undefined || type === '*') { - this.#handlers.clear(); - } else { - this.#handlers.delete(type); + if (type !== undefined) { + return this.off(type); } + this[disposeSymbol](); return this; } + + /** + * @internal + */ + [disposeSymbol](): void { + for (const [type, handlers] of this.#handlers) { + for (const handler of handlers) { + this.#emitter.off(type, handler); + } + } + this.#handlers.clear(); + } } /** diff --git a/Scripts/node_modules/puppeteer-core/src/common/PDFOptions.ts b/Scripts/node_modules/puppeteer-core/src/common/PDFOptions.ts index 33d4a494..0271faf7 100644 --- a/Scripts/node_modules/puppeteer-core/src/common/PDFOptions.ts +++ b/Scripts/node_modules/puppeteer-core/src/common/PDFOptions.ts @@ -162,6 +162,18 @@ export interface PDFOptions { * @experimental */ tagged?: boolean; + /** + * Generate document outline. + * + * @remarks + * If this is enabled the PDF will also be tagged (accessible) + * Currently only works in old Headless (headless = true) + * crbug/840455#c47 + * + * @defaultValue `false` + * @experimental + */ + outline?: boolean; /** * Timeout in milliseconds. Pass `0` to disable timeout. * @defaultValue `30_000` @@ -195,7 +207,7 @@ export interface ParsedPDFOptionsInterface { * @internal */ export type ParsedPDFOptions = Required< - Omit & ParsedPDFOptionsInterface + Omit & ParsedPDFOptionsInterface >; /** diff --git a/Scripts/node_modules/puppeteer-core/src/common/bidi/Browser.ts b/Scripts/node_modules/puppeteer-core/src/common/bidi/Browser.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/Scripts/node_modules/puppeteer-core/src/common/types.ts b/Scripts/node_modules/puppeteer-core/src/common/types.ts index 9dab58cf..3f2cf5d4 100644 --- a/Scripts/node_modules/puppeteer-core/src/common/types.ts +++ b/Scripts/node_modules/puppeteer-core/src/common/types.ts @@ -9,6 +9,11 @@ import type {JSHandle} from '../api/JSHandle.js'; import type {LazyArg} from './LazyArg.js'; +/** + * @public + */ +export type AwaitablePredicate = (value: T) => Awaitable; + /** * @public */ diff --git a/Scripts/node_modules/puppeteer-core/src/common/util.ts b/Scripts/node_modules/puppeteer-core/src/common/util.ts index 13395148..f8648d6d 100644 --- a/Scripts/node_modules/puppeteer-core/src/common/util.ts +++ b/Scripts/node_modules/puppeteer-core/src/common/util.ts @@ -7,29 +7,21 @@ import type FS from 'fs/promises'; import type {Readable} from 'stream'; -import type {Protocol} from 'devtools-protocol'; - -import { - map, - NEVER, - timer, - type Observable, - firstValueFrom, - fromEvent, - filterAsync, - from, - raceWith, -} from '../../third_party/rxjs/rxjs.js'; +import {map, NEVER, Observable, timer} from '../../third_party/rxjs/rxjs.js'; import type {CDPSession} from '../api/CDPSession.js'; import {isNode} from '../environment.js'; import {assert} from '../util/assert.js'; -import type {Deferred} from '../util/Deferred.js'; import {isErrorLike} from '../util/ErrorLike.js'; import {debug} from './Debug.js'; import {TimeoutError} from './Errors.js'; import type {EventEmitter, EventType} from './EventEmitter.js'; -import type {NetworkManagerEvents} from './NetworkManagerEvents.js'; +import type { + LowerCasePaperFormat, + ParsedPDFOptions, + PDFOptions, +} from './PDFOptions.js'; +import {paperFormats} from './PDFOptions.js'; /** * @internal @@ -41,133 +33,6 @@ export const debugError = debug('puppeteer:error'); */ export const DEFAULT_VIEWPORT = Object.freeze({width: 800, height: 600}); -/** - * @internal - */ -export function createEvaluationError( - details: Protocol.Runtime.ExceptionDetails -): unknown { - let name: string; - let message: string; - if (!details.exception) { - name = 'Error'; - message = details.text; - } else if ( - (details.exception.type !== 'object' || - details.exception.subtype !== 'error') && - !details.exception.objectId - ) { - return valueFromRemoteObject(details.exception); - } else { - const detail = getErrorDetails(details); - name = detail.name; - message = detail.message; - } - const messageHeight = message.split('\n').length; - const error = new Error(message); - error.name = name; - const stackLines = error.stack!.split('\n'); - const messageLines = stackLines.splice(0, messageHeight); - - // The first line is this function which we ignore. - stackLines.shift(); - if (details.stackTrace && stackLines.length < Error.stackTraceLimit) { - for (const frame of details.stackTrace.callFrames.reverse()) { - if ( - PuppeteerURL.isPuppeteerURL(frame.url) && - frame.url !== PuppeteerURL.INTERNAL_URL - ) { - const url = PuppeteerURL.parse(frame.url); - stackLines.unshift( - ` at ${frame.functionName || url.functionName} (${ - url.functionName - } at ${url.siteString}, :${frame.lineNumber}:${ - frame.columnNumber - })` - ); - } else { - stackLines.push( - ` at ${frame.functionName || ''} (${frame.url}:${ - frame.lineNumber - }:${frame.columnNumber})` - ); - } - if (stackLines.length >= Error.stackTraceLimit) { - break; - } - } - } - - error.stack = [...messageLines, ...stackLines].join('\n'); - return error; -} - -/** - * @internal - */ -export function createClientError( - details: Protocol.Runtime.ExceptionDetails -): Error { - let name: string; - let message: string; - if (!details.exception) { - name = 'Error'; - message = details.text; - } else if ( - (details.exception.type !== 'object' || - details.exception.subtype !== 'error') && - !details.exception.objectId - ) { - return valueFromRemoteObject(details.exception); - } else { - const detail = getErrorDetails(details); - name = detail.name; - message = detail.message; - } - const error = new Error(message); - error.name = name; - - const messageHeight = error.message.split('\n').length; - const messageLines = error.stack!.split('\n').splice(0, messageHeight); - - const stackLines = []; - if (details.stackTrace) { - for (const frame of details.stackTrace.callFrames) { - // Note we need to add `1` because the values are 0-indexed. - stackLines.push( - ` at ${frame.functionName || ''} (${frame.url}:${ - frame.lineNumber + 1 - }:${frame.columnNumber + 1})` - ); - if (stackLines.length >= Error.stackTraceLimit) { - break; - } - } - } - - error.stack = [...messageLines, ...stackLines].join('\n'); - return error; -} - -const getErrorDetails = (details: Protocol.Runtime.ExceptionDetails) => { - let name = ''; - let message: string; - const lines = details.exception?.description?.split('\n at ') ?? []; - const size = Math.min( - details.stackTrace?.callFrames.length ?? 0, - lines.length - 1 - ); - lines.splice(-size, size); - if (details.exception?.className) { - name = details.exception.className; - } - message = lines.join('\n'); - if (name && message.startsWith(`${name}: `)) { - message = message.slice(name.length + 2); - } - return {message, name}; -}; - /** * @internal */ @@ -260,36 +125,6 @@ export const getSourcePuppeteerURLIfAvailable = < return undefined; }; -/** - * @internal - */ -export function valueFromRemoteObject( - remoteObject: Protocol.Runtime.RemoteObject -): any { - assert(!remoteObject.objectId, 'Cannot extract value when objectId is given'); - if (remoteObject.unserializableValue) { - if (remoteObject.type === 'bigint') { - return BigInt(remoteObject.unserializableValue.replace('n', '')); - } - switch (remoteObject.unserializableValue) { - case '-0': - return -0; - case 'NaN': - return NaN; - case 'Infinity': - return Infinity; - case '-Infinity': - return -Infinity; - default: - throw new Error( - 'Unsupported unserializable value: ' + - remoteObject.unserializableValue - ); - } - } - return remoteObject.value; -} - /** * @internal */ @@ -347,71 +182,6 @@ export function evaluationString( return `(${fun})(${args.map(serializeArgument).join(',')})`; } -/** - * @internal - */ -export function addPageBinding(type: string, name: string): void { - // This is the CDP binding. - // @ts-expect-error: In a different context. - const callCdp = globalThis[name]; - - // Depending on the frame loading state either Runtime.evaluate or - // Page.addScriptToEvaluateOnNewDocument might succeed. Let's check that we - // don't re-wrap Puppeteer's binding. - if (callCdp[Symbol.toStringTag] === 'PuppeteerBinding') { - return; - } - - // We replace the CDP binding with a Puppeteer binding. - Object.assign(globalThis, { - [name](...args: unknown[]): Promise { - // This is the Puppeteer binding. - // @ts-expect-error: In a different context. - const callPuppeteer = globalThis[name]; - callPuppeteer.args ??= new Map(); - callPuppeteer.callbacks ??= new Map(); - - const seq = (callPuppeteer.lastSeq ?? 0) + 1; - callPuppeteer.lastSeq = seq; - callPuppeteer.args.set(seq, args); - - callCdp( - JSON.stringify({ - type, - name, - seq, - args, - isTrivial: !args.some(value => { - return value instanceof Node; - }), - }) - ); - - return new Promise((resolve, reject) => { - callPuppeteer.callbacks.set(seq, { - resolve(value: unknown) { - callPuppeteer.args.delete(seq); - resolve(value); - }, - reject(value?: unknown) { - callPuppeteer.args.delete(seq); - reject(value); - }, - }); - }); - }, - }); - // @ts-expect-error: In a different context. - globalThis[name][Symbol.toStringTag] = 'PuppeteerBinding'; -} - -/** - * @internal - */ -export function pageBindingInitString(type: string, name: string): string { - return evaluationString(addPageBinding, type, name); -} - /** * @internal */ @@ -507,25 +277,6 @@ export async function getReadableFromProtocolStream( }); } -/** - * @internal - */ -export function getPageContent(): string { - let content = ''; - for (const node of document.childNodes) { - switch (node) { - case document.documentElement: - content += document.documentElement.outerHTML; - break; - default: - content += new XMLSerializer().serializeToString(node); - break; - } - } - - return content; -} - /** * @internal */ @@ -579,33 +330,124 @@ export function getSourceUrlComment(url: string): string { /** * @internal */ -export async function waitForHTTP( - networkManager: EventEmitter, - eventName: EventType, - urlOrPredicate: string | ((res: T) => boolean | Promise), - /** Time after the function will timeout */ - ms: number, - cancelation: Deferred -): Promise { - return await firstValueFrom( - ( - fromEvent(networkManager, eventName as unknown as string) as Observable - ).pipe( - filterAsync(async http => { - if (isString(urlOrPredicate)) { - return urlOrPredicate === http.url(); - } - if (typeof urlOrPredicate === 'function') { - return !!(await urlOrPredicate(http)); - } - return false; - }), - raceWith(timeout(ms), from(cancelation.valueOrThrow())) - ) - ); +export const NETWORK_IDLE_TIME = 500; + +/** + * @internal + */ +export function parsePDFOptions( + options: PDFOptions = {}, + lengthUnit: 'in' | 'cm' = 'in' +): ParsedPDFOptions { + const defaults: Omit = { + scale: 1, + displayHeaderFooter: false, + headerTemplate: '', + footerTemplate: '', + printBackground: false, + landscape: false, + pageRanges: '', + preferCSSPageSize: false, + omitBackground: false, + tagged: false, + outline: false, + }; + + let width = 8.5; + let height = 11; + if (options.format) { + const format = + paperFormats[options.format.toLowerCase() as LowerCasePaperFormat]; + assert(format, 'Unknown paper format: ' + options.format); + width = format.width; + height = format.height; + } else { + width = convertPrintParameterToInches(options.width, lengthUnit) ?? width; + height = + convertPrintParameterToInches(options.height, lengthUnit) ?? height; + } + + const margin = { + top: convertPrintParameterToInches(options.margin?.top, lengthUnit) || 0, + left: convertPrintParameterToInches(options.margin?.left, lengthUnit) || 0, + bottom: + convertPrintParameterToInches(options.margin?.bottom, lengthUnit) || 0, + right: + convertPrintParameterToInches(options.margin?.right, lengthUnit) || 0, + }; + + // Quirk https://bugs.chromium.org/p/chromium/issues/detail?id=840455#c44 + if (options.outline) { + options.tagged = true; + } + + return { + ...defaults, + ...options, + width, + height, + margin, + }; } /** * @internal */ -export const NETWORK_IDLE_TIME = 500; +export const unitToPixels = { + px: 1, + in: 96, + cm: 37.8, + mm: 3.78, +}; + +function convertPrintParameterToInches( + parameter?: string | number, + lengthUnit: 'in' | 'cm' = 'in' +): number | undefined { + if (typeof parameter === 'undefined') { + return undefined; + } + let pixels; + if (isNumber(parameter)) { + // Treat numbers as pixel values to be aligned with phantom's paperSize. + pixels = parameter; + } else if (isString(parameter)) { + const text = parameter; + let unit = text.substring(text.length - 2).toLowerCase(); + let valueText = ''; + if (unit in unitToPixels) { + valueText = text.substring(0, text.length - 2); + } else { + // In case of unknown unit try to parse the whole parameter as number of pixels. + // This is consistent with phantom's paperSize behavior. + unit = 'px'; + valueText = text; + } + const value = Number(valueText); + assert(!isNaN(value), 'Failed to parse parameter value: ' + text); + pixels = value * unitToPixels[unit as keyof typeof unitToPixels]; + } else { + throw new Error( + 'page.pdf() Cannot handle parameter type: ' + typeof parameter + ); + } + return pixels / unitToPixels[lengthUnit]; +} + +/** + * @internal + */ +export function fromEmitterEvent< + Events extends Record, + Event extends keyof Events, +>(emitter: EventEmitter, eventName: Event): Observable { + return new Observable(subscriber => { + const listener = (event: Events[Event]) => { + subscriber.next(event); + }; + emitter.on(eventName, listener); + return () => { + emitter.off(eventName, listener); + }; + }); +} diff --git a/Scripts/node_modules/puppeteer-core/src/environment.ts b/Scripts/node_modules/puppeteer-core/src/environment.ts index 82875272..bf722724 100644 --- a/Scripts/node_modules/puppeteer-core/src/environment.ts +++ b/Scripts/node_modules/puppeteer-core/src/environment.ts @@ -8,12 +8,3 @@ * @internal */ export const isNode = !!(typeof process !== 'undefined' && process.version); - -/** - * @internal - */ -export const DEFERRED_PROMISE_DEBUG_TIMEOUT = - typeof process !== 'undefined' && - typeof process.env['PUPPETEER_DEFERRED_PROMISE_DEBUG_TIMEOUT'] !== 'undefined' - ? Number(process.env['PUPPETEER_DEFERRED_PROMISE_DEBUG_TIMEOUT']) - : -1; diff --git a/Scripts/node_modules/puppeteer-core/src/generated/injected.ts b/Scripts/node_modules/puppeteer-core/src/generated/injected.ts index 7f1b5319..1226375f 100644 --- a/Scripts/node_modules/puppeteer-core/src/generated/injected.ts +++ b/Scripts/node_modules/puppeteer-core/src/generated/injected.ts @@ -5,4 +5,4 @@ * * @internal */ -export const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{#e=!1;#t=!1;#n;#r=()=>{};#o=new Promise(e=>{this.#r=e});#s;#i;constructor(e){e&&e.timeout>0&&(this.#i=new S(e.message),this.#s=setTimeout(()=>{this.reject(this.#i)},e.timeout))}#l(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#l(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#l(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}async valueOrThrow(){if(await this.#o,this.#t)throw this.#n;return this.#n}static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}};var X=new Map,G=t=>{let e=X.get(t);return e||(e=new Function(`return ${t}`)(),X.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var E=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},P=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var W={};u(W,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)\\s*(?:(?\\W?=)\\s*(?.+?)\\s*(\\s(?[iIsS]))?\\s*)?\\]/gu,id:/#(?[-\\w\\P{ASCII}]+)/gu,class:/\\.(?[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?[-\\w\\P{ASCII}]+)(?:\\((?¶*)\\))?/gu,\"pseudo-class\":/:(?[-\\w\\P{ASCII}]+)(?:\\((?¶*)\\))?/gu,universal:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?\\xB6*)\",\"(?.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Ee=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Ee.observe(t,{childList:!0,characterData:!0,subtree:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Pe=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Pe.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var U={};u(U,{xpathQuerySelectorAll:()=>j});var j=function*(t,e,n=-1){let o=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),i=[],s;for(;(s=o.iterateNext())&&(i.push(s),!(n&&i.length===n)););for(let l=0;l\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*j(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},V=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...W,...Q,...$,...U,Deferred:f,createFunction:G,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:E,RAFPoller:P}),Re=ke;\n/**\n * @license\n * Copyright 2018 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2023 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2022 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2020 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n"; +export const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}#e=!1;#t=!1;#n;#r;#o=new Promise(e=>{this.#r=e});#s;#l;constructor(e){e&&e.timeout>0&&(this.#l=new S(e.message),this.#s=setTimeout(()=>{this.reject(this.#l)},e.timeout))}#a(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#a(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#a(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}#i;valueOrThrow(){return this.#i||(this.#i=(async()=>{if(await this.#o,this.#t)throw this.#n;return this.#n})()),this.#i}};var z=new Map,G=t=>{let e=z.get(t);return e||(e=new Function(`return ${t}`)(),z.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var E=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},P=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var W={};u(W,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)\\s*(?:(?\\W?=)\\s*(?.+?)\\s*(\\s(?[iIsS]))?\\s*)?\\]/gu,id:/#(?[-\\w\\P{ASCII}]+)/gu,class:/\\.(?[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?[-\\w\\P{ASCII}]+)(?:\\((?¶*)\\))?/gu,\"pseudo-class\":/:(?[-\\w\\P{ASCII}]+)(?:\\((?¶*)\\))?/gu,universal:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?\\*|[-\\w\\P{ASCII}]*)\\|)?(?[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?\\xB6*)\",\"(?.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Ee=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Ee.observe(t,{childList:!0,characterData:!0,subtree:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Pe=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Pe.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var U={};u(U,{xpathQuerySelectorAll:()=>j});var j=function*(t,e,n=-1){let o=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),i=[],s;for(;(s=o.iterateNext())&&(i.push(s),!(n&&i.length===n)););for(let l=0;l\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*j(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},V=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...W,...Q,...$,...U,Deferred:f,createFunction:G,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:E,RAFPoller:P}),Re=ke;\n/**\n * @license\n * Copyright 2018 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2023 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2022 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2020 Google Inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n"; diff --git a/Scripts/node_modules/puppeteer-core/src/generated/version.ts b/Scripts/node_modules/puppeteer-core/src/generated/version.ts index b24a9c89..30912eb0 100644 --- a/Scripts/node_modules/puppeteer-core/src/generated/version.ts +++ b/Scripts/node_modules/puppeteer-core/src/generated/version.ts @@ -1,4 +1,4 @@ /** * @internal */ -export const packageVersion = '21.7.0'; +export const packageVersion = '21.11.0'; diff --git a/Scripts/node_modules/puppeteer-core/src/node/ChromeLauncher.ts b/Scripts/node_modules/puppeteer-core/src/node/ChromeLauncher.ts index 474469c0..74315191 100644 --- a/Scripts/node_modules/puppeteer-core/src/node/ChromeLauncher.ts +++ b/Scripts/node_modules/puppeteer-core/src/node/ChromeLauncher.ts @@ -146,7 +146,7 @@ export class ChromeLauncher extends ProductLauncher { channel || !this.puppeteer._isPuppeteerCore, `An \`executablePath\` or \`channel\` must be specified for \`puppeteer-core\`` ); - chromeExecutable = this.executablePath(channel); + chromeExecutable = this.executablePath(channel, options.headless ?? true); } return { @@ -231,6 +231,7 @@ export class ChromeLauncher extends ProductLauncher { '--disable-sync', '--enable-automation', '--export-tagged-pdf', + '--generate-pdf-document-outline', '--force-color-profile=srgb', '--metrics-recording-only', '--no-first-run', @@ -269,14 +270,17 @@ export class ChromeLauncher extends ProductLauncher { return chromeArguments; } - override executablePath(channel?: ChromeReleaseChannel): string { + override executablePath( + channel?: ChromeReleaseChannel, + headless?: boolean | 'new' + ): string { if (channel) { return computeSystemExecutablePath({ browser: SupportedBrowsers.CHROME, channel: convertPuppeteerChannelToBrowsersChannel(channel), }); } else { - return this.resolveExecutablePath(); + return this.resolveExecutablePath(headless); } } } diff --git a/Scripts/node_modules/puppeteer-core/src/node/FirefoxLauncher.ts b/Scripts/node_modules/puppeteer-core/src/node/FirefoxLauncher.ts index 695eae53..eb4f375f 100644 --- a/Scripts/node_modules/puppeteer-core/src/node/FirefoxLauncher.ts +++ b/Scripts/node_modules/puppeteer-core/src/node/FirefoxLauncher.ts @@ -45,6 +45,8 @@ export class FirefoxLauncher extends ProductLauncher { ...(protocol === 'webDriverBiDi' ? {} : { + // Do not close the window when the last tab gets closed + 'browser.tabs.closeWindowWithLastTab': false, // Temporarily force disable BFCache in parent (https://bit.ly/bug-1732263) 'fission.bfcacheInParent': false, }), diff --git a/Scripts/node_modules/puppeteer-core/src/node/ProductLauncher.ts b/Scripts/node_modules/puppeteer-core/src/node/ProductLauncher.ts index 1d3cbe42..ab3432cd 100644 --- a/Scripts/node_modules/puppeteer-core/src/node/ProductLauncher.ts +++ b/Scripts/node_modules/puppeteer-core/src/node/ProductLauncher.ts @@ -16,6 +16,13 @@ import { computeExecutablePath, } from '@puppeteer/browsers'; +import { + firstValueFrom, + from, + map, + race, + timer, +} from '../../third_party/rxjs/rxjs.js'; import type {Browser, BrowserCloseCallback} from '../api/Browser.js'; import {CdpBrowser} from '../cdp/Browser.js'; import {Connection} from '../cdp/Connection.js'; @@ -236,7 +243,17 @@ export abstract class ProductLauncher { await browserProcess.close(); } } else { - await browserProcess.close(); + // Wait for a possible graceful shutdown. + await firstValueFrom( + race( + from(browserProcess.hasClosed()), + timer(5000).pipe( + map(() => { + return from(browserProcess.close()); + }) + ) + ) + ); } } @@ -376,7 +393,7 @@ export abstract class ProductLauncher { /** * @internal */ - protected resolveExecutablePath(): string { + protected resolveExecutablePath(headless?: boolean | 'new'): string { let executablePath = this.puppeteer.configuration.executablePath; if (executablePath) { if (!existsSync(executablePath)) { @@ -387,9 +404,12 @@ export abstract class ProductLauncher { return executablePath; } - function productToBrowser(product?: Product) { + function productToBrowser(product?: Product, headless?: boolean | 'new') { switch (product) { case 'chrome': + if (headless === true) { + return InstalledBrowser.CHROMEHEADLESSSHELL; + } return InstalledBrowser.CHROME; case 'firefox': return InstalledBrowser.FIREFOX; @@ -399,7 +419,7 @@ export abstract class ProductLauncher { executablePath = computeExecutablePath({ cacheDir: this.puppeteer.defaultDownloadPath!, - browser: productToBrowser(this.product), + browser: productToBrowser(this.product, headless), buildId: this.puppeteer.browserRevision, }); diff --git a/Scripts/node_modules/puppeteer-core/src/node/ScreenRecorder.ts b/Scripts/node_modules/puppeteer-core/src/node/ScreenRecorder.ts index 556b156b..effb2d63 100644 --- a/Scripts/node_modules/puppeteer-core/src/node/ScreenRecorder.ts +++ b/Scripts/node_modules/puppeteer-core/src/node/ScreenRecorder.ts @@ -9,12 +9,8 @@ import {spawn, spawnSync} from 'child_process'; import {PassThrough} from 'stream'; import debug from 'debug'; -import type Protocol from 'devtools-protocol'; -import type { - Observable, - OperatorFunction, -} from '../../third_party/rxjs/rxjs.js'; +import type {OperatorFunction} from '../../third_party/rxjs/rxjs.js'; import { bufferCount, concatMap, @@ -29,7 +25,7 @@ import { import {CDPSessionEvent} from '../api/CDPSession.js'; import type {BoundingBox} from '../api/ElementHandle.js'; import type {Page} from '../api/Page.js'; -import {debugError} from '../common/util.js'; +import {debugError, fromEmitterEvent} from '../common/util.js'; import {guarded} from '../util/decorators.js'; import {asyncDisposeSymbol} from '../util/disposable.js'; @@ -137,12 +133,7 @@ export class ScreenRecorder extends PassThrough { }); this.#lastFrame = lastValueFrom( - ( - fromEvent( - client, - 'Page.screencastFrame' - ) as Observable - ).pipe( + fromEmitterEvent(client, 'Page.screencastFrame').pipe( tap(event => { void client.send('Page.screencastFrameAck', { sessionId: event.sessionId, diff --git a/Scripts/node_modules/puppeteer-core/src/revisions.ts b/Scripts/node_modules/puppeteer-core/src/revisions.ts index 7c7687e0..37360204 100644 --- a/Scripts/node_modules/puppeteer-core/src/revisions.ts +++ b/Scripts/node_modules/puppeteer-core/src/revisions.ts @@ -8,6 +8,7 @@ * @internal */ export const PUPPETEER_REVISIONS = Object.freeze({ - chrome: '119.0.6045.105', + chrome: '121.0.6167.85', + 'chrome-headless-shell': '121.0.6167.85', firefox: 'latest', }); diff --git a/Scripts/node_modules/puppeteer-core/src/util/DebuggableDeferred.ts b/Scripts/node_modules/puppeteer-core/src/util/DebuggableDeferred.ts deleted file mode 100644 index b8a7d551..00000000 --- a/Scripts/node_modules/puppeteer-core/src/util/DebuggableDeferred.ts +++ /dev/null @@ -1,19 +0,0 @@ -import {DEFERRED_PROMISE_DEBUG_TIMEOUT} from '../environment.js'; - -import {Deferred} from './Deferred.js'; - -/** - * Creates and returns a deferred promise using DEFERRED_PROMISE_DEBUG_TIMEOUT - * if it's specified or a normal deferred promise otherwise. - * - * @internal - */ -export function createDebuggableDeferred(message: string): Deferred { - if (DEFERRED_PROMISE_DEBUG_TIMEOUT > 0) { - return Deferred.create({ - message, - timeout: DEFERRED_PROMISE_DEBUG_TIMEOUT, - }); - } - return Deferred.create(); -} diff --git a/Scripts/node_modules/puppeteer-core/src/util/Deferred.ts b/Scripts/node_modules/puppeteer-core/src/util/Deferred.ts index a512a928..0dfb013b 100644 --- a/Scripts/node_modules/puppeteer-core/src/util/Deferred.ts +++ b/Scripts/node_modules/puppeteer-core/src/util/Deferred.ts @@ -18,70 +18,9 @@ export interface DeferredOptions { * @internal */ export class Deferred { - #isResolved = false; - #isRejected = false; - #value: T | V | TimeoutError | undefined; - #resolver: (value: void) => void = () => {}; - #taskPromise = new Promise(resolve => { - this.#resolver = resolve; - }); - #timeoutId: ReturnType | undefined; - #timeoutError: TimeoutError | undefined; - - constructor(opts?: DeferredOptions) { - if (opts && opts.timeout > 0) { - this.#timeoutError = new TimeoutError(opts.message); - this.#timeoutId = setTimeout(() => { - this.reject(this.#timeoutError!); - }, opts.timeout); - } - } - - #finish(value: T | V | TimeoutError) { - clearTimeout(this.#timeoutId); - this.#value = value; - this.#resolver(); - } - - resolve(value: T): void { - if (this.#isRejected || this.#isResolved) { - return; - } - this.#isResolved = true; - this.#finish(value); - } - - reject(error: V | TimeoutError): void { - if (this.#isRejected || this.#isResolved) { - return; - } - this.#isRejected = true; - this.#finish(error); - } - - resolved(): boolean { - return this.#isResolved; - } - - finished(): boolean { - return this.#isResolved || this.#isRejected; - } - - value(): T | V | TimeoutError | undefined { - return this.#value; - } - - async valueOrThrow(): Promise { - await this.#taskPromise; - if (this.#isRejected) { - throw this.#value; - } - return this.#value as T; - } - static create( opts?: DeferredOptions - ): Deferred { + ): Deferred { return new Deferred(opts); } @@ -112,4 +51,72 @@ export class Deferred { } } } + + #isResolved = false; + #isRejected = false; + #value: T | V | TimeoutError | undefined; + // SAFETY: This is ensured by #taskPromise. + #resolve!: (value: void) => void; + #taskPromise = new Promise(resolve => { + this.#resolve = resolve; + }); + #timeoutId: ReturnType | undefined; + #timeoutError: TimeoutError | undefined; + + constructor(opts?: DeferredOptions) { + if (opts && opts.timeout > 0) { + this.#timeoutError = new TimeoutError(opts.message); + this.#timeoutId = setTimeout(() => { + this.reject(this.#timeoutError!); + }, opts.timeout); + } + } + + #finish(value: T | V | TimeoutError) { + clearTimeout(this.#timeoutId); + this.#value = value; + this.#resolve(); + } + + resolve(value: T): void { + if (this.#isRejected || this.#isResolved) { + return; + } + this.#isResolved = true; + this.#finish(value); + } + + reject(error: V | TimeoutError): void { + if (this.#isRejected || this.#isResolved) { + return; + } + this.#isRejected = true; + this.#finish(error); + } + + resolved(): boolean { + return this.#isResolved; + } + + finished(): boolean { + return this.#isResolved || this.#isRejected; + } + + value(): T | V | TimeoutError | undefined { + return this.#value; + } + + #promise: Promise | undefined; + valueOrThrow(): Promise { + if (!this.#promise) { + this.#promise = (async () => { + await this.#taskPromise; + if (this.#isRejected) { + throw this.#value; + } + return this.#value as T; + })(); + } + return this.#promise; + } } diff --git a/Scripts/node_modules/puppeteer-core/src/util/decorators.ts b/Scripts/node_modules/puppeteer-core/src/util/decorators.ts index 3c6a706c..af21c5fe 100644 --- a/Scripts/node_modules/puppeteer-core/src/util/decorators.ts +++ b/Scripts/node_modules/puppeteer-core/src/util/decorators.ts @@ -63,6 +63,18 @@ export function throwIfDisposed( }; } +export function inertIfDisposed( + target: (this: This, ...args: any[]) => any, + _: unknown +) { + return function (this: This, ...args: any[]): any { + if (this.disposed) { + return; + } + return target.call(this, ...args); + }; +} + /** * The decorator only invokes the target if the target has not been invoked with * the same arguments before. The decorated method throws an error if it's diff --git a/Scripts/node_modules/puppeteer-core/src/util/util.ts b/Scripts/node_modules/puppeteer-core/src/util/util.ts index e256b807..f55610da 100644 --- a/Scripts/node_modules/puppeteer-core/src/util/util.ts +++ b/Scripts/node_modules/puppeteer-core/src/util/util.ts @@ -5,7 +5,6 @@ */ export * from './assert.js'; -export * from './DebuggableDeferred.js'; export * from './Deferred.js'; export * from './ErrorLike.js'; export * from './AsyncIterableUtil.js'; diff --git a/Scripts/node_modules/puppeteer/README.md b/Scripts/node_modules/puppeteer/README.md index 2f87f664..74a15c6e 100644 --- a/Scripts/node_modules/puppeteer/README.md +++ b/Scripts/node_modules/puppeteer/README.md @@ -46,10 +46,10 @@ pnpm i puppeteer ``` When you install Puppeteer, it automatically downloads a recent version of -[Chrome for Testing](https://developer.chrome.com/blog/chrome-for-testing/) (~170MB macOS, ~282MB Linux, ~280MB Windows) that is [guaranteed to +[Chrome for Testing](https://developer.chrome.com/blog/chrome-for-testing/) (~170MB macOS, ~282MB Linux, ~280MB Windows) and a `chrome-headless-shell` binary (starting with Puppeteer v21.6.0) that is [guaranteed to work](https://pptr.dev/faq#q-why-doesnt-puppeteer-vxxx-work-with-chromium-vyyy) with Puppeteer. The browser is downloaded to the `$HOME/.cache/puppeteer` folder -by default (starting with Puppeteer v19.0.0). +by default (starting with Puppeteer v19.0.0). See [configuration](https://pptr.dev/api/puppeteer.configuration) for configuration options and environmental variables to control the download behavor. If you deploy a project using Puppeteer to a hosting provider, such as Render or Heroku, you might need to reconfigure the location of the cache to be within @@ -156,10 +156,10 @@ import puppeteer from 'puppeteer'; await page.setViewport({width: 1080, height: 1024}); // Type into search box - await page.type('.search-box__input', 'automate beyond recorder'); + await page.type('.devsite-search-field', 'automate beyond recorder'); // Wait and click on first result - const searchResultSelector = '.search-box__link'; + const searchResultSelector = '.devsite-result-item-link'; await page.waitForSelector(searchResultSelector); await page.click(searchResultSelector); diff --git a/Scripts/node_modules/puppeteer/install.mjs b/Scripts/node_modules/puppeteer/install.mjs index 9265ebd9..2724e129 100755 --- a/Scripts/node_modules/puppeteer/install.mjs +++ b/Scripts/node_modules/puppeteer/install.mjs @@ -16,17 +16,19 @@ * necessary. */ +async function importInstaller() { + try { + return await import('puppeteer/internal/node/install.js'); + } catch { + console.warn( + 'Skipping browser installation because the Puppeteer build is not available. Run `npm install` again after you have re-built Puppeteer.' + ); + process.exit(0); + } +} + try { - const {downloadBrowser} = await (async () => { - try { - return await import('puppeteer/internal/node/install.js'); - } catch { - console.warn( - 'Skipping browser installation because the Puppeteer build is not available. Run `npm install` again after you have re-built Puppeteer.' - ); - process.exit(0); - } - })(); + const {downloadBrowser} = await importInstaller(); downloadBrowser(); } catch (error) { console.warn('Browser download failed', error); diff --git a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.d.ts.map b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.d.ts.map index bea1faef..c7bfe153 100644 --- a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.d.ts.map +++ b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"getConfiguration.d.ts","sourceRoot":"","sources":["../../../src/getConfiguration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAC,aAAa,EAAU,MAAM,gBAAgB,CAAC;AAe3D;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,aAyFnC,CAAC"} \ No newline at end of file +{"version":3,"file":"getConfiguration.d.ts","sourceRoot":"","sources":["../../../src/getConfiguration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAC,aAAa,EAAU,MAAM,gBAAgB,CAAC;AA+B3D;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,aA+GnC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.js b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.js index 1cd24677..4e9bc0bb 100644 --- a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.js +++ b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.js @@ -9,6 +9,21 @@ exports.getConfiguration = void 0; const os_1 = require("os"); const path_1 = require("path"); const cosmiconfig_1 = require("cosmiconfig"); +function getBooleanEnvVar(name) { + const env = process.env[name]; + if (env === undefined) { + return; + } + switch (env.toLowerCase()) { + case '': + case '0': + case 'false': + case 'off': + return false; + default: + return true; + } +} /** * @internal */ @@ -25,7 +40,9 @@ function isSupportedProduct(product) { * @internal */ const getConfiguration = () => { - const result = (0, cosmiconfig_1.cosmiconfigSync)('puppeteer').search(); + const result = (0, cosmiconfig_1.cosmiconfigSync)('puppeteer', { + searchStrategy: 'global', + }).search(); const configuration = result ? result.config : {}; configuration.logLevel = (process.env['PUPPETEER_LOGLEVEL'] ?? process.env['npm_config_LOGLEVEL'] ?? @@ -48,10 +65,20 @@ const getConfiguration = () => { configuration.skipDownload = true; } // Set skipDownload explicitly or from default - configuration.skipDownload = Boolean(process.env['PUPPETEER_SKIP_DOWNLOAD'] ?? - process.env['npm_config_puppeteer_skip_download'] ?? - process.env['npm_package_config_puppeteer_skip_download'] ?? + configuration.skipDownload = Boolean(getBooleanEnvVar('PUPPETEER_SKIP_DOWNLOAD') ?? + getBooleanEnvVar('npm_config_puppeteer_skip_download') ?? + getBooleanEnvVar('npm_package_config_puppeteer_skip_download') ?? configuration.skipDownload); + // Set skipChromeDownload explicitly or from default + configuration.skipChromeDownload = Boolean(getBooleanEnvVar('PUPPETEER_SKIP_CHROME_DOWNLOAD') ?? + getBooleanEnvVar('npm_config_puppeteer_skip_chrome_download') ?? + getBooleanEnvVar('npm_package_config_puppeteer_skip_chrome_download') ?? + configuration.skipChromeDownload); + // Set skipChromeDownload explicitly or from default + configuration.skipChromeHeadlessShellDownload = Boolean(getBooleanEnvVar('PUPPETEER_SKIP_CHROME_HEADLESS_SHELL_DOWNLOAD') ?? + getBooleanEnvVar('npm_config_puppeteer_skip_chrome_headless_shell_download') ?? + getBooleanEnvVar('npm_package_config_puppeteer_skip_chrome_headless_shell_download') ?? + configuration.skipChromeHeadlessShellDownload); // Prepare variables used in browser downloading if (!configuration.skipDownload) { configuration.browserRevision = diff --git a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.js.map b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.js.map index 0aedfe1b..176b32c1 100644 --- a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.js.map +++ b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.js.map @@ -1 +1 @@ -{"version":3,"file":"getConfiguration.js","sourceRoot":"","sources":["../../../src/getConfiguration.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,2BAA2B;AAC3B,+BAA0B;AAE1B,6CAA4C;AAG5C;;GAEG;AACH,SAAS,kBAAkB,CAAC,OAAgB;IAC1C,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,QAAQ,CAAC;QACd,KAAK,SAAS;YACZ,OAAO,IAAI,CAAC;QACd;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC;AAED;;GAEG;AACI,MAAM,gBAAgB,GAAG,GAAkB,EAAE;IAClD,MAAM,MAAM,GAAG,IAAA,6BAAe,EAAC,WAAW,CAAC,CAAC,MAAM,EAAE,CAAC;IACrD,MAAM,aAAa,GAAkB,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAEjE,aAAa,CAAC,QAAQ,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC;QACzD,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC;QAClC,OAAO,CAAC,GAAG,CAAC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O,aAAa,CAAC;AACvB,CAAC,CAAC;AAzFW,QAAA,gBAAgB,oBAyF3B"} \ No newline at end of file +{"version":3,"file":"getConfiguration.js","sourceRoot":"","sources":["../../../src/getConfiguration.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,2BAA2B;AAC3B,+BAA0B;AAE1B,6CAA4C;AAG5C,SAAS,gBAAgB,CAAC,IAAY;IACpC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9B,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO;IACT,CAAC;IACD,QAAQ,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC;QAC1B,KAAK,EAAE,CAAC;QACR,KAAK,GAAG,CAAC;QACT,KAAK,OAAO,CAAC;QACb,KAAK,KAAK;YACR,OAAO,KAAK,CAAC;QACf;YACE,OAAO,IAAI,CAAC;IAChB,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,OAAgB;IAC1C,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,QAAQ,CAAC;QACd,KAAK,SAAS;YACZ,OAAO,IAAI,CAAC;QACd;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC;AAED;;GAEG;AACI,MAAM,gBAAgB,GAAG,GAAkB,EAAE;IAClD,MAAM,MAAM,GAAG,IAAA,6BAAe,EAAC,WAAW,EAAE;QAC1C,cAAc,EAAE,QAAQ;KACzB,CAAC,CAAC,MAAM,EAAE,CAAC;IACZ,MAAM,aAAa,GAAkB,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAEjE,aAAa,CAAC,QAAQ,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC;QACzD,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC;QAClC,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;QAC1C,aAAa,CAAC,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GAAG,CAAC,8BAA8B,CAAC;YAC3C,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC;YACnD,aAAa,CAAC,kBAAkB,CAAC;IAEnC,aAAa,CAAC,WAAW,KAAK,EAAE,CAAC;IAEjC,0BAA0B;IAC1B,IAAI,CAAC,kBAAkB,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,KAAK,CAAC,uBAAuB,aAAa,CAAC,cAAc,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AA/GW,QAAA,gBAAgB,oBA+G3B"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/cli.js b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/cli.js index 16754466..255f11d7 100755 --- a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/cli.js +++ b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/cli.js @@ -26,6 +26,7 @@ void new browsers_1.CLI({ pinnedBrowsers: { [browsers_1.Browser.CHROME]: revisions_js_1.PUPPETEER_REVISIONS.chrome, [browsers_1.Browser.FIREFOX]: revisions_js_1.PUPPETEER_REVISIONS.firefox, + [browsers_1.Browser.CHROMEHEADLESSSHELL]: revisions_js_1.PUPPETEER_REVISIONS['chrome-headless-shell'], }, }).run(process.argv); //# sourceMappingURL=cli.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/cli.js.map b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/cli.js.map index e54e46f8..5b439001 100644 --- a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/cli.js.map +++ b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/cli.js.map @@ -1 +1 @@ -{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/node/cli.ts"],"names":[],"mappings":";;AAEA;;;;GAIG;;;;;AAEH,kDAAiD;AACjD,uEA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AC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/install.d.ts.map b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/install.d.ts.map index b723d3ed..2f4828f9 100644 --- a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/install.d.ts.map +++ b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/install.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/node/install.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAsBH;;GAEG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CA8CrD"} \ No newline at end of file +{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/node/install.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAsBH;;GAEG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CA6GrD"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/install.js b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/install.js index b0b036e9..7275a4a0 100644 --- a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/install.js +++ b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/install.js @@ -34,22 +34,62 @@ async function downloadBrowser() { const product = configuration.defaultProduct; const browser = productToBrowser(product); const unresolvedBuildId = configuration.browserRevision || revisions_js_1.PUPPETEER_REVISIONS[product] || 'latest'; - const buildId = await (0, browsers_1.resolveBuildId)(browser, platform, unresolvedBuildId); + const unresolvedShellBuildId = configuration.browserRevision || + revisions_js_1.PUPPETEER_REVISIONS['chrome-headless-shell'] || + 'latest'; // TODO: deprecate downloadPath in favour of cacheDirectory. const cacheDir = configuration.downloadPath ?? configuration.cacheDirectory; try { - const result = await (0, browsers_1.install)({ - browser, - cacheDir, - platform, - buildId, - downloadProgressCallback: (0, browsers_1.makeProgressCallback)(browser, buildId), - baseUrl: downloadBaseUrl, - }); - logPolitely(`${supportedProducts[product]} (${result.buildId}) downloaded to ${result.path}`); + const installationJobs = []; + if (configuration.skipChromeDownload) { + logPolitely('**INFO** Skipping Chrome download as instructed.'); + } + else { + const buildId = await (0, browsers_1.resolveBuildId)(browser, platform, unresolvedBuildId); + installationJobs.push((0, browsers_1.install)({ + browser, + cacheDir, + platform, + buildId, + downloadProgressCallback: (0, browsers_1.makeProgressCallback)(browser, buildId), + baseUrl: downloadBaseUrl, + }) + .then(result => { + logPolitely(`${supportedProducts[product]} (${result.buildId}) downloaded to ${result.path}`); + }) + .catch(error => { + throw new Error(`ERROR: Failed to set up ${supportedProducts[product]} v${buildId}! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.`, { + cause: error, + }); + })); + } + if (browser === browsers_1.Browser.CHROME) { + if (configuration.skipChromeHeadlessShellDownload) { + logPolitely('**INFO** Skipping Chrome download as instructed.'); + } + else { + const shellBuildId = await (0, browsers_1.resolveBuildId)(browser, platform, unresolvedShellBuildId); + installationJobs.push((0, browsers_1.install)({ + browser: browsers_1.Browser.CHROMEHEADLESSSHELL, + cacheDir, + platform, + buildId: shellBuildId, + downloadProgressCallback: (0, browsers_1.makeProgressCallback)(browser, shellBuildId), + baseUrl: downloadBaseUrl, + }) + .then(result => { + logPolitely(`${browsers_1.Browser.CHROMEHEADLESSSHELL} (${result.buildId}) downloaded to ${result.path}`); + }) + .catch(error => { + throw new Error(`ERROR: Failed to set up ${browsers_1.Browser.CHROMEHEADLESSSHELL} v${shellBuildId}! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.`, { + cause: error, + }); + })); + } + } + await Promise.all(installationJobs); } catch (error) { - console.error(`ERROR: Failed to set up ${supportedProducts[product]} r${buildId}! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.`); console.error(error); process.exit(1); } diff --git a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/install.js.map b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/install.js.map index e69b6f19..0d8c4c44 100644 --- a/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/install.js.map +++ b/Scripts/node_modules/puppeteer/lib/cjs/puppeteer/node/install.js.map @@ -1 +1 @@ -{"version":3,"file":"install.js","sourceRoot":"","sources":["../../../../src/node/install.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,kDAM6B;AAE7B,uEAAyE;AAEzE,gEAAwD;AAExD;;GAEG;AACH,MAAM,iBAAiB,GAAG;IACxB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,iBAAiB;CAClB,CAAC;AAEX;;GAEG;AACI,KAAK,UAAU,eAAe;IACnC,aAAa,EAAE,CAAC;IAEhB,MAAM,aAAa,GAAG,IAAA,sCAAgB,GAAE,CAAC;IACzC,IAAI,aAAa,CAAC,YAAY,EAAE,CAAC;QAC/B,WAAW,CAAC,mDAAmD,CAAC,CAAC;QACjE,OAAO;IACT,CAAC;IAED,MAAM,eAAe,GAAG,aAAa,CAAC,eAAe,CAAC;IAEtD,MAAM,QAAQ,GAAG,IAAA,gCAAqB,GAAE,CAAC;IACzC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,OAAO,GAAG,aAAa,CAAC,cAAe,CAAC;IAC9C,MAAM,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAE1C,MAAM,iBAAiB,GACrB,aAAa,CAAC,eAAe,IAAI,kCAAmB,CAAC,OAAO,CAAC,IAAI,QAAQ,CAAC;IAE5E,MAAM,OAAO,GAAG,MAAM,IAAA,yBAAc,EAAC,OAAO,EAAE,QAAQ,EAAE,iBAAiB,CAAC,CAAC;IAC3E,4DAA4D;IAC5D,MAAM,QAAQ,GAAG,aAAa,CAAC,YAAY,IAAI,aAAa,CAAC,cAAe,CAAC;IAE7E,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,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eAAe,GACnB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAC3E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAC1E,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;IAExD,IAAI,eAAe,EAAE,CAAC;QACpB,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,eAAe,CAAC;IAC/C,CAAC;IACD,IAAI,cAAc,EAAE,CAAC;QACnB,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,cAAc,CAAC;IAC7C,CAAC;IACD,IAAI,YAAY,EAAE,CAAC;QACjB,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC;IACzC,CAAC;AACH,CAAC"} \ No newline at end of file +{"version":3,"file":"install.js","sourceRoot":"","sources":["../../../../src/node/install.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,kDAM6B;AAE7B,uEAAyE;AAEzE,gEAAwD;AAExD;;GAEG;AACH,MAAM,iBAAiB,GAAG;IACxB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,iBAAiB;CAClB,CAAC;AAEX;;GAEG;AACI,KAAK,UAAU,eAAe;IACnC,aAAa,EAAE,CAAC;IAEhB,MAAM,aAAa,GAAG,IAAA,sCAAgB,GAAE,CAAC;IACzC,IAAI,aAAa,CAAC,YAAY,EAAE,CAAC;QAC/B,WAAW,CAAC,mDAAmD,CAAC,CAAC;QACjE,OAAO;IACT,CAAC;IAED,MAAM,eAAe,GAAG,aAAa,CAAC,eAAe,CAAC;IAEtD,MAAM,QAAQ,GAAG,IAAA,gCAAqB,GAAE,CAAC;IACzC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,wCAA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ppeteer/getConfiguration.d.ts.map b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.d.ts.map index bea1faef..c7bfe153 100644 --- a/Scripts/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.d.ts.map +++ b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"getConfiguration.d.ts","sourceRoot":"","sources":["../../../src/getConfiguration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAC,aAAa,EAAU,MAAM,gBAAgB,CAAC;AAe3D;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,aAyFnC,CAAC"} \ No newline at end of file +{"version":3,"file":"getConfiguration.d.ts","sourceRoot":"","sources":["../../../src/getConfiguration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAC,aAAa,EAAU,MAAM,gBAAgB,CAAC;AA+B3D;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,aA+GnC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.js b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.js index af3e74c4..39855322 100644 --- a/Scripts/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.js +++ b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.js @@ -6,6 +6,21 @@ import { homedir } from 'os'; import { join } from 'path'; import { cosmiconfigSync } from 'cosmiconfig'; +function getBooleanEnvVar(name) { + const env = process.env[name]; + if (env === undefined) { + return; + } + switch (env.toLowerCase()) { + case '': + case '0': + case 'false': + case 'off': + return false; + default: + return true; + } +} /** * @internal */ @@ -22,7 +37,9 @@ function isSupportedProduct(product) { * @internal */ export const getConfiguration = () => { - const result = cosmiconfigSync('puppeteer').search(); + const result = cosmiconfigSync('puppeteer', { + searchStrategy: 'global', + }).search(); const configuration = result ? result.config : {}; configuration.logLevel = (process.env['PUPPETEER_LOGLEVEL'] ?? process.env['npm_config_LOGLEVEL'] ?? @@ -45,10 +62,20 @@ export const getConfiguration = () => { configuration.skipDownload = true; } // Set skipDownload explicitly or from default - configuration.skipDownload = Boolean(process.env['PUPPETEER_SKIP_DOWNLOAD'] ?? - process.env['npm_config_puppeteer_skip_download'] ?? - process.env['npm_package_config_puppeteer_skip_download'] ?? + configuration.skipDownload = Boolean(getBooleanEnvVar('PUPPETEER_SKIP_DOWNLOAD') ?? + getBooleanEnvVar('npm_config_puppeteer_skip_download') ?? + getBooleanEnvVar('npm_package_config_puppeteer_skip_download') ?? configuration.skipDownload); + // Set skipChromeDownload explicitly or from default + configuration.skipChromeDownload = Boolean(getBooleanEnvVar('PUPPETEER_SKIP_CHROME_DOWNLOAD') ?? + getBooleanEnvVar('npm_config_puppeteer_skip_chrome_download') ?? + getBooleanEnvVar('npm_package_config_puppeteer_skip_chrome_download') ?? + configuration.skipChromeDownload); + // Set skipChromeDownload explicitly or from default + configuration.skipChromeHeadlessShellDownload = Boolean(getBooleanEnvVar('PUPPETEER_SKIP_CHROME_HEADLESS_SHELL_DOWNLOAD') ?? + getBooleanEnvVar('npm_config_puppeteer_skip_chrome_headless_shell_download') ?? + getBooleanEnvVar('npm_package_config_puppeteer_skip_chrome_headless_shell_download') ?? + configuration.skipChromeHeadlessShellDownload); // Prepare variables used in browser downloading if (!configuration.skipDownload) { configuration.browserRevision = diff --git a/Scripts/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.js.map b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.js.map index 2ed1a0fe..092da90f 100644 --- a/Scripts/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.js.map +++ b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.js.map @@ -1 +1 @@ -{"version":3,"file":"getConfiguration.js","sourceRoot":"","sources":["../../../src/getConfiguration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,OAAO,E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AAC;IAC/B,CAAC;IAED,aAAa,CAAC,cAAc;QAC1B,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC;YAClC,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC;YAC7C,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC;YACrD,aAAa,CAAC,cAAc;YAC5B,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IACzC,aAAa,CAAC,kBAAkB;QAC9B,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC;YAChC,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC;YAC3C,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC;YACnD,aAAa,CAAC,kBAAkB,CAAC;IAEnC,aAAa,CAAC,WAAW,KAAK,EAAE,CAAC;IAEjC,0BAA0B;IAC1B,IAAI,CAAC,kBAAkB,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,KAAK,CAAC,uBAAuB,aAAa,CAAC,cAAc,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"getConfiguration.js","sourceRoot":"","sources":["../../../src/getConfiguration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,OAAO,EAAC,MAAM,IAAI,CAAC;AAC3B,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAE1B,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAG5C,SAAS,gBAAgB,CAAC,IAAY;IACpC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9B,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO;IACT,CAAC;IACD,QAAQ,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC;QAC1B,KAAK,EAAE,CAAC;QACR,KAAK,GAAG,CAAC;QAC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AAa,CAAC,eAAe;YAC3B,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;gBAC1C,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC;gBACrD,OAAO,CAAC,GAAG,CAAC,gDAAgD,CAAC;gBAC7D,aAAa,CAAC,eAAe;gBAC7B,YAAY,CAAC;QAEf,aAAa,CAAC,YAAY;YACxB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;gBACtC,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC;gBACjD,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC;gBACzD,aAAa,CAAC,YAAY,CAAC;IAC/B,CAAC;IAED,aAAa,CAAC,cAAc;QAC1B,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC;YAClC,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC;YAC7C,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC;YACrD,aAAa,CAAC,cAAc;YAC5B,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IACzC,aAAa,CAAC,kBAAkB;QAC9B,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC;YAChC,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC;YAC3C,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC;YACnD,aAAa,CAAC,kBAAkB,CAAC;IAEnC,aAAa,CAAC,WAAW,KAAK,EAAE,CAAC;IAEjC,0BAA0B;IAC1B,IAAI,CAAC,kBAAkB,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,KAAK,CAAC,uBAAuB,aAAa,CAAC,cAAc,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/cli.js b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/cli.js index e2856ac8..2e44e31f 100755 --- a/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/cli.js +++ b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/cli.js @@ -21,6 +21,7 @@ void new CLI({ pinnedBrowsers: { [Browser.CHROME]: PUPPETEER_REVISIONS.chrome, [Browser.FIREFOX]: PUPPETEER_REVISIONS.firefox, + [Browser.CHROMEHEADLESSSHELL]: PUPPETEER_REVISIONS['chrome-headless-shell'], }, }).run(process.argv); //# sourceMappingURL=cli.js.map \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/cli.js.map b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/cli.js.map index b900b5db..69982b89 100644 --- a/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/cli.js.map +++ b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/cli.js.map @@ -1 +1 @@ -{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/node/cli.ts"],"names":[],"mappings":";AAEA;;;;GAIG;AAEH,OAAO,EAAC,GAAG,EAAE,OAAO,EAAC,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAC,mBAAmB,EAAC,MAAM,sCAAsC,CAAC;AAEzE,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAExC,4DAA4D;AAC5D,MAAM,QAAQ,GACZ,SAAS,CAAC,aAAa,CAAC,YAAY;IACpC,SAAS,CAAC,aAAa,CAAC,cAAe,CAAC;AAE1C,KAAK,IAAI,GAAG,CAAC;IACX,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE,WAAW;IACvB,aAAa,EAAE;QACb,GAAG,EAAE,UAAU;QACf,WAAW,EAAE,gDAAgD;KAC9D;IACD,sBAAsB,EAAE,KAAK;IAC7B,cAAc,EAAE;QACd,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC,MAAM;QAC5C,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAAC,OAAO;KAC/C;CACF,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/node/cli.ts"],"names":[],"mappings":";AAEA;;;;GAIG;AAEH,OAAO,EAAC,GAAG,EAAE,OAAO,EAAC,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAC,mBAAmB,EAAC,MAAM,sCAAsC,CAAC;AAEzE,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAExC,4DAA4D;AAC5D,MAAM,QAAQ,GACZ,SAAS,CAAC,aAAa,CAAC,YAAY;IACpC,SAAS,CAAC,aAAa,CAAC,cAAe,CAAC;AAE1C,KAAK,IAAI,GAAG,CAAC;IACX,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE,WAAW;IACvB,aAAa,EAAE;QACb,GAAG,EAAE,UAAU;QACf,WAAW,EAAE,gDAAgD;KAC9D;IACD,sBAAsB,EAAE,KAAK;IAC7B,cAAc,EAAE;QACd,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC,MAAM;QAC5C,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAAC,OAAO;QAC9C,CAAC,OAAO,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC,uBAAuB,CAAC;KAC5E;CACF,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/install.d.ts.map b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/install.d.ts.map index b723d3ed..2f4828f9 100644 --- a/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/install.d.ts.map +++ b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/install.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/node/install.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAsBH;;GAEG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CA8CrD"} \ No newline at end of file +{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/node/install.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAsBH;;GAEG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CA6GrD"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/install.js b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/install.js index 2e88458c..7a5db537 100644 --- a/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/install.js +++ b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/install.js @@ -31,22 +31,62 @@ export async function downloadBrowser() { const product = configuration.defaultProduct; const browser = productToBrowser(product); const unresolvedBuildId = configuration.browserRevision || PUPPETEER_REVISIONS[product] || 'latest'; - const buildId = await resolveBuildId(browser, platform, unresolvedBuildId); + const unresolvedShellBuildId = configuration.browserRevision || + PUPPETEER_REVISIONS['chrome-headless-shell'] || + 'latest'; // TODO: deprecate downloadPath in favour of cacheDirectory. const cacheDir = configuration.downloadPath ?? configuration.cacheDirectory; try { - const result = await install({ - browser, - cacheDir, - platform, - buildId, - downloadProgressCallback: makeProgressCallback(browser, buildId), - baseUrl: downloadBaseUrl, - }); - logPolitely(`${supportedProducts[product]} (${result.buildId}) downloaded to ${result.path}`); + const installationJobs = []; + if (configuration.skipChromeDownload) { + logPolitely('**INFO** Skipping Chrome download as instructed.'); + } + else { + const buildId = await resolveBuildId(browser, platform, unresolvedBuildId); + installationJobs.push(install({ + browser, + cacheDir, + platform, + buildId, + downloadProgressCallback: makeProgressCallback(browser, buildId), + baseUrl: downloadBaseUrl, + }) + .then(result => { + logPolitely(`${supportedProducts[product]} (${result.buildId}) downloaded to ${result.path}`); + }) + .catch(error => { + throw new Error(`ERROR: Failed to set up ${supportedProducts[product]} v${buildId}! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.`, { + cause: error, + }); + })); + } + if (browser === Browser.CHROME) { + if (configuration.skipChromeHeadlessShellDownload) { + logPolitely('**INFO** Skipping Chrome download as instructed.'); + } + else { + const shellBuildId = await resolveBuildId(browser, platform, unresolvedShellBuildId); + installationJobs.push(install({ + browser: Browser.CHROMEHEADLESSSHELL, + cacheDir, + platform, + buildId: shellBuildId, + downloadProgressCallback: makeProgressCallback(browser, shellBuildId), + baseUrl: downloadBaseUrl, + }) + .then(result => { + logPolitely(`${Browser.CHROMEHEADLESSSHELL} (${result.buildId}) downloaded to ${result.path}`); + }) + .catch(error => { + throw new Error(`ERROR: Failed to set up ${Browser.CHROMEHEADLESSSHELL} v${shellBuildId}! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.`, { + cause: error, + }); + })); + } + } + await Promise.all(installationJobs); } catch (error) { - console.error(`ERROR: Failed to set up ${supportedProducts[product]} r${buildId}! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.`); console.error(error); process.exit(1); } diff --git a/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/install.js.map b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/install.js.map index 5e269861..5e858828 100644 --- a/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/install.js.map +++ b/Scripts/node_modules/puppeteer/lib/esm/puppeteer/node/install.js.map @@ -1 +1 @@ -{"version":3,"file":"install.js","sourceRoot":"","sources":["../../../../src/node/install.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,OAAO,EACP,OAAO,EACP,cAAc,EACd,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAC,mBAAmB,EAAC,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAExD;;GAEG;AACH,MAAM,iBAAiB,GAAG;IACxB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,iBAAiB;CAClB,CAAC;AAEX;;GAE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GAAG,CAAC,YAAY,CAAC,GAAG,cAAc,CAAC;IAC7C,CAAC;IACD,IAAI,YAAY,EAAE,CAAC;QACjB,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC;IACzC,CAAC;AACH,CAAC"} \ No newline at end of file +{"version":3,"file":"install.js","sourceRoot":"","sources":["../../../../src/node/install.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,OAAO,EACP,OAAO,EACP,cAAc,EACd,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAC,mBAAmB,EAAC,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAExD;;GAEG;AACH,MAAM,iBAAiB,GAAG;IACxB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,iBAAiB;CAClB,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe;IACnC,aAAa,EAAE,CAAC;IAEhB,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IACzC,IAAI,aAAa,CAAC,YAAY,EAAE,CAAC;QAC/B,WAAW,CAAC,mDAAmD,CAAC,CAAC;QACjE,OAAO;IACT,CAAC;IAED,MAAM,eAAe,GAAG,aAAa,CAAC,eAAe,CAAC;IAEtD,MAAM,QAAQ,GAAG,qBAAqB,EAAE,CAAC;IACzC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,OAAO,GAAG,aAAa,CAAC,cAAe,CAAC;IAC9C,MAAM,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAE1C,MAAM,iBAAiB,GACrB,aAAa,CAAC,eAAe,IAAI,mBAAmB,CAAC,OAAO,CAAC,IAAI,QAAQ,CAAC;IAC5E,MAAM,sBAAsB,GAC1B,aAAa,CAAC,eAAe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AAC,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IAE3E,sCAAsC;IACtC,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC1B,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,aAAa;IACpB,8EAA8E;IAC9E,MAAM,eAAe,GACnB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAC3E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAC1E,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;IAExD,IAAI,eAAe,EAAE,CAAC;QACpB,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,eAAe,CAAC;IAC/C,CAAC;IACD,IAAI,cAAc,EAAE,CAAC;QACnB,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,cAAc,CAAC;IAC7C,CAAC;IACD,IAAI,YAAY,EAAE,CAAC;QACjB,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC;IACzC,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/Scripts/node_modules/puppeteer/lib/types.d.ts b/Scripts/node_modules/puppeteer/lib/types.d.ts index d9be38e7..0c65950d 100644 --- a/Scripts/node_modules/puppeteer/lib/types.d.ts +++ b/Scripts/node_modules/puppeteer/lib/types.d.ts @@ -127,6 +127,11 @@ export declare type AwaitableIterable = Iterable | AsyncIterable; /* Excluded from this release type: AwaitableIterator */ +/** + * @public + */ +export declare type AwaitablePredicate = (value: T) => Awaitable; + /** * @public */ @@ -134,52 +139,6 @@ export declare type AwaitedLocator = T extends Locator ? S : never; declare type BeginSubclassSelectorTokens = ['.', '#', '[', ':']; -/* Excluded from this release type: BidiBrowser */ - -/* Excluded from this release type: BidiBrowserContext */ - -/* Excluded from this release type: BidiBrowserContextOptions */ - -/* Excluded from this release type: BidiBrowserOptions */ - -/* Excluded from this release type: BiDiBrowsingContextTarget */ - -/* Excluded from this release type: BidiConnection */ - -/* Excluded from this release type: BidiEvents */ - -/* Excluded from this release type: BidiFrame */ - -/* Excluded from this release type: BidiHTTPRequest */ - -/* Excluded from this release type: BidiHTTPResponse */ - -/* Excluded from this release type: BidiJSHandle */ - -/* Excluded from this release type: BidiKeyboard */ - -/* Excluded from this release type: BidiMouse */ - -/* Excluded from this release type: BidiMouseClickOptions */ - -/* Excluded from this release type: BidiMouseMoveOptions */ - -/* Excluded from this release type: BiDiNetworkIdle */ - -/* Excluded from this release type: BidiNetworkManager */ - -/* Excluded from this release type: BidiPage */ - -/* Excluded from this release type: BiDiPageTarget */ - -/* Excluded from this release type: BidiRealm */ - -/* Excluded from this release type: BidiTarget */ - -/* Excluded from this release type: BidiTouchMoveOptions */ - -/* Excluded from this release type: BidiTouchscreen */ - /* Excluded from this release type: Binding */ /* Excluded from this release type: BindingPayload */ @@ -386,7 +345,7 @@ export declare abstract class Browser extends EventEmitter { /** * Whether Puppeteer is connected to this {@link Browser | browser}. * - * @deprecated Use {@link Browser.connected}. + * @deprecated Use {@link Browser | Browser.connected}. */ isConnected(): boolean; /** @@ -396,6 +355,17 @@ export declare abstract class Browser extends EventEmitter { /* Excluded from this release type: [disposeSymbol] */ /* Excluded from this release type: [asyncDisposeSymbol] */ /* Excluded from this release type: protocol */ + /** + * Get debug information from Puppeteer. + * + * @remarks + * + * Currently, includes pending protocol calls. In the future, we might add more info. + * + * @public + * @experimental + */ + abstract get debugInfo(): DebugInfo; } /* Excluded from this release type: BrowserCloseCallback */ @@ -723,8 +693,6 @@ export declare interface BrowserLaunchArgumentOptions { /* Excluded from this release type: BrowserWebSocketTransport */ -/* Excluded from this release type: BrowsingContext */ - /* Excluded from this release type: Callback */ /* Excluded from this release type: CallbackRegistry */ @@ -872,8 +840,6 @@ export declare interface CommandOptions { timeout: number; } -/* Excluded from this release type: Commands */ - /** * @public */ @@ -909,7 +875,13 @@ export declare interface Configuration { * See {@link PuppeteerNode.launch | puppeteer.launch} on how executable path * is inferred. * - * @defaultValue A compatible-revision of the browser. + * Use a specific browser version (e.g., 119.0.6045.105). If you use an alias + * such `stable` or `canary` it will only work during the installation of + * Puppeteer and it will fail when launching the browser. + * + * @example 119.0.6045.105 + * @defaultValue The pinned browser version supported by the current Puppeteer + * version. */ browserRevision?: string; /** @@ -972,6 +944,18 @@ export declare interface Configuration { * Can be overridden by `PUPPETEER_SKIP_DOWNLOAD`. */ skipDownload?: boolean; + /** + * Tells Puppeteer to not Chrome download during installation. + * + * Can be overridden by `PUPPETEER_SKIP_CHROME_DOWNLOAD`. + */ + skipChromeDownload?: boolean; + /** + * Tells Puppeteer to not chrome-headless-shell download during installation. + * + * Can be overridden by `PUPPETEER_SKIP_CHROME_HEADLESSS_HELL_DOWNLOAD`. + */ + skipChromeHeadlessShellDownload?: boolean; /** * Tells Puppeteer to log at the given level. * @@ -1024,6 +1008,7 @@ export declare class Connection extends EventEmitter { * @returns The CDP session that is created */ createSession(targetInfo: Protocol.Target.TargetInfo): Promise; + /* Excluded from this release type: getPendingProtocolErrors */ } /** @@ -1236,8 +1221,6 @@ export declare interface CoverageEntry { /* Excluded from this release type: createClientError */ -/* Excluded from this release type: createDebuggableDeferred */ - /* Excluded from this release type: createEvaluationError */ /* Excluded from this release type: createIncrementalIdGenerator */ @@ -1346,6 +1329,14 @@ declare const customQuerySelectors: CustomQuerySelectorRegistry; /* Excluded from this release type: debugError */ +/** + * @public + * @experimental + */ +export declare interface DebugInfo { + pendingProtocolErrors: Error[]; +} + /** * The default cooperative request interception resolution priority * @@ -1492,7 +1483,7 @@ export declare abstract class Dialog { * is not a `prompt`. */ defaultValue(): string; - /* Excluded from this release type: sendCommand */ + /* Excluded from this release type: handle */ /** * A promise that resolves when the dialog has been accepted. * @@ -2095,6 +2086,14 @@ export declare class EventEmitter> imp * @returns `this` to enable you to chain method calls. */ off>(type: Key, handler?: Handler[Key]>): this; + /** + * Emit an event and call any associated listeners. + * + * @param type - the event you'd like to emit + * @param eventData - any data you'd like to emit with the event + * @returns `true` if there are any listeners, `false` if there are not. + */ + emit>(type: Key, event: EventsWithWildcard[Key]): boolean; /** * Remove an event listener. * @@ -2107,14 +2106,6 @@ export declare class EventEmitter> imp * @deprecated please use {@link EventEmitter.on} instead. */ addListener>(type: Key, handler: Handler[Key]>): this; - /** - * Emit an event and call any associated listeners. - * - * @param type - the event you'd like to emit - * @param eventData - any data you'd like to emit with the event - * @returns `true` if there are any listeners, `false` if there are not. - */ - emit>(type: Key, event: EventsWithWildcard[Key]): boolean; /** * Like `on` but the listener will only be fired once and then it will be removed. * @param type - the event you'd like to listen to @@ -2137,6 +2128,7 @@ export declare class EventEmitter> imp * @returns `this` to enable you to chain method calls. */ removeAllListeners(type?: keyof EventsWithWildcard): this; + /* Excluded from this release type: [disposeSymbol] */ } /* Excluded from this release type: EventSubscription */ @@ -2863,6 +2855,8 @@ export declare interface FrameWaitForFunctionOptions { signal?: AbortSignal; } +/* Excluded from this release type: fromEmitterEvent */ + /* Excluded from this release type: FunctionLocator */ /** @@ -2891,8 +2885,6 @@ export declare interface GeolocationOptions { /* Excluded from this release type: GetIdFn */ -/* Excluded from this release type: getPageContent */ - /* Excluded from this release type: getQueryHandlerAndSelector */ /* Excluded from this release type: getReadableAsBuffer */ @@ -3976,8 +3968,6 @@ export declare interface LocatorScrollOptions extends ActionOptions { */ export declare type LowerCasePaperFormat = 'letter' | 'legal' | 'tabloid' | 'ledger' | 'a0' | 'a1' | 'a2' | 'a3' | 'a4' | 'a5' | 'a6'; -/* Excluded from this release type: MAIN_SANDBOX */ - /* Excluded from this release type: MAIN_WORLD */ /* Excluded from this release type: MappedLocator */ @@ -4393,7 +4383,7 @@ export declare abstract class Page extends EventEmitter { * * @deprecated We no longer support intercepting drag payloads. Use the new * drag APIs found on {@link ElementHandle} to drag (or just use the - * {@link Page.mouse}). + * {@link Page | Page.mouse}). */ abstract isDragInterceptionEnabled(): boolean; /** @@ -4549,7 +4539,7 @@ export declare abstract class Page extends EventEmitter { * * @deprecated We no longer support intercepting drag payloads. Use the new * drag APIs found on {@link ElementHandle} to drag (or just use the - * {@link Page.mouse}). + * {@link Page | Page.mouse}). */ abstract setDragInterception(enabled: boolean): Promise; /** @@ -5200,9 +5190,7 @@ export declare abstract class Page extends EventEmitter { * `0` to disable the timeout. The default value can be changed by using the * {@link Page.setDefaultTimeout} method. */ - abstract waitForRequest(urlOrPredicate: string | ((req: HTTPRequest) => boolean | Promise), options?: { - timeout?: number; - }): Promise; + waitForRequest(urlOrPredicate: string | AwaitablePredicate, options?: WaitTimeoutOptions): Promise; /** * @param urlOrPredicate - A URL or predicate to wait for. * @param options - Optional waiting parameters @@ -5230,18 +5218,15 @@ export declare abstract class Page extends EventEmitter { * pass `0` to disable the timeout. The default value can be changed by using * the {@link Page.setDefaultTimeout} method. */ - abstract waitForResponse(urlOrPredicate: string | ((res: HTTPResponse) => boolean | Promise), options?: { - timeout?: number; - }): Promise; + waitForResponse(urlOrPredicate: string | AwaitablePredicate, options?: WaitTimeoutOptions): Promise; /** - * @param options - Optional waiting parameters - * @returns Promise which resolves when network is idle + * Waits for the network to be idle. + * + * @param options - Options to configure waiting behavior. + * @returns A promise which resolves once the network is idle. */ - abstract waitForNetworkIdle(options?: { - idleTime?: number; - timeout?: number; - }): Promise; - /* Excluded from this release type: _waitForNetworkIdle */ + waitForNetworkIdle(options?: WaitForNetworkIdleOptions): Promise; + /* Excluded from this release type: waitForNetworkIdle$ */ /** * Waits for a frame matching the given conditions to appear. * @@ -5541,7 +5526,7 @@ export declare abstract class Page extends EventEmitter { * * This is either the viewport set with the previous {@link Page.setViewport} * call or the default viewport set via - * {@link BrowserConnectOptions.defaultViewport}. + * {@link BrowserConnectOptions | BrowserConnectOptions.defaultViewport}. */ abstract viewport(): Viewport | null; /** @@ -5692,7 +5677,6 @@ export declare abstract class Page extends EventEmitter { }): Promise; screenshot(options?: Readonly): Promise; /* Excluded from this release type: _screenshot */ - /* Excluded from this release type: _getPDFOptions */ /** * Generates a PDF of the page with the `print` CSS media type. * @@ -6311,6 +6295,8 @@ export declare type PaperFormat = Uppercase | Capitalize { - const result = cosmiconfigSync('puppeteer').search(); + const result = cosmiconfigSync('puppeteer', { + searchStrategy: 'global', + }).search(); const configuration: Configuration = result ? result.config : {}; configuration.logLevel = (process.env['PUPPETEER_LOGLEVEL'] ?? @@ -56,12 +74,32 @@ export const getConfiguration = (): Configuration => { // Set skipDownload explicitly or from default configuration.skipDownload = Boolean( - process.env['PUPPETEER_SKIP_DOWNLOAD'] ?? - process.env['npm_config_puppeteer_skip_download'] ?? - process.env['npm_package_config_puppeteer_skip_download'] ?? + getBooleanEnvVar('PUPPETEER_SKIP_DOWNLOAD') ?? + getBooleanEnvVar('npm_config_puppeteer_skip_download') ?? + getBooleanEnvVar('npm_package_config_puppeteer_skip_download') ?? configuration.skipDownload ); + // Set skipChromeDownload explicitly or from default + configuration.skipChromeDownload = Boolean( + getBooleanEnvVar('PUPPETEER_SKIP_CHROME_DOWNLOAD') ?? + getBooleanEnvVar('npm_config_puppeteer_skip_chrome_download') ?? + getBooleanEnvVar('npm_package_config_puppeteer_skip_chrome_download') ?? + configuration.skipChromeDownload + ); + + // Set skipChromeDownload explicitly or from default + configuration.skipChromeHeadlessShellDownload = Boolean( + getBooleanEnvVar('PUPPETEER_SKIP_CHROME_HEADLESS_SHELL_DOWNLOAD') ?? + getBooleanEnvVar( + 'npm_config_puppeteer_skip_chrome_headless_shell_download' + ) ?? + getBooleanEnvVar( + 'npm_package_config_puppeteer_skip_chrome_headless_shell_download' + ) ?? + configuration.skipChromeHeadlessShellDownload + ); + // Prepare variables used in browser downloading if (!configuration.skipDownload) { configuration.browserRevision = diff --git a/Scripts/node_modules/puppeteer/src/node/cli.ts b/Scripts/node_modules/puppeteer/src/node/cli.ts index c846cfee..9a25c593 100644 --- a/Scripts/node_modules/puppeteer/src/node/cli.ts +++ b/Scripts/node_modules/puppeteer/src/node/cli.ts @@ -27,5 +27,6 @@ void new CLI({ pinnedBrowsers: { [Browser.CHROME]: PUPPETEER_REVISIONS.chrome, [Browser.FIREFOX]: PUPPETEER_REVISIONS.firefox, + [Browser.CHROMEHEADLESSSHELL]: PUPPETEER_REVISIONS['chrome-headless-shell'], }, }).run(process.argv); diff --git a/Scripts/node_modules/puppeteer/src/node/install.ts b/Scripts/node_modules/puppeteer/src/node/install.ts index 526148e2..76bad868 100644 --- a/Scripts/node_modules/puppeteer/src/node/install.ts +++ b/Scripts/node_modules/puppeteer/src/node/install.ts @@ -48,28 +48,91 @@ export async function downloadBrowser(): Promise { const unresolvedBuildId = configuration.browserRevision || PUPPETEER_REVISIONS[product] || 'latest'; + const unresolvedShellBuildId = + configuration.browserRevision || + PUPPETEER_REVISIONS['chrome-headless-shell'] || + 'latest'; - const buildId = await resolveBuildId(browser, platform, unresolvedBuildId); // TODO: deprecate downloadPath in favour of cacheDirectory. const cacheDir = configuration.downloadPath ?? configuration.cacheDirectory!; try { - const result = await install({ - browser, - cacheDir, - platform, - buildId, - downloadProgressCallback: makeProgressCallback(browser, buildId), - baseUrl: downloadBaseUrl, - }); + const installationJobs = []; - logPolitely( - `${supportedProducts[product]} (${result.buildId}) downloaded to ${result.path}` - ); + if (configuration.skipChromeDownload) { + logPolitely('**INFO** Skipping Chrome download as instructed.'); + } else { + const buildId = await resolveBuildId( + browser, + platform, + unresolvedBuildId + ); + installationJobs.push( + install({ + browser, + cacheDir, + platform, + buildId, + downloadProgressCallback: makeProgressCallback(browser, buildId), + baseUrl: downloadBaseUrl, + }) + .then(result => { + logPolitely( + `${supportedProducts[product]} (${result.buildId}) downloaded to ${result.path}` + ); + }) + .catch(error => { + throw new Error( + `ERROR: Failed to set up ${supportedProducts[product]} v${buildId}! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.`, + { + cause: error, + } + ); + }) + ); + } + + if (browser === Browser.CHROME) { + if (configuration.skipChromeHeadlessShellDownload) { + logPolitely('**INFO** Skipping Chrome download as instructed.'); + } else { + const shellBuildId = await resolveBuildId( + browser, + platform, + unresolvedShellBuildId + ); + + installationJobs.push( + install({ + browser: Browser.CHROMEHEADLESSSHELL, + cacheDir, + platform, + buildId: shellBuildId, + downloadProgressCallback: makeProgressCallback( + browser, + shellBuildId + ), + baseUrl: downloadBaseUrl, + }) + .then(result => { + logPolitely( + `${Browser.CHROMEHEADLESSSHELL} (${result.buildId}) downloaded to ${result.path}` + ); + }) + .catch(error => { + throw new Error( + `ERROR: Failed to set up ${Browser.CHROMEHEADLESSSHELL} v${shellBuildId}! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.`, + { + cause: error, + } + ); + }) + ); + } + } + + await Promise.all(installationJobs); } catch (error) { - console.error( - `ERROR: Failed to set up ${supportedProducts[product]} r${buildId}! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.` - ); console.error(error); process.exit(1); } diff --git a/Scripts/node_modules/socks/build/client/socksclient.js b/Scripts/node_modules/socks/build/client/socksclient.js index c3439169..09b1f557 100644 --- a/Scripts/node_modules/socks/build/client/socksclient.js +++ b/Scripts/node_modules/socks/build/client/socksclient.js @@ -12,13 +12,13 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.SocksClientError = exports.SocksClient = void 0; const events_1 = require("events"); const net = require("net"); -const ip = require("ip"); const smart_buffer_1 = require("smart-buffer"); const constants_1 = require("../common/constants"); const helpers_1 = require("../common/helpers"); const receivebuffer_1 = require("../common/receivebuffer"); const util_1 = require("../common/util"); Object.defineProperty(exports, "SocksClientError", { enumerable: true, get: function () { return util_1.SocksClientError; } }); +const ip_address_1 = require("ip-address"); class SocksClient extends events_1.EventEmitter { constructor(options) { super(); @@ -161,11 +161,11 @@ class SocksClient extends events_1.EventEmitter { // IPv4/IPv6/Hostname if (net.isIPv4(options.remoteHost.host)) { buff.writeUInt8(constants_1.Socks5HostType.IPv4); - buff.writeUInt32BE(ip.toLong(options.remoteHost.host)); + buff.writeUInt32BE((0, helpers_1.ipv4ToInt32)(options.remoteHost.host)); } else if (net.isIPv6(options.remoteHost.host)) { buff.writeUInt8(constants_1.Socks5HostType.IPv6); - buff.writeBuffer(ip.toBuffer(options.remoteHost.host)); + buff.writeBuffer((0, helpers_1.ipToBuffer)(options.remoteHost.host)); } else { buff.writeUInt8(constants_1.Socks5HostType.Hostname); @@ -189,10 +189,10 @@ class SocksClient extends events_1.EventEmitter { const hostType = buff.readUInt8(); let remoteHost; if (hostType === constants_1.Socks5HostType.IPv4) { - remoteHost = ip.fromLong(buff.readUInt32BE()); + remoteHost = (0, helpers_1.int32ToIpv4)(buff.readUInt32BE()); } else if (hostType === constants_1.Socks5HostType.IPv6) { - remoteHost = ip.toString(buff.readBuffer(16)); + remoteHost = ip_address_1.Address6.fromByteArray(Array.from(buff.readBuffer(16))).canonicalForm(); } else { remoteHost = buff.readString(buff.readUInt8()); @@ -401,7 +401,7 @@ class SocksClient extends events_1.EventEmitter { buff.writeUInt16BE(this.options.destination.port); // Socks 4 (IPv4) if (net.isIPv4(this.options.destination.host)) { - buff.writeBuffer(ip.toBuffer(this.options.destination.host)); + buff.writeBuffer((0, helpers_1.ipToBuffer)(this.options.destination.host)); buff.writeStringNT(userId); // Socks 4a (hostname) } @@ -433,7 +433,7 @@ class SocksClient extends events_1.EventEmitter { buff.readOffset = 2; const remoteHost = { port: buff.readUInt16BE(), - host: ip.fromLong(buff.readUInt32BE()), + host: (0, helpers_1.int32ToIpv4)(buff.readUInt32BE()), }; // If host is 0.0.0.0, set to proxy host. if (remoteHost.host === '0.0.0.0') { @@ -464,7 +464,7 @@ class SocksClient extends events_1.EventEmitter { buff.readOffset = 2; const remoteHost = { port: buff.readUInt16BE(), - host: ip.fromLong(buff.readUInt32BE()), + host: (0, helpers_1.int32ToIpv4)(buff.readUInt32BE()), }; this.setState(constants_1.SocksClientState.Established); this.removeInternalSocketHandlers(); @@ -610,11 +610,11 @@ class SocksClient extends events_1.EventEmitter { // ipv4, ipv6, domain? if (net.isIPv4(this.options.destination.host)) { buff.writeUInt8(constants_1.Socks5HostType.IPv4); - buff.writeBuffer(ip.toBuffer(this.options.destination.host)); + buff.writeBuffer((0, helpers_1.ipToBuffer)(this.options.destination.host)); } else if (net.isIPv6(this.options.destination.host)) { buff.writeUInt8(constants_1.Socks5HostType.IPv6); - buff.writeBuffer(ip.toBuffer(this.options.destination.host)); + buff.writeBuffer((0, helpers_1.ipToBuffer)(this.options.destination.host)); } else { buff.writeUInt8(constants_1.Socks5HostType.Hostname); @@ -652,7 +652,7 @@ class SocksClient extends events_1.EventEmitter { } buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4)); remoteHost = { - host: ip.fromLong(buff.readUInt32BE()), + host: (0, helpers_1.int32ToIpv4)(buff.readUInt32BE()), port: buff.readUInt16BE(), }; // If given host is 0.0.0.0, assume remote proxy ip instead. @@ -685,7 +685,7 @@ class SocksClient extends events_1.EventEmitter { } buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4)); remoteHost = { - host: ip.toString(buff.readBuffer(16)), + host: ip_address_1.Address6.fromByteArray(Array.from(buff.readBuffer(16))).canonicalForm(), port: buff.readUInt16BE(), }; } @@ -743,7 +743,7 @@ class SocksClient extends events_1.EventEmitter { } buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4)); remoteHost = { - host: ip.fromLong(buff.readUInt32BE()), + host: (0, helpers_1.int32ToIpv4)(buff.readUInt32BE()), port: buff.readUInt16BE(), }; // If given host is 0.0.0.0, assume remote proxy ip instead. @@ -776,7 +776,7 @@ class SocksClient extends events_1.EventEmitter { } buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4)); remoteHost = { - host: ip.toString(buff.readBuffer(16)), + host: ip_address_1.Address6.fromByteArray(Array.from(buff.readBuffer(16))).canonicalForm(), port: buff.readUInt16BE(), }; } diff --git a/Scripts/node_modules/socks/build/client/socksclient.js.map b/Scripts/node_modules/socks/build/client/socksclient.js.map index f01f317e..0cae2aad 100644 --- a/Scripts/node_modules/socks/build/client/socksclient.js.map +++ b/Scripts/node_modules/socks/build/client/socksclient.js.map @@ -1 +1 @@ -{"version":3,"file":"socksclient.js","sourceRoot":"","sources":["../../src/client/socksclient.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAoC;AACpC,2BAA2B;AAC3B,yBAAyB;AACzB,+CAAyC;AACzC,mDAkB6B;AAC7B,+CAG2B;AAC3B,2DAAsD;AACtD,yCAA8D;AAw7B5D,iGAx7BM,uBAAgB,OAw7BN;AA95BlB,MAAM,WAAY,SAAQ,qBAAY;IAgBpC,YAAY,OAA2B;QACrC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,qBACP,OAAO,CACX,CAAC;QAEF,8BAA8B;QAC9B,IAAA,oCAA0B,EAAC,OAAO,CAAC,CAAC;QAEpC,gBAAgB;QAChB,IAAI,CAAC,QAAQ,CAAC,4BAAgB,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,gBAAgB,CACrB,OAA2B,EAC3B,QAGS;QAET,OAAO,IAAI,OAAO,CAA8B,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAClE,8BAA8B;YAC9B,IAAI;gBACF,IAAA,oCAA0B,EAAC,OAAO,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;aAClD;YAAC,OAAO,GAAG,EAAE;gBACZ,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;oBAClC,QAAQ,CAAC,GAAG,CAAC,CAAC;oBACd,8DAA8D;oBAC9D,OAAO,OAAO,CAAC,GAAU,CAAC,CAAC,CAAC,oDAAoD;iBACjF;qBAAM;oBACL,OAAO,MAAM,CAAC,GAAG,CAAC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AC/C,8BAA8B;gBAC9B,MAAM,UAAU,GAAG,uCAA2B,CAAC,kBAAkB,CAAC;gBAClE,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;oBAC3C,IAAI,CAAC,4BAA4B,GAAG,UAAU,CAAC;oBAC/C,OAAO;gBACT,CAAC;gBAED,IAAI,GAAG,0BAAW,CAAC,UAAU,CAC3B,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAC5C,CAAC;gBAEF,UAAU,GAAG;oBACX,IAAI,EAAE,qBAAQ,CAAC,aAAa,CAC1B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAChC,CAAC,aAAa,EAAE;oBACjB,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE;iBAC1B,CAAC;YACJ,CAAC;YAED,IAAI,CAAC,QAAQ,CAAC,4BAAgB,CAAC,WAAW,CAAC,CAAC;YAC5C,IAAI,CAAC,4BAA4B,EAAE,CAAC;YACpC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,EAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAC,CAAC,CAAC;QAC9D,CAAC;IACH,CAAC;IAED,IAAI,kBAAkB;QACpB,yBACK,IAAI,CAAC,OAAO,EACf;IACJ,CAAC;CACF;AAGC,kCAAW"} \ No newline at end of file diff --git a/Scripts/node_modules/socks/build/common/constants.js b/Scripts/node_modules/socks/build/common/constants.js index 3c9ff90a..aaf16418 100644 --- a/Scripts/node_modules/socks/build/common/constants.js +++ b/Scripts/node_modules/socks/build/common/constants.js @@ -38,10 +38,10 @@ const SOCKS_INCOMING_PACKET_SIZES = { Socks5InitialHandshakeResponse: 2, Socks5UserPassAuthenticationResponse: 2, // Command response + incoming connection (bind) - Socks5ResponseHeader: 5, - Socks5ResponseIPv4: 10, - Socks5ResponseIPv6: 22, - Socks5ResponseHostname: (hostNameLength) => hostNameLength + 7, + Socks5ResponseHeader: 5, // We need at least 5 to read the hostname length, then we wait for the address+port information. + Socks5ResponseIPv4: 10, // 4 header + 4 ip + 2 port + Socks5ResponseIPv6: 22, // 4 header + 16 ip + 2 port + Socks5ResponseHostname: (hostNameLength) => hostNameLength + 7, // 4 header + 1 host length + host + 2 port // Command response + incoming connection (bind) Socks4Response: 8, // 2 header + 2 port + 4 ip }; @@ -51,23 +51,20 @@ var SocksCommand; SocksCommand[SocksCommand["connect"] = 1] = "connect"; SocksCommand[SocksCommand["bind"] = 2] = "bind"; SocksCommand[SocksCommand["associate"] = 3] = "associate"; -})(SocksCommand || (SocksCommand = {})); -exports.SocksCommand = SocksCommand; +})(SocksCommand || (exports.SocksCommand = SocksCommand = {})); var Socks4Response; (function (Socks4Response) { Socks4Response[Socks4Response["Granted"] = 90] = "Granted"; Socks4Response[Socks4Response["Failed"] = 91] = "Failed"; Socks4Response[Socks4Response["Rejected"] = 92] = "Rejected"; Socks4Response[Socks4Response["RejectedIdent"] = 93] = "RejectedIdent"; -})(Socks4Response || (Socks4Response = {})); -exports.Socks4Response = Socks4Response; +})(Socks4Response || (exports.Socks4Response = Socks4Response = {})); var Socks5Auth; (function (Socks5Auth) { Socks5Auth[Socks5Auth["NoAuth"] = 0] = "NoAuth"; Socks5Auth[Socks5Auth["GSSApi"] = 1] = "GSSApi"; Socks5Auth[Socks5Auth["UserPass"] = 2] = "UserPass"; -})(Socks5Auth || (Socks5Auth = {})); -exports.Socks5Auth = Socks5Auth; +})(Socks5Auth || (exports.Socks5Auth = Socks5Auth = {})); const SOCKS5_CUSTOM_AUTH_START = 0x80; exports.SOCKS5_CUSTOM_AUTH_START = SOCKS5_CUSTOM_AUTH_START; const SOCKS5_CUSTOM_AUTH_END = 0xfe; @@ -85,15 +82,13 @@ var Socks5Response; Socks5Response[Socks5Response["TTLExpired"] = 6] = "TTLExpired"; Socks5Response[Socks5Response["CommandNotSupported"] = 7] = "CommandNotSupported"; Socks5Response[Socks5Response["AddressNotSupported"] = 8] = "AddressNotSupported"; -})(Socks5Response || (Socks5Response = {})); -exports.Socks5Response = Socks5Response; +})(Socks5Response || (exports.Socks5Response = Socks5Response = {})); var Socks5HostType; (function (Socks5HostType) { Socks5HostType[Socks5HostType["IPv4"] = 1] = "IPv4"; Socks5HostType[Socks5HostType["Hostname"] = 3] = "Hostname"; Socks5HostType[Socks5HostType["IPv6"] = 4] = "IPv6"; -})(Socks5HostType || (Socks5HostType = {})); -exports.Socks5HostType = Socks5HostType; +})(Socks5HostType || (exports.Socks5HostType = Socks5HostType = {})); var SocksClientState; (function (SocksClientState) { SocksClientState[SocksClientState["Created"] = 0] = "Created"; @@ -109,6 +104,5 @@ var SocksClientState; SocksClientState[SocksClientState["Established"] = 10] = "Established"; SocksClientState[SocksClientState["Disconnected"] = 11] = "Disconnected"; SocksClientState[SocksClientState["Error"] = 99] = "Error"; -})(SocksClientState || (SocksClientState = {})); -exports.SocksClientState = SocksClientState; +})(SocksClientState || (exports.SocksClientState = SocksClientState = {})); //# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/Scripts/node_modules/socks/build/common/constants.js.map b/Scripts/node_modules/socks/build/common/constants.js.map index c1e070de..969af834 100644 --- a/Scripts/node_modules/socks/build/common/constants.js.map +++ b/Scripts/node_modules/socks/build/common/constants.js.map @@ -1 +1 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/common/constants.ts"],"names":[],"mappings":";;;AAIA,MAAM,eAAe,GAAG,KAAK,CAAC;AA4M5B,0CAAe;AAxMjB,kBAAkB;AAClB,MAAM,MAAM,GAAG;IACb,mBAAmB,EAAE,wFAAwF;IAC7G,+BAA+B,EAAE,oGAAoG;IACrI,wBAAwB,EAAE,8FAA8F;IACxH,oCAAoC,EAAE,2CAA2C;IACjF,uCAAuC,EAAE,uFAAuF;IAChI,8BAA8B,EAAE,4CAA4C;IAC5E,gCAAgC,EAAE,8EAA8E;IAChH,sCAAsC,EAAE,2DAA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c;AAlJhB,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,+CAAa,CAAA;IACb,+CAAa,CAAA;IACb,mDAAe,CAAA;AACjB,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AA+IC,gCAAU;AA7IZ,MAAM,wBAAwB,GAAG,IAAI,CAAC;AA0JpC,4DAAwB;AAzJ1B,MAAM,sBAAsB,GAAG,IAAI,CAAC;AA0JlC,wDAAsB;AAxJxB,MAAM,yBAAyB,GAAG,IAAI,CAAC;AAyJrC,8DAAyB;AAvJ3B,IAAK,cAUJ;AAVD,WAAK,cAAc;IACjB,yDAAc,CAAA;IACd,yDAAc,CAAA;IACd,+DAAiB,CAAA;IACjB,+EAAyB,CAAA;IACzB,yEAAsB,CAAA;IACtB,6EAAwB,CAAA;IACxB,+DAAiB,CAAA;IACjB,iFAA0B,CAAA;IAC1B,iFAA0B,CAAA;AAC5B,CAAC,EAVI,cAAc,KAAd,cAAc,QAUlB;AAgIC,wCAAc;AA9HhB,IAAK,cAIJ;AAJD,WAAK,cAAc;IACjB,mDAAW,CAAA;IACX,2DAAe,CAAA;IACf,mDAAW,CAAA;AACb,CAAC,EAJI,cAAc,KAAd,cAAc,QAIlB;AAyHC,wCAAc;AAvHhB,IAAK,gBAcJ;AAdD,WAAK,gBAAgB;IACnB,6DAAW,CAAA;IACX,mEAAc,CAAA;IACd,iEAAa,CAAA;IACb,uFAAwB,CAAA;IACxB,+GAAoC,CAAA;IACpC,mFAAsB,CAAA;IACtB,2GAAkC,CAAA;IAClC,mFAAsB,CAAA;IACtB,yFAAyB,CAAA;IACzB,iGAA6B,CAAA;IAC7B,sEAAgB,CAAA;IAChB,wEAAiB,CAAA;IACjB,0DAAU,CAAA;AACZ,CAAC,EAdI,gBAAgB,KAAhB,gBAAgB,QAcpB;AA2GC,4CAAgB"} \ No newline at end of file +{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/common/constants.ts"],"names":[],"mappings":";;;AAGA,MAAM,eAAe,GAAG,KAAK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AyB,CAAA;IACzB,iGAA6B,CAAA;IAC7B,sEAAgB,CAAA;IAChB,wEAAiB,CAAA;IACjB,0DAAU,CAAA;AACZ,CAAC,EAdI,gBAAgB,gCAAhB,gBAAgB,QAcpB"} \ No newline at end of file diff --git a/Scripts/node_modules/socks/build/common/helpers.js b/Scripts/node_modules/socks/build/common/helpers.js index f84db8f6..65bd95bd 100644 --- a/Scripts/node_modules/socks/build/common/helpers.js +++ b/Scripts/node_modules/socks/build/common/helpers.js @@ -1,9 +1,11 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0; +exports.ipToBuffer = exports.int32ToIpv4 = exports.ipv4ToInt32 = exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0; const util_1 = require("./util"); const constants_1 = require("./constants"); const stream = require("stream"); +const ip_address_1 = require("ip-address"); +const net = require("net"); /** * Validates the provided SocksClientOptions * @param options { SocksClientOptions } @@ -125,4 +127,36 @@ function isValidSocksProxy(proxy) { function isValidTimeoutValue(value) { return typeof value === 'number' && value > 0; } +function ipv4ToInt32(ip) { + const address = new ip_address_1.Address4(ip); + // Convert the IPv4 address parts to an integer + return address.toArray().reduce((acc, part) => (acc << 8) + part, 0); +} +exports.ipv4ToInt32 = ipv4ToInt32; +function int32ToIpv4(int32) { + // Extract each byte (octet) from the 32-bit integer + const octet1 = (int32 >>> 24) & 0xff; + const octet2 = (int32 >>> 16) & 0xff; + const octet3 = (int32 >>> 8) & 0xff; + const octet4 = int32 & 0xff; + // Combine the octets into a string in IPv4 format + return [octet1, octet2, octet3, octet4].join('.'); +} +exports.int32ToIpv4 = int32ToIpv4; +function ipToBuffer(ip) { + if (net.isIPv4(ip)) { + // Handle IPv4 addresses + const address = new ip_address_1.Address4(ip); + return Buffer.from(address.toArray()); + } + else if (net.isIPv6(ip)) { + // Handle IPv6 addresses + const address = new ip_address_1.Address6(ip); + return Buffer.from(address.toByteArray()); + } + else { + throw new Error('Invalid IP address format'); + } +} +exports.ipToBuffer = ipToBuffer; //# sourceMappingURL=helpers.js.map \ No newline at end of file diff --git a/Scripts/node_modules/socks/build/common/helpers.js.map b/Scripts/node_modules/socks/build/common/helpers.js.map index dae12486..554fcccf 100644 --- a/Scripts/node_modules/socks/build/common/helpers.js.map +++ b/Scripts/node_modules/socks/build/common/helpers.js.map @@ -1 +1 @@ -{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/common/helpers.ts"],"names":[],"mappings":";;;AAKA,iCAAwC;AACxC,2CAMqB;AACrB,iCAAiC;AAEjC;;;;GAIG;AACH,SAAS,0BAA0B,CACjC,OAA2B,EAC3B,gBAAgB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC;IAEnD,8BAA8B;IAC9B,IAAI,CAAC,wBAAY,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAClC,MAAM,IAAI,uBAAgB,CAAC,kBAAM,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;KACjE;IAED,6CAA6C;IAC7C,IAAI,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE;QACpD,MAAM,IAAI,uBAAgB,CAAC,kBAAM,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;KAC7E;IAED,oBAAoB;IACpB,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;QAChD,MAAM,IAAI,uBAAgB,CACxB,kBAAM,CAAC,oCAAoC,EAC3C,OAAO,CACR,CAAC;KACH;IAED,2BAA2B;IAC3B,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACrC,MAAM,IAAI,uBAAgB,CAAC,kBAAM,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;KAC5E;IAED,gCAAgC;IAChC,uBAAuB,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAEhD,gBAAgB;IAChB,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O,CAAC,WAAW,EAAE,CAAC,CAAC;IAC5C,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAC/C,CAAC;AACH,CAAC;AAZD,gCAYC"} \ No newline at end of file diff --git a/Scripts/node_modules/socks/build/common/receivebuffer.js.map b/Scripts/node_modules/socks/build/common/receivebuffer.js.map index af5e2209..ad86c8c8 100644 --- a/Scripts/node_modules/socks/build/common/receivebuffer.js.map +++ b/Scripts/node_modules/socks/build/common/receivebuffer.js.map @@ -1 +1 @@ -{"version":3,"file":"receivebuffer.js","sourceRoot":"","sources":["../../src/common/receivebuffer.ts"],"names":[],"mappings":";;;AAAA,MAAM,aAAa;IAKjB,YAAY,IAAI,GAAG,IAAI;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,IAAY;QACjB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YAC1B,MAAM,IAAI,KAAK,CACb,6DAA6D,CAC9D,CAAC;SACH;QAED,IAAI,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;YACnD,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;YACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,WAAW,CAC9B,IAAI,CAAC,GAAG,CACN,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,EACtC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CACjC,CACF,CAAC;YACF,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACvB;QAED,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACpC,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,IAAI,CAAC,MAAc;QACjB,IAAI,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE;YACxB,MAAM,IAAI,KAAK,CACb,mEAAmE,CACpE,CAAC;SACH;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,GAAG,CAAC,MAAc;QAChB,IAAI,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE;YACxB,MAAM,IAAI,KAAK,CACb,mEAAmE,CACpE,CAAC;SACH;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;QACjE,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC;QAEtB,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAEO,sCAAa"} \ No newline at end of file +{"version":3,"file":"receivebuffer.js","sourceRoot":"","sources":["../../src/common/receivebuffer.ts"],"names":[],"mappings":";;;AAAA,MAAM,aAAa;IAKjB,YAAY,IAAI,GAAG,IAAI;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;IAED,IA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CAAC;QACzC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;QACjE,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC;QAEtB,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAEO,sCAAa"} \ No newline at end of file diff --git a/Scripts/node_modules/socks/build/common/util.js.map b/Scripts/node_modules/socks/build/common/util.js.map index f1993233..21281b23 100644 --- a/Scripts/node_modules/socks/build/common/util.js.map +++ b/Scripts/node_modules/socks/build/common/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/common/util.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAM,gBAAiB,SAAQ,KAAK;IAClC,YACE,OAAe,EACR,OAAqD;QAE5D,KAAK,CAAC,OAAO,CAAC,CAAC;QAFR,YAAO,GAAP,OAAO,CAA8C;IAG9D,CAAC;CACF;AAuBuB,4CAAgB;AArBxC;;;GAGG;AACH,SAAS,YAAY,CAAC,KAAgB;IACpC,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QACzC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9C,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAC7C;AACH,CAAC;AAYyC,oCAAY"} \ No newline at end of file +{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/common/util.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAM,gBAAiB,SAAQ,KAAK;IAClC,YACE,OAAe,EACR,OAAqD;QAE5D,KAAK,CAAC,OAAO,CAAC,CAAC;QAFR,YAAO,GAAP,OAAO,CAA8C;IAG9D,CAAC;CACF;AAaO,4CAAgB;AAXxB;;;GAGG;AACH,SAAS,YAAY,CAAC,KAAgB;IACpC,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAC1C,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9C,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,CAAC;AACH,CAAC;AAEyB,oCAAY"} \ No newline at end of file diff --git a/Scripts/node_modules/socks/node_modules/ip/README.md b/Scripts/node_modules/socks/node_modules/ip/README.md deleted file mode 100644 index 22e5819f..00000000 --- a/Scripts/node_modules/socks/node_modules/ip/README.md +++ /dev/null @@ -1,90 +0,0 @@ -# IP -[![](https://badge.fury.io/js/ip.svg)](https://www.npmjs.com/package/ip) - -IP address utilities for node.js - -## Installation - -### npm -```shell -npm install ip -``` - -### git - -```shell -git clone https://github.com/indutny/node-ip.git -``` - -## Usage -Get your ip address, compare ip addresses, validate ip addresses, etc. - -```js -var ip = require('ip'); - -ip.address() // my ip address -ip.isEqual('::1', '::0:1'); // true -ip.toBuffer('127.0.0.1') // Buffer([127, 0, 0, 1]) -ip.toString(new Buffer([127, 0, 0, 1])) // 127.0.0.1 -ip.fromPrefixLen(24) // 255.255.255.0 -ip.mask('192.168.1.134', '255.255.255.0') // 192.168.1.0 -ip.cidr('192.168.1.134/26') // 192.168.1.128 -ip.not('255.255.255.0') // 0.0.0.255 -ip.or('192.168.1.134', '0.0.0.255') // 192.168.1.255 -ip.isPrivate('127.0.0.1') // true -ip.isV4Format('127.0.0.1'); // true -ip.isV6Format('::ffff:127.0.0.1'); // true - -// operate on buffers in-place -var buf = new Buffer(128); -var offset = 64; -ip.toBuffer('127.0.0.1', buf, offset); // [127, 0, 0, 1] at offset 64 -ip.toString(buf, offset, 4); // '127.0.0.1' - -// subnet information -ip.subnet('192.168.1.134', '255.255.255.192') -// { networkAddress: '192.168.1.128', -// firstAddress: '192.168.1.129', -// lastAddress: '192.168.1.190', -// broadcastAddress: '192.168.1.191', -// subnetMask: '255.255.255.192', -// subnetMaskLength: 26, -// numHosts: 62, -// length: 64, -// contains: function(addr){...} } -ip.cidrSubnet('192.168.1.134/26') -// Same as previous. - -// range checking -ip.cidrSubnet('192.168.1.134/26').contains('192.168.1.190') // true - - -// ipv4 long conversion -ip.toLong('127.0.0.1'); // 2130706433 -ip.fromLong(2130706433); // '127.0.0.1' -``` - -### License - -This software is licensed under the MIT License. - -Copyright Fedor Indutny, 2012. - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to permit -persons to whom the Software is furnished to do so, subject to the -following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Scripts/node_modules/socks/node_modules/ip/lib/ip.js b/Scripts/node_modules/socks/node_modules/ip/lib/ip.js deleted file mode 100644 index 4b2adb5a..00000000 --- a/Scripts/node_modules/socks/node_modules/ip/lib/ip.js +++ /dev/null @@ -1,422 +0,0 @@ -const ip = exports; -const { Buffer } = require('buffer'); -const os = require('os'); - -ip.toBuffer = function (ip, buff, offset) { - offset = ~~offset; - - let result; - - if (this.isV4Format(ip)) { - result = buff || Buffer.alloc(offset + 4); - ip.split(/\./g).map((byte) => { - result[offset++] = parseInt(byte, 10) & 0xff; - }); - } else if (this.isV6Format(ip)) { - const sections = ip.split(':', 8); - - let i; - for (i = 0; i < sections.length; i++) { - const isv4 = this.isV4Format(sections[i]); - let v4Buffer; - - if (isv4) { - v4Buffer = this.toBuffer(sections[i]); - sections[i] = v4Buffer.slice(0, 2).toString('hex'); - } - - if (v4Buffer && ++i < 8) { - sections.splice(i, 0, v4Buffer.slice(2, 4).toString('hex')); - } - } - - if (sections[0] === '') { - while (sections.length < 8) sections.unshift('0'); - } else if (sections[sections.length - 1] === '') { - while (sections.length < 8) sections.push('0'); - } else if (sections.length < 8) { - for (i = 0; i < sections.length && sections[i] !== ''; i++); - const argv = [i, 1]; - for (i = 9 - sections.length; i > 0; i--) { - argv.push('0'); - } - sections.splice(...argv); - } - - result = buff || Buffer.alloc(offset + 16); - for (i = 0; i < sections.length; i++) { - const word = parseInt(sections[i], 16); - result[offset++] = (word >> 8) & 0xff; - result[offset++] = word & 0xff; - } - } - - if (!result) { - throw Error(`Invalid ip address: ${ip}`); - } - - return result; -}; - -ip.toString = function (buff, offset, length) { - offset = ~~offset; - length = length || (buff.length - offset); - - let result = []; - if (length === 4) { - // IPv4 - for (let i = 0; i < length; i++) { - result.push(buff[offset + i]); - } - result = result.join('.'); - } else if (length === 16) { - // IPv6 - for (let i = 0; i < length; i += 2) { - result.push(buff.readUInt16BE(offset + i).toString(16)); - } - result = result.join(':'); - result = result.replace(/(^|:)0(:0)*:0(:|$)/, '$1::$3'); - result = result.replace(/:{3,4}/, '::'); - } - - return result; -}; - -const ipv4Regex = /^(\d{1,3}\.){3,3}\d{1,3}$/; -const ipv6Regex = /^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i; - -ip.isV4Format = function (ip) { - return ipv4Regex.test(ip); -}; - -ip.isV6Format = function (ip) { - return ipv6Regex.test(ip); -}; - -function _normalizeFamily(family) { - if (family === 4) { - return 'ipv4'; - } - if (family === 6) { - return 'ipv6'; - } - return family ? family.toLowerCase() : 'ipv4'; -} - -ip.fromPrefixLen = function (prefixlen, family) { - if (prefixlen > 32) { - family = 'ipv6'; - } else { - family = _normalizeFamily(family); - } - - let len = 4; - if (family === 'ipv6') { - len = 16; - } - const buff = Buffer.alloc(len); - - for (let i = 0, n = buff.length; i < n; ++i) { - let bits = 8; - if (prefixlen < 8) { - bits = prefixlen; - } - prefixlen -= bits; - - buff[i] = ~(0xff >> bits) & 0xff; - } - - return ip.toString(buff); -}; - -ip.mask = function (addr, mask) { - addr = ip.toBuffer(addr); - mask = ip.toBuffer(mask); - - const result = Buffer.alloc(Math.max(addr.length, mask.length)); - - // Same protocol - do bitwise and - let i; - if (addr.length === mask.length) { - for (i = 0; i < addr.length; i++) { - result[i] = addr[i] & mask[i]; - } - } else if (mask.length === 4) { - // IPv6 address and IPv4 mask - // (Mask low bits) - for (i = 0; i < mask.length; i++) { - result[i] = addr[addr.length - 4 + i] & mask[i]; - } - } else { - // IPv6 mask and IPv4 addr - for (i = 0; i < result.length - 6; i++) { - result[i] = 0; - } - - // ::ffff:ipv4 - result[10] = 0xff; - result[11] = 0xff; - for (i = 0; i < addr.length; i++) { - result[i + 12] = addr[i] & mask[i + 12]; - } - i += 12; - } - for (; i < result.length; i++) { - result[i] = 0; - } - - return ip.toString(result); -}; - -ip.cidr = function (cidrString) { - const cidrParts = cidrString.split('/'); - - const addr = cidrParts[0]; - if (cidrParts.length !== 2) { - throw new Error(`invalid CIDR subnet: ${addr}`); - } - - const mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10)); - - return ip.mask(addr, mask); -}; - -ip.subnet = function (addr, mask) { - const networkAddress = ip.toLong(ip.mask(addr, mask)); - - // Calculate the mask's length. - const maskBuffer = ip.toBuffer(mask); - let maskLength = 0; - - for (let i = 0; i < maskBuffer.length; i++) { - if (maskBuffer[i] === 0xff) { - maskLength += 8; - } else { - let octet = maskBuffer[i] & 0xff; - while (octet) { - octet = (octet << 1) & 0xff; - maskLength++; - } - } - } - - const numberOfAddresses = 2 ** (32 - maskLength); - - return { - networkAddress: ip.fromLong(networkAddress), - firstAddress: numberOfAddresses <= 2 - ? ip.fromLong(networkAddress) - : ip.fromLong(networkAddress + 1), - lastAddress: numberOfAddresses <= 2 - ? ip.fromLong(networkAddress + numberOfAddresses - 1) - : ip.fromLong(networkAddress + numberOfAddresses - 2), - broadcastAddress: ip.fromLong(networkAddress + numberOfAddresses - 1), - subnetMask: mask, - subnetMaskLength: maskLength, - numHosts: numberOfAddresses <= 2 - ? numberOfAddresses : numberOfAddresses - 2, - length: numberOfAddresses, - contains(other) { - return networkAddress === ip.toLong(ip.mask(other, mask)); - }, - }; -}; - -ip.cidrSubnet = function (cidrString) { - const cidrParts = cidrString.split('/'); - - const addr = cidrParts[0]; - if (cidrParts.length !== 2) { - throw new Error(`invalid CIDR subnet: ${addr}`); - } - - const mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10)); - - return ip.subnet(addr, mask); -}; - -ip.not = function (addr) { - const buff = ip.toBuffer(addr); - for (let i = 0; i < buff.length; i++) { - buff[i] = 0xff ^ buff[i]; - } - return ip.toString(buff); -}; - -ip.or = function (a, b) { - a = ip.toBuffer(a); - b = ip.toBuffer(b); - - // same protocol - if (a.length === b.length) { - for (let i = 0; i < a.length; ++i) { - a[i] |= b[i]; - } - return ip.toString(a); - - // mixed protocols - } - let buff = a; - let other = b; - if (b.length > a.length) { - buff = b; - other = a; - } - - const offset = buff.length - other.length; - for (let i = offset; i < buff.length; ++i) { - buff[i] |= other[i - offset]; - } - - return ip.toString(buff); -}; - -ip.isEqual = function (a, b) { - a = ip.toBuffer(a); - b = ip.toBuffer(b); - - // Same protocol - if (a.length === b.length) { - for (let i = 0; i < a.length; i++) { - if (a[i] !== b[i]) return false; - } - return true; - } - - // Swap - if (b.length === 4) { - const t = b; - b = a; - a = t; - } - - // a - IPv4, b - IPv6 - for (let i = 0; i < 10; i++) { - if (b[i] !== 0) return false; - } - - const word = b.readUInt16BE(10); - if (word !== 0 && word !== 0xffff) return false; - - for (let i = 0; i < 4; i++) { - if (a[i] !== b[i + 12]) return false; - } - - return true; -}; - -ip.isPrivate = function (addr) { - return /^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i - .test(addr) - || /^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) - || /^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i - .test(addr) - || /^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) - || /^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) - || /^f[cd][0-9a-f]{2}:/i.test(addr) - || /^fe80:/i.test(addr) - || /^::1$/.test(addr) - || /^::$/.test(addr); -}; - -ip.isPublic = function (addr) { - return !ip.isPrivate(addr); -}; - -ip.isLoopback = function (addr) { - return /^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/ - .test(addr) - || /^fe80::1$/.test(addr) - || /^::1$/.test(addr) - || /^::$/.test(addr); -}; - -ip.loopback = function (family) { - // - // Default to `ipv4` - // - family = _normalizeFamily(family); - - if (family !== 'ipv4' && family !== 'ipv6') { - throw new Error('family must be ipv4 or ipv6'); - } - - return family === 'ipv4' ? '127.0.0.1' : 'fe80::1'; -}; - -// -// ### function address (name, family) -// #### @name {string|'public'|'private'} **Optional** Name or security -// of the network interface. -// #### @family {ipv4|ipv6} **Optional** IP family of the address (defaults -// to ipv4). -// -// Returns the address for the network interface on the current system with -// the specified `name`: -// * String: First `family` address of the interface. -// If not found see `undefined`. -// * 'public': the first public ip address of family. -// * 'private': the first private ip address of family. -// * undefined: First address with `ipv4` or loopback address `127.0.0.1`. -// -ip.address = function (name, family) { - const interfaces = os.networkInterfaces(); - - // - // Default to `ipv4` - // - family = _normalizeFamily(family); - - // - // If a specific network interface has been named, - // return the address. - // - if (name && name !== 'private' && name !== 'public') { - const res = interfaces[name].filter((details) => { - const itemFamily = _normalizeFamily(details.family); - return itemFamily === family; - }); - if (res.length === 0) { - return undefined; - } - return res[0].address; - } - - const all = Object.keys(interfaces).map((nic) => { - // - // Note: name will only be `public` or `private` - // when this is called. - // - const addresses = interfaces[nic].filter((details) => { - details.family = _normalizeFamily(details.family); - if (details.family !== family || ip.isLoopback(details.address)) { - return false; - } if (!name) { - return true; - } - - return name === 'public' ? ip.isPrivate(details.address) - : ip.isPublic(details.address); - }); - - return addresses.length ? addresses[0].address : undefined; - }).filter(Boolean); - - return !all.length ? ip.loopback(family) : all[0]; -}; - -ip.toLong = function (ip) { - let ipl = 0; - ip.split('.').forEach((octet) => { - ipl <<= 8; - ipl += parseInt(octet); - }); - return (ipl >>> 0); -}; - -ip.fromLong = function (ipl) { - return (`${ipl >>> 24}.${ - ipl >> 16 & 255}.${ - ipl >> 8 & 255}.${ - ipl & 255}`); -}; diff --git a/Scripts/node_modules/socks/node_modules/ip/package.json b/Scripts/node_modules/socks/node_modules/ip/package.json deleted file mode 100644 index f0d95e9b..00000000 --- a/Scripts/node_modules/socks/node_modules/ip/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "ip", - "version": "2.0.0", - "author": "Fedor Indutny ", - "homepage": "https://github.com/indutny/node-ip", - "repository": { - "type": "git", - "url": "http://github.com/indutny/node-ip.git" - }, - "files": [ - "lib", - "README.md" - ], - "main": "lib/ip", - "devDependencies": { - "eslint": "^8.15.0", - "mocha": "^10.0.0" - }, - "scripts": { - "lint": "eslint lib/*.js test/*.js", - "test": "npm run lint && mocha --reporter spec test/*-test.js", - "fix": "npm run lint -- --fix" - }, - "license": "MIT" -} diff --git a/Scripts/node_modules/socks/package.json b/Scripts/node_modules/socks/package.json index 0f5054b9..db8003e7 100644 --- a/Scripts/node_modules/socks/package.json +++ b/Scripts/node_modules/socks/package.json @@ -1,7 +1,7 @@ { "name": "socks", "private": false, - "version": "2.7.1", + "version": "2.8.1", "description": "Fully featured SOCKS proxy client supporting SOCKSv4, SOCKSv4a, and SOCKSv5. Includes Bind and Associate functionality.", "main": "build/index.js", "typings": "typings/index.d.ts", @@ -23,7 +23,7 @@ "socks5" ], "engines": { - "node": ">= 10.13.0", + "node": ">= 10.0.0", "npm": ">= 3.0.0" }, "author": "Josh Glazebrook", @@ -33,19 +33,18 @@ "license": "MIT", "readmeFilename": "README.md", "devDependencies": { - "@types/ip": "1.1.0", - "@types/mocha": "^9.1.1", - "@types/node": "^18.0.6", - "@typescript-eslint/eslint-plugin": "^5.30.6", - "@typescript-eslint/parser": "^5.30.6", + "@types/mocha": "^10.0.6", + "@types/node": "^20.11.17", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", "eslint": "^8.20.0", "mocha": "^10.0.0", - "prettier": "^2.7.1", + "prettier": "^3.2.5", "ts-node": "^10.9.1", - "typescript": "^4.7.4" + "typescript": "^5.3.3" }, "dependencies": { - "ip": "^2.0.0", + "ip-address": "^9.0.5", "smart-buffer": "^4.2.0" }, "scripts": { @@ -53,6 +52,7 @@ "test": "NODE_ENV=test mocha --recursive --require ts-node/register test/**/*.ts", "prettier": "prettier --write ./src/**/*.ts --config .prettierrc.yaml", "lint": "eslint 'src/**/*.ts'", - "build": "rm -rf build typings && prettier --write ./src/**/*.ts --config .prettierrc.yaml && tsc -p ." + "build": "rm -rf build typings && prettier --write ./src/**/*.ts --config .prettierrc.yaml && tsc -p .", + "build-raw": "rm -rf build typings && tsc -p ." } } diff --git a/Scripts/node_modules/socks/typings/common/constants.d.ts b/Scripts/node_modules/socks/typings/common/constants.d.ts index 32a57052..475dee35 100644 --- a/Scripts/node_modules/socks/typings/common/constants.d.ts +++ b/Scripts/node_modules/socks/typings/common/constants.d.ts @@ -3,9 +3,8 @@ /// import { Duplex } from 'stream'; import { Socket, SocketConnectOpts } from 'net'; -import { RequireOnlyOne } from './util'; declare const DEFAULT_TIMEOUT = 30000; -declare type SocksProxyType = 4 | 5; +type SocksProxyType = 4 | 5; declare const ERRORS: { InvalidSocksCommand: string; InvalidSocksCommandForOperation: string; @@ -44,7 +43,7 @@ declare const SOCKS_INCOMING_PACKET_SIZES: { Socks5ResponseHostname: (hostNameLength: number) => number; Socks4Response: number; }; -declare type SocksCommandOption = 'connect' | 'bind' | 'associate'; +type SocksCommandOption = 'connect' | 'bind' | 'associate'; declare enum SocksCommand { connect = 1, bind = 2, @@ -98,7 +97,7 @@ declare enum SocksClientState { /** * Represents a SocksProxy */ -declare type SocksProxy = RequireOnlyOne<{ +interface SocksProxy { ipaddress?: string; host?: string; port: number; @@ -109,7 +108,7 @@ declare type SocksProxy = RequireOnlyOne<{ custom_auth_request_handler?: () => Promise; custom_auth_response_size?: number; custom_auth_response_handler?: (data: Buffer) => Promise; -}, 'host' | 'ipaddress'>; +} /** * Represents a remote host */ @@ -143,7 +142,7 @@ interface SocksClientEstablishedEvent { socket: Socket; remoteHost?: SocksRemoteHost; } -declare type SocksClientBoundEvent = SocksClientEstablishedEvent; +type SocksClientBoundEvent = SocksClientEstablishedEvent; interface SocksUDPFrameDetails { frameNumber?: number; remoteHost: SocksRemoteHost; diff --git a/Scripts/node_modules/socks/typings/common/helpers.d.ts b/Scripts/node_modules/socks/typings/common/helpers.d.ts index 8c3a1069..5bad9fe1 100644 --- a/Scripts/node_modules/socks/typings/common/helpers.d.ts +++ b/Scripts/node_modules/socks/typings/common/helpers.d.ts @@ -1,3 +1,4 @@ +/// import { SocksClientOptions, SocksClientChainOptions } from '../client/socksclient'; /** * Validates the provided SocksClientOptions @@ -11,3 +12,6 @@ declare function validateSocksClientOptions(options: SocksClientOptions, accepte */ declare function validateSocksClientChainOptions(options: SocksClientChainOptions): void; export { validateSocksClientOptions, validateSocksClientChainOptions }; +export declare function ipv4ToInt32(ip: string): number; +export declare function int32ToIpv4(int32: number): string; +export declare function ipToBuffer(ip: string): Buffer; diff --git a/Scripts/node_modules/socks/typings/common/util.d.ts b/Scripts/node_modules/socks/typings/common/util.d.ts index 83f20e7b..86120262 100644 --- a/Scripts/node_modules/socks/typings/common/util.d.ts +++ b/Scripts/node_modules/socks/typings/common/util.d.ts @@ -11,7 +11,4 @@ declare class SocksClientError extends Error { * @param array The array to shuffle. */ declare function shuffleArray(array: unknown[]): void; -declare type RequireOnlyOne = Pick> & { - [K in Keys]?: Required> & Partial, undefined>>; -}[Keys]; -export { RequireOnlyOne, SocksClientError, shuffleArray }; +export { SocksClientError, shuffleArray }; diff --git a/Scripts/node_modules/sprintf-js/CONTRIBUTORS.md b/Scripts/node_modules/sprintf-js/CONTRIBUTORS.md new file mode 100644 index 00000000..a16608e9 --- /dev/null +++ b/Scripts/node_modules/sprintf-js/CONTRIBUTORS.md @@ -0,0 +1,26 @@ +Alexander Rose [@arose](https://github.com/arose) +Alexandru Mărășteanu [@alexei](https://github.com/alexei) +Andras [@andrasq](https://github.com/andrasq) +Benoit Giannangeli [@giann](https://github.com/giann) +Branden Visser [@mrvisser](https://github.com/mrvisser) +David Baird +daurnimator [@daurnimator](https://github.com/daurnimator) +Doug Beck [@beck](https://github.com/beck) +Dzmitry Litskalau [@litmit](https://github.com/litmit) +Fred Ludlow [@fredludlow](https://github.com/fredludlow) +Hans Pufal +Henry [@alograg](https://github.com/alograg) +Johnny Shields [@johnnyshields](https://github.com/johnnyshields) +Kamal Abdali +Matt Simerson [@msimerson](https://github.com/msimerson) +Maxime Robert [@marob](https://github.com/marob) +MeriemKhelifi [@MeriemKhelifi](https://github.com/MeriemKhelifi) +Michael Schramm [@wodka](https://github.com/wodka) +Nazar Mokrynskyi [@nazar-pc](https://github.com/nazar-pc) +Oliver Salzburg [@oliversalzburg](https://github.com/oliversalzburg) +Pablo [@ppollono](https://github.com/ppollono) +Rabehaja Stevens [@RABEHAJA-STEVENS](https://github.com/RABEHAJA-STEVENS) +Raphael Pigulla [@pigulla](https://github.com/pigulla) +rebeccapeltz [@rebeccapeltz](https://github.com/rebeccapeltz) +Stefan Tingström [@stingstrom](https://github.com/stingstrom) +Tim Gates [@timgates42](https://github.com/timgates42) diff --git a/Scripts/node_modules/sprintf-js/LICENSE b/Scripts/node_modules/sprintf-js/LICENSE new file mode 100644 index 00000000..83f832a2 --- /dev/null +++ b/Scripts/node_modules/sprintf-js/LICENSE @@ -0,0 +1,24 @@ +Copyright (c) 2007-present, Alexandru Mărășteanu +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of this software nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/Scripts/node_modules/sprintf-js/README.md b/Scripts/node_modules/sprintf-js/README.md new file mode 100644 index 00000000..8ef74f53 --- /dev/null +++ b/Scripts/node_modules/sprintf-js/README.md @@ -0,0 +1,143 @@ +# sprintf-js + +[![Build Status][travisci-image]][travisci-url] [![NPM Version][npm-image]][npm-url] [![Dependency Status][dependencies-image]][dependencies-url] [![devDependency Status][dev-dependencies-image]][dev-dependencies-url] + +[travisci-image]: https://travis-ci.org/alexei/sprintf.js.svg?branch=master +[travisci-url]: https://travis-ci.org/alexei/sprintf.js + +[npm-image]: https://badge.fury.io/js/sprintf-js.svg +[npm-url]: https://badge.fury.io/js/sprintf-js + +[dependencies-image]: https://david-dm.org/alexei/sprintf.js.svg +[dependencies-url]: https://david-dm.org/alexei/sprintf.js + +[dev-dependencies-image]: https://david-dm.org/alexei/sprintf.js/dev-status.svg +[dev-dependencies-url]: https://david-dm.org/alexei/sprintf.js#info=devDependencies + +**sprintf-js** is a complete open source JavaScript `sprintf` implementation for the **browser** and **Node.js**. + +**Note: as of v1.1.1 you might need some polyfills for older environments. See [Support](#support) section below.** + +## Usage + + var sprintf = require('sprintf-js').sprintf, + vsprintf = require('sprintf-js').vsprintf + + sprintf('%2$s %3$s a %1$s', 'cracker', 'Polly', 'wants') + vsprintf('The first 4 letters of the english alphabet are: %s, %s, %s and %s', ['a', 'b', 'c', 'd']) + +## Installation + +### NPM + + npm install sprintf-js + +### Bower + + bower install sprintf + +## API + +### `sprintf` + +Returns a formatted string: + + string sprintf(string format, mixed arg1?, mixed arg2?, ...) + +### `vsprintf` + +Same as `sprintf` except it takes an array of arguments, rather than a variable number of arguments: + + string vsprintf(string format, array arguments?) + +## Format specification + +The placeholders in the format string are marked by `%` and are followed by one or more of these elements, in this order: + +* An optional number followed by a `$` sign that selects which argument index to use for the value. If not specified, arguments will be placed in the same order as the placeholders in the input string. +* An optional `+` sign that forces to precede the result with a plus or minus sign on numeric values. By default, only the `-` sign is used on negative numbers. +* An optional padding specifier that says what character to use for padding (if specified). Possible values are `0` or any other character preceded by a `'` (single quote). The default is to pad with *spaces*. +* An optional `-` sign, that causes `sprintf` to left-align the result of this placeholder. The default is to right-align the result. +* An optional number, that says how many characters the result should have. If the value to be returned is shorter than this number, the result will be padded. When used with the `j` (JSON) type specifier, the padding length specifies the tab size used for indentation. +* An optional precision modifier, consisting of a `.` (dot) followed by a number, that says how many digits should be displayed for floating point numbers. When used with the `g` type specifier, it specifies the number of significant digits. When used on a string, it causes the result to be truncated. +* A type specifier that can be any of: + * `%` — yields a literal `%` character + * `b` — yields an integer as a binary number + * `c` — yields an integer as the character with that ASCII value + * `d` or `i` — yields an integer as a signed decimal number + * `e` — yields a float using scientific notation + * `u` — yields an integer as an unsigned decimal number + * `f` — yields a float as is; see notes on precision above + * `g` — yields a float as is; see notes on precision above + * `o` — yields an integer as an octal number + * `s` — yields a string as is + * `t` — yields `true` or `false` + * `T` — yields the type of the argument1 + * `v` — yields the primitive value of the specified argument + * `x` — yields an integer as a hexadecimal number (lower-case) + * `X` — yields an integer as a hexadecimal number (upper-case) + * `j` — yields a JavaScript object or array as a JSON encoded string + +## Features + +### Argument swapping + +You can also swap the arguments. That is, the order of the placeholders doesn't have to match the order of the arguments. You can do that by simply indicating in the format string which arguments the placeholders refer to: + + sprintf('%2$s %3$s a %1$s', 'cracker', 'Polly', 'wants') + +And, of course, you can repeat the placeholders without having to increase the number of arguments. + +### Named arguments + +Format strings may contain replacement fields rather than positional placeholders. Instead of referring to a certain argument, you can now refer to a certain key within an object. Replacement fields are surrounded by rounded parentheses - `(` and `)` - and begin with a keyword that refers to a key: + + var user = { + name: 'Dolly', + } + sprintf('Hello %(name)s', user) // Hello Dolly + +Keywords in replacement fields can be optionally followed by any number of keywords or indexes: + + var users = [ + {name: 'Dolly'}, + {name: 'Molly'}, + {name: 'Polly'}, + ] + sprintf('Hello %(users[0].name)s, %(users[1].name)s and %(users[2].name)s', {users: users}) // Hello Dolly, Molly and Polly + +Note: mixing positional and named placeholders is not (yet) supported + +### Computed values + +You can pass in a function as a dynamic value and it will be invoked (with no arguments) in order to compute the value on the fly. + + sprintf('Current date and time: %s', function() { return new Date().toString() }) + +### AngularJS + +You can use `sprintf` and `vsprintf` (also aliased as `fmt` and `vfmt` respectively) in your AngularJS projects. See `demo/`. + +## Support + +### Node.js + +`sprintf-js` runs in all active Node versions (4.x+). + +### Browser + +`sprintf-js` should work in all modern browsers. As of v1.1.1, you might need polyfills for the following: + + - `String.prototype.repeat()` (any IE) + - `Array.isArray()` (IE < 9) + - `Object.create()` (IE < 9) + +YMMV + +## License + +**sprintf-js** is licensed under the terms of the BSD 3-Clause License. + +## Notes + +1 `sprintf` doesn't use the `typeof` operator. As such, the value `null` is a `null`, an array is an `array` (not an `object`), a date value is a `date` etc. diff --git a/Scripts/node_modules/sprintf-js/dist/.gitattributes b/Scripts/node_modules/sprintf-js/dist/.gitattributes new file mode 100644 index 00000000..d35bca01 --- /dev/null +++ b/Scripts/node_modules/sprintf-js/dist/.gitattributes @@ -0,0 +1,4 @@ +#ignore all generated files from diff +#also skip line ending check +*.js -diff -text +*.map -diff -text diff --git a/Scripts/node_modules/sprintf-js/dist/angular-sprintf.min.js b/Scripts/node_modules/sprintf-js/dist/angular-sprintf.min.js new file mode 100644 index 00000000..5dff8c54 --- /dev/null +++ b/Scripts/node_modules/sprintf-js/dist/angular-sprintf.min.js @@ -0,0 +1,3 @@ +/*! sprintf-js v1.1.3 | Copyright (c) 2007-present, Alexandru Mărășteanu | BSD-3-Clause */ +!function(){"use strict";angular.module("sprintf",[]).filter("sprintf",function(){return function(){return sprintf.apply(null,arguments)}}).filter("fmt",["$filter",function(t){return t("sprintf")}]).filter("vsprintf",function(){return function(t,n){return vsprintf(t,n)}}).filter("vfmt",["$filter",function(t){return t("vsprintf")}])}(); +//# sourceMappingURL=angular-sprintf.min.js.map diff --git a/Scripts/node_modules/sprintf-js/dist/angular-sprintf.min.js.map b/Scripts/node_modules/sprintf-js/dist/angular-sprintf.min.js.map new file mode 100644 index 00000000..d30f1a38 --- /dev/null +++ b/Scripts/node_modules/sprintf-js/dist/angular-sprintf.min.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["angular-sprintf.js"],"names":["angular","module","filter","sprintf","apply","arguments","$filter","format","argv","vsprintf"],"mappings":";CAEC,WACG,aAEAA,QACIC,OAAO,UAAW,IAClBC,OAAO,UAAW,WACd,OAAO,WACH,OAAOC,QAAQC,MAAM,KAAMC,cAGnCH,OAAO,MAAO,CAAC,UAAW,SAASI,GAC/B,OAAOA,EAAQ,cAEnBJ,OAAO,WAAY,WACf,OAAO,SAASK,EAAQC,GACpB,OAAOC,SAASF,EAAQC,MAGhCN,OAAO,OAAQ,CAAC,UAAW,SAASI,GAChC,OAAOA,EAAQ,eAnB1B","file":"angular-sprintf.min.js","sourcesContent":["/* global angular, sprintf, vsprintf */\n\n!function() {\n 'use strict'\n\n angular.\n module('sprintf', []).\n filter('sprintf', function() {\n return function() {\n return sprintf.apply(null, arguments)\n }\n }).\n filter('fmt', ['$filter', function($filter) {\n return $filter('sprintf')\n }]).\n filter('vsprintf', function() {\n return function(format, argv) {\n return vsprintf(format, argv)\n }\n }).\n filter('vfmt', ['$filter', function($filter) {\n return $filter('vsprintf')\n }])\n}(); // eslint-disable-line\n"]} \ No newline at end of file diff --git a/Scripts/node_modules/sprintf-js/dist/sprintf.min.js b/Scripts/node_modules/sprintf-js/dist/sprintf.min.js new file mode 100644 index 00000000..ed09637e --- /dev/null +++ b/Scripts/node_modules/sprintf-js/dist/sprintf.min.js @@ -0,0 +1,3 @@ +/*! sprintf-js v1.1.3 | Copyright (c) 2007-present, Alexandru Mărășteanu | BSD-3-Clause */ +!function(){"use strict";var g={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function y(e){return function(e,t){var r,n,i,s,a,o,p,c,l,u=1,f=e.length,d="";for(n=0;n>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}g.json.test(s.type)?d+=r:(!g.number.test(s.type)||c&&!s.sign?l="":(l=c?"+":"-",r=r.toString().replace(g.sign,"")),o=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",p=s.width-(l+r).length,a=s.width&&0= 0\n }\n\n switch (ph.type) {\n case 'b':\n arg = parseInt(arg, 10).toString(2)\n break\n case 'c':\n arg = String.fromCharCode(parseInt(arg, 10))\n break\n case 'd':\n case 'i':\n arg = parseInt(arg, 10)\n break\n case 'j':\n arg = JSON.stringify(arg, null, ph.width ? parseInt(ph.width) : 0)\n break\n case 'e':\n arg = ph.precision ? parseFloat(arg).toExponential(ph.precision) : parseFloat(arg).toExponential()\n break\n case 'f':\n arg = ph.precision ? parseFloat(arg).toFixed(ph.precision) : parseFloat(arg)\n break\n case 'g':\n arg = ph.precision ? String(Number(arg.toPrecision(ph.precision))) : parseFloat(arg)\n break\n case 'o':\n arg = (parseInt(arg, 10) >>> 0).toString(8)\n break\n case 's':\n arg = String(arg)\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 't':\n arg = String(!!arg)\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'T':\n arg = Object.prototype.toString.call(arg).slice(8, -1).toLowerCase()\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'u':\n arg = parseInt(arg, 10) >>> 0\n break\n case 'v':\n arg = arg.valueOf()\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg)\n break\n case 'x':\n arg = (parseInt(arg, 10) >>> 0).toString(16)\n break\n case 'X':\n arg = (parseInt(arg, 10) >>> 0).toString(16).toUpperCase()\n break\n }\n if (re.json.test(ph.type)) {\n output += arg\n }\n else {\n if (re.number.test(ph.type) && (!is_positive || ph.sign)) {\n sign = is_positive ? '+' : '-'\n arg = arg.toString().replace(re.sign, '')\n }\n else {\n sign = ''\n }\n pad_character = ph.pad_char ? ph.pad_char === '0' ? '0' : ph.pad_char.charAt(1) : ' '\n pad_length = ph.width - (sign + arg).length\n pad = ph.width ? (pad_length > 0 ? pad_character.repeat(pad_length) : '') : ''\n output += ph.align ? sign + arg + pad : (pad_character === '0' ? sign + pad + arg : pad + sign + arg)\n }\n }\n }\n return output\n }\n\n var sprintf_cache = Object.create(null)\n\n function sprintf_parse(fmt) {\n if (sprintf_cache[fmt]) {\n return sprintf_cache[fmt]\n }\n\n var _fmt = fmt, match, parse_tree = [], arg_names = 0\n while (_fmt) {\n if ((match = re.text.exec(_fmt)) !== null) {\n parse_tree.push(match[0])\n }\n else if ((match = re.modulo.exec(_fmt)) !== null) {\n parse_tree.push('%')\n }\n else if ((match = re.placeholder.exec(_fmt)) !== null) {\n if (match[2]) {\n arg_names |= 1\n var field_list = [], replacement_field = match[2], field_match = []\n if ((field_match = re.key.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {\n if ((field_match = re.key_access.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n }\n else if ((field_match = re.index_access.exec(replacement_field)) !== null) {\n field_list.push(field_match[1])\n }\n else {\n throw new SyntaxError('[sprintf] failed to parse named argument key')\n }\n }\n }\n else {\n throw new SyntaxError('[sprintf] failed to parse named argument key')\n }\n match[2] = field_list\n }\n else {\n arg_names |= 2\n }\n if (arg_names === 3) {\n throw new Error('[sprintf] mixing positional and named placeholders is not (yet) supported')\n }\n\n parse_tree.push(\n {\n placeholder: match[0],\n param_no: match[1],\n keys: match[2],\n sign: match[3],\n pad_char: match[4],\n align: match[5],\n width: match[6],\n precision: match[7],\n type: match[8]\n }\n )\n }\n else {\n throw new SyntaxError('[sprintf] unexpected placeholder')\n }\n _fmt = _fmt.substring(match[0].length)\n }\n return sprintf_cache[fmt] = parse_tree\n }\n\n /**\n * export to either browser or node.js\n */\n /* eslint-disable quote-props */\n if (typeof exports !== 'undefined') {\n exports['sprintf'] = sprintf\n exports['vsprintf'] = vsprintf\n }\n if (typeof window !== 'undefined') {\n window['sprintf'] = sprintf\n window['vsprintf'] = vsprintf\n\n if (typeof define === 'function' && define['amd']) {\n define(function() {\n return {\n 'sprintf': sprintf,\n 'vsprintf': vsprintf\n }\n })\n }\n }\n /* eslint-enable quote-props */\n}(); // eslint-disable-line\n"]} \ No newline at end of file diff --git a/Scripts/node_modules/sprintf-js/package.json b/Scripts/node_modules/sprintf-js/package.json new file mode 100644 index 00000000..1d3dcf3d --- /dev/null +++ b/Scripts/node_modules/sprintf-js/package.json @@ -0,0 +1,35 @@ +{ + "name": "sprintf-js", + "version": "1.1.3", + "description": "JavaScript sprintf implementation", + "author": "Alexandru Mărășteanu ", + "main": "src/sprintf.js", + "scripts": { + "test": "mocha test/*.js", + "pretest": "npm run lint", + "lint": "eslint .", + "lint:fix": "eslint --fix ." + }, + "repository": { + "type": "git", + "url": "https://github.com/alexei/sprintf.js.git" + }, + "license": "BSD-3-Clause", + "readmeFilename": "README.md", + "devDependencies": { + "benchmark": "^2.1.4", + "eslint": "^5.10.0", + "gulp": "^3.9.1", + "gulp-benchmark": "^1.1.1", + "gulp-eslint": "^5.0.0", + "gulp-header": "^2.0.5", + "gulp-mocha": "^6.0.0", + "gulp-rename": "^1.4.0", + "gulp-sourcemaps": "^2.6.4", + "gulp-uglify": "^3.0.1", + "mocha": "^5.2.0" + }, + "overrides": { + "graceful-fs": "^4.2.11" + } +} diff --git a/Scripts/node_modules/sprintf-js/src/angular-sprintf.js b/Scripts/node_modules/sprintf-js/src/angular-sprintf.js new file mode 100644 index 00000000..dbfdd65a --- /dev/null +++ b/Scripts/node_modules/sprintf-js/src/angular-sprintf.js @@ -0,0 +1,24 @@ +/* global angular, sprintf, vsprintf */ + +!function() { + 'use strict' + + angular. + module('sprintf', []). + filter('sprintf', function() { + return function() { + return sprintf.apply(null, arguments) + } + }). + filter('fmt', ['$filter', function($filter) { + return $filter('sprintf') + }]). + filter('vsprintf', function() { + return function(format, argv) { + return vsprintf(format, argv) + } + }). + filter('vfmt', ['$filter', function($filter) { + return $filter('vsprintf') + }]) +}(); // eslint-disable-line diff --git a/Scripts/node_modules/sprintf-js/src/sprintf.js b/Scripts/node_modules/sprintf-js/src/sprintf.js new file mode 100644 index 00000000..65d63246 --- /dev/null +++ b/Scripts/node_modules/sprintf-js/src/sprintf.js @@ -0,0 +1,231 @@ +/* global window, exports, define */ + +!function() { + 'use strict' + + var re = { + not_string: /[^s]/, + not_bool: /[^t]/, + not_type: /[^T]/, + not_primitive: /[^v]/, + number: /[diefg]/, + numeric_arg: /[bcdiefguxX]/, + json: /[j]/, + not_json: /[^j]/, + text: /^[^\x25]+/, + modulo: /^\x25{2}/, + placeholder: /^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/, + key: /^([a-z_][a-z_\d]*)/i, + key_access: /^\.([a-z_][a-z_\d]*)/i, + index_access: /^\[(\d+)\]/, + sign: /^[+-]/ + } + + function sprintf(key) { + // `arguments` is not an array, but should be fine for this call + return sprintf_format(sprintf_parse(key), arguments) + } + + function vsprintf(fmt, argv) { + return sprintf.apply(null, [fmt].concat(argv || [])) + } + + function sprintf_format(parse_tree, argv) { + var cursor = 1, tree_length = parse_tree.length, arg, output = '', i, k, ph, pad, pad_character, pad_length, is_positive, sign + for (i = 0; i < tree_length; i++) { + if (typeof parse_tree[i] === 'string') { + output += parse_tree[i] + } + else if (typeof parse_tree[i] === 'object') { + ph = parse_tree[i] // convenience purposes only + if (ph.keys) { // keyword argument + arg = argv[cursor] + for (k = 0; k < ph.keys.length; k++) { + if (arg == undefined) { + throw new Error(sprintf('[sprintf] Cannot access property "%s" of undefined value "%s"', ph.keys[k], ph.keys[k-1])) + } + arg = arg[ph.keys[k]] + } + } + else if (ph.param_no) { // positional argument (explicit) + arg = argv[ph.param_no] + } + else { // positional argument (implicit) + arg = argv[cursor++] + } + + if (re.not_type.test(ph.type) && re.not_primitive.test(ph.type) && arg instanceof Function) { + arg = arg() + } + + if (re.numeric_arg.test(ph.type) && (typeof arg !== 'number' && isNaN(arg))) { + throw new TypeError(sprintf('[sprintf] expecting number but found %T', arg)) + } + + if (re.number.test(ph.type)) { + is_positive = arg >= 0 + } + + switch (ph.type) { + case 'b': + arg = parseInt(arg, 10).toString(2) + break + case 'c': + arg = String.fromCharCode(parseInt(arg, 10)) + break + case 'd': + case 'i': + arg = parseInt(arg, 10) + break + case 'j': + arg = JSON.stringify(arg, null, ph.width ? parseInt(ph.width) : 0) + break + case 'e': + arg = ph.precision ? parseFloat(arg).toExponential(ph.precision) : parseFloat(arg).toExponential() + break + case 'f': + arg = ph.precision ? parseFloat(arg).toFixed(ph.precision) : parseFloat(arg) + break + case 'g': + arg = ph.precision ? String(Number(arg.toPrecision(ph.precision))) : parseFloat(arg) + break + case 'o': + arg = (parseInt(arg, 10) >>> 0).toString(8) + break + case 's': + arg = String(arg) + arg = (ph.precision ? arg.substring(0, ph.precision) : arg) + break + case 't': + arg = String(!!arg) + arg = (ph.precision ? arg.substring(0, ph.precision) : arg) + break + case 'T': + arg = Object.prototype.toString.call(arg).slice(8, -1).toLowerCase() + arg = (ph.precision ? arg.substring(0, ph.precision) : arg) + break + case 'u': + arg = parseInt(arg, 10) >>> 0 + break + case 'v': + arg = arg.valueOf() + arg = (ph.precision ? arg.substring(0, ph.precision) : arg) + break + case 'x': + arg = (parseInt(arg, 10) >>> 0).toString(16) + break + case 'X': + arg = (parseInt(arg, 10) >>> 0).toString(16).toUpperCase() + break + } + if (re.json.test(ph.type)) { + output += arg + } + else { + if (re.number.test(ph.type) && (!is_positive || ph.sign)) { + sign = is_positive ? '+' : '-' + arg = arg.toString().replace(re.sign, '') + } + else { + sign = '' + } + pad_character = ph.pad_char ? ph.pad_char === '0' ? '0' : ph.pad_char.charAt(1) : ' ' + pad_length = ph.width - (sign + arg).length + pad = ph.width ? (pad_length > 0 ? pad_character.repeat(pad_length) : '') : '' + output += ph.align ? sign + arg + pad : (pad_character === '0' ? sign + pad + arg : pad + sign + arg) + } + } + } + return output + } + + var sprintf_cache = Object.create(null) + + function sprintf_parse(fmt) { + if (sprintf_cache[fmt]) { + return sprintf_cache[fmt] + } + + var _fmt = fmt, match, parse_tree = [], arg_names = 0 + while (_fmt) { + if ((match = re.text.exec(_fmt)) !== null) { + parse_tree.push(match[0]) + } + else if ((match = re.modulo.exec(_fmt)) !== null) { + parse_tree.push('%') + } + else if ((match = re.placeholder.exec(_fmt)) !== null) { + if (match[2]) { + arg_names |= 1 + var field_list = [], replacement_field = match[2], field_match = [] + if ((field_match = re.key.exec(replacement_field)) !== null) { + field_list.push(field_match[1]) + while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') { + if ((field_match = re.key_access.exec(replacement_field)) !== null) { + field_list.push(field_match[1]) + } + else if ((field_match = re.index_access.exec(replacement_field)) !== null) { + field_list.push(field_match[1]) + } + else { + throw new SyntaxError('[sprintf] failed to parse named argument key') + } + } + } + else { + throw new SyntaxError('[sprintf] failed to parse named argument key') + } + match[2] = field_list + } + else { + arg_names |= 2 + } + if (arg_names === 3) { + throw new Error('[sprintf] mixing positional and named placeholders is not (yet) supported') + } + + parse_tree.push( + { + placeholder: match[0], + param_no: match[1], + keys: match[2], + sign: match[3], + pad_char: match[4], + align: match[5], + width: match[6], + precision: match[7], + type: match[8] + } + ) + } + else { + throw new SyntaxError('[sprintf] unexpected placeholder') + } + _fmt = _fmt.substring(match[0].length) + } + return sprintf_cache[fmt] = parse_tree + } + + /** + * export to either browser or node.js + */ + /* eslint-disable quote-props */ + if (typeof exports !== 'undefined') { + exports['sprintf'] = sprintf + exports['vsprintf'] = vsprintf + } + if (typeof window !== 'undefined') { + window['sprintf'] = sprintf + window['vsprintf'] = vsprintf + + if (typeof define === 'function' && define['amd']) { + define(function() { + return { + 'sprintf': sprintf, + 'vsprintf': vsprintf + } + }) + } + } + /* eslint-enable quote-props */ +}(); // eslint-disable-line diff --git a/Scripts/node_modules/streamx/README.md b/Scripts/node_modules/streamx/README.md index 0b86e866..35b3fc91 100644 --- a/Scripts/node_modules/streamx/README.md +++ b/Scripts/node_modules/streamx/README.md @@ -122,6 +122,9 @@ The default byteLength function returns the byte length of buffers and `1024` for any other object. This means the buffer will contain around 16 non buffers or buffers worth 16kb when full if the defaults are used. +If you set highWaterMark to `0` then all read ahead buffering on the stream +is disabled and it will only call `_read` when a user reads rather than ahead of time. + #### `rs._read(cb)` This function is called when the stream wants you to push new data. diff --git a/Scripts/node_modules/streamx/index.js b/Scripts/node_modules/streamx/index.js index 36693ca9..971d3202 100644 --- a/Scripts/node_modules/streamx/index.js +++ b/Scripts/node_modules/streamx/index.js @@ -7,8 +7,8 @@ const FIFO = require('fast-fifo') /* eslint-disable no-multi-spaces */ -// 27 bits used total (4 from shared, 13 from read, and 10 from write) -const MAX = ((1 << 27) - 1) +// 28 bits used total (4 from shared, 14 from read, and 10 from write) +const MAX = ((1 << 28) - 1) // Shared state const OPENING = 0b0001 @@ -20,25 +20,27 @@ const NOT_OPENING = MAX ^ OPENING const NOT_PREDESTROYING = MAX ^ PREDESTROYING // Read state (4 bit offset from shared state) -const READ_ACTIVE = 0b0000000000001 << 4 -const READ_UPDATING = 0b0000000000010 << 4 -const READ_PRIMARY = 0b0000000000100 << 4 -const READ_QUEUED = 0b0000000001000 << 4 -const READ_RESUMED = 0b0000000010000 << 4 -const READ_PIPE_DRAINED = 0b0000000100000 << 4 -const READ_ENDING = 0b0000001000000 << 4 -const READ_EMIT_DATA = 0b0000010000000 << 4 -const READ_EMIT_READABLE = 0b0000100000000 << 4 -const READ_EMITTED_READABLE = 0b0001000000000 << 4 -const READ_DONE = 0b0010000000000 << 4 -const READ_NEXT_TICK = 0b0100000000000 << 4 -const READ_NEEDS_PUSH = 0b1000000000000 << 4 +const READ_ACTIVE = 0b00000000000001 << 4 +const READ_UPDATING = 0b00000000000010 << 4 +const READ_PRIMARY = 0b00000000000100 << 4 +const READ_QUEUED = 0b00000000001000 << 4 +const READ_RESUMED = 0b00000000010000 << 4 +const READ_PIPE_DRAINED = 0b00000000100000 << 4 +const READ_ENDING = 0b00000001000000 << 4 +const READ_EMIT_DATA = 0b00000010000000 << 4 +const READ_EMIT_READABLE = 0b00000100000000 << 4 +const READ_EMITTED_READABLE = 0b00001000000000 << 4 +const READ_DONE = 0b00010000000000 << 4 +const READ_NEXT_TICK = 0b00100000000000 << 4 +const READ_NEEDS_PUSH = 0b01000000000000 << 4 +const READ_READ_AHEAD = 0b10000000000000 << 4 // Combined read state const READ_FLOWING = READ_RESUMED | READ_PIPE_DRAINED const READ_ACTIVE_AND_NEEDS_PUSH = READ_ACTIVE | READ_NEEDS_PUSH const READ_PRIMARY_AND_ACTIVE = READ_PRIMARY | READ_ACTIVE const READ_EMIT_READABLE_AND_QUEUED = READ_EMIT_READABLE | READ_QUEUED +const READ_RESUMED_READ_AHEAD = READ_RESUMED | READ_READ_AHEAD const READ_NOT_ACTIVE = MAX ^ READ_ACTIVE const READ_NON_PRIMARY = MAX ^ READ_PRIMARY @@ -50,18 +52,20 @@ const READ_NOT_ENDING = MAX ^ READ_ENDING const READ_PIPE_NOT_DRAINED = MAX ^ READ_FLOWING const READ_NOT_NEXT_TICK = MAX ^ READ_NEXT_TICK const READ_NOT_UPDATING = MAX ^ READ_UPDATING +const READ_NO_READ_AHEAD = MAX ^ READ_READ_AHEAD +const READ_PAUSED_NO_READ_AHEAD = MAX ^ READ_RESUMED_READ_AHEAD -// Write state (17 bit offset, 4 bit offset from shared state and 13 from read state) -const WRITE_ACTIVE = 0b0000000001 << 17 -const WRITE_UPDATING = 0b0000000010 << 17 -const WRITE_PRIMARY = 0b0000000100 << 17 -const WRITE_QUEUED = 0b0000001000 << 17 -const WRITE_UNDRAINED = 0b0000010000 << 17 -const WRITE_DONE = 0b0000100000 << 17 -const WRITE_EMIT_DRAIN = 0b0001000000 << 17 -const WRITE_NEXT_TICK = 0b0010000000 << 17 -const WRITE_WRITING = 0b0100000000 << 17 -const WRITE_FINISHING = 0b1000000000 << 17 +// Write state (18 bit offset, 4 bit offset from shared state and 13 from read state) +const WRITE_ACTIVE = 0b0000000001 << 18 +const WRITE_UPDATING = 0b0000000010 << 18 +const WRITE_PRIMARY = 0b0000000100 << 18 +const WRITE_QUEUED = 0b0000001000 << 18 +const WRITE_UNDRAINED = 0b0000010000 << 18 +const WRITE_DONE = 0b0000100000 << 18 +const WRITE_EMIT_DRAIN = 0b0001000000 << 18 +const WRITE_NEXT_TICK = 0b0010000000 << 18 +const WRITE_WRITING = 0b0100000000 << 18 +const WRITE_FINISHING = 0b1000000000 << 18 const WRITE_NOT_ACTIVE = MAX ^ (WRITE_ACTIVE | WRITE_WRITING) const WRITE_NON_PRIMARY = MAX ^ WRITE_PRIMARY @@ -88,7 +92,7 @@ const READ_PRIMARY_STATUS = OPEN_STATUS | READ_ENDING | READ_DONE const READ_STATUS = OPEN_STATUS | READ_DONE | READ_QUEUED const READ_ENDING_STATUS = OPEN_STATUS | READ_ENDING | READ_QUEUED const READ_READABLE_STATUS = OPEN_STATUS | READ_EMIT_READABLE | READ_QUEUED | READ_EMITTED_READABLE -const SHOULD_NOT_READ = OPEN_STATUS | READ_ACTIVE | READ_ENDING | READ_DONE | READ_NEEDS_PUSH +const SHOULD_NOT_READ = OPEN_STATUS | READ_ACTIVE | READ_ENDING | READ_DONE | READ_NEEDS_PUSH | READ_READ_AHEAD const READ_BACKPRESSURE_STATUS = DESTROY_STATUS | READ_ENDING | READ_DONE const READ_UPDATE_SYNC_STATUS = READ_UPDATING | OPEN_STATUS | READ_NEXT_TICK | READ_PRIMARY @@ -231,8 +235,9 @@ class ReadableState { constructor (stream, { highWaterMark = 16384, map = null, mapReadable, byteLength, byteLengthReadable } = {}) { this.stream = stream this.queue = new FIFO() - this.highWaterMark = highWaterMark + this.highWaterMark = highWaterMark === 0 ? 1 : highWaterMark this.buffered = 0 + this.readAhead = highWaterMark > 0 this.error = null this.pipeline = null this.byteLength = byteLengthReadable || byteLength || defaultByteLength @@ -322,6 +327,11 @@ class ReadableState { return data } + if (this.readAhead === false) { + stream._duplexState |= READ_READ_AHEAD + this.updateNextTick() + } + return null } @@ -343,7 +353,7 @@ class ReadableState { do { this.drain() - while (this.buffered < this.highWaterMark && (stream._duplexState & SHOULD_NOT_READ) === 0) { + while (this.buffered < this.highWaterMark && (stream._duplexState & SHOULD_NOT_READ) === READ_READ_AHEAD) { stream._duplexState |= READ_ACTIVE_AND_NEEDS_PUSH stream._read(this.afterRead) this.drain() @@ -516,6 +526,7 @@ function afterWrite (err) { function afterRead (err) { if (err) this.stream.destroy(err) this.stream._duplexState &= READ_NOT_ACTIVE + if (this.readAhead === false && (this.stream._duplexState & READ_RESUMED) === 0) this.stream._duplexState &= READ_NO_READ_AHEAD this.updateCallback() } @@ -573,7 +584,7 @@ function afterTransform (err, data) { function newListener (name) { if (this._readableState !== null) { if (name === 'data') { - this._duplexState |= (READ_EMIT_DATA | READ_RESUMED) + this._duplexState |= (READ_EMIT_DATA | READ_RESUMED_READ_AHEAD) this._readableState.updateNextTick() } if (name === 'readable') { @@ -666,10 +677,11 @@ class Readable extends Stream { constructor (opts) { super(opts) - this._duplexState |= OPENING | WRITE_DONE + this._duplexState |= OPENING | WRITE_DONE | READ_READ_AHEAD this._readableState = new ReadableState(this, opts) if (opts) { + if (this._readableState.readAhead === false) this._duplexState &= READ_NO_READ_AHEAD if (opts.read) this._read = opts.read if (opts.eagerOpen) this._readableState.updateNextTick() } @@ -701,13 +713,13 @@ class Readable extends Stream { } resume () { - this._duplexState |= READ_RESUMED + this._duplexState |= READ_RESUMED_READ_AHEAD this._readableState.updateNextTick() return this } pause () { - this._duplexState &= READ_PAUSED + this._duplexState &= (this._readableState.readAhead === false ? READ_PAUSED_NO_READ_AHEAD : READ_PAUSED) return this } @@ -879,7 +891,7 @@ class Duplex extends Readable { // and Writable constructor (opts) { super(opts) - this._duplexState = OPENING + this._duplexState = OPENING | (this._duplexState & READ_READ_AHEAD) this._writableState = new WritableState(this, opts) if (opts) { diff --git a/Scripts/node_modules/streamx/package.json b/Scripts/node_modules/streamx/package.json index e7e8d96f..1c6b556c 100644 --- a/Scripts/node_modules/streamx/package.json +++ b/Scripts/node_modules/streamx/package.json @@ -1,6 +1,6 @@ { "name": "streamx", - "version": "2.15.6", + "version": "2.16.1", "description": "An iteration of the Node.js core streams with a series of improvements", "main": "index.js", "dependencies": { @@ -12,9 +12,18 @@ "end-of-stream": "^1.4.4", "standard": "^17.0.0" }, + "optionalDependencies": { + "bare-events": "^2.2.0" + }, "files": [ "index.js" ], + "imports": { + "events": { + "bare": "bare-events", + "default": "events" + } + }, "scripts": { "test": "standard && brittle test/*.js" }, diff --git a/Scripts/node_modules/tar-stream/headers.js b/Scripts/node_modules/tar-stream/headers.js index 56c3e9b2..aa1a6c45 100644 --- a/Scripts/node_modules/tar-stream/headers.js +++ b/Scripts/node_modules/tar-stream/headers.js @@ -34,7 +34,7 @@ exports.decodePax = function decodePax (buf) { while (buf.length) { let i = 0 while (i < buf.length && buf[i] !== 32) i++ - const len = parseInt(buf.subarray(0, i).toString(), 10) + const len = parseInt(b4a.toString(buf.subarray(0, i)), 10) if (!len) return result const b = b4a.toString(buf.subarray(i + 1, len - 1)) @@ -304,7 +304,7 @@ function decodeOct (val, offset, length) { const end = clamp(indexOf(val, 32, offset, val.length), val.length, val.length) while (offset < end && val[offset] === 0) offset++ if (end === offset) return 0 - return parseInt(val.subarray(offset, end).toString(), 8) + return parseInt(b4a.toString(val.subarray(offset, end)), 8) } } diff --git a/Scripts/node_modules/tar-stream/package.json b/Scripts/node_modules/tar-stream/package.json index e16048f4..e3040c19 100644 --- a/Scripts/node_modules/tar-stream/package.json +++ b/Scripts/node_modules/tar-stream/package.json @@ -1,6 +1,6 @@ { "name": "tar-stream", - "version": "3.1.6", + "version": "3.1.7", "description": "tar-stream is a streaming tar parser and generator and nothing else. It operates purely using streams which means you can easily extract/parse tarballs without ever hitting the file system.", "main": "index.js", "files": [ diff --git a/Scripts/node_modules/universalify/README.md b/Scripts/node_modules/universalify/README.md index 487067bf..1184939d 100644 --- a/Scripts/node_modules/universalify/README.md +++ b/Scripts/node_modules/universalify/README.md @@ -1,6 +1,6 @@ # universalify -[![Travis branch](https://img.shields.io/travis/RyanZim/universalify/master.svg)](https://travis-ci.org/RyanZim/universalify) +![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/RyanZim/universalify/ci.yml?branch=master) ![Coveralls github branch](https://img.shields.io/coveralls/github/RyanZim/universalify/master.svg) ![npm](https://img.shields.io/npm/dm/universalify.svg) ![npm](https://img.shields.io/npm/l/universalify.svg) @@ -21,7 +21,7 @@ npm install universalify Takes a callback-based function to universalify, and returns the universalified function. -Function must take a callback as the last parameter that will be called with the signature `(error, result)`. `universalify` does not support calling the callback with more than three arguments, and does not ensure that the callback is only called once. +Function must take a callback as the last parameter that will be called with the signature `(error, result)`. `universalify` does not support calling the callback with three or more arguments, and does not ensure that the callback is only called once. ```js function callbackFn (n, cb) { diff --git a/Scripts/node_modules/universalify/index.js b/Scripts/node_modules/universalify/index.js index 0c9ba393..233beac7 100644 --- a/Scripts/node_modules/universalify/index.js +++ b/Scripts/node_modules/universalify/index.js @@ -1,25 +1,24 @@ 'use strict' exports.fromCallback = function (fn) { - return Object.defineProperty(function () { - if (typeof arguments[arguments.length - 1] === 'function') fn.apply(this, arguments) + return Object.defineProperty(function (...args) { + if (typeof args[args.length - 1] === 'function') fn.apply(this, args) else { return new Promise((resolve, reject) => { - arguments[arguments.length] = (err, res) => { - if (err) return reject(err) - resolve(res) - } - arguments.length++ - fn.apply(this, arguments) + args.push((err, res) => (err != null) ? reject(err) : resolve(res)) + fn.apply(this, args) }) } }, 'name', { value: fn.name }) } exports.fromPromise = function (fn) { - return Object.defineProperty(function () { - const cb = arguments[arguments.length - 1] - if (typeof cb !== 'function') return fn.apply(this, arguments) - else fn.apply(this, arguments).then(r => cb(null, r), cb) + return Object.defineProperty(function (...args) { + const cb = args[args.length - 1] + if (typeof cb !== 'function') return fn.apply(this, args) + else { + args.pop() + fn.apply(this, args).then(r => cb(null, r), cb) + } }, 'name', { value: fn.name }) } diff --git a/Scripts/node_modules/universalify/package.json b/Scripts/node_modules/universalify/package.json index 321b1928..d60fccb5 100644 --- a/Scripts/node_modules/universalify/package.json +++ b/Scripts/node_modules/universalify/package.json @@ -1,6 +1,6 @@ { "name": "universalify", - "version": "0.1.2", + "version": "2.0.1", "description": "Make a callback- or promise-based function support both promises and callbacks.", "keywords": [ "callback", @@ -19,16 +19,16 @@ "url": "git+https://github.com/RyanZim/universalify.git" }, "scripts": { - "test": "standard && nyc tape test/*.js | colortape" + "test": "standard && nyc --reporter text --reporter lcovonly tape test/*.js | colortape" }, "devDependencies": { "colortape": "^0.1.2", "coveralls": "^3.0.1", - "nyc": "^10.2.0", - "standard": "^10.0.1", - "tape": "^4.6.3" + "nyc": "^15.0.0", + "standard": "^14.3.1", + "tape": "^5.0.1" }, "engines": { - "node": ">= 4.0.0" + "node": ">= 10.0.0" } } diff --git a/Scripts/node_modules/urlpattern-polyfill/LICENSE b/Scripts/node_modules/urlpattern-polyfill/LICENSE old mode 100644 new mode 100755 diff --git a/Scripts/node_modules/urlpattern-polyfill/README.md b/Scripts/node_modules/urlpattern-polyfill/README.md old mode 100644 new mode 100755 diff --git a/Scripts/node_modules/urlpattern-polyfill/dist/index.d.ts b/Scripts/node_modules/urlpattern-polyfill/dist/index.d.ts old mode 100644 new mode 100755 diff --git a/Scripts/node_modules/urlpattern-polyfill/dist/types.d.ts b/Scripts/node_modules/urlpattern-polyfill/dist/types.d.ts old mode 100644 new mode 100755 diff --git a/Scripts/node_modules/urlpattern-polyfill/dist/urlpattern.cjs b/Scripts/node_modules/urlpattern-polyfill/dist/urlpattern.cjs old mode 100644 new mode 100755 index b85b8b98..2734841a --- a/Scripts/node_modules/urlpattern-polyfill/dist/urlpattern.cjs +++ b/Scripts/node_modules/urlpattern-polyfill/dist/urlpattern.cjs @@ -1 +1 @@ -"use strict";var M=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var ke=Object.getOwnPropertyNames;var Ee=Object.prototype.hasOwnProperty;var Re=(e,t)=>{for(var r in t)M(e,r,{get:t[r],enumerable:!0})},ye=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ke(t))!Ee.call(e,a)&&a!==r&&M(e,a,{get:()=>t[a],enumerable:!(n=Se(t,a))||n.enumerable});return e};var Oe=e=>ye(M({},"__esModule",{value:!0}),e);var Ne={};Re(Ne,{URLPattern:()=>Y});module.exports=Oe(Ne);var k=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(t,r,n,a,c,l){this.type=t,this.name=r,this.prefix=n,this.value=a,this.suffix=c,this.modifier=l}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},Te=/[$_\p{ID_Start}]/u,Ae=/[$_\u200C\u200D\p{ID_Continue}]/u,v=".*";function we(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function D(e,t=!1){let r=[],n=0;for(;n{if(lo("OTHER_MODIFIER")??o("ASTERISK"),p=f=>{let u=o(f);if(u!==void 0)return u;let{type:d,index:T}=r[l];throw new TypeError(`Unexpected ${d} at ${T}, expected ${f}`)},O=()=>{let f="",u;for(;u=o("CHAR")??o("ESCAPED_CHAR");)f+=u;return f},be=f=>f,L=t.encodePart||be,I="",H=f=>{I+=f},$=()=>{I.length&&(a.push(new k(3,"","",L(I),"",3)),I="")},X=(f,u,d,T,Z)=>{let g=3;switch(Z){case"?":g=1;break;case"*":g=0;break;case"+":g=2;break}if(!u&&!d&&g===3){H(f);return}if($(),!u&&!d){if(!f)return;a.push(new k(3,"","",L(f),"",g));return}let m;d?d==="*"?m=v:m=d:m=n;let R=2;m===n?(R=1,m=""):m===v&&(R=0,m="");let S;if(u?S=u:d&&(S=c++),i.has(S))throw new TypeError(`Duplicate name '${S}'.`);i.add(S),a.push(new k(R,S,L(f),m,L(T),g))};for(;l-1)}return l||(n+=`(?=${c}|${a})`),new RegExp(n,B(r))}var b={delimiter:"",prefixes:"",sensitive:!0,strict:!0},J={delimiter:".",prefixes:"",sensitive:!0,strict:!0},Q={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function ee(e,t){return e.length?e[0]==="/"?!0:!t||e.length<2?!1:(e[0]=="\\"||e[0]=="{")&&e[1]=="/":!1}function te(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function Ce(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}function _(e){return!e||e.length<2?!1:e[0]==="["||(e[0]==="\\"||e[0]==="{")&&e[1]==="["}var re=["ftp","file","http","https","ws","wss"];function N(e){if(!e)return!0;for(let t of re)if(e.test(t))return!0;return!1}function ne(e,t){if(e=te(e,"#"),t||e==="")return e;let r=new URL("https://example.com");return r.hash=e,r.hash?r.hash.substring(1,r.hash.length):""}function se(e,t){if(e=te(e,"?"),t||e==="")return e;let r=new URL("https://example.com");return r.search=e,r.search?r.search.substring(1,r.search.length):""}function ie(e,t){return t||e===""?e:_(e)?K(e):j(e)}function ae(e,t){if(t||e==="")return e;let r=new URL("https://example.com");return r.password=e,r.password}function oe(e,t){if(t||e==="")return e;let r=new URL("https://example.com");return r.username=e,r.username}function ce(e,t,r){if(r||e==="")return e;if(t&&!re.includes(t))return new URL(`${t}:${e}`).pathname;let n=e[0]=="/";return e=new URL(n?e:"/-"+e,"https://example.com").pathname,n||(e=e.substring(2,e.length)),e}function le(e,t,r){return z(t)===e&&(e=""),r||e===""?e:V(e)}function he(e,t){return e=Ce(e,":"),t||e===""?e:A(e)}function z(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function A(e){if(e==="")return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function fe(e){if(e==="")return e;let t=new URL("https://example.com");return t.username=e,t.username}function ue(e){if(e==="")return e;let t=new URL("https://example.com");return t.password=e,t.password}function j(e){if(e==="")return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw new TypeError(`Invalid hostname '${e}'`);let t=new URL("https://example.com");return t.hostname=e,t.hostname}function K(e){if(e==="")return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function V(e){if(e===""||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function pe(e){if(e==="")return e;let t=new URL("https://example.com");return t.pathname=e[0]!=="/"?"/-"+e:e,e[0]!=="/"?t.pathname.substring(2,t.pathname.length):t.pathname}function de(e){return e===""?e:new URL(`data:${e}`).pathname}function ge(e){if(e==="")return e;let t=new URL("https://example.com");return t.search=e,t.search.substring(1,t.search.length)}function me(e){if(e==="")return e;let t=new URL("https://example.com");return t.hash=e,t.hash.substring(1,t.hash.length)}var U=class{#i;#n=[];#t={};#e=0;#s=1;#u=0;#c=0;#p=0;#d=0;#g=!1;constructor(t){this.#i=t}get result(){return this.#t}parse(){for(this.#n=D(this.#i,!0);this.#e0)if(this.#T())this.#p-=1;else continue;if(this.#O()){this.#p+=1;continue}switch(this.#c){case 0:this.#S()&&(this.#t.username="",this.#t.password="",this.#t.hostname="",this.#t.port="",this.#t.pathname="",this.#t.search="",this.#t.hash="",this.#f(1));break;case 1:if(this.#S()){this.#C();let t=7,r=1;this.#g&&(this.#t.pathname="/"),this.#E()?(t=2,r=3):this.#g&&(t=2),this.#r(t,r)}break;case 2:this.#x()?this.#f(3):(this.#b()||this.#h()||this.#l())&&this.#f(5);break;case 3:this.#R()?this.#r(4,1):this.#x()&&this.#r(5,1);break;case 4:this.#x()&&this.#r(5,1);break;case 5:this.#A()?this.#d+=1:this.#w()&&(this.#d-=1),this.#y()&&!this.#d?this.#r(6,1):this.#b()?this.#r(7,0):this.#h()?this.#r(8,1):this.#l()&&this.#r(9,1);break;case 6:this.#b()?this.#r(7,0):this.#h()?this.#r(8,1):this.#l()&&this.#r(9,1);break;case 7:this.#h()?this.#r(8,1):this.#l()&&this.#r(9,1);break;case 8:this.#l()&&this.#r(9,1);break;case 9:break;case 10:break}}}#r(t,r){switch(this.#c){case 0:break;case 1:this.#t.protocol=this.#o();break;case 2:break;case 3:this.#t.username=this.#o();break;case 4:this.#t.password=this.#o();break;case 5:this.#t.hostname=this.#o();break;case 6:this.#t.port=this.#o();break;case 7:this.#t.pathname=this.#o();break;case 8:this.#t.search=this.#o();break;case 9:this.#t.hash=this.#o();break;case 10:break}this.#k(t,r)}#k(t,r){this.#c=t,this.#u=this.#e+r,this.#e+=r,this.#s=0}#P(){this.#e=this.#u,this.#s=0}#f(t){this.#P(),this.#c=t}#m(t){return t<0&&(t=this.#n.length-t),t=0&&(e.pathname=P(n.pathname.substring(0,a+1),r)+e.pathname)}e.pathname=ce(e.pathname,e.protocol,r)}return typeof t.search=="string"&&(e.search=se(t.search,r)),typeof t.hash=="string"&&(e.hash=ne(t.hash,r)),e}function C(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function Le(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Ie(e,t){t.delimiter??="/#?",t.prefixes??="./",t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith="";let r=".*",n=`[^${Le(t.delimiter)}]+?`,a=/[$_\u200C\u200D\p{ID_Continue}]/u,c="";for(let l=0;l0?e[l-1]:null,p=l0?p.value[0]:"";o=a.test(O)}else o=!p.hasCustomName();if(!o&&!s.prefix.length&&h&&h.type===3){let O=h.value[h.value.length-1];o=t.prefixes.includes(O)}o&&(c+="{"),c+=C(s.prefix),i&&(c+=`:${s.name}`),s.type===2?c+=`(${s.value})`:s.type===1?i||(c+=`(${n})`):s.type===0&&(!i&&(!h||h.type===3||h.modifier!==3||o||s.prefix!=="")?c+="*":c+=`(${r})`),s.type===1&&i&&s.suffix.length&&a.test(s.suffix[0])&&(c+="\\"),c+=C(s.suffix),o&&(c+="}"),s.modifier!==3&&(c+=y(s.modifier))}return c}var Y=class{#i;#n={};#t={};#e={};#s={};constructor(t={},r,n){try{let a;if(typeof r=="string"?a=r:n=r,typeof t=="string"){let i=new U(t);if(i.parse(),t=i.result,a===void 0&&typeof t.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");t.baseURL=a}else{if(!t||typeof t!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(a)throw new TypeError("parameter 1 is not of type 'string'.")}typeof n>"u"&&(n={ignoreCase:!1});let c={ignoreCase:n.ignoreCase===!0},l={pathname:E,protocol:E,username:E,password:E,hostname:E,port:E,search:E,hash:E};this.#i=w(l,t,!0),z(this.#i.protocol)===this.#i.port&&(this.#i.port="");let s;for(s of G){if(!(s in this.#i))continue;let i={},o=this.#i[s];switch(this.#t[s]=[],s){case"protocol":Object.assign(i,b),i.encodePart=A;break;case"username":Object.assign(i,b),i.encodePart=fe;break;case"password":Object.assign(i,b),i.encodePart=ue;break;case"hostname":Object.assign(i,J),_(o)?i.encodePart=K:i.encodePart=j;break;case"port":Object.assign(i,b),i.encodePart=V;break;case"pathname":N(this.#n.protocol)?(Object.assign(i,Q,c),i.encodePart=pe):(Object.assign(i,b,c),i.encodePart=de);break;case"search":Object.assign(i,b,c),i.encodePart=ge;break;case"hash":Object.assign(i,b,c),i.encodePart=me;break}try{this.#s[s]=F(o,i),this.#n[s]=W(this.#s[s],this.#t[s],i),this.#e[s]=Ie(this.#s[s],i)}catch{throw new TypeError(`invalid ${s} pattern '${this.#i[s]}'.`)}}}catch(a){throw new TypeError(`Failed to construct 'URLPattern': ${a.message}`)}}test(t={},r){let n={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&r)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return!1;try{typeof t=="object"?n=w(n,t,!1):n=w(n,xe(t,r),!1)}catch{return!1}let a;for(a of G)if(!this.#n[a].exec(n[a]))return!1;return!0}exec(t={},r){let n={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&r)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return;try{typeof t=="object"?n=w(n,t,!1):n=w(n,xe(t,r),!1)}catch{return null}let a={};r?a.inputs=[t,r]:a.inputs=[t];let c;for(c of G){let l=this.#n[c].exec(n[c]);if(!l)return null;let s={};for(let[i,o]of this.#t[c].entries())if(typeof o=="string"||typeof o=="number"){let h=l[i+1];s[o]=h}a[c]={input:n[c]??"",groups:s}}return a}static compareComponent(t,r,n){let a=(i,o)=>{for(let h of["type","modifier","prefix","value","suffix"]){if(i[h]{let h=0;for(;h{for(var r in t)M(e,r,{get:t[r],enumerable:!0})},ke=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Re(t))!Ee.call(e,a)&&a!==r&&M(e,a,{get:()=>t[a],enumerable:!(n=Pe(t,a))||n.enumerable});return e};var Te=e=>ke(M({},"__esModule",{value:!0}),e);var Ne={};Oe(Ne,{URLPattern:()=>Y});module.exports=Te(Ne);var R=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(t,r,n,a,c,l){this.type=t,this.name=r,this.prefix=n,this.value=a,this.suffix=c,this.modifier=l}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},Ae=/[$_\p{ID_Start}]/u,ye=/[$_\u200C\u200D\p{ID_Continue}]/u,v=".*";function we(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function D(e,t=!1){let r=[],n=0;for(;n{if(lo("OTHER_MODIFIER")??o("ASTERISK"),d=h=>{let u=o(h);if(u!==void 0)return u;let{type:p,index:A}=r[l];throw new TypeError(`Unexpected ${p} at ${A}, expected ${h}`)},T=()=>{let h="",u;for(;u=o("CHAR")??o("ESCAPED_CHAR");)h+=u;return h},xe=h=>h,L=t.encodePart||xe,I="",U=h=>{I+=h},$=()=>{I.length&&(a.push(new R(3,"","",L(I),"",3)),I="")},X=(h,u,p,A,Z)=>{let g=3;switch(Z){case"?":g=1;break;case"*":g=0;break;case"+":g=2;break}if(!u&&!p&&g===3){U(h);return}if($(),!u&&!p){if(!h)return;a.push(new R(3,"","",L(h),"",g));return}let m;p?p==="*"?m=v:m=p:m=n;let O=2;m===n?(O=1,m=""):m===v&&(O=0,m="");let P;if(u?P=u:p&&(P=c++),i.has(P))throw new TypeError(`Duplicate name '${P}'.`);i.add(P),a.push(new R(O,P,L(h),m,L(A),g))};for(;l-1)}return l||(n+=`(?=${c}|${a})`),new RegExp(n,B(r))}var x={delimiter:"",prefixes:"",sensitive:!0,strict:!0},J={delimiter:".",prefixes:"",sensitive:!0,strict:!0},Q={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function ee(e,t){return e.length?e[0]==="/"?!0:!t||e.length<2?!1:(e[0]=="\\"||e[0]=="{")&&e[1]=="/":!1}function te(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function Ce(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}function _(e){return!e||e.length<2?!1:e[0]==="["||(e[0]==="\\"||e[0]==="{")&&e[1]==="["}var re=["ftp","file","http","https","ws","wss"];function N(e){if(!e)return!0;for(let t of re)if(e.test(t))return!0;return!1}function ne(e,t){if(e=te(e,"#"),t||e==="")return e;let r=new URL("https://example.com");return r.hash=e,r.hash?r.hash.substring(1,r.hash.length):""}function se(e,t){if(e=te(e,"?"),t||e==="")return e;let r=new URL("https://example.com");return r.search=e,r.search?r.search.substring(1,r.search.length):""}function ie(e,t){return t||e===""?e:_(e)?K(e):j(e)}function ae(e,t){if(t||e==="")return e;let r=new URL("https://example.com");return r.password=e,r.password}function oe(e,t){if(t||e==="")return e;let r=new URL("https://example.com");return r.username=e,r.username}function ce(e,t,r){if(r||e==="")return e;if(t&&!re.includes(t))return new URL(`${t}:${e}`).pathname;let n=e[0]=="/";return e=new URL(n?e:"/-"+e,"https://example.com").pathname,n||(e=e.substring(2,e.length)),e}function le(e,t,r){return z(t)===e&&(e=""),r||e===""?e:G(e)}function fe(e,t){return e=Ce(e,":"),t||e===""?e:y(e)}function z(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function y(e){if(e==="")return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function he(e){if(e==="")return e;let t=new URL("https://example.com");return t.username=e,t.username}function ue(e){if(e==="")return e;let t=new URL("https://example.com");return t.password=e,t.password}function j(e){if(e==="")return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw new TypeError(`Invalid hostname '${e}'`);let t=new URL("https://example.com");return t.hostname=e,t.hostname}function K(e){if(e==="")return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function G(e){if(e===""||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function de(e){if(e==="")return e;let t=new URL("https://example.com");return t.pathname=e[0]!=="/"?"/-"+e:e,e[0]!=="/"?t.pathname.substring(2,t.pathname.length):t.pathname}function pe(e){return e===""?e:new URL(`data:${e}`).pathname}function ge(e){if(e==="")return e;let t=new URL("https://example.com");return t.search=e,t.search.substring(1,t.search.length)}function me(e){if(e==="")return e;let t=new URL("https://example.com");return t.hash=e,t.hash.substring(1,t.hash.length)}var H=class{#i;#n=[];#t={};#e=0;#s=1;#l=0;#o=0;#d=0;#p=0;#g=!1;constructor(t){this.#i=t}get result(){return this.#t}parse(){for(this.#n=D(this.#i,!0);this.#e0)if(this.#A())this.#d-=1;else continue;if(this.#T()){this.#d+=1;continue}switch(this.#o){case 0:this.#P()&&this.#u(1);break;case 1:if(this.#P()){this.#C();let t=7,r=1;this.#E()?(t=2,r=3):this.#g&&(t=2),this.#r(t,r)}break;case 2:this.#S()?this.#u(3):(this.#x()||this.#h()||this.#f())&&this.#u(5);break;case 3:this.#O()?this.#r(4,1):this.#S()&&this.#r(5,1);break;case 4:this.#S()&&this.#r(5,1);break;case 5:this.#y()?this.#p+=1:this.#w()&&(this.#p-=1),this.#k()&&!this.#p?this.#r(6,1):this.#x()?this.#r(7,0):this.#h()?this.#r(8,1):this.#f()&&this.#r(9,1);break;case 6:this.#x()?this.#r(7,0):this.#h()?this.#r(8,1):this.#f()&&this.#r(9,1);break;case 7:this.#h()?this.#r(8,1):this.#f()&&this.#r(9,1);break;case 8:this.#f()&&this.#r(9,1);break;case 9:break;case 10:break}}this.#t.hostname!==void 0&&this.#t.port===void 0&&(this.#t.port="")}#r(t,r){switch(this.#o){case 0:break;case 1:this.#t.protocol=this.#c();break;case 2:break;case 3:this.#t.username=this.#c();break;case 4:this.#t.password=this.#c();break;case 5:this.#t.hostname=this.#c();break;case 6:this.#t.port=this.#c();break;case 7:this.#t.pathname=this.#c();break;case 8:this.#t.search=this.#c();break;case 9:this.#t.hash=this.#c();break;case 10:break}this.#o!==0&&t!==10&&([1,2,3,4].includes(this.#o)&&[6,7,8,9].includes(t)&&(this.#t.hostname??=""),[1,2,3,4,5,6].includes(this.#o)&&[8,9].includes(t)&&(this.#t.pathname??=this.#g?"/":""),[1,2,3,4,5,6,7].includes(this.#o)&&t===9&&(this.#t.search??="")),this.#R(t,r)}#R(t,r){this.#o=t,this.#l=this.#e+r,this.#e+=r,this.#s=0}#b(){this.#e=this.#l,this.#s=0}#u(t){this.#b(),this.#o=t}#m(t){return t<0&&(t=this.#n.length-t),t=0&&(e.pathname=b(n.pathname.substring(0,a+1),r)+e.pathname)}e.pathname=ce(e.pathname,e.protocol,r)}return typeof t.search=="string"&&(e.search=se(t.search,r)),typeof t.hash=="string"&&(e.hash=ne(t.hash,r)),e}function C(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function Le(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Ie(e,t){t.delimiter??="/#?",t.prefixes??="./",t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith="";let r=".*",n=`[^${Le(t.delimiter)}]+?`,a=/[$_\u200C\u200D\p{ID_Continue}]/u,c="";for(let l=0;l0?e[l-1]:null,d=l0?d.value[0]:"";o=a.test(T)}else o=!d.hasCustomName();if(!o&&!s.prefix.length&&f&&f.type===3){let T=f.value[f.value.length-1];o=t.prefixes.includes(T)}o&&(c+="{"),c+=C(s.prefix),i&&(c+=`:${s.name}`),s.type===2?c+=`(${s.value})`:s.type===1?i||(c+=`(${n})`):s.type===0&&(!i&&(!f||f.type===3||f.modifier!==3||o||s.prefix!=="")?c+="*":c+=`(${r})`),s.type===1&&i&&s.suffix.length&&a.test(s.suffix[0])&&(c+="\\"),c+=C(s.suffix),o&&(c+="}"),s.modifier!==3&&(c+=k(s.modifier))}return c}var Y=class{#i;#n={};#t={};#e={};#s={};#l=!1;constructor(t={},r,n){try{let a;if(typeof r=="string"?a=r:n=r,typeof t=="string"){let i=new H(t);if(i.parse(),t=i.result,a===void 0&&typeof t.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");t.baseURL=a}else{if(!t||typeof t!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(a)throw new TypeError("parameter 1 is not of type 'string'.")}typeof n>"u"&&(n={ignoreCase:!1});let c={ignoreCase:n.ignoreCase===!0},l={pathname:E,protocol:E,username:E,password:E,hostname:E,port:E,search:E,hash:E};this.#i=w(l,t,!0),z(this.#i.protocol)===this.#i.port&&(this.#i.port="");let s;for(s of V){if(!(s in this.#i))continue;let i={},o=this.#i[s];switch(this.#t[s]=[],s){case"protocol":Object.assign(i,x),i.encodePart=y;break;case"username":Object.assign(i,x),i.encodePart=he;break;case"password":Object.assign(i,x),i.encodePart=ue;break;case"hostname":Object.assign(i,J),_(o)?i.encodePart=K:i.encodePart=j;break;case"port":Object.assign(i,x),i.encodePart=G;break;case"pathname":N(this.#n.protocol)?(Object.assign(i,Q,c),i.encodePart=de):(Object.assign(i,x,c),i.encodePart=pe);break;case"search":Object.assign(i,x,c),i.encodePart=ge;break;case"hash":Object.assign(i,x,c),i.encodePart=me;break}try{this.#s[s]=F(o,i),this.#n[s]=W(this.#s[s],this.#t[s],i),this.#e[s]=Ie(this.#s[s],i),this.#l=this.#l||this.#s[s].some(f=>f.type===2)}catch{throw new TypeError(`invalid ${s} pattern '${this.#i[s]}'.`)}}}catch(a){throw new TypeError(`Failed to construct 'URLPattern': ${a.message}`)}}test(t={},r){let n={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&r)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return!1;try{typeof t=="object"?n=w(n,t,!1):n=w(n,Se(t,r),!1)}catch{return!1}let a;for(a of V)if(!this.#n[a].exec(n[a]))return!1;return!0}exec(t={},r){let n={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&r)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return;try{typeof t=="object"?n=w(n,t,!1):n=w(n,Se(t,r),!1)}catch{return null}let a={};r?a.inputs=[t,r]:a.inputs=[t];let c;for(c of V){let l=this.#n[c].exec(n[c]);if(!l)return null;let s={};for(let[i,o]of this.#t[c].entries())if(typeof o=="string"||typeof o=="number"){let f=l[i+1];s[o]=f}a[c]={input:n[c]??"",groups:s}}return a}static compareComponent(t,r,n){let a=(i,o)=>{for(let f of["type","modifier","prefix","value","suffix"]){if(i[f]{let f=0;for(;f{if(la("OTHER_MODIFIER")??a("ASTERISK"),p=f=>{let u=a(f);if(u!==void 0)return u;let{type:d,index:T}=r[l];throw new TypeError(`Unexpected ${d} at ${T}, expected ${f}`)},O=()=>{let f="",u;for(;u=a("CHAR")??a("ESCAPED_CHAR");)f+=u;return f},xe=f=>f,L=t.encodePart||xe,I="",H=f=>{I+=f},$=()=>{I.length&&(o.push(new k(3,"","",L(I),"",3)),I="")},G=(f,u,d,T,Y)=>{let g=3;switch(Y){case"?":g=1;break;case"*":g=0;break;case"+":g=2;break}if(!u&&!d&&g===3){H(f);return}if($(),!u&&!d){if(!f)return;o.push(new k(3,"","",L(f),"",g));return}let m;d?d==="*"?m=M:m=d:m=n;let R=2;m===n?(R=1,m=""):m===M&&(R=0,m="");let S;if(u?S=u:d&&(S=c++),i.has(S))throw new TypeError(`Duplicate name '${S}'.`);i.add(S),o.push(new k(R,S,L(f),m,L(T),g))};for(;l-1)}return l||(n+=`(?=${c}|${o})`),new RegExp(n,X(r))}var b={delimiter:"",prefixes:"",sensitive:!0,strict:!0},B={delimiter:".",prefixes:"",sensitive:!0,strict:!0},q={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function J(e,t){return e.length?e[0]==="/"?!0:!t||e.length<2?!1:(e[0]=="\\"||e[0]=="{")&&e[1]=="/":!1}function Q(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function Ee(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}function W(e){return!e||e.length<2?!1:e[0]==="["||(e[0]==="\\"||e[0]==="{")&&e[1]==="["}var ee=["ftp","file","http","https","ws","wss"];function N(e){if(!e)return!0;for(let t of ee)if(e.test(t))return!0;return!1}function te(e,t){if(e=Q(e,"#"),t||e==="")return e;let r=new URL("https://example.com");return r.hash=e,r.hash?r.hash.substring(1,r.hash.length):""}function re(e,t){if(e=Q(e,"?"),t||e==="")return e;let r=new URL("https://example.com");return r.search=e,r.search?r.search.substring(1,r.search.length):""}function ne(e,t){return t||e===""?e:W(e)?j(e):z(e)}function se(e,t){if(t||e==="")return e;let r=new URL("https://example.com");return r.password=e,r.password}function ie(e,t){if(t||e==="")return e;let r=new URL("https://example.com");return r.username=e,r.username}function ae(e,t,r){if(r||e==="")return e;if(t&&!ee.includes(t))return new URL(`${t}:${e}`).pathname;let n=e[0]=="/";return e=new URL(n?e:"/-"+e,"https://example.com").pathname,n||(e=e.substring(2,e.length)),e}function oe(e,t,r){return _(t)===e&&(e=""),r||e===""?e:K(e)}function ce(e,t){return e=Ee(e,":"),t||e===""?e:A(e)}function _(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function A(e){if(e==="")return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function le(e){if(e==="")return e;let t=new URL("https://example.com");return t.username=e,t.username}function he(e){if(e==="")return e;let t=new URL("https://example.com");return t.password=e,t.password}function z(e){if(e==="")return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw new TypeError(`Invalid hostname '${e}'`);let t=new URL("https://example.com");return t.hostname=e,t.hostname}function j(e){if(e==="")return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function K(e){if(e===""||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function fe(e){if(e==="")return e;let t=new URL("https://example.com");return t.pathname=e[0]!=="/"?"/-"+e:e,e[0]!=="/"?t.pathname.substring(2,t.pathname.length):t.pathname}function ue(e){return e===""?e:new URL(`data:${e}`).pathname}function pe(e){if(e==="")return e;let t=new URL("https://example.com");return t.search=e,t.search.substring(1,t.search.length)}function de(e){if(e==="")return e;let t=new URL("https://example.com");return t.hash=e,t.hash.substring(1,t.hash.length)}var U=class{#i;#n=[];#t={};#e=0;#s=1;#u=0;#c=0;#p=0;#d=0;#g=!1;constructor(t){this.#i=t}get result(){return this.#t}parse(){for(this.#n=v(this.#i,!0);this.#e0)if(this.#T())this.#p-=1;else continue;if(this.#O()){this.#p+=1;continue}switch(this.#c){case 0:this.#S()&&(this.#t.username="",this.#t.password="",this.#t.hostname="",this.#t.port="",this.#t.pathname="",this.#t.search="",this.#t.hash="",this.#f(1));break;case 1:if(this.#S()){this.#C();let t=7,r=1;this.#g&&(this.#t.pathname="/"),this.#E()?(t=2,r=3):this.#g&&(t=2),this.#r(t,r)}break;case 2:this.#x()?this.#f(3):(this.#b()||this.#h()||this.#l())&&this.#f(5);break;case 3:this.#R()?this.#r(4,1):this.#x()&&this.#r(5,1);break;case 4:this.#x()&&this.#r(5,1);break;case 5:this.#A()?this.#d+=1:this.#w()&&(this.#d-=1),this.#y()&&!this.#d?this.#r(6,1):this.#b()?this.#r(7,0):this.#h()?this.#r(8,1):this.#l()&&this.#r(9,1);break;case 6:this.#b()?this.#r(7,0):this.#h()?this.#r(8,1):this.#l()&&this.#r(9,1);break;case 7:this.#h()?this.#r(8,1):this.#l()&&this.#r(9,1);break;case 8:this.#l()&&this.#r(9,1);break;case 9:break;case 10:break}}}#r(t,r){switch(this.#c){case 0:break;case 1:this.#t.protocol=this.#o();break;case 2:break;case 3:this.#t.username=this.#o();break;case 4:this.#t.password=this.#o();break;case 5:this.#t.hostname=this.#o();break;case 6:this.#t.port=this.#o();break;case 7:this.#t.pathname=this.#o();break;case 8:this.#t.search=this.#o();break;case 9:this.#t.hash=this.#o();break;case 10:break}this.#k(t,r)}#k(t,r){this.#c=t,this.#u=this.#e+r,this.#e+=r,this.#s=0}#P(){this.#e=this.#u,this.#s=0}#f(t){this.#P(),this.#c=t}#m(t){return t<0&&(t=this.#n.length-t),t=0&&(e.pathname=P(n.pathname.substring(0,o+1),r)+e.pathname)}e.pathname=ae(e.pathname,e.protocol,r)}return typeof t.search=="string"&&(e.search=re(t.search,r)),typeof t.hash=="string"&&(e.hash=te(t.hash,r)),e}function C(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function Re(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function ye(e,t){t.delimiter??="/#?",t.prefixes??="./",t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith="";let r=".*",n=`[^${Re(t.delimiter)}]+?`,o=/[$_\u200C\u200D\p{ID_Continue}]/u,c="";for(let l=0;l0?e[l-1]:null,p=l0?p.value[0]:"";a=o.test(O)}else a=!p.hasCustomName();if(!a&&!s.prefix.length&&h&&h.type===3){let O=h.value[h.value.length-1];a=t.prefixes.includes(O)}a&&(c+="{"),c+=C(s.prefix),i&&(c+=`:${s.name}`),s.type===2?c+=`(${s.value})`:s.type===1?i||(c+=`(${n})`):s.type===0&&(!i&&(!h||h.type===3||h.modifier!==3||a||s.prefix!=="")?c+="*":c+=`(${r})`),s.type===1&&i&&s.suffix.length&&o.test(s.suffix[0])&&(c+="\\"),c+=C(s.suffix),a&&(c+="}"),s.modifier!==3&&(c+=y(s.modifier))}return c}var me=class{#i;#n={};#t={};#e={};#s={};constructor(t={},r,n){try{let o;if(typeof r=="string"?o=r:n=r,typeof t=="string"){let i=new U(t);if(i.parse(),t=i.result,o===void 0&&typeof t.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");t.baseURL=o}else{if(!t||typeof t!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(o)throw new TypeError("parameter 1 is not of type 'string'.")}typeof n>"u"&&(n={ignoreCase:!1});let c={ignoreCase:n.ignoreCase===!0},l={pathname:E,protocol:E,username:E,password:E,hostname:E,port:E,search:E,hash:E};this.#i=w(l,t,!0),_(this.#i.protocol)===this.#i.port&&(this.#i.port="");let s;for(s of V){if(!(s in this.#i))continue;let i={},a=this.#i[s];switch(this.#t[s]=[],s){case"protocol":Object.assign(i,b),i.encodePart=A;break;case"username":Object.assign(i,b),i.encodePart=le;break;case"password":Object.assign(i,b),i.encodePart=he;break;case"hostname":Object.assign(i,B),W(a)?i.encodePart=j:i.encodePart=z;break;case"port":Object.assign(i,b),i.encodePart=K;break;case"pathname":N(this.#n.protocol)?(Object.assign(i,q,c),i.encodePart=fe):(Object.assign(i,b,c),i.encodePart=ue);break;case"search":Object.assign(i,b,c),i.encodePart=pe;break;case"hash":Object.assign(i,b,c),i.encodePart=de;break}try{this.#s[s]=D(a,i),this.#n[s]=F(this.#s[s],this.#t[s],i),this.#e[s]=ye(this.#s[s],i)}catch{throw new TypeError(`invalid ${s} pattern '${this.#i[s]}'.`)}}}catch(o){throw new TypeError(`Failed to construct 'URLPattern': ${o.message}`)}}test(t={},r){let n={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&r)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return!1;try{typeof t=="object"?n=w(n,t,!1):n=w(n,ge(t,r),!1)}catch{return!1}let o;for(o of V)if(!this.#n[o].exec(n[o]))return!1;return!0}exec(t={},r){let n={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&r)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return;try{typeof t=="object"?n=w(n,t,!1):n=w(n,ge(t,r),!1)}catch{return null}let o={};r?o.inputs=[t,r]:o.inputs=[t];let c;for(c of V){let l=this.#n[c].exec(n[c]);if(!l)return null;let s={};for(let[i,a]of this.#t[c].entries())if(typeof a=="string"||typeof a=="number"){let h=l[i+1];s[a]=h}o[c]={input:n[c]??"",groups:s}}return o}static compareComponent(t,r,n){let o=(i,a)=>{for(let h of["type","modifier","prefix","value","suffix"]){if(i[h]{let h=0;for(;h{if(la("OTHER_MODIFIER")??a("ASTERISK"),d=h=>{let u=a(h);if(u!==void 0)return u;let{type:p,index:A}=r[l];throw new TypeError(`Unexpected ${p} at ${A}, expected ${h}`)},T=()=>{let h="",u;for(;u=a("CHAR")??a("ESCAPED_CHAR");)h+=u;return h},Se=h=>h,L=t.encodePart||Se,I="",U=h=>{I+=h},$=()=>{I.length&&(o.push(new R(3,"","",L(I),"",3)),I="")},V=(h,u,p,A,Y)=>{let g=3;switch(Y){case"?":g=1;break;case"*":g=0;break;case"+":g=2;break}if(!u&&!p&&g===3){U(h);return}if($(),!u&&!p){if(!h)return;o.push(new R(3,"","",L(h),"",g));return}let m;p?p==="*"?m=M:m=p:m=n;let O=2;m===n?(O=1,m=""):m===M&&(O=0,m="");let P;if(u?P=u:p&&(P=c++),i.has(P))throw new TypeError(`Duplicate name '${P}'.`);i.add(P),o.push(new R(O,P,L(h),m,L(A),g))};for(;l-1)}return l||(n+=`(?=${c}|${o})`),new RegExp(n,X(r))}var x={delimiter:"",prefixes:"",sensitive:!0,strict:!0},B={delimiter:".",prefixes:"",sensitive:!0,strict:!0},q={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function J(e,t){return e.length?e[0]==="/"?!0:!t||e.length<2?!1:(e[0]=="\\"||e[0]=="{")&&e[1]=="/":!1}function Q(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}function Ee(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}function W(e){return!e||e.length<2?!1:e[0]==="["||(e[0]==="\\"||e[0]==="{")&&e[1]==="["}var ee=["ftp","file","http","https","ws","wss"];function N(e){if(!e)return!0;for(let t of ee)if(e.test(t))return!0;return!1}function te(e,t){if(e=Q(e,"#"),t||e==="")return e;let r=new URL("https://example.com");return r.hash=e,r.hash?r.hash.substring(1,r.hash.length):""}function re(e,t){if(e=Q(e,"?"),t||e==="")return e;let r=new URL("https://example.com");return r.search=e,r.search?r.search.substring(1,r.search.length):""}function ne(e,t){return t||e===""?e:W(e)?j(e):z(e)}function se(e,t){if(t||e==="")return e;let r=new URL("https://example.com");return r.password=e,r.password}function ie(e,t){if(t||e==="")return e;let r=new URL("https://example.com");return r.username=e,r.username}function ae(e,t,r){if(r||e==="")return e;if(t&&!ee.includes(t))return new URL(`${t}:${e}`).pathname;let n=e[0]=="/";return e=new URL(n?e:"/-"+e,"https://example.com").pathname,n||(e=e.substring(2,e.length)),e}function oe(e,t,r){return _(t)===e&&(e=""),r||e===""?e:K(e)}function ce(e,t){return e=Ee(e,":"),t||e===""?e:y(e)}function _(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function y(e){if(e==="")return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function le(e){if(e==="")return e;let t=new URL("https://example.com");return t.username=e,t.username}function fe(e){if(e==="")return e;let t=new URL("https://example.com");return t.password=e,t.password}function z(e){if(e==="")return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw new TypeError(`Invalid hostname '${e}'`);let t=new URL("https://example.com");return t.hostname=e,t.hostname}function j(e){if(e==="")return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}function K(e){if(e===""||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}function he(e){if(e==="")return e;let t=new URL("https://example.com");return t.pathname=e[0]!=="/"?"/-"+e:e,e[0]!=="/"?t.pathname.substring(2,t.pathname.length):t.pathname}function ue(e){return e===""?e:new URL(`data:${e}`).pathname}function de(e){if(e==="")return e;let t=new URL("https://example.com");return t.search=e,t.search.substring(1,t.search.length)}function pe(e){if(e==="")return e;let t=new URL("https://example.com");return t.hash=e,t.hash.substring(1,t.hash.length)}var H=class{#i;#n=[];#t={};#e=0;#s=1;#l=0;#o=0;#d=0;#p=0;#g=!1;constructor(t){this.#i=t}get result(){return this.#t}parse(){for(this.#n=v(this.#i,!0);this.#e0)if(this.#A())this.#d-=1;else continue;if(this.#T()){this.#d+=1;continue}switch(this.#o){case 0:this.#P()&&this.#u(1);break;case 1:if(this.#P()){this.#C();let t=7,r=1;this.#E()?(t=2,r=3):this.#g&&(t=2),this.#r(t,r)}break;case 2:this.#S()?this.#u(3):(this.#x()||this.#h()||this.#f())&&this.#u(5);break;case 3:this.#O()?this.#r(4,1):this.#S()&&this.#r(5,1);break;case 4:this.#S()&&this.#r(5,1);break;case 5:this.#y()?this.#p+=1:this.#w()&&(this.#p-=1),this.#k()&&!this.#p?this.#r(6,1):this.#x()?this.#r(7,0):this.#h()?this.#r(8,1):this.#f()&&this.#r(9,1);break;case 6:this.#x()?this.#r(7,0):this.#h()?this.#r(8,1):this.#f()&&this.#r(9,1);break;case 7:this.#h()?this.#r(8,1):this.#f()&&this.#r(9,1);break;case 8:this.#f()&&this.#r(9,1);break;case 9:break;case 10:break}}this.#t.hostname!==void 0&&this.#t.port===void 0&&(this.#t.port="")}#r(t,r){switch(this.#o){case 0:break;case 1:this.#t.protocol=this.#c();break;case 2:break;case 3:this.#t.username=this.#c();break;case 4:this.#t.password=this.#c();break;case 5:this.#t.hostname=this.#c();break;case 6:this.#t.port=this.#c();break;case 7:this.#t.pathname=this.#c();break;case 8:this.#t.search=this.#c();break;case 9:this.#t.hash=this.#c();break;case 10:break}this.#o!==0&&t!==10&&([1,2,3,4].includes(this.#o)&&[6,7,8,9].includes(t)&&(this.#t.hostname??=""),[1,2,3,4,5,6].includes(this.#o)&&[8,9].includes(t)&&(this.#t.pathname??=this.#g?"/":""),[1,2,3,4,5,6,7].includes(this.#o)&&t===9&&(this.#t.search??="")),this.#R(t,r)}#R(t,r){this.#o=t,this.#l=this.#e+r,this.#e+=r,this.#s=0}#b(){this.#e=this.#l,this.#s=0}#u(t){this.#b(),this.#o=t}#m(t){return t<0&&(t=this.#n.length-t),t=0&&(e.pathname=b(n.pathname.substring(0,o+1),r)+e.pathname)}e.pathname=ae(e.pathname,e.protocol,r)}return typeof t.search=="string"&&(e.search=re(t.search,r)),typeof t.hash=="string"&&(e.hash=te(t.hash,r)),e}function C(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function Oe(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function ke(e,t){t.delimiter??="/#?",t.prefixes??="./",t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith="";let r=".*",n=`[^${Oe(t.delimiter)}]+?`,o=/[$_\u200C\u200D\p{ID_Continue}]/u,c="";for(let l=0;l0?e[l-1]:null,d=l0?d.value[0]:"";a=o.test(T)}else a=!d.hasCustomName();if(!a&&!s.prefix.length&&f&&f.type===3){let T=f.value[f.value.length-1];a=t.prefixes.includes(T)}a&&(c+="{"),c+=C(s.prefix),i&&(c+=`:${s.name}`),s.type===2?c+=`(${s.value})`:s.type===1?i||(c+=`(${n})`):s.type===0&&(!i&&(!f||f.type===3||f.modifier!==3||a||s.prefix!=="")?c+="*":c+=`(${r})`),s.type===1&&i&&s.suffix.length&&o.test(s.suffix[0])&&(c+="\\"),c+=C(s.suffix),a&&(c+="}"),s.modifier!==3&&(c+=k(s.modifier))}return c}var me=class{#i;#n={};#t={};#e={};#s={};#l=!1;constructor(t={},r,n){try{let o;if(typeof r=="string"?o=r:n=r,typeof t=="string"){let i=new H(t);if(i.parse(),t=i.result,o===void 0&&typeof t.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");t.baseURL=o}else{if(!t||typeof t!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(o)throw new TypeError("parameter 1 is not of type 'string'.")}typeof n>"u"&&(n={ignoreCase:!1});let c={ignoreCase:n.ignoreCase===!0},l={pathname:E,protocol:E,username:E,password:E,hostname:E,port:E,search:E,hash:E};this.#i=w(l,t,!0),_(this.#i.protocol)===this.#i.port&&(this.#i.port="");let s;for(s of G){if(!(s in this.#i))continue;let i={},a=this.#i[s];switch(this.#t[s]=[],s){case"protocol":Object.assign(i,x),i.encodePart=y;break;case"username":Object.assign(i,x),i.encodePart=le;break;case"password":Object.assign(i,x),i.encodePart=fe;break;case"hostname":Object.assign(i,B),W(a)?i.encodePart=j:i.encodePart=z;break;case"port":Object.assign(i,x),i.encodePart=K;break;case"pathname":N(this.#n.protocol)?(Object.assign(i,q,c),i.encodePart=he):(Object.assign(i,x,c),i.encodePart=ue);break;case"search":Object.assign(i,x,c),i.encodePart=de;break;case"hash":Object.assign(i,x,c),i.encodePart=pe;break}try{this.#s[s]=D(a,i),this.#n[s]=F(this.#s[s],this.#t[s],i),this.#e[s]=ke(this.#s[s],i),this.#l=this.#l||this.#s[s].some(f=>f.type===2)}catch{throw new TypeError(`invalid ${s} pattern '${this.#i[s]}'.`)}}}catch(o){throw new TypeError(`Failed to construct 'URLPattern': ${o.message}`)}}test(t={},r){let n={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&r)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return!1;try{typeof t=="object"?n=w(n,t,!1):n=w(n,ge(t,r),!1)}catch{return!1}let o;for(o of G)if(!this.#n[o].exec(n[o]))return!1;return!0}exec(t={},r){let n={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&r)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return;try{typeof t=="object"?n=w(n,t,!1):n=w(n,ge(t,r),!1)}catch{return null}let o={};r?o.inputs=[t,r]:o.inputs=[t];let c;for(c of G){let l=this.#n[c].exec(n[c]);if(!l)return null;let s={};for(let[i,a]of this.#t[c].entries())if(typeof a=="string"||typeof a=="number"){let f=l[i+1];s[a]=f}o[c]={input:n[c]??"",groups:s}}return o}static compareComponent(t,r,n){let o=(i,a)=>{for(let f of["type","modifier","prefix","value","suffix"]){if(i[f]{let f=0;for(;f=4" } }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/axios": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", + "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", + "dependencies": { + "follow-redirects": "^1.15.4", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/b4a": { - "version": "1.6.4", - "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz", - "integrity": "sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==" + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.6.tgz", + "integrity": "sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==" + }, + "node_modules/bare-events": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.2.0.tgz", + "integrity": "sha512-Yyyqff4PIFfSuthCZqLlPISTWHmnQxoPuAvkmgzsJEmG3CesdIv6Xweayl0JkCZJSB2yYIdJyEz97tpxNhgjbg==", + "optional": true }, "node_modules/base64-js": { "version": "1.5.1", @@ -155,9 +177,9 @@ ] }, "node_modules/basic-ftp": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.4.tgz", - "integrity": "sha512-8PzkB0arJFV4jJWSGOYR+OEic6aeKMu/osRhBULN6RY0ykby6LKhbmuQ5ublvaas5BOwboah5D87nrHyuh8PPA==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.5.tgz", + "integrity": "sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==", "engines": { "node": ">=10.0.0" } @@ -215,12 +237,12 @@ } }, "node_modules/chromium-bidi": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.5.2.tgz", - "integrity": "sha512-PbVOSddxgKyj+JByqavWMNqWPCoCaT6XK5Z1EFe168sxnB/BM51LnZEPXSbFcFAJv/+u2B4XNTs9uXxy4GW3cQ==", + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.5.8.tgz", + "integrity": "sha512-blqh+1cEQbHBKmok3rVJkBlBxt9beKBgOsxbFgs7UJcoVbbeZ+K7+6liAsjgpc8l1Xd55cQUy14fXZdGSb4zIw==", "dependencies": { "mitt": "3.0.1", - "urlpattern-polyfill": "9.0.0" + "urlpattern-polyfill": "10.0.0" }, "peerDependencies": { "devtools-protocol": "*" @@ -252,15 +274,26 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" }, - "node_modules/cosmiconfig": { - "version": "8.3.6", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", - "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/cosmiconfig": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.0.tgz", + "integrity": "sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==", + "dependencies": { + "env-paths": "^2.2.1", "import-fresh": "^3.3.0", "js-yaml": "^4.1.0", - "parse-json": "^5.2.0", - "path-type": "^4.0.0" + "parse-json": "^5.2.0" }, "engines": { "node": ">=14" @@ -286,9 +319,9 @@ } }, "node_modules/data-uri-to-buffer": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.1.tgz", - "integrity": "sha512-MZd3VlchQkp8rdend6vrx7MmVDJzSNTBvghvKjirLkD+WTChA3KUf0jkE68Q4UyctNqI11zZO9/x2Yx+ub5Cvg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz", + "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==", "engines": { "node": ">= 14" } @@ -322,10 +355,18 @@ "node": ">= 14" } }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/devtools-protocol": { - "version": "0.0.1203626", - "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1203626.tgz", - "integrity": "sha512-nEzHZteIUZfGCZtTiS1fRpC8UZmsfD1SiyPvaUNvS13dvKf666OAm8YTi0+Ca3n1nLEyu49Cy4+dPWpaHFJk9g==" + "version": "0.0.1232444", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1232444.tgz", + "integrity": "sha512-pM27vqEfxSxRkTMnF+XCmxSEb6duO5R+t8A9DEEJgy4Wz2RVanje2mmj99B6A3zv2r/qGfYlOvYznUhuokizmg==" }, "node_modules/emoji-regex": { "version": "8.0.0", @@ -340,6 +381,14 @@ "once": "^1.4.0" } }, + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "engines": { + "node": ">=6" + } + }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -349,9 +398,9 @@ } }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", "engines": { "node": ">=6" } @@ -444,17 +493,49 @@ "pend": "~1.2.0" } }, - "node_modules/fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "node_modules/follow-redirects": { + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" }, "engines": { - "node": ">=6 <7 || >=8" + "node": ">= 6" + } + }, + "node_modules/fs-extra": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" } }, "node_modules/get-caller-file": { @@ -480,14 +561,14 @@ } }, "node_modules/get-uri": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.2.tgz", - "integrity": "sha512-5KLucCJobh8vBY1K07EFV4+cPZH3mrV9YeAruUseCQKHB58SGjjT2l9/eA9LD082IiuMjSlFJEcdJ27TXvbZNw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.3.tgz", + "integrity": "sha512-BzUrJBS9EcUb4cFol8r4W3v1cPsSyajLSthNkz5BxbpDcHN5tIrM10E2eNvfnvBn3DaT3DUgx0OpsBKkaOpanw==", "dependencies": { "basic-ftp": "^5.0.2", - "data-uri-to-buffer": "^6.0.0", + "data-uri-to-buffer": "^6.0.2", "debug": "^4.3.4", - "fs-extra": "^8.1.0" + "fs-extra": "^11.2.0" }, "engines": { "node": ">= 14" @@ -507,9 +588,9 @@ } }, "node_modules/http-proxy-agent": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz", - "integrity": "sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", "dependencies": { "agent-base": "^7.1.0", "debug": "^4.3.4" @@ -519,9 +600,9 @@ } }, "node_modules/https-proxy-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz", - "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.4.tgz", + "integrity": "sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==", "dependencies": { "agent-base": "^7.0.2", "debug": "4" @@ -564,10 +645,17 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ip": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", - "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==" + "node_modules/ip-address": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", + "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", + "dependencies": { + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" + }, + "engines": { + "node": ">= 12" + } }, "node_modules/is-arrayish": { "version": "0.2.1", @@ -598,15 +686,23 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/jsbn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", + "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==" + }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" }, "node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dependencies": { + "universalify": "^2.0.0" + }, "optionalDependencies": { "graceful-fs": "^4.1.6" } @@ -624,6 +720,25 @@ "node": ">=12" } }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/mitt": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", @@ -693,12 +808,11 @@ } }, "node_modules/pac-resolver": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.0.tgz", - "integrity": "sha512-Fd9lT9vJbHYRACT8OhCbZBbxr6KRSawSovFpy8nDGshaK99S/EBhVIHp9+crhxrsZOuvLpgL1n23iyPg6Rl2hg==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz", + "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==", "dependencies": { "degenerator": "^5.0.0", - "ip": "^1.1.8", "netmask": "^2.0.2" }, "engines": { @@ -733,14 +847,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "engines": { - "node": ">=8" - } - }, "node_modules/pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", @@ -787,14 +893,14 @@ } }, "node_modules/puppeteer": { - "version": "21.7.0", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.7.0.tgz", - "integrity": "sha512-Yy+UUy0b9siJezbhHO/heYUoZQUwyqDK1yOQgblTt0l97tspvDVFkcW9toBlnSvSfkDmMI3Dx9cZL6R8bDArHA==", + "version": "21.11.0", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.11.0.tgz", + "integrity": "sha512-9jTHuYe22TD3sNxy0nEIzC7ZrlRnDgeX3xPkbS7PnbdwYjl2o/z/YuCrRBwezdKpbTDTJ4VqIggzNyeRcKq3cg==", "hasInstallScript": true, "dependencies": { "@puppeteer/browsers": "1.9.1", - "cosmiconfig": "8.3.6", - "puppeteer-core": "21.7.0" + "cosmiconfig": "9.0.0", + "puppeteer-core": "21.11.0" }, "bin": { "puppeteer": "lib/esm/puppeteer/node/cli.js" @@ -804,15 +910,15 @@ } }, "node_modules/puppeteer-core": { - "version": "21.7.0", - "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.7.0.tgz", - "integrity": "sha512-elPYPozrgiM3phSy7VDUJCVWQ07SPnOm78fpSaaSNFoQx5sur/MqhTSro9Wz8lOEjqCykGC6WRkwxDgmqcy1dQ==", + "version": "21.11.0", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.11.0.tgz", + "integrity": "sha512-ArbnyA3U5SGHokEvkfWjW+O8hOxV1RSJxOgriX/3A4xZRqixt9ZFHD0yPgZQF05Qj0oAqi8H/7stDorjoHY90Q==", "dependencies": { "@puppeteer/browsers": "1.9.1", - "chromium-bidi": "0.5.2", + "chromium-bidi": "0.5.8", "cross-fetch": "4.0.0", "debug": "4.3.4", - "devtools-protocol": "0.0.1203626", + "devtools-protocol": "0.0.1232444", "ws": "8.16.0" }, "engines": { @@ -850,15 +956,15 @@ } }, "node_modules/socks": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", - "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.1.tgz", + "integrity": "sha512-B6w7tkwNid7ToxjZ08rQMT8M9BJAf8DKx8Ft4NivzH0zBUfd6jldGcisJn/RLgxcX3FPNDdNQCUEMMT79b+oCQ==", "dependencies": { - "ip": "^2.0.0", + "ip-address": "^9.0.5", "smart-buffer": "^4.2.0" }, "engines": { - "node": ">= 10.13.0", + "node": ">= 10.0.0", "npm": ">= 3.0.0" } }, @@ -875,11 +981,6 @@ "node": ">= 14" } }, - "node_modules/socks/node_modules/ip": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", - "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" - }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -889,13 +990,21 @@ "node": ">=0.10.0" } }, + "node_modules/sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==" + }, "node_modules/streamx": { - "version": "2.15.6", - "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.6.tgz", - "integrity": "sha512-q+vQL4AAz+FdfT137VF69Cc/APqUbxy+MDOImRrMvchJpigHj9GksgDU2LYbO9rx7RX6osWgxJB2WxhYv4SZAw==", + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.16.1.tgz", + "integrity": "sha512-m9QYj6WygWyWa3H1YY69amr4nVgy61xfjys7xO7kviL5rfIEc2naf+ewFiOA+aEJD7y0JO3h2GoiUv4TDwEGzQ==", "dependencies": { "fast-fifo": "^1.1.0", "queue-tick": "^1.0.1" + }, + "optionalDependencies": { + "bare-events": "^2.2.0" } }, "node_modules/string-width": { @@ -944,9 +1053,9 @@ } }, "node_modules/tar-stream": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.6.tgz", - "integrity": "sha512-B/UyjYwPpMBv+PaFSWAmtYjwdrlEaZQEhMIBFNC5oEG8lpiW8XjcSdmEaClj28ArfKScKHs2nshz3k2le6crsg==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", + "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", "dependencies": { "b4a": "^1.6.4", "fast-fifo": "^1.2.0", @@ -984,17 +1093,17 @@ "optional": true }, "node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "engines": { - "node": ">= 4.0.0" + "node": ">= 10.0.0" } }, "node_modules/urlpattern-polyfill": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-9.0.0.tgz", - "integrity": "sha512-WHN8KDQblxd32odxeIgo83rdVDE2bvdkb86it7bMhYZwWKJz0+O0RK/eZiHYnM+zgt/U7hAHOlCQGfjjvSkw2g==" + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.0.0.tgz", + "integrity": "sha512-H/A06tKD7sS1O1X2SshBVeA5FLycRpjqiBeqGKmBwBDBy28EnRjORxTNe269KSSr5un5qyWi1iL61wLxpd+ZOg==" }, "node_modules/webidl-conversions": { "version": "3.0.1", diff --git a/Scripts/package.json b/Scripts/package.json index 803ccee1..35e14f0e 100644 --- a/Scripts/package.json +++ b/Scripts/package.json @@ -1,5 +1,6 @@ { "dependencies": { - "puppeteer": "^21.7.0" + "axios": "^1.6.7", + "puppeteer": "^21.11.0" } } diff --git a/Todos.md b/Todos.md index 0d5846db..9660a7e2 100644 --- a/Todos.md +++ b/Todos.md @@ -53,3 +53,15 @@ FEAT: Transcripts page - Clickable courses, Export of table "proof for learner", - [ ] Create topic list doc for CE Team Meetings - [X] Ask Travis to sync privately with Alaina +## 02-28-2024 + +- [X] Submit 2 CSQLs for Zenjob - one for PX and one for additional instance of CE +- [ ] Zenjob - Clean "Internal Zenjob Testing" - remove everyone without a Zenjob email address. One domain - zenjob.com. +- [ ] Part 2 - Add people to academy and add them to Internal Zenjob Testing group. +- [ ] Ask about the following: + - [ ] Can a person "speak" to a KC bot? + - [ ] How does KC bot search work? + - [ ] Will NP have improved search in 2024? Will AI be included? +- [ ] Walmart: Back button from overview page takes a while to respond. +- [ ] Mattr: Research [Avner's Slack +message](https://northpasshq.slack.com/archives/C04RER4PH09/p1709147957374999?thread_ts=1709081535.497109&cid=C04RER4PH09) on how they can grade a coding assignment in or out of CE.
+ + + + + + + + +

Alloy is the integration development platform that makes it simple and
fast for SaaS companies to launch critical user-facing integrations.

+

+ Sign up free • + Documentation +

+

+