diff --git a/.gitignore b/.gitignore
index fd0b6e4..938c38d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,6 @@
deno.lock
test_space
.env
+node_modules/
+playwright-report/
+test-results/
diff --git a/node_modules/.bin/playwright b/node_modules/.bin/playwright
deleted file mode 120000
index 271b06f..0000000
--- a/node_modules/.bin/playwright
+++ /dev/null
@@ -1 +0,0 @@
-../.deno/playwright@1.58.2/node_modules/playwright/cli.js
\ No newline at end of file
diff --git a/node_modules/.bin/playwright-core b/node_modules/.bin/playwright-core
deleted file mode 120000
index b5a006a..0000000
--- a/node_modules/.bin/playwright-core
+++ /dev/null
@@ -1 +0,0 @@
-../.deno/playwright-core@1.58.2/node_modules/playwright-core/cli.js
\ No newline at end of file
diff --git a/node_modules/.deno/.deno.lock b/node_modules/.deno/.deno.lock
deleted file mode 100644
index e69de29..0000000
diff --git a/node_modules/.deno/.setup-cache.bin b/node_modules/.deno/.setup-cache.bin
deleted file mode 100644
index e85b554..0000000
Binary files a/node_modules/.deno/.setup-cache.bin and /dev/null differ
diff --git a/node_modules/.deno/@standard-schema+spec@1.1.0/.initialized b/node_modules/.deno/@standard-schema+spec@1.1.0/.initialized
deleted file mode 100644
index e69de29..0000000
diff --git a/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/LICENSE b/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/LICENSE
deleted file mode 100644
index ea54e0d..0000000
--- a/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2024 Colin McDonnell
-
-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/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/README.md b/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/README.md
deleted file mode 100644
index f9813ff..0000000
--- a/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/README.md
+++ /dev/null
@@ -1,198 +0,0 @@
-
-
-
- Standard Schema
-
- A family of specs for interoperable TypeScript
-
- standardschema.dev
-
-
-
-
-
-The Standard Schema project is a set of interfaces that standardize the provision and consumption of shared functionality in the TypeScript ecosystem.
-
-Its goal is to allow tools to accept a single input that includes all the types and capabilities they need— no library-specific adapters, no extra dependencies. The result is an ecosystem that's fair for implementers, friendly for consumers, and open for end users.
-
-## The specifications
-
-The specifications can be found below in their entirety. Libraries wishing to implement a spec can copy/paste the code block below into their codebase. They're also available at `@standard-schema/spec` on [npm](https://www.npmjs.com/package/@standard-schema/spec) and [JSR](https://jsr.io/@standard-schema/spec).
-
-```ts
-// #########################
-// ### Standard Typed ###
-// #########################
-
-/** The Standard Typed interface. This is a base type extended by other specs. */
-export interface StandardTypedV1 {
- /** The Standard properties. */
- readonly "~standard": StandardTypedV1.Props ;
-}
-
-export declare namespace StandardTypedV1 {
- /** The Standard Typed properties interface. */
- export interface Props {
- /** The version number of the standard. */
- readonly version: 1;
- /** The vendor name of the schema library. */
- readonly vendor: string;
- /** Inferred types associated with the schema. */
- readonly types?: Types | undefined;
- }
-
- /** The Standard Typed types interface. */
- export interface Types {
- /** The input type of the schema. */
- readonly input: Input;
- /** The output type of the schema. */
- readonly output: Output;
- }
-
- /** Infers the input type of a Standard Typed. */
- export type InferInput = NonNullable<
- Schema["~standard"]["types"]
- >["input"];
-
- /** Infers the output type of a Standard Typed. */
- export type InferOutput = NonNullable<
- Schema["~standard"]["types"]
- >["output"];
-}
-
-// ##########################
-// ### Standard Schema ###
-// ##########################
-
-/** The Standard Schema interface. */
-export interface StandardSchemaV1 {
- /** The Standard Schema properties. */
- readonly "~standard": StandardSchemaV1.Props ;
-}
-
-export declare namespace StandardSchemaV1 {
- /** The Standard Schema properties interface. */
- export interface Props
- extends StandardTypedV1.Props {
- /** Validates unknown input values. */
- readonly validate: (
- value: unknown,
- options?: StandardSchemaV1.Options | undefined
- ) => Result | Promise>;
- }
-
- /** The result interface of the validate function. */
- export type Result = SuccessResult | FailureResult;
-
- /** The result interface if validation succeeds. */
- export interface SuccessResult {
- /** The typed output value. */
- readonly value: Output;
- /** A falsy value for `issues` indicates success. */
- readonly issues?: undefined;
- }
-
- export interface Options {
- /** Explicit support for additional vendor-specific parameters, if needed. */
- readonly libraryOptions?: Record | undefined;
- }
-
- /** The result interface if validation fails. */
- export interface FailureResult {
- /** The issues of failed validation. */
- readonly issues: ReadonlyArray;
- }
-
- /** The issue interface of the failure output. */
- export interface Issue {
- /** The error message of the issue. */
- readonly message: string;
- /** The path of the issue, if any. */
- readonly path?: ReadonlyArray | undefined;
- }
-
- /** The path segment interface of the issue. */
- export interface PathSegment {
- /** The key representing a path segment. */
- readonly key: PropertyKey;
- }
-
- /** The Standard types interface. */
- export interface Types
- extends StandardTypedV1.Types {}
-
- /** Infers the input type of a Standard. */
- export type InferInput =
- StandardTypedV1.InferInput;
-
- /** Infers the output type of a Standard. */
- export type InferOutput =
- StandardTypedV1.InferOutput;
-}
-
-// ###############################
-// ### Standard JSON Schema ###
-// ###############################
-
-/** The Standard JSON Schema interface. */
-export interface StandardJSONSchemaV1 {
- /** The Standard JSON Schema properties. */
- readonly "~standard": StandardJSONSchemaV1.Props ;
-}
-
-export declare namespace StandardJSONSchemaV1 {
- /** The Standard JSON Schema properties interface. */
- export interface Props
- extends StandardTypedV1.Props {
- /** Methods for generating the input/output JSON Schema. */
- readonly jsonSchema: StandardJSONSchemaV1.Converter;
- }
-
- /** The Standard JSON Schema converter interface. */
- export interface Converter {
- /** Converts the input type to JSON Schema. May throw if conversion is not supported. */
- readonly input: (
- options: StandardJSONSchemaV1.Options
- ) => Record;
- /** Converts the output type to JSON Schema. May throw if conversion is not supported. */
- readonly output: (
- options: StandardJSONSchemaV1.Options
- ) => Record;
- }
-
- /**
- * The target version of the generated JSON Schema.
- *
- * It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use. All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.
- *
- * The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`.
- */
- export type Target =
- | "draft-2020-12"
- | "draft-07"
- | "openapi-3.0"
- // Accepts any string for future targets while preserving autocomplete
- | ({} & string);
-
- /** The options for the input/output methods. */
- export interface Options {
- /** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */
- readonly target: Target;
-
- /** Explicit support for additional vendor-specific parameters, if needed. */
- readonly libraryOptions?: Record | undefined;
- }
-
- /** The Standard types interface. */
- export interface Types
- extends StandardTypedV1.Types {}
-
- /** Infers the input type of a Standard. */
- export type InferInput =
- StandardTypedV1.InferInput;
-
- /** Infers the output type of a Standard. */
- export type InferOutput =
- StandardTypedV1.InferOutput;
-}
-```
diff --git a/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.cjs b/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.cjs
deleted file mode 100644
index 321666e..0000000
--- a/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.cjs
+++ /dev/null
@@ -1,18 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-
-// src/index.ts
-var src_exports = {};
-module.exports = __toCommonJS(src_exports);
diff --git a/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.cts b/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.cts
deleted file mode 100644
index 5e4acaa..0000000
--- a/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.cts
+++ /dev/null
@@ -1,119 +0,0 @@
-/** The Standard Typed interface. This is a base type extended by other specs. */
-interface StandardTypedV1 {
- /** The Standard properties. */
- readonly "~standard": StandardTypedV1.Props ;
-}
-declare namespace StandardTypedV1 {
- /** The Standard Typed properties interface. */
- interface Props {
- /** The version number of the standard. */
- readonly version: 1;
- /** The vendor name of the schema library. */
- readonly vendor: string;
- /** Inferred types associated with the schema. */
- readonly types?: Types | undefined;
- }
- /** The Standard Typed types interface. */
- interface Types {
- /** The input type of the schema. */
- readonly input: Input;
- /** The output type of the schema. */
- readonly output: Output;
- }
- /** Infers the input type of a Standard Typed. */
- type InferInput = NonNullable["input"];
- /** Infers the output type of a Standard Typed. */
- type InferOutput = NonNullable["output"];
-}
-/** The Standard Schema interface. */
-interface StandardSchemaV1 {
- /** The Standard Schema properties. */
- readonly "~standard": StandardSchemaV1.Props ;
-}
-declare namespace StandardSchemaV1 {
- /** The Standard Schema properties interface. */
- interface Props extends StandardTypedV1.Props {
- /** Validates unknown input values. */
- readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result | Promise>;
- }
- /** The result interface of the validate function. */
- type Result = SuccessResult | FailureResult;
- /** The result interface if validation succeeds. */
- interface SuccessResult {
- /** The typed output value. */
- readonly value: Output;
- /** A falsy value for `issues` indicates success. */
- readonly issues?: undefined;
- }
- interface Options {
- /** Explicit support for additional vendor-specific parameters, if needed. */
- readonly libraryOptions?: Record | undefined;
- }
- /** The result interface if validation fails. */
- interface FailureResult {
- /** The issues of failed validation. */
- readonly issues: ReadonlyArray;
- }
- /** The issue interface of the failure output. */
- interface Issue {
- /** The error message of the issue. */
- readonly message: string;
- /** The path of the issue, if any. */
- readonly path?: ReadonlyArray | undefined;
- }
- /** The path segment interface of the issue. */
- interface PathSegment {
- /** The key representing a path segment. */
- readonly key: PropertyKey;
- }
- /** The Standard types interface. */
- interface Types extends StandardTypedV1.Types {
- }
- /** Infers the input type of a Standard. */
- type InferInput = StandardTypedV1.InferInput;
- /** Infers the output type of a Standard. */
- type InferOutput = StandardTypedV1.InferOutput;
-}
-/** The Standard JSON Schema interface. */
-interface StandardJSONSchemaV1 {
- /** The Standard JSON Schema properties. */
- readonly "~standard": StandardJSONSchemaV1.Props ;
-}
-declare namespace StandardJSONSchemaV1 {
- /** The Standard JSON Schema properties interface. */
- interface Props extends StandardTypedV1.Props {
- /** Methods for generating the input/output JSON Schema. */
- readonly jsonSchema: StandardJSONSchemaV1.Converter;
- }
- /** The Standard JSON Schema converter interface. */
- interface Converter {
- /** Converts the input type to JSON Schema. May throw if conversion is not supported. */
- readonly input: (options: StandardJSONSchemaV1.Options) => Record;
- /** Converts the output type to JSON Schema. May throw if conversion is not supported. */
- readonly output: (options: StandardJSONSchemaV1.Options) => Record;
- }
- /**
- * The target version of the generated JSON Schema.
- *
- * It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use. All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.
- *
- * The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`.
- */
- type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string);
- /** The options for the input/output methods. */
- interface Options {
- /** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */
- readonly target: Target;
- /** Explicit support for additional vendor-specific parameters, if needed. */
- readonly libraryOptions?: Record | undefined;
- }
- /** The Standard types interface. */
- interface Types extends StandardTypedV1.Types {
- }
- /** Infers the input type of a Standard. */
- type InferInput = StandardTypedV1.InferInput;
- /** Infers the output type of a Standard. */
- type InferOutput = StandardTypedV1.InferOutput;
-}
-
-export { StandardJSONSchemaV1, StandardSchemaV1, StandardTypedV1 };
diff --git a/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.ts b/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.ts
deleted file mode 100644
index 5e4acaa..0000000
--- a/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.ts
+++ /dev/null
@@ -1,119 +0,0 @@
-/** The Standard Typed interface. This is a base type extended by other specs. */
-interface StandardTypedV1 {
- /** The Standard properties. */
- readonly "~standard": StandardTypedV1.Props ;
-}
-declare namespace StandardTypedV1 {
- /** The Standard Typed properties interface. */
- interface Props {
- /** The version number of the standard. */
- readonly version: 1;
- /** The vendor name of the schema library. */
- readonly vendor: string;
- /** Inferred types associated with the schema. */
- readonly types?: Types | undefined;
- }
- /** The Standard Typed types interface. */
- interface Types {
- /** The input type of the schema. */
- readonly input: Input;
- /** The output type of the schema. */
- readonly output: Output;
- }
- /** Infers the input type of a Standard Typed. */
- type InferInput = NonNullable["input"];
- /** Infers the output type of a Standard Typed. */
- type InferOutput = NonNullable["output"];
-}
-/** The Standard Schema interface. */
-interface StandardSchemaV1 {
- /** The Standard Schema properties. */
- readonly "~standard": StandardSchemaV1.Props ;
-}
-declare namespace StandardSchemaV1 {
- /** The Standard Schema properties interface. */
- interface Props extends StandardTypedV1.Props {
- /** Validates unknown input values. */
- readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result | Promise>;
- }
- /** The result interface of the validate function. */
- type Result = SuccessResult | FailureResult;
- /** The result interface if validation succeeds. */
- interface SuccessResult {
- /** The typed output value. */
- readonly value: Output;
- /** A falsy value for `issues` indicates success. */
- readonly issues?: undefined;
- }
- interface Options {
- /** Explicit support for additional vendor-specific parameters, if needed. */
- readonly libraryOptions?: Record | undefined;
- }
- /** The result interface if validation fails. */
- interface FailureResult {
- /** The issues of failed validation. */
- readonly issues: ReadonlyArray;
- }
- /** The issue interface of the failure output. */
- interface Issue {
- /** The error message of the issue. */
- readonly message: string;
- /** The path of the issue, if any. */
- readonly path?: ReadonlyArray | undefined;
- }
- /** The path segment interface of the issue. */
- interface PathSegment {
- /** The key representing a path segment. */
- readonly key: PropertyKey;
- }
- /** The Standard types interface. */
- interface Types extends StandardTypedV1.Types {
- }
- /** Infers the input type of a Standard. */
- type InferInput = StandardTypedV1.InferInput;
- /** Infers the output type of a Standard. */
- type InferOutput = StandardTypedV1.InferOutput;
-}
-/** The Standard JSON Schema interface. */
-interface StandardJSONSchemaV1 {
- /** The Standard JSON Schema properties. */
- readonly "~standard": StandardJSONSchemaV1.Props ;
-}
-declare namespace StandardJSONSchemaV1 {
- /** The Standard JSON Schema properties interface. */
- interface Props extends StandardTypedV1.Props {
- /** Methods for generating the input/output JSON Schema. */
- readonly jsonSchema: StandardJSONSchemaV1.Converter;
- }
- /** The Standard JSON Schema converter interface. */
- interface Converter {
- /** Converts the input type to JSON Schema. May throw if conversion is not supported. */
- readonly input: (options: StandardJSONSchemaV1.Options) => Record;
- /** Converts the output type to JSON Schema. May throw if conversion is not supported. */
- readonly output: (options: StandardJSONSchemaV1.Options) => Record;
- }
- /**
- * The target version of the generated JSON Schema.
- *
- * It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use. All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.
- *
- * The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`.
- */
- type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string);
- /** The options for the input/output methods. */
- interface Options {
- /** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */
- readonly target: Target;
- /** Explicit support for additional vendor-specific parameters, if needed. */
- readonly libraryOptions?: Record | undefined;
- }
- /** The Standard types interface. */
- interface Types extends StandardTypedV1.Types {
- }
- /** Infers the input type of a Standard. */
- type InferInput = StandardTypedV1.InferInput;
- /** Infers the output type of a Standard. */
- type InferOutput = StandardTypedV1.InferOutput;
-}
-
-export { StandardJSONSchemaV1, StandardSchemaV1, StandardTypedV1 };
diff --git a/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.js b/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.js
deleted file mode 100644
index e69de29..0000000
diff --git a/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/package.json b/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/package.json
deleted file mode 100644
index 62bb551..0000000
--- a/node_modules/.deno/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/package.json
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- "name": "@standard-schema/spec",
- "description": "A family of specs for interoperable TypeScript",
- "version": "1.1.0",
- "license": "MIT",
- "author": "Colin McDonnell",
- "homepage": "https://standardschema.dev",
- "repository": {
- "type": "git",
- "url": "https://github.com/standard-schema/standard-schema"
- },
- "keywords": [
- "typescript",
- "schema",
- "validation",
- "standard",
- "interface"
- ],
- "type": "module",
- "main": "./dist/index.js",
- "types": "./dist/index.d.ts",
- "exports": {
- ".": {
- "standard-schema-spec": "./src/index.ts",
- "import": {
- "types": "./dist/index.d.ts",
- "default": "./dist/index.js"
- },
- "require": {
- "types": "./dist/index.d.cts",
- "default": "./dist/index.cjs"
- }
- }
- },
- "sideEffects": false,
- "files": [
- "dist"
- ],
- "publishConfig": {
- "access": "public"
- },
- "devDependencies": {
- "tsup": "^8.3.0",
- "typescript": "^5.6.2"
- },
- "scripts": {
- "lint": "pnpm biome lint ./src",
- "format": "pnpm biome format --write ./src",
- "check": "pnpm biome check ./src",
- "build": "tsup"
- }
-}
\ No newline at end of file
diff --git a/node_modules/.deno/node_modules/@standard-schema/spec b/node_modules/.deno/node_modules/@standard-schema/spec
deleted file mode 120000
index ddfb8a4..0000000
--- a/node_modules/.deno/node_modules/@standard-schema/spec
+++ /dev/null
@@ -1 +0,0 @@
-../../@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec
\ No newline at end of file
diff --git a/node_modules/.deno/node_modules/playwright-core b/node_modules/.deno/node_modules/playwright-core
deleted file mode 120000
index 37d7b7a..0000000
--- a/node_modules/.deno/node_modules/playwright-core
+++ /dev/null
@@ -1 +0,0 @@
-../playwright-core@1.58.2/node_modules/playwright-core
\ No newline at end of file
diff --git a/node_modules/.deno/playwright-core@1.58.2/.initialized b/node_modules/.deno/playwright-core@1.58.2/.initialized
deleted file mode 100644
index e69de29..0000000
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/LICENSE b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/LICENSE
deleted file mode 100644
index df11237..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/LICENSE
+++ /dev/null
@@ -1,202 +0,0 @@
- 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.
-
- Portions Copyright (c) Microsoft Corporation.
- Portions Copyright 2017 Google Inc.
-
- 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/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/NOTICE b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/NOTICE
deleted file mode 100644
index 814ec16..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/NOTICE
+++ /dev/null
@@ -1,5 +0,0 @@
-Playwright
-Copyright (c) Microsoft Corporation
-
-This software contains code derived from the Puppeteer project (https://github.com/puppeteer/puppeteer),
-available under the Apache 2.0 license (https://github.com/puppeteer/puppeteer/blob/master/LICENSE).
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/README.md b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/README.md
deleted file mode 100644
index 422b373..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# playwright-core
-
-This package contains the no-browser flavor of [Playwright](http://github.com/microsoft/playwright).
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/ThirdPartyNotices.txt b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/ThirdPartyNotices.txt
deleted file mode 100644
index 2fc5064..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/ThirdPartyNotices.txt
+++ /dev/null
@@ -1,4076 +0,0 @@
-microsoft/playwright-core
-
-THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
-
-This project incorporates components from the projects listed below. The original copyright notices and the licenses under which Microsoft received such components are set forth below. Microsoft reserves all rights not expressly granted herein, whether by implication, estoppel or otherwise.
-
-- @hono/node-server@1.19.8 (https://github.com/honojs/node-server)
-- @lowire/loop@0.0.25 (https://github.com/pavelfeldman/lowire)
-- @modelcontextprotocol/sdk@1.25.2 (https://github.com/modelcontextprotocol/typescript-sdk)
-- accepts@2.0.0 (https://github.com/jshttp/accepts)
-- agent-base@7.1.4 (https://github.com/TooTallNate/proxy-agents)
-- ajv-formats@3.0.1 (https://github.com/ajv-validator/ajv-formats)
-- ajv@8.17.1 (https://github.com/ajv-validator/ajv)
-- balanced-match@1.0.2 (https://github.com/juliangruber/balanced-match)
-- body-parser@2.2.1 (https://github.com/expressjs/body-parser)
-- brace-expansion@1.1.12 (https://github.com/juliangruber/brace-expansion)
-- buffer-crc32@0.2.13 (https://github.com/brianloveswords/buffer-crc32)
-- bytes@3.1.2 (https://github.com/visionmedia/bytes.js)
-- call-bind-apply-helpers@1.0.2 (https://github.com/ljharb/call-bind-apply-helpers)
-- call-bound@1.0.4 (https://github.com/ljharb/call-bound)
-- codemirror@5.65.18 (https://github.com/codemirror/CodeMirror)
-- colors@1.4.0 (https://github.com/Marak/colors.js)
-- commander@13.1.0 (https://github.com/tj/commander.js)
-- concat-map@0.0.1 (https://github.com/substack/node-concat-map)
-- content-disposition@1.0.0 (https://github.com/jshttp/content-disposition)
-- content-type@1.0.5 (https://github.com/jshttp/content-type)
-- cookie-signature@1.2.2 (https://github.com/visionmedia/node-cookie-signature)
-- cookie@0.7.2 (https://github.com/jshttp/cookie)
-- cors@2.8.5 (https://github.com/expressjs/cors)
-- cross-spawn@7.0.6 (https://github.com/moxystudio/node-cross-spawn)
-- debug@4.3.4 (https://github.com/debug-js/debug)
-- debug@4.4.0 (https://github.com/debug-js/debug)
-- debug@4.4.3 (https://github.com/debug-js/debug)
-- define-lazy-prop@2.0.0 (https://github.com/sindresorhus/define-lazy-prop)
-- depd@2.0.0 (https://github.com/dougwilson/nodejs-depd)
-- diff@7.0.0 (https://github.com/kpdecker/jsdiff)
-- dotenv@16.4.5 (https://github.com/motdotla/dotenv)
-- dunder-proto@1.0.1 (https://github.com/es-shims/dunder-proto)
-- ee-first@1.1.1 (https://github.com/jonathanong/ee-first)
-- encodeurl@2.0.0 (https://github.com/pillarjs/encodeurl)
-- end-of-stream@1.4.4 (https://github.com/mafintosh/end-of-stream)
-- es-define-property@1.0.1 (https://github.com/ljharb/es-define-property)
-- es-errors@1.3.0 (https://github.com/ljharb/es-errors)
-- es-object-atoms@1.1.1 (https://github.com/ljharb/es-object-atoms)
-- escape-html@1.0.3 (https://github.com/component/escape-html)
-- etag@1.8.1 (https://github.com/jshttp/etag)
-- eventsource-parser@3.0.3 (https://github.com/rexxars/eventsource-parser)
-- eventsource@3.0.7 (git://git@github.com/EventSource/eventsource)
-- express-rate-limit@7.5.1 (https://github.com/express-rate-limit/express-rate-limit)
-- express@5.1.0 (https://github.com/expressjs/express)
-- fast-deep-equal@3.1.3 (https://github.com/epoberezkin/fast-deep-equal)
-- fast-uri@3.1.0 (https://github.com/fastify/fast-uri)
-- finalhandler@2.1.0 (https://github.com/pillarjs/finalhandler)
-- forwarded@0.2.0 (https://github.com/jshttp/forwarded)
-- fresh@2.0.0 (https://github.com/jshttp/fresh)
-- function-bind@1.1.2 (https://github.com/Raynos/function-bind)
-- get-intrinsic@1.3.0 (https://github.com/ljharb/get-intrinsic)
-- get-proto@1.0.1 (https://github.com/ljharb/get-proto)
-- get-stream@5.2.0 (https://github.com/sindresorhus/get-stream)
-- gopd@1.2.0 (https://github.com/ljharb/gopd)
-- graceful-fs@4.2.10 (https://github.com/isaacs/node-graceful-fs)
-- has-symbols@1.1.0 (https://github.com/inspect-js/has-symbols)
-- hasown@2.0.2 (https://github.com/inspect-js/hasOwn)
-- hono@4.11.3 (https://github.com/honojs/hono)
-- http-errors@2.0.1 (https://github.com/jshttp/http-errors)
-- https-proxy-agent@7.0.6 (https://github.com/TooTallNate/proxy-agents)
-- iconv-lite@0.7.0 (https://github.com/pillarjs/iconv-lite)
-- inherits@2.0.4 (https://github.com/isaacs/inherits)
-- ip-address@9.0.5 (https://github.com/beaugunderson/ip-address)
-- ipaddr.js@1.9.1 (https://github.com/whitequark/ipaddr.js)
-- is-docker@2.2.1 (https://github.com/sindresorhus/is-docker)
-- is-promise@4.0.0 (https://github.com/then/is-promise)
-- is-wsl@2.2.0 (https://github.com/sindresorhus/is-wsl)
-- isexe@2.0.0 (https://github.com/isaacs/isexe)
-- jose@6.1.3 (https://github.com/panva/jose)
-- jpeg-js@0.4.4 (https://github.com/eugeneware/jpeg-js)
-- jsbn@1.1.0 (https://github.com/andyperlitch/jsbn)
-- json-schema-traverse@1.0.0 (https://github.com/epoberezkin/json-schema-traverse)
-- json-schema-typed@8.0.2 (https://github.com/RemyRylan/json-schema-typed)
-- math-intrinsics@1.1.0 (https://github.com/es-shims/math-intrinsics)
-- media-typer@1.1.0 (https://github.com/jshttp/media-typer)
-- merge-descriptors@2.0.0 (https://github.com/sindresorhus/merge-descriptors)
-- mime-db@1.54.0 (https://github.com/jshttp/mime-db)
-- mime-types@3.0.1 (https://github.com/jshttp/mime-types)
-- mime@3.0.0 (https://github.com/broofa/mime)
-- minimatch@3.1.2 (https://github.com/isaacs/minimatch)
-- ms@2.1.2 (https://github.com/zeit/ms)
-- ms@2.1.3 (https://github.com/vercel/ms)
-- negotiator@1.0.0 (https://github.com/jshttp/negotiator)
-- object-assign@4.1.1 (https://github.com/sindresorhus/object-assign)
-- object-inspect@1.13.4 (https://github.com/inspect-js/object-inspect)
-- on-finished@2.4.1 (https://github.com/jshttp/on-finished)
-- once@1.4.0 (https://github.com/isaacs/once)
-- open@8.4.0 (https://github.com/sindresorhus/open)
-- parseurl@1.3.3 (https://github.com/pillarjs/parseurl)
-- path-key@3.1.1 (https://github.com/sindresorhus/path-key)
-- path-to-regexp@8.2.0 (https://github.com/pillarjs/path-to-regexp)
-- pend@1.2.0 (https://github.com/andrewrk/node-pend)
-- pkce-challenge@5.0.0 (https://github.com/crouchcd/pkce-challenge)
-- pngjs@6.0.0 (https://github.com/lukeapage/pngjs)
-- progress@2.0.3 (https://github.com/visionmedia/node-progress)
-- proxy-addr@2.0.7 (https://github.com/jshttp/proxy-addr)
-- proxy-from-env@1.1.0 (https://github.com/Rob--W/proxy-from-env)
-- pump@3.0.2 (https://github.com/mafintosh/pump)
-- qs@6.14.1 (https://github.com/ljharb/qs)
-- range-parser@1.2.1 (https://github.com/jshttp/range-parser)
-- raw-body@3.0.2 (https://github.com/stream-utils/raw-body)
-- require-from-string@2.0.2 (https://github.com/floatdrop/require-from-string)
-- retry@0.12.0 (https://github.com/tim-kos/node-retry)
-- router@2.2.0 (https://github.com/pillarjs/router)
-- safe-buffer@5.2.1 (https://github.com/feross/safe-buffer)
-- safer-buffer@2.1.2 (https://github.com/ChALkeR/safer-buffer)
-- send@1.2.0 (https://github.com/pillarjs/send)
-- serve-static@2.2.0 (https://github.com/expressjs/serve-static)
-- setprototypeof@1.2.0 (https://github.com/wesleytodd/setprototypeof)
-- shebang-command@2.0.0 (https://github.com/kevva/shebang-command)
-- shebang-regex@3.0.0 (https://github.com/sindresorhus/shebang-regex)
-- side-channel-list@1.0.0 (https://github.com/ljharb/side-channel-list)
-- side-channel-map@1.0.1 (https://github.com/ljharb/side-channel-map)
-- side-channel-weakmap@1.0.2 (https://github.com/ljharb/side-channel-weakmap)
-- side-channel@1.1.0 (https://github.com/ljharb/side-channel)
-- signal-exit@3.0.7 (https://github.com/tapjs/signal-exit)
-- smart-buffer@4.2.0 (https://github.com/JoshGlazebrook/smart-buffer)
-- socks-proxy-agent@8.0.5 (https://github.com/TooTallNate/proxy-agents)
-- socks@2.8.3 (https://github.com/JoshGlazebrook/socks)
-- sprintf-js@1.1.3 (https://github.com/alexei/sprintf.js)
-- statuses@2.0.2 (https://github.com/jshttp/statuses)
-- toidentifier@1.0.1 (https://github.com/component/toidentifier)
-- type-is@2.0.1 (https://github.com/jshttp/type-is)
-- unpipe@1.0.0 (https://github.com/stream-utils/unpipe)
-- vary@1.1.2 (https://github.com/jshttp/vary)
-- which@2.0.2 (https://github.com/isaacs/node-which)
-- wrappy@1.0.2 (https://github.com/npm/wrappy)
-- ws@8.17.1 (https://github.com/websockets/ws)
-- yaml@2.6.0 (https://github.com/eemeli/yaml)
-- yauzl@3.2.0 (https://github.com/thejoshwolfe/yauzl)
-- yazl@2.5.1 (https://github.com/thejoshwolfe/yazl)
-- zod-to-json-schema@3.25.1 (https://github.com/StefanTerdell/zod-to-json-schema)
-- zod@4.3.5 (https://github.com/colinhacks/zod)
-
-%% @hono/node-server@1.19.8 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-# Node.js Adapter for Hono
-
-This adapter `@hono/node-server` allows you to run your Hono application on Node.js.
-Initially, Hono wasn't designed for Node.js, but with this adapter, you can now use Hono on Node.js.
-It utilizes web standard APIs implemented in Node.js version 18 or higher.
-
-## Benchmarks
-
-Hono is 3.5 times faster than Express.
-
-Express:
-
-```txt
-$ bombardier -d 10s --fasthttp http://localhost:3000/
-
-Statistics Avg Stdev Max
- Reqs/sec 16438.94 1603.39 19155.47
- Latency 7.60ms 7.51ms 559.89ms
- HTTP codes:
- 1xx - 0, 2xx - 164494, 3xx - 0, 4xx - 0, 5xx - 0
- others - 0
- Throughput: 4.55MB/s
-```
-
-Hono + `@hono/node-server`:
-
-```txt
-$ bombardier -d 10s --fasthttp http://localhost:3000/
-
-Statistics Avg Stdev Max
- Reqs/sec 58296.56 5512.74 74403.56
- Latency 2.14ms 1.46ms 190.92ms
- HTTP codes:
- 1xx - 0, 2xx - 583059, 3xx - 0, 4xx - 0, 5xx - 0
- others - 0
- Throughput: 12.56MB/s
-```
-
-## Requirements
-
-It works on Node.js versions greater than 18.x. The specific required Node.js versions are as follows:
-
-- 18.x => 18.14.1+
-- 19.x => 19.7.0+
-- 20.x => 20.0.0+
-
-Essentially, you can simply use the latest version of each major release.
-
-## Installation
-
-You can install it from the npm registry with `npm` command:
-
-```sh
-npm install @hono/node-server
-```
-
-Or use `yarn`:
-
-```sh
-yarn add @hono/node-server
-```
-
-## Usage
-
-Just import `@hono/node-server` at the top and write the code as usual.
-The same code that runs on Cloudflare Workers, Deno, and Bun will work.
-
-```ts
-import { serve } from '@hono/node-server'
-import { Hono } from 'hono'
-
-const app = new Hono()
-app.get('/', (c) => c.text('Hono meets Node.js'))
-
-serve(app, (info) => {
- console.log(`Listening on http://localhost:${info.port}`) // Listening on http://localhost:3000
-})
-```
-
-For example, run it using `ts-node`. Then an HTTP server will be launched. The default port is `3000`.
-
-```sh
-ts-node ./index.ts
-```
-
-Open `http://localhost:3000` with your browser.
-
-## Options
-
-### `port`
-
-```ts
-serve({
- fetch: app.fetch,
- port: 8787, // Port number, default is 3000
-})
-```
-
-### `createServer`
-
-```ts
-import { createServer } from 'node:https'
-import fs from 'node:fs'
-
-//...
-
-serve({
- fetch: app.fetch,
- createServer: createServer,
- serverOptions: {
- key: fs.readFileSync('test/fixtures/keys/agent1-key.pem'),
- cert: fs.readFileSync('test/fixtures/keys/agent1-cert.pem'),
- },
-})
-```
-
-### `overrideGlobalObjects`
-
-The default value is `true`. The Node.js Adapter rewrites the global Request/Response and uses a lightweight Request/Response to improve performance. If you don't want to do that, set `false`.
-
-```ts
-serve({
- fetch: app.fetch,
- overrideGlobalObjects: false,
-})
-```
-
-### `autoCleanupIncoming`
-
-The default value is `true`. The Node.js Adapter automatically cleans up (explicitly call `destroy()` method) if application is not finished to consume the incoming request. If you don't want to do that, set `false`.
-
-If the application accepts connections from arbitrary clients, this cleanup must be done otherwise incomplete requests from clients may cause the application to stop responding. If your application only accepts connections from trusted clients, such as in a reverse proxy environment and there is no process that returns a response without reading the body of the POST request all the way through, you can improve performance by setting it to `false`.
-
-```ts
-serve({
- fetch: app.fetch,
- autoCleanupIncoming: false,
-})
-```
-
-## Middleware
-
-Most built-in middleware also works with Node.js.
-Read [the documentation](https://hono.dev/middleware/builtin/basic-auth) and use the Middleware of your liking.
-
-```ts
-import { serve } from '@hono/node-server'
-import { Hono } from 'hono'
-import { prettyJSON } from 'hono/pretty-json'
-
-const app = new Hono()
-
-app.get('*', prettyJSON())
-app.get('/', (c) => c.json({ 'Hono meets': 'Node.js' }))
-
-serve(app)
-```
-
-## Serve Static Middleware
-
-Use Serve Static Middleware that has been created for Node.js.
-
-```ts
-import { serveStatic } from '@hono/node-server/serve-static'
-
-//...
-
-app.use('/static/*', serveStatic({ root: './' }))
-```
-
-If using a relative path, `root` will be relative to the current working directory from which the app was started.
-
-This can cause confusion when running your application locally.
-
-Imagine your project structure is:
-
-```
-my-hono-project/
- src/
- index.ts
- static/
- index.html
-```
-
-Typically, you would run your app from the project's root directory (`my-hono-project`),
-so you would need the following code to serve the `static` folder:
-
-```ts
-app.use('/static/*', serveStatic({ root: './static' }))
-```
-
-Notice that `root` here is not relative to `src/index.ts`, rather to `my-hono-project`.
-
-### Options
-
-#### `rewriteRequestPath`
-
-If you want to serve files in `./.foojs` with the request path `/__foo/*`, you can write like the following.
-
-```ts
-app.use(
- '/__foo/*',
- serveStatic({
- root: './.foojs/',
- rewriteRequestPath: (path: string) => path.replace(/^\/__foo/, ''),
- })
-)
-```
-
-#### `onFound`
-
-You can specify handling when the requested file is found with `onFound`.
-
-```ts
-app.use(
- '/static/*',
- serveStatic({
- // ...
- onFound: (_path, c) => {
- c.header('Cache-Control', `public, immutable, max-age=31536000`)
- },
- })
-)
-```
-
-#### `onNotFound`
-
-The `onNotFound` is useful for debugging. You can write a handle for when a file is not found.
-
-```ts
-app.use(
- '/static/*',
- serveStatic({
- root: './non-existent-dir',
- onNotFound: (path, c) => {
- console.log(`${path} is not found, request to ${c.req.path}`)
- },
- })
-)
-```
-
-#### `precompressed`
-
-The `precompressed` option checks if files with extensions like `.br` or `.gz` are available and serves them based on the `Accept-Encoding` header. It prioritizes Brotli, then Zstd, and Gzip. If none are available, it serves the original file.
-
-```ts
-app.use(
- '/static/*',
- serveStatic({
- precompressed: true,
- })
-)
-```
-
-## ConnInfo Helper
-
-You can use the [ConnInfo Helper](https://hono.dev/docs/helpers/conninfo) by importing `getConnInfo` from `@hono/node-server/conninfo`.
-
-```ts
-import { getConnInfo } from '@hono/node-server/conninfo'
-
-app.get('/', (c) => {
- const info = getConnInfo(c) // info is `ConnInfo`
- return c.text(`Your remote address is ${info.remote.address}`)
-})
-```
-
-## Accessing Node.js API
-
-You can access the Node.js API from `c.env` in Node.js. For example, if you want to specify a type, you can write the following.
-
-```ts
-import { serve } from '@hono/node-server'
-import type { HttpBindings } from '@hono/node-server'
-import { Hono } from 'hono'
-
-const app = new Hono<{ Bindings: HttpBindings }>()
-
-app.get('/', (c) => {
- return c.json({
- remoteAddress: c.env.incoming.socket.remoteAddress,
- })
-})
-
-serve(app)
-```
-
-The APIs that you can get from `c.env` are as follows.
-
-```ts
-type HttpBindings = {
- incoming: IncomingMessage
- outgoing: ServerResponse
-}
-
-type Http2Bindings = {
- incoming: Http2ServerRequest
- outgoing: Http2ServerResponse
-}
-```
-
-## Direct response from Node.js API
-
-You can directly respond to the client from the Node.js API.
-In that case, the response from Hono should be ignored, so return `RESPONSE_ALREADY_SENT`.
-
-> [!NOTE]
-> This feature can be used when migrating existing Node.js applications to Hono, but we recommend using Hono's API for new applications.
-
-```ts
-import { serve } from '@hono/node-server'
-import type { HttpBindings } from '@hono/node-server'
-import { RESPONSE_ALREADY_SENT } from '@hono/node-server/utils/response'
-import { Hono } from 'hono'
-
-const app = new Hono<{ Bindings: HttpBindings }>()
-
-app.get('/', (c) => {
- const { outgoing } = c.env
- outgoing.writeHead(200, { 'Content-Type': 'text/plain' })
- outgoing.end('Hello World\n')
-
- return RESPONSE_ALREADY_SENT
-})
-
-serve(app)
-```
-
-## Listen to a UNIX domain socket
-
-You can configure the HTTP server to listen to a UNIX domain socket instead of a TCP port.
-
-```ts
-import { createAdaptorServer } from '@hono/node-server'
-
-// ...
-
-const socketPath ='/tmp/example.sock'
-
-const server = createAdaptorServer(app)
-server.listen(socketPath, () => {
- console.log(`Listening on ${socketPath}`)
-})
-```
-
-## Related projects
-
-- Hono -
-- Hono GitHub repository -
-
-## Author
-
-Yusuke Wada
-
-## License
-
-MIT
-=========================================
-END OF @hono/node-server@1.19.8 AND INFORMATION
-
-%% @lowire/loop@0.0.25 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-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 (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.
-=========================================
-END OF @lowire/loop@0.0.25 AND INFORMATION
-
-%% @modelcontextprotocol/sdk@1.25.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2024 Anthropic, PBC
-
-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.
-=========================================
-END OF @modelcontextprotocol/sdk@1.25.2 AND INFORMATION
-
-%% accepts@2.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(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.
-=========================================
-END OF accepts@2.0.0 AND INFORMATION
-
-%% agent-base@7.1.4 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(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.
-=========================================
-END OF agent-base@7.1.4 AND INFORMATION
-
-%% ajv-formats@3.0.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2020 Evgeny Poberezkin
-
-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.
-=========================================
-END OF ajv-formats@3.0.1 AND INFORMATION
-
-%% ajv@8.17.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2015-2021 Evgeny Poberezkin
-
-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.
-=========================================
-END OF ajv@8.17.1 AND INFORMATION
-
-%% balanced-match@1.0.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(MIT)
-
-Copyright (c) 2013 Julian Gruber <julian@juliangruber.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.
-=========================================
-END OF balanced-match@1.0.2 AND INFORMATION
-
-%% body-parser@2.2.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2014 Jonathan Ong
-Copyright (c) 2014-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.
-=========================================
-END OF body-parser@2.2.1 AND INFORMATION
-
-%% brace-expansion@1.1.12 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2013 Julian Gruber
-
-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.
-=========================================
-END OF brace-expansion@1.1.12 AND INFORMATION
-
-%% buffer-crc32@0.2.13 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License
-
-Copyright (c) 2013 Brian J. Brennan
-
-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.
-=========================================
-END OF buffer-crc32@0.2.13 AND INFORMATION
-
-%% bytes@3.1.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2012-2014 TJ Holowaychuk
-Copyright (c) 2015 Jed Watson
-
-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.
-=========================================
-END OF bytes@3.1.2 AND INFORMATION
-
-%% call-bind-apply-helpers@1.0.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2024 Jordan Harband
-
-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.
-=========================================
-END OF call-bind-apply-helpers@1.0.2 AND INFORMATION
-
-%% call-bound@1.0.4 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2024 Jordan Harband
-
-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.
-=========================================
-END OF call-bound@1.0.4 AND INFORMATION
-
-%% codemirror@5.65.18 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (C) 2017 by Marijn Haverbeke and others
-
-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.
-=========================================
-END OF codemirror@5.65.18 AND INFORMATION
-
-%% colors@1.4.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Original Library
- - Copyright (c) Marak Squires
-
-Additional Functionality
- - 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.
-=========================================
-END OF colors@1.4.0 AND INFORMATION
-
-%% commander@13.1.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2011 TJ Holowaychuk
-
-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.
-=========================================
-END OF commander@13.1.0 AND INFORMATION
-
-%% concat-map@0.0.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-This software is released under the MIT license:
-
-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.
-=========================================
-END OF concat-map@0.0.1 AND INFORMATION
-
-%% content-disposition@1.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2014-2017 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.
-=========================================
-END OF content-disposition@1.0.0 AND INFORMATION
-
-%% content-type@1.0.5 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-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.
-=========================================
-END OF content-type@1.0.5 AND INFORMATION
-
-%% cookie-signature@1.2.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2012–2024 LearnBoost and other 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.
-=========================================
-END OF cookie-signature@1.2.2 AND INFORMATION
-
-%% cookie@0.7.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2012-2014 Roman Shtylman
-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.
-=========================================
-END OF cookie@0.7.2 AND INFORMATION
-
-%% cors@2.8.5 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2013 Troy Goode
-
-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.
-=========================================
-END OF cors@2.8.5 AND INFORMATION
-
-%% cross-spawn@7.0.6 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2018 Made With MOXY Lda
-
-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.
-=========================================
-END OF cross-spawn@7.0.6 AND INFORMATION
-
-%% debug@4.3.4 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2014-2017 TJ Holowaychuk
-Copyright (c) 2018-2021 Josh Junon
-
-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.
-=========================================
-END OF debug@4.3.4 AND INFORMATION
-
-%% debug@4.4.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2014-2017 TJ Holowaychuk
-Copyright (c) 2018-2021 Josh Junon
-
-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.
-=========================================
-END OF debug@4.4.0 AND INFORMATION
-
-%% debug@4.4.3 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2014-2017 TJ Holowaychuk
-Copyright (c) 2018-2021 Josh Junon
-
-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.
-=========================================
-END OF debug@4.4.3 AND INFORMATION
-
-%% define-lazy-prop@2.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-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.
-=========================================
-END OF define-lazy-prop@2.0.0 AND INFORMATION
-
-%% depd@2.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2014-2018 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.
-=========================================
-END OF depd@2.0.0 AND INFORMATION
-
-%% diff@7.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-BSD 3-Clause License
-
-Copyright (c) 2009-2015, Kevin Decker
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-2. 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.
-
-3. Neither the name of the copyright holder 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 COPYRIGHT HOLDER OR CONTRIBUTORS 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.
-=========================================
-END OF diff@7.0.0 AND INFORMATION
-
-%% dotenv@16.4.5 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-Copyright (c) 2015, Scott Motte
-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.
-
-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 COPYRIGHT HOLDER OR CONTRIBUTORS 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.
-=========================================
-END OF dotenv@16.4.5 AND INFORMATION
-
-%% dunder-proto@1.0.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2024 ECMAScript Shims
-
-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.
-=========================================
-END OF dunder-proto@1.0.1 AND INFORMATION
-
-%% ee-first@1.1.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2014 Jonathan Ong me@jongleberry.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.
-=========================================
-END OF ee-first@1.1.1 AND INFORMATION
-
-%% encodeurl@2.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2016 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.
-=========================================
-END OF encodeurl@2.0.0 AND INFORMATION
-
-%% end-of-stream@1.4.4 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2014 Mathias Buus
-
-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.
-=========================================
-END OF end-of-stream@1.4.4 AND INFORMATION
-
-%% es-define-property@1.0.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2024 Jordan Harband
-
-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.
-=========================================
-END OF es-define-property@1.0.1 AND INFORMATION
-
-%% es-errors@1.3.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2024 Jordan Harband
-
-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.
-=========================================
-END OF es-errors@1.3.0 AND INFORMATION
-
-%% es-object-atoms@1.1.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2024 Jordan Harband
-
-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.
-=========================================
-END OF es-object-atoms@1.1.1 AND INFORMATION
-
-%% escape-html@1.0.3 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2012-2013 TJ Holowaychuk
-Copyright (c) 2015 Andreas Lubbe
-Copyright (c) 2015 Tiancheng "Timothy" Gu
-
-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.
-=========================================
-END OF escape-html@1.0.3 AND INFORMATION
-
-%% etag@1.8.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2014-2016 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.
-=========================================
-END OF etag@1.8.1 AND INFORMATION
-
-%% eventsource-parser@3.0.3 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2025 Espen Hovlandsdal
-
-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.
-=========================================
-END OF eventsource-parser@3.0.3 AND INFORMATION
-
-%% eventsource@3.0.7 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License
-
-Copyright (c) EventSource GitHub organisation
-
-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.
-=========================================
-END OF eventsource@3.0.7 AND INFORMATION
-
-%% express-rate-limit@7.5.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-# MIT License
-
-Copyright 2023 Nathan Friedly, Vedant K
-
-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.
-=========================================
-END OF express-rate-limit@7.5.1 AND INFORMATION
-
-%% express@5.1.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2009-2014 TJ Holowaychuk
-Copyright (c) 2013-2014 Roman Shtylman
-Copyright (c) 2014-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.
-=========================================
-END OF express@5.1.0 AND INFORMATION
-
-%% fast-deep-equal@3.1.3 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2017 Evgeny Poberezkin
-
-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.
-=========================================
-END OF fast-deep-equal@3.1.3 AND INFORMATION
-
-%% fast-uri@3.1.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
-Copyright (c) 2021-present The Fastify team
-All rights reserved.
-
-The Fastify team members are listed at https://github.com/fastify/fastify#team.
-
-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.
- * The names of any contributors may not 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 COPYRIGHT HOLDERS AND CONTRIBUTORS 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.
-
- * * *
-
-The complete list of contributors can be found at:
-- https://github.com/garycourt/uri-js/graphs/contributors
-=========================================
-END OF fast-uri@3.1.0 AND INFORMATION
-
-%% finalhandler@2.1.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2014-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.
-=========================================
-END OF finalhandler@2.1.0 AND INFORMATION
-
-%% forwarded@0.2.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2014-2017 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.
-=========================================
-END OF forwarded@0.2.0 AND INFORMATION
-
-%% fresh@2.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2012 TJ Holowaychuk
-Copyright (c) 2016-2017 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.
-=========================================
-END OF fresh@2.0.0 AND INFORMATION
-
-%% function-bind@1.1.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-Copyright (c) 2013 Raynos.
-
-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.
-=========================================
-END OF function-bind@1.1.2 AND INFORMATION
-
-%% get-intrinsic@1.3.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2020 Jordan Harband
-
-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.
-=========================================
-END OF get-intrinsic@1.3.0 AND INFORMATION
-
-%% get-proto@1.0.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2025 Jordan Harband
-
-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.
-=========================================
-END OF get-proto@1.0.1 AND INFORMATION
-
-%% get-stream@5.2.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) Sindre Sorhus (https://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.
-=========================================
-END OF get-stream@5.2.0 AND INFORMATION
-
-%% gopd@1.2.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2022 Jordan Harband
-
-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.
-=========================================
-END OF gopd@1.2.0 AND INFORMATION
-
-%% graceful-fs@4.2.10 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The ISC License
-
-Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors
-
-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.
-
-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.
-=========================================
-END OF graceful-fs@4.2.10 AND INFORMATION
-
-%% has-symbols@1.1.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2016 Jordan Harband
-
-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.
-=========================================
-END OF has-symbols@1.1.0 AND INFORMATION
-
-%% hasown@2.0.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) Jordan Harband 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.
-=========================================
-END OF hasown@2.0.2 AND INFORMATION
-
-%% hono@4.11.3 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2021 - present, Yusuke Wada and Hono 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.
-=========================================
-END OF hono@4.11.3 AND INFORMATION
-
-%% http-errors@2.0.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2014 Jonathan Ong me@jongleberry.com
-Copyright (c) 2016 Douglas Christopher Wilson doug@somethingdoug.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.
-=========================================
-END OF http-errors@2.0.1 AND INFORMATION
-
-%% https-proxy-agent@7.0.6 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(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.
-=========================================
-END OF https-proxy-agent@7.0.6 AND INFORMATION
-
-%% iconv-lite@0.7.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-Copyright (c) 2011 Alexander Shtuchkin
-
-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.
-=========================================
-END OF iconv-lite@0.7.0 AND INFORMATION
-
-%% inherits@2.0.4 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter
-
-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.
-
-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.
-=========================================
-END OF inherits@2.0.4 AND INFORMATION
-
-%% ip-address@9.0.5 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-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.
-=========================================
-END OF ip-address@9.0.5 AND INFORMATION
-
-%% ipaddr.js@1.9.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-Copyright (C) 2011-2017 whitequark
-
-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.
-=========================================
-END OF ipaddr.js@1.9.1 AND INFORMATION
-
-%% is-docker@2.2.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) Sindre Sorhus (https://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.
-=========================================
-END OF is-docker@2.2.1 AND INFORMATION
-
-%% is-promise@4.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-Copyright (c) 2014 Forbes Lindesay
-
-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.
-=========================================
-END OF is-promise@4.0.0 AND INFORMATION
-
-%% is-wsl@2.2.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-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.
-=========================================
-END OF is-wsl@2.2.0 AND INFORMATION
-
-%% isexe@2.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-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.
-
-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.
-=========================================
-END OF isexe@2.0.0 AND INFORMATION
-
-%% jose@6.1.3 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2018 Filip Skokan
-
-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.
-=========================================
-END OF jose@6.1.3 AND INFORMATION
-
-%% jpeg-js@0.4.4 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-Copyright (c) 2014, Eugene Ware
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-2. 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.
-3. Neither the name of Eugene Ware 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 EUGENE WARE ''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 EUGENE WARE 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.
-=========================================
-END OF jpeg-js@0.4.4 AND INFORMATION
-
-%% jsbn@1.1.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-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
-=========================================
-END OF jsbn@1.1.0 AND INFORMATION
-
-%% json-schema-traverse@1.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2017 Evgeny Poberezkin
-
-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.
-=========================================
-END OF json-schema-traverse@1.0.0 AND INFORMATION
-
-%% json-schema-typed@8.0.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-BSD 2-Clause License
-
-Original source code is copyright (c) 2019-2025 Remy Rylan
-
-
-All JSON Schema documentation and descriptions are copyright (c):
-
-2009 [draft-0] IETF Trust , Kris Zyp ,
-and SitePen (USA) .
-
-2009 [draft-1] IETF Trust , Kris Zyp ,
-and SitePen (USA) .
-
-2010 [draft-2] IETF Trust , Kris Zyp ,
-and SitePen (USA) .
-
-2010 [draft-3] IETF Trust , Kris Zyp ,
-Gary Court , and SitePen (USA) .
-
-2013 [draft-4] IETF Trust ), Francis Galiegue
-, Kris Zyp , Gary Court
-, and SitePen (USA) .
-
-2018 [draft-7] IETF Trust , Austin Wright ,
-Henry Andrews , Geraint Luff , and
-Cloudflare, Inc. .
-
-2019 [draft-2019-09] IETF Trust , Austin Wright
-, Henry Andrews , Ben Hutton
-, and Greg Dennis .
-
-2020 [draft-2020-12] IETF Trust , Austin Wright
-, Henry Andrews , Ben Hutton
-, and Greg Dennis .
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-2. 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.
-
-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 COPYRIGHT HOLDER OR CONTRIBUTORS 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.
-=========================================
-END OF json-schema-typed@8.0.2 AND INFORMATION
-
-%% math-intrinsics@1.1.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2024 ECMAScript Shims
-
-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.
-=========================================
-END OF math-intrinsics@1.1.0 AND INFORMATION
-
-%% media-typer@1.1.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2014-2017 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.
-=========================================
-END OF media-typer@1.1.0 AND INFORMATION
-
-%% merge-descriptors@2.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) Jonathan Ong
-Copyright (c) Douglas Christopher Wilson
-Copyright (c) Sindre Sorhus (https://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.
-=========================================
-END OF merge-descriptors@2.0.0 AND INFORMATION
-
-%% mime-db@1.54.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(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.
-=========================================
-END OF mime-db@1.54.0 AND INFORMATION
-
-%% mime-types@3.0.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(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.
-=========================================
-END OF mime-types@3.0.1 AND INFORMATION
-
-%% mime@3.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2010 Benjamin Thomas, Robert Kieffer
-
-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.
-=========================================
-END OF mime@3.0.0 AND INFORMATION
-
-%% minimatch@3.1.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-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.
-
-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.
-=========================================
-END OF minimatch@3.1.2 AND INFORMATION
-
-%% ms@2.1.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2016 Zeit, Inc.
-
-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.
-=========================================
-END OF ms@2.1.2 AND INFORMATION
-
-%% ms@2.1.3 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2020 Vercel, Inc.
-
-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.
-=========================================
-END OF ms@2.1.3 AND INFORMATION
-
-%% negotiator@1.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2012-2014 Federico Romero
-Copyright (c) 2012-2014 Isaac Z. Schlueter
-Copyright (c) 2014-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.
-=========================================
-END OF negotiator@1.0.0 AND INFORMATION
-
-%% object-assign@4.1.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-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.
-=========================================
-END OF object-assign@4.1.1 AND INFORMATION
-
-%% object-inspect@1.13.4 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2013 James Halliday
-
-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.
-=========================================
-END OF object-inspect@1.13.4 AND INFORMATION
-
-%% on-finished@2.4.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2013 Jonathan Ong
-Copyright (c) 2014 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.
-=========================================
-END OF on-finished@2.4.1 AND INFORMATION
-
-%% once@1.4.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-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.
-
-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.
-=========================================
-END OF once@1.4.0 AND INFORMATION
-
-%% open@8.4.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) Sindre Sorhus (https://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.
-=========================================
-END OF open@8.4.0 AND INFORMATION
-
-%% parseurl@1.3.3 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2014 Jonathan Ong
-Copyright (c) 2014-2017 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.
-=========================================
-END OF parseurl@1.3.3 AND INFORMATION
-
-%% path-key@3.1.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-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.
-=========================================
-END OF path-key@3.1.1 AND INFORMATION
-
-%% path-to-regexp@8.2.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2014 Blake Embrey (hello@blakeembrey.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.
-=========================================
-END OF path-to-regexp@8.2.0 AND INFORMATION
-
-%% pend@1.2.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (Expat)
-
-Copyright (c) 2014 Andrew Kelley
-
-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.
-=========================================
-END OF pend@1.2.0 AND INFORMATION
-
-%% pkce-challenge@5.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2019
-
-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.
-=========================================
-END OF pkce-challenge@5.0.0 AND INFORMATION
-
-%% pngjs@6.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-pngjs2 original work Copyright (c) 2015 Luke Page & Original Contributors
-pngjs derived work Copyright (c) 2012 Kuba Niegowski
-
-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.
-=========================================
-END OF pngjs@6.0.0 AND INFORMATION
-
-%% progress@2.0.3 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2017 TJ Holowaychuk
-
-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.
-=========================================
-END OF progress@2.0.3 AND INFORMATION
-
-%% proxy-addr@2.0.7 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2014-2016 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.
-=========================================
-END OF proxy-addr@2.0.7 AND INFORMATION
-
-%% proxy-from-env@1.1.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License
-
-Copyright (C) 2016-2018 Rob Wu
-
-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.
-=========================================
-END OF proxy-from-env@1.1.0 AND INFORMATION
-
-%% pump@3.0.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2014 Mathias Buus
-
-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.
-=========================================
-END OF pump@3.0.2 AND INFORMATION
-
-%% qs@6.14.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-BSD 3-Clause License
-
-Copyright (c) 2014, Nathan LaFreniere and other [contributors](https://github.com/ljharb/qs/graphs/contributors)
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-2. 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.
-
-3. Neither the name of the copyright holder 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 COPYRIGHT HOLDER OR CONTRIBUTORS 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.
-=========================================
-END OF qs@6.14.1 AND INFORMATION
-
-%% range-parser@1.2.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2012-2014 TJ Holowaychuk
-Copyright (c) 2015-2016 Douglas Christopher Wilson
-Copyright (c) 2014-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.
-=========================================
-END OF raw-body@3.0.2 AND INFORMATION
-
-%% require-from-string@2.0.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) Vsevolod Strukchinsky (github.com/floatdrop)
-
-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.
-=========================================
-END OF require-from-string@2.0.2 AND INFORMATION
-
-%% retry@0.12.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-Copyright (c) 2011:
-Tim Koschützki (tim@debuggable.com)
-Felix Geisendörfer (felix@debuggable.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.
-=========================================
-END OF retry@0.12.0 AND INFORMATION
-
-%% router@2.2.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2013 Roman Shtylman
-Copyright (c) 2014-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.
-=========================================
-END OF router@2.2.0 AND INFORMATION
-
-%% safe-buffer@5.2.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) Feross Aboukhadijeh
-
-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.
-=========================================
-END OF safe-buffer@5.2.1 AND INFORMATION
-
-%% safer-buffer@2.1.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2018 Nikita Skovoroda
-
-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.
-=========================================
-END OF safer-buffer@2.1.2 AND INFORMATION
-
-%% send@1.2.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2012 TJ Holowaychuk
-Copyright (c) 2014-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.
-=========================================
-END OF send@1.2.0 AND INFORMATION
-
-%% serve-static@2.2.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2010 Sencha Inc.
-Copyright (c) 2011 LearnBoost
-Copyright (c) 2011 TJ Holowaychuk
-Copyright (c) 2014-2016 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.
-=========================================
-END OF serve-static@2.2.0 AND INFORMATION
-
-%% setprototypeof@1.2.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-Copyright (c) 2015, Wes Todd
-
-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.
-
-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.
-=========================================
-END OF setprototypeof@1.2.0 AND INFORMATION
-
-%% shebang-command@2.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) Kevin Mårtensson (github.com/kevva)
-
-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.
-=========================================
-END OF shebang-command@2.0.0 AND INFORMATION
-
-%% shebang-regex@3.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-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.
-=========================================
-END OF shebang-regex@3.0.0 AND INFORMATION
-
-%% side-channel-list@1.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2024 Jordan Harband
-
-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.
-=========================================
-END OF side-channel-list@1.0.0 AND INFORMATION
-
-%% side-channel-map@1.0.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2024 Jordan Harband
-
-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.
-=========================================
-END OF side-channel-map@1.0.1 AND INFORMATION
-
-%% side-channel-weakmap@1.0.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2019 Jordan Harband
-
-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.
-=========================================
-END OF side-channel-weakmap@1.0.2 AND INFORMATION
-
-%% side-channel@1.1.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2019 Jordan Harband
-
-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.
-=========================================
-END OF side-channel@1.1.0 AND INFORMATION
-
-%% signal-exit@3.0.7 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The ISC License
-
-Copyright (c) 2015, Contributors
-
-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.
-
-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.
-=========================================
-END OF signal-exit@3.0.7 AND INFORMATION
-
-%% smart-buffer@4.2.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2013-2017 Josh Glazebrook
-
-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.
-=========================================
-END OF smart-buffer@4.2.0 AND INFORMATION
-
-%% socks-proxy-agent@8.0.5 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(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.
-=========================================
-END OF socks-proxy-agent@8.0.5 AND INFORMATION
-
-%% socks@2.8.3 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2013 Josh Glazebrook
-
-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.
-=========================================
-END OF socks@2.8.3 AND INFORMATION
-
-%% sprintf-js@1.1.3 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-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.
-=========================================
-END OF sprintf-js@1.1.3 AND INFORMATION
-
-%% statuses@2.0.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2014 Jonathan Ong
-Copyright (c) 2016 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.
-=========================================
-END OF statuses@2.0.2 AND INFORMATION
-
-%% toidentifier@1.0.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2016 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.
-=========================================
-END OF toidentifier@1.0.1 AND INFORMATION
-
-%% type-is@2.0.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2014 Jonathan Ong
-Copyright (c) 2014-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.
-=========================================
-END OF type-is@2.0.1 AND INFORMATION
-
-%% unpipe@1.0.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-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.
-=========================================
-END OF unpipe@1.0.0 AND INFORMATION
-
-%% vary@1.1.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-(The MIT License)
-
-Copyright (c) 2014-2017 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.
-=========================================
-END OF vary@1.1.2 AND INFORMATION
-
-%% which@2.0.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-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.
-
-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.
-=========================================
-END OF which@2.0.2 AND INFORMATION
-
-%% wrappy@1.0.2 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-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.
-
-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.
-=========================================
-END OF wrappy@1.0.2 AND INFORMATION
-
-%% ws@8.17.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-Copyright (c) 2011 Einar Otto Stangvik
-Copyright (c) 2013 Arnout Kazemier and contributors
-Copyright (c) 2016 Luigi Pinca 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.
-=========================================
-END OF ws@8.17.1 AND INFORMATION
-
-%% yaml@2.6.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-Copyright Eemeli Aro
-
-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.
-
-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.
-=========================================
-END OF yaml@2.6.0 AND INFORMATION
-
-%% yauzl@3.2.0 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2014 Josh Wolfe
-
-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.
-=========================================
-END OF yauzl@3.2.0 AND INFORMATION
-
-%% yazl@2.5.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-The MIT License (MIT)
-
-Copyright (c) 2014 Josh Wolfe
-
-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.
-=========================================
-END OF yazl@2.5.1 AND INFORMATION
-
-%% zod-to-json-schema@3.25.1 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-ISC License
-
-Copyright (c) 2020, Stefan Terdell
-
-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.
-
-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.
-=========================================
-END OF zod-to-json-schema@3.25.1 AND INFORMATION
-
-%% zod@4.3.5 NOTICES AND INFORMATION BEGIN HERE
-=========================================
-MIT License
-
-Copyright (c) 2025 Colin McDonnell
-
-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.
-=========================================
-END OF zod@4.3.5 AND INFORMATION
-
-SUMMARY BEGIN HERE
-=========================================
-Total Packages: 133
-=========================================
-END OF SUMMARY
\ No newline at end of file
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/install_media_pack.ps1 b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/install_media_pack.ps1
deleted file mode 100644
index 6170754..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/install_media_pack.ps1
+++ /dev/null
@@ -1,5 +0,0 @@
-$osInfo = Get-WmiObject -Class Win32_OperatingSystem
-# check if running on Windows Server
-if ($osInfo.ProductType -eq 3) {
- Install-WindowsFeature Server-Media-Foundation
-}
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/install_webkit_wsl.ps1 b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/install_webkit_wsl.ps1
deleted file mode 100644
index ccaaf15..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/install_webkit_wsl.ps1
+++ /dev/null
@@ -1,33 +0,0 @@
-$ErrorActionPreference = 'Stop'
-
-# This script sets up a WSL distribution that will be used to run WebKit.
-
-$Distribution = "playwright"
-$Username = "pwuser"
-
-$distributions = (wsl --list --quiet) -split "\r?\n"
-if ($distributions -contains $Distribution) {
- Write-Host "WSL distribution '$Distribution' already exists. Skipping installation."
-} else {
- Write-Host "Installing new WSL distribution '$Distribution'..."
- $VhdSize = "10GB"
- wsl --install -d Ubuntu-24.04 --name $Distribution --no-launch --vhd-size $VhdSize
- wsl -d $Distribution -u root adduser --gecos GECOS --disabled-password $Username
-}
-
-$pwshDirname = (Resolve-Path -Path $PSScriptRoot).Path;
-$playwrightCoreRoot = Resolve-Path (Join-Path $pwshDirname "..")
-
-$initScript = @"
-if [ ! -f "/home/$Username/node/bin/node" ]; then
- mkdir -p /home/$Username/node
- curl -fsSL https://nodejs.org/dist/v22.17.0/node-v22.17.0-linux-x64.tar.xz -o /home/$Username/node/node-v22.17.0-linux-x64.tar.xz
- tar -xJf /home/$Username/node/node-v22.17.0-linux-x64.tar.xz -C /home/$Username/node --strip-components=1
- sudo -u $Username echo 'export PATH=/home/$Username/node/bin:\`$PATH' >> /home/$Username/.profile
-fi
-/home/$Username/node/bin/node cli.js install-deps webkit
-sudo -u $Username PLAYWRIGHT_SKIP_BROWSER_GC=1 /home/$Username/node/bin/node cli.js install webkit
-"@ -replace "\r\n", "`n"
-
-wsl -d $Distribution --cd $playwrightCoreRoot -u root -- bash -c "$initScript"
-Write-Host "Done!"
\ No newline at end of file
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh
deleted file mode 100755
index 0451bda..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/env bash
-set -e
-set -x
-
-if [[ $(arch) == "aarch64" ]]; then
- echo "ERROR: not supported on Linux Arm64"
- exit 1
-fi
-
-if [ -z "$PLAYWRIGHT_HOST_PLATFORM_OVERRIDE" ]; then
- if [[ ! -f "/etc/os-release" ]]; then
- echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)"
- exit 1
- fi
-
- ID=$(bash -c 'source /etc/os-release && echo $ID')
- if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
- echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
- exit 1
- fi
-fi
-
-# 1. make sure to remove old beta if any.
-if dpkg --get-selections | grep -q "^google-chrome-beta[[:space:]]*install$" >/dev/null; then
- apt-get remove -y google-chrome-beta
-fi
-
-# 2. Update apt lists (needed to install curl and chrome dependencies)
-apt-get update
-
-# 3. Install curl to download chrome
-if ! command -v curl >/dev/null; then
- apt-get install -y curl
-fi
-
-# 4. download chrome beta from dl.google.com and install it.
-cd /tmp
-curl -O https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb
-apt-get install -y ./google-chrome-beta_current_amd64.deb
-rm -rf ./google-chrome-beta_current_amd64.deb
-cd -
-google-chrome-beta --version
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh
deleted file mode 100755
index 617e3b5..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env bash
-set -e
-set -x
-
-rm -rf "/Applications/Google Chrome Beta.app"
-cd /tmp
-curl --retry 3 -o ./googlechromebeta.dmg https://dl.google.com/chrome/mac/universal/beta/googlechromebeta.dmg
-hdiutil attach -nobrowse -quiet -noautofsck -noautoopen -mountpoint /Volumes/googlechromebeta.dmg ./googlechromebeta.dmg
-cp -pR "/Volumes/googlechromebeta.dmg/Google Chrome Beta.app" /Applications
-hdiutil detach /Volumes/googlechromebeta.dmg
-rm -rf /tmp/googlechromebeta.dmg
-
-/Applications/Google\ Chrome\ Beta.app/Contents/MacOS/Google\ Chrome\ Beta --version
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1
deleted file mode 100644
index 3fbe551..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1
+++ /dev/null
@@ -1,24 +0,0 @@
-$ErrorActionPreference = 'Stop'
-
-$url = 'https://dl.google.com/tag/s/dl/chrome/install/beta/googlechromebetastandaloneenterprise64.msi'
-
-Write-Host "Downloading Google Chrome Beta"
-$wc = New-Object net.webclient
-$msiInstaller = "$env:temp\google-chrome-beta.msi"
-$wc.Downloadfile($url, $msiInstaller)
-
-Write-Host "Installing Google Chrome Beta"
-$arguments = "/i `"$msiInstaller`" /quiet"
-Start-Process msiexec.exe -ArgumentList $arguments -Wait
-Remove-Item $msiInstaller
-
-$suffix = "\\Google\\Chrome Beta\\Application\\chrome.exe"
-if (Test-Path "${env:ProgramFiles(x86)}$suffix") {
- (Get-Item "${env:ProgramFiles(x86)}$suffix").VersionInfo
-} elseif (Test-Path "${env:ProgramFiles}$suffix") {
- (Get-Item "${env:ProgramFiles}$suffix").VersionInfo
-} else {
- Write-Host "ERROR: Failed to install Google Chrome Beta."
- Write-Host "ERROR: This could be due to insufficient privileges, in which case re-running as Administrator may help."
- exit 1
-}
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh
deleted file mode 100755
index 78f1d41..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/env bash
-set -e
-set -x
-
-if [[ $(arch) == "aarch64" ]]; then
- echo "ERROR: not supported on Linux Arm64"
- exit 1
-fi
-
-if [ -z "$PLAYWRIGHT_HOST_PLATFORM_OVERRIDE" ]; then
- if [[ ! -f "/etc/os-release" ]]; then
- echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)"
- exit 1
- fi
-
- ID=$(bash -c 'source /etc/os-release && echo $ID')
- if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
- echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
- exit 1
- fi
-fi
-
-# 1. make sure to remove old stable if any.
-if dpkg --get-selections | grep -q "^google-chrome[[:space:]]*install$" >/dev/null; then
- apt-get remove -y google-chrome
-fi
-
-# 2. Update apt lists (needed to install curl and chrome dependencies)
-apt-get update
-
-# 3. Install curl to download chrome
-if ! command -v curl >/dev/null; then
- apt-get install -y curl
-fi
-
-# 4. download chrome stable from dl.google.com and install it.
-cd /tmp
-curl -O https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
-apt-get install -y ./google-chrome-stable_current_amd64.deb
-rm -rf ./google-chrome-stable_current_amd64.deb
-cd -
-google-chrome --version
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh
deleted file mode 100755
index 6aa650a..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-set -e
-set -x
-
-rm -rf "/Applications/Google Chrome.app"
-cd /tmp
-curl --retry 3 -o ./googlechrome.dmg https://dl.google.com/chrome/mac/universal/stable/GGRO/googlechrome.dmg
-hdiutil attach -nobrowse -quiet -noautofsck -noautoopen -mountpoint /Volumes/googlechrome.dmg ./googlechrome.dmg
-cp -pR "/Volumes/googlechrome.dmg/Google Chrome.app" /Applications
-hdiutil detach /Volumes/googlechrome.dmg
-rm -rf /tmp/googlechrome.dmg
-/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1
deleted file mode 100644
index 7ca2dba..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1
+++ /dev/null
@@ -1,24 +0,0 @@
-$ErrorActionPreference = 'Stop'
-$url = 'https://dl.google.com/tag/s/dl/chrome/install/googlechromestandaloneenterprise64.msi'
-
-$wc = New-Object net.webclient
-$msiInstaller = "$env:temp\google-chrome.msi"
-Write-Host "Downloading Google Chrome"
-$wc.Downloadfile($url, $msiInstaller)
-
-Write-Host "Installing Google Chrome"
-$arguments = "/i `"$msiInstaller`" /quiet"
-Start-Process msiexec.exe -ArgumentList $arguments -Wait
-Remove-Item $msiInstaller
-
-
-$suffix = "\\Google\\Chrome\\Application\\chrome.exe"
-if (Test-Path "${env:ProgramFiles(x86)}$suffix") {
- (Get-Item "${env:ProgramFiles(x86)}$suffix").VersionInfo
-} elseif (Test-Path "${env:ProgramFiles}$suffix") {
- (Get-Item "${env:ProgramFiles}$suffix").VersionInfo
-} else {
- Write-Host "ERROR: Failed to install Google Chrome."
- Write-Host "ERROR: This could be due to insufficient privileges, in which case re-running as Administrator may help."
- exit 1
-}
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh
deleted file mode 100755
index a1531a9..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-set -x
-
-if [[ $(arch) == "aarch64" ]]; then
- echo "ERROR: not supported on Linux Arm64"
- exit 1
-fi
-
-if [ -z "$PLAYWRIGHT_HOST_PLATFORM_OVERRIDE" ]; then
- if [[ ! -f "/etc/os-release" ]]; then
- echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)"
- exit 1
- fi
-
- ID=$(bash -c 'source /etc/os-release && echo $ID')
- if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
- echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
- exit 1
- fi
-fi
-
-# 1. make sure to remove old beta if any.
-if dpkg --get-selections | grep -q "^microsoft-edge-beta[[:space:]]*install$" >/dev/null; then
- apt-get remove -y microsoft-edge-beta
-fi
-
-# 2. Install curl to download Microsoft gpg key
-if ! command -v curl >/dev/null; then
- apt-get update
- apt-get install -y curl
-fi
-
-# GnuPG is not preinstalled in slim images
-if ! command -v gpg >/dev/null; then
- apt-get update
- apt-get install -y gpg
-fi
-
-# 3. Add the GPG key, the apt repo, update the apt cache, and install the package
-curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /tmp/microsoft.gpg
-install -o root -g root -m 644 /tmp/microsoft.gpg /etc/apt/trusted.gpg.d/
-sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-dev.list'
-rm /tmp/microsoft.gpg
-apt-get update && apt-get install -y microsoft-edge-beta
-
-microsoft-edge-beta --version
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh
deleted file mode 100755
index 72ec3e4..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/env bash
-set -e
-set -x
-
-cd /tmp
-curl --retry 3 -o ./msedge_beta.pkg "$1"
-# Note: there's no way to uninstall previously installed MSEdge.
-# However, running PKG again seems to update installation.
-sudo installer -pkg /tmp/msedge_beta.pkg -target /
-rm -rf /tmp/msedge_beta.pkg
-/Applications/Microsoft\ Edge\ Beta.app/Contents/MacOS/Microsoft\ Edge\ Beta --version
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1
deleted file mode 100644
index cce0d0b..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1
+++ /dev/null
@@ -1,23 +0,0 @@
-$ErrorActionPreference = 'Stop'
-$url = $args[0]
-
-Write-Host "Downloading Microsoft Edge Beta"
-$wc = New-Object net.webclient
-$msiInstaller = "$env:temp\microsoft-edge-beta.msi"
-$wc.Downloadfile($url, $msiInstaller)
-
-Write-Host "Installing Microsoft Edge Beta"
-$arguments = "/i `"$msiInstaller`" /quiet"
-Start-Process msiexec.exe -ArgumentList $arguments -Wait
-Remove-Item $msiInstaller
-
-$suffix = "\\Microsoft\\Edge Beta\\Application\\msedge.exe"
-if (Test-Path "${env:ProgramFiles(x86)}$suffix") {
- (Get-Item "${env:ProgramFiles(x86)}$suffix").VersionInfo
-} elseif (Test-Path "${env:ProgramFiles}$suffix") {
- (Get-Item "${env:ProgramFiles}$suffix").VersionInfo
-} else {
- Write-Host "ERROR: Failed to install Microsoft Edge Beta."
- Write-Host "ERROR: This could be due to insufficient privileges, in which case re-running as Administrator may help."
- exit 1
-}
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh
deleted file mode 100755
index 7fde34e..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-set -x
-
-if [[ $(arch) == "aarch64" ]]; then
- echo "ERROR: not supported on Linux Arm64"
- exit 1
-fi
-
-if [ -z "$PLAYWRIGHT_HOST_PLATFORM_OVERRIDE" ]; then
- if [[ ! -f "/etc/os-release" ]]; then
- echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)"
- exit 1
- fi
-
- ID=$(bash -c 'source /etc/os-release && echo $ID')
- if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
- echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
- exit 1
- fi
-fi
-
-# 1. make sure to remove old dev if any.
-if dpkg --get-selections | grep -q "^microsoft-edge-dev[[:space:]]*install$" >/dev/null; then
- apt-get remove -y microsoft-edge-dev
-fi
-
-# 2. Install curl to download Microsoft gpg key
-if ! command -v curl >/dev/null; then
- apt-get update
- apt-get install -y curl
-fi
-
-# GnuPG is not preinstalled in slim images
-if ! command -v gpg >/dev/null; then
- apt-get update
- apt-get install -y gpg
-fi
-
-# 3. Add the GPG key, the apt repo, update the apt cache, and install the package
-curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /tmp/microsoft.gpg
-install -o root -g root -m 644 /tmp/microsoft.gpg /etc/apt/trusted.gpg.d/
-sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-dev.list'
-rm /tmp/microsoft.gpg
-apt-get update && apt-get install -y microsoft-edge-dev
-
-microsoft-edge-dev --version
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh
deleted file mode 100755
index 3376e86..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/env bash
-set -e
-set -x
-
-cd /tmp
-curl --retry 3 -o ./msedge_dev.pkg "$1"
-# Note: there's no way to uninstall previously installed MSEdge.
-# However, running PKG again seems to update installation.
-sudo installer -pkg /tmp/msedge_dev.pkg -target /
-rm -rf /tmp/msedge_dev.pkg
-/Applications/Microsoft\ Edge\ Dev.app/Contents/MacOS/Microsoft\ Edge\ Dev --version
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1
deleted file mode 100644
index 22e6db8..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1
+++ /dev/null
@@ -1,23 +0,0 @@
-$ErrorActionPreference = 'Stop'
-$url = $args[0]
-
-Write-Host "Downloading Microsoft Edge Dev"
-$wc = New-Object net.webclient
-$msiInstaller = "$env:temp\microsoft-edge-dev.msi"
-$wc.Downloadfile($url, $msiInstaller)
-
-Write-Host "Installing Microsoft Edge Dev"
-$arguments = "/i `"$msiInstaller`" /quiet"
-Start-Process msiexec.exe -ArgumentList $arguments -Wait
-Remove-Item $msiInstaller
-
-$suffix = "\\Microsoft\\Edge Dev\\Application\\msedge.exe"
-if (Test-Path "${env:ProgramFiles(x86)}$suffix") {
- (Get-Item "${env:ProgramFiles(x86)}$suffix").VersionInfo
-} elseif (Test-Path "${env:ProgramFiles}$suffix") {
- (Get-Item "${env:ProgramFiles}$suffix").VersionInfo
-} else {
- Write-Host "ERROR: Failed to install Microsoft Edge Dev."
- Write-Host "ERROR: This could be due to insufficient privileges, in which case re-running as Administrator may help."
- exit 1
-}
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh
deleted file mode 100755
index 4acb1db..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-set -x
-
-if [[ $(arch) == "aarch64" ]]; then
- echo "ERROR: not supported on Linux Arm64"
- exit 1
-fi
-
-if [ -z "$PLAYWRIGHT_HOST_PLATFORM_OVERRIDE" ]; then
- if [[ ! -f "/etc/os-release" ]]; then
- echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)"
- exit 1
- fi
-
- ID=$(bash -c 'source /etc/os-release && echo $ID')
- if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
- echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
- exit 1
- fi
-fi
-
-# 1. make sure to remove old stable if any.
-if dpkg --get-selections | grep -q "^microsoft-edge-stable[[:space:]]*install$" >/dev/null; then
- apt-get remove -y microsoft-edge-stable
-fi
-
-# 2. Install curl to download Microsoft gpg key
-if ! command -v curl >/dev/null; then
- apt-get update
- apt-get install -y curl
-fi
-
-# GnuPG is not preinstalled in slim images
-if ! command -v gpg >/dev/null; then
- apt-get update
- apt-get install -y gpg
-fi
-
-# 3. Add the GPG key, the apt repo, update the apt cache, and install the package
-curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /tmp/microsoft.gpg
-install -o root -g root -m 644 /tmp/microsoft.gpg /etc/apt/trusted.gpg.d/
-sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-stable.list'
-rm /tmp/microsoft.gpg
-apt-get update && apt-get install -y microsoft-edge-stable
-
-microsoft-edge-stable --version
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh
deleted file mode 100755
index afcd2f5..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/env bash
-set -e
-set -x
-
-cd /tmp
-curl --retry 3 -o ./msedge_stable.pkg "$1"
-# Note: there's no way to uninstall previously installed MSEdge.
-# However, running PKG again seems to update installation.
-sudo installer -pkg /tmp/msedge_stable.pkg -target /
-rm -rf /tmp/msedge_stable.pkg
-/Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge --version
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1
deleted file mode 100644
index 31fdf51..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1
+++ /dev/null
@@ -1,24 +0,0 @@
-$ErrorActionPreference = 'Stop'
-
-$url = $args[0]
-
-Write-Host "Downloading Microsoft Edge"
-$wc = New-Object net.webclient
-$msiInstaller = "$env:temp\microsoft-edge-stable.msi"
-$wc.Downloadfile($url, $msiInstaller)
-
-Write-Host "Installing Microsoft Edge"
-$arguments = "/i `"$msiInstaller`" /quiet"
-Start-Process msiexec.exe -ArgumentList $arguments -Wait
-Remove-Item $msiInstaller
-
-$suffix = "\\Microsoft\\Edge\\Application\\msedge.exe"
-if (Test-Path "${env:ProgramFiles(x86)}$suffix") {
- (Get-Item "${env:ProgramFiles(x86)}$suffix").VersionInfo
-} elseif (Test-Path "${env:ProgramFiles}$suffix") {
- (Get-Item "${env:ProgramFiles}$suffix").VersionInfo
-} else {
- Write-Host "ERROR: Failed to install Microsoft Edge."
- Write-Host "ERROR: This could be due to insufficient privileges, in which case re-running as Administrator may help."
- exit 1
-}
\ No newline at end of file
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/browsers.json b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/browsers.json
deleted file mode 100644
index 3a3432c..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/browsers.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "comment": "Do not edit this file, use utils/roll_browser.js",
- "browsers": [
- {
- "name": "chromium",
- "revision": "1208",
- "installByDefault": true,
- "browserVersion": "145.0.7632.6",
- "title": "Chrome for Testing"
- },
- {
- "name": "chromium-headless-shell",
- "revision": "1208",
- "installByDefault": true,
- "browserVersion": "145.0.7632.6",
- "title": "Chrome Headless Shell"
- },
- {
- "name": "chromium-tip-of-tree",
- "revision": "1401",
- "installByDefault": false,
- "browserVersion": "146.0.7644.0",
- "title": "Chrome Canary for Testing"
- },
- {
- "name": "chromium-tip-of-tree-headless-shell",
- "revision": "1401",
- "installByDefault": false,
- "browserVersion": "146.0.7644.0",
- "title": "Chrome Canary Headless Shell"
- },
- {
- "name": "firefox",
- "revision": "1509",
- "installByDefault": true,
- "browserVersion": "146.0.1",
- "title": "Firefox"
- },
- {
- "name": "firefox-beta",
- "revision": "1504",
- "installByDefault": false,
- "browserVersion": "146.0b8",
- "title": "Firefox Beta"
- },
- {
- "name": "webkit",
- "revision": "2248",
- "installByDefault": true,
- "revisionOverrides": {
- "debian11-x64": "2105",
- "debian11-arm64": "2105",
- "ubuntu20.04-x64": "2092",
- "ubuntu20.04-arm64": "2092"
- },
- "browserVersion": "26.0",
- "title": "WebKit"
- },
- {
- "name": "ffmpeg",
- "revision": "1011",
- "installByDefault": true,
- "revisionOverrides": {
- "mac12": "1010",
- "mac12-arm64": "1010"
- }
- },
- {
- "name": "winldd",
- "revision": "1007",
- "installByDefault": false
- },
- {
- "name": "android",
- "revision": "1001",
- "installByDefault": false
- }
- ]
-}
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/cli.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/cli.js
deleted file mode 100755
index fb309ea..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/cli.js
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env node
-/**
- * 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.
- */
-const { program } = require('./lib/cli/programWithTestStub');
-program.parse(process.argv);
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/index.d.ts b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/index.d.ts
deleted file mode 100644
index 97c1493..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/index.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * 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.
- */
-
-export * from './types/types';
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/index.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/index.js
deleted file mode 100644
index d4991d0..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/index.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * 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.
- */
-const minimumMajorNodeVersion = 18;
-const currentNodeVersion = process.versions.node;
-const semver = currentNodeVersion.split('.');
-const [major] = [+semver[0]];
-
-if (major < minimumMajorNodeVersion) {
- console.error(
- 'You are running Node.js ' +
- currentNodeVersion +
- '.\n' +
- `Playwright requires Node.js ${minimumMajorNodeVersion} or higher. \n` +
- 'Please update your version of Node.js.'
- );
- process.exit(1);
-}
-
-module.exports = require('./lib/inprocess');
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/index.mjs b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/index.mjs
deleted file mode 100644
index 3b3c75b..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/index.mjs
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * 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 playwright from './index.js';
-
-export const chromium = playwright.chromium;
-export const firefox = playwright.firefox;
-export const webkit = playwright.webkit;
-export const selectors = playwright.selectors;
-export const devices = playwright.devices;
-export const errors = playwright.errors;
-export const request = playwright.request;
-export const _electron = playwright._electron;
-export const _android = playwright._android;
-export default playwright;
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/androidServerImpl.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/androidServerImpl.js
deleted file mode 100644
index 568548b..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/androidServerImpl.js
+++ /dev/null
@@ -1,65 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var androidServerImpl_exports = {};
-__export(androidServerImpl_exports, {
- AndroidServerLauncherImpl: () => AndroidServerLauncherImpl
-});
-module.exports = __toCommonJS(androidServerImpl_exports);
-var import_playwrightServer = require("./remote/playwrightServer");
-var import_playwright = require("./server/playwright");
-var import_crypto = require("./server/utils/crypto");
-var import_utilsBundle = require("./utilsBundle");
-var import_progress = require("./server/progress");
-class AndroidServerLauncherImpl {
- async launchServer(options = {}) {
- const playwright = (0, import_playwright.createPlaywright)({ sdkLanguage: "javascript", isServer: true });
- const controller = new import_progress.ProgressController();
- let devices = await controller.run((progress) => playwright.android.devices(progress, {
- host: options.adbHost,
- port: options.adbPort,
- omitDriverInstall: options.omitDriverInstall
- }));
- if (devices.length === 0)
- throw new Error("No devices found");
- if (options.deviceSerialNumber) {
- devices = devices.filter((d) => d.serial === options.deviceSerialNumber);
- if (devices.length === 0)
- throw new Error(`No device with serial number '${options.deviceSerialNumber}' was found`);
- }
- if (devices.length > 1)
- throw new Error(`More than one device found. Please specify deviceSerialNumber`);
- const device = devices[0];
- const path = options.wsPath ? options.wsPath.startsWith("/") ? options.wsPath : `/${options.wsPath}` : `/${(0, import_crypto.createGuid)()}`;
- const server = new import_playwrightServer.PlaywrightServer({ mode: "launchServer", path, maxConnections: 1, preLaunchedAndroidDevice: device });
- const wsEndpoint = await server.listen(options.port, options.host);
- const browserServer = new import_utilsBundle.ws.EventEmitter();
- browserServer.wsEndpoint = () => wsEndpoint;
- browserServer.close = () => device.close();
- browserServer.kill = () => device.close();
- device.on("close", () => {
- server.close();
- browserServer.emit("close");
- });
- return browserServer;
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- AndroidServerLauncherImpl
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/browserServerImpl.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/browserServerImpl.js
deleted file mode 100644
index ac2b25d..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/browserServerImpl.js
+++ /dev/null
@@ -1,120 +0,0 @@
-"use strict";
-var __create = Object.create;
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __getProtoOf = Object.getPrototypeOf;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
- // If the importer is in node compatibility mode or this is not an ESM
- // file that has been converted to a CommonJS file using a Babel-
- // compatible transform (i.e. "__esModule" has not been set), then set
- // "default" to the CommonJS "module.exports" for node compatibility.
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
- mod
-));
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var browserServerImpl_exports = {};
-__export(browserServerImpl_exports, {
- BrowserServerLauncherImpl: () => BrowserServerLauncherImpl
-});
-module.exports = __toCommonJS(browserServerImpl_exports);
-var import_playwrightServer = require("./remote/playwrightServer");
-var import_helper = require("./server/helper");
-var import_playwright = require("./server/playwright");
-var import_crypto = require("./server/utils/crypto");
-var import_debug = require("./server/utils/debug");
-var import_stackTrace = require("./utils/isomorphic/stackTrace");
-var import_time = require("./utils/isomorphic/time");
-var import_utilsBundle = require("./utilsBundle");
-var validatorPrimitives = __toESM(require("./protocol/validatorPrimitives"));
-var import_progress = require("./server/progress");
-class BrowserServerLauncherImpl {
- constructor(browserName) {
- this._browserName = browserName;
- }
- async launchServer(options = {}) {
- const playwright = (0, import_playwright.createPlaywright)({ sdkLanguage: "javascript", isServer: true });
- const metadata = { id: "", startTime: 0, endTime: 0, type: "Internal", method: "", params: {}, log: [], internal: true };
- const validatorContext = {
- tChannelImpl: (names, arg, path2) => {
- throw new validatorPrimitives.ValidationError(`${path2}: channels are not expected in launchServer`);
- },
- binary: "buffer",
- isUnderTest: import_debug.isUnderTest
- };
- let launchOptions = {
- ...options,
- ignoreDefaultArgs: Array.isArray(options.ignoreDefaultArgs) ? options.ignoreDefaultArgs : void 0,
- ignoreAllDefaultArgs: !!options.ignoreDefaultArgs && !Array.isArray(options.ignoreDefaultArgs),
- env: options.env ? envObjectToArray(options.env) : void 0,
- timeout: options.timeout ?? import_time.DEFAULT_PLAYWRIGHT_LAUNCH_TIMEOUT
- };
- let browser;
- try {
- const controller = new import_progress.ProgressController(metadata);
- browser = await controller.run(async (progress) => {
- if (options._userDataDir !== void 0) {
- const validator = validatorPrimitives.scheme["BrowserTypeLaunchPersistentContextParams"];
- launchOptions = validator({ ...launchOptions, userDataDir: options._userDataDir }, "", validatorContext);
- const context = await playwright[this._browserName].launchPersistentContext(progress, options._userDataDir, launchOptions);
- return context._browser;
- } else {
- const validator = validatorPrimitives.scheme["BrowserTypeLaunchParams"];
- launchOptions = validator(launchOptions, "", validatorContext);
- return await playwright[this._browserName].launch(progress, launchOptions, toProtocolLogger(options.logger));
- }
- });
- } catch (e) {
- const log = import_helper.helper.formatBrowserLogs(metadata.log);
- (0, import_stackTrace.rewriteErrorMessage)(e, `${e.message} Failed to launch browser.${log}`);
- throw e;
- }
- const path = options.wsPath ? options.wsPath.startsWith("/") ? options.wsPath : `/${options.wsPath}` : `/${(0, import_crypto.createGuid)()}`;
- const server = new import_playwrightServer.PlaywrightServer({ mode: options._sharedBrowser ? "launchServerShared" : "launchServer", path, maxConnections: Infinity, preLaunchedBrowser: browser });
- const wsEndpoint = await server.listen(options.port, options.host);
- const browserServer = new import_utilsBundle.ws.EventEmitter();
- browserServer.process = () => browser.options.browserProcess.process;
- browserServer.wsEndpoint = () => wsEndpoint;
- browserServer.close = () => browser.options.browserProcess.close();
- browserServer[Symbol.asyncDispose] = browserServer.close;
- browserServer.kill = () => browser.options.browserProcess.kill();
- browserServer._disconnectForTest = () => server.close();
- browserServer._userDataDirForTest = browser._userDataDirForTest;
- browser.options.browserProcess.onclose = (exitCode, signal) => {
- server.close();
- browserServer.emit("close", exitCode, signal);
- };
- return browserServer;
- }
-}
-function toProtocolLogger(logger) {
- return logger ? (direction, message) => {
- if (logger.isEnabled("protocol", "verbose"))
- logger.log("protocol", "verbose", (direction === "send" ? "SEND \u25BA " : "\u25C0 RECV ") + JSON.stringify(message), [], {});
- } : void 0;
-}
-function envObjectToArray(env) {
- const result = [];
- for (const name in env) {
- if (!Object.is(env[name], void 0))
- result.push({ name, value: String(env[name]) });
- }
- return result;
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- BrowserServerLauncherImpl
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/cli/driver.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/cli/driver.js
deleted file mode 100644
index a389e15..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/cli/driver.js
+++ /dev/null
@@ -1,97 +0,0 @@
-"use strict";
-var __create = Object.create;
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __getProtoOf = Object.getPrototypeOf;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
- // If the importer is in node compatibility mode or this is not an ESM
- // file that has been converted to a CommonJS file using a Babel-
- // compatible transform (i.e. "__esModule" has not been set), then set
- // "default" to the CommonJS "module.exports" for node compatibility.
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
- mod
-));
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var driver_exports = {};
-__export(driver_exports, {
- launchBrowserServer: () => launchBrowserServer,
- printApiJson: () => printApiJson,
- runDriver: () => runDriver,
- runServer: () => runServer
-});
-module.exports = __toCommonJS(driver_exports);
-var import_fs = __toESM(require("fs"));
-var playwright = __toESM(require("../.."));
-var import_pipeTransport = require("../server/utils/pipeTransport");
-var import_playwrightServer = require("../remote/playwrightServer");
-var import_server = require("../server");
-var import_processLauncher = require("../server/utils/processLauncher");
-function printApiJson() {
- console.log(JSON.stringify(require("../../api.json")));
-}
-function runDriver() {
- const dispatcherConnection = new import_server.DispatcherConnection();
- new import_server.RootDispatcher(dispatcherConnection, async (rootScope, { sdkLanguage }) => {
- const playwright2 = (0, import_server.createPlaywright)({ sdkLanguage });
- return new import_server.PlaywrightDispatcher(rootScope, playwright2);
- });
- const transport = new import_pipeTransport.PipeTransport(process.stdout, process.stdin);
- transport.onmessage = (message) => dispatcherConnection.dispatch(JSON.parse(message));
- const isJavaScriptLanguageBinding = !process.env.PW_LANG_NAME || process.env.PW_LANG_NAME === "javascript";
- const replacer = !isJavaScriptLanguageBinding && String.prototype.toWellFormed ? (key, value) => {
- if (typeof value === "string")
- return value.toWellFormed();
- return value;
- } : void 0;
- dispatcherConnection.onmessage = (message) => transport.send(JSON.stringify(message, replacer));
- transport.onclose = () => {
- dispatcherConnection.onmessage = () => {
- };
- (0, import_processLauncher.gracefullyProcessExitDoNotHang)(0);
- };
- process.on("SIGINT", () => {
- });
-}
-async function runServer(options) {
- const {
- port,
- host,
- path = "/",
- maxConnections = Infinity,
- extension
- } = options;
- const server = new import_playwrightServer.PlaywrightServer({ mode: extension ? "extension" : "default", path, maxConnections });
- const wsEndpoint = await server.listen(port, host);
- process.on("exit", () => server.close().catch(console.error));
- console.log("Listening on " + wsEndpoint);
- process.stdin.on("close", () => (0, import_processLauncher.gracefullyProcessExitDoNotHang)(0));
-}
-async function launchBrowserServer(browserName, configFile) {
- let options = {};
- if (configFile)
- options = JSON.parse(import_fs.default.readFileSync(configFile).toString());
- const browserType = playwright[browserName];
- const server = await browserType.launchServer(options);
- console.log(server.wsEndpoint());
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- launchBrowserServer,
- printApiJson,
- runDriver,
- runServer
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/cli/program.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/cli/program.js
deleted file mode 100644
index 560bf7f..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/cli/program.js
+++ /dev/null
@@ -1,589 +0,0 @@
-"use strict";
-var __create = Object.create;
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __getProtoOf = Object.getPrototypeOf;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
- // If the importer is in node compatibility mode or this is not an ESM
- // file that has been converted to a CommonJS file using a Babel-
- // compatible transform (i.e. "__esModule" has not been set), then set
- // "default" to the CommonJS "module.exports" for node compatibility.
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
- mod
-));
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var program_exports = {};
-__export(program_exports, {
- program: () => import_utilsBundle2.program
-});
-module.exports = __toCommonJS(program_exports);
-var import_fs = __toESM(require("fs"));
-var import_os = __toESM(require("os"));
-var import_path = __toESM(require("path"));
-var playwright = __toESM(require("../.."));
-var import_driver = require("./driver");
-var import_server = require("../server");
-var import_utils = require("../utils");
-var import_traceViewer = require("../server/trace/viewer/traceViewer");
-var import_utils2 = require("../utils");
-var import_ascii = require("../server/utils/ascii");
-var import_utilsBundle = require("../utilsBundle");
-var import_utilsBundle2 = require("../utilsBundle");
-const packageJSON = require("../../package.json");
-import_utilsBundle.program.version("Version " + (process.env.PW_CLI_DISPLAY_VERSION || packageJSON.version)).name(buildBasePlaywrightCLICommand(process.env.PW_LANG_NAME));
-import_utilsBundle.program.command("mark-docker-image [dockerImageNameTemplate]", { hidden: true }).description("mark docker image").allowUnknownOption(true).action(function(dockerImageNameTemplate) {
- (0, import_utils2.assert)(dockerImageNameTemplate, "dockerImageNameTemplate is required");
- (0, import_server.writeDockerVersion)(dockerImageNameTemplate).catch(logErrorAndExit);
-});
-commandWithOpenOptions("open [url]", "open page in browser specified via -b, --browser", []).action(function(url, options) {
- open(options, url).catch(logErrorAndExit);
-}).addHelpText("afterAll", `
-Examples:
-
- $ open
- $ open -b webkit https://example.com`);
-commandWithOpenOptions(
- "codegen [url]",
- "open page and generate code for user actions",
- [
- ["-o, --output ", "saves the generated script to a file"],
- ["--target ", `language to generate, one of javascript, playwright-test, python, python-async, python-pytest, csharp, csharp-mstest, csharp-nunit, java, java-junit`, codegenId()],
- ["--test-id-attribute ", "use the specified attribute to generate data test ID selectors"]
- ]
-).action(async function(url, options) {
- await codegen(options, url);
-}).addHelpText("afterAll", `
-Examples:
-
- $ codegen
- $ codegen --target=python
- $ codegen -b webkit https://example.com`);
-function printInstalledBrowsers(browsers2) {
- const browserPaths = /* @__PURE__ */ new Set();
- for (const browser of browsers2)
- browserPaths.add(browser.browserPath);
- console.log(` Browsers:`);
- for (const browserPath of [...browserPaths].sort())
- console.log(` ${browserPath}`);
- console.log(` References:`);
- const references = /* @__PURE__ */ new Set();
- for (const browser of browsers2)
- references.add(browser.referenceDir);
- for (const reference of [...references].sort())
- console.log(` ${reference}`);
-}
-function printGroupedByPlaywrightVersion(browsers2) {
- const dirToVersion = /* @__PURE__ */ new Map();
- for (const browser of browsers2) {
- if (dirToVersion.has(browser.referenceDir))
- continue;
- const packageJSON2 = require(import_path.default.join(browser.referenceDir, "package.json"));
- const version = packageJSON2.version;
- dirToVersion.set(browser.referenceDir, version);
- }
- const groupedByPlaywrightMinorVersion = /* @__PURE__ */ new Map();
- for (const browser of browsers2) {
- const version = dirToVersion.get(browser.referenceDir);
- let entries = groupedByPlaywrightMinorVersion.get(version);
- if (!entries) {
- entries = [];
- groupedByPlaywrightMinorVersion.set(version, entries);
- }
- entries.push(browser);
- }
- const sortedVersions = [...groupedByPlaywrightMinorVersion.keys()].sort((a, b) => {
- const aComponents = a.split(".");
- const bComponents = b.split(".");
- const aMajor = parseInt(aComponents[0], 10);
- const bMajor = parseInt(bComponents[0], 10);
- if (aMajor !== bMajor)
- return aMajor - bMajor;
- const aMinor = parseInt(aComponents[1], 10);
- const bMinor = parseInt(bComponents[1], 10);
- if (aMinor !== bMinor)
- return aMinor - bMinor;
- return aComponents.slice(2).join(".").localeCompare(bComponents.slice(2).join("."));
- });
- for (const version of sortedVersions) {
- console.log(`
-Playwright version: ${version}`);
- printInstalledBrowsers(groupedByPlaywrightMinorVersion.get(version));
- }
-}
-import_utilsBundle.program.command("install [browser...]").description("ensure browsers necessary for this version of Playwright are installed").option("--with-deps", "install system dependencies for browsers").option("--dry-run", "do not execute installation, only print information").option("--list", "prints list of browsers from all playwright installations").option("--force", "force reinstall of already installed browsers").option("--only-shell", "only install headless shell when installing chromium").option("--no-shell", "do not install chromium headless shell").action(async function(args, options) {
- if ((0, import_utils.isLikelyNpxGlobal)()) {
- console.error((0, import_ascii.wrapInASCIIBox)([
- `WARNING: It looks like you are running 'npx playwright install' without first`,
- `installing your project's dependencies.`,
- ``,
- `To avoid unexpected behavior, please install your dependencies first, and`,
- `then run Playwright's install command:`,
- ``,
- ` npm install`,
- ` npx playwright install`,
- ``,
- `If your project does not yet depend on Playwright, first install the`,
- `applicable npm package (most commonly @playwright/test), and`,
- `then run Playwright's install command to download the browsers:`,
- ``,
- ` npm install @playwright/test`,
- ` npx playwright install`,
- ``
- ].join("\n"), 1));
- }
- try {
- if (options.shell === false && options.onlyShell)
- throw new Error(`Only one of --no-shell and --only-shell can be specified`);
- const shell = options.shell === false ? "no" : options.onlyShell ? "only" : void 0;
- const executables = import_server.registry.resolveBrowsers(args, { shell });
- if (options.withDeps)
- await import_server.registry.installDeps(executables, !!options.dryRun);
- if (options.dryRun && options.list)
- throw new Error(`Only one of --dry-run and --list can be specified`);
- if (options.dryRun) {
- for (const executable of executables) {
- console.log(import_server.registry.calculateDownloadTitle(executable));
- console.log(` Install location: ${executable.directory ?? ""}`);
- if (executable.downloadURLs?.length) {
- const [url, ...fallbacks] = executable.downloadURLs;
- console.log(` Download url: ${url}`);
- for (let i = 0; i < fallbacks.length; ++i)
- console.log(` Download fallback ${i + 1}: ${fallbacks[i]}`);
- }
- console.log(``);
- }
- } else if (options.list) {
- const browsers2 = await import_server.registry.listInstalledBrowsers();
- printGroupedByPlaywrightVersion(browsers2);
- } else {
- await import_server.registry.install(executables, { force: options.force });
- await import_server.registry.validateHostRequirementsForExecutablesIfNeeded(executables, process.env.PW_LANG_NAME || "javascript").catch((e) => {
- e.name = "Playwright Host validation warning";
- console.error(e);
- });
- }
- } catch (e) {
- console.log(`Failed to install browsers
-${e}`);
- (0, import_utils.gracefullyProcessExitDoNotHang)(1);
- }
-}).addHelpText("afterAll", `
-
-Examples:
- - $ install
- Install default browsers.
-
- - $ install chrome firefox
- Install custom browsers, supports ${import_server.registry.suggestedBrowsersToInstall()}.`);
-import_utilsBundle.program.command("uninstall").description("Removes browsers used by this installation of Playwright from the system (chromium, firefox, webkit, ffmpeg). This does not include branded channels.").option("--all", "Removes all browsers used by any Playwright installation from the system.").action(async (options) => {
- delete process.env.PLAYWRIGHT_SKIP_BROWSER_GC;
- await import_server.registry.uninstall(!!options.all).then(({ numberOfBrowsersLeft }) => {
- if (!options.all && numberOfBrowsersLeft > 0) {
- console.log("Successfully uninstalled Playwright browsers for the current Playwright installation.");
- console.log(`There are still ${numberOfBrowsersLeft} browsers left, used by other Playwright installations.
-To uninstall Playwright browsers for all installations, re-run with --all flag.`);
- }
- }).catch(logErrorAndExit);
-});
-import_utilsBundle.program.command("install-deps [browser...]").description("install dependencies necessary to run browsers (will ask for sudo permissions)").option("--dry-run", "Do not execute installation commands, only print them").action(async function(args, options) {
- try {
- await import_server.registry.installDeps(import_server.registry.resolveBrowsers(args, {}), !!options.dryRun);
- } catch (e) {
- console.log(`Failed to install browser dependencies
-${e}`);
- (0, import_utils.gracefullyProcessExitDoNotHang)(1);
- }
-}).addHelpText("afterAll", `
-Examples:
- - $ install-deps
- Install dependencies for default browsers.
-
- - $ install-deps chrome firefox
- Install dependencies for specific browsers, supports ${import_server.registry.suggestedBrowsersToInstall()}.`);
-const browsers = [
- { alias: "cr", name: "Chromium", type: "chromium" },
- { alias: "ff", name: "Firefox", type: "firefox" },
- { alias: "wk", name: "WebKit", type: "webkit" }
-];
-for (const { alias, name, type } of browsers) {
- commandWithOpenOptions(`${alias} [url]`, `open page in ${name}`, []).action(function(url, options) {
- open({ ...options, browser: type }, url).catch(logErrorAndExit);
- }).addHelpText("afterAll", `
-Examples:
-
- $ ${alias} https://example.com`);
-}
-commandWithOpenOptions(
- "screenshot ",
- "capture a page screenshot",
- [
- ["--wait-for-selector ", "wait for selector before taking a screenshot"],
- ["--wait-for-timeout ", "wait for timeout in milliseconds before taking a screenshot"],
- ["--full-page", "whether to take a full page screenshot (entire scrollable area)"]
- ]
-).action(function(url, filename, command) {
- screenshot(command, command, url, filename).catch(logErrorAndExit);
-}).addHelpText("afterAll", `
-Examples:
-
- $ screenshot -b webkit https://example.com example.png`);
-commandWithOpenOptions(
- "pdf ",
- "save page as pdf",
- [
- ["--paper-format ", "paper format: Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4, A5, A6"],
- ["--wait-for-selector ", "wait for given selector before saving as pdf"],
- ["--wait-for-timeout ", "wait for given timeout in milliseconds before saving as pdf"]
- ]
-).action(function(url, filename, options) {
- pdf(options, options, url, filename).catch(logErrorAndExit);
-}).addHelpText("afterAll", `
-Examples:
-
- $ pdf https://example.com example.pdf`);
-import_utilsBundle.program.command("run-driver", { hidden: true }).action(function(options) {
- (0, import_driver.runDriver)();
-});
-import_utilsBundle.program.command("run-server", { hidden: true }).option("--port ", "Server port").option("--host ", "Server host").option("--path ", "Endpoint Path", "/").option("--max-clients ", "Maximum clients").option("--mode ", 'Server mode, either "default" or "extension"').action(function(options) {
- (0, import_driver.runServer)({
- port: options.port ? +options.port : void 0,
- host: options.host,
- path: options.path,
- maxConnections: options.maxClients ? +options.maxClients : Infinity,
- extension: options.mode === "extension" || !!process.env.PW_EXTENSION_MODE
- }).catch(logErrorAndExit);
-});
-import_utilsBundle.program.command("print-api-json", { hidden: true }).action(function(options) {
- (0, import_driver.printApiJson)();
-});
-import_utilsBundle.program.command("launch-server", { hidden: true }).requiredOption("--browser ", 'Browser name, one of "chromium", "firefox" or "webkit"').option("--config ", "JSON file with launchServer options").action(function(options) {
- (0, import_driver.launchBrowserServer)(options.browser, options.config);
-});
-import_utilsBundle.program.command("show-trace [trace]").option("-b, --browser ", "browser to use, one of cr, chromium, ff, firefox, wk, webkit", "chromium").option("-h, --host ", "Host to serve trace on; specifying this option opens trace in a browser tab").option("-p, --port ", "Port to serve trace on, 0 for any free port; specifying this option opens trace in a browser tab").option("--stdin", "Accept trace URLs over stdin to update the viewer").description("show trace viewer").action(function(trace, options) {
- if (options.browser === "cr")
- options.browser = "chromium";
- if (options.browser === "ff")
- options.browser = "firefox";
- if (options.browser === "wk")
- options.browser = "webkit";
- const openOptions = {
- host: options.host,
- port: +options.port,
- isServer: !!options.stdin
- };
- if (options.port !== void 0 || options.host !== void 0)
- (0, import_traceViewer.runTraceInBrowser)(trace, openOptions).catch(logErrorAndExit);
- else
- (0, import_traceViewer.runTraceViewerApp)(trace, options.browser, openOptions, true).catch(logErrorAndExit);
-}).addHelpText("afterAll", `
-Examples:
-
- $ show-trace
- $ show-trace https://example.com/trace.zip`);
-async function launchContext(options, extraOptions) {
- validateOptions(options);
- const browserType = lookupBrowserType(options);
- const launchOptions = extraOptions;
- if (options.channel)
- launchOptions.channel = options.channel;
- launchOptions.handleSIGINT = false;
- const contextOptions = (
- // Copy the device descriptor since we have to compare and modify the options.
- options.device ? { ...playwright.devices[options.device] } : {}
- );
- if (!extraOptions.headless)
- contextOptions.deviceScaleFactor = import_os.default.platform() === "darwin" ? 2 : 1;
- if (browserType.name() === "webkit" && process.platform === "linux") {
- delete contextOptions.hasTouch;
- delete contextOptions.isMobile;
- }
- if (contextOptions.isMobile && browserType.name() === "firefox")
- contextOptions.isMobile = void 0;
- if (options.blockServiceWorkers)
- contextOptions.serviceWorkers = "block";
- if (options.proxyServer) {
- launchOptions.proxy = {
- server: options.proxyServer
- };
- if (options.proxyBypass)
- launchOptions.proxy.bypass = options.proxyBypass;
- }
- if (options.viewportSize) {
- try {
- const [width, height] = options.viewportSize.split(",").map((n) => +n);
- if (isNaN(width) || isNaN(height))
- throw new Error("bad values");
- contextOptions.viewport = { width, height };
- } catch (e) {
- throw new Error('Invalid viewport size format: use "width,height", for example --viewport-size="800,600"');
- }
- }
- if (options.geolocation) {
- try {
- const [latitude, longitude] = options.geolocation.split(",").map((n) => parseFloat(n.trim()));
- contextOptions.geolocation = {
- latitude,
- longitude
- };
- } catch (e) {
- throw new Error('Invalid geolocation format, should be "lat,long". For example --geolocation="37.819722,-122.478611"');
- }
- contextOptions.permissions = ["geolocation"];
- }
- if (options.userAgent)
- contextOptions.userAgent = options.userAgent;
- if (options.lang)
- contextOptions.locale = options.lang;
- if (options.colorScheme)
- contextOptions.colorScheme = options.colorScheme;
- if (options.timezone)
- contextOptions.timezoneId = options.timezone;
- if (options.loadStorage)
- contextOptions.storageState = options.loadStorage;
- if (options.ignoreHttpsErrors)
- contextOptions.ignoreHTTPSErrors = true;
- if (options.saveHar) {
- contextOptions.recordHar = { path: import_path.default.resolve(process.cwd(), options.saveHar), mode: "minimal" };
- if (options.saveHarGlob)
- contextOptions.recordHar.urlFilter = options.saveHarGlob;
- contextOptions.serviceWorkers = "block";
- }
- let browser;
- let context;
- if (options.userDataDir) {
- context = await browserType.launchPersistentContext(options.userDataDir, { ...launchOptions, ...contextOptions });
- browser = context.browser();
- } else {
- browser = await browserType.launch(launchOptions);
- context = await browser.newContext(contextOptions);
- }
- let closingBrowser = false;
- async function closeBrowser() {
- if (closingBrowser)
- return;
- closingBrowser = true;
- if (options.saveStorage)
- await context.storageState({ path: options.saveStorage }).catch((e) => null);
- if (options.saveHar)
- await context.close();
- await browser.close();
- }
- context.on("page", (page) => {
- page.on("dialog", () => {
- });
- page.on("close", () => {
- const hasPage = browser.contexts().some((context2) => context2.pages().length > 0);
- if (hasPage)
- return;
- closeBrowser().catch(() => {
- });
- });
- });
- process.on("SIGINT", async () => {
- await closeBrowser();
- (0, import_utils.gracefullyProcessExitDoNotHang)(130);
- });
- const timeout = options.timeout ? parseInt(options.timeout, 10) : 0;
- context.setDefaultTimeout(timeout);
- context.setDefaultNavigationTimeout(timeout);
- delete launchOptions.headless;
- delete launchOptions.executablePath;
- delete launchOptions.handleSIGINT;
- delete contextOptions.deviceScaleFactor;
- return { browser, browserName: browserType.name(), context, contextOptions, launchOptions, closeBrowser };
-}
-async function openPage(context, url) {
- let page = context.pages()[0];
- if (!page)
- page = await context.newPage();
- if (url) {
- if (import_fs.default.existsSync(url))
- url = "file://" + import_path.default.resolve(url);
- else if (!url.startsWith("http") && !url.startsWith("file://") && !url.startsWith("about:") && !url.startsWith("data:"))
- url = "http://" + url;
- await page.goto(url);
- }
- return page;
-}
-async function open(options, url) {
- const { context } = await launchContext(options, { headless: !!process.env.PWTEST_CLI_HEADLESS, executablePath: process.env.PWTEST_CLI_EXECUTABLE_PATH });
- await context._exposeConsoleApi();
- await openPage(context, url);
-}
-async function codegen(options, url) {
- const { target: language, output: outputFile, testIdAttribute: testIdAttributeName } = options;
- const tracesDir = import_path.default.join(import_os.default.tmpdir(), `playwright-recorder-trace-${Date.now()}`);
- const { context, browser, launchOptions, contextOptions, closeBrowser } = await launchContext(options, {
- headless: !!process.env.PWTEST_CLI_HEADLESS,
- executablePath: process.env.PWTEST_CLI_EXECUTABLE_PATH,
- tracesDir
- });
- const donePromise = new import_utils.ManualPromise();
- maybeSetupTestHooks(browser, closeBrowser, donePromise);
- import_utilsBundle.dotenv.config({ path: "playwright.env" });
- await context._enableRecorder({
- language,
- launchOptions,
- contextOptions,
- device: options.device,
- saveStorage: options.saveStorage,
- mode: "recording",
- testIdAttributeName,
- outputFile: outputFile ? import_path.default.resolve(outputFile) : void 0,
- handleSIGINT: false
- });
- await openPage(context, url);
- donePromise.resolve();
-}
-async function maybeSetupTestHooks(browser, closeBrowser, donePromise) {
- if (!process.env.PWTEST_CLI_IS_UNDER_TEST)
- return;
- const logs = [];
- require("playwright-core/lib/utilsBundle").debug.log = (...args) => {
- const line = require("util").format(...args) + "\n";
- logs.push(line);
- process.stderr.write(line);
- };
- browser.on("disconnected", () => {
- const hasCrashLine = logs.some((line) => line.includes("process did exit:") && !line.includes("process did exit: exitCode=0, signal=null"));
- if (hasCrashLine) {
- process.stderr.write("Detected browser crash.\n");
- (0, import_utils.gracefullyProcessExitDoNotHang)(1);
- }
- });
- const close = async () => {
- await donePromise;
- await closeBrowser();
- };
- if (process.env.PWTEST_CLI_EXIT_AFTER_TIMEOUT) {
- setTimeout(close, +process.env.PWTEST_CLI_EXIT_AFTER_TIMEOUT);
- return;
- }
- let stdin = "";
- process.stdin.on("data", (data) => {
- stdin += data.toString();
- if (stdin.startsWith("exit")) {
- process.stdin.destroy();
- close();
- }
- });
-}
-async function waitForPage(page, captureOptions) {
- if (captureOptions.waitForSelector) {
- console.log(`Waiting for selector ${captureOptions.waitForSelector}...`);
- await page.waitForSelector(captureOptions.waitForSelector);
- }
- if (captureOptions.waitForTimeout) {
- console.log(`Waiting for timeout ${captureOptions.waitForTimeout}...`);
- await page.waitForTimeout(parseInt(captureOptions.waitForTimeout, 10));
- }
-}
-async function screenshot(options, captureOptions, url, path2) {
- const { context } = await launchContext(options, { headless: true });
- console.log("Navigating to " + url);
- const page = await openPage(context, url);
- await waitForPage(page, captureOptions);
- console.log("Capturing screenshot into " + path2);
- await page.screenshot({ path: path2, fullPage: !!captureOptions.fullPage });
- await page.close();
-}
-async function pdf(options, captureOptions, url, path2) {
- if (options.browser !== "chromium")
- throw new Error("PDF creation is only working with Chromium");
- const { context } = await launchContext({ ...options, browser: "chromium" }, { headless: true });
- console.log("Navigating to " + url);
- const page = await openPage(context, url);
- await waitForPage(page, captureOptions);
- console.log("Saving as pdf into " + path2);
- await page.pdf({ path: path2, format: captureOptions.paperFormat });
- await page.close();
-}
-function lookupBrowserType(options) {
- let name = options.browser;
- if (options.device) {
- const device = playwright.devices[options.device];
- name = device.defaultBrowserType;
- }
- let browserType;
- switch (name) {
- case "chromium":
- browserType = playwright.chromium;
- break;
- case "webkit":
- browserType = playwright.webkit;
- break;
- case "firefox":
- browserType = playwright.firefox;
- break;
- case "cr":
- browserType = playwright.chromium;
- break;
- case "wk":
- browserType = playwright.webkit;
- break;
- case "ff":
- browserType = playwright.firefox;
- break;
- }
- if (browserType)
- return browserType;
- import_utilsBundle.program.help();
-}
-function validateOptions(options) {
- if (options.device && !(options.device in playwright.devices)) {
- const lines = [`Device descriptor not found: '${options.device}', available devices are:`];
- for (const name in playwright.devices)
- lines.push(` "${name}"`);
- throw new Error(lines.join("\n"));
- }
- if (options.colorScheme && !["light", "dark"].includes(options.colorScheme))
- throw new Error('Invalid color scheme, should be one of "light", "dark"');
-}
-function logErrorAndExit(e) {
- if (process.env.PWDEBUGIMPL)
- console.error(e);
- else
- console.error(e.name + ": " + e.message);
- (0, import_utils.gracefullyProcessExitDoNotHang)(1);
-}
-function codegenId() {
- return process.env.PW_LANG_NAME || "playwright-test";
-}
-function commandWithOpenOptions(command, description, options) {
- let result = import_utilsBundle.program.command(command).description(description);
- for (const option of options)
- result = result.option(option[0], ...option.slice(1));
- return result.option("-b, --browser ", "browser to use, one of cr, chromium, ff, firefox, wk, webkit", "chromium").option("--block-service-workers", "block service workers").option("--channel ", 'Chromium distribution channel, "chrome", "chrome-beta", "msedge-dev", etc').option("--color-scheme ", 'emulate preferred color scheme, "light" or "dark"').option("--device ", 'emulate device, for example "iPhone 11"').option("--geolocation ", 'specify geolocation coordinates, for example "37.819722,-122.478611"').option("--ignore-https-errors", "ignore https errors").option("--load-storage ", "load context storage state from the file, previously saved with --save-storage").option("--lang ", 'specify language / locale, for example "en-GB"').option("--proxy-server ", 'specify proxy server, for example "http://myproxy:3128" or "socks5://myproxy:8080"').option("--proxy-bypass ", 'comma-separated domains to bypass proxy, for example ".com,chromium.org,.domain.com"').option("--save-har ", "save HAR file with all network activity at the end").option("--save-har-glob ", "filter entries in the HAR by matching url against this glob pattern").option("--save-storage ", "save context storage state at the end, for later use with --load-storage").option("--timezone ", 'time zone to emulate, for example "Europe/Rome"').option("--timeout ", "timeout for Playwright actions in milliseconds, no timeout by default").option("--user-agent ", "specify user agent string").option("--user-data-dir ", "use the specified user data directory instead of a new context").option("--viewport-size ", 'specify browser viewport size in pixels, for example "1280, 720"');
-}
-function buildBasePlaywrightCLICommand(cliTargetLang) {
- switch (cliTargetLang) {
- case "python":
- return `playwright`;
- case "java":
- return `mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="...options.."`;
- case "csharp":
- return `pwsh bin/Debug/netX/playwright.ps1`;
- default: {
- const packageManagerCommand = (0, import_utils2.getPackageManagerExecCommand)();
- return `${packageManagerCommand} playwright`;
- }
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- program
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/cli/programWithTestStub.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/cli/programWithTestStub.js
deleted file mode 100644
index 6c4e47c..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/cli/programWithTestStub.js
+++ /dev/null
@@ -1,74 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var programWithTestStub_exports = {};
-__export(programWithTestStub_exports, {
- program: () => import_program2.program
-});
-module.exports = __toCommonJS(programWithTestStub_exports);
-var import_processLauncher = require("../server/utils/processLauncher");
-var import_utils = require("../utils");
-var import_program = require("./program");
-var import_program2 = require("./program");
-function printPlaywrightTestError(command) {
- const packages = [];
- for (const pkg of ["playwright", "playwright-chromium", "playwright-firefox", "playwright-webkit"]) {
- try {
- require.resolve(pkg);
- packages.push(pkg);
- } catch (e) {
- }
- }
- if (!packages.length)
- packages.push("playwright");
- const packageManager = (0, import_utils.getPackageManager)();
- if (packageManager === "yarn") {
- console.error(`Please install @playwright/test package before running "yarn playwright ${command}"`);
- console.error(` yarn remove ${packages.join(" ")}`);
- console.error(" yarn add -D @playwright/test");
- } else if (packageManager === "pnpm") {
- console.error(`Please install @playwright/test package before running "pnpm exec playwright ${command}"`);
- console.error(` pnpm remove ${packages.join(" ")}`);
- console.error(" pnpm add -D @playwright/test");
- } else {
- console.error(`Please install @playwright/test package before running "npx playwright ${command}"`);
- console.error(` npm uninstall ${packages.join(" ")}`);
- console.error(" npm install -D @playwright/test");
- }
-}
-const kExternalPlaywrightTestCommands = [
- ["test", "Run tests with Playwright Test."],
- ["show-report", "Show Playwright Test HTML report."],
- ["merge-reports", "Merge Playwright Test Blob reports"]
-];
-function addExternalPlaywrightTestCommands() {
- for (const [command, description] of kExternalPlaywrightTestCommands) {
- const playwrightTest = import_program.program.command(command).allowUnknownOption(true).allowExcessArguments(true);
- playwrightTest.description(`${description} Available in @playwright/test package.`);
- playwrightTest.action(async () => {
- printPlaywrightTestError(command);
- (0, import_processLauncher.gracefullyProcessExitDoNotHang)(1);
- });
- }
-}
-if (!process.env.PW_LANG_NAME)
- addExternalPlaywrightTestCommands();
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- program
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/android.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/android.js
deleted file mode 100644
index 750b6be..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/android.js
+++ /dev/null
@@ -1,361 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var android_exports = {};
-__export(android_exports, {
- Android: () => Android,
- AndroidDevice: () => AndroidDevice,
- AndroidInput: () => AndroidInput,
- AndroidSocket: () => AndroidSocket,
- AndroidWebView: () => AndroidWebView
-});
-module.exports = __toCommonJS(android_exports);
-var import_eventEmitter = require("./eventEmitter");
-var import_browserContext = require("./browserContext");
-var import_channelOwner = require("./channelOwner");
-var import_errors = require("./errors");
-var import_events = require("./events");
-var import_waiter = require("./waiter");
-var import_timeoutSettings = require("./timeoutSettings");
-var import_rtti = require("../utils/isomorphic/rtti");
-var import_time = require("../utils/isomorphic/time");
-var import_timeoutRunner = require("../utils/isomorphic/timeoutRunner");
-var import_webSocket = require("./webSocket");
-class Android extends import_channelOwner.ChannelOwner {
- static from(android) {
- return android._object;
- }
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._timeoutSettings = new import_timeoutSettings.TimeoutSettings(this._platform);
- }
- setDefaultTimeout(timeout) {
- this._timeoutSettings.setDefaultTimeout(timeout);
- }
- async devices(options = {}) {
- const { devices } = await this._channel.devices(options);
- return devices.map((d) => AndroidDevice.from(d));
- }
- async launchServer(options = {}) {
- if (!this._serverLauncher)
- throw new Error("Launching server is not supported");
- return await this._serverLauncher.launchServer(options);
- }
- async connect(wsEndpoint, options = {}) {
- return await this._wrapApiCall(async () => {
- const deadline = options.timeout ? (0, import_time.monotonicTime)() + options.timeout : 0;
- const headers = { "x-playwright-browser": "android", ...options.headers };
- const connectParams = { wsEndpoint, headers, slowMo: options.slowMo, timeout: options.timeout || 0 };
- const connection = await (0, import_webSocket.connectOverWebSocket)(this._connection, connectParams);
- let device;
- connection.on("close", () => {
- device?._didClose();
- });
- const result = await (0, import_timeoutRunner.raceAgainstDeadline)(async () => {
- const playwright = await connection.initializePlaywright();
- if (!playwright._initializer.preConnectedAndroidDevice) {
- connection.close();
- throw new Error("Malformed endpoint. Did you use Android.launchServer method?");
- }
- device = AndroidDevice.from(playwright._initializer.preConnectedAndroidDevice);
- device._shouldCloseConnectionOnClose = true;
- device.on(import_events.Events.AndroidDevice.Close, () => connection.close());
- return device;
- }, deadline);
- if (!result.timedOut) {
- return result.result;
- } else {
- connection.close();
- throw new Error(`Timeout ${options.timeout}ms exceeded`);
- }
- });
- }
-}
-class AndroidDevice extends import_channelOwner.ChannelOwner {
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._webViews = /* @__PURE__ */ new Map();
- this._shouldCloseConnectionOnClose = false;
- this._android = parent;
- this.input = new AndroidInput(this);
- this._timeoutSettings = new import_timeoutSettings.TimeoutSettings(this._platform, parent._timeoutSettings);
- this._channel.on("webViewAdded", ({ webView }) => this._onWebViewAdded(webView));
- this._channel.on("webViewRemoved", ({ socketName }) => this._onWebViewRemoved(socketName));
- this._channel.on("close", () => this._didClose());
- }
- static from(androidDevice) {
- return androidDevice._object;
- }
- _onWebViewAdded(webView) {
- const view = new AndroidWebView(this, webView);
- this._webViews.set(webView.socketName, view);
- this.emit(import_events.Events.AndroidDevice.WebView, view);
- }
- _onWebViewRemoved(socketName) {
- const view = this._webViews.get(socketName);
- this._webViews.delete(socketName);
- if (view)
- view.emit(import_events.Events.AndroidWebView.Close);
- }
- setDefaultTimeout(timeout) {
- this._timeoutSettings.setDefaultTimeout(timeout);
- }
- serial() {
- return this._initializer.serial;
- }
- model() {
- return this._initializer.model;
- }
- webViews() {
- return [...this._webViews.values()];
- }
- async webView(selector, options) {
- const predicate = (v) => {
- if (selector.pkg)
- return v.pkg() === selector.pkg;
- if (selector.socketName)
- return v._socketName() === selector.socketName;
- return false;
- };
- const webView = [...this._webViews.values()].find(predicate);
- if (webView)
- return webView;
- return await this.waitForEvent("webview", { ...options, predicate });
- }
- async wait(selector, options = {}) {
- await this._channel.wait({ androidSelector: toSelectorChannel(selector), ...options, timeout: this._timeoutSettings.timeout(options) });
- }
- async fill(selector, text, options = {}) {
- await this._channel.fill({ androidSelector: toSelectorChannel(selector), text, ...options, timeout: this._timeoutSettings.timeout(options) });
- }
- async press(selector, key, options = {}) {
- await this.tap(selector, options);
- await this.input.press(key);
- }
- async tap(selector, options = {}) {
- await this._channel.tap({ androidSelector: toSelectorChannel(selector), ...options, timeout: this._timeoutSettings.timeout(options) });
- }
- async drag(selector, dest, options = {}) {
- await this._channel.drag({ androidSelector: toSelectorChannel(selector), dest, ...options, timeout: this._timeoutSettings.timeout(options) });
- }
- async fling(selector, direction, options = {}) {
- await this._channel.fling({ androidSelector: toSelectorChannel(selector), direction, ...options, timeout: this._timeoutSettings.timeout(options) });
- }
- async longTap(selector, options = {}) {
- await this._channel.longTap({ androidSelector: toSelectorChannel(selector), ...options, timeout: this._timeoutSettings.timeout(options) });
- }
- async pinchClose(selector, percent, options = {}) {
- await this._channel.pinchClose({ androidSelector: toSelectorChannel(selector), percent, ...options, timeout: this._timeoutSettings.timeout(options) });
- }
- async pinchOpen(selector, percent, options = {}) {
- await this._channel.pinchOpen({ androidSelector: toSelectorChannel(selector), percent, ...options, timeout: this._timeoutSettings.timeout(options) });
- }
- async scroll(selector, direction, percent, options = {}) {
- await this._channel.scroll({ androidSelector: toSelectorChannel(selector), direction, percent, ...options, timeout: this._timeoutSettings.timeout(options) });
- }
- async swipe(selector, direction, percent, options = {}) {
- await this._channel.swipe({ androidSelector: toSelectorChannel(selector), direction, percent, ...options, timeout: this._timeoutSettings.timeout(options) });
- }
- async info(selector) {
- return (await this._channel.info({ androidSelector: toSelectorChannel(selector) })).info;
- }
- async screenshot(options = {}) {
- const { binary } = await this._channel.screenshot();
- if (options.path)
- await this._platform.fs().promises.writeFile(options.path, binary);
- return binary;
- }
- async [Symbol.asyncDispose]() {
- await this.close();
- }
- async close() {
- try {
- if (this._shouldCloseConnectionOnClose)
- this._connection.close();
- else
- await this._channel.close();
- } catch (e) {
- if ((0, import_errors.isTargetClosedError)(e))
- return;
- throw e;
- }
- }
- _didClose() {
- this.emit(import_events.Events.AndroidDevice.Close, this);
- }
- async shell(command) {
- const { result } = await this._channel.shell({ command });
- return result;
- }
- async open(command) {
- return AndroidSocket.from((await this._channel.open({ command })).socket);
- }
- async installApk(file, options) {
- await this._channel.installApk({ file: await loadFile(this._platform, file), args: options && options.args });
- }
- async push(file, path, options) {
- await this._channel.push({ file: await loadFile(this._platform, file), path, mode: options ? options.mode : void 0 });
- }
- async launchBrowser(options = {}) {
- const contextOptions = await (0, import_browserContext.prepareBrowserContextParams)(this._platform, options);
- const result = await this._channel.launchBrowser(contextOptions);
- const context = import_browserContext.BrowserContext.from(result.context);
- const selectors = this._android._playwright.selectors;
- selectors._contextsForSelectors.add(context);
- context.once(import_events.Events.BrowserContext.Close, () => selectors._contextsForSelectors.delete(context));
- await context._initializeHarFromOptions(options.recordHar);
- return context;
- }
- async waitForEvent(event, optionsOrPredicate = {}) {
- return await this._wrapApiCall(async () => {
- const timeout = this._timeoutSettings.timeout(typeof optionsOrPredicate === "function" ? {} : optionsOrPredicate);
- const predicate = typeof optionsOrPredicate === "function" ? optionsOrPredicate : optionsOrPredicate.predicate;
- const waiter = import_waiter.Waiter.createForEvent(this, event);
- waiter.rejectOnTimeout(timeout, `Timeout ${timeout}ms exceeded while waiting for event "${event}"`);
- if (event !== import_events.Events.AndroidDevice.Close)
- waiter.rejectOnEvent(this, import_events.Events.AndroidDevice.Close, () => new import_errors.TargetClosedError());
- const result = await waiter.waitForEvent(this, event, predicate);
- waiter.dispose();
- return result;
- });
- }
-}
-class AndroidSocket extends import_channelOwner.ChannelOwner {
- static from(androidDevice) {
- return androidDevice._object;
- }
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._channel.on("data", ({ data }) => this.emit(import_events.Events.AndroidSocket.Data, data));
- this._channel.on("close", () => this.emit(import_events.Events.AndroidSocket.Close));
- }
- async write(data) {
- await this._channel.write({ data });
- }
- async close() {
- await this._channel.close();
- }
- async [Symbol.asyncDispose]() {
- await this.close();
- }
-}
-async function loadFile(platform, file) {
- if ((0, import_rtti.isString)(file))
- return await platform.fs().promises.readFile(file);
- return file;
-}
-class AndroidInput {
- constructor(device) {
- this._device = device;
- }
- async type(text) {
- await this._device._channel.inputType({ text });
- }
- async press(key) {
- await this._device._channel.inputPress({ key });
- }
- async tap(point) {
- await this._device._channel.inputTap({ point });
- }
- async swipe(from, segments, steps) {
- await this._device._channel.inputSwipe({ segments, steps });
- }
- async drag(from, to, steps) {
- await this._device._channel.inputDrag({ from, to, steps });
- }
-}
-function toSelectorChannel(selector) {
- const {
- checkable,
- checked,
- clazz,
- clickable,
- depth,
- desc,
- enabled,
- focusable,
- focused,
- hasChild,
- hasDescendant,
- longClickable,
- pkg,
- res,
- scrollable,
- selected,
- text
- } = selector;
- const toRegex = (value) => {
- if (value === void 0)
- return void 0;
- if ((0, import_rtti.isRegExp)(value))
- return value.source;
- return "^" + value.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d") + "$";
- };
- return {
- checkable,
- checked,
- clazz: toRegex(clazz),
- pkg: toRegex(pkg),
- desc: toRegex(desc),
- res: toRegex(res),
- text: toRegex(text),
- clickable,
- depth,
- enabled,
- focusable,
- focused,
- hasChild: hasChild ? { androidSelector: toSelectorChannel(hasChild.selector) } : void 0,
- hasDescendant: hasDescendant ? { androidSelector: toSelectorChannel(hasDescendant.selector), maxDepth: hasDescendant.maxDepth } : void 0,
- longClickable,
- scrollable,
- selected
- };
-}
-class AndroidWebView extends import_eventEmitter.EventEmitter {
- constructor(device, data) {
- super(device._platform);
- this._device = device;
- this._data = data;
- }
- pid() {
- return this._data.pid;
- }
- pkg() {
- return this._data.pkg;
- }
- _socketName() {
- return this._data.socketName;
- }
- async page() {
- if (!this._pagePromise)
- this._pagePromise = this._fetchPage();
- return await this._pagePromise;
- }
- async _fetchPage() {
- const { context } = await this._device._channel.connectToWebView({ socketName: this._data.socketName });
- return import_browserContext.BrowserContext.from(context).pages()[0];
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Android,
- AndroidDevice,
- AndroidInput,
- AndroidSocket,
- AndroidWebView
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/api.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/api.js
deleted file mode 100644
index c6e1f5d..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/api.js
+++ /dev/null
@@ -1,137 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var api_exports = {};
-__export(api_exports, {
- APIRequest: () => import_fetch.APIRequest,
- APIRequestContext: () => import_fetch.APIRequestContext,
- APIResponse: () => import_fetch.APIResponse,
- Android: () => import_android.Android,
- AndroidDevice: () => import_android.AndroidDevice,
- AndroidInput: () => import_android.AndroidInput,
- AndroidSocket: () => import_android.AndroidSocket,
- AndroidWebView: () => import_android.AndroidWebView,
- Browser: () => import_browser.Browser,
- BrowserContext: () => import_browserContext.BrowserContext,
- BrowserType: () => import_browserType.BrowserType,
- CDPSession: () => import_cdpSession.CDPSession,
- Clock: () => import_clock.Clock,
- ConsoleMessage: () => import_consoleMessage.ConsoleMessage,
- Coverage: () => import_coverage.Coverage,
- Dialog: () => import_dialog.Dialog,
- Download: () => import_download.Download,
- Electron: () => import_electron.Electron,
- ElectronApplication: () => import_electron.ElectronApplication,
- ElementHandle: () => import_elementHandle.ElementHandle,
- FileChooser: () => import_fileChooser.FileChooser,
- Frame: () => import_frame.Frame,
- FrameLocator: () => import_locator.FrameLocator,
- JSHandle: () => import_jsHandle.JSHandle,
- Keyboard: () => import_input.Keyboard,
- Locator: () => import_locator.Locator,
- Mouse: () => import_input.Mouse,
- Page: () => import_page.Page,
- PageAgent: () => import_pageAgent.PageAgent,
- Playwright: () => import_playwright.Playwright,
- Request: () => import_network.Request,
- Response: () => import_network.Response,
- Route: () => import_network.Route,
- Selectors: () => import_selectors.Selectors,
- TimeoutError: () => import_errors.TimeoutError,
- Touchscreen: () => import_input.Touchscreen,
- Tracing: () => import_tracing.Tracing,
- Video: () => import_video.Video,
- WebError: () => import_webError.WebError,
- WebSocket: () => import_network.WebSocket,
- WebSocketRoute: () => import_network.WebSocketRoute,
- Worker: () => import_worker.Worker
-});
-module.exports = __toCommonJS(api_exports);
-var import_android = require("./android");
-var import_browser = require("./browser");
-var import_browserContext = require("./browserContext");
-var import_browserType = require("./browserType");
-var import_clock = require("./clock");
-var import_consoleMessage = require("./consoleMessage");
-var import_coverage = require("./coverage");
-var import_dialog = require("./dialog");
-var import_download = require("./download");
-var import_electron = require("./electron");
-var import_locator = require("./locator");
-var import_elementHandle = require("./elementHandle");
-var import_fileChooser = require("./fileChooser");
-var import_errors = require("./errors");
-var import_frame = require("./frame");
-var import_input = require("./input");
-var import_jsHandle = require("./jsHandle");
-var import_network = require("./network");
-var import_fetch = require("./fetch");
-var import_page = require("./page");
-var import_pageAgent = require("./pageAgent");
-var import_selectors = require("./selectors");
-var import_tracing = require("./tracing");
-var import_video = require("./video");
-var import_worker = require("./worker");
-var import_cdpSession = require("./cdpSession");
-var import_playwright = require("./playwright");
-var import_webError = require("./webError");
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- APIRequest,
- APIRequestContext,
- APIResponse,
- Android,
- AndroidDevice,
- AndroidInput,
- AndroidSocket,
- AndroidWebView,
- Browser,
- BrowserContext,
- BrowserType,
- CDPSession,
- Clock,
- ConsoleMessage,
- Coverage,
- Dialog,
- Download,
- Electron,
- ElectronApplication,
- ElementHandle,
- FileChooser,
- Frame,
- FrameLocator,
- JSHandle,
- Keyboard,
- Locator,
- Mouse,
- Page,
- PageAgent,
- Playwright,
- Request,
- Response,
- Route,
- Selectors,
- TimeoutError,
- Touchscreen,
- Tracing,
- Video,
- WebError,
- WebSocket,
- WebSocketRoute,
- Worker
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/artifact.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/artifact.js
deleted file mode 100644
index d50f3ea..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/artifact.js
+++ /dev/null
@@ -1,79 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var artifact_exports = {};
-__export(artifact_exports, {
- Artifact: () => Artifact
-});
-module.exports = __toCommonJS(artifact_exports);
-var import_channelOwner = require("./channelOwner");
-var import_stream = require("./stream");
-var import_fileUtils = require("./fileUtils");
-class Artifact extends import_channelOwner.ChannelOwner {
- static from(channel) {
- return channel._object;
- }
- async pathAfterFinished() {
- if (this._connection.isRemote())
- throw new Error(`Path is not available when connecting remotely. Use saveAs() to save a local copy.`);
- return (await this._channel.pathAfterFinished()).value;
- }
- async saveAs(path) {
- if (!this._connection.isRemote()) {
- await this._channel.saveAs({ path });
- return;
- }
- const result = await this._channel.saveAsStream();
- const stream = import_stream.Stream.from(result.stream);
- await (0, import_fileUtils.mkdirIfNeeded)(this._platform, path);
- await new Promise((resolve, reject) => {
- stream.stream().pipe(this._platform.fs().createWriteStream(path)).on("finish", resolve).on("error", reject);
- });
- }
- async failure() {
- return (await this._channel.failure()).error || null;
- }
- async createReadStream() {
- const result = await this._channel.stream();
- const stream = import_stream.Stream.from(result.stream);
- return stream.stream();
- }
- async readIntoBuffer() {
- const stream = await this.createReadStream();
- return await new Promise((resolve, reject) => {
- const chunks = [];
- stream.on("data", (chunk) => {
- chunks.push(chunk);
- });
- stream.on("end", () => {
- resolve(Buffer.concat(chunks));
- });
- stream.on("error", reject);
- });
- }
- async cancel() {
- return await this._channel.cancel();
- }
- async delete() {
- return await this._channel.delete();
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Artifact
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/browser.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/browser.js
deleted file mode 100644
index c97e72e..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/browser.js
+++ /dev/null
@@ -1,161 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var browser_exports = {};
-__export(browser_exports, {
- Browser: () => Browser
-});
-module.exports = __toCommonJS(browser_exports);
-var import_artifact = require("./artifact");
-var import_browserContext = require("./browserContext");
-var import_cdpSession = require("./cdpSession");
-var import_channelOwner = require("./channelOwner");
-var import_errors = require("./errors");
-var import_events = require("./events");
-var import_fileUtils = require("./fileUtils");
-class Browser extends import_channelOwner.ChannelOwner {
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._contexts = /* @__PURE__ */ new Set();
- this._isConnected = true;
- this._shouldCloseConnectionOnClose = false;
- this._options = {};
- this._name = initializer.name;
- this._channel.on("context", ({ context }) => this._didCreateContext(import_browserContext.BrowserContext.from(context)));
- this._channel.on("close", () => this._didClose());
- this._closedPromise = new Promise((f) => this.once(import_events.Events.Browser.Disconnected, f));
- }
- static from(browser) {
- return browser._object;
- }
- browserType() {
- return this._browserType;
- }
- async newContext(options = {}) {
- return await this._innerNewContext(options, false);
- }
- async _newContextForReuse(options = {}) {
- return await this._innerNewContext(options, true);
- }
- async _disconnectFromReusedContext(reason) {
- const context = [...this._contexts].find((context2) => context2._forReuse);
- if (!context)
- return;
- await this._instrumentation.runBeforeCloseBrowserContext(context);
- for (const page of context.pages())
- page._onClose();
- context._onClose();
- await this._channel.disconnectFromReusedContext({ reason });
- }
- async _innerNewContext(userOptions = {}, forReuse) {
- const options = this._browserType._playwright.selectors._withSelectorOptions(userOptions);
- await this._instrumentation.runBeforeCreateBrowserContext(options);
- const contextOptions = await (0, import_browserContext.prepareBrowserContextParams)(this._platform, options);
- const response = forReuse ? await this._channel.newContextForReuse(contextOptions) : await this._channel.newContext(contextOptions);
- const context = import_browserContext.BrowserContext.from(response.context);
- if (forReuse)
- context._forReuse = true;
- if (options.logger)
- context._logger = options.logger;
- await context._initializeHarFromOptions(options.recordHar);
- await this._instrumentation.runAfterCreateBrowserContext(context);
- return context;
- }
- _connectToBrowserType(browserType, browserOptions, logger) {
- this._browserType = browserType;
- this._options = browserOptions;
- this._logger = logger;
- for (const context of this._contexts)
- this._setupBrowserContext(context);
- }
- _didCreateContext(context) {
- context._browser = this;
- this._contexts.add(context);
- if (this._browserType)
- this._setupBrowserContext(context);
- }
- _setupBrowserContext(context) {
- context._logger = this._logger;
- context.tracing._tracesDir = this._options.tracesDir;
- this._browserType._contexts.add(context);
- this._browserType._playwright.selectors._contextsForSelectors.add(context);
- context.setDefaultTimeout(this._browserType._playwright._defaultContextTimeout);
- context.setDefaultNavigationTimeout(this._browserType._playwright._defaultContextNavigationTimeout);
- }
- contexts() {
- return [...this._contexts];
- }
- version() {
- return this._initializer.version;
- }
- async newPage(options = {}) {
- return await this._wrapApiCall(async () => {
- const context = await this.newContext(options);
- const page = await context.newPage();
- page._ownedContext = context;
- context._ownerPage = page;
- return page;
- }, { title: "Create page" });
- }
- isConnected() {
- return this._isConnected;
- }
- async newBrowserCDPSession() {
- return import_cdpSession.CDPSession.from((await this._channel.newBrowserCDPSession()).session);
- }
- async startTracing(page, options = {}) {
- this._path = options.path;
- await this._channel.startTracing({ ...options, page: page ? page._channel : void 0 });
- }
- async stopTracing() {
- const artifact = import_artifact.Artifact.from((await this._channel.stopTracing()).artifact);
- const buffer = await artifact.readIntoBuffer();
- await artifact.delete();
- if (this._path) {
- await (0, import_fileUtils.mkdirIfNeeded)(this._platform, this._path);
- await this._platform.fs().promises.writeFile(this._path, buffer);
- this._path = void 0;
- }
- return buffer;
- }
- async [Symbol.asyncDispose]() {
- await this.close();
- }
- async close(options = {}) {
- this._closeReason = options.reason;
- try {
- if (this._shouldCloseConnectionOnClose)
- this._connection.close();
- else
- await this._channel.close(options);
- await this._closedPromise;
- } catch (e) {
- if ((0, import_errors.isTargetClosedError)(e))
- return;
- throw e;
- }
- }
- _didClose() {
- this._isConnected = false;
- this.emit(import_events.Events.Browser.Disconnected, this);
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Browser
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/browserContext.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/browserContext.js
deleted file mode 100644
index 0b5cb33..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/browserContext.js
+++ /dev/null
@@ -1,582 +0,0 @@
-"use strict";
-var __create = Object.create;
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __getProtoOf = Object.getPrototypeOf;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
- // If the importer is in node compatibility mode or this is not an ESM
- // file that has been converted to a CommonJS file using a Babel-
- // compatible transform (i.e. "__esModule" has not been set), then set
- // "default" to the CommonJS "module.exports" for node compatibility.
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
- mod
-));
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var browserContext_exports = {};
-__export(browserContext_exports, {
- BrowserContext: () => BrowserContext,
- prepareBrowserContextParams: () => prepareBrowserContextParams,
- toClientCertificatesProtocol: () => toClientCertificatesProtocol
-});
-module.exports = __toCommonJS(browserContext_exports);
-var import_artifact = require("./artifact");
-var import_cdpSession = require("./cdpSession");
-var import_channelOwner = require("./channelOwner");
-var import_clientHelper = require("./clientHelper");
-var import_clock = require("./clock");
-var import_consoleMessage = require("./consoleMessage");
-var import_dialog = require("./dialog");
-var import_errors = require("./errors");
-var import_events = require("./events");
-var import_fetch = require("./fetch");
-var import_frame = require("./frame");
-var import_harRouter = require("./harRouter");
-var network = __toESM(require("./network"));
-var import_page = require("./page");
-var import_tracing = require("./tracing");
-var import_waiter = require("./waiter");
-var import_webError = require("./webError");
-var import_worker = require("./worker");
-var import_timeoutSettings = require("./timeoutSettings");
-var import_fileUtils = require("./fileUtils");
-var import_headers = require("../utils/isomorphic/headers");
-var import_urlMatch = require("../utils/isomorphic/urlMatch");
-var import_rtti = require("../utils/isomorphic/rtti");
-var import_stackTrace = require("../utils/isomorphic/stackTrace");
-class BrowserContext extends import_channelOwner.ChannelOwner {
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._pages = /* @__PURE__ */ new Set();
- this._routes = [];
- this._webSocketRoutes = [];
- // Browser is null for browser contexts created outside of normal browser, e.g. android or electron.
- this._browser = null;
- this._bindings = /* @__PURE__ */ new Map();
- this._forReuse = false;
- this._serviceWorkers = /* @__PURE__ */ new Set();
- this._harRecorders = /* @__PURE__ */ new Map();
- this._closingStatus = "none";
- this._harRouters = [];
- this._options = initializer.options;
- this._timeoutSettings = new import_timeoutSettings.TimeoutSettings(this._platform);
- this.tracing = import_tracing.Tracing.from(initializer.tracing);
- this.request = import_fetch.APIRequestContext.from(initializer.requestContext);
- this.request._timeoutSettings = this._timeoutSettings;
- this.request._checkUrlAllowed = (url) => this._checkUrlAllowed(url);
- this.clock = new import_clock.Clock(this);
- this._channel.on("bindingCall", ({ binding }) => this._onBinding(import_page.BindingCall.from(binding)));
- this._channel.on("close", () => this._onClose());
- this._channel.on("page", ({ page }) => this._onPage(import_page.Page.from(page)));
- this._channel.on("route", ({ route }) => this._onRoute(network.Route.from(route)));
- this._channel.on("webSocketRoute", ({ webSocketRoute }) => this._onWebSocketRoute(network.WebSocketRoute.from(webSocketRoute)));
- this._channel.on("serviceWorker", ({ worker }) => {
- const serviceWorker = import_worker.Worker.from(worker);
- serviceWorker._context = this;
- this._serviceWorkers.add(serviceWorker);
- this.emit(import_events.Events.BrowserContext.ServiceWorker, serviceWorker);
- });
- this._channel.on("console", (event) => {
- const worker = import_worker.Worker.fromNullable(event.worker);
- const page = import_page.Page.fromNullable(event.page);
- const consoleMessage = new import_consoleMessage.ConsoleMessage(this._platform, event, page, worker);
- worker?.emit(import_events.Events.Worker.Console, consoleMessage);
- page?.emit(import_events.Events.Page.Console, consoleMessage);
- if (worker && this._serviceWorkers.has(worker)) {
- const scope = this._serviceWorkerScope(worker);
- for (const page2 of this._pages) {
- if (scope && page2.url().startsWith(scope))
- page2.emit(import_events.Events.Page.Console, consoleMessage);
- }
- }
- this.emit(import_events.Events.BrowserContext.Console, consoleMessage);
- });
- this._channel.on("pageError", ({ error, page }) => {
- const pageObject = import_page.Page.from(page);
- const parsedError = (0, import_errors.parseError)(error);
- this.emit(import_events.Events.BrowserContext.WebError, new import_webError.WebError(pageObject, parsedError));
- if (pageObject)
- pageObject.emit(import_events.Events.Page.PageError, parsedError);
- });
- this._channel.on("dialog", ({ dialog }) => {
- const dialogObject = import_dialog.Dialog.from(dialog);
- let hasListeners = this.emit(import_events.Events.BrowserContext.Dialog, dialogObject);
- const page = dialogObject.page();
- if (page)
- hasListeners = page.emit(import_events.Events.Page.Dialog, dialogObject) || hasListeners;
- if (!hasListeners) {
- if (dialogObject.type() === "beforeunload")
- dialog.accept({}).catch(() => {
- });
- else
- dialog.dismiss().catch(() => {
- });
- }
- });
- this._channel.on("request", ({ request, page }) => this._onRequest(network.Request.from(request), import_page.Page.fromNullable(page)));
- this._channel.on("requestFailed", ({ request, failureText, responseEndTiming, page }) => this._onRequestFailed(network.Request.from(request), responseEndTiming, failureText, import_page.Page.fromNullable(page)));
- this._channel.on("requestFinished", (params) => this._onRequestFinished(params));
- this._channel.on("response", ({ response, page }) => this._onResponse(network.Response.from(response), import_page.Page.fromNullable(page)));
- this._channel.on("recorderEvent", ({ event, data, page, code }) => {
- if (event === "actionAdded")
- this._onRecorderEventSink?.actionAdded?.(import_page.Page.from(page), data, code);
- else if (event === "actionUpdated")
- this._onRecorderEventSink?.actionUpdated?.(import_page.Page.from(page), data, code);
- else if (event === "signalAdded")
- this._onRecorderEventSink?.signalAdded?.(import_page.Page.from(page), data);
- });
- this._closedPromise = new Promise((f) => this.once(import_events.Events.BrowserContext.Close, f));
- this._setEventToSubscriptionMapping(/* @__PURE__ */ new Map([
- [import_events.Events.BrowserContext.Console, "console"],
- [import_events.Events.BrowserContext.Dialog, "dialog"],
- [import_events.Events.BrowserContext.Request, "request"],
- [import_events.Events.BrowserContext.Response, "response"],
- [import_events.Events.BrowserContext.RequestFinished, "requestFinished"],
- [import_events.Events.BrowserContext.RequestFailed, "requestFailed"]
- ]));
- }
- static from(context) {
- return context._object;
- }
- static fromNullable(context) {
- return context ? BrowserContext.from(context) : null;
- }
- async _initializeHarFromOptions(recordHar) {
- if (!recordHar)
- return;
- const defaultContent = recordHar.path.endsWith(".zip") ? "attach" : "embed";
- await this._recordIntoHAR(recordHar.path, null, {
- url: recordHar.urlFilter,
- updateContent: recordHar.content ?? (recordHar.omitContent ? "omit" : defaultContent),
- updateMode: recordHar.mode ?? "full"
- });
- }
- _onPage(page) {
- this._pages.add(page);
- this.emit(import_events.Events.BrowserContext.Page, page);
- if (page._opener && !page._opener.isClosed())
- page._opener.emit(import_events.Events.Page.Popup, page);
- }
- _onRequest(request, page) {
- this.emit(import_events.Events.BrowserContext.Request, request);
- if (page)
- page.emit(import_events.Events.Page.Request, request);
- }
- _onResponse(response, page) {
- this.emit(import_events.Events.BrowserContext.Response, response);
- if (page)
- page.emit(import_events.Events.Page.Response, response);
- }
- _onRequestFailed(request, responseEndTiming, failureText, page) {
- request._failureText = failureText || null;
- request._setResponseEndTiming(responseEndTiming);
- this.emit(import_events.Events.BrowserContext.RequestFailed, request);
- if (page)
- page.emit(import_events.Events.Page.RequestFailed, request);
- }
- _onRequestFinished(params) {
- const { responseEndTiming } = params;
- const request = network.Request.from(params.request);
- const response = network.Response.fromNullable(params.response);
- const page = import_page.Page.fromNullable(params.page);
- request._setResponseEndTiming(responseEndTiming);
- this.emit(import_events.Events.BrowserContext.RequestFinished, request);
- if (page)
- page.emit(import_events.Events.Page.RequestFinished, request);
- if (response)
- response._finishedPromise.resolve(null);
- }
- async _onRoute(route) {
- route._context = this;
- const page = route.request()._safePage();
- const routeHandlers = this._routes.slice();
- for (const routeHandler of routeHandlers) {
- if (page?._closeWasCalled || this._closingStatus !== "none")
- return;
- if (!routeHandler.matches(route.request().url()))
- continue;
- const index = this._routes.indexOf(routeHandler);
- if (index === -1)
- continue;
- if (routeHandler.willExpire())
- this._routes.splice(index, 1);
- const handled = await routeHandler.handle(route);
- if (!this._routes.length)
- this._updateInterceptionPatterns({ internal: true }).catch(() => {
- });
- if (handled)
- return;
- }
- await route._innerContinue(
- true
- /* isFallback */
- ).catch(() => {
- });
- }
- async _onWebSocketRoute(webSocketRoute) {
- const routeHandler = this._webSocketRoutes.find((route) => route.matches(webSocketRoute.url()));
- if (routeHandler)
- await routeHandler.handle(webSocketRoute);
- else
- webSocketRoute.connectToServer();
- }
- async _onBinding(bindingCall) {
- const func = this._bindings.get(bindingCall._initializer.name);
- if (!func)
- return;
- await bindingCall.call(func);
- }
- _serviceWorkerScope(serviceWorker) {
- try {
- let url = new URL(".", serviceWorker.url()).href;
- if (!url.endsWith("/"))
- url += "/";
- return url;
- } catch {
- return null;
- }
- }
- setDefaultNavigationTimeout(timeout) {
- this._timeoutSettings.setDefaultNavigationTimeout(timeout);
- }
- setDefaultTimeout(timeout) {
- this._timeoutSettings.setDefaultTimeout(timeout);
- }
- browser() {
- return this._browser;
- }
- pages() {
- return [...this._pages];
- }
- async newPage() {
- if (this._ownerPage)
- throw new Error("Please use browser.newContext()");
- return import_page.Page.from((await this._channel.newPage()).page);
- }
- async cookies(urls) {
- if (!urls)
- urls = [];
- if (urls && typeof urls === "string")
- urls = [urls];
- return (await this._channel.cookies({ urls })).cookies;
- }
- async addCookies(cookies) {
- await this._channel.addCookies({ cookies });
- }
- async clearCookies(options = {}) {
- await this._channel.clearCookies({
- name: (0, import_rtti.isString)(options.name) ? options.name : void 0,
- nameRegexSource: (0, import_rtti.isRegExp)(options.name) ? options.name.source : void 0,
- nameRegexFlags: (0, import_rtti.isRegExp)(options.name) ? options.name.flags : void 0,
- domain: (0, import_rtti.isString)(options.domain) ? options.domain : void 0,
- domainRegexSource: (0, import_rtti.isRegExp)(options.domain) ? options.domain.source : void 0,
- domainRegexFlags: (0, import_rtti.isRegExp)(options.domain) ? options.domain.flags : void 0,
- path: (0, import_rtti.isString)(options.path) ? options.path : void 0,
- pathRegexSource: (0, import_rtti.isRegExp)(options.path) ? options.path.source : void 0,
- pathRegexFlags: (0, import_rtti.isRegExp)(options.path) ? options.path.flags : void 0
- });
- }
- async grantPermissions(permissions, options) {
- await this._channel.grantPermissions({ permissions, ...options });
- }
- async clearPermissions() {
- await this._channel.clearPermissions();
- }
- async setGeolocation(geolocation) {
- await this._channel.setGeolocation({ geolocation: geolocation || void 0 });
- }
- async setExtraHTTPHeaders(headers) {
- network.validateHeaders(headers);
- await this._channel.setExtraHTTPHeaders({ headers: (0, import_headers.headersObjectToArray)(headers) });
- }
- async setOffline(offline) {
- await this._channel.setOffline({ offline });
- }
- async setHTTPCredentials(httpCredentials) {
- await this._channel.setHTTPCredentials({ httpCredentials: httpCredentials || void 0 });
- }
- async addInitScript(script, arg) {
- const source = await (0, import_clientHelper.evaluationScript)(this._platform, script, arg);
- await this._channel.addInitScript({ source });
- }
- async exposeBinding(name, callback, options = {}) {
- await this._channel.exposeBinding({ name, needsHandle: options.handle });
- this._bindings.set(name, callback);
- }
- async exposeFunction(name, callback) {
- await this._channel.exposeBinding({ name });
- const binding = (source, ...args) => callback(...args);
- this._bindings.set(name, binding);
- }
- async route(url, handler, options = {}) {
- this._routes.unshift(new network.RouteHandler(this._platform, this._options.baseURL, url, handler, options.times));
- await this._updateInterceptionPatterns({ title: "Route requests" });
- }
- async routeWebSocket(url, handler) {
- this._webSocketRoutes.unshift(new network.WebSocketRouteHandler(this._options.baseURL, url, handler));
- await this._updateWebSocketInterceptionPatterns({ title: "Route WebSockets" });
- }
- async _recordIntoHAR(har, page, options = {}) {
- const { harId } = await this._channel.harStart({
- page: page?._channel,
- options: {
- zip: har.endsWith(".zip"),
- content: options.updateContent ?? "attach",
- urlGlob: (0, import_rtti.isString)(options.url) ? options.url : void 0,
- urlRegexSource: (0, import_rtti.isRegExp)(options.url) ? options.url.source : void 0,
- urlRegexFlags: (0, import_rtti.isRegExp)(options.url) ? options.url.flags : void 0,
- mode: options.updateMode ?? "minimal"
- }
- });
- this._harRecorders.set(harId, { path: har, content: options.updateContent ?? "attach" });
- }
- async routeFromHAR(har, options = {}) {
- const localUtils = this._connection.localUtils();
- if (!localUtils)
- throw new Error("Route from har is not supported in thin clients");
- if (options.update) {
- await this._recordIntoHAR(har, null, options);
- return;
- }
- const harRouter = await import_harRouter.HarRouter.create(localUtils, har, options.notFound || "abort", { urlMatch: options.url });
- this._harRouters.push(harRouter);
- await harRouter.addContextRoute(this);
- }
- _disposeHarRouters() {
- this._harRouters.forEach((router) => router.dispose());
- this._harRouters = [];
- }
- async unrouteAll(options) {
- await this._unrouteInternal(this._routes, [], options?.behavior);
- this._disposeHarRouters();
- }
- async unroute(url, handler) {
- const removed = [];
- const remaining = [];
- for (const route of this._routes) {
- if ((0, import_urlMatch.urlMatchesEqual)(route.url, url) && (!handler || route.handler === handler))
- removed.push(route);
- else
- remaining.push(route);
- }
- await this._unrouteInternal(removed, remaining, "default");
- }
- async _unrouteInternal(removed, remaining, behavior) {
- this._routes = remaining;
- if (behavior && behavior !== "default") {
- const promises = removed.map((routeHandler) => routeHandler.stop(behavior));
- await Promise.all(promises);
- }
- await this._updateInterceptionPatterns({ title: "Unroute requests" });
- }
- async _updateInterceptionPatterns(options) {
- const patterns = network.RouteHandler.prepareInterceptionPatterns(this._routes);
- await this._wrapApiCall(() => this._channel.setNetworkInterceptionPatterns({ patterns }), options);
- }
- async _updateWebSocketInterceptionPatterns(options) {
- const patterns = network.WebSocketRouteHandler.prepareInterceptionPatterns(this._webSocketRoutes);
- await this._wrapApiCall(() => this._channel.setWebSocketInterceptionPatterns({ patterns }), options);
- }
- _effectiveCloseReason() {
- return this._closeReason || this._browser?._closeReason;
- }
- async waitForEvent(event, optionsOrPredicate = {}) {
- return await this._wrapApiCall(async () => {
- const timeout = this._timeoutSettings.timeout(typeof optionsOrPredicate === "function" ? {} : optionsOrPredicate);
- const predicate = typeof optionsOrPredicate === "function" ? optionsOrPredicate : optionsOrPredicate.predicate;
- const waiter = import_waiter.Waiter.createForEvent(this, event);
- waiter.rejectOnTimeout(timeout, `Timeout ${timeout}ms exceeded while waiting for event "${event}"`);
- if (event !== import_events.Events.BrowserContext.Close)
- waiter.rejectOnEvent(this, import_events.Events.BrowserContext.Close, () => new import_errors.TargetClosedError(this._effectiveCloseReason()));
- const result = await waiter.waitForEvent(this, event, predicate);
- waiter.dispose();
- return result;
- });
- }
- async storageState(options = {}) {
- const state = await this._channel.storageState({ indexedDB: options.indexedDB });
- if (options.path) {
- await (0, import_fileUtils.mkdirIfNeeded)(this._platform, options.path);
- await this._platform.fs().promises.writeFile(options.path, JSON.stringify(state, void 0, 2), "utf8");
- }
- return state;
- }
- backgroundPages() {
- return [];
- }
- serviceWorkers() {
- return [...this._serviceWorkers];
- }
- async newCDPSession(page) {
- if (!(page instanceof import_page.Page) && !(page instanceof import_frame.Frame))
- throw new Error("page: expected Page or Frame");
- const result = await this._channel.newCDPSession(page instanceof import_page.Page ? { page: page._channel } : { frame: page._channel });
- return import_cdpSession.CDPSession.from(result.session);
- }
- _onClose() {
- this._closingStatus = "closed";
- this._browser?._contexts.delete(this);
- this._browser?._browserType._contexts.delete(this);
- this._browser?._browserType._playwright.selectors._contextsForSelectors.delete(this);
- this._disposeHarRouters();
- this.tracing._resetStackCounter();
- this.emit(import_events.Events.BrowserContext.Close, this);
- }
- async [Symbol.asyncDispose]() {
- await this.close();
- }
- async close(options = {}) {
- if (this._closingStatus !== "none")
- return;
- this._closeReason = options.reason;
- this._closingStatus = "closing";
- await this.request.dispose(options);
- await this._instrumentation.runBeforeCloseBrowserContext(this);
- await this._wrapApiCall(async () => {
- for (const [harId, harParams] of this._harRecorders) {
- const har = await this._channel.harExport({ harId });
- const artifact = import_artifact.Artifact.from(har.artifact);
- const isCompressed = harParams.content === "attach" || harParams.path.endsWith(".zip");
- const needCompressed = harParams.path.endsWith(".zip");
- if (isCompressed && !needCompressed) {
- const localUtils = this._connection.localUtils();
- if (!localUtils)
- throw new Error("Uncompressed har is not supported in thin clients");
- await artifact.saveAs(harParams.path + ".tmp");
- await localUtils.harUnzip({ zipFile: harParams.path + ".tmp", harFile: harParams.path });
- } else {
- await artifact.saveAs(harParams.path);
- }
- await artifact.delete();
- }
- }, { internal: true });
- await this._channel.close(options);
- await this._closedPromise;
- }
- async _enableRecorder(params, eventSink) {
- if (eventSink)
- this._onRecorderEventSink = eventSink;
- await this._channel.enableRecorder(params);
- }
- async _disableRecorder() {
- this._onRecorderEventSink = void 0;
- await this._channel.disableRecorder();
- }
- async _exposeConsoleApi() {
- await this._channel.exposeConsoleApi();
- }
- _setAllowedProtocols(protocols) {
- this._allowedProtocols = protocols;
- }
- _checkUrlAllowed(url) {
- if (!this._allowedProtocols)
- return;
- let parsedURL;
- try {
- parsedURL = new URL(url);
- } catch (e) {
- throw new Error(`Access to ${url} is blocked. Invalid URL: ${e.message}`);
- }
- if (!this._allowedProtocols.includes(parsedURL.protocol))
- throw new Error(`Access to "${parsedURL.protocol}" URL is blocked. Allowed protocols: ${this._allowedProtocols.join(", ")}. Attempted URL: ${url}`);
- }
- _setAllowedDirectories(rootDirectories) {
- this._allowedDirectories = rootDirectories;
- }
- _checkFileAccess(filePath) {
- if (!this._allowedDirectories)
- return;
- const path = this._platform.path().resolve(filePath);
- const isInsideDir = (container, child) => {
- const path2 = this._platform.path();
- const rel = path2.relative(container, child);
- return !!rel && !rel.startsWith("..") && !path2.isAbsolute(rel);
- };
- if (this._allowedDirectories.some((root) => isInsideDir(root, path)))
- return;
- throw new Error(`File access denied: ${filePath} is outside allowed roots. Allowed roots: ${this._allowedDirectories.length ? this._allowedDirectories.join(", ") : "none"}`);
- }
-}
-async function prepareStorageState(platform, storageState) {
- if (typeof storageState !== "string")
- return storageState;
- try {
- return JSON.parse(await platform.fs().promises.readFile(storageState, "utf8"));
- } catch (e) {
- (0, import_stackTrace.rewriteErrorMessage)(e, `Error reading storage state from ${storageState}:
-` + e.message);
- throw e;
- }
-}
-async function prepareBrowserContextParams(platform, options) {
- if (options.videoSize && !options.videosPath)
- throw new Error(`"videoSize" option requires "videosPath" to be specified`);
- if (options.extraHTTPHeaders)
- network.validateHeaders(options.extraHTTPHeaders);
- const contextParams = {
- ...options,
- viewport: options.viewport === null ? void 0 : options.viewport,
- noDefaultViewport: options.viewport === null,
- extraHTTPHeaders: options.extraHTTPHeaders ? (0, import_headers.headersObjectToArray)(options.extraHTTPHeaders) : void 0,
- storageState: options.storageState ? await prepareStorageState(platform, options.storageState) : void 0,
- serviceWorkers: options.serviceWorkers,
- colorScheme: options.colorScheme === null ? "no-override" : options.colorScheme,
- reducedMotion: options.reducedMotion === null ? "no-override" : options.reducedMotion,
- forcedColors: options.forcedColors === null ? "no-override" : options.forcedColors,
- contrast: options.contrast === null ? "no-override" : options.contrast,
- acceptDownloads: toAcceptDownloadsProtocol(options.acceptDownloads),
- clientCertificates: await toClientCertificatesProtocol(platform, options.clientCertificates)
- };
- if (!contextParams.recordVideo && options.videosPath) {
- contextParams.recordVideo = {
- dir: options.videosPath,
- size: options.videoSize
- };
- }
- if (contextParams.recordVideo && contextParams.recordVideo.dir)
- contextParams.recordVideo.dir = platform.path().resolve(contextParams.recordVideo.dir);
- return contextParams;
-}
-function toAcceptDownloadsProtocol(acceptDownloads) {
- if (acceptDownloads === void 0)
- return void 0;
- if (acceptDownloads)
- return "accept";
- return "deny";
-}
-async function toClientCertificatesProtocol(platform, certs) {
- if (!certs)
- return void 0;
- const bufferizeContent = async (value, path) => {
- if (value)
- return value;
- if (path)
- return await platform.fs().promises.readFile(path);
- };
- return await Promise.all(certs.map(async (cert) => ({
- origin: cert.origin,
- cert: await bufferizeContent(cert.cert, cert.certPath),
- key: await bufferizeContent(cert.key, cert.keyPath),
- pfx: await bufferizeContent(cert.pfx, cert.pfxPath),
- passphrase: cert.passphrase
- })));
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- BrowserContext,
- prepareBrowserContextParams,
- toClientCertificatesProtocol
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/browserType.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/browserType.js
deleted file mode 100644
index 81b2fdf..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/browserType.js
+++ /dev/null
@@ -1,185 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var browserType_exports = {};
-__export(browserType_exports, {
- BrowserType: () => BrowserType
-});
-module.exports = __toCommonJS(browserType_exports);
-var import_browser = require("./browser");
-var import_browserContext = require("./browserContext");
-var import_channelOwner = require("./channelOwner");
-var import_clientHelper = require("./clientHelper");
-var import_events = require("./events");
-var import_assert = require("../utils/isomorphic/assert");
-var import_headers = require("../utils/isomorphic/headers");
-var import_time = require("../utils/isomorphic/time");
-var import_timeoutRunner = require("../utils/isomorphic/timeoutRunner");
-var import_webSocket = require("./webSocket");
-var import_timeoutSettings = require("./timeoutSettings");
-class BrowserType extends import_channelOwner.ChannelOwner {
- constructor() {
- super(...arguments);
- this._contexts = /* @__PURE__ */ new Set();
- }
- static from(browserType) {
- return browserType._object;
- }
- executablePath() {
- if (!this._initializer.executablePath)
- throw new Error("Browser is not supported on current platform");
- return this._initializer.executablePath;
- }
- name() {
- return this._initializer.name;
- }
- async launch(options = {}) {
- (0, import_assert.assert)(!options.userDataDir, "userDataDir option is not supported in `browserType.launch`. Use `browserType.launchPersistentContext` instead");
- (0, import_assert.assert)(!options.port, "Cannot specify a port without launching as a server.");
- const logger = options.logger || this._playwright._defaultLaunchOptions?.logger;
- options = { ...this._playwright._defaultLaunchOptions, ...options };
- const launchOptions = {
- ...options,
- ignoreDefaultArgs: Array.isArray(options.ignoreDefaultArgs) ? options.ignoreDefaultArgs : void 0,
- ignoreAllDefaultArgs: !!options.ignoreDefaultArgs && !Array.isArray(options.ignoreDefaultArgs),
- env: options.env ? (0, import_clientHelper.envObjectToArray)(options.env) : void 0,
- timeout: new import_timeoutSettings.TimeoutSettings(this._platform).launchTimeout(options)
- };
- return await this._wrapApiCall(async () => {
- const browser = import_browser.Browser.from((await this._channel.launch(launchOptions)).browser);
- browser._connectToBrowserType(this, options, logger);
- return browser;
- });
- }
- async launchServer(options = {}) {
- if (!this._serverLauncher)
- throw new Error("Launching server is not supported");
- options = { ...this._playwright._defaultLaunchOptions, ...options };
- return await this._serverLauncher.launchServer(options);
- }
- async launchPersistentContext(userDataDir, options = {}) {
- (0, import_assert.assert)(!options.port, "Cannot specify a port without launching as a server.");
- options = this._playwright.selectors._withSelectorOptions({
- ...this._playwright._defaultLaunchOptions,
- ...options
- });
- await this._instrumentation.runBeforeCreateBrowserContext(options);
- const logger = options.logger || this._playwright._defaultLaunchOptions?.logger;
- const contextParams = await (0, import_browserContext.prepareBrowserContextParams)(this._platform, options);
- const persistentParams = {
- ...contextParams,
- ignoreDefaultArgs: Array.isArray(options.ignoreDefaultArgs) ? options.ignoreDefaultArgs : void 0,
- ignoreAllDefaultArgs: !!options.ignoreDefaultArgs && !Array.isArray(options.ignoreDefaultArgs),
- env: options.env ? (0, import_clientHelper.envObjectToArray)(options.env) : void 0,
- channel: options.channel,
- userDataDir: this._platform.path().isAbsolute(userDataDir) || !userDataDir ? userDataDir : this._platform.path().resolve(userDataDir),
- timeout: new import_timeoutSettings.TimeoutSettings(this._platform).launchTimeout(options)
- };
- const context = await this._wrapApiCall(async () => {
- const result = await this._channel.launchPersistentContext(persistentParams);
- const browser = import_browser.Browser.from(result.browser);
- browser._connectToBrowserType(this, options, logger);
- const context2 = import_browserContext.BrowserContext.from(result.context);
- await context2._initializeHarFromOptions(options.recordHar);
- return context2;
- });
- await this._instrumentation.runAfterCreateBrowserContext(context);
- return context;
- }
- async connect(optionsOrWsEndpoint, options) {
- if (typeof optionsOrWsEndpoint === "string")
- return await this._connect({ ...options, wsEndpoint: optionsOrWsEndpoint });
- (0, import_assert.assert)(optionsOrWsEndpoint.wsEndpoint, "options.wsEndpoint is required");
- return await this._connect(optionsOrWsEndpoint);
- }
- async _connect(params) {
- const logger = params.logger;
- return await this._wrapApiCall(async () => {
- const deadline = params.timeout ? (0, import_time.monotonicTime)() + params.timeout : 0;
- const headers = { "x-playwright-browser": this.name(), ...params.headers };
- const connectParams = {
- wsEndpoint: params.wsEndpoint,
- headers,
- exposeNetwork: params.exposeNetwork ?? params._exposeNetwork,
- slowMo: params.slowMo,
- timeout: params.timeout || 0
- };
- if (params.__testHookRedirectPortForwarding)
- connectParams.socksProxyRedirectPortForTest = params.__testHookRedirectPortForwarding;
- const connection = await (0, import_webSocket.connectOverWebSocket)(this._connection, connectParams);
- let browser;
- connection.on("close", () => {
- for (const context of browser?.contexts() || []) {
- for (const page of context.pages())
- page._onClose();
- context._onClose();
- }
- setTimeout(() => browser?._didClose(), 0);
- });
- const result = await (0, import_timeoutRunner.raceAgainstDeadline)(async () => {
- if (params.__testHookBeforeCreateBrowser)
- await params.__testHookBeforeCreateBrowser();
- const playwright = await connection.initializePlaywright();
- if (!playwright._initializer.preLaunchedBrowser) {
- connection.close();
- throw new Error("Malformed endpoint. Did you use BrowserType.launchServer method?");
- }
- playwright.selectors = this._playwright.selectors;
- browser = import_browser.Browser.from(playwright._initializer.preLaunchedBrowser);
- browser._connectToBrowserType(this, {}, logger);
- browser._shouldCloseConnectionOnClose = true;
- browser.on(import_events.Events.Browser.Disconnected, () => connection.close());
- return browser;
- }, deadline);
- if (!result.timedOut) {
- return result.result;
- } else {
- connection.close();
- throw new Error(`Timeout ${params.timeout}ms exceeded`);
- }
- });
- }
- async connectOverCDP(endpointURLOrOptions, options) {
- if (typeof endpointURLOrOptions === "string")
- return await this._connectOverCDP(endpointURLOrOptions, options);
- const endpointURL = "endpointURL" in endpointURLOrOptions ? endpointURLOrOptions.endpointURL : endpointURLOrOptions.wsEndpoint;
- (0, import_assert.assert)(endpointURL, "Cannot connect over CDP without wsEndpoint.");
- return await this.connectOverCDP(endpointURL, endpointURLOrOptions);
- }
- async _connectOverCDP(endpointURL, params = {}) {
- if (this.name() !== "chromium")
- throw new Error("Connecting over CDP is only supported in Chromium.");
- const headers = params.headers ? (0, import_headers.headersObjectToArray)(params.headers) : void 0;
- const result = await this._channel.connectOverCDP({
- endpointURL,
- headers,
- slowMo: params.slowMo,
- timeout: new import_timeoutSettings.TimeoutSettings(this._platform).timeout(params),
- isLocal: params.isLocal
- });
- const browser = import_browser.Browser.from(result.browser);
- browser._connectToBrowserType(this, {}, params.logger);
- if (result.defaultContext)
- await this._instrumentation.runAfterCreateBrowserContext(import_browserContext.BrowserContext.from(result.defaultContext));
- return browser;
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- BrowserType
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/cdpSession.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/cdpSession.js
deleted file mode 100644
index f23a7db..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/cdpSession.js
+++ /dev/null
@@ -1,51 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var cdpSession_exports = {};
-__export(cdpSession_exports, {
- CDPSession: () => CDPSession
-});
-module.exports = __toCommonJS(cdpSession_exports);
-var import_channelOwner = require("./channelOwner");
-class CDPSession extends import_channelOwner.ChannelOwner {
- static from(cdpSession) {
- return cdpSession._object;
- }
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._channel.on("event", ({ method, params }) => {
- this.emit(method, params);
- });
- this.on = super.on;
- this.addListener = super.addListener;
- this.off = super.removeListener;
- this.removeListener = super.removeListener;
- this.once = super.once;
- }
- async send(method, params) {
- const result = await this._channel.send({ method, params });
- return result.result;
- }
- async detach() {
- return await this._channel.detach();
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- CDPSession
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/channelOwner.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/channelOwner.js
deleted file mode 100644
index 6338355..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/channelOwner.js
+++ /dev/null
@@ -1,194 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var channelOwner_exports = {};
-__export(channelOwner_exports, {
- ChannelOwner: () => ChannelOwner
-});
-module.exports = __toCommonJS(channelOwner_exports);
-var import_eventEmitter = require("./eventEmitter");
-var import_validator = require("../protocol/validator");
-var import_protocolMetainfo = require("../utils/isomorphic/protocolMetainfo");
-var import_clientStackTrace = require("./clientStackTrace");
-var import_stackTrace = require("../utils/isomorphic/stackTrace");
-class ChannelOwner extends import_eventEmitter.EventEmitter {
- constructor(parent, type, guid, initializer) {
- const connection = parent instanceof ChannelOwner ? parent._connection : parent;
- super(connection._platform);
- this._objects = /* @__PURE__ */ new Map();
- this._eventToSubscriptionMapping = /* @__PURE__ */ new Map();
- this._wasCollected = false;
- this.setMaxListeners(0);
- this._connection = connection;
- this._type = type;
- this._guid = guid;
- this._parent = parent instanceof ChannelOwner ? parent : void 0;
- this._instrumentation = this._connection._instrumentation;
- this._connection._objects.set(guid, this);
- if (this._parent) {
- this._parent._objects.set(guid, this);
- this._logger = this._parent._logger;
- }
- this._channel = this._createChannel(new import_eventEmitter.EventEmitter(connection._platform));
- this._initializer = initializer;
- }
- _setEventToSubscriptionMapping(mapping) {
- this._eventToSubscriptionMapping = mapping;
- }
- _updateSubscription(event, enabled) {
- const protocolEvent = this._eventToSubscriptionMapping.get(String(event));
- if (protocolEvent)
- this._channel.updateSubscription({ event: protocolEvent, enabled }).catch(() => {
- });
- }
- on(event, listener) {
- if (!this.listenerCount(event))
- this._updateSubscription(event, true);
- super.on(event, listener);
- return this;
- }
- addListener(event, listener) {
- if (!this.listenerCount(event))
- this._updateSubscription(event, true);
- super.addListener(event, listener);
- return this;
- }
- prependListener(event, listener) {
- if (!this.listenerCount(event))
- this._updateSubscription(event, true);
- super.prependListener(event, listener);
- return this;
- }
- off(event, listener) {
- super.off(event, listener);
- if (!this.listenerCount(event))
- this._updateSubscription(event, false);
- return this;
- }
- removeListener(event, listener) {
- super.removeListener(event, listener);
- if (!this.listenerCount(event))
- this._updateSubscription(event, false);
- return this;
- }
- _adopt(child) {
- child._parent._objects.delete(child._guid);
- this._objects.set(child._guid, child);
- child._parent = this;
- }
- _dispose(reason) {
- if (this._parent)
- this._parent._objects.delete(this._guid);
- this._connection._objects.delete(this._guid);
- this._wasCollected = reason === "gc";
- for (const object of [...this._objects.values()])
- object._dispose(reason);
- this._objects.clear();
- }
- _debugScopeState() {
- return {
- _guid: this._guid,
- objects: Array.from(this._objects.values()).map((o) => o._debugScopeState())
- };
- }
- _validatorToWireContext() {
- return {
- tChannelImpl: tChannelImplToWire,
- binary: this._connection.rawBuffers() ? "buffer" : "toBase64",
- isUnderTest: () => this._platform.isUnderTest()
- };
- }
- _createChannel(base) {
- const channel = new Proxy(base, {
- get: (obj, prop) => {
- if (typeof prop === "string") {
- const validator = (0, import_validator.maybeFindValidator)(this._type, prop, "Params");
- const { internal } = import_protocolMetainfo.methodMetainfo.get(this._type + "." + prop) || {};
- if (validator) {
- return async (params) => {
- return await this._wrapApiCall(async (apiZone) => {
- const validatedParams = validator(params, "", this._validatorToWireContext());
- if (!apiZone.internal && !apiZone.reported) {
- apiZone.reported = true;
- this._instrumentation.onApiCallBegin(apiZone, { type: this._type, method: prop, params });
- logApiCall(this._platform, this._logger, `=> ${apiZone.apiName} started`);
- return await this._connection.sendMessageToServer(this, prop, validatedParams, apiZone);
- }
- return await this._connection.sendMessageToServer(this, prop, validatedParams, { internal: true });
- }, { internal });
- };
- }
- }
- return obj[prop];
- }
- });
- channel._object = this;
- return channel;
- }
- async _wrapApiCall(func, options) {
- const logger = this._logger;
- const existingApiZone = this._platform.zones.current().data();
- if (existingApiZone)
- return await func(existingApiZone);
- const stackTrace = (0, import_clientStackTrace.captureLibraryStackTrace)(this._platform);
- const apiZone = { title: options?.title, apiName: stackTrace.apiName, frames: stackTrace.frames, internal: options?.internal ?? false, reported: false, userData: void 0, stepId: void 0 };
- try {
- const result = await this._platform.zones.current().push(apiZone).run(async () => await func(apiZone));
- if (!options?.internal) {
- logApiCall(this._platform, logger, `<= ${apiZone.apiName} succeeded`);
- this._instrumentation.onApiCallEnd(apiZone);
- }
- return result;
- } catch (e) {
- const innerError = (this._platform.showInternalStackFrames() || this._platform.isUnderTest()) && e.stack ? "\n\n" + e.stack : "";
- if (apiZone.apiName && !apiZone.apiName.includes(""))
- e.message = apiZone.apiName + ": " + e.message;
- const stackFrames = "\n" + (0, import_stackTrace.stringifyStackFrames)(stackTrace.frames).join("\n") + innerError;
- if (stackFrames.trim())
- e.stack = e.message + stackFrames;
- else
- e.stack = "";
- if (!options?.internal) {
- apiZone.error = e;
- logApiCall(this._platform, logger, `<= ${apiZone.apiName} failed`);
- this._instrumentation.onApiCallEnd(apiZone);
- }
- throw e;
- }
- }
- toJSON() {
- return {
- _type: this._type,
- _guid: this._guid
- };
- }
-}
-function logApiCall(platform, logger, message) {
- if (logger && logger.isEnabled("api", "info"))
- logger.log("api", "info", message, [], { color: "cyan" });
- platform.log("api", message);
-}
-function tChannelImplToWire(names, arg, path, context) {
- if (arg._object instanceof ChannelOwner && (names === "*" || names.includes(arg._object._type)))
- return { guid: arg._object._guid };
- throw new import_validator.ValidationError(`${path}: expected channel ${names.toString()}`);
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- ChannelOwner
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/clientHelper.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/clientHelper.js
deleted file mode 100644
index fc215ee..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/clientHelper.js
+++ /dev/null
@@ -1,64 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var clientHelper_exports = {};
-__export(clientHelper_exports, {
- addSourceUrlToScript: () => addSourceUrlToScript,
- envObjectToArray: () => envObjectToArray,
- evaluationScript: () => evaluationScript
-});
-module.exports = __toCommonJS(clientHelper_exports);
-var import_rtti = require("../utils/isomorphic/rtti");
-function envObjectToArray(env) {
- const result = [];
- for (const name in env) {
- if (!Object.is(env[name], void 0))
- result.push({ name, value: String(env[name]) });
- }
- return result;
-}
-async function evaluationScript(platform, fun, arg, addSourceUrl = true) {
- if (typeof fun === "function") {
- const source = fun.toString();
- const argString = Object.is(arg, void 0) ? "undefined" : JSON.stringify(arg);
- return `(${source})(${argString})`;
- }
- if (arg !== void 0)
- throw new Error("Cannot evaluate a string with arguments");
- if ((0, import_rtti.isString)(fun))
- return fun;
- if (fun.content !== void 0)
- return fun.content;
- if (fun.path !== void 0) {
- let source = await platform.fs().promises.readFile(fun.path, "utf8");
- if (addSourceUrl)
- source = addSourceUrlToScript(source, fun.path);
- return source;
- }
- throw new Error("Either path or content property must be present");
-}
-function addSourceUrlToScript(source, path) {
- return `${source}
-//# sourceURL=${path.replace(/\n/g, "")}`;
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- addSourceUrlToScript,
- envObjectToArray,
- evaluationScript
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/clientInstrumentation.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/clientInstrumentation.js
deleted file mode 100644
index 7140061..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/clientInstrumentation.js
+++ /dev/null
@@ -1,55 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var clientInstrumentation_exports = {};
-__export(clientInstrumentation_exports, {
- createInstrumentation: () => createInstrumentation
-});
-module.exports = __toCommonJS(clientInstrumentation_exports);
-function createInstrumentation() {
- const listeners = [];
- return new Proxy({}, {
- get: (obj, prop) => {
- if (typeof prop !== "string")
- return obj[prop];
- if (prop === "addListener")
- return (listener) => listeners.push(listener);
- if (prop === "removeListener")
- return (listener) => listeners.splice(listeners.indexOf(listener), 1);
- if (prop === "removeAllListeners")
- return () => listeners.splice(0, listeners.length);
- if (prop.startsWith("run")) {
- return async (...params) => {
- for (const listener of listeners)
- await listener[prop]?.(...params);
- };
- }
- if (prop.startsWith("on")) {
- return (...params) => {
- for (const listener of listeners)
- listener[prop]?.(...params);
- };
- }
- return obj[prop];
- }
- });
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- createInstrumentation
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/clientStackTrace.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/clientStackTrace.js
deleted file mode 100644
index 973fc1a..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/clientStackTrace.js
+++ /dev/null
@@ -1,69 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var clientStackTrace_exports = {};
-__export(clientStackTrace_exports, {
- captureLibraryStackTrace: () => captureLibraryStackTrace
-});
-module.exports = __toCommonJS(clientStackTrace_exports);
-var import_stackTrace = require("../utils/isomorphic/stackTrace");
-function captureLibraryStackTrace(platform) {
- const stack = (0, import_stackTrace.captureRawStack)();
- let parsedFrames = stack.map((line) => {
- const frame = (0, import_stackTrace.parseStackFrame)(line, platform.pathSeparator, platform.showInternalStackFrames());
- if (!frame || !frame.file)
- return null;
- const isPlaywrightLibrary = !!platform.coreDir && frame.file.startsWith(platform.coreDir);
- const parsed = {
- frame,
- frameText: line,
- isPlaywrightLibrary
- };
- return parsed;
- }).filter(Boolean);
- let apiName = "";
- for (let i = 0; i < parsedFrames.length - 1; i++) {
- const parsedFrame = parsedFrames[i];
- if (parsedFrame.isPlaywrightLibrary && !parsedFrames[i + 1].isPlaywrightLibrary) {
- apiName = apiName || normalizeAPIName(parsedFrame.frame.function);
- break;
- }
- }
- function normalizeAPIName(name) {
- if (!name)
- return "";
- const match = name.match(/(API|JS|CDP|[A-Z])(.*)/);
- if (!match)
- return name;
- return match[1].toLowerCase() + match[2];
- }
- const filterPrefixes = platform.boxedStackPrefixes();
- parsedFrames = parsedFrames.filter((f) => {
- if (filterPrefixes.some((prefix) => f.frame.file.startsWith(prefix)))
- return false;
- return true;
- });
- return {
- frames: parsedFrames.map((p) => p.frame),
- apiName
- };
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- captureLibraryStackTrace
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/clock.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/clock.js
deleted file mode 100644
index 71faaf9..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/clock.js
+++ /dev/null
@@ -1,68 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var clock_exports = {};
-__export(clock_exports, {
- Clock: () => Clock
-});
-module.exports = __toCommonJS(clock_exports);
-class Clock {
- constructor(browserContext) {
- this._browserContext = browserContext;
- }
- async install(options = {}) {
- await this._browserContext._channel.clockInstall(options.time !== void 0 ? parseTime(options.time) : {});
- }
- async fastForward(ticks) {
- await this._browserContext._channel.clockFastForward(parseTicks(ticks));
- }
- async pauseAt(time) {
- await this._browserContext._channel.clockPauseAt(parseTime(time));
- }
- async resume() {
- await this._browserContext._channel.clockResume({});
- }
- async runFor(ticks) {
- await this._browserContext._channel.clockRunFor(parseTicks(ticks));
- }
- async setFixedTime(time) {
- await this._browserContext._channel.clockSetFixedTime(parseTime(time));
- }
- async setSystemTime(time) {
- await this._browserContext._channel.clockSetSystemTime(parseTime(time));
- }
-}
-function parseTime(time) {
- if (typeof time === "number")
- return { timeNumber: time };
- if (typeof time === "string")
- return { timeString: time };
- if (!isFinite(time.getTime()))
- throw new Error(`Invalid date: ${time}`);
- return { timeNumber: time.getTime() };
-}
-function parseTicks(ticks) {
- return {
- ticksNumber: typeof ticks === "number" ? ticks : void 0,
- ticksString: typeof ticks === "string" ? ticks : void 0
- };
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Clock
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/connection.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/connection.js
deleted file mode 100644
index 1b073d4..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/connection.js
+++ /dev/null
@@ -1,318 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var connection_exports = {};
-__export(connection_exports, {
- Connection: () => Connection
-});
-module.exports = __toCommonJS(connection_exports);
-var import_eventEmitter = require("./eventEmitter");
-var import_android = require("./android");
-var import_artifact = require("./artifact");
-var import_browser = require("./browser");
-var import_browserContext = require("./browserContext");
-var import_browserType = require("./browserType");
-var import_cdpSession = require("./cdpSession");
-var import_channelOwner = require("./channelOwner");
-var import_clientInstrumentation = require("./clientInstrumentation");
-var import_dialog = require("./dialog");
-var import_electron = require("./electron");
-var import_elementHandle = require("./elementHandle");
-var import_errors = require("./errors");
-var import_fetch = require("./fetch");
-var import_frame = require("./frame");
-var import_jsHandle = require("./jsHandle");
-var import_jsonPipe = require("./jsonPipe");
-var import_localUtils = require("./localUtils");
-var import_network = require("./network");
-var import_page = require("./page");
-var import_playwright = require("./playwright");
-var import_stream = require("./stream");
-var import_tracing = require("./tracing");
-var import_worker = require("./worker");
-var import_writableStream = require("./writableStream");
-var import_validator = require("../protocol/validator");
-var import_stackTrace = require("../utils/isomorphic/stackTrace");
-var import_pageAgent = require("./pageAgent");
-class Root extends import_channelOwner.ChannelOwner {
- constructor(connection) {
- super(connection, "Root", "", {});
- }
- async initialize() {
- return import_playwright.Playwright.from((await this._channel.initialize({
- sdkLanguage: "javascript"
- })).playwright);
- }
-}
-class DummyChannelOwner extends import_channelOwner.ChannelOwner {
-}
-class Connection extends import_eventEmitter.EventEmitter {
- constructor(platform, localUtils, instrumentation, headers = []) {
- super(platform);
- this._objects = /* @__PURE__ */ new Map();
- this.onmessage = (message) => {
- };
- this._lastId = 0;
- this._callbacks = /* @__PURE__ */ new Map();
- this._isRemote = false;
- this._rawBuffers = false;
- this._tracingCount = 0;
- this._instrumentation = instrumentation || (0, import_clientInstrumentation.createInstrumentation)();
- this._localUtils = localUtils;
- this._rootObject = new Root(this);
- this.headers = headers;
- }
- markAsRemote() {
- this._isRemote = true;
- }
- isRemote() {
- return this._isRemote;
- }
- useRawBuffers() {
- this._rawBuffers = true;
- }
- rawBuffers() {
- return this._rawBuffers;
- }
- localUtils() {
- return this._localUtils;
- }
- async initializePlaywright() {
- return await this._rootObject.initialize();
- }
- getObjectWithKnownName(guid) {
- return this._objects.get(guid);
- }
- setIsTracing(isTracing) {
- if (isTracing)
- this._tracingCount++;
- else
- this._tracingCount--;
- }
- async sendMessageToServer(object, method, params, options) {
- if (this._closedError)
- throw this._closedError;
- if (object._wasCollected)
- throw new Error("The object has been collected to prevent unbounded heap growth.");
- const guid = object._guid;
- const type = object._type;
- const id = ++this._lastId;
- const message = { id, guid, method, params };
- if (this._platform.isLogEnabled("channel")) {
- this._platform.log("channel", "SEND> " + JSON.stringify(message));
- }
- const location = options.frames?.[0] ? { file: options.frames[0].file, line: options.frames[0].line, column: options.frames[0].column } : void 0;
- const metadata = { title: options.title, location, internal: options.internal, stepId: options.stepId };
- if (this._tracingCount && options.frames && type !== "LocalUtils")
- this._localUtils?.addStackToTracingNoReply({ callData: { stack: options.frames ?? [], id } }).catch(() => {
- });
- this._platform.zones.empty.run(() => this.onmessage({ ...message, metadata }));
- return await new Promise((resolve, reject) => this._callbacks.set(id, { resolve, reject, title: options.title, type, method }));
- }
- _validatorFromWireContext() {
- return {
- tChannelImpl: this._tChannelImplFromWire.bind(this),
- binary: this._rawBuffers ? "buffer" : "fromBase64",
- isUnderTest: () => this._platform.isUnderTest()
- };
- }
- dispatch(message) {
- if (this._closedError)
- return;
- const { id, guid, method, params, result, error, log } = message;
- if (id) {
- if (this._platform.isLogEnabled("channel"))
- this._platform.log("channel", " !!l))
- return "";
- return `
-Call log:
-${platform.colors.dim(log.join("\n"))}
-`;
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Connection
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/consoleMessage.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/consoleMessage.js
deleted file mode 100644
index fc915a0..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/consoleMessage.js
+++ /dev/null
@@ -1,58 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var consoleMessage_exports = {};
-__export(consoleMessage_exports, {
- ConsoleMessage: () => ConsoleMessage
-});
-module.exports = __toCommonJS(consoleMessage_exports);
-var import_jsHandle = require("./jsHandle");
-class ConsoleMessage {
- constructor(platform, event, page, worker) {
- this._page = page;
- this._worker = worker;
- this._event = event;
- if (platform.inspectCustom)
- this[platform.inspectCustom] = () => this._inspect();
- }
- worker() {
- return this._worker;
- }
- page() {
- return this._page;
- }
- type() {
- return this._event.type;
- }
- text() {
- return this._event.text;
- }
- args() {
- return this._event.args.map(import_jsHandle.JSHandle.from);
- }
- location() {
- return this._event.location;
- }
- _inspect() {
- return this.text();
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- ConsoleMessage
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/coverage.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/coverage.js
deleted file mode 100644
index 737c042..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/coverage.js
+++ /dev/null
@@ -1,44 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var coverage_exports = {};
-__export(coverage_exports, {
- Coverage: () => Coverage
-});
-module.exports = __toCommonJS(coverage_exports);
-class Coverage {
- constructor(channel) {
- this._channel = channel;
- }
- async startJSCoverage(options = {}) {
- await this._channel.startJSCoverage(options);
- }
- async stopJSCoverage() {
- return (await this._channel.stopJSCoverage()).entries;
- }
- async startCSSCoverage(options = {}) {
- await this._channel.startCSSCoverage(options);
- }
- async stopCSSCoverage() {
- return (await this._channel.stopCSSCoverage()).entries;
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Coverage
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/dialog.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/dialog.js
deleted file mode 100644
index ef1541a..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/dialog.js
+++ /dev/null
@@ -1,56 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var dialog_exports = {};
-__export(dialog_exports, {
- Dialog: () => Dialog
-});
-module.exports = __toCommonJS(dialog_exports);
-var import_channelOwner = require("./channelOwner");
-var import_page = require("./page");
-class Dialog extends import_channelOwner.ChannelOwner {
- static from(dialog) {
- return dialog._object;
- }
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._page = import_page.Page.fromNullable(initializer.page);
- }
- page() {
- return this._page;
- }
- type() {
- return this._initializer.type;
- }
- message() {
- return this._initializer.message;
- }
- defaultValue() {
- return this._initializer.defaultValue;
- }
- async accept(promptText) {
- await this._channel.accept({ promptText });
- }
- async dismiss() {
- await this._channel.dismiss();
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Dialog
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/download.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/download.js
deleted file mode 100644
index 1c02e25..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/download.js
+++ /dev/null
@@ -1,62 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var download_exports = {};
-__export(download_exports, {
- Download: () => Download
-});
-module.exports = __toCommonJS(download_exports);
-class Download {
- constructor(page, url, suggestedFilename, artifact) {
- this._page = page;
- this._url = url;
- this._suggestedFilename = suggestedFilename;
- this._artifact = artifact;
- }
- page() {
- return this._page;
- }
- url() {
- return this._url;
- }
- suggestedFilename() {
- return this._suggestedFilename;
- }
- async path() {
- return await this._artifact.pathAfterFinished();
- }
- async saveAs(path) {
- return await this._artifact.saveAs(path);
- }
- async failure() {
- return await this._artifact.failure();
- }
- async createReadStream() {
- return await this._artifact.createReadStream();
- }
- async cancel() {
- return await this._artifact.cancel();
- }
- async delete() {
- return await this._artifact.delete();
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Download
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/electron.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/electron.js
deleted file mode 100644
index 2220586..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/electron.js
+++ /dev/null
@@ -1,138 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var electron_exports = {};
-__export(electron_exports, {
- Electron: () => Electron,
- ElectronApplication: () => ElectronApplication
-});
-module.exports = __toCommonJS(electron_exports);
-var import_browserContext = require("./browserContext");
-var import_channelOwner = require("./channelOwner");
-var import_clientHelper = require("./clientHelper");
-var import_consoleMessage = require("./consoleMessage");
-var import_errors = require("./errors");
-var import_events = require("./events");
-var import_jsHandle = require("./jsHandle");
-var import_waiter = require("./waiter");
-var import_timeoutSettings = require("./timeoutSettings");
-class Electron extends import_channelOwner.ChannelOwner {
- static from(electron) {
- return electron._object;
- }
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- }
- async launch(options = {}) {
- options = this._playwright.selectors._withSelectorOptions(options);
- const params = {
- ...await (0, import_browserContext.prepareBrowserContextParams)(this._platform, options),
- env: (0, import_clientHelper.envObjectToArray)(options.env ? options.env : this._platform.env),
- tracesDir: options.tracesDir,
- timeout: new import_timeoutSettings.TimeoutSettings(this._platform).launchTimeout(options)
- };
- const app = ElectronApplication.from((await this._channel.launch(params)).electronApplication);
- this._playwright.selectors._contextsForSelectors.add(app._context);
- app.once(import_events.Events.ElectronApplication.Close, () => this._playwright.selectors._contextsForSelectors.delete(app._context));
- await app._context._initializeHarFromOptions(options.recordHar);
- app._context.tracing._tracesDir = options.tracesDir;
- return app;
- }
-}
-class ElectronApplication extends import_channelOwner.ChannelOwner {
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._windows = /* @__PURE__ */ new Set();
- this._timeoutSettings = new import_timeoutSettings.TimeoutSettings(this._platform);
- this._context = import_browserContext.BrowserContext.from(initializer.context);
- for (const page of this._context._pages)
- this._onPage(page);
- this._context.on(import_events.Events.BrowserContext.Page, (page) => this._onPage(page));
- this._channel.on("close", () => {
- this.emit(import_events.Events.ElectronApplication.Close);
- });
- this._channel.on("console", (event) => this.emit(import_events.Events.ElectronApplication.Console, new import_consoleMessage.ConsoleMessage(this._platform, event, null, null)));
- this._setEventToSubscriptionMapping(/* @__PURE__ */ new Map([
- [import_events.Events.ElectronApplication.Console, "console"]
- ]));
- }
- static from(electronApplication) {
- return electronApplication._object;
- }
- process() {
- return this._connection.toImpl?.(this)?.process();
- }
- _onPage(page) {
- this._windows.add(page);
- this.emit(import_events.Events.ElectronApplication.Window, page);
- page.once(import_events.Events.Page.Close, () => this._windows.delete(page));
- }
- windows() {
- return [...this._windows];
- }
- async firstWindow(options) {
- if (this._windows.size)
- return this._windows.values().next().value;
- return await this.waitForEvent("window", options);
- }
- context() {
- return this._context;
- }
- async [Symbol.asyncDispose]() {
- await this.close();
- }
- async close() {
- try {
- await this._context.close();
- } catch (e) {
- if ((0, import_errors.isTargetClosedError)(e))
- return;
- throw e;
- }
- }
- async waitForEvent(event, optionsOrPredicate = {}) {
- return await this._wrapApiCall(async () => {
- const timeout = this._timeoutSettings.timeout(typeof optionsOrPredicate === "function" ? {} : optionsOrPredicate);
- const predicate = typeof optionsOrPredicate === "function" ? optionsOrPredicate : optionsOrPredicate.predicate;
- const waiter = import_waiter.Waiter.createForEvent(this, event);
- waiter.rejectOnTimeout(timeout, `Timeout ${timeout}ms exceeded while waiting for event "${event}"`);
- if (event !== import_events.Events.ElectronApplication.Close)
- waiter.rejectOnEvent(this, import_events.Events.ElectronApplication.Close, () => new import_errors.TargetClosedError());
- const result = await waiter.waitForEvent(this, event, predicate);
- waiter.dispose();
- return result;
- });
- }
- async browserWindow(page) {
- const result = await this._channel.browserWindow({ page: page._channel });
- return import_jsHandle.JSHandle.from(result.handle);
- }
- async evaluate(pageFunction, arg) {
- const result = await this._channel.evaluateExpression({ expression: String(pageFunction), isFunction: typeof pageFunction === "function", arg: (0, import_jsHandle.serializeArgument)(arg) });
- return (0, import_jsHandle.parseResult)(result.value);
- }
- async evaluateHandle(pageFunction, arg) {
- const result = await this._channel.evaluateExpressionHandle({ expression: String(pageFunction), isFunction: typeof pageFunction === "function", arg: (0, import_jsHandle.serializeArgument)(arg) });
- return import_jsHandle.JSHandle.from(result.handle);
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Electron,
- ElectronApplication
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/elementHandle.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/elementHandle.js
deleted file mode 100644
index 601ad46..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/elementHandle.js
+++ /dev/null
@@ -1,284 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var elementHandle_exports = {};
-__export(elementHandle_exports, {
- ElementHandle: () => ElementHandle,
- convertInputFiles: () => convertInputFiles,
- convertSelectOptionValues: () => convertSelectOptionValues,
- determineScreenshotType: () => determineScreenshotType
-});
-module.exports = __toCommonJS(elementHandle_exports);
-var import_frame = require("./frame");
-var import_jsHandle = require("./jsHandle");
-var import_assert = require("../utils/isomorphic/assert");
-var import_fileUtils = require("./fileUtils");
-var import_rtti = require("../utils/isomorphic/rtti");
-var import_writableStream = require("./writableStream");
-var import_mimeType = require("../utils/isomorphic/mimeType");
-class ElementHandle extends import_jsHandle.JSHandle {
- static from(handle) {
- return handle._object;
- }
- static fromNullable(handle) {
- return handle ? ElementHandle.from(handle) : null;
- }
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._frame = parent;
- this._elementChannel = this._channel;
- }
- asElement() {
- return this;
- }
- async ownerFrame() {
- return import_frame.Frame.fromNullable((await this._elementChannel.ownerFrame()).frame);
- }
- async contentFrame() {
- return import_frame.Frame.fromNullable((await this._elementChannel.contentFrame()).frame);
- }
- async getAttribute(name) {
- const value = (await this._elementChannel.getAttribute({ name })).value;
- return value === void 0 ? null : value;
- }
- async inputValue() {
- return (await this._elementChannel.inputValue()).value;
- }
- async textContent() {
- const value = (await this._elementChannel.textContent()).value;
- return value === void 0 ? null : value;
- }
- async innerText() {
- return (await this._elementChannel.innerText()).value;
- }
- async innerHTML() {
- return (await this._elementChannel.innerHTML()).value;
- }
- async isChecked() {
- return (await this._elementChannel.isChecked()).value;
- }
- async isDisabled() {
- return (await this._elementChannel.isDisabled()).value;
- }
- async isEditable() {
- return (await this._elementChannel.isEditable()).value;
- }
- async isEnabled() {
- return (await this._elementChannel.isEnabled()).value;
- }
- async isHidden() {
- return (await this._elementChannel.isHidden()).value;
- }
- async isVisible() {
- return (await this._elementChannel.isVisible()).value;
- }
- async dispatchEvent(type, eventInit = {}) {
- await this._elementChannel.dispatchEvent({ type, eventInit: (0, import_jsHandle.serializeArgument)(eventInit) });
- }
- async scrollIntoViewIfNeeded(options = {}) {
- await this._elementChannel.scrollIntoViewIfNeeded({ ...options, timeout: this._frame._timeout(options) });
- }
- async hover(options = {}) {
- await this._elementChannel.hover({ ...options, timeout: this._frame._timeout(options) });
- }
- async click(options = {}) {
- return await this._elementChannel.click({ ...options, timeout: this._frame._timeout(options) });
- }
- async dblclick(options = {}) {
- return await this._elementChannel.dblclick({ ...options, timeout: this._frame._timeout(options) });
- }
- async tap(options = {}) {
- return await this._elementChannel.tap({ ...options, timeout: this._frame._timeout(options) });
- }
- async selectOption(values, options = {}) {
- const result = await this._elementChannel.selectOption({ ...convertSelectOptionValues(values), ...options, timeout: this._frame._timeout(options) });
- return result.values;
- }
- async fill(value, options = {}) {
- return await this._elementChannel.fill({ value, ...options, timeout: this._frame._timeout(options) });
- }
- async selectText(options = {}) {
- await this._elementChannel.selectText({ ...options, timeout: this._frame._timeout(options) });
- }
- async setInputFiles(files, options = {}) {
- const frame = await this.ownerFrame();
- if (!frame)
- throw new Error("Cannot set input files to detached element");
- const converted = await convertInputFiles(this._platform, files, frame.page().context());
- await this._elementChannel.setInputFiles({ ...converted, ...options, timeout: this._frame._timeout(options) });
- }
- async focus() {
- await this._elementChannel.focus();
- }
- async type(text, options = {}) {
- await this._elementChannel.type({ text, ...options, timeout: this._frame._timeout(options) });
- }
- async press(key, options = {}) {
- await this._elementChannel.press({ key, ...options, timeout: this._frame._timeout(options) });
- }
- async check(options = {}) {
- return await this._elementChannel.check({ ...options, timeout: this._frame._timeout(options) });
- }
- async uncheck(options = {}) {
- return await this._elementChannel.uncheck({ ...options, timeout: this._frame._timeout(options) });
- }
- async setChecked(checked, options) {
- if (checked)
- await this.check(options);
- else
- await this.uncheck(options);
- }
- async boundingBox() {
- const value = (await this._elementChannel.boundingBox()).value;
- return value === void 0 ? null : value;
- }
- async screenshot(options = {}) {
- const mask = options.mask;
- const copy = { ...options, mask: void 0, timeout: this._frame._timeout(options) };
- if (!copy.type)
- copy.type = determineScreenshotType(options);
- if (mask) {
- copy.mask = mask.map((locator) => ({
- frame: locator._frame._channel,
- selector: locator._selector
- }));
- }
- const result = await this._elementChannel.screenshot(copy);
- if (options.path) {
- await (0, import_fileUtils.mkdirIfNeeded)(this._platform, options.path);
- await this._platform.fs().promises.writeFile(options.path, result.binary);
- }
- return result.binary;
- }
- async $(selector) {
- return ElementHandle.fromNullable((await this._elementChannel.querySelector({ selector })).element);
- }
- async $$(selector) {
- const result = await this._elementChannel.querySelectorAll({ selector });
- return result.elements.map((h) => ElementHandle.from(h));
- }
- async $eval(selector, pageFunction, arg) {
- const result = await this._elementChannel.evalOnSelector({ selector, expression: String(pageFunction), isFunction: typeof pageFunction === "function", arg: (0, import_jsHandle.serializeArgument)(arg) });
- return (0, import_jsHandle.parseResult)(result.value);
- }
- async $$eval(selector, pageFunction, arg) {
- const result = await this._elementChannel.evalOnSelectorAll({ selector, expression: String(pageFunction), isFunction: typeof pageFunction === "function", arg: (0, import_jsHandle.serializeArgument)(arg) });
- return (0, import_jsHandle.parseResult)(result.value);
- }
- async waitForElementState(state, options = {}) {
- return await this._elementChannel.waitForElementState({ state, ...options, timeout: this._frame._timeout(options) });
- }
- async waitForSelector(selector, options = {}) {
- const result = await this._elementChannel.waitForSelector({ selector, ...options, timeout: this._frame._timeout(options) });
- return ElementHandle.fromNullable(result.element);
- }
-}
-function convertSelectOptionValues(values) {
- if (values === null)
- return {};
- if (!Array.isArray(values))
- values = [values];
- if (!values.length)
- return {};
- for (let i = 0; i < values.length; i++)
- (0, import_assert.assert)(values[i] !== null, `options[${i}]: expected object, got null`);
- if (values[0] instanceof ElementHandle)
- return { elements: values.map((v) => v._elementChannel) };
- if ((0, import_rtti.isString)(values[0]))
- return { options: values.map((valueOrLabel) => ({ valueOrLabel })) };
- return { options: values };
-}
-function filePayloadExceedsSizeLimit(payloads) {
- return payloads.reduce((size, item) => size + (item.buffer ? item.buffer.byteLength : 0), 0) >= import_fileUtils.fileUploadSizeLimit;
-}
-async function resolvePathsAndDirectoryForInputFiles(platform, items) {
- let localPaths;
- let localDirectory;
- for (const item of items) {
- const stat = await platform.fs().promises.stat(item);
- if (stat.isDirectory()) {
- if (localDirectory)
- throw new Error("Multiple directories are not supported");
- localDirectory = platform.path().resolve(item);
- } else {
- localPaths ??= [];
- localPaths.push(platform.path().resolve(item));
- }
- }
- if (localPaths?.length && localDirectory)
- throw new Error("File paths must be all files or a single directory");
- return [localPaths, localDirectory];
-}
-async function convertInputFiles(platform, files, context) {
- const items = Array.isArray(files) ? files.slice() : [files];
- if (items.some((item) => typeof item === "string")) {
- if (!items.every((item) => typeof item === "string"))
- throw new Error("File paths cannot be mixed with buffers");
- const [localPaths, localDirectory] = await resolvePathsAndDirectoryForInputFiles(platform, items);
- localPaths?.forEach((path) => context._checkFileAccess(path));
- if (localDirectory)
- context._checkFileAccess(localDirectory);
- if (context._connection.isRemote()) {
- const files2 = localDirectory ? (await platform.fs().promises.readdir(localDirectory, { withFileTypes: true, recursive: true })).filter((f) => f.isFile()).map((f) => platform.path().join(f.path, f.name)) : localPaths;
- const { writableStreams, rootDir } = await context._wrapApiCall(async () => context._channel.createTempFiles({
- rootDirName: localDirectory ? platform.path().basename(localDirectory) : void 0,
- items: await Promise.all(files2.map(async (file) => {
- const lastModifiedMs = (await platform.fs().promises.stat(file)).mtimeMs;
- return {
- name: localDirectory ? platform.path().relative(localDirectory, file) : platform.path().basename(file),
- lastModifiedMs
- };
- }))
- }), { internal: true });
- for (let i = 0; i < files2.length; i++) {
- const writable = import_writableStream.WritableStream.from(writableStreams[i]);
- await platform.streamFile(files2[i], writable.stream());
- }
- return {
- directoryStream: rootDir,
- streams: localDirectory ? void 0 : writableStreams
- };
- }
- return {
- localPaths,
- localDirectory
- };
- }
- const payloads = items;
- if (filePayloadExceedsSizeLimit(payloads))
- throw new Error("Cannot set buffer larger than 50Mb, please write it to a file and pass its path instead.");
- return { payloads };
-}
-function determineScreenshotType(options) {
- if (options.path) {
- const mimeType = (0, import_mimeType.getMimeTypeForPath)(options.path);
- if (mimeType === "image/png")
- return "png";
- else if (mimeType === "image/jpeg")
- return "jpeg";
- throw new Error(`path: unsupported mime type "${mimeType}"`);
- }
- return options.type;
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- ElementHandle,
- convertInputFiles,
- convertSelectOptionValues,
- determineScreenshotType
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/errors.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/errors.js
deleted file mode 100644
index 6075efc..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/errors.js
+++ /dev/null
@@ -1,77 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var errors_exports = {};
-__export(errors_exports, {
- TargetClosedError: () => TargetClosedError,
- TimeoutError: () => TimeoutError,
- isTargetClosedError: () => isTargetClosedError,
- parseError: () => parseError,
- serializeError: () => serializeError
-});
-module.exports = __toCommonJS(errors_exports);
-var import_serializers = require("../protocol/serializers");
-var import_rtti = require("../utils/isomorphic/rtti");
-class TimeoutError extends Error {
- constructor(message) {
- super(message);
- this.name = "TimeoutError";
- }
-}
-class TargetClosedError extends Error {
- constructor(cause) {
- super(cause || "Target page, context or browser has been closed");
- }
-}
-function isTargetClosedError(error) {
- return error instanceof TargetClosedError;
-}
-function serializeError(e) {
- if ((0, import_rtti.isError)(e))
- return { error: { message: e.message, stack: e.stack, name: e.name } };
- return { value: (0, import_serializers.serializeValue)(e, (value) => ({ fallThrough: value })) };
-}
-function parseError(error) {
- if (!error.error) {
- if (error.value === void 0)
- throw new Error("Serialized error must have either an error or a value");
- return (0, import_serializers.parseSerializedValue)(error.value, void 0);
- }
- if (error.error.name === "TimeoutError") {
- const e2 = new TimeoutError(error.error.message);
- e2.stack = error.error.stack || "";
- return e2;
- }
- if (error.error.name === "TargetClosedError") {
- const e2 = new TargetClosedError(error.error.message);
- e2.stack = error.error.stack || "";
- return e2;
- }
- const e = new Error(error.error.message);
- e.stack = error.error.stack || "";
- e.name = error.error.name;
- return e;
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- TargetClosedError,
- TimeoutError,
- isTargetClosedError,
- parseError,
- serializeError
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/eventEmitter.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/eventEmitter.js
deleted file mode 100644
index dc72dea..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/eventEmitter.js
+++ /dev/null
@@ -1,314 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var eventEmitter_exports = {};
-__export(eventEmitter_exports, {
- EventEmitter: () => EventEmitter
-});
-module.exports = __toCommonJS(eventEmitter_exports);
-class EventEmitter {
- constructor(platform) {
- this._events = void 0;
- this._eventsCount = 0;
- this._maxListeners = void 0;
- this._pendingHandlers = /* @__PURE__ */ new Map();
- this._platform = platform;
- if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
- this._events = /* @__PURE__ */ Object.create(null);
- this._eventsCount = 0;
- }
- this._maxListeners = this._maxListeners || void 0;
- this.on = this.addListener;
- this.off = this.removeListener;
- }
- setMaxListeners(n) {
- if (typeof n !== "number" || n < 0 || Number.isNaN(n))
- throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + ".");
- this._maxListeners = n;
- return this;
- }
- getMaxListeners() {
- return this._maxListeners === void 0 ? this._platform.defaultMaxListeners() : this._maxListeners;
- }
- emit(type, ...args) {
- const events = this._events;
- if (events === void 0)
- return false;
- const handler = events?.[type];
- if (handler === void 0)
- return false;
- if (typeof handler === "function") {
- this._callHandler(type, handler, args);
- } else {
- const len = handler.length;
- const listeners = handler.slice();
- for (let i = 0; i < len; ++i)
- this._callHandler(type, listeners[i], args);
- }
- return true;
- }
- _callHandler(type, handler, args) {
- const promise = Reflect.apply(handler, this, args);
- if (!(promise instanceof Promise))
- return;
- let set = this._pendingHandlers.get(type);
- if (!set) {
- set = /* @__PURE__ */ new Set();
- this._pendingHandlers.set(type, set);
- }
- set.add(promise);
- promise.catch((e) => {
- if (this._rejectionHandler)
- this._rejectionHandler(e);
- else
- throw e;
- }).finally(() => set.delete(promise));
- }
- addListener(type, listener) {
- return this._addListener(type, listener, false);
- }
- on(type, listener) {
- return this._addListener(type, listener, false);
- }
- _addListener(type, listener, prepend) {
- checkListener(listener);
- let events = this._events;
- let existing;
- if (events === void 0) {
- events = this._events = /* @__PURE__ */ Object.create(null);
- this._eventsCount = 0;
- } else {
- if (events.newListener !== void 0) {
- this.emit("newListener", type, unwrapListener(listener));
- events = this._events;
- }
- existing = events[type];
- }
- if (existing === void 0) {
- existing = events[type] = listener;
- ++this._eventsCount;
- } else {
- if (typeof existing === "function") {
- existing = events[type] = prepend ? [listener, existing] : [existing, listener];
- } else if (prepend) {
- existing.unshift(listener);
- } else {
- existing.push(listener);
- }
- const m = this.getMaxListeners();
- if (m > 0 && existing.length > m && !existing.warned) {
- existing.warned = true;
- const w = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type) + " listeners added. Use emitter.setMaxListeners() to increase limit");
- w.name = "MaxListenersExceededWarning";
- w.emitter = this;
- w.type = type;
- w.count = existing.length;
- if (!this._platform.isUnderTest()) {
- console.warn(w);
- }
- }
- }
- return this;
- }
- prependListener(type, listener) {
- return this._addListener(type, listener, true);
- }
- once(type, listener) {
- checkListener(listener);
- this.on(type, new OnceWrapper(this, type, listener).wrapperFunction);
- return this;
- }
- prependOnceListener(type, listener) {
- checkListener(listener);
- this.prependListener(type, new OnceWrapper(this, type, listener).wrapperFunction);
- return this;
- }
- removeListener(type, listener) {
- checkListener(listener);
- const events = this._events;
- if (events === void 0)
- return this;
- const list = events[type];
- if (list === void 0)
- return this;
- if (list === listener || list.listener === listener) {
- if (--this._eventsCount === 0) {
- this._events = /* @__PURE__ */ Object.create(null);
- } else {
- delete events[type];
- if (events.removeListener)
- this.emit("removeListener", type, list.listener ?? listener);
- }
- } else if (typeof list !== "function") {
- let position = -1;
- let originalListener;
- for (let i = list.length - 1; i >= 0; i--) {
- if (list[i] === listener || wrappedListener(list[i]) === listener) {
- originalListener = wrappedListener(list[i]);
- position = i;
- break;
- }
- }
- if (position < 0)
- return this;
- if (position === 0)
- list.shift();
- else
- list.splice(position, 1);
- if (list.length === 1)
- events[type] = list[0];
- if (events.removeListener !== void 0)
- this.emit("removeListener", type, originalListener || listener);
- }
- return this;
- }
- off(type, listener) {
- return this.removeListener(type, listener);
- }
- removeAllListeners(type, options) {
- this._removeAllListeners(type);
- if (!options)
- return this;
- if (options.behavior === "wait") {
- const errors = [];
- this._rejectionHandler = (error) => errors.push(error);
- return this._waitFor(type).then(() => {
- if (errors.length)
- throw errors[0];
- });
- }
- if (options.behavior === "ignoreErrors")
- this._rejectionHandler = () => {
- };
- return Promise.resolve();
- }
- _removeAllListeners(type) {
- const events = this._events;
- if (!events)
- return;
- if (!events.removeListener) {
- if (type === void 0) {
- this._events = /* @__PURE__ */ Object.create(null);
- this._eventsCount = 0;
- } else if (events[type] !== void 0) {
- if (--this._eventsCount === 0)
- this._events = /* @__PURE__ */ Object.create(null);
- else
- delete events[type];
- }
- return;
- }
- if (type === void 0) {
- const keys = Object.keys(events);
- let key;
- for (let i = 0; i < keys.length; ++i) {
- key = keys[i];
- if (key === "removeListener")
- continue;
- this._removeAllListeners(key);
- }
- this._removeAllListeners("removeListener");
- this._events = /* @__PURE__ */ Object.create(null);
- this._eventsCount = 0;
- return;
- }
- const listeners = events[type];
- if (typeof listeners === "function") {
- this.removeListener(type, listeners);
- } else if (listeners !== void 0) {
- for (let i = listeners.length - 1; i >= 0; i--)
- this.removeListener(type, listeners[i]);
- }
- }
- listeners(type) {
- return this._listeners(this, type, true);
- }
- rawListeners(type) {
- return this._listeners(this, type, false);
- }
- listenerCount(type) {
- const events = this._events;
- if (events !== void 0) {
- const listener = events[type];
- if (typeof listener === "function")
- return 1;
- if (listener !== void 0)
- return listener.length;
- }
- return 0;
- }
- eventNames() {
- return this._eventsCount > 0 && this._events ? Reflect.ownKeys(this._events) : [];
- }
- async _waitFor(type) {
- let promises = [];
- if (type) {
- promises = [...this._pendingHandlers.get(type) || []];
- } else {
- promises = [];
- for (const [, pending] of this._pendingHandlers)
- promises.push(...pending);
- }
- await Promise.all(promises);
- }
- _listeners(target, type, unwrap) {
- const events = target._events;
- if (events === void 0)
- return [];
- const listener = events[type];
- if (listener === void 0)
- return [];
- if (typeof listener === "function")
- return unwrap ? [unwrapListener(listener)] : [listener];
- return unwrap ? unwrapListeners(listener) : listener.slice();
- }
-}
-function checkListener(listener) {
- if (typeof listener !== "function")
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
-}
-class OnceWrapper {
- constructor(eventEmitter, eventType, listener) {
- this._fired = false;
- this._eventEmitter = eventEmitter;
- this._eventType = eventType;
- this._listener = listener;
- this.wrapperFunction = this._handle.bind(this);
- this.wrapperFunction.listener = listener;
- }
- _handle(...args) {
- if (this._fired)
- return;
- this._fired = true;
- this._eventEmitter.removeListener(this._eventType, this.wrapperFunction);
- return this._listener.apply(this._eventEmitter, args);
- }
-}
-function unwrapListener(l) {
- return wrappedListener(l) ?? l;
-}
-function unwrapListeners(arr) {
- return arr.map((l) => wrappedListener(l) ?? l);
-}
-function wrappedListener(l) {
- return l.listener;
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- EventEmitter
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/events.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/events.js
deleted file mode 100644
index 1ddbce0..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/events.js
+++ /dev/null
@@ -1,103 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var events_exports = {};
-__export(events_exports, {
- Events: () => Events
-});
-module.exports = __toCommonJS(events_exports);
-const Events = {
- AndroidDevice: {
- WebView: "webview",
- Close: "close"
- },
- AndroidSocket: {
- Data: "data",
- Close: "close"
- },
- AndroidWebView: {
- Close: "close"
- },
- Browser: {
- Disconnected: "disconnected"
- },
- BrowserContext: {
- Console: "console",
- Close: "close",
- Dialog: "dialog",
- Page: "page",
- // Can't use just 'error' due to node.js special treatment of error events.
- // @see https://nodejs.org/api/events.html#events_error_events
- WebError: "weberror",
- BackgroundPage: "backgroundpage",
- // Deprecated in v1.56, never emitted anymore.
- ServiceWorker: "serviceworker",
- Request: "request",
- Response: "response",
- RequestFailed: "requestfailed",
- RequestFinished: "requestfinished"
- },
- BrowserServer: {
- Close: "close"
- },
- Page: {
- Close: "close",
- Crash: "crash",
- Console: "console",
- Dialog: "dialog",
- Download: "download",
- FileChooser: "filechooser",
- DOMContentLoaded: "domcontentloaded",
- // Can't use just 'error' due to node.js special treatment of error events.
- // @see https://nodejs.org/api/events.html#events_error_events
- PageError: "pageerror",
- Request: "request",
- Response: "response",
- RequestFailed: "requestfailed",
- RequestFinished: "requestfinished",
- FrameAttached: "frameattached",
- FrameDetached: "framedetached",
- FrameNavigated: "framenavigated",
- Load: "load",
- Popup: "popup",
- WebSocket: "websocket",
- Worker: "worker"
- },
- PageAgent: {
- Turn: "turn"
- },
- WebSocket: {
- Close: "close",
- Error: "socketerror",
- FrameReceived: "framereceived",
- FrameSent: "framesent"
- },
- Worker: {
- Close: "close",
- Console: "console"
- },
- ElectronApplication: {
- Close: "close",
- Console: "console",
- Window: "window"
- }
-};
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Events
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/fetch.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/fetch.js
deleted file mode 100644
index f99290c..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/fetch.js
+++ /dev/null
@@ -1,368 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var fetch_exports = {};
-__export(fetch_exports, {
- APIRequest: () => APIRequest,
- APIRequestContext: () => APIRequestContext,
- APIResponse: () => APIResponse
-});
-module.exports = __toCommonJS(fetch_exports);
-var import_browserContext = require("./browserContext");
-var import_channelOwner = require("./channelOwner");
-var import_errors = require("./errors");
-var import_network = require("./network");
-var import_tracing = require("./tracing");
-var import_assert = require("../utils/isomorphic/assert");
-var import_fileUtils = require("./fileUtils");
-var import_headers = require("../utils/isomorphic/headers");
-var import_rtti = require("../utils/isomorphic/rtti");
-var import_timeoutSettings = require("./timeoutSettings");
-class APIRequest {
- constructor(playwright) {
- this._contexts = /* @__PURE__ */ new Set();
- this._playwright = playwright;
- }
- async newContext(options = {}) {
- options = { ...options };
- await this._playwright._instrumentation.runBeforeCreateRequestContext(options);
- const storageState = typeof options.storageState === "string" ? JSON.parse(await this._playwright._platform.fs().promises.readFile(options.storageState, "utf8")) : options.storageState;
- const context = APIRequestContext.from((await this._playwright._channel.newRequest({
- ...options,
- extraHTTPHeaders: options.extraHTTPHeaders ? (0, import_headers.headersObjectToArray)(options.extraHTTPHeaders) : void 0,
- storageState,
- tracesDir: this._playwright._defaultLaunchOptions?.tracesDir,
- // We do not expose tracesDir in the API, so do not allow options to accidentally override it.
- clientCertificates: await (0, import_browserContext.toClientCertificatesProtocol)(this._playwright._platform, options.clientCertificates)
- })).request);
- this._contexts.add(context);
- context._request = this;
- context._timeoutSettings.setDefaultTimeout(options.timeout ?? this._playwright._defaultContextTimeout);
- context._tracing._tracesDir = this._playwright._defaultLaunchOptions?.tracesDir;
- await context._instrumentation.runAfterCreateRequestContext(context);
- return context;
- }
-}
-class APIRequestContext extends import_channelOwner.ChannelOwner {
- static from(channel) {
- return channel._object;
- }
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._tracing = import_tracing.Tracing.from(initializer.tracing);
- this._timeoutSettings = new import_timeoutSettings.TimeoutSettings(this._platform);
- }
- async [Symbol.asyncDispose]() {
- await this.dispose();
- }
- async dispose(options = {}) {
- this._closeReason = options.reason;
- await this._instrumentation.runBeforeCloseRequestContext(this);
- try {
- await this._channel.dispose(options);
- } catch (e) {
- if ((0, import_errors.isTargetClosedError)(e))
- return;
- throw e;
- }
- this._tracing._resetStackCounter();
- this._request?._contexts.delete(this);
- }
- async delete(url, options) {
- return await this.fetch(url, {
- ...options,
- method: "DELETE"
- });
- }
- async head(url, options) {
- return await this.fetch(url, {
- ...options,
- method: "HEAD"
- });
- }
- async get(url, options) {
- return await this.fetch(url, {
- ...options,
- method: "GET"
- });
- }
- async patch(url, options) {
- return await this.fetch(url, {
- ...options,
- method: "PATCH"
- });
- }
- async post(url, options) {
- return await this.fetch(url, {
- ...options,
- method: "POST"
- });
- }
- async put(url, options) {
- return await this.fetch(url, {
- ...options,
- method: "PUT"
- });
- }
- async fetch(urlOrRequest, options = {}) {
- const url = (0, import_rtti.isString)(urlOrRequest) ? urlOrRequest : void 0;
- const request = (0, import_rtti.isString)(urlOrRequest) ? void 0 : urlOrRequest;
- return await this._innerFetch({ url, request, ...options });
- }
- async _innerFetch(options = {}) {
- return await this._wrapApiCall(async () => {
- if (this._closeReason)
- throw new import_errors.TargetClosedError(this._closeReason);
- (0, import_assert.assert)(options.request || typeof options.url === "string", "First argument must be either URL string or Request");
- (0, import_assert.assert)((options.data === void 0 ? 0 : 1) + (options.form === void 0 ? 0 : 1) + (options.multipart === void 0 ? 0 : 1) <= 1, `Only one of 'data', 'form' or 'multipart' can be specified`);
- (0, import_assert.assert)(options.maxRedirects === void 0 || options.maxRedirects >= 0, `'maxRedirects' must be greater than or equal to '0'`);
- (0, import_assert.assert)(options.maxRetries === void 0 || options.maxRetries >= 0, `'maxRetries' must be greater than or equal to '0'`);
- const url = options.url !== void 0 ? options.url : options.request.url();
- this._checkUrlAllowed?.(url);
- const method = options.method || options.request?.method();
- let encodedParams = void 0;
- if (typeof options.params === "string")
- encodedParams = options.params;
- else if (options.params instanceof URLSearchParams)
- encodedParams = options.params.toString();
- const headersObj = options.headers || options.request?.headers();
- const headers = headersObj ? (0, import_headers.headersObjectToArray)(headersObj) : void 0;
- let jsonData;
- let formData;
- let multipartData;
- let postDataBuffer;
- if (options.data !== void 0) {
- if ((0, import_rtti.isString)(options.data)) {
- if (isJsonContentType(headers))
- jsonData = isJsonParsable(options.data) ? options.data : JSON.stringify(options.data);
- else
- postDataBuffer = Buffer.from(options.data, "utf8");
- } else if (Buffer.isBuffer(options.data)) {
- postDataBuffer = options.data;
- } else if (typeof options.data === "object" || typeof options.data === "number" || typeof options.data === "boolean") {
- jsonData = JSON.stringify(options.data);
- } else {
- throw new Error(`Unexpected 'data' type`);
- }
- } else if (options.form) {
- if (globalThis.FormData && options.form instanceof FormData) {
- formData = [];
- for (const [name, value] of options.form.entries()) {
- if (typeof value !== "string")
- throw new Error(`Expected string for options.form["${name}"], found File. Please use options.multipart instead.`);
- formData.push({ name, value });
- }
- } else {
- formData = objectToArray(options.form);
- }
- } else if (options.multipart) {
- multipartData = [];
- if (globalThis.FormData && options.multipart instanceof FormData) {
- const form = options.multipart;
- for (const [name, value] of form.entries()) {
- if ((0, import_rtti.isString)(value)) {
- multipartData.push({ name, value });
- } else {
- const file = {
- name: value.name,
- mimeType: value.type,
- buffer: Buffer.from(await value.arrayBuffer())
- };
- multipartData.push({ name, file });
- }
- }
- } else {
- for (const [name, value] of Object.entries(options.multipart))
- multipartData.push(await toFormField(this._platform, name, value));
- }
- }
- if (postDataBuffer === void 0 && jsonData === void 0 && formData === void 0 && multipartData === void 0)
- postDataBuffer = options.request?.postDataBuffer() || void 0;
- const fixtures = {
- __testHookLookup: options.__testHookLookup
- };
- const result = await this._channel.fetch({
- url,
- params: typeof options.params === "object" ? objectToArray(options.params) : void 0,
- encodedParams,
- method,
- headers,
- postData: postDataBuffer,
- jsonData,
- formData,
- multipartData,
- timeout: this._timeoutSettings.timeout(options),
- failOnStatusCode: options.failOnStatusCode,
- ignoreHTTPSErrors: options.ignoreHTTPSErrors,
- maxRedirects: options.maxRedirects,
- maxRetries: options.maxRetries,
- ...fixtures
- });
- return new APIResponse(this, result.response);
- });
- }
- async storageState(options = {}) {
- const state = await this._channel.storageState({ indexedDB: options.indexedDB });
- if (options.path) {
- await (0, import_fileUtils.mkdirIfNeeded)(this._platform, options.path);
- await this._platform.fs().promises.writeFile(options.path, JSON.stringify(state, void 0, 2), "utf8");
- }
- return state;
- }
-}
-async function toFormField(platform, name, value) {
- const typeOfValue = typeof value;
- if (isFilePayload(value)) {
- const payload = value;
- if (!Buffer.isBuffer(payload.buffer))
- throw new Error(`Unexpected buffer type of 'data.${name}'`);
- return { name, file: filePayloadToJson(payload) };
- } else if (typeOfValue === "string" || typeOfValue === "number" || typeOfValue === "boolean") {
- return { name, value: String(value) };
- } else {
- return { name, file: await readStreamToJson(platform, value) };
- }
-}
-function isJsonParsable(value) {
- if (typeof value !== "string")
- return false;
- try {
- JSON.parse(value);
- return true;
- } catch (e) {
- if (e instanceof SyntaxError)
- return false;
- else
- throw e;
- }
-}
-class APIResponse {
- constructor(context, initializer) {
- this._request = context;
- this._initializer = initializer;
- this._headers = new import_network.RawHeaders(this._initializer.headers);
- if (context._platform.inspectCustom)
- this[context._platform.inspectCustom] = () => this._inspect();
- }
- ok() {
- return this._initializer.status >= 200 && this._initializer.status <= 299;
- }
- url() {
- return this._initializer.url;
- }
- status() {
- return this._initializer.status;
- }
- statusText() {
- return this._initializer.statusText;
- }
- headers() {
- return this._headers.headers();
- }
- headersArray() {
- return this._headers.headersArray();
- }
- async body() {
- return await this._request._wrapApiCall(async () => {
- try {
- const result = await this._request._channel.fetchResponseBody({ fetchUid: this._fetchUid() });
- if (result.binary === void 0)
- throw new Error("Response has been disposed");
- return result.binary;
- } catch (e) {
- if ((0, import_errors.isTargetClosedError)(e))
- throw new Error("Response has been disposed");
- throw e;
- }
- }, { internal: true });
- }
- async text() {
- const content = await this.body();
- return content.toString("utf8");
- }
- async json() {
- const content = await this.text();
- return JSON.parse(content);
- }
- async [Symbol.asyncDispose]() {
- await this.dispose();
- }
- async dispose() {
- await this._request._channel.disposeAPIResponse({ fetchUid: this._fetchUid() });
- }
- _inspect() {
- const headers = this.headersArray().map(({ name, value }) => ` ${name}: ${value}`);
- return `APIResponse: ${this.status()} ${this.statusText()}
-${headers.join("\n")}`;
- }
- _fetchUid() {
- return this._initializer.fetchUid;
- }
- async _fetchLog() {
- const { log } = await this._request._channel.fetchLog({ fetchUid: this._fetchUid() });
- return log;
- }
-}
-function filePayloadToJson(payload) {
- return {
- name: payload.name,
- mimeType: payload.mimeType,
- buffer: payload.buffer
- };
-}
-async function readStreamToJson(platform, stream) {
- const buffer = await new Promise((resolve, reject) => {
- const chunks = [];
- stream.on("data", (chunk) => chunks.push(chunk));
- stream.on("end", () => resolve(Buffer.concat(chunks)));
- stream.on("error", (err) => reject(err));
- });
- const streamPath = Buffer.isBuffer(stream.path) ? stream.path.toString("utf8") : stream.path;
- return {
- name: platform.path().basename(streamPath),
- buffer
- };
-}
-function isJsonContentType(headers) {
- if (!headers)
- return false;
- for (const { name, value } of headers) {
- if (name.toLocaleLowerCase() === "content-type")
- return value === "application/json";
- }
- return false;
-}
-function objectToArray(map) {
- if (!map)
- return void 0;
- const result = [];
- for (const [name, value] of Object.entries(map)) {
- if (value !== void 0)
- result.push({ name, value: String(value) });
- }
- return result;
-}
-function isFilePayload(value) {
- return typeof value === "object" && value["name"] && value["mimeType"] && value["buffer"];
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- APIRequest,
- APIRequestContext,
- APIResponse
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/fileChooser.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/fileChooser.js
deleted file mode 100644
index 65a0828..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/fileChooser.js
+++ /dev/null
@@ -1,46 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var fileChooser_exports = {};
-__export(fileChooser_exports, {
- FileChooser: () => FileChooser
-});
-module.exports = __toCommonJS(fileChooser_exports);
-class FileChooser {
- constructor(page, elementHandle, isMultiple) {
- this._page = page;
- this._elementHandle = elementHandle;
- this._isMultiple = isMultiple;
- }
- element() {
- return this._elementHandle;
- }
- isMultiple() {
- return this._isMultiple;
- }
- page() {
- return this._page;
- }
- async setFiles(files, options) {
- return await this._elementHandle.setInputFiles(files, options);
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- FileChooser
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/fileUtils.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/fileUtils.js
deleted file mode 100644
index 1c015bc..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/fileUtils.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var fileUtils_exports = {};
-__export(fileUtils_exports, {
- fileUploadSizeLimit: () => fileUploadSizeLimit,
- mkdirIfNeeded: () => mkdirIfNeeded
-});
-module.exports = __toCommonJS(fileUtils_exports);
-const fileUploadSizeLimit = 50 * 1024 * 1024;
-async function mkdirIfNeeded(platform, filePath) {
- await platform.fs().promises.mkdir(platform.path().dirname(filePath), { recursive: true }).catch(() => {
- });
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- fileUploadSizeLimit,
- mkdirIfNeeded
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/frame.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/frame.js
deleted file mode 100644
index 17fba86..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/frame.js
+++ /dev/null
@@ -1,409 +0,0 @@
-"use strict";
-var __create = Object.create;
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __getProtoOf = Object.getPrototypeOf;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
- // If the importer is in node compatibility mode or this is not an ESM
- // file that has been converted to a CommonJS file using a Babel-
- // compatible transform (i.e. "__esModule" has not been set), then set
- // "default" to the CommonJS "module.exports" for node compatibility.
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
- mod
-));
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var frame_exports = {};
-__export(frame_exports, {
- Frame: () => Frame,
- verifyLoadState: () => verifyLoadState
-});
-module.exports = __toCommonJS(frame_exports);
-var import_eventEmitter = require("./eventEmitter");
-var import_channelOwner = require("./channelOwner");
-var import_clientHelper = require("./clientHelper");
-var import_elementHandle = require("./elementHandle");
-var import_events = require("./events");
-var import_jsHandle = require("./jsHandle");
-var import_locator = require("./locator");
-var network = __toESM(require("./network"));
-var import_types = require("./types");
-var import_waiter = require("./waiter");
-var import_assert = require("../utils/isomorphic/assert");
-var import_locatorUtils = require("../utils/isomorphic/locatorUtils");
-var import_urlMatch = require("../utils/isomorphic/urlMatch");
-var import_timeoutSettings = require("./timeoutSettings");
-class Frame extends import_channelOwner.ChannelOwner {
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._parentFrame = null;
- this._url = "";
- this._name = "";
- this._detached = false;
- this._childFrames = /* @__PURE__ */ new Set();
- this._eventEmitter = new import_eventEmitter.EventEmitter(parent._platform);
- this._eventEmitter.setMaxListeners(0);
- this._parentFrame = Frame.fromNullable(initializer.parentFrame);
- if (this._parentFrame)
- this._parentFrame._childFrames.add(this);
- this._name = initializer.name;
- this._url = initializer.url;
- this._loadStates = new Set(initializer.loadStates);
- this._channel.on("loadstate", (event) => {
- if (event.add) {
- this._loadStates.add(event.add);
- this._eventEmitter.emit("loadstate", event.add);
- }
- if (event.remove)
- this._loadStates.delete(event.remove);
- if (!this._parentFrame && event.add === "load" && this._page)
- this._page.emit(import_events.Events.Page.Load, this._page);
- if (!this._parentFrame && event.add === "domcontentloaded" && this._page)
- this._page.emit(import_events.Events.Page.DOMContentLoaded, this._page);
- });
- this._channel.on("navigated", (event) => {
- this._url = event.url;
- this._name = event.name;
- this._eventEmitter.emit("navigated", event);
- if (!event.error && this._page)
- this._page.emit(import_events.Events.Page.FrameNavigated, this);
- });
- }
- static from(frame) {
- return frame._object;
- }
- static fromNullable(frame) {
- return frame ? Frame.from(frame) : null;
- }
- page() {
- return this._page;
- }
- _timeout(options) {
- const timeoutSettings = this._page?._timeoutSettings || new import_timeoutSettings.TimeoutSettings(this._platform);
- return timeoutSettings.timeout(options || {});
- }
- _navigationTimeout(options) {
- const timeoutSettings = this._page?._timeoutSettings || new import_timeoutSettings.TimeoutSettings(this._platform);
- return timeoutSettings.navigationTimeout(options || {});
- }
- async goto(url, options = {}) {
- const waitUntil = verifyLoadState("waitUntil", options.waitUntil === void 0 ? "load" : options.waitUntil);
- this.page().context()._checkUrlAllowed(url);
- return network.Response.fromNullable((await this._channel.goto({ url, ...options, waitUntil, timeout: this._navigationTimeout(options) })).response);
- }
- _setupNavigationWaiter(options) {
- const waiter = new import_waiter.Waiter(this._page, "");
- if (this._page.isClosed())
- waiter.rejectImmediately(this._page._closeErrorWithReason());
- waiter.rejectOnEvent(this._page, import_events.Events.Page.Close, () => this._page._closeErrorWithReason());
- waiter.rejectOnEvent(this._page, import_events.Events.Page.Crash, new Error("Navigation failed because page crashed!"));
- waiter.rejectOnEvent(this._page, import_events.Events.Page.FrameDetached, new Error("Navigating frame was detached!"), (frame) => frame === this);
- const timeout = this._page._timeoutSettings.navigationTimeout(options);
- waiter.rejectOnTimeout(timeout, `Timeout ${timeout}ms exceeded.`);
- return waiter;
- }
- async waitForNavigation(options = {}) {
- return await this._page._wrapApiCall(async () => {
- const waitUntil = verifyLoadState("waitUntil", options.waitUntil === void 0 ? "load" : options.waitUntil);
- const waiter = this._setupNavigationWaiter(options);
- const toUrl = typeof options.url === "string" ? ` to "${options.url}"` : "";
- waiter.log(`waiting for navigation${toUrl} until "${waitUntil}"`);
- const navigatedEvent = await waiter.waitForEvent(this._eventEmitter, "navigated", (event) => {
- if (event.error)
- return true;
- waiter.log(` navigated to "${event.url}"`);
- return (0, import_urlMatch.urlMatches)(this._page?.context()._options.baseURL, event.url, options.url);
- });
- if (navigatedEvent.error) {
- const e = new Error(navigatedEvent.error);
- e.stack = "";
- await waiter.waitForPromise(Promise.reject(e));
- }
- if (!this._loadStates.has(waitUntil)) {
- await waiter.waitForEvent(this._eventEmitter, "loadstate", (s) => {
- waiter.log(` "${s}" event fired`);
- return s === waitUntil;
- });
- }
- const request = navigatedEvent.newDocument ? network.Request.fromNullable(navigatedEvent.newDocument.request) : null;
- const response = request ? await waiter.waitForPromise(request._finalRequest()._internalResponse()) : null;
- waiter.dispose();
- return response;
- }, { title: "Wait for navigation" });
- }
- async waitForLoadState(state = "load", options = {}) {
- state = verifyLoadState("state", state);
- return await this._page._wrapApiCall(async () => {
- const waiter = this._setupNavigationWaiter(options);
- if (this._loadStates.has(state)) {
- waiter.log(` not waiting, "${state}" event already fired`);
- } else {
- await waiter.waitForEvent(this._eventEmitter, "loadstate", (s) => {
- waiter.log(` "${s}" event fired`);
- return s === state;
- });
- }
- waiter.dispose();
- }, { title: `Wait for load state "${state}"` });
- }
- async waitForURL(url, options = {}) {
- if ((0, import_urlMatch.urlMatches)(this._page?.context()._options.baseURL, this.url(), url))
- return await this.waitForLoadState(options.waitUntil, options);
- await this.waitForNavigation({ url, ...options });
- }
- async frameElement() {
- return import_elementHandle.ElementHandle.from((await this._channel.frameElement()).element);
- }
- async evaluateHandle(pageFunction, arg) {
- (0, import_jsHandle.assertMaxArguments)(arguments.length, 2);
- const result = await this._channel.evaluateExpressionHandle({ expression: String(pageFunction), isFunction: typeof pageFunction === "function", arg: (0, import_jsHandle.serializeArgument)(arg) });
- return import_jsHandle.JSHandle.from(result.handle);
- }
- async evaluate(pageFunction, arg) {
- (0, import_jsHandle.assertMaxArguments)(arguments.length, 2);
- const result = await this._channel.evaluateExpression({ expression: String(pageFunction), isFunction: typeof pageFunction === "function", arg: (0, import_jsHandle.serializeArgument)(arg) });
- return (0, import_jsHandle.parseResult)(result.value);
- }
- async _evaluateFunction(functionDeclaration) {
- const result = await this._channel.evaluateExpression({ expression: functionDeclaration, isFunction: true, arg: (0, import_jsHandle.serializeArgument)(void 0) });
- return (0, import_jsHandle.parseResult)(result.value);
- }
- async _evaluateExposeUtilityScript(pageFunction, arg) {
- (0, import_jsHandle.assertMaxArguments)(arguments.length, 2);
- const result = await this._channel.evaluateExpression({ expression: String(pageFunction), isFunction: typeof pageFunction === "function", arg: (0, import_jsHandle.serializeArgument)(arg) });
- return (0, import_jsHandle.parseResult)(result.value);
- }
- async $(selector, options) {
- const result = await this._channel.querySelector({ selector, ...options });
- return import_elementHandle.ElementHandle.fromNullable(result.element);
- }
- async waitForSelector(selector, options = {}) {
- if (options.visibility)
- throw new Error("options.visibility is not supported, did you mean options.state?");
- if (options.waitFor && options.waitFor !== "visible")
- throw new Error("options.waitFor is not supported, did you mean options.state?");
- const result = await this._channel.waitForSelector({ selector, ...options, timeout: this._timeout(options) });
- return import_elementHandle.ElementHandle.fromNullable(result.element);
- }
- async dispatchEvent(selector, type, eventInit, options = {}) {
- await this._channel.dispatchEvent({ selector, type, eventInit: (0, import_jsHandle.serializeArgument)(eventInit), ...options, timeout: this._timeout(options) });
- }
- async $eval(selector, pageFunction, arg) {
- (0, import_jsHandle.assertMaxArguments)(arguments.length, 3);
- const result = await this._channel.evalOnSelector({ selector, expression: String(pageFunction), isFunction: typeof pageFunction === "function", arg: (0, import_jsHandle.serializeArgument)(arg) });
- return (0, import_jsHandle.parseResult)(result.value);
- }
- async $$eval(selector, pageFunction, arg) {
- (0, import_jsHandle.assertMaxArguments)(arguments.length, 3);
- const result = await this._channel.evalOnSelectorAll({ selector, expression: String(pageFunction), isFunction: typeof pageFunction === "function", arg: (0, import_jsHandle.serializeArgument)(arg) });
- return (0, import_jsHandle.parseResult)(result.value);
- }
- async $$(selector) {
- const result = await this._channel.querySelectorAll({ selector });
- return result.elements.map((e) => import_elementHandle.ElementHandle.from(e));
- }
- async _queryCount(selector, options) {
- return (await this._channel.queryCount({ selector, ...options })).value;
- }
- async content() {
- return (await this._channel.content()).value;
- }
- async setContent(html, options = {}) {
- const waitUntil = verifyLoadState("waitUntil", options.waitUntil === void 0 ? "load" : options.waitUntil);
- await this._channel.setContent({ html, ...options, waitUntil, timeout: this._navigationTimeout(options) });
- }
- name() {
- return this._name || "";
- }
- url() {
- return this._url;
- }
- parentFrame() {
- return this._parentFrame;
- }
- childFrames() {
- return Array.from(this._childFrames);
- }
- isDetached() {
- return this._detached;
- }
- async addScriptTag(options = {}) {
- const copy = { ...options };
- if (copy.path) {
- copy.content = (await this._platform.fs().promises.readFile(copy.path)).toString();
- copy.content = (0, import_clientHelper.addSourceUrlToScript)(copy.content, copy.path);
- }
- return import_elementHandle.ElementHandle.from((await this._channel.addScriptTag({ ...copy })).element);
- }
- async addStyleTag(options = {}) {
- const copy = { ...options };
- if (copy.path) {
- copy.content = (await this._platform.fs().promises.readFile(copy.path)).toString();
- copy.content += "/*# sourceURL=" + copy.path.replace(/\n/g, "") + "*/";
- }
- return import_elementHandle.ElementHandle.from((await this._channel.addStyleTag({ ...copy })).element);
- }
- async click(selector, options = {}) {
- return await this._channel.click({ selector, ...options, timeout: this._timeout(options) });
- }
- async dblclick(selector, options = {}) {
- return await this._channel.dblclick({ selector, ...options, timeout: this._timeout(options) });
- }
- async dragAndDrop(source, target, options = {}) {
- return await this._channel.dragAndDrop({ source, target, ...options, timeout: this._timeout(options) });
- }
- async tap(selector, options = {}) {
- return await this._channel.tap({ selector, ...options, timeout: this._timeout(options) });
- }
- async fill(selector, value, options = {}) {
- return await this._channel.fill({ selector, value, ...options, timeout: this._timeout(options) });
- }
- async _highlight(selector) {
- return await this._channel.highlight({ selector });
- }
- locator(selector, options) {
- return new import_locator.Locator(this, selector, options);
- }
- getByTestId(testId) {
- return this.locator((0, import_locatorUtils.getByTestIdSelector)((0, import_locator.testIdAttributeName)(), testId));
- }
- getByAltText(text, options) {
- return this.locator((0, import_locatorUtils.getByAltTextSelector)(text, options));
- }
- getByLabel(text, options) {
- return this.locator((0, import_locatorUtils.getByLabelSelector)(text, options));
- }
- getByPlaceholder(text, options) {
- return this.locator((0, import_locatorUtils.getByPlaceholderSelector)(text, options));
- }
- getByText(text, options) {
- return this.locator((0, import_locatorUtils.getByTextSelector)(text, options));
- }
- getByTitle(text, options) {
- return this.locator((0, import_locatorUtils.getByTitleSelector)(text, options));
- }
- getByRole(role, options = {}) {
- return this.locator((0, import_locatorUtils.getByRoleSelector)(role, options));
- }
- frameLocator(selector) {
- return new import_locator.FrameLocator(this, selector);
- }
- async focus(selector, options = {}) {
- await this._channel.focus({ selector, ...options, timeout: this._timeout(options) });
- }
- async textContent(selector, options = {}) {
- const value = (await this._channel.textContent({ selector, ...options, timeout: this._timeout(options) })).value;
- return value === void 0 ? null : value;
- }
- async innerText(selector, options = {}) {
- return (await this._channel.innerText({ selector, ...options, timeout: this._timeout(options) })).value;
- }
- async innerHTML(selector, options = {}) {
- return (await this._channel.innerHTML({ selector, ...options, timeout: this._timeout(options) })).value;
- }
- async getAttribute(selector, name, options = {}) {
- const value = (await this._channel.getAttribute({ selector, name, ...options, timeout: this._timeout(options) })).value;
- return value === void 0 ? null : value;
- }
- async inputValue(selector, options = {}) {
- return (await this._channel.inputValue({ selector, ...options, timeout: this._timeout(options) })).value;
- }
- async isChecked(selector, options = {}) {
- return (await this._channel.isChecked({ selector, ...options, timeout: this._timeout(options) })).value;
- }
- async isDisabled(selector, options = {}) {
- return (await this._channel.isDisabled({ selector, ...options, timeout: this._timeout(options) })).value;
- }
- async isEditable(selector, options = {}) {
- return (await this._channel.isEditable({ selector, ...options, timeout: this._timeout(options) })).value;
- }
- async isEnabled(selector, options = {}) {
- return (await this._channel.isEnabled({ selector, ...options, timeout: this._timeout(options) })).value;
- }
- async isHidden(selector, options = {}) {
- return (await this._channel.isHidden({ selector, ...options })).value;
- }
- async isVisible(selector, options = {}) {
- return (await this._channel.isVisible({ selector, ...options })).value;
- }
- async hover(selector, options = {}) {
- await this._channel.hover({ selector, ...options, timeout: this._timeout(options) });
- }
- async selectOption(selector, values, options = {}) {
- return (await this._channel.selectOption({ selector, ...(0, import_elementHandle.convertSelectOptionValues)(values), ...options, timeout: this._timeout(options) })).values;
- }
- async setInputFiles(selector, files, options = {}) {
- const converted = await (0, import_elementHandle.convertInputFiles)(this._platform, files, this.page().context());
- await this._channel.setInputFiles({ selector, ...converted, ...options, timeout: this._timeout(options) });
- }
- async type(selector, text, options = {}) {
- await this._channel.type({ selector, text, ...options, timeout: this._timeout(options) });
- }
- async press(selector, key, options = {}) {
- await this._channel.press({ selector, key, ...options, timeout: this._timeout(options) });
- }
- async check(selector, options = {}) {
- await this._channel.check({ selector, ...options, timeout: this._timeout(options) });
- }
- async uncheck(selector, options = {}) {
- await this._channel.uncheck({ selector, ...options, timeout: this._timeout(options) });
- }
- async setChecked(selector, checked, options) {
- if (checked)
- await this.check(selector, options);
- else
- await this.uncheck(selector, options);
- }
- async waitForTimeout(timeout) {
- await this._channel.waitForTimeout({ waitTimeout: timeout });
- }
- async waitForFunction(pageFunction, arg, options = {}) {
- if (typeof options.polling === "string")
- (0, import_assert.assert)(options.polling === "raf", "Unknown polling option: " + options.polling);
- const result = await this._channel.waitForFunction({
- ...options,
- pollingInterval: options.polling === "raf" ? void 0 : options.polling,
- expression: String(pageFunction),
- isFunction: typeof pageFunction === "function",
- arg: (0, import_jsHandle.serializeArgument)(arg),
- timeout: this._timeout(options)
- });
- return import_jsHandle.JSHandle.from(result.handle);
- }
- async title() {
- return (await this._channel.title()).value;
- }
- async _expect(expression, options) {
- const params = { expression, ...options, isNot: !!options.isNot };
- params.expectedValue = (0, import_jsHandle.serializeArgument)(options.expectedValue);
- const result = await this._channel.expect(params);
- if (result.received !== void 0)
- result.received = (0, import_jsHandle.parseResult)(result.received);
- return result;
- }
-}
-function verifyLoadState(name, waitUntil) {
- if (waitUntil === "networkidle0")
- waitUntil = "networkidle";
- if (!import_types.kLifecycleEvents.has(waitUntil))
- throw new Error(`${name}: expected one of (load|domcontentloaded|networkidle|commit)`);
- return waitUntil;
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Frame,
- verifyLoadState
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/harRouter.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/harRouter.js
deleted file mode 100644
index 76cfbfc..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/harRouter.js
+++ /dev/null
@@ -1,87 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var harRouter_exports = {};
-__export(harRouter_exports, {
- HarRouter: () => HarRouter
-});
-module.exports = __toCommonJS(harRouter_exports);
-class HarRouter {
- static async create(localUtils, file, notFoundAction, options) {
- const { harId, error } = await localUtils.harOpen({ file });
- if (error)
- throw new Error(error);
- return new HarRouter(localUtils, harId, notFoundAction, options);
- }
- constructor(localUtils, harId, notFoundAction, options) {
- this._localUtils = localUtils;
- this._harId = harId;
- this._options = options;
- this._notFoundAction = notFoundAction;
- }
- async _handle(route) {
- const request = route.request();
- const response = await this._localUtils.harLookup({
- harId: this._harId,
- url: request.url(),
- method: request.method(),
- headers: await request.headersArray(),
- postData: request.postDataBuffer() || void 0,
- isNavigationRequest: request.isNavigationRequest()
- });
- if (response.action === "redirect") {
- route._platform.log("api", `HAR: ${route.request().url()} redirected to ${response.redirectURL}`);
- await route._redirectNavigationRequest(response.redirectURL);
- return;
- }
- if (response.action === "fulfill") {
- if (response.status === -1)
- return;
- await route.fulfill({
- status: response.status,
- headers: Object.fromEntries(response.headers.map((h) => [h.name, h.value])),
- body: response.body
- });
- return;
- }
- if (response.action === "error")
- route._platform.log("api", "HAR: " + response.message);
- if (this._notFoundAction === "abort") {
- await route.abort();
- return;
- }
- await route.fallback();
- }
- async addContextRoute(context) {
- await context.route(this._options.urlMatch || "**/*", (route) => this._handle(route));
- }
- async addPageRoute(page) {
- await page.route(this._options.urlMatch || "**/*", (route) => this._handle(route));
- }
- async [Symbol.asyncDispose]() {
- await this.dispose();
- }
- dispose() {
- this._localUtils.harClose({ harId: this._harId }).catch(() => {
- });
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- HarRouter
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/input.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/input.js
deleted file mode 100644
index c2a9bbc..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/input.js
+++ /dev/null
@@ -1,84 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var input_exports = {};
-__export(input_exports, {
- Keyboard: () => Keyboard,
- Mouse: () => Mouse,
- Touchscreen: () => Touchscreen
-});
-module.exports = __toCommonJS(input_exports);
-class Keyboard {
- constructor(page) {
- this._page = page;
- }
- async down(key) {
- await this._page._channel.keyboardDown({ key });
- }
- async up(key) {
- await this._page._channel.keyboardUp({ key });
- }
- async insertText(text) {
- await this._page._channel.keyboardInsertText({ text });
- }
- async type(text, options = {}) {
- await this._page._channel.keyboardType({ text, ...options });
- }
- async press(key, options = {}) {
- await this._page._channel.keyboardPress({ key, ...options });
- }
-}
-class Mouse {
- constructor(page) {
- this._page = page;
- }
- async move(x, y, options = {}) {
- await this._page._channel.mouseMove({ x, y, ...options });
- }
- async down(options = {}) {
- await this._page._channel.mouseDown({ ...options });
- }
- async up(options = {}) {
- await this._page._channel.mouseUp(options);
- }
- async click(x, y, options = {}) {
- await this._page._channel.mouseClick({ x, y, ...options });
- }
- async dblclick(x, y, options = {}) {
- await this._page._wrapApiCall(async () => {
- await this.click(x, y, { ...options, clickCount: 2 });
- }, { title: "Double click" });
- }
- async wheel(deltaX, deltaY) {
- await this._page._channel.mouseWheel({ deltaX, deltaY });
- }
-}
-class Touchscreen {
- constructor(page) {
- this._page = page;
- }
- async tap(x, y) {
- await this._page._channel.touchscreenTap({ x, y });
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Keyboard,
- Mouse,
- Touchscreen
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/jsHandle.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/jsHandle.js
deleted file mode 100644
index d0582d6..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/jsHandle.js
+++ /dev/null
@@ -1,109 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var jsHandle_exports = {};
-__export(jsHandle_exports, {
- JSHandle: () => JSHandle,
- assertMaxArguments: () => assertMaxArguments,
- parseResult: () => parseResult,
- serializeArgument: () => serializeArgument
-});
-module.exports = __toCommonJS(jsHandle_exports);
-var import_channelOwner = require("./channelOwner");
-var import_errors = require("./errors");
-var import_serializers = require("../protocol/serializers");
-class JSHandle extends import_channelOwner.ChannelOwner {
- static from(handle) {
- return handle._object;
- }
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._preview = this._initializer.preview;
- this._channel.on("previewUpdated", ({ preview }) => this._preview = preview);
- }
- async evaluate(pageFunction, arg) {
- const result = await this._channel.evaluateExpression({ expression: String(pageFunction), isFunction: typeof pageFunction === "function", arg: serializeArgument(arg) });
- return parseResult(result.value);
- }
- async _evaluateFunction(functionDeclaration) {
- const result = await this._channel.evaluateExpression({ expression: functionDeclaration, isFunction: true, arg: serializeArgument(void 0) });
- return parseResult(result.value);
- }
- async evaluateHandle(pageFunction, arg) {
- const result = await this._channel.evaluateExpressionHandle({ expression: String(pageFunction), isFunction: typeof pageFunction === "function", arg: serializeArgument(arg) });
- return JSHandle.from(result.handle);
- }
- async getProperty(propertyName) {
- const result = await this._channel.getProperty({ name: propertyName });
- return JSHandle.from(result.handle);
- }
- async getProperties() {
- const map = /* @__PURE__ */ new Map();
- for (const { name, value } of (await this._channel.getPropertyList()).properties)
- map.set(name, JSHandle.from(value));
- return map;
- }
- async jsonValue() {
- return parseResult((await this._channel.jsonValue()).value);
- }
- asElement() {
- return null;
- }
- async [Symbol.asyncDispose]() {
- await this.dispose();
- }
- async dispose() {
- try {
- await this._channel.dispose();
- } catch (e) {
- if ((0, import_errors.isTargetClosedError)(e))
- return;
- throw e;
- }
- }
- toString() {
- return this._preview;
- }
-}
-function serializeArgument(arg) {
- const handles = [];
- const pushHandle = (channel) => {
- handles.push(channel);
- return handles.length - 1;
- };
- const value = (0, import_serializers.serializeValue)(arg, (value2) => {
- if (value2 instanceof JSHandle)
- return { h: pushHandle(value2._channel) };
- return { fallThrough: value2 };
- });
- return { value, handles };
-}
-function parseResult(value) {
- return (0, import_serializers.parseSerializedValue)(value, void 0);
-}
-function assertMaxArguments(count, max) {
- if (count > max)
- throw new Error("Too many arguments. If you need to pass more than 1 argument to the function wrap them in an object.");
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- JSHandle,
- assertMaxArguments,
- parseResult,
- serializeArgument
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/jsonPipe.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/jsonPipe.js
deleted file mode 100644
index 2117a06..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/jsonPipe.js
+++ /dev/null
@@ -1,39 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var jsonPipe_exports = {};
-__export(jsonPipe_exports, {
- JsonPipe: () => JsonPipe
-});
-module.exports = __toCommonJS(jsonPipe_exports);
-var import_channelOwner = require("./channelOwner");
-class JsonPipe extends import_channelOwner.ChannelOwner {
- static from(jsonPipe) {
- return jsonPipe._object;
- }
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- }
- channel() {
- return this._channel;
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- JsonPipe
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/localUtils.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/localUtils.js
deleted file mode 100644
index 921ad29..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/localUtils.js
+++ /dev/null
@@ -1,60 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var localUtils_exports = {};
-__export(localUtils_exports, {
- LocalUtils: () => LocalUtils
-});
-module.exports = __toCommonJS(localUtils_exports);
-var import_channelOwner = require("./channelOwner");
-class LocalUtils extends import_channelOwner.ChannelOwner {
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this.devices = {};
- for (const { name, descriptor } of initializer.deviceDescriptors)
- this.devices[name] = descriptor;
- }
- async zip(params) {
- return await this._channel.zip(params);
- }
- async harOpen(params) {
- return await this._channel.harOpen(params);
- }
- async harLookup(params) {
- return await this._channel.harLookup(params);
- }
- async harClose(params) {
- return await this._channel.harClose(params);
- }
- async harUnzip(params) {
- return await this._channel.harUnzip(params);
- }
- async tracingStarted(params) {
- return await this._channel.tracingStarted(params);
- }
- async traceDiscarded(params) {
- return await this._channel.traceDiscarded(params);
- }
- async addStackToTracingNoReply(params) {
- return await this._channel.addStackToTracingNoReply(params);
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- LocalUtils
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/locator.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/locator.js
deleted file mode 100644
index 3abf743..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/locator.js
+++ /dev/null
@@ -1,369 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var locator_exports = {};
-__export(locator_exports, {
- FrameLocator: () => FrameLocator,
- Locator: () => Locator,
- setTestIdAttribute: () => setTestIdAttribute,
- testIdAttributeName: () => testIdAttributeName
-});
-module.exports = __toCommonJS(locator_exports);
-var import_elementHandle = require("./elementHandle");
-var import_locatorGenerators = require("../utils/isomorphic/locatorGenerators");
-var import_locatorUtils = require("../utils/isomorphic/locatorUtils");
-var import_stringUtils = require("../utils/isomorphic/stringUtils");
-var import_rtti = require("../utils/isomorphic/rtti");
-var import_time = require("../utils/isomorphic/time");
-class Locator {
- constructor(frame, selector, options) {
- this._frame = frame;
- this._selector = selector;
- if (options?.hasText)
- this._selector += ` >> internal:has-text=${(0, import_stringUtils.escapeForTextSelector)(options.hasText, false)}`;
- if (options?.hasNotText)
- this._selector += ` >> internal:has-not-text=${(0, import_stringUtils.escapeForTextSelector)(options.hasNotText, false)}`;
- if (options?.has) {
- const locator = options.has;
- if (locator._frame !== frame)
- throw new Error(`Inner "has" locator must belong to the same frame.`);
- this._selector += ` >> internal:has=` + JSON.stringify(locator._selector);
- }
- if (options?.hasNot) {
- const locator = options.hasNot;
- if (locator._frame !== frame)
- throw new Error(`Inner "hasNot" locator must belong to the same frame.`);
- this._selector += ` >> internal:has-not=` + JSON.stringify(locator._selector);
- }
- if (options?.visible !== void 0)
- this._selector += ` >> visible=${options.visible ? "true" : "false"}`;
- if (this._frame._platform.inspectCustom)
- this[this._frame._platform.inspectCustom] = () => this._inspect();
- }
- async _withElement(task, options) {
- const timeout = this._frame._timeout({ timeout: options.timeout });
- const deadline = timeout ? (0, import_time.monotonicTime)() + timeout : 0;
- return await this._frame._wrapApiCall(async () => {
- const result = await this._frame._channel.waitForSelector({ selector: this._selector, strict: true, state: "attached", timeout });
- const handle = import_elementHandle.ElementHandle.fromNullable(result.element);
- if (!handle)
- throw new Error(`Could not resolve ${this._selector} to DOM Element`);
- try {
- return await task(handle, deadline ? deadline - (0, import_time.monotonicTime)() : 0);
- } finally {
- await handle.dispose();
- }
- }, { title: options.title, internal: options.internal });
- }
- _equals(locator) {
- return this._frame === locator._frame && this._selector === locator._selector;
- }
- page() {
- return this._frame.page();
- }
- async boundingBox(options) {
- return await this._withElement((h) => h.boundingBox(), { title: "Bounding box", timeout: options?.timeout });
- }
- async check(options = {}) {
- return await this._frame.check(this._selector, { strict: true, ...options });
- }
- async click(options = {}) {
- return await this._frame.click(this._selector, { strict: true, ...options });
- }
- async dblclick(options = {}) {
- await this._frame.dblclick(this._selector, { strict: true, ...options });
- }
- async dispatchEvent(type, eventInit = {}, options) {
- return await this._frame.dispatchEvent(this._selector, type, eventInit, { strict: true, ...options });
- }
- async dragTo(target, options = {}) {
- return await this._frame.dragAndDrop(this._selector, target._selector, {
- strict: true,
- ...options
- });
- }
- async evaluate(pageFunction, arg, options) {
- return await this._withElement((h) => h.evaluate(pageFunction, arg), { title: "Evaluate", timeout: options?.timeout });
- }
- async _evaluateFunction(functionDeclaration, options) {
- return await this._withElement((h) => h._evaluateFunction(functionDeclaration), { title: "Evaluate", timeout: options?.timeout });
- }
- async evaluateAll(pageFunction, arg) {
- return await this._frame.$$eval(this._selector, pageFunction, arg);
- }
- async evaluateHandle(pageFunction, arg, options) {
- return await this._withElement((h) => h.evaluateHandle(pageFunction, arg), { title: "Evaluate", timeout: options?.timeout });
- }
- async fill(value, options = {}) {
- return await this._frame.fill(this._selector, value, { strict: true, ...options });
- }
- async clear(options = {}) {
- await this._frame._wrapApiCall(() => this.fill("", options), { title: "Clear" });
- }
- async _highlight() {
- return await this._frame._highlight(this._selector);
- }
- async highlight() {
- return await this._frame._highlight(this._selector);
- }
- locator(selectorOrLocator, options) {
- if ((0, import_rtti.isString)(selectorOrLocator))
- return new Locator(this._frame, this._selector + " >> " + selectorOrLocator, options);
- if (selectorOrLocator._frame !== this._frame)
- throw new Error(`Locators must belong to the same frame.`);
- return new Locator(this._frame, this._selector + " >> internal:chain=" + JSON.stringify(selectorOrLocator._selector), options);
- }
- getByTestId(testId) {
- return this.locator((0, import_locatorUtils.getByTestIdSelector)(testIdAttributeName(), testId));
- }
- getByAltText(text, options) {
- return this.locator((0, import_locatorUtils.getByAltTextSelector)(text, options));
- }
- getByLabel(text, options) {
- return this.locator((0, import_locatorUtils.getByLabelSelector)(text, options));
- }
- getByPlaceholder(text, options) {
- return this.locator((0, import_locatorUtils.getByPlaceholderSelector)(text, options));
- }
- getByText(text, options) {
- return this.locator((0, import_locatorUtils.getByTextSelector)(text, options));
- }
- getByTitle(text, options) {
- return this.locator((0, import_locatorUtils.getByTitleSelector)(text, options));
- }
- getByRole(role, options = {}) {
- return this.locator((0, import_locatorUtils.getByRoleSelector)(role, options));
- }
- frameLocator(selector) {
- return new FrameLocator(this._frame, this._selector + " >> " + selector);
- }
- filter(options) {
- return new Locator(this._frame, this._selector, options);
- }
- async elementHandle(options) {
- return await this._frame.waitForSelector(this._selector, { strict: true, state: "attached", ...options });
- }
- async elementHandles() {
- return await this._frame.$$(this._selector);
- }
- contentFrame() {
- return new FrameLocator(this._frame, this._selector);
- }
- describe(description) {
- return new Locator(this._frame, this._selector + " >> internal:describe=" + JSON.stringify(description));
- }
- description() {
- return (0, import_locatorGenerators.locatorCustomDescription)(this._selector) || null;
- }
- first() {
- return new Locator(this._frame, this._selector + " >> nth=0");
- }
- last() {
- return new Locator(this._frame, this._selector + ` >> nth=-1`);
- }
- nth(index) {
- return new Locator(this._frame, this._selector + ` >> nth=${index}`);
- }
- and(locator) {
- if (locator._frame !== this._frame)
- throw new Error(`Locators must belong to the same frame.`);
- return new Locator(this._frame, this._selector + ` >> internal:and=` + JSON.stringify(locator._selector));
- }
- or(locator) {
- if (locator._frame !== this._frame)
- throw new Error(`Locators must belong to the same frame.`);
- return new Locator(this._frame, this._selector + ` >> internal:or=` + JSON.stringify(locator._selector));
- }
- async focus(options) {
- return await this._frame.focus(this._selector, { strict: true, ...options });
- }
- async blur(options) {
- await this._frame._channel.blur({ selector: this._selector, strict: true, ...options, timeout: this._frame._timeout(options) });
- }
- // options are only here for testing
- async count(_options) {
- return await this._frame._queryCount(this._selector, _options);
- }
- async _resolveSelector() {
- return await this._frame._channel.resolveSelector({ selector: this._selector });
- }
- async getAttribute(name, options) {
- return await this._frame.getAttribute(this._selector, name, { strict: true, ...options });
- }
- async hover(options = {}) {
- return await this._frame.hover(this._selector, { strict: true, ...options });
- }
- async innerHTML(options) {
- return await this._frame.innerHTML(this._selector, { strict: true, ...options });
- }
- async innerText(options) {
- return await this._frame.innerText(this._selector, { strict: true, ...options });
- }
- async inputValue(options) {
- return await this._frame.inputValue(this._selector, { strict: true, ...options });
- }
- async isChecked(options) {
- return await this._frame.isChecked(this._selector, { strict: true, ...options });
- }
- async isDisabled(options) {
- return await this._frame.isDisabled(this._selector, { strict: true, ...options });
- }
- async isEditable(options) {
- return await this._frame.isEditable(this._selector, { strict: true, ...options });
- }
- async isEnabled(options) {
- return await this._frame.isEnabled(this._selector, { strict: true, ...options });
- }
- async isHidden(options) {
- return await this._frame.isHidden(this._selector, { strict: true, ...options });
- }
- async isVisible(options) {
- return await this._frame.isVisible(this._selector, { strict: true, ...options });
- }
- async press(key, options = {}) {
- return await this._frame.press(this._selector, key, { strict: true, ...options });
- }
- async screenshot(options = {}) {
- const mask = options.mask;
- return await this._withElement((h, timeout) => h.screenshot({ ...options, mask, timeout }), { title: "Screenshot", timeout: options.timeout });
- }
- async ariaSnapshot(options) {
- const result = await this._frame._channel.ariaSnapshot({ ...options, selector: this._selector, timeout: this._frame._timeout(options) });
- return result.snapshot;
- }
- async scrollIntoViewIfNeeded(options = {}) {
- return await this._withElement((h, timeout) => h.scrollIntoViewIfNeeded({ ...options, timeout }), { title: "Scroll into view", timeout: options.timeout });
- }
- async selectOption(values, options = {}) {
- return await this._frame.selectOption(this._selector, values, { strict: true, ...options });
- }
- async selectText(options = {}) {
- return await this._withElement((h, timeout) => h.selectText({ ...options, timeout }), { title: "Select text", timeout: options.timeout });
- }
- async setChecked(checked, options) {
- if (checked)
- await this.check(options);
- else
- await this.uncheck(options);
- }
- async setInputFiles(files, options = {}) {
- return await this._frame.setInputFiles(this._selector, files, { strict: true, ...options });
- }
- async tap(options = {}) {
- return await this._frame.tap(this._selector, { strict: true, ...options });
- }
- async textContent(options) {
- return await this._frame.textContent(this._selector, { strict: true, ...options });
- }
- async type(text, options = {}) {
- return await this._frame.type(this._selector, text, { strict: true, ...options });
- }
- async pressSequentially(text, options = {}) {
- return await this.type(text, options);
- }
- async uncheck(options = {}) {
- return await this._frame.uncheck(this._selector, { strict: true, ...options });
- }
- async all() {
- return new Array(await this.count()).fill(0).map((e, i) => this.nth(i));
- }
- async allInnerTexts() {
- return await this._frame.$$eval(this._selector, (ee) => ee.map((e) => e.innerText));
- }
- async allTextContents() {
- return await this._frame.$$eval(this._selector, (ee) => ee.map((e) => e.textContent || ""));
- }
- async waitFor(options) {
- await this._frame._channel.waitForSelector({ selector: this._selector, strict: true, omitReturnValue: true, ...options, timeout: this._frame._timeout(options) });
- }
- async _expect(expression, options) {
- return this._frame._expect(expression, {
- ...options,
- selector: this._selector
- });
- }
- _inspect() {
- return this.toString();
- }
- toString() {
- return (0, import_locatorGenerators.asLocatorDescription)("javascript", this._selector);
- }
-}
-class FrameLocator {
- constructor(frame, selector) {
- this._frame = frame;
- this._frameSelector = selector;
- }
- locator(selectorOrLocator, options) {
- if ((0, import_rtti.isString)(selectorOrLocator))
- return new Locator(this._frame, this._frameSelector + " >> internal:control=enter-frame >> " + selectorOrLocator, options);
- if (selectorOrLocator._frame !== this._frame)
- throw new Error(`Locators must belong to the same frame.`);
- return new Locator(this._frame, this._frameSelector + " >> internal:control=enter-frame >> " + selectorOrLocator._selector, options);
- }
- getByTestId(testId) {
- return this.locator((0, import_locatorUtils.getByTestIdSelector)(testIdAttributeName(), testId));
- }
- getByAltText(text, options) {
- return this.locator((0, import_locatorUtils.getByAltTextSelector)(text, options));
- }
- getByLabel(text, options) {
- return this.locator((0, import_locatorUtils.getByLabelSelector)(text, options));
- }
- getByPlaceholder(text, options) {
- return this.locator((0, import_locatorUtils.getByPlaceholderSelector)(text, options));
- }
- getByText(text, options) {
- return this.locator((0, import_locatorUtils.getByTextSelector)(text, options));
- }
- getByTitle(text, options) {
- return this.locator((0, import_locatorUtils.getByTitleSelector)(text, options));
- }
- getByRole(role, options = {}) {
- return this.locator((0, import_locatorUtils.getByRoleSelector)(role, options));
- }
- owner() {
- return new Locator(this._frame, this._frameSelector);
- }
- frameLocator(selector) {
- return new FrameLocator(this._frame, this._frameSelector + " >> internal:control=enter-frame >> " + selector);
- }
- first() {
- return new FrameLocator(this._frame, this._frameSelector + " >> nth=0");
- }
- last() {
- return new FrameLocator(this._frame, this._frameSelector + ` >> nth=-1`);
- }
- nth(index) {
- return new FrameLocator(this._frame, this._frameSelector + ` >> nth=${index}`);
- }
-}
-let _testIdAttributeName = "data-testid";
-function testIdAttributeName() {
- return _testIdAttributeName;
-}
-function setTestIdAttribute(attributeName) {
- _testIdAttributeName = attributeName;
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- FrameLocator,
- Locator,
- setTestIdAttribute,
- testIdAttributeName
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/network.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/network.js
deleted file mode 100644
index f7c8ae7..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/network.js
+++ /dev/null
@@ -1,747 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var network_exports = {};
-__export(network_exports, {
- RawHeaders: () => RawHeaders,
- Request: () => Request,
- Response: () => Response,
- Route: () => Route,
- RouteHandler: () => RouteHandler,
- WebSocket: () => WebSocket,
- WebSocketRoute: () => WebSocketRoute,
- WebSocketRouteHandler: () => WebSocketRouteHandler,
- validateHeaders: () => validateHeaders
-});
-module.exports = __toCommonJS(network_exports);
-var import_channelOwner = require("./channelOwner");
-var import_errors = require("./errors");
-var import_events = require("./events");
-var import_fetch = require("./fetch");
-var import_frame = require("./frame");
-var import_waiter = require("./waiter");
-var import_worker = require("./worker");
-var import_assert = require("../utils/isomorphic/assert");
-var import_headers = require("../utils/isomorphic/headers");
-var import_urlMatch = require("../utils/isomorphic/urlMatch");
-var import_manualPromise = require("../utils/isomorphic/manualPromise");
-var import_multimap = require("../utils/isomorphic/multimap");
-var import_rtti = require("../utils/isomorphic/rtti");
-var import_stackTrace = require("../utils/isomorphic/stackTrace");
-var import_mimeType = require("../utils/isomorphic/mimeType");
-class Request extends import_channelOwner.ChannelOwner {
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._redirectedFrom = null;
- this._redirectedTo = null;
- this._failureText = null;
- this._fallbackOverrides = {};
- this._hasResponse = false;
- this._redirectedFrom = Request.fromNullable(initializer.redirectedFrom);
- if (this._redirectedFrom)
- this._redirectedFrom._redirectedTo = this;
- this._provisionalHeaders = new RawHeaders(initializer.headers);
- this._timing = {
- startTime: 0,
- domainLookupStart: -1,
- domainLookupEnd: -1,
- connectStart: -1,
- secureConnectionStart: -1,
- connectEnd: -1,
- requestStart: -1,
- responseStart: -1,
- responseEnd: -1
- };
- this._hasResponse = this._initializer.hasResponse;
- this._channel.on("response", () => this._hasResponse = true);
- }
- static from(request) {
- return request._object;
- }
- static fromNullable(request) {
- return request ? Request.from(request) : null;
- }
- url() {
- return this._fallbackOverrides.url || this._initializer.url;
- }
- resourceType() {
- return this._initializer.resourceType;
- }
- method() {
- return this._fallbackOverrides.method || this._initializer.method;
- }
- postData() {
- return (this._fallbackOverrides.postDataBuffer || this._initializer.postData)?.toString("utf-8") || null;
- }
- postDataBuffer() {
- return this._fallbackOverrides.postDataBuffer || this._initializer.postData || null;
- }
- postDataJSON() {
- const postData = this.postData();
- if (!postData)
- return null;
- const contentType = this.headers()["content-type"];
- if (contentType?.includes("application/x-www-form-urlencoded")) {
- const entries = {};
- const parsed = new URLSearchParams(postData);
- for (const [k, v] of parsed.entries())
- entries[k] = v;
- return entries;
- }
- try {
- return JSON.parse(postData);
- } catch (e) {
- throw new Error("POST data is not a valid JSON object: " + postData);
- }
- }
- /**
- * @deprecated
- */
- headers() {
- if (this._fallbackOverrides.headers)
- return RawHeaders._fromHeadersObjectLossy(this._fallbackOverrides.headers).headers();
- return this._provisionalHeaders.headers();
- }
- async _actualHeaders() {
- if (this._fallbackOverrides.headers)
- return RawHeaders._fromHeadersObjectLossy(this._fallbackOverrides.headers);
- if (!this._actualHeadersPromise) {
- this._actualHeadersPromise = this._wrapApiCall(async () => {
- return new RawHeaders((await this._channel.rawRequestHeaders()).headers);
- }, { internal: true });
- }
- return await this._actualHeadersPromise;
- }
- async allHeaders() {
- return (await this._actualHeaders()).headers();
- }
- async headersArray() {
- return (await this._actualHeaders()).headersArray();
- }
- async headerValue(name) {
- return (await this._actualHeaders()).get(name);
- }
- async response() {
- return Response.fromNullable((await this._channel.response()).response);
- }
- async _internalResponse() {
- return Response.fromNullable((await this._channel.response()).response);
- }
- frame() {
- if (!this._initializer.frame) {
- (0, import_assert.assert)(this.serviceWorker());
- throw new Error("Service Worker requests do not have an associated frame.");
- }
- const frame = import_frame.Frame.from(this._initializer.frame);
- if (!frame._page) {
- throw new Error([
- "Frame for this navigation request is not available, because the request",
- "was issued before the frame is created. You can check whether the request",
- "is a navigation request by calling isNavigationRequest() method."
- ].join("\n"));
- }
- return frame;
- }
- _safePage() {
- return import_frame.Frame.fromNullable(this._initializer.frame)?._page || null;
- }
- serviceWorker() {
- return this._initializer.serviceWorker ? import_worker.Worker.from(this._initializer.serviceWorker) : null;
- }
- isNavigationRequest() {
- return this._initializer.isNavigationRequest;
- }
- redirectedFrom() {
- return this._redirectedFrom;
- }
- redirectedTo() {
- return this._redirectedTo;
- }
- failure() {
- if (this._failureText === null)
- return null;
- return {
- errorText: this._failureText
- };
- }
- timing() {
- return this._timing;
- }
- async sizes() {
- const response = await this.response();
- if (!response)
- throw new Error("Unable to fetch sizes for failed request");
- return (await response._channel.sizes()).sizes;
- }
- _setResponseEndTiming(responseEndTiming) {
- this._timing.responseEnd = responseEndTiming;
- if (this._timing.responseStart === -1)
- this._timing.responseStart = responseEndTiming;
- }
- _finalRequest() {
- return this._redirectedTo ? this._redirectedTo._finalRequest() : this;
- }
- _applyFallbackOverrides(overrides) {
- if (overrides.url)
- this._fallbackOverrides.url = overrides.url;
- if (overrides.method)
- this._fallbackOverrides.method = overrides.method;
- if (overrides.headers)
- this._fallbackOverrides.headers = overrides.headers;
- if ((0, import_rtti.isString)(overrides.postData))
- this._fallbackOverrides.postDataBuffer = Buffer.from(overrides.postData, "utf-8");
- else if (overrides.postData instanceof Buffer)
- this._fallbackOverrides.postDataBuffer = overrides.postData;
- else if (overrides.postData)
- this._fallbackOverrides.postDataBuffer = Buffer.from(JSON.stringify(overrides.postData), "utf-8");
- }
- _fallbackOverridesForContinue() {
- return this._fallbackOverrides;
- }
- _targetClosedScope() {
- return this.serviceWorker()?._closedScope || this._safePage()?._closedOrCrashedScope || new import_manualPromise.LongStandingScope();
- }
-}
-class Route extends import_channelOwner.ChannelOwner {
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._handlingPromise = null;
- this._didThrow = false;
- }
- static from(route) {
- return route._object;
- }
- request() {
- return Request.from(this._initializer.request);
- }
- async _raceWithTargetClose(promise) {
- return await this.request()._targetClosedScope().safeRace(promise);
- }
- async _startHandling() {
- this._handlingPromise = new import_manualPromise.ManualPromise();
- return await this._handlingPromise;
- }
- async fallback(options = {}) {
- this._checkNotHandled();
- this.request()._applyFallbackOverrides(options);
- this._reportHandled(false);
- }
- async abort(errorCode) {
- await this._handleRoute(async () => {
- await this._raceWithTargetClose(this._channel.abort({ errorCode }));
- });
- }
- async _redirectNavigationRequest(url) {
- await this._handleRoute(async () => {
- await this._raceWithTargetClose(this._channel.redirectNavigationRequest({ url }));
- });
- }
- async fetch(options = {}) {
- return await this._wrapApiCall(async () => {
- return await this._context.request._innerFetch({ request: this.request(), data: options.postData, ...options });
- });
- }
- async fulfill(options = {}) {
- await this._handleRoute(async () => {
- await this._innerFulfill(options);
- });
- }
- async _handleRoute(callback) {
- this._checkNotHandled();
- try {
- await callback();
- this._reportHandled(true);
- } catch (e) {
- this._didThrow = true;
- throw e;
- }
- }
- async _innerFulfill(options = {}) {
- let fetchResponseUid;
- let { status: statusOption, headers: headersOption, body } = options;
- if (options.json !== void 0) {
- (0, import_assert.assert)(options.body === void 0, "Can specify either body or json parameters");
- body = JSON.stringify(options.json);
- }
- if (options.response instanceof import_fetch.APIResponse) {
- statusOption ??= options.response.status();
- headersOption ??= options.response.headers();
- if (body === void 0 && options.path === void 0) {
- if (options.response._request._connection === this._connection)
- fetchResponseUid = options.response._fetchUid();
- else
- body = await options.response.body();
- }
- }
- let isBase64 = false;
- let length = 0;
- if (options.path) {
- const buffer = await this._platform.fs().promises.readFile(options.path);
- body = buffer.toString("base64");
- isBase64 = true;
- length = buffer.length;
- } else if ((0, import_rtti.isString)(body)) {
- isBase64 = false;
- length = Buffer.byteLength(body);
- } else if (body) {
- length = body.length;
- body = body.toString("base64");
- isBase64 = true;
- }
- const headers = {};
- for (const header of Object.keys(headersOption || {}))
- headers[header.toLowerCase()] = String(headersOption[header]);
- if (options.contentType)
- headers["content-type"] = String(options.contentType);
- else if (options.json)
- headers["content-type"] = "application/json";
- else if (options.path)
- headers["content-type"] = (0, import_mimeType.getMimeTypeForPath)(options.path) || "application/octet-stream";
- if (length && !("content-length" in headers))
- headers["content-length"] = String(length);
- await this._raceWithTargetClose(this._channel.fulfill({
- status: statusOption || 200,
- headers: (0, import_headers.headersObjectToArray)(headers),
- body,
- isBase64,
- fetchResponseUid
- }));
- }
- async continue(options = {}) {
- await this._handleRoute(async () => {
- this.request()._applyFallbackOverrides(options);
- await this._innerContinue(
- false
- /* isFallback */
- );
- });
- }
- _checkNotHandled() {
- if (!this._handlingPromise)
- throw new Error("Route is already handled!");
- }
- _reportHandled(done) {
- const chain = this._handlingPromise;
- this._handlingPromise = null;
- chain.resolve(done);
- }
- async _innerContinue(isFallback) {
- const options = this.request()._fallbackOverridesForContinue();
- return await this._raceWithTargetClose(this._channel.continue({
- url: options.url,
- method: options.method,
- headers: options.headers ? (0, import_headers.headersObjectToArray)(options.headers) : void 0,
- postData: options.postDataBuffer,
- isFallback
- }));
- }
-}
-class WebSocketRoute extends import_channelOwner.ChannelOwner {
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._connected = false;
- this._server = {
- onMessage: (handler) => {
- this._onServerMessage = handler;
- },
- onClose: (handler) => {
- this._onServerClose = handler;
- },
- connectToServer: () => {
- throw new Error(`connectToServer must be called on the page-side WebSocketRoute`);
- },
- url: () => {
- return this._initializer.url;
- },
- close: async (options = {}) => {
- await this._channel.closeServer({ ...options, wasClean: true }).catch(() => {
- });
- },
- send: (message) => {
- if ((0, import_rtti.isString)(message))
- this._channel.sendToServer({ message, isBase64: false }).catch(() => {
- });
- else
- this._channel.sendToServer({ message: message.toString("base64"), isBase64: true }).catch(() => {
- });
- },
- async [Symbol.asyncDispose]() {
- await this.close();
- }
- };
- this._channel.on("messageFromPage", ({ message, isBase64 }) => {
- if (this._onPageMessage)
- this._onPageMessage(isBase64 ? Buffer.from(message, "base64") : message);
- else if (this._connected)
- this._channel.sendToServer({ message, isBase64 }).catch(() => {
- });
- });
- this._channel.on("messageFromServer", ({ message, isBase64 }) => {
- if (this._onServerMessage)
- this._onServerMessage(isBase64 ? Buffer.from(message, "base64") : message);
- else
- this._channel.sendToPage({ message, isBase64 }).catch(() => {
- });
- });
- this._channel.on("closePage", ({ code, reason, wasClean }) => {
- if (this._onPageClose)
- this._onPageClose(code, reason);
- else
- this._channel.closeServer({ code, reason, wasClean }).catch(() => {
- });
- });
- this._channel.on("closeServer", ({ code, reason, wasClean }) => {
- if (this._onServerClose)
- this._onServerClose(code, reason);
- else
- this._channel.closePage({ code, reason, wasClean }).catch(() => {
- });
- });
- }
- static from(route) {
- return route._object;
- }
- url() {
- return this._initializer.url;
- }
- async close(options = {}) {
- await this._channel.closePage({ ...options, wasClean: true }).catch(() => {
- });
- }
- connectToServer() {
- if (this._connected)
- throw new Error("Already connected to the server");
- this._connected = true;
- this._channel.connect().catch(() => {
- });
- return this._server;
- }
- send(message) {
- if ((0, import_rtti.isString)(message))
- this._channel.sendToPage({ message, isBase64: false }).catch(() => {
- });
- else
- this._channel.sendToPage({ message: message.toString("base64"), isBase64: true }).catch(() => {
- });
- }
- onMessage(handler) {
- this._onPageMessage = handler;
- }
- onClose(handler) {
- this._onPageClose = handler;
- }
- async [Symbol.asyncDispose]() {
- await this.close();
- }
- async _afterHandle() {
- if (this._connected)
- return;
- await this._channel.ensureOpened().catch(() => {
- });
- }
-}
-class WebSocketRouteHandler {
- constructor(baseURL, url, handler) {
- this._baseURL = baseURL;
- this.url = url;
- this.handler = handler;
- }
- static prepareInterceptionPatterns(handlers) {
- const patterns = [];
- let all = false;
- for (const handler of handlers) {
- if ((0, import_rtti.isString)(handler.url))
- patterns.push({ glob: handler.url });
- else if ((0, import_rtti.isRegExp)(handler.url))
- patterns.push({ regexSource: handler.url.source, regexFlags: handler.url.flags });
- else
- all = true;
- }
- if (all)
- return [{ glob: "**/*" }];
- return patterns;
- }
- matches(wsURL) {
- return (0, import_urlMatch.urlMatches)(this._baseURL, wsURL, this.url, true);
- }
- async handle(webSocketRoute) {
- const handler = this.handler;
- await handler(webSocketRoute);
- await webSocketRoute._afterHandle();
- }
-}
-class Response extends import_channelOwner.ChannelOwner {
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._finishedPromise = new import_manualPromise.ManualPromise();
- this._provisionalHeaders = new RawHeaders(initializer.headers);
- this._request = Request.from(this._initializer.request);
- Object.assign(this._request._timing, this._initializer.timing);
- }
- static from(response) {
- return response._object;
- }
- static fromNullable(response) {
- return response ? Response.from(response) : null;
- }
- url() {
- return this._initializer.url;
- }
- ok() {
- return this._initializer.status === 0 || this._initializer.status >= 200 && this._initializer.status <= 299;
- }
- status() {
- return this._initializer.status;
- }
- statusText() {
- return this._initializer.statusText;
- }
- fromServiceWorker() {
- return this._initializer.fromServiceWorker;
- }
- /**
- * @deprecated
- */
- headers() {
- return this._provisionalHeaders.headers();
- }
- async _actualHeaders() {
- if (!this._actualHeadersPromise) {
- this._actualHeadersPromise = (async () => {
- return new RawHeaders((await this._channel.rawResponseHeaders()).headers);
- })();
- }
- return await this._actualHeadersPromise;
- }
- async allHeaders() {
- return (await this._actualHeaders()).headers();
- }
- async headersArray() {
- return (await this._actualHeaders()).headersArray().slice();
- }
- async headerValue(name) {
- return (await this._actualHeaders()).get(name);
- }
- async headerValues(name) {
- return (await this._actualHeaders()).getAll(name);
- }
- async finished() {
- return await this.request()._targetClosedScope().race(this._finishedPromise);
- }
- async body() {
- return (await this._channel.body()).binary;
- }
- async text() {
- const content = await this.body();
- return content.toString("utf8");
- }
- async json() {
- const content = await this.text();
- return JSON.parse(content);
- }
- request() {
- return this._request;
- }
- frame() {
- return this._request.frame();
- }
- async serverAddr() {
- return (await this._channel.serverAddr()).value || null;
- }
- async securityDetails() {
- return (await this._channel.securityDetails()).value || null;
- }
-}
-class WebSocket extends import_channelOwner.ChannelOwner {
- static from(webSocket) {
- return webSocket._object;
- }
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._isClosed = false;
- this._page = parent;
- this._channel.on("frameSent", (event) => {
- if (event.opcode === 1)
- this.emit(import_events.Events.WebSocket.FrameSent, { payload: event.data });
- else if (event.opcode === 2)
- this.emit(import_events.Events.WebSocket.FrameSent, { payload: Buffer.from(event.data, "base64") });
- });
- this._channel.on("frameReceived", (event) => {
- if (event.opcode === 1)
- this.emit(import_events.Events.WebSocket.FrameReceived, { payload: event.data });
- else if (event.opcode === 2)
- this.emit(import_events.Events.WebSocket.FrameReceived, { payload: Buffer.from(event.data, "base64") });
- });
- this._channel.on("socketError", ({ error }) => this.emit(import_events.Events.WebSocket.Error, error));
- this._channel.on("close", () => {
- this._isClosed = true;
- this.emit(import_events.Events.WebSocket.Close, this);
- });
- }
- url() {
- return this._initializer.url;
- }
- isClosed() {
- return this._isClosed;
- }
- async waitForEvent(event, optionsOrPredicate = {}) {
- return await this._wrapApiCall(async () => {
- const timeout = this._page._timeoutSettings.timeout(typeof optionsOrPredicate === "function" ? {} : optionsOrPredicate);
- const predicate = typeof optionsOrPredicate === "function" ? optionsOrPredicate : optionsOrPredicate.predicate;
- const waiter = import_waiter.Waiter.createForEvent(this, event);
- waiter.rejectOnTimeout(timeout, `Timeout ${timeout}ms exceeded while waiting for event "${event}"`);
- if (event !== import_events.Events.WebSocket.Error)
- waiter.rejectOnEvent(this, import_events.Events.WebSocket.Error, new Error("Socket error"));
- if (event !== import_events.Events.WebSocket.Close)
- waiter.rejectOnEvent(this, import_events.Events.WebSocket.Close, new Error("Socket closed"));
- waiter.rejectOnEvent(this._page, import_events.Events.Page.Close, () => this._page._closeErrorWithReason());
- const result = await waiter.waitForEvent(this, event, predicate);
- waiter.dispose();
- return result;
- });
- }
-}
-function validateHeaders(headers) {
- for (const key of Object.keys(headers)) {
- const value = headers[key];
- if (!Object.is(value, void 0) && !(0, import_rtti.isString)(value))
- throw new Error(`Expected value of header "${key}" to be String, but "${typeof value}" is found.`);
- }
-}
-class RouteHandler {
- constructor(platform, baseURL, url, handler, times = Number.MAX_SAFE_INTEGER) {
- this.handledCount = 0;
- this._ignoreException = false;
- this._activeInvocations = /* @__PURE__ */ new Set();
- this._baseURL = baseURL;
- this._times = times;
- this.url = url;
- this.handler = handler;
- this._savedZone = platform.zones.current().pop();
- }
- static prepareInterceptionPatterns(handlers) {
- const patterns = [];
- let all = false;
- for (const handler of handlers) {
- if ((0, import_rtti.isString)(handler.url))
- patterns.push({ glob: handler.url });
- else if ((0, import_rtti.isRegExp)(handler.url))
- patterns.push({ regexSource: handler.url.source, regexFlags: handler.url.flags });
- else
- all = true;
- }
- if (all)
- return [{ glob: "**/*" }];
- return patterns;
- }
- matches(requestURL) {
- return (0, import_urlMatch.urlMatches)(this._baseURL, requestURL, this.url);
- }
- async handle(route) {
- return await this._savedZone.run(async () => this._handleImpl(route));
- }
- async _handleImpl(route) {
- const handlerInvocation = { complete: new import_manualPromise.ManualPromise(), route };
- this._activeInvocations.add(handlerInvocation);
- try {
- return await this._handleInternal(route);
- } catch (e) {
- if (this._ignoreException)
- return false;
- if ((0, import_errors.isTargetClosedError)(e)) {
- (0, import_stackTrace.rewriteErrorMessage)(e, `"${e.message}" while running route callback.
-Consider awaiting \`await page.unrouteAll({ behavior: 'ignoreErrors' })\`
-before the end of the test to ignore remaining routes in flight.`);
- }
- throw e;
- } finally {
- handlerInvocation.complete.resolve();
- this._activeInvocations.delete(handlerInvocation);
- }
- }
- async stop(behavior) {
- if (behavior === "ignoreErrors") {
- this._ignoreException = true;
- } else {
- const promises = [];
- for (const activation of this._activeInvocations) {
- if (!activation.route._didThrow)
- promises.push(activation.complete);
- }
- await Promise.all(promises);
- }
- }
- async _handleInternal(route) {
- ++this.handledCount;
- const handledPromise = route._startHandling();
- const handler = this.handler;
- const [handled] = await Promise.all([
- handledPromise,
- handler(route, route.request())
- ]);
- return handled;
- }
- willExpire() {
- return this.handledCount + 1 >= this._times;
- }
-}
-class RawHeaders {
- constructor(headers) {
- this._headersMap = new import_multimap.MultiMap();
- this._headersArray = headers;
- for (const header of headers)
- this._headersMap.set(header.name.toLowerCase(), header.value);
- }
- static _fromHeadersObjectLossy(headers) {
- const headersArray = Object.entries(headers).map(([name, value]) => ({
- name,
- value
- })).filter((header) => header.value !== void 0);
- return new RawHeaders(headersArray);
- }
- get(name) {
- const values = this.getAll(name);
- if (!values || !values.length)
- return null;
- return values.join(name.toLowerCase() === "set-cookie" ? "\n" : ", ");
- }
- getAll(name) {
- return [...this._headersMap.get(name.toLowerCase())];
- }
- headers() {
- const result = {};
- for (const name of this._headersMap.keys())
- result[name] = this.get(name);
- return result;
- }
- headersArray() {
- return this._headersArray;
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- RawHeaders,
- Request,
- Response,
- Route,
- RouteHandler,
- WebSocket,
- WebSocketRoute,
- WebSocketRouteHandler,
- validateHeaders
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/page.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/page.js
deleted file mode 100644
index 0a6a761..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/page.js
+++ /dev/null
@@ -1,745 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var page_exports = {};
-__export(page_exports, {
- BindingCall: () => BindingCall,
- Page: () => Page
-});
-module.exports = __toCommonJS(page_exports);
-var import_artifact = require("./artifact");
-var import_channelOwner = require("./channelOwner");
-var import_clientHelper = require("./clientHelper");
-var import_coverage = require("./coverage");
-var import_download = require("./download");
-var import_elementHandle = require("./elementHandle");
-var import_errors = require("./errors");
-var import_events = require("./events");
-var import_fileChooser = require("./fileChooser");
-var import_frame = require("./frame");
-var import_harRouter = require("./harRouter");
-var import_input = require("./input");
-var import_jsHandle = require("./jsHandle");
-var import_network = require("./network");
-var import_video = require("./video");
-var import_waiter = require("./waiter");
-var import_worker = require("./worker");
-var import_timeoutSettings = require("./timeoutSettings");
-var import_assert = require("../utils/isomorphic/assert");
-var import_fileUtils = require("./fileUtils");
-var import_headers = require("../utils/isomorphic/headers");
-var import_stringUtils = require("../utils/isomorphic/stringUtils");
-var import_urlMatch = require("../utils/isomorphic/urlMatch");
-var import_manualPromise = require("../utils/isomorphic/manualPromise");
-var import_rtti = require("../utils/isomorphic/rtti");
-var import_consoleMessage = require("./consoleMessage");
-var import_pageAgent = require("./pageAgent");
-class Page extends import_channelOwner.ChannelOwner {
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._frames = /* @__PURE__ */ new Set();
- this._workers = /* @__PURE__ */ new Set();
- this._closed = false;
- this._closedOrCrashedScope = new import_manualPromise.LongStandingScope();
- this._routes = [];
- this._webSocketRoutes = [];
- this._bindings = /* @__PURE__ */ new Map();
- this._video = null;
- this._closeWasCalled = false;
- this._harRouters = [];
- this._locatorHandlers = /* @__PURE__ */ new Map();
- this._instrumentation.onPage(this);
- this._browserContext = parent;
- this._timeoutSettings = new import_timeoutSettings.TimeoutSettings(this._platform, this._browserContext._timeoutSettings);
- this.keyboard = new import_input.Keyboard(this);
- this.mouse = new import_input.Mouse(this);
- this.request = this._browserContext.request;
- this.touchscreen = new import_input.Touchscreen(this);
- this.clock = this._browserContext.clock;
- this._mainFrame = import_frame.Frame.from(initializer.mainFrame);
- this._mainFrame._page = this;
- this._frames.add(this._mainFrame);
- this._viewportSize = initializer.viewportSize;
- this._closed = initializer.isClosed;
- this._opener = Page.fromNullable(initializer.opener);
- this._channel.on("bindingCall", ({ binding }) => this._onBinding(BindingCall.from(binding)));
- this._channel.on("close", () => this._onClose());
- this._channel.on("crash", () => this._onCrash());
- this._channel.on("download", ({ url, suggestedFilename, artifact }) => {
- const artifactObject = import_artifact.Artifact.from(artifact);
- this.emit(import_events.Events.Page.Download, new import_download.Download(this, url, suggestedFilename, artifactObject));
- });
- this._channel.on("fileChooser", ({ element, isMultiple }) => this.emit(import_events.Events.Page.FileChooser, new import_fileChooser.FileChooser(this, import_elementHandle.ElementHandle.from(element), isMultiple)));
- this._channel.on("frameAttached", ({ frame }) => this._onFrameAttached(import_frame.Frame.from(frame)));
- this._channel.on("frameDetached", ({ frame }) => this._onFrameDetached(import_frame.Frame.from(frame)));
- this._channel.on("locatorHandlerTriggered", ({ uid }) => this._onLocatorHandlerTriggered(uid));
- this._channel.on("route", ({ route }) => this._onRoute(import_network.Route.from(route)));
- this._channel.on("webSocketRoute", ({ webSocketRoute }) => this._onWebSocketRoute(import_network.WebSocketRoute.from(webSocketRoute)));
- this._channel.on("video", ({ artifact }) => {
- const artifactObject = import_artifact.Artifact.from(artifact);
- this._forceVideo()._artifactReady(artifactObject);
- });
- this._channel.on("viewportSizeChanged", ({ viewportSize }) => this._viewportSize = viewportSize);
- this._channel.on("webSocket", ({ webSocket }) => this.emit(import_events.Events.Page.WebSocket, import_network.WebSocket.from(webSocket)));
- this._channel.on("worker", ({ worker }) => this._onWorker(import_worker.Worker.from(worker)));
- this.coverage = new import_coverage.Coverage(this._channel);
- this.once(import_events.Events.Page.Close, () => this._closedOrCrashedScope.close(this._closeErrorWithReason()));
- this.once(import_events.Events.Page.Crash, () => this._closedOrCrashedScope.close(new import_errors.TargetClosedError()));
- this._setEventToSubscriptionMapping(/* @__PURE__ */ new Map([
- [import_events.Events.Page.Console, "console"],
- [import_events.Events.Page.Dialog, "dialog"],
- [import_events.Events.Page.Request, "request"],
- [import_events.Events.Page.Response, "response"],
- [import_events.Events.Page.RequestFinished, "requestFinished"],
- [import_events.Events.Page.RequestFailed, "requestFailed"],
- [import_events.Events.Page.FileChooser, "fileChooser"]
- ]));
- }
- static from(page) {
- return page._object;
- }
- static fromNullable(page) {
- return page ? Page.from(page) : null;
- }
- _onFrameAttached(frame) {
- frame._page = this;
- this._frames.add(frame);
- if (frame._parentFrame)
- frame._parentFrame._childFrames.add(frame);
- this.emit(import_events.Events.Page.FrameAttached, frame);
- }
- _onFrameDetached(frame) {
- this._frames.delete(frame);
- frame._detached = true;
- if (frame._parentFrame)
- frame._parentFrame._childFrames.delete(frame);
- this.emit(import_events.Events.Page.FrameDetached, frame);
- }
- async _onRoute(route) {
- route._context = this.context();
- const routeHandlers = this._routes.slice();
- for (const routeHandler of routeHandlers) {
- if (this._closeWasCalled || this._browserContext._closingStatus !== "none")
- return;
- if (!routeHandler.matches(route.request().url()))
- continue;
- const index = this._routes.indexOf(routeHandler);
- if (index === -1)
- continue;
- if (routeHandler.willExpire())
- this._routes.splice(index, 1);
- const handled = await routeHandler.handle(route);
- if (!this._routes.length)
- this._updateInterceptionPatterns({ internal: true }).catch(() => {
- });
- if (handled)
- return;
- }
- await this._browserContext._onRoute(route);
- }
- async _onWebSocketRoute(webSocketRoute) {
- const routeHandler = this._webSocketRoutes.find((route) => route.matches(webSocketRoute.url()));
- if (routeHandler)
- await routeHandler.handle(webSocketRoute);
- else
- await this._browserContext._onWebSocketRoute(webSocketRoute);
- }
- async _onBinding(bindingCall) {
- const func = this._bindings.get(bindingCall._initializer.name);
- if (func) {
- await bindingCall.call(func);
- return;
- }
- await this._browserContext._onBinding(bindingCall);
- }
- _onWorker(worker) {
- this._workers.add(worker);
- worker._page = this;
- this.emit(import_events.Events.Page.Worker, worker);
- }
- _onClose() {
- this._closed = true;
- this._browserContext._pages.delete(this);
- this._disposeHarRouters();
- this.emit(import_events.Events.Page.Close, this);
- }
- _onCrash() {
- this.emit(import_events.Events.Page.Crash, this);
- }
- context() {
- return this._browserContext;
- }
- async opener() {
- if (!this._opener || this._opener.isClosed())
- return null;
- return this._opener;
- }
- mainFrame() {
- return this._mainFrame;
- }
- frame(frameSelector) {
- const name = (0, import_rtti.isString)(frameSelector) ? frameSelector : frameSelector.name;
- const url = (0, import_rtti.isObject)(frameSelector) ? frameSelector.url : void 0;
- (0, import_assert.assert)(name || url, "Either name or url matcher should be specified");
- return this.frames().find((f) => {
- if (name)
- return f.name() === name;
- return (0, import_urlMatch.urlMatches)(this._browserContext._options.baseURL, f.url(), url);
- }) || null;
- }
- frames() {
- return [...this._frames];
- }
- setDefaultNavigationTimeout(timeout) {
- this._timeoutSettings.setDefaultNavigationTimeout(timeout);
- }
- setDefaultTimeout(timeout) {
- this._timeoutSettings.setDefaultTimeout(timeout);
- }
- _forceVideo() {
- if (!this._video)
- this._video = new import_video.Video(this, this._connection);
- return this._video;
- }
- video() {
- if (!this._browserContext._options.recordVideo)
- return null;
- return this._forceVideo();
- }
- async $(selector, options) {
- return await this._mainFrame.$(selector, options);
- }
- async waitForSelector(selector, options) {
- return await this._mainFrame.waitForSelector(selector, options);
- }
- async dispatchEvent(selector, type, eventInit, options) {
- return await this._mainFrame.dispatchEvent(selector, type, eventInit, options);
- }
- async evaluateHandle(pageFunction, arg) {
- (0, import_jsHandle.assertMaxArguments)(arguments.length, 2);
- return await this._mainFrame.evaluateHandle(pageFunction, arg);
- }
- async $eval(selector, pageFunction, arg) {
- (0, import_jsHandle.assertMaxArguments)(arguments.length, 3);
- return await this._mainFrame.$eval(selector, pageFunction, arg);
- }
- async $$eval(selector, pageFunction, arg) {
- (0, import_jsHandle.assertMaxArguments)(arguments.length, 3);
- return await this._mainFrame.$$eval(selector, pageFunction, arg);
- }
- async $$(selector) {
- return await this._mainFrame.$$(selector);
- }
- async addScriptTag(options = {}) {
- return await this._mainFrame.addScriptTag(options);
- }
- async addStyleTag(options = {}) {
- return await this._mainFrame.addStyleTag(options);
- }
- async exposeFunction(name, callback) {
- await this._channel.exposeBinding({ name });
- const binding = (source, ...args) => callback(...args);
- this._bindings.set(name, binding);
- }
- async exposeBinding(name, callback, options = {}) {
- await this._channel.exposeBinding({ name, needsHandle: options.handle });
- this._bindings.set(name, callback);
- }
- async setExtraHTTPHeaders(headers) {
- (0, import_network.validateHeaders)(headers);
- await this._channel.setExtraHTTPHeaders({ headers: (0, import_headers.headersObjectToArray)(headers) });
- }
- url() {
- return this._mainFrame.url();
- }
- async content() {
- return await this._mainFrame.content();
- }
- async setContent(html, options) {
- return await this._mainFrame.setContent(html, options);
- }
- async goto(url, options) {
- return await this._mainFrame.goto(url, options);
- }
- async reload(options = {}) {
- const waitUntil = (0, import_frame.verifyLoadState)("waitUntil", options.waitUntil === void 0 ? "load" : options.waitUntil);
- return import_network.Response.fromNullable((await this._channel.reload({ ...options, waitUntil, timeout: this._timeoutSettings.navigationTimeout(options) })).response);
- }
- async addLocatorHandler(locator, handler, options = {}) {
- if (locator._frame !== this._mainFrame)
- throw new Error(`Locator must belong to the main frame of this page`);
- if (options.times === 0)
- return;
- const { uid } = await this._channel.registerLocatorHandler({ selector: locator._selector, noWaitAfter: options.noWaitAfter });
- this._locatorHandlers.set(uid, { locator, handler, times: options.times });
- }
- async _onLocatorHandlerTriggered(uid) {
- let remove = false;
- try {
- const handler = this._locatorHandlers.get(uid);
- if (handler && handler.times !== 0) {
- if (handler.times !== void 0)
- handler.times--;
- await handler.handler(handler.locator);
- }
- remove = handler?.times === 0;
- } finally {
- if (remove)
- this._locatorHandlers.delete(uid);
- this._channel.resolveLocatorHandlerNoReply({ uid, remove }).catch(() => {
- });
- }
- }
- async removeLocatorHandler(locator) {
- for (const [uid, data] of this._locatorHandlers) {
- if (data.locator._equals(locator)) {
- this._locatorHandlers.delete(uid);
- await this._channel.unregisterLocatorHandler({ uid }).catch(() => {
- });
- }
- }
- }
- async waitForLoadState(state, options) {
- return await this._mainFrame.waitForLoadState(state, options);
- }
- async waitForNavigation(options) {
- return await this._mainFrame.waitForNavigation(options);
- }
- async waitForURL(url, options) {
- return await this._mainFrame.waitForURL(url, options);
- }
- async waitForRequest(urlOrPredicate, options = {}) {
- const predicate = async (request) => {
- if ((0, import_rtti.isString)(urlOrPredicate) || (0, import_rtti.isRegExp)(urlOrPredicate))
- return (0, import_urlMatch.urlMatches)(this._browserContext._options.baseURL, request.url(), urlOrPredicate);
- return await urlOrPredicate(request);
- };
- const trimmedUrl = trimUrl(urlOrPredicate);
- const logLine = trimmedUrl ? `waiting for request ${trimmedUrl}` : void 0;
- return await this._waitForEvent(import_events.Events.Page.Request, { predicate, timeout: options.timeout }, logLine);
- }
- async waitForResponse(urlOrPredicate, options = {}) {
- const predicate = async (response) => {
- if ((0, import_rtti.isString)(urlOrPredicate) || (0, import_rtti.isRegExp)(urlOrPredicate))
- return (0, import_urlMatch.urlMatches)(this._browserContext._options.baseURL, response.url(), urlOrPredicate);
- return await urlOrPredicate(response);
- };
- const trimmedUrl = trimUrl(urlOrPredicate);
- const logLine = trimmedUrl ? `waiting for response ${trimmedUrl}` : void 0;
- return await this._waitForEvent(import_events.Events.Page.Response, { predicate, timeout: options.timeout }, logLine);
- }
- async waitForEvent(event, optionsOrPredicate = {}) {
- return await this._waitForEvent(event, optionsOrPredicate, `waiting for event "${event}"`);
- }
- _closeErrorWithReason() {
- return new import_errors.TargetClosedError(this._closeReason || this._browserContext._effectiveCloseReason());
- }
- async _waitForEvent(event, optionsOrPredicate, logLine) {
- return await this._wrapApiCall(async () => {
- const timeout = this._timeoutSettings.timeout(typeof optionsOrPredicate === "function" ? {} : optionsOrPredicate);
- const predicate = typeof optionsOrPredicate === "function" ? optionsOrPredicate : optionsOrPredicate.predicate;
- const waiter = import_waiter.Waiter.createForEvent(this, event);
- if (logLine)
- waiter.log(logLine);
- waiter.rejectOnTimeout(timeout, `Timeout ${timeout}ms exceeded while waiting for event "${event}"`);
- if (event !== import_events.Events.Page.Crash)
- waiter.rejectOnEvent(this, import_events.Events.Page.Crash, new Error("Page crashed"));
- if (event !== import_events.Events.Page.Close)
- waiter.rejectOnEvent(this, import_events.Events.Page.Close, () => this._closeErrorWithReason());
- const result = await waiter.waitForEvent(this, event, predicate);
- waiter.dispose();
- return result;
- });
- }
- async goBack(options = {}) {
- const waitUntil = (0, import_frame.verifyLoadState)("waitUntil", options.waitUntil === void 0 ? "load" : options.waitUntil);
- return import_network.Response.fromNullable((await this._channel.goBack({ ...options, waitUntil, timeout: this._timeoutSettings.navigationTimeout(options) })).response);
- }
- async goForward(options = {}) {
- const waitUntil = (0, import_frame.verifyLoadState)("waitUntil", options.waitUntil === void 0 ? "load" : options.waitUntil);
- return import_network.Response.fromNullable((await this._channel.goForward({ ...options, waitUntil, timeout: this._timeoutSettings.navigationTimeout(options) })).response);
- }
- async requestGC() {
- await this._channel.requestGC();
- }
- async emulateMedia(options = {}) {
- await this._channel.emulateMedia({
- media: options.media === null ? "no-override" : options.media,
- colorScheme: options.colorScheme === null ? "no-override" : options.colorScheme,
- reducedMotion: options.reducedMotion === null ? "no-override" : options.reducedMotion,
- forcedColors: options.forcedColors === null ? "no-override" : options.forcedColors,
- contrast: options.contrast === null ? "no-override" : options.contrast
- });
- }
- async setViewportSize(viewportSize) {
- this._viewportSize = viewportSize;
- await this._channel.setViewportSize({ viewportSize });
- }
- viewportSize() {
- return this._viewportSize || null;
- }
- async evaluate(pageFunction, arg) {
- (0, import_jsHandle.assertMaxArguments)(arguments.length, 2);
- return await this._mainFrame.evaluate(pageFunction, arg);
- }
- async _evaluateFunction(functionDeclaration) {
- return this._mainFrame._evaluateFunction(functionDeclaration);
- }
- async addInitScript(script, arg) {
- const source = await (0, import_clientHelper.evaluationScript)(this._platform, script, arg);
- await this._channel.addInitScript({ source });
- }
- async route(url, handler, options = {}) {
- this._routes.unshift(new import_network.RouteHandler(this._platform, this._browserContext._options.baseURL, url, handler, options.times));
- await this._updateInterceptionPatterns({ title: "Route requests" });
- }
- async routeFromHAR(har, options = {}) {
- const localUtils = this._connection.localUtils();
- if (!localUtils)
- throw new Error("Route from har is not supported in thin clients");
- if (options.update) {
- await this._browserContext._recordIntoHAR(har, this, options);
- return;
- }
- const harRouter = await import_harRouter.HarRouter.create(localUtils, har, options.notFound || "abort", { urlMatch: options.url });
- this._harRouters.push(harRouter);
- await harRouter.addPageRoute(this);
- }
- async routeWebSocket(url, handler) {
- this._webSocketRoutes.unshift(new import_network.WebSocketRouteHandler(this._browserContext._options.baseURL, url, handler));
- await this._updateWebSocketInterceptionPatterns({ title: "Route WebSockets" });
- }
- _disposeHarRouters() {
- this._harRouters.forEach((router) => router.dispose());
- this._harRouters = [];
- }
- async unrouteAll(options) {
- await this._unrouteInternal(this._routes, [], options?.behavior);
- this._disposeHarRouters();
- }
- async unroute(url, handler) {
- const removed = [];
- const remaining = [];
- for (const route of this._routes) {
- if ((0, import_urlMatch.urlMatchesEqual)(route.url, url) && (!handler || route.handler === handler))
- removed.push(route);
- else
- remaining.push(route);
- }
- await this._unrouteInternal(removed, remaining, "default");
- }
- async _unrouteInternal(removed, remaining, behavior) {
- this._routes = remaining;
- if (behavior && behavior !== "default") {
- const promises = removed.map((routeHandler) => routeHandler.stop(behavior));
- await Promise.all(promises);
- }
- await this._updateInterceptionPatterns({ title: "Unroute requests" });
- }
- async _updateInterceptionPatterns(options) {
- const patterns = import_network.RouteHandler.prepareInterceptionPatterns(this._routes);
- await this._wrapApiCall(() => this._channel.setNetworkInterceptionPatterns({ patterns }), options);
- }
- async _updateWebSocketInterceptionPatterns(options) {
- const patterns = import_network.WebSocketRouteHandler.prepareInterceptionPatterns(this._webSocketRoutes);
- await this._wrapApiCall(() => this._channel.setWebSocketInterceptionPatterns({ patterns }), options);
- }
- async screenshot(options = {}) {
- const mask = options.mask;
- const copy = { ...options, mask: void 0, timeout: this._timeoutSettings.timeout(options) };
- if (!copy.type)
- copy.type = (0, import_elementHandle.determineScreenshotType)(options);
- if (mask) {
- copy.mask = mask.map((locator) => ({
- frame: locator._frame._channel,
- selector: locator._selector
- }));
- }
- const result = await this._channel.screenshot(copy);
- if (options.path) {
- await (0, import_fileUtils.mkdirIfNeeded)(this._platform, options.path);
- await this._platform.fs().promises.writeFile(options.path, result.binary);
- }
- return result.binary;
- }
- async _expectScreenshot(options) {
- const mask = options?.mask ? options?.mask.map((locator2) => ({
- frame: locator2._frame._channel,
- selector: locator2._selector
- })) : void 0;
- const locator = options.locator ? {
- frame: options.locator._frame._channel,
- selector: options.locator._selector
- } : void 0;
- return await this._channel.expectScreenshot({
- ...options,
- isNot: !!options.isNot,
- locator,
- mask
- });
- }
- async title() {
- return await this._mainFrame.title();
- }
- async bringToFront() {
- await this._channel.bringToFront();
- }
- async [Symbol.asyncDispose]() {
- await this.close();
- }
- async close(options = {}) {
- this._closeReason = options.reason;
- if (!options.runBeforeUnload)
- this._closeWasCalled = true;
- try {
- if (this._ownedContext)
- await this._ownedContext.close();
- else
- await this._channel.close(options);
- } catch (e) {
- if ((0, import_errors.isTargetClosedError)(e) && !options.runBeforeUnload)
- return;
- throw e;
- }
- }
- isClosed() {
- return this._closed;
- }
- async click(selector, options) {
- return await this._mainFrame.click(selector, options);
- }
- async dragAndDrop(source, target, options) {
- return await this._mainFrame.dragAndDrop(source, target, options);
- }
- async dblclick(selector, options) {
- await this._mainFrame.dblclick(selector, options);
- }
- async tap(selector, options) {
- return await this._mainFrame.tap(selector, options);
- }
- async fill(selector, value, options) {
- return await this._mainFrame.fill(selector, value, options);
- }
- async consoleMessages() {
- const { messages } = await this._channel.consoleMessages();
- return messages.map((message) => new import_consoleMessage.ConsoleMessage(this._platform, message, this, null));
- }
- async pageErrors() {
- const { errors } = await this._channel.pageErrors();
- return errors.map((error) => (0, import_errors.parseError)(error));
- }
- locator(selector, options) {
- return this.mainFrame().locator(selector, options);
- }
- getByTestId(testId) {
- return this.mainFrame().getByTestId(testId);
- }
- getByAltText(text, options) {
- return this.mainFrame().getByAltText(text, options);
- }
- getByLabel(text, options) {
- return this.mainFrame().getByLabel(text, options);
- }
- getByPlaceholder(text, options) {
- return this.mainFrame().getByPlaceholder(text, options);
- }
- getByText(text, options) {
- return this.mainFrame().getByText(text, options);
- }
- getByTitle(text, options) {
- return this.mainFrame().getByTitle(text, options);
- }
- getByRole(role, options = {}) {
- return this.mainFrame().getByRole(role, options);
- }
- frameLocator(selector) {
- return this.mainFrame().frameLocator(selector);
- }
- async focus(selector, options) {
- return await this._mainFrame.focus(selector, options);
- }
- async textContent(selector, options) {
- return await this._mainFrame.textContent(selector, options);
- }
- async innerText(selector, options) {
- return await this._mainFrame.innerText(selector, options);
- }
- async innerHTML(selector, options) {
- return await this._mainFrame.innerHTML(selector, options);
- }
- async getAttribute(selector, name, options) {
- return await this._mainFrame.getAttribute(selector, name, options);
- }
- async inputValue(selector, options) {
- return await this._mainFrame.inputValue(selector, options);
- }
- async isChecked(selector, options) {
- return await this._mainFrame.isChecked(selector, options);
- }
- async isDisabled(selector, options) {
- return await this._mainFrame.isDisabled(selector, options);
- }
- async isEditable(selector, options) {
- return await this._mainFrame.isEditable(selector, options);
- }
- async isEnabled(selector, options) {
- return await this._mainFrame.isEnabled(selector, options);
- }
- async isHidden(selector, options) {
- return await this._mainFrame.isHidden(selector, options);
- }
- async isVisible(selector, options) {
- return await this._mainFrame.isVisible(selector, options);
- }
- async hover(selector, options) {
- return await this._mainFrame.hover(selector, options);
- }
- async selectOption(selector, values, options) {
- return await this._mainFrame.selectOption(selector, values, options);
- }
- async setInputFiles(selector, files, options) {
- return await this._mainFrame.setInputFiles(selector, files, options);
- }
- async type(selector, text, options) {
- return await this._mainFrame.type(selector, text, options);
- }
- async press(selector, key, options) {
- return await this._mainFrame.press(selector, key, options);
- }
- async check(selector, options) {
- return await this._mainFrame.check(selector, options);
- }
- async uncheck(selector, options) {
- return await this._mainFrame.uncheck(selector, options);
- }
- async setChecked(selector, checked, options) {
- return await this._mainFrame.setChecked(selector, checked, options);
- }
- async waitForTimeout(timeout) {
- return await this._mainFrame.waitForTimeout(timeout);
- }
- async waitForFunction(pageFunction, arg, options) {
- return await this._mainFrame.waitForFunction(pageFunction, arg, options);
- }
- async requests() {
- const { requests } = await this._channel.requests();
- return requests.map((request) => import_network.Request.from(request));
- }
- workers() {
- return [...this._workers];
- }
- async pause(_options) {
- if (this._platform.isJSDebuggerAttached())
- return;
- const defaultNavigationTimeout = this._browserContext._timeoutSettings.defaultNavigationTimeout();
- const defaultTimeout = this._browserContext._timeoutSettings.defaultTimeout();
- this._browserContext.setDefaultNavigationTimeout(0);
- this._browserContext.setDefaultTimeout(0);
- this._instrumentation?.onWillPause({ keepTestTimeout: !!_options?.__testHookKeepTestTimeout });
- await this._closedOrCrashedScope.safeRace(this.context()._channel.pause());
- this._browserContext.setDefaultNavigationTimeout(defaultNavigationTimeout);
- this._browserContext.setDefaultTimeout(defaultTimeout);
- }
- async pdf(options = {}) {
- const transportOptions = { ...options };
- if (transportOptions.margin)
- transportOptions.margin = { ...transportOptions.margin };
- if (typeof options.width === "number")
- transportOptions.width = options.width + "px";
- if (typeof options.height === "number")
- transportOptions.height = options.height + "px";
- for (const margin of ["top", "right", "bottom", "left"]) {
- const index = margin;
- if (options.margin && typeof options.margin[index] === "number")
- transportOptions.margin[index] = transportOptions.margin[index] + "px";
- }
- const result = await this._channel.pdf(transportOptions);
- if (options.path) {
- const platform = this._platform;
- await platform.fs().promises.mkdir(platform.path().dirname(options.path), { recursive: true });
- await platform.fs().promises.writeFile(options.path, result.pdf);
- }
- return result.pdf;
- }
- // @ts-expect-error agents are hidden
- async agent(options = {}) {
- const params = {
- api: options.provider?.api,
- apiEndpoint: options.provider?.apiEndpoint,
- apiKey: options.provider?.apiKey,
- apiTimeout: options.provider?.apiTimeout,
- apiCacheFile: options.provider?._apiCacheFile,
- doNotRenderActive: options._doNotRenderActive,
- model: options.provider?.model,
- cacheFile: options.cache?.cacheFile,
- cacheOutFile: options.cache?.cacheOutFile,
- maxTokens: options.limits?.maxTokens,
- maxActions: options.limits?.maxActions,
- maxActionRetries: options.limits?.maxActionRetries,
- // @ts-expect-error runAgents is hidden
- secrets: options.secrets ? Object.entries(options.secrets).map(([name, value]) => ({ name, value })) : void 0,
- systemPrompt: options.systemPrompt
- };
- const { agent } = await this._channel.agent(params);
- const pageAgent = import_pageAgent.PageAgent.from(agent);
- pageAgent._expectTimeout = options?.expect?.timeout;
- return pageAgent;
- }
- async _snapshotForAI(options = {}) {
- return await this._channel.snapshotForAI({ timeout: this._timeoutSettings.timeout(options), track: options.track });
- }
-}
-class BindingCall extends import_channelOwner.ChannelOwner {
- static from(channel) {
- return channel._object;
- }
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- }
- async call(func) {
- try {
- const frame = import_frame.Frame.from(this._initializer.frame);
- const source = {
- context: frame._page.context(),
- page: frame._page,
- frame
- };
- let result;
- if (this._initializer.handle)
- result = await func(source, import_jsHandle.JSHandle.from(this._initializer.handle));
- else
- result = await func(source, ...this._initializer.args.map(import_jsHandle.parseResult));
- this._channel.resolve({ result: (0, import_jsHandle.serializeArgument)(result) }).catch(() => {
- });
- } catch (e) {
- this._channel.reject({ error: (0, import_errors.serializeError)(e) }).catch(() => {
- });
- }
- }
-}
-function trimUrl(param) {
- if ((0, import_rtti.isRegExp)(param))
- return `/${(0, import_stringUtils.trimStringWithEllipsis)(param.source, 50)}/${param.flags}`;
- if ((0, import_rtti.isString)(param))
- return `"${(0, import_stringUtils.trimStringWithEllipsis)(param, 50)}"`;
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- BindingCall,
- Page
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/pageAgent.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/pageAgent.js
deleted file mode 100644
index 3c2c195..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/pageAgent.js
+++ /dev/null
@@ -1,64 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var pageAgent_exports = {};
-__export(pageAgent_exports, {
- PageAgent: () => PageAgent
-});
-module.exports = __toCommonJS(pageAgent_exports);
-var import_channelOwner = require("./channelOwner");
-var import_events = require("./events");
-var import_page = require("./page");
-class PageAgent extends import_channelOwner.ChannelOwner {
- static from(channel) {
- return channel._object;
- }
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._page = import_page.Page.from(initializer.page);
- this._channel.on("turn", (params) => this.emit(import_events.Events.PageAgent.Turn, params));
- }
- async expect(expectation, options = {}) {
- const timeout = options.timeout ?? this._expectTimeout ?? 5e3;
- await this._channel.expect({ expectation, ...options, timeout });
- }
- async perform(task, options = {}) {
- const timeout = this._page._timeoutSettings.timeout(options);
- const { usage } = await this._channel.perform({ task, ...options, timeout });
- return { usage };
- }
- async extract(query, schema, options = {}) {
- const timeout = this._page._timeoutSettings.timeout(options);
- const { result, usage } = await this._channel.extract({ query, schema: this._page._platform.zodToJsonSchema(schema), ...options, timeout });
- return { result, usage };
- }
- async usage() {
- const { usage } = await this._channel.usage({});
- return usage;
- }
- async dispose() {
- await this._channel.dispose();
- }
- async [Symbol.asyncDispose]() {
- await this.dispose();
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- PageAgent
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/platform.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/platform.js
deleted file mode 100644
index 1a9cf50..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/platform.js
+++ /dev/null
@@ -1,77 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var platform_exports = {};
-__export(platform_exports, {
- emptyPlatform: () => emptyPlatform
-});
-module.exports = __toCommonJS(platform_exports);
-var import_colors = require("../utils/isomorphic/colors");
-const noopZone = {
- push: () => noopZone,
- pop: () => noopZone,
- run: (func) => func(),
- data: () => void 0
-};
-const emptyPlatform = {
- name: "empty",
- boxedStackPrefixes: () => [],
- calculateSha1: async () => {
- throw new Error("Not implemented");
- },
- colors: import_colors.webColors,
- createGuid: () => {
- throw new Error("Not implemented");
- },
- defaultMaxListeners: () => 10,
- env: {},
- fs: () => {
- throw new Error("Not implemented");
- },
- inspectCustom: void 0,
- isDebugMode: () => false,
- isJSDebuggerAttached: () => false,
- isLogEnabled(name) {
- return false;
- },
- isUnderTest: () => false,
- log(name, message) {
- },
- path: () => {
- throw new Error("Function not implemented.");
- },
- pathSeparator: "/",
- showInternalStackFrames: () => false,
- streamFile(path, writable) {
- throw new Error("Streams are not available");
- },
- streamReadable: (channel) => {
- throw new Error("Streams are not available");
- },
- streamWritable: (channel) => {
- throw new Error("Streams are not available");
- },
- zodToJsonSchema: (schema) => {
- throw new Error("Zod is not available");
- },
- zones: { empty: noopZone, current: () => noopZone }
-};
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- emptyPlatform
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/playwright.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/playwright.js
deleted file mode 100644
index db9da4c..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/playwright.js
+++ /dev/null
@@ -1,71 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var playwright_exports = {};
-__export(playwright_exports, {
- Playwright: () => Playwright
-});
-module.exports = __toCommonJS(playwright_exports);
-var import_android = require("./android");
-var import_browser = require("./browser");
-var import_browserType = require("./browserType");
-var import_channelOwner = require("./channelOwner");
-var import_electron = require("./electron");
-var import_errors = require("./errors");
-var import_fetch = require("./fetch");
-var import_selectors = require("./selectors");
-class Playwright extends import_channelOwner.ChannelOwner {
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this.request = new import_fetch.APIRequest(this);
- this.chromium = import_browserType.BrowserType.from(initializer.chromium);
- this.chromium._playwright = this;
- this.firefox = import_browserType.BrowserType.from(initializer.firefox);
- this.firefox._playwright = this;
- this.webkit = import_browserType.BrowserType.from(initializer.webkit);
- this.webkit._playwright = this;
- this._android = import_android.Android.from(initializer.android);
- this._android._playwright = this;
- this._electron = import_electron.Electron.from(initializer.electron);
- this._electron._playwright = this;
- this.devices = this._connection.localUtils()?.devices ?? {};
- this.selectors = new import_selectors.Selectors(this._connection._platform);
- this.errors = { TimeoutError: import_errors.TimeoutError };
- }
- static from(channel) {
- return channel._object;
- }
- _browserTypes() {
- return [this.chromium, this.firefox, this.webkit];
- }
- _preLaunchedBrowser() {
- const browser = import_browser.Browser.from(this._initializer.preLaunchedBrowser);
- browser._connectToBrowserType(this[browser._name], {}, void 0);
- return browser;
- }
- _allContexts() {
- return this._browserTypes().flatMap((type) => [...type._contexts]);
- }
- _allPages() {
- return this._allContexts().flatMap((context) => context.pages());
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Playwright
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/selectors.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/selectors.js
deleted file mode 100644
index d831be9..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/selectors.js
+++ /dev/null
@@ -1,55 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var selectors_exports = {};
-__export(selectors_exports, {
- Selectors: () => Selectors
-});
-module.exports = __toCommonJS(selectors_exports);
-var import_clientHelper = require("./clientHelper");
-var import_locator = require("./locator");
-class Selectors {
- constructor(platform) {
- this._selectorEngines = [];
- this._contextsForSelectors = /* @__PURE__ */ new Set();
- this._platform = platform;
- }
- async register(name, script, options = {}) {
- if (this._selectorEngines.some((engine) => engine.name === name))
- throw new Error(`selectors.register: "${name}" selector engine has been already registered`);
- const source = await (0, import_clientHelper.evaluationScript)(this._platform, script, void 0, false);
- const selectorEngine = { ...options, name, source };
- for (const context of this._contextsForSelectors)
- await context._channel.registerSelectorEngine({ selectorEngine });
- this._selectorEngines.push(selectorEngine);
- }
- setTestIdAttribute(attributeName) {
- this._testIdAttributeName = attributeName;
- (0, import_locator.setTestIdAttribute)(attributeName);
- for (const context of this._contextsForSelectors)
- context._channel.setTestIdAttributeName({ testIdAttributeName: attributeName }).catch(() => {
- });
- }
- _withSelectorOptions(options) {
- return { ...options, selectorEngines: this._selectorEngines, testIdAttributeName: this._testIdAttributeName };
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Selectors
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/stream.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/stream.js
deleted file mode 100644
index ffcd068..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/stream.js
+++ /dev/null
@@ -1,39 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var stream_exports = {};
-__export(stream_exports, {
- Stream: () => Stream
-});
-module.exports = __toCommonJS(stream_exports);
-var import_channelOwner = require("./channelOwner");
-class Stream extends import_channelOwner.ChannelOwner {
- static from(Stream2) {
- return Stream2._object;
- }
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- }
- stream() {
- return this._platform.streamReadable(this._channel);
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Stream
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/timeoutSettings.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/timeoutSettings.js
deleted file mode 100644
index 0563633..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/timeoutSettings.js
+++ /dev/null
@@ -1,79 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var timeoutSettings_exports = {};
-__export(timeoutSettings_exports, {
- TimeoutSettings: () => TimeoutSettings
-});
-module.exports = __toCommonJS(timeoutSettings_exports);
-var import_time = require("../utils/isomorphic/time");
-class TimeoutSettings {
- constructor(platform, parent) {
- this._parent = parent;
- this._platform = platform;
- }
- setDefaultTimeout(timeout) {
- this._defaultTimeout = timeout;
- }
- setDefaultNavigationTimeout(timeout) {
- this._defaultNavigationTimeout = timeout;
- }
- defaultNavigationTimeout() {
- return this._defaultNavigationTimeout;
- }
- defaultTimeout() {
- return this._defaultTimeout;
- }
- navigationTimeout(options) {
- if (typeof options.timeout === "number")
- return options.timeout;
- if (this._defaultNavigationTimeout !== void 0)
- return this._defaultNavigationTimeout;
- if (this._platform.isDebugMode())
- return 0;
- if (this._defaultTimeout !== void 0)
- return this._defaultTimeout;
- if (this._parent)
- return this._parent.navigationTimeout(options);
- return import_time.DEFAULT_PLAYWRIGHT_TIMEOUT;
- }
- timeout(options) {
- if (typeof options.timeout === "number")
- return options.timeout;
- if (this._platform.isDebugMode())
- return 0;
- if (this._defaultTimeout !== void 0)
- return this._defaultTimeout;
- if (this._parent)
- return this._parent.timeout(options);
- return import_time.DEFAULT_PLAYWRIGHT_TIMEOUT;
- }
- launchTimeout(options) {
- if (typeof options.timeout === "number")
- return options.timeout;
- if (this._platform.isDebugMode())
- return 0;
- if (this._parent)
- return this._parent.launchTimeout(options);
- return import_time.DEFAULT_PLAYWRIGHT_LAUNCH_TIMEOUT;
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- TimeoutSettings
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/tracing.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/tracing.js
deleted file mode 100644
index a70974a..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/tracing.js
+++ /dev/null
@@ -1,119 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var tracing_exports = {};
-__export(tracing_exports, {
- Tracing: () => Tracing
-});
-module.exports = __toCommonJS(tracing_exports);
-var import_artifact = require("./artifact");
-var import_channelOwner = require("./channelOwner");
-class Tracing extends import_channelOwner.ChannelOwner {
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- this._includeSources = false;
- this._isLive = false;
- this._isTracing = false;
- }
- static from(channel) {
- return channel._object;
- }
- async start(options = {}) {
- await this._wrapApiCall(async () => {
- this._includeSources = !!options.sources;
- this._isLive = !!options._live;
- await this._channel.tracingStart({
- name: options.name,
- snapshots: options.snapshots,
- screenshots: options.screenshots,
- live: options._live
- });
- const { traceName } = await this._channel.tracingStartChunk({ name: options.name, title: options.title });
- await this._startCollectingStacks(traceName, this._isLive);
- });
- }
- async startChunk(options = {}) {
- await this._wrapApiCall(async () => {
- const { traceName } = await this._channel.tracingStartChunk(options);
- await this._startCollectingStacks(traceName, this._isLive);
- });
- }
- async group(name, options = {}) {
- await this._channel.tracingGroup({ name, location: options.location });
- }
- async groupEnd() {
- await this._channel.tracingGroupEnd();
- }
- async _startCollectingStacks(traceName, live) {
- if (!this._isTracing) {
- this._isTracing = true;
- this._connection.setIsTracing(true);
- }
- const result = await this._connection.localUtils()?.tracingStarted({ tracesDir: this._tracesDir, traceName, live });
- this._stacksId = result?.stacksId;
- }
- async stopChunk(options = {}) {
- await this._wrapApiCall(async () => {
- await this._doStopChunk(options.path);
- });
- }
- async stop(options = {}) {
- await this._wrapApiCall(async () => {
- await this._doStopChunk(options.path);
- await this._channel.tracingStop();
- });
- }
- async _doStopChunk(filePath) {
- this._resetStackCounter();
- if (!filePath) {
- await this._channel.tracingStopChunk({ mode: "discard" });
- if (this._stacksId)
- await this._connection.localUtils().traceDiscarded({ stacksId: this._stacksId });
- return;
- }
- const localUtils = this._connection.localUtils();
- if (!localUtils)
- throw new Error("Cannot save trace in thin clients");
- const isLocal = !this._connection.isRemote();
- if (isLocal) {
- const result2 = await this._channel.tracingStopChunk({ mode: "entries" });
- await localUtils.zip({ zipFile: filePath, entries: result2.entries, mode: "write", stacksId: this._stacksId, includeSources: this._includeSources });
- return;
- }
- const result = await this._channel.tracingStopChunk({ mode: "archive" });
- if (!result.artifact) {
- if (this._stacksId)
- await localUtils.traceDiscarded({ stacksId: this._stacksId });
- return;
- }
- const artifact = import_artifact.Artifact.from(result.artifact);
- await artifact.saveAs(filePath);
- await artifact.delete();
- await localUtils.zip({ zipFile: filePath, entries: [], mode: "append", stacksId: this._stacksId, includeSources: this._includeSources });
- }
- _resetStackCounter() {
- if (this._isTracing) {
- this._isTracing = false;
- this._connection.setIsTracing(false);
- }
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Tracing
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/types.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/types.js
deleted file mode 100644
index 56e8c53..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/types.js
+++ /dev/null
@@ -1,28 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var types_exports = {};
-__export(types_exports, {
- kLifecycleEvents: () => kLifecycleEvents
-});
-module.exports = __toCommonJS(types_exports);
-const kLifecycleEvents = /* @__PURE__ */ new Set(["load", "domcontentloaded", "networkidle", "commit"]);
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- kLifecycleEvents
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/video.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/video.js
deleted file mode 100644
index ddc8eb7..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/video.js
+++ /dev/null
@@ -1,59 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var video_exports = {};
-__export(video_exports, {
- Video: () => Video
-});
-module.exports = __toCommonJS(video_exports);
-var import_manualPromise = require("../utils/isomorphic/manualPromise");
-class Video {
- constructor(page, connection) {
- this._artifact = null;
- this._artifactReadyPromise = new import_manualPromise.ManualPromise();
- this._isRemote = false;
- this._isRemote = connection.isRemote();
- this._artifact = page._closedOrCrashedScope.safeRace(this._artifactReadyPromise);
- }
- _artifactReady(artifact) {
- this._artifactReadyPromise.resolve(artifact);
- }
- async path() {
- if (this._isRemote)
- throw new Error(`Path is not available when connecting remotely. Use saveAs() to save a local copy.`);
- const artifact = await this._artifact;
- if (!artifact)
- throw new Error("Page did not produce any video frames");
- return artifact._initializer.absolutePath;
- }
- async saveAs(path) {
- const artifact = await this._artifact;
- if (!artifact)
- throw new Error("Page did not produce any video frames");
- return await artifact.saveAs(path);
- }
- async delete() {
- const artifact = await this._artifact;
- if (artifact)
- await artifact.delete();
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Video
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/waiter.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/waiter.js
deleted file mode 100644
index 75eac08..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/waiter.js
+++ /dev/null
@@ -1,142 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var waiter_exports = {};
-__export(waiter_exports, {
- Waiter: () => Waiter
-});
-module.exports = __toCommonJS(waiter_exports);
-var import_errors = require("./errors");
-var import_stackTrace = require("../utils/isomorphic/stackTrace");
-class Waiter {
- constructor(channelOwner, event) {
- this._failures = [];
- this._logs = [];
- this._waitId = channelOwner._platform.createGuid();
- this._channelOwner = channelOwner;
- this._savedZone = channelOwner._platform.zones.current().pop();
- this._channelOwner._channel.waitForEventInfo({ info: { waitId: this._waitId, phase: "before", event } }).catch(() => {
- });
- this._dispose = [
- () => this._channelOwner._wrapApiCall(async () => {
- await this._channelOwner._channel.waitForEventInfo({ info: { waitId: this._waitId, phase: "after", error: this._error } });
- }, { internal: true }).catch(() => {
- })
- ];
- }
- static createForEvent(channelOwner, event) {
- return new Waiter(channelOwner, event);
- }
- async waitForEvent(emitter, event, predicate) {
- const { promise, dispose } = waitForEvent(emitter, event, this._savedZone, predicate);
- return await this.waitForPromise(promise, dispose);
- }
- rejectOnEvent(emitter, event, error, predicate) {
- const { promise, dispose } = waitForEvent(emitter, event, this._savedZone, predicate);
- this._rejectOn(promise.then(() => {
- throw typeof error === "function" ? error() : error;
- }), dispose);
- }
- rejectOnTimeout(timeout, message) {
- if (!timeout)
- return;
- const { promise, dispose } = waitForTimeout(timeout);
- this._rejectOn(promise.then(() => {
- throw new import_errors.TimeoutError(message);
- }), dispose);
- }
- rejectImmediately(error) {
- this._immediateError = error;
- }
- dispose() {
- for (const dispose of this._dispose)
- dispose();
- }
- async waitForPromise(promise, dispose) {
- try {
- if (this._immediateError)
- throw this._immediateError;
- const result = await Promise.race([promise, ...this._failures]);
- if (dispose)
- dispose();
- return result;
- } catch (e) {
- if (dispose)
- dispose();
- this._error = e.message;
- this.dispose();
- (0, import_stackTrace.rewriteErrorMessage)(e, e.message + formatLogRecording(this._logs));
- throw e;
- }
- }
- log(s) {
- this._logs.push(s);
- this._channelOwner._wrapApiCall(async () => {
- await this._channelOwner._channel.waitForEventInfo({ info: { waitId: this._waitId, phase: "log", message: s } });
- }, { internal: true }).catch(() => {
- });
- }
- _rejectOn(promise, dispose) {
- this._failures.push(promise);
- if (dispose)
- this._dispose.push(dispose);
- }
-}
-function waitForEvent(emitter, event, savedZone, predicate) {
- let listener;
- const promise = new Promise((resolve, reject) => {
- listener = async (eventArg) => {
- await savedZone.run(async () => {
- try {
- if (predicate && !await predicate(eventArg))
- return;
- emitter.removeListener(event, listener);
- resolve(eventArg);
- } catch (e) {
- emitter.removeListener(event, listener);
- reject(e);
- }
- });
- };
- emitter.addListener(event, listener);
- });
- const dispose = () => emitter.removeListener(event, listener);
- return { promise, dispose };
-}
-function waitForTimeout(timeout) {
- let timeoutId;
- const promise = new Promise((resolve) => timeoutId = setTimeout(resolve, timeout));
- const dispose = () => clearTimeout(timeoutId);
- return { promise, dispose };
-}
-function formatLogRecording(log) {
- if (!log.length)
- return "";
- const header = ` logs `;
- const headerLength = 60;
- const leftLength = (headerLength - header.length) / 2;
- const rightLength = headerLength - header.length - leftLength;
- return `
-${"=".repeat(leftLength)}${header}${"=".repeat(rightLength)}
-${log.join("\n")}
-${"=".repeat(headerLength)}`;
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Waiter
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/webError.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/webError.js
deleted file mode 100644
index f0eae68..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/webError.js
+++ /dev/null
@@ -1,39 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var webError_exports = {};
-__export(webError_exports, {
- WebError: () => WebError
-});
-module.exports = __toCommonJS(webError_exports);
-class WebError {
- constructor(page, error) {
- this._page = page;
- this._error = error;
- }
- page() {
- return this._page;
- }
- error() {
- return this._error;
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- WebError
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/webSocket.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/webSocket.js
deleted file mode 100644
index 4f7e47c..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/webSocket.js
+++ /dev/null
@@ -1,93 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var webSocket_exports = {};
-__export(webSocket_exports, {
- connectOverWebSocket: () => connectOverWebSocket
-});
-module.exports = __toCommonJS(webSocket_exports);
-var import_connection = require("./connection");
-async function connectOverWebSocket(parentConnection, params) {
- const localUtils = parentConnection.localUtils();
- const transport = localUtils ? new JsonPipeTransport(localUtils) : new WebSocketTransport();
- const connectHeaders = await transport.connect(params);
- const connection = new import_connection.Connection(parentConnection._platform, localUtils, parentConnection._instrumentation, connectHeaders);
- connection.markAsRemote();
- connection.on("close", () => transport.close());
- let closeError;
- const onTransportClosed = (reason) => {
- connection.close(reason || closeError);
- };
- transport.onClose((reason) => onTransportClosed(reason));
- connection.onmessage = (message) => transport.send(message).catch(() => onTransportClosed());
- transport.onMessage((message) => {
- try {
- connection.dispatch(message);
- } catch (e) {
- closeError = String(e);
- transport.close().catch(() => {
- });
- }
- });
- return connection;
-}
-class JsonPipeTransport {
- constructor(owner) {
- this._owner = owner;
- }
- async connect(params) {
- const { pipe, headers: connectHeaders } = await this._owner._channel.connect(params);
- this._pipe = pipe;
- return connectHeaders;
- }
- async send(message) {
- await this._pipe.send({ message });
- }
- onMessage(callback) {
- this._pipe.on("message", ({ message }) => callback(message));
- }
- onClose(callback) {
- this._pipe.on("closed", ({ reason }) => callback(reason));
- }
- async close() {
- await this._pipe.close().catch(() => {
- });
- }
-}
-class WebSocketTransport {
- async connect(params) {
- this._ws = new window.WebSocket(params.wsEndpoint);
- return [];
- }
- async send(message) {
- this._ws.send(JSON.stringify(message));
- }
- onMessage(callback) {
- this._ws.addEventListener("message", (event) => callback(JSON.parse(event.data)));
- }
- onClose(callback) {
- this._ws.addEventListener("close", () => callback());
- }
- async close() {
- this._ws.close();
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- connectOverWebSocket
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/worker.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/worker.js
deleted file mode 100644
index 9721759..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/worker.js
+++ /dev/null
@@ -1,85 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var worker_exports = {};
-__export(worker_exports, {
- Worker: () => Worker
-});
-module.exports = __toCommonJS(worker_exports);
-var import_channelOwner = require("./channelOwner");
-var import_errors = require("./errors");
-var import_events = require("./events");
-var import_jsHandle = require("./jsHandle");
-var import_manualPromise = require("../utils/isomorphic/manualPromise");
-var import_timeoutSettings = require("./timeoutSettings");
-var import_waiter = require("./waiter");
-class Worker extends import_channelOwner.ChannelOwner {
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- // Set for service workers.
- this._closedScope = new import_manualPromise.LongStandingScope();
- this._setEventToSubscriptionMapping(/* @__PURE__ */ new Map([
- [import_events.Events.Worker.Console, "console"]
- ]));
- this._channel.on("close", () => {
- if (this._page)
- this._page._workers.delete(this);
- if (this._context)
- this._context._serviceWorkers.delete(this);
- this.emit(import_events.Events.Worker.Close, this);
- });
- this.once(import_events.Events.Worker.Close, () => this._closedScope.close(this._page?._closeErrorWithReason() || new import_errors.TargetClosedError()));
- }
- static fromNullable(worker) {
- return worker ? Worker.from(worker) : null;
- }
- static from(worker) {
- return worker._object;
- }
- url() {
- return this._initializer.url;
- }
- async evaluate(pageFunction, arg) {
- (0, import_jsHandle.assertMaxArguments)(arguments.length, 2);
- const result = await this._channel.evaluateExpression({ expression: String(pageFunction), isFunction: typeof pageFunction === "function", arg: (0, import_jsHandle.serializeArgument)(arg) });
- return (0, import_jsHandle.parseResult)(result.value);
- }
- async evaluateHandle(pageFunction, arg) {
- (0, import_jsHandle.assertMaxArguments)(arguments.length, 2);
- const result = await this._channel.evaluateExpressionHandle({ expression: String(pageFunction), isFunction: typeof pageFunction === "function", arg: (0, import_jsHandle.serializeArgument)(arg) });
- return import_jsHandle.JSHandle.from(result.handle);
- }
- async waitForEvent(event, optionsOrPredicate = {}) {
- return await this._wrapApiCall(async () => {
- const timeoutSettings = this._page?._timeoutSettings ?? this._context?._timeoutSettings ?? new import_timeoutSettings.TimeoutSettings(this._platform);
- const timeout = timeoutSettings.timeout(typeof optionsOrPredicate === "function" ? {} : optionsOrPredicate);
- const predicate = typeof optionsOrPredicate === "function" ? optionsOrPredicate : optionsOrPredicate.predicate;
- const waiter = import_waiter.Waiter.createForEvent(this, event);
- waiter.rejectOnTimeout(timeout, `Timeout ${timeout}ms exceeded while waiting for event "${event}"`);
- if (event !== import_events.Events.Worker.Close)
- waiter.rejectOnEvent(this, import_events.Events.Worker.Close, () => new import_errors.TargetClosedError());
- const result = await waiter.waitForEvent(this, event, predicate);
- waiter.dispose();
- return result;
- });
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- Worker
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/writableStream.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/writableStream.js
deleted file mode 100644
index 09aed99..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/client/writableStream.js
+++ /dev/null
@@ -1,39 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var writableStream_exports = {};
-__export(writableStream_exports, {
- WritableStream: () => WritableStream
-});
-module.exports = __toCommonJS(writableStream_exports);
-var import_channelOwner = require("./channelOwner");
-class WritableStream extends import_channelOwner.ChannelOwner {
- static from(Stream) {
- return Stream._object;
- }
- constructor(parent, type, guid, initializer) {
- super(parent, type, guid, initializer);
- }
- stream() {
- return this._platform.streamWritable(this._channel);
- }
-}
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- WritableStream
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/generated/bindingsControllerSource.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/generated/bindingsControllerSource.js
deleted file mode 100644
index 6575d9b..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/generated/bindingsControllerSource.js
+++ /dev/null
@@ -1,28 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var bindingsControllerSource_exports = {};
-__export(bindingsControllerSource_exports, {
- source: () => source
-});
-module.exports = __toCommonJS(bindingsControllerSource_exports);
-const source = '\nvar __commonJS = obj => {\n let required = false;\n let result;\n return function __require() {\n if (!required) {\n required = true;\n let fn;\n for (const name in obj) { fn = obj[name]; break; }\n const module = { exports: {} };\n fn(module.exports, module);\n result = module.exports;\n }\n return result;\n }\n};\nvar __export = (target, all) => {for (var name in all) target[name] = all[name];};\nvar __toESM = mod => ({ ...mod, \'default\': mod });\nvar __toCommonJS = mod => ({ ...mod, __esModule: true });\n\n\n// packages/injected/src/bindingsController.ts\nvar bindingsController_exports = {};\n__export(bindingsController_exports, {\n BindingsController: () => BindingsController\n});\nmodule.exports = __toCommonJS(bindingsController_exports);\n\n// packages/playwright-core/src/utils/isomorphic/utilityScriptSerializers.ts\nfunction isRegExp(obj) {\n try {\n return obj instanceof RegExp || Object.prototype.toString.call(obj) === "[object RegExp]";\n } catch (error) {\n return false;\n }\n}\nfunction isDate(obj) {\n try {\n return obj instanceof Date || Object.prototype.toString.call(obj) === "[object Date]";\n } catch (error) {\n return false;\n }\n}\nfunction isURL(obj) {\n try {\n return obj instanceof URL || Object.prototype.toString.call(obj) === "[object URL]";\n } catch (error) {\n return false;\n }\n}\nfunction isError(obj) {\n var _a;\n try {\n return obj instanceof Error || obj && ((_a = Object.getPrototypeOf(obj)) == null ? void 0 : _a.name) === "Error";\n } catch (error) {\n return false;\n }\n}\nfunction isTypedArray(obj, constructor) {\n try {\n return obj instanceof constructor || Object.prototype.toString.call(obj) === `[object ${constructor.name}]`;\n } catch (error) {\n return false;\n }\n}\nvar typedArrayConstructors = {\n i8: Int8Array,\n ui8: Uint8Array,\n ui8c: Uint8ClampedArray,\n i16: Int16Array,\n ui16: Uint16Array,\n i32: Int32Array,\n ui32: Uint32Array,\n // TODO: add Float16Array once it\'s in baseline\n f32: Float32Array,\n f64: Float64Array,\n bi64: BigInt64Array,\n bui64: BigUint64Array\n};\nfunction typedArrayToBase64(array) {\n if ("toBase64" in array)\n return array.toBase64();\n const binary = Array.from(new Uint8Array(array.buffer, array.byteOffset, array.byteLength)).map((b) => String.fromCharCode(b)).join("");\n return btoa(binary);\n}\nfunction serializeAsCallArgument(value, handleSerializer) {\n return serialize(value, handleSerializer, { visited: /* @__PURE__ */ new Map(), lastId: 0 });\n}\nfunction serialize(value, handleSerializer, visitorInfo) {\n if (value && typeof value === "object") {\n if (typeof globalThis.Window === "function" && value instanceof globalThis.Window)\n return "ref: ";\n if (typeof globalThis.Document === "function" && value instanceof globalThis.Document)\n return "ref: ";\n if (typeof globalThis.Node === "function" && value instanceof globalThis.Node)\n return "ref: ";\n }\n return innerSerialize(value, handleSerializer, visitorInfo);\n}\nfunction innerSerialize(value, handleSerializer, visitorInfo) {\n var _a;\n const result = handleSerializer(value);\n if ("fallThrough" in result)\n value = result.fallThrough;\n else\n return result;\n if (typeof value === "symbol")\n return { v: "undefined" };\n if (Object.is(value, void 0))\n return { v: "undefined" };\n if (Object.is(value, null))\n return { v: "null" };\n if (Object.is(value, NaN))\n return { v: "NaN" };\n if (Object.is(value, Infinity))\n return { v: "Infinity" };\n if (Object.is(value, -Infinity))\n return { v: "-Infinity" };\n if (Object.is(value, -0))\n return { v: "-0" };\n if (typeof value === "boolean")\n return value;\n if (typeof value === "number")\n return value;\n if (typeof value === "string")\n return value;\n if (typeof value === "bigint")\n return { bi: value.toString() };\n if (isError(value)) {\n let stack;\n if ((_a = value.stack) == null ? void 0 : _a.startsWith(value.name + ": " + value.message)) {\n stack = value.stack;\n } else {\n stack = `${value.name}: ${value.message}\n${value.stack}`;\n }\n return { e: { n: value.name, m: value.message, s: stack } };\n }\n if (isDate(value))\n return { d: value.toJSON() };\n if (isURL(value))\n return { u: value.toJSON() };\n if (isRegExp(value))\n return { r: { p: value.source, f: value.flags } };\n for (const [k, ctor] of Object.entries(typedArrayConstructors)) {\n if (isTypedArray(value, ctor))\n return { ta: { b: typedArrayToBase64(value), k } };\n }\n const id = visitorInfo.visited.get(value);\n if (id)\n return { ref: id };\n if (Array.isArray(value)) {\n const a = [];\n const id2 = ++visitorInfo.lastId;\n visitorInfo.visited.set(value, id2);\n for (let i = 0; i < value.length; ++i)\n a.push(serialize(value[i], handleSerializer, visitorInfo));\n return { a, id: id2 };\n }\n if (typeof value === "object") {\n const o = [];\n const id2 = ++visitorInfo.lastId;\n visitorInfo.visited.set(value, id2);\n for (const name of Object.keys(value)) {\n let item;\n try {\n item = value[name];\n } catch (e) {\n continue;\n }\n if (name === "toJSON" && typeof item === "function")\n o.push({ k: name, v: { o: [], id: 0 } });\n else\n o.push({ k: name, v: serialize(item, handleSerializer, visitorInfo) });\n }\n let jsonWrapper;\n try {\n if (o.length === 0 && value.toJSON && typeof value.toJSON === "function")\n jsonWrapper = { value: value.toJSON() };\n } catch (e) {\n }\n if (jsonWrapper)\n return innerSerialize(jsonWrapper.value, handleSerializer, visitorInfo);\n return { o, id: id2 };\n }\n}\n\n// packages/injected/src/bindingsController.ts\nvar BindingsController = class {\n constructor(global, globalBindingName) {\n this._bindings = /* @__PURE__ */ new Map();\n this._global = global;\n this._globalBindingName = globalBindingName;\n }\n addBinding(bindingName, needsHandle) {\n const data = {\n callbacks: /* @__PURE__ */ new Map(),\n lastSeq: 0,\n handles: /* @__PURE__ */ new Map(),\n removed: false\n };\n this._bindings.set(bindingName, data);\n this._global[bindingName] = (...args) => {\n if (data.removed)\n throw new Error(`binding "${bindingName}" has been removed`);\n if (needsHandle && args.slice(1).some((arg) => arg !== void 0))\n throw new Error(`exposeBindingHandle supports a single argument, ${args.length} received`);\n const seq = ++data.lastSeq;\n const promise = new Promise((resolve, reject) => data.callbacks.set(seq, { resolve, reject }));\n let payload;\n if (needsHandle) {\n data.handles.set(seq, args[0]);\n payload = { name: bindingName, seq };\n } else {\n const serializedArgs = [];\n for (let i = 0; i < args.length; i++) {\n serializedArgs[i] = serializeAsCallArgument(args[i], (v) => {\n return { fallThrough: v };\n });\n }\n payload = { name: bindingName, seq, serializedArgs };\n }\n this._global[this._globalBindingName](JSON.stringify(payload));\n return promise;\n };\n }\n removeBinding(bindingName) {\n const data = this._bindings.get(bindingName);\n if (data)\n data.removed = true;\n this._bindings.delete(bindingName);\n delete this._global[bindingName];\n }\n takeBindingHandle(arg) {\n const handles = this._bindings.get(arg.name).handles;\n const handle = handles.get(arg.seq);\n handles.delete(arg.seq);\n return handle;\n }\n deliverBindingResult(arg) {\n const callbacks = this._bindings.get(arg.name).callbacks;\n if ("error" in arg)\n callbacks.get(arg.seq).reject(arg.error);\n else\n callbacks.get(arg.seq).resolve(arg.result);\n callbacks.delete(arg.seq);\n }\n};\n';
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- source
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/generated/clockSource.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/generated/clockSource.js
deleted file mode 100644
index 0ac0eec..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/generated/clockSource.js
+++ /dev/null
@@ -1,28 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var clockSource_exports = {};
-__export(clockSource_exports, {
- source: () => source
-});
-module.exports = __toCommonJS(clockSource_exports);
-const source = '\nvar __commonJS = obj => {\n let required = false;\n let result;\n return function __require() {\n if (!required) {\n required = true;\n let fn;\n for (const name in obj) { fn = obj[name]; break; }\n const module = { exports: {} };\n fn(module.exports, module);\n result = module.exports;\n }\n return result;\n }\n};\nvar __export = (target, all) => {for (var name in all) target[name] = all[name];};\nvar __toESM = mod => ({ ...mod, \'default\': mod });\nvar __toCommonJS = mod => ({ ...mod, __esModule: true });\n\n\n// packages/injected/src/clock.ts\nvar clock_exports = {};\n__export(clock_exports, {\n ClockController: () => ClockController,\n createClock: () => createClock,\n inject: () => inject,\n install: () => install\n});\nmodule.exports = __toCommonJS(clock_exports);\nvar ClockController = class {\n constructor(embedder) {\n this._duringTick = false;\n this._uniqueTimerId = idCounterStart;\n this.disposables = [];\n this._log = [];\n this._timers = /* @__PURE__ */ new Map();\n this._now = { time: asWallTime(0), isFixedTime: false, ticks: 0, origin: asWallTime(-1) };\n this._embedder = embedder;\n }\n uninstall() {\n this.disposables.forEach((dispose) => dispose());\n this.disposables.length = 0;\n }\n now() {\n this._replayLogOnce();\n this._syncRealTime();\n return this._now.time;\n }\n install(time) {\n this._replayLogOnce();\n this._innerSetTime(asWallTime(time));\n }\n setSystemTime(time) {\n this._replayLogOnce();\n this._innerSetTime(asWallTime(time));\n }\n setFixedTime(time) {\n this._replayLogOnce();\n this._innerSetFixedTime(asWallTime(time));\n }\n performanceNow() {\n this._replayLogOnce();\n this._syncRealTime();\n return this._now.ticks;\n }\n _syncRealTime() {\n if (!this._realTime)\n return;\n const now = this._embedder.performanceNow();\n const sinceLastSync = now - this._realTime.lastSyncTicks;\n if (sinceLastSync > 0) {\n this._advanceNow(shiftTicks(this._now.ticks, sinceLastSync));\n this._realTime.lastSyncTicks = now;\n }\n }\n _innerSetTime(time) {\n this._now.time = time;\n this._now.isFixedTime = false;\n if (this._now.origin < 0)\n this._now.origin = this._now.time;\n }\n _innerSetFixedTime(time) {\n this._innerSetTime(time);\n this._now.isFixedTime = true;\n }\n _advanceNow(to) {\n if (this._now.ticks > to) {\n return;\n }\n if (!this._now.isFixedTime)\n this._now.time = asWallTime(this._now.time + to - this._now.ticks);\n this._now.ticks = to;\n }\n async log(type, time, param) {\n this._log.push({ type, time, param });\n }\n async runFor(ticks) {\n this._replayLogOnce();\n if (ticks < 0)\n throw new TypeError("Negative ticks are not supported");\n await this._runWithDisabledRealTimeSync(async () => {\n await this._runTo(shiftTicks(this._now.ticks, ticks));\n });\n }\n async _runTo(to) {\n to = Math.ceil(to);\n if (this._now.ticks > to)\n return;\n let firstException;\n while (true) {\n const result = await this._callFirstTimer(to);\n if (!result.timerFound)\n break;\n firstException = firstException || result.error;\n }\n this._advanceNow(to);\n if (firstException)\n throw firstException;\n }\n async pauseAt(time) {\n this._replayLogOnce();\n await this._innerPause();\n const toConsume = time - this._now.time;\n await this._innerFastForwardTo(shiftTicks(this._now.ticks, toConsume));\n return toConsume;\n }\n async _innerPause() {\n var _a;\n this._realTime = void 0;\n await ((_a = this._currentRealTimeTimer) == null ? void 0 : _a.dispose());\n this._currentRealTimeTimer = void 0;\n }\n resume() {\n this._replayLogOnce();\n this._innerResume();\n }\n _innerResume() {\n const now = this._embedder.performanceNow();\n this._realTime = { startTicks: now, lastSyncTicks: now };\n this._updateRealTimeTimer();\n }\n _updateRealTimeTimer() {\n var _a;\n if ((_a = this._currentRealTimeTimer) == null ? void 0 : _a.promise) {\n return;\n }\n const firstTimer = this._firstTimer();\n const nextTick = Math.min(firstTimer ? firstTimer.callAt : this._now.ticks + maxTimeout, this._now.ticks + 100);\n const callAt = this._currentRealTimeTimer ? Math.min(this._currentRealTimeTimer.callAt, nextTick) : nextTick;\n if (this._currentRealTimeTimer) {\n this._currentRealTimeTimer.cancel();\n this._currentRealTimeTimer = void 0;\n }\n const realTimeTimer = {\n callAt,\n promise: void 0,\n cancel: this._embedder.setTimeout(() => {\n this._syncRealTime();\n realTimeTimer.promise = this._runTo(this._now.ticks).catch((e) => console.error(e));\n void realTimeTimer.promise.then(() => {\n this._currentRealTimeTimer = void 0;\n if (this._realTime)\n this._updateRealTimeTimer();\n });\n }, callAt - this._now.ticks),\n dispose: async () => {\n realTimeTimer.cancel();\n await realTimeTimer.promise;\n }\n };\n this._currentRealTimeTimer = realTimeTimer;\n }\n async _runWithDisabledRealTimeSync(fn) {\n if (!this._realTime) {\n await fn();\n return;\n }\n await this._innerPause();\n try {\n await fn();\n } finally {\n this._innerResume();\n }\n }\n async fastForward(ticks) {\n this._replayLogOnce();\n await this._runWithDisabledRealTimeSync(async () => {\n await this._innerFastForwardTo(shiftTicks(this._now.ticks, ticks | 0));\n });\n }\n async _innerFastForwardTo(to) {\n if (to < this._now.ticks)\n throw new Error("Cannot fast-forward to the past");\n for (const timer of this._timers.values()) {\n if (to > timer.callAt)\n timer.callAt = to;\n }\n await this._runTo(to);\n }\n addTimer(options) {\n this._replayLogOnce();\n if (options.type === "AnimationFrame" /* AnimationFrame */ && !options.func)\n throw new Error("Callback must be provided to requestAnimationFrame calls");\n if (options.type === "IdleCallback" /* IdleCallback */ && !options.func)\n throw new Error("Callback must be provided to requestIdleCallback calls");\n if (["Timeout" /* Timeout */, "Interval" /* Interval */].includes(options.type) && !options.func && options.delay === void 0)\n throw new Error("Callback must be provided to timer calls");\n let delay = options.delay ? +options.delay : 0;\n if (!Number.isFinite(delay))\n delay = 0;\n delay = delay > maxTimeout ? 1 : delay;\n delay = Math.max(0, delay);\n const timer = {\n type: options.type,\n func: options.func,\n args: options.args || [],\n delay,\n callAt: shiftTicks(this._now.ticks, delay || (this._duringTick ? 1 : 0)),\n createdAt: this._now.ticks,\n id: this._uniqueTimerId++,\n error: new Error()\n };\n this._timers.set(timer.id, timer);\n if (this._realTime)\n this._updateRealTimeTimer();\n return timer.id;\n }\n countTimers() {\n return this._timers.size;\n }\n _firstTimer(beforeTick) {\n let firstTimer = null;\n for (const timer of this._timers.values()) {\n const isInRange = beforeTick === void 0 || timer.callAt <= beforeTick;\n if (isInRange && (!firstTimer || compareTimers(firstTimer, timer) === 1))\n firstTimer = timer;\n }\n return firstTimer;\n }\n _takeFirstTimer(beforeTick) {\n const timer = this._firstTimer(beforeTick);\n if (!timer)\n return null;\n this._advanceNow(timer.callAt);\n if (timer.type === "Interval" /* Interval */)\n timer.callAt = shiftTicks(timer.callAt, timer.delay);\n else\n this._timers.delete(timer.id);\n return timer;\n }\n async _callFirstTimer(beforeTick) {\n const timer = this._takeFirstTimer(beforeTick);\n if (!timer)\n return { timerFound: false };\n this._duringTick = true;\n try {\n if (typeof timer.func !== "function") {\n let error2;\n try {\n (() => {\n globalThis.eval(timer.func);\n })();\n } catch (e) {\n error2 = e;\n }\n await new Promise((f) => this._embedder.setTimeout(f));\n return { timerFound: true, error: error2 };\n }\n let args = timer.args;\n if (timer.type === "AnimationFrame" /* AnimationFrame */)\n args = [this._now.ticks];\n else if (timer.type === "IdleCallback" /* IdleCallback */)\n args = [{ didTimeout: false, timeRemaining: () => 0 }];\n let error;\n try {\n timer.func.apply(null, args);\n } catch (e) {\n error = e;\n }\n await new Promise((f) => this._embedder.setTimeout(f));\n return { timerFound: true, error };\n } finally {\n this._duringTick = false;\n }\n }\n getTimeToNextFrame() {\n this._replayLogOnce();\n return 16 - this._now.ticks % 16;\n }\n clearTimer(timerId, type) {\n this._replayLogOnce();\n if (!timerId) {\n return;\n }\n const id = Number(timerId);\n if (Number.isNaN(id) || id < idCounterStart) {\n const handlerName = getClearHandler(type);\n new Error(`Clock: ${handlerName} was invoked to clear a native timer instead of one created by the clock library.`);\n }\n const timer = this._timers.get(id);\n if (timer) {\n if (timer.type === type || timer.type === "Timeout" && type === "Interval" || timer.type === "Interval" && type === "Timeout") {\n this._timers.delete(id);\n } else {\n const clear = getClearHandler(type);\n const schedule = getScheduleHandler(timer.type);\n throw new Error(\n `Cannot clear timer: timer created with ${schedule}() but cleared with ${clear}()`\n );\n }\n }\n }\n _replayLogOnce() {\n if (!this._log.length)\n return;\n let lastLogTime = -1;\n let isPaused = false;\n for (const { type, time, param } of this._log) {\n if (!isPaused && lastLogTime !== -1)\n this._advanceNow(shiftTicks(this._now.ticks, time - lastLogTime));\n lastLogTime = time;\n if (type === "install") {\n this._innerSetTime(asWallTime(param));\n } else if (type === "fastForward" || type === "runFor") {\n this._advanceNow(shiftTicks(this._now.ticks, param));\n } else if (type === "pauseAt") {\n isPaused = true;\n this._innerSetTime(asWallTime(param));\n } else if (type === "resume") {\n isPaused = false;\n } else if (type === "setFixedTime") {\n this._innerSetFixedTime(asWallTime(param));\n } else if (type === "setSystemTime") {\n this._innerSetTime(asWallTime(param));\n }\n }\n if (!isPaused) {\n if (lastLogTime > 0)\n this._advanceNow(shiftTicks(this._now.ticks, this._embedder.dateNow() - lastLogTime));\n this._innerResume();\n } else {\n this._realTime = void 0;\n }\n this._log.length = 0;\n }\n};\nfunction mirrorDateProperties(target, source) {\n for (const prop in source) {\n if (source.hasOwnProperty(prop))\n target[prop] = source[prop];\n }\n target.toString = () => source.toString();\n target.prototype = source.prototype;\n target.parse = source.parse;\n target.UTC = source.UTC;\n target.prototype.toUTCString = source.prototype.toUTCString;\n target.isFake = true;\n return target;\n}\nfunction createDate(clock, NativeDate) {\n function ClockDate(year, month, date, hour, minute, second, ms) {\n if (!(this instanceof ClockDate))\n return new NativeDate(clock.now()).toString();\n switch (arguments.length) {\n case 0:\n return new NativeDate(clock.now());\n case 1:\n return new NativeDate(year);\n case 2:\n return new NativeDate(year, month);\n case 3:\n return new NativeDate(year, month, date);\n case 4:\n return new NativeDate(year, month, date, hour);\n case 5:\n return new NativeDate(year, month, date, hour, minute);\n case 6:\n return new NativeDate(\n year,\n month,\n date,\n hour,\n minute,\n second\n );\n default:\n return new NativeDate(\n year,\n month,\n date,\n hour,\n minute,\n second,\n ms\n );\n }\n }\n ClockDate.now = () => clock.now();\n return mirrorDateProperties(ClockDate, NativeDate);\n}\nfunction createIntl(clock, NativeIntl) {\n const ClockIntl = {};\n for (const key of Object.getOwnPropertyNames(NativeIntl))\n ClockIntl[key] = NativeIntl[key];\n ClockIntl.DateTimeFormat = function(...args) {\n const realFormatter = new NativeIntl.DateTimeFormat(...args);\n const formatter = {\n formatRange: realFormatter.formatRange.bind(realFormatter),\n formatRangeToParts: realFormatter.formatRangeToParts.bind(realFormatter),\n resolvedOptions: realFormatter.resolvedOptions.bind(realFormatter),\n format: (date) => realFormatter.format(date || clock.now()),\n formatToParts: (date) => realFormatter.formatToParts(date || clock.now())\n };\n return formatter;\n };\n ClockIntl.DateTimeFormat.prototype = Object.create(\n NativeIntl.DateTimeFormat.prototype\n );\n ClockIntl.DateTimeFormat.supportedLocalesOf = NativeIntl.DateTimeFormat.supportedLocalesOf;\n return ClockIntl;\n}\nfunction compareTimers(a, b) {\n if (a.callAt < b.callAt)\n return -1;\n if (a.callAt > b.callAt)\n return 1;\n if (a.type === "Immediate" /* Immediate */ && b.type !== "Immediate" /* Immediate */)\n return -1;\n if (a.type !== "Immediate" /* Immediate */ && b.type === "Immediate" /* Immediate */)\n return 1;\n if (a.createdAt < b.createdAt)\n return -1;\n if (a.createdAt > b.createdAt)\n return 1;\n if (a.id < b.id)\n return -1;\n if (a.id > b.id)\n return 1;\n}\nvar maxTimeout = Math.pow(2, 31) - 1;\nvar idCounterStart = 1e12;\nfunction platformOriginals(globalObject) {\n const raw = {\n setTimeout: globalObject.setTimeout,\n clearTimeout: globalObject.clearTimeout,\n setInterval: globalObject.setInterval,\n clearInterval: globalObject.clearInterval,\n requestAnimationFrame: globalObject.requestAnimationFrame ? globalObject.requestAnimationFrame : void 0,\n cancelAnimationFrame: globalObject.cancelAnimationFrame ? globalObject.cancelAnimationFrame : void 0,\n requestIdleCallback: globalObject.requestIdleCallback ? globalObject.requestIdleCallback : void 0,\n cancelIdleCallback: globalObject.cancelIdleCallback ? globalObject.cancelIdleCallback : void 0,\n Date: globalObject.Date,\n performance: globalObject.performance,\n Intl: globalObject.Intl\n };\n const bound = { ...raw };\n for (const key of Object.keys(bound)) {\n if (key !== "Date" && typeof bound[key] === "function")\n bound[key] = bound[key].bind(globalObject);\n }\n return { raw, bound };\n}\nfunction getScheduleHandler(type) {\n if (type === "IdleCallback" || type === "AnimationFrame")\n return `request${type}`;\n return `set${type}`;\n}\nfunction createApi(clock, originals) {\n return {\n setTimeout: (func, timeout, ...args) => {\n const delay = timeout ? +timeout : timeout;\n return clock.addTimer({\n type: "Timeout" /* Timeout */,\n func,\n args,\n delay\n });\n },\n clearTimeout: (timerId) => {\n if (timerId)\n clock.clearTimer(timerId, "Timeout" /* Timeout */);\n },\n setInterval: (func, timeout, ...args) => {\n const delay = timeout ? +timeout : timeout;\n return clock.addTimer({\n type: "Interval" /* Interval */,\n func,\n args,\n delay\n });\n },\n clearInterval: (timerId) => {\n if (timerId)\n return clock.clearTimer(timerId, "Interval" /* Interval */);\n },\n requestAnimationFrame: (callback) => {\n return clock.addTimer({\n type: "AnimationFrame" /* AnimationFrame */,\n func: callback,\n delay: clock.getTimeToNextFrame()\n });\n },\n cancelAnimationFrame: (timerId) => {\n if (timerId)\n return clock.clearTimer(timerId, "AnimationFrame" /* AnimationFrame */);\n },\n requestIdleCallback: (callback, options) => {\n let timeToNextIdlePeriod = 0;\n if (clock.countTimers() > 0)\n timeToNextIdlePeriod = 50;\n return clock.addTimer({\n type: "IdleCallback" /* IdleCallback */,\n func: callback,\n delay: (options == null ? void 0 : options.timeout) ? Math.min(options == null ? void 0 : options.timeout, timeToNextIdlePeriod) : timeToNextIdlePeriod\n });\n },\n cancelIdleCallback: (timerId) => {\n if (timerId)\n return clock.clearTimer(timerId, "IdleCallback" /* IdleCallback */);\n },\n Intl: originals.Intl ? createIntl(clock, originals.Intl) : void 0,\n Date: createDate(clock, originals.Date),\n performance: originals.performance ? fakePerformance(clock, originals.performance) : void 0\n };\n}\nfunction getClearHandler(type) {\n if (type === "IdleCallback" || type === "AnimationFrame")\n return `cancel${type}`;\n return `clear${type}`;\n}\nfunction fakePerformance(clock, performance) {\n const result = {\n now: () => clock.performanceNow()\n };\n result.__defineGetter__("timeOrigin", () => clock._now.origin || 0);\n for (const key of Object.keys(performance.__proto__)) {\n if (key === "now" || key === "timeOrigin")\n continue;\n if (key === "getEntries" || key === "getEntriesByName" || key === "getEntriesByType")\n result[key] = () => [];\n else\n result[key] = () => {\n };\n }\n return result;\n}\nfunction createClock(globalObject) {\n const originals = platformOriginals(globalObject);\n const embedder = {\n dateNow: () => originals.raw.Date.now(),\n performanceNow: () => Math.ceil(originals.raw.performance.now()),\n setTimeout: (task, timeout) => {\n const timerId = originals.bound.setTimeout(task, timeout);\n return () => originals.bound.clearTimeout(timerId);\n },\n setInterval: (task, delay) => {\n const intervalId = originals.bound.setInterval(task, delay);\n return () => originals.bound.clearInterval(intervalId);\n }\n };\n const clock = new ClockController(embedder);\n const api = createApi(clock, originals.bound);\n return { clock, api, originals: originals.raw };\n}\nfunction install(globalObject, config = {}) {\n var _a, _b;\n if ((_a = globalObject.Date) == null ? void 0 : _a.isFake) {\n throw new TypeError(`Can\'t install fake timers twice on the same global object.`);\n }\n const { clock, api, originals } = createClock(globalObject);\n const toFake = ((_b = config.toFake) == null ? void 0 : _b.length) ? config.toFake : Object.keys(originals);\n for (const method of toFake) {\n if (method === "Date") {\n globalObject.Date = mirrorDateProperties(api.Date, globalObject.Date);\n } else if (method === "Intl") {\n globalObject.Intl = api[method];\n } else if (method === "performance") {\n globalObject.performance = api[method];\n const kEventTimeStamp = Symbol("playwrightEventTimeStamp");\n Object.defineProperty(Event.prototype, "timeStamp", {\n get() {\n var _a2;\n if (!this[kEventTimeStamp])\n this[kEventTimeStamp] = (_a2 = api.performance) == null ? void 0 : _a2.now();\n return this[kEventTimeStamp];\n }\n });\n } else {\n globalObject[method] = (...args) => {\n return api[method].apply(api, args);\n };\n }\n clock.disposables.push(() => {\n globalObject[method] = originals[method];\n });\n }\n return { clock, api, originals };\n}\nfunction inject(globalObject) {\n const builtins = platformOriginals(globalObject).bound;\n const { clock: controller } = install(globalObject);\n controller.resume();\n return {\n controller,\n builtins\n };\n}\nfunction asWallTime(n) {\n return n;\n}\nfunction shiftTicks(ticks, ms) {\n return ticks + ms;\n}\n';
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- source
-});
diff --git a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/generated/injectedScriptSource.js b/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/generated/injectedScriptSource.js
deleted file mode 100644
index 49686e2..0000000
--- a/node_modules/.deno/playwright-core@1.58.2/node_modules/playwright-core/lib/generated/injectedScriptSource.js
+++ /dev/null
@@ -1,28 +0,0 @@
-"use strict";
-var __defProp = Object.defineProperty;
-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-var __getOwnPropNames = Object.getOwnPropertyNames;
-var __hasOwnProp = Object.prototype.hasOwnProperty;
-var __export = (target, all) => {
- for (var name in all)
- __defProp(target, name, { get: all[name], enumerable: true });
-};
-var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
-};
-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
-var injectedScriptSource_exports = {};
-__export(injectedScriptSource_exports, {
- source: () => source
-});
-module.exports = __toCommonJS(injectedScriptSource_exports);
-const source = '\nvar __commonJS = obj => {\n let required = false;\n let result;\n return function __require() {\n if (!required) {\n required = true;\n let fn;\n for (const name in obj) { fn = obj[name]; break; }\n const module = { exports: {} };\n fn(module.exports, module);\n result = module.exports;\n }\n return result;\n }\n};\nvar __export = (target, all) => {for (var name in all) target[name] = all[name];};\nvar __toESM = mod => ({ ...mod, \'default\': mod });\nvar __toCommonJS = mod => ({ ...mod, __esModule: true });\n\n\n// packages/injected/src/injectedScript.ts\nvar injectedScript_exports = {};\n__export(injectedScript_exports, {\n InjectedScript: () => InjectedScript\n});\nmodule.exports = __toCommonJS(injectedScript_exports);\n\n// packages/playwright-core/src/utils/isomorphic/ariaSnapshot.ts\nfunction ariaNodesEqual(a, b) {\n if (a.role !== b.role || a.name !== b.name)\n return false;\n if (!ariaPropsEqual(a, b) || hasPointerCursor(a) !== hasPointerCursor(b))\n return false;\n const aKeys = Object.keys(a.props);\n const bKeys = Object.keys(b.props);\n return aKeys.length === bKeys.length && aKeys.every((k) => a.props[k] === b.props[k]);\n}\nfunction hasPointerCursor(ariaNode) {\n return ariaNode.box.cursor === "pointer";\n}\nfunction ariaPropsEqual(a, b) {\n return a.active === b.active && a.checked === b.checked && a.disabled === b.disabled && a.expanded === b.expanded && a.selected === b.selected && a.level === b.level && a.pressed === b.pressed;\n}\nfunction parseAriaSnapshot(yaml, text, options = {}) {\n var _a;\n const lineCounter = new yaml.LineCounter();\n const parseOptions = {\n keepSourceTokens: true,\n lineCounter,\n ...options\n };\n const yamlDoc = yaml.parseDocument(text, parseOptions);\n const errors = [];\n const convertRange = (range) => {\n return [lineCounter.linePos(range[0]), lineCounter.linePos(range[1])];\n };\n const addError = (error) => {\n errors.push({\n message: error.message,\n range: [lineCounter.linePos(error.pos[0]), lineCounter.linePos(error.pos[1])]\n });\n };\n const convertSeq = (container, seq) => {\n for (const item of seq.items) {\n const itemIsString = item instanceof yaml.Scalar && typeof item.value === "string";\n if (itemIsString) {\n const childNode = KeyParser.parse(item, parseOptions, errors);\n if (childNode) {\n container.children = container.children || [];\n container.children.push(childNode);\n }\n continue;\n }\n const itemIsMap = item instanceof yaml.YAMLMap;\n if (itemIsMap) {\n convertMap(container, item);\n continue;\n }\n errors.push({\n message: "Sequence items should be strings or maps",\n range: convertRange(item.range || seq.range)\n });\n }\n };\n const convertMap = (container, map) => {\n var _a2;\n for (const entry of map.items) {\n container.children = container.children || [];\n const keyIsString = entry.key instanceof yaml.Scalar && typeof entry.key.value === "string";\n if (!keyIsString) {\n errors.push({\n message: "Only string keys are supported",\n range: convertRange(entry.key.range || map.range)\n });\n continue;\n }\n const key = entry.key;\n const value = entry.value;\n if (key.value === "text") {\n const valueIsString = value instanceof yaml.Scalar && typeof value.value === "string";\n if (!valueIsString) {\n errors.push({\n message: "Text value should be a string",\n range: convertRange(entry.value.range || map.range)\n });\n continue;\n }\n container.children.push({\n kind: "text",\n text: textValue(value.value)\n });\n continue;\n }\n if (key.value === "/children") {\n const valueIsString = value instanceof yaml.Scalar && typeof value.value === "string";\n if (!valueIsString || value.value !== "contain" && value.value !== "equal" && value.value !== "deep-equal") {\n errors.push({\n message: \'Strict value should be "contain", "equal" or "deep-equal"\',\n range: convertRange(entry.value.range || map.range)\n });\n continue;\n }\n container.containerMode = value.value;\n continue;\n }\n if (key.value.startsWith("/")) {\n const valueIsString = value instanceof yaml.Scalar && typeof value.value === "string";\n if (!valueIsString) {\n errors.push({\n message: "Property value should be a string",\n range: convertRange(entry.value.range || map.range)\n });\n continue;\n }\n container.props = (_a2 = container.props) != null ? _a2 : {};\n container.props[key.value.slice(1)] = textValue(value.value);\n continue;\n }\n const childNode = KeyParser.parse(key, parseOptions, errors);\n if (!childNode)\n continue;\n const valueIsScalar = value instanceof yaml.Scalar;\n if (valueIsScalar) {\n const type = typeof value.value;\n if (type !== "string" && type !== "number" && type !== "boolean") {\n errors.push({\n message: "Node value should be a string or a sequence",\n range: convertRange(entry.value.range || map.range)\n });\n continue;\n }\n container.children.push({\n ...childNode,\n children: [{\n kind: "text",\n text: textValue(String(value.value))\n }]\n });\n continue;\n }\n const valueIsSequence = value instanceof yaml.YAMLSeq;\n if (valueIsSequence) {\n container.children.push(childNode);\n convertSeq(childNode, value);\n continue;\n }\n errors.push({\n message: "Map values should be strings or sequences",\n range: convertRange(entry.value.range || map.range)\n });\n }\n };\n const fragment = { kind: "role", role: "fragment" };\n yamlDoc.errors.forEach(addError);\n if (errors.length)\n return { errors, fragment };\n if (!(yamlDoc.contents instanceof yaml.YAMLSeq)) {\n errors.push({\n message: \'Aria snapshot must be a YAML sequence, elements starting with " -"\',\n range: yamlDoc.contents ? convertRange(yamlDoc.contents.range) : [{ line: 0, col: 0 }, { line: 0, col: 0 }]\n });\n }\n if (errors.length)\n return { errors, fragment };\n convertSeq(fragment, yamlDoc.contents);\n if (errors.length)\n return { errors, fragment: emptyFragment };\n if (((_a = fragment.children) == null ? void 0 : _a.length) === 1 && (!fragment.containerMode || fragment.containerMode === "contain"))\n return { fragment: fragment.children[0], errors: [] };\n return { fragment, errors: [] };\n}\nvar emptyFragment = { kind: "role", role: "fragment" };\nfunction normalizeWhitespace(text) {\n return text.replace(/[\\u200b\\u00ad]/g, "").replace(/[\\r\\n\\s\\t]+/g, " ").trim();\n}\nfunction textValue(value) {\n return {\n raw: value,\n normalized: normalizeWhitespace(value)\n };\n}\nvar KeyParser = class _KeyParser {\n static parse(text, options, errors) {\n try {\n return new _KeyParser(text.value)._parse();\n } catch (e) {\n if (e instanceof ParserError) {\n const message = options.prettyErrors === false ? e.message : e.message + ":\\n\\n" + text.value + "\\n" + " ".repeat(e.pos) + "^\\n";\n errors.push({\n message,\n range: [options.lineCounter.linePos(text.range[0]), options.lineCounter.linePos(text.range[0] + e.pos)]\n });\n return null;\n }\n throw e;\n }\n }\n constructor(input) {\n this._input = input;\n this._pos = 0;\n this._length = input.length;\n }\n _peek() {\n return this._input[this._pos] || "";\n }\n _next() {\n if (this._pos < this._length)\n return this._input[this._pos++];\n return null;\n }\n _eof() {\n return this._pos >= this._length;\n }\n _isWhitespace() {\n return !this._eof() && /\\s/.test(this._peek());\n }\n _skipWhitespace() {\n while (this._isWhitespace())\n this._pos++;\n }\n _readIdentifier(type) {\n if (this._eof())\n this._throwError(`Unexpected end of input when expecting ${type}`);\n const start = this._pos;\n while (!this._eof() && /[a-zA-Z]/.test(this._peek()))\n this._pos++;\n return this._input.slice(start, this._pos);\n }\n _readString() {\n let result = "";\n let escaped = false;\n while (!this._eof()) {\n const ch = this._next();\n if (escaped) {\n result += ch;\n escaped = false;\n } else if (ch === "\\\\") {\n escaped = true;\n } else if (ch === \'"\') {\n return result;\n } else {\n result += ch;\n }\n }\n this._throwError("Unterminated string");\n }\n _throwError(message, offset = 0) {\n throw new ParserError(message, offset || this._pos);\n }\n _readRegex() {\n let result = "";\n let escaped = false;\n let insideClass = false;\n while (!this._eof()) {\n const ch = this._next();\n if (escaped) {\n result += ch;\n escaped = false;\n } else if (ch === "\\\\") {\n escaped = true;\n result += ch;\n } else if (ch === "/" && !insideClass) {\n return { pattern: result };\n } else if (ch === "[") {\n insideClass = true;\n result += ch;\n } else if (ch === "]" && insideClass) {\n result += ch;\n insideClass = false;\n } else {\n result += ch;\n }\n }\n this._throwError("Unterminated regex");\n }\n _readStringOrRegex() {\n const ch = this._peek();\n if (ch === \'"\') {\n this._next();\n return normalizeWhitespace(this._readString());\n }\n if (ch === "/") {\n this._next();\n return this._readRegex();\n }\n return null;\n }\n _readAttributes(result) {\n let errorPos = this._pos;\n while (true) {\n this._skipWhitespace();\n if (this._peek() === "[") {\n this._next();\n this._skipWhitespace();\n errorPos = this._pos;\n const flagName = this._readIdentifier("attribute");\n this._skipWhitespace();\n let flagValue = "";\n if (this._peek() === "=") {\n this._next();\n this._skipWhitespace();\n errorPos = this._pos;\n while (this._peek() !== "]" && !this._isWhitespace() && !this._eof())\n flagValue += this._next();\n }\n this._skipWhitespace();\n if (this._peek() !== "]")\n this._throwError("Expected ]");\n this._next();\n this._applyAttribute(result, flagName, flagValue || "true", errorPos);\n } else {\n break;\n }\n }\n }\n _parse() {\n this._skipWhitespace();\n const role = this._readIdentifier("role");\n this._skipWhitespace();\n const name = this._readStringOrRegex() || "";\n const result = { kind: "role", role, name };\n this._readAttributes(result);\n this._skipWhitespace();\n if (!this._eof())\n this._throwError("Unexpected input");\n return result;\n }\n _applyAttribute(node, key, value, errorPos) {\n if (key === "checked") {\n this._assert(value === "true" || value === "false" || value === "mixed", \'Value of "checked" attribute must be a boolean or "mixed"\', errorPos);\n node.checked = value === "true" ? true : value === "false" ? false : "mixed";\n return;\n }\n if (key === "disabled") {\n this._assert(value === "true" || value === "false", \'Value of "disabled" attribute must be a boolean\', errorPos);\n node.disabled = value === "true";\n return;\n }\n if (key === "expanded") {\n this._assert(value === "true" || value === "false", \'Value of "expanded" attribute must be a boolean\', errorPos);\n node.expanded = value === "true";\n return;\n }\n if (key === "active") {\n this._assert(value === "true" || value === "false", \'Value of "active" attribute must be a boolean\', errorPos);\n node.active = value === "true";\n return;\n }\n if (key === "level") {\n this._assert(!isNaN(Number(value)), \'Value of "level" attribute must be a number\', errorPos);\n node.level = Number(value);\n return;\n }\n if (key === "pressed") {\n this._assert(value === "true" || value === "false" || value === "mixed", \'Value of "pressed" attribute must be a boolean or "mixed"\', errorPos);\n node.pressed = value === "true" ? true : value === "false" ? false : "mixed";\n return;\n }\n if (key === "selected") {\n this._assert(value === "true" || value === "false", \'Value of "selected" attribute must be a boolean\', errorPos);\n node.selected = value === "true";\n return;\n }\n this._assert(false, `Unsupported attribute [${key}]`, errorPos);\n }\n _assert(value, message, valuePos) {\n if (!value)\n this._throwError(message || "Assertion error", valuePos);\n }\n};\nvar ParserError = class extends Error {\n constructor(message, pos) {\n super(message);\n this.pos = pos;\n }\n};\nfunction findNewNode(from, to) {\n var _a, _b;\n function fillMap(root, map, position) {\n let size = 1;\n let childPosition = position + size;\n for (const child of root.children || []) {\n if (typeof child === "string") {\n size++;\n childPosition++;\n } else {\n size += fillMap(child, map, childPosition);\n childPosition += size;\n }\n }\n if (!["none", "presentation", "fragment", "iframe", "generic"].includes(root.role) && root.name) {\n let byRole = map.get(root.role);\n if (!byRole) {\n byRole = /* @__PURE__ */ new Map();\n map.set(root.role, byRole);\n }\n const existing = byRole.get(root.name);\n const sizeAndPosition = size * 100 - position;\n if (!existing || existing.sizeAndPosition < sizeAndPosition)\n byRole.set(root.name, { node: root, sizeAndPosition });\n }\n return size;\n }\n const fromMap = /* @__PURE__ */ new Map();\n if (from)\n fillMap(from, fromMap, 0);\n const toMap = /* @__PURE__ */ new Map();\n fillMap(to, toMap, 0);\n const result = [];\n for (const [role, byRole] of toMap) {\n for (const [name, byName] of byRole) {\n const inFrom = (_a = fromMap.get(role)) == null ? void 0 : _a.get(name);\n if (!inFrom)\n result.push(byName);\n }\n }\n result.sort((a, b) => b.sizeAndPosition - a.sizeAndPosition);\n return (_b = result[0]) == null ? void 0 : _b.node;\n}\n\n// packages/playwright-core/src/utils/isomorphic/cssTokenizer.ts\nvar between = function(num, first, last) {\n return num >= first && num <= last;\n};\nfunction digit(code) {\n return between(code, 48, 57);\n}\nfunction hexdigit(code) {\n return digit(code) || between(code, 65, 70) || between(code, 97, 102);\n}\nfunction uppercaseletter(code) {\n return between(code, 65, 90);\n}\nfunction lowercaseletter(code) {\n return between(code, 97, 122);\n}\nfunction letter(code) {\n return uppercaseletter(code) || lowercaseletter(code);\n}\nfunction nonascii(code) {\n return code >= 128;\n}\nfunction namestartchar(code) {\n return letter(code) || nonascii(code) || code === 95;\n}\nfunction namechar(code) {\n return namestartchar(code) || digit(code) || code === 45;\n}\nfunction nonprintable(code) {\n return between(code, 0, 8) || code === 11 || between(code, 14, 31) || code === 127;\n}\nfunction newline(code) {\n return code === 10;\n}\nfunction whitespace(code) {\n return newline(code) || code === 9 || code === 32;\n}\nvar maximumallowedcodepoint = 1114111;\nvar InvalidCharacterError = class extends Error {\n constructor(message) {\n super(message);\n this.name = "InvalidCharacterError";\n }\n};\nfunction preprocess(str) {\n const codepoints = [];\n for (let i = 0; i < str.length; i++) {\n let code = str.charCodeAt(i);\n if (code === 13 && str.charCodeAt(i + 1) === 10) {\n code = 10;\n i++;\n }\n if (code === 13 || code === 12)\n code = 10;\n if (code === 0)\n code = 65533;\n if (between(code, 55296, 56319) && between(str.charCodeAt(i + 1), 56320, 57343)) {\n const lead = code - 55296;\n const trail = str.charCodeAt(i + 1) - 56320;\n code = Math.pow(2, 16) + lead * Math.pow(2, 10) + trail;\n i++;\n }\n codepoints.push(code);\n }\n return codepoints;\n}\nfunction stringFromCode(code) {\n if (code <= 65535)\n return String.fromCharCode(code);\n code -= Math.pow(2, 16);\n const lead = Math.floor(code / Math.pow(2, 10)) + 55296;\n const trail = code % Math.pow(2, 10) + 56320;\n return String.fromCharCode(lead) + String.fromCharCode(trail);\n}\nfunction tokenize(str1) {\n const str = preprocess(str1);\n let i = -1;\n const tokens = [];\n let code;\n let line = 0;\n let column = 0;\n let lastLineLength = 0;\n const incrLineno = function() {\n line += 1;\n lastLineLength = column;\n column = 0;\n };\n const locStart = { line, column };\n const codepoint = function(i2) {\n if (i2 >= str.length)\n return -1;\n return str[i2];\n };\n const next = function(num) {\n if (num === void 0)\n num = 1;\n if (num > 3)\n throw "Spec Error: no more than three codepoints of lookahead.";\n return codepoint(i + num);\n };\n const consume = function(num) {\n if (num === void 0)\n num = 1;\n i += num;\n code = codepoint(i);\n if (newline(code))\n incrLineno();\n else\n column += num;\n return true;\n };\n const reconsume = function() {\n i -= 1;\n if (newline(code)) {\n line -= 1;\n column = lastLineLength;\n } else {\n column -= 1;\n }\n locStart.line = line;\n locStart.column = column;\n return true;\n };\n const eof = function(codepoint2) {\n if (codepoint2 === void 0)\n codepoint2 = code;\n return codepoint2 === -1;\n };\n const donothing = function() {\n };\n const parseerror = function() {\n };\n const consumeAToken = function() {\n consumeComments();\n consume();\n if (whitespace(code)) {\n while (whitespace(next()))\n consume();\n return new WhitespaceToken();\n } else if (code === 34) {\n return consumeAStringToken();\n } else if (code === 35) {\n if (namechar(next()) || areAValidEscape(next(1), next(2))) {\n const token = new HashToken("");\n if (wouldStartAnIdentifier(next(1), next(2), next(3)))\n token.type = "id";\n token.value = consumeAName();\n return token;\n } else {\n return new DelimToken(code);\n }\n } else if (code === 36) {\n if (next() === 61) {\n consume();\n return new SuffixMatchToken();\n } else {\n return new DelimToken(code);\n }\n } else if (code === 39) {\n return consumeAStringToken();\n } else if (code === 40) {\n return new OpenParenToken();\n } else if (code === 41) {\n return new CloseParenToken();\n } else if (code === 42) {\n if (next() === 61) {\n consume();\n return new SubstringMatchToken();\n } else {\n return new DelimToken(code);\n }\n } else if (code === 43) {\n if (startsWithANumber()) {\n reconsume();\n return consumeANumericToken();\n } else {\n return new DelimToken(code);\n }\n } else if (code === 44) {\n return new CommaToken();\n } else if (code === 45) {\n if (startsWithANumber()) {\n reconsume();\n return consumeANumericToken();\n } else if (next(1) === 45 && next(2) === 62) {\n consume(2);\n return new CDCToken();\n } else if (startsWithAnIdentifier()) {\n reconsume();\n return consumeAnIdentlikeToken();\n } else {\n return new DelimToken(code);\n }\n } else if (code === 46) {\n if (startsWithANumber()) {\n reconsume();\n return consumeANumericToken();\n } else {\n return new DelimToken(code);\n }\n } else if (code === 58) {\n return new ColonToken();\n } else if (code === 59) {\n return new SemicolonToken();\n } else if (code === 60) {\n if (next(1) === 33 && next(2) === 45 && next(3) === 45) {\n consume(3);\n return new CDOToken();\n } else {\n return new DelimToken(code);\n }\n } else if (code === 64) {\n if (wouldStartAnIdentifier(next(1), next(2), next(3)))\n return new AtKeywordToken(consumeAName());\n else\n return new DelimToken(code);\n } else if (code === 91) {\n return new OpenSquareToken();\n } else if (code === 92) {\n if (startsWithAValidEscape()) {\n reconsume();\n return consumeAnIdentlikeToken();\n } else {\n parseerror();\n return new DelimToken(code);\n }\n } else if (code === 93) {\n return new CloseSquareToken();\n } else if (code === 94) {\n if (next() === 61) {\n consume();\n return new PrefixMatchToken();\n } else {\n return new DelimToken(code);\n }\n } else if (code === 123) {\n return new OpenCurlyToken();\n } else if (code === 124) {\n if (next() === 61) {\n consume();\n return new DashMatchToken();\n } else if (next() === 124) {\n consume();\n return new ColumnToken();\n } else {\n return new DelimToken(code);\n }\n } else if (code === 125) {\n return new CloseCurlyToken();\n } else if (code === 126) {\n if (next() === 61) {\n consume();\n return new IncludeMatchToken();\n } else {\n return new DelimToken(code);\n }\n } else if (digit(code)) {\n reconsume();\n return consumeANumericToken();\n } else if (namestartchar(code)) {\n reconsume();\n return consumeAnIdentlikeToken();\n } else if (eof()) {\n return new EOFToken();\n } else {\n return new DelimToken(code);\n }\n };\n const consumeComments = function() {\n while (next(1) === 47 && next(2) === 42) {\n consume(2);\n while (true) {\n consume();\n if (code === 42 && next() === 47) {\n consume();\n break;\n } else if (eof()) {\n parseerror();\n return;\n }\n }\n }\n };\n const consumeANumericToken = function() {\n const num = consumeANumber();\n if (wouldStartAnIdentifier(next(1), next(2), next(3))) {\n const token = new DimensionToken();\n token.value = num.value;\n token.repr = num.repr;\n token.type = num.type;\n token.unit = consumeAName();\n return token;\n } else if (next() === 37) {\n consume();\n const token = new PercentageToken();\n token.value = num.value;\n token.repr = num.repr;\n return token;\n } else {\n const token = new NumberToken();\n token.value = num.value;\n token.repr = num.repr;\n token.type = num.type;\n return token;\n }\n };\n const consumeAnIdentlikeToken = function() {\n const str2 = consumeAName();\n if (str2.toLowerCase() === "url" && next() === 40) {\n consume();\n while (whitespace(next(1)) && whitespace(next(2)))\n consume();\n if (next() === 34 || next() === 39)\n return new FunctionToken(str2);\n else if (whitespace(next()) && (next(2) === 34 || next(2) === 39))\n return new FunctionToken(str2);\n else\n return consumeAURLToken();\n } else if (next() === 40) {\n consume();\n return new FunctionToken(str2);\n } else {\n return new IdentToken(str2);\n }\n };\n const consumeAStringToken = function(endingCodePoint) {\n if (endingCodePoint === void 0)\n endingCodePoint = code;\n let string = "";\n while (consume()) {\n if (code === endingCodePoint || eof()) {\n return new StringToken(string);\n } else if (newline(code)) {\n parseerror();\n reconsume();\n return new BadStringToken();\n } else if (code === 92) {\n if (eof(next()))\n donothing();\n else if (newline(next()))\n consume();\n else\n string += stringFromCode(consumeEscape());\n } else {\n string += stringFromCode(code);\n }\n }\n throw new Error("Internal error");\n };\n const consumeAURLToken = function() {\n const token = new URLToken("");\n while (whitespace(next()))\n consume();\n if (eof(next()))\n return token;\n while (consume()) {\n if (code === 41 || eof()) {\n return token;\n } else if (whitespace(code)) {\n while (whitespace(next()))\n consume();\n if (next() === 41 || eof(next())) {\n consume();\n return token;\n } else {\n consumeTheRemnantsOfABadURL();\n return new BadURLToken();\n }\n } else if (code === 34 || code === 39 || code === 40 || nonprintable(code)) {\n parseerror();\n consumeTheRemnantsOfABadURL();\n return new BadURLToken();\n } else if (code === 92) {\n if (startsWithAValidEscape()) {\n token.value += stringFromCode(consumeEscape());\n } else {\n parseerror();\n consumeTheRemnantsOfABadURL();\n return new BadURLToken();\n }\n } else {\n token.value += stringFromCode(code);\n }\n }\n throw new Error("Internal error");\n };\n const consumeEscape = function() {\n consume();\n if (hexdigit(code)) {\n const digits = [code];\n for (let total = 0; total < 5; total++) {\n if (hexdigit(next())) {\n consume();\n digits.push(code);\n } else {\n break;\n }\n }\n if (whitespace(next()))\n consume();\n let value = parseInt(digits.map(function(x) {\n return String.fromCharCode(x);\n }).join(""), 16);\n if (value > maximumallowedcodepoint)\n value = 65533;\n return value;\n } else if (eof()) {\n return 65533;\n } else {\n return code;\n }\n };\n const areAValidEscape = function(c1, c2) {\n if (c1 !== 92)\n return false;\n if (newline(c2))\n return false;\n return true;\n };\n const startsWithAValidEscape = function() {\n return areAValidEscape(code, next());\n };\n const wouldStartAnIdentifier = function(c1, c2, c3) {\n if (c1 === 45)\n return namestartchar(c2) || c2 === 45 || areAValidEscape(c2, c3);\n else if (namestartchar(c1))\n return true;\n else if (c1 === 92)\n return areAValidEscape(c1, c2);\n else\n return false;\n };\n const startsWithAnIdentifier = function() {\n return wouldStartAnIdentifier(code, next(1), next(2));\n };\n const wouldStartANumber = function(c1, c2, c3) {\n if (c1 === 43 || c1 === 45) {\n if (digit(c2))\n return true;\n if (c2 === 46 && digit(c3))\n return true;\n return false;\n } else if (c1 === 46) {\n if (digit(c2))\n return true;\n return false;\n } else if (digit(c1)) {\n return true;\n } else {\n return false;\n }\n };\n const startsWithANumber = function() {\n return wouldStartANumber(code, next(1), next(2));\n };\n const consumeAName = function() {\n let result = "";\n while (consume()) {\n if (namechar(code)) {\n result += stringFromCode(code);\n } else if (startsWithAValidEscape()) {\n result += stringFromCode(consumeEscape());\n } else {\n reconsume();\n return result;\n }\n }\n throw new Error("Internal parse error");\n };\n const consumeANumber = function() {\n let repr = "";\n let type = "integer";\n if (next() === 43 || next() === 45) {\n consume();\n repr += stringFromCode(code);\n }\n while (digit(next())) {\n consume();\n repr += stringFromCode(code);\n }\n if (next(1) === 46 && digit(next(2))) {\n consume();\n repr += stringFromCode(code);\n consume();\n repr += stringFromCode(code);\n type = "number";\n while (digit(next())) {\n consume();\n repr += stringFromCode(code);\n }\n }\n const c1 = next(1), c2 = next(2), c3 = next(3);\n if ((c1 === 69 || c1 === 101) && digit(c2)) {\n consume();\n repr += stringFromCode(code);\n consume();\n repr += stringFromCode(code);\n type = "number";\n while (digit(next())) {\n consume();\n repr += stringFromCode(code);\n }\n } else if ((c1 === 69 || c1 === 101) && (c2 === 43 || c2 === 45) && digit(c3)) {\n consume();\n repr += stringFromCode(code);\n consume();\n repr += stringFromCode(code);\n consume();\n repr += stringFromCode(code);\n type = "number";\n while (digit(next())) {\n consume();\n repr += stringFromCode(code);\n }\n }\n const value = convertAStringToANumber(repr);\n return { type, value, repr };\n };\n const convertAStringToANumber = function(string) {\n return +string;\n };\n const consumeTheRemnantsOfABadURL = function() {\n while (consume()) {\n if (code === 41 || eof()) {\n return;\n } else if (startsWithAValidEscape()) {\n consumeEscape();\n donothing();\n } else {\n donothing();\n }\n }\n };\n let iterationCount = 0;\n while (!eof(next())) {\n tokens.push(consumeAToken());\n iterationCount++;\n if (iterationCount > str.length * 2)\n throw new Error("I\'m infinite-looping!");\n }\n return tokens;\n}\nvar CSSParserToken = class {\n constructor() {\n this.tokenType = "";\n }\n toJSON() {\n return { token: this.tokenType };\n }\n toString() {\n return this.tokenType;\n }\n toSource() {\n return "" + this;\n }\n};\nvar BadStringToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.tokenType = "BADSTRING";\n }\n};\nvar BadURLToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.tokenType = "BADURL";\n }\n};\nvar WhitespaceToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.tokenType = "WHITESPACE";\n }\n toString() {\n return "WS";\n }\n toSource() {\n return " ";\n }\n};\nvar CDOToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.tokenType = "CDO";\n }\n toSource() {\n return "";\n }\n};\nvar ColonToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.tokenType = ":";\n }\n};\nvar SemicolonToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.tokenType = ";";\n }\n};\nvar CommaToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.tokenType = ",";\n }\n};\nvar GroupingToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.value = "";\n this.mirror = "";\n }\n};\nvar OpenCurlyToken = class extends GroupingToken {\n constructor() {\n super();\n this.tokenType = "{";\n this.value = "{";\n this.mirror = "}";\n }\n};\nvar CloseCurlyToken = class extends GroupingToken {\n constructor() {\n super();\n this.tokenType = "}";\n this.value = "}";\n this.mirror = "{";\n }\n};\nvar OpenSquareToken = class extends GroupingToken {\n constructor() {\n super();\n this.tokenType = "[";\n this.value = "[";\n this.mirror = "]";\n }\n};\nvar CloseSquareToken = class extends GroupingToken {\n constructor() {\n super();\n this.tokenType = "]";\n this.value = "]";\n this.mirror = "[";\n }\n};\nvar OpenParenToken = class extends GroupingToken {\n constructor() {\n super();\n this.tokenType = "(";\n this.value = "(";\n this.mirror = ")";\n }\n};\nvar CloseParenToken = class extends GroupingToken {\n constructor() {\n super();\n this.tokenType = ")";\n this.value = ")";\n this.mirror = "(";\n }\n};\nvar IncludeMatchToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.tokenType = "~=";\n }\n};\nvar DashMatchToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.tokenType = "|=";\n }\n};\nvar PrefixMatchToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.tokenType = "^=";\n }\n};\nvar SuffixMatchToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.tokenType = "$=";\n }\n};\nvar SubstringMatchToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.tokenType = "*=";\n }\n};\nvar ColumnToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.tokenType = "||";\n }\n};\nvar EOFToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.tokenType = "EOF";\n }\n toSource() {\n return "";\n }\n};\nvar DelimToken = class extends CSSParserToken {\n constructor(code) {\n super();\n this.tokenType = "DELIM";\n this.value = "";\n this.value = stringFromCode(code);\n }\n toString() {\n return "DELIM(" + this.value + ")";\n }\n toJSON() {\n const json = this.constructor.prototype.constructor.prototype.toJSON.call(this);\n json.value = this.value;\n return json;\n }\n toSource() {\n if (this.value === "\\\\")\n return "\\\\\\n";\n else\n return this.value;\n }\n};\nvar StringValuedToken = class extends CSSParserToken {\n constructor() {\n super(...arguments);\n this.value = "";\n }\n ASCIIMatch(str) {\n return this.value.toLowerCase() === str.toLowerCase();\n }\n toJSON() {\n const json = this.constructor.prototype.constructor.prototype.toJSON.call(this);\n json.value = this.value;\n return json;\n }\n};\nvar IdentToken = class extends StringValuedToken {\n constructor(val) {\n super();\n this.tokenType = "IDENT";\n this.value = val;\n }\n toString() {\n return "IDENT(" + this.value + ")";\n }\n toSource() {\n return escapeIdent(this.value);\n }\n};\nvar FunctionToken = class extends StringValuedToken {\n constructor(val) {\n super();\n this.tokenType = "FUNCTION";\n this.value = val;\n this.mirror = ")";\n }\n toString() {\n return "FUNCTION(" + this.value + ")";\n }\n toSource() {\n return escapeIdent(this.value) + "(";\n }\n};\nvar AtKeywordToken = class extends StringValuedToken {\n constructor(val) {\n super();\n this.tokenType = "AT-KEYWORD";\n this.value = val;\n }\n toString() {\n return "AT(" + this.value + ")";\n }\n toSource() {\n return "@" + escapeIdent(this.value);\n }\n};\nvar HashToken = class extends StringValuedToken {\n constructor(val) {\n super();\n this.tokenType = "HASH";\n this.value = val;\n this.type = "unrestricted";\n }\n toString() {\n return "HASH(" + this.value + ")";\n }\n toJSON() {\n const json = this.constructor.prototype.constructor.prototype.toJSON.call(this);\n json.value = this.value;\n json.type = this.type;\n return json;\n }\n toSource() {\n if (this.type === "id")\n return "#" + escapeIdent(this.value);\n else\n return "#" + escapeHash(this.value);\n }\n};\nvar StringToken = class extends StringValuedToken {\n constructor(val) {\n super();\n this.tokenType = "STRING";\n this.value = val;\n }\n toString() {\n return \'"\' + escapeString(this.value) + \'"\';\n }\n};\nvar URLToken = class extends StringValuedToken {\n constructor(val) {\n super();\n this.tokenType = "URL";\n this.value = val;\n }\n toString() {\n return "URL(" + this.value + ")";\n }\n toSource() {\n return \'url("\' + escapeString(this.value) + \'")\';\n }\n};\nvar NumberToken = class extends CSSParserToken {\n constructor() {\n super();\n this.tokenType = "NUMBER";\n this.type = "integer";\n this.repr = "";\n }\n toString() {\n if (this.type === "integer")\n return "INT(" + this.value + ")";\n return "NUMBER(" + this.value + ")";\n }\n toJSON() {\n const json = super.toJSON();\n json.value = this.value;\n json.type = this.type;\n json.repr = this.repr;\n return json;\n }\n toSource() {\n return this.repr;\n }\n};\nvar PercentageToken = class extends CSSParserToken {\n constructor() {\n super();\n this.tokenType = "PERCENTAGE";\n this.repr = "";\n }\n toString() {\n return "PERCENTAGE(" + this.value + ")";\n }\n toJSON() {\n const json = this.constructor.prototype.constructor.prototype.toJSON.call(this);\n json.value = this.value;\n json.repr = this.repr;\n return json;\n }\n toSource() {\n return this.repr + "%";\n }\n};\nvar DimensionToken = class extends CSSParserToken {\n constructor() {\n super();\n this.tokenType = "DIMENSION";\n this.type = "integer";\n this.repr = "";\n this.unit = "";\n }\n toString() {\n return "DIM(" + this.value + "," + this.unit + ")";\n }\n toJSON() {\n const json = this.constructor.prototype.constructor.prototype.toJSON.call(this);\n json.value = this.value;\n json.type = this.type;\n json.repr = this.repr;\n json.unit = this.unit;\n return json;\n }\n toSource() {\n const source = this.repr;\n let unit = escapeIdent(this.unit);\n if (unit[0].toLowerCase() === "e" && (unit[1] === "-" || between(unit.charCodeAt(1), 48, 57))) {\n unit = "\\\\65 " + unit.slice(1, unit.length);\n }\n return source + unit;\n }\n};\nfunction escapeIdent(string) {\n string = "" + string;\n let result = "";\n const firstcode = string.charCodeAt(0);\n for (let i = 0; i < string.length; i++) {\n const code = string.charCodeAt(i);\n if (code === 0)\n throw new InvalidCharacterError("Invalid character: the input contains U+0000.");\n if (between(code, 1, 31) || code === 127 || i === 0 && between(code, 48, 57) || i === 1 && between(code, 48, 57) && firstcode === 45)\n result += "\\\\" + code.toString(16) + " ";\n else if (code >= 128 || code === 45 || code === 95 || between(code, 48, 57) || between(code, 65, 90) || between(code, 97, 122))\n result += string[i];\n else\n result += "\\\\" + string[i];\n }\n return result;\n}\nfunction escapeHash(string) {\n string = "" + string;\n let result = "";\n for (let i = 0; i < string.length; i++) {\n const code = string.charCodeAt(i);\n if (code === 0)\n throw new InvalidCharacterError("Invalid character: the input contains U+0000.");\n if (code >= 128 || code === 45 || code === 95 || between(code, 48, 57) || between(code, 65, 90) || between(code, 97, 122))\n result += string[i];\n else\n result += "\\\\" + code.toString(16) + " ";\n }\n return result;\n}\nfunction escapeString(string) {\n string = "" + string;\n let result = "";\n for (let i = 0; i < string.length; i++) {\n const code = string.charCodeAt(i);\n if (code === 0)\n throw new InvalidCharacterError("Invalid character: the input contains U+0000.");\n if (between(code, 1, 31) || code === 127)\n result += "\\\\" + code.toString(16) + " ";\n else if (code === 34 || code === 92)\n result += "\\\\" + string[i];\n else\n result += string[i];\n }\n return result;\n}\n\n// packages/playwright-core/src/utils/isomorphic/cssParser.ts\nvar InvalidSelectorError = class extends Error {\n};\nfunction parseCSS(selector, customNames) {\n let tokens;\n try {\n tokens = tokenize(selector);\n if (!(tokens[tokens.length - 1] instanceof EOFToken))\n tokens.push(new EOFToken());\n } catch (e) {\n const newMessage = e.message + ` while parsing css selector "${selector}". Did you mean to CSS.escape it?`;\n const index = (e.stack || "").indexOf(e.message);\n if (index !== -1)\n e.stack = e.stack.substring(0, index) + newMessage + e.stack.substring(index + e.message.length);\n e.message = newMessage;\n throw e;\n }\n const unsupportedToken = tokens.find((token) => {\n return token instanceof AtKeywordToken || token instanceof BadStringToken || token instanceof BadURLToken || token instanceof ColumnToken || token instanceof CDOToken || token instanceof CDCToken || token instanceof SemicolonToken || // TODO: Consider using these for something, e.g. to escape complex strings.\n // For example :xpath{ (//div/bar[@attr="foo"])[2]/baz }\n // Or this way :xpath( {complex-xpath-goes-here("hello")} )\n token instanceof OpenCurlyToken || token instanceof CloseCurlyToken || // TODO: Consider treating these as strings?\n token instanceof URLToken || token instanceof PercentageToken;\n });\n if (unsupportedToken)\n throw new InvalidSelectorError(`Unsupported token "${unsupportedToken.toSource()}" while parsing css selector "${selector}". Did you mean to CSS.escape it?`);\n let pos = 0;\n const names = /* @__PURE__ */ new Set();\n function unexpected() {\n return new InvalidSelectorError(`Unexpected token "${tokens[pos].toSource()}" while parsing css selector "${selector}". Did you mean to CSS.escape it?`);\n }\n function skipWhitespace() {\n while (tokens[pos] instanceof WhitespaceToken)\n pos++;\n }\n function isIdent(p = pos) {\n return tokens[p] instanceof IdentToken;\n }\n function isString(p = pos) {\n return tokens[p] instanceof StringToken;\n }\n function isNumber(p = pos) {\n return tokens[p] instanceof NumberToken;\n }\n function isComma(p = pos) {\n return tokens[p] instanceof CommaToken;\n }\n function isOpenParen(p = pos) {\n return tokens[p] instanceof OpenParenToken;\n }\n function isCloseParen(p = pos) {\n return tokens[p] instanceof CloseParenToken;\n }\n function isFunction(p = pos) {\n return tokens[p] instanceof FunctionToken;\n }\n function isStar(p = pos) {\n return tokens[p] instanceof DelimToken && tokens[p].value === "*";\n }\n function isEOF(p = pos) {\n return tokens[p] instanceof EOFToken;\n }\n function isClauseCombinator(p = pos) {\n return tokens[p] instanceof DelimToken && [">", "+", "~"].includes(tokens[p].value);\n }\n function isSelectorClauseEnd(p = pos) {\n return isComma(p) || isCloseParen(p) || isEOF(p) || isClauseCombinator(p) || tokens[p] instanceof WhitespaceToken;\n }\n function consumeFunctionArguments() {\n const result2 = [consumeArgument()];\n while (true) {\n skipWhitespace();\n if (!isComma())\n break;\n pos++;\n result2.push(consumeArgument());\n }\n return result2;\n }\n function consumeArgument() {\n skipWhitespace();\n if (isNumber())\n return tokens[pos++].value;\n if (isString())\n return tokens[pos++].value;\n return consumeComplexSelector();\n }\n function consumeComplexSelector() {\n const result2 = { simples: [] };\n skipWhitespace();\n if (isClauseCombinator()) {\n result2.simples.push({ selector: { functions: [{ name: "scope", args: [] }] }, combinator: "" });\n } else {\n result2.simples.push({ selector: consumeSimpleSelector(), combinator: "" });\n }\n while (true) {\n skipWhitespace();\n if (isClauseCombinator()) {\n result2.simples[result2.simples.length - 1].combinator = tokens[pos++].value;\n skipWhitespace();\n } else if (isSelectorClauseEnd()) {\n break;\n }\n result2.simples.push({ combinator: "", selector: consumeSimpleSelector() });\n }\n return result2;\n }\n function consumeSimpleSelector() {\n let rawCSSString = "";\n const functions = [];\n while (!isSelectorClauseEnd()) {\n if (isIdent() || isStar()) {\n rawCSSString += tokens[pos++].toSource();\n } else if (tokens[pos] instanceof HashToken) {\n rawCSSString += tokens[pos++].toSource();\n } else if (tokens[pos] instanceof DelimToken && tokens[pos].value === ".") {\n pos++;\n if (isIdent())\n rawCSSString += "." + tokens[pos++].toSource();\n else\n throw unexpected();\n } else if (tokens[pos] instanceof ColonToken) {\n pos++;\n if (isIdent()) {\n if (!customNames.has(tokens[pos].value.toLowerCase())) {\n rawCSSString += ":" + tokens[pos++].toSource();\n } else {\n const name = tokens[pos++].value.toLowerCase();\n functions.push({ name, args: [] });\n names.add(name);\n }\n } else if (isFunction()) {\n const name = tokens[pos++].value.toLowerCase();\n if (!customNames.has(name)) {\n rawCSSString += `:${name}(${consumeBuiltinFunctionArguments()})`;\n } else {\n functions.push({ name, args: consumeFunctionArguments() });\n names.add(name);\n }\n skipWhitespace();\n if (!isCloseParen())\n throw unexpected();\n pos++;\n } else {\n throw unexpected();\n }\n } else if (tokens[pos] instanceof OpenSquareToken) {\n rawCSSString += "[";\n pos++;\n while (!(tokens[pos] instanceof CloseSquareToken) && !isEOF())\n rawCSSString += tokens[pos++].toSource();\n if (!(tokens[pos] instanceof CloseSquareToken))\n throw unexpected();\n rawCSSString += "]";\n pos++;\n } else {\n throw unexpected();\n }\n }\n if (!rawCSSString && !functions.length)\n throw unexpected();\n return { css: rawCSSString || void 0, functions };\n }\n function consumeBuiltinFunctionArguments() {\n let s = "";\n let balance = 1;\n while (!isEOF()) {\n if (isOpenParen() || isFunction())\n balance++;\n if (isCloseParen())\n balance--;\n if (!balance)\n break;\n s += tokens[pos++].toSource();\n }\n return s;\n }\n const result = consumeFunctionArguments();\n if (!isEOF())\n throw unexpected();\n if (result.some((arg) => typeof arg !== "object" || !("simples" in arg)))\n throw new InvalidSelectorError(`Error while parsing css selector "${selector}". Did you mean to CSS.escape it?`);\n return { selector: result, names: Array.from(names) };\n}\n\n// packages/playwright-core/src/utils/isomorphic/selectorParser.ts\nvar kNestedSelectorNames = /* @__PURE__ */ new Set(["internal:has", "internal:has-not", "internal:and", "internal:or", "internal:chain", "left-of", "right-of", "above", "below", "near"]);\nvar kNestedSelectorNamesWithDistance = /* @__PURE__ */ new Set(["left-of", "right-of", "above", "below", "near"]);\nvar customCSSNames = /* @__PURE__ */ new Set(["not", "is", "where", "has", "scope", "light", "visible", "text", "text-matches", "text-is", "has-text", "above", "below", "right-of", "left-of", "near", "nth-match"]);\nfunction parseSelector(selector) {\n const parsedStrings = parseSelectorString(selector);\n const parts = [];\n for (const part of parsedStrings.parts) {\n if (part.name === "css" || part.name === "css:light") {\n if (part.name === "css:light")\n part.body = ":light(" + part.body + ")";\n const parsedCSS = parseCSS(part.body, customCSSNames);\n parts.push({\n name: "css",\n body: parsedCSS.selector,\n source: part.body\n });\n continue;\n }\n if (kNestedSelectorNames.has(part.name)) {\n let innerSelector;\n let distance;\n try {\n const unescaped = JSON.parse("[" + part.body + "]");\n if (!Array.isArray(unescaped) || unescaped.length < 1 || unescaped.length > 2 || typeof unescaped[0] !== "string")\n throw new InvalidSelectorError(`Malformed selector: ${part.name}=` + part.body);\n innerSelector = unescaped[0];\n if (unescaped.length === 2) {\n if (typeof unescaped[1] !== "number" || !kNestedSelectorNamesWithDistance.has(part.name))\n throw new InvalidSelectorError(`Malformed selector: ${part.name}=` + part.body);\n distance = unescaped[1];\n }\n } catch (e) {\n throw new InvalidSelectorError(`Malformed selector: ${part.name}=` + part.body);\n }\n const nested = { name: part.name, source: part.body, body: { parsed: parseSelector(innerSelector), distance } };\n const lastFrame = [...nested.body.parsed.parts].reverse().find((part2) => part2.name === "internal:control" && part2.body === "enter-frame");\n const lastFrameIndex = lastFrame ? nested.body.parsed.parts.indexOf(lastFrame) : -1;\n if (lastFrameIndex !== -1 && selectorPartsEqual(nested.body.parsed.parts.slice(0, lastFrameIndex + 1), parts.slice(0, lastFrameIndex + 1)))\n nested.body.parsed.parts.splice(0, lastFrameIndex + 1);\n parts.push(nested);\n continue;\n }\n parts.push({ ...part, source: part.body });\n }\n if (kNestedSelectorNames.has(parts[0].name))\n throw new InvalidSelectorError(`"${parts[0].name}" selector cannot be first`);\n return {\n capture: parsedStrings.capture,\n parts\n };\n}\nfunction selectorPartsEqual(list1, list2) {\n return stringifySelector({ parts: list1 }) === stringifySelector({ parts: list2 });\n}\nfunction stringifySelector(selector, forceEngineName) {\n if (typeof selector === "string")\n return selector;\n return selector.parts.map((p, i) => {\n let includeEngine = true;\n if (!forceEngineName && i !== selector.capture) {\n if (p.name === "css")\n includeEngine = false;\n else if (p.name === "xpath" && p.source.startsWith("//") || p.source.startsWith(".."))\n includeEngine = false;\n }\n const prefix = includeEngine ? p.name + "=" : "";\n return `${i === selector.capture ? "*" : ""}${prefix}${p.source}`;\n }).join(" >> ");\n}\nfunction visitAllSelectorParts(selector, visitor) {\n const visit = (selector2, nested) => {\n for (const part of selector2.parts) {\n visitor(part, nested);\n if (kNestedSelectorNames.has(part.name))\n visit(part.body.parsed, true);\n }\n };\n visit(selector, false);\n}\nfunction parseSelectorString(selector) {\n let index = 0;\n let quote;\n let start = 0;\n const result = { parts: [] };\n const append = () => {\n const part = selector.substring(start, index).trim();\n const eqIndex = part.indexOf("=");\n let name;\n let body;\n if (eqIndex !== -1 && part.substring(0, eqIndex).trim().match(/^[a-zA-Z_0-9-+:*]+$/)) {\n name = part.substring(0, eqIndex).trim();\n body = part.substring(eqIndex + 1);\n } else if (part.length > 1 && part[0] === \'"\' && part[part.length - 1] === \'"\') {\n name = "text";\n body = part;\n } else if (part.length > 1 && part[0] === "\'" && part[part.length - 1] === "\'") {\n name = "text";\n body = part;\n } else if (/^\\(*\\/\\//.test(part) || part.startsWith("..")) {\n name = "xpath";\n body = part;\n } else {\n name = "css";\n body = part;\n }\n let capture = false;\n if (name[0] === "*") {\n capture = true;\n name = name.substring(1);\n }\n result.parts.push({ name, body });\n if (capture) {\n if (result.capture !== void 0)\n throw new InvalidSelectorError(`Only one of the selectors can capture using * modifier`);\n result.capture = result.parts.length - 1;\n }\n };\n if (!selector.includes(">>")) {\n index = selector.length;\n append();\n return result;\n }\n const shouldIgnoreTextSelectorQuote = () => {\n const prefix = selector.substring(start, index);\n const match = prefix.match(/^\\s*text\\s*=(.*)$/);\n return !!match && !!match[1];\n };\n while (index < selector.length) {\n const c = selector[index];\n if (c === "\\\\" && index + 1 < selector.length) {\n index += 2;\n } else if (c === quote) {\n quote = void 0;\n index++;\n } else if (!quote && (c === \'"\' || c === "\'" || c === "`") && !shouldIgnoreTextSelectorQuote()) {\n quote = c;\n index++;\n } else if (!quote && c === ">" && selector[index + 1] === ">") {\n append();\n index += 2;\n start = index;\n } else {\n index++;\n }\n }\n append();\n return result;\n}\nfunction parseAttributeSelector(selector, allowUnquotedStrings) {\n let wp = 0;\n let EOL = selector.length === 0;\n const next = () => selector[wp] || "";\n const eat1 = () => {\n const result2 = next();\n ++wp;\n EOL = wp >= selector.length;\n return result2;\n };\n const syntaxError = (stage) => {\n if (EOL)\n throw new InvalidSelectorError(`Unexpected end of selector while parsing selector \\`${selector}\\``);\n throw new InvalidSelectorError(`Error while parsing selector \\`${selector}\\` - unexpected symbol "${next()}" at position ${wp}` + (stage ? " during " + stage : ""));\n };\n function skipSpaces() {\n while (!EOL && /\\s/.test(next()))\n eat1();\n }\n function isCSSNameChar(char) {\n return char >= "\\x80" || char >= "0" && char <= "9" || char >= "A" && char <= "Z" || char >= "a" && char <= "z" || char >= "0" && char <= "9" || char === "_" || char === "-";\n }\n function readIdentifier() {\n let result2 = "";\n skipSpaces();\n while (!EOL && isCSSNameChar(next()))\n result2 += eat1();\n return result2;\n }\n function readQuotedString(quote) {\n let result2 = eat1();\n if (result2 !== quote)\n syntaxError("parsing quoted string");\n while (!EOL && next() !== quote) {\n if (next() === "\\\\")\n eat1();\n result2 += eat1();\n }\n if (next() !== quote)\n syntaxError("parsing quoted string");\n result2 += eat1();\n return result2;\n }\n function readRegularExpression() {\n if (eat1() !== "/")\n syntaxError("parsing regular expression");\n let source = "";\n let inClass = false;\n while (!EOL) {\n if (next() === "\\\\") {\n source += eat1();\n if (EOL)\n syntaxError("parsing regular expression");\n } else if (inClass && next() === "]") {\n inClass = false;\n } else if (!inClass && next() === "[") {\n inClass = true;\n } else if (!inClass && next() === "/") {\n break;\n }\n source += eat1();\n }\n if (eat1() !== "/")\n syntaxError("parsing regular expression");\n let flags = "";\n while (!EOL && next().match(/[dgimsuy]/))\n flags += eat1();\n try {\n return new RegExp(source, flags);\n } catch (e) {\n throw new InvalidSelectorError(`Error while parsing selector \\`${selector}\\`: ${e.message}`);\n }\n }\n function readAttributeToken() {\n let token = "";\n skipSpaces();\n if (next() === `\'` || next() === `"`)\n token = readQuotedString(next()).slice(1, -1);\n else\n token = readIdentifier();\n if (!token)\n syntaxError("parsing property path");\n return token;\n }\n function readOperator() {\n skipSpaces();\n let op = "";\n if (!EOL)\n op += eat1();\n if (!EOL && op !== "=")\n op += eat1();\n if (!["=", "*=", "^=", "$=", "|=", "~="].includes(op))\n syntaxError("parsing operator");\n return op;\n }\n function readAttribute() {\n eat1();\n const jsonPath = [];\n jsonPath.push(readAttributeToken());\n skipSpaces();\n while (next() === ".") {\n eat1();\n jsonPath.push(readAttributeToken());\n skipSpaces();\n }\n if (next() === "]") {\n eat1();\n return { name: jsonPath.join("."), jsonPath, op: "", value: null, caseSensitive: false };\n }\n const operator = readOperator();\n let value = void 0;\n let caseSensitive = true;\n skipSpaces();\n if (next() === "/") {\n if (operator !== "=")\n throw new InvalidSelectorError(`Error while parsing selector \\`${selector}\\` - cannot use ${operator} in attribute with regular expression`);\n value = readRegularExpression();\n } else if (next() === `\'` || next() === `"`) {\n value = readQuotedString(next()).slice(1, -1);\n skipSpaces();\n if (next() === "i" || next() === "I") {\n caseSensitive = false;\n eat1();\n } else if (next() === "s" || next() === "S") {\n caseSensitive = true;\n eat1();\n }\n } else {\n value = "";\n while (!EOL && (isCSSNameChar(next()) || next() === "+" || next() === "."))\n value += eat1();\n if (value === "true") {\n value = true;\n } else if (value === "false") {\n value = false;\n } else {\n if (!allowUnquotedStrings) {\n value = +value;\n if (Number.isNaN(value))\n syntaxError("parsing attribute value");\n }\n }\n }\n skipSpaces();\n if (next() !== "]")\n syntaxError("parsing attribute value");\n eat1();\n if (operator !== "=" && typeof value !== "string")\n throw new InvalidSelectorError(`Error while parsing selector \\`${selector}\\` - cannot use ${operator} in attribute with non-string matching value - ${value}`);\n return { name: jsonPath.join("."), jsonPath, op: operator, value, caseSensitive };\n }\n const result = {\n name: "",\n attributes: []\n };\n result.name = readIdentifier();\n skipSpaces();\n while (next() === "[") {\n result.attributes.push(readAttribute());\n skipSpaces();\n }\n if (!EOL)\n syntaxError(void 0);\n if (!result.name && !result.attributes.length)\n throw new InvalidSelectorError(`Error while parsing selector \\`${selector}\\` - selector cannot be empty`);\n return result;\n}\n\n// packages/playwright-core/src/utils/isomorphic/stringUtils.ts\nfunction escapeWithQuotes(text, char = "\'") {\n const stringified = JSON.stringify(text);\n const escapedText = stringified.substring(1, stringified.length - 1).replace(/\\\\"/g, \'"\');\n if (char === "\'")\n return char + escapedText.replace(/[\']/g, "\\\\\'") + char;\n if (char === \'"\')\n return char + escapedText.replace(/["]/g, \'\\\\"\') + char;\n if (char === "`")\n return char + escapedText.replace(/[`]/g, "\\\\`") + char;\n throw new Error("Invalid escape char");\n}\nfunction toTitleCase(name) {\n return name.charAt(0).toUpperCase() + name.substring(1);\n}\nfunction toSnakeCase(name) {\n return name.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toLowerCase();\n}\nfunction quoteCSSAttributeValue(text) {\n return `"${text.replace(/["\\\\]/g, (char) => "\\\\" + char)}"`;\n}\nvar normalizedWhitespaceCache;\nfunction cacheNormalizedWhitespaces() {\n normalizedWhitespaceCache = /* @__PURE__ */ new Map();\n}\nfunction normalizeWhiteSpace(text) {\n let result = normalizedWhitespaceCache == null ? void 0 : normalizedWhitespaceCache.get(text);\n if (result === void 0) {\n result = text.replace(/[\\u200b\\u00ad]/g, "").trim().replace(/\\s+/g, " ");\n normalizedWhitespaceCache == null ? void 0 : normalizedWhitespaceCache.set(text, result);\n }\n return result;\n}\nfunction normalizeEscapedRegexQuotes(source) {\n return source.replace(/(^|[^\\\\])(\\\\\\\\)*\\\\([\'"`])/g, "$1$2$3");\n}\nfunction escapeRegexForSelector(re) {\n if (re.unicode || re.unicodeSets)\n return String(re);\n return String(re).replace(/(^|[^\\\\])(\\\\\\\\)*(["\'`])/g, "$1$2\\\\$3").replace(/>>/g, "\\\\>\\\\>");\n}\nfunction escapeForTextSelector(text, exact) {\n if (typeof text !== "string")\n return escapeRegexForSelector(text);\n return `${JSON.stringify(text)}${exact ? "s" : "i"}`;\n}\nfunction escapeForAttributeSelector(value, exact) {\n if (typeof value !== "string")\n return escapeRegexForSelector(value);\n return `"${value.replace(/\\\\/g, "\\\\\\\\").replace(/["]/g, \'\\\\"\')}"${exact ? "s" : "i"}`;\n}\nfunction trimString(input, cap, suffix = "") {\n if (input.length <= cap)\n return input;\n const chars = [...input];\n if (chars.length > cap)\n return chars.slice(0, cap - suffix.length).join("") + suffix;\n return chars.join("");\n}\nfunction trimStringWithEllipsis(input, cap) {\n return trimString(input, cap, "\\u2026");\n}\nfunction escapeRegExp(s) {\n return s.replace(/[.*+?^${}()|[\\]\\\\]/g, "\\\\$&");\n}\nfunction longestCommonSubstring(s1, s2) {\n const n = s1.length;\n const m = s2.length;\n let maxLen = 0;\n let endingIndex = 0;\n const dp = Array(n + 1).fill(null).map(() => Array(m + 1).fill(0));\n for (let i = 1; i <= n; i++) {\n for (let j = 1; j <= m; j++) {\n if (s1[i - 1] === s2[j - 1]) {\n dp[i][j] = dp[i - 1][j - 1] + 1;\n if (dp[i][j] > maxLen) {\n maxLen = dp[i][j];\n endingIndex = i;\n }\n }\n }\n }\n return s1.slice(endingIndex - maxLen, endingIndex);\n}\nvar ansiRegex = new RegExp("([\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:[a-zA-Z\\\\d]*(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)|(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-ntqry=><~])))", "g");\n\n// packages/playwright-core/src/utils/isomorphic/locatorGenerators.ts\nfunction asLocator(lang, selector, isFrameLocator = false) {\n return asLocators(lang, selector, isFrameLocator, 1)[0];\n}\nfunction asLocators(lang, selector, isFrameLocator = false, maxOutputSize = 20, preferredQuote) {\n try {\n return innerAsLocators(new generators[lang](preferredQuote), parseSelector(selector), isFrameLocator, maxOutputSize);\n } catch (e) {\n return [selector];\n }\n}\nfunction innerAsLocators(factory, parsed, isFrameLocator = false, maxOutputSize = 20) {\n const parts = [...parsed.parts];\n const tokens = [];\n let nextBase = isFrameLocator ? "frame-locator" : "page";\n for (let index = 0; index < parts.length; index++) {\n const part = parts[index];\n const base = nextBase;\n nextBase = "locator";\n if (part.name === "internal:describe")\n continue;\n if (part.name === "nth") {\n if (part.body === "0")\n tokens.push([factory.generateLocator(base, "first", ""), factory.generateLocator(base, "nth", "0")]);\n else if (part.body === "-1")\n tokens.push([factory.generateLocator(base, "last", ""), factory.generateLocator(base, "nth", "-1")]);\n else\n tokens.push([factory.generateLocator(base, "nth", part.body)]);\n continue;\n }\n if (part.name === "visible") {\n tokens.push([factory.generateLocator(base, "visible", part.body), factory.generateLocator(base, "default", `visible=${part.body}`)]);\n continue;\n }\n if (part.name === "internal:text") {\n const { exact, text } = detectExact(part.body);\n tokens.push([factory.generateLocator(base, "text", text, { exact })]);\n continue;\n }\n if (part.name === "internal:has-text") {\n const { exact, text } = detectExact(part.body);\n if (!exact) {\n tokens.push([factory.generateLocator(base, "has-text", text, { exact })]);\n continue;\n }\n }\n if (part.name === "internal:has-not-text") {\n const { exact, text } = detectExact(part.body);\n if (!exact) {\n tokens.push([factory.generateLocator(base, "has-not-text", text, { exact })]);\n continue;\n }\n }\n if (part.name === "internal:has") {\n const inners = innerAsLocators(factory, part.body.parsed, false, maxOutputSize);\n tokens.push(inners.map((inner) => factory.generateLocator(base, "has", inner)));\n continue;\n }\n if (part.name === "internal:has-not") {\n const inners = innerAsLocators(factory, part.body.parsed, false, maxOutputSize);\n tokens.push(inners.map((inner) => factory.generateLocator(base, "hasNot", inner)));\n continue;\n }\n if (part.name === "internal:and") {\n const inners = innerAsLocators(factory, part.body.parsed, false, maxOutputSize);\n tokens.push(inners.map((inner) => factory.generateLocator(base, "and", inner)));\n continue;\n }\n if (part.name === "internal:or") {\n const inners = innerAsLocators(factory, part.body.parsed, false, maxOutputSize);\n tokens.push(inners.map((inner) => factory.generateLocator(base, "or", inner)));\n continue;\n }\n if (part.name === "internal:chain") {\n const inners = innerAsLocators(factory, part.body.parsed, false, maxOutputSize);\n tokens.push(inners.map((inner) => factory.generateLocator(base, "chain", inner)));\n continue;\n }\n if (part.name === "internal:label") {\n const { exact, text } = detectExact(part.body);\n tokens.push([factory.generateLocator(base, "label", text, { exact })]);\n continue;\n }\n if (part.name === "internal:role") {\n const attrSelector = parseAttributeSelector(part.body, true);\n const options = { attrs: [] };\n for (const attr of attrSelector.attributes) {\n if (attr.name === "name") {\n options.exact = attr.caseSensitive;\n options.name = attr.value;\n } else {\n if (attr.name === "level" && typeof attr.value === "string")\n attr.value = +attr.value;\n options.attrs.push({ name: attr.name === "include-hidden" ? "includeHidden" : attr.name, value: attr.value });\n }\n }\n tokens.push([factory.generateLocator(base, "role", attrSelector.name, options)]);\n continue;\n }\n if (part.name === "internal:testid") {\n const attrSelector = parseAttributeSelector(part.body, true);\n const { value } = attrSelector.attributes[0];\n tokens.push([factory.generateLocator(base, "test-id", value)]);\n continue;\n }\n if (part.name === "internal:attr") {\n const attrSelector = parseAttributeSelector(part.body, true);\n const { name, value, caseSensitive } = attrSelector.attributes[0];\n const text = value;\n const exact = !!caseSensitive;\n if (name === "placeholder") {\n tokens.push([factory.generateLocator(base, "placeholder", text, { exact })]);\n continue;\n }\n if (name === "alt") {\n tokens.push([factory.generateLocator(base, "alt", text, { exact })]);\n continue;\n }\n if (name === "title") {\n tokens.push([factory.generateLocator(base, "title", text, { exact })]);\n continue;\n }\n }\n if (part.name === "internal:control" && part.body === "enter-frame") {\n const lastTokens = tokens[tokens.length - 1];\n const lastPart = parts[index - 1];\n const transformed = lastTokens.map((token) => factory.chainLocators([token, factory.generateLocator(base, "frame", "")]));\n if (["xpath", "css"].includes(lastPart.name)) {\n transformed.push(\n factory.generateLocator(base, "frame-locator", stringifySelector({ parts: [lastPart] })),\n factory.generateLocator(base, "frame-locator", stringifySelector({ parts: [lastPart] }, true))\n );\n }\n lastTokens.splice(0, lastTokens.length, ...transformed);\n nextBase = "frame-locator";\n continue;\n }\n const nextPart = parts[index + 1];\n const selectorPart = stringifySelector({ parts: [part] });\n const locatorPart = factory.generateLocator(base, "default", selectorPart);\n if (nextPart && ["internal:has-text", "internal:has-not-text"].includes(nextPart.name)) {\n const { exact, text } = detectExact(nextPart.body);\n if (!exact) {\n const nextLocatorPart = factory.generateLocator("locator", nextPart.name === "internal:has-text" ? "has-text" : "has-not-text", text, { exact });\n const options = {};\n if (nextPart.name === "internal:has-text")\n options.hasText = text;\n else\n options.hasNotText = text;\n const combinedPart = factory.generateLocator(base, "default", selectorPart, options);\n tokens.push([factory.chainLocators([locatorPart, nextLocatorPart]), combinedPart]);\n index++;\n continue;\n }\n }\n let locatorPartWithEngine;\n if (["xpath", "css"].includes(part.name)) {\n const selectorPart2 = stringifySelector(\n { parts: [part] },\n /* forceEngineName */\n true\n );\n locatorPartWithEngine = factory.generateLocator(base, "default", selectorPart2);\n }\n tokens.push([locatorPart, locatorPartWithEngine].filter(Boolean));\n }\n return combineTokens(factory, tokens, maxOutputSize);\n}\nfunction combineTokens(factory, tokens, maxOutputSize) {\n const currentTokens = tokens.map(() => "");\n const result = [];\n const visit = (index) => {\n if (index === tokens.length) {\n result.push(factory.chainLocators(currentTokens));\n return result.length < maxOutputSize;\n }\n for (const taken of tokens[index]) {\n currentTokens[index] = taken;\n if (!visit(index + 1))\n return false;\n }\n return true;\n };\n visit(0);\n return result;\n}\nfunction detectExact(text) {\n let exact = false;\n const match = text.match(/^\\/(.*)\\/([igm]*)$/);\n if (match)\n return { text: new RegExp(match[1], match[2]) };\n if (text.endsWith(\'"\')) {\n text = JSON.parse(text);\n exact = true;\n } else if (text.endsWith(\'"s\')) {\n text = JSON.parse(text.substring(0, text.length - 1));\n exact = true;\n } else if (text.endsWith(\'"i\')) {\n text = JSON.parse(text.substring(0, text.length - 1));\n exact = false;\n }\n return { exact, text };\n}\nvar JavaScriptLocatorFactory = class {\n constructor(preferredQuote) {\n this.preferredQuote = preferredQuote;\n }\n generateLocator(base, kind, body, options = {}) {\n switch (kind) {\n case "default":\n if (options.hasText !== void 0)\n return `locator(${this.quote(body)}, { hasText: ${this.toHasText(options.hasText)} })`;\n if (options.hasNotText !== void 0)\n return `locator(${this.quote(body)}, { hasNotText: ${this.toHasText(options.hasNotText)} })`;\n return `locator(${this.quote(body)})`;\n case "frame-locator":\n return `frameLocator(${this.quote(body)})`;\n case "frame":\n return `contentFrame()`;\n case "nth":\n return `nth(${body})`;\n case "first":\n return `first()`;\n case "last":\n return `last()`;\n case "visible":\n return `filter({ visible: ${body === "true" ? "true" : "false"} })`;\n case "role":\n const attrs = [];\n if (isRegExp(options.name)) {\n attrs.push(`name: ${this.regexToSourceString(options.name)}`);\n } else if (typeof options.name === "string") {\n attrs.push(`name: ${this.quote(options.name)}`);\n if (options.exact)\n attrs.push(`exact: true`);\n }\n for (const { name, value } of options.attrs)\n attrs.push(`${name}: ${typeof value === "string" ? this.quote(value) : value}`);\n const attrString = attrs.length ? `, { ${attrs.join(", ")} }` : "";\n return `getByRole(${this.quote(body)}${attrString})`;\n case "has-text":\n return `filter({ hasText: ${this.toHasText(body)} })`;\n case "has-not-text":\n return `filter({ hasNotText: ${this.toHasText(body)} })`;\n case "has":\n return `filter({ has: ${body} })`;\n case "hasNot":\n return `filter({ hasNot: ${body} })`;\n case "and":\n return `and(${body})`;\n case "or":\n return `or(${body})`;\n case "chain":\n return `locator(${body})`;\n case "test-id":\n return `getByTestId(${this.toTestIdValue(body)})`;\n case "text":\n return this.toCallWithExact("getByText", body, !!options.exact);\n case "alt":\n return this.toCallWithExact("getByAltText", body, !!options.exact);\n case "placeholder":\n return this.toCallWithExact("getByPlaceholder", body, !!options.exact);\n case "label":\n return this.toCallWithExact("getByLabel", body, !!options.exact);\n case "title":\n return this.toCallWithExact("getByTitle", body, !!options.exact);\n default:\n throw new Error("Unknown selector kind " + kind);\n }\n }\n chainLocators(locators) {\n return locators.join(".");\n }\n regexToSourceString(re) {\n return normalizeEscapedRegexQuotes(String(re));\n }\n toCallWithExact(method, body, exact) {\n if (isRegExp(body))\n return `${method}(${this.regexToSourceString(body)})`;\n return exact ? `${method}(${this.quote(body)}, { exact: true })` : `${method}(${this.quote(body)})`;\n }\n toHasText(body) {\n if (isRegExp(body))\n return this.regexToSourceString(body);\n return this.quote(body);\n }\n toTestIdValue(value) {\n if (isRegExp(value))\n return this.regexToSourceString(value);\n return this.quote(value);\n }\n quote(text) {\n var _a;\n return escapeWithQuotes(text, (_a = this.preferredQuote) != null ? _a : "\'");\n }\n};\nvar PythonLocatorFactory = class {\n generateLocator(base, kind, body, options = {}) {\n switch (kind) {\n case "default":\n if (options.hasText !== void 0)\n return `locator(${this.quote(body)}, has_text=${this.toHasText(options.hasText)})`;\n if (options.hasNotText !== void 0)\n return `locator(${this.quote(body)}, has_not_text=${this.toHasText(options.hasNotText)})`;\n return `locator(${this.quote(body)})`;\n case "frame-locator":\n return `frame_locator(${this.quote(body)})`;\n case "frame":\n return `content_frame`;\n case "nth":\n return `nth(${body})`;\n case "first":\n return `first`;\n case "last":\n return `last`;\n case "visible":\n return `filter(visible=${body === "true" ? "True" : "False"})`;\n case "role":\n const attrs = [];\n if (isRegExp(options.name)) {\n attrs.push(`name=${this.regexToString(options.name)}`);\n } else if (typeof options.name === "string") {\n attrs.push(`name=${this.quote(options.name)}`);\n if (options.exact)\n attrs.push(`exact=True`);\n }\n for (const { name, value } of options.attrs) {\n let valueString = typeof value === "string" ? this.quote(value) : value;\n if (typeof value === "boolean")\n valueString = value ? "True" : "False";\n attrs.push(`${toSnakeCase(name)}=${valueString}`);\n }\n const attrString = attrs.length ? `, ${attrs.join(", ")}` : "";\n return `get_by_role(${this.quote(body)}${attrString})`;\n case "has-text":\n return `filter(has_text=${this.toHasText(body)})`;\n case "has-not-text":\n return `filter(has_not_text=${this.toHasText(body)})`;\n case "has":\n return `filter(has=${body})`;\n case "hasNot":\n return `filter(has_not=${body})`;\n case "and":\n return `and_(${body})`;\n case "or":\n return `or_(${body})`;\n case "chain":\n return `locator(${body})`;\n case "test-id":\n return `get_by_test_id(${this.toTestIdValue(body)})`;\n case "text":\n return this.toCallWithExact("get_by_text", body, !!options.exact);\n case "alt":\n return this.toCallWithExact("get_by_alt_text", body, !!options.exact);\n case "placeholder":\n return this.toCallWithExact("get_by_placeholder", body, !!options.exact);\n case "label":\n return this.toCallWithExact("get_by_label", body, !!options.exact);\n case "title":\n return this.toCallWithExact("get_by_title", body, !!options.exact);\n default:\n throw new Error("Unknown selector kind " + kind);\n }\n }\n chainLocators(locators) {\n return locators.join(".");\n }\n regexToString(body) {\n const suffix = body.flags.includes("i") ? ", re.IGNORECASE" : "";\n return `re.compile(r"${normalizeEscapedRegexQuotes(body.source).replace(/\\\\\\//, "/").replace(/"/g, \'\\\\"\')}"${suffix})`;\n }\n toCallWithExact(method, body, exact) {\n if (isRegExp(body))\n return `${method}(${this.regexToString(body)})`;\n if (exact)\n return `${method}(${this.quote(body)}, exact=True)`;\n return `${method}(${this.quote(body)})`;\n }\n toHasText(body) {\n if (isRegExp(body))\n return this.regexToString(body);\n return `${this.quote(body)}`;\n }\n toTestIdValue(value) {\n if (isRegExp(value))\n return this.regexToString(value);\n return this.quote(value);\n }\n quote(text) {\n return escapeWithQuotes(text, \'"\');\n }\n};\nvar JavaLocatorFactory = class {\n generateLocator(base, kind, body, options = {}) {\n let clazz;\n switch (base) {\n case "page":\n clazz = "Page";\n break;\n case "frame-locator":\n clazz = "FrameLocator";\n break;\n case "locator":\n clazz = "Locator";\n break;\n }\n switch (kind) {\n case "default":\n if (options.hasText !== void 0)\n return `locator(${this.quote(body)}, new ${clazz}.LocatorOptions().setHasText(${this.toHasText(options.hasText)}))`;\n if (options.hasNotText !== void 0)\n return `locator(${this.quote(body)}, new ${clazz}.LocatorOptions().setHasNotText(${this.toHasText(options.hasNotText)}))`;\n return `locator(${this.quote(body)})`;\n case "frame-locator":\n return `frameLocator(${this.quote(body)})`;\n case "frame":\n return `contentFrame()`;\n case "nth":\n return `nth(${body})`;\n case "first":\n return `first()`;\n case "last":\n return `last()`;\n case "visible":\n return `filter(new ${clazz}.FilterOptions().setVisible(${body === "true" ? "true" : "false"}))`;\n case "role":\n const attrs = [];\n if (isRegExp(options.name)) {\n attrs.push(`.setName(${this.regexToString(options.name)})`);\n } else if (typeof options.name === "string") {\n attrs.push(`.setName(${this.quote(options.name)})`);\n if (options.exact)\n attrs.push(`.setExact(true)`);\n }\n for (const { name, value } of options.attrs)\n attrs.push(`.set${toTitleCase(name)}(${typeof value === "string" ? this.quote(value) : value})`);\n const attrString = attrs.length ? `, new ${clazz}.GetByRoleOptions()${attrs.join("")}` : "";\n return `getByRole(AriaRole.${toSnakeCase(body).toUpperCase()}${attrString})`;\n case "has-text":\n return `filter(new ${clazz}.FilterOptions().setHasText(${this.toHasText(body)}))`;\n case "has-not-text":\n return `filter(new ${clazz}.FilterOptions().setHasNotText(${this.toHasText(body)}))`;\n case "has":\n return `filter(new ${clazz}.FilterOptions().setHas(${body}))`;\n case "hasNot":\n return `filter(new ${clazz}.FilterOptions().setHasNot(${body}))`;\n case "and":\n return `and(${body})`;\n case "or":\n return `or(${body})`;\n case "chain":\n return `locator(${body})`;\n case "test-id":\n return `getByTestId(${this.toTestIdValue(body)})`;\n case "text":\n return this.toCallWithExact(clazz, "getByText", body, !!options.exact);\n case "alt":\n return this.toCallWithExact(clazz, "getByAltText", body, !!options.exact);\n case "placeholder":\n return this.toCallWithExact(clazz, "getByPlaceholder", body, !!options.exact);\n case "label":\n return this.toCallWithExact(clazz, "getByLabel", body, !!options.exact);\n case "title":\n return this.toCallWithExact(clazz, "getByTitle", body, !!options.exact);\n default:\n throw new Error("Unknown selector kind " + kind);\n }\n }\n chainLocators(locators) {\n return locators.join(".");\n }\n regexToString(body) {\n const suffix = body.flags.includes("i") ? ", Pattern.CASE_INSENSITIVE" : "";\n return `Pattern.compile(${this.quote(normalizeEscapedRegexQuotes(body.source))}${suffix})`;\n }\n toCallWithExact(clazz, method, body, exact) {\n if (isRegExp(body))\n return `${method}(${this.regexToString(body)})`;\n if (exact)\n return `${method}(${this.quote(body)}, new ${clazz}.${toTitleCase(method)}Options().setExact(true))`;\n return `${method}(${this.quote(body)})`;\n }\n toHasText(body) {\n if (isRegExp(body))\n return this.regexToString(body);\n return this.quote(body);\n }\n toTestIdValue(value) {\n if (isRegExp(value))\n return this.regexToString(value);\n return this.quote(value);\n }\n quote(text) {\n return escapeWithQuotes(text, \'"\');\n }\n};\nvar CSharpLocatorFactory = class {\n generateLocator(base, kind, body, options = {}) {\n switch (kind) {\n case "default":\n if (options.hasText !== void 0)\n return `Locator(${this.quote(body)}, new() { ${this.toHasText(options.hasText)} })`;\n if (options.hasNotText !== void 0)\n return `Locator(${this.quote(body)}, new() { ${this.toHasNotText(options.hasNotText)} })`;\n return `Locator(${this.quote(body)})`;\n case "frame-locator":\n return `FrameLocator(${this.quote(body)})`;\n case "frame":\n return `ContentFrame`;\n case "nth":\n return `Nth(${body})`;\n case "first":\n return `First`;\n case "last":\n return `Last`;\n case "visible":\n return `Filter(new() { Visible = ${body === "true" ? "true" : "false"} })`;\n case "role":\n const attrs = [];\n if (isRegExp(options.name)) {\n attrs.push(`NameRegex = ${this.regexToString(options.name)}`);\n } else if (typeof options.name === "string") {\n attrs.push(`Name = ${this.quote(options.name)}`);\n if (options.exact)\n attrs.push(`Exact = true`);\n }\n for (const { name, value } of options.attrs)\n attrs.push(`${toTitleCase(name)} = ${typeof value === "string" ? this.quote(value) : value}`);\n const attrString = attrs.length ? `, new() { ${attrs.join(", ")} }` : "";\n return `GetByRole(AriaRole.${toTitleCase(body)}${attrString})`;\n case "has-text":\n return `Filter(new() { ${this.toHasText(body)} })`;\n case "has-not-text":\n return `Filter(new() { ${this.toHasNotText(body)} })`;\n case "has":\n return `Filter(new() { Has = ${body} })`;\n case "hasNot":\n return `Filter(new() { HasNot = ${body} })`;\n case "and":\n return `And(${body})`;\n case "or":\n return `Or(${body})`;\n case "chain":\n return `Locator(${body})`;\n case "test-id":\n return `GetByTestId(${this.toTestIdValue(body)})`;\n case "text":\n return this.toCallWithExact("GetByText", body, !!options.exact);\n case "alt":\n return this.toCallWithExact("GetByAltText", body, !!options.exact);\n case "placeholder":\n return this.toCallWithExact("GetByPlaceholder", body, !!options.exact);\n case "label":\n return this.toCallWithExact("GetByLabel", body, !!options.exact);\n case "title":\n return this.toCallWithExact("GetByTitle", body, !!options.exact);\n default:\n throw new Error("Unknown selector kind " + kind);\n }\n }\n chainLocators(locators) {\n return locators.join(".");\n }\n regexToString(body) {\n const suffix = body.flags.includes("i") ? ", RegexOptions.IgnoreCase" : "";\n return `new Regex(${this.quote(normalizeEscapedRegexQuotes(body.source))}${suffix})`;\n }\n toCallWithExact(method, body, exact) {\n if (isRegExp(body))\n return `${method}(${this.regexToString(body)})`;\n if (exact)\n return `${method}(${this.quote(body)}, new() { Exact = true })`;\n return `${method}(${this.quote(body)})`;\n }\n toHasText(body) {\n if (isRegExp(body))\n return `HasTextRegex = ${this.regexToString(body)}`;\n return `HasText = ${this.quote(body)}`;\n }\n toTestIdValue(value) {\n if (isRegExp(value))\n return this.regexToString(value);\n return this.quote(value);\n }\n toHasNotText(body) {\n if (isRegExp(body))\n return `HasNotTextRegex = ${this.regexToString(body)}`;\n return `HasNotText = ${this.quote(body)}`;\n }\n quote(text) {\n return escapeWithQuotes(text, \'"\');\n }\n};\nvar JsonlLocatorFactory = class {\n generateLocator(base, kind, body, options = {}) {\n return JSON.stringify({\n kind,\n body,\n options\n });\n }\n chainLocators(locators) {\n const objects = locators.map((l) => JSON.parse(l));\n for (let i = 0; i < objects.length - 1; ++i)\n objects[i].next = objects[i + 1];\n return JSON.stringify(objects[0]);\n }\n};\nvar generators = {\n javascript: JavaScriptLocatorFactory,\n python: PythonLocatorFactory,\n java: JavaLocatorFactory,\n csharp: CSharpLocatorFactory,\n jsonl: JsonlLocatorFactory\n};\nfunction isRegExp(obj) {\n return obj instanceof RegExp;\n}\n\n// packages/playwright-core/src/utils/isomorphic/yaml.ts\nfunction yamlEscapeKeyIfNeeded(str) {\n if (!yamlStringNeedsQuotes(str))\n return str;\n return `\'` + str.replace(/\'/g, `\'\'`) + `\'`;\n}\nfunction yamlEscapeValueIfNeeded(str) {\n if (!yamlStringNeedsQuotes(str))\n return str;\n return \'"\' + str.replace(/[\\\\"\\x00-\\x1f\\x7f-\\x9f]/g, (c) => {\n switch (c) {\n case "\\\\":\n return "\\\\\\\\";\n case \'"\':\n return \'\\\\"\';\n case "\\b":\n return "\\\\b";\n case "\\f":\n return "\\\\f";\n case "\\n":\n return "\\\\n";\n case "\\r":\n return "\\\\r";\n case " ":\n return "\\\\t";\n default:\n const code = c.charCodeAt(0);\n return "\\\\x" + code.toString(16).padStart(2, "0");\n }\n }) + \'"\';\n}\nfunction yamlStringNeedsQuotes(str) {\n if (str.length === 0)\n return true;\n if (/^\\s|\\s$/.test(str))\n return true;\n if (/[\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f-\\x9f]/.test(str))\n return true;\n if (/^-/.test(str))\n return true;\n if (/[\\n:](\\s|$)/.test(str))\n return true;\n if (/\\s#/.test(str))\n return true;\n if (/[\\n\\r]/.test(str))\n return true;\n if (/^[&*\\],?!>|@"\'#%]/.test(str))\n return true;\n if (/[{}`]/.test(str))\n return true;\n if (/^\\[/.test(str))\n return true;\n if (!isNaN(Number(str)) || ["y", "n", "yes", "no", "true", "false", "on", "off", "null"].includes(str.toLowerCase()))\n return true;\n return false;\n}\n\n// packages/injected/src/domUtils.ts\nvar globalOptions = {};\nfunction setGlobalOptions(options) {\n globalOptions = options;\n}\nfunction isInsideScope(scope, element) {\n while (element) {\n if (scope.contains(element))\n return true;\n element = enclosingShadowHost(element);\n }\n return false;\n}\nfunction parentElementOrShadowHost(element) {\n if (element.parentElement)\n return element.parentElement;\n if (!element.parentNode)\n return;\n if (element.parentNode.nodeType === 11 && element.parentNode.host)\n return element.parentNode.host;\n}\nfunction enclosingShadowRootOrDocument(element) {\n let node = element;\n while (node.parentNode)\n node = node.parentNode;\n if (node.nodeType === 11 || node.nodeType === 9)\n return node;\n}\nfunction enclosingShadowHost(element) {\n while (element.parentElement)\n element = element.parentElement;\n return parentElementOrShadowHost(element);\n}\nfunction closestCrossShadow(element, css, scope) {\n while (element) {\n const closest = element.closest(css);\n if (scope && closest !== scope && (closest == null ? void 0 : closest.contains(scope)))\n return;\n if (closest)\n return closest;\n element = enclosingShadowHost(element);\n }\n}\nfunction getElementComputedStyle(element, pseudo) {\n const cache = pseudo === "::before" ? cacheStyleBefore : pseudo === "::after" ? cacheStyleAfter : cacheStyle;\n if (cache && cache.has(element))\n return cache.get(element);\n const style = element.ownerDocument && element.ownerDocument.defaultView ? element.ownerDocument.defaultView.getComputedStyle(element, pseudo) : void 0;\n cache == null ? void 0 : cache.set(element, style);\n return style;\n}\nfunction isElementStyleVisibilityVisible(element, style) {\n style = style != null ? style : getElementComputedStyle(element);\n if (!style)\n return true;\n if (Element.prototype.checkVisibility && globalOptions.browserNameForWorkarounds !== "webkit") {\n if (!element.checkVisibility())\n return false;\n } else {\n const detailsOrSummary = element.closest("details,summary");\n if (detailsOrSummary !== element && (detailsOrSummary == null ? void 0 : detailsOrSummary.nodeName) === "DETAILS" && !detailsOrSummary.open)\n return false;\n }\n if (style.visibility !== "visible")\n return false;\n return true;\n}\nfunction computeBox(element) {\n const style = getElementComputedStyle(element);\n if (!style)\n return { visible: true, inline: false };\n const cursor = style.cursor;\n if (style.display === "contents") {\n for (let child = element.firstChild; child; child = child.nextSibling) {\n if (child.nodeType === 1 && isElementVisible(child))\n return { visible: true, inline: false, cursor };\n if (child.nodeType === 3 && isVisibleTextNode(child))\n return { visible: true, inline: true, cursor };\n }\n return { visible: false, inline: false, cursor };\n }\n if (!isElementStyleVisibilityVisible(element, style))\n return { cursor, visible: false, inline: false };\n const rect = element.getBoundingClientRect();\n return { cursor, visible: rect.width > 0 && rect.height > 0, inline: style.display === "inline" };\n}\nfunction isElementVisible(element) {\n return computeBox(element).visible;\n}\nfunction isVisibleTextNode(node) {\n const range = node.ownerDocument.createRange();\n range.selectNode(node);\n const rect = range.getBoundingClientRect();\n return rect.width > 0 && rect.height > 0;\n}\nfunction elementSafeTagName(element) {\n const tagName = element.tagName;\n if (typeof tagName === "string")\n return tagName.toUpperCase();\n if (element instanceof HTMLFormElement)\n return "FORM";\n return element.tagName.toUpperCase();\n}\nvar cacheStyle;\nvar cacheStyleBefore;\nvar cacheStyleAfter;\nvar cachesCounter = 0;\nfunction beginDOMCaches() {\n ++cachesCounter;\n cacheStyle != null ? cacheStyle : cacheStyle = /* @__PURE__ */ new Map();\n cacheStyleBefore != null ? cacheStyleBefore : cacheStyleBefore = /* @__PURE__ */ new Map();\n cacheStyleAfter != null ? cacheStyleAfter : cacheStyleAfter = /* @__PURE__ */ new Map();\n}\nfunction endDOMCaches() {\n if (!--cachesCounter) {\n cacheStyle = void 0;\n cacheStyleBefore = void 0;\n cacheStyleAfter = void 0;\n }\n}\n\n// packages/injected/src/roleUtils.ts\nfunction hasExplicitAccessibleName(e) {\n return e.hasAttribute("aria-label") || e.hasAttribute("aria-labelledby");\n}\nvar kAncestorPreventingLandmark = "article:not([role]), aside:not([role]), main:not([role]), nav:not([role]), section:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]";\nvar kGlobalAriaAttributes = [\n ["aria-atomic", void 0],\n ["aria-busy", void 0],\n ["aria-controls", void 0],\n ["aria-current", void 0],\n ["aria-describedby", void 0],\n ["aria-details", void 0],\n // Global use deprecated in ARIA 1.2\n // [\'aria-disabled\', undefined],\n ["aria-dropeffect", void 0],\n // Global use deprecated in ARIA 1.2\n // [\'aria-errormessage\', undefined],\n ["aria-flowto", void 0],\n ["aria-grabbed", void 0],\n // Global use deprecated in ARIA 1.2\n // [\'aria-haspopup\', undefined],\n ["aria-hidden", void 0],\n // Global use deprecated in ARIA 1.2\n // [\'aria-invalid\', undefined],\n ["aria-keyshortcuts", void 0],\n ["aria-label", ["caption", "code", "deletion", "emphasis", "generic", "insertion", "paragraph", "presentation", "strong", "subscript", "superscript"]],\n ["aria-labelledby", ["caption", "code", "deletion", "emphasis", "generic", "insertion", "paragraph", "presentation", "strong", "subscript", "superscript"]],\n ["aria-live", void 0],\n ["aria-owns", void 0],\n ["aria-relevant", void 0],\n ["aria-roledescription", ["generic"]]\n];\nfunction hasGlobalAriaAttribute(element, forRole) {\n return kGlobalAriaAttributes.some(([attr, prohibited]) => {\n return !(prohibited == null ? void 0 : prohibited.includes(forRole || "")) && element.hasAttribute(attr);\n });\n}\nfunction hasTabIndex(element) {\n return !Number.isNaN(Number(String(element.getAttribute("tabindex"))));\n}\nfunction isFocusable(element) {\n return !isNativelyDisabled(element) && (isNativelyFocusable(element) || hasTabIndex(element));\n}\nfunction isNativelyFocusable(element) {\n const tagName = elementSafeTagName(element);\n if (["BUTTON", "DETAILS", "SELECT", "TEXTAREA"].includes(tagName))\n return true;\n if (tagName === "A" || tagName === "AREA")\n return element.hasAttribute("href");\n if (tagName === "INPUT")\n return !element.hidden;\n return false;\n}\nvar kImplicitRoleByTagName = {\n "A": (e) => {\n return e.hasAttribute("href") ? "link" : null;\n },\n "AREA": (e) => {\n return e.hasAttribute("href") ? "link" : null;\n },\n "ARTICLE": () => "article",\n "ASIDE": () => "complementary",\n "BLOCKQUOTE": () => "blockquote",\n "BUTTON": () => "button",\n "CAPTION": () => "caption",\n "CODE": () => "code",\n "DATALIST": () => "listbox",\n "DD": () => "definition",\n "DEL": () => "deletion",\n "DETAILS": () => "group",\n "DFN": () => "term",\n "DIALOG": () => "dialog",\n "DT": () => "term",\n "EM": () => "emphasis",\n "FIELDSET": () => "group",\n "FIGURE": () => "figure",\n "FOOTER": (e) => closestCrossShadow(e, kAncestorPreventingLandmark) ? null : "contentinfo",\n "FORM": (e) => hasExplicitAccessibleName(e) ? "form" : null,\n "H1": () => "heading",\n "H2": () => "heading",\n "H3": () => "heading",\n "H4": () => "heading",\n "H5": () => "heading",\n "H6": () => "heading",\n "HEADER": (e) => closestCrossShadow(e, kAncestorPreventingLandmark) ? null : "banner",\n "HR": () => "separator",\n "HTML": () => "document",\n "IMG": (e) => e.getAttribute("alt") === "" && !e.getAttribute("title") && !hasGlobalAriaAttribute(e) && !hasTabIndex(e) ? "presentation" : "img",\n "INPUT": (e) => {\n const type = e.type.toLowerCase();\n if (type === "search")\n return e.hasAttribute("list") ? "combobox" : "searchbox";\n if (["email", "tel", "text", "url", ""].includes(type)) {\n const list = getIdRefs(e, e.getAttribute("list"))[0];\n return list && elementSafeTagName(list) === "DATALIST" ? "combobox" : "textbox";\n }\n if (type === "hidden")\n return null;\n if (type === "file")\n return "button";\n return inputTypeToRole[type] || "textbox";\n },\n "INS": () => "insertion",\n "LI": () => "listitem",\n "MAIN": () => "main",\n "MARK": () => "mark",\n "MATH": () => "math",\n "MENU": () => "list",\n "METER": () => "meter",\n "NAV": () => "navigation",\n "OL": () => "list",\n "OPTGROUP": () => "group",\n "OPTION": () => "option",\n "OUTPUT": () => "status",\n "P": () => "paragraph",\n "PROGRESS": () => "progressbar",\n "SEARCH": () => "search",\n "SECTION": (e) => hasExplicitAccessibleName(e) ? "region" : null,\n "SELECT": (e) => e.hasAttribute("multiple") || e.size > 1 ? "listbox" : "combobox",\n "STRONG": () => "strong",\n "SUB": () => "subscript",\n "SUP": () => "superscript",\n // For we default to Chrome behavior:\n // - Chrome reports \'img\'.\n // - Firefox reports \'diagram\' that is not in official ARIA spec yet.\n // - Safari reports \'no role\', but still computes accessible name.\n "SVG": () => "img",\n "TABLE": () => "table",\n "TBODY": () => "rowgroup",\n "TD": (e) => {\n const table = closestCrossShadow(e, "table");\n const role = table ? getExplicitAriaRole(table) : "";\n return role === "grid" || role === "treegrid" ? "gridcell" : "cell";\n },\n "TEXTAREA": () => "textbox",\n "TFOOT": () => "rowgroup",\n "TH": (e) => {\n const scope = e.getAttribute("scope");\n if (scope === "col" || scope === "colgroup")\n return "columnheader";\n if (scope === "row" || scope === "rowgroup")\n return "rowheader";\n const nextSibling = e.nextElementSibling;\n const prevSibling = e.previousElementSibling;\n const row = !!e.parentElement && elementSafeTagName(e.parentElement) === "TR" ? e.parentElement : void 0;\n if (!nextSibling && !prevSibling) {\n if (row) {\n const table = closestCrossShadow(row, "table");\n if (table && table.rows.length <= 1)\n return null;\n }\n return "columnheader";\n }\n if (isHeaderCell(nextSibling) && isHeaderCell(prevSibling))\n return "columnheader";\n if (isNonEmptyDataCell(nextSibling) || isNonEmptyDataCell(prevSibling))\n return "rowheader";\n return "columnheader";\n },\n "THEAD": () => "rowgroup",\n "TIME": () => "time",\n "TR": () => "row",\n "UL": () => "list"\n};\nfunction isHeaderCell(element) {\n return !!element && elementSafeTagName(element) === "TH";\n}\nfunction isNonEmptyDataCell(element) {\n var _a;\n if (!element || elementSafeTagName(element) !== "TD")\n return false;\n return !!(((_a = element.textContent) == null ? void 0 : _a.trim()) || element.children.length > 0);\n}\nvar kPresentationInheritanceParents = {\n "DD": ["DL", "DIV"],\n "DIV": ["DL"],\n "DT": ["DL", "DIV"],\n "LI": ["OL", "UL"],\n "TBODY": ["TABLE"],\n "TD": ["TR"],\n "TFOOT": ["TABLE"],\n "TH": ["TR"],\n "THEAD": ["TABLE"],\n "TR": ["THEAD", "TBODY", "TFOOT", "TABLE"]\n};\nfunction getImplicitAriaRole(element) {\n var _a;\n const implicitRole = ((_a = kImplicitRoleByTagName[elementSafeTagName(element)]) == null ? void 0 : _a.call(kImplicitRoleByTagName, element)) || "";\n if (!implicitRole)\n return null;\n let ancestor = element;\n while (ancestor) {\n const parent = parentElementOrShadowHost(ancestor);\n const parents = kPresentationInheritanceParents[elementSafeTagName(ancestor)];\n if (!parents || !parent || !parents.includes(elementSafeTagName(parent)))\n break;\n const parentExplicitRole = getExplicitAriaRole(parent);\n if ((parentExplicitRole === "none" || parentExplicitRole === "presentation") && !hasPresentationConflictResolution(parent, parentExplicitRole))\n return parentExplicitRole;\n ancestor = parent;\n }\n return implicitRole;\n}\nvar validRoles = [\n "alert",\n "alertdialog",\n "application",\n "article",\n "banner",\n "blockquote",\n "button",\n "caption",\n "cell",\n "checkbox",\n "code",\n "columnheader",\n "combobox",\n "complementary",\n "contentinfo",\n "definition",\n "deletion",\n "dialog",\n "directory",\n "document",\n "emphasis",\n "feed",\n "figure",\n "form",\n "generic",\n "grid",\n "gridcell",\n "group",\n "heading",\n "img",\n "insertion",\n "link",\n "list",\n "listbox",\n "listitem",\n "log",\n "main",\n "mark",\n "marquee",\n "math",\n "meter",\n "menu",\n "menubar",\n "menuitem",\n "menuitemcheckbox",\n "menuitemradio",\n "navigation",\n "none",\n "note",\n "option",\n "paragraph",\n "presentation",\n "progressbar",\n "radio",\n "radiogroup",\n "region",\n "row",\n "rowgroup",\n "rowheader",\n "scrollbar",\n "search",\n "searchbox",\n "separator",\n "slider",\n "spinbutton",\n "status",\n "strong",\n "subscript",\n "superscript",\n "switch",\n "tab",\n "table",\n "tablist",\n "tabpanel",\n "term",\n "textbox",\n "time",\n "timer",\n "toolbar",\n "tooltip",\n "tree",\n "treegrid",\n "treeitem"\n];\nfunction getExplicitAriaRole(element) {\n const roles = (element.getAttribute("role") || "").split(" ").map((role) => role.trim());\n return roles.find((role) => validRoles.includes(role)) || null;\n}\nfunction hasPresentationConflictResolution(element, role) {\n return hasGlobalAriaAttribute(element, role) || isFocusable(element);\n}\nfunction getAriaRole(element) {\n const explicitRole = getExplicitAriaRole(element);\n if (!explicitRole)\n return getImplicitAriaRole(element);\n if (explicitRole === "none" || explicitRole === "presentation") {\n const implicitRole = getImplicitAriaRole(element);\n if (hasPresentationConflictResolution(element, implicitRole))\n return implicitRole;\n }\n return explicitRole;\n}\nfunction getAriaBoolean(attr) {\n return attr === null ? void 0 : attr.toLowerCase() === "true";\n}\nfunction isElementIgnoredForAria(element) {\n return ["STYLE", "SCRIPT", "NOSCRIPT", "TEMPLATE"].includes(elementSafeTagName(element));\n}\nfunction isElementHiddenForAria(element) {\n if (isElementIgnoredForAria(element))\n return true;\n const style = getElementComputedStyle(element);\n const isSlot = element.nodeName === "SLOT";\n if ((style == null ? void 0 : style.display) === "contents" && !isSlot) {\n for (let child = element.firstChild; child; child = child.nextSibling) {\n if (child.nodeType === 1 && !isElementHiddenForAria(child))\n return false;\n if (child.nodeType === 3 && isVisibleTextNode(child))\n return false;\n }\n return true;\n }\n const isOptionInsideSelect = element.nodeName === "OPTION" && !!element.closest("select");\n if (!isOptionInsideSelect && !isSlot && !isElementStyleVisibilityVisible(element, style))\n return true;\n return belongsToDisplayNoneOrAriaHiddenOrNonSlotted(element);\n}\nfunction belongsToDisplayNoneOrAriaHiddenOrNonSlotted(element) {\n let hidden = cacheIsHidden == null ? void 0 : cacheIsHidden.get(element);\n if (hidden === void 0) {\n hidden = false;\n if (element.parentElement && element.parentElement.shadowRoot && !element.assignedSlot)\n hidden = true;\n if (!hidden) {\n const style = getElementComputedStyle(element);\n hidden = !style || style.display === "none" || getAriaBoolean(element.getAttribute("aria-hidden")) === true;\n }\n if (!hidden) {\n const parent = parentElementOrShadowHost(element);\n if (parent)\n hidden = belongsToDisplayNoneOrAriaHiddenOrNonSlotted(parent);\n }\n cacheIsHidden == null ? void 0 : cacheIsHidden.set(element, hidden);\n }\n return hidden;\n}\nfunction getIdRefs(element, ref) {\n if (!ref)\n return [];\n const root = enclosingShadowRootOrDocument(element);\n if (!root)\n return [];\n try {\n const ids = ref.split(" ").filter((id) => !!id);\n const result = [];\n for (const id of ids) {\n const firstElement = root.querySelector("#" + CSS.escape(id));\n if (firstElement && !result.includes(firstElement))\n result.push(firstElement);\n }\n return result;\n } catch (e) {\n return [];\n }\n}\nfunction trimFlatString(s) {\n return s.trim();\n}\nfunction asFlatString(s) {\n return s.split("\\xA0").map((chunk) => chunk.replace(/\\r\\n/g, "\\n").replace(/[\\u200b\\u00ad]/g, "").replace(/\\s\\s*/g, " ")).join("\\xA0").trim();\n}\nfunction queryInAriaOwned(element, selector) {\n const result = [...element.querySelectorAll(selector)];\n for (const owned of getIdRefs(element, element.getAttribute("aria-owns"))) {\n if (owned.matches(selector))\n result.push(owned);\n result.push(...owned.querySelectorAll(selector));\n }\n return result;\n}\nfunction getCSSContent(element, pseudo) {\n const cache = pseudo === "::before" ? cachePseudoContentBefore : pseudo === "::after" ? cachePseudoContentAfter : cachePseudoContent;\n if (cache == null ? void 0 : cache.has(element))\n return cache == null ? void 0 : cache.get(element);\n const style = getElementComputedStyle(element, pseudo);\n let content;\n if (style) {\n const contentValue = style.content;\n if (contentValue && contentValue !== "none" && contentValue !== "normal") {\n if (style.display !== "none" && style.visibility !== "hidden") {\n content = parseCSSContentPropertyAsString(element, contentValue, !!pseudo);\n }\n }\n }\n if (pseudo && content !== void 0) {\n const display = (style == null ? void 0 : style.display) || "inline";\n if (display !== "inline")\n content = " " + content + " ";\n }\n if (cache)\n cache.set(element, content);\n return content;\n}\nfunction parseCSSContentPropertyAsString(element, content, isPseudo) {\n if (!content || content === "none" || content === "normal") {\n return;\n }\n try {\n let tokens = tokenize(content).filter((token) => !(token instanceof WhitespaceToken));\n const delimIndex = tokens.findIndex((token) => token instanceof DelimToken && token.value === "/");\n if (delimIndex !== -1) {\n tokens = tokens.slice(delimIndex + 1);\n } else if (!isPseudo) {\n return;\n }\n const accumulated = [];\n let index = 0;\n while (index < tokens.length) {\n if (tokens[index] instanceof StringToken) {\n accumulated.push(tokens[index].value);\n index++;\n } else if (index + 2 < tokens.length && tokens[index] instanceof FunctionToken && tokens[index].value === "attr" && tokens[index + 1] instanceof IdentToken && tokens[index + 2] instanceof CloseParenToken) {\n const attrName = tokens[index + 1].value;\n accumulated.push(element.getAttribute(attrName) || "");\n index += 3;\n } else {\n return;\n }\n }\n return accumulated.join("");\n } catch {\n }\n}\nfunction getAriaLabelledByElements(element) {\n const ref = element.getAttribute("aria-labelledby");\n if (ref === null)\n return null;\n const refs = getIdRefs(element, ref);\n return refs.length ? refs : null;\n}\nfunction allowsNameFromContent(role, targetDescendant) {\n const alwaysAllowsNameFromContent = ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"].includes(role);\n const descendantAllowsNameFromContent = targetDescendant && ["", "caption", "code", "contentinfo", "definition", "deletion", "emphasis", "insertion", "list", "listitem", "mark", "none", "paragraph", "presentation", "region", "row", "rowgroup", "section", "strong", "subscript", "superscript", "table", "term", "time"].includes(role);\n return alwaysAllowsNameFromContent || descendantAllowsNameFromContent;\n}\nfunction getElementAccessibleName(element, includeHidden) {\n const cache = includeHidden ? cacheAccessibleNameHidden : cacheAccessibleName;\n let accessibleName = cache == null ? void 0 : cache.get(element);\n if (accessibleName === void 0) {\n accessibleName = "";\n const elementProhibitsNaming = ["caption", "code", "definition", "deletion", "emphasis", "generic", "insertion", "mark", "paragraph", "presentation", "strong", "subscript", "suggestion", "superscript", "term", "time"].includes(getAriaRole(element) || "");\n if (!elementProhibitsNaming) {\n accessibleName = asFlatString(getTextAlternativeInternal(element, {\n includeHidden,\n visitedElements: /* @__PURE__ */ new Set(),\n embeddedInTargetElement: "self"\n }));\n }\n cache == null ? void 0 : cache.set(element, accessibleName);\n }\n return accessibleName;\n}\nfunction getElementAccessibleDescription(element, includeHidden) {\n const cache = includeHidden ? cacheAccessibleDescriptionHidden : cacheAccessibleDescription;\n let accessibleDescription = cache == null ? void 0 : cache.get(element);\n if (accessibleDescription === void 0) {\n accessibleDescription = "";\n if (element.hasAttribute("aria-describedby")) {\n const describedBy = getIdRefs(element, element.getAttribute("aria-describedby"));\n accessibleDescription = asFlatString(describedBy.map((ref) => getTextAlternativeInternal(ref, {\n includeHidden,\n visitedElements: /* @__PURE__ */ new Set(),\n embeddedInDescribedBy: { element: ref, hidden: isElementHiddenForAria(ref) }\n })).join(" "));\n } else if (element.hasAttribute("aria-description")) {\n accessibleDescription = asFlatString(element.getAttribute("aria-description") || "");\n } else {\n accessibleDescription = asFlatString(element.getAttribute("title") || "");\n }\n cache == null ? void 0 : cache.set(element, accessibleDescription);\n }\n return accessibleDescription;\n}\nfunction getAriaInvalid(element) {\n const ariaInvalid = element.getAttribute("aria-invalid");\n if (!ariaInvalid || ariaInvalid.trim() === "" || ariaInvalid.toLocaleLowerCase() === "false")\n return "false";\n if (ariaInvalid === "true" || ariaInvalid === "grammar" || ariaInvalid === "spelling")\n return ariaInvalid;\n return "true";\n}\nfunction getValidityInvalid(element) {\n if ("validity" in element) {\n const validity = element.validity;\n return (validity == null ? void 0 : validity.valid) === false;\n }\n return false;\n}\nfunction getElementAccessibleErrorMessage(element) {\n const cache = cacheAccessibleErrorMessage;\n let accessibleErrorMessage = cacheAccessibleErrorMessage == null ? void 0 : cacheAccessibleErrorMessage.get(element);\n if (accessibleErrorMessage === void 0) {\n accessibleErrorMessage = "";\n const isAriaInvalid = getAriaInvalid(element) !== "false";\n const isValidityInvalid = getValidityInvalid(element);\n if (isAriaInvalid || isValidityInvalid) {\n const errorMessageId = element.getAttribute("aria-errormessage");\n const errorMessages = getIdRefs(element, errorMessageId);\n const parts = errorMessages.map((errorMessage) => asFlatString(\n getTextAlternativeInternal(errorMessage, {\n visitedElements: /* @__PURE__ */ new Set(),\n embeddedInDescribedBy: { element: errorMessage, hidden: isElementHiddenForAria(errorMessage) }\n })\n ));\n accessibleErrorMessage = parts.join(" ").trim();\n }\n cache == null ? void 0 : cache.set(element, accessibleErrorMessage);\n }\n return accessibleErrorMessage;\n}\nfunction getTextAlternativeInternal(element, options) {\n var _a, _b, _c, _d;\n if (options.visitedElements.has(element))\n return "";\n const childOptions = {\n ...options,\n embeddedInTargetElement: options.embeddedInTargetElement === "self" ? "descendant" : options.embeddedInTargetElement\n };\n if (!options.includeHidden) {\n const isEmbeddedInHiddenReferenceTraversal = !!((_a = options.embeddedInLabelledBy) == null ? void 0 : _a.hidden) || !!((_b = options.embeddedInDescribedBy) == null ? void 0 : _b.hidden) || !!((_c = options.embeddedInNativeTextAlternative) == null ? void 0 : _c.hidden) || !!((_d = options.embeddedInLabel) == null ? void 0 : _d.hidden);\n if (isElementIgnoredForAria(element) || !isEmbeddedInHiddenReferenceTraversal && isElementHiddenForAria(element)) {\n options.visitedElements.add(element);\n return "";\n }\n }\n const labelledBy = getAriaLabelledByElements(element);\n if (!options.embeddedInLabelledBy) {\n const accessibleName = (labelledBy || []).map((ref) => getTextAlternativeInternal(ref, {\n ...options,\n embeddedInLabelledBy: { element: ref, hidden: isElementHiddenForAria(ref) },\n embeddedInDescribedBy: void 0,\n embeddedInTargetElement: void 0,\n embeddedInLabel: void 0,\n embeddedInNativeTextAlternative: void 0\n })).join(" ");\n if (accessibleName)\n return accessibleName;\n }\n const role = getAriaRole(element) || "";\n const tagName = elementSafeTagName(element);\n if (!!options.embeddedInLabel || !!options.embeddedInLabelledBy || options.embeddedInTargetElement === "descendant") {\n const isOwnLabel = [...element.labels || []].includes(element);\n const isOwnLabelledBy = (labelledBy || []).includes(element);\n if (!isOwnLabel && !isOwnLabelledBy) {\n if (role === "textbox") {\n options.visitedElements.add(element);\n if (tagName === "INPUT" || tagName === "TEXTAREA")\n return element.value;\n return element.textContent || "";\n }\n if (["combobox", "listbox"].includes(role)) {\n options.visitedElements.add(element);\n let selectedOptions;\n if (tagName === "SELECT") {\n selectedOptions = [...element.selectedOptions];\n if (!selectedOptions.length && element.options.length)\n selectedOptions.push(element.options[0]);\n } else {\n const listbox = role === "combobox" ? queryInAriaOwned(element, "*").find((e) => getAriaRole(e) === "listbox") : element;\n selectedOptions = listbox ? queryInAriaOwned(listbox, \'[aria-selected="true"]\').filter((e) => getAriaRole(e) === "option") : [];\n }\n if (!selectedOptions.length && tagName === "INPUT") {\n return element.value;\n }\n return selectedOptions.map((option) => getTextAlternativeInternal(option, childOptions)).join(" ");\n }\n if (["progressbar", "scrollbar", "slider", "spinbutton", "meter"].includes(role)) {\n options.visitedElements.add(element);\n if (element.hasAttribute("aria-valuetext"))\n return element.getAttribute("aria-valuetext") || "";\n if (element.hasAttribute("aria-valuenow"))\n return element.getAttribute("aria-valuenow") || "";\n return element.getAttribute("value") || "";\n }\n if (["menu"].includes(role)) {\n options.visitedElements.add(element);\n return "";\n }\n }\n }\n const ariaLabel = element.getAttribute("aria-label") || "";\n if (trimFlatString(ariaLabel)) {\n options.visitedElements.add(element);\n return ariaLabel;\n }\n if (!["presentation", "none"].includes(role)) {\n if (tagName === "INPUT" && ["button", "submit", "reset"].includes(element.type)) {\n options.visitedElements.add(element);\n const value = element.value || "";\n if (trimFlatString(value))\n return value;\n if (element.type === "submit")\n return "Submit";\n if (element.type === "reset")\n return "Reset";\n const title = element.getAttribute("title") || "";\n return title;\n }\n if (tagName === "INPUT" && element.type === "file") {\n options.visitedElements.add(element);\n const labels = element.labels || [];\n if (labels.length && !options.embeddedInLabelledBy)\n return getAccessibleNameFromAssociatedLabels(labels, options);\n return "Choose File";\n }\n if (tagName === "INPUT" && element.type === "image") {\n options.visitedElements.add(element);\n const labels = element.labels || [];\n if (labels.length && !options.embeddedInLabelledBy)\n return getAccessibleNameFromAssociatedLabels(labels, options);\n const alt = element.getAttribute("alt") || "";\n if (trimFlatString(alt))\n return alt;\n const title = element.getAttribute("title") || "";\n if (trimFlatString(title))\n return title;\n return "Submit";\n }\n if (!labelledBy && tagName === "BUTTON") {\n options.visitedElements.add(element);\n const labels = element.labels || [];\n if (labels.length)\n return getAccessibleNameFromAssociatedLabels(labels, options);\n }\n if (!labelledBy && tagName === "OUTPUT") {\n options.visitedElements.add(element);\n const labels = element.labels || [];\n if (labels.length)\n return getAccessibleNameFromAssociatedLabels(labels, options);\n return element.getAttribute("title") || "";\n }\n if (!labelledBy && (tagName === "TEXTAREA" || tagName === "SELECT" || tagName === "INPUT")) {\n options.visitedElements.add(element);\n const labels = element.labels || [];\n if (labels.length)\n return getAccessibleNameFromAssociatedLabels(labels, options);\n const usePlaceholder = tagName === "INPUT" && ["text", "password", "search", "tel", "email", "url"].includes(element.type) || tagName === "TEXTAREA";\n const placeholder = element.getAttribute("placeholder") || "";\n const title = element.getAttribute("title") || "";\n if (!usePlaceholder || title)\n return title;\n return placeholder;\n }\n if (!labelledBy && tagName === "FIELDSET") {\n options.visitedElements.add(element);\n for (let child = element.firstElementChild; child; child = child.nextElementSibling) {\n if (elementSafeTagName(child) === "LEGEND") {\n return getTextAlternativeInternal(child, {\n ...childOptions,\n embeddedInNativeTextAlternative: { element: child, hidden: isElementHiddenForAria(child) }\n });\n }\n }\n const title = element.getAttribute("title") || "";\n return title;\n }\n if (!labelledBy && tagName === "FIGURE") {\n options.visitedElements.add(element);\n for (let child = element.firstElementChild; child; child = child.nextElementSibling) {\n if (elementSafeTagName(child) === "FIGCAPTION") {\n return getTextAlternativeInternal(child, {\n ...childOptions,\n embeddedInNativeTextAlternative: { element: child, hidden: isElementHiddenForAria(child) }\n });\n }\n }\n const title = element.getAttribute("title") || "";\n return title;\n }\n if (tagName === "IMG") {\n options.visitedElements.add(element);\n const alt = element.getAttribute("alt") || "";\n if (trimFlatString(alt))\n return alt;\n const title = element.getAttribute("title") || "";\n return title;\n }\n if (tagName === "TABLE") {\n options.visitedElements.add(element);\n for (let child = element.firstElementChild; child; child = child.nextElementSibling) {\n if (elementSafeTagName(child) === "CAPTION") {\n return getTextAlternativeInternal(child, {\n ...childOptions,\n embeddedInNativeTextAlternative: { element: child, hidden: isElementHiddenForAria(child) }\n });\n }\n }\n const summary = element.getAttribute("summary") || "";\n if (summary)\n return summary;\n }\n if (tagName === "AREA") {\n options.visitedElements.add(element);\n const alt = element.getAttribute("alt") || "";\n if (trimFlatString(alt))\n return alt;\n const title = element.getAttribute("title") || "";\n return title;\n }\n if (tagName === "SVG" || element.ownerSVGElement) {\n options.visitedElements.add(element);\n for (let child = element.firstElementChild; child; child = child.nextElementSibling) {\n if (elementSafeTagName(child) === "TITLE" && child.ownerSVGElement) {\n return getTextAlternativeInternal(child, {\n ...childOptions,\n embeddedInLabelledBy: { element: child, hidden: isElementHiddenForAria(child) }\n });\n }\n }\n }\n if (element.ownerSVGElement && tagName === "A") {\n const title = element.getAttribute("xlink:title") || "";\n if (trimFlatString(title)) {\n options.visitedElements.add(element);\n return title;\n }\n }\n }\n const shouldNameFromContentForSummary = tagName === "SUMMARY" && !["presentation", "none"].includes(role);\n if (allowsNameFromContent(role, options.embeddedInTargetElement === "descendant") || shouldNameFromContentForSummary || !!options.embeddedInLabelledBy || !!options.embeddedInDescribedBy || !!options.embeddedInLabel || !!options.embeddedInNativeTextAlternative) {\n options.visitedElements.add(element);\n const accessibleName = innerAccumulatedElementText(element, childOptions);\n const maybeTrimmedAccessibleName = options.embeddedInTargetElement === "self" ? trimFlatString(accessibleName) : accessibleName;\n if (maybeTrimmedAccessibleName)\n return accessibleName;\n }\n if (!["presentation", "none"].includes(role) || tagName === "IFRAME") {\n options.visitedElements.add(element);\n const title = element.getAttribute("title") || "";\n if (trimFlatString(title))\n return title;\n }\n options.visitedElements.add(element);\n return "";\n}\nfunction innerAccumulatedElementText(element, options) {\n const tokens = [];\n const visit = (node, skipSlotted) => {\n var _a;\n if (skipSlotted && node.assignedSlot)\n return;\n if (node.nodeType === 1) {\n const display = ((_a = getElementComputedStyle(node)) == null ? void 0 : _a.display) || "inline";\n let token = getTextAlternativeInternal(node, options);\n if (display !== "inline" || node.nodeName === "BR")\n token = " " + token + " ";\n tokens.push(token);\n } else if (node.nodeType === 3) {\n tokens.push(node.textContent || "");\n }\n };\n tokens.push(getCSSContent(element, "::before") || "");\n const content = getCSSContent(element);\n if (content !== void 0) {\n tokens.push(content);\n } else {\n const assignedNodes = element.nodeName === "SLOT" ? element.assignedNodes() : [];\n if (assignedNodes.length) {\n for (const child of assignedNodes)\n visit(child, false);\n } else {\n for (let child = element.firstChild; child; child = child.nextSibling)\n visit(child, true);\n if (element.shadowRoot) {\n for (let child = element.shadowRoot.firstChild; child; child = child.nextSibling)\n visit(child, true);\n }\n for (const owned of getIdRefs(element, element.getAttribute("aria-owns")))\n visit(owned, true);\n }\n }\n tokens.push(getCSSContent(element, "::after") || "");\n return tokens.join("");\n}\nvar kAriaSelectedRoles = ["gridcell", "option", "row", "tab", "rowheader", "columnheader", "treeitem"];\nfunction getAriaSelected(element) {\n if (elementSafeTagName(element) === "OPTION")\n return element.selected;\n if (kAriaSelectedRoles.includes(getAriaRole(element) || ""))\n return getAriaBoolean(element.getAttribute("aria-selected")) === true;\n return false;\n}\nvar kAriaCheckedRoles = ["checkbox", "menuitemcheckbox", "option", "radio", "switch", "menuitemradio", "treeitem"];\nfunction getAriaChecked(element) {\n const result = getChecked(element, true);\n return result === "error" ? false : result;\n}\nfunction getCheckedAllowMixed(element) {\n return getChecked(element, true);\n}\nfunction getCheckedWithoutMixed(element) {\n const result = getChecked(element, false);\n return result;\n}\nfunction getChecked(element, allowMixed) {\n const tagName = elementSafeTagName(element);\n if (allowMixed && tagName === "INPUT" && element.indeterminate)\n return "mixed";\n if (tagName === "INPUT" && ["checkbox", "radio"].includes(element.type))\n return element.checked;\n if (kAriaCheckedRoles.includes(getAriaRole(element) || "")) {\n const checked = element.getAttribute("aria-checked");\n if (checked === "true")\n return true;\n if (allowMixed && checked === "mixed")\n return "mixed";\n return false;\n }\n return "error";\n}\nvar kAriaReadonlyRoles = ["checkbox", "combobox", "grid", "gridcell", "listbox", "radiogroup", "slider", "spinbutton", "textbox", "columnheader", "rowheader", "searchbox", "switch", "treegrid"];\nfunction getReadonly(element) {\n const tagName = elementSafeTagName(element);\n if (["INPUT", "TEXTAREA", "SELECT"].includes(tagName))\n return element.hasAttribute("readonly");\n if (kAriaReadonlyRoles.includes(getAriaRole(element) || ""))\n return element.getAttribute("aria-readonly") === "true";\n if (element.isContentEditable)\n return false;\n return "error";\n}\nvar kAriaPressedRoles = ["button"];\nfunction getAriaPressed(element) {\n if (kAriaPressedRoles.includes(getAriaRole(element) || "")) {\n const pressed = element.getAttribute("aria-pressed");\n if (pressed === "true")\n return true;\n if (pressed === "mixed")\n return "mixed";\n }\n return false;\n}\nvar kAriaExpandedRoles = ["application", "button", "checkbox", "combobox", "gridcell", "link", "listbox", "menuitem", "row", "rowheader", "tab", "treeitem", "columnheader", "menuitemcheckbox", "menuitemradio", "rowheader", "switch"];\nfunction getAriaExpanded(element) {\n if (elementSafeTagName(element) === "DETAILS")\n return element.open;\n if (kAriaExpandedRoles.includes(getAriaRole(element) || "")) {\n const expanded = element.getAttribute("aria-expanded");\n if (expanded === null)\n return void 0;\n if (expanded === "true")\n return true;\n return false;\n }\n return void 0;\n}\nvar kAriaLevelRoles = ["heading", "listitem", "row", "treeitem"];\nfunction getAriaLevel(element) {\n const native = { "H1": 1, "H2": 2, "H3": 3, "H4": 4, "H5": 5, "H6": 6 }[elementSafeTagName(element)];\n if (native)\n return native;\n if (kAriaLevelRoles.includes(getAriaRole(element) || "")) {\n const attr = element.getAttribute("aria-level");\n const value = attr === null ? Number.NaN : Number(attr);\n if (Number.isInteger(value) && value >= 1)\n return value;\n }\n return 0;\n}\nvar kAriaDisabledRoles = ["application", "button", "composite", "gridcell", "group", "input", "link", "menuitem", "scrollbar", "separator", "tab", "checkbox", "columnheader", "combobox", "grid", "listbox", "menu", "menubar", "menuitemcheckbox", "menuitemradio", "option", "radio", "radiogroup", "row", "rowheader", "searchbox", "select", "slider", "spinbutton", "switch", "tablist", "textbox", "toolbar", "tree", "treegrid", "treeitem"];\nfunction getAriaDisabled(element) {\n return isNativelyDisabled(element) || hasExplicitAriaDisabled(element);\n}\nfunction isNativelyDisabled(element) {\n const isNativeFormControl = ["BUTTON", "INPUT", "SELECT", "TEXTAREA", "OPTION", "OPTGROUP"].includes(elementSafeTagName(element));\n return isNativeFormControl && (element.hasAttribute("disabled") || belongsToDisabledOptGroup(element) || belongsToDisabledFieldSet(element));\n}\nfunction belongsToDisabledOptGroup(element) {\n return elementSafeTagName(element) === "OPTION" && !!element.closest("OPTGROUP[DISABLED]");\n}\nfunction belongsToDisabledFieldSet(element) {\n const fieldSetElement = element == null ? void 0 : element.closest("FIELDSET[DISABLED]");\n if (!fieldSetElement)\n return false;\n const legendElement = fieldSetElement.querySelector(":scope > LEGEND");\n return !legendElement || !legendElement.contains(element);\n}\nfunction hasExplicitAriaDisabled(element, isAncestor = false) {\n if (!element)\n return false;\n if (isAncestor || kAriaDisabledRoles.includes(getAriaRole(element) || "")) {\n const attribute = (element.getAttribute("aria-disabled") || "").toLowerCase();\n if (attribute === "true")\n return true;\n if (attribute === "false")\n return false;\n return hasExplicitAriaDisabled(parentElementOrShadowHost(element), true);\n }\n return false;\n}\nfunction getAccessibleNameFromAssociatedLabels(labels, options) {\n return [...labels].map((label) => getTextAlternativeInternal(label, {\n ...options,\n embeddedInLabel: { element: label, hidden: isElementHiddenForAria(label) },\n embeddedInNativeTextAlternative: void 0,\n embeddedInLabelledBy: void 0,\n embeddedInDescribedBy: void 0,\n embeddedInTargetElement: void 0\n })).filter((accessibleName) => !!accessibleName).join(" ");\n}\nfunction receivesPointerEvents(element) {\n const cache = cachePointerEvents;\n let e = element;\n let result;\n const parents = [];\n for (; e; e = parentElementOrShadowHost(e)) {\n const cached = cache.get(e);\n if (cached !== void 0) {\n result = cached;\n break;\n }\n parents.push(e);\n const style = getElementComputedStyle(e);\n if (!style) {\n result = true;\n break;\n }\n const value = style.pointerEvents;\n if (value) {\n result = value !== "none";\n break;\n }\n }\n if (result === void 0)\n result = true;\n for (const parent of parents)\n cache.set(parent, result);\n return result;\n}\nvar cacheAccessibleName;\nvar cacheAccessibleNameHidden;\nvar cacheAccessibleDescription;\nvar cacheAccessibleDescriptionHidden;\nvar cacheAccessibleErrorMessage;\nvar cacheIsHidden;\nvar cachePseudoContent;\nvar cachePseudoContentBefore;\nvar cachePseudoContentAfter;\nvar cachePointerEvents;\nvar cachesCounter2 = 0;\nfunction beginAriaCaches() {\n beginDOMCaches();\n ++cachesCounter2;\n cacheAccessibleName != null ? cacheAccessibleName : cacheAccessibleName = /* @__PURE__ */ new Map();\n cacheAccessibleNameHidden != null ? cacheAccessibleNameHidden : cacheAccessibleNameHidden = /* @__PURE__ */ new Map();\n cacheAccessibleDescription != null ? cacheAccessibleDescription : cacheAccessibleDescription = /* @__PURE__ */ new Map();\n cacheAccessibleDescriptionHidden != null ? cacheAccessibleDescriptionHidden : cacheAccessibleDescriptionHidden = /* @__PURE__ */ new Map();\n cacheAccessibleErrorMessage != null ? cacheAccessibleErrorMessage : cacheAccessibleErrorMessage = /* @__PURE__ */ new Map();\n cacheIsHidden != null ? cacheIsHidden : cacheIsHidden = /* @__PURE__ */ new Map();\n cachePseudoContent != null ? cachePseudoContent : cachePseudoContent = /* @__PURE__ */ new Map();\n cachePseudoContentBefore != null ? cachePseudoContentBefore : cachePseudoContentBefore = /* @__PURE__ */ new Map();\n cachePseudoContentAfter != null ? cachePseudoContentAfter : cachePseudoContentAfter = /* @__PURE__ */ new Map();\n cachePointerEvents != null ? cachePointerEvents : cachePointerEvents = /* @__PURE__ */ new Map();\n}\nfunction endAriaCaches() {\n if (!--cachesCounter2) {\n cacheAccessibleName = void 0;\n cacheAccessibleNameHidden = void 0;\n cacheAccessibleDescription = void 0;\n cacheAccessibleDescriptionHidden = void 0;\n cacheAccessibleErrorMessage = void 0;\n cacheIsHidden = void 0;\n cachePseudoContent = void 0;\n cachePseudoContentBefore = void 0;\n cachePseudoContentAfter = void 0;\n cachePointerEvents = void 0;\n }\n endDOMCaches();\n}\nvar inputTypeToRole = {\n "button": "button",\n "checkbox": "checkbox",\n "image": "button",\n "number": "spinbutton",\n "radio": "radio",\n "range": "slider",\n "reset": "button",\n "submit": "button"\n};\n\n// packages/injected/src/ariaSnapshot.ts\nvar lastRef = 0;\nfunction toInternalOptions(options) {\n if (options.mode === "ai") {\n return {\n visibility: "ariaOrVisible",\n refs: "interactable",\n refPrefix: options.refPrefix,\n includeGenericRole: true,\n renderActive: !options.doNotRenderActive,\n renderCursorPointer: true\n };\n }\n if (options.mode === "autoexpect") {\n return { visibility: "ariaAndVisible", refs: "none" };\n }\n if (options.mode === "codegen") {\n return { visibility: "aria", refs: "none", renderStringsAsRegex: true };\n }\n return { visibility: "aria", refs: "none" };\n}\nfunction generateAriaTree(rootElement, publicOptions) {\n const options = toInternalOptions(publicOptions);\n const visited = /* @__PURE__ */ new Set();\n const snapshot = {\n root: { role: "fragment", name: "", children: [], props: {}, box: computeBox(rootElement), receivesPointerEvents: true },\n elements: /* @__PURE__ */ new Map(),\n refs: /* @__PURE__ */ new Map(),\n iframeRefs: []\n };\n setAriaNodeElement(snapshot.root, rootElement);\n const visit = (ariaNode, node, parentElementVisible) => {\n if (visited.has(node))\n return;\n visited.add(node);\n if (node.nodeType === Node.TEXT_NODE && node.nodeValue) {\n if (!parentElementVisible)\n return;\n const text = node.nodeValue;\n if (ariaNode.role !== "textbox" && text)\n ariaNode.children.push(node.nodeValue || "");\n return;\n }\n if (node.nodeType !== Node.ELEMENT_NODE)\n return;\n const element = node;\n const isElementVisibleForAria = !isElementHiddenForAria(element);\n let visible = isElementVisibleForAria;\n if (options.visibility === "ariaOrVisible")\n visible = isElementVisibleForAria || isElementVisible(element);\n if (options.visibility === "ariaAndVisible")\n visible = isElementVisibleForAria && isElementVisible(element);\n if (options.visibility === "aria" && !visible)\n return;\n const ariaChildren = [];\n if (element.hasAttribute("aria-owns")) {\n const ids = element.getAttribute("aria-owns").split(/\\s+/);\n for (const id of ids) {\n const ownedElement = rootElement.ownerDocument.getElementById(id);\n if (ownedElement)\n ariaChildren.push(ownedElement);\n }\n }\n const childAriaNode = visible ? toAriaNode(element, options) : null;\n if (childAriaNode) {\n if (childAriaNode.ref) {\n snapshot.elements.set(childAriaNode.ref, element);\n snapshot.refs.set(element, childAriaNode.ref);\n if (childAriaNode.role === "iframe")\n snapshot.iframeRefs.push(childAriaNode.ref);\n }\n ariaNode.children.push(childAriaNode);\n }\n processElement(childAriaNode || ariaNode, element, ariaChildren, visible);\n };\n function processElement(ariaNode, element, ariaChildren, parentElementVisible) {\n var _a;\n const display = ((_a = getElementComputedStyle(element)) == null ? void 0 : _a.display) || "inline";\n const treatAsBlock = display !== "inline" || element.nodeName === "BR" ? " " : "";\n if (treatAsBlock)\n ariaNode.children.push(treatAsBlock);\n ariaNode.children.push(getCSSContent(element, "::before") || "");\n const assignedNodes = element.nodeName === "SLOT" ? element.assignedNodes() : [];\n if (assignedNodes.length) {\n for (const child of assignedNodes)\n visit(ariaNode, child, parentElementVisible);\n } else {\n for (let child = element.firstChild; child; child = child.nextSibling) {\n if (!child.assignedSlot)\n visit(ariaNode, child, parentElementVisible);\n }\n if (element.shadowRoot) {\n for (let child = element.shadowRoot.firstChild; child; child = child.nextSibling)\n visit(ariaNode, child, parentElementVisible);\n }\n }\n for (const child of ariaChildren)\n visit(ariaNode, child, parentElementVisible);\n ariaNode.children.push(getCSSContent(element, "::after") || "");\n if (treatAsBlock)\n ariaNode.children.push(treatAsBlock);\n if (ariaNode.children.length === 1 && ariaNode.name === ariaNode.children[0])\n ariaNode.children = [];\n if (ariaNode.role === "link" && element.hasAttribute("href")) {\n const href = element.getAttribute("href");\n ariaNode.props["url"] = href;\n }\n if (ariaNode.role === "textbox" && element.hasAttribute("placeholder") && element.getAttribute("placeholder") !== ariaNode.name) {\n const placeholder = element.getAttribute("placeholder");\n ariaNode.props["placeholder"] = placeholder;\n }\n }\n beginAriaCaches();\n try {\n visit(snapshot.root, rootElement, true);\n } finally {\n endAriaCaches();\n }\n normalizeStringChildren(snapshot.root);\n normalizeGenericRoles(snapshot.root);\n return snapshot;\n}\nfunction computeAriaRef(ariaNode, options) {\n var _a;\n if (options.refs === "none")\n return;\n if (options.refs === "interactable" && (!ariaNode.box.visible || !ariaNode.receivesPointerEvents))\n return;\n const element = ariaNodeElement(ariaNode);\n let ariaRef = element._ariaRef;\n if (!ariaRef || ariaRef.role !== ariaNode.role || ariaRef.name !== ariaNode.name) {\n ariaRef = { role: ariaNode.role, name: ariaNode.name, ref: ((_a = options.refPrefix) != null ? _a : "") + "e" + ++lastRef };\n element._ariaRef = ariaRef;\n }\n ariaNode.ref = ariaRef.ref;\n}\nfunction toAriaNode(element, options) {\n var _a;\n const active = element.ownerDocument.activeElement === element;\n if (element.nodeName === "IFRAME") {\n const ariaNode = {\n role: "iframe",\n name: "",\n children: [],\n props: {},\n box: computeBox(element),\n receivesPointerEvents: true,\n active\n };\n setAriaNodeElement(ariaNode, element);\n computeAriaRef(ariaNode, options);\n return ariaNode;\n }\n const defaultRole = options.includeGenericRole ? "generic" : null;\n const role = (_a = getAriaRole(element)) != null ? _a : defaultRole;\n if (!role || role === "presentation" || role === "none")\n return null;\n const name = normalizeWhiteSpace(getElementAccessibleName(element, false) || "");\n const receivesPointerEvents2 = receivesPointerEvents(element);\n const box = computeBox(element);\n if (role === "generic" && box.inline && element.childNodes.length === 1 && element.childNodes[0].nodeType === Node.TEXT_NODE)\n return null;\n const result = {\n role,\n name,\n children: [],\n props: {},\n box,\n receivesPointerEvents: receivesPointerEvents2,\n active\n };\n setAriaNodeElement(result, element);\n computeAriaRef(result, options);\n if (kAriaCheckedRoles.includes(role))\n result.checked = getAriaChecked(element);\n if (kAriaDisabledRoles.includes(role))\n result.disabled = getAriaDisabled(element);\n if (kAriaExpandedRoles.includes(role))\n result.expanded = getAriaExpanded(element);\n if (kAriaLevelRoles.includes(role))\n result.level = getAriaLevel(element);\n if (kAriaPressedRoles.includes(role))\n result.pressed = getAriaPressed(element);\n if (kAriaSelectedRoles.includes(role))\n result.selected = getAriaSelected(element);\n if (element instanceof HTMLInputElement || element instanceof HTMLTextAreaElement) {\n if (element.type !== "checkbox" && element.type !== "radio" && element.type !== "file")\n result.children = [element.value];\n }\n return result;\n}\nfunction normalizeGenericRoles(node) {\n const normalizeChildren = (node2) => {\n const result = [];\n for (const child of node2.children || []) {\n if (typeof child === "string") {\n result.push(child);\n continue;\n }\n const normalized = normalizeChildren(child);\n result.push(...normalized);\n }\n const removeSelf = node2.role === "generic" && !node2.name && result.length <= 1 && result.every((c) => typeof c !== "string" && !!c.ref);\n if (removeSelf)\n return result;\n node2.children = result;\n return [node2];\n };\n normalizeChildren(node);\n}\nfunction normalizeStringChildren(rootA11yNode) {\n const flushChildren = (buffer, normalizedChildren) => {\n if (!buffer.length)\n return;\n const text = normalizeWhiteSpace(buffer.join(""));\n if (text)\n normalizedChildren.push(text);\n buffer.length = 0;\n };\n const visit = (ariaNode) => {\n const normalizedChildren = [];\n const buffer = [];\n for (const child of ariaNode.children || []) {\n if (typeof child === "string") {\n buffer.push(child);\n } else {\n flushChildren(buffer, normalizedChildren);\n visit(child);\n normalizedChildren.push(child);\n }\n }\n flushChildren(buffer, normalizedChildren);\n ariaNode.children = normalizedChildren.length ? normalizedChildren : [];\n if (ariaNode.children.length === 1 && ariaNode.children[0] === ariaNode.name)\n ariaNode.children = [];\n };\n visit(rootA11yNode);\n}\nfunction matchesStringOrRegex(text, template) {\n if (!template)\n return true;\n if (!text)\n return false;\n if (typeof template === "string")\n return text === template;\n return !!text.match(new RegExp(template.pattern));\n}\nfunction matchesTextValue(text, template) {\n if (!(template == null ? void 0 : template.normalized))\n return true;\n if (!text)\n return false;\n if (text === template.normalized)\n return true;\n if (text === template.raw)\n return true;\n const regex = cachedRegex(template);\n if (regex)\n return !!text.match(regex);\n return false;\n}\nvar cachedRegexSymbol = Symbol("cachedRegex");\nfunction cachedRegex(template) {\n if (template[cachedRegexSymbol] !== void 0)\n return template[cachedRegexSymbol];\n const { raw } = template;\n const canBeRegex = raw.startsWith("/") && raw.endsWith("/") && raw.length > 1;\n let regex;\n try {\n regex = canBeRegex ? new RegExp(raw.slice(1, -1)) : null;\n } catch (e) {\n regex = null;\n }\n template[cachedRegexSymbol] = regex;\n return regex;\n}\nfunction matchesExpectAriaTemplate(rootElement, template) {\n const snapshot = generateAriaTree(rootElement, { mode: "expect" });\n const matches = matchesNodeDeep(snapshot.root, template, false, false);\n return {\n matches,\n received: {\n raw: renderAriaTree(snapshot, { mode: "expect" }),\n regex: renderAriaTree(snapshot, { mode: "codegen" })\n }\n };\n}\nfunction getAllElementsMatchingExpectAriaTemplate(rootElement, template) {\n const root = generateAriaTree(rootElement, { mode: "expect" }).root;\n const matches = matchesNodeDeep(root, template, true, false);\n return matches.map((n) => ariaNodeElement(n));\n}\nfunction matchesNode(node, template, isDeepEqual) {\n var _a;\n if (typeof node === "string" && template.kind === "text")\n return matchesTextValue(node, template.text);\n if (node === null || typeof node !== "object" || template.kind !== "role")\n return false;\n if (template.role !== "fragment" && template.role !== node.role)\n return false;\n if (template.checked !== void 0 && template.checked !== node.checked)\n return false;\n if (template.disabled !== void 0 && template.disabled !== node.disabled)\n return false;\n if (template.expanded !== void 0 && template.expanded !== node.expanded)\n return false;\n if (template.level !== void 0 && template.level !== node.level)\n return false;\n if (template.pressed !== void 0 && template.pressed !== node.pressed)\n return false;\n if (template.selected !== void 0 && template.selected !== node.selected)\n return false;\n if (!matchesStringOrRegex(node.name, template.name))\n return false;\n if (!matchesTextValue(node.props.url, (_a = template.props) == null ? void 0 : _a.url))\n return false;\n if (template.containerMode === "contain")\n return containsList(node.children || [], template.children || []);\n if (template.containerMode === "equal")\n return listEqual(node.children || [], template.children || [], false);\n if (template.containerMode === "deep-equal" || isDeepEqual)\n return listEqual(node.children || [], template.children || [], true);\n return containsList(node.children || [], template.children || []);\n}\nfunction listEqual(children, template, isDeepEqual) {\n if (template.length !== children.length)\n return false;\n for (let i = 0; i < template.length; ++i) {\n if (!matchesNode(children[i], template[i], isDeepEqual))\n return false;\n }\n return true;\n}\nfunction containsList(children, template) {\n if (template.length > children.length)\n return false;\n const cc = children.slice();\n const tt = template.slice();\n for (const t of tt) {\n let c = cc.shift();\n while (c) {\n if (matchesNode(c, t, false))\n break;\n c = cc.shift();\n }\n if (!c)\n return false;\n }\n return true;\n}\nfunction matchesNodeDeep(root, template, collectAll, isDeepEqual) {\n const results = [];\n const visit = (node, parent) => {\n if (matchesNode(node, template, isDeepEqual)) {\n const result = typeof node === "string" ? parent : node;\n if (result)\n results.push(result);\n return !collectAll;\n }\n if (typeof node === "string")\n return false;\n for (const child of node.children || []) {\n if (visit(child, node))\n return true;\n }\n return false;\n };\n visit(root, null);\n return results;\n}\nfunction buildByRefMap(root, map = /* @__PURE__ */ new Map()) {\n if (root == null ? void 0 : root.ref)\n map.set(root.ref, root);\n for (const child of (root == null ? void 0 : root.children) || []) {\n if (typeof child !== "string")\n buildByRefMap(child, map);\n }\n return map;\n}\nfunction compareSnapshots(ariaSnapshot, previousSnapshot) {\n var _a;\n const previousByRef = buildByRefMap(previousSnapshot == null ? void 0 : previousSnapshot.root);\n const result = /* @__PURE__ */ new Map();\n const visit = (ariaNode, previousNode) => {\n let same = ariaNode.children.length === (previousNode == null ? void 0 : previousNode.children.length) && ariaNodesEqual(ariaNode, previousNode);\n let canBeSkipped = same;\n for (let childIndex = 0; childIndex < ariaNode.children.length; childIndex++) {\n const child = ariaNode.children[childIndex];\n const previousChild = previousNode == null ? void 0 : previousNode.children[childIndex];\n if (typeof child === "string") {\n same && (same = child === previousChild);\n canBeSkipped && (canBeSkipped = child === previousChild);\n } else {\n let previous = typeof previousChild !== "string" ? previousChild : void 0;\n if (child.ref)\n previous = previousByRef.get(child.ref);\n const sameChild = visit(child, previous);\n if (!previous || !sameChild && !child.ref || previous !== previousChild)\n canBeSkipped = false;\n same && (same = sameChild && previous === previousChild);\n }\n }\n result.set(ariaNode, same ? "same" : canBeSkipped ? "skip" : "changed");\n return same;\n };\n visit(ariaSnapshot.root, previousByRef.get((_a = previousSnapshot == null ? void 0 : previousSnapshot.root) == null ? void 0 : _a.ref));\n return result;\n}\nfunction filterSnapshotDiff(nodes, statusMap) {\n const result = [];\n const visit = (ariaNode) => {\n const status = statusMap.get(ariaNode);\n if (status === "same") {\n } else if (status === "skip") {\n for (const child of ariaNode.children) {\n if (typeof child !== "string")\n visit(child);\n }\n } else {\n result.push(ariaNode);\n }\n };\n for (const node of nodes) {\n if (typeof node === "string")\n result.push(node);\n else\n visit(node);\n }\n return result;\n}\nfunction renderAriaTree(ariaSnapshot, publicOptions, previousSnapshot) {\n const options = toInternalOptions(publicOptions);\n const lines = [];\n const includeText = options.renderStringsAsRegex ? textContributesInfo : () => true;\n const renderString = options.renderStringsAsRegex ? convertToBestGuessRegex : (str) => str;\n let nodesToRender = ariaSnapshot.root.role === "fragment" ? ariaSnapshot.root.children : [ariaSnapshot.root];\n const statusMap = compareSnapshots(ariaSnapshot, previousSnapshot);\n if (previousSnapshot)\n nodesToRender = filterSnapshotDiff(nodesToRender, statusMap);\n const visitText = (text, indent) => {\n const escaped = yamlEscapeValueIfNeeded(renderString(text));\n if (escaped)\n lines.push(indent + "- text: " + escaped);\n };\n const createKey = (ariaNode, renderCursorPointer) => {\n let key = ariaNode.role;\n if (ariaNode.name && ariaNode.name.length <= 900) {\n const name = renderString(ariaNode.name);\n if (name) {\n const stringifiedName = name.startsWith("/") && name.endsWith("/") ? name : JSON.stringify(name);\n key += " " + stringifiedName;\n }\n }\n if (ariaNode.checked === "mixed")\n key += ` [checked=mixed]`;\n if (ariaNode.checked === true)\n key += ` [checked]`;\n if (ariaNode.disabled)\n key += ` [disabled]`;\n if (ariaNode.expanded)\n key += ` [expanded]`;\n if (ariaNode.active && options.renderActive)\n key += ` [active]`;\n if (ariaNode.level)\n key += ` [level=${ariaNode.level}]`;\n if (ariaNode.pressed === "mixed")\n key += ` [pressed=mixed]`;\n if (ariaNode.pressed === true)\n key += ` [pressed]`;\n if (ariaNode.selected === true)\n key += ` [selected]`;\n if (ariaNode.ref) {\n key += ` [ref=${ariaNode.ref}]`;\n if (renderCursorPointer && hasPointerCursor(ariaNode))\n key += " [cursor=pointer]";\n }\n return key;\n };\n const getSingleInlinedTextChild = (ariaNode) => {\n return (ariaNode == null ? void 0 : ariaNode.children.length) === 1 && typeof ariaNode.children[0] === "string" && !Object.keys(ariaNode.props).length ? ariaNode.children[0] : void 0;\n };\n const visit = (ariaNode, indent, renderCursorPointer) => {\n if (statusMap.get(ariaNode) === "same" && ariaNode.ref) {\n lines.push(indent + `- ref=${ariaNode.ref} [unchanged]`);\n return;\n }\n const isDiffRoot = !!previousSnapshot && !indent;\n const escapedKey = indent + "- " + (isDiffRoot ? " " : "") + yamlEscapeKeyIfNeeded(createKey(ariaNode, renderCursorPointer));\n const singleInlinedTextChild = getSingleInlinedTextChild(ariaNode);\n if (!ariaNode.children.length && !Object.keys(ariaNode.props).length) {\n lines.push(escapedKey);\n } else if (singleInlinedTextChild !== void 0) {\n const shouldInclude = includeText(ariaNode, singleInlinedTextChild);\n if (shouldInclude)\n lines.push(escapedKey + ": " + yamlEscapeValueIfNeeded(renderString(singleInlinedTextChild)));\n else\n lines.push(escapedKey);\n } else {\n lines.push(escapedKey + ":");\n for (const [name, value] of Object.entries(ariaNode.props))\n lines.push(indent + " - /" + name + ": " + yamlEscapeValueIfNeeded(value));\n const childIndent = indent + " ";\n const inCursorPointer = !!ariaNode.ref && renderCursorPointer && hasPointerCursor(ariaNode);\n for (const child of ariaNode.children) {\n if (typeof child === "string")\n visitText(includeText(ariaNode, child) ? child : "", childIndent);\n else\n visit(child, childIndent, renderCursorPointer && !inCursorPointer);\n }\n }\n };\n for (const nodeToRender of nodesToRender) {\n if (typeof nodeToRender === "string")\n visitText(nodeToRender, "");\n else\n visit(nodeToRender, "", !!options.renderCursorPointer);\n }\n return lines.join("\\n");\n}\nfunction convertToBestGuessRegex(text) {\n const dynamicContent = [\n // 2mb\n { regex: /\\b[\\d,.]+[bkmBKM]+\\b/, replacement: "[\\\\d,.]+[bkmBKM]+" },\n // 2ms, 20s\n { regex: /\\b\\d+[hmsp]+\\b/, replacement: "\\\\d+[hmsp]+" },\n { regex: /\\b[\\d,.]+[hmsp]+\\b/, replacement: "[\\\\d,.]+[hmsp]+" },\n // Do not replace single digits with regex by default.\n // 2+ digits: [Issue 22, 22.3, 2.33, 2,333]\n { regex: /\\b\\d+,\\d+\\b/, replacement: "\\\\d+,\\\\d+" },\n { regex: /\\b\\d+\\.\\d{2,}\\b/, replacement: "\\\\d+\\\\.\\\\d+" },\n { regex: /\\b\\d{2,}\\.\\d+\\b/, replacement: "\\\\d+\\\\.\\\\d+" },\n { regex: /\\b\\d{2,}\\b/, replacement: "\\\\d+" }\n ];\n let pattern = "";\n let lastIndex = 0;\n const combinedRegex = new RegExp(dynamicContent.map((r) => "(" + r.regex.source + ")").join("|"), "g");\n text.replace(combinedRegex, (match, ...args) => {\n const offset = args[args.length - 2];\n const groups = args.slice(0, -2);\n pattern += escapeRegExp(text.slice(lastIndex, offset));\n for (let i = 0; i < groups.length; i++) {\n if (groups[i]) {\n const { replacement } = dynamicContent[i];\n pattern += replacement;\n break;\n }\n }\n lastIndex = offset + match.length;\n return match;\n });\n if (!pattern)\n return text;\n pattern += escapeRegExp(text.slice(lastIndex));\n return String(new RegExp(pattern));\n}\nfunction textContributesInfo(node, text) {\n if (!text.length)\n return false;\n if (!node.name)\n return true;\n if (node.name.length > text.length)\n return false;\n const substr = text.length <= 200 && node.name.length <= 200 ? longestCommonSubstring(text, node.name) : "";\n let filtered = text;\n while (substr && filtered.includes(substr))\n filtered = filtered.replace(substr, "");\n return filtered.trim().length / text.length > 0.1;\n}\nvar elementSymbol = Symbol("element");\nfunction ariaNodeElement(ariaNode) {\n return ariaNode[elementSymbol];\n}\nfunction setAriaNodeElement(ariaNode, element) {\n ariaNode[elementSymbol] = element;\n}\nfunction findNewElement(from, to) {\n const node = findNewNode(from, to);\n return node ? ariaNodeElement(node) : void 0;\n}\n\n// packages/injected/src/highlight.css?inline\nvar highlight_default = ":host{font-size:13px;font-family:system-ui,Ubuntu,Droid Sans,sans-serif;color:#333}svg{position:absolute;height:0}x-pw-tooltip{backdrop-filter:blur(5px);background-color:#fff;border-radius:6px;box-shadow:0 .5rem 1.2rem #0000004d;display:none;font-size:12.8px;font-weight:400;left:0;line-height:1.5;max-width:600px;position:absolute;top:0;padding:0;flex-direction:column;overflow:hidden}x-pw-tooltip-line{display:flex;max-width:600px;padding:6px;user-select:none;cursor:pointer}x-pw-tooltip-footer{display:flex;max-width:600px;padding:6px;user-select:none;color:#777}x-pw-dialog{background-color:#fff;pointer-events:auto;border-radius:6px;box-shadow:0 .5rem 1.2rem #0000004d;display:flex;flex-direction:column;position:absolute;z-index:10;font-size:13px}x-pw-dialog:not(.autosize){width:400px;height:150px}x-pw-dialog-body{display:flex;flex-direction:column;flex:auto}x-pw-dialog-body label{margin:5px 8px;display:flex;flex-direction:row;align-items:center}x-pw-highlight{position:absolute;top:0;left:0;width:0;height:0}x-pw-action-point{position:absolute;width:20px;height:20px;background:red;border-radius:10px;margin:-10px 0 0 -10px;z-index:2}x-pw-separator{height:1px;margin:6px 9px;background:#949494e5}x-pw-tool-gripper{height:28px;width:24px;margin:2px 0;cursor:grab}x-pw-tool-gripper:active{cursor:grabbing}x-pw-tool-gripper>x-div{width:16px;height:16px;margin:6px 4px;clip-path:url(#icon-gripper);background-color:#555}x-pw-tools-list>label{display:flex;align-items:center;margin:0 10px;user-select:none}x-pw-tools-list{display:flex;width:100%;border-bottom:1px solid #dddddd}x-pw-tool-item{pointer-events:auto;height:28px;width:28px;border-radius:3px}x-pw-tool-item:not(.disabled){cursor:pointer}x-pw-tool-item:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.toggled{background-color:#8acae480}x-pw-tool-item.toggled:not(.disabled):hover{background-color:#8acae4c4}x-pw-tool-item>x-div{width:16px;height:16px;margin:6px;background-color:#3a3a3a}x-pw-tool-item.disabled>x-div{background-color:#61616180;cursor:default}x-pw-tool-item.record.toggled{background-color:transparent}x-pw-tool-item.record.toggled:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.record.toggled>x-div{background-color:#a1260d}x-pw-tool-item.record.disabled.toggled>x-div{opacity:.8}x-pw-tool-item.accept>x-div{background-color:#388a34}x-pw-tool-item.record>x-div{clip-path:url(#icon-circle-large-filled)}x-pw-tool-item.record.toggled>x-div{clip-path:url(#icon-stop-circle)}x-pw-tool-item.pick-locator>x-div{clip-path:url(#icon-inspect)}x-pw-tool-item.text>x-div{clip-path:url(#icon-whole-word)}x-pw-tool-item.visibility>x-div{clip-path:url(#icon-eye)}x-pw-tool-item.value>x-div{clip-path:url(#icon-symbol-constant)}x-pw-tool-item.snapshot>x-div{clip-path:url(#icon-gist)}x-pw-tool-item.accept>x-div{clip-path:url(#icon-check)}x-pw-tool-item.cancel>x-div{clip-path:url(#icon-close)}x-pw-tool-item.succeeded>x-div{clip-path:url(#icon-pass);background-color:#388a34!important}x-pw-overlay{position:absolute;top:0;max-width:min-content;z-index:2147483647;background:transparent;pointer-events:auto}x-pw-overlay x-pw-tools-list{background-color:#fffd;box-shadow:#0000001a 0 5px 5px;border-radius:3px;border-bottom:none}x-pw-overlay x-pw-tool-item{margin:2px}textarea.text-editor{font-family:system-ui,Ubuntu,Droid Sans,sans-serif;flex:auto;border:none;margin:6px 10px;color:#333;outline:1px solid transparent!important;resize:none;padding:0;font-size:13px}textarea.text-editor.does-not-match{outline:1px solid red!important}x-div{display:block}x-spacer{flex:auto}*{box-sizing:border-box}*[hidden]{display:none!important}x-locator-editor{flex:none;width:100%;height:60px;padding:4px;border-bottom:1px solid #dddddd;outline:1px solid transparent}x-locator-editor.does-not-match{outline:1px solid red}.CodeMirror{width:100%!important;height:100%!important}x-pw-action-list{flex:auto;display:flex;flex-direction:column;user-select:none}x-pw-action-item{padding:6px 10px;cursor:pointer;overflow:hidden}x-pw-action-item:hover{background-color:#f2f2f2}x-pw-action-item:last-child{border-bottom-left-radius:6px;border-bottom-right-radius:6px}\\n";\n\n// packages/injected/src/highlight.ts\nvar Highlight = class {\n constructor(injectedScript) {\n this._renderedEntries = [];\n this._language = "javascript";\n this._injectedScript = injectedScript;\n const document = injectedScript.document;\n this._isUnderTest = injectedScript.isUnderTest;\n this._glassPaneElement = document.createElement("x-pw-glass");\n this._glassPaneElement.style.position = "fixed";\n this._glassPaneElement.style.top = "0";\n this._glassPaneElement.style.right = "0";\n this._glassPaneElement.style.bottom = "0";\n this._glassPaneElement.style.left = "0";\n this._glassPaneElement.style.zIndex = "2147483647";\n this._glassPaneElement.style.pointerEvents = "none";\n this._glassPaneElement.style.display = "flex";\n this._glassPaneElement.style.backgroundColor = "transparent";\n this._actionPointElement = document.createElement("x-pw-action-point");\n this._actionPointElement.setAttribute("hidden", "true");\n this._glassPaneShadow = this._glassPaneElement.attachShadow({ mode: this._isUnderTest ? "open" : "closed" });\n if (typeof this._glassPaneShadow.adoptedStyleSheets.push === "function") {\n const sheet = new this._injectedScript.window.CSSStyleSheet();\n sheet.replaceSync(highlight_default);\n this._glassPaneShadow.adoptedStyleSheets.push(sheet);\n } else {\n const styleElement = this._injectedScript.document.createElement("style");\n styleElement.textContent = highlight_default;\n this._glassPaneShadow.appendChild(styleElement);\n }\n this._glassPaneShadow.appendChild(this._actionPointElement);\n }\n install() {\n if (!this._injectedScript.document.documentElement)\n return;\n if (!this._injectedScript.document.documentElement.contains(this._glassPaneElement) || this._glassPaneElement.nextElementSibling)\n this._injectedScript.document.documentElement.appendChild(this._glassPaneElement);\n }\n setLanguage(language) {\n this._language = language;\n }\n runHighlightOnRaf(selector) {\n if (this._rafRequest)\n this._injectedScript.utils.builtins.cancelAnimationFrame(this._rafRequest);\n const elements = this._injectedScript.querySelectorAll(selector, this._injectedScript.document.documentElement);\n const locator = asLocator(this._language, stringifySelector(selector));\n const color = elements.length > 1 ? "#f6b26b7f" : "#6fa8dc7f";\n this.updateHighlight(elements.map((element, index) => {\n const suffix = elements.length > 1 ? ` [${index + 1} of ${elements.length}]` : "";\n return { element, color, tooltipText: locator + suffix };\n }));\n this._rafRequest = this._injectedScript.utils.builtins.requestAnimationFrame(() => this.runHighlightOnRaf(selector));\n }\n uninstall() {\n if (this._rafRequest)\n this._injectedScript.utils.builtins.cancelAnimationFrame(this._rafRequest);\n this._glassPaneElement.remove();\n }\n showActionPoint(x, y) {\n this._actionPointElement.style.top = y + "px";\n this._actionPointElement.style.left = x + "px";\n this._actionPointElement.hidden = false;\n }\n hideActionPoint() {\n this._actionPointElement.hidden = true;\n }\n clearHighlight() {\n var _a, _b;\n for (const entry of this._renderedEntries) {\n (_a = entry.highlightElement) == null ? void 0 : _a.remove();\n (_b = entry.tooltipElement) == null ? void 0 : _b.remove();\n }\n this._renderedEntries = [];\n }\n maskElements(elements, color) {\n this.updateHighlight(elements.map((element) => ({ element, color })));\n }\n updateHighlight(entries) {\n if (this._highlightIsUpToDate(entries))\n return;\n this.clearHighlight();\n for (const entry of entries) {\n const highlightElement = this._createHighlightElement();\n this._glassPaneShadow.appendChild(highlightElement);\n let tooltipElement;\n if (entry.tooltipText) {\n tooltipElement = this._injectedScript.document.createElement("x-pw-tooltip");\n this._glassPaneShadow.appendChild(tooltipElement);\n tooltipElement.style.top = "0";\n tooltipElement.style.left = "0";\n tooltipElement.style.display = "flex";\n const lineElement = this._injectedScript.document.createElement("x-pw-tooltip-line");\n lineElement.textContent = entry.tooltipText;\n tooltipElement.appendChild(lineElement);\n }\n this._renderedEntries.push({ targetElement: entry.element, color: entry.color, tooltipElement, highlightElement });\n }\n for (const entry of this._renderedEntries) {\n entry.box = entry.targetElement.getBoundingClientRect();\n if (!entry.tooltipElement)\n continue;\n const { anchorLeft, anchorTop } = this.tooltipPosition(entry.box, entry.tooltipElement);\n entry.tooltipTop = anchorTop;\n entry.tooltipLeft = anchorLeft;\n }\n for (const entry of this._renderedEntries) {\n if (entry.tooltipElement) {\n entry.tooltipElement.style.top = entry.tooltipTop + "px";\n entry.tooltipElement.style.left = entry.tooltipLeft + "px";\n }\n const box = entry.box;\n entry.highlightElement.style.backgroundColor = entry.color;\n entry.highlightElement.style.left = box.x + "px";\n entry.highlightElement.style.top = box.y + "px";\n entry.highlightElement.style.width = box.width + "px";\n entry.highlightElement.style.height = box.height + "px";\n entry.highlightElement.style.display = "block";\n if (this._isUnderTest)\n console.error("Highlight box for test: " + JSON.stringify({ x: box.x, y: box.y, width: box.width, height: box.height }));\n }\n }\n firstBox() {\n var _a;\n return (_a = this._renderedEntries[0]) == null ? void 0 : _a.box;\n }\n firstTooltipBox() {\n const entry = this._renderedEntries[0];\n if (!entry || !entry.tooltipElement || entry.tooltipLeft === void 0 || entry.tooltipTop === void 0)\n return;\n return {\n x: entry.tooltipLeft,\n y: entry.tooltipTop,\n left: entry.tooltipLeft,\n top: entry.tooltipTop,\n width: entry.tooltipElement.offsetWidth,\n height: entry.tooltipElement.offsetHeight,\n bottom: entry.tooltipTop + entry.tooltipElement.offsetHeight,\n right: entry.tooltipLeft + entry.tooltipElement.offsetWidth,\n toJSON: () => {\n }\n };\n }\n // Note: there is a copy of this method in dialog.tsx. Please fix bugs in both places.\n tooltipPosition(box, tooltipElement) {\n const tooltipWidth = tooltipElement.offsetWidth;\n const tooltipHeight = tooltipElement.offsetHeight;\n const totalWidth = this._glassPaneElement.offsetWidth;\n const totalHeight = this._glassPaneElement.offsetHeight;\n let anchorLeft = Math.max(5, box.left);\n if (anchorLeft + tooltipWidth > totalWidth - 5)\n anchorLeft = totalWidth - tooltipWidth - 5;\n let anchorTop = Math.max(0, box.bottom) + 5;\n if (anchorTop + tooltipHeight > totalHeight - 5) {\n if (Math.max(0, box.top) > tooltipHeight + 5) {\n anchorTop = Math.max(0, box.top) - tooltipHeight - 5;\n } else {\n anchorTop = totalHeight - 5 - tooltipHeight;\n }\n }\n return { anchorLeft, anchorTop };\n }\n _highlightIsUpToDate(entries) {\n if (entries.length !== this._renderedEntries.length)\n return false;\n for (let i = 0; i < this._renderedEntries.length; ++i) {\n if (entries[i].element !== this._renderedEntries[i].targetElement)\n return false;\n if (entries[i].color !== this._renderedEntries[i].color)\n return false;\n const oldBox = this._renderedEntries[i].box;\n if (!oldBox)\n return false;\n const box = entries[i].element.getBoundingClientRect();\n if (box.top !== oldBox.top || box.right !== oldBox.right || box.bottom !== oldBox.bottom || box.left !== oldBox.left)\n return false;\n }\n return true;\n }\n _createHighlightElement() {\n return this._injectedScript.document.createElement("x-pw-highlight");\n }\n appendChild(element) {\n this._glassPaneShadow.appendChild(element);\n }\n onGlassPaneClick(handler) {\n this._glassPaneElement.style.pointerEvents = "auto";\n this._glassPaneElement.style.backgroundColor = "rgba(0, 0, 0, 0.3)";\n this._glassPaneElement.addEventListener("click", handler);\n }\n offGlassPaneClick(handler) {\n this._glassPaneElement.style.pointerEvents = "none";\n this._glassPaneElement.style.backgroundColor = "transparent";\n this._glassPaneElement.removeEventListener("click", handler);\n }\n};\n\n// packages/injected/src/layoutSelectorUtils.ts\nfunction boxRightOf(box1, box2, maxDistance) {\n const distance = box1.left - box2.right;\n if (distance < 0 || maxDistance !== void 0 && distance > maxDistance)\n return;\n return distance + Math.max(box2.bottom - box1.bottom, 0) + Math.max(box1.top - box2.top, 0);\n}\nfunction boxLeftOf(box1, box2, maxDistance) {\n const distance = box2.left - box1.right;\n if (distance < 0 || maxDistance !== void 0 && distance > maxDistance)\n return;\n return distance + Math.max(box2.bottom - box1.bottom, 0) + Math.max(box1.top - box2.top, 0);\n}\nfunction boxAbove(box1, box2, maxDistance) {\n const distance = box2.top - box1.bottom;\n if (distance < 0 || maxDistance !== void 0 && distance > maxDistance)\n return;\n return distance + Math.max(box1.left - box2.left, 0) + Math.max(box2.right - box1.right, 0);\n}\nfunction boxBelow(box1, box2, maxDistance) {\n const distance = box1.top - box2.bottom;\n if (distance < 0 || maxDistance !== void 0 && distance > maxDistance)\n return;\n return distance + Math.max(box1.left - box2.left, 0) + Math.max(box2.right - box1.right, 0);\n}\nfunction boxNear(box1, box2, maxDistance) {\n const kThreshold = maxDistance === void 0 ? 50 : maxDistance;\n let score = 0;\n if (box1.left - box2.right >= 0)\n score += box1.left - box2.right;\n if (box2.left - box1.right >= 0)\n score += box2.left - box1.right;\n if (box2.top - box1.bottom >= 0)\n score += box2.top - box1.bottom;\n if (box1.top - box2.bottom >= 0)\n score += box1.top - box2.bottom;\n return score > kThreshold ? void 0 : score;\n}\nvar kLayoutSelectorNames = ["left-of", "right-of", "above", "below", "near"];\nfunction layoutSelectorScore(name, element, inner, maxDistance) {\n const box = element.getBoundingClientRect();\n const scorer = { "left-of": boxLeftOf, "right-of": boxRightOf, "above": boxAbove, "below": boxBelow, "near": boxNear }[name];\n let bestScore;\n for (const e of inner) {\n if (e === element)\n continue;\n const score = scorer(box, e.getBoundingClientRect(), maxDistance);\n if (score === void 0)\n continue;\n if (bestScore === void 0 || score < bestScore)\n bestScore = score;\n }\n return bestScore;\n}\n\n// packages/injected/src/selectorUtils.ts\nfunction matchesComponentAttribute(obj, attr) {\n for (const token of attr.jsonPath) {\n if (obj !== void 0 && obj !== null)\n obj = obj[token];\n }\n return matchesAttributePart(obj, attr);\n}\nfunction matchesAttributePart(value, attr) {\n const objValue = typeof value === "string" && !attr.caseSensitive ? value.toUpperCase() : value;\n const attrValue = typeof attr.value === "string" && !attr.caseSensitive ? attr.value.toUpperCase() : attr.value;\n if (attr.op === "")\n return !!objValue;\n if (attr.op === "=") {\n if (attrValue instanceof RegExp)\n return typeof objValue === "string" && !!objValue.match(attrValue);\n return objValue === attrValue;\n }\n if (typeof objValue !== "string" || typeof attrValue !== "string")\n return false;\n if (attr.op === "*=")\n return objValue.includes(attrValue);\n if (attr.op === "^=")\n return objValue.startsWith(attrValue);\n if (attr.op === "$=")\n return objValue.endsWith(attrValue);\n if (attr.op === "|=")\n return objValue === attrValue || objValue.startsWith(attrValue + "-");\n if (attr.op === "~=")\n return objValue.split(" ").includes(attrValue);\n return false;\n}\nfunction shouldSkipForTextMatching(element) {\n const document = element.ownerDocument;\n return element.nodeName === "SCRIPT" || element.nodeName === "NOSCRIPT" || element.nodeName === "STYLE" || document.head && document.head.contains(element);\n}\nfunction elementText(cache, root) {\n let value = cache.get(root);\n if (value === void 0) {\n value = { full: "", normalized: "", immediate: [] };\n if (!shouldSkipForTextMatching(root)) {\n let currentImmediate = "";\n if (root instanceof HTMLInputElement && (root.type === "submit" || root.type === "button")) {\n value = { full: root.value, normalized: normalizeWhiteSpace(root.value), immediate: [root.value] };\n } else {\n for (let child = root.firstChild; child; child = child.nextSibling) {\n if (child.nodeType === Node.TEXT_NODE) {\n value.full += child.nodeValue || "";\n currentImmediate += child.nodeValue || "";\n } else if (child.nodeType === Node.COMMENT_NODE) {\n continue;\n } else {\n if (currentImmediate)\n value.immediate.push(currentImmediate);\n currentImmediate = "";\n if (child.nodeType === Node.ELEMENT_NODE)\n value.full += elementText(cache, child).full;\n }\n }\n if (currentImmediate)\n value.immediate.push(currentImmediate);\n if (root.shadowRoot)\n value.full += elementText(cache, root.shadowRoot).full;\n if (value.full)\n value.normalized = normalizeWhiteSpace(value.full);\n }\n }\n cache.set(root, value);\n }\n return value;\n}\nfunction elementMatchesText(cache, element, matcher) {\n if (shouldSkipForTextMatching(element))\n return "none";\n if (!matcher(elementText(cache, element)))\n return "none";\n for (let child = element.firstChild; child; child = child.nextSibling) {\n if (child.nodeType === Node.ELEMENT_NODE && matcher(elementText(cache, child)))\n return "selfAndChildren";\n }\n if (element.shadowRoot && matcher(elementText(cache, element.shadowRoot)))\n return "selfAndChildren";\n return "self";\n}\nfunction getElementLabels(textCache, element) {\n const labels = getAriaLabelledByElements(element);\n if (labels)\n return labels.map((label) => elementText(textCache, label));\n const ariaLabel = element.getAttribute("aria-label");\n if (ariaLabel !== null && !!ariaLabel.trim())\n return [{ full: ariaLabel, normalized: normalizeWhiteSpace(ariaLabel), immediate: [ariaLabel] }];\n const isNonHiddenInput = element.nodeName === "INPUT" && element.type !== "hidden";\n if (["BUTTON", "METER", "OUTPUT", "PROGRESS", "SELECT", "TEXTAREA"].includes(element.nodeName) || isNonHiddenInput) {\n const labels2 = element.labels;\n if (labels2)\n return [...labels2].map((label) => elementText(textCache, label));\n }\n return [];\n}\n\n// packages/injected/src/reactSelectorEngine.ts\nfunction getFunctionComponentName(component) {\n return component.displayName || component.name || "Anonymous";\n}\nfunction getComponentName(reactElement) {\n if (reactElement.type) {\n switch (typeof reactElement.type) {\n case "function":\n return getFunctionComponentName(reactElement.type);\n case "string":\n return reactElement.type;\n case "object":\n return reactElement.type.displayName || (reactElement.type.render ? getFunctionComponentName(reactElement.type.render) : "");\n }\n }\n if (reactElement._currentElement) {\n const elementType = reactElement._currentElement.type;\n if (typeof elementType === "string")\n return elementType;\n if (typeof elementType === "function")\n return elementType.displayName || elementType.name || "Anonymous";\n }\n return "";\n}\nfunction getComponentKey(reactElement) {\n var _a, _b;\n return (_b = reactElement.key) != null ? _b : (_a = reactElement._currentElement) == null ? void 0 : _a.key;\n}\nfunction getChildren(reactElement) {\n if (reactElement.child) {\n const children = [];\n for (let child = reactElement.child; child; child = child.sibling)\n children.push(child);\n return children;\n }\n if (!reactElement._currentElement)\n return [];\n const isKnownElement = (reactElement2) => {\n var _a;\n const elementType = (_a = reactElement2._currentElement) == null ? void 0 : _a.type;\n return typeof elementType === "function" || typeof elementType === "string";\n };\n if (reactElement._renderedComponent) {\n const child = reactElement._renderedComponent;\n return isKnownElement(child) ? [child] : [];\n }\n if (reactElement._renderedChildren)\n return [...Object.values(reactElement._renderedChildren)].filter(isKnownElement);\n return [];\n}\nfunction getProps(reactElement) {\n var _a;\n const props = (\n /* React 16+ */\n reactElement.memoizedProps || /* React 15 */\n ((_a = reactElement._currentElement) == null ? void 0 : _a.props)\n );\n if (!props || typeof props === "string")\n return props;\n const result = { ...props };\n delete result.children;\n return result;\n}\nfunction buildComponentsTree(reactElement) {\n var _a;\n const treeNode = {\n key: getComponentKey(reactElement),\n name: getComponentName(reactElement),\n children: getChildren(reactElement).map(buildComponentsTree),\n rootElements: [],\n props: getProps(reactElement)\n };\n const rootElement = (\n /* React 16+ */\n reactElement.stateNode || /* React 15 */\n reactElement._hostNode || /* React 15 */\n ((_a = reactElement._renderedComponent) == null ? void 0 : _a._hostNode)\n );\n if (rootElement instanceof Element) {\n treeNode.rootElements.push(rootElement);\n } else {\n for (const child of treeNode.children)\n treeNode.rootElements.push(...child.rootElements);\n }\n return treeNode;\n}\nfunction filterComponentsTree(treeNode, searchFn, result = []) {\n if (searchFn(treeNode))\n result.push(treeNode);\n for (const child of treeNode.children)\n filterComponentsTree(child, searchFn, result);\n return result;\n}\nfunction findReactRoots(root, roots = []) {\n const document = root.ownerDocument || root;\n const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT);\n do {\n const node = walker.currentNode;\n const reactNode = node;\n const rootKey = Object.keys(reactNode).find((key) => key.startsWith("__reactContainer") && reactNode[key] !== null);\n if (rootKey) {\n roots.push(reactNode[rootKey].stateNode.current);\n } else {\n const legacyRootKey = "_reactRootContainer";\n if (reactNode.hasOwnProperty(legacyRootKey) && reactNode[legacyRootKey] !== null) {\n roots.push(reactNode[legacyRootKey]._internalRoot.current);\n }\n }\n if (node instanceof Element && node.hasAttribute("data-reactroot")) {\n for (const key of Object.keys(node)) {\n if (key.startsWith("__reactInternalInstance") || key.startsWith("__reactFiber"))\n roots.push(node[key]);\n }\n }\n const shadowRoot = node instanceof Element ? node.shadowRoot : null;\n if (shadowRoot)\n findReactRoots(shadowRoot, roots);\n } while (walker.nextNode());\n return roots;\n}\nvar createReactEngine = () => ({\n queryAll(scope, selector) {\n const { name, attributes } = parseAttributeSelector(selector, false);\n const reactRoots = findReactRoots(scope.ownerDocument || scope);\n const trees = reactRoots.map((reactRoot) => buildComponentsTree(reactRoot));\n const treeNodes = trees.map((tree) => filterComponentsTree(tree, (treeNode) => {\n var _a;\n const props = (_a = treeNode.props) != null ? _a : {};\n if (treeNode.key !== void 0)\n props.key = treeNode.key;\n if (name && treeNode.name !== name)\n return false;\n if (treeNode.rootElements.some((domNode) => !isInsideScope(scope, domNode)))\n return false;\n for (const attr of attributes) {\n if (!matchesComponentAttribute(props, attr))\n return false;\n }\n return true;\n })).flat();\n const allRootElements = /* @__PURE__ */ new Set();\n for (const treeNode of treeNodes) {\n for (const domNode of treeNode.rootElements)\n allRootElements.add(domNode);\n }\n return [...allRootElements];\n }\n});\n\n// packages/injected/src/roleSelectorEngine.ts\nvar kSupportedAttributes = ["selected", "checked", "pressed", "expanded", "level", "disabled", "name", "include-hidden"];\nkSupportedAttributes.sort();\nfunction validateSupportedRole(attr, roles, role) {\n if (!roles.includes(role))\n throw new Error(`"${attr}" attribute is only supported for roles: ${roles.slice().sort().map((role2) => `"${role2}"`).join(", ")}`);\n}\nfunction validateSupportedValues(attr, values) {\n if (attr.op !== "" && !values.includes(attr.value))\n throw new Error(`"${attr.name}" must be one of ${values.map((v) => JSON.stringify(v)).join(", ")}`);\n}\nfunction validateSupportedOp(attr, ops) {\n if (!ops.includes(attr.op))\n throw new Error(`"${attr.name}" does not support "${attr.op}" matcher`);\n}\nfunction validateAttributes(attrs, role) {\n const options = { role };\n for (const attr of attrs) {\n switch (attr.name) {\n case "checked": {\n validateSupportedRole(attr.name, kAriaCheckedRoles, role);\n validateSupportedValues(attr, [true, false, "mixed"]);\n validateSupportedOp(attr, ["", "="]);\n options.checked = attr.op === "" ? true : attr.value;\n break;\n }\n case "pressed": {\n validateSupportedRole(attr.name, kAriaPressedRoles, role);\n validateSupportedValues(attr, [true, false, "mixed"]);\n validateSupportedOp(attr, ["", "="]);\n options.pressed = attr.op === "" ? true : attr.value;\n break;\n }\n case "selected": {\n validateSupportedRole(attr.name, kAriaSelectedRoles, role);\n validateSupportedValues(attr, [true, false]);\n validateSupportedOp(attr, ["", "="]);\n options.selected = attr.op === "" ? true : attr.value;\n break;\n }\n case "expanded": {\n validateSupportedRole(attr.name, kAriaExpandedRoles, role);\n validateSupportedValues(attr, [true, false]);\n validateSupportedOp(attr, ["", "="]);\n options.expanded = attr.op === "" ? true : attr.value;\n break;\n }\n case "level": {\n validateSupportedRole(attr.name, kAriaLevelRoles, role);\n if (typeof attr.value === "string")\n attr.value = +attr.value;\n if (attr.op !== "=" || typeof attr.value !== "number" || Number.isNaN(attr.value))\n throw new Error(`"level" attribute must be compared to a number`);\n options.level = attr.value;\n break;\n }\n case "disabled": {\n validateSupportedValues(attr, [true, false]);\n validateSupportedOp(attr, ["", "="]);\n options.disabled = attr.op === "" ? true : attr.value;\n break;\n }\n case "name": {\n if (attr.op === "")\n throw new Error(`"name" attribute must have a value`);\n if (typeof attr.value !== "string" && !(attr.value instanceof RegExp))\n throw new Error(`"name" attribute must be a string or a regular expression`);\n options.name = attr.value;\n options.nameOp = attr.op;\n options.exact = attr.caseSensitive;\n break;\n }\n case "include-hidden": {\n validateSupportedValues(attr, [true, false]);\n validateSupportedOp(attr, ["", "="]);\n options.includeHidden = attr.op === "" ? true : attr.value;\n break;\n }\n default: {\n throw new Error(`Unknown attribute "${attr.name}", must be one of ${kSupportedAttributes.map((a) => `"${a}"`).join(", ")}.`);\n }\n }\n }\n return options;\n}\nfunction queryRole(scope, options, internal) {\n const result = [];\n const match = (element) => {\n if (getAriaRole(element) !== options.role)\n return;\n if (options.selected !== void 0 && getAriaSelected(element) !== options.selected)\n return;\n if (options.checked !== void 0 && getAriaChecked(element) !== options.checked)\n return;\n if (options.pressed !== void 0 && getAriaPressed(element) !== options.pressed)\n return;\n if (options.expanded !== void 0 && getAriaExpanded(element) !== options.expanded)\n return;\n if (options.level !== void 0 && getAriaLevel(element) !== options.level)\n return;\n if (options.disabled !== void 0 && getAriaDisabled(element) !== options.disabled)\n return;\n if (!options.includeHidden) {\n const isHidden = isElementHiddenForAria(element);\n if (isHidden)\n return;\n }\n if (options.name !== void 0) {\n const accessibleName = normalizeWhiteSpace(getElementAccessibleName(element, !!options.includeHidden));\n if (typeof options.name === "string")\n options.name = normalizeWhiteSpace(options.name);\n if (internal && !options.exact && options.nameOp === "=")\n options.nameOp = "*=";\n if (!matchesAttributePart(accessibleName, { name: "", jsonPath: [], op: options.nameOp || "=", value: options.name, caseSensitive: !!options.exact }))\n return;\n }\n result.push(element);\n };\n const query = (root) => {\n const shadows = [];\n if (root.shadowRoot)\n shadows.push(root.shadowRoot);\n for (const element of root.querySelectorAll("*")) {\n match(element);\n if (element.shadowRoot)\n shadows.push(element.shadowRoot);\n }\n shadows.forEach(query);\n };\n query(scope);\n return result;\n}\nfunction createRoleEngine(internal) {\n return {\n queryAll: (scope, selector) => {\n const parsed = parseAttributeSelector(selector, true);\n const role = parsed.name.toLowerCase();\n if (!role)\n throw new Error(`Role must not be empty`);\n const options = validateAttributes(parsed.attributes, role);\n beginAriaCaches();\n try {\n return queryRole(scope, options, internal);\n } finally {\n endAriaCaches();\n }\n }\n };\n}\n\n// packages/injected/src/selectorEvaluator.ts\nvar SelectorEvaluatorImpl = class {\n constructor() {\n this._retainCacheCounter = 0;\n this._cacheText = /* @__PURE__ */ new Map();\n this._cacheQueryCSS = /* @__PURE__ */ new Map();\n this._cacheMatches = /* @__PURE__ */ new Map();\n this._cacheQuery = /* @__PURE__ */ new Map();\n this._cacheMatchesSimple = /* @__PURE__ */ new Map();\n this._cacheMatchesParents = /* @__PURE__ */ new Map();\n this._cacheCallMatches = /* @__PURE__ */ new Map();\n this._cacheCallQuery = /* @__PURE__ */ new Map();\n this._cacheQuerySimple = /* @__PURE__ */ new Map();\n this._engines = /* @__PURE__ */ new Map();\n this._engines.set("not", notEngine);\n this._engines.set("is", isEngine);\n this._engines.set("where", isEngine);\n this._engines.set("has", hasEngine);\n this._engines.set("scope", scopeEngine);\n this._engines.set("light", lightEngine);\n this._engines.set("visible", visibleEngine);\n this._engines.set("text", textEngine);\n this._engines.set("text-is", textIsEngine);\n this._engines.set("text-matches", textMatchesEngine);\n this._engines.set("has-text", hasTextEngine);\n this._engines.set("right-of", createLayoutEngine("right-of"));\n this._engines.set("left-of", createLayoutEngine("left-of"));\n this._engines.set("above", createLayoutEngine("above"));\n this._engines.set("below", createLayoutEngine("below"));\n this._engines.set("near", createLayoutEngine("near"));\n this._engines.set("nth-match", nthMatchEngine);\n const allNames = [...this._engines.keys()];\n allNames.sort();\n const parserNames = [...customCSSNames];\n parserNames.sort();\n if (allNames.join("|") !== parserNames.join("|"))\n throw new Error(`Please keep customCSSNames in sync with evaluator engines: ${allNames.join("|")} vs ${parserNames.join("|")}`);\n }\n begin() {\n ++this._retainCacheCounter;\n }\n end() {\n --this._retainCacheCounter;\n if (!this._retainCacheCounter) {\n this._cacheQueryCSS.clear();\n this._cacheMatches.clear();\n this._cacheQuery.clear();\n this._cacheMatchesSimple.clear();\n this._cacheMatchesParents.clear();\n this._cacheCallMatches.clear();\n this._cacheCallQuery.clear();\n this._cacheQuerySimple.clear();\n this._cacheText.clear();\n }\n }\n _cached(cache, main, rest, cb) {\n if (!cache.has(main))\n cache.set(main, []);\n const entries = cache.get(main);\n const entry = entries.find((e) => rest.every((value, index) => e.rest[index] === value));\n if (entry)\n return entry.result;\n const result = cb();\n entries.push({ rest, result });\n return result;\n }\n _checkSelector(s) {\n const wellFormed = typeof s === "object" && s && (Array.isArray(s) || "simples" in s && s.simples.length);\n if (!wellFormed)\n throw new Error(`Malformed selector "${s}"`);\n return s;\n }\n matches(element, s, context) {\n const selector = this._checkSelector(s);\n this.begin();\n try {\n return this._cached(this._cacheMatches, element, [selector, context.scope, context.pierceShadow, context.originalScope], () => {\n if (Array.isArray(selector))\n return this._matchesEngine(isEngine, element, selector, context);\n if (this._hasScopeClause(selector))\n context = this._expandContextForScopeMatching(context);\n if (!this._matchesSimple(element, selector.simples[selector.simples.length - 1].selector, context))\n return false;\n return this._matchesParents(element, selector, selector.simples.length - 2, context);\n });\n } finally {\n this.end();\n }\n }\n query(context, s) {\n const selector = this._checkSelector(s);\n this.begin();\n try {\n return this._cached(this._cacheQuery, selector, [context.scope, context.pierceShadow, context.originalScope], () => {\n if (Array.isArray(selector))\n return this._queryEngine(isEngine, context, selector);\n if (this._hasScopeClause(selector))\n context = this._expandContextForScopeMatching(context);\n const previousScoreMap = this._scoreMap;\n this._scoreMap = /* @__PURE__ */ new Map();\n let elements = this._querySimple(context, selector.simples[selector.simples.length - 1].selector);\n elements = elements.filter((element) => this._matchesParents(element, selector, selector.simples.length - 2, context));\n if (this._scoreMap.size) {\n elements.sort((a, b) => {\n const aScore = this._scoreMap.get(a);\n const bScore = this._scoreMap.get(b);\n if (aScore === bScore)\n return 0;\n if (aScore === void 0)\n return 1;\n if (bScore === void 0)\n return -1;\n return aScore - bScore;\n });\n }\n this._scoreMap = previousScoreMap;\n return elements;\n });\n } finally {\n this.end();\n }\n }\n _markScore(element, score) {\n if (this._scoreMap)\n this._scoreMap.set(element, score);\n }\n _hasScopeClause(selector) {\n return selector.simples.some((simple) => simple.selector.functions.some((f) => f.name === "scope"));\n }\n _expandContextForScopeMatching(context) {\n if (context.scope.nodeType !== 1)\n return context;\n const scope = parentElementOrShadowHost(context.scope);\n if (!scope)\n return context;\n return { ...context, scope, originalScope: context.originalScope || context.scope };\n }\n _matchesSimple(element, simple, context) {\n return this._cached(this._cacheMatchesSimple, element, [simple, context.scope, context.pierceShadow, context.originalScope], () => {\n if (element === context.scope)\n return false;\n if (simple.css && !this._matchesCSS(element, simple.css))\n return false;\n for (const func of simple.functions) {\n if (!this._matchesEngine(this._getEngine(func.name), element, func.args, context))\n return false;\n }\n return true;\n });\n }\n _querySimple(context, simple) {\n if (!simple.functions.length)\n return this._queryCSS(context, simple.css || "*");\n return this._cached(this._cacheQuerySimple, simple, [context.scope, context.pierceShadow, context.originalScope], () => {\n let css = simple.css;\n const funcs = simple.functions;\n if (css === "*" && funcs.length)\n css = void 0;\n let elements;\n let firstIndex = -1;\n if (css !== void 0) {\n elements = this._queryCSS(context, css);\n } else {\n firstIndex = funcs.findIndex((func) => this._getEngine(func.name).query !== void 0);\n if (firstIndex === -1)\n firstIndex = 0;\n elements = this._queryEngine(this._getEngine(funcs[firstIndex].name), context, funcs[firstIndex].args);\n }\n for (let i = 0; i < funcs.length; i++) {\n if (i === firstIndex)\n continue;\n const engine = this._getEngine(funcs[i].name);\n if (engine.matches !== void 0)\n elements = elements.filter((e) => this._matchesEngine(engine, e, funcs[i].args, context));\n }\n for (let i = 0; i < funcs.length; i++) {\n if (i === firstIndex)\n continue;\n const engine = this._getEngine(funcs[i].name);\n if (engine.matches === void 0)\n elements = elements.filter((e) => this._matchesEngine(engine, e, funcs[i].args, context));\n }\n return elements;\n });\n }\n _matchesParents(element, complex, index, context) {\n if (index < 0)\n return true;\n return this._cached(this._cacheMatchesParents, element, [complex, index, context.scope, context.pierceShadow, context.originalScope], () => {\n const { selector: simple, combinator } = complex.simples[index];\n if (combinator === ">") {\n const parent = parentElementOrShadowHostInContext(element, context);\n if (!parent || !this._matchesSimple(parent, simple, context))\n return false;\n return this._matchesParents(parent, complex, index - 1, context);\n }\n if (combinator === "+") {\n const previousSibling = previousSiblingInContext(element, context);\n if (!previousSibling || !this._matchesSimple(previousSibling, simple, context))\n return false;\n return this._matchesParents(previousSibling, complex, index - 1, context);\n }\n if (combinator === "") {\n let parent = parentElementOrShadowHostInContext(element, context);\n while (parent) {\n if (this._matchesSimple(parent, simple, context)) {\n if (this._matchesParents(parent, complex, index - 1, context))\n return true;\n if (complex.simples[index - 1].combinator === "")\n break;\n }\n parent = parentElementOrShadowHostInContext(parent, context);\n }\n return false;\n }\n if (combinator === "~") {\n let previousSibling = previousSiblingInContext(element, context);\n while (previousSibling) {\n if (this._matchesSimple(previousSibling, simple, context)) {\n if (this._matchesParents(previousSibling, complex, index - 1, context))\n return true;\n if (complex.simples[index - 1].combinator === "~")\n break;\n }\n previousSibling = previousSiblingInContext(previousSibling, context);\n }\n return false;\n }\n if (combinator === ">=") {\n let parent = element;\n while (parent) {\n if (this._matchesSimple(parent, simple, context)) {\n if (this._matchesParents(parent, complex, index - 1, context))\n return true;\n if (complex.simples[index - 1].combinator === "")\n break;\n }\n parent = parentElementOrShadowHostInContext(parent, context);\n }\n return false;\n }\n throw new Error(`Unsupported combinator "${combinator}"`);\n });\n }\n _matchesEngine(engine, element, args, context) {\n if (engine.matches)\n return this._callMatches(engine, element, args, context);\n if (engine.query)\n return this._callQuery(engine, args, context).includes(element);\n throw new Error(`Selector engine should implement "matches" or "query"`);\n }\n _queryEngine(engine, context, args) {\n if (engine.query)\n return this._callQuery(engine, args, context);\n if (engine.matches)\n return this._queryCSS(context, "*").filter((element) => this._callMatches(engine, element, args, context));\n throw new Error(`Selector engine should implement "matches" or "query"`);\n }\n _callMatches(engine, element, args, context) {\n return this._cached(this._cacheCallMatches, element, [engine, context.scope, context.pierceShadow, context.originalScope, ...args], () => {\n return engine.matches(element, args, context, this);\n });\n }\n _callQuery(engine, args, context) {\n return this._cached(this._cacheCallQuery, engine, [context.scope, context.pierceShadow, context.originalScope, ...args], () => {\n return engine.query(context, args, this);\n });\n }\n _matchesCSS(element, css) {\n return element.matches(css);\n }\n _queryCSS(context, css) {\n return this._cached(this._cacheQueryCSS, css, [context.scope, context.pierceShadow, context.originalScope], () => {\n let result = [];\n function query(root) {\n result = result.concat([...root.querySelectorAll(css)]);\n if (!context.pierceShadow)\n return;\n if (root.shadowRoot)\n query(root.shadowRoot);\n for (const element of root.querySelectorAll("*")) {\n if (element.shadowRoot)\n query(element.shadowRoot);\n }\n }\n query(context.scope);\n return result;\n });\n }\n _getEngine(name) {\n const engine = this._engines.get(name);\n if (!engine)\n throw new Error(`Unknown selector engine "${name}"`);\n return engine;\n }\n};\nvar isEngine = {\n matches(element, args, context, evaluator) {\n if (args.length === 0)\n throw new Error(`"is" engine expects non-empty selector list`);\n return args.some((selector) => evaluator.matches(element, selector, context));\n },\n query(context, args, evaluator) {\n if (args.length === 0)\n throw new Error(`"is" engine expects non-empty selector list`);\n let elements = [];\n for (const arg of args)\n elements = elements.concat(evaluator.query(context, arg));\n return args.length === 1 ? elements : sortInDOMOrder(elements);\n }\n};\nvar hasEngine = {\n matches(element, args, context, evaluator) {\n if (args.length === 0)\n throw new Error(`"has" engine expects non-empty selector list`);\n return evaluator.query({ ...context, scope: element }, args).length > 0;\n }\n // TODO: we can implement efficient "query" by matching "args" and returning\n // all parents/descendants, just have to be careful with the ":scope" matching.\n};\nvar scopeEngine = {\n matches(element, args, context, evaluator) {\n if (args.length !== 0)\n throw new Error(`"scope" engine expects no arguments`);\n const actualScope = context.originalScope || context.scope;\n if (actualScope.nodeType === 9)\n return element === actualScope.documentElement;\n return element === actualScope;\n },\n query(context, args, evaluator) {\n if (args.length !== 0)\n throw new Error(`"scope" engine expects no arguments`);\n const actualScope = context.originalScope || context.scope;\n if (actualScope.nodeType === 9) {\n const root = actualScope.documentElement;\n return root ? [root] : [];\n }\n if (actualScope.nodeType === 1)\n return [actualScope];\n return [];\n }\n};\nvar notEngine = {\n matches(element, args, context, evaluator) {\n if (args.length === 0)\n throw new Error(`"not" engine expects non-empty selector list`);\n return !evaluator.matches(element, args, context);\n }\n};\nvar lightEngine = {\n query(context, args, evaluator) {\n return evaluator.query({ ...context, pierceShadow: false }, args);\n },\n matches(element, args, context, evaluator) {\n return evaluator.matches(element, args, { ...context, pierceShadow: false });\n }\n};\nvar visibleEngine = {\n matches(element, args, context, evaluator) {\n if (args.length)\n throw new Error(`"visible" engine expects no arguments`);\n return isElementVisible(element);\n }\n};\nvar textEngine = {\n matches(element, args, context, evaluator) {\n if (args.length !== 1 || typeof args[0] !== "string")\n throw new Error(`"text" engine expects a single string`);\n const text = normalizeWhiteSpace(args[0]).toLowerCase();\n const matcher = (elementText2) => elementText2.normalized.toLowerCase().includes(text);\n return elementMatchesText(evaluator._cacheText, element, matcher) === "self";\n }\n};\nvar textIsEngine = {\n matches(element, args, context, evaluator) {\n if (args.length !== 1 || typeof args[0] !== "string")\n throw new Error(`"text-is" engine expects a single string`);\n const text = normalizeWhiteSpace(args[0]);\n const matcher = (elementText2) => {\n if (!text && !elementText2.immediate.length)\n return true;\n return elementText2.immediate.some((s) => normalizeWhiteSpace(s) === text);\n };\n return elementMatchesText(evaluator._cacheText, element, matcher) !== "none";\n }\n};\nvar textMatchesEngine = {\n matches(element, args, context, evaluator) {\n if (args.length === 0 || typeof args[0] !== "string" || args.length > 2 || args.length === 2 && typeof args[1] !== "string")\n throw new Error(`"text-matches" engine expects a regexp body and optional regexp flags`);\n const re = new RegExp(args[0], args.length === 2 ? args[1] : void 0);\n const matcher = (elementText2) => re.test(elementText2.full);\n return elementMatchesText(evaluator._cacheText, element, matcher) === "self";\n }\n};\nvar hasTextEngine = {\n matches(element, args, context, evaluator) {\n if (args.length !== 1 || typeof args[0] !== "string")\n throw new Error(`"has-text" engine expects a single string`);\n if (shouldSkipForTextMatching(element))\n return false;\n const text = normalizeWhiteSpace(args[0]).toLowerCase();\n const matcher = (elementText2) => elementText2.normalized.toLowerCase().includes(text);\n return matcher(elementText(evaluator._cacheText, element));\n }\n};\nfunction createLayoutEngine(name) {\n return {\n matches(element, args, context, evaluator) {\n const maxDistance = args.length && typeof args[args.length - 1] === "number" ? args[args.length - 1] : void 0;\n const queryArgs = maxDistance === void 0 ? args : args.slice(0, args.length - 1);\n if (args.length < 1 + (maxDistance === void 0 ? 0 : 1))\n throw new Error(`"${name}" engine expects a selector list and optional maximum distance in pixels`);\n const inner = evaluator.query(context, queryArgs);\n const score = layoutSelectorScore(name, element, inner, maxDistance);\n if (score === void 0)\n return false;\n evaluator._markScore(element, score);\n return true;\n }\n };\n}\nvar nthMatchEngine = {\n query(context, args, evaluator) {\n let index = args[args.length - 1];\n if (args.length < 2)\n throw new Error(`"nth-match" engine expects non-empty selector list and an index argument`);\n if (typeof index !== "number" || index < 1)\n throw new Error(`"nth-match" engine expects a one-based index as the last argument`);\n const elements = isEngine.query(context, args.slice(0, args.length - 1), evaluator);\n index--;\n return index < elements.length ? [elements[index]] : [];\n }\n};\nfunction parentElementOrShadowHostInContext(element, context) {\n if (element === context.scope)\n return;\n if (!context.pierceShadow)\n return element.parentElement || void 0;\n return parentElementOrShadowHost(element);\n}\nfunction previousSiblingInContext(element, context) {\n if (element === context.scope)\n return;\n return element.previousElementSibling || void 0;\n}\nfunction sortInDOMOrder(elements) {\n const elementToEntry = /* @__PURE__ */ new Map();\n const roots = [];\n const result = [];\n function append(element) {\n let entry = elementToEntry.get(element);\n if (entry)\n return entry;\n const parent = parentElementOrShadowHost(element);\n if (parent) {\n const parentEntry = append(parent);\n parentEntry.children.push(element);\n } else {\n roots.push(element);\n }\n entry = { children: [], taken: false };\n elementToEntry.set(element, entry);\n return entry;\n }\n for (const e of elements)\n append(e).taken = true;\n function visit(element) {\n const entry = elementToEntry.get(element);\n if (entry.taken)\n result.push(element);\n if (entry.children.length > 1) {\n const set = new Set(entry.children);\n entry.children = [];\n let child = element.firstElementChild;\n while (child && entry.children.length < set.size) {\n if (set.has(child))\n entry.children.push(child);\n child = child.nextElementSibling;\n }\n child = element.shadowRoot ? element.shadowRoot.firstElementChild : null;\n while (child && entry.children.length < set.size) {\n if (set.has(child))\n entry.children.push(child);\n child = child.nextElementSibling;\n }\n }\n entry.children.forEach(visit);\n }\n roots.forEach(visit);\n return result;\n}\n\n// packages/injected/src/selectorGenerator.ts\nvar kTextScoreRange = 10;\nvar kExactPenalty = kTextScoreRange / 2;\nvar kTestIdScore = 1;\nvar kOtherTestIdScore = 2;\nvar kIframeByAttributeScore = 10;\nvar kBeginPenalizedScore = 50;\nvar kRoleWithNameScore = 100;\nvar kPlaceholderScore = 120;\nvar kLabelScore = 140;\nvar kAltTextScore = 160;\nvar kTextScore = 180;\nvar kTitleScore = 200;\nvar kTextScoreRegex = 250;\nvar kPlaceholderScoreExact = kPlaceholderScore + kExactPenalty;\nvar kLabelScoreExact = kLabelScore + kExactPenalty;\nvar kRoleWithNameScoreExact = kRoleWithNameScore + kExactPenalty;\nvar kAltTextScoreExact = kAltTextScore + kExactPenalty;\nvar kTextScoreExact = kTextScore + kExactPenalty;\nvar kTitleScoreExact = kTitleScore + kExactPenalty;\nvar kEndPenalizedScore = 300;\nvar kCSSIdScore = 500;\nvar kRoleWithoutNameScore = 510;\nvar kCSSInputTypeNameScore = 520;\nvar kCSSTagNameScore = 530;\nvar kNthScore = 1e4;\nvar kCSSFallbackScore = 1e7;\nvar kScoreThresholdForTextExpect = 1e3;\nfunction generateSelector(injectedScript, targetElement, options) {\n var _a;\n injectedScript._evaluator.begin();\n const cache = { allowText: /* @__PURE__ */ new Map(), disallowText: /* @__PURE__ */ new Map() };\n beginAriaCaches();\n beginDOMCaches();\n try {\n let selectors = [];\n if (options.forTextExpect) {\n let targetTokens = cssFallback(injectedScript, targetElement.ownerDocument.documentElement, options);\n for (let element = targetElement; element; element = parentElementOrShadowHost(element)) {\n const tokens = generateSelectorFor(cache, injectedScript, element, { ...options, noText: true });\n if (!tokens)\n continue;\n const score = combineScores(tokens);\n if (score <= kScoreThresholdForTextExpect) {\n targetTokens = tokens;\n break;\n }\n }\n selectors = [joinTokens(targetTokens)];\n } else {\n if (!targetElement.matches("input,textarea,select") && !targetElement.isContentEditable) {\n const interactiveParent = closestCrossShadow(targetElement, "button,select,input,[role=button],[role=checkbox],[role=radio],a,[role=link]", options.root);\n if (interactiveParent && isElementVisible(interactiveParent))\n targetElement = interactiveParent;\n }\n if (options.multiple) {\n const withText = generateSelectorFor(cache, injectedScript, targetElement, options);\n const withoutText = generateSelectorFor(cache, injectedScript, targetElement, { ...options, noText: true });\n let tokens = [withText, withoutText];\n cache.allowText.clear();\n cache.disallowText.clear();\n if (withText && hasCSSIdToken(withText))\n tokens.push(generateSelectorFor(cache, injectedScript, targetElement, { ...options, noCSSId: true }));\n if (withoutText && hasCSSIdToken(withoutText))\n tokens.push(generateSelectorFor(cache, injectedScript, targetElement, { ...options, noText: true, noCSSId: true }));\n tokens = tokens.filter(Boolean);\n if (!tokens.length) {\n const css = cssFallback(injectedScript, targetElement, options);\n tokens.push(css);\n if (hasCSSIdToken(css))\n tokens.push(cssFallback(injectedScript, targetElement, { ...options, noCSSId: true }));\n }\n selectors = [...new Set(tokens.map((t) => joinTokens(t)))];\n } else {\n const targetTokens = generateSelectorFor(cache, injectedScript, targetElement, options) || cssFallback(injectedScript, targetElement, options);\n selectors = [joinTokens(targetTokens)];\n }\n }\n const selector = selectors[0];\n const parsedSelector = injectedScript.parseSelector(selector);\n return {\n selector,\n selectors,\n elements: injectedScript.querySelectorAll(parsedSelector, (_a = options.root) != null ? _a : targetElement.ownerDocument)\n };\n } finally {\n endDOMCaches();\n endAriaCaches();\n injectedScript._evaluator.end();\n }\n}\nfunction generateSelectorFor(cache, injectedScript, targetElement, options) {\n var _a;\n if (options.root && !isInsideScope(options.root, targetElement))\n throw new Error(`Target element must belong to the root\'s subtree`);\n if (targetElement === options.root)\n return [{ engine: "css", selector: ":scope", score: 1 }];\n if (targetElement.ownerDocument.documentElement === targetElement)\n return [{ engine: "css", selector: "html", score: 1 }];\n let result = null;\n const updateResult = (candidate) => {\n if (!result || combineScores(candidate) < combineScores(result))\n result = candidate;\n };\n const candidates = [];\n if (!options.noText) {\n for (const candidate of buildTextCandidates(injectedScript, targetElement, !options.isRecursive))\n candidates.push({ candidate, isTextCandidate: true });\n }\n for (const token of buildNoTextCandidates(injectedScript, targetElement, options)) {\n if (options.omitInternalEngines && token.engine.startsWith("internal:"))\n continue;\n candidates.push({ candidate: [token], isTextCandidate: false });\n }\n candidates.sort((a, b) => combineScores(a.candidate) - combineScores(b.candidate));\n for (const { candidate, isTextCandidate } of candidates) {\n const elements = injectedScript.querySelectorAll(injectedScript.parseSelector(joinTokens(candidate)), (_a = options.root) != null ? _a : targetElement.ownerDocument);\n if (!elements.includes(targetElement)) {\n continue;\n }\n if (elements.length === 1) {\n updateResult(candidate);\n break;\n }\n const index = elements.indexOf(targetElement);\n if (index > 5) {\n continue;\n }\n updateResult([...candidate, { engine: "nth", selector: String(index), score: kNthScore }]);\n if (options.isRecursive) {\n continue;\n }\n for (let parent = parentElementOrShadowHost(targetElement); parent && parent !== options.root; parent = parentElementOrShadowHost(parent)) {\n const filtered = elements.filter((e) => isInsideScope(parent, e) && e !== parent);\n const newIndex = filtered.indexOf(targetElement);\n if (filtered.length > 5 || newIndex === -1 || newIndex === index && filtered.length > 1) {\n continue;\n }\n const inParent = filtered.length === 1 ? candidate : [...candidate, { engine: "nth", selector: String(newIndex), score: kNthScore }];\n const idealSelectorForParent = { engine: "", selector: "", score: 1 };\n if (result && combineScores([idealSelectorForParent, ...inParent]) >= combineScores(result)) {\n continue;\n }\n const noText = !!options.noText || isTextCandidate;\n const cacheMap = noText ? cache.disallowText : cache.allowText;\n let parentTokens = cacheMap.get(parent);\n if (parentTokens === void 0) {\n parentTokens = generateSelectorFor(cache, injectedScript, parent, { ...options, isRecursive: true, noText }) || cssFallback(injectedScript, parent, options);\n cacheMap.set(parent, parentTokens);\n }\n if (!parentTokens)\n continue;\n updateResult([...parentTokens, ...inParent]);\n }\n }\n return result;\n}\nfunction buildNoTextCandidates(injectedScript, element, options) {\n const candidates = [];\n {\n for (const attr of ["data-testid", "data-test-id", "data-test"]) {\n if (attr !== options.testIdAttributeName && element.getAttribute(attr))\n candidates.push({ engine: "css", selector: `[${attr}=${quoteCSSAttributeValue(element.getAttribute(attr))}]`, score: kOtherTestIdScore });\n }\n if (!options.noCSSId) {\n const idAttr = element.getAttribute("id");\n if (idAttr && !isGuidLike(idAttr))\n candidates.push({ engine: "css", selector: makeSelectorForId(idAttr), score: kCSSIdScore });\n }\n candidates.push({ engine: "css", selector: escapeNodeName(element), score: kCSSTagNameScore });\n }\n if (element.nodeName === "IFRAME") {\n for (const attribute of ["name", "title"]) {\n if (element.getAttribute(attribute))\n candidates.push({ engine: "css", selector: `${escapeNodeName(element)}[${attribute}=${quoteCSSAttributeValue(element.getAttribute(attribute))}]`, score: kIframeByAttributeScore });\n }\n if (element.getAttribute(options.testIdAttributeName))\n candidates.push({ engine: "css", selector: `[${options.testIdAttributeName}=${quoteCSSAttributeValue(element.getAttribute(options.testIdAttributeName))}]`, score: kTestIdScore });\n penalizeScoreForLength([candidates]);\n return candidates;\n }\n if (element.getAttribute(options.testIdAttributeName))\n candidates.push({ engine: "internal:testid", selector: `[${options.testIdAttributeName}=${escapeForAttributeSelector(element.getAttribute(options.testIdAttributeName), true)}]`, score: kTestIdScore });\n if (element.nodeName === "INPUT" || element.nodeName === "TEXTAREA") {\n const input = element;\n if (input.placeholder) {\n candidates.push({ engine: "internal:attr", selector: `[placeholder=${escapeForAttributeSelector(input.placeholder, true)}]`, score: kPlaceholderScoreExact });\n for (const alternative of suitableTextAlternatives(input.placeholder))\n candidates.push({ engine: "internal:attr", selector: `[placeholder=${escapeForAttributeSelector(alternative.text, false)}]`, score: kPlaceholderScore - alternative.scoreBonus });\n }\n }\n const labels = getElementLabels(injectedScript._evaluator._cacheText, element);\n for (const label of labels) {\n const labelText = label.normalized;\n candidates.push({ engine: "internal:label", selector: escapeForTextSelector(labelText, true), score: kLabelScoreExact });\n for (const alternative of suitableTextAlternatives(labelText))\n candidates.push({ engine: "internal:label", selector: escapeForTextSelector(alternative.text, false), score: kLabelScore - alternative.scoreBonus });\n }\n const ariaRole = getAriaRole(element);\n if (ariaRole && !["none", "presentation"].includes(ariaRole))\n candidates.push({ engine: "internal:role", selector: ariaRole, score: kRoleWithoutNameScore });\n if (element.getAttribute("name") && ["BUTTON", "FORM", "FIELDSET", "FRAME", "IFRAME", "INPUT", "KEYGEN", "OBJECT", "OUTPUT", "SELECT", "TEXTAREA", "MAP", "META", "PARAM"].includes(element.nodeName))\n candidates.push({ engine: "css", selector: `${escapeNodeName(element)}[name=${quoteCSSAttributeValue(element.getAttribute("name"))}]`, score: kCSSInputTypeNameScore });\n if (["INPUT", "TEXTAREA"].includes(element.nodeName) && element.getAttribute("type") !== "hidden") {\n if (element.getAttribute("type"))\n candidates.push({ engine: "css", selector: `${escapeNodeName(element)}[type=${quoteCSSAttributeValue(element.getAttribute("type"))}]`, score: kCSSInputTypeNameScore });\n }\n if (["INPUT", "TEXTAREA", "SELECT"].includes(element.nodeName) && element.getAttribute("type") !== "hidden")\n candidates.push({ engine: "css", selector: escapeNodeName(element), score: kCSSInputTypeNameScore + 1 });\n penalizeScoreForLength([candidates]);\n return candidates;\n}\nfunction buildTextCandidates(injectedScript, element, isTargetNode) {\n if (element.nodeName === "SELECT")\n return [];\n const candidates = [];\n const title = element.getAttribute("title");\n if (title) {\n candidates.push([{ engine: "internal:attr", selector: `[title=${escapeForAttributeSelector(title, true)}]`, score: kTitleScoreExact }]);\n for (const alternative of suitableTextAlternatives(title))\n candidates.push([{ engine: "internal:attr", selector: `[title=${escapeForAttributeSelector(alternative.text, false)}]`, score: kTitleScore - alternative.scoreBonus }]);\n }\n const alt = element.getAttribute("alt");\n if (alt && ["APPLET", "AREA", "IMG", "INPUT"].includes(element.nodeName)) {\n candidates.push([{ engine: "internal:attr", selector: `[alt=${escapeForAttributeSelector(alt, true)}]`, score: kAltTextScoreExact }]);\n for (const alternative of suitableTextAlternatives(alt))\n candidates.push([{ engine: "internal:attr", selector: `[alt=${escapeForAttributeSelector(alternative.text, false)}]`, score: kAltTextScore - alternative.scoreBonus }]);\n }\n const text = elementText(injectedScript._evaluator._cacheText, element).normalized;\n const textAlternatives = text ? suitableTextAlternatives(text) : [];\n if (text) {\n if (isTargetNode) {\n if (text.length <= 80)\n candidates.push([{ engine: "internal:text", selector: escapeForTextSelector(text, true), score: kTextScoreExact }]);\n for (const alternative of textAlternatives)\n candidates.push([{ engine: "internal:text", selector: escapeForTextSelector(alternative.text, false), score: kTextScore - alternative.scoreBonus }]);\n }\n const cssToken = { engine: "css", selector: escapeNodeName(element), score: kCSSTagNameScore };\n for (const alternative of textAlternatives)\n candidates.push([cssToken, { engine: "internal:has-text", selector: escapeForTextSelector(alternative.text, false), score: kTextScore - alternative.scoreBonus }]);\n if (isTargetNode && text.length <= 80) {\n const re = new RegExp("^" + escapeRegExp(text) + "$");\n candidates.push([cssToken, { engine: "internal:has-text", selector: escapeForTextSelector(re, false), score: kTextScoreRegex }]);\n }\n }\n const ariaRole = getAriaRole(element);\n if (ariaRole && !["none", "presentation"].includes(ariaRole)) {\n const ariaName = getElementAccessibleName(element, false);\n if (ariaName && !ariaName.match(/^\\p{Co}+$/u)) {\n const roleToken = { engine: "internal:role", selector: `${ariaRole}[name=${escapeForAttributeSelector(ariaName, true)}]`, score: kRoleWithNameScoreExact };\n candidates.push([roleToken]);\n for (const alternative of suitableTextAlternatives(ariaName))\n candidates.push([{ engine: "internal:role", selector: `${ariaRole}[name=${escapeForAttributeSelector(alternative.text, false)}]`, score: kRoleWithNameScore - alternative.scoreBonus }]);\n } else {\n const roleToken = { engine: "internal:role", selector: `${ariaRole}`, score: kRoleWithoutNameScore };\n for (const alternative of textAlternatives)\n candidates.push([roleToken, { engine: "internal:has-text", selector: escapeForTextSelector(alternative.text, false), score: kTextScore - alternative.scoreBonus }]);\n if (isTargetNode && text.length <= 80) {\n const re = new RegExp("^" + escapeRegExp(text) + "$");\n candidates.push([roleToken, { engine: "internal:has-text", selector: escapeForTextSelector(re, false), score: kTextScoreRegex }]);\n }\n }\n }\n penalizeScoreForLength(candidates);\n return candidates;\n}\nfunction makeSelectorForId(id) {\n return /^[a-zA-Z][a-zA-Z0-9\\-\\_]+$/.test(id) ? "#" + id : `[id=${quoteCSSAttributeValue(id)}]`;\n}\nfunction hasCSSIdToken(tokens) {\n return tokens.some((token) => token.engine === "css" && (token.selector.startsWith("#") || token.selector.startsWith(\'[id="\')));\n}\nfunction cssFallback(injectedScript, targetElement, options) {\n var _a;\n const root = (_a = options.root) != null ? _a : targetElement.ownerDocument;\n const tokens = [];\n function uniqueCSSSelector(prefix) {\n const path = tokens.slice();\n if (prefix)\n path.unshift(prefix);\n const selector = path.join(" > ");\n const parsedSelector = injectedScript.parseSelector(selector);\n const node = injectedScript.querySelector(parsedSelector, root, false);\n return node === targetElement ? selector : void 0;\n }\n function makeStrict(selector) {\n const token = { engine: "css", selector, score: kCSSFallbackScore };\n const parsedSelector = injectedScript.parseSelector(selector);\n const elements = injectedScript.querySelectorAll(parsedSelector, root);\n if (elements.length === 1)\n return [token];\n const nth = { engine: "nth", selector: String(elements.indexOf(targetElement)), score: kNthScore };\n return [token, nth];\n }\n for (let element = targetElement; element && element !== root; element = parentElementOrShadowHost(element)) {\n let bestTokenForLevel = "";\n if (element.id && !options.noCSSId) {\n const token = makeSelectorForId(element.id);\n const selector = uniqueCSSSelector(token);\n if (selector)\n return makeStrict(selector);\n bestTokenForLevel = token;\n }\n const parent = element.parentNode;\n const classes = [...element.classList].map(escapeClassName);\n for (let i = 0; i < classes.length; ++i) {\n const token = "." + classes.slice(0, i + 1).join(".");\n const selector = uniqueCSSSelector(token);\n if (selector)\n return makeStrict(selector);\n if (!bestTokenForLevel && parent) {\n const sameClassSiblings = parent.querySelectorAll(token);\n if (sameClassSiblings.length === 1)\n bestTokenForLevel = token;\n }\n }\n if (parent) {\n const siblings = [...parent.children];\n const nodeName = element.nodeName;\n const sameTagSiblings = siblings.filter((sibling) => sibling.nodeName === nodeName);\n const token = sameTagSiblings.indexOf(element) === 0 ? escapeNodeName(element) : `${escapeNodeName(element)}:nth-child(${1 + siblings.indexOf(element)})`;\n const selector = uniqueCSSSelector(token);\n if (selector)\n return makeStrict(selector);\n if (!bestTokenForLevel)\n bestTokenForLevel = token;\n } else if (!bestTokenForLevel) {\n bestTokenForLevel = escapeNodeName(element);\n }\n tokens.unshift(bestTokenForLevel);\n }\n return makeStrict(uniqueCSSSelector());\n}\nfunction penalizeScoreForLength(groups) {\n for (const group of groups) {\n for (const token of group) {\n if (token.score > kBeginPenalizedScore && token.score < kEndPenalizedScore)\n token.score += Math.min(kTextScoreRange, token.selector.length / 10 | 0);\n }\n }\n}\nfunction joinTokens(tokens) {\n const parts = [];\n let lastEngine = "";\n for (const { engine, selector } of tokens) {\n if (parts.length && (lastEngine !== "css" || engine !== "css" || selector.startsWith(":nth-match(")))\n parts.push(">>");\n lastEngine = engine;\n if (engine === "css")\n parts.push(selector);\n else\n parts.push(`${engine}=${selector}`);\n }\n return parts.join(" ");\n}\nfunction combineScores(tokens) {\n let score = 0;\n for (let i = 0; i < tokens.length; i++)\n score += tokens[i].score * (tokens.length - i);\n return score;\n}\nfunction isGuidLike(id) {\n let lastCharacterType;\n let transitionCount = 0;\n for (let i = 0; i < id.length; ++i) {\n const c = id[i];\n let characterType;\n if (c === "-" || c === "_")\n continue;\n if (c >= "a" && c <= "z")\n characterType = "lower";\n else if (c >= "A" && c <= "Z")\n characterType = "upper";\n else if (c >= "0" && c <= "9")\n characterType = "digit";\n else\n characterType = "other";\n if (characterType === "lower" && lastCharacterType === "upper") {\n lastCharacterType = characterType;\n continue;\n }\n if (lastCharacterType && lastCharacterType !== characterType)\n ++transitionCount;\n lastCharacterType = characterType;\n }\n return transitionCount >= id.length / 4;\n}\nfunction trimWordBoundary(text, maxLength) {\n if (text.length <= maxLength)\n return text;\n text = text.substring(0, maxLength);\n const match = text.match(/^(.*)\\b(.+?)$/);\n if (!match)\n return "";\n return match[1].trimEnd();\n}\nfunction suitableTextAlternatives(text) {\n let result = [];\n {\n const match = text.match(/^([\\d.,]+)[^.,\\w]/);\n const leadingNumberLength = match ? match[1].length : 0;\n if (leadingNumberLength) {\n const alt = trimWordBoundary(text.substring(leadingNumberLength).trimStart(), 80);\n result.push({ text: alt, scoreBonus: alt.length <= 30 ? 2 : 1 });\n }\n }\n {\n const match = text.match(/[^.,\\w]([\\d.,]+)$/);\n const trailingNumberLength = match ? match[1].length : 0;\n if (trailingNumberLength) {\n const alt = trimWordBoundary(text.substring(0, text.length - trailingNumberLength).trimEnd(), 80);\n result.push({ text: alt, scoreBonus: alt.length <= 30 ? 2 : 1 });\n }\n }\n if (text.length <= 30) {\n result.push({ text, scoreBonus: 0 });\n } else {\n result.push({ text: trimWordBoundary(text, 80), scoreBonus: 0 });\n result.push({ text: trimWordBoundary(text, 30), scoreBonus: 1 });\n }\n result = result.filter((r) => r.text);\n if (!result.length)\n result.push({ text: text.substring(0, 80), scoreBonus: 0 });\n return result;\n}\nfunction escapeNodeName(node) {\n return node.nodeName.toLocaleLowerCase().replace(/[:\\.]/g, (char) => "\\\\" + char);\n}\nfunction escapeClassName(className) {\n let result = "";\n for (let i = 0; i < className.length; i++)\n result += cssEscapeCharacter(className, i);\n return result;\n}\nfunction cssEscapeCharacter(s, i) {\n const c = s.charCodeAt(i);\n if (c === 0)\n return "\\uFFFD";\n if (c >= 1 && c <= 31 || c >= 48 && c <= 57 && (i === 0 || i === 1 && s.charCodeAt(0) === 45))\n return "\\\\" + c.toString(16) + " ";\n if (i === 0 && c === 45 && s.length === 1)\n return "\\\\" + s.charAt(i);\n if (c >= 128 || c === 45 || c === 95 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122)\n return s.charAt(i);\n return "\\\\" + s.charAt(i);\n}\n\n// packages/injected/src/vueSelectorEngine.ts\nfunction basename(filename, ext) {\n const normalized = filename.replace(/^[a-zA-Z]:/, "").replace(/\\\\/g, "/");\n let result = normalized.substring(normalized.lastIndexOf("/") + 1);\n if (ext && result.endsWith(ext))\n result = result.substring(0, result.length - ext.length);\n return result;\n}\nfunction toUpper(_, c) {\n return c ? c.toUpperCase() : "";\n}\nvar classifyRE = /(?:^|[-_/])(\\w)/g;\nvar classify = (str) => {\n return str && str.replace(classifyRE, toUpper);\n};\nfunction buildComponentsTreeVue3(instance) {\n function getComponentTypeName(options) {\n const name = options.name || options._componentTag || options.__playwright_guessedName;\n if (name)\n return name;\n const file = options.__file;\n if (file)\n return classify(basename(file, ".vue"));\n }\n function saveComponentName(instance2, key) {\n instance2.type.__playwright_guessedName = key;\n return key;\n }\n function getInstanceName(instance2) {\n var _a, _b, _c, _d;\n const name = getComponentTypeName(instance2.type || {});\n if (name)\n return name;\n if (instance2.root === instance2)\n return "Root";\n for (const key in (_b = (_a = instance2.parent) == null ? void 0 : _a.type) == null ? void 0 : _b.components) {\n if (((_c = instance2.parent) == null ? void 0 : _c.type.components[key]) === instance2.type)\n return saveComponentName(instance2, key);\n }\n for (const key in (_d = instance2.appContext) == null ? void 0 : _d.components) {\n if (instance2.appContext.components[key] === instance2.type)\n return saveComponentName(instance2, key);\n }\n return "Anonymous Component";\n }\n function isBeingDestroyed(instance2) {\n return instance2._isBeingDestroyed || instance2.isUnmounted;\n }\n function isFragment(instance2) {\n return instance2.subTree.type.toString() === "Symbol(Fragment)";\n }\n function getInternalInstanceChildren(subTree) {\n const list = [];\n if (subTree.component)\n list.push(subTree.component);\n if (subTree.suspense)\n list.push(...getInternalInstanceChildren(subTree.suspense.activeBranch));\n if (Array.isArray(subTree.children)) {\n subTree.children.forEach((childSubTree) => {\n if (childSubTree.component)\n list.push(childSubTree.component);\n else\n list.push(...getInternalInstanceChildren(childSubTree));\n });\n }\n return list.filter((child) => {\n var _a;\n return !isBeingDestroyed(child) && !((_a = child.type.devtools) == null ? void 0 : _a.hide);\n });\n }\n function getRootElementsFromComponentInstance(instance2) {\n if (isFragment(instance2))\n return getFragmentRootElements(instance2.subTree);\n return [instance2.subTree.el];\n }\n function getFragmentRootElements(vnode) {\n if (!vnode.children)\n return [];\n const list = [];\n for (let i = 0, l = vnode.children.length; i < l; i++) {\n const childVnode = vnode.children[i];\n if (childVnode.component)\n list.push(...getRootElementsFromComponentInstance(childVnode.component));\n else if (childVnode.el)\n list.push(childVnode.el);\n }\n return list;\n }\n function buildComponentsTree2(instance2) {\n return {\n name: getInstanceName(instance2),\n children: getInternalInstanceChildren(instance2.subTree).map(buildComponentsTree2),\n rootElements: getRootElementsFromComponentInstance(instance2),\n props: instance2.props\n };\n }\n return buildComponentsTree2(instance);\n}\nfunction buildComponentsTreeVue2(instance) {\n function getComponentName2(options) {\n const name = options.displayName || options.name || options._componentTag;\n if (name)\n return name;\n const file = options.__file;\n if (file)\n return classify(basename(file, ".vue"));\n }\n function getInstanceName(instance2) {\n const name = getComponentName2(instance2.$options || instance2.fnOptions || {});\n if (name)\n return name;\n return instance2.$root === instance2 ? "Root" : "Anonymous Component";\n }\n function getInternalInstanceChildren(instance2) {\n if (instance2.$children)\n return instance2.$children;\n if (Array.isArray(instance2.subTree.children))\n return instance2.subTree.children.filter((vnode) => !!vnode.component).map((vnode) => vnode.component);\n return [];\n }\n function buildComponentsTree2(instance2) {\n return {\n name: getInstanceName(instance2),\n children: getInternalInstanceChildren(instance2).map(buildComponentsTree2),\n rootElements: [instance2.$el],\n props: instance2._props\n };\n }\n return buildComponentsTree2(instance);\n}\nfunction filterComponentsTree2(treeNode, searchFn, result = []) {\n if (searchFn(treeNode))\n result.push(treeNode);\n for (const child of treeNode.children)\n filterComponentsTree2(child, searchFn, result);\n return result;\n}\nfunction findVueRoots(root, roots = []) {\n const document = root.ownerDocument || root;\n const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT);\n const vue2Roots = /* @__PURE__ */ new Set();\n do {\n const node = walker.currentNode;\n if (node.__vue__)\n vue2Roots.add(node.__vue__.$root);\n if (node.__vue_app__ && node._vnode && node._vnode.component)\n roots.push({ root: node._vnode.component, version: 3 });\n const shadowRoot = node instanceof Element ? node.shadowRoot : null;\n if (shadowRoot)\n findVueRoots(shadowRoot, roots);\n } while (walker.nextNode());\n for (const vue2root of vue2Roots) {\n roots.push({\n version: 2,\n root: vue2root\n });\n }\n return roots;\n}\nvar createVueEngine = () => ({\n queryAll(scope, selector) {\n const document = scope.ownerDocument || scope;\n const { name, attributes } = parseAttributeSelector(selector, false);\n const vueRoots = findVueRoots(document);\n const trees = vueRoots.map((vueRoot) => vueRoot.version === 3 ? buildComponentsTreeVue3(vueRoot.root) : buildComponentsTreeVue2(vueRoot.root));\n const treeNodes = trees.map((tree) => filterComponentsTree2(tree, (treeNode) => {\n if (name && treeNode.name !== name)\n return false;\n if (treeNode.rootElements.some((rootElement) => !isInsideScope(scope, rootElement)))\n return false;\n for (const attr of attributes) {\n if (!matchesComponentAttribute(treeNode.props, attr))\n return false;\n }\n return true;\n })).flat();\n const allRootElements = /* @__PURE__ */ new Set();\n for (const treeNode of treeNodes) {\n for (const rootElement of treeNode.rootElements)\n allRootElements.add(rootElement);\n }\n return [...allRootElements];\n }\n});\n\n// packages/injected/src/xpathSelectorEngine.ts\nvar XPathEngine = {\n queryAll(root, selector) {\n if (selector.startsWith("/") && root.nodeType !== Node.DOCUMENT_NODE)\n selector = "." + selector;\n const result = [];\n const document = root.ownerDocument || root;\n if (!document)\n return result;\n const it = document.evaluate(selector, root, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE);\n for (let node = it.iterateNext(); node; node = it.iterateNext()) {\n if (node.nodeType === Node.ELEMENT_NODE)\n result.push(node);\n }\n return result;\n }\n};\n\n// packages/playwright-core/src/utils/isomorphic/locatorUtils.ts\nfunction getByAttributeTextSelector(attrName, text, options) {\n return `internal:attr=[${attrName}=${escapeForAttributeSelector(text, (options == null ? void 0 : options.exact) || false)}]`;\n}\nfunction getByTestIdSelector(testIdAttributeName, testId) {\n return `internal:testid=[${testIdAttributeName}=${escapeForAttributeSelector(testId, true)}]`;\n}\nfunction getByLabelSelector(text, options) {\n return "internal:label=" + escapeForTextSelector(text, !!(options == null ? void 0 : options.exact));\n}\nfunction getByAltTextSelector(text, options) {\n return getByAttributeTextSelector("alt", text, options);\n}\nfunction getByTitleSelector(text, options) {\n return getByAttributeTextSelector("title", text, options);\n}\nfunction getByPlaceholderSelector(text, options) {\n return getByAttributeTextSelector("placeholder", text, options);\n}\nfunction getByTextSelector(text, options) {\n return "internal:text=" + escapeForTextSelector(text, !!(options == null ? void 0 : options.exact));\n}\nfunction getByRoleSelector(role, options = {}) {\n const props = [];\n if (options.checked !== void 0)\n props.push(["checked", String(options.checked)]);\n if (options.disabled !== void 0)\n props.push(["disabled", String(options.disabled)]);\n if (options.selected !== void 0)\n props.push(["selected", String(options.selected)]);\n if (options.expanded !== void 0)\n props.push(["expanded", String(options.expanded)]);\n if (options.includeHidden !== void 0)\n props.push(["include-hidden", String(options.includeHidden)]);\n if (options.level !== void 0)\n props.push(["level", String(options.level)]);\n if (options.name !== void 0)\n props.push(["name", escapeForAttributeSelector(options.name, !!options.exact)]);\n if (options.pressed !== void 0)\n props.push(["pressed", String(options.pressed)]);\n return `internal:role=${role}${props.map(([n, v]) => `[${n}=${v}]`).join("")}`;\n}\n\n// packages/injected/src/consoleApi.ts\nvar selectorSymbol = Symbol("selector");\nselectorSymbol;\nvar _Locator = class _Locator {\n constructor(injectedScript, selector, options) {\n if (options == null ? void 0 : options.hasText)\n selector += ` >> internal:has-text=${escapeForTextSelector(options.hasText, false)}`;\n if (options == null ? void 0 : options.hasNotText)\n selector += ` >> internal:has-not-text=${escapeForTextSelector(options.hasNotText, false)}`;\n if (options == null ? void 0 : options.has)\n selector += ` >> internal:has=` + JSON.stringify(options.has[selectorSymbol]);\n if (options == null ? void 0 : options.hasNot)\n selector += ` >> internal:has-not=` + JSON.stringify(options.hasNot[selectorSymbol]);\n if ((options == null ? void 0 : options.visible) !== void 0)\n selector += ` >> visible=${options.visible ? "true" : "false"}`;\n this[selectorSymbol] = selector;\n if (selector) {\n const parsed = injectedScript.parseSelector(selector);\n this.element = injectedScript.querySelector(parsed, injectedScript.document, false);\n this.elements = injectedScript.querySelectorAll(parsed, injectedScript.document);\n }\n const selectorBase = selector;\n const self = this;\n self.locator = (selector2, options2) => {\n return new _Locator(injectedScript, selectorBase ? selectorBase + " >> " + selector2 : selector2, options2);\n };\n self.getByTestId = (testId) => self.locator(getByTestIdSelector(injectedScript.testIdAttributeNameForStrictErrorAndConsoleCodegen(), testId));\n self.getByAltText = (text, options2) => self.locator(getByAltTextSelector(text, options2));\n self.getByLabel = (text, options2) => self.locator(getByLabelSelector(text, options2));\n self.getByPlaceholder = (text, options2) => self.locator(getByPlaceholderSelector(text, options2));\n self.getByText = (text, options2) => self.locator(getByTextSelector(text, options2));\n self.getByTitle = (text, options2) => self.locator(getByTitleSelector(text, options2));\n self.getByRole = (role, options2 = {}) => self.locator(getByRoleSelector(role, options2));\n self.filter = (options2) => new _Locator(injectedScript, selector, options2);\n self.first = () => self.locator("nth=0");\n self.last = () => self.locator("nth=-1");\n self.nth = (index) => self.locator(`nth=${index}`);\n self.and = (locator) => new _Locator(injectedScript, selectorBase + ` >> internal:and=` + JSON.stringify(locator[selectorSymbol]));\n self.or = (locator) => new _Locator(injectedScript, selectorBase + ` >> internal:or=` + JSON.stringify(locator[selectorSymbol]));\n }\n};\nvar Locator = _Locator;\nvar ConsoleAPI = class {\n constructor(injectedScript) {\n this._injectedScript = injectedScript;\n }\n install() {\n if (this._injectedScript.window.playwright)\n return;\n this._injectedScript.window.playwright = {\n $: (selector, strict) => this._querySelector(selector, !!strict),\n $$: (selector) => this._querySelectorAll(selector),\n inspect: (selector) => this._inspect(selector),\n selector: (element) => this._selector(element),\n generateLocator: (element, language) => this._generateLocator(element, language),\n ariaSnapshot: (element, options) => {\n return this._injectedScript.ariaSnapshot(element || this._injectedScript.document.body, options || { mode: "expect" });\n },\n resume: () => this._resume(),\n ...new Locator(this._injectedScript, "")\n };\n delete this._injectedScript.window.playwright.filter;\n delete this._injectedScript.window.playwright.first;\n delete this._injectedScript.window.playwright.last;\n delete this._injectedScript.window.playwright.nth;\n delete this._injectedScript.window.playwright.and;\n delete this._injectedScript.window.playwright.or;\n }\n _querySelector(selector, strict) {\n if (typeof selector !== "string")\n throw new Error(`Usage: playwright.query(\'Playwright >> selector\').`);\n const parsed = this._injectedScript.parseSelector(selector);\n return this._injectedScript.querySelector(parsed, this._injectedScript.document, strict);\n }\n _querySelectorAll(selector) {\n if (typeof selector !== "string")\n throw new Error(`Usage: playwright.$$(\'Playwright >> selector\').`);\n const parsed = this._injectedScript.parseSelector(selector);\n return this._injectedScript.querySelectorAll(parsed, this._injectedScript.document);\n }\n _inspect(selector) {\n if (typeof selector !== "string")\n throw new Error(`Usage: playwright.inspect(\'Playwright >> selector\').`);\n this._injectedScript.window.inspect(this._querySelector(selector, false));\n }\n _selector(element) {\n if (!(element instanceof Element))\n throw new Error(`Usage: playwright.selector(element).`);\n return this._injectedScript.generateSelectorSimple(element);\n }\n _generateLocator(element, language) {\n if (!(element instanceof Element))\n throw new Error(`Usage: playwright.locator(element).`);\n const selector = this._injectedScript.generateSelectorSimple(element);\n return asLocator(language || "javascript", selector);\n }\n _resume() {\n if (!this._injectedScript.window.__pw_resume)\n return false;\n this._injectedScript.window.__pw_resume().catch(() => {\n });\n }\n};\n\n// packages/playwright-core/src/utils/isomorphic/utilityScriptSerializers.ts\nfunction isRegExp2(obj) {\n try {\n return obj instanceof RegExp || Object.prototype.toString.call(obj) === "[object RegExp]";\n } catch (error) {\n return false;\n }\n}\nfunction isDate(obj) {\n try {\n return obj instanceof Date || Object.prototype.toString.call(obj) === "[object Date]";\n } catch (error) {\n return false;\n }\n}\nfunction isURL(obj) {\n try {\n return obj instanceof URL || Object.prototype.toString.call(obj) === "[object URL]";\n } catch (error) {\n return false;\n }\n}\nfunction isError(obj) {\n var _a;\n try {\n return obj instanceof Error || obj && ((_a = Object.getPrototypeOf(obj)) == null ? void 0 : _a.name) === "Error";\n } catch (error) {\n return false;\n }\n}\nfunction isTypedArray(obj, constructor) {\n try {\n return obj instanceof constructor || Object.prototype.toString.call(obj) === `[object ${constructor.name}]`;\n } catch (error) {\n return false;\n }\n}\nvar typedArrayConstructors = {\n i8: Int8Array,\n ui8: Uint8Array,\n ui8c: Uint8ClampedArray,\n i16: Int16Array,\n ui16: Uint16Array,\n i32: Int32Array,\n ui32: Uint32Array,\n // TODO: add Float16Array once it\'s in baseline\n f32: Float32Array,\n f64: Float64Array,\n bi64: BigInt64Array,\n bui64: BigUint64Array\n};\nfunction typedArrayToBase64(array) {\n if ("toBase64" in array)\n return array.toBase64();\n const binary = Array.from(new Uint8Array(array.buffer, array.byteOffset, array.byteLength)).map((b) => String.fromCharCode(b)).join("");\n return btoa(binary);\n}\nfunction base64ToTypedArray(base64, TypedArrayConstructor) {\n const binary = atob(base64);\n const bytes = new Uint8Array(binary.length);\n for (let i = 0; i < binary.length; i++)\n bytes[i] = binary.charCodeAt(i);\n return new TypedArrayConstructor(bytes.buffer);\n}\nfunction parseEvaluationResultValue(value, handles = [], refs = /* @__PURE__ */ new Map()) {\n if (Object.is(value, void 0))\n return void 0;\n if (typeof value === "object" && value) {\n if ("ref" in value)\n return refs.get(value.ref);\n if ("v" in value) {\n if (value.v === "undefined")\n return void 0;\n if (value.v === "null")\n return null;\n if (value.v === "NaN")\n return NaN;\n if (value.v === "Infinity")\n return Infinity;\n if (value.v === "-Infinity")\n return -Infinity;\n if (value.v === "-0")\n return -0;\n return void 0;\n }\n if ("d" in value) {\n return new Date(value.d);\n }\n if ("u" in value)\n return new URL(value.u);\n if ("bi" in value)\n return BigInt(value.bi);\n if ("e" in value) {\n const error = new Error(value.e.m);\n error.name = value.e.n;\n error.stack = value.e.s;\n return error;\n }\n if ("r" in value)\n return new RegExp(value.r.p, value.r.f);\n if ("a" in value) {\n const result = [];\n refs.set(value.id, result);\n for (const a of value.a)\n result.push(parseEvaluationResultValue(a, handles, refs));\n return result;\n }\n if ("o" in value) {\n const result = {};\n refs.set(value.id, result);\n for (const { k, v } of value.o) {\n if (k === "__proto__")\n continue;\n result[k] = parseEvaluationResultValue(v, handles, refs);\n }\n return result;\n }\n if ("h" in value)\n return handles[value.h];\n if ("ta" in value)\n return base64ToTypedArray(value.ta.b, typedArrayConstructors[value.ta.k]);\n }\n return value;\n}\nfunction serializeAsCallArgument(value, handleSerializer) {\n return serialize(value, handleSerializer, { visited: /* @__PURE__ */ new Map(), lastId: 0 });\n}\nfunction serialize(value, handleSerializer, visitorInfo) {\n if (value && typeof value === "object") {\n if (typeof globalThis.Window === "function" && value instanceof globalThis.Window)\n return "ref: ";\n if (typeof globalThis.Document === "function" && value instanceof globalThis.Document)\n return "ref: ";\n if (typeof globalThis.Node === "function" && value instanceof globalThis.Node)\n return "ref: ";\n }\n return innerSerialize(value, handleSerializer, visitorInfo);\n}\nfunction innerSerialize(value, handleSerializer, visitorInfo) {\n var _a;\n const result = handleSerializer(value);\n if ("fallThrough" in result)\n value = result.fallThrough;\n else\n return result;\n if (typeof value === "symbol")\n return { v: "undefined" };\n if (Object.is(value, void 0))\n return { v: "undefined" };\n if (Object.is(value, null))\n return { v: "null" };\n if (Object.is(value, NaN))\n return { v: "NaN" };\n if (Object.is(value, Infinity))\n return { v: "Infinity" };\n if (Object.is(value, -Infinity))\n return { v: "-Infinity" };\n if (Object.is(value, -0))\n return { v: "-0" };\n if (typeof value === "boolean")\n return value;\n if (typeof value === "number")\n return value;\n if (typeof value === "string")\n return value;\n if (typeof value === "bigint")\n return { bi: value.toString() };\n if (isError(value)) {\n let stack;\n if ((_a = value.stack) == null ? void 0 : _a.startsWith(value.name + ": " + value.message)) {\n stack = value.stack;\n } else {\n stack = `${value.name}: ${value.message}\n${value.stack}`;\n }\n return { e: { n: value.name, m: value.message, s: stack } };\n }\n if (isDate(value))\n return { d: value.toJSON() };\n if (isURL(value))\n return { u: value.toJSON() };\n if (isRegExp2(value))\n return { r: { p: value.source, f: value.flags } };\n for (const [k, ctor] of Object.entries(typedArrayConstructors)) {\n if (isTypedArray(value, ctor))\n return { ta: { b: typedArrayToBase64(value), k } };\n }\n const id = visitorInfo.visited.get(value);\n if (id)\n return { ref: id };\n if (Array.isArray(value)) {\n const a = [];\n const id2 = ++visitorInfo.lastId;\n visitorInfo.visited.set(value, id2);\n for (let i = 0; i < value.length; ++i)\n a.push(serialize(value[i], handleSerializer, visitorInfo));\n return { a, id: id2 };\n }\n if (typeof value === "object") {\n const o = [];\n const id2 = ++visitorInfo.lastId;\n visitorInfo.visited.set(value, id2);\n for (const name of Object.keys(value)) {\n let item;\n try {\n item = value[name];\n } catch (e) {\n continue;\n }\n if (name === "toJSON" && typeof item === "function")\n o.push({ k: name, v: { o: [], id: 0 } });\n else\n o.push({ k: name, v: serialize(item, handleSerializer, visitorInfo) });\n }\n let jsonWrapper;\n try {\n if (o.length === 0 && value.toJSON && typeof value.toJSON === "function")\n jsonWrapper = { value: value.toJSON() };\n } catch (e) {\n }\n if (jsonWrapper)\n return innerSerialize(jsonWrapper.value, handleSerializer, visitorInfo);\n return { o, id: id2 };\n }\n}\n\n// packages/injected/src/utilityScript.ts\nvar UtilityScript = class {\n constructor(global, isUnderTest) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n this.global = global;\n this.isUnderTest = isUnderTest;\n if (global.__pwClock) {\n this.builtins = global.__pwClock.builtins;\n } else {\n this.builtins = {\n setTimeout: (_a = global.setTimeout) == null ? void 0 : _a.bind(global),\n clearTimeout: (_b = global.clearTimeout) == null ? void 0 : _b.bind(global),\n setInterval: (_c = global.setInterval) == null ? void 0 : _c.bind(global),\n clearInterval: (_d = global.clearInterval) == null ? void 0 : _d.bind(global),\n requestAnimationFrame: (_e = global.requestAnimationFrame) == null ? void 0 : _e.bind(global),\n cancelAnimationFrame: (_f = global.cancelAnimationFrame) == null ? void 0 : _f.bind(global),\n requestIdleCallback: (_g = global.requestIdleCallback) == null ? void 0 : _g.bind(global),\n cancelIdleCallback: (_h = global.cancelIdleCallback) == null ? void 0 : _h.bind(global),\n performance: global.performance,\n Intl: global.Intl,\n Date: global.Date\n };\n }\n if (this.isUnderTest)\n global.builtins = this.builtins;\n }\n evaluate(isFunction, returnByValue, expression, argCount, ...argsAndHandles) {\n const args = argsAndHandles.slice(0, argCount);\n const handles = argsAndHandles.slice(argCount);\n const parameters = [];\n for (let i = 0; i < args.length; i++)\n parameters[i] = parseEvaluationResultValue(args[i], handles);\n let result = this.global.eval(expression);\n if (isFunction === true) {\n result = result(...parameters);\n } else if (isFunction === false) {\n result = result;\n } else {\n if (typeof result === "function")\n result = result(...parameters);\n }\n return returnByValue ? this._promiseAwareJsonValueNoThrow(result) : result;\n }\n jsonValue(returnByValue, value) {\n if (value === void 0)\n return void 0;\n return serializeAsCallArgument(value, (value2) => ({ fallThrough: value2 }));\n }\n _promiseAwareJsonValueNoThrow(value) {\n const safeJson = (value2) => {\n try {\n return this.jsonValue(true, value2);\n } catch (e) {\n return void 0;\n }\n };\n if (value && typeof value === "object" && typeof value.then === "function") {\n return (async () => {\n const promiseValue = await value;\n return safeJson(promiseValue);\n })();\n }\n return safeJson(value);\n }\n};\n\n// packages/injected/src/injectedScript.ts\nvar InjectedScript = class {\n constructor(window, options) {\n this._testIdAttributeNameForStrictErrorAndConsoleCodegen = "data-testid";\n this._lastAriaSnapshotForTrack = /* @__PURE__ */ new Map();\n // Recorder must use any external dependencies through InjectedScript.\n // Otherwise it will end up with a copy of all modules it uses, and any\n // module-level globals will be duplicated, which leads to subtle bugs.\n this.utils = {\n asLocator,\n cacheNormalizedWhitespaces,\n elementText,\n getAriaRole,\n getElementAccessibleDescription,\n getElementAccessibleName,\n isElementVisible,\n isInsideScope,\n normalizeWhiteSpace,\n parseAriaSnapshot,\n generateAriaTree,\n findNewElement,\n // Builtins protect injected code from clock emulation.\n builtins: null\n };\n this.window = window;\n this.document = window.document;\n this.isUnderTest = options.isUnderTest;\n this.utils.builtins = new UtilityScript(window, options.isUnderTest).builtins;\n this._sdkLanguage = options.sdkLanguage;\n this._testIdAttributeNameForStrictErrorAndConsoleCodegen = options.testIdAttributeName;\n this._evaluator = new SelectorEvaluatorImpl();\n this.consoleApi = new ConsoleAPI(this);\n this.onGlobalListenersRemoved = /* @__PURE__ */ new Set();\n this._autoClosingTags = /* @__PURE__ */ new Set(["AREA", "BASE", "BR", "COL", "COMMAND", "EMBED", "HR", "IMG", "INPUT", "KEYGEN", "LINK", "MENUITEM", "META", "PARAM", "SOURCE", "TRACK", "WBR"]);\n this._booleanAttributes = /* @__PURE__ */ new Set(["checked", "selected", "disabled", "readonly", "multiple"]);\n this._eventTypes = /* @__PURE__ */ new Map([\n ["auxclick", "mouse"],\n ["click", "mouse"],\n ["dblclick", "mouse"],\n ["mousedown", "mouse"],\n ["mouseeenter", "mouse"],\n ["mouseleave", "mouse"],\n ["mousemove", "mouse"],\n ["mouseout", "mouse"],\n ["mouseover", "mouse"],\n ["mouseup", "mouse"],\n ["mouseleave", "mouse"],\n ["mousewheel", "mouse"],\n ["keydown", "keyboard"],\n ["keyup", "keyboard"],\n ["keypress", "keyboard"],\n ["textInput", "keyboard"],\n ["touchstart", "touch"],\n ["touchmove", "touch"],\n ["touchend", "touch"],\n ["touchcancel", "touch"],\n ["pointerover", "pointer"],\n ["pointerout", "pointer"],\n ["pointerenter", "pointer"],\n ["pointerleave", "pointer"],\n ["pointerdown", "pointer"],\n ["pointerup", "pointer"],\n ["pointermove", "pointer"],\n ["pointercancel", "pointer"],\n ["gotpointercapture", "pointer"],\n ["lostpointercapture", "pointer"],\n ["focus", "focus"],\n ["blur", "focus"],\n ["drag", "drag"],\n ["dragstart", "drag"],\n ["dragend", "drag"],\n ["dragover", "drag"],\n ["dragenter", "drag"],\n ["dragleave", "drag"],\n ["dragexit", "drag"],\n ["drop", "drag"],\n ["wheel", "wheel"],\n ["deviceorientation", "deviceorientation"],\n ["deviceorientationabsolute", "deviceorientation"],\n ["devicemotion", "devicemotion"]\n ]);\n this._hoverHitTargetInterceptorEvents = /* @__PURE__ */ new Set(["mousemove"]);\n this._tapHitTargetInterceptorEvents = /* @__PURE__ */ new Set(["pointerdown", "pointerup", "touchstart", "touchend", "touchcancel"]);\n this._mouseHitTargetInterceptorEvents = /* @__PURE__ */ new Set(["mousedown", "mouseup", "pointerdown", "pointerup", "click", "auxclick", "dblclick", "contextmenu"]);\n this._allHitTargetInterceptorEvents = /* @__PURE__ */ new Set([...this._hoverHitTargetInterceptorEvents, ...this._tapHitTargetInterceptorEvents, ...this._mouseHitTargetInterceptorEvents]);\n this._engines = /* @__PURE__ */ new Map();\n this._engines.set("xpath", XPathEngine);\n this._engines.set("xpath:light", XPathEngine);\n this._engines.set("_react", createReactEngine());\n this._engines.set("_vue", createVueEngine());\n this._engines.set("role", createRoleEngine(false));\n this._engines.set("text", this._createTextEngine(true, false));\n this._engines.set("text:light", this._createTextEngine(false, false));\n this._engines.set("id", this._createAttributeEngine("id", true));\n this._engines.set("id:light", this._createAttributeEngine("id", false));\n this._engines.set("data-testid", this._createAttributeEngine("data-testid", true));\n this._engines.set("data-testid:light", this._createAttributeEngine("data-testid", false));\n this._engines.set("data-test-id", this._createAttributeEngine("data-test-id", true));\n this._engines.set("data-test-id:light", this._createAttributeEngine("data-test-id", false));\n this._engines.set("data-test", this._createAttributeEngine("data-test", true));\n this._engines.set("data-test:light", this._createAttributeEngine("data-test", false));\n this._engines.set("css", this._createCSSEngine());\n this._engines.set("nth", { queryAll: () => [] });\n this._engines.set("visible", this._createVisibleEngine());\n this._engines.set("internal:control", this._createControlEngine());\n this._engines.set("internal:has", this._createHasEngine());\n this._engines.set("internal:has-not", this._createHasNotEngine());\n this._engines.set("internal:and", { queryAll: () => [] });\n this._engines.set("internal:or", { queryAll: () => [] });\n this._engines.set("internal:chain", this._createInternalChainEngine());\n this._engines.set("internal:label", this._createInternalLabelEngine());\n this._engines.set("internal:text", this._createTextEngine(true, true));\n this._engines.set("internal:has-text", this._createInternalHasTextEngine());\n this._engines.set("internal:has-not-text", this._createInternalHasNotTextEngine());\n this._engines.set("internal:attr", this._createNamedAttributeEngine());\n this._engines.set("internal:testid", this._createNamedAttributeEngine());\n this._engines.set("internal:role", createRoleEngine(true));\n this._engines.set("internal:describe", this._createDescribeEngine());\n this._engines.set("aria-ref", this._createAriaRefEngine());\n for (const { name, source } of options.customEngines)\n this._engines.set(name, this.eval(source));\n this._stableRafCount = options.stableRafCount;\n this._browserName = options.browserName;\n this._isUtilityWorld = !!options.isUtilityWorld;\n setGlobalOptions({ browserNameForWorkarounds: options.browserName });\n this._setupGlobalListenersRemovalDetection();\n this._setupHitTargetInterceptors();\n if (this.isUnderTest)\n this.window.__injectedScript = this;\n }\n eval(expression) {\n return this.window.eval(expression);\n }\n testIdAttributeNameForStrictErrorAndConsoleCodegen() {\n return this._testIdAttributeNameForStrictErrorAndConsoleCodegen;\n }\n parseSelector(selector) {\n const result = parseSelector(selector);\n visitAllSelectorParts(result, (part) => {\n if (!this._engines.has(part.name))\n throw this.createStacklessError(`Unknown engine "${part.name}" while parsing selector ${selector}`);\n });\n return result;\n }\n generateSelector(targetElement, options) {\n return generateSelector(this, targetElement, options);\n }\n generateSelectorSimple(targetElement, options) {\n return generateSelector(this, targetElement, { ...options, testIdAttributeName: this._testIdAttributeNameForStrictErrorAndConsoleCodegen }).selector;\n }\n querySelector(selector, root, strict) {\n const result = this.querySelectorAll(selector, root);\n if (strict && result.length > 1)\n throw this.strictModeViolationError(selector, result);\n this.checkDeprecatedSelectorUsage(selector, result);\n return result[0];\n }\n _queryNth(elements, part) {\n const list = [...elements];\n let nth = +part.body;\n if (nth === -1)\n nth = list.length - 1;\n return new Set(list.slice(nth, nth + 1));\n }\n _queryLayoutSelector(elements, part, originalRoot) {\n const name = part.name;\n const body = part.body;\n const result = [];\n const inner = this.querySelectorAll(body.parsed, originalRoot);\n for (const element of elements) {\n const score = layoutSelectorScore(name, element, inner, body.distance);\n if (score !== void 0)\n result.push({ element, score });\n }\n result.sort((a, b) => a.score - b.score);\n return new Set(result.map((r) => r.element));\n }\n ariaSnapshot(node, options) {\n return this.incrementalAriaSnapshot(node, options).full;\n }\n incrementalAriaSnapshot(node, options) {\n if (node.nodeType !== Node.ELEMENT_NODE)\n throw this.createStacklessError("Can only capture aria snapshot of Element nodes.");\n const ariaSnapshot = generateAriaTree(node, options);\n const full = renderAriaTree(ariaSnapshot, options);\n let incremental;\n if (options.track) {\n const previousSnapshot = this._lastAriaSnapshotForTrack.get(options.track);\n if (previousSnapshot)\n incremental = renderAriaTree(ariaSnapshot, options, previousSnapshot);\n this._lastAriaSnapshotForTrack.set(options.track, ariaSnapshot);\n }\n this._lastAriaSnapshotForQuery = ariaSnapshot;\n return { full, incremental, iframeRefs: ariaSnapshot.iframeRefs };\n }\n ariaSnapshotForRecorder() {\n const tree = generateAriaTree(this.document.body, { mode: "ai" });\n const ariaSnapshot = renderAriaTree(tree, { mode: "ai" });\n return { ariaSnapshot, refs: tree.refs };\n }\n getAllElementsMatchingExpectAriaTemplate(document, template) {\n return getAllElementsMatchingExpectAriaTemplate(document.documentElement, template);\n }\n querySelectorAll(selector, root) {\n if (selector.capture !== void 0) {\n if (selector.parts.some((part) => part.name === "nth"))\n throw this.createStacklessError(`Can\'t query n-th element in a request with the capture.`);\n const withHas = { parts: selector.parts.slice(0, selector.capture + 1) };\n if (selector.capture < selector.parts.length - 1) {\n const parsed = { parts: selector.parts.slice(selector.capture + 1) };\n const has = { name: "internal:has", body: { parsed }, source: stringifySelector(parsed) };\n withHas.parts.push(has);\n }\n return this.querySelectorAll(withHas, root);\n }\n if (!root["querySelectorAll"])\n throw this.createStacklessError("Node is not queryable.");\n if (selector.capture !== void 0) {\n throw this.createStacklessError("Internal error: there should not be a capture in the selector.");\n }\n if (root.nodeType === 11 && selector.parts.length === 1 && selector.parts[0].name === "css" && selector.parts[0].source === ":scope")\n return [root];\n this._evaluator.begin();\n try {\n let roots = /* @__PURE__ */ new Set([root]);\n for (const part of selector.parts) {\n if (part.name === "nth") {\n roots = this._queryNth(roots, part);\n } else if (part.name === "internal:and") {\n const andElements = this.querySelectorAll(part.body.parsed, root);\n roots = new Set(andElements.filter((e) => roots.has(e)));\n } else if (part.name === "internal:or") {\n const orElements = this.querySelectorAll(part.body.parsed, root);\n roots = new Set(sortInDOMOrder(/* @__PURE__ */ new Set([...roots, ...orElements])));\n } else if (kLayoutSelectorNames.includes(part.name)) {\n roots = this._queryLayoutSelector(roots, part, root);\n } else {\n const next = /* @__PURE__ */ new Set();\n for (const root2 of roots) {\n const all = this._queryEngineAll(part, root2);\n for (const one of all)\n next.add(one);\n }\n roots = next;\n }\n }\n return [...roots];\n } finally {\n this._evaluator.end();\n }\n }\n _queryEngineAll(part, root) {\n const result = this._engines.get(part.name).queryAll(root, part.body);\n for (const element of result) {\n if (!("nodeName" in element))\n throw this.createStacklessError(`Expected a Node but got ${Object.prototype.toString.call(element)}`);\n }\n return result;\n }\n _createAttributeEngine(attribute, shadow) {\n const toCSS = (selector) => {\n const css = `[${attribute}=${JSON.stringify(selector)}]`;\n return [{ simples: [{ selector: { css, functions: [] }, combinator: "" }] }];\n };\n return {\n queryAll: (root, selector) => {\n return this._evaluator.query({ scope: root, pierceShadow: shadow }, toCSS(selector));\n }\n };\n }\n _createCSSEngine() {\n return {\n queryAll: (root, body) => {\n return this._evaluator.query({ scope: root, pierceShadow: true }, body);\n }\n };\n }\n _createTextEngine(shadow, internal) {\n const queryAll = (root, selector) => {\n const { matcher, kind } = createTextMatcher(selector, internal);\n const result = [];\n let lastDidNotMatchSelf = null;\n const appendElement = (element) => {\n if (kind === "lax" && lastDidNotMatchSelf && lastDidNotMatchSelf.contains(element))\n return false;\n const matches = elementMatchesText(this._evaluator._cacheText, element, matcher);\n if (matches === "none")\n lastDidNotMatchSelf = element;\n if (matches === "self" || matches === "selfAndChildren" && kind === "strict" && !internal)\n result.push(element);\n };\n if (root.nodeType === Node.ELEMENT_NODE)\n appendElement(root);\n const elements = this._evaluator._queryCSS({ scope: root, pierceShadow: shadow }, "*");\n for (const element of elements)\n appendElement(element);\n return result;\n };\n return { queryAll };\n }\n _createInternalHasTextEngine() {\n return {\n queryAll: (root, selector) => {\n if (root.nodeType !== 1)\n return [];\n const element = root;\n const text = elementText(this._evaluator._cacheText, element);\n const { matcher } = createTextMatcher(selector, true);\n return matcher(text) ? [element] : [];\n }\n };\n }\n _createInternalHasNotTextEngine() {\n return {\n queryAll: (root, selector) => {\n if (root.nodeType !== 1)\n return [];\n const element = root;\n const text = elementText(this._evaluator._cacheText, element);\n const { matcher } = createTextMatcher(selector, true);\n return matcher(text) ? [] : [element];\n }\n };\n }\n _createInternalLabelEngine() {\n return {\n queryAll: (root, selector) => {\n const { matcher } = createTextMatcher(selector, true);\n const allElements = this._evaluator._queryCSS({ scope: root, pierceShadow: true }, "*");\n return allElements.filter((element) => {\n return getElementLabels(this._evaluator._cacheText, element).some((label) => matcher(label));\n });\n }\n };\n }\n _createNamedAttributeEngine() {\n const queryAll = (root, selector) => {\n const parsed = parseAttributeSelector(selector, true);\n if (parsed.name || parsed.attributes.length !== 1)\n throw new Error("Malformed attribute selector: " + selector);\n const { name, value, caseSensitive } = parsed.attributes[0];\n const lowerCaseValue = caseSensitive ? null : value.toLowerCase();\n let matcher;\n if (value instanceof RegExp)\n matcher = (s) => !!s.match(value);\n else if (caseSensitive)\n matcher = (s) => s === value;\n else\n matcher = (s) => s.toLowerCase().includes(lowerCaseValue);\n const elements = this._evaluator._queryCSS({ scope: root, pierceShadow: true }, `[${name}]`);\n return elements.filter((e) => matcher(e.getAttribute(name)));\n };\n return { queryAll };\n }\n _createDescribeEngine() {\n const queryAll = (root) => {\n if (root.nodeType !== 1)\n return [];\n return [root];\n };\n return { queryAll };\n }\n _createControlEngine() {\n return {\n queryAll(root, body) {\n if (body === "enter-frame")\n return [];\n if (body === "return-empty")\n return [];\n if (body === "component") {\n if (root.nodeType !== 1)\n return [];\n return [root.childElementCount === 1 ? root.firstElementChild : root];\n }\n throw new Error(`Internal error, unknown internal:control selector ${body}`);\n }\n };\n }\n _createHasEngine() {\n const queryAll = (root, body) => {\n if (root.nodeType !== 1)\n return [];\n const has = !!this.querySelector(body.parsed, root, false);\n return has ? [root] : [];\n };\n return { queryAll };\n }\n _createHasNotEngine() {\n const queryAll = (root, body) => {\n if (root.nodeType !== 1)\n return [];\n const has = !!this.querySelector(body.parsed, root, false);\n return has ? [] : [root];\n };\n return { queryAll };\n }\n _createVisibleEngine() {\n const queryAll = (root, body) => {\n if (root.nodeType !== 1)\n return [];\n const visible = body === "true";\n return isElementVisible(root) === visible ? [root] : [];\n };\n return { queryAll };\n }\n _createInternalChainEngine() {\n const queryAll = (root, body) => {\n return this.querySelectorAll(body.parsed, root);\n };\n return { queryAll };\n }\n extend(source, params) {\n const constrFunction = this.window.eval(`\n (() => {\n const module = {};\n ${source}\n return module.exports.default();\n })()`);\n return new constrFunction(this, params);\n }\n async viewportRatio(element) {\n return await new Promise((resolve) => {\n const observer = new IntersectionObserver((entries) => {\n resolve(entries[0].intersectionRatio);\n observer.disconnect();\n });\n observer.observe(element);\n this.utils.builtins.requestAnimationFrame(() => {\n });\n });\n }\n getElementBorderWidth(node) {\n if (node.nodeType !== Node.ELEMENT_NODE || !node.ownerDocument || !node.ownerDocument.defaultView)\n return { left: 0, top: 0 };\n const style = node.ownerDocument.defaultView.getComputedStyle(node);\n return { left: parseInt(style.borderLeftWidth || "", 10), top: parseInt(style.borderTopWidth || "", 10) };\n }\n describeIFrameStyle(iframe) {\n if (!iframe.ownerDocument || !iframe.ownerDocument.defaultView)\n return "error:notconnected";\n const defaultView = iframe.ownerDocument.defaultView;\n for (let e = iframe; e; e = parentElementOrShadowHost(e)) {\n if (defaultView.getComputedStyle(e).transform !== "none")\n return "transformed";\n }\n const iframeStyle = defaultView.getComputedStyle(iframe);\n return {\n left: parseInt(iframeStyle.borderLeftWidth || "", 10) + parseInt(iframeStyle.paddingLeft || "", 10),\n top: parseInt(iframeStyle.borderTopWidth || "", 10) + parseInt(iframeStyle.paddingTop || "", 10)\n };\n }\n retarget(node, behavior) {\n let element = node.nodeType === Node.ELEMENT_NODE ? node : node.parentElement;\n if (!element)\n return null;\n if (behavior === "none")\n return element;\n if (!element.matches("input, textarea, select") && !element.isContentEditable) {\n if (behavior === "button-link")\n element = element.closest("button, [role=button], a, [role=link]") || element;\n else\n element = element.closest("button, [role=button], [role=checkbox], [role=radio]") || element;\n }\n if (behavior === "follow-label") {\n if (!element.matches("a, input, textarea, button, select, [role=link], [role=button], [role=checkbox], [role=radio]") && !element.isContentEditable) {\n const enclosingLabel = element.closest("label");\n if (enclosingLabel && enclosingLabel.control)\n element = enclosingLabel.control;\n }\n }\n return element;\n }\n async checkElementStates(node, states) {\n if (states.includes("stable")) {\n const stableResult = await this._checkElementIsStable(node);\n if (stableResult === false)\n return { missingState: "stable" };\n if (stableResult === "error:notconnected")\n return "error:notconnected";\n }\n for (const state of states) {\n if (state !== "stable") {\n const result = this.elementState(node, state);\n if (result.received === "error:notconnected")\n return "error:notconnected";\n if (!result.matches)\n return { missingState: state };\n }\n }\n }\n async _checkElementIsStable(node) {\n const continuePolling = Symbol("continuePolling");\n let lastRect;\n let stableRafCounter = 0;\n let lastTime = 0;\n const check = () => {\n const element = this.retarget(node, "no-follow-label");\n if (!element)\n return "error:notconnected";\n const time = this.utils.builtins.performance.now();\n if (this._stableRafCount > 1 && time - lastTime < 15)\n return continuePolling;\n lastTime = time;\n const clientRect = element.getBoundingClientRect();\n const rect = { x: clientRect.top, y: clientRect.left, width: clientRect.width, height: clientRect.height };\n if (lastRect) {\n const samePosition = rect.x === lastRect.x && rect.y === lastRect.y && rect.width === lastRect.width && rect.height === lastRect.height;\n if (!samePosition)\n return false;\n if (++stableRafCounter >= this._stableRafCount)\n return true;\n }\n lastRect = rect;\n return continuePolling;\n };\n let fulfill;\n let reject;\n const result = new Promise((f, r) => {\n fulfill = f;\n reject = r;\n });\n const raf = () => {\n try {\n const success = check();\n if (success !== continuePolling)\n fulfill(success);\n else\n this.utils.builtins.requestAnimationFrame(raf);\n } catch (e) {\n reject(e);\n }\n };\n this.utils.builtins.requestAnimationFrame(raf);\n return result;\n }\n _createAriaRefEngine() {\n const queryAll = (root, selector) => {\n var _a, _b;\n const result = (_b = (_a = this._lastAriaSnapshotForQuery) == null ? void 0 : _a.elements) == null ? void 0 : _b.get(selector);\n return result && result.isConnected ? [result] : [];\n };\n return { queryAll };\n }\n elementState(node, state) {\n const element = this.retarget(node, ["visible", "hidden"].includes(state) ? "none" : "follow-label");\n if (!element || !element.isConnected) {\n if (state === "hidden")\n return { matches: true, received: "hidden" };\n return { matches: false, received: "error:notconnected" };\n }\n if (state === "visible" || state === "hidden") {\n const visible = isElementVisible(element);\n return {\n matches: state === "visible" ? visible : !visible,\n received: visible ? "visible" : "hidden"\n };\n }\n if (state === "disabled" || state === "enabled") {\n const disabled = getAriaDisabled(element);\n return {\n matches: state === "disabled" ? disabled : !disabled,\n received: disabled ? "disabled" : "enabled"\n };\n }\n if (state === "editable") {\n const disabled = getAriaDisabled(element);\n const readonly = getReadonly(element);\n if (readonly === "error")\n throw this.createStacklessError("Element is not an ,