diff --git a/.azure-pipelines/guardian/SDL/.gdnsuppress b/.azure-pipelines/guardian/SDL/.gdnsuppress new file mode 100644 index 000000000..0973f4f8f --- /dev/null +++ b/.azure-pipelines/guardian/SDL/.gdnsuppress @@ -0,0 +1,115 @@ +{ + "hydrated": false, + "properties": { + "helpUri": "https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/microsoft-guardian/general/suppressions", + "hydrationStatus": "This file does not contain identifying data. It is safe to check into your repo. To hydrate this file with identifying data, run `guardian hydrate --help` and follow the guidance." + }, + "version": "1.0.0", + "suppressionSets": { + "default": { + "name": "default", + "createdDate": "2024-02-06 20:37:57Z", + "lastUpdatedDate": "2024-02-06 20:37:57Z" + } + }, + "results": { + "de854c6ab9b27b1ec642cec1a51059b92f88815a231c1c8f4b8e71d9e378f174": { + "signature": "de854c6ab9b27b1ec642cec1a51059b92f88815a231c1c8f4b8e71d9e378f174", + "alternativeSignatures": [ + "79827cf2e75a7f99eec716562fb9fa0d49014ac96b7afc76d29d79a33e8edd94" + ], + "memberOf": [ + "default" + ], + "createdDate": "2024-02-06 20:37:57Z" + }, + "ebe0026db71ae4bb2d8e76b706198003079a5c095658de8dd49e67f7e572ea46": { + "signature": "ebe0026db71ae4bb2d8e76b706198003079a5c095658de8dd49e67f7e572ea46", + "alternativeSignatures": [], + "memberOf": [ + "default" + ], + "createdDate": "2024-02-06 20:37:57Z" + }, + "bb02ef965dce40b6c950b6d0cf8a9f41c08c5e33f17268fb208f3687b11ffa26": { + "signature": "bb02ef965dce40b6c950b6d0cf8a9f41c08c5e33f17268fb208f3687b11ffa26", + "alternativeSignatures": [ + "3a8630eaccc2c5c39ae78836bb115bf55557058bad206fdad7dbe4f0ae466ed1" + ], + "memberOf": [ + "default" + ], + "createdDate": "2024-02-06 20:37:57Z" + }, + "dffa3e24f6dc7542d741b2fab22eec657aca441a51cee515ca9bb4932995a416": { + "signature": "dffa3e24f6dc7542d741b2fab22eec657aca441a51cee515ca9bb4932995a416", + "alternativeSignatures": [ + "56a4b454840e2c21d44a76d9ab09fde76fba682ce7508a3f6abf7b411d389e56" + ], + "memberOf": [ + "default" + ], + "createdDate": "2024-02-06 20:37:57Z" + }, + "5dbcaaac8cdccc6df557cbde94e5d7e0f1c8a67546ba82a1b85b629030f3d311": { + "signature": "5dbcaaac8cdccc6df557cbde94e5d7e0f1c8a67546ba82a1b85b629030f3d311", + "alternativeSignatures": [ + "fdb8e8af8d5697f767d0e55194f91d4a089d981555e00d058ba866acb8602014" + ], + "memberOf": [ + "default" + ], + "createdDate": "2024-02-06 20:37:57Z" + }, + "b7db026b2a60bdb63af1c0938ac16d9414bb4d38e9efdc51626e12aa55f6b72f": { + "signature": "b7db026b2a60bdb63af1c0938ac16d9414bb4d38e9efdc51626e12aa55f6b72f", + "alternativeSignatures": [ + "bf7bb897e644659827d8dc8d55f719296d3ab94dc750b666ce90d8057361d9d5" + ], + "memberOf": [ + "default" + ], + "createdDate": "2024-02-06 20:37:57Z" + }, + "aa702d85554c352e3016e3ec3d790df489833dc97e3733c58b57915ec125f47b": { + "signature": "aa702d85554c352e3016e3ec3d790df489833dc97e3733c58b57915ec125f47b", + "alternativeSignatures": [ + "948787329d52a66b4691383c81af407b03e68344a6685bbab3cfa8eb8db34f81" + ], + "memberOf": [ + "default" + ], + "createdDate": "2024-02-06 20:37:57Z" + }, + "38174b5c9b474c3c0278d4c4173c14022e03dec3dc4db5ced51d2ca8459e7f2a": { + "signature": "38174b5c9b474c3c0278d4c4173c14022e03dec3dc4db5ced51d2ca8459e7f2a", + "alternativeSignatures": [ + "a9efa99679f3966da96a8b89f1250576cfceda774556d43ea89ea84289967276" + ], + "memberOf": [ + "default" + ], + "createdDate": "2024-02-06 20:37:57Z" + }, + "08a4e1be4662d897e5b2b7a7dc6d6901405462cd2d5f8ad433c13e12a8503fb6": { + "signature": "08a4e1be4662d897e5b2b7a7dc6d6901405462cd2d5f8ad433c13e12a8503fb6", + "alternativeSignatures": [ + "009132f89939956a3f4471bb13353394015c9a7e675d118aa427e75f05658e05" + ], + "memberOf": [ + "default" + ], + "createdDate": "2024-02-06 20:37:57Z" + }, + "551d69737553150380e58bc9a8ae1e8f17da931561ea4e195781fb8cad225188": { + "signature": "551d69737553150380e58bc9a8ae1e8f17da931561ea4e195781fb8cad225188", + "alternativeSignatures": [ + "617ad56322c5fb82a162b0b583e676d66a8e76b0d444aaab487865e4bf89e83b" + ], + "memberOf": [ + "default" + ], + "createdDate": "2024-02-06 20:37:57Z" + } + } +} \ No newline at end of file diff --git a/.azure-pipelines/publish-docker.yml b/.azure-pipelines/publish-docker.yml new file mode 100644 index 000000000..c9b3b0528 --- /dev/null +++ b/.azure-pipelines/publish-docker.yml @@ -0,0 +1,122 @@ +# Trigger: any `v*` release tag (e.g. v1.40.0). +# Can also be queued manually from the ADO UI. +trigger: + tags: + include: + - v* + exclude: + - v*-* + +pr: none + +parameters: +- name: releaseChannel + displayName: "IMPORTANT: set this to 'canary' when triggering manually" + type: string + default: stable + values: + - stable + - canary + +resources: + repositories: + - repository: 1esPipelines + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release + +extends: + template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines + parameters: + pool: + name: DevDivPlaywrightAzurePipelinesUbuntu2204 + os: linux + sdl: + sourceAnalysisPool: + name: DevDivPlaywrightAzurePipelinesWindows2022 + # The image must be windows-based due to restrictions of the SDL tools. See: https://aka.ms/AAo6v8e + os: windows + suppression: + suppressionFile: $(Build.SourcesDirectory)\.azure-pipelines\guardian\SDL\.gdnsuppress + stages: + - stage: Publish + jobs: + - job: PublishDocker + displayName: "Publish Docker images to ACR" + # arm64 images are cross-built under QEMU emulation, which is slow. + timeoutInMinutes: 360 + steps: + - checkout: self + persistCredentials: false + displayName: "Checkout code" + + - task: UseNode@1 + inputs: + version: '26.x' + displayName: "Install Node.js" + + # Relocate the Docker data-root to the large /mnt volume: this job builds + # 6 images (jammy/noble/resolute x amd64/arm64) and `docker system prune`s + # between them, so the default disk fills up. + - task: Bash@3 + displayName: "Setup docker" + inputs: + targetType: "inline" + script: | + set -x + sudo service docker stop + sudo mkdir -p /etc/docker + echo '{ "data-root": "/mnt/docker" }' | sudo tee /etc/docker/daemon.json + sudo service docker start + + # scripts/build_driver.sh builds the driver from .upstream/ on the host. `npm ci` uses + # the registry and the credentials of this .npmrc file. The Docker build context is + # utils/docker (see build.sh), thus this file does not go into the images. + - task: Bash@3 + displayName: "setup .npmrc" + inputs: + targetType: "inline" + script: | + echo "registry=https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/DevDiv_PublicPackages/npm/registry/" >> .npmrc + + - task: npmAuthenticate@0 + displayName: "authenticate the private npm registry" + inputs: + workingFile: .npmrc + + # Must run before MavenAuthenticate@0 so the credentials it injects into + # ~/.m2/settings.xml are not overwritten by the copy. + - bash: | + mkdir -p ~/.m2 + cp .azure-pipelines/settings.xml ~/.m2/settings.xml + displayName: 'Copy settings.xml (mirror Maven Central to DevDiv_PublicPackages)' + + - task: MavenAuthenticate@0 + displayName: 'Authenticate to DevDiv_PublicPackages feed' + inputs: + artifactsFeeds: DevDiv_PublicPackages + + - task: AzureCLI@2 + displayName: "Login to ACR via OIDC" + inputs: + azureSubscription: "Playwright-CDN" + scriptType: "bash" + scriptLocation: "inlineScript" + inlineScript: "az acr login --name playwright" + + - task: Bash@3 + displayName: "Register QEMU (binfmt) for arm64 cross-build" + inputs: + targetType: "inline" + script: "docker run --rm --privileged ${ACR_CACHE_PREFIX}tonistiigi/binfmt --install arm64" + env: + ACR_CACHE_PREFIX: "playwright.azurecr.io/cached/" + + - task: Bash@3 + displayName: "Build & publish Docker images" + inputs: + targetType: "inline" + script: ./utils/docker/publish_docker.sh ${{ parameters.releaseChannel }} + env: + ACR_CACHE_PREFIX: "playwright.azurecr.io/cached/" + UBUNTU_MIRROR_PREFIX: "azure." diff --git a/.azure-pipelines/publish.yml b/.azure-pipelines/publish.yml new file mode 100644 index 000000000..1478ea8cb --- /dev/null +++ b/.azure-pipelines/publish.yml @@ -0,0 +1,137 @@ +pr: none + +trigger: + tags: + include: + - '*' + +resources: + repositories: + - repository: 1esPipelines + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release + +extends: + template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines + parameters: + pool: + name: DevDivPlaywrightAzurePipelinesUbuntu2204 + os: linux + sdl: + sourceAnalysisPool: + name: DevDivPlaywrightAzurePipelinesWindows2022 + # The image must be windows-based due to restrictions of the SDL tools. See: https://aka.ms/AAo6v8e + # In the case of a windows build, this can be the same as the above pool image. + os: windows + suppression: + suppressionFile: $(Build.SourcesDirectory)\.azure-pipelines\guardian\SDL\.gdnsuppress + stages: + - stage: Stage + jobs: + - job: Build + templateContext: + outputs: + - output: pipelineArtifact + path: $(Build.ArtifactStagingDirectory)/esrp-build + artifact: esrp-build + steps: + - checkout: self + persistCredentials: false + displayName: "Checkout code" + + - bash: | + if [[ ! "$CURRENT_BRANCH" =~ ^v1\..* ]]; then + echo "Can only publish from a release tag branch (v1.*)." + echo "Unexpected branch name: $CURRENT_BRANCH" + exit 1 + fi + env: + CURRENT_BRANCH: ${{ variables['Build.SourceBranchName'] }} + displayName: "Check the branch is a release branch" + # Allow manual runs on any branch to exercise the build without publishing. + condition: ne(variables['Build.Reason'], 'Manual') + + - bash: | + echo "importing GPG key:" + # Pipeline variables do not preserve line ends so we use base64 instead of --armored as a workaround. + echo $GPG_PRIVATE_KEY_BASE64 | base64 -d | gpg --batch --import + echo "list keys after import:" + gpg --list-keys + env: + GPG_PRIVATE_KEY_BASE64: $(GPG_PRIVATE_KEY_BASE64) # secret variable has to be mapped to an env variable + displayName: "Import gpg key" + + - task: UseNode@1 + inputs: + version: '26.x' + displayName: "Install Node.js" + + - task: Bash@3 + displayName: "setup .npmrc" + inputs: + targetType: "inline" + script: | + echo "registry=https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/DevDiv_PublicPackages/npm/registry/" >> .npmrc + + - task: npmAuthenticate@0 + displayName: "authenticate the private npm registry" + inputs: + workingFile: .npmrc + + # The script clones microsoft/playwright into .upstream/ at the commit in + # scripts/DRIVER_VERSION and builds the driver from it. `npm ci` uses the registry + # and the credentials of the .npmrc file above. + - bash: ./scripts/build_driver.sh + displayName: 'Build the driver' + + # Must run before MavenAuthenticate@0 so the credentials it injects into + # ~/.m2/settings.xml are not overwritten by the copy. + - bash: | + mkdir -p ~/.m2 + cp .azure-pipelines/settings.xml ~/.m2/settings.xml + displayName: 'Copy settings.xml (mirror Maven Central to DevDiv_PublicPackages)' + + - task: MavenAuthenticate@0 + displayName: 'Authenticate to DevDiv_PublicPackages feed' + inputs: + artifactsFeeds: DevDiv_PublicPackages + + - bash: mvn -B deploy -D skipTests --no-transfer-progress --activate-profiles release -D gpg.passphrase=$GPG_PASSPHRASE -DaltDeploymentRepository=snapshot-repo::default::file:$(Build.ArtifactStagingDirectory)/esrp-build + displayName: 'Build and deploy to a local directory' + env: + GPG_PASSPHRASE: $(GPG_PASSPHRASE) # secret variable has to be mapped to an env variable + + - job: Publish + dependsOn: Build + # Only publish from release tags; manual runs stop after Build. + condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v1.')) + templateContext: + type: releaseJob + isProduction: true + inputs: + - input: pipelineArtifact + artifactName: esrp-build + targetPath: $(Build.ArtifactStagingDirectory)/esrp-build + steps: + - checkout: none + - task: EsrpRelease@11 + inputs: + connectedservicename: 'Playwright-ESRP-PME' + usemanagedidentity: true + keyvaultname: 'playwright-esrp-pme' + signcertname: 'ESRP-Release-Sign' + clientid: '13434a40-7de4-4c23-81a3-d843dc81c2c5' + intent: 'PackageDistribution' + contenttype: 'Maven' + # Keeping it commented out as a workaround for: + # https://portal.microsofticm.com/imp/v3/incidents/incident/499972482/summary + # contentsource: 'folder' + folderlocation: '$(Build.ArtifactStagingDirectory)/esrp-build' + waitforreleasecompletion: true + owners: 'yurys@microsoft.com' + approvers: 'yurys@microsoft.com' + serviceendpointurl: 'https://api.esrp.microsoft.com' + mainpublisher: 'Playwright' + domaintenantid: '975f013f-7f24-47e8-a7d3-abc4752bf346' + displayName: 'ESRP Release to Maven' diff --git a/.azure-pipelines/settings.xml b/.azure-pipelines/settings.xml new file mode 100644 index 000000000..1617d36e9 --- /dev/null +++ b/.azure-pipelines/settings.xml @@ -0,0 +1,21 @@ + + + + + + DevDiv_PublicPackages + https://pkgs.dev.azure.com/devdiv/DevDiv/_packaging/DevDiv_PublicPackages/maven/v1 + * + + + diff --git a/.claude/skills/playwright-java-release/SKILL.md b/.claude/skills/playwright-java-release/SKILL.md new file mode 100644 index 000000000..988f39b19 --- /dev/null +++ b/.claude/skills/playwright-java-release/SKILL.md @@ -0,0 +1,81 @@ +--- +name: playwright-java-release +description: Prepare a Playwright Java release after the rolling PR has merged — cut the release branch, mark the Maven version, add Java-specific changes to the release notes, draft the GitHub release, and tick the Java boxes in the internal checklist. +--- + +Use this skill after the roll PR for `1.X` is in `main`. The [[playwright-roll]] skill does the roll. + +First, check the driver. We build the driver from the `microsoft/playwright` commit in `scripts/DRIVER_VERSION`, not from a published npm package. For a release, that commit must be on the upstream `release-1.X` branch, and the driver must report `1.X.y`: + +```bash +scripts/build_driver.sh +git -C .upstream fetch origin release-1.X +git -C .upstream merge-base --is-ancestor "$(cat scripts/DRIVER_VERSION)" FETCH_HEAD && echo "on release-1.X" +git -C .upstream show "$(cat scripts/DRIVER_VERSION)":packages/playwright-core/package.json | grep '"version"' +``` + +If a check fails, tell the user, and roll with `scripts/roll_driver.sh release-1.X` (the tip of the branch) or `scripts/roll_driver.sh ` (the commit that the user gives). + +Throughout this doc, replace `X` with the minor version (e.g. `60` for `1.60.0`) and `` with the fork owner (`gh api user --jq .login`). + +The full release checklist lives in the private `microsoft/playwright-internal` repo as the `v1.X checklist` issue. Find its number once: + +```bash +unset GITHUB_TOKEN +ISSUE=$(gh search issues --repo microsoft/playwright-internal "v1.X checklist" --json number --jq '.[0].number') +``` + +Tick each Java box incrementally (one PATCH per item) so the issue reflects accurate state if the flow is interrupted: + +```bash +gh api repos/microsoft/playwright-internal/issues/$ISSUE --jq '.body' > /tmp/body.md +# edit /tmp/body.md to flip "- [ ]" → "- [x]" on the relevant Java item +gh api repos/microsoft/playwright-internal/issues/$ISSUE -X PATCH --field body=@/tmp/body.md +``` + +## 1. Cut the release branch + +Push `release-1.X` from current `upstream/main` (which now contains the merged roll commit): + +```bash +git fetch upstream main +git push upstream upstream/main:refs/heads/release-1.X +``` + +## 2. Release notes + +The Java notes in `docs/src/release-notes-java.md` are written upstream together with the Node.js notes, following the `playwright-release-notes` skill (`../playwright/.claude/skills/playwright-release-notes/SKILL.md`). Assume the `## Version 1.X` section is already on `release-1.X`, and only add what's missing: significant changes that only the Java port has, such as a new JUnit fixture or a Java-only API. Leave out minor bug fixes. To find candidates, list this repo's changes since the previous release branch was cut: + +```bash +git log --oneline --no-merges $(git merge-base upstream/release-1. upstream/main)..upstream/main | grep -E '^\w+ (feat|fix)' +``` + +Ask the user before adding anything. Send additions upstream as `docs: release notes for v1.X Java`, and cherry-pick them to `release-1.X`. + +Write the GitHub release body from the section as step 3 of the upstream skill describes, and save it as `/tmp/v1.X.0-release-notes.md`. Create the draft directly against `release-1.X`. Drafting against `main` and retargeting later is fragile, because every `gh release edit` rotates the `untagged-` ID: + +```bash +gh release create v1.X.0 --repo microsoft/playwright-java --draft \ + --title "v1.X.0" --notes-file /tmp/v1.X.0-release-notes.md --target release-1.X +``` + +## 3. Bump the Maven version on the release branch + +Cut `mark-v-1.X.0` off `upstream/release-1.X`, run `set_maven_version.sh`, and PR back to the release branch: + +```bash +git checkout -b mark-v-1.X.0 upstream/release-1.X +./scripts/set_maven_version.sh 1.X.0 +git add -u +git commit -m "chore: mark 1.X.0" +git push -u origin mark-v-1.X.0 +gh pr create --repo microsoft/playwright-java --head :mark-v-1.X.0 --base release-1.X \ + --title "chore: mark 1.X.0" \ + --body "Updates Maven version in all modules to \`1.X.0\` for the v1.X release." +``` + +`set_maven_version.sh` only invokes `mvn versions:set` on `pom.xml`, `tools/*/pom.xml`, and `examples/pom.xml`, but the root invocation cascades through the reactor, so the expected diff is 11 poms: root + `driver/` + `driver-bundle/` + `playwright/` (from the reactor cascade) + 6 under `tools/` + `examples/`, all flipping `1..0-SNAPSHOT` → `1.X.0`. Any other file in the diff is a red flag. + +## 4. Publish + +The user publishes the draft release manually once the `mark-v-1.X.0` PR is merged. After publishing, the `v1.X.0` tag triggers the Azure DevOps pipelines that push the artifacts to Maven Central (`.azure-pipelines/publish.yml`) and the Docker images to ACR (`.azure-pipelines/publish-docker.yml`). diff --git a/.claude/skills/playwright-roll/SKILL.md b/.claude/skills/playwright-roll/SKILL.md new file mode 100644 index 000000000..000e37a19 --- /dev/null +++ b/.claude/skills/playwright-roll/SKILL.md @@ -0,0 +1,207 @@ +--- +name: playwright-roll +description: Roll Playwright Java to a new microsoft/playwright commit. Moves the commit in scripts/DRIVER_VERSION, builds the driver from source, generates the API, and ports the upstream changes of the client. +--- + +# Rolling Playwright + +Read `AGENTS.md` and `ROLLING.md` first. + +`scripts/DRIVER_VERSION` holds one commit of `microsoft/playwright`. We build the driver from source at that commit. `.upstream/` (gitignored) is a clone of `microsoft/playwright` at that commit. Read the upstream code there. Do not edit, commit or switch branches in `.upstream/`. + +A roll moves `scripts/DRIVER_VERSION` to a newer commit and ports the changes between the two commits. A roll does not use the published npm packages or their versions. + +## 1. Roll + +```bash +./scripts/roll_driver.sh # the tip of upstream main +./scripts/roll_driver.sh release-1.X # the tip of an upstream release branch +./scripts/roll_driver.sh # an exact commit (40 hex digits) +``` + +Use the target that the user gives. If the user gives no target, roll `main` to upstream `main`, and roll a `release-1.X` branch of this repository to upstream `release-1.X`. + +The script writes the commit to `scripts/DRIVER_VERSION`, rolls Node.js, builds the driver from `.upstream/`, generates the API and updates the README. Then get the two commits: + +```bash +old=$(git show HEAD:scripts/DRIVER_VERSION) +new=$(cat scripts/DRIVER_VERSION) +``` + +## 2. Find the changes to port + +List the upstream commits between the two commits that changed a path the Java client depends on: + +- `docs/src/api/` — the input of the API generator. A new or removed method or option, or a changed `langs:` filter, comes from here. +- `packages/playwright-core/src/client/` — the JS client. The Java client is a port of it. +- `packages/isomorphic/` — selector engines, locator generation and parsing, and the aria snapshot code. The client and the server share this code. A change here can change client helpers such as `getByRoleSelector`. +- `packages/playwright/src/matchers/matchers.ts` — the assertion methods. A change here is usually a new option of `LocatorAssertions` or `PageAssertions`. +- `packages/protocol/spec/` — the wire protocol, one `*.yml` file for each area. A new method or event, a renamed parameter or a changed result changes the messages that the Java `*Impl` classes send and receive. + +```bash +git -C .upstream log "$old..$new" --oneline --reverse -- \ + 'docs/src/api/' \ + 'packages/playwright-core/src/client/' \ + 'packages/isomorphic/' \ + 'packages/playwright/src/matchers/matchers.ts' \ + 'packages/protocol/spec/' +``` + +The list starts with the oldest commit. Do these steps for each commit: + +1. Read the commit: `git -C .upstream show `. +2. If the change is internal to JS (bundling, dispatchers, electron, mcp, dashboard, trace viewer, test runner), skip it. +3. If the commit changes `docs/src/api/` or types, read the `langs:` annotations. A feature with `langs: js` or `langs: js, python` does not apply to Java. +4. If the commit adds or changes a public method or option that applies to Java, port it. `roll_driver.sh` already generated the new types and options in the Java interfaces. Usually only the `*Impl` code is missing. +5. Make sure that a later commit did not revert the change. Look at the code at `$new` before you port. +6. Keep notes in a file (for example `/tmp/roll-notes.md`). For each upstream PR, write one line: ported, skipped or already supported, with the reason. The PR description comes from this file. + +## 3. The roll PR + +The PR contains: + +- the new commit in `scripts/DRIVER_VERSION`, and the new `scripts/NODE_VERSION` if Node.js changed; +- the generated interfaces from `roll_driver.sh`; +- the `*Impl` code for each ported feature, the same as the upstream JS client (`.upstream/packages/playwright-core/src/client`); +- changes to the generator (import lists, special cases) if there are new types; +- one small test for each new public API: a listener for a new event, a call for a new method, a regression test for a changed return type. + +Title: `chore(driver): roll to ()`. `` is the version that the driver reports. Read it from the source, not from npm: + +```bash +node -p "require('./.upstream/packages/playwright-core/package.json').version" # for example 1.67.0-next +``` + +Description: list each upstream PR that you ported, each PR that you skipped (with the reason), and each PR that Java already supported. + +## Mimicking the JavaScript implementation + +The Java client is a port of the JS client in `.upstream/packages/playwright-core/src/client/`. When implementing a new or changed method, always read the corresponding JS file first and mirror its logic: + +``` +.upstream/packages/playwright-core/src/client/browserContext.ts +.upstream/packages/playwright-core/src/client/page.ts +.upstream/packages/playwright-core/src/client/tracing.ts +.upstream/packages/playwright-core/src/client/video.ts +.upstream/packages/playwright-core/src/client/locator.ts +.upstream/packages/playwright-core/src/client/network.ts +... +``` + +Key translation rules: + +**Protocol calls** — `await this._channel.methodName(params)` → `sendMessage("methodName", params, NO_TIMEOUT)` + +**Extracting a returned channel object from a result** — JS uses `SomeClass.from(result.foo)` which resolves the JS-side object for a channel reference. In Java, the object was already created when the server sent `__create__`, so extract it from the connection: `connection.getExistingObject(result.getAsJsonObject("foo").get("guid").getAsString())` + +**Async/await** — all `await` calls become synchronous `sendMessage(...)` calls since the Java client is synchronous. + +**`undefined` / optional params** — JS `options?.foo` checks translate to `if (options != null && options.foo != null)` null checks before adding to the params `JsonObject`. + +**`_channel` fields** — the JS `this._channel.foo` maps to calling `sendMessage("foo", ...)` on `this` in the Impl class. + +**Channel object references in params** — when a JS call passes a channel object as a param (e.g. `{ frame: frame._channel }`), in Java pass the guid: `params.addProperty("frame", ((FrameImpl) frame).guid)`. + +**Module-level state** — JS sometimes keeps state at module level (e.g. the call id counter in `createCallIdGenerator()`). Don't translate it into a `static` field with atomics; keep it per `Connection` (or per object) as a plain field. Each connection is used from one thread, so the port should not change the threading model. + +## Fixing generator and compilation errors + +After running `./scripts/roll_driver.sh`, the build often fails because the generated Java interfaces reference new types or methods that the generator doesn't know how to handle yet, and the `*Impl` classes don't implement new interface methods. + +### API generator fixes (scripts/generate_java_api.mts) + +The generator has hardcoded lists that control which imports are added to each generated file. When new classes appear in the API, add them to the relevant lists in `INTERFACE_IMPORTS`: +- `options.*` import list — add new classes that use types from the options package +- `java.util.*` import list — add new classes that use `List`, `Map`, etc. +- `java.util.function.Consumer` list — add new classes with `Consumer`-typed event handlers + +Type mapping: when JS-only types (like `Disposable`) are used as return types in Java-compatible methods, add a mapping in `BUILTIN_TYPES`. For example, `Disposable` → `AutoCloseable`. + +Event handler generation: events with `void` type generate invalid `Consumer`. Handle this case in `Event.writeListenerMethods` by emitting `Runnable` instead. + +Type names: give every new object type an explicit alias upstream. When a roll brings in a new object type (an option or return value written as `<[Object]>` in `docs/src/api/`), it should usually have its own `* alias: ` line. Without one, each language's generator makes up a name, and the Java one can be vague (e.g. `Style`) or differ between Java and .NET. +- Prefer a plain `alias:` so every language gets the same name. Use `alias-java:` / `alias-csharp:` only when a language really needs a different name. +- Add the aliases in a small upstream docs PR (e.g. microsoft/playwright#43164, `Style` → `ScreencastActionStyle`). Don't special-case names in the generator. +- After the upstream change lands, roll to a driver that includes it. Don't hand-edit the generated files. + +After editing the generator, re-run it. Node.js runs the TypeScript file as is: +``` +node scripts/generate_java_api.mts .upstream +``` + +### Impl class fixes (playwright/src/main/java/com/microsoft/playwright/impl/) + +After regenerating, compile `playwright/` to find what's missing: +``` +mvn -f playwright/pom.xml compile 2>&1 | grep "ERROR" +``` + +Common patterns: + +**Return type changed (e.g. `void` → `AutoCloseable`):** Update the method signature in the Impl class and return an appropriate `AutoCloseable`. Check the JS client to see what kind of disposable is used: +- If JS returns `DisposableObject.from(result.disposable)` — the server created a disposable channel object. Extract its guid from the protocol result and return `connection.getExistingObject(guid)` (a `DisposableObject`). +- If JS returns `new DisposableStub(() => this.someCleanup())` — it's a local callback. Return `new DisposableStub(this::someCleanup)` in Java. +- Examples: `addInitScript`/`exposeBinding`/`exposeFunction` → `DisposableObject`; `route(...)` → `DisposableStub(() -> unroute(...))`; `Tracing.group` → `DisposableStub(this::groupEnd)`; `Video.start` → `DisposableStub(this::stop)`. + +**New method missing:** Add a stub implementation. Common patterns: +- Simple protocol message: `sendMessage("methodName", params, NO_TIMEOUT)` +- New property accessor (e.g. from initializer): `return initializer.get("fieldName").getAsString()` +- Delegation to mainFrame (for Page methods): `return mainFrame.locator(":root").method(...)` + +**New interface entirely (e.g. `Debugger`):** Create a new `*Impl` class extending `ChannelOwner`, implement the interface, and register the type in `Connection.java`'s switch statement. Initialize the field from the parent's initializer in the parent's constructor (e.g. `connection.getExistingObject(initializer.getAsJsonObject("debugger").get("guid").getAsString())`). + +**Field visibility:** If a field needs to be accessed from a sibling Impl class (e.g. setting `existingResponse` on `RequestImpl` from `BrowserContextImpl`), change it from `private` to package-private. + +**`ListenerCollection` only supports `Consumer`, not `Runnable`.** For void events that use `Runnable` handlers, maintain a plain `List` instead. + +**Protocol changes that remove events** — when a method's response now returns an object directly instead of via a subsequent event, update the Impl to capture it from the `sendMessage` result and remove the old event handler. Example: `videoStart` used to fire a `"video"` page event to deliver the artifact; it now returns the artifact directly in the response. Check git history of the upstream JS client when tests hang unexpectedly. + +**Protocol parameter renames** — protocol parameter names can change between versions (e.g. `wsEndpoint` → `endpoint` in `BrowserType.connect`). When a test fails with `expected string, got undefined` or similar validation errors from the driver, check `packages/protocol/spec/*.yml` for the current parameter names and update the corresponding `params.addProperty(...)` call in the Impl class. Also check the JS client (`src/client/`) to see how it builds the params object. + +## Rebuilding the driver modules after a roll + +`./scripts/roll_driver.sh` does the full roll. It moves `scripts/DRIVER_VERSION` to the new commit. It builds the driver from `.upstream/` into `driver/src/main/resources/driver/package/` and `driver-bundle/src/main/resources/driver//`. It generates the Java interfaces from the upstream docs, and it updates the README. If all steps pass, the next `mvn` command uses the new driver. + +If a step fails, the script stops before Maven installs the new driver. The most frequent cause is the API generator, which fails on a new type (see *Fixing generator and compilation errors*). After that, the test JVM loads the **old** driver from `target/classes` or from the installed jar, although the source resources already hold the new driver. + +To correct this, install the two driver modules one time before you run the tests again: +``` +mvn -f driver/pom.xml install -DskipTests +mvn -f driver-bundle/pom.xml install -DskipTests +``` + +If `scripts/generate_api.sh` prints `.upstream/ is not at ...`, run `scripts/build_driver.sh`. + +## Porting and verifying tests + +**Before porting an upstream test file, check the API exists in Java.** The upstream repo may have test files for brand-new APIs that haven't been added to the Java interface yet (e.g., `screencast.spec.ts` tests `page.screencast` which may not be in the generated `Page.java`). Check `git diff main --name-only` to see what interfaces were added this roll, and verify the method exists in the generated Java interface before porting. + +**Java test file names don't always match upstream spec names.** `TestScreencast.java` tests `recordVideo` video-file recording (which corresponds to `video.spec.ts`), not the newer `page.screencast` streaming API (`screencast.spec.ts`). When comparing coverage, check test *content*, not just file names. + +**Remove tests for behavior that was removed upstream.** When the JS client drops a client-side error check (e.g., "Page is not yet closed before saveAs", "Page did not produce any video frames"), delete the corresponding Java tests rather than trying to keep them passing. Check the upstream `tests/library/` spec to confirm the behavior is gone. + +**Run the full suite to catch regressions, re-run flaky failures in isolation.** Some tests (e.g., `TestClientCertificates#shouldKeepSupportingHttp`) time out only under heavy parallel load. Run the failing test alone to confirm it's flaky before investigating further. + +**Don't change the driver environment per test.** The driver is a JVM-wide singleton, so `Playwright.CreateOptions.env` (e.g. `PWTEST_UNDER_TEST`) only applies to the first `Playwright.create()` in the JVM. Forcing a new driver instance from a test breaks unrelated tests (`ClosedFileSystemException`). Test through what the public API exposes instead — e.g. screencast action decorations render in a closed shadow root, so the style test checks screencast frames for the decoration's pixels rather than querying the DOM. + +## Reviewing the diff before the PR + +Before opening the PR (and before pushing follow-ups), read `git diff upstream/main` end to end: +- **Removed generated methods** — `git diff upstream/main -- playwright/src/main/java/com/microsoft/playwright/*.java | grep '^-.*;'`. A return type change like `void` → `AutoCloseable` still compiles for callers but breaks code compiled against the previous jar. Call these out in the PR. +- **Behavior beyond upstream** — client-side checks or fixes not in the JS client (e.g. an option that was never sent). Keep them only if deliberate, and list them in the PR. +- **Stray files** — local config such as `.claude/settings.json`, or unrelated edits like `examples/pom.xml`, must not be committed. + +## Diagnosing hanging tests + +When `mvn test` hangs and surefire eventually times the JVM out, it writes thread dumps to `playwright/target/surefire-reports/-jvmRun*.dump`. To find the stuck test: + +``` +grep "com.microsoft.playwright.Test" playwright/target/surefire-reports/*-jvmRun1.dump | sort -u +``` + +Each line is a stack frame inside a test method — typically you'll see one or two test methods blocked on a `Future.get()`, `waitForCondition`, or similar. That's the hanging test. + +When you've identified a hanging test: +1. Run it in isolation: `mvn -f playwright/pom.xml test -Dtest='TestClass#testMethod'`. If it passes alone, it's a parallel-load flake — note it but move on. +2. If it still hangs in isolation, look for a recent fix in the upstream repo for the *same* test name. Use `git -C .upstream log --oneline -- tests/library/.spec.ts`. Upstream fixes for client-side hangs are often small and portable (e.g. `about:blank` → `server.EMPTY_PAGE` from microsoft/playwright#39840 fixed `route-web-socket.spec.ts` arraybuffer hangs — apparently some browser changed the WebSocket origin policy on `about:blank`). +3. When porting an upstream fix, mirror the helper signature change rather than hard-coding workarounds. E.g. if upstream added a `server` parameter to `setupWS`, do the same in Java by injecting `Server server` via the JUnit fixture (`@FixtureTest` already wires up `ServerLifecycle`, so adding `Server server` to the test method signature is enough — no class-level boilerplate). Watch for local-variable shadowing when you add a `Server server` parameter to a method that already has a `WebSocketRoute server` local; rename the local. diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..0163c60ab --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,28 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/java +{ + "name": "Java", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/java:1-21-bookworm", + + "features": { + "ghcr.io/devcontainers/features/java:1": { + "version": "none", + "installGradle": "false", + "installMaven": "true" + }, + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} + } + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "java -version", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md deleted file mode 100644 index 02838603a..000000000 --- a/.github/ISSUE_TEMPLATE/bug.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -name: Bug Report -about: Something doesn't work like it should? Tell us! -title: "[BUG]" -labels: '' -assignees: '' - ---- - -**Context:** -- Playwright Version: [what Playwright version do you use?] -- Operating System: [e.g. Windows, Linux or Mac] -- Browser: [e.g. All, Chromium, Firefox, WebKit] -- Extra: [any specific details about your environment] - - - - -**Code Snippet** - -Help us help you! Put down a short code snippet that illustrates your bug and -that we can run and debug locally. For example: - -```java -import com.microsoft.playwright.*; - -public class ExampleReproducible { - public static void main(String[] args) { - try (Playwright playwright = Playwright.create()) { - Browser browser = playwright.chromium().launch(); - BrowserContext context = browser.newContext(); - Page page = context.newPage(); - // ... - } - } -} -``` - -**Describe the bug** - -Add any other details about the problem here. diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 000000000..7fb77f29f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,95 @@ +name: Bug Report 🪲 +description: Create a bug report to help us improve +title: '[Bug]: ' +body: + - type: markdown + attributes: + value: | + # Please follow these steps first: + - type: markdown + attributes: + value: | + ## Troubleshoot + If Playwright is not behaving the way you expect, we'd ask you to look at the [documentation](https://playwright.dev/java/docs/intro) and search the issue tracker for evidence supporting your expectation. + Please make reasonable efforts to troubleshoot and rule out issues with your code, the configuration, or any 3rd party libraries you might be using. + Playwright offers [several debugging tools](https://playwright.dev/java/docs/debug) that you can use to troubleshoot your issues. + - type: markdown + attributes: + value: | + ## Ask for help through appropriate channels + If you feel unsure about the cause of the problem, consider asking for help on for example [StackOverflow](https://stackoverflow.com/questions/ask) or our [Discord channel](https://aka.ms/playwright/discord) before posting a bug report. The issue tracker is not a help forum. + - type: markdown + attributes: + value: | + ## Make a minimal reproduction + To file the report, you will need a GitHub repository with a minimal (but complete) example and simple/clear steps on how to reproduce the bug. + The simpler you can make it, the more likely we are to successfully verify and fix the bug. + - type: markdown + attributes: + value: | + > [!IMPORTANT] + > Bug reports without a minimal reproduction will be rejected. + + --- + - type: input + id: version + attributes: + label: Version + description: | + The version of Playwright you are using. + Is it the [latest](https://github.com/microsoft/playwright-java/releases)? Test and see if the bug has already been fixed. + placeholder: ex. 1.41.1 + validations: + required: true + - type: textarea + id: reproduction + attributes: + label: Steps to reproduce + description: Please link to a repository with a minimal reproduction and describe accurately how we can reproduce/verify the bug. + placeholder: | + Example steps (replace with your own): + 1. Clone my repo at https://github.com//example + 2. mvn test + 3. You should see the error come up + validations: + required: true + - type: textarea + id: expected + attributes: + label: Expected behavior + description: A description of what you expect to happen. + placeholder: I expect to see X or Y + validations: + required: true + - type: textarea + id: what-happened + attributes: + label: Actual behavior + description: | + A clear and concise description of the unexpected behavior. + Please include any relevant output here, especially any error messages. + placeholder: A bug happened! + validations: + required: true + - type: textarea + id: context + attributes: + label: Additional context + description: Anything else that might be relevant + validations: + required: false + - type: textarea + id: envinfo + attributes: + label: Environment + description: | + Please provide information about the environment you are running in. + placeholder: | + - Operating System: [Ubuntu 22.04] + - CPU: [arm64] + - Browser: [All, Chromium, Firefox, WebKit] + - Java Version: [20] + - Maven Version: [3.8.6] + - Other info: + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 918439bd8..13b5b0a96 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,4 +1,5 @@ +blank_issues_enabled: false contact_links: - - name: Join our Slack community - url: https://aka.ms/playwright-slack - about: Ask questions and discuss with other community members \ No newline at end of file + - name: Join our Discord Server + url: https://aka.ms/playwright/discord + about: Ask questions and discuss with other community members diff --git a/.github/ISSUE_TEMPLATE/documentation.yml b/.github/ISSUE_TEMPLATE/documentation.yml new file mode 100644 index 000000000..276d3347b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/documentation.yml @@ -0,0 +1,29 @@ +name: Documentation 📖 +description: Submit a request to add or update documentation +title: '[Docs]: ' +labels: ['Documentation :book:'] +body: + - type: markdown + attributes: + value: | + ### Thank you for helping us improve our documentation! + Please be sure you are looking at [the Next version of the documentation](https://playwright.dev/java/docs/next/intro) before opening an issue here. + - type: textarea + id: links + attributes: + label: Page(s) + description: | + Links to one or more documentation pages that should be modified. + If you are reporting an issue with a specific section of a page, try to link directly to the nearest anchor. + If you are suggesting that a new page be created, link to the parent of the proposed page. + validations: + required: true + - type: textarea + id: description + attributes: + label: Description + description: | + Describe the change you are requesting. + If the issue pertains to a single function or matcher, be sure to specify the entire call signature. + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml new file mode 100644 index 000000000..efec3315c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -0,0 +1,30 @@ +name: Feature Request 🚀 +description: Submit a proposal for a new feature +title: '[Feature]: ' +body: + - type: markdown + attributes: + value: | + ### Thank you for taking the time to suggest a new feature! + - type: textarea + id: description + attributes: + label: '🚀 Feature Request' + description: A clear and concise description of what the feature is. + validations: + required: true + - type: textarea + id: example + attributes: + label: Example + description: Describe how this feature would be used. + validations: + required: false + - type: textarea + id: motivation + attributes: + label: Motivation + description: | + Outline your motivation for the proposal. How will it make Playwright better? + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 37ec8a7d2..000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Feature request -about: Request new features to be added -title: "[Feature]" -labels: '' -assignees: '' - ---- - -Let us know what functionality you'd like to see in Playwright and what your use case is. -Do you think others might benefit from this as well? diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md deleted file mode 100644 index 55abfc3ec..000000000 --- a/.github/ISSUE_TEMPLATE/question.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: I have a question -about: Feel free to ask us your questions! -title: "[Question]" -labels: '' -assignees: '' - ---- - - diff --git a/.github/ISSUE_TEMPLATE/question.yml b/.github/ISSUE_TEMPLATE/question.yml new file mode 100644 index 000000000..0b013d189 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.yml @@ -0,0 +1,27 @@ +name: 'Questions / Help 💬' +description: If you have questions, please check StackOverflow or Discord +title: '[Please read the message below]' +labels: [':speech_balloon: Question'] +body: + - type: markdown + attributes: + value: | + ## Questions and Help 💬 + + This issue tracker is reserved for bug reports and feature requests. + + For anything else, such as questions or getting help, please see: + + - [The Playwright documentation](https://playwright.dev/java) + - [Our Discord server](https://aka.ms/playwright/discord) + - type: checkboxes + id: no-post + attributes: + label: | + Please do not submit this issue. + description: | + > [!IMPORTANT] + > This issue will be closed. + options: + - label: I understand + required: true diff --git a/.github/ISSUE_TEMPLATE/regression.md b/.github/ISSUE_TEMPLATE/regression.md deleted file mode 100644 index 1da4c0b32..000000000 --- a/.github/ISSUE_TEMPLATE/regression.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Report regression -about: Functionality that used to work and does not any more -title: "[REGRESSION]: " -labels: '' -assignees: '' - ---- - -**Context:** -- GOOD Playwright Version: [what Playwright version worked nicely?] -- BAD Playwright Version: [what Playwright version doesn't work any more?] -- Operating System: [e.g. Windows, Linux or Mac] -- Extra: [any specific details about your environment] - -**Code Snippet** - -Help us help you! Put down a short code snippet that illustrates your bug and -that we can run and debug locally. For example: - -```java -import com.microsoft.playwright.*; - -public class ExampleReproducible { - public static void main(String[] args) { - try (Playwright playwright = Playwright.create()) { - Browser browser = playwright.chromium().launch(); - BrowserContext context = browser.newContext(); - Page page = context.newPage(); - // ... - } - } -} -``` - -**Describe the bug** - -Add any other details about the problem here. diff --git a/.github/ISSUE_TEMPLATE/regression.yml b/.github/ISSUE_TEMPLATE/regression.yml new file mode 100644 index 000000000..42de755b4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/regression.yml @@ -0,0 +1,90 @@ +name: Report regression +description: Functionality that used to work and does not any more +title: "[Regression]: " +body: + - type: markdown + attributes: + value: | + # Please follow these steps first: + - type: markdown + attributes: + value: | + ## Make a minimal reproduction + To file the report, you will need a GitHub repository with a minimal (but complete) example and simple/clear steps on how to reproduce the regression. + The simpler you can make it, the more likely we are to successfully verify and fix the regression. + - type: markdown + attributes: + value: | + > [!IMPORTANT] + > Regression reports without a minimal reproduction will be rejected. + + --- + - type: input + id: goodVersion + attributes: + label: Last Good Version + description: | + Last version of Playwright where the feature was working. + placeholder: ex. 1.40.1 + validations: + required: true + - type: input + id: badVersion + attributes: + label: First Bad Version + description: | + First version of Playwright where the feature was broken. + Is it the [latest](https://github.com/microsoft/playwright-java/releases)? Test and see if the regression has already been fixed. + placeholder: ex. 1.41.1 + validations: + required: true + - type: textarea + id: reproduction + attributes: + label: Steps to reproduce + description: Please link to a repository with a minimal reproduction and describe accurately how we can reproduce/verify the bug. + placeholder: | + Example steps (replace with your own): + 1. Clone my repo at https://github.com//example + 2. mvn test + 3. You should see the error come up + validations: + required: true + - type: textarea + id: expected + attributes: + label: Expected behavior + description: A description of what you expect to happen. + placeholder: I expect to see X or Y + validations: + required: true + - type: textarea + id: what-happened + attributes: + label: Actual behavior + description: A clear and concise description of the unexpected behavior. + placeholder: A bug happened! + validations: + required: true + - type: textarea + id: context + attributes: + label: Additional context + description: Anything else that might be relevant + validations: + required: false + - type: textarea + id: envinfo + attributes: + label: Environment + description: | + Please provide information about the environment you are running in. + placeholder: | + - Operating System: [Ubuntu 22.04] + - CPU: [arm64] + - Browser: [All, Chromium, Firefox, WebKit] + - Java Version: [20] + - Maven Version: [3.8.6] + - Other info: + validations: + required: true diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..fcee265fe --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,31 @@ +version: 2 +updates: + - package-ecosystem: "maven" + directory: "/" # Location of the pom.xml file + schedule: + interval: "monthly" + open-pull-requests-limit: 10 + groups: + # Create a group of dependencies to be updated together in one pull request + all: + applies-to: version-updates + patterns: + - "*" + update-types: + - "minor" + - "patch" + allow: + - dependency-type: "direct" # Optional: Only update direct dependencies + - dependency-type: "indirect" # Optional: Only update indirect (transitive) dependencies + cooldown: + default-days: 7 + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + groups: + actions: + patterns: + - "*" + cooldown: + default-days: 7 diff --git a/.github/workflows/agent-review.yml b/.github/workflows/agent-review.yml new file mode 100644 index 000000000..253f96729 --- /dev/null +++ b/.github/workflows/agent-review.yml @@ -0,0 +1,36 @@ +# Hands the pull request to the Playwright bot when a maintainer applies agent-review. Nothing +# else of the bot lives in this repo. Apply the label again to start another run. +name: "Agent: review" + +on: + # Runs from the default branch, also when the PR has a merge conflict. It never checks out the + # PR. The job skips a PR from a fork: the bot cannot push to a fork. + pull_request_target: + types: [labeled] + +permissions: {} + +jobs: + pr: + name: Hand the PR to the bot + if: >- + github.repository_owner == 'microsoft' && github.event.label.name == 'agent-review' + && github.event.pull_request.head.repo.full_name == github.repository + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + id: app-token + with: + client-id: ${{ vars.PLAYWRIGHT_APP_CLIENT_ID }} + private-key: ${{ secrets.PLAYWRIGHT_PRIVATE_KEY }} + owner: microsoft + repositories: devops.playwright.dev + permission-actions: write + - name: Start the bot + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + NUMBER: ${{ github.event.pull_request.number }} + run: >- + gh workflow run pr.yml --repo microsoft/devops.playwright.dev --ref main + -f repo="$GITHUB_REPOSITORY" -f pr="$NUMBER" diff --git a/.github/workflows/agent-task.yml b/.github/workflows/agent-task.yml new file mode 100644 index 000000000..e9c57ce38 --- /dev/null +++ b/.github/workflows/agent-task.yml @@ -0,0 +1,36 @@ +# Starts the Playwright bot with the task that you type. The bot does it with the skills of this +# repo, and opens the pull request as the app. Start it from the Actions tab. +name: "Agent: task" + +on: + workflow_dispatch: + inputs: + task: + description: What the bot should do + type: string + required: true + +permissions: {} + +jobs: + start: + name: Hand the task to the bot + if: github.repository == 'microsoft/playwright-java' + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + id: app-token + with: + client-id: ${{ vars.PLAYWRIGHT_APP_CLIENT_ID }} + private-key: ${{ secrets.PLAYWRIGHT_PRIVATE_KEY }} + owner: microsoft + repositories: devops.playwright.dev + permission-actions: write + - name: Start the bot + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + TASK: ${{ inputs.task }} + run: >- + gh workflow run task.yml --repo microsoft/devops.playwright.dev --ref main + -f repo="$GITHUB_REPOSITORY" -f task="$TASK" diff --git a/.github/workflows/agent-triage.yml b/.github/workflows/agent-triage.yml new file mode 100644 index 000000000..fb555215b --- /dev/null +++ b/.github/workflows/agent-triage.yml @@ -0,0 +1,36 @@ +# Hands the issue to the Playwright bot when a maintainer applies agent-triage or agent-implement. +# Nothing else of the bot lives in this repo. Apply the label again to start another run. +name: "Agent: triage" + +on: + issues: + types: [labeled] + +permissions: {} + +jobs: + issue: + name: Hand the issue to the bot + if: >- + github.repository_owner == 'microsoft' && ( + github.event.label.name == 'agent-triage' || + github.event.label.name == 'agent-implement') + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + id: app-token + with: + client-id: ${{ vars.PLAYWRIGHT_APP_CLIENT_ID }} + private-key: ${{ secrets.PLAYWRIGHT_PRIVATE_KEY }} + owner: microsoft + repositories: devops.playwright.dev + permission-actions: write + - name: Start the bot + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + NUMBER: ${{ github.event.issue.number }} + LABEL: ${{ github.event.label.name }} + run: >- + gh workflow run issue.yml --repo microsoft/devops.playwright.dev --ref main + -f repo="$GITHUB_REPOSITORY" -f issue="$NUMBER" -f label="$LABEL" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index b6ac1f720..000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Publish -on: - release: - types: [published] - push: - branches: - - main -jobs: - build: - timeout-minutes: 30 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: microsoft/playwright-github-action@v1.5.0 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml - server-username: MAVEN_USERNAME # env variable for username in deploy - server-password: MAVEN_PASSWORD # env variable for token in deploy - gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import - gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase - - name: Download drivers - shell: bash - run: scripts/download_driver_for_all_platforms.sh - - name: Publish to Maven Central - run: mvn deploy --batch-mode -D skipTests --activate-profiles release --no-transfer-progress - env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} diff --git a/.github/workflows/publish_canary_docker.yml b/.github/workflows/publish_canary_docker.yml deleted file mode 100644 index 963daae88..000000000 --- a/.github/workflows/publish_canary_docker.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: "devrelease:docker" - -on: - push: - branches: - - main -jobs: - publish-canary-docker: - name: "publish to DockerHub" - runs-on: ubuntu-20.04 - if: github.repository == 'microsoft/playwright-java' - steps: - - uses: actions/checkout@v2 - - uses: azure/docker-login@v1 - with: - login-server: playwright.azurecr.io - username: playwright - password: ${{ secrets.DOCKER_PASSWORD }} - - uses: actions/checkout@v2 - - name: Set up Docker QEMU for arm64 docker builds - uses: docker/setup-qemu-action@v1 - with: - platforms: arm64 - - name: publish docker canary - run: ./utils/docker/publish_docker.sh canary diff --git a/.github/workflows/publish_docker_release.yml b/.github/workflows/publish_docker_release.yml deleted file mode 100644 index 357ad573c..000000000 --- a/.github/workflows/publish_docker_release.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Publish Release Docker -on: - release: - types: [published] - workflow_dispatch: - inputs: - is_release: - required: true - type: boolean - description: "Is this a release image?" - branches: - - release-* -jobs: - publish-canary-docker: - name: publish to DockerHub - runs-on: ubuntu-20.04 - if: github.repository == 'microsoft/playwright-java' - steps: - - uses: actions/checkout@v2 - - uses: azure/docker-login@v1 - with: - login-server: playwright.azurecr.io - username: playwright - password: ${{ secrets.DOCKER_PASSWORD }} - - name: Set up Docker QEMU for arm64 docker builds - uses: docker/setup-qemu-action@v1 - with: - platforms: arm64 - - uses: actions/checkout@v2 - - run: ./utils/docker/publish_docker.sh stable - if: (github.event_name != 'workflow_dispatch' && !github.event.release.prerelease) || (github.event_name == 'workflow_dispatch' && github.event.inputs.is_release == 'true') - - run: ./utils/docker/publish_docker.sh canary - if: (github.event_name != 'workflow_dispatch' && github.event.release.prerelease) || (github.event_name == 'workflow_dispatch' && github.event.inputs.is_release != 'true') diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 69a1daf75..e0ded9c8a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,34 +8,45 @@ on: branches: - main - release-* +env: + PW_MAX_RETRIES: 3 jobs: dev: - timeout-minutes: 30 + timeout-minutes: 90 strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [playwright-x64-ubuntu24-64-core, playwright-x64-server2025-64-core, macos-26-xlarge] browser: [chromium, firefox, webkit] runs-on: ${{ matrix.os }} + defaults: + run: + shell: bash steps: - - uses: actions/checkout@v2 - - uses: microsoft/playwright-github-action@v1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: microsoft/playwright/.github/actions/ci-env@d1518e3e3fca90352c4390814943cced496fd7e4 # main - name: Set up JDK 1.8 - uses: actions/setup-java@v2 + uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: zulu java-version: 8 - - name: Download drivers + - name: Set up Node.js + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: 24 + - name: Build the driver shell: bash - run: scripts/download_driver_for_all_platforms.sh + run: scripts/build_driver.sh - name: Build & Install run: mvn -B install -D skipTests --no-transfer-progress + - name: Install browsers + run: mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install --with-deps" -f playwright/pom.xml --no-transfer-progress - name: Run tests - run: mvn test --no-transfer-progress --fail-at-end + run: $CI_ENV_EXEC mvn test --no-transfer-progress --fail-at-end ${{ runner.os == 'Windows' && '-D junit.parallel.factor=0.25' || '' }} -D org.slf4j.simpleLogger.showDateTime=true -D org.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss env: BROWSER: ${{ matrix.browser }} - name: Run tracing tests w/ sources - run: mvn test --no-transfer-progress --fail-at-end -D test=*TestTracing* + run: $CI_ENV_EXEC mvn test --no-transfer-progress --fail-at-end --projects=playwright -D test=*TestTracing* -D org.slf4j.simpleLogger.showDateTime=true -D org.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss env: BROWSER: ${{ matrix.browser }} PLAYWRIGHT_JAVA_SRC: src/test/java @@ -49,63 +60,79 @@ jobs: java -jar target/test-spring-boot*.jar stable: - timeout-minutes: 30 + timeout-minutes: 90 strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - browser-channel: [chrome] include: - - os: windows-latest - browser-channel: msedge - - os: macos-latest + - os: playwright-x64-ubuntu24-64-core + browser-channel: chrome + - os: playwright-x64-server2025-64-core browser-channel: msedge runs-on: ${{ matrix.os }} + defaults: + run: + shell: bash steps: - - uses: actions/checkout@v2 - - uses: microsoft/playwright-github-action@v1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: microsoft/playwright/.github/actions/ci-env@d1518e3e3fca90352c4390814943cced496fd7e4 # main - name: Install Media Pack - if: matrix.os == 'windows-latest' + if: runner.os == 'Windows' shell: powershell run: Install-WindowsFeature Server-Media-Foundation - name: Set up JDK 1.8 - uses: actions/setup-java@v2 + uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: zulu java-version: 8 - - name: Download drivers + - name: Set up Node.js + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: 24 + - name: Build the driver shell: bash - run: scripts/download_driver_for_all_platforms.sh + run: scripts/build_driver.sh - name: Build & Install run: mvn -B install -D skipTests --no-transfer-progress + - name: Install browsers + run: mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install --with-deps" -f playwright/pom.xml --no-transfer-progress - name: Run tests - run: mvn test --no-transfer-progress --fail-at-end + run: $CI_ENV_EXEC mvn test --no-transfer-progress --fail-at-end ${{ runner.os == 'Windows' && '-D junit.parallel.factor=0.25' || '' }} -D org.slf4j.simpleLogger.showDateTime=true -D org.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss env: BROWSER: chromium BROWSER_CHANNEL: ${{ matrix.browser-channel }} - Java_17: - timeout-minutes: 30 + Java_25: + timeout-minutes: 90 strategy: fail-fast: false matrix: - browser: [chromium, firefox, webkit] - runs-on: ubuntu-latest + browser: [chromium] + runs-on: playwright-x64-ubuntu24-64-core steps: - - uses: actions/checkout@v2 - - uses: microsoft/playwright-github-action@v1 - - name: Set up JDK 17 - uses: actions/setup-java@v2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: microsoft/playwright/.github/actions/ci-env@d1518e3e3fca90352c4390814943cced496fd7e4 # main + - name: Set up JDK 25 + uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 + with: + distribution: temurin + java-version: 25 + - name: Set up Node.js + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - distribution: adopt - java-version: 17 - - name: Download drivers + node-version: 24 + - name: Build the driver shell: bash - run: scripts/download_driver_for_all_platforms.sh + run: scripts/build_driver.sh - name: Build & Install run: mvn -B install -D skipTests --no-transfer-progress + # Runs on JDK 25: with JDK 8 the javadoc plugin never uses the module path. + - name: Verify javadoc + run: scripts/verify_javadoc.sh + - name: Install browsers + run: mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install --with-deps" -f playwright/pom.xml --no-transfer-progress - name: Run tests - run: mvn test --no-transfer-progress --fail-at-end + run: $CI_ENV_EXEC mvn test --no-transfer-progress --fail-at-end env: BROWSER: ${{ matrix.browser }} - name: Test Spring Boot Starter diff --git a/.github/workflows/test_cli.yml b/.github/workflows/test_cli.yml index df206608b..c6b0bda5f 100644 --- a/.github/workflows/test_cli.yml +++ b/.github/workflows/test_cli.yml @@ -13,15 +13,19 @@ jobs: timeout-minutes: 30 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Cache Maven packages - uses: actions/cache@v2 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: Download drivers - run: scripts/download_driver_for_all_platforms.sh + - name: Set up Node.js + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: 24 + - name: Build the driver + run: scripts/build_driver.sh - name: Intall Playwright run: mvn install -D skipTests --no-transfer-progress - name: Test CLI @@ -29,3 +33,6 @@ jobs: - name: Test CLI version shell: bash run: tools/test-cli-version/test.sh + - name: Test CLI Fatjar + shell: bash + run: tools/test-cli-fatjar/test.sh diff --git a/.github/workflows/test_docker.yml b/.github/workflows/test_docker.yml index cc3a18fd6..a442ddbb2 100644 --- a/.github/workflows/test_docker.yml +++ b/.github/workflows/test_docker.yml @@ -1,4 +1,4 @@ -name: Test Docker +name: Docker on: push: paths: @@ -11,20 +11,81 @@ on: paths: - .github/workflows/test_docker.yml - '**/Dockerfile*' - - scripts/CLI_VERSION + - scripts/DRIVER_VERSION + - scripts/NODE_VERSION - '**/pom.xml' branches: - main - release-* jobs: test: - timeout-minutes: 60 - runs-on: ubuntu-20.04 + name: Test + timeout-minutes: 120 + runs-on: ${{ matrix.runs-on }} + env: + PW_MAX_RETRIES: 3 + strategy: + fail-fast: false + matrix: + flavor: [jammy, noble, resolute] + runs-on: [ubuntu-24.04, ubuntu-24.04-arm] + include: + - runs-on: ubuntu-24.04 + arch: amd64 + - runs-on: ubuntu-24.04-arm + arch: arm64 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - name: Set up Node.js + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: 24 - name: Build Docker image - run: bash utils/docker/build.sh --amd64 focal playwright-java:localbuild-focal - - name: Test run: | - CONTAINER_ID="$(docker run --rm --ipc=host -v $(pwd):/root/playwright --name playwright-docker-test -d -t playwright-java:localbuild-focal /bin/bash)" - docker exec "${CONTAINER_ID}" /root/playwright/tools/test-local-installation/create_project_and_run_tests.sh + bash utils/docker/build.sh --${{ matrix.arch }} ${{ matrix.flavor }} playwright-java:localbuild-${{ matrix.flavor }} + # The scan looks at the content of the files, in all layers of the image. + - name: Scan the image for secrets + uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0 + with: + image-ref: playwright-java:localbuild-${{ matrix.flavor }} + scanners: secret + exit-code: '1' + # The secret scan needs no vulnerability database. + cache: 'false' + - name: Start container + run: | + CONTAINER_ID=$(docker run \ + --rm \ + --name playwright-docker-test \ + --platform linux/${{ matrix.arch }} \ + --user=pwuser \ + --workdir /home/pwuser \ + --shm-size=2g \ + -e CI \ + -e PW_MAX_RETRIES \ + -d -t \ + playwright-java:localbuild-${{ matrix.flavor }} /bin/bash) + echo "CONTAINER_ID=$CONTAINER_ID" >> $GITHUB_ENV + + - name: Copy repository inside docker container + run: | + # The container does not need .upstream/, and it is large. + rm -rf .upstream + docker cp . "$CONTAINER_ID":/home/pwuser/playwright + # build.sh installed the SNAPSHOT artifacts into the local Maven repository + # of the runner; give them to pwuser so the test projects resolve them. + docker exec "$CONTAINER_ID" mkdir -p /home/pwuser/.m2/repository/com/microsoft + docker cp ~/.m2/repository/com/microsoft/playwright "$CONTAINER_ID":/home/pwuser/.m2/repository/com/microsoft/playwright + docker exec --user root "$CONTAINER_ID" chown -R pwuser /home/pwuser/playwright /home/pwuser/.m2 + + - name: Run smoke tests in container + run: | + docker exec "$CONTAINER_ID" /home/pwuser/playwright/tools/test-local-installation/create_project_and_run_tests.sh -Dgroups=smoke + + - name: Test ClassLoader + run: | + docker exec "${CONTAINER_ID}" /home/pwuser/playwright/tools/test-spring-boot-starter/package_and_run_async_test.sh + + - name: Stop container + run: | + docker stop "$CONTAINER_ID" diff --git a/.github/workflows/trigger_internal_tests.yml b/.github/workflows/trigger_internal_tests.yml deleted file mode 100644 index a6ef471a5..000000000 --- a/.github/workflows/trigger_internal_tests.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: "Internal Tests" - -on: - push: - branches: - - main - - release-* - -jobs: - trigger: - name: "trigger" - runs-on: ubuntu-20.04 - steps: - - run: | - curl -X POST \ - -H "Accept: application/vnd.github.v3+json" \ - -H "Authorization: token ${GH_TOKEN}" \ - --data "{\"event_type\": \"playwright_tests_java\", \"client_payload\": {\"ref\": \"${GITHUB_SHA}\"}}" \ - https://api.github.com/repos/microsoft/playwright-internal/dispatches - env: - GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }} diff --git a/.github/workflows/verify_api.yml b/.github/workflows/verify_api.yml index 99c22809d..d450ee716 100644 --- a/.github/workflows/verify_api.yml +++ b/.github/workflows/verify_api.yml @@ -6,25 +6,30 @@ on: - release-* paths: - 'scripts/*' - - 'api-generator/*' pull_request: branches: - main - release-* paths: - 'scripts/**' - - 'api-generator/**' jobs: verify: timeout-minutes: 30 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: microsoft/playwright-github-action@v1 - - name: Download drivers - run: scripts/download_driver_for_all_platforms.sh + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - name: Set up Node.js + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: 24 + - name: Build the driver + run: scripts/build_driver.sh - name: Regenerate APIs run: scripts/generate_api.sh + - name: Build & Install + run: mvn -B install -D skipTests --no-transfer-progress + - name: Install browsers + run: mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install --with-deps" -f playwright/pom.xml --no-transfer-progress - name: Update browser versions in README run: scripts/update_readme.sh - name: Verify API is up to date diff --git a/.gitignore b/.gitignore index 31577e7c2..80cb47576 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,7 @@ target/ .idea *.iml +.npmrc + +# The microsoft/playwright checkout. scripts/build_driver.sh builds the driver from it. +.upstream/ diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 000000000..cdf233e20 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,82 @@ +# Playwright Java + +The Java client is a port of the JavaScript client in `~/code/playwright/packages/playwright-core/src/client/`. When implementing or changing a method, read the corresponding JS file first and mirror its logic. + +Paths such as `~/code/playwright` in this file assume that you check the repos out in `~/code`. Use the `gh` cli to interact with GitHub. + +## How this repo depends on Playwright + +- **The driver.** The Java client talks to the Node.js driver. The driver is the `playwright-core` package of `microsoft/playwright`. We build it from source at the commit in `scripts/DRIVER_VERSION`. `scripts/build_driver.sh` clones `microsoft/playwright` into `.upstream/` (gitignored), checks out that commit, builds it and puts the package into `driver/src/main/resources/driver/package/`. Do not edit, commit or switch branches in `.upstream/`. `scripts/roll_driver.sh` moves the commit: to the tip of upstream `main`, to the tip of an upstream `release-1.X` branch, or to an exact commit. We do not use the published npm packages or their versions. `git show v1.X.0:scripts/DRIVER_VERSION` prints the upstream commit of a release. For releases up to 1.65, it prints the `playwright-core` version of the driver. +- **Upstream code.** In `.upstream/`, at the commit of the driver, or in `~/code/playwright`, which may be ahead of it: the client in `packages/playwright-core/src/client/`, the API docs in `docs/src/api/`, the tests in `tests/page/` and `tests/library/`. Its `AGENTS.md` says how to build it and run a test. +- **Where a bug is.** When the same calls fail in a Node.js test upstream too, the cause is in the driver or a browser, and the fix lands in `microsoft/playwright`. When Node.js passes, the bug is in the Java client: compare the `*Impl.java` with its JavaScript counterpart, and fix it here. +- **The generated API.** `scripts/generate_api.sh` runs `scripts/generate_java_api.mts`. It parses `docs/src/api/*.md` of `.upstream/` with the upstream parser (`utils/doclint/api_parser.js`) and writes every interface and options class in `playwright/src/main/java/com/microsoft/playwright/`, `options/` and `assertions/`. Only `CLI.java`, `PlaywrightException.java`, `TimeoutError.java`, `options/Annotate.java`, `options/BindingCallback.java`, `options/BrowserChannel.java`, `options/FunctionCallback.java` and the `package-info.java` files there are written by hand. Never edit a generated file: the next roll reverts it. A missing method or option is a change to `docs/src/api/` upstream. + +## Build and test + +```bash +scripts/build_driver.sh # the driver, once per DRIVER_VERSION; needs git and Node.js +mvn -B install -D skipTests --no-transfer-progress # build and install every module +mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install --with-deps" -f playwright/pom.xml --no-transfer-progress +BROWSER=chromium mvn test -f playwright/pom.xml -D test=TestPageScreenshot --no-transfer-progress +``` + +- `mvn test -f playwright/pom.xml` compiles the `playwright` module and its tests, so a change in `playwright/src/main/` needs no separate build step. After a change in `driver/` or `driver-bundle/`, run `mvn -B install -D skipTests --no-transfer-progress -f /pom.xml` first: the `playwright` module takes those modules from the local Maven repository. +- The project targets Java 8. CI builds with JDK 8 (Zulu) and JDK 25. Do not use a newer language feature or library API. +- There is no lint or format check. The style is the Google Java Style with a two-space indent, and without comments. When you change a file under `playwright/src/test/java/com/microsoft/playwright/tests/`, run `python3 scripts/check_test_registry.py`. +- `-D test=` runs one class, `-D test=#` one method. `BROWSER` is a comma-separated list of `chromium`, `firefox` and `webkit`; unset, it runs all three. `HEADED=1` runs headed. A filter that matches no test passes with `Tests run: 0`, so check the count. Each test method has a 120 second timeout, set in the root `pom.xml`. Do not set `PW_MAX_RETRIES`, which reruns a failed test; CI sets it to 3. The reports are in `playwright/target/surefire-reports/`. + +## Tests + +The tests are in `playwright/src/test/java/com/microsoft/playwright/`. A test is a `@PlaywrightTest` method that takes the fixtures it needs as parameters, resolved by type: `Page page`, `BrowserContext context`, `Browser browser`, `BrowserType browserType`, `Playwright playwright`, `BrowserName browserName`, `Server server`, `HttpsServer httpsServer` and `@TempDir Path`. The method runs once per selected browser, with a context and a page of its own; the browser and the servers are shared. A class overrides options with `@Fixture` methods, and skips a browser with `@DisabledOnBrowser` or `@EnabledOnBrowser`. Drive the page with `page.setContent(...)` or `page.navigate(server.PREFIX + "/...")`, and the server with `server.setRoute(...)`, `server.setRedirect(...)`, `server.futureRequest(...)` and `server.EMPTY_PAGE`. + +| Directory | Use for | +|-----------|---------| +| `com/microsoft/playwright/` | the Java-only tests, one class per feature (`TestPageScreenshot`, `TestBrowserContextHar`). A regression test for a bug of the Java client goes here, in the class that owns the feature, as one added case. | +| `com/microsoft/playwright/tests/page/`, `tests/library/` | line-by-line ports of upstream `tests/page` and `tests/library`, one class per spec file (`TestPageCheck` for `page-check.spec.ts`), each test titled `@DisplayName("CH-001 ...")` with the upstream identifier. Do not add a test or an assertion that upstream does not have. When the port that covers a bug carries `@Fixme("java: ...")`, the fix removes the mark, and that port is the regression test. `playwright/src/test/AGENTS.md` has the rules. | +| `com/microsoft/playwright/junit/` | the public JUnit extension, `@UsePlaywright` | + +Tag a regression test with the issue as the Java-only tests do: a comment with the full URL on the first line of the test body, `// https://github.com/microsoft/playwright-java/issues/`. Good models: `TestBrowserContextExposeFunction`, `shouldNotDispatchBindingOnAClosedPage` (a binding, a popup and a context of its own in a try-with-resources block); `TestTracing`, `shouldRecoverTracingAfterAFailedStop` (a tagged test with `@TempDir` on `context.tracing()`). + +## Commit Convention + +Semantic commit messages: `label(scope): description` + +Labels: `fix`, `feat`, `chore`, `docs`, `test`, `devops` + +```bash +git checkout -b fix-39562 +# ... make changes ... +git add +git commit -m "$(cat <<'EOF' +fix(proxy): handle SOCKS proxy authentication + +Fixes: https://github.com/microsoft/playwright-java/issues/39562 +EOF +)" +# **Never `git push` without an explicit instruction to push.** +git push origin fix-39562 +gh pr create --repo microsoft/playwright-java --head :fix-39562 \ + --title "fix(proxy): handle SOCKS proxy authentication" \ + --body "$(cat <<'EOF' +## Summary +- + +Fixes https://github.com/microsoft/playwright-java/issues/39562 +EOF +)" +``` + +Never add Co-Authored-By agents in commit message. +Never add "Generated with" in commit message. +Never add test plan to PR description. Keep PR description short — a few bullet points at most. +Branch naming for issue fixes: `fix-`. + +**Never amend commits.** Always create a new commit for follow-up changes, even when iterating on an open PR. Amending rewrites history and forces a force-push, losing the incremental review trail. Only amend if the user explicitly says so. + +**Never `git push` without an explicit instruction to push.** Applies even when a PR is already open for the branch — additional commits are immediately visible to reviewers. Commit locally, report what was committed, and wait. Only push when the user's message contains "push", "upload", "create PR", "ship it", or equivalent. + +## Skills + +- **playwright-roll** (`.claude/skills/playwright-roll/SKILL.md`) — roll Playwright Java to a new upstream commit: move `scripts/DRIVER_VERSION`, build the driver, regenerate the API, and port relevant upstream changes. +- **playwright-java-release** (`.claude/skills/playwright-java-release/SKILL.md`) — prepare a release after the rolling PR merges: cut the release branch, mark the Maven version, and draft the GitHub release. +- **playwright-cherry-pick** (upstream, `~/code/playwright/.claude/skills/playwright-cherry-pick/SKILL.md`) — cherry-pick a merged PR into a `release-1.X` branch as `cherry-pick(#): `. Use the same rules for this repo's release branches. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c089dfeae..1e4d1c2c8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,20 @@ # Contributing +## Choosing an Issue + +To maintain project quality and focus, Playwright **requires a corresponding issue** for every contribution, with the exception of minor documentation fixes. + +If you would like to address a bug or feature that isn't currently listed, **please file a new issue first**. This allows the community and maintainers to provide early feedback and facilitates a discussion before you invest time in developing a pull request. + +When submitting an issue, please state clearly if you intend to work on it. Once triaged and approved, the maintainers will determine the best path forward—whether the task should be handled by the **core team**, an **automated agent**, or a **community contributor**. If the issue is assigned to you, you may then proceed with your changes and submit a PR. + +### Submission Policy +To ensure the maintainability of the project, please note the following: + +* **Unsolicited PRs:** Pull requests submitted without a linked issue or prior approval will be closed. +* **Low-Quality AI Contributions:** PRs that do not meet our quality standards or lack human oversight (including low-quality agentic submissions) will be closed without explanation. +* **Approval Required:** Only proceed with a PR once the issue has been officially assigned to you or approved for community contribution. + ## How to Contribute ### Installing Developer Tools @@ -20,48 +35,83 @@ git clone https://github.com/microsoft/playwright-java cd playwright-java ``` -2. Run the following script to download playwright-cli binaries for all platforms into `driver-bundle/src/main/resources/driver/` directory (browser binaries for Chromium, Firefox and WebKit will be automatically downloaded later on first Playwright run). +2. Run the following script to build and assemble the Playwright driver; it needs git and Node.js with npm. The platform-independent `playwright-core` package is assembled once into `driver/src/main/resources/driver/package/`, and the Node.js binary for each platform into `driver-bundle/src/main/resources/driver//` (browser binaries for Chromium, Firefox and WebKit will be automatically downloaded later on first Playwright run). ```bash -scripts/download_driver_for_all_platforms.sh +scripts/build_driver.sh ``` -Names of published driver archives can be found at https://github.com/microsoft/playwright-cli/actions +The driver is built from source: the script clones [microsoft/playwright](https://github.com/microsoft/playwright) into `.upstream/` (gitignored), checks out the commit pinned in [scripts/DRIVER_VERSION](scripts/DRIVER_VERSION) and builds the `playwright-core` package from it (`npm ci`, `npm run build`, `npm pack`). The build of `.upstream/` is reused until the commit changes. Each driver also gets the Node.js binary of the version pinned in [scripts/NODE_VERSION](scripts/NODE_VERSION) from https://nodejs.org, the same way the upstream Playwright build does it. Run the script again when `scripts/DRIVER_VERSION` or `scripts/NODE_VERSION` changes, for example after a pull. `scripts/roll_driver.sh` updates the pinned Node.js version to the latest release of the same major version on each roll. To update only Node.js, run `scripts/roll_node.sh` and then `scripts/build_driver.sh`. ### Building and running the tests with Maven ```bash mvn compile +# Runs every test in Chromium, Firefox and WebKit mvn test +# Selecting browsers +BROWSER=chromium mvn test +BROWSER=firefox,webkit mvn test # Executing a single test BROWSER=chromium mvn test -Dtest=TestPageNetworkSizes#shouldHaveTheCorrectResponseBodySize # Executing a single test class BROWSER=chromium mvn test -Dtest=TestPageNetworkSizes ``` +Set `HEADED=1` to watch the browsers and `BROWSER_CHANNEL=chrome` (or `msedge`, ...) to test a stable channel. + +### Writing tests + +Tests use the fixtures from `playwright/src/test/java/com/microsoft/playwright/fixtures`, modeled after the +upstream Playwright Test fixtures. A test is a `@PlaywrightTest` method that declares the fixtures it needs +as parameters; it runs once per selected browser, in a fresh context: + +```java +@PlaywrightTest +void shouldWork(Page page, Server server) { + page.navigate(server.EMPTY_PAGE); +} +``` + +The built-in fixtures are `Playwright`, `BrowserName`, `BrowserType`, `BrowserType.LaunchOptions`, `Browser`, +`Browser.NewContextOptions`, `BrowserContext`, `Page`, `Server` and `HttpsServer`. Playwright, the browser and +the test servers are shared by the tests that run one after another on the same thread; the context and the +page are created for each test and closed afterwards. A test class adds or overrides fixtures with +`@Fixture` methods, whose parameters are the fixtures they depend on: + +```java +@Fixture +Browser.NewContextOptions contextOptions() { + return new Browser.NewContextOptions().setHasTouch(true); +} + +@Fixture(scope = Scope.WORKER) +static BrowserType.LaunchOptions launchOptions(BrowserType.LaunchOptions defaults) { + return defaults.setArgs(asList("--enable-features=WebMCP")); +} +``` + +Use `@DisabledOnBrowser` / `@EnabledOnBrowser` for browser-specific tests, and a `@Nested @ParameterizedClass` +with a `@Fixture` method reading its `@Parameter` field to run the same tests with different options. + ### Generating API -Public Java API is generated from api.json which is produced by `playwright-cli print-api-json`. To regenerate -Java interfaces for the current driver run the following commands: +Public Java API is generated by [scripts/generate_java_api.mts](scripts/generate_java_api.mts) from the API docs (`docs/src/api/*.md`) in `.upstream/`, the `microsoft/playwright` checkout at the commit in [scripts/DRIVER_VERSION](scripts/DRIVER_VERSION) that the driver is built from (run `scripts/build_driver.sh` first). Set `PW_SRC_DIR` to generate from another `microsoft/playwright` checkout instead, to try a change to the upstream docs; the committed files must come from `.upstream/`. The generator is a TypeScript file that Node.js runs as is, so it needs Node.js 22.18 or newer. To regenerate Java interfaces for the current driver run: ```bash -./scripts/download_driver_for_all_platforms.sh ./scripts/generate_api.sh ``` #### Updating driver version -Driver version is read from [scripts/CLI_VERSION](https://github.com/microsoft/playwright-java/blob/main/scripts/CLI_VERSION) and can be found in the upstream [GHA build](https://github.com/microsoft/playwright/actions/workflows/publish_canary.yml) logs. To update the driver to a particular version run the following commands: +The driver does not depend on a published Playwright version. To roll the driver to a newer commit of `microsoft/playwright`, run the following command: ```bash -cat > scripts/CLI_VERSION - -^D -./scripts/download_driver_for_all_platforms.sh -f -./scripts/generate_api.sh -./scripts/update_readme.sh +scripts/roll_driver.sh [main|release-1.|] ``` +`main` (the default) is the tip of upstream `main`, `release-1.` is the tip of that upstream release branch, and `` is a full commit hash. The script writes the commit to `scripts/DRIVER_VERSION`, builds the driver from it and regenerates the API. The driver reports the version of `packages/playwright-core/package.json` at that commit: `1.67.0-next` on `main`, `1.66.0` on `release-1.66`. + ### Code Style - We try to follow [Google Java Style Guide](https://google.github.io/styleguide/javaguide.html) diff --git a/CodeQL.yml b/CodeQL.yml new file mode 100644 index 000000000..4b8f962c5 --- /dev/null +++ b/CodeQL.yml @@ -0,0 +1,3 @@ +path_classifiers: + tests: + - "playwright/src/test/**" diff --git a/README.md b/README.md index 8ff1b91a9..aa9ab07c3 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ [![javadoc](https://javadoc.io/badge2/com.microsoft.playwright/playwright/javadoc.svg)](https://javadoc.io/doc/com.microsoft.playwright/playwright) [![maven version](https://img.shields.io/maven-central/v/com.microsoft.playwright/playwright)](https://search.maven.org/search?q=com.microsoft.playwright) -[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/https/oss.sonatype.org/com.microsoft.playwright/playwright.svg)](https://oss.sonatype.org/content/repositories/snapshots/com/microsoft/playwright/playwright/) -[![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) +[![Join Discord](https://img.shields.io/badge/join-discord-infomational)](https://aka.ms/playwright/discord) #### [Website](https://playwright.dev/java/) | [API reference](https://www.javadoc.io/doc/com.microsoft.playwright/playwright/latest/index.html) @@ -11,61 +10,21 @@ Playwright is a Java library to automate [Chromium](https://www.chromium.org/Hom | | Linux | macOS | Windows | | :--- | :---: | :---: | :---: | -| Chromium 106.0.5249.30 | :white_check_mark: | :white_check_mark: | :white_check_mark: | -| WebKit 16.0 | ✅ | ✅ | ✅ | -| Firefox 104.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | +| Chromium 158.0.8127.18 | :white_check_mark: | :white_check_mark: | :white_check_mark: | +| WebKit 27.2 | ✅ | ✅ | ✅ | +| Firefox 159.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | -Headless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/java/docs/next/intro/#system-requirements) for details. - -* [Usage](#usage) - - [Add Maven dependency](#add-maven-dependency) - - [Is Playwright thread-safe?](#is-playwright-thread-safe) -* [Examples](#examples) - - [Page screenshot](#page-screenshot) - - [Mobile and geolocation](#mobile-and-geolocation) - - [Evaluate JavaScript in browser](#evaluate-javascript-in-browser) - - [Intercept network requests](#intercept-network-requests) -* [Documentation](#documentation) -* [Contributing](#contributing) -* [Is Playwright for Java ready?](#is-playwright-for-java-ready) - -## Usage - -Playwright requires **Java 8** or newer. - -#### Add Maven dependency - -Playwright is distributed as a set of [Maven](https://maven.apache.org/what-is-maven.html) modules. The easiest way to use it is to add one dependency to your Maven `pom.xml` file as described below. If you're not familiar with Maven please refer to its [documentation](https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html). - -To run Playwright simply add following dependency to your Maven project: - -```xml - - com.microsoft.playwright - playwright - 1.26.0 - -``` - -To run Playwright using Gradle add following dependency to your build.gradle file: - -```gradle -dependencies { - implementation group: 'com.microsoft.playwright', name: 'playwright', version: '1.26.0' -} -``` - -#### Is Playwright thread-safe? +## Documentation -No, Playwright is not thread safe, i.e. all its methods as well as methods on all objects created by it (such as BrowserContext, Browser, Page etc.) are expected to be called on the same thread where Playwright object was created or proper synchronization should be implemented to ensure only one thread calls Playwright methods at any given time. Having said that it's okay to create multiple Playwright instances each on its own thread. +[https://playwright.dev/java/docs/intro](https://playwright.dev/java/docs/intro) -## Examples +## API Reference -You can find Maven project with the examples [here](./examples). +[https://playwright.dev/java/docs/api/class-playwright](https://playwright.dev/java/docs/api/class-playwright) -#### Page screenshot +## Example -This code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots. +This code snippet navigates to Playwright homepage in Chromium, Firefox and WebKit, and saves 3 screenshots. ```java import com.microsoft.playwright.*; @@ -86,7 +45,7 @@ public class PageScreenshot { try (Browser browser = browserType.launch()) { BrowserContext context = browser.newContext(); Page page = context.newPage(); - page.navigate("http://whatsmyuseragent.org/"); + page.navigate("https://playwright.dev/"); page.screenshot(new Page.ScreenshotOptions().setPath(Paths.get("screenshot-" + browserType.name() + ".png"))); } } @@ -95,100 +54,9 @@ public class PageScreenshot { } ``` -#### Mobile and geolocation - -This snippet emulates Mobile Chromium on a device at a given geolocation, navigates to openstreetmap.org, performs action and takes a screenshot. - -```java -import com.microsoft.playwright.options.*; -import com.microsoft.playwright.*; - -import java.nio.file.Paths; - -import static java.util.Arrays.asList; - -public class MobileAndGeolocation { - public static void main(String[] args) { - try (Playwright playwright = Playwright.create()) { - Browser browser = playwright.chromium().launch(); - BrowserContext context = browser.newContext(new Browser.NewContextOptions() - .setUserAgent("Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3765.0 Mobile Safari/537.36") - .setViewportSize(411, 731) - .setDeviceScaleFactor(2.625) - .setIsMobile(true) - .setHasTouch(true) - .setLocale("en-US") - .setGeolocation(41.889938, 12.492507) - .setPermissions(asList("geolocation"))); - Page page = context.newPage(); - page.navigate("https://www.openstreetmap.org/"); - page.click("a[data-original-title=\"Show My Location\"]"); - page.screenshot(new Page.ScreenshotOptions().setPath(Paths.get("colosseum-pixel2.png"))); - } - } -} -``` - -#### Evaluate JavaScript in browser - -This code snippet navigates to example.com in Firefox, and executes a script in the page context. - -```java -import com.microsoft.playwright.*; - -public class EvaluateInBrowserContext { - public static void main(String[] args) { - try (Playwright playwright = Playwright.create()) { - Browser browser = playwright.firefox().launch(); - BrowserContext context = browser.newContext(); - Page page = context.newPage(); - page.navigate("https://www.example.com/"); - Object dimensions = page.evaluate("() => {\n" + - " return {\n" + - " width: document.documentElement.clientWidth,\n" + - " height: document.documentElement.clientHeight,\n" + - " deviceScaleFactor: window.devicePixelRatio\n" + - " }\n" + - "}"); - System.out.println(dimensions); - } - } -} -``` - -#### Intercept network requests - -This code snippet sets up request routing for a WebKit page to log all network requests. - -```java -import com.microsoft.playwright.*; - -public class InterceptNetworkRequests { - public static void main(String[] args) { - try (Playwright playwright = Playwright.create()) { - Browser browser = playwright.webkit().launch(); - BrowserContext context = browser.newContext(); - Page page = context.newPage(); - page.route("**", route -> { - System.out.println(route.request().url()); - route.resume(); - }); - page.navigate("http://todomvc.com"); - } - } -} -``` - -## Documentation - -Check out our official [documentation site](https://playwright.dev/java). - -You can also browse [javadoc online](https://www.javadoc.io/doc/com.microsoft.playwright/playwright/latest/index.html). - -## Contributing - -Follow [the instructions](https://github.com/microsoft/playwright-java/blob/main/CONTRIBUTING.md#getting-code) to build the project from source and install the driver. - -## Is Playwright for Java ready? +## Other languages -Yes, Playwright for Java is ready. v1.10.0 is the first stable release. Going forward we will adhere to [semantic versioning](https://semver.org/) of the API. +More comfortable in another programming language? [Playwright](https://playwright.dev) is also available in +- [Node.js (JavaScript / TypeScript)](https://playwright.dev/docs/intro), +- [Python](https://playwright.dev/python/docs/intro). +- [.NET](https://playwright.dev/dotnet/docs/intro), diff --git a/ROLLING.md b/ROLLING.md index ae0170f94..8407d21b7 100644 --- a/ROLLING.md +++ b/ROLLING.md @@ -1,13 +1,8 @@ # Rolling Playwright-Java to the latest Playwright driver -* make sure to have at least Java 8 and Maven 3.6.3 +* make sure to have at least Java 8 and Maven 3.6.3, git, and Node.js with npm * clone playwright for java: http://github.com/microsoft/playwright-java -* set new driver version in `scripts/CLI_VERSION` -* regenerate API: `./scripts/download_driver_for_all_platforms.sh -f && ./scripts/generate_api.sh && ./scripts/update_readme.sh` +* roll the driver and update generated sources: `./scripts/roll_driver.sh [main|release-1.|]`. It rolls to the tip of upstream `main` (the default), to the tip of an upstream release branch, or to an exact commit of `microsoft/playwright`. It writes the commit to `scripts/DRIVER_VERSION`, checks it out in `.upstream/` (a gitignored clone of `microsoft/playwright`) and builds the driver from it +* list the upstream commits to port: `git -C .upstream log --oneline --reverse $(git show HEAD:scripts/DRIVER_VERSION)..$(cat scripts/DRIVER_VERSION)` +* fix any errors * commit & send PR with the roll - -# Updating Version - -```bash -./scripts/set_maven_version.sh 1.15.0 -``` diff --git a/SUPPORT.md b/SUPPORT.md new file mode 100644 index 000000000..2ed47a1f3 --- /dev/null +++ b/SUPPORT.md @@ -0,0 +1,17 @@ +# Support + +## How to file issues and get help + +This project uses GitHub issues to track bugs and feature requests. Please search the [existing issues][gh-issues] before filing new ones to avoid duplicates. For new issues, file your bug or feature request as a new issue using corresponding template. + +For help and questions about using this project, please see the [docs site for Playwright for Java][docs]. + +Join our community [Discord Server][discord-server] to connect with other developers using Playwright and ask questions in our 'help-playwright' forum. + +## Microsoft Support Policy + +Support for Playwright for Java is limited to the resources listed above. + +[gh-issues]: https://github.com/microsoft/playwright-java/issues/ +[docs]: https://playwright.dev/java/ +[discord-server]: https://aka.ms/playwright/discord diff --git a/driver-bundle/pom.xml b/driver-bundle/pom.xml index 9cd6c1f7e..1f65521ad 100644 --- a/driver-bundle/pom.xml +++ b/driver-bundle/pom.xml @@ -6,18 +6,24 @@ com.microsoft.playwright parent-pom - 1.27.0-SNAPSHOT + 1.50.0-SNAPSHOT driver-bundle - Playwright - Drivers For All Platforms + Playwright - Node.js For All Platforms - This module includes Playwright driver and related utilities for all supported platforms. - It is intended to be used on the systems where Playwright driver is not preinstalled. + Node.js binaries for the Playwright driver on every supported platform. Can be excluded when + Node.js is preinstalled on the host (see PLAYWRIGHT_NODEJS_PATH). + + com.microsoft.playwright.driver.bundle + + + org.apache.maven.plugins maven-source-plugin @@ -25,26 +31,6 @@ true - - org.apache.maven.plugins - maven-javadoc-plugin - - - org.apache.maven.plugins - maven-surefire-plugin - - - - com.microsoft.playwright - driver - ${project.version} - compile - - - org.junit.jupiter - junit-jupiter-engine - - diff --git a/driver/pom.xml b/driver/pom.xml index cd99bc046..bf621037f 100644 --- a/driver/pom.xml +++ b/driver/pom.xml @@ -6,35 +6,38 @@ com.microsoft.playwright parent-pom - 1.27.0-SNAPSHOT + 1.50.0-SNAPSHOT driver Playwright - Driver - This module provides API for discovery and launching of Playwright driver. + API for launching the Playwright driver. Bundles the platform-independent playwright-core + package; the Node.js binary comes from the driver-bundle module or a preinstalled Node.js. + + com.microsoft.playwright.driver + + + + + org.junit.jupiter + junit-jupiter-engine + + + + org.apache.maven.plugins maven-source-plugin - - - org.apache.maven.plugins - maven-javadoc-plugin - - - org.apache.maven.plugins - maven-surefire-plugin + + true + - - - org.junit.jupiter - junit-jupiter-engine - - diff --git a/driver/src/main/java/com/microsoft/playwright/impl/driver/Driver.java b/driver/src/main/java/com/microsoft/playwright/impl/driver/Driver.java index 9ee059eaf..c659003e0 100644 --- a/driver/src/main/java/com/microsoft/playwright/impl/driver/Driver.java +++ b/driver/src/main/java/com/microsoft/playwright/impl/driver/Driver.java @@ -18,7 +18,6 @@ import java.nio.file.Path; import java.nio.file.Paths; -import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; @@ -26,11 +25,14 @@ /** * This class provides access to playwright-cli. It can be either preinstalled - * in the host system and its path is passed as a system property or it can be - * loaded from the driver-bundle module if that module is in the classpath. + * in the host system and its path is passed as a system property, or it can be + * loaded from the classpath: the platform-independent driver code ships in the + * driver module and the Node.js binary in the optional driver-bundle module. */ public abstract class Driver { - protected final Map env = new LinkedHashMap<>(); + protected final Map env = new LinkedHashMap<>(System.getenv()); + public static final String PLAYWRIGHT_NODEJS_PATH = "PLAYWRIGHT_NODEJS_PATH"; + public static final String PLAYWRIGHT_DRIVER_DIR = "PLAYWRIGHT_DRIVER_DIR"; private static Driver instance; @@ -47,12 +49,15 @@ protected void initialize(Boolean installBrowsers) { } @Override - protected Path driverDir() { + public Path driverDir() { return driverDir; } } public static synchronized Driver ensureDriverInstalled(Map env, Boolean installBrowsers) { + if (env.containsKey(PLAYWRIGHT_DRIVER_DIR)) { + return createAndInstall(env, installBrowsers); + } if (instance == null) { instance = createAndInstall(env, installBrowsers); } @@ -65,14 +70,14 @@ private void initialize(Map env, Boolean installBrowsers) throws } protected abstract void initialize(Boolean installBrowsers) throws Exception; - public Path driverPath() { - String cliFileName = System.getProperty("os.name").toLowerCase().contains("windows") ? - "playwright.cmd" : "playwright.sh"; - return driverDir().resolve(cliFileName); - } - public ProcessBuilder createProcessBuilder() { - ProcessBuilder pb = new ProcessBuilder(driverPath().toString()); + String nodePath = env.get("PLAYWRIGHT_NODEJS_PATH"); + if (nodePath == null) { + String node = System.getProperty("os.name").toLowerCase().contains("windows") ? "node.exe" : "node"; + nodePath = driverDir().resolve(node).toAbsolutePath().toString(); + } + ProcessBuilder pb = new ProcessBuilder(nodePath); + pb.command().add(driverDir().resolve("package").resolve("cli.js").toAbsolutePath().toString()); pb.environment().putAll(env); pb.environment().put("PW_LANG_NAME", "java"); pb.environment().put("PW_LANG_NAME_VERSION", getMajorJavaVersion()); @@ -96,7 +101,7 @@ private static String getMajorJavaVersion() { } public static Driver createAndInstall(Map env, Boolean installBrowsers) { try { - Driver instance = newInstance(); + Driver instance = newInstance(env); logMessage("initializing driver"); instance.initialize(env, installBrowsers); logMessage("driver initialized."); @@ -106,10 +111,16 @@ public static Driver createAndInstall(Map env, Boolean installBr } } - private static Driver newInstance() throws Exception { - String pathFromProperty = System.getProperty("playwright.cli.dir"); - if (pathFromProperty != null) { - return new PreinstalledDriver(Paths.get(pathFromProperty)); + private static Driver newInstance(Map env) throws Exception { + String driverDir = System.getProperty("playwright.cli.dir"); + if (driverDir == null) { + driverDir = env.get(PLAYWRIGHT_DRIVER_DIR); + } + if (driverDir == null) { + driverDir = System.getenv(PLAYWRIGHT_DRIVER_DIR); + } + if (driverDir != null) { + return new PreinstalledDriver(Paths.get(driverDir)); } String driverImpl = @@ -118,7 +129,7 @@ private static Driver newInstance() throws Exception { return (Driver) jarDriver.getDeclaredConstructor().newInstance(); } - protected abstract Path driverDir(); + public abstract Path driverDir(); protected static void logMessage(String message) { // This matches log format produced by the server. diff --git a/driver-bundle/src/main/java/com/microsoft/playwright/impl/driver/jar/DriverJar.java b/driver/src/main/java/com/microsoft/playwright/impl/driver/jar/DriverJar.java similarity index 69% rename from driver-bundle/src/main/java/com/microsoft/playwright/impl/driver/jar/DriverJar.java rename to driver/src/main/java/com/microsoft/playwright/impl/driver/jar/DriverJar.java index 0e5eb5c6b..ab5fba81e 100644 --- a/driver-bundle/src/main/java/com/microsoft/playwright/impl/driver/jar/DriverJar.java +++ b/driver/src/main/java/com/microsoft/playwright/impl/driver/jar/DriverJar.java @@ -29,19 +29,12 @@ public class DriverJar extends Driver { private static final String PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = "PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD"; private static final String SELENIUM_REMOTE_URL = "SELENIUM_REMOTE_URL"; - static final String PLAYWRIGHT_NODEJS_PATH = "PLAYWRIGHT_NODEJS_PATH"; private final Path driverTempDir; + private final boolean deleteOnExit; private Path preinstalledNodePath; public DriverJar() throws IOException { - // Allow specifying custom path for the driver installation - // See https://github.com/microsoft/playwright-java/issues/728 - String alternativeTmpdir = System.getProperty("playwright.driver.tmpdir"); - String prefix = "playwright-java-"; - driverTempDir = alternativeTmpdir == null - ? Files.createTempDirectory(prefix) - : Files.createTempDirectory(Paths.get(alternativeTmpdir), prefix); - driverTempDir.toFile().deleteOnExit(); + this(createTempDriverDir(), true); String nodePath = System.getProperty("playwright.nodejs.path"); if (nodePath != null) { preinstalledNodePath = Paths.get(nodePath); @@ -52,6 +45,32 @@ public DriverJar() throws IOException { logMessage("created DriverJar: " + driverTempDir); } + private DriverJar(Path driverDir, boolean deleteOnExit) { + this.driverTempDir = driverDir; + this.deleteOnExit = deleteOnExit; + if (deleteOnExit) { + driverTempDir.toFile().deleteOnExit(); + } + } + + private static Path createTempDriverDir() throws IOException { + // Allow specifying custom path for the driver installation + // See https://github.com/microsoft/playwright-java/issues/728 + String alternativeTmpdir = System.getProperty("playwright.driver.tmpdir"); + String prefix = "playwright-java-"; + return alternativeTmpdir == null + ? Files.createTempDirectory(prefix) + : Files.createTempDirectory(Paths.get(alternativeTmpdir), prefix); + } + + // Extracts the driver (playwright-core package and the Node.js binary for the current platform) + // into the given directory, persistently. Point playwright.cli.dir / PLAYWRIGHT_DRIVER_DIR at it + // to run without extracting to a temp directory on every launch. See issue #1268. + public static void installDriverTo(Path driverDir) throws IOException, URISyntaxException { + Files.createDirectories(driverDir); + new DriverJar(driverDir, false).extractDriverToTempDir(); + } + @Override protected void initialize(Boolean installBrowsers) throws Exception { if (preinstalledNodePath == null && env.containsKey(PLAYWRIGHT_NODEJS_PATH)) { @@ -64,7 +83,7 @@ protected void initialize(Boolean installBrowsers) throws Exception { env.put(PLAYWRIGHT_NODEJS_PATH, preinstalledNodePath.toString()); } extractDriverToTempDir(); - logMessage("extracted driver from jar to " + driverPath()); + logMessage("extracted driver from jar to " + driverDir()); if (installBrowsers) installBrowsers(env); } @@ -75,14 +94,14 @@ private void installBrowsers(Map env) throws IOException, Interr skip = System.getenv(PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD); } if (skip != null && !"0".equals(skip) && !"false".equals(skip)) { - System.out.println("Skipping browsers download because `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD` env variable is set"); + logMessage("Skipping browsers download because `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD` env variable is set"); return; } if (env.get(SELENIUM_REMOTE_URL) != null || System.getenv(SELENIUM_REMOTE_URL) != null) { logMessage("Skipping browsers download because `SELENIUM_REMOTE_URL` env variable is set"); return; } - Path driver = driverPath(); + Path driver = driverDir(); if (!Files.exists(driver)) { throw new RuntimeException("Failed to find driver: " + driver); } @@ -106,14 +125,42 @@ private static boolean isExecutable(Path filePath) { return name.endsWith(".sh") || name.endsWith(".exe") || !name.contains("."); } + private FileSystem initFileSystem(URI uri) throws IOException { + try { + return FileSystems.newFileSystem(uri, Collections.emptyMap()); + } catch (FileSystemAlreadyExistsException e) { + return null; + } + } + + public static URI getDriverResourceURI() throws URISyntaxException { + ClassLoader classloader = DriverJar.class.getClassLoader(); + return classloader.getResource("driver/" + platformDir()).toURI(); + } + void extractDriverToTempDir() throws URISyntaxException, IOException { - ClassLoader classloader = Thread.currentThread().getContextClassLoader(); - URI originalUri = classloader.getResource( - "driver/" + platformDir()).toURI(); + // Concurrent extractions would share the zip file system of the jar, and the first one to finish closes it. + synchronized (DriverJar.class) { + extractResourceToDir("driver/package", driverTempDir.resolve("package")); + if (preinstalledNodePath == null) { + String platformResource = "driver/" + platformDir(); + if (DriverJar.class.getClassLoader().getResource(platformResource) == null) { + throw new RuntimeException("Failed to find the bundled Node.js for platform '" + platformDir() + + "'. Add the com.microsoft.playwright:driver-bundle dependency, or set the " + + PLAYWRIGHT_NODEJS_PATH + " environment variable (or the playwright.nodejs.path system " + + "property) to point at a preinstalled Node.js."); + } + extractResourceToDir(platformResource, driverTempDir); + } + } + } + + private void extractResourceToDir(String resourcePath, Path destDir) throws URISyntaxException, IOException { + URI originalUri = DriverJar.class.getClassLoader().getResource(resourcePath).toURI(); URI uri = maybeExtractNestedJar(originalUri); // Create zip filesystem if loading from jar. - try (FileSystem fileSystem = "jar".equals(uri.getScheme()) ? FileSystems.newFileSystem(uri, Collections.emptyMap()) : null) { + try (FileSystem fileSystem = "jar".equals(uri.getScheme()) ? initFileSystem(uri) : null) { Path srcRoot = Paths.get(uri); // jar file system's .relativize gives wrong results when used with // spring-boot-maven-plugin, convert to the default filesystem to @@ -121,14 +168,8 @@ void extractDriverToTempDir() throws URISyntaxException, IOException { // See https://github.com/microsoft/playwright-java/issues/306 Path srcRootDefaultFs = Paths.get(srcRoot.toString()); Files.walk(srcRoot).forEach(fromPath -> { - if (preinstalledNodePath != null) { - String fileName = fromPath.getFileName().toString(); - if ("node.exe".equals(fileName) || "node".equals(fileName)) { - return; - } - } Path relative = srcRootDefaultFs.relativize(Paths.get(fromPath.toString())); - Path toPath = driverTempDir.resolve(relative.toString()); + Path toPath = destDir.resolve(relative.toString()); try { if (Files.isDirectory(fromPath)) { Files.createDirectories(toPath); @@ -138,7 +179,9 @@ void extractDriverToTempDir() throws URISyntaxException, IOException { toPath.toFile().setExecutable(true, true); } } - toPath.toFile().deleteOnExit(); + if (deleteOnExit) { + toPath.toFile().deleteOnExit(); + } } catch (IOException e) { throw new RuntimeException("Failed to extract driver from " + uri + ", full uri: " + originalUri, e); } @@ -161,7 +204,9 @@ private URI maybeExtractNestedJar(final URI uri) throws URISyntaxException { Path fromPath = Paths.get(jarUri); Path toPath = driverTempDir.resolve(fromPath.getFileName().toString()); Files.copy(fromPath, toPath); - toPath.toFile().deleteOnExit(); + if (deleteOnExit) { + toPath.toFile().deleteOnExit(); + } return new URI("jar:" + toPath.toUri() + JAR_URL_SEPARATOR + parts[2]); } catch (IOException e) { throw new RuntimeException("Failed to extract driver's nested .jar from " + jarUri + "; full uri: " + uri, e); @@ -183,13 +228,17 @@ private static String platformDir() { } } if (name.contains("mac os x")) { - return "mac"; + if (arch.equals("aarch64")) { + return "mac-arm64"; + } else { + return "mac"; + } } throw new RuntimeException("Unexpected os.name value: " + name); } @Override - protected Path driverDir() { + public Path driverDir() { return driverTempDir; } } diff --git a/driver/src/main/resources/.gitignore b/driver/src/main/resources/.gitignore new file mode 100644 index 000000000..045408616 --- /dev/null +++ b/driver/src/main/resources/.gitignore @@ -0,0 +1,2 @@ +driver/ +local-driver/ diff --git a/examples/pom.xml b/examples/pom.xml index c28574d85..66f426a37 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -6,16 +6,17 @@ org.example examples - 1.27.0-SNAPSHOT + 1.50.0-SNAPSHOT Playwright Client Examples UTF-8 + 1.63.0 com.microsoft.playwright playwright - 1.22.0 + ${playwright.version} @@ -23,7 +24,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.1 + 3.12.1 1.8 1.8 diff --git a/examples/src/main/java/org/example/PageScreenshot.java b/examples/src/main/java/org/example/PageScreenshot.java index 1a327835c..0217be732 100644 --- a/examples/src/main/java/org/example/PageScreenshot.java +++ b/examples/src/main/java/org/example/PageScreenshot.java @@ -34,7 +34,7 @@ public static void main(String[] args) { try (Browser browser = browserType.launch()) { BrowserContext context = browser.newContext(); Page page = context.newPage(); - page.navigate("http://whatsmyuseragent.org/"); + page.navigate("https://playwright.dev/"); page.screenshot(new Page.ScreenshotOptions().setPath(Paths.get("screenshot-" + browserType.name() + ".png"))); } } diff --git a/examples/src/main/java/org/example/WebKitScreenshot.java b/examples/src/main/java/org/example/WebKitScreenshot.java index 1e62d9c4a..52e130e9d 100644 --- a/examples/src/main/java/org/example/WebKitScreenshot.java +++ b/examples/src/main/java/org/example/WebKitScreenshot.java @@ -24,7 +24,7 @@ public static void main(String[] args) { try (Playwright playwright = Playwright.create()) { Browser browser = playwright.webkit().launch(); Page page = browser.newPage(); - page.navigate("http://whatsmyuseragent.org/"); + page.navigate("https://playwright.dev/"); page.screenshot(new Page.ScreenshotOptions().setPath(Paths.get("example.png"))); } } diff --git a/playwright/pom.xml b/playwright/pom.xml index e52d09523..a59e6f3e3 100644 --- a/playwright/pom.xml +++ b/playwright/pom.xml @@ -7,7 +7,7 @@ com.microsoft.playwright parent-pom - 1.27.0-SNAPSHOT + 1.50.0-SNAPSHOT playwright @@ -19,28 +19,23 @@ This is the main package that provides Playwright client. + + com.microsoft.playwright + + - - org.apache.maven.plugins - maven-source-plugin - org.apache.maven.plugins maven-javadoc-plugin - + + + ${project.build.sourceDirectory} com.microsoft.playwright - com.microsoft.playwright.impl + com.microsoft.playwright.impl:com.microsoft.playwright.impl.* - - org.apache.maven.plugins - maven-compiler-plugin - - - org.apache.maven.plugins - maven-surefire-plugin - org.apache.maven.plugins maven-jar-plugin @@ -49,6 +44,14 @@ test-jar + + + + + com.microsoft.playwright.test + + + @@ -65,14 +68,36 @@ com.google.code.gson gson + + org.jspecify + jspecify + org.java-websocket Java-WebSocket + + + org.slf4j + slf4j-simple + org.junit.jupiter junit-jupiter-engine + + org.junit.platform + junit-platform-launcher + test + + + org.junit.jupiter + junit-jupiter-params + org.opentest4j opentest4j @@ -86,4 +111,65 @@ driver-bundle + + + nullaway + + [21,) + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + nullaway-testCompile + test-compile + + testCompile + + + true + + ${project.build.directory}/nullaway-test-classes + + com/microsoft/playwright/nullability/JSpecifyApiConsumer.java + + + -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED + -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED + -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED + -XDcompilePolicy=simple + --should-stop=ifError=FLOW + -XDaddTypeAnnotationsToSymbol=true + -Xplugin:ErrorProne -XepDisableAllChecks -Xep:NullAway:ERROR -XepOpt:NullAway:OnlyNullMarked=true -XepOpt:NullAway:JSpecifyMode=true + + + + com.google.errorprone + error_prone_core + ${error-prone.version} + + + com.uber.nullaway + nullaway + ${nullaway.version} + + + + + + + + + + diff --git a/playwright/src/main/java/com/microsoft/playwright/APIRequest.java b/playwright/src/main/java/com/microsoft/playwright/APIRequest.java index 43f8f19dc..20bd60abb 100644 --- a/playwright/src/main/java/com/microsoft/playwright/APIRequest.java +++ b/playwright/src/main/java/com/microsoft/playwright/APIRequest.java @@ -16,77 +16,114 @@ package com.microsoft.playwright; +import org.jspecify.annotations.Nullable; import com.microsoft.playwright.options.*; import java.nio.file.Path; import java.util.*; /** - * Exposes API that can be used for the Web API testing. This class is used for creating {@code APIRequestContext} instance which - * in turn can be used for sending web requests. An instance of this class can be obtained via {@link Playwright#request - * Playwright.request()}. For more information see {@code APIRequestContext}. + * Exposes API that can be used for the Web API testing. This class is used for creating {@code APIRequestContext} instance + * which in turn can be used for sending web requests. An instance of this class can be obtained via {@link + * com.microsoft.playwright.Playwright#request Playwright.request()}. For more information see {@code APIRequestContext}. */ public interface APIRequest { class NewContextOptions { /** - * Methods like {@link APIRequestContext#get APIRequestContext.get()} take the base URL into consideration by using the {@code URL()} constructor for building the corresponding - * URL. Examples: + * Methods like {@link com.microsoft.playwright.APIRequestContext#get APIRequestContext.get()} take the base URL into + * consideration by using the {@code URL()} + * constructor for building the corresponding URL. Examples: *
    - *
  • baseURL: {@code http://localhost:3000} and sending request to {@code /bar.html} results in {@code http://localhost:3000/bar.html}
  • - *
  • baseURL: {@code http://localhost:3000/foo/} and sending request to {@code ./bar.html} results in - * {@code http://localhost:3000/foo/bar.html}
  • + *
  • baseURL: {@code http://localhost:3000} and sending request to {@code /bar.html} results in {@code + * http://localhost:3000/bar.html}
  • + *
  • baseURL: {@code http://localhost:3000/foo/} and sending request to {@code ./bar.html} results in {@code + * http://localhost:3000/foo/bar.html}
  • *
  • baseURL: {@code http://localhost:3000/foo} (without trailing slash) and navigating to {@code ./bar.html} results in * {@code http://localhost:3000/bar.html}
  • *
*/ - public String baseURL; + public @Nullable String baseURL; /** - * An object containing additional HTTP headers to be sent with every request. + * TLS Client Authentication allows the server to request a client certificate and verify it. + * + *

Details + * + *

An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code + * keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or + * {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code + * origin} property should be provided with an exact match to the request origin that the certificate is valid for. + * + *

Client certificate authentication is only active when at least one client certificate is provided. If you want to reject + * all client certificates sent by the server, you need to provide a client certificate with an {@code origin} that does + * not match any of the domains you plan to visit. + * + *

NOTE: When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by + * replacing {@code localhost} with {@code local.playwright}. */ - public Map extraHTTPHeaders; + public @Nullable List clientCertificates; /** - * Credentials for HTTP authentication. + * An object containing additional HTTP headers to be sent with every request. Defaults to none. */ - public HttpCredentials httpCredentials; + public @Nullable Map extraHTTPHeaders; + /** + * Whether to throw on response codes other than 2xx and 3xx. By default response object is returned for all status codes. + */ + public @Nullable Boolean failOnStatusCode; + /** + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. + */ + public @Nullable Object httpCredentials; /** * Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}. */ - public Boolean ignoreHTTPSErrors; + public @Nullable Boolean ignoreHTTPSErrors; + /** + * Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is + * exceeded. Defaults to {@code 20}. Pass {@code 0} to not follow redirects. This can be overwritten for each request + * individually. + */ + public @Nullable Integer maxRedirects; /** * Network proxy settings. */ - public Proxy proxy; + public @Nullable Proxy proxy; /** * Populates context with given storage state. This option can be used to initialize context with logged-in information - * obtained via {@link BrowserContext#storageState BrowserContext.storageState()} or {@link APIRequestContext#storageState - * APIRequestContext.storageState()}. Either a path to the file with saved storage, or the value returned by one of {@link - * BrowserContext#storageState BrowserContext.storageState()} or {@link APIRequestContext#storageState + * obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()} or {@link + * com.microsoft.playwright.APIRequestContext#storageState APIRequestContext.storageState()}. Either a path to the file + * with saved storage, or the value returned by one of {@link com.microsoft.playwright.BrowserContext#storageState + * BrowserContext.storageState()} or {@link com.microsoft.playwright.APIRequestContext#storageState * APIRequestContext.storageState()} methods. */ - public String storageState; + public @Nullable String storageState; /** * Populates context with given storage state. This option can be used to initialize context with logged-in information - * obtained via {@link BrowserContext#storageState BrowserContext.storageState()}. Path to the file with saved storage - * state. + * obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}. Path to the + * file with saved storage state. */ - public Path storageStatePath; + public @Nullable Path storageStatePath; /** - * Maximum time in milliseconds to wait for the response. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. + * Maximum time in milliseconds to wait for the response. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable + * timeout. */ - public Double timeout; + public @Nullable Double timeout; /** * Specific user agent to use in this context. */ - public String userAgent; + public @Nullable String userAgent; /** - * Methods like {@link APIRequestContext#get APIRequestContext.get()} take the base URL into consideration by using the {@code URL()} constructor for building the corresponding - * URL. Examples: + * Methods like {@link com.microsoft.playwright.APIRequestContext#get APIRequestContext.get()} take the base URL into + * consideration by using the {@code URL()} + * constructor for building the corresponding URL. Examples: *

    - *
  • baseURL: {@code http://localhost:3000} and sending request to {@code /bar.html} results in {@code http://localhost:3000/bar.html}
  • - *
  • baseURL: {@code http://localhost:3000/foo/} and sending request to {@code ./bar.html} results in - * {@code http://localhost:3000/foo/bar.html}
  • + *
  • baseURL: {@code http://localhost:3000} and sending request to {@code /bar.html} results in {@code + * http://localhost:3000/bar.html}
  • + *
  • baseURL: {@code http://localhost:3000/foo/} and sending request to {@code ./bar.html} results in {@code + * http://localhost:3000/foo/bar.html}
  • *
  • baseURL: {@code http://localhost:3000/foo} (without trailing slash) and navigating to {@code ./bar.html} results in * {@code http://localhost:3000/bar.html}
  • *
@@ -96,25 +133,72 @@ public NewContextOptions setBaseURL(String baseURL) { return this; } /** - * An object containing additional HTTP headers to be sent with every request. + * TLS Client Authentication allows the server to request a client certificate and verify it. + * + *

Details + * + *

An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code + * keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or + * {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code + * origin} property should be provided with an exact match to the request origin that the certificate is valid for. + * + *

Client certificate authentication is only active when at least one client certificate is provided. If you want to reject + * all client certificates sent by the server, you need to provide a client certificate with an {@code origin} that does + * not match any of the domains you plan to visit. + * + *

NOTE: When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by + * replacing {@code localhost} with {@code local.playwright}. + */ + public NewContextOptions setClientCertificates(List clientCertificates) { + this.clientCertificates = clientCertificates; + return this; + } + /** + * An object containing additional HTTP headers to be sent with every request. Defaults to none. */ public NewContextOptions setExtraHTTPHeaders(Map extraHTTPHeaders) { this.extraHTTPHeaders = extraHTTPHeaders; return this; } /** - * Credentials for HTTP authentication. + * Whether to throw on response codes other than 2xx and 3xx. By default response object is returned for all status codes. + */ + public NewContextOptions setFailOnStatusCode(boolean failOnStatusCode) { + this.failOnStatusCode = failOnStatusCode; + return this; + } + /** + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. */ public NewContextOptions setHttpCredentials(String username, String password) { return setHttpCredentials(new HttpCredentials(username, password)); } /** - * Credentials for HTTP authentication. + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. */ public NewContextOptions setHttpCredentials(HttpCredentials httpCredentials) { this.httpCredentials = httpCredentials; return this; } + /** + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. + */ + public NewContextOptions setHttpCredentials(List httpCredentials) { + this.httpCredentials = httpCredentials; + return this; + } /** * Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}. */ @@ -122,6 +206,15 @@ public NewContextOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) { this.ignoreHTTPSErrors = ignoreHTTPSErrors; return this; } + /** + * Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is + * exceeded. Defaults to {@code 20}. Pass {@code 0} to not follow redirects. This can be overwritten for each request + * individually. + */ + public NewContextOptions setMaxRedirects(int maxRedirects) { + this.maxRedirects = maxRedirects; + return this; + } /** * Network proxy settings. */ @@ -137,9 +230,10 @@ public NewContextOptions setProxy(Proxy proxy) { } /** * Populates context with given storage state. This option can be used to initialize context with logged-in information - * obtained via {@link BrowserContext#storageState BrowserContext.storageState()} or {@link APIRequestContext#storageState - * APIRequestContext.storageState()}. Either a path to the file with saved storage, or the value returned by one of {@link - * BrowserContext#storageState BrowserContext.storageState()} or {@link APIRequestContext#storageState + * obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()} or {@link + * com.microsoft.playwright.APIRequestContext#storageState APIRequestContext.storageState()}. Either a path to the file + * with saved storage, or the value returned by one of {@link com.microsoft.playwright.BrowserContext#storageState + * BrowserContext.storageState()} or {@link com.microsoft.playwright.APIRequestContext#storageState * APIRequestContext.storageState()} methods. */ public NewContextOptions setStorageState(String storageState) { @@ -148,15 +242,16 @@ public NewContextOptions setStorageState(String storageState) { } /** * Populates context with given storage state. This option can be used to initialize context with logged-in information - * obtained via {@link BrowserContext#storageState BrowserContext.storageState()}. Path to the file with saved storage - * state. + * obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}. Path to the + * file with saved storage state. */ public NewContextOptions setStorageStatePath(Path storageStatePath) { this.storageStatePath = storageStatePath; return this; } /** - * Maximum time in milliseconds to wait for the response. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. + * Maximum time in milliseconds to wait for the response. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable + * timeout. */ public NewContextOptions setTimeout(double timeout) { this.timeout = timeout; @@ -172,13 +267,17 @@ public NewContextOptions setUserAgent(String userAgent) { } /** * Creates new instances of {@code APIRequestContext}. + * + * @since v1.16 */ default APIRequestContext newContext() { return newContext(null); } /** * Creates new instances of {@code APIRequestContext}. + * + * @since v1.16 */ - APIRequestContext newContext(NewContextOptions options); + APIRequestContext newContext(@Nullable NewContextOptions options); } diff --git a/playwright/src/main/java/com/microsoft/playwright/APIRequestContext.java b/playwright/src/main/java/com/microsoft/playwright/APIRequestContext.java index 6570d5324..ee2163995 100644 --- a/playwright/src/main/java/com/microsoft/playwright/APIRequestContext.java +++ b/playwright/src/main/java/com/microsoft/playwright/APIRequestContext.java @@ -16,38 +16,135 @@ package com.microsoft.playwright; +import org.jspecify.annotations.Nullable; import com.microsoft.playwright.options.*; import java.nio.file.Path; +import java.util.*; +import java.util.regex.Pattern; /** * This API is used for the Web API testing. You can use it to trigger API endpoints, configure micro-services, prepare * environment or the service to your e2e test. * - *

Each Playwright browser context has associated with it {@code APIRequestContext} instance which shares cookie storage with the - * browser context and can be accessed via {@link BrowserContext#request BrowserContext.request()} or {@link Page#request - * Page.request()}. It is also possible to create a new APIRequestContext instance manually by calling {@link - * APIRequest#newContext APIRequest.newContext()}. + *

Each Playwright browser context has an associated {@code APIRequestContext}, accessible via {@link + * com.microsoft.playwright.BrowserContext#request BrowserContext.request()} or {@link + * com.microsoft.playwright.Page#request Page.request()} (these return the * - *

**Cookie management** + *

**same instance** — {@code page.request} is a shortcut for {@code page.context().request}). You can also create a + * standalone, isolated instance with {@link com.microsoft.playwright.APIRequest#newContext APIRequest.newContext()}. * - *

{@code APIRequestContext} returned by {@link BrowserContext#request BrowserContext.request()} and {@link Page#request - * Page.request()} shares cookie storage with the corresponding {@code BrowserContext}. Each API request will have {@code Cookie} - * header populated with the values from the browser context. If the API response contains {@code Set-Cookie} header it will - * automatically update {@code BrowserContext} cookies and requests made from the page will pick them up. This means that if you - * log in using this API, your e2e test will be logged in and vice versa. + *

Cookie management * - *

If you want API requests to not interfere with the browser cookies you should create a new {@code APIRequestContext} by - * calling {@link APIRequest#newContext APIRequest.newContext()}. Such {@code APIRequestContext} object will have its own - * isolated cookie storage. + *

The {@code APIRequestContext} returned by {@link com.microsoft.playwright.BrowserContext#request + * BrowserContext.request()} and + * + *

{@link com.microsoft.playwright.Page#request Page.request()} uses the same cookie jar as its {@code BrowserContext}: + * + *

If you want API requests that do **not** share cookies with the browser, create an isolated context via {@link + * com.microsoft.playwright.APIRequest#newContext APIRequest.newContext()}. Such {@code APIRequestContext} object will have + * its own isolated cookie storage. */ public interface APIRequestContext { + class ClearCookiesOptions { + /** + * Only removes cookies with the given domain. + */ + public @Nullable Object domain; + /** + * Only removes cookies with the given name. + */ + public @Nullable Object name; + /** + * Only removes cookies with the given path. + */ + public @Nullable Object path; + + /** + * Only removes cookies with the given domain. + */ + public ClearCookiesOptions setDomain(String domain) { + this.domain = domain; + return this; + } + /** + * Only removes cookies with the given domain. + */ + public ClearCookiesOptions setDomain(Pattern domain) { + this.domain = domain; + return this; + } + /** + * Only removes cookies with the given name. + */ + public ClearCookiesOptions setName(String name) { + this.name = name; + return this; + } + /** + * Only removes cookies with the given name. + */ + public ClearCookiesOptions setName(Pattern name) { + this.name = name; + return this; + } + /** + * Only removes cookies with the given path. + */ + public ClearCookiesOptions setPath(String path) { + this.path = path; + return this; + } + /** + * Only removes cookies with the given path. + */ + public ClearCookiesOptions setPath(Pattern path) { + this.path = path; + return this; + } + } + class DisposeOptions { + /** + * The reason to be reported to the operations interrupted by the context disposal. + */ + public @Nullable String reason; + + /** + * The reason to be reported to the operations interrupted by the context disposal. + */ + public DisposeOptions setReason(String reason) { + this.reason = reason; + return this; + } + } class StorageStateOptions { + /** + * Set to {@code true} to include IndexedDB in the storage state snapshot. + */ + public @Nullable Boolean indexedDB; + /** + * Set to {@code true} to include the origin private file system in the storage state snapshot. + */ + public @Nullable Boolean opfs; /** * The file path to save the storage state to. If {@code path} is a relative path, then it is resolved relative to current * working directory. If no path is provided, storage state is still returned, but won't be saved to the disk. */ - public Path path; + public @Nullable Path path; + /** + * Set to {@code true} to include IndexedDB in the storage state snapshot. + */ + public StorageStateOptions setIndexedDB(boolean indexedDB) { + this.indexedDB = indexedDB; + return this; + } + /** + * Set to {@code true} to include the origin private file system in the storage state snapshot. + */ + public StorageStateOptions setOpfs(boolean opfs) { + this.opfs = opfs; + return this; + } /** * The file path to save the storage state to. If {@code path} is a relative path, then it is resolved relative to current * working directory. If no path is provided, storage state is still returned, but won't be saved to the disk. @@ -57,12 +154,102 @@ public StorageStateOptions setPath(Path path) { return this; } } + /** + * Adds cookies into this request context. They will be sent with matching subsequent requests. For {@link + * com.microsoft.playwright.BrowserContext#request BrowserContext.request()} and {@link + * com.microsoft.playwright.Page#request Page.request()}, this is equivalent to calling {@link + * com.microsoft.playwright.BrowserContext#addCookies BrowserContext.addCookies()} on the corresponding browser context. + * + *

Usage + *

{@code
+   * request.addCookies(Arrays.asList(cookieObject1, cookieObject2));
+   * }
+ * + * @since v1.64 + */ + void addCookies(List cookies); + /** + * Removes cookies from this request context. Accepts optional filter. For {@link + * com.microsoft.playwright.BrowserContext#request BrowserContext.request()} and {@link + * com.microsoft.playwright.Page#request Page.request()}, this is equivalent to calling {@link + * com.microsoft.playwright.BrowserContext#clearCookies BrowserContext.clearCookies()} on the corresponding browser + * context. + * + *

Usage + *

{@code
+   * request.clearCookies();
+   * request.clearCookies(new APIRequestContext.ClearCookiesOptions().setName("session-id"));
+   * request.clearCookies(new APIRequestContext.ClearCookiesOptions().setDomain("my-origin.com"));
+   * request.clearCookies(new APIRequestContext.ClearCookiesOptions().setPath("/api/v1"));
+   * request.clearCookies(new APIRequestContext.ClearCookiesOptions()
+   *                          .setName("session-id")
+   *                          .setDomain("my-origin.com"));
+   * }
+ * + * @since v1.64 + */ + default void clearCookies() { + clearCookies(null); + } + /** + * Removes cookies from this request context. Accepts optional filter. For {@link + * com.microsoft.playwright.BrowserContext#request BrowserContext.request()} and {@link + * com.microsoft.playwright.Page#request Page.request()}, this is equivalent to calling {@link + * com.microsoft.playwright.BrowserContext#clearCookies BrowserContext.clearCookies()} on the corresponding browser + * context. + * + *

Usage + *

{@code
+   * request.clearCookies();
+   * request.clearCookies(new APIRequestContext.ClearCookiesOptions().setName("session-id"));
+   * request.clearCookies(new APIRequestContext.ClearCookiesOptions().setDomain("my-origin.com"));
+   * request.clearCookies(new APIRequestContext.ClearCookiesOptions().setPath("/api/v1"));
+   * request.clearCookies(new APIRequestContext.ClearCookiesOptions()
+   *                          .setName("session-id")
+   *                          .setDomain("my-origin.com"));
+   * }
+ * + * @since v1.64 + */ + void clearCookies(@Nullable ClearCookiesOptions options); + /** + * If no URLs are specified, this method returns all cookies. If URLs are specified, only cookies that affect those URLs + * are returned. For {@link com.microsoft.playwright.BrowserContext#request BrowserContext.request()} and {@link + * com.microsoft.playwright.Page#request Page.request()}, this is equivalent to calling {@link + * com.microsoft.playwright.BrowserContext#cookies BrowserContext.cookies()} on the corresponding browser context. + * + * @since v1.64 + */ + default List cookies() { + return cookies((String) null); + } + /** + * If no URLs are specified, this method returns all cookies. If URLs are specified, only cookies that affect those URLs + * are returned. For {@link com.microsoft.playwright.BrowserContext#request BrowserContext.request()} and {@link + * com.microsoft.playwright.Page#request Page.request()}, this is equivalent to calling {@link + * com.microsoft.playwright.BrowserContext#cookies BrowserContext.cookies()} on the corresponding browser context. + * + * @param urls Optional list of URLs. + * @since v1.64 + */ + List cookies(@Nullable String urls); + /** + * If no URLs are specified, this method returns all cookies. If URLs are specified, only cookies that affect those URLs + * are returned. For {@link com.microsoft.playwright.BrowserContext#request BrowserContext.request()} and {@link + * com.microsoft.playwright.Page#request Page.request()}, this is equivalent to calling {@link + * com.microsoft.playwright.BrowserContext#cookies BrowserContext.cookies()} on the corresponding browser context. + * + * @param urls Optional list of URLs. + * @since v1.64 + */ + List cookies(@Nullable List urls); /** * Sends HTTP(S) DELETE request and returns * its response. The method will populate request cookies from the context and update context cookies from the response. * The method will automatically follow redirects. * * @param url Target URL. + * @since v1.16 */ default APIResponse delete(String url) { return delete(url, null); @@ -74,19 +261,62 @@ default APIResponse delete(String url) { * * @param url Target URL. * @param params Optional request parameters. + * @since v1.16 */ - APIResponse delete(String url, RequestOptions params); + APIResponse delete(String url, @Nullable RequestOptions params); /** - * All responses returned by {@link APIRequestContext#get APIRequestContext.get()} and similar methods are stored in the - * memory, so that you can later call {@link APIResponse#body APIResponse.body()}. This method discards all stored - * responses, and makes {@link APIResponse#body APIResponse.body()} throw "Response disposed" error. + * All responses returned by {@link com.microsoft.playwright.APIRequestContext#get APIRequestContext.get()} and similar + * methods are stored in the memory, so that you can later call {@link com.microsoft.playwright.APIResponse#body + * APIResponse.body()}.This method discards all its resources, calling any method on disposed {@code APIRequestContext} + * will throw an exception. + * + * @since v1.16 */ - void dispose(); + default void dispose() { + dispose(null); + } + /** + * All responses returned by {@link com.microsoft.playwright.APIRequestContext#get APIRequestContext.get()} and similar + * methods are stored in the memory, so that you can later call {@link com.microsoft.playwright.APIResponse#body + * APIResponse.body()}.This method discards all its resources, calling any method on disposed {@code APIRequestContext} + * will throw an exception. + * + * @since v1.16 + */ + void dispose(@Nullable DisposeOptions options); /** * Sends HTTP(S) request and returns its response. The method will populate request cookies from the context and update * context cookies from the response. The method will automatically follow redirects. * + *

Usage + * + *

JSON objects can be passed directly to the request: + *

{@code
+   * Map data = new HashMap();
+   * data.put("title", "Book Title");
+   * data.put("body", "John Doe");
+   * request.fetch("https://example.com/api/createBook", RequestOptions.create().setMethod("post").setData(data));
+   * }
+ * + *

The common way to send file(s) in the body of a request is to upload them as form fields with {@code + * multipart/form-data} encoding, by specifiying the {@code multipart} parameter: + *

{@code
+   * // Pass file path to the form data constructor:
+   * Path file = Paths.get("team.csv");
+   * APIResponse response = request.fetch("https://example.com/api/uploadTeamList",
+   *   RequestOptions.create().setMethod("post").setMultipart(
+   *     FormData.create().set("fileField", file)));
+   *
+   * // Or you can pass the file content directly as FilePayload object:
+   * FilePayload filePayload = new FilePayload("f.js", "text/javascript",
+   *       "console.log(2022);".getBytes(StandardCharsets.UTF_8));
+   * APIResponse response = request.fetch("https://example.com/api/uploadScript",
+   *   RequestOptions.create().setMethod("post").setMultipart(
+   *     FormData.create().set("fileField", filePayload)));
+   * }
+ * * @param urlOrRequest Target URL or Request to get all parameters from. + * @since v1.16 */ default APIResponse fetch(String urlOrRequest) { return fetch(urlOrRequest, null); @@ -95,15 +325,71 @@ default APIResponse fetch(String urlOrRequest) { * Sends HTTP(S) request and returns its response. The method will populate request cookies from the context and update * context cookies from the response. The method will automatically follow redirects. * + *

Usage + * + *

JSON objects can be passed directly to the request: + *

{@code
+   * Map data = new HashMap();
+   * data.put("title", "Book Title");
+   * data.put("body", "John Doe");
+   * request.fetch("https://example.com/api/createBook", RequestOptions.create().setMethod("post").setData(data));
+   * }
+ * + *

The common way to send file(s) in the body of a request is to upload them as form fields with {@code + * multipart/form-data} encoding, by specifiying the {@code multipart} parameter: + *

{@code
+   * // Pass file path to the form data constructor:
+   * Path file = Paths.get("team.csv");
+   * APIResponse response = request.fetch("https://example.com/api/uploadTeamList",
+   *   RequestOptions.create().setMethod("post").setMultipart(
+   *     FormData.create().set("fileField", file)));
+   *
+   * // Or you can pass the file content directly as FilePayload object:
+   * FilePayload filePayload = new FilePayload("f.js", "text/javascript",
+   *       "console.log(2022);".getBytes(StandardCharsets.UTF_8));
+   * APIResponse response = request.fetch("https://example.com/api/uploadScript",
+   *   RequestOptions.create().setMethod("post").setMultipart(
+   *     FormData.create().set("fileField", filePayload)));
+   * }
+ * * @param urlOrRequest Target URL or Request to get all parameters from. * @param params Optional request parameters. + * @since v1.16 */ - APIResponse fetch(String urlOrRequest, RequestOptions params); + APIResponse fetch(String urlOrRequest, @Nullable RequestOptions params); /** * Sends HTTP(S) request and returns its response. The method will populate request cookies from the context and update * context cookies from the response. The method will automatically follow redirects. * + *

Usage + * + *

JSON objects can be passed directly to the request: + *

{@code
+   * Map data = new HashMap();
+   * data.put("title", "Book Title");
+   * data.put("body", "John Doe");
+   * request.fetch("https://example.com/api/createBook", RequestOptions.create().setMethod("post").setData(data));
+   * }
+ * + *

The common way to send file(s) in the body of a request is to upload them as form fields with {@code + * multipart/form-data} encoding, by specifiying the {@code multipart} parameter: + *

{@code
+   * // Pass file path to the form data constructor:
+   * Path file = Paths.get("team.csv");
+   * APIResponse response = request.fetch("https://example.com/api/uploadTeamList",
+   *   RequestOptions.create().setMethod("post").setMultipart(
+   *     FormData.create().set("fileField", file)));
+   *
+   * // Or you can pass the file content directly as FilePayload object:
+   * FilePayload filePayload = new FilePayload("f.js", "text/javascript",
+   *       "console.log(2022);".getBytes(StandardCharsets.UTF_8));
+   * APIResponse response = request.fetch("https://example.com/api/uploadScript",
+   *   RequestOptions.create().setMethod("post").setMultipart(
+   *     FormData.create().set("fileField", filePayload)));
+   * }
+ * * @param urlOrRequest Target URL or Request to get all parameters from. + * @since v1.16 */ default APIResponse fetch(Request urlOrRequest) { return fetch(urlOrRequest, null); @@ -112,16 +398,54 @@ default APIResponse fetch(Request urlOrRequest) { * Sends HTTP(S) request and returns its response. The method will populate request cookies from the context and update * context cookies from the response. The method will automatically follow redirects. * + *

Usage + * + *

JSON objects can be passed directly to the request: + *

{@code
+   * Map data = new HashMap();
+   * data.put("title", "Book Title");
+   * data.put("body", "John Doe");
+   * request.fetch("https://example.com/api/createBook", RequestOptions.create().setMethod("post").setData(data));
+   * }
+ * + *

The common way to send file(s) in the body of a request is to upload them as form fields with {@code + * multipart/form-data} encoding, by specifiying the {@code multipart} parameter: + *

{@code
+   * // Pass file path to the form data constructor:
+   * Path file = Paths.get("team.csv");
+   * APIResponse response = request.fetch("https://example.com/api/uploadTeamList",
+   *   RequestOptions.create().setMethod("post").setMultipart(
+   *     FormData.create().set("fileField", file)));
+   *
+   * // Or you can pass the file content directly as FilePayload object:
+   * FilePayload filePayload = new FilePayload("f.js", "text/javascript",
+   *       "console.log(2022);".getBytes(StandardCharsets.UTF_8));
+   * APIResponse response = request.fetch("https://example.com/api/uploadScript",
+   *   RequestOptions.create().setMethod("post").setMultipart(
+   *     FormData.create().set("fileField", filePayload)));
+   * }
+ * * @param urlOrRequest Target URL or Request to get all parameters from. * @param params Optional request parameters. + * @since v1.16 */ - APIResponse fetch(Request urlOrRequest, RequestOptions params); + APIResponse fetch(Request urlOrRequest, @Nullable RequestOptions params); /** * Sends HTTP(S) GET request and returns its * response. The method will populate request cookies from the context and update context cookies from the response. The * method will automatically follow redirects. * + *

Usage + * + *

Request parameters can be configured with {@code params} option, they will be serialized into the URL search parameters: + *

{@code
+   * request.get("https://example.com/api/getText", RequestOptions.create()
+   *   .setQueryParam("isbn", "1234")
+   *   .setQueryParam("page", 23));
+   * }
+ * * @param url Target URL. + * @since v1.16 */ default APIResponse get(String url) { return get(url, null); @@ -131,16 +455,27 @@ default APIResponse get(String url) { * response. The method will populate request cookies from the context and update context cookies from the response. The * method will automatically follow redirects. * + *

Usage + * + *

Request parameters can be configured with {@code params} option, they will be serialized into the URL search parameters: + *

{@code
+   * request.get("https://example.com/api/getText", RequestOptions.create()
+   *   .setQueryParam("isbn", "1234")
+   *   .setQueryParam("page", 23));
+   * }
+ * * @param url Target URL. * @param params Optional request parameters. + * @since v1.16 */ - APIResponse get(String url, RequestOptions params); + APIResponse get(String url, @Nullable RequestOptions params); /** * Sends HTTP(S) HEAD request and returns its * response. The method will populate request cookies from the context and update context cookies from the response. The * method will automatically follow redirects. * * @param url Target URL. + * @since v1.16 */ default APIResponse head(String url) { return head(url, null); @@ -152,14 +487,16 @@ default APIResponse head(String url) { * * @param url Target URL. * @param params Optional request parameters. + * @since v1.16 */ - APIResponse head(String url, RequestOptions params); + APIResponse head(String url, @Nullable RequestOptions params); /** * Sends HTTP(S) PATCH request and returns * its response. The method will populate request cookies from the context and update context cookies from the response. * The method will automatically follow redirects. * * @param url Target URL. + * @since v1.16 */ default APIResponse patch(String url) { return patch(url, null); @@ -171,14 +508,53 @@ default APIResponse patch(String url) { * * @param url Target URL. * @param params Optional request parameters. + * @since v1.16 */ - APIResponse patch(String url, RequestOptions params); + APIResponse patch(String url, @Nullable RequestOptions params); /** * Sends HTTP(S) POST request and returns its * response. The method will populate request cookies from the context and update context cookies from the response. The * method will automatically follow redirects. * + *

Usage + * + *

JSON objects can be passed directly to the request: + *

{@code
+   * Map data = new HashMap();
+   * data.put("title", "Book Title");
+   * data.put("body", "John Doe");
+   * request.post("https://example.com/api/createBook", RequestOptions.create().setData(data));
+   * }
+ * + *

To send form data to the server use {@code form} option. Its value will be encoded into the request body with {@code + * application/x-www-form-urlencoded} encoding (see below how to use {@code multipart/form-data} form encoding to send + * files): + *

{@code
+   * request.post("https://example.com/api/findBook", RequestOptions.create().setForm(
+   *     FormData.create().set("title", "Book Title").set("body", "John Doe")
+   * ));
+   * }
+ * + *

The common way to send file(s) in the body of a request is to upload them as form fields with {@code + * multipart/form-data} encoding. Use {@code FormData} to construct request body and pass it to the request as {@code + * multipart} parameter: + *

{@code
+   * // Pass file path to the form data constructor:
+   * Path file = Paths.get("team.csv");
+   * APIResponse response = request.post("https://example.com/api/uploadTeamList",
+   *   RequestOptions.create().setMultipart(
+   *     FormData.create().set("fileField", file)));
+   *
+   * // Or you can pass the file content directly as FilePayload object:
+   * FilePayload filePayload1 = new FilePayload("f1.js", "text/javascript",
+   *       "console.log(2022);".getBytes(StandardCharsets.UTF_8));
+   * APIResponse response = request.post("https://example.com/api/uploadScript",
+   *   RequestOptions.create().setMultipart(
+   *     FormData.create().set("fileField", filePayload)));
+   * }
+ * * @param url Target URL. + * @since v1.16 */ default APIResponse post(String url) { return post(url, null); @@ -188,16 +564,55 @@ default APIResponse post(String url) { * response. The method will populate request cookies from the context and update context cookies from the response. The * method will automatically follow redirects. * + *

Usage + * + *

JSON objects can be passed directly to the request: + *

{@code
+   * Map data = new HashMap();
+   * data.put("title", "Book Title");
+   * data.put("body", "John Doe");
+   * request.post("https://example.com/api/createBook", RequestOptions.create().setData(data));
+   * }
+ * + *

To send form data to the server use {@code form} option. Its value will be encoded into the request body with {@code + * application/x-www-form-urlencoded} encoding (see below how to use {@code multipart/form-data} form encoding to send + * files): + *

{@code
+   * request.post("https://example.com/api/findBook", RequestOptions.create().setForm(
+   *     FormData.create().set("title", "Book Title").set("body", "John Doe")
+   * ));
+   * }
+ * + *

The common way to send file(s) in the body of a request is to upload them as form fields with {@code + * multipart/form-data} encoding. Use {@code FormData} to construct request body and pass it to the request as {@code + * multipart} parameter: + *

{@code
+   * // Pass file path to the form data constructor:
+   * Path file = Paths.get("team.csv");
+   * APIResponse response = request.post("https://example.com/api/uploadTeamList",
+   *   RequestOptions.create().setMultipart(
+   *     FormData.create().set("fileField", file)));
+   *
+   * // Or you can pass the file content directly as FilePayload object:
+   * FilePayload filePayload1 = new FilePayload("f1.js", "text/javascript",
+   *       "console.log(2022);".getBytes(StandardCharsets.UTF_8));
+   * APIResponse response = request.post("https://example.com/api/uploadScript",
+   *   RequestOptions.create().setMultipart(
+   *     FormData.create().set("fileField", filePayload)));
+   * }
+ * * @param url Target URL. * @param params Optional request parameters. + * @since v1.16 */ - APIResponse post(String url, RequestOptions params); + APIResponse post(String url, @Nullable RequestOptions params); /** * Sends HTTP(S) PUT request and returns its * response. The method will populate request cookies from the context and update context cookies from the response. The * method will automatically follow redirects. * * @param url Target URL. + * @since v1.16 */ default APIResponse put(String url) { return put(url, null); @@ -209,11 +624,14 @@ default APIResponse put(String url) { * * @param url Target URL. * @param params Optional request parameters. + * @since v1.16 */ - APIResponse put(String url, RequestOptions params); + APIResponse put(String url, @Nullable RequestOptions params); /** * Returns storage state for this request context, contains current cookies and local storage snapshot if it was passed to * the constructor. + * + * @since v1.16 */ default String storageState() { return storageState(null); @@ -221,7 +639,15 @@ default String storageState() { /** * Returns storage state for this request context, contains current cookies and local storage snapshot if it was passed to * the constructor. + * + * @since v1.16 + */ + String storageState(@Nullable StorageStateOptions options); + /** + * Tracing recorder for requests made through this API request context. + * + * @since v1.60 */ - String storageState(StorageStateOptions options); + Tracing tracing(); } diff --git a/playwright/src/main/java/com/microsoft/playwright/APIResponse.java b/playwright/src/main/java/com/microsoft/playwright/APIResponse.java index 5330fcad0..e72069b6a 100644 --- a/playwright/src/main/java/com/microsoft/playwright/APIResponse.java +++ b/playwright/src/main/java/com/microsoft/playwright/APIResponse.java @@ -16,49 +16,92 @@ package com.microsoft.playwright; +import org.jspecify.annotations.Nullable; import com.microsoft.playwright.options.*; import java.util.*; /** - * {@code APIResponse} class represents responses returned by {@link APIRequestContext#get APIRequestContext.get()} and similar - * methods. + * {@code APIResponse} class represents responses returned by {@link com.microsoft.playwright.APIRequestContext#get + * APIRequestContext.get()} and similar methods. */ public interface APIResponse { /** * Returns the buffer with response body. + * + * @since v1.16 */ byte[] body(); /** * Disposes the body of this response. If not called then the body will stay in memory until the context closes. + * + * @since v1.16 */ void dispose(); /** * An object with all the response HTTP headers associated with this response. + * + * @since v1.16 */ Map headers(); /** - * An array with all the request HTTP headers associated with this response. Header names are not lower-cased. Headers with - * multiple entries, such as {@code Set-Cookie}, appear in the array multiple times. + * An array with all the response HTTP headers associated with this response. Header names are not lower-cased. Headers + * with multiple entries, such as {@code Set-Cookie}, appear in the array multiple times. + * + * @since v1.16 */ List headersArray(); /** * Contains a boolean stating whether the response was successful (status in the range 200-299) or not. + * + * @since v1.16 */ boolean ok(); + /** + * Returns SSL and other security information. Resolves to {@code null} for non-HTTPS responses. For redirected requests, + * returns the information for the last request in the redirect chain. + * + * @since v1.61 + */ + @Nullable SecurityDetails securityDetails(); + /** + * Returns the IP address and port of the server. Resolves to {@code null} if the server address is not available. For + * redirected requests, returns the information for the last request in the redirect chain. + * + * @since v1.61 + */ + @Nullable ServerAddr serverAddr(); /** * Contains the status code of the response (e.g., 200 for a success). + * + * @since v1.16 */ int status(); /** * Contains the status text of the response (e.g. usually an "OK" for a success). + * + * @since v1.16 */ String statusText(); /** * Returns the text representation of response body. + * + * @since v1.16 */ String text(); + /** + * Returns resource timing information for given response. For redirected requests, returns the information for the last + * request in the redirect chain. When the response is served from the HAR file, timing information is not + * available and all the values are -1. Find more information at Resource Timing API. + * + * @since v1.62 + */ + Timing timing(); /** * Contains the URL of the response. + * + * @since v1.16 */ String url(); } diff --git a/playwright/src/main/java/com/microsoft/playwright/Browser.java b/playwright/src/main/java/com/microsoft/playwright/Browser.java index acb80d75f..3d5707d84 100644 --- a/playwright/src/main/java/com/microsoft/playwright/Browser.java +++ b/playwright/src/main/java/com/microsoft/playwright/Browser.java @@ -16,6 +16,7 @@ package com.microsoft.playwright; +import org.jspecify.annotations.Nullable; import com.microsoft.playwright.options.*; import java.nio.file.Path; import java.util.*; @@ -23,31 +24,40 @@ import java.util.regex.Pattern; /** - * A Browser is created via {@link BrowserType#launch BrowserType.launch()}. An example of using a {@code Browser} to create a - * {@code Page}: + * A Browser is created via {@link com.microsoft.playwright.BrowserType#launch BrowserType.launch()}. An example of using a + * {@code Browser} to create a {@code Page}: *
{@code
  * import com.microsoft.playwright.*;
  *
  * public class Example {
- *   public static void main(String[] args) {
- *     try (Playwright playwright = Playwright.create()) {
- *       BrowserType firefox = playwright.firefox()
- *       Browser browser = firefox.launch();
- *       Page page = browser.newPage();
- *       page.navigate('https://example.com');
- *       browser.close();
- *     }
- *   }
+ *  public static void main(String[] args) {
+ *    try (Playwright playwright = Playwright.create()) {
+ *      BrowserType firefox = playwright.firefox();
+ *      Browser browser = firefox.launch();
+ *      Page page = browser.newPage();
+ *      page.navigate("https://example.com");
+ *      browser.close();
+ *    }
+ *  }
  * }
  * }
*/ public interface Browser extends AutoCloseable { + /** + * Emitted when a new browser context is created. + */ + void onContext(Consumer handler); + /** + * Removes handler that was previously added with {@link #onContext onContext(handler)}. + */ + void offContext(Consumer handler); + /** * Emitted when Browser gets disconnected from the browser application. This might happen because of one of the following: *
    *
  • Browser application is closed or crashed.
  • - *
  • The {@link Browser#close Browser.close()} method was called.
  • + *
  • The {@link com.microsoft.playwright.Browser#close Browser.close()} method was called.
  • *
*/ void onDisconnected(Consumer handler); @@ -56,174 +66,240 @@ public interface Browser extends AutoCloseable { */ void offDisconnected(Consumer handler); + class CloseOptions { + /** + * The reason to be reported to the operations interrupted by the browser closure. + */ + public @Nullable String reason; + + /** + * The reason to be reported to the operations interrupted by the browser closure. + */ + public CloseOptions setReason(String reason) { + this.reason = reason; + return this; + } + } class NewContextOptions { /** * Whether to automatically download all the attachments. Defaults to {@code true} where all the downloads are accepted. */ - public Boolean acceptDownloads; + public @Nullable Boolean acceptDownloads; /** - * When using {@link Page#navigate Page.navigate()}, {@link Page#route Page.route()}, {@link Page#waitForURL - * Page.waitForURL()}, {@link Page#waitForRequest Page.waitForRequest()}, or {@link Page#waitForResponse - * Page.waitForResponse()} it takes the base URL in consideration by using the {@code URL()} constructor for building the corresponding - * URL. Examples: + * When using {@link com.microsoft.playwright.Page#navigate Page.navigate()}, {@link com.microsoft.playwright.Page#route + * Page.route()}, {@link com.microsoft.playwright.Page#waitForURL Page.waitForURL()}, {@link + * com.microsoft.playwright.Page#waitForRequest Page.waitForRequest()}, or {@link + * com.microsoft.playwright.Page#waitForResponse Page.waitForResponse()} it takes the base URL in consideration by using + * the {@code URL()} constructor for building the + * corresponding URL. Unset by default. Examples: *
    - *
  • baseURL: {@code http://localhost:3000} and navigating to {@code /bar.html} results in {@code http://localhost:3000/bar.html}
  • - *
  • baseURL: {@code http://localhost:3000/foo/} and navigating to {@code ./bar.html} results in {@code http://localhost:3000/foo/bar.html}
  • + *
  • baseURL: {@code http://localhost:3000} and navigating to {@code /bar.html} results in {@code + * http://localhost:3000/bar.html}
  • + *
  • baseURL: {@code http://localhost:3000/foo/} and navigating to {@code ./bar.html} results in {@code + * http://localhost:3000/foo/bar.html}
  • *
  • baseURL: {@code http://localhost:3000/foo} (without trailing slash) and navigating to {@code ./bar.html} results in * {@code http://localhost:3000/bar.html}
  • *
*/ - public String baseURL; + public @Nullable String baseURL; + /** + * Toggles bypassing page's Content-Security-Policy. Defaults to {@code false}. + */ + public @Nullable Boolean bypassCSP; /** - * Toggles bypassing page's Content-Security-Policy. + * TLS Client Authentication allows the server to request a client certificate and verify it. + * + *

Details + * + *

An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code + * keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or + * {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code + * origin} property should be provided with an exact match to the request origin that the certificate is valid for. + * + *

Client certificate authentication is only active when at least one client certificate is provided. If you want to reject + * all client certificates sent by the server, you need to provide a client certificate with an {@code origin} that does + * not match any of the domains you plan to visit. + * + *

NOTE: When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by + * replacing {@code localhost} with {@code local.playwright}. */ - public Boolean bypassCSP; + public @Nullable List clientCertificates; /** - * Emulates {@code "prefers-colors-scheme"} media feature, supported values are {@code "light"}, {@code "dark"}, {@code "no-preference"}. See - * {@link Page#emulateMedia Page.emulateMedia()} for more details. Defaults to {@code "light"}. + * Emulates prefers-colors-scheme media + * feature, supported values are {@code "light"} and {@code "dark"}. See {@link com.microsoft.playwright.Page#emulateMedia + * Page.emulateMedia()} for more details. Passing {@code null} resets emulation to system defaults. Defaults to {@code + * "light"}. */ - public ColorScheme colorScheme; + public @Nullable Optional colorScheme; /** - * Specify device scale factor (can be thought of as dpr). Defaults to {@code 1}. + * Emulates {@code "prefers-contrast"} media feature, supported values are {@code "no-preference"}, {@code "more"}. See + * {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets + * emulation to system defaults. Defaults to {@code "no-preference"}. */ - public Double deviceScaleFactor; + public @Nullable Optional contrast; /** - * An object containing additional HTTP headers to be sent with every request. + * Specify device scale factor (can be thought of as dpr). Defaults to {@code 1}. Learn more about emulating devices with device scale factor. */ - public Map extraHTTPHeaders; + public @Nullable Double deviceScaleFactor; /** - * Emulates {@code "forced-colors"} media feature, supported values are {@code "active"}, {@code "none"}. See {@link Page#emulateMedia - * Page.emulateMedia()} for more details. Defaults to {@code "none"}. + * An object containing additional HTTP headers to be sent with every request. Defaults to none. */ - public ForcedColors forcedColors; - public Geolocation geolocation; + public @Nullable Map extraHTTPHeaders; /** - * Specifies if viewport supports touch events. Defaults to false. + * Emulates {@code "forced-colors"} media feature, supported values are {@code "active"}, {@code "none"}. See {@link + * com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets emulation + * to system defaults. Defaults to {@code "none"}. */ - public Boolean hasTouch; + public @Nullable Optional forcedColors; + public @Nullable Geolocation geolocation; /** - * Credentials for HTTP authentication. + * Specifies if viewport supports touch events. Defaults to false. Learn more about mobile emulation. */ - public HttpCredentials httpCredentials; + public @Nullable Boolean hasTouch; + /** + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. + */ + public @Nullable Object httpCredentials; /** * Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}. */ - public Boolean ignoreHTTPSErrors; + public @Nullable Boolean ignoreHTTPSErrors; /** - * Whether the {@code meta viewport} tag is taken into account and touch events are enabled. Defaults to {@code false}. Not supported - * in Firefox. + * Whether the {@code meta viewport} tag is taken into account and touch events are enabled. isMobile is a part of device, + * so you don't actually need to set it manually. Defaults to {@code false}. Learn more about mobile emulation. */ - public Boolean isMobile; + public @Nullable Boolean isMobile; /** - * Whether or not to enable JavaScript in the context. Defaults to {@code true}. + * Whether or not to enable JavaScript in the context. Defaults to {@code true}. Learn more about disabling JavaScript. */ - public Boolean javaScriptEnabled; + public @Nullable Boolean javaScriptEnabled; /** - * Specify user locale, for example {@code en-GB}, {@code de-DE}, etc. Locale will affect {@code navigator.language} value, {@code Accept-Language} - * request header value as well as number and date formatting rules. + * Specify user locale, for example {@code en-GB}, {@code de-DE}, etc. Locale will affect {@code navigator.language} value, + * {@code Accept-Language} request header value as well as number and date formatting rules. Defaults to the system default + * locale. Learn more about emulation in our emulation guide. */ - public String locale; + public @Nullable String locale; /** - * Whether to emulate network being offline. Defaults to {@code false}. + * Whether to emulate network being offline. Defaults to {@code false}. Learn more about network emulation. */ - public Boolean offline; + public @Nullable Boolean offline; /** - * A list of permissions to grant to all pages in this context. See {@link BrowserContext#grantPermissions - * BrowserContext.grantPermissions()} for more details. + * A list of permissions to grant to all pages in this context. See {@link + * com.microsoft.playwright.BrowserContext#grantPermissions BrowserContext.grantPermissions()} for more details. Defaults + * to none. */ - public List permissions; + public @Nullable List permissions; /** - * Network proxy settings to use with this context. - * - *

NOTE: For Chromium on Windows the browser needs to be launched with the global proxy for this option to work. If all contexts - * override the proxy, global proxy will be never used and can be any string, for example {@code launch({ proxy: { server: - * 'http://per-context' } })}. + * Network proxy settings to use with this context. Defaults to none. */ - public Proxy proxy; + public @Nullable Proxy proxy; /** - * Optional setting to control resource content management. If {@code omit} is specified, content is not persisted. If {@code attach} - * is specified, resources are persistet as separate files and all of these files are archived along with the HAR file. - * Defaults to {@code embed}, which stores content inline the HAR file as per HAR specification. + * Optional setting to control resource content management. If {@code omit} is specified, content is not persisted. If + * {@code attach} is specified, resources are persisted as separate files and all of these files are archived along with + * the HAR file. Defaults to {@code embed}, which stores content inline the HAR file as per HAR specification. */ - public HarContentPolicy recordHarContent; + public @Nullable HarContentPolicy recordHarContent; /** - * When set to {@code minimal}, only record information necessary for routing from HAR. This omits sizes, timing, page, cookies, - * security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code full}. + * When set to {@code minimal}, only record information necessary for routing from HAR. This omits sizes, timing, page, + * cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code + * full}. */ - public HarMode recordHarMode; + public @Nullable HarMode recordHarMode; /** * Optional setting to control whether to omit request content from the HAR. Defaults to {@code false}. */ - public Boolean recordHarOmitContent; + public @Nullable Boolean recordHarOmitContent; /** * Enables HAR recording for all pages into the specified HAR - * file on the filesystem. If not specified, the HAR is not recorded. Make sure to call {@link BrowserContext#close - * BrowserContext.close()} for the HAR to be saved. + * file on the filesystem. If not specified, the HAR is not recorded. Make sure to call {@link + * com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for the HAR to be saved. */ - public Path recordHarPath; - public Object recordHarUrlFilter; + public @Nullable Path recordHarPath; + public @Nullable Object recordHarUrlFilter; /** * Enables video recording for all pages into the specified directory. If not specified videos are not recorded. Make sure - * to call {@link BrowserContext#close BrowserContext.close()} for videos to be saved. + * to call {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for videos to be saved. + */ + public @Nullable Path recordVideoDir; + /** + * Frame rate of the recorded videos in frames per second. Defaults to {@code 25}. Firefox and WebKit currently capture up + * to 25 frames per second. */ - public Path recordVideoDir; + public @Nullable Integer recordVideoFps; /** * Dimensions of the recorded videos. If not specified the size will be equal to {@code viewport} scaled down to fit into - * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each page will - * be scaled down if necessary to fit the specified size. + * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each + * page will be scaled down if necessary to fit the specified size. */ - public RecordVideoSize recordVideoSize; + public @Nullable RecordVideoSize recordVideoSize; /** - * Emulates {@code "prefers-reduced-motion"} media feature, supported values are {@code "reduce"}, {@code "no-preference"}. See {@link - * Page#emulateMedia Page.emulateMedia()} for more details. Defaults to {@code "no-preference"}. + * Emulates {@code "prefers-reduced-motion"} media feature, supported values are {@code "reduce"}, {@code "no-preference"}. + * See {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets + * emulation to system defaults. Defaults to {@code "no-preference"}. */ - public ReducedMotion reducedMotion; + public @Nullable Optional reducedMotion; /** - * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code viewport} - * is set. + * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code + * viewport} is set. */ - public ScreenSize screenSize; + public @Nullable ScreenSize screenSize; /** * Whether to allow sites to register Service workers. Defaults to {@code "allow"}. *

    - *
  • {@code "allow"}: Service Workers can be - * registered.
  • + *
  • {@code "allow"}: Service Workers can + * be registered.
  • *
  • {@code "block"}: Playwright will block all registration of Service Workers.
  • *
*/ - public ServiceWorkerPolicy serviceWorkers; + public @Nullable ServiceWorkerPolicy serviceWorkers; /** * Populates context with given storage state. This option can be used to initialize context with logged-in information - * obtained via {@link BrowserContext#storageState BrowserContext.storageState()}. + * obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}. */ - public String storageState; + public @Nullable String storageState; /** * Populates context with given storage state. This option can be used to initialize context with logged-in information - * obtained via {@link BrowserContext#storageState BrowserContext.storageState()}. Path to the file with saved storage - * state. + * obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}. Path to the + * file with saved storage state. */ - public Path storageStatePath; + public @Nullable Path storageStatePath; /** - * If specified, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors - * that imply single target DOM element will throw when more than one element matches the selector. See {@code Locator} to learn - * more about the strict mode. + * If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors + * that imply single target DOM element will throw when more than one element matches the selector. This option does not + * affect any Locator APIs (Locators are always strict). Defaults to {@code false}. See {@code Locator} to learn more about + * the strict mode. */ - public Boolean strictSelectors; + public @Nullable Boolean strictSelectors; /** * Changes the timezone of the context. See ICU's - * metaZones.txt for a list of supported timezone IDs. + * metaZones.txt for a list of supported timezone IDs. Defaults to the system timezone. */ - public String timezoneId; + public @Nullable String timezoneId; /** * Specific user agent to use in this context. */ - public String userAgent; + public @Nullable String userAgent; /** - * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. {@code null} disables the default viewport. + * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. Use {@code null} to disable the consistent + * viewport emulation. Learn more about viewport + * emulation. + * + *

NOTE: The {@code null} value opts out from the default presets, makes viewport depend on the host window size defined by the + * operating system. It makes the execution of the tests non-deterministic. */ - public Optional viewportSize; + public @Nullable Optional viewportSize; /** * Whether to automatically download all the attachments. Defaults to {@code true} where all the downloads are accepted. @@ -233,14 +309,17 @@ public NewContextOptions setAcceptDownloads(boolean acceptDownloads) { return this; } /** - * When using {@link Page#navigate Page.navigate()}, {@link Page#route Page.route()}, {@link Page#waitForURL - * Page.waitForURL()}, {@link Page#waitForRequest Page.waitForRequest()}, or {@link Page#waitForResponse - * Page.waitForResponse()} it takes the base URL in consideration by using the {@code URL()} constructor for building the corresponding - * URL. Examples: + * When using {@link com.microsoft.playwright.Page#navigate Page.navigate()}, {@link com.microsoft.playwright.Page#route + * Page.route()}, {@link com.microsoft.playwright.Page#waitForURL Page.waitForURL()}, {@link + * com.microsoft.playwright.Page#waitForRequest Page.waitForRequest()}, or {@link + * com.microsoft.playwright.Page#waitForResponse Page.waitForResponse()} it takes the base URL in consideration by using + * the {@code URL()} constructor for building the + * corresponding URL. Unset by default. Examples: *

    - *
  • baseURL: {@code http://localhost:3000} and navigating to {@code /bar.html} results in {@code http://localhost:3000/bar.html}
  • - *
  • baseURL: {@code http://localhost:3000/foo/} and navigating to {@code ./bar.html} results in {@code http://localhost:3000/foo/bar.html}
  • + *
  • baseURL: {@code http://localhost:3000} and navigating to {@code /bar.html} results in {@code + * http://localhost:3000/bar.html}
  • + *
  • baseURL: {@code http://localhost:3000/foo/} and navigating to {@code ./bar.html} results in {@code + * http://localhost:3000/foo/bar.html}
  • *
  • baseURL: {@code http://localhost:3000/foo} (without trailing slash) and navigating to {@code ./bar.html} results in * {@code http://localhost:3000/bar.html}
  • *
@@ -250,40 +329,75 @@ public NewContextOptions setBaseURL(String baseURL) { return this; } /** - * Toggles bypassing page's Content-Security-Policy. + * Toggles bypassing page's Content-Security-Policy. Defaults to {@code false}. */ public NewContextOptions setBypassCSP(boolean bypassCSP) { this.bypassCSP = bypassCSP; return this; } /** - * Emulates {@code "prefers-colors-scheme"} media feature, supported values are {@code "light"}, {@code "dark"}, {@code "no-preference"}. See - * {@link Page#emulateMedia Page.emulateMedia()} for more details. Defaults to {@code "light"}. + * TLS Client Authentication allows the server to request a client certificate and verify it. + * + *

Details + * + *

An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code + * keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or + * {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code + * origin} property should be provided with an exact match to the request origin that the certificate is valid for. + * + *

Client certificate authentication is only active when at least one client certificate is provided. If you want to reject + * all client certificates sent by the server, you need to provide a client certificate with an {@code origin} that does + * not match any of the domains you plan to visit. + * + *

NOTE: When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by + * replacing {@code localhost} with {@code local.playwright}. */ - public NewContextOptions setColorScheme(ColorScheme colorScheme) { - this.colorScheme = colorScheme; + public NewContextOptions setClientCertificates(List clientCertificates) { + this.clientCertificates = clientCertificates; return this; } /** - * Specify device scale factor (can be thought of as dpr). Defaults to {@code 1}. + * Emulates prefers-colors-scheme media + * feature, supported values are {@code "light"} and {@code "dark"}. See {@link com.microsoft.playwright.Page#emulateMedia + * Page.emulateMedia()} for more details. Passing {@code null} resets emulation to system defaults. Defaults to {@code + * "light"}. + */ + public NewContextOptions setColorScheme(@Nullable ColorScheme colorScheme) { + this.colorScheme = Optional.ofNullable(colorScheme); + return this; + } + /** + * Emulates {@code "prefers-contrast"} media feature, supported values are {@code "no-preference"}, {@code "more"}. See + * {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets + * emulation to system defaults. Defaults to {@code "no-preference"}. + */ + public NewContextOptions setContrast(@Nullable Contrast contrast) { + this.contrast = Optional.ofNullable(contrast); + return this; + } + /** + * Specify device scale factor (can be thought of as dpr). Defaults to {@code 1}. Learn more about emulating devices with device scale factor. */ public NewContextOptions setDeviceScaleFactor(double deviceScaleFactor) { this.deviceScaleFactor = deviceScaleFactor; return this; } /** - * An object containing additional HTTP headers to be sent with every request. + * An object containing additional HTTP headers to be sent with every request. Defaults to none. */ public NewContextOptions setExtraHTTPHeaders(Map extraHTTPHeaders) { this.extraHTTPHeaders = extraHTTPHeaders; return this; } /** - * Emulates {@code "forced-colors"} media feature, supported values are {@code "active"}, {@code "none"}. See {@link Page#emulateMedia - * Page.emulateMedia()} for more details. Defaults to {@code "none"}. + * Emulates {@code "forced-colors"} media feature, supported values are {@code "active"}, {@code "none"}. See {@link + * com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets emulation + * to system defaults. Defaults to {@code "none"}. */ - public NewContextOptions setForcedColors(ForcedColors forcedColors) { - this.forcedColors = forcedColors; + public NewContextOptions setForcedColors(@Nullable ForcedColors forcedColors) { + this.forcedColors = Optional.ofNullable(forcedColors); return this; } public NewContextOptions setGeolocation(double latitude, double longitude) { @@ -294,25 +408,45 @@ public NewContextOptions setGeolocation(Geolocation geolocation) { return this; } /** - * Specifies if viewport supports touch events. Defaults to false. + * Specifies if viewport supports touch events. Defaults to false. Learn more about mobile emulation. */ public NewContextOptions setHasTouch(boolean hasTouch) { this.hasTouch = hasTouch; return this; } /** - * Credentials for HTTP authentication. + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. */ public NewContextOptions setHttpCredentials(String username, String password) { return setHttpCredentials(new HttpCredentials(username, password)); } /** - * Credentials for HTTP authentication. + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. */ public NewContextOptions setHttpCredentials(HttpCredentials httpCredentials) { this.httpCredentials = httpCredentials; return this; } + /** + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. + */ + public NewContextOptions setHttpCredentials(List httpCredentials) { + this.httpCredentials = httpCredentials; + return this; + } /** * Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}. */ @@ -321,76 +455,75 @@ public NewContextOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) { return this; } /** - * Whether the {@code meta viewport} tag is taken into account and touch events are enabled. Defaults to {@code false}. Not supported - * in Firefox. + * Whether the {@code meta viewport} tag is taken into account and touch events are enabled. isMobile is a part of device, + * so you don't actually need to set it manually. Defaults to {@code false}. Learn more about mobile emulation. */ public NewContextOptions setIsMobile(boolean isMobile) { this.isMobile = isMobile; return this; } /** - * Whether or not to enable JavaScript in the context. Defaults to {@code true}. + * Whether or not to enable JavaScript in the context. Defaults to {@code true}. Learn more about disabling JavaScript. */ public NewContextOptions setJavaScriptEnabled(boolean javaScriptEnabled) { this.javaScriptEnabled = javaScriptEnabled; return this; } /** - * Specify user locale, for example {@code en-GB}, {@code de-DE}, etc. Locale will affect {@code navigator.language} value, {@code Accept-Language} - * request header value as well as number and date formatting rules. + * Specify user locale, for example {@code en-GB}, {@code de-DE}, etc. Locale will affect {@code navigator.language} value, + * {@code Accept-Language} request header value as well as number and date formatting rules. Defaults to the system default + * locale. Learn more about emulation in our emulation guide. */ public NewContextOptions setLocale(String locale) { this.locale = locale; return this; } /** - * Whether to emulate network being offline. Defaults to {@code false}. + * Whether to emulate network being offline. Defaults to {@code false}. Learn more about network emulation. */ public NewContextOptions setOffline(boolean offline) { this.offline = offline; return this; } /** - * A list of permissions to grant to all pages in this context. See {@link BrowserContext#grantPermissions - * BrowserContext.grantPermissions()} for more details. + * A list of permissions to grant to all pages in this context. See {@link + * com.microsoft.playwright.BrowserContext#grantPermissions BrowserContext.grantPermissions()} for more details. Defaults + * to none. */ public NewContextOptions setPermissions(List permissions) { this.permissions = permissions; return this; } /** - * Network proxy settings to use with this context. - * - *

NOTE: For Chromium on Windows the browser needs to be launched with the global proxy for this option to work. If all contexts - * override the proxy, global proxy will be never used and can be any string, for example {@code launch({ proxy: { server: - * 'http://per-context' } })}. + * Network proxy settings to use with this context. Defaults to none. */ public NewContextOptions setProxy(String server) { return setProxy(new Proxy(server)); } /** - * Network proxy settings to use with this context. - * - *

NOTE: For Chromium on Windows the browser needs to be launched with the global proxy for this option to work. If all contexts - * override the proxy, global proxy will be never used and can be any string, for example {@code launch({ proxy: { server: - * 'http://per-context' } })}. + * Network proxy settings to use with this context. Defaults to none. */ public NewContextOptions setProxy(Proxy proxy) { this.proxy = proxy; return this; } /** - * Optional setting to control resource content management. If {@code omit} is specified, content is not persisted. If {@code attach} - * is specified, resources are persistet as separate files and all of these files are archived along with the HAR file. - * Defaults to {@code embed}, which stores content inline the HAR file as per HAR specification. + * Optional setting to control resource content management. If {@code omit} is specified, content is not persisted. If + * {@code attach} is specified, resources are persisted as separate files and all of these files are archived along with + * the HAR file. Defaults to {@code embed}, which stores content inline the HAR file as per HAR specification. */ public NewContextOptions setRecordHarContent(HarContentPolicy recordHarContent) { this.recordHarContent = recordHarContent; return this; } /** - * When set to {@code minimal}, only record information necessary for routing from HAR. This omits sizes, timing, page, cookies, - * security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code full}. + * When set to {@code minimal}, only record information necessary for routing from HAR. This omits sizes, timing, page, + * cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code + * full}. */ public NewContextOptions setRecordHarMode(HarMode recordHarMode) { this.recordHarMode = recordHarMode; @@ -405,8 +538,8 @@ public NewContextOptions setRecordHarOmitContent(boolean recordHarOmitContent) { } /** * Enables HAR recording for all pages into the specified HAR - * file on the filesystem. If not specified, the HAR is not recorded. Make sure to call {@link BrowserContext#close - * BrowserContext.close()} for the HAR to be saved. + * file on the filesystem. If not specified, the HAR is not recorded. Make sure to call {@link + * com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for the HAR to be saved. */ public NewContextOptions setRecordHarPath(Path recordHarPath) { this.recordHarPath = recordHarPath; @@ -422,47 +555,56 @@ public NewContextOptions setRecordHarUrlFilter(Pattern recordHarUrlFilter) { } /** * Enables video recording for all pages into the specified directory. If not specified videos are not recorded. Make sure - * to call {@link BrowserContext#close BrowserContext.close()} for videos to be saved. + * to call {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for videos to be saved. */ public NewContextOptions setRecordVideoDir(Path recordVideoDir) { this.recordVideoDir = recordVideoDir; return this; } + /** + * Frame rate of the recorded videos in frames per second. Defaults to {@code 25}. Firefox and WebKit currently capture up + * to 25 frames per second. + */ + public NewContextOptions setRecordVideoFps(int recordVideoFps) { + this.recordVideoFps = recordVideoFps; + return this; + } /** * Dimensions of the recorded videos. If not specified the size will be equal to {@code viewport} scaled down to fit into - * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each page will - * be scaled down if necessary to fit the specified size. + * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each + * page will be scaled down if necessary to fit the specified size. */ public NewContextOptions setRecordVideoSize(int width, int height) { return setRecordVideoSize(new RecordVideoSize(width, height)); } /** * Dimensions of the recorded videos. If not specified the size will be equal to {@code viewport} scaled down to fit into - * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each page will - * be scaled down if necessary to fit the specified size. + * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each + * page will be scaled down if necessary to fit the specified size. */ public NewContextOptions setRecordVideoSize(RecordVideoSize recordVideoSize) { this.recordVideoSize = recordVideoSize; return this; } /** - * Emulates {@code "prefers-reduced-motion"} media feature, supported values are {@code "reduce"}, {@code "no-preference"}. See {@link - * Page#emulateMedia Page.emulateMedia()} for more details. Defaults to {@code "no-preference"}. + * Emulates {@code "prefers-reduced-motion"} media feature, supported values are {@code "reduce"}, {@code "no-preference"}. + * See {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets + * emulation to system defaults. Defaults to {@code "no-preference"}. */ - public NewContextOptions setReducedMotion(ReducedMotion reducedMotion) { - this.reducedMotion = reducedMotion; + public NewContextOptions setReducedMotion(@Nullable ReducedMotion reducedMotion) { + this.reducedMotion = Optional.ofNullable(reducedMotion); return this; } /** - * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code viewport} - * is set. + * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code + * viewport} is set. */ public NewContextOptions setScreenSize(int width, int height) { return setScreenSize(new ScreenSize(width, height)); } /** - * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code viewport} - * is set. + * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code + * viewport} is set. */ public NewContextOptions setScreenSize(ScreenSize screenSize) { this.screenSize = screenSize; @@ -471,8 +613,8 @@ public NewContextOptions setScreenSize(ScreenSize screenSize) { /** * Whether to allow sites to register Service workers. Defaults to {@code "allow"}. *

    - *
  • {@code "allow"}: Service Workers can be - * registered.
  • + *
  • {@code "allow"}: Service Workers can + * be registered.
  • *
  • {@code "block"}: Playwright will block all registration of Service Workers.
  • *
*/ @@ -482,7 +624,7 @@ public NewContextOptions setServiceWorkers(ServiceWorkerPolicy serviceWorkers) { } /** * Populates context with given storage state. This option can be used to initialize context with logged-in information - * obtained via {@link BrowserContext#storageState BrowserContext.storageState()}. + * obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}. */ public NewContextOptions setStorageState(String storageState) { this.storageState = storageState; @@ -490,17 +632,18 @@ public NewContextOptions setStorageState(String storageState) { } /** * Populates context with given storage state. This option can be used to initialize context with logged-in information - * obtained via {@link BrowserContext#storageState BrowserContext.storageState()}. Path to the file with saved storage - * state. + * obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}. Path to the + * file with saved storage state. */ public NewContextOptions setStorageStatePath(Path storageStatePath) { this.storageStatePath = storageStatePath; return this; } /** - * If specified, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors - * that imply single target DOM element will throw when more than one element matches the selector. See {@code Locator} to learn - * more about the strict mode. + * If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors + * that imply single target DOM element will throw when more than one element matches the selector. This option does not + * affect any Locator APIs (Locators are always strict). Defaults to {@code false}. See {@code Locator} to learn more about + * the strict mode. */ public NewContextOptions setStrictSelectors(boolean strictSelectors) { this.strictSelectors = strictSelectors; @@ -509,7 +652,7 @@ public NewContextOptions setStrictSelectors(boolean strictSelectors) { /** * Changes the timezone of the context. See ICU's - * metaZones.txt for a list of supported timezone IDs. + * metaZones.txt for a list of supported timezone IDs. Defaults to the system timezone. */ public NewContextOptions setTimezoneId(String timezoneId) { this.timezoneId = timezoneId; @@ -523,15 +666,25 @@ public NewContextOptions setUserAgent(String userAgent) { return this; } /** - * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. {@code null} disables the default viewport. + * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. Use {@code null} to disable the consistent + * viewport emulation. Learn more about viewport + * emulation. + * + *

NOTE: The {@code null} value opts out from the default presets, makes viewport depend on the host window size defined by the + * operating system. It makes the execution of the tests non-deterministic. */ public NewContextOptions setViewportSize(int width, int height) { return setViewportSize(new ViewportSize(width, height)); } /** - * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. {@code null} disables the default viewport. + * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. Use {@code null} to disable the consistent + * viewport emulation. Learn more about viewport + * emulation. + * + *

NOTE: The {@code null} value opts out from the default presets, makes viewport depend on the host window size defined by the + * operating system. It makes the execution of the tests non-deterministic. */ - public NewContextOptions setViewportSize(ViewportSize viewportSize) { + public NewContextOptions setViewportSize(@Nullable ViewportSize viewportSize) { this.viewportSize = Optional.ofNullable(viewportSize); return this; } @@ -540,170 +693,222 @@ class NewPageOptions { /** * Whether to automatically download all the attachments. Defaults to {@code true} where all the downloads are accepted. */ - public Boolean acceptDownloads; + public @Nullable Boolean acceptDownloads; /** - * When using {@link Page#navigate Page.navigate()}, {@link Page#route Page.route()}, {@link Page#waitForURL - * Page.waitForURL()}, {@link Page#waitForRequest Page.waitForRequest()}, or {@link Page#waitForResponse - * Page.waitForResponse()} it takes the base URL in consideration by using the {@code URL()} constructor for building the corresponding - * URL. Examples: + * When using {@link com.microsoft.playwright.Page#navigate Page.navigate()}, {@link com.microsoft.playwright.Page#route + * Page.route()}, {@link com.microsoft.playwright.Page#waitForURL Page.waitForURL()}, {@link + * com.microsoft.playwright.Page#waitForRequest Page.waitForRequest()}, or {@link + * com.microsoft.playwright.Page#waitForResponse Page.waitForResponse()} it takes the base URL in consideration by using + * the {@code URL()} constructor for building the + * corresponding URL. Unset by default. Examples: *

    - *
  • baseURL: {@code http://localhost:3000} and navigating to {@code /bar.html} results in {@code http://localhost:3000/bar.html}
  • - *
  • baseURL: {@code http://localhost:3000/foo/} and navigating to {@code ./bar.html} results in {@code http://localhost:3000/foo/bar.html}
  • + *
  • baseURL: {@code http://localhost:3000} and navigating to {@code /bar.html} results in {@code + * http://localhost:3000/bar.html}
  • + *
  • baseURL: {@code http://localhost:3000/foo/} and navigating to {@code ./bar.html} results in {@code + * http://localhost:3000/foo/bar.html}
  • *
  • baseURL: {@code http://localhost:3000/foo} (without trailing slash) and navigating to {@code ./bar.html} results in * {@code http://localhost:3000/bar.html}
  • *
*/ - public String baseURL; + public @Nullable String baseURL; /** - * Toggles bypassing page's Content-Security-Policy. + * Toggles bypassing page's Content-Security-Policy. Defaults to {@code false}. */ - public Boolean bypassCSP; + public @Nullable Boolean bypassCSP; /** - * Emulates {@code "prefers-colors-scheme"} media feature, supported values are {@code "light"}, {@code "dark"}, {@code "no-preference"}. See - * {@link Page#emulateMedia Page.emulateMedia()} for more details. Defaults to {@code "light"}. + * TLS Client Authentication allows the server to request a client certificate and verify it. + * + *

Details + * + *

An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code + * keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or + * {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code + * origin} property should be provided with an exact match to the request origin that the certificate is valid for. + * + *

Client certificate authentication is only active when at least one client certificate is provided. If you want to reject + * all client certificates sent by the server, you need to provide a client certificate with an {@code origin} that does + * not match any of the domains you plan to visit. + * + *

NOTE: When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by + * replacing {@code localhost} with {@code local.playwright}. */ - public ColorScheme colorScheme; + public @Nullable List clientCertificates; /** - * Specify device scale factor (can be thought of as dpr). Defaults to {@code 1}. + * Emulates prefers-colors-scheme media + * feature, supported values are {@code "light"} and {@code "dark"}. See {@link com.microsoft.playwright.Page#emulateMedia + * Page.emulateMedia()} for more details. Passing {@code null} resets emulation to system defaults. Defaults to {@code + * "light"}. */ - public Double deviceScaleFactor; + public @Nullable Optional colorScheme; /** - * An object containing additional HTTP headers to be sent with every request. + * Emulates {@code "prefers-contrast"} media feature, supported values are {@code "no-preference"}, {@code "more"}. See + * {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets + * emulation to system defaults. Defaults to {@code "no-preference"}. */ - public Map extraHTTPHeaders; + public @Nullable Optional contrast; /** - * Emulates {@code "forced-colors"} media feature, supported values are {@code "active"}, {@code "none"}. See {@link Page#emulateMedia - * Page.emulateMedia()} for more details. Defaults to {@code "none"}. + * Specify device scale factor (can be thought of as dpr). Defaults to {@code 1}. Learn more about emulating devices with device scale factor. */ - public ForcedColors forcedColors; - public Geolocation geolocation; + public @Nullable Double deviceScaleFactor; /** - * Specifies if viewport supports touch events. Defaults to false. + * An object containing additional HTTP headers to be sent with every request. Defaults to none. */ - public Boolean hasTouch; + public @Nullable Map extraHTTPHeaders; /** - * Credentials for HTTP authentication. + * Emulates {@code "forced-colors"} media feature, supported values are {@code "active"}, {@code "none"}. See {@link + * com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets emulation + * to system defaults. Defaults to {@code "none"}. */ - public HttpCredentials httpCredentials; + public @Nullable Optional forcedColors; + public @Nullable Geolocation geolocation; + /** + * Specifies if viewport supports touch events. Defaults to false. Learn more about mobile emulation. + */ + public @Nullable Boolean hasTouch; + /** + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. + */ + public @Nullable Object httpCredentials; /** * Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}. */ - public Boolean ignoreHTTPSErrors; + public @Nullable Boolean ignoreHTTPSErrors; /** - * Whether the {@code meta viewport} tag is taken into account and touch events are enabled. Defaults to {@code false}. Not supported - * in Firefox. + * Whether the {@code meta viewport} tag is taken into account and touch events are enabled. isMobile is a part of device, + * so you don't actually need to set it manually. Defaults to {@code false}. Learn more about mobile emulation. */ - public Boolean isMobile; + public @Nullable Boolean isMobile; /** - * Whether or not to enable JavaScript in the context. Defaults to {@code true}. + * Whether or not to enable JavaScript in the context. Defaults to {@code true}. Learn more about disabling JavaScript. */ - public Boolean javaScriptEnabled; + public @Nullable Boolean javaScriptEnabled; /** - * Specify user locale, for example {@code en-GB}, {@code de-DE}, etc. Locale will affect {@code navigator.language} value, {@code Accept-Language} - * request header value as well as number and date formatting rules. + * Specify user locale, for example {@code en-GB}, {@code de-DE}, etc. Locale will affect {@code navigator.language} value, + * {@code Accept-Language} request header value as well as number and date formatting rules. Defaults to the system default + * locale. Learn more about emulation in our emulation guide. */ - public String locale; + public @Nullable String locale; /** - * Whether to emulate network being offline. Defaults to {@code false}. + * Whether to emulate network being offline. Defaults to {@code false}. Learn more about network emulation. */ - public Boolean offline; + public @Nullable Boolean offline; /** - * A list of permissions to grant to all pages in this context. See {@link BrowserContext#grantPermissions - * BrowserContext.grantPermissions()} for more details. + * A list of permissions to grant to all pages in this context. See {@link + * com.microsoft.playwright.BrowserContext#grantPermissions BrowserContext.grantPermissions()} for more details. Defaults + * to none. */ - public List permissions; + public @Nullable List permissions; /** - * Network proxy settings to use with this context. - * - *

NOTE: For Chromium on Windows the browser needs to be launched with the global proxy for this option to work. If all contexts - * override the proxy, global proxy will be never used and can be any string, for example {@code launch({ proxy: { server: - * 'http://per-context' } })}. + * Network proxy settings to use with this context. Defaults to none. */ - public Proxy proxy; + public @Nullable Proxy proxy; /** - * Optional setting to control resource content management. If {@code omit} is specified, content is not persisted. If {@code attach} - * is specified, resources are persistet as separate files and all of these files are archived along with the HAR file. - * Defaults to {@code embed}, which stores content inline the HAR file as per HAR specification. + * Optional setting to control resource content management. If {@code omit} is specified, content is not persisted. If + * {@code attach} is specified, resources are persisted as separate files and all of these files are archived along with + * the HAR file. Defaults to {@code embed}, which stores content inline the HAR file as per HAR specification. */ - public HarContentPolicy recordHarContent; + public @Nullable HarContentPolicy recordHarContent; /** - * When set to {@code minimal}, only record information necessary for routing from HAR. This omits sizes, timing, page, cookies, - * security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code full}. + * When set to {@code minimal}, only record information necessary for routing from HAR. This omits sizes, timing, page, + * cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code + * full}. */ - public HarMode recordHarMode; + public @Nullable HarMode recordHarMode; /** * Optional setting to control whether to omit request content from the HAR. Defaults to {@code false}. */ - public Boolean recordHarOmitContent; + public @Nullable Boolean recordHarOmitContent; /** * Enables HAR recording for all pages into the specified HAR - * file on the filesystem. If not specified, the HAR is not recorded. Make sure to call {@link BrowserContext#close - * BrowserContext.close()} for the HAR to be saved. + * file on the filesystem. If not specified, the HAR is not recorded. Make sure to call {@link + * com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for the HAR to be saved. */ - public Path recordHarPath; - public Object recordHarUrlFilter; + public @Nullable Path recordHarPath; + public @Nullable Object recordHarUrlFilter; /** * Enables video recording for all pages into the specified directory. If not specified videos are not recorded. Make sure - * to call {@link BrowserContext#close BrowserContext.close()} for videos to be saved. + * to call {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for videos to be saved. */ - public Path recordVideoDir; + public @Nullable Path recordVideoDir; + /** + * Frame rate of the recorded videos in frames per second. Defaults to {@code 25}. Firefox and WebKit currently capture up + * to 25 frames per second. + */ + public @Nullable Integer recordVideoFps; /** * Dimensions of the recorded videos. If not specified the size will be equal to {@code viewport} scaled down to fit into - * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each page will - * be scaled down if necessary to fit the specified size. + * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each + * page will be scaled down if necessary to fit the specified size. */ - public RecordVideoSize recordVideoSize; + public @Nullable RecordVideoSize recordVideoSize; /** - * Emulates {@code "prefers-reduced-motion"} media feature, supported values are {@code "reduce"}, {@code "no-preference"}. See {@link - * Page#emulateMedia Page.emulateMedia()} for more details. Defaults to {@code "no-preference"}. + * Emulates {@code "prefers-reduced-motion"} media feature, supported values are {@code "reduce"}, {@code "no-preference"}. + * See {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets + * emulation to system defaults. Defaults to {@code "no-preference"}. */ - public ReducedMotion reducedMotion; + public @Nullable Optional reducedMotion; /** - * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code viewport} - * is set. + * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code + * viewport} is set. */ - public ScreenSize screenSize; + public @Nullable ScreenSize screenSize; /** * Whether to allow sites to register Service workers. Defaults to {@code "allow"}. *

    - *
  • {@code "allow"}: Service Workers can be - * registered.
  • + *
  • {@code "allow"}: Service Workers can + * be registered.
  • *
  • {@code "block"}: Playwright will block all registration of Service Workers.
  • *
*/ - public ServiceWorkerPolicy serviceWorkers; + public @Nullable ServiceWorkerPolicy serviceWorkers; /** * Populates context with given storage state. This option can be used to initialize context with logged-in information - * obtained via {@link BrowserContext#storageState BrowserContext.storageState()}. + * obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}. */ - public String storageState; + public @Nullable String storageState; /** * Populates context with given storage state. This option can be used to initialize context with logged-in information - * obtained via {@link BrowserContext#storageState BrowserContext.storageState()}. Path to the file with saved storage - * state. + * obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}. Path to the + * file with saved storage state. */ - public Path storageStatePath; + public @Nullable Path storageStatePath; /** - * If specified, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors - * that imply single target DOM element will throw when more than one element matches the selector. See {@code Locator} to learn - * more about the strict mode. + * If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors + * that imply single target DOM element will throw when more than one element matches the selector. This option does not + * affect any Locator APIs (Locators are always strict). Defaults to {@code false}. See {@code Locator} to learn more about + * the strict mode. */ - public Boolean strictSelectors; + public @Nullable Boolean strictSelectors; /** * Changes the timezone of the context. See ICU's - * metaZones.txt for a list of supported timezone IDs. + * metaZones.txt for a list of supported timezone IDs. Defaults to the system timezone. */ - public String timezoneId; + public @Nullable String timezoneId; /** * Specific user agent to use in this context. */ - public String userAgent; + public @Nullable String userAgent; /** - * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. {@code null} disables the default viewport. + * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. Use {@code null} to disable the consistent + * viewport emulation. Learn more about viewport + * emulation. + * + *

NOTE: The {@code null} value opts out from the default presets, makes viewport depend on the host window size defined by the + * operating system. It makes the execution of the tests non-deterministic. */ - public Optional viewportSize; + public @Nullable Optional viewportSize; /** * Whether to automatically download all the attachments. Defaults to {@code true} where all the downloads are accepted. @@ -713,14 +918,17 @@ public NewPageOptions setAcceptDownloads(boolean acceptDownloads) { return this; } /** - * When using {@link Page#navigate Page.navigate()}, {@link Page#route Page.route()}, {@link Page#waitForURL - * Page.waitForURL()}, {@link Page#waitForRequest Page.waitForRequest()}, or {@link Page#waitForResponse - * Page.waitForResponse()} it takes the base URL in consideration by using the {@code URL()} constructor for building the corresponding - * URL. Examples: + * When using {@link com.microsoft.playwright.Page#navigate Page.navigate()}, {@link com.microsoft.playwright.Page#route + * Page.route()}, {@link com.microsoft.playwright.Page#waitForURL Page.waitForURL()}, {@link + * com.microsoft.playwright.Page#waitForRequest Page.waitForRequest()}, or {@link + * com.microsoft.playwright.Page#waitForResponse Page.waitForResponse()} it takes the base URL in consideration by using + * the {@code URL()} constructor for building the + * corresponding URL. Unset by default. Examples: *

    - *
  • baseURL: {@code http://localhost:3000} and navigating to {@code /bar.html} results in {@code http://localhost:3000/bar.html}
  • - *
  • baseURL: {@code http://localhost:3000/foo/} and navigating to {@code ./bar.html} results in {@code http://localhost:3000/foo/bar.html}
  • + *
  • baseURL: {@code http://localhost:3000} and navigating to {@code /bar.html} results in {@code + * http://localhost:3000/bar.html}
  • + *
  • baseURL: {@code http://localhost:3000/foo/} and navigating to {@code ./bar.html} results in {@code + * http://localhost:3000/foo/bar.html}
  • *
  • baseURL: {@code http://localhost:3000/foo} (without trailing slash) and navigating to {@code ./bar.html} results in * {@code http://localhost:3000/bar.html}
  • *
@@ -730,40 +938,75 @@ public NewPageOptions setBaseURL(String baseURL) { return this; } /** - * Toggles bypassing page's Content-Security-Policy. + * Toggles bypassing page's Content-Security-Policy. Defaults to {@code false}. */ public NewPageOptions setBypassCSP(boolean bypassCSP) { this.bypassCSP = bypassCSP; return this; } /** - * Emulates {@code "prefers-colors-scheme"} media feature, supported values are {@code "light"}, {@code "dark"}, {@code "no-preference"}. See - * {@link Page#emulateMedia Page.emulateMedia()} for more details. Defaults to {@code "light"}. + * TLS Client Authentication allows the server to request a client certificate and verify it. + * + *

Details + * + *

An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code + * keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or + * {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code + * origin} property should be provided with an exact match to the request origin that the certificate is valid for. + * + *

Client certificate authentication is only active when at least one client certificate is provided. If you want to reject + * all client certificates sent by the server, you need to provide a client certificate with an {@code origin} that does + * not match any of the domains you plan to visit. + * + *

NOTE: When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by + * replacing {@code localhost} with {@code local.playwright}. + */ + public NewPageOptions setClientCertificates(List clientCertificates) { + this.clientCertificates = clientCertificates; + return this; + } + /** + * Emulates prefers-colors-scheme media + * feature, supported values are {@code "light"} and {@code "dark"}. See {@link com.microsoft.playwright.Page#emulateMedia + * Page.emulateMedia()} for more details. Passing {@code null} resets emulation to system defaults. Defaults to {@code + * "light"}. + */ + public NewPageOptions setColorScheme(@Nullable ColorScheme colorScheme) { + this.colorScheme = Optional.ofNullable(colorScheme); + return this; + } + /** + * Emulates {@code "prefers-contrast"} media feature, supported values are {@code "no-preference"}, {@code "more"}. See + * {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets + * emulation to system defaults. Defaults to {@code "no-preference"}. */ - public NewPageOptions setColorScheme(ColorScheme colorScheme) { - this.colorScheme = colorScheme; + public NewPageOptions setContrast(@Nullable Contrast contrast) { + this.contrast = Optional.ofNullable(contrast); return this; } /** - * Specify device scale factor (can be thought of as dpr). Defaults to {@code 1}. + * Specify device scale factor (can be thought of as dpr). Defaults to {@code 1}. Learn more about emulating devices with device scale factor. */ public NewPageOptions setDeviceScaleFactor(double deviceScaleFactor) { this.deviceScaleFactor = deviceScaleFactor; return this; } /** - * An object containing additional HTTP headers to be sent with every request. + * An object containing additional HTTP headers to be sent with every request. Defaults to none. */ public NewPageOptions setExtraHTTPHeaders(Map extraHTTPHeaders) { this.extraHTTPHeaders = extraHTTPHeaders; return this; } /** - * Emulates {@code "forced-colors"} media feature, supported values are {@code "active"}, {@code "none"}. See {@link Page#emulateMedia - * Page.emulateMedia()} for more details. Defaults to {@code "none"}. + * Emulates {@code "forced-colors"} media feature, supported values are {@code "active"}, {@code "none"}. See {@link + * com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets emulation + * to system defaults. Defaults to {@code "none"}. */ - public NewPageOptions setForcedColors(ForcedColors forcedColors) { - this.forcedColors = forcedColors; + public NewPageOptions setForcedColors(@Nullable ForcedColors forcedColors) { + this.forcedColors = Optional.ofNullable(forcedColors); return this; } public NewPageOptions setGeolocation(double latitude, double longitude) { @@ -774,25 +1017,45 @@ public NewPageOptions setGeolocation(Geolocation geolocation) { return this; } /** - * Specifies if viewport supports touch events. Defaults to false. + * Specifies if viewport supports touch events. Defaults to false. Learn more about mobile emulation. */ public NewPageOptions setHasTouch(boolean hasTouch) { this.hasTouch = hasTouch; return this; } /** - * Credentials for HTTP authentication. + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. */ public NewPageOptions setHttpCredentials(String username, String password) { return setHttpCredentials(new HttpCredentials(username, password)); } /** - * Credentials for HTTP authentication. + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. */ public NewPageOptions setHttpCredentials(HttpCredentials httpCredentials) { this.httpCredentials = httpCredentials; return this; } + /** + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. + */ + public NewPageOptions setHttpCredentials(List httpCredentials) { + this.httpCredentials = httpCredentials; + return this; + } /** * Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}. */ @@ -801,76 +1064,75 @@ public NewPageOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) { return this; } /** - * Whether the {@code meta viewport} tag is taken into account and touch events are enabled. Defaults to {@code false}. Not supported - * in Firefox. + * Whether the {@code meta viewport} tag is taken into account and touch events are enabled. isMobile is a part of device, + * so you don't actually need to set it manually. Defaults to {@code false}. Learn more about mobile emulation. */ public NewPageOptions setIsMobile(boolean isMobile) { this.isMobile = isMobile; return this; } /** - * Whether or not to enable JavaScript in the context. Defaults to {@code true}. + * Whether or not to enable JavaScript in the context. Defaults to {@code true}. Learn more about disabling JavaScript. */ public NewPageOptions setJavaScriptEnabled(boolean javaScriptEnabled) { this.javaScriptEnabled = javaScriptEnabled; return this; } /** - * Specify user locale, for example {@code en-GB}, {@code de-DE}, etc. Locale will affect {@code navigator.language} value, {@code Accept-Language} - * request header value as well as number and date formatting rules. + * Specify user locale, for example {@code en-GB}, {@code de-DE}, etc. Locale will affect {@code navigator.language} value, + * {@code Accept-Language} request header value as well as number and date formatting rules. Defaults to the system default + * locale. Learn more about emulation in our emulation guide. */ public NewPageOptions setLocale(String locale) { this.locale = locale; return this; } /** - * Whether to emulate network being offline. Defaults to {@code false}. + * Whether to emulate network being offline. Defaults to {@code false}. Learn more about network emulation. */ public NewPageOptions setOffline(boolean offline) { this.offline = offline; return this; } /** - * A list of permissions to grant to all pages in this context. See {@link BrowserContext#grantPermissions - * BrowserContext.grantPermissions()} for more details. + * A list of permissions to grant to all pages in this context. See {@link + * com.microsoft.playwright.BrowserContext#grantPermissions BrowserContext.grantPermissions()} for more details. Defaults + * to none. */ public NewPageOptions setPermissions(List permissions) { this.permissions = permissions; return this; } /** - * Network proxy settings to use with this context. - * - *

NOTE: For Chromium on Windows the browser needs to be launched with the global proxy for this option to work. If all contexts - * override the proxy, global proxy will be never used and can be any string, for example {@code launch({ proxy: { server: - * 'http://per-context' } })}. + * Network proxy settings to use with this context. Defaults to none. */ public NewPageOptions setProxy(String server) { return setProxy(new Proxy(server)); } /** - * Network proxy settings to use with this context. - * - *

NOTE: For Chromium on Windows the browser needs to be launched with the global proxy for this option to work. If all contexts - * override the proxy, global proxy will be never used and can be any string, for example {@code launch({ proxy: { server: - * 'http://per-context' } })}. + * Network proxy settings to use with this context. Defaults to none. */ public NewPageOptions setProxy(Proxy proxy) { this.proxy = proxy; return this; } /** - * Optional setting to control resource content management. If {@code omit} is specified, content is not persisted. If {@code attach} - * is specified, resources are persistet as separate files and all of these files are archived along with the HAR file. - * Defaults to {@code embed}, which stores content inline the HAR file as per HAR specification. + * Optional setting to control resource content management. If {@code omit} is specified, content is not persisted. If + * {@code attach} is specified, resources are persisted as separate files and all of these files are archived along with + * the HAR file. Defaults to {@code embed}, which stores content inline the HAR file as per HAR specification. */ public NewPageOptions setRecordHarContent(HarContentPolicy recordHarContent) { this.recordHarContent = recordHarContent; return this; } /** - * When set to {@code minimal}, only record information necessary for routing from HAR. This omits sizes, timing, page, cookies, - * security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code full}. + * When set to {@code minimal}, only record information necessary for routing from HAR. This omits sizes, timing, page, + * cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code + * full}. */ public NewPageOptions setRecordHarMode(HarMode recordHarMode) { this.recordHarMode = recordHarMode; @@ -885,8 +1147,8 @@ public NewPageOptions setRecordHarOmitContent(boolean recordHarOmitContent) { } /** * Enables HAR recording for all pages into the specified HAR - * file on the filesystem. If not specified, the HAR is not recorded. Make sure to call {@link BrowserContext#close - * BrowserContext.close()} for the HAR to be saved. + * file on the filesystem. If not specified, the HAR is not recorded. Make sure to call {@link + * com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for the HAR to be saved. */ public NewPageOptions setRecordHarPath(Path recordHarPath) { this.recordHarPath = recordHarPath; @@ -902,47 +1164,56 @@ public NewPageOptions setRecordHarUrlFilter(Pattern recordHarUrlFilter) { } /** * Enables video recording for all pages into the specified directory. If not specified videos are not recorded. Make sure - * to call {@link BrowserContext#close BrowserContext.close()} for videos to be saved. + * to call {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for videos to be saved. */ public NewPageOptions setRecordVideoDir(Path recordVideoDir) { this.recordVideoDir = recordVideoDir; return this; } + /** + * Frame rate of the recorded videos in frames per second. Defaults to {@code 25}. Firefox and WebKit currently capture up + * to 25 frames per second. + */ + public NewPageOptions setRecordVideoFps(int recordVideoFps) { + this.recordVideoFps = recordVideoFps; + return this; + } /** * Dimensions of the recorded videos. If not specified the size will be equal to {@code viewport} scaled down to fit into - * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each page will - * be scaled down if necessary to fit the specified size. + * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each + * page will be scaled down if necessary to fit the specified size. */ public NewPageOptions setRecordVideoSize(int width, int height) { return setRecordVideoSize(new RecordVideoSize(width, height)); } /** * Dimensions of the recorded videos. If not specified the size will be equal to {@code viewport} scaled down to fit into - * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each page will - * be scaled down if necessary to fit the specified size. + * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each + * page will be scaled down if necessary to fit the specified size. */ public NewPageOptions setRecordVideoSize(RecordVideoSize recordVideoSize) { this.recordVideoSize = recordVideoSize; return this; } /** - * Emulates {@code "prefers-reduced-motion"} media feature, supported values are {@code "reduce"}, {@code "no-preference"}. See {@link - * Page#emulateMedia Page.emulateMedia()} for more details. Defaults to {@code "no-preference"}. + * Emulates {@code "prefers-reduced-motion"} media feature, supported values are {@code "reduce"}, {@code "no-preference"}. + * See {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets + * emulation to system defaults. Defaults to {@code "no-preference"}. */ - public NewPageOptions setReducedMotion(ReducedMotion reducedMotion) { - this.reducedMotion = reducedMotion; + public NewPageOptions setReducedMotion(@Nullable ReducedMotion reducedMotion) { + this.reducedMotion = Optional.ofNullable(reducedMotion); return this; } /** - * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code viewport} - * is set. + * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code + * viewport} is set. */ public NewPageOptions setScreenSize(int width, int height) { return setScreenSize(new ScreenSize(width, height)); } /** - * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code viewport} - * is set. + * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code + * viewport} is set. */ public NewPageOptions setScreenSize(ScreenSize screenSize) { this.screenSize = screenSize; @@ -951,8 +1222,8 @@ public NewPageOptions setScreenSize(ScreenSize screenSize) { /** * Whether to allow sites to register Service workers. Defaults to {@code "allow"}. *

    - *
  • {@code "allow"}: Service Workers can be - * registered.
  • + *
  • {@code "allow"}: Service Workers can + * be registered.
  • *
  • {@code "block"}: Playwright will block all registration of Service Workers.
  • *
*/ @@ -962,7 +1233,7 @@ public NewPageOptions setServiceWorkers(ServiceWorkerPolicy serviceWorkers) { } /** * Populates context with given storage state. This option can be used to initialize context with logged-in information - * obtained via {@link BrowserContext#storageState BrowserContext.storageState()}. + * obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}. */ public NewPageOptions setStorageState(String storageState) { this.storageState = storageState; @@ -970,17 +1241,18 @@ public NewPageOptions setStorageState(String storageState) { } /** * Populates context with given storage state. This option can be used to initialize context with logged-in information - * obtained via {@link BrowserContext#storageState BrowserContext.storageState()}. Path to the file with saved storage - * state. + * obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}. Path to the + * file with saved storage state. */ public NewPageOptions setStorageStatePath(Path storageStatePath) { this.storageStatePath = storageStatePath; return this; } /** - * If specified, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors - * that imply single target DOM element will throw when more than one element matches the selector. See {@code Locator} to learn - * more about the strict mode. + * If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors + * that imply single target DOM element will throw when more than one element matches the selector. This option does not + * affect any Locator APIs (Locators are always strict). Defaults to {@code false}. See {@code Locator} to learn more about + * the strict mode. */ public NewPageOptions setStrictSelectors(boolean strictSelectors) { this.strictSelectors = strictSelectors; @@ -989,7 +1261,7 @@ public NewPageOptions setStrictSelectors(boolean strictSelectors) { /** * Changes the timezone of the context. See ICU's - * metaZones.txt for a list of supported timezone IDs. + * metaZones.txt for a list of supported timezone IDs. Defaults to the system timezone. */ public NewPageOptions setTimezoneId(String timezoneId) { this.timezoneId = timezoneId; @@ -1003,32 +1275,80 @@ public NewPageOptions setUserAgent(String userAgent) { return this; } /** - * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. {@code null} disables the default viewport. + * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. Use {@code null} to disable the consistent + * viewport emulation. Learn more about viewport + * emulation. + * + *

NOTE: The {@code null} value opts out from the default presets, makes viewport depend on the host window size defined by the + * operating system. It makes the execution of the tests non-deterministic. */ public NewPageOptions setViewportSize(int width, int height) { return setViewportSize(new ViewportSize(width, height)); } /** - * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. {@code null} disables the default viewport. + * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. Use {@code null} to disable the consistent + * viewport emulation. Learn more about viewport + * emulation. + * + *

NOTE: The {@code null} value opts out from the default presets, makes viewport depend on the host window size defined by the + * operating system. It makes the execution of the tests non-deterministic. */ - public NewPageOptions setViewportSize(ViewportSize viewportSize) { + public NewPageOptions setViewportSize(@Nullable ViewportSize viewportSize) { this.viewportSize = Optional.ofNullable(viewportSize); return this; } } + class BindOptions { + /** + * Host to bind the web socket server to. When specified, a web socket server is created instead of a named pipe. + */ + public @Nullable String host; + /** + * Port to bind the web socket server to. When specified, a web socket server is created instead of a named pipe. Use + * {@code 0} to let the OS pick an available port. + */ + public @Nullable Integer port; + /** + * Working directory associated with this browser server. + */ + public @Nullable String workspaceDir; + + /** + * Host to bind the web socket server to. When specified, a web socket server is created instead of a named pipe. + */ + public BindOptions setHost(String host) { + this.host = host; + return this; + } + /** + * Port to bind the web socket server to. When specified, a web socket server is created instead of a named pipe. Use + * {@code 0} to let the OS pick an available port. + */ + public BindOptions setPort(int port) { + this.port = port; + return this; + } + /** + * Working directory associated with this browser server. + */ + public BindOptions setWorkspaceDir(String workspaceDir) { + this.workspaceDir = workspaceDir; + return this; + } + } class StartTracingOptions { /** * specify custom categories to use instead of default. */ - public List categories; + public @Nullable List categories; /** * A path to write the trace file to. */ - public Path path; + public @Nullable Path path; /** * captures screenshots in the trace. */ - public Boolean screenshots; + public @Nullable Boolean screenshots; /** * specify custom categories to use instead of default. @@ -1054,55 +1374,97 @@ public StartTracingOptions setScreenshots(boolean screenshots) { } /** * Get the browser type (chromium, firefox or webkit) that the browser belongs to. + * + * @since v1.23 */ BrowserType browserType(); /** - * In case this browser is obtained using {@link BrowserType#launch BrowserType.launch()}, closes the browser and all of - * its pages (if any were opened). + * In case this browser is obtained using {@link com.microsoft.playwright.BrowserType#launch BrowserType.launch()}, closes + * the browser and all of its pages (if any were opened). + * + *

In case this browser is connected to, clears all created contexts belonging to this browser and disconnects from the + * browser server. + * + *

NOTE: This is similar to force-quitting the browser. To close pages gracefully and ensure you receive page close events, call + * {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} on any {@code BrowserContext} instances you + * explicitly created earlier using {@link com.microsoft.playwright.Browser#newContext Browser.newContext()} **before** + * calling {@link com.microsoft.playwright.Browser#close Browser.close()}. + * + *

The {@code Browser} object itself is considered to be disposed and cannot be used anymore. + * + * @since v1.8 + */ + default void close() { + close(null); + } + /** + * In case this browser is obtained using {@link com.microsoft.playwright.BrowserType#launch BrowserType.launch()}, closes + * the browser and all of its pages (if any were opened). * *

In case this browser is connected to, clears all created contexts belonging to this browser and disconnects from the * browser server. * - *

NOTE: This is similar to force quitting the browser. Therefore, you should call {@link BrowserContext#close - * BrowserContext.close()} on any {@code BrowserContext}'s you explicitly created earlier with {@link Browser#newContext - * Browser.newContext()} **before** calling {@link Browser#close Browser.close()}. + *

NOTE: This is similar to force-quitting the browser. To close pages gracefully and ensure you receive page close events, call + * {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} on any {@code BrowserContext} instances you + * explicitly created earlier using {@link com.microsoft.playwright.Browser#newContext Browser.newContext()} **before** + * calling {@link com.microsoft.playwright.Browser#close Browser.close()}. * *

The {@code Browser} object itself is considered to be disposed and cannot be used anymore. + * + * @since v1.8 */ - void close(); + void close(@Nullable CloseOptions options); /** * Returns an array of all open browser contexts. In a newly created browser, this will return zero browser contexts. + * + *

Usage *

{@code
    * Browser browser = pw.webkit().launch();
    * System.out.println(browser.contexts().size()); // prints "0"
    * BrowserContext context = browser.newContext();
    * System.out.println(browser.contexts().size()); // prints "1"
    * }
+ * + * @since v1.8 */ List contexts(); /** * Indicates that the browser is connected. + * + * @since v1.8 */ boolean isConnected(); + /** + * NOTE: CDP Sessions are only supported on Chromium-based browsers. + * + *

Returns the newly created browser session. + * + * @since v1.11 + */ + CDPSession newBrowserCDPSession(); /** * Creates a new browser context. It won't share cookies/cache with other browser contexts. * - *

NOTE: If directly using this method to create {@code BrowserContext}s, it is best practice to explicitly close the returned context - * via {@link BrowserContext#close BrowserContext.close()} when your code is done with the {@code BrowserContext}, and before - * calling {@link Browser#close Browser.close()}. This will ensure the {@code context} is closed gracefully and any - * artifacts—like HARs and videos—are fully flushed and saved. + *

NOTE: If directly using this method to create {@code BrowserContext}s, it is best practice to explicitly close the returned + * context via {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} when your code is done with the + * {@code BrowserContext}, and before calling {@link com.microsoft.playwright.Browser#close Browser.close()}. This will + * ensure the {@code context} is closed gracefully and any artifacts—like HARs and videos—are fully flushed and saved. + * + *

Usage *

{@code
    * Browser browser = playwright.firefox().launch();  // Or 'chromium' or 'webkit'.
    * // Create a new incognito browser context.
    * BrowserContext context = browser.newContext();
    * // Create a new page in a pristine context.
    * Page page = context.newPage();
-   * page.navigate('https://example.com');
+   * page.navigate("https://example.com");
    *
    * // Graceful close up everything
    * context.close();
    * browser.close();
    * }
+ * + * @since v1.8 */ default BrowserContext newContext() { return newContext(null); @@ -1110,30 +1472,37 @@ default BrowserContext newContext() { /** * Creates a new browser context. It won't share cookies/cache with other browser contexts. * - *

NOTE: If directly using this method to create {@code BrowserContext}s, it is best practice to explicitly close the returned context - * via {@link BrowserContext#close BrowserContext.close()} when your code is done with the {@code BrowserContext}, and before - * calling {@link Browser#close Browser.close()}. This will ensure the {@code context} is closed gracefully and any - * artifacts—like HARs and videos—are fully flushed and saved. + *

NOTE: If directly using this method to create {@code BrowserContext}s, it is best practice to explicitly close the returned + * context via {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} when your code is done with the + * {@code BrowserContext}, and before calling {@link com.microsoft.playwright.Browser#close Browser.close()}. This will + * ensure the {@code context} is closed gracefully and any artifacts—like HARs and videos—are fully flushed and saved. + * + *

Usage *

{@code
    * Browser browser = playwright.firefox().launch();  // Or 'chromium' or 'webkit'.
    * // Create a new incognito browser context.
    * BrowserContext context = browser.newContext();
    * // Create a new page in a pristine context.
    * Page page = context.newPage();
-   * page.navigate('https://example.com');
+   * page.navigate("https://example.com");
    *
    * // Graceful close up everything
    * context.close();
    * browser.close();
    * }
+ * + * @since v1.8 */ - BrowserContext newContext(NewContextOptions options); + BrowserContext newContext(@Nullable NewContextOptions options); /** * Creates a new page in a new browser context. Closing this page will close the context as well. * *

This is a convenience API that should only be used for the single-page scenarios and short snippets. Production code and - * testing frameworks should explicitly create {@link Browser#newContext Browser.newContext()} followed by the {@link - * BrowserContext#newPage BrowserContext.newPage()} to control their exact life times. + * testing frameworks should explicitly create {@link com.microsoft.playwright.Browser#newContext Browser.newContext()} + * followed by the {@link com.microsoft.playwright.BrowserContext#newPage BrowserContext.newPage()} to control their exact + * life times. + * + * @since v1.8 */ default Page newPage() { return newPage(null); @@ -1142,28 +1511,51 @@ default Page newPage() { * Creates a new page in a new browser context. Closing this page will close the context as well. * *

This is a convenience API that should only be used for the single-page scenarios and short snippets. Production code and - * testing frameworks should explicitly create {@link Browser#newContext Browser.newContext()} followed by the {@link - * BrowserContext#newPage BrowserContext.newPage()} to control their exact life times. + * testing frameworks should explicitly create {@link com.microsoft.playwright.Browser#newContext Browser.newContext()} + * followed by the {@link com.microsoft.playwright.BrowserContext#newPage BrowserContext.newPage()} to control their exact + * life times. + * + * @since v1.8 + */ + Page newPage(@Nullable NewPageOptions options); + /** + * Binds the browser to a named pipe or web socket, making it available for other clients to connect to. + * + * @param title Title of the browser server, used for identification. + * @since v1.59 + */ + default BindResult bind(String title) { + return bind(title, null); + } + /** + * Binds the browser to a named pipe or web socket, making it available for other clients to connect to. + * + * @param title Title of the browser server, used for identification. + * @since v1.59 */ - Page newPage(NewPageOptions options); + BindResult bind(String title, @Nullable BindOptions options); /** * NOTE: This API controls Chromium Tracing * which is a low-level chromium-specific debugging tool. API to control Playwright Tracing could be found here. * - *

You can use {@link Browser#startTracing Browser.startTracing()} and {@link Browser#stopTracing Browser.stopTracing()} to - * create a trace file that can be opened in Chrome DevTools performance panel. + *

You can use {@link com.microsoft.playwright.Browser#startTracing Browser.startTracing()} and {@link + * com.microsoft.playwright.Browser#stopTracing Browser.stopTracing()} to create a trace file that can be opened in Chrome + * DevTools performance panel. + * + *

Usage *

{@code
    * browser.startTracing(page, new Browser.StartTracingOptions()
    *   .setPath(Paths.get("trace.json")));
-   * page.goto('https://www.google.com');
+   * page.navigate("https://www.google.com");
    * browser.stopTracing();
    * }
* * @param page Optional, if specified, tracing includes screenshots of the given page. + * @since v1.11 */ - default void startTracing(Page page) { + default void startTracing(@Nullable Page page) { startTracing(page, null); } /** @@ -1172,14 +1564,19 @@ default void startTracing(Page page) { * href="https://playwright.dev/java/docs/trace-viewer">Playwright Tracing could be found here. * - *

You can use {@link Browser#startTracing Browser.startTracing()} and {@link Browser#stopTracing Browser.stopTracing()} to - * create a trace file that can be opened in Chrome DevTools performance panel. + *

You can use {@link com.microsoft.playwright.Browser#startTracing Browser.startTracing()} and {@link + * com.microsoft.playwright.Browser#stopTracing Browser.stopTracing()} to create a trace file that can be opened in Chrome + * DevTools performance panel. + * + *

Usage *

{@code
    * browser.startTracing(page, new Browser.StartTracingOptions()
    *   .setPath(Paths.get("trace.json")));
-   * page.goto('https://www.google.com');
+   * page.navigate("https://www.google.com");
    * browser.stopTracing();
    * }
+ * + * @since v1.11 */ default void startTracing() { startTracing(null); @@ -1190,18 +1587,22 @@ default void startTracing() { * href="https://playwright.dev/java/docs/trace-viewer">Playwright Tracing could be found here. * - *

You can use {@link Browser#startTracing Browser.startTracing()} and {@link Browser#stopTracing Browser.stopTracing()} to - * create a trace file that can be opened in Chrome DevTools performance panel. + *

You can use {@link com.microsoft.playwright.Browser#startTracing Browser.startTracing()} and {@link + * com.microsoft.playwright.Browser#stopTracing Browser.stopTracing()} to create a trace file that can be opened in Chrome + * DevTools performance panel. + * + *

Usage *

{@code
    * browser.startTracing(page, new Browser.StartTracingOptions()
    *   .setPath(Paths.get("trace.json")));
-   * page.goto('https://www.google.com');
+   * page.navigate("https://www.google.com");
    * browser.stopTracing();
    * }
* * @param page Optional, if specified, tracing includes screenshots of the given page. + * @since v1.11 */ - void startTracing(Page page, StartTracingOptions options); + void startTracing(@Nullable Page page, @Nullable StartTracingOptions options); /** * NOTE: This API controls Chromium Tracing * which is a low-level chromium-specific debugging tool. API to control here. * *

Returns the buffer with trace data. + * + * @since v1.11 */ byte[] stopTracing(); + /** + * Unbinds the browser server previously bound with {@link com.microsoft.playwright.Browser#bind Browser.bind()}. + * + * @since v1.59 + */ + void unbind(); /** * Returns the browser version. + * + * @since v1.8 */ String version(); } diff --git a/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java b/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java index b1ec96121..a8920e118 100644 --- a/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java +++ b/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java @@ -16,10 +16,12 @@ package com.microsoft.playwright; +import org.jspecify.annotations.Nullable; import com.microsoft.playwright.options.*; import java.nio.file.Path; import java.util.*; import java.util.function.Consumer; +import java.util.function.BooleanSupplier; import java.util.function.Predicate; import java.util.regex.Pattern; @@ -29,8 +31,9 @@ *

If a page opens another page, e.g. with a {@code window.open} call, the popup will belong to the parent page's browser * context. * - *

Playwright allows creating "incognito" browser contexts with {@link Browser#newContext Browser.newContext()} method. - * "Incognito" browser contexts don't write any browsing data to disk. + *

Playwright allows creating isolated non-persistent browser contexts with {@link + * com.microsoft.playwright.Browser#newContext Browser.newContext()} method. Non-persistent browser contexts don't write + * any browsing data to disk. *

{@code
  * // Create a new incognito browser context
  * BrowserContext context = browser.newContext();
@@ -43,12 +46,21 @@
  */
 public interface BrowserContext extends AutoCloseable {
 
+  /**
+   * @deprecated Background pages have been removed from Chromium together with Manifest V2 extensions.
+   */
+  void onBackgroundPage(Consumer handler);
+  /**
+   * Removes handler that was previously added with {@link #onBackgroundPage onBackgroundPage(handler)}.
+   */
+  void offBackgroundPage(Consumer handler);
+
   /**
    * Emitted when Browser context gets closed. This might happen because of one of the following:
    * 
    *
  • Browser context is closed.
  • *
  • Browser application is closed or crashed.
  • - *
  • The {@link Browser#close Browser.close()} method was called.
  • + *
  • The {@link com.microsoft.playwright.Browser#close Browser.close()} method was called.
  • *
*/ void onClose(Consumer handler); @@ -58,22 +70,124 @@ public interface BrowserContext extends AutoCloseable { void offClose(Consumer handler); /** - * The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event will - * also fire for popup pages. See also {@link Page#onPopup Page.onPopup()} to receive events about popups relevant to a + * Emitted when JavaScript within the page calls one of console API methods, e.g. {@code console.log} or {@code + * console.dir}. + * + *

The arguments passed into {@code console.log} and the page are available on the {@code ConsoleMessage} event handler + * argument. + * + *

Usage + *

{@code
+   * context.onConsoleMessage(msg -> {
+   *   for (int i = 0; i < msg.args().size(); ++i)
+   *     System.out.println(i + ": " + msg.args().get(i).jsonValue());
+   * });
+   * page.evaluate("() => console.log('hello', 5, { foo: 'bar' })");
+   * }
+ */ + void onConsoleMessage(Consumer handler); + /** + * Removes handler that was previously added with {@link #onConsoleMessage onConsoleMessage(handler)}. + */ + void offConsoleMessage(Consumer handler); + + /** + * Emitted when a JavaScript dialog appears, such as {@code alert}, {@code prompt}, {@code confirm} or {@code + * beforeunload}. Listener **must** either {@link com.microsoft.playwright.Dialog#accept Dialog.accept()} or {@link + * com.microsoft.playwright.Dialog#dismiss Dialog.dismiss()} the dialog - otherwise the page will freeze waiting for the + * dialog, and actions like click will never finish. + * + *

Usage + *

{@code
+   * context.onDialog(dialog -> {
+   *   dialog.accept();
+   * });
+   * }
+ * + *

NOTE: When no {@link com.microsoft.playwright.Page#onDialog Page.onDialog()} or {@link + * com.microsoft.playwright.BrowserContext#onDialog BrowserContext.onDialog()} listeners are present, all dialogs are + * automatically dismissed. + */ + void onDialog(Consumer

handler); + /** + * Removes handler that was previously added with {@link #onDialog onDialog(handler)}. + */ + void offDialog(Consumer handler); + + /** + * Emitted when a JavaScript dialog in any page belonging to this context has been closed, either by {@link + * com.microsoft.playwright.Dialog#accept Dialog.accept()}, by {@link com.microsoft.playwright.Dialog#dismiss + * Dialog.dismiss()}, or manually by the user in the headed browser. + */ + void onDialogClosed(Consumer handler); + /** + * Removes handler that was previously added with {@link #onDialogClosed onDialogClosed(handler)}. + */ + void offDialogClosed(Consumer handler); + + /** + * Emitted when attachment download started in any page belonging to this context. User can access basic file operations on + * downloaded content via the passed {@code Download} instance. See also {@link com.microsoft.playwright.Page#onDownload + * Page.onDownload()} to receive events about a specific page. + */ + void onDownload(Consumer handler); + /** + * Removes handler that was previously added with {@link #onDownload onDownload(handler)}. + */ + void offDownload(Consumer handler); + + /** + * Emitted when a frame is attached in any page belonging to this context. See also {@link + * com.microsoft.playwright.Page#onFrameAttached Page.onFrameAttached()} to receive events about a specific page. + */ + void onFrameAttached(Consumer handler); + /** + * Removes handler that was previously added with {@link #onFrameAttached onFrameAttached(handler)}. + */ + void offFrameAttached(Consumer handler); + + /** + * Emitted when a frame is detached in any page belonging to this context. See also {@link + * com.microsoft.playwright.Page#onFrameDetached Page.onFrameDetached()} to receive events about a specific page. + */ + void onFrameDetached(Consumer handler); + /** + * Removes handler that was previously added with {@link #onFrameDetached onFrameDetached(handler)}. + */ + void offFrameDetached(Consumer handler); + + /** + * Emitted when a frame is navigated to a new url in any page belonging to this context. See also {@link + * com.microsoft.playwright.Page#onFrameNavigated Page.onFrameNavigated()} to receive events about navigations in a * specific page. + */ + void onFrameNavigated(Consumer handler); + /** + * Removes handler that was previously added with {@link #onFrameNavigated onFrameNavigated(handler)}. + */ + void offFrameNavigated(Consumer handler); + + /** + * The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event will + * also fire for popup pages. See also {@link com.microsoft.playwright.Page#onPopup Page.onPopup()} to receive events about + * popups relevant to a specific page. * *

The earliest moment that page is available is when it has navigated to the initial url. For example, when opening a - * popup with {@code window.open('http://example.com')}, this event will fire when the network request to "http://example.com" is - * done and its response has started loading in the popup. + * popup with {@code window.open('http://example.com')}, this event will fire when the network request to + * "http://example.com" is done and its response has started loading in the popup. If you would like to route/listen to + * this network request, use {@link com.microsoft.playwright.BrowserContext#route BrowserContext.route()} and {@link + * com.microsoft.playwright.BrowserContext#onRequest BrowserContext.onRequest()} respectively instead of similar methods on + * the {@code Page}. *

{@code
    * Page newPage = context.waitForPage(() -> {
-   *   page.locator("a[target=_blank]").click();
+   *   page.getByText("open new page").click();
    * });
    * System.out.println(newPage.evaluate("location.href"));
    * }
* - *

NOTE: Use {@link Page#waitForLoadState Page.waitForLoadState()} to wait until the page gets to a particular state (you should - * not need it in most cases). + *

NOTE: Use {@link com.microsoft.playwright.Page#waitForLoadState Page.waitForLoadState()} to wait until the page gets to a + * particular state (you should not need it in most cases). */ void onPage(Consumer handler); /** @@ -81,12 +195,43 @@ public interface BrowserContext extends AutoCloseable { */ void offPage(Consumer handler); + /** + * Emitted when a page in this context is closed. See also {@link com.microsoft.playwright.Page#onClose Page.onClose()} to + * receive events about a specific page. + */ + void onPageClose(Consumer handler); + /** + * Removes handler that was previously added with {@link #onPageClose onPageClose(handler)}. + */ + void offPageClose(Consumer handler); + + /** + * Emitted when the JavaScript {@code load} event is + * dispatched in any page belonging to this context. See also {@link com.microsoft.playwright.Page#onLoad Page.onLoad()} to + * receive events about a specific page. + */ + void onPageLoad(Consumer handler); + /** + * Removes handler that was previously added with {@link #onPageLoad onPageLoad(handler)}. + */ + void offPageLoad(Consumer handler); + + /** + * Emitted when exception is unhandled in any of the pages in this context. To listen for errors from a particular page, + * use {@link com.microsoft.playwright.Page#onPageError Page.onPageError()} instead. + */ + void onWebError(Consumer handler); + /** + * Removes handler that was previously added with {@link #onWebError onWebError(handler)}. + */ + void offWebError(Consumer handler); + /** * Emitted when a request is issued from any pages created through this context. The [request] object is read-only. To only - * listen for requests from a particular page, use {@link Page#onRequest Page.onRequest()}. + * listen for requests from a particular page, use {@link com.microsoft.playwright.Page#onRequest Page.onRequest()}. * - *

In order to intercept and mutate requests, see {@link BrowserContext#route BrowserContext.route()} or {@link Page#route - * Page.route()}. + *

In order to intercept and mutate requests, see {@link com.microsoft.playwright.BrowserContext#route + * BrowserContext.route()} or {@link com.microsoft.playwright.Page#route Page.route()}. */ void onRequest(Consumer handler); /** @@ -96,11 +241,11 @@ public interface BrowserContext extends AutoCloseable { /** * Emitted when a request fails, for example by timing out. To only listen for failed requests from a particular page, use - * {@link Page#onRequestFailed Page.onRequestFailed()}. + * {@link com.microsoft.playwright.Page#onRequestFailed Page.onRequestFailed()}. * *

NOTE: HTTP Error responses, such as 404 or 503, are still successful responses from HTTP standpoint, so request will complete - * with {@link BrowserContext#onRequestFinished BrowserContext.onRequestFinished()} event and not with {@link - * BrowserContext#onRequestFailed BrowserContext.onRequestFailed()}. + * with {@link com.microsoft.playwright.BrowserContext#onRequestFinished BrowserContext.onRequestFinished()} event and not + * with {@link com.microsoft.playwright.BrowserContext#onRequestFailed BrowserContext.onRequestFailed()}. */ void onRequestFailed(Consumer handler); /** @@ -110,8 +255,8 @@ public interface BrowserContext extends AutoCloseable { /** * Emitted when a request finishes successfully after downloading the response body. For a successful response, the - * sequence of events is {@code request}, {@code response} and {@code requestfinished}. To listen for successful requests from a particular - * page, use {@link Page#onRequestFinished Page.onRequestFinished()}. + * sequence of events is {@code request}, {@code response} and {@code requestfinished}. To listen for successful requests + * from a particular page, use {@link com.microsoft.playwright.Page#onRequestFinished Page.onRequestFinished()}. */ void onRequestFinished(Consumer handler); /** @@ -121,8 +266,8 @@ public interface BrowserContext extends AutoCloseable { /** * Emitted when [response] status and headers are received for a request. For a successful response, the sequence of events - * is {@code request}, {@code response} and {@code requestfinished}. To listen for response events from a particular page, use {@link - * Page#onResponse Page.onResponse()}. + * is {@code request}, {@code response} and {@code requestfinished}. To listen for response events from a particular page, + * use {@link com.microsoft.playwright.Page#onResponse Page.onResponse()}. */ void onResponse(Consumer handler); /** @@ -130,19 +275,74 @@ public interface BrowserContext extends AutoCloseable { */ void offResponse(Consumer handler); - class ExposeBindingOptions { + class ClearCookiesOptions { /** - * Whether to pass the argument as a handle, instead of passing by value. When passing a handle, only one argument is - * supported. When passing by value, multiple arguments are supported. + * Only removes cookies with the given domain. */ - public Boolean handle; + public @Nullable Object domain; + /** + * Only removes cookies with the given name. + */ + public @Nullable Object name; + /** + * Only removes cookies with the given path. + */ + public @Nullable Object path; /** - * Whether to pass the argument as a handle, instead of passing by value. When passing a handle, only one argument is - * supported. When passing by value, multiple arguments are supported. + * Only removes cookies with the given domain. + */ + public ClearCookiesOptions setDomain(String domain) { + this.domain = domain; + return this; + } + /** + * Only removes cookies with the given domain. + */ + public ClearCookiesOptions setDomain(Pattern domain) { + this.domain = domain; + return this; + } + /** + * Only removes cookies with the given name. + */ + public ClearCookiesOptions setName(String name) { + this.name = name; + return this; + } + /** + * Only removes cookies with the given name. + */ + public ClearCookiesOptions setName(Pattern name) { + this.name = name; + return this; + } + /** + * Only removes cookies with the given path. + */ + public ClearCookiesOptions setPath(String path) { + this.path = path; + return this; + } + /** + * Only removes cookies with the given path. */ - public ExposeBindingOptions setHandle(boolean handle) { - this.handle = handle; + public ClearCookiesOptions setPath(Pattern path) { + this.path = path; + return this; + } + } + class CloseOptions { + /** + * The reason to be reported to the operations interrupted by the context closure. + */ + public @Nullable String reason; + + /** + * The reason to be reported to the operations interrupted by the context closure. + */ + public CloseOptions setReason(String reason) { + this.reason = reason; return this; } } @@ -150,7 +350,7 @@ class GrantPermissionsOptions { /** * The [origin] to grant permissions to, e.g. "https://example.com". */ - public String origin; + public @Nullable String origin; /** * The [origin] to grant permissions to, e.g. "https://example.com". @@ -164,7 +364,7 @@ class RouteOptions { /** * How often a route should be used. By default it will be used every time. */ - public Integer times; + public @Nullable Integer times; /** * How often a route should be used. By default it will be used every time. @@ -183,16 +383,28 @@ class RouteFromHAROptions { * *

Defaults to abort. */ - public HarNotFound notFound; + public @Nullable HarNotFound notFound; + /** + * If specified, updates the given HAR with the actual network information instead of serving from file. The file is + * written to disk when {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} is called. + */ + public @Nullable Boolean update; /** - * If specified, updates the given HAR with the actual network information instead of serving from file. + * Optional setting to control resource content management. If {@code attach} is specified, resources are persisted as + * separate files or entries in the ZIP archive. If {@code embed} is specified, content is stored inline the HAR file. */ - public Boolean update; + public @Nullable RouteFromHarUpdateContentPolicy updateContent; + /** + * When set to {@code minimal}, only record information necessary for routing from HAR. This omits sizes, timing, page, + * cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code + * minimal}. + */ + public @Nullable HarMode updateMode; /** * A glob pattern, regular expression or predicate to match the request URL. Only requests with URL matching the pattern * will be served from the HAR file. If not specified, all requests are served from the HAR file. */ - public Object url; + public @Nullable Object url; /** *

    @@ -207,12 +419,30 @@ public RouteFromHAROptions setNotFound(HarNotFound notFound) { return this; } /** - * If specified, updates the given HAR with the actual network information instead of serving from file. + * If specified, updates the given HAR with the actual network information instead of serving from file. The file is + * written to disk when {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} is called. */ public RouteFromHAROptions setUpdate(boolean update) { this.update = update; return this; } + /** + * Optional setting to control resource content management. If {@code attach} is specified, resources are persisted as + * separate files or entries in the ZIP archive. If {@code embed} is specified, content is stored inline the HAR file. + */ + public RouteFromHAROptions setUpdateContent(RouteFromHarUpdateContentPolicy updateContent) { + this.updateContent = updateContent; + return this; + } + /** + * When set to {@code minimal}, only record information necessary for routing from HAR. This omits sizes, timing, page, + * cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code + * minimal}. + */ + public RouteFromHAROptions setUpdateMode(HarMode updateMode) { + this.updateMode = updateMode; + return this; + } /** * A glob pattern, regular expression or predicate to match the request URL. Only requests with URL matching the pattern * will be served from the HAR file. If not specified, all requests are served from the HAR file. @@ -231,12 +461,69 @@ public RouteFromHAROptions setUrl(Pattern url) { } } class StorageStateOptions { + /** + * Set to {@code true} to include the context's virtual WebAuthn {@link com.microsoft.playwright.BrowserContext#credentials + * BrowserContext.credentials()} (passkeys) in the storage state snapshot. The captured credentials carry their private + * keys and signature counters, so they can be re-seeded into a later context via the {@code storageState} option or {@link + * com.microsoft.playwright.BrowserContext#setStorageState BrowserContext.setStorageState()}. Note that restoring the + * storage state that contains credentials will automatically install the virtual WebAuthn authenticator (see {@link + * com.microsoft.playwright.Credentials#install Credentials.install()}), and prevent all real authenticators from working + * in this context. + */ + public @Nullable Boolean credentials; + /** + * Set to {@code true} to include IndexedDB in + * the storage state snapshot. If your application uses IndexedDB to store authentication tokens, like Firebase + * Authentication, enable this. + */ + public @Nullable Boolean indexedDB; + /** + * Set to {@code true} to include the origin private file + * system in the storage state snapshot. + * + *

    NOTE: OPFS is currently not supported in ephemeral WebKit contexts. + */ + public @Nullable Boolean opfs; /** * The file path to save the storage state to. If {@code path} is a relative path, then it is resolved relative to current * working directory. If no path is provided, storage state is still returned, but won't be saved to the disk. */ - public Path path; + public @Nullable Path path; + /** + * Set to {@code true} to include the context's virtual WebAuthn {@link com.microsoft.playwright.BrowserContext#credentials + * BrowserContext.credentials()} (passkeys) in the storage state snapshot. The captured credentials carry their private + * keys and signature counters, so they can be re-seeded into a later context via the {@code storageState} option or {@link + * com.microsoft.playwright.BrowserContext#setStorageState BrowserContext.setStorageState()}. Note that restoring the + * storage state that contains credentials will automatically install the virtual WebAuthn authenticator (see {@link + * com.microsoft.playwright.Credentials#install Credentials.install()}), and prevent all real authenticators from working + * in this context. + */ + public StorageStateOptions setCredentials(boolean credentials) { + this.credentials = credentials; + return this; + } + /** + * Set to {@code true} to include IndexedDB in + * the storage state snapshot. If your application uses IndexedDB to store authentication tokens, like Firebase + * Authentication, enable this. + */ + public StorageStateOptions setIndexedDB(boolean indexedDB) { + this.indexedDB = indexedDB; + return this; + } + /** + * Set to {@code true} to include the origin private file + * system in the storage state snapshot. + * + *

    NOTE: OPFS is currently not supported in ephemeral WebKit contexts. + */ + public StorageStateOptions setOpfs(boolean opfs) { + this.opfs = opfs; + return this; + } /** * The file path to save the storage state to. If {@code path} is a relative path, then it is resolved relative to current * working directory. If no path is provided, storage state is still returned, but won't be saved to the disk. @@ -246,16 +533,66 @@ public StorageStateOptions setPath(Path path) { return this; } } + class WaitForConditionOptions { + /** + * Maximum time to wait for in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The + * default value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. + */ + public @Nullable Double timeout; + + /** + * Maximum time to wait for in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The + * default value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. + */ + public WaitForConditionOptions setTimeout(double timeout) { + this.timeout = timeout; + return this; + } + } + class WaitForConsoleMessageOptions { + /** + * Receives the {@code ConsoleMessage} object and resolves to truthy value when the waiting should resolve. + */ + public @Nullable Predicate predicate; + /** + * Maximum time to wait for in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The + * default value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()}. + */ + public @Nullable Double timeout; + + /** + * Receives the {@code ConsoleMessage} object and resolves to truthy value when the waiting should resolve. + */ + public WaitForConsoleMessageOptions setPredicate(Predicate predicate) { + this.predicate = predicate; + return this; + } + /** + * Maximum time to wait for in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The + * default value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()}. + */ + public WaitForConsoleMessageOptions setTimeout(double timeout) { + this.timeout = timeout; + return this; + } + } class WaitForPageOptions { /** * Receives the {@code Page} object and resolves to truthy value when the waiting should resolve. */ - public Predicate predicate; + public @Nullable Predicate predicate; /** - * Maximum time to wait for in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default - * value can be changed by using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()}. + * Maximum time to wait for in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The + * default value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()}. */ - public Double timeout; + public @Nullable Double timeout; /** * Receives the {@code Page} object and resolves to truthy value when the waiting should resolve. @@ -265,20 +602,44 @@ public WaitForPageOptions setPredicate(Predicate predicate) { return this; } /** - * Maximum time to wait for in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default - * value can be changed by using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()}. + * Maximum time to wait for in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The + * default value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()}. */ public WaitForPageOptions setTimeout(double timeout) { this.timeout = timeout; return this; } } + /** + * Playwright has ability to mock clock and passage of time. + * + * @since v1.45 + */ + Clock clock(); + /** + * Virtual WebAuthn authenticator for this context. Lets tests seed credentials and intercept {@code + * navigator.credentials.create()} / {@code navigator.credentials.get()} ceremonies. + * + * @since v1.61 + */ + Credentials credentials(); + /** + * Debugger allows to pause and resume the execution. + * + * @since v1.59 + */ + Debugger debugger(); /** * Adds cookies into this browser context. All pages within this context will have these cookies installed. Cookies can be - * obtained via {@link BrowserContext#cookies BrowserContext.cookies()}. + * obtained via {@link com.microsoft.playwright.BrowserContext#cookies BrowserContext.cookies()}. + * + *

    Usage *

    {@code
        * browserContext.addCookies(Arrays.asList(cookieObject1, cookieObject2));
        * }
    + * + * @since v1.8 */ void addCookies(List cookies); /** @@ -292,18 +653,22 @@ public WaitForPageOptions setTimeout(double timeout) { *

    The script is evaluated after the document was created but before any of its scripts were run. This is useful to amend * the JavaScript environment, e.g. to seed {@code Math.random}. * + *

    Usage + * *

    An example of overriding {@code Math.random} before the page loads: *

    {@code
        * // In your playwright script, assuming the preload.js file is in same directory.
        * browserContext.addInitScript(Paths.get("preload.js"));
        * }
    * - *

    NOTE: The order of evaluation of multiple scripts installed via {@link BrowserContext#addInitScript - * BrowserContext.addInitScript()} and {@link Page#addInitScript Page.addInitScript()} is not defined. + *

    NOTE: The order of evaluation of multiple scripts installed via {@link com.microsoft.playwright.BrowserContext#addInitScript + * BrowserContext.addInitScript()} and {@link com.microsoft.playwright.Page#addInitScript Page.addInitScript()} is not + * defined. * * @param script Script to be evaluated in all pages in the browser context. + * @since v1.8 */ - void addInitScript(String script); + AutoCloseable addInitScript(String script); /** * Adds a script which would be evaluated in one of the following scenarios: *

      @@ -315,45 +680,108 @@ public WaitForPageOptions setTimeout(double timeout) { *

      The script is evaluated after the document was created but before any of its scripts were run. This is useful to amend * the JavaScript environment, e.g. to seed {@code Math.random}. * + *

      Usage + * *

      An example of overriding {@code Math.random} before the page loads: *

      {@code
          * // In your playwright script, assuming the preload.js file is in same directory.
          * browserContext.addInitScript(Paths.get("preload.js"));
          * }
      * - *

      NOTE: The order of evaluation of multiple scripts installed via {@link BrowserContext#addInitScript - * BrowserContext.addInitScript()} and {@link Page#addInitScript Page.addInitScript()} is not defined. + *

      NOTE: The order of evaluation of multiple scripts installed via {@link com.microsoft.playwright.BrowserContext#addInitScript + * BrowserContext.addInitScript()} and {@link com.microsoft.playwright.Page#addInitScript Page.addInitScript()} is not + * defined. * * @param script Script to be evaluated in all pages in the browser context. + * @since v1.8 + */ + AutoCloseable addInitScript(Path script); + /** + * @deprecated Background pages have been removed from Chromium together with Manifest V2 extensions. + * + * @since v1.11 + */ + List backgroundPages(); + /** + * Gets the browser instance that owns the context. Returns {@code null} if the context is created outside of normal + * browser, e.g. Android or Electron. + * + * @since v1.8 */ - void addInitScript(Path script); + @Nullable Browser browser(); /** - * Returns the browser instance of the context. If it was launched as a persistent context null gets returned. + * Removes cookies from context. Accepts optional filter. + * + *

      Usage + *

      {@code
      +   * context.clearCookies();
      +   * context.clearCookies(new BrowserContext.ClearCookiesOptions().setName("session-id"));
      +   * context.clearCookies(new BrowserContext.ClearCookiesOptions().setDomain("my-origin.com"));
      +   * context.clearCookies(new BrowserContext.ClearCookiesOptions().setPath("/api/v1"));
      +   * context.clearCookies(new BrowserContext.ClearCookiesOptions()
      +   *                          .setName("session-id")
      +   *                          .setDomain("my-origin.com"));
      +   * }
      + * + * @since v1.8 */ - Browser browser(); + default void clearCookies() { + clearCookies(null); + } /** - * Clears context cookies. + * Removes cookies from context. Accepts optional filter. + * + *

      Usage + *

      {@code
      +   * context.clearCookies();
      +   * context.clearCookies(new BrowserContext.ClearCookiesOptions().setName("session-id"));
      +   * context.clearCookies(new BrowserContext.ClearCookiesOptions().setDomain("my-origin.com"));
      +   * context.clearCookies(new BrowserContext.ClearCookiesOptions().setPath("/api/v1"));
      +   * context.clearCookies(new BrowserContext.ClearCookiesOptions()
      +   *                          .setName("session-id")
      +   *                          .setDomain("my-origin.com"));
      +   * }
      + * + * @since v1.8 */ - void clearCookies(); + void clearCookies(@Nullable ClearCookiesOptions options); /** * Clears all permission overrides for the browser context. + * + *

      Usage *

      {@code
          * BrowserContext context = browser.newContext();
          * context.grantPermissions(Arrays.asList("clipboard-read"));
          * // do stuff ..
          * context.clearPermissions();
          * }
      + * + * @since v1.8 */ void clearPermissions(); /** * Closes the browser context. All the pages that belong to the browser context will be closed. * *

      NOTE: The default browser context cannot be closed. + * + * @since v1.8 */ - void close(); + default void close() { + close(null); + } + /** + * Closes the browser context. All the pages that belong to the browser context will be closed. + * + *

      NOTE: The default browser context cannot be closed. + * + * @since v1.8 + */ + void close(@Nullable CloseOptions options); /** * If no URLs are specified, this method returns all cookies. If URLs are specified, only cookies that affect those URLs * are returned. + * + * @since v1.8 */ default List cookies() { return cookies((String) null); @@ -363,86 +791,31 @@ default List cookies() { * are returned. * * @param urls Optional list of URLs. + * @since v1.8 */ - List cookies(String urls); + List cookies(@Nullable String urls); /** * If no URLs are specified, this method returns all cookies. If URLs are specified, only cookies that affect those URLs * are returned. * * @param urls Optional list of URLs. + * @since v1.8 */ - List cookies(List urls); + List cookies(@Nullable List urls); /** - * The method adds a function called {@code name} on the {@code window} object of every frame in every page in the context. When - * called, the function executes {@code callback} and returns a Promise which * resolves to the return value of {@code callback}. If the {@code callback} returns a Promise, it will be * awaited. * - *

      The first argument of the {@code callback} function contains information about the caller: {@code { browserContext: BrowserContext, - * page: Page, frame: Frame }}. - * - *

      See {@link Page#exposeBinding Page.exposeBinding()} for page-only version. - * - *

      An example of exposing page URL to all frames in all pages in the context: - *

      {@code
      -   * import com.microsoft.playwright.*;
      -   *
      -   * public class Example {
      -   *   public static void main(String[] args) {
      -   *     try (Playwright playwright = Playwright.create()) {
      -   *       BrowserType webkit = playwright.webkit()
      -   *       Browser browser = webkit.launch(new BrowserType.LaunchOptions().setHeadless(false));
      -   *       BrowserContext context = browser.newContext();
      -   *       context.exposeBinding("pageURL", (source, args) -> source.page().url());
      -   *       Page page = context.newPage();
      -   *       page.setContent("\n" +
      -   *         "\n" +
      -   *         "
      "); - * page.locator("button").click(); - * } - * } - * } - * }
      - * - *

      An example of passing an element handle: - *

      {@code
      -   * context.exposeBinding("clicked", (source, args) -> {
      -   *   ElementHandle element = (ElementHandle) args[0];
      -   *   System.out.println(element.textContent());
      -   *   return null;
      -   * }, new BrowserContext.ExposeBindingOptions().setHandle(true));
      -   * page.setContent("" +
      -   *   "\n" +
      -   *   "
      Click me
      \n" + - * "
      Or click me
      \n"); - * }
      - * - * @param name Name of the function on the window object. - * @param callback Callback function that will be called in the Playwright's context. - */ - default void exposeBinding(String name, BindingCallback callback) { - exposeBinding(name, callback, null); - } - /** - * The method adds a function called {@code name} on the {@code window} object of every frame in every page in the context. When - * called, the function executes {@code callback} and returns a Promise which - * resolves to the return value of {@code callback}. If the {@code callback} returns a Promise, it will be - * awaited. + *

      The first argument of the {@code callback} function contains information about the caller: {@code { browserContext: + * BrowserContext, page: Page, frame: Frame }}. * - *

      The first argument of the {@code callback} function contains information about the caller: {@code { browserContext: BrowserContext, - * page: Page, frame: Frame }}. + *

      See {@link com.microsoft.playwright.Page#exposeBinding Page.exposeBinding()} for page-only version. * - *

      See {@link Page#exposeBinding Page.exposeBinding()} for page-only version. + *

      Usage * *

      An example of exposing page URL to all frames in all pages in the context: *

      {@code
      @@ -451,7 +824,7 @@ default void exposeBinding(String name, BindingCallback callback) {
          * public class Example {
          *   public static void main(String[] args) {
          *     try (Playwright playwright = Playwright.create()) {
      -   *       BrowserType webkit = playwright.webkit()
      +   *       BrowserType webkit = playwright.webkit();
          *       Browser browser = webkit.launch(new BrowserType.LaunchOptions().setHeadless(false));
          *       BrowserContext context = browser.newContext();
          *       context.exposeBinding("pageURL", (source, args) -> source.page().url());
      @@ -463,34 +836,20 @@ default void exposeBinding(String name, BindingCallback callback) {
          *         "\n" +
          *         "\n" +
          *         "
      "); - * page.locator("button").click(); + * page.getByRole(AriaRole.BUTTON).click(); * } * } * } * }
      * - *

      An example of passing an element handle: - *

      {@code
      -   * context.exposeBinding("clicked", (source, args) -> {
      -   *   ElementHandle element = (ElementHandle) args[0];
      -   *   System.out.println(element.textContent());
      -   *   return null;
      -   * }, new BrowserContext.ExposeBindingOptions().setHandle(true));
      -   * page.setContent("" +
      -   *   "\n" +
      -   *   "
      Click me
      \n" + - * "
      Or click me
      \n"); - * }
      - * * @param name Name of the function on the window object. * @param callback Callback function that will be called in the Playwright's context. + * @since v1.8 */ - void exposeBinding(String name, BindingCallback callback, ExposeBindingOptions options); + AutoCloseable exposeBinding(String name, BindingCallback callback); /** - * The method adds a function called {@code name} on the {@code window} object of every frame in every page in the context. When - * called, the function executes {@code callback} and returns a Promise which * resolves to the return value of {@code callback}. * @@ -498,7 +857,9 @@ default void exposeBinding(String name, BindingCallback callback) { * href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise'>Promise, it will be * awaited. * - *

      See {@link Page#exposeFunction Page.exposeFunction()} for page-only version. + *

      See {@link com.microsoft.playwright.Page#exposeFunction Page.exposeFunction()} for page-only version. + * + *

      Usage * *

      An example of adding a {@code sha256} function to all pages in the context: *

      {@code
      @@ -512,8 +873,9 @@ default void exposeBinding(String name, BindingCallback callback) {
          * public class Example {
          *   public static void main(String[] args) {
          *     try (Playwright playwright = Playwright.create()) {
      -   *       BrowserType webkit = playwright.webkit()
      +   *       BrowserType webkit = playwright.webkit();
          *       Browser browser = webkit.launch(new BrowserType.LaunchOptions().setHeadless(false));
      +   *       BrowserContext context = browser.newContext();
          *       context.exposeFunction("sha256", args -> {
          *         String text = (String) args[0];
          *         MessageDigest crypto;
      @@ -533,7 +895,7 @@ default void exposeBinding(String name, BindingCallback callback) {
          *         "\n" +
          *         "\n" +
          *         "
      \n"); - * page.locator("button").click(); + * page.getByRole(AriaRole.BUTTON).click(); * } * } * } @@ -541,30 +903,40 @@ default void exposeBinding(String name, BindingCallback callback) { * * @param name Name of the function on the window object. * @param callback Callback function that will be called in the Playwright's context. + * @since v1.8 */ - void exposeFunction(String name, FunctionCallback callback); + AutoCloseable exposeFunction(String name, FunctionCallback callback); /** * Grants specified permissions to the browser context. Only grants corresponding permissions to the given origin if * specified. * - * @param permissions A permission or an array of permissions to grant. Permissions can be one of the following values: + * @param permissions A list of permissions to grant. + * + *

      NOTE: Supported permissions differ between browsers, and even between different versions of the same browser. Any permission + * may stop working after an update. + * + *

      Here are some permissions that may be supported by some browsers: *

        - *
      • {@code "geolocation"}
      • - *
      • {@code "midi"}
      • - *
      • {@code "midi-sysex"} (system-exclusive midi)
      • - *
      • {@code "notifications"}
      • - *
      • {@code "camera"}
      • - *
      • {@code "microphone"}
      • - *
      • {@code "background-sync"}
      • - *
      • {@code "ambient-light-sensor"}
      • *
      • {@code "accelerometer"}
      • - *
      • {@code "gyroscope"}
      • - *
      • {@code "magnetometer"}
      • - *
      • {@code "accessibility-events"}
      • + *
      • {@code "ambient-light-sensor"}
      • + *
      • {@code "background-sync"}
      • + *
      • {@code "camera"}
      • *
      • {@code "clipboard-read"}
      • *
      • {@code "clipboard-write"}
      • + *
      • {@code "geolocation"}
      • + *
      • {@code "gyroscope"}
      • + *
      • {@code "local-fonts"}
      • + *
      • {@code "local-network-access"}
      • + *
      • {@code "magnetometer"}
      • + *
      • {@code "microphone"}
      • + *
      • {@code "midi-sysex"} (system-exclusive midi)
      • + *
      • {@code "midi"}
      • + *
      • {@code "notifications"}
      • *
      • {@code "payment-handler"}
      • + *
      • {@code "storage-access"}
      • + *
      • {@code "screen-wake-lock"}
      • *
      + * @since v1.8 */ default void grantPermissions(List permissions) { grantPermissions(permissions, null); @@ -573,45 +945,88 @@ default void grantPermissions(List permissions) { * Grants specified permissions to the browser context. Only grants corresponding permissions to the given origin if * specified. * - * @param permissions A permission or an array of permissions to grant. Permissions can be one of the following values: + * @param permissions A list of permissions to grant. + * + *

      NOTE: Supported permissions differ between browsers, and even between different versions of the same browser. Any permission + * may stop working after an update. + * + *

      Here are some permissions that may be supported by some browsers: *

        - *
      • {@code "geolocation"}
      • - *
      • {@code "midi"}
      • - *
      • {@code "midi-sysex"} (system-exclusive midi)
      • - *
      • {@code "notifications"}
      • - *
      • {@code "camera"}
      • - *
      • {@code "microphone"}
      • - *
      • {@code "background-sync"}
      • - *
      • {@code "ambient-light-sensor"}
      • *
      • {@code "accelerometer"}
      • - *
      • {@code "gyroscope"}
      • - *
      • {@code "magnetometer"}
      • - *
      • {@code "accessibility-events"}
      • + *
      • {@code "ambient-light-sensor"}
      • + *
      • {@code "background-sync"}
      • + *
      • {@code "camera"}
      • *
      • {@code "clipboard-read"}
      • *
      • {@code "clipboard-write"}
      • + *
      • {@code "geolocation"}
      • + *
      • {@code "gyroscope"}
      • + *
      • {@code "local-fonts"}
      • + *
      • {@code "local-network-access"}
      • + *
      • {@code "magnetometer"}
      • + *
      • {@code "microphone"}
      • + *
      • {@code "midi-sysex"} (system-exclusive midi)
      • + *
      • {@code "midi"}
      • + *
      • {@code "notifications"}
      • *
      • {@code "payment-handler"}
      • + *
      • {@code "storage-access"}
      • + *
      • {@code "screen-wake-lock"}
      • *
      + * @since v1.8 + */ + void grantPermissions(List permissions, @Nullable GrantPermissionsOptions options); + /** + * Indicates that the browser context is in the process of closing or has already been closed. + * + * @since v1.59 + */ + boolean isClosed(); + /** + * NOTE: CDP sessions are only supported on Chromium-based browsers. + * + *

      Returns the newly created session. + * + * @param page Target to create new session for. For backwards-compatibility, this parameter is named {@code page}, but it can be a + * {@code Page} or {@code Frame} type. + * @since v1.11 + */ + CDPSession newCDPSession(Page page); + /** + * NOTE: CDP sessions are only supported on Chromium-based browsers. + * + *

      Returns the newly created session. + * + * @param page Target to create new session for. For backwards-compatibility, this parameter is named {@code page}, but it can be a + * {@code Page} or {@code Frame} type. + * @since v1.11 */ - void grantPermissions(List permissions, GrantPermissionsOptions options); + CDPSession newCDPSession(Frame page); /** * Creates a new page in the browser context. + * + * @since v1.8 */ Page newPage(); /** * Returns all open pages in the context. + * + * @since v1.8 */ List pages(); /** * API testing helper associated with this context. Requests made with this API will use context cookies. + * + * @since v1.16 */ APIRequestContext request(); /** * Routing provides the capability to modify network requests that are made by any page in the browser context. Once route * is enabled, every request matching the url pattern will stall unless it's continued, fulfilled or aborted. * - *

      NOTE: {@link BrowserContext#route BrowserContext.route()} will not intercept requests intercepted by Service Worker. See this issue. We recommend disabling Service Workers when - * using request interception by setting {@code Browser.newContext.serviceWorkers} to {@code "block"}. + *

      NOTE: {@link com.microsoft.playwright.BrowserContext#route BrowserContext.route()} will not intercept requests intercepted by + * Service Worker. See this issue. We recommend disabling + * Service Workers when using request interception by setting {@code serviceWorkers} to {@code "block"}. + * + *

      Usage * *

      An example of a naive handler that aborts all image requests: *

      {@code
      @@ -642,28 +1057,32 @@ default void grantPermissions(List permissions) {
          * });
          * }
      * - *

      Page routes (set up with {@link Page#route Page.route()}) take precedence over browser context routes when request - * matches both handlers. + *

      Page routes (set up with {@link com.microsoft.playwright.Page#route Page.route()}) take precedence over browser context + * routes when request matches both handlers. * - *

      To remove a route with its handler you can use {@link BrowserContext#unroute BrowserContext.unroute()}. + *

      To remove a route with its handler you can use {@link com.microsoft.playwright.BrowserContext#unroute + * BrowserContext.unroute()}. * *

      NOTE: Enabling routing disables http cache. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while routing. When a {@code baseURL} via the context - * options was provided and the passed URL is a path, it gets merged via the {@code new URL()} constructor. * @param handler handler function to route the request. + * @since v1.8 */ - default void route(String url, Consumer handler) { - route(url, handler, null); + default AutoCloseable route(String url, Consumer handler) { + return route(url, handler, null); } /** * Routing provides the capability to modify network requests that are made by any page in the browser context. Once route * is enabled, every request matching the url pattern will stall unless it's continued, fulfilled or aborted. * - *

      NOTE: {@link BrowserContext#route BrowserContext.route()} will not intercept requests intercepted by Service Worker. See this issue. We recommend disabling Service Workers when - * using request interception by setting {@code Browser.newContext.serviceWorkers} to {@code "block"}. + *

      NOTE: {@link com.microsoft.playwright.BrowserContext#route BrowserContext.route()} will not intercept requests intercepted by + * Service Worker. See this issue. We recommend disabling + * Service Workers when using request interception by setting {@code serviceWorkers} to {@code "block"}. + * + *

      Usage * *

      An example of a naive handler that aborts all image requests: *

      {@code
      @@ -694,26 +1113,30 @@ default void route(String url, Consumer handler) {
          * });
          * }
      * - *

      Page routes (set up with {@link Page#route Page.route()}) take precedence over browser context routes when request - * matches both handlers. + *

      Page routes (set up with {@link com.microsoft.playwright.Page#route Page.route()}) take precedence over browser context + * routes when request matches both handlers. * - *

      To remove a route with its handler you can use {@link BrowserContext#unroute BrowserContext.unroute()}. + *

      To remove a route with its handler you can use {@link com.microsoft.playwright.BrowserContext#unroute + * BrowserContext.unroute()}. * *

      NOTE: Enabling routing disables http cache. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while routing. When a {@code baseURL} via the context - * options was provided and the passed URL is a path, it gets merged via the {@code new URL()} constructor. * @param handler handler function to route the request. + * @since v1.8 */ - void route(String url, Consumer handler, RouteOptions options); + AutoCloseable route(String url, Consumer handler, @Nullable RouteOptions options); /** * Routing provides the capability to modify network requests that are made by any page in the browser context. Once route * is enabled, every request matching the url pattern will stall unless it's continued, fulfilled or aborted. * - *

      NOTE: {@link BrowserContext#route BrowserContext.route()} will not intercept requests intercepted by Service Worker. See this issue. We recommend disabling Service Workers when - * using request interception by setting {@code Browser.newContext.serviceWorkers} to {@code "block"}. + *

      NOTE: {@link com.microsoft.playwright.BrowserContext#route BrowserContext.route()} will not intercept requests intercepted by + * Service Worker. See this issue. We recommend disabling + * Service Workers when using request interception by setting {@code serviceWorkers} to {@code "block"}. + * + *

      Usage * *

      An example of a naive handler that aborts all image requests: *

      {@code
      @@ -744,28 +1167,32 @@ default void route(String url, Consumer handler) {
          * });
          * }
      * - *

      Page routes (set up with {@link Page#route Page.route()}) take precedence over browser context routes when request - * matches both handlers. + *

      Page routes (set up with {@link com.microsoft.playwright.Page#route Page.route()}) take precedence over browser context + * routes when request matches both handlers. * - *

      To remove a route with its handler you can use {@link BrowserContext#unroute BrowserContext.unroute()}. + *

      To remove a route with its handler you can use {@link com.microsoft.playwright.BrowserContext#unroute + * BrowserContext.unroute()}. * *

      NOTE: Enabling routing disables http cache. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while routing. When a {@code baseURL} via the context - * options was provided and the passed URL is a path, it gets merged via the {@code new URL()} constructor. * @param handler handler function to route the request. + * @since v1.8 */ - default void route(Pattern url, Consumer handler) { - route(url, handler, null); + default AutoCloseable route(Pattern url, Consumer handler) { + return route(url, handler, null); } /** * Routing provides the capability to modify network requests that are made by any page in the browser context. Once route * is enabled, every request matching the url pattern will stall unless it's continued, fulfilled or aborted. * - *

      NOTE: {@link BrowserContext#route BrowserContext.route()} will not intercept requests intercepted by Service Worker. See this issue. We recommend disabling Service Workers when - * using request interception by setting {@code Browser.newContext.serviceWorkers} to {@code "block"}. + *

      NOTE: {@link com.microsoft.playwright.BrowserContext#route BrowserContext.route()} will not intercept requests intercepted by + * Service Worker. See this issue. We recommend disabling + * Service Workers when using request interception by setting {@code serviceWorkers} to {@code "block"}. + * + *

      Usage * *

      An example of a naive handler that aborts all image requests: *

      {@code
      @@ -796,26 +1223,30 @@ default void route(Pattern url, Consumer handler) {
          * });
          * }
      * - *

      Page routes (set up with {@link Page#route Page.route()}) take precedence over browser context routes when request - * matches both handlers. + *

      Page routes (set up with {@link com.microsoft.playwright.Page#route Page.route()}) take precedence over browser context + * routes when request matches both handlers. * - *

      To remove a route with its handler you can use {@link BrowserContext#unroute BrowserContext.unroute()}. + *

      To remove a route with its handler you can use {@link com.microsoft.playwright.BrowserContext#unroute + * BrowserContext.unroute()}. * *

      NOTE: Enabling routing disables http cache. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while routing. When a {@code baseURL} via the context - * options was provided and the passed URL is a path, it gets merged via the {@code new URL()} constructor. * @param handler handler function to route the request. + * @since v1.8 */ - void route(Pattern url, Consumer handler, RouteOptions options); + AutoCloseable route(Pattern url, Consumer handler, @Nullable RouteOptions options); /** * Routing provides the capability to modify network requests that are made by any page in the browser context. Once route * is enabled, every request matching the url pattern will stall unless it's continued, fulfilled or aborted. * - *

      NOTE: {@link BrowserContext#route BrowserContext.route()} will not intercept requests intercepted by Service Worker. See this issue. We recommend disabling Service Workers when - * using request interception by setting {@code Browser.newContext.serviceWorkers} to {@code "block"}. + *

      NOTE: {@link com.microsoft.playwright.BrowserContext#route BrowserContext.route()} will not intercept requests intercepted by + * Service Worker. See this issue. We recommend disabling + * Service Workers when using request interception by setting {@code serviceWorkers} to {@code "block"}. + * + *

      Usage * *

      An example of a naive handler that aborts all image requests: *

      {@code
      @@ -846,28 +1277,32 @@ default void route(Pattern url, Consumer handler) {
          * });
          * }
      * - *

      Page routes (set up with {@link Page#route Page.route()}) take precedence over browser context routes when request - * matches both handlers. + *

      Page routes (set up with {@link com.microsoft.playwright.Page#route Page.route()}) take precedence over browser context + * routes when request matches both handlers. * - *

      To remove a route with its handler you can use {@link BrowserContext#unroute BrowserContext.unroute()}. + *

      To remove a route with its handler you can use {@link com.microsoft.playwright.BrowserContext#unroute + * BrowserContext.unroute()}. * *

      NOTE: Enabling routing disables http cache. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while routing. When a {@code baseURL} via the context - * options was provided and the passed URL is a path, it gets merged via the {@code new URL()} constructor. * @param handler handler function to route the request. + * @since v1.8 */ - default void route(Predicate url, Consumer handler) { - route(url, handler, null); + default AutoCloseable route(Predicate url, Consumer handler) { + return route(url, handler, null); } /** * Routing provides the capability to modify network requests that are made by any page in the browser context. Once route * is enabled, every request matching the url pattern will stall unless it's continued, fulfilled or aborted. * - *

      NOTE: {@link BrowserContext#route BrowserContext.route()} will not intercept requests intercepted by Service Worker. See this issue. We recommend disabling Service Workers when - * using request interception by setting {@code Browser.newContext.serviceWorkers} to {@code "block"}. + *

      NOTE: {@link com.microsoft.playwright.BrowserContext#route BrowserContext.route()} will not intercept requests intercepted by + * Service Worker. See this issue. We recommend disabling + * Service Workers when using request interception by setting {@code serviceWorkers} to {@code "block"}. + * + *

      Usage * *

      An example of a naive handler that aborts all image requests: *

      {@code
      @@ -898,186 +1333,402 @@ default void route(Predicate url, Consumer handler) {
          * });
          * }
      * - *

      Page routes (set up with {@link Page#route Page.route()}) take precedence over browser context routes when request - * matches both handlers. + *

      Page routes (set up with {@link com.microsoft.playwright.Page#route Page.route()}) take precedence over browser context + * routes when request matches both handlers. * - *

      To remove a route with its handler you can use {@link BrowserContext#unroute BrowserContext.unroute()}. + *

      To remove a route with its handler you can use {@link com.microsoft.playwright.BrowserContext#unroute + * BrowserContext.unroute()}. * *

      NOTE: Enabling routing disables http cache. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while routing. When a {@code baseURL} via the context - * options was provided and the passed URL is a path, it gets merged via the {@code new URL()} constructor. * @param handler handler function to route the request. + * @since v1.8 */ - void route(Predicate url, Consumer handler, RouteOptions options); + AutoCloseable route(Predicate url, Consumer handler, @Nullable RouteOptions options); /** * If specified the network requests that are made in the context will be served from the HAR file. Read more about Replaying from HAR. + * href="https://playwright.dev/java/docs/mock#replaying-from-har">Replaying from HAR. * *

      Playwright will not serve requests intercepted by Service Worker from the HAR file. See this issue. We recommend disabling Service Workers when - * using request interception by setting {@code Browser.newContext.serviceWorkers} to {@code "block"}. + * using request interception by setting {@code serviceWorkers} to {@code "block"}. * - * @param har Path to a HAR file with prerecorded network data. If {@code path} - * is a relative path, then it is resolved relative to the current working directory. + * @param har Path to a HAR file with prerecorded network data. If {@code + * path} is a relative path, then it is resolved relative to the current working directory. + * @since v1.23 */ default void routeFromHAR(Path har) { routeFromHAR(har, null); } /** * If specified the network requests that are made in the context will be served from the HAR file. Read more about Replaying from HAR. + * href="https://playwright.dev/java/docs/mock#replaying-from-har">Replaying from HAR. * *

      Playwright will not serve requests intercepted by Service Worker from the HAR file. See this issue. We recommend disabling Service Workers when - * using request interception by setting {@code Browser.newContext.serviceWorkers} to {@code "block"}. + * using request interception by setting {@code serviceWorkers} to {@code "block"}. + * + * @param har Path to a HAR file with prerecorded network data. If {@code + * path} is a relative path, then it is resolved relative to the current working directory. + * @since v1.23 + */ + void routeFromHAR(Path har, @Nullable RouteFromHAROptions options); + /** + * This method allows to modify websocket connections that are made by any page in the browser context. + * + *

      Note that only {@code WebSocket}s created after this method was called will be routed. It is recommended to call this + * method before creating any pages. * - * @param har Path to a HAR file with prerecorded network data. If {@code path} - * is a relative path, then it is resolved relative to the current working directory. + *

      Usage + * + *

      Below is an example of a simple handler that blocks some websocket messages. See {@code WebSocketRoute} for more details + * and examples. + *

      {@code
      +   * context.routeWebSocket("/ws", ws -> {
      +   *   WebSocketRoute server = ws.connectToServer();
      +   *   ws.onMessage(frame -> {
      +   *     if ("to-be-blocked".equals(frame.text()))
      +   *       return;
      +   *     server.send(frame.text());
      +   *   });
      +   * });
      +   * }
      + * + * @param url Only WebSockets with the url matching this pattern will be routed. A string pattern can be relative to the {@code + * baseURL} context option. + * @param handler Handler function to route the WebSocket. + * @since v1.48 + */ + void routeWebSocket(String url, Consumer handler); + /** + * This method allows to modify websocket connections that are made by any page in the browser context. + * + *

      Note that only {@code WebSocket}s created after this method was called will be routed. It is recommended to call this + * method before creating any pages. + * + *

      Usage + * + *

      Below is an example of a simple handler that blocks some websocket messages. See {@code WebSocketRoute} for more details + * and examples. + *

      {@code
      +   * context.routeWebSocket("/ws", ws -> {
      +   *   WebSocketRoute server = ws.connectToServer();
      +   *   ws.onMessage(frame -> {
      +   *     if ("to-be-blocked".equals(frame.text()))
      +   *       return;
      +   *     server.send(frame.text());
      +   *   });
      +   * });
      +   * }
      + * + * @param url Only WebSockets with the url matching this pattern will be routed. A string pattern can be relative to the {@code + * baseURL} context option. + * @param handler Handler function to route the WebSocket. + * @since v1.48 + */ + void routeWebSocket(Pattern url, Consumer handler); + /** + * This method allows to modify websocket connections that are made by any page in the browser context. + * + *

      Note that only {@code WebSocket}s created after this method was called will be routed. It is recommended to call this + * method before creating any pages. + * + *

      Usage + * + *

      Below is an example of a simple handler that blocks some websocket messages. See {@code WebSocketRoute} for more details + * and examples. + *

      {@code
      +   * context.routeWebSocket("/ws", ws -> {
      +   *   WebSocketRoute server = ws.connectToServer();
      +   *   ws.onMessage(frame -> {
      +   *     if ("to-be-blocked".equals(frame.text()))
      +   *       return;
      +   *     server.send(frame.text());
      +   *   });
      +   * });
      +   * }
      + * + * @param url Only WebSockets with the url matching this pattern will be routed. A string pattern can be relative to the {@code + * baseURL} context option. + * @param handler Handler function to route the WebSocket. + * @since v1.48 */ - void routeFromHAR(Path har, RouteFromHAROptions options); + void routeWebSocket(Predicate url, Consumer handler); /** * This setting will change the default maximum navigation time for the following methods and related shortcuts: *
        - *
      • {@link Page#goBack Page.goBack()}
      • - *
      • {@link Page#goForward Page.goForward()}
      • - *
      • {@link Page#navigate Page.navigate()}
      • - *
      • {@link Page#reload Page.reload()}
      • - *
      • {@link Page#setContent Page.setContent()}
      • - *
      • {@link Page#waitForNavigation Page.waitForNavigation()}
      • + *
      • {@link com.microsoft.playwright.Page#goBack Page.goBack()}
      • + *
      • {@link com.microsoft.playwright.Page#goForward Page.goForward()}
      • + *
      • {@link com.microsoft.playwright.Page#navigate Page.navigate()}
      • + *
      • {@link com.microsoft.playwright.Page#reload Page.reload()}
      • + *
      • {@link com.microsoft.playwright.Page#setContent Page.setContent()}
      • + *
      • {@link com.microsoft.playwright.Page#waitForNavigation Page.waitForNavigation()}
      • *
      * - *

      NOTE: {@link Page#setDefaultNavigationTimeout Page.setDefaultNavigationTimeout()} and {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} take priority over {@link BrowserContext#setDefaultNavigationTimeout - * BrowserContext.setDefaultNavigationTimeout()}. + *

      NOTE: {@link com.microsoft.playwright.Page#setDefaultNavigationTimeout Page.setDefaultNavigationTimeout()} and {@link + * com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} take priority over {@link + * com.microsoft.playwright.BrowserContext#setDefaultNavigationTimeout BrowserContext.setDefaultNavigationTimeout()}. * * @param timeout Maximum navigation time in milliseconds + * @since v1.8 */ void setDefaultNavigationTimeout(double timeout); /** * This setting will change the default maximum time for all the methods accepting {@code timeout} option. * - *

      NOTE: {@link Page#setDefaultNavigationTimeout Page.setDefaultNavigationTimeout()}, {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} and {@link BrowserContext#setDefaultNavigationTimeout - * BrowserContext.setDefaultNavigationTimeout()} take priority over {@link BrowserContext#setDefaultTimeout - * BrowserContext.setDefaultTimeout()}. + *

      NOTE: {@link com.microsoft.playwright.Page#setDefaultNavigationTimeout Page.setDefaultNavigationTimeout()}, {@link + * com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} and {@link + * com.microsoft.playwright.BrowserContext#setDefaultNavigationTimeout BrowserContext.setDefaultNavigationTimeout()} take + * priority over {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()}. * - * @param timeout Maximum time in milliseconds + * @param timeout Maximum time in milliseconds. Pass {@code 0} to disable timeout. + * @since v1.8 */ void setDefaultTimeout(double timeout); /** * The extra HTTP headers will be sent with every request initiated by any page in the context. These headers are merged - * with page-specific extra HTTP headers set with {@link Page#setExtraHTTPHeaders Page.setExtraHTTPHeaders()}. If page - * overrides a particular header, page-specific header value will be used instead of the browser context header value. + * with page-specific extra HTTP headers set with {@link com.microsoft.playwright.Page#setExtraHTTPHeaders + * Page.setExtraHTTPHeaders()}. If page overrides a particular header, page-specific header value will be used instead of + * the browser context header value. * - *

      NOTE: {@link BrowserContext#setExtraHTTPHeaders BrowserContext.setExtraHTTPHeaders()} does not guarantee the order of headers - * in the outgoing requests. + *

      NOTE: {@link com.microsoft.playwright.BrowserContext#setExtraHTTPHeaders BrowserContext.setExtraHTTPHeaders()} does not + * guarantee the order of headers in the outgoing requests. * * @param headers An object containing additional HTTP headers to be sent with every request. All header values must be strings. + * @since v1.8 */ void setExtraHTTPHeaders(Map headers); /** * Sets the context's geolocation. Passing {@code null} or {@code undefined} emulates position unavailable. + * + *

      Usage *

      {@code
          * browserContext.setGeolocation(new Geolocation(59.95, 30.31667));
          * }
      * - *

      NOTE: Consider using {@link BrowserContext#grantPermissions BrowserContext.grantPermissions()} to grant permissions for the - * browser context pages to read its geolocation. + *

      NOTE: Consider using {@link com.microsoft.playwright.BrowserContext#grantPermissions BrowserContext.grantPermissions()} to + * grant permissions for the browser context pages to read its geolocation. + * + * @since v1.8 */ - void setGeolocation(Geolocation geolocation); + void setGeolocation(@Nullable Geolocation geolocation); /** * * * @param offline Whether to emulate network being offline for the browser context. + * + *

      NOTE: Offline emulation only affects requests that go through the browser's regular network stack, such as page navigations, + * {@code fetch()}, {@code XMLHttpRequest} and WebSockets. It does not affect WebRTC traffic: established {@code + * RTCPeerConnection}s keep sending and receiving media over UDP. To test WebRTC connection loss, interrupt the connection + * outside the browser, for example by stopping the TURN server or using an OS-level firewall. + * @since v1.8 */ void setOffline(boolean offline); /** - * Returns storage state for this browser context, contains current cookies and local storage snapshot. + * Returns storage state for this browser context, contains current cookies, local storage snapshot, IndexedDB snapshot, + * origin private file system snapshot and virtual WebAuthn credentials. + * + * @since v1.8 */ default String storageState() { return storageState(null); } /** - * Returns storage state for this browser context, contains current cookies and local storage snapshot. + * Returns storage state for this browser context, contains current cookies, local storage snapshot, IndexedDB snapshot, + * origin private file system snapshot and virtual WebAuthn credentials. + * + * @since v1.8 + */ + String storageState(@Nullable StorageStateOptions options); + /** + * Clears the existing cookies, local storage, IndexedDB entries, origin private file system entries and virtual WebAuthn + * credentials, and sets the new storage state. When the storage state contains credentials, the virtual WebAuthn + * authenticator is installed (equivalent to {@link com.microsoft.playwright.Credentials#install Credentials.install()}), + * preventing all real authenticators from working in this context. + * + *

      Usage + *

      {@code
      +   * // Load storage state from a file and apply it to the context.
      +   * context.setStorageState(Paths.get("state.json"));
      +   * }
      + * + * @param storageState Populates context with given storage state. This option can be used to initialize context with logged-in information + * obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}. Path to the + * file with saved storage state. + * @since v1.59 + */ + void setStorageState(Path storageState); + /** + * + * + * @since v1.12 */ - String storageState(StorageStateOptions options); Tracing tracing(); /** - * Removes a route created with {@link BrowserContext#route BrowserContext.route()}. When {@code handler} is not specified, - * removes all routes for the {@code url}. + * Removes all routes created with {@link com.microsoft.playwright.BrowserContext#route BrowserContext.route()} and {@link + * com.microsoft.playwright.BrowserContext#routeFromHAR BrowserContext.routeFromHAR()}. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] used to register a routing with {@link BrowserContext#route - * BrowserContext.route()}. + * @since v1.41 + */ + void unrouteAll(); + /** + * Removes a route created with {@link com.microsoft.playwright.BrowserContext#route BrowserContext.route()}. When {@code + * handler} is not specified, removes all routes for the {@code url}. + * + * @param url A glob pattern, regex pattern, or predicate receiving [URL] used to register a routing with {@link + * com.microsoft.playwright.BrowserContext#route BrowserContext.route()}. + * @since v1.8 */ default void unroute(String url) { unroute(url, null); } /** - * Removes a route created with {@link BrowserContext#route BrowserContext.route()}. When {@code handler} is not specified, - * removes all routes for the {@code url}. + * Removes a route created with {@link com.microsoft.playwright.BrowserContext#route BrowserContext.route()}. When {@code + * handler} is not specified, removes all routes for the {@code url}. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] used to register a routing with {@link BrowserContext#route + * @param url A glob pattern, regex pattern, or predicate receiving [URL] used to register a routing with {@link + * com.microsoft.playwright.BrowserContext#route BrowserContext.route()}. + * @param handler Optional handler function used to register a routing with {@link com.microsoft.playwright.BrowserContext#route * BrowserContext.route()}. - * @param handler Optional handler function used to register a routing with {@link BrowserContext#route BrowserContext.route()}. + * @since v1.8 */ - void unroute(String url, Consumer handler); + void unroute(String url, @Nullable Consumer handler); /** - * Removes a route created with {@link BrowserContext#route BrowserContext.route()}. When {@code handler} is not specified, - * removes all routes for the {@code url}. + * Removes a route created with {@link com.microsoft.playwright.BrowserContext#route BrowserContext.route()}. When {@code + * handler} is not specified, removes all routes for the {@code url}. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] used to register a routing with {@link BrowserContext#route - * BrowserContext.route()}. + * @param url A glob pattern, regex pattern, or predicate receiving [URL] used to register a routing with {@link + * com.microsoft.playwright.BrowserContext#route BrowserContext.route()}. + * @since v1.8 */ default void unroute(Pattern url) { unroute(url, null); } /** - * Removes a route created with {@link BrowserContext#route BrowserContext.route()}. When {@code handler} is not specified, - * removes all routes for the {@code url}. + * Removes a route created with {@link com.microsoft.playwright.BrowserContext#route BrowserContext.route()}. When {@code + * handler} is not specified, removes all routes for the {@code url}. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] used to register a routing with {@link BrowserContext#route + * @param url A glob pattern, regex pattern, or predicate receiving [URL] used to register a routing with {@link + * com.microsoft.playwright.BrowserContext#route BrowserContext.route()}. + * @param handler Optional handler function used to register a routing with {@link com.microsoft.playwright.BrowserContext#route * BrowserContext.route()}. - * @param handler Optional handler function used to register a routing with {@link BrowserContext#route BrowserContext.route()}. + * @since v1.8 */ - void unroute(Pattern url, Consumer handler); + void unroute(Pattern url, @Nullable Consumer handler); /** - * Removes a route created with {@link BrowserContext#route BrowserContext.route()}. When {@code handler} is not specified, - * removes all routes for the {@code url}. + * Removes a route created with {@link com.microsoft.playwright.BrowserContext#route BrowserContext.route()}. When {@code + * handler} is not specified, removes all routes for the {@code url}. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] used to register a routing with {@link BrowserContext#route - * BrowserContext.route()}. + * @param url A glob pattern, regex pattern, or predicate receiving [URL] used to register a routing with {@link + * com.microsoft.playwright.BrowserContext#route BrowserContext.route()}. + * @since v1.8 */ default void unroute(Predicate url) { unroute(url, null); } /** - * Removes a route created with {@link BrowserContext#route BrowserContext.route()}. When {@code handler} is not specified, - * removes all routes for the {@code url}. + * Removes a route created with {@link com.microsoft.playwright.BrowserContext#route BrowserContext.route()}. When {@code + * handler} is not specified, removes all routes for the {@code url}. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] used to register a routing with {@link BrowserContext#route + * @param url A glob pattern, regex pattern, or predicate receiving [URL] used to register a routing with {@link + * com.microsoft.playwright.BrowserContext#route BrowserContext.route()}. + * @param handler Optional handler function used to register a routing with {@link com.microsoft.playwright.BrowserContext#route * BrowserContext.route()}. - * @param handler Optional handler function used to register a routing with {@link BrowserContext#route BrowserContext.route()}. + * @since v1.8 + */ + void unroute(Predicate url, @Nullable Consumer handler); + /** + * The method will block until the condition returns true. All Playwright events will be dispatched while the method is + * waiting for the condition. + * + *

      Usage + * + *

      Use the method to wait for a condition that depends on page events: + *

      {@code
      +   * List failedUrls = new ArrayList<>();
      +   * context.onResponse(response -> {
      +   *   if (!response.ok()) {
      +   *     failedUrls.add(response.url());
      +   *   }
      +   * });
      +   * page1.getByText("Create user").click();
      +   * page2.getByText("Submit button").click();
      +   * context.waitForCondition(() -> failedUrls.size() > 3);
      +   * }
      + * + * @param condition Condition to wait for. + * @since v1.32 + */ + default void waitForCondition(BooleanSupplier condition) { + waitForCondition(condition, null); + } + /** + * The method will block until the condition returns true. All Playwright events will be dispatched while the method is + * waiting for the condition. + * + *

      Usage + * + *

      Use the method to wait for a condition that depends on page events: + *

      {@code
      +   * List failedUrls = new ArrayList<>();
      +   * context.onResponse(response -> {
      +   *   if (!response.ok()) {
      +   *     failedUrls.add(response.url());
      +   *   }
      +   * });
      +   * page1.getByText("Create user").click();
      +   * page2.getByText("Submit button").click();
      +   * context.waitForCondition(() -> failedUrls.size() > 3);
      +   * }
      + * + * @param condition Condition to wait for. + * @since v1.32 + */ + void waitForCondition(BooleanSupplier condition, @Nullable WaitForConditionOptions options); + /** + * Performs action and waits for a {@code ConsoleMessage} to be logged by in the pages in the context. If predicate is + * provided, it passes {@code ConsoleMessage} value into the {@code predicate} function and waits for {@code + * predicate(message)} to return a truthy value. Will throw an error if the page is closed before the {@link + * com.microsoft.playwright.BrowserContext#onConsoleMessage BrowserContext.onConsoleMessage()} event is fired. + * + * @param callback Callback that performs the action triggering the event. + * @since v1.34 + */ + default ConsoleMessage waitForConsoleMessage(Runnable callback) { + return waitForConsoleMessage(null, callback); + } + /** + * Performs action and waits for a {@code ConsoleMessage} to be logged by in the pages in the context. If predicate is + * provided, it passes {@code ConsoleMessage} value into the {@code predicate} function and waits for {@code + * predicate(message)} to return a truthy value. Will throw an error if the page is closed before the {@link + * com.microsoft.playwright.BrowserContext#onConsoleMessage BrowserContext.onConsoleMessage()} event is fired. + * + * @param callback Callback that performs the action triggering the event. + * @since v1.34 */ - void unroute(Predicate url, Consumer handler); + ConsoleMessage waitForConsoleMessage(@Nullable WaitForConsoleMessageOptions options, Runnable callback); /** - * Performs action and waits for a new {@code Page} to be created in the context. If predicate is provided, it passes {@code Page} - * value into the {@code predicate} function and waits for {@code predicate(event)} to return a truthy value. Will throw an error if - * the context closes before new {@code Page} is created. + * Performs action and waits for a new {@code Page} to be created in the context. If predicate is provided, it passes + * {@code Page} value into the {@code predicate} function and waits for {@code predicate(event)} to return a truthy value. + * Will throw an error if the context closes before new {@code Page} is created. * * @param callback Callback that performs the action triggering the event. + * @since v1.9 */ default Page waitForPage(Runnable callback) { return waitForPage(null, callback); } /** - * Performs action and waits for a new {@code Page} to be created in the context. If predicate is provided, it passes {@code Page} - * value into the {@code predicate} function and waits for {@code predicate(event)} to return a truthy value. Will throw an error if - * the context closes before new {@code Page} is created. + * Performs action and waits for a new {@code Page} to be created in the context. If predicate is provided, it passes + * {@code Page} value into the {@code predicate} function and waits for {@code predicate(event)} to return a truthy value. + * Will throw an error if the context closes before new {@code Page} is created. * * @param callback Callback that performs the action triggering the event. + * @since v1.9 */ - Page waitForPage(WaitForPageOptions options, Runnable callback); + Page waitForPage(@Nullable WaitForPageOptions options, Runnable callback); } diff --git a/playwright/src/main/java/com/microsoft/playwright/BrowserType.java b/playwright/src/main/java/com/microsoft/playwright/BrowserType.java index 885b98ce1..62b38ac26 100644 --- a/playwright/src/main/java/com/microsoft/playwright/BrowserType.java +++ b/playwright/src/main/java/com/microsoft/playwright/BrowserType.java @@ -16,6 +16,7 @@ package com.microsoft.playwright; +import org.jspecify.annotations.Nullable; import com.microsoft.playwright.options.*; import java.nio.file.Path; import java.util.*; @@ -43,20 +44,63 @@ */ public interface BrowserType { class ConnectOptions { + /** + * This option exposes network available on the connecting client to the browser being connected to. Consists of a list of + * rules separated by comma. + * + *

      Available rules: + *

        + *
      1. Hostname pattern, for example: {@code example.com}, {@code *.org:99}, {@code x.*.y.com}, {@code *foo.org}.
      2. + *
      3. IP literal, for example: {@code 127.0.0.1}, {@code 0.0.0.0:99}, {@code [::1]}, {@code [0:0::1]:99}.
      4. + *
      5. {@code } that matches local loopback interfaces: {@code localhost}, {@code *.localhost}, {@code 127.0.0.1}, + * {@code [::1]}.
      6. + *
      + * + *

      Some common examples: + *

        + *
      1. {@code "*"} to expose all network.
      2. + *
      3. {@code ""} to expose localhost network.
      4. + *
      5. {@code "*.test.internal-domain,*.staging.internal-domain,"} to expose test/staging deployments and localhost.
      6. + *
      + */ + public @Nullable String exposeNetwork; /** * Additional HTTP headers to be sent with web socket connect request. Optional. */ - public Map headers; + public @Nullable Map headers; /** * Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. * Defaults to 0. */ - public Double slowMo; + public @Nullable Double slowMo; /** * Maximum time in milliseconds to wait for the connection to be established. Defaults to {@code 0} (no timeout). */ - public Double timeout; + public @Nullable Double timeout; + /** + * This option exposes network available on the connecting client to the browser being connected to. Consists of a list of + * rules separated by comma. + * + *

      Available rules: + *

        + *
      1. Hostname pattern, for example: {@code example.com}, {@code *.org:99}, {@code x.*.y.com}, {@code *foo.org}.
      2. + *
      3. IP literal, for example: {@code 127.0.0.1}, {@code 0.0.0.0:99}, {@code [::1]}, {@code [0:0::1]:99}.
      4. + *
      5. {@code } that matches local loopback interfaces: {@code localhost}, {@code *.localhost}, {@code 127.0.0.1}, + * {@code [::1]}.
      6. + *
      + * + *

      Some common examples: + *

        + *
      1. {@code "*"} to expose all network.
      2. + *
      3. {@code ""} to expose localhost network.
      4. + *
      5. {@code "*.test.internal-domain,*.staging.internal-domain,"} to expose test/staging deployments and localhost.
      6. + *
      + */ + public ConnectOptions setExposeNetwork(String exposeNetwork) { + this.exposeNetwork = exposeNetwork; + return this; + } /** * Additional HTTP headers to be sent with web socket connect request. Optional. */ @@ -81,21 +125,46 @@ public ConnectOptions setTimeout(double timeout) { } } class ConnectOverCDPOptions { + /** + * If specified, browser artifacts (such as traces and downloads) are saved into this directory. + */ + public @Nullable Path artifactsDir; /** * Additional HTTP headers to be sent with connect request. Optional. */ - public Map headers; + public @Nullable Map headers; + /** + * Tells Playwright that it runs on the same host as the CDP server. It will enable certain optimizations that rely upon + * the file system being the same between Playwright and the Browser. + */ + public @Nullable Boolean isLocal; + /** + * When true, Playwright will not apply its default overrides to the existing default browser context. Specifically, {@code + * acceptDownloads} and font families are left at the browser's settings, focus emulation is not enabled, and media + * emulation options (such as {@code colorScheme}, {@code reducedMotion}, {@code forcedColors}, and {@code contrast}) are + * not applied. Useful when attaching to a user's daily-driver browser where these overrides would interfere with existing + * browser state. New contexts created via {@link com.microsoft.playwright.Browser#newContext Browser.newContext()} are not + * affected. Defaults to {@code false}. + */ + public @Nullable Boolean noDefaults; /** * Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. * Defaults to 0. */ - public Double slowMo; + public @Nullable Double slowMo; /** - * Maximum time in milliseconds to wait for the connection to be established. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to - * disable timeout. + * Maximum time in milliseconds to wait for the connection to be established. Defaults to {@code 30000} (30 seconds). Pass + * {@code 0} to disable timeout. */ - public Double timeout; + public @Nullable Double timeout; + /** + * If specified, browser artifacts (such as traces and downloads) are saved into this directory. + */ + public ConnectOverCDPOptions setArtifactsDir(Path artifactsDir) { + this.artifactsDir = artifactsDir; + return this; + } /** * Additional HTTP headers to be sent with connect request. Optional. */ @@ -103,6 +172,26 @@ public ConnectOverCDPOptions setHeaders(Map headers) { this.headers = headers; return this; } + /** + * Tells Playwright that it runs on the same host as the CDP server. It will enable certain optimizations that rely upon + * the file system being the same between Playwright and the Browser. + */ + public ConnectOverCDPOptions setIsLocal(boolean isLocal) { + this.isLocal = isLocal; + return this; + } + /** + * When true, Playwright will not apply its default overrides to the existing default browser context. Specifically, {@code + * acceptDownloads} and font families are left at the browser's settings, focus emulation is not enabled, and media + * emulation options (such as {@code colorScheme}, {@code reducedMotion}, {@code forcedColors}, and {@code contrast}) are + * not applied. Useful when attaching to a user's daily-driver browser where these overrides would interfere with existing + * browser state. New contexts created via {@link com.microsoft.playwright.Browser#newContext Browser.newContext()} are not + * affected. Defaults to {@code false}. + */ + public ConnectOverCDPOptions setNoDefaults(boolean noDefaults) { + this.noDefaults = noDefaults; + return this; + } /** * Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. * Defaults to 0. @@ -112,8 +201,8 @@ public ConnectOverCDPOptions setSlowMo(double slowMo) { return this; } /** - * Maximum time in milliseconds to wait for the connection to be established. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to - * disable timeout. + * Maximum time in milliseconds to wait for the connection to be established. Defaults to {@code 30000} (30 seconds). Pass + * {@code 0} to disable timeout. */ public ConnectOverCDPOptions setTimeout(double timeout) { this.timeout = timeout; @@ -122,115 +211,146 @@ public ConnectOverCDPOptions setTimeout(double timeout) { } class LaunchOptions { /** - * Additional arguments to pass to the browser instance. The list of Chromium flags can be found here. + * NOTE: Use custom browser args at your own risk, as some of them may break Playwright functionality. + * + *

      Additional arguments to pass to the browser instance. The list of Chromium flags can be found here. */ - public List args; + public @Nullable List args; /** - * Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", - * "msedge-beta", "msedge-dev", "msedge-canary". Read more about using Google Chrome and Microsoft Edge. + * If specified, artifacts (traces, videos, downloads, HAR files, etc.) are saved into this directory. The directory is not + * cleaned up when the browser closes. If not specified, a temporary directory is used and cleaned up when the browser + * closes. */ - public Object channel; + public @Nullable Path artifactsDir; /** - * Enable Chromium sandboxing. Defaults to {@code false}. + * Browser distribution channel. + * + *

      Use "chromium" to opt in to new headless + * mode. + * + *

      Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or "msedge-canary" to + * use branded Google Chrome and + * Microsoft Edge. */ - public Boolean chromiumSandbox; + public @Nullable Object channel; /** - * **Chromium-only** Whether to auto-open a Developer Tools panel for each tab. If this option is {@code true}, the {@code headless} - * option will be set {@code false}. + * Enable Chromium sandboxing. Defaults to {@code false}. */ - public Boolean devtools; + public @Nullable Boolean chromiumSandbox; /** * If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is * deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in * is closed. */ - public Path downloadsPath; + public @Nullable Path downloadsPath; /** * Specify environment variables that will be visible to the browser. Defaults to {@code process.env}. */ - public Map env; + public @Nullable Map env; /** * Path to a browser executable to run instead of the bundled one. If {@code executablePath} is a relative path, then it is * resolved relative to the current working directory. Note that Playwright only works with the bundled Chromium, Firefox * or WebKit, use at your own risk. */ - public Path executablePath; + public @Nullable Path executablePath; /** * Firefox user preferences. Learn more about the Firefox user preferences at {@code about:config}. + * + *

      You can also provide a path to a custom {@code policies.json} + * file via {@code PLAYWRIGHT_FIREFOX_POLICIES_JSON} environment variable. */ - public Map firefoxUserPrefs; + public @Nullable Map firefoxUserPrefs; /** * Close the browser process on SIGHUP. Defaults to {@code true}. */ - public Boolean handleSIGHUP; + public @Nullable Boolean handleSIGHUP; /** * Close the browser process on Ctrl-C. Defaults to {@code true}. */ - public Boolean handleSIGINT; + public @Nullable Boolean handleSIGINT; /** * Close the browser process on SIGTERM. Defaults to {@code true}. */ - public Boolean handleSIGTERM; + public @Nullable Boolean handleSIGTERM; /** * Whether to run browser in headless mode. More details for Chromium and Firefox. Defaults to {@code true} unless the - * {@code devtools} option is {@code true}. + * href="https://hacks.mozilla.org/2017/12/using-headless-mode-in-firefox/">Firefox. Defaults to {@code true}. */ - public Boolean headless; + public @Nullable Boolean headless; /** - * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. Dangerous option; - * use with care. Defaults to {@code false}. + * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. + * Dangerous option; use with care. Defaults to {@code false}. */ - public Boolean ignoreAllDefaultArgs; + public @Nullable Boolean ignoreAllDefaultArgs; /** - * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. Dangerous option; - * use with care. + * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. + * Dangerous option; use with care. */ - public List ignoreDefaultArgs; + public @Nullable List ignoreDefaultArgs; /** * Network proxy settings. */ - public Proxy proxy; + public @Nullable Proxy proxy; /** * Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. */ - public Double slowMo; + public @Nullable Double slowMo; /** - * Maximum time in milliseconds to wait for the browser instance to start. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to - * disable timeout. + * Maximum time in milliseconds to wait for the browser instance to start. Defaults to {@code 180000} (3 minutes). Pass + * {@code 0} to disable timeout. */ - public Double timeout; + public @Nullable Double timeout; /** * If specified, traces are saved into this directory. */ - public Path tracesDir; + public @Nullable Path tracesDir; /** - * Additional arguments to pass to the browser instance. The list of Chromium flags can be found here. + * NOTE: Use custom browser args at your own risk, as some of them may break Playwright functionality. + * + *

      Additional arguments to pass to the browser instance. The list of Chromium flags can be found here. */ public LaunchOptions setArgs(List args) { this.args = args; return this; } + /** + * If specified, artifacts (traces, videos, downloads, HAR files, etc.) are saved into this directory. The directory is not + * cleaned up when the browser closes. If not specified, a temporary directory is used and cleaned up when the browser + * closes. + */ + public LaunchOptions setArtifactsDir(Path artifactsDir) { + this.artifactsDir = artifactsDir; + return this; + } @Deprecated /** - * Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", - * "msedge-beta", "msedge-dev", "msedge-canary". Read more about using Google Chrome and Microsoft Edge. + * Browser distribution channel. + * + *

      Use "chromium" to opt in to new headless + * mode. + * + *

      Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or "msedge-canary" to + * use branded Google Chrome and + * Microsoft Edge. */ public LaunchOptions setChannel(BrowserChannel channel) { this.channel = channel; return this; } /** - * Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", - * "msedge-beta", "msedge-dev", "msedge-canary". Read more about using Google Chrome and Microsoft Edge. + * Browser distribution channel. + * + *

      Use "chromium" to opt in to new headless + * mode. + * + *

      Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or "msedge-canary" to + * use branded Google Chrome and + * Microsoft Edge. */ public LaunchOptions setChannel(String channel) { this.channel = channel; @@ -243,14 +363,6 @@ public LaunchOptions setChromiumSandbox(boolean chromiumSandbox) { this.chromiumSandbox = chromiumSandbox; return this; } - /** - * **Chromium-only** Whether to auto-open a Developer Tools panel for each tab. If this option is {@code true}, the {@code headless} - * option will be set {@code false}. - */ - public LaunchOptions setDevtools(boolean devtools) { - this.devtools = devtools; - return this; - } /** * If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is * deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in @@ -279,6 +391,9 @@ public LaunchOptions setExecutablePath(Path executablePath) { /** * Firefox user preferences. Learn more about the Firefox user preferences at {@code about:config}. + * + *

      You can also provide a path to a custom {@code policies.json} + * file via {@code PLAYWRIGHT_FIREFOX_POLICIES_JSON} environment variable. */ public LaunchOptions setFirefoxUserPrefs(Map firefoxUserPrefs) { this.firefoxUserPrefs = firefoxUserPrefs; @@ -308,24 +423,23 @@ public LaunchOptions setHandleSIGTERM(boolean handleSIGTERM) { /** * Whether to run browser in headless mode. More details for Chromium and Firefox. Defaults to {@code true} unless the - * {@code devtools} option is {@code true}. + * href="https://hacks.mozilla.org/2017/12/using-headless-mode-in-firefox/">Firefox. Defaults to {@code true}. */ public LaunchOptions setHeadless(boolean headless) { this.headless = headless; return this; } /** - * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. Dangerous option; - * use with care. Defaults to {@code false}. + * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. + * Dangerous option; use with care. Defaults to {@code false}. */ public LaunchOptions setIgnoreAllDefaultArgs(boolean ignoreAllDefaultArgs) { this.ignoreAllDefaultArgs = ignoreAllDefaultArgs; return this; } /** - * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. Dangerous option; - * use with care. + * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. + * Dangerous option; use with care. */ public LaunchOptions setIgnoreDefaultArgs(List ignoreDefaultArgs) { this.ignoreDefaultArgs = ignoreDefaultArgs; @@ -352,8 +466,8 @@ public LaunchOptions setSlowMo(double slowMo) { return this; } /** - * Maximum time in milliseconds to wait for the browser instance to start. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to - * disable timeout. + * Maximum time in milliseconds to wait for the browser instance to start. Defaults to {@code 180000} (3 minutes). Pass + * {@code 0} to disable timeout. */ public LaunchOptions setTimeout(double timeout) { this.timeout = timeout; @@ -371,233 +485,304 @@ class LaunchPersistentContextOptions { /** * Whether to automatically download all the attachments. Defaults to {@code true} where all the downloads are accepted. */ - public Boolean acceptDownloads; + public @Nullable Boolean acceptDownloads; /** - * Additional arguments to pass to the browser instance. The list of Chromium flags can be found here. + * NOTE: Use custom browser args at your own risk, as some of them may break Playwright functionality. + * + *

      Additional arguments to pass to the browser instance. The list of Chromium flags can be found here. */ - public List args; + public @Nullable List args; /** - * When using {@link Page#navigate Page.navigate()}, {@link Page#route Page.route()}, {@link Page#waitForURL - * Page.waitForURL()}, {@link Page#waitForRequest Page.waitForRequest()}, or {@link Page#waitForResponse - * Page.waitForResponse()} it takes the base URL in consideration by using the {@code URL()} constructor for building the corresponding - * URL. Examples: + * If specified, artifacts (traces, videos, downloads, HAR files, etc.) are saved into this directory. The directory is not + * cleaned up when the browser closes. If not specified, a temporary directory is used and cleaned up when the browser + * closes. + */ + public @Nullable Path artifactsDir; + /** + * When using {@link com.microsoft.playwright.Page#navigate Page.navigate()}, {@link com.microsoft.playwright.Page#route + * Page.route()}, {@link com.microsoft.playwright.Page#waitForURL Page.waitForURL()}, {@link + * com.microsoft.playwright.Page#waitForRequest Page.waitForRequest()}, or {@link + * com.microsoft.playwright.Page#waitForResponse Page.waitForResponse()} it takes the base URL in consideration by using + * the {@code URL()} constructor for building the + * corresponding URL. Unset by default. Examples: *

        - *
      • baseURL: {@code http://localhost:3000} and navigating to {@code /bar.html} results in {@code http://localhost:3000/bar.html}
      • - *
      • baseURL: {@code http://localhost:3000/foo/} and navigating to {@code ./bar.html} results in {@code http://localhost:3000/foo/bar.html}
      • + *
      • baseURL: {@code http://localhost:3000} and navigating to {@code /bar.html} results in {@code + * http://localhost:3000/bar.html}
      • + *
      • baseURL: {@code http://localhost:3000/foo/} and navigating to {@code ./bar.html} results in {@code + * http://localhost:3000/foo/bar.html}
      • *
      • baseURL: {@code http://localhost:3000/foo} (without trailing slash) and navigating to {@code ./bar.html} results in * {@code http://localhost:3000/bar.html}
      • *
      */ - public String baseURL; + public @Nullable String baseURL; /** - * Toggles bypassing page's Content-Security-Policy. + * Toggles bypassing page's Content-Security-Policy. Defaults to {@code false}. */ - public Boolean bypassCSP; + public @Nullable Boolean bypassCSP; /** - * Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", - * "msedge-beta", "msedge-dev", "msedge-canary". Read more about using Google Chrome and Microsoft Edge. + * Browser distribution channel. + * + *

      Use "chromium" to opt in to new headless + * mode. + * + *

      Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or "msedge-canary" to + * use branded Google Chrome and + * Microsoft Edge. */ - public Object channel; + public @Nullable Object channel; /** * Enable Chromium sandboxing. Defaults to {@code false}. */ - public Boolean chromiumSandbox; + public @Nullable Boolean chromiumSandbox; /** - * Emulates {@code "prefers-colors-scheme"} media feature, supported values are {@code "light"}, {@code "dark"}, {@code "no-preference"}. See - * {@link Page#emulateMedia Page.emulateMedia()} for more details. Defaults to {@code "light"}. + * TLS Client Authentication allows the server to request a client certificate and verify it. + * + *

      Details + * + *

      An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code + * keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or + * {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code + * origin} property should be provided with an exact match to the request origin that the certificate is valid for. + * + *

      Client certificate authentication is only active when at least one client certificate is provided. If you want to reject + * all client certificates sent by the server, you need to provide a client certificate with an {@code origin} that does + * not match any of the domains you plan to visit. + * + *

      NOTE: When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by + * replacing {@code localhost} with {@code local.playwright}. */ - public ColorScheme colorScheme; + public @Nullable List clientCertificates; /** - * Specify device scale factor (can be thought of as dpr). Defaults to {@code 1}. + * Emulates prefers-colors-scheme media + * feature, supported values are {@code "light"} and {@code "dark"}. See {@link com.microsoft.playwright.Page#emulateMedia + * Page.emulateMedia()} for more details. Passing {@code null} resets emulation to system defaults. Defaults to {@code + * "light"}. */ - public Double deviceScaleFactor; + public @Nullable Optional colorScheme; /** - * **Chromium-only** Whether to auto-open a Developer Tools panel for each tab. If this option is {@code true}, the {@code headless} - * option will be set {@code false}. + * Emulates {@code "prefers-contrast"} media feature, supported values are {@code "no-preference"}, {@code "more"}. See + * {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets + * emulation to system defaults. Defaults to {@code "no-preference"}. */ - public Boolean devtools; + public @Nullable Optional contrast; + /** + * Specify device scale factor (can be thought of as dpr). Defaults to {@code 1}. Learn more about emulating devices with device scale factor. + */ + public @Nullable Double deviceScaleFactor; /** * If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is * deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in * is closed. */ - public Path downloadsPath; + public @Nullable Path downloadsPath; /** * Specify environment variables that will be visible to the browser. Defaults to {@code process.env}. */ - public Map env; + public @Nullable Map env; /** * Path to a browser executable to run instead of the bundled one. If {@code executablePath} is a relative path, then it is * resolved relative to the current working directory. Note that Playwright only works with the bundled Chromium, Firefox * or WebKit, use at your own risk. */ - public Path executablePath; + public @Nullable Path executablePath; + /** + * An object containing additional HTTP headers to be sent with every request. Defaults to none. + */ + public @Nullable Map extraHTTPHeaders; /** - * An object containing additional HTTP headers to be sent with every request. + * Firefox user preferences. Learn more about the Firefox user preferences at {@code about:config}. + * + *

      You can also provide a path to a custom {@code policies.json} + * file via {@code PLAYWRIGHT_FIREFOX_POLICIES_JSON} environment variable. */ - public Map extraHTTPHeaders; + public @Nullable Map firefoxUserPrefs; /** - * Emulates {@code "forced-colors"} media feature, supported values are {@code "active"}, {@code "none"}. See {@link Page#emulateMedia - * Page.emulateMedia()} for more details. Defaults to {@code "none"}. + * Emulates {@code "forced-colors"} media feature, supported values are {@code "active"}, {@code "none"}. See {@link + * com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets emulation + * to system defaults. Defaults to {@code "none"}. */ - public ForcedColors forcedColors; - public Geolocation geolocation; + public @Nullable Optional forcedColors; + public @Nullable Geolocation geolocation; /** * Close the browser process on SIGHUP. Defaults to {@code true}. */ - public Boolean handleSIGHUP; + public @Nullable Boolean handleSIGHUP; /** * Close the browser process on Ctrl-C. Defaults to {@code true}. */ - public Boolean handleSIGINT; + public @Nullable Boolean handleSIGINT; /** * Close the browser process on SIGTERM. Defaults to {@code true}. */ - public Boolean handleSIGTERM; + public @Nullable Boolean handleSIGTERM; /** - * Specifies if viewport supports touch events. Defaults to false. + * Specifies if viewport supports touch events. Defaults to false. Learn more about mobile emulation. */ - public Boolean hasTouch; + public @Nullable Boolean hasTouch; /** * Whether to run browser in headless mode. More details for Chromium and Firefox. Defaults to {@code true} unless the - * {@code devtools} option is {@code true}. + * href="https://hacks.mozilla.org/2017/12/using-headless-mode-in-firefox/">Firefox. Defaults to {@code true}. */ - public Boolean headless; + public @Nullable Boolean headless; /** - * Credentials for HTTP authentication. + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

      Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. */ - public HttpCredentials httpCredentials; + public @Nullable Object httpCredentials; /** - * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. Dangerous option; - * use with care. Defaults to {@code false}. + * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. + * Dangerous option; use with care. Defaults to {@code false}. */ - public Boolean ignoreAllDefaultArgs; + public @Nullable Boolean ignoreAllDefaultArgs; /** - * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. Dangerous option; - * use with care. + * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. + * Dangerous option; use with care. */ - public List ignoreDefaultArgs; + public @Nullable List ignoreDefaultArgs; /** * Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}. */ - public Boolean ignoreHTTPSErrors; + public @Nullable Boolean ignoreHTTPSErrors; /** - * Whether the {@code meta viewport} tag is taken into account and touch events are enabled. Defaults to {@code false}. Not supported - * in Firefox. + * Whether the {@code meta viewport} tag is taken into account and touch events are enabled. isMobile is a part of device, + * so you don't actually need to set it manually. Defaults to {@code false}. Learn more about mobile emulation. */ - public Boolean isMobile; + public @Nullable Boolean isMobile; /** - * Whether or not to enable JavaScript in the context. Defaults to {@code true}. + * Whether or not to enable JavaScript in the context. Defaults to {@code true}. Learn more about disabling JavaScript. */ - public Boolean javaScriptEnabled; + public @Nullable Boolean javaScriptEnabled; /** - * Specify user locale, for example {@code en-GB}, {@code de-DE}, etc. Locale will affect {@code navigator.language} value, {@code Accept-Language} - * request header value as well as number and date formatting rules. + * Specify user locale, for example {@code en-GB}, {@code de-DE}, etc. Locale will affect {@code navigator.language} value, + * {@code Accept-Language} request header value as well as number and date formatting rules. Defaults to the system default + * locale. Learn more about emulation in our emulation guide. */ - public String locale; + public @Nullable String locale; /** - * Whether to emulate network being offline. Defaults to {@code false}. + * Whether to emulate network being offline. Defaults to {@code false}. Learn more about network emulation. */ - public Boolean offline; + public @Nullable Boolean offline; /** - * A list of permissions to grant to all pages in this context. See {@link BrowserContext#grantPermissions - * BrowserContext.grantPermissions()} for more details. + * A list of permissions to grant to all pages in this context. See {@link + * com.microsoft.playwright.BrowserContext#grantPermissions BrowserContext.grantPermissions()} for more details. Defaults + * to none. */ - public List permissions; + public @Nullable List permissions; /** * Network proxy settings. */ - public Proxy proxy; + public @Nullable Proxy proxy; /** - * Optional setting to control resource content management. If {@code omit} is specified, content is not persisted. If {@code attach} - * is specified, resources are persistet as separate files and all of these files are archived along with the HAR file. - * Defaults to {@code embed}, which stores content inline the HAR file as per HAR specification. + * Optional setting to control resource content management. If {@code omit} is specified, content is not persisted. If + * {@code attach} is specified, resources are persisted as separate files and all of these files are archived along with + * the HAR file. Defaults to {@code embed}, which stores content inline the HAR file as per HAR specification. */ - public HarContentPolicy recordHarContent; + public @Nullable HarContentPolicy recordHarContent; /** - * When set to {@code minimal}, only record information necessary for routing from HAR. This omits sizes, timing, page, cookies, - * security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code full}. + * When set to {@code minimal}, only record information necessary for routing from HAR. This omits sizes, timing, page, + * cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code + * full}. */ - public HarMode recordHarMode; + public @Nullable HarMode recordHarMode; /** * Optional setting to control whether to omit request content from the HAR. Defaults to {@code false}. */ - public Boolean recordHarOmitContent; + public @Nullable Boolean recordHarOmitContent; /** * Enables HAR recording for all pages into the specified HAR - * file on the filesystem. If not specified, the HAR is not recorded. Make sure to call {@link BrowserContext#close - * BrowserContext.close()} for the HAR to be saved. + * file on the filesystem. If not specified, the HAR is not recorded. Make sure to call {@link + * com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for the HAR to be saved. */ - public Path recordHarPath; - public Object recordHarUrlFilter; + public @Nullable Path recordHarPath; + public @Nullable Object recordHarUrlFilter; /** * Enables video recording for all pages into the specified directory. If not specified videos are not recorded. Make sure - * to call {@link BrowserContext#close BrowserContext.close()} for videos to be saved. + * to call {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for videos to be saved. */ - public Path recordVideoDir; + public @Nullable Path recordVideoDir; + /** + * Frame rate of the recorded videos in frames per second. Defaults to {@code 25}. Firefox and WebKit currently capture up + * to 25 frames per second. + */ + public @Nullable Integer recordVideoFps; /** * Dimensions of the recorded videos. If not specified the size will be equal to {@code viewport} scaled down to fit into - * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each page will - * be scaled down if necessary to fit the specified size. + * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each + * page will be scaled down if necessary to fit the specified size. */ - public RecordVideoSize recordVideoSize; + public @Nullable RecordVideoSize recordVideoSize; /** - * Emulates {@code "prefers-reduced-motion"} media feature, supported values are {@code "reduce"}, {@code "no-preference"}. See {@link - * Page#emulateMedia Page.emulateMedia()} for more details. Defaults to {@code "no-preference"}. + * Emulates {@code "prefers-reduced-motion"} media feature, supported values are {@code "reduce"}, {@code "no-preference"}. + * See {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets + * emulation to system defaults. Defaults to {@code "no-preference"}. */ - public ReducedMotion reducedMotion; + public @Nullable Optional reducedMotion; /** - * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code viewport} - * is set. + * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code + * viewport} is set. */ - public ScreenSize screenSize; + public @Nullable ScreenSize screenSize; /** * Whether to allow sites to register Service workers. Defaults to {@code "allow"}. *

        - *
      • {@code "allow"}: Service Workers can be - * registered.
      • + *
      • {@code "allow"}: Service Workers can + * be registered.
      • *
      • {@code "block"}: Playwright will block all registration of Service Workers.
      • *
      */ - public ServiceWorkerPolicy serviceWorkers; + public @Nullable ServiceWorkerPolicy serviceWorkers; /** * Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. */ - public Double slowMo; + public @Nullable Double slowMo; /** - * If specified, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors - * that imply single target DOM element will throw when more than one element matches the selector. See {@code Locator} to learn - * more about the strict mode. + * If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors + * that imply single target DOM element will throw when more than one element matches the selector. This option does not + * affect any Locator APIs (Locators are always strict). Defaults to {@code false}. See {@code Locator} to learn more about + * the strict mode. */ - public Boolean strictSelectors; + public @Nullable Boolean strictSelectors; /** - * Maximum time in milliseconds to wait for the browser instance to start. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to - * disable timeout. + * Maximum time in milliseconds to wait for the browser instance to start. Defaults to {@code 180000} (3 minutes). Pass + * {@code 0} to disable timeout. */ - public Double timeout; + public @Nullable Double timeout; /** * Changes the timezone of the context. See ICU's - * metaZones.txt for a list of supported timezone IDs. + * metaZones.txt for a list of supported timezone IDs. Defaults to the system timezone. */ - public String timezoneId; + public @Nullable String timezoneId; /** * If specified, traces are saved into this directory. */ - public Path tracesDir; + public @Nullable Path tracesDir; /** * Specific user agent to use in this context. */ - public String userAgent; + public @Nullable String userAgent; /** - * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. {@code null} disables the default viewport. + * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. Use {@code null} to disable the consistent + * viewport emulation. Learn more about viewport + * emulation. + * + *

      NOTE: The {@code null} value opts out from the default presets, makes viewport depend on the host window size defined by the + * operating system. It makes the execution of the tests non-deterministic. */ - public Optional viewportSize; + public @Nullable Optional viewportSize; /** * Whether to automatically download all the attachments. Defaults to {@code true} where all the downloads are accepted. @@ -607,22 +792,36 @@ public LaunchPersistentContextOptions setAcceptDownloads(boolean acceptDownloads return this; } /** - * Additional arguments to pass to the browser instance. The list of Chromium flags can be found here. + * NOTE: Use custom browser args at your own risk, as some of them may break Playwright functionality. + * + *

      Additional arguments to pass to the browser instance. The list of Chromium flags can be found here. */ public LaunchPersistentContextOptions setArgs(List args) { this.args = args; return this; } /** - * When using {@link Page#navigate Page.navigate()}, {@link Page#route Page.route()}, {@link Page#waitForURL - * Page.waitForURL()}, {@link Page#waitForRequest Page.waitForRequest()}, or {@link Page#waitForResponse - * Page.waitForResponse()} it takes the base URL in consideration by using the {@code URL()} constructor for building the corresponding - * URL. Examples: + * If specified, artifacts (traces, videos, downloads, HAR files, etc.) are saved into this directory. The directory is not + * cleaned up when the browser closes. If not specified, a temporary directory is used and cleaned up when the browser + * closes. + */ + public LaunchPersistentContextOptions setArtifactsDir(Path artifactsDir) { + this.artifactsDir = artifactsDir; + return this; + } + /** + * When using {@link com.microsoft.playwright.Page#navigate Page.navigate()}, {@link com.microsoft.playwright.Page#route + * Page.route()}, {@link com.microsoft.playwright.Page#waitForURL Page.waitForURL()}, {@link + * com.microsoft.playwright.Page#waitForRequest Page.waitForRequest()}, or {@link + * com.microsoft.playwright.Page#waitForResponse Page.waitForResponse()} it takes the base URL in consideration by using + * the {@code URL()} constructor for building the + * corresponding URL. Unset by default. Examples: *

        - *
      • baseURL: {@code http://localhost:3000} and navigating to {@code /bar.html} results in {@code http://localhost:3000/bar.html}
      • - *
      • baseURL: {@code http://localhost:3000/foo/} and navigating to {@code ./bar.html} results in {@code http://localhost:3000/foo/bar.html}
      • + *
      • baseURL: {@code http://localhost:3000} and navigating to {@code /bar.html} results in {@code + * http://localhost:3000/bar.html}
      • + *
      • baseURL: {@code http://localhost:3000/foo/} and navigating to {@code ./bar.html} results in {@code + * http://localhost:3000/foo/bar.html}
      • *
      • baseURL: {@code http://localhost:3000/foo} (without trailing slash) and navigating to {@code ./bar.html} results in * {@code http://localhost:3000/bar.html}
      • *
      @@ -632,7 +831,7 @@ public LaunchPersistentContextOptions setBaseURL(String baseURL) { return this; } /** - * Toggles bypassing page's Content-Security-Policy. + * Toggles bypassing page's Content-Security-Policy. Defaults to {@code false}. */ public LaunchPersistentContextOptions setBypassCSP(boolean bypassCSP) { this.bypassCSP = bypassCSP; @@ -640,18 +839,28 @@ public LaunchPersistentContextOptions setBypassCSP(boolean bypassCSP) { } @Deprecated /** - * Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", - * "msedge-beta", "msedge-dev", "msedge-canary". Read more about using Google Chrome and Microsoft Edge. + * Browser distribution channel. + * + *

      Use "chromium" to opt in to new headless + * mode. + * + *

      Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or "msedge-canary" to + * use branded Google Chrome and + * Microsoft Edge. */ public LaunchPersistentContextOptions setChannel(BrowserChannel channel) { this.channel = channel; return this; } /** - * Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", - * "msedge-beta", "msedge-dev", "msedge-canary". Read more about using Google Chrome and Microsoft Edge. + * Browser distribution channel. + * + *

      Use "chromium" to opt in to new headless + * mode. + * + *

      Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or "msedge-canary" to + * use branded Google Chrome and + * Microsoft Edge. */ public LaunchPersistentContextOptions setChannel(String channel) { this.channel = channel; @@ -665,26 +874,52 @@ public LaunchPersistentContextOptions setChromiumSandbox(boolean chromiumSandbox return this; } /** - * Emulates {@code "prefers-colors-scheme"} media feature, supported values are {@code "light"}, {@code "dark"}, {@code "no-preference"}. See - * {@link Page#emulateMedia Page.emulateMedia()} for more details. Defaults to {@code "light"}. + * TLS Client Authentication allows the server to request a client certificate and verify it. + * + *

      Details + * + *

      An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code + * keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or + * {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code + * origin} property should be provided with an exact match to the request origin that the certificate is valid for. + * + *

      Client certificate authentication is only active when at least one client certificate is provided. If you want to reject + * all client certificates sent by the server, you need to provide a client certificate with an {@code origin} that does + * not match any of the domains you plan to visit. + * + *

      NOTE: When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by + * replacing {@code localhost} with {@code local.playwright}. */ - public LaunchPersistentContextOptions setColorScheme(ColorScheme colorScheme) { - this.colorScheme = colorScheme; + public LaunchPersistentContextOptions setClientCertificates(List clientCertificates) { + this.clientCertificates = clientCertificates; return this; } /** - * Specify device scale factor (can be thought of as dpr). Defaults to {@code 1}. + * Emulates prefers-colors-scheme media + * feature, supported values are {@code "light"} and {@code "dark"}. See {@link com.microsoft.playwright.Page#emulateMedia + * Page.emulateMedia()} for more details. Passing {@code null} resets emulation to system defaults. Defaults to {@code + * "light"}. */ - public LaunchPersistentContextOptions setDeviceScaleFactor(double deviceScaleFactor) { - this.deviceScaleFactor = deviceScaleFactor; + public LaunchPersistentContextOptions setColorScheme(@Nullable ColorScheme colorScheme) { + this.colorScheme = Optional.ofNullable(colorScheme); + return this; + } + /** + * Emulates {@code "prefers-contrast"} media feature, supported values are {@code "no-preference"}, {@code "more"}. See + * {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets + * emulation to system defaults. Defaults to {@code "no-preference"}. + */ + public LaunchPersistentContextOptions setContrast(@Nullable Contrast contrast) { + this.contrast = Optional.ofNullable(contrast); return this; } /** - * **Chromium-only** Whether to auto-open a Developer Tools panel for each tab. If this option is {@code true}, the {@code headless} - * option will be set {@code false}. + * Specify device scale factor (can be thought of as dpr). Defaults to {@code 1}. Learn more about emulating devices with device scale factor. */ - public LaunchPersistentContextOptions setDevtools(boolean devtools) { - this.devtools = devtools; + public LaunchPersistentContextOptions setDeviceScaleFactor(double deviceScaleFactor) { + this.deviceScaleFactor = deviceScaleFactor; return this; } /** @@ -713,18 +948,30 @@ public LaunchPersistentContextOptions setExecutablePath(Path executablePath) { return this; } /** - * An object containing additional HTTP headers to be sent with every request. + * An object containing additional HTTP headers to be sent with every request. Defaults to none. */ public LaunchPersistentContextOptions setExtraHTTPHeaders(Map extraHTTPHeaders) { this.extraHTTPHeaders = extraHTTPHeaders; return this; } /** - * Emulates {@code "forced-colors"} media feature, supported values are {@code "active"}, {@code "none"}. See {@link Page#emulateMedia - * Page.emulateMedia()} for more details. Defaults to {@code "none"}. + * Firefox user preferences. Learn more about the Firefox user preferences at {@code about:config}. + * + *

      You can also provide a path to a custom {@code policies.json} + * file via {@code PLAYWRIGHT_FIREFOX_POLICIES_JSON} environment variable. */ - public LaunchPersistentContextOptions setForcedColors(ForcedColors forcedColors) { - this.forcedColors = forcedColors; + public LaunchPersistentContextOptions setFirefoxUserPrefs(Map firefoxUserPrefs) { + this.firefoxUserPrefs = firefoxUserPrefs; + return this; + } + /** + * Emulates {@code "forced-colors"} media feature, supported values are {@code "active"}, {@code "none"}. See {@link + * com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets emulation + * to system defaults. Defaults to {@code "none"}. + */ + public LaunchPersistentContextOptions setForcedColors(@Nullable ForcedColors forcedColors) { + this.forcedColors = Optional.ofNullable(forcedColors); return this; } public LaunchPersistentContextOptions setGeolocation(double latitude, double longitude) { @@ -756,7 +1003,8 @@ public LaunchPersistentContextOptions setHandleSIGTERM(boolean handleSIGTERM) { return this; } /** - * Specifies if viewport supports touch events. Defaults to false. + * Specifies if viewport supports touch events. Defaults to false. Learn more about mobile emulation. */ public LaunchPersistentContextOptions setHasTouch(boolean hasTouch) { this.hasTouch = hasTouch; @@ -765,37 +1013,55 @@ public LaunchPersistentContextOptions setHasTouch(boolean hasTouch) { /** * Whether to run browser in headless mode. More details for Chromium and Firefox. Defaults to {@code true} unless the - * {@code devtools} option is {@code true}. + * href="https://hacks.mozilla.org/2017/12/using-headless-mode-in-firefox/">Firefox. Defaults to {@code true}. */ public LaunchPersistentContextOptions setHeadless(boolean headless) { this.headless = headless; return this; } /** - * Credentials for HTTP authentication. + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

      Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. */ public LaunchPersistentContextOptions setHttpCredentials(String username, String password) { return setHttpCredentials(new HttpCredentials(username, password)); } /** - * Credentials for HTTP authentication. + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

      Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. */ public LaunchPersistentContextOptions setHttpCredentials(HttpCredentials httpCredentials) { this.httpCredentials = httpCredentials; return this; } /** - * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. Dangerous option; - * use with care. Defaults to {@code false}. + * Credentials for HTTP authentication. If + * no origin is specified, the username and password are sent to any servers upon unauthorized responses. + * + *

      Pass an array to use different credentials for different origins. The first entry that matches the request origin is + * used, and entries with no origin match any request. + */ + public LaunchPersistentContextOptions setHttpCredentials(List httpCredentials) { + this.httpCredentials = httpCredentials; + return this; + } + /** + * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. + * Dangerous option; use with care. Defaults to {@code false}. */ public LaunchPersistentContextOptions setIgnoreAllDefaultArgs(boolean ignoreAllDefaultArgs) { this.ignoreAllDefaultArgs = ignoreAllDefaultArgs; return this; } /** - * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. Dangerous option; - * use with care. + * If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}. + * Dangerous option; use with care. */ public LaunchPersistentContextOptions setIgnoreDefaultArgs(List ignoreDefaultArgs) { this.ignoreDefaultArgs = ignoreDefaultArgs; @@ -809,38 +1075,44 @@ public LaunchPersistentContextOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSEr return this; } /** - * Whether the {@code meta viewport} tag is taken into account and touch events are enabled. Defaults to {@code false}. Not supported - * in Firefox. + * Whether the {@code meta viewport} tag is taken into account and touch events are enabled. isMobile is a part of device, + * so you don't actually need to set it manually. Defaults to {@code false}. Learn more about mobile emulation. */ public LaunchPersistentContextOptions setIsMobile(boolean isMobile) { this.isMobile = isMobile; return this; } /** - * Whether or not to enable JavaScript in the context. Defaults to {@code true}. + * Whether or not to enable JavaScript in the context. Defaults to {@code true}. Learn more about disabling JavaScript. */ public LaunchPersistentContextOptions setJavaScriptEnabled(boolean javaScriptEnabled) { this.javaScriptEnabled = javaScriptEnabled; return this; } /** - * Specify user locale, for example {@code en-GB}, {@code de-DE}, etc. Locale will affect {@code navigator.language} value, {@code Accept-Language} - * request header value as well as number and date formatting rules. + * Specify user locale, for example {@code en-GB}, {@code de-DE}, etc. Locale will affect {@code navigator.language} value, + * {@code Accept-Language} request header value as well as number and date formatting rules. Defaults to the system default + * locale. Learn more about emulation in our emulation guide. */ public LaunchPersistentContextOptions setLocale(String locale) { this.locale = locale; return this; } /** - * Whether to emulate network being offline. Defaults to {@code false}. + * Whether to emulate network being offline. Defaults to {@code false}. Learn more about network emulation. */ public LaunchPersistentContextOptions setOffline(boolean offline) { this.offline = offline; return this; } /** - * A list of permissions to grant to all pages in this context. See {@link BrowserContext#grantPermissions - * BrowserContext.grantPermissions()} for more details. + * A list of permissions to grant to all pages in this context. See {@link + * com.microsoft.playwright.BrowserContext#grantPermissions BrowserContext.grantPermissions()} for more details. Defaults + * to none. */ public LaunchPersistentContextOptions setPermissions(List permissions) { this.permissions = permissions; @@ -860,17 +1132,18 @@ public LaunchPersistentContextOptions setProxy(Proxy proxy) { return this; } /** - * Optional setting to control resource content management. If {@code omit} is specified, content is not persisted. If {@code attach} - * is specified, resources are persistet as separate files and all of these files are archived along with the HAR file. - * Defaults to {@code embed}, which stores content inline the HAR file as per HAR specification. + * Optional setting to control resource content management. If {@code omit} is specified, content is not persisted. If + * {@code attach} is specified, resources are persisted as separate files and all of these files are archived along with + * the HAR file. Defaults to {@code embed}, which stores content inline the HAR file as per HAR specification. */ public LaunchPersistentContextOptions setRecordHarContent(HarContentPolicy recordHarContent) { this.recordHarContent = recordHarContent; return this; } /** - * When set to {@code minimal}, only record information necessary for routing from HAR. This omits sizes, timing, page, cookies, - * security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code full}. + * When set to {@code minimal}, only record information necessary for routing from HAR. This omits sizes, timing, page, + * cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code + * full}. */ public LaunchPersistentContextOptions setRecordHarMode(HarMode recordHarMode) { this.recordHarMode = recordHarMode; @@ -885,8 +1158,8 @@ public LaunchPersistentContextOptions setRecordHarOmitContent(boolean recordHarO } /** * Enables HAR recording for all pages into the specified HAR - * file on the filesystem. If not specified, the HAR is not recorded. Make sure to call {@link BrowserContext#close - * BrowserContext.close()} for the HAR to be saved. + * file on the filesystem. If not specified, the HAR is not recorded. Make sure to call {@link + * com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for the HAR to be saved. */ public LaunchPersistentContextOptions setRecordHarPath(Path recordHarPath) { this.recordHarPath = recordHarPath; @@ -902,47 +1175,56 @@ public LaunchPersistentContextOptions setRecordHarUrlFilter(Pattern recordHarUrl } /** * Enables video recording for all pages into the specified directory. If not specified videos are not recorded. Make sure - * to call {@link BrowserContext#close BrowserContext.close()} for videos to be saved. + * to call {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for videos to be saved. */ public LaunchPersistentContextOptions setRecordVideoDir(Path recordVideoDir) { this.recordVideoDir = recordVideoDir; return this; } + /** + * Frame rate of the recorded videos in frames per second. Defaults to {@code 25}. Firefox and WebKit currently capture up + * to 25 frames per second. + */ + public LaunchPersistentContextOptions setRecordVideoFps(int recordVideoFps) { + this.recordVideoFps = recordVideoFps; + return this; + } /** * Dimensions of the recorded videos. If not specified the size will be equal to {@code viewport} scaled down to fit into - * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each page will - * be scaled down if necessary to fit the specified size. + * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each + * page will be scaled down if necessary to fit the specified size. */ public LaunchPersistentContextOptions setRecordVideoSize(int width, int height) { return setRecordVideoSize(new RecordVideoSize(width, height)); } /** * Dimensions of the recorded videos. If not specified the size will be equal to {@code viewport} scaled down to fit into - * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each page will - * be scaled down if necessary to fit the specified size. + * 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each + * page will be scaled down if necessary to fit the specified size. */ public LaunchPersistentContextOptions setRecordVideoSize(RecordVideoSize recordVideoSize) { this.recordVideoSize = recordVideoSize; return this; } /** - * Emulates {@code "prefers-reduced-motion"} media feature, supported values are {@code "reduce"}, {@code "no-preference"}. See {@link - * Page#emulateMedia Page.emulateMedia()} for more details. Defaults to {@code "no-preference"}. + * Emulates {@code "prefers-reduced-motion"} media feature, supported values are {@code "reduce"}, {@code "no-preference"}. + * See {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing {@code null} resets + * emulation to system defaults. Defaults to {@code "no-preference"}. */ - public LaunchPersistentContextOptions setReducedMotion(ReducedMotion reducedMotion) { - this.reducedMotion = reducedMotion; + public LaunchPersistentContextOptions setReducedMotion(@Nullable ReducedMotion reducedMotion) { + this.reducedMotion = Optional.ofNullable(reducedMotion); return this; } /** - * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code viewport} - * is set. + * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code + * viewport} is set. */ public LaunchPersistentContextOptions setScreenSize(int width, int height) { return setScreenSize(new ScreenSize(width, height)); } /** - * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code viewport} - * is set. + * Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code + * viewport} is set. */ public LaunchPersistentContextOptions setScreenSize(ScreenSize screenSize) { this.screenSize = screenSize; @@ -951,8 +1233,8 @@ public LaunchPersistentContextOptions setScreenSize(ScreenSize screenSize) { /** * Whether to allow sites to register Service workers. Defaults to {@code "allow"}. *

        - *
      • {@code "allow"}: Service Workers can be - * registered.
      • + *
      • {@code "allow"}: Service Workers can + * be registered.
      • *
      • {@code "block"}: Playwright will block all registration of Service Workers.
      • *
      */ @@ -968,17 +1250,18 @@ public LaunchPersistentContextOptions setSlowMo(double slowMo) { return this; } /** - * If specified, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors - * that imply single target DOM element will throw when more than one element matches the selector. See {@code Locator} to learn - * more about the strict mode. + * If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors + * that imply single target DOM element will throw when more than one element matches the selector. This option does not + * affect any Locator APIs (Locators are always strict). Defaults to {@code false}. See {@code Locator} to learn more about + * the strict mode. */ public LaunchPersistentContextOptions setStrictSelectors(boolean strictSelectors) { this.strictSelectors = strictSelectors; return this; } /** - * Maximum time in milliseconds to wait for the browser instance to start. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to - * disable timeout. + * Maximum time in milliseconds to wait for the browser instance to start. Defaults to {@code 180000} (3 minutes). Pass + * {@code 0} to disable timeout. */ public LaunchPersistentContextOptions setTimeout(double timeout) { this.timeout = timeout; @@ -987,7 +1270,7 @@ public LaunchPersistentContextOptions setTimeout(double timeout) { /** * Changes the timezone of the context. See ICU's - * metaZones.txt for a list of supported timezone IDs. + * metaZones.txt for a list of supported timezone IDs. Defaults to the system timezone. */ public LaunchPersistentContextOptions setTimezoneId(String timezoneId) { this.timezoneId = timezoneId; @@ -1008,51 +1291,81 @@ public LaunchPersistentContextOptions setUserAgent(String userAgent) { return this; } /** - * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. {@code null} disables the default viewport. + * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. Use {@code null} to disable the consistent + * viewport emulation. Learn more about viewport + * emulation. + * + *

      NOTE: The {@code null} value opts out from the default presets, makes viewport depend on the host window size defined by the + * operating system. It makes the execution of the tests non-deterministic. */ public LaunchPersistentContextOptions setViewportSize(int width, int height) { return setViewportSize(new ViewportSize(width, height)); } /** - * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. {@code null} disables the default viewport. + * Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. Use {@code null} to disable the consistent + * viewport emulation. Learn more about viewport + * emulation. + * + *

      NOTE: The {@code null} value opts out from the default presets, makes viewport depend on the host window size defined by the + * operating system. It makes the execution of the tests non-deterministic. */ - public LaunchPersistentContextOptions setViewportSize(ViewportSize viewportSize) { + public LaunchPersistentContextOptions setViewportSize(@Nullable ViewportSize viewportSize) { this.viewportSize = Optional.ofNullable(viewportSize); return this; } } /** - * This method attaches Playwright to an existing browser instance. When connecting to another browser launched via - * {@code BrowserType.launchServer} in Node.js, the major and minor version needs to match the client version (1.2.3 → is - * compatible with 1.2.x). + * This method attaches Playwright to an existing browser instance created via {@code BrowserType.launchServer} in Node.js. + * + *

      NOTE: The major and minor version of the Playwright instance that connects needs to match the version of Playwright that + * launches the browser (1.2.3 → is compatible with 1.2.x). * - * @param wsEndpoint A browser websocket endpoint to connect to. + * @param endpoint A Playwright browser websocket endpoint to connect to. You obtain this endpoint via {@code BrowserServer.wsEndpoint}. + * @since v1.8 */ - default Browser connect(String wsEndpoint) { - return connect(wsEndpoint, null); + default Browser connect(String endpoint) { + return connect(endpoint, null); } /** - * This method attaches Playwright to an existing browser instance. When connecting to another browser launched via - * {@code BrowserType.launchServer} in Node.js, the major and minor version needs to match the client version (1.2.3 → is - * compatible with 1.2.x). + * This method attaches Playwright to an existing browser instance created via {@code BrowserType.launchServer} in Node.js. + * + *

      NOTE: The major and minor version of the Playwright instance that connects needs to match the version of Playwright that + * launches the browser (1.2.3 → is compatible with 1.2.x). * - * @param wsEndpoint A browser websocket endpoint to connect to. + * @param endpoint A Playwright browser websocket endpoint to connect to. You obtain this endpoint via {@code BrowserServer.wsEndpoint}. + * @since v1.8 */ - Browser connect(String wsEndpoint, ConnectOptions options); + Browser connect(String endpoint, @Nullable ConnectOptions options); /** * This method attaches Playwright to an existing browser instance using the Chrome DevTools Protocol. * - *

      The default browser context is accessible via {@link Browser#contexts Browser.contexts()}. + *

      The default browser context is accessible via {@link com.microsoft.playwright.Browser#contexts Browser.contexts()}. * *

      NOTE: Connecting over the Chrome DevTools Protocol is only supported for Chromium-based browsers. + * + *

      NOTE: This connection is significantly lower fidelity than the Playwright protocol connection via {@link + * com.microsoft.playwright.BrowserType#connect BrowserType.connect()}. If you are experiencing issues or attempting to use + * advanced functionality, you probably want to use {@link com.microsoft.playwright.BrowserType#connect + * BrowserType.connect()}. + * + *

      NOTE: Playwright maintains a curated list of arguments for launching the browser. If you launch the browser without Playwright + * and do not pass the exact same arguments, some of Playwright functionality may be broken upon connecting to the browser. + * + *

      Usage *

      {@code
          * Browser browser = playwright.chromium().connectOverCDP("http://localhost:9222");
          * BrowserContext defaultContext = browser.contexts().get(0);
          * Page page = defaultContext.pages().get(0);
          * }
      * - * @param endpointURL A CDP websocket endpoint or http url to connect to. For example {@code http://localhost:9222/} or - * {@code ws://127.0.0.1:9222/devtools/browser/387adf4c-243f-4051-a181-46798f4a46f4}. + * @param endpointURL A CDP websocket endpoint or http url to connect to. For example {@code http://localhost:9222/} or {@code + * ws://127.0.0.1:9222/devtools/browser/387adf4c-243f-4051-a181-46798f4a46f4}. + * + *

      Alternatively, a browser channel name such as {@code chrome} or {@code msedge} to connect to a browser with remote + * debugging enabled in its default user data directory. On Linux, Playwright uses {@code CHROME_USER_DATA_DIR} when set. + * Otherwise, it uses {@code CHROME_CONFIG_HOME}, then {@code XDG_CONFIG_HOME}, then {@code ~/.config} to locate that + * directory. + * @since v1.9 */ default Browser connectOverCDP(String endpointURL) { return connectOverCDP(endpointURL, null); @@ -1060,26 +1373,46 @@ default Browser connectOverCDP(String endpointURL) { /** * This method attaches Playwright to an existing browser instance using the Chrome DevTools Protocol. * - *

      The default browser context is accessible via {@link Browser#contexts Browser.contexts()}. + *

      The default browser context is accessible via {@link com.microsoft.playwright.Browser#contexts Browser.contexts()}. * *

      NOTE: Connecting over the Chrome DevTools Protocol is only supported for Chromium-based browsers. + * + *

      NOTE: This connection is significantly lower fidelity than the Playwright protocol connection via {@link + * com.microsoft.playwright.BrowserType#connect BrowserType.connect()}. If you are experiencing issues or attempting to use + * advanced functionality, you probably want to use {@link com.microsoft.playwright.BrowserType#connect + * BrowserType.connect()}. + * + *

      NOTE: Playwright maintains a curated list of arguments for launching the browser. If you launch the browser without Playwright + * and do not pass the exact same arguments, some of Playwright functionality may be broken upon connecting to the browser. + * + *

      Usage *

      {@code
          * Browser browser = playwright.chromium().connectOverCDP("http://localhost:9222");
          * BrowserContext defaultContext = browser.contexts().get(0);
          * Page page = defaultContext.pages().get(0);
          * }
      * - * @param endpointURL A CDP websocket endpoint or http url to connect to. For example {@code http://localhost:9222/} or - * {@code ws://127.0.0.1:9222/devtools/browser/387adf4c-243f-4051-a181-46798f4a46f4}. + * @param endpointURL A CDP websocket endpoint or http url to connect to. For example {@code http://localhost:9222/} or {@code + * ws://127.0.0.1:9222/devtools/browser/387adf4c-243f-4051-a181-46798f4a46f4}. + * + *

      Alternatively, a browser channel name such as {@code chrome} or {@code msedge} to connect to a browser with remote + * debugging enabled in its default user data directory. On Linux, Playwright uses {@code CHROME_USER_DATA_DIR} when set. + * Otherwise, it uses {@code CHROME_CONFIG_HOME}, then {@code XDG_CONFIG_HOME}, then {@code ~/.config} to locate that + * directory. + * @since v1.9 */ - Browser connectOverCDP(String endpointURL, ConnectOverCDPOptions options); + Browser connectOverCDP(String endpointURL, @Nullable ConnectOverCDPOptions options); /** * A path where Playwright expects to find a bundled browser executable. + * + * @since v1.8 */ String executablePath(); /** * Returns the browser instance. * + *

      Usage + * *

      You can use {@code ignoreDefaultArgs} to filter out {@code --mute-audio} from default arguments: *

      {@code
          * // Or "firefox" or "webkit".
      @@ -1105,6 +1438,8 @@ default Browser connectOverCDP(String endpointURL) {
          * other differences between Chromium and Chrome. This article
          * describes some differences for Linux users.
      +   *
      +   * @since v1.8
          */
         default Browser launch() {
           return launch(null);
      @@ -1112,6 +1447,8 @@ default Browser launch() {
         /**
          * Returns the browser instance.
          *
      +   * 

      Usage + * *

      You can use {@code ignoreDefaultArgs} to filter out {@code --mute-audio} from default arguments: *

      {@code
          * // Or "firefox" or "webkit".
      @@ -1137,19 +1474,31 @@ default Browser launch() {
          * other differences between Chromium and Chrome. This article
          * describes some differences for Linux users.
      +   *
      +   * @since v1.8
          */
      -  Browser launch(LaunchOptions options);
      +  Browser launch(@Nullable LaunchOptions options);
         /**
          * Returns the persistent browser context instance.
          *
          * 

      Launches browser that uses persistent storage located at {@code userDataDir} and returns the only context. Closing this * context will automatically close the browser. * - * @param userDataDir Path to a User Data Directory, which stores browser session data like cookies and local storage. More details for More details for Chromium and Firefox. Note that - * Chromium's user data directory is the **parent** directory of the "Profile Path" seen at {@code chrome://version}. Pass an - * empty string to use a temporary directory instead. + * href="https://wiki.mozilla.org/Firefox/CommandLineOptions#User_profile">Firefox. Chromium's user data directory is + * the **parent** directory of the "Profile Path" seen at {@code chrome://version}. + * + *

      Note that browsers do not allow launching multiple instances with the same User Data Directory. + * + *

      NOTE: Chromium/Chrome: Due to recent Chrome policy changes, automating the default Chrome user profile is not supported. + * Pointing {@code userDataDir} to Chrome's main "User Data" directory (the profile used for your regular browsing) may + * result in pages not loading or the browser exiting. Create and use a separate directory (for example, an empty folder) + * as your automation profile instead. See https://developer.chrome.com/blog/remote-debugging-port for details. + * @since v1.8 */ default BrowserContext launchPersistentContext(Path userDataDir) { return launchPersistentContext(userDataDir, null); @@ -1160,15 +1509,27 @@ default BrowserContext launchPersistentContext(Path userDataDir) { *

      Launches browser that uses persistent storage located at {@code userDataDir} and returns the only context. Closing this * context will automatically close the browser. * - * @param userDataDir Path to a User Data Directory, which stores browser session data like cookies and local storage. More details for More details for Chromium and Firefox. Note that - * Chromium's user data directory is the **parent** directory of the "Profile Path" seen at {@code chrome://version}. Pass an - * empty string to use a temporary directory instead. + * href="https://wiki.mozilla.org/Firefox/CommandLineOptions#User_profile">Firefox. Chromium's user data directory is + * the **parent** directory of the "Profile Path" seen at {@code chrome://version}. + * + *

      Note that browsers do not allow launching multiple instances with the same User Data Directory. + * + *

      NOTE: Chromium/Chrome: Due to recent Chrome policy changes, automating the default Chrome user profile is not supported. + * Pointing {@code userDataDir} to Chrome's main "User Data" directory (the profile used for your regular browsing) may + * result in pages not loading or the browser exiting. Create and use a separate directory (for example, an empty folder) + * as your automation profile instead. See https://developer.chrome.com/blog/remote-debugging-port for details. + * @since v1.8 */ - BrowserContext launchPersistentContext(Path userDataDir, LaunchPersistentContextOptions options); + BrowserContext launchPersistentContext(Path userDataDir, @Nullable LaunchPersistentContextOptions options); /** * Returns browser name. For example: {@code "chromium"}, {@code "webkit"} or {@code "firefox"}. + * + * @since v1.8 */ String name(); } diff --git a/playwright/src/main/java/com/microsoft/playwright/CDPSession.java b/playwright/src/main/java/com/microsoft/playwright/CDPSession.java new file mode 100644 index 000000000..0b722c394 --- /dev/null +++ b/playwright/src/main/java/com/microsoft/playwright/CDPSession.java @@ -0,0 +1,129 @@ +/* + * 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. + */ + +package com.microsoft.playwright; + +import org.jspecify.annotations.Nullable; +import java.util.function.Consumer; +import com.google.gson.JsonObject; + +/** + * The {@code CDPSession} instances are used to talk raw Chrome Devtools Protocol: + *

        + *
      • protocol methods can be called with {@code session.send} method.
      • + *
      • protocol events can be subscribed to with {@code session.on} method.
      • + *
      + * + *

      Useful links: + *

        + *
      • Documentation on DevTools Protocol can be found here: DevTools Protocol Viewer.
      • + *
      • Getting Started with DevTools Protocol: https://github.com/aslushnikov/getting-started-with-cdp/blob/master/README.md
      • + *
      + *
      {@code
      + * CDPSession client = page.context().newCDPSession(page);
      + * client.send("Runtime.enable");
      + *
      + * client.on("Animation.animationCreated", (event) -> System.out.println("Animation created!"));
      + *
      + * JsonObject response = client.send("Animation.getPlaybackRate");
      + * double playbackRate = response.get("playbackRate").getAsDouble();
      + * System.out.println("playback rate is " + playbackRate);
      + *
      + * JsonObject params = new JsonObject();
      + * params.addProperty("playbackRate", playbackRate / 2);
      + * client.send("Animation.setPlaybackRate", params);
      + * }
      + */ +public interface CDPSession { + + /** + * Emitted when the session is closed, either because the target was closed or {@code session.detach()} was called. + */ + void onClose(Consumer handler); + /** + * Removes handler that was previously added with {@link #onClose onClose(handler)}. + */ + void offClose(Consumer handler); + + class SendOptions { + /** + * Maximum time in milliseconds to wait for the response. Defaults to {@code 0} - no timeout. + */ + public @Nullable Double timeout; + + /** + * Maximum time in milliseconds to wait for the response. Defaults to {@code 0} - no timeout. + */ + public SendOptions setTimeout(double timeout) { + this.timeout = timeout; + return this; + } + } + /** + * Detaches the CDPSession from the target. Once detached, the CDPSession object won't emit any events and can't be used to + * send messages. + * + * @since v1.8 + */ + void detach(); + /** + * + * + * @param method Protocol method name. + * @param args Optional method parameters. + * @since v1.8 + */ + default JsonObject send(String method, @Nullable JsonObject args) { + return send(method, args, null); + } + /** + * + * + * @param method Protocol method name. + * @since v1.8 + */ + default JsonObject send(String method) { + return send(method, null); + } + /** + * + * + * @param method Protocol method name. + * @param args Optional method parameters. + * @since v1.8 + */ + JsonObject send(String method, @Nullable JsonObject args, @Nullable SendOptions options); + /** + * Register an event handler for events with the specified event name. The given handler will be called for every event + * with the given name. + * + * @param eventName CDP event name. + * @param handler Event handler. + * @since v1.37 + */ + void on(String eventName, Consumer handler); + /** + * Unregister an event handler for events with the specified event name. The given handler will not be called anymore for + * events with the given name. + * + * @param eventName CDP event name. + * @param handler Event handler. + * @since v1.37 + */ + void off(String eventName, Consumer handler); +} + diff --git a/playwright/src/main/java/com/microsoft/playwright/CLI.java b/playwright/src/main/java/com/microsoft/playwright/CLI.java index 21951bd04..b44febf0b 100644 --- a/playwright/src/main/java/com/microsoft/playwright/CLI.java +++ b/playwright/src/main/java/com/microsoft/playwright/CLI.java @@ -17,9 +17,12 @@ package com.microsoft.playwright; import com.microsoft.playwright.impl.driver.Driver; +import com.microsoft.playwright.impl.driver.jar.DriverJar; import java.io.IOException; +import java.net.URISyntaxException; import java.nio.file.Path; +import java.nio.file.Paths; import java.util.Collections; import static java.util.Arrays.asList; @@ -28,7 +31,13 @@ * Use this class to launch playwright cli. */ public class CLI { - public static void main(String[] args) throws IOException, InterruptedException { + public static void main(String[] args) throws IOException, InterruptedException, URISyntaxException { + // Extract the driver into a fixed directory instead of running the playwright CLI. This is + // handled in Java because it must not require an already-extracted driver. See issue #1268. + if (args.length > 0 && "install-driver".equals(args[0])) { + installDriver(args); + return; + } Driver driver = Driver.ensureDriverInstalled(Collections.emptyMap(), false); ProcessBuilder pb = driver.createProcessBuilder(); pb.command().addAll(asList(args)); @@ -40,4 +49,17 @@ public static void main(String[] args) throws IOException, InterruptedException Process process = pb.start(); System.exit(process.waitFor()); } + + private static void installDriver(String[] args) throws IOException, URISyntaxException { + String dir = args.length > 1 ? args[1] : System.getenv(Driver.PLAYWRIGHT_DRIVER_DIR); + if (dir == null) { + System.err.println("Usage: install-driver (or set the " + Driver.PLAYWRIGHT_DRIVER_DIR + + " environment variable)"); + System.exit(1); + return; + } + Path driverDir = Paths.get(dir); + DriverJar.installDriverTo(driverDir); + System.out.println("Installed Playwright driver into " + driverDir.toAbsolutePath()); + } } diff --git a/playwright/src/main/java/com/microsoft/playwright/Clock.java b/playwright/src/main/java/com/microsoft/playwright/Clock.java new file mode 100644 index 000000000..a37b27b51 --- /dev/null +++ b/playwright/src/main/java/com/microsoft/playwright/Clock.java @@ -0,0 +1,369 @@ +/* + * 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. + */ + +package com.microsoft.playwright; + +import org.jspecify.annotations.Nullable; +import java.util.Date; + +/** + * Accurately simulating time-dependent behavior is essential for verifying the correctness of applications. Learn more + * about clock emulation. + * + *

      Note that clock is installed for the entire {@code BrowserContext}, so the time in all the pages and iframes is + * controlled by the same clock. + */ +public interface Clock { + class InstallOptions { + /** + * Time to initialize with, current system time by default. + */ + public @Nullable Object time; + + /** + * Time to initialize with, current system time by default. + */ + public InstallOptions setTime(long time) { + this.time = time; + return this; + } + /** + * Time to initialize with, current system time by default. + */ + public InstallOptions setTime(String time) { + this.time = time; + return this; + } + /** + * Time to initialize with, current system time by default. + */ + public InstallOptions setTime(Date time) { + this.time = time; + return this; + } + } + /** + * Advance the clock by jumping forward in time. Only fires due timers at most once. This is equivalent to user closing the + * laptop lid for a while and reopening it later, after given time. + * + *

      Usage + *

      {@code
      +   * page.clock().fastForward(1000);
      +   * page.clock().fastForward("30:00");
      +   * }
      + * + * @param ticks Time may be a finite number of milliseconds to advance the clock by or a human-readable string. Valid string formats are + * "08" for eight seconds, "01:00" for one minute and "02:34:10" for two hours, 34 minutes and ten seconds. + * @since v1.45 + */ + void fastForward(long ticks); + /** + * Advance the clock by jumping forward in time. Only fires due timers at most once. This is equivalent to user closing the + * laptop lid for a while and reopening it later, after given time. + * + *

      Usage + *

      {@code
      +   * page.clock().fastForward(1000);
      +   * page.clock().fastForward("30:00");
      +   * }
      + * + * @param ticks Time may be a finite number of milliseconds to advance the clock by or a human-readable string. Valid string formats are + * "08" for eight seconds, "01:00" for one minute and "02:34:10" for two hours, 34 minutes and ten seconds. + * @since v1.45 + */ + void fastForward(String ticks); + /** + * Install fake implementations for the following time-related functions: + *
        + *
      • {@code Date}
      • + *
      • {@code Temporal.Now}
      • + *
      • {@code setTimeout}
      • + *
      • {@code clearTimeout}
      • + *
      • {@code setInterval}
      • + *
      • {@code clearInterval}
      • + *
      • {@code requestAnimationFrame}
      • + *
      • {@code cancelAnimationFrame}
      • + *
      • {@code requestIdleCallback}
      • + *
      • {@code cancelIdleCallback}
      • + *
      • {@code performance}
      • + *
      + * + *

      Fake timers are used to manually control the flow of time in tests. They allow you to advance time, fire timers, and + * control the behavior of time-dependent functions. See {@link com.microsoft.playwright.Clock#runFor Clock.runFor()} and + * {@link com.microsoft.playwright.Clock#fastForward Clock.fastForward()} for more information. + * + * @since v1.45 + */ + default void install() { + install(null); + } + /** + * Install fake implementations for the following time-related functions: + *

        + *
      • {@code Date}
      • + *
      • {@code Temporal.Now}
      • + *
      • {@code setTimeout}
      • + *
      • {@code clearTimeout}
      • + *
      • {@code setInterval}
      • + *
      • {@code clearInterval}
      • + *
      • {@code requestAnimationFrame}
      • + *
      • {@code cancelAnimationFrame}
      • + *
      • {@code requestIdleCallback}
      • + *
      • {@code cancelIdleCallback}
      • + *
      • {@code performance}
      • + *
      + * + *

      Fake timers are used to manually control the flow of time in tests. They allow you to advance time, fire timers, and + * control the behavior of time-dependent functions. See {@link com.microsoft.playwright.Clock#runFor Clock.runFor()} and + * {@link com.microsoft.playwright.Clock#fastForward Clock.fastForward()} for more information. + * + * @since v1.45 + */ + void install(@Nullable InstallOptions options); + /** + * Advance the clock, firing all the time-related callbacks. + * + *

      Usage + *

      {@code
      +   * page.clock().runFor(1000);
      +   * page.clock().runFor("30:00");
      +   * }
      + * + * @param ticks Time may be a finite number of milliseconds to advance the clock by or a human-readable string. Valid string formats are + * "08" for eight seconds, "01:00" for one minute and "02:34:10" for two hours, 34 minutes and ten seconds. + * @since v1.45 + */ + void runFor(long ticks); + /** + * Advance the clock, firing all the time-related callbacks. + * + *

      Usage + *

      {@code
      +   * page.clock().runFor(1000);
      +   * page.clock().runFor("30:00");
      +   * }
      + * + * @param ticks Time may be a finite number of milliseconds to advance the clock by or a human-readable string. Valid string formats are + * "08" for eight seconds, "01:00" for one minute and "02:34:10" for two hours, 34 minutes and ten seconds. + * @since v1.45 + */ + void runFor(String ticks); + /** + * Advance the clock by jumping forward in time and pause the time. Once this method is called, no timers are fired unless + * {@link com.microsoft.playwright.Clock#runFor Clock.runFor()}, {@link com.microsoft.playwright.Clock#fastForward + * Clock.fastForward()}, {@link com.microsoft.playwright.Clock#pauseAt Clock.pauseAt()} or {@link + * com.microsoft.playwright.Clock#resume Clock.resume()} is called. + * + *

      Only fires due timers at most once. This is equivalent to user closing the laptop lid for a while and reopening it at + * the specified time and pausing. + * + *

      Usage + *

      {@code
      +   * SimpleDateFormat format = new SimpleDateFormat("yyy-MM-dd");
      +   * page.clock().pauseAt(format.parse("2020-02-02"));
      +   * page.clock().pauseAt("2020-02-02");
      +   * }
      + * + *

      For best results, install the clock before navigating the page and set it to a time slightly before the intended test + * time. This ensures that all timers run normally during page loading, preventing the page from getting stuck. Once the + * page has fully loaded, you can safely use {@link com.microsoft.playwright.Clock#pauseAt Clock.pauseAt()} to pause the + * clock. + *

      {@code
      +   * // Initialize clock with some time before the test time and let the page load
      +   * // naturally. `Date.now` will progress as the timers fire.
      +   * SimpleDateFormat format = new SimpleDateFormat("yyy-MM-dd'T'HH:mm:ss");
      +   * page.clock().install(new Clock.InstallOptions().setTime(format.parse("2024-12-10T08:00:00")));
      +   * page.navigate("http://localhost:3333");
      +   * page.clock().pauseAt(format.parse("2024-12-10T10:00:00"));
      +   * }
      + * + * @param time Time to pause at. + * @since v1.45 + */ + void pauseAt(long time); + /** + * Advance the clock by jumping forward in time and pause the time. Once this method is called, no timers are fired unless + * {@link com.microsoft.playwright.Clock#runFor Clock.runFor()}, {@link com.microsoft.playwright.Clock#fastForward + * Clock.fastForward()}, {@link com.microsoft.playwright.Clock#pauseAt Clock.pauseAt()} or {@link + * com.microsoft.playwright.Clock#resume Clock.resume()} is called. + * + *

      Only fires due timers at most once. This is equivalent to user closing the laptop lid for a while and reopening it at + * the specified time and pausing. + * + *

      Usage + *

      {@code
      +   * SimpleDateFormat format = new SimpleDateFormat("yyy-MM-dd");
      +   * page.clock().pauseAt(format.parse("2020-02-02"));
      +   * page.clock().pauseAt("2020-02-02");
      +   * }
      + * + *

      For best results, install the clock before navigating the page and set it to a time slightly before the intended test + * time. This ensures that all timers run normally during page loading, preventing the page from getting stuck. Once the + * page has fully loaded, you can safely use {@link com.microsoft.playwright.Clock#pauseAt Clock.pauseAt()} to pause the + * clock. + *

      {@code
      +   * // Initialize clock with some time before the test time and let the page load
      +   * // naturally. `Date.now` will progress as the timers fire.
      +   * SimpleDateFormat format = new SimpleDateFormat("yyy-MM-dd'T'HH:mm:ss");
      +   * page.clock().install(new Clock.InstallOptions().setTime(format.parse("2024-12-10T08:00:00")));
      +   * page.navigate("http://localhost:3333");
      +   * page.clock().pauseAt(format.parse("2024-12-10T10:00:00"));
      +   * }
      + * + * @param time Time to pause at. + * @since v1.45 + */ + void pauseAt(String time); + /** + * Advance the clock by jumping forward in time and pause the time. Once this method is called, no timers are fired unless + * {@link com.microsoft.playwright.Clock#runFor Clock.runFor()}, {@link com.microsoft.playwright.Clock#fastForward + * Clock.fastForward()}, {@link com.microsoft.playwright.Clock#pauseAt Clock.pauseAt()} or {@link + * com.microsoft.playwright.Clock#resume Clock.resume()} is called. + * + *

      Only fires due timers at most once. This is equivalent to user closing the laptop lid for a while and reopening it at + * the specified time and pausing. + * + *

      Usage + *

      {@code
      +   * SimpleDateFormat format = new SimpleDateFormat("yyy-MM-dd");
      +   * page.clock().pauseAt(format.parse("2020-02-02"));
      +   * page.clock().pauseAt("2020-02-02");
      +   * }
      + * + *

      For best results, install the clock before navigating the page and set it to a time slightly before the intended test + * time. This ensures that all timers run normally during page loading, preventing the page from getting stuck. Once the + * page has fully loaded, you can safely use {@link com.microsoft.playwright.Clock#pauseAt Clock.pauseAt()} to pause the + * clock. + *

      {@code
      +   * // Initialize clock with some time before the test time and let the page load
      +   * // naturally. `Date.now` will progress as the timers fire.
      +   * SimpleDateFormat format = new SimpleDateFormat("yyy-MM-dd'T'HH:mm:ss");
      +   * page.clock().install(new Clock.InstallOptions().setTime(format.parse("2024-12-10T08:00:00")));
      +   * page.navigate("http://localhost:3333");
      +   * page.clock().pauseAt(format.parse("2024-12-10T10:00:00"));
      +   * }
      + * + * @param time Time to pause at. + * @since v1.45 + */ + void pauseAt(Date time); + /** + * Resumes timers. Once this method is called, time resumes flowing, timers are fired as usual. + * + * @since v1.45 + */ + void resume(); + /** + * Makes {@code Date.now} and {@code new Date()} return fixed fake time at all times, keeps all the timers running. + * + *

      Use this method for simple scenarios where you only need to test with a predefined time. For more advanced scenarios, + * use {@link com.microsoft.playwright.Clock#install Clock.install()} instead. Read docs on clock emulation to learn more. + * + *

      Usage + *

      {@code
      +   * page.clock().setFixedTime(new Date());
      +   * page.clock().setFixedTime(new SimpleDateFormat("yyy-MM-dd").parse("2020-02-02"));
      +   * page.clock().setFixedTime("2020-02-02");
      +   * }
      + * + * @param time Time to be set in milliseconds. + * @since v1.45 + */ + void setFixedTime(long time); + /** + * Makes {@code Date.now} and {@code new Date()} return fixed fake time at all times, keeps all the timers running. + * + *

      Use this method for simple scenarios where you only need to test with a predefined time. For more advanced scenarios, + * use {@link com.microsoft.playwright.Clock#install Clock.install()} instead. Read docs on clock emulation to learn more. + * + *

      Usage + *

      {@code
      +   * page.clock().setFixedTime(new Date());
      +   * page.clock().setFixedTime(new SimpleDateFormat("yyy-MM-dd").parse("2020-02-02"));
      +   * page.clock().setFixedTime("2020-02-02");
      +   * }
      + * + * @param time Time to be set in milliseconds. + * @since v1.45 + */ + void setFixedTime(String time); + /** + * Makes {@code Date.now} and {@code new Date()} return fixed fake time at all times, keeps all the timers running. + * + *

      Use this method for simple scenarios where you only need to test with a predefined time. For more advanced scenarios, + * use {@link com.microsoft.playwright.Clock#install Clock.install()} instead. Read docs on clock emulation to learn more. + * + *

      Usage + *

      {@code
      +   * page.clock().setFixedTime(new Date());
      +   * page.clock().setFixedTime(new SimpleDateFormat("yyy-MM-dd").parse("2020-02-02"));
      +   * page.clock().setFixedTime("2020-02-02");
      +   * }
      + * + * @param time Time to be set in milliseconds. + * @since v1.45 + */ + void setFixedTime(Date time); + /** + * Sets system time, but does not trigger any timers. Use this to test how the web page reacts to a time shift, for example + * switching from summer to winter time, or changing time zones. + * + *

      Usage + *

      {@code
      +   * page.clock().setSystemTime(new Date());
      +   * page.clock().setSystemTime(new SimpleDateFormat("yyy-MM-dd").parse("2020-02-02"));
      +   * page.clock().setSystemTime("2020-02-02");
      +   * }
      + * + * @param time Time to be set in milliseconds. + * @since v1.45 + */ + void setSystemTime(long time); + /** + * Sets system time, but does not trigger any timers. Use this to test how the web page reacts to a time shift, for example + * switching from summer to winter time, or changing time zones. + * + *

      Usage + *

      {@code
      +   * page.clock().setSystemTime(new Date());
      +   * page.clock().setSystemTime(new SimpleDateFormat("yyy-MM-dd").parse("2020-02-02"));
      +   * page.clock().setSystemTime("2020-02-02");
      +   * }
      + * + * @param time Time to be set in milliseconds. + * @since v1.45 + */ + void setSystemTime(String time); + /** + * Sets system time, but does not trigger any timers. Use this to test how the web page reacts to a time shift, for example + * switching from summer to winter time, or changing time zones. + * + *

      Usage + *

      {@code
      +   * page.clock().setSystemTime(new Date());
      +   * page.clock().setSystemTime(new SimpleDateFormat("yyy-MM-dd").parse("2020-02-02"));
      +   * page.clock().setSystemTime("2020-02-02");
      +   * }
      + * + * @param time Time to be set in milliseconds. + * @since v1.45 + */ + void setSystemTime(Date time); +} + diff --git a/playwright/src/main/java/com/microsoft/playwright/ConsoleMessage.java b/playwright/src/main/java/com/microsoft/playwright/ConsoleMessage.java index 53ffc56cb..8d88ddd71 100644 --- a/playwright/src/main/java/com/microsoft/playwright/ConsoleMessage.java +++ b/playwright/src/main/java/com/microsoft/playwright/ConsoleMessage.java @@ -16,50 +16,81 @@ package com.microsoft.playwright; +import org.jspecify.annotations.Nullable; import java.util.*; /** - * {@code ConsoleMessage} objects are dispatched by page via the {@link Page#onConsoleMessage Page.onConsoleMessage()} event. For - * each console messages logged in the page there will be corresponding event in the Playwright context. + * {@code ConsoleMessage} objects are dispatched by page via the {@link com.microsoft.playwright.Page#onConsoleMessage + * Page.onConsoleMessage()} event. For each console message logged in the page there will be corresponding event in the + * Playwright context. *
      {@code
      - * // Listen for all System.out.printlns
      + * // Listen for all console messages and print them to the standard output.
        * page.onConsoleMessage(msg -> System.out.println(msg.text()));
        *
      - * // Listen for all console events and handle errors
      + * // Listen for all console messages and print errors to the standard output.
        * page.onConsoleMessage(msg -> {
        *   if ("error".equals(msg.type()))
        *     System.out.println("Error text: " + msg.text());
        * });
        *
      - * // Get the next System.out.println
      + * // Get the next console message
        * ConsoleMessage msg = page.waitForConsoleMessage(() -> {
        *   // Issue console.log inside the page
        *   page.evaluate("console.log('hello', 42, { foo: 'bar' });");
        * });
        *
        * // Deconstruct console.log arguments
      - * msg.args().get(0).jsonValue() // hello
      - * msg.args().get(1).jsonValue() // 42
      + * msg.args().get(0).jsonValue(); // hello
      + * msg.args().get(1).jsonValue(); // 42
        * }
      */ public interface ConsoleMessage { /** - * List of arguments passed to a {@code console} function call. See also {@link Page#onConsoleMessage Page.onConsoleMessage()}. + * List of arguments passed to a {@code console} function call. See also {@link + * com.microsoft.playwright.Page#onConsoleMessage Page.onConsoleMessage()}. + * + * @since v1.8 */ List args(); /** * URL of the resource followed by 0-based line and column numbers in the resource formatted as {@code URL:line:column}. + * + * @since v1.8 */ String location(); + /** + * The page that produced this console message, if any. + * + * @since v1.34 + */ + @Nullable Page page(); /** * The text of the console message. + * + * @since v1.8 */ String text(); /** - * One of the following values: {@code "log"}, {@code "debug"}, {@code "info"}, {@code "error"}, {@code "warning"}, {@code "dir"}, {@code "dirxml"}, {@code "table"}, - * {@code "trace"}, {@code "clear"}, {@code "startGroup"}, {@code "startGroupCollapsed"}, {@code "endGroup"}, {@code "assert"}, {@code "profile"}, {@code "profileEnd"}, - * {@code "count"}, {@code "timeEnd"}. + * The timestamp of the console message in milliseconds since the Unix epoch. + * + * @since v1.59 + */ + double timestamp(); + /** + * One of the following values: {@code "log"}, {@code "debug"}, {@code "info"}, {@code "error"}, {@code "warning"}, {@code + * "dir"}, {@code "dirxml"}, {@code "table"}, {@code "trace"}, {@code "clear"}, {@code "startGroup"}, {@code + * "startGroupCollapsed"}, {@code "endGroup"}, {@code "assert"}, {@code "profile"}, {@code "profileEnd"}, {@code "count"}, + * {@code "timeEnd"}. + * + * @since v1.8 */ String type(); + /** + * The web worker or service worker that produced this console message, if any. Note that console messages from web workers + * also have non-null {@link com.microsoft.playwright.ConsoleMessage#page ConsoleMessage.page()}. + * + * @since v1.57 + */ + @Nullable Worker worker(); } diff --git a/playwright/src/main/java/com/microsoft/playwright/Credentials.java b/playwright/src/main/java/com/microsoft/playwright/Credentials.java new file mode 100644 index 000000000..a2d8420bc --- /dev/null +++ b/playwright/src/main/java/com/microsoft/playwright/Credentials.java @@ -0,0 +1,262 @@ +/* + * 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. + */ + +package com.microsoft.playwright; + +import org.jspecify.annotations.Nullable; +import com.microsoft.playwright.options.*; +import java.util.*; + +/** + * {@code Credentials} is a virtual WebAuthn authenticator scoped to a {@code BrowserContext}. It lets tests register + * passkeys and answer {@code navigator.credentials.create()} / {@code navigator.credentials.get()} ceremonies in the page, + * without a real authenticator or hardware security key. + * + *

      There are three common ways to use it: + * + *

      Usage: seed a known credential + *

      {@code
      + * BrowserContext context = browser.newContext();
      + *
      + * // A passkey your backend already provisioned for a test user.
      + * context.credentials().create("example.com", new Credentials.CreateOptions()
      + *     .setId(knownCredentialId) // base64url
      + *     .setUserHandle(knownUserHandle) // base64url
      + *     .setPrivateKey(knownPrivateKey) // base64url PKCS#8 (DER)
      + *     .setPublicKey(knownPublicKey)); // base64url SPKI (DER)
      + * context.credentials().install();
      + *
      + * Page page = context.newPage();
      + * page.navigate("https://example.com/login");
      + * // The page's navigator.credentials.get() is answered with the seeded passkey.
      + * }
      + * + *

      Usage: capture a credential, then reuse it + *

      {@code
      + * // setup test: let the app register a passkey, then save it.
      + * BrowserContext context = browser.newContext();
      + * context.credentials().install();
      + *
      + * Page page = context.newPage();
      + * page.navigate("https://example.com/register");
      + * page.getByRole(AriaRole.BUTTON, new Page.GetByRoleOptions().setName("Create a passkey")).click();
      + *
      + * // Read back the passkey the page registered — it includes the private key.
      + * VirtualCredential credential = context.credentials().get(
      + *     new Credentials.GetOptions().setRpId("example.com")).get(0);
      + * Files.writeString(Paths.get("playwright/.auth/passkey.json"), new Gson().toJson(credential));
      + * }
      + *
      {@code
      + * // later test: seed the captured passkey so the app starts already enrolled.
      + * VirtualCredential credential = new Gson().fromJson(
      + *     Files.readString(Paths.get("playwright/.auth/passkey.json")), VirtualCredential.class);
      + * BrowserContext context = browser.newContext();
      + * context.credentials().create(credential.rpId, new Credentials.CreateOptions()
      + *     .setId(credential.id)
      + *     .setUserHandle(credential.userHandle)
      + *     .setPrivateKey(credential.privateKey)
      + *     .setPublicKey(credential.publicKey)
      + *     .setSignCount(credential.signCount));
      + * context.credentials().install();
      + *
      + * Page page = context.newPage();
      + * page.navigate("https://example.com/login");
      + * // navigator.credentials.get() resolves the captured passkey — already signed in.
      + * }
      + * + *

      Usage: save credentials in the storage state, restore later + * + *

      See authentication guide for examples of using saving and restoring + * the storage state. + * + *

      Defaults + */ +public interface Credentials { + class CreateOptions { + /** + * Base64url-encoded credential id. Auto-generated if omitted. + */ + public @Nullable String id; + /** + * Base64url-encoded PKCS#8 (DER) private key. Auto-generated if omitted. + */ + public @Nullable String privateKey; + /** + * Base64url-encoded SPKI (DER) public key. Auto-generated if omitted. + */ + public @Nullable String publicKey; + /** + * Initial value of the signature counter. The counter is + * incremented by one on every successful {@code navigator.credentials.get()} assertion, so the first assertion reports + * {@code signCount + 1}. Defaults to {@code 0}. + */ + public @Nullable Integer signCount; + /** + * Base64url-encoded user handle. Auto-generated if omitted. + */ + public @Nullable String userHandle; + + /** + * Base64url-encoded credential id. Auto-generated if omitted. + */ + public CreateOptions setId(String id) { + this.id = id; + return this; + } + /** + * Base64url-encoded PKCS#8 (DER) private key. Auto-generated if omitted. + */ + public CreateOptions setPrivateKey(String privateKey) { + this.privateKey = privateKey; + return this; + } + /** + * Base64url-encoded SPKI (DER) public key. Auto-generated if omitted. + */ + public CreateOptions setPublicKey(String publicKey) { + this.publicKey = publicKey; + return this; + } + /** + * Initial value of the signature counter. The counter is + * incremented by one on every successful {@code navigator.credentials.get()} assertion, so the first assertion reports + * {@code signCount + 1}. Defaults to {@code 0}. + */ + public CreateOptions setSignCount(int signCount) { + this.signCount = signCount; + return this; + } + /** + * Base64url-encoded user handle. Auto-generated if omitted. + */ + public CreateOptions setUserHandle(String userHandle) { + this.userHandle = userHandle; + return this; + } + } + class GetOptions { + /** + * Only return the credential with this base64url-encoded id. + */ + public @Nullable String id; + /** + * Only return credentials for this relying party id. + */ + public @Nullable String rpId; + + /** + * Only return the credential with this base64url-encoded id. + */ + public GetOptions setId(String id) { + this.id = id; + return this; + } + /** + * Only return credentials for this relying party id. + */ + public GetOptions setRpId(String rpId) { + this.rpId = rpId; + return this; + } + } + /** + * Installs the virtual WebAuthn authenticator into the context, overriding {@code navigator.credentials.create()} and + * {@code navigator.credentials.get()} in all current and future pages. Call this before the page first touches {@code + * navigator.credentials}. + * + *

      Required: until {@link com.microsoft.playwright.Credentials#install Credentials.install()} is called, no interception is + * in place and the page sees the platform's native (or absent) WebAuthn behaviour. Seeding credentials with {@link + * com.microsoft.playwright.Credentials#create Credentials.create()} without installing populates the authenticator, but + * the page will never see those credentials. + * + * @since v1.61 + */ + void install(); + /** + * Seeds a virtual WebAuthn credential and returns it. + * + *

      With only {@code rpId}, generates a fresh **ECDSA P-256** keypair, credential id and user handle. The seeded credential + * is discoverable (resident), so the page can resolve it from both username-then-passkey and usernameless passkey flows. + * The returned object carries the private and public keys, so it can be persisted to disk and re-seeded in a later test. + * + *

      To **import a known credential**, supply all four of {@code id}, {@code userHandle}, {@code privateKey} and {@code + * publicKey} together. Pass {@code signCount} as well to continue from the signature counter the relying party has already + * seen. + * + *

      Call {@link com.microsoft.playwright.Credentials#install Credentials.install()} before navigating to a page that uses + * WebAuthn. + * + * @param rpId Relying party id (typically the site's effective domain). + * @since v1.61 + */ + default VirtualCredential create(String rpId) { + return create(rpId, null); + } + /** + * Seeds a virtual WebAuthn credential and returns it. + * + *

      With only {@code rpId}, generates a fresh **ECDSA P-256** keypair, credential id and user handle. The seeded credential + * is discoverable (resident), so the page can resolve it from both username-then-passkey and usernameless passkey flows. + * The returned object carries the private and public keys, so it can be persisted to disk and re-seeded in a later test. + * + *

      To **import a known credential**, supply all four of {@code id}, {@code userHandle}, {@code privateKey} and {@code + * publicKey} together. Pass {@code signCount} as well to continue from the signature counter the relying party has already + * seen. + * + *

      Call {@link com.microsoft.playwright.Credentials#install Credentials.install()} before navigating to a page that uses + * WebAuthn. + * + * @param rpId Relying party id (typically the site's effective domain). + * @since v1.61 + */ + VirtualCredential create(String rpId, @Nullable CreateOptions options); + /** + * Removes a credential from the authenticator by its id. Works for any credential currently held — both those seeded with + * {@link com.microsoft.playwright.Credentials#create Credentials.create()} and those the page registered itself by calling + * {@code navigator.credentials.create()}. + * + * @param id Base64url-encoded credential id. + * @since v1.61 + */ + void delete(String id); + /** + * Returns every credential currently held by the authenticator, optionally filtered by {@code rpId} or {@code id}. This + * includes both credentials seeded with {@link com.microsoft.playwright.Credentials#create Credentials.create()} and + * credentials the page registered itself by calling {@code navigator.credentials.create()}. + * + *

      Each returned credential includes its private and public keys and the current signature counter, so a passkey the app + * just registered can be saved and re-seeded into a later test with {@link com.microsoft.playwright.Credentials#create + * Credentials.create()} — see the second example in the class overview. + * + * @since v1.61 + */ + default List get() { + return get(null); + } + /** + * Returns every credential currently held by the authenticator, optionally filtered by {@code rpId} or {@code id}. This + * includes both credentials seeded with {@link com.microsoft.playwright.Credentials#create Credentials.create()} and + * credentials the page registered itself by calling {@code navigator.credentials.create()}. + * + *

      Each returned credential includes its private and public keys and the current signature counter, so a passkey the app + * just registered can be saved and re-seeded into a later test with {@link com.microsoft.playwright.Credentials#create + * Credentials.create()} — see the second example in the class overview. + * + * @since v1.61 + */ + List get(@Nullable GetOptions options); +} + diff --git a/playwright/src/main/java/com/microsoft/playwright/Debugger.java b/playwright/src/main/java/com/microsoft/playwright/Debugger.java new file mode 100644 index 000000000..9d043c63b --- /dev/null +++ b/playwright/src/main/java/com/microsoft/playwright/Debugger.java @@ -0,0 +1,79 @@ +/* + * 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. + */ + +package com.microsoft.playwright; + +import org.jspecify.annotations.Nullable; +import com.microsoft.playwright.options.*; +import java.util.*; + +/** + * API for controlling the Playwright debugger. The debugger allows pausing script execution and inspecting the page. + * Obtain the debugger instance via {@link com.microsoft.playwright.BrowserContext#debugger BrowserContext.debugger()}. + */ +public interface Debugger { + + /** + * Emitted when the debugger pauses or resumes. + */ + void onPausedStateChanged(Runnable handler); + /** + * Removes handler that was previously added with {@link #onPausedStateChanged onPausedStateChanged(handler)}. + */ + void offPausedStateChanged(Runnable handler); + + /** + * Returns details about the currently paused call. Returns {@code null} if the debugger is not paused. + * + * @since v1.59 + */ + @Nullable DebuggerPausedDetails pausedDetails(); + /** + * Configures the debugger to pause before the next action is executed. + * + *

      Throws if the debugger is already paused. Use {@link com.microsoft.playwright.Debugger#next Debugger.next()} or {@link + * com.microsoft.playwright.Debugger#runTo Debugger.runTo()} to step while paused. + * + *

      Note that {@link com.microsoft.playwright.Page#pause Page.pause()} is equivalent to a "debugger" statement — it pauses + * execution at the call site immediately. On the contrary, {@link com.microsoft.playwright.Debugger#requestPause + * Debugger.requestPause()} is equivalent to "pause on next statement" — it configures the debugger to pause before the + * next action is executed. + * + * @since v1.59 + */ + void requestPause(); + /** + * Resumes script execution. Throws if the debugger is not paused. + * + * @since v1.59 + */ + void resume(); + /** + * Resumes script execution and pauses again before the next action. Throws if the debugger is not paused. + * + * @since v1.59 + */ + void next(); + /** + * Resumes script execution and pauses when an action originates from the given source location. Throws if the debugger is + * not paused. + * + * @param location The source location to pause at. + * @since v1.59 + */ + void runTo(Location location); +} + diff --git a/playwright/src/main/java/com/microsoft/playwright/Dialog.java b/playwright/src/main/java/com/microsoft/playwright/Dialog.java index c45dc8828..4d7ff391e 100644 --- a/playwright/src/main/java/com/microsoft/playwright/Dialog.java +++ b/playwright/src/main/java/com/microsoft/playwright/Dialog.java @@ -16,9 +16,11 @@ package com.microsoft.playwright; +import org.jspecify.annotations.Nullable; /** - * {@code Dialog} objects are dispatched by page via the {@link Page#onDialog Page.onDialog()} event. + * {@code Dialog} objects are dispatched by page via the {@link com.microsoft.playwright.Page#onDialog Page.onDialog()} + * event. * *

      An example of using {@code Dialog} class: *

      {@code
      @@ -41,15 +43,17 @@
        * }
        * }
      * - *

      NOTE: Dialogs are dismissed automatically, unless there is a {@link Page#onDialog Page.onDialog()} listener. When listener is - * present, it **must** either {@link Dialog#accept Dialog.accept()} or {@link Dialog#dismiss Dialog.dismiss()} the dialog - * - otherwise the page will NOTE: Dialogs are dismissed automatically, unless there is a {@link com.microsoft.playwright.Page#onDialog Page.onDialog()} + * listener. When listener is present, it **must** either {@link com.microsoft.playwright.Dialog#accept Dialog.accept()} or + * {@link com.microsoft.playwright.Dialog#dismiss Dialog.dismiss()} the dialog - otherwise the page will freeze waiting for the * dialog, and actions like click will never finish. */ public interface Dialog { /** * Returns when the dialog has been accepted. + * + * @since v1.8 */ default void accept() { accept(null); @@ -58,22 +62,37 @@ default void accept() { * Returns when the dialog has been accepted. * * @param promptText A text to enter in prompt. Does not cause any effects if the dialog's {@code type} is not prompt. Optional. + * @since v1.8 */ - void accept(String promptText); + void accept(@Nullable String promptText); /** * If dialog is prompt, returns default prompt value. Otherwise, returns empty string. + * + * @since v1.8 */ String defaultValue(); /** * Returns when the dialog has been dismissed. + * + * @since v1.8 */ void dismiss(); /** * A message displayed in the dialog. + * + * @since v1.8 */ String message(); + /** + * The page that initiated this dialog, if available. + * + * @since v1.34 + */ + @Nullable Page page(); /** * Returns dialog's type, can be one of {@code alert}, {@code beforeunload}, {@code confirm} or {@code prompt}. + * + * @since v1.8 */ String type(); } diff --git a/playwright/src/main/java/com/microsoft/playwright/Download.java b/playwright/src/main/java/com/microsoft/playwright/Download.java index 220f36be9..d76bd1e29 100644 --- a/playwright/src/main/java/com/microsoft/playwright/Download.java +++ b/playwright/src/main/java/com/microsoft/playwright/Download.java @@ -16,77 +16,100 @@ package com.microsoft.playwright; +import org.jspecify.annotations.Nullable; import java.io.InputStream; import java.nio.file.Path; /** - * {@code Download} objects are dispatched by page via the {@link Page#onDownload Page.onDownload()} event. + * {@code Download} objects are dispatched by page via the {@link com.microsoft.playwright.Page#onDownload + * Page.onDownload()} event. * *

      All the downloaded files belonging to the browser context are deleted when the browser context is closed. * - *

      Download event is emitted once the download starts. Download path becomes available once download completes: + *

      Download event is emitted once the download starts. Download path becomes available once download completes. *

      {@code
      - * // wait for download to start
      - * Download download  = page.waitForDownload(() -> page.locator("a").click());
      - * // wait for download to complete
      - * Path path = download.path();
      - * }
      - *
      {@code
      - * // wait for download to start
      + * // Wait for the download to start
        * Download download = page.waitForDownload(() -> {
      - *   page.locator("a").click();
      + *     // Perform the action that initiates download
      + *     page.getByText("Download file").click();
        * });
      - * // wait for download to complete
      - * Path path = download.path();
      + *
      + * // Wait for the download process to complete and save the downloaded file somewhere
      + * download.saveAs(Paths.get("/path/to/save/at/", download.suggestedFilename()));
        * }
      */ public interface Download { /** - * Cancels a download. Will not fail if the download is already finished or canceled. Upon successful cancellations, - * {@code download.failure()} would resolve to {@code "canceled"}. + * Cancels a download. Will not fail if the download is already finished or canceled. Upon successful cancellations, {@code + * download.failure()} would resolve to {@code "canceled"}. + * + * @since v1.13 */ void cancel(); /** - * Returns readable stream for current download or {@code null} if download failed. + * Returns a readable stream for a successful download, or throws for a failed/canceled download. + * + *

      NOTE: If you don't need a readable stream, it's usually simpler to read the file from disk after the download completed. See + * {@link com.microsoft.playwright.Download#path Download.path()}. + * + * @since v1.8 */ InputStream createReadStream(); /** * Deletes the downloaded file. Will wait for the download to finish if necessary. + * + * @since v1.8 */ void delete(); /** * Returns download error if any. Will wait for the download to finish if necessary. + * + * @since v1.8 */ - String failure(); + @Nullable String failure(); /** * Get the page that the download belongs to. + * + * @since v1.12 */ Page page(); /** - * Returns path to the downloaded file in case of successful download. The method will wait for the download to finish if - * necessary. The method throws when connected remotely. + * Returns path to the downloaded file for a successful download, or throws for a failed/canceled download. The method will + * wait for the download to finish if necessary. The method throws when connected remotely. + * + *

      Note that the download's file name is a random GUID, use {@link com.microsoft.playwright.Download#suggestedFilename + * Download.suggestedFilename()} to get suggested file name. * - *

      Note that the download's file name is a random GUID, use {@link Download#suggestedFilename Download.suggestedFilename()} - * to get suggested file name. + * @since v1.8 */ Path path(); /** * Copy the download to a user-specified path. It is safe to call this method while the download is still in progress. Will * wait for the download to finish if necessary. * + *

      Usage + *

      {@code
      +   * download.saveAs(Paths.get("/path/to/save/at/", download.suggestedFilename()));
      +   * }
      + * * @param path Path where the download should be copied. + * @since v1.8 */ void saveAs(Path path); /** * Returns suggested filename for this download. It is typically computed by the browser from the {@code Content-Disposition} response - * header or the {@code download} attribute. See the spec on {@code Content-Disposition} + * response header or the {@code download} attribute. See the spec on whatwg. Different browsers can use different logic for * computing it. + * + * @since v1.8 */ String suggestedFilename(); /** * Returns downloaded url. + * + * @since v1.8 */ String url(); } diff --git a/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java b/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java index 0e3081e70..53bd72438 100644 --- a/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java +++ b/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java @@ -16,13 +16,14 @@ package com.microsoft.playwright; +import org.jspecify.annotations.Nullable; import com.microsoft.playwright.options.*; import java.nio.file.Path; import java.util.*; /** - * ElementHandle represents an in-page DOM element. ElementHandles can be created with the {@link Page#querySelector - * Page.querySelector()} method. + * ElementHandle represents an in-page DOM element. ElementHandles can be created with the {@link + * com.microsoft.playwright.Page#querySelector Page.querySelector()} method. * *

      NOTE: The use of ElementHandle is discouraged, use {@code Locator} objects and web-first assertions instead. *

      {@code
      @@ -30,14 +31,15 @@
        * hrefElement.click();
        * }
      * - *

      ElementHandle prevents DOM element from garbage collection unless the handle is disposed with {@link JSHandle#dispose - * JSHandle.dispose()}. ElementHandles are auto-disposed when their origin frame gets navigated. + *

      ElementHandle prevents DOM element from garbage collection unless the handle is disposed with {@link + * com.microsoft.playwright.JSHandle#dispose JSHandle.dispose()}. ElementHandles are auto-disposed when their origin frame + * gets navigated. * - *

      ElementHandle instances can be used as an argument in {@link Page#evalOnSelector Page.evalOnSelector()} and {@link - * Page#evaluate Page.evaluate()} methods. + *

      ElementHandle instances can be used as an argument in {@link com.microsoft.playwright.Page#evalOnSelector + * Page.evalOnSelector()} and {@link com.microsoft.playwright.Page#evaluate Page.evaluate()} methods. * - *

      The difference between the {@code Locator} and ElementHandle is that the ElementHandle points to a particular element, while - * {@code Locator} captures the logic of how to retrieve an element. + *

      The difference between the {@code Locator} and ElementHandle is that the ElementHandle points to a particular element, + * while {@code Locator} captures the logic of how to retrieve an element. * *

      In the example below, handle points to a particular DOM element on page. If that element changes text or is used by * React to render an entirely different component, handle is still pointing to that very DOM element. This can lead to @@ -48,10 +50,10 @@ * handle.click(); * }

      * - *

      With the locator, every time the {@code element} is used, up-to-date DOM element is located in the page using the selector. So - * in the snippet below, underlying DOM element is going to be located twice. + *

      With the locator, every time the {@code element} is used, up-to-date DOM element is located in the page using the + * selector. So in the snippet below, underlying DOM element is going to be located twice. *

      {@code
      - * Locator locator = page.locator("text=Submit");
      + * Locator locator = page.getByText("Submit");
        * locator.hover();
        * locator.click();
        * }
      @@ -62,30 +64,36 @@ class CheckOptions { * Whether to bypass the actionability checks. Defaults to * {@code false}. */ - public Boolean force; + public @Nullable Boolean force; /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ - public Boolean noWaitAfter; + public @Nullable Boolean noWaitAfter; /** * A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the * element. */ - public Position position; + public @Nullable Position position; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Controls whether Playwright scrolls the element into view before performing the action. Defaults to {@code "auto"}, + * which scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to {@code + * "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This + * is useful to assert that an element is reachable by the user without additional scrolling. */ - public Double timeout; + public @Nullable ScrollMode scroll; + /** + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. + */ + public @Nullable Double timeout; /** * When set, this method only performs the actionability * checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without * performing it. */ - public Boolean trial; + public @Nullable Boolean trial; /** * Whether to bypass the actionability checks. Defaults to @@ -96,9 +104,7 @@ public CheckOptions setForce(boolean force) { return this; } /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ public CheckOptions setNoWaitAfter(boolean noWaitAfter) { this.noWaitAfter = noWaitAfter; @@ -120,9 +126,20 @@ public CheckOptions setPosition(Position position) { return this; } /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Controls whether Playwright scrolls the element into view before performing the action. Defaults to {@code "auto"}, + * which scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to {@code + * "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This + * is useful to assert that an element is reachable by the user without additional scrolling. + */ + public CheckOptions setScroll(ScrollMode scroll) { + this.scroll = scroll; + return this; + } + /** + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public CheckOptions setTimeout(double timeout) { this.timeout = timeout; @@ -142,48 +159,61 @@ class ClickOptions { /** * Defaults to {@code left}. */ - public MouseButton button; + public @Nullable MouseButton button; /** * defaults to 1. See [UIEvent.detail]. */ - public Integer clickCount; + public @Nullable Integer clickCount; /** * Time to wait between {@code mousedown} and {@code mouseup} in milliseconds. Defaults to 0. */ - public Double delay; + public @Nullable Double delay; /** * Whether to bypass the actionability checks. Defaults to * {@code false}. */ - public Boolean force; + public @Nullable Boolean force; /** * Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current - * modifiers back. If not specified, currently pressed modifiers are used. + * modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows + * and Linux and to "Meta" on macOS. */ - public List modifiers; + public @Nullable List modifiers; /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option will default to {@code true} in the future. */ - public Boolean noWaitAfter; + public @Nullable Boolean noWaitAfter; /** * A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the * element. */ - public Position position; + public @Nullable Position position; + /** + * Controls whether Playwright scrolls the element into view before performing the action. Defaults to {@code "auto"}, + * which scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to {@code + * "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This + * is useful to assert that an element is reachable by the user without additional scrolling. + */ + public @Nullable ScrollMode scroll; + /** + * Defaults to 1. Sends {@code n} interpolated {@code mousemove} events to represent travel between Playwright's current + * cursor position and the provided destination. When set to 1, emits a single {@code mousemove} event at the destination + * location. + */ + public @Nullable Integer steps; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ - public Double timeout; + public @Nullable Double timeout; /** * When set, this method only performs the actionability * checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without * performing it. */ - public Boolean trial; + public @Nullable Boolean trial; /** * Defaults to {@code left}. @@ -216,16 +246,15 @@ public ClickOptions setForce(boolean force) { } /** * Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current - * modifiers back. If not specified, currently pressed modifiers are used. + * modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows + * and Linux and to "Meta" on macOS. */ public ClickOptions setModifiers(List modifiers) { this.modifiers = modifiers; return this; } /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option will default to {@code true} in the future. */ public ClickOptions setNoWaitAfter(boolean noWaitAfter) { this.noWaitAfter = noWaitAfter; @@ -247,9 +276,29 @@ public ClickOptions setPosition(Position position) { return this; } /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Controls whether Playwright scrolls the element into view before performing the action. Defaults to {@code "auto"}, + * which scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to {@code + * "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This + * is useful to assert that an element is reachable by the user without additional scrolling. + */ + public ClickOptions setScroll(ScrollMode scroll) { + this.scroll = scroll; + return this; + } + /** + * Defaults to 1. Sends {@code n} interpolated {@code mousemove} events to represent travel between Playwright's current + * cursor position and the provided destination. When set to 1, emits a single {@code mousemove} event at the destination + * location. + */ + public ClickOptions setSteps(int steps) { + this.steps = steps; + return this; + } + /** + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public ClickOptions setTimeout(double timeout) { this.timeout = timeout; @@ -269,44 +318,57 @@ class DblclickOptions { /** * Defaults to {@code left}. */ - public MouseButton button; + public @Nullable MouseButton button; /** * Time to wait between {@code mousedown} and {@code mouseup} in milliseconds. Defaults to 0. */ - public Double delay; + public @Nullable Double delay; /** * Whether to bypass the actionability checks. Defaults to * {@code false}. */ - public Boolean force; + public @Nullable Boolean force; /** * Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current - * modifiers back. If not specified, currently pressed modifiers are used. + * modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows + * and Linux and to "Meta" on macOS. */ - public List modifiers; + public @Nullable List modifiers; /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ - public Boolean noWaitAfter; + public @Nullable Boolean noWaitAfter; /** * A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the * element. */ - public Position position; + public @Nullable Position position; + /** + * Controls whether Playwright scrolls the element into view before performing the action. Defaults to {@code "auto"}, + * which scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to {@code + * "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This + * is useful to assert that an element is reachable by the user without additional scrolling. + */ + public @Nullable ScrollMode scroll; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Defaults to 1. Sends {@code n} interpolated {@code mousemove} events to represent travel between Playwright's current + * cursor position and the provided destination. When set to 1, emits a single {@code mousemove} event at the destination + * location. */ - public Double timeout; + public @Nullable Integer steps; + /** + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. + */ + public @Nullable Double timeout; /** * When set, this method only performs the actionability * checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without * performing it. */ - public Boolean trial; + public @Nullable Boolean trial; /** * Defaults to {@code left}. @@ -332,16 +394,15 @@ public DblclickOptions setForce(boolean force) { } /** * Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current - * modifiers back. If not specified, currently pressed modifiers are used. + * modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows + * and Linux and to "Meta" on macOS. */ public DblclickOptions setModifiers(List modifiers) { this.modifiers = modifiers; return this; } /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ public DblclickOptions setNoWaitAfter(boolean noWaitAfter) { this.noWaitAfter = noWaitAfter; @@ -363,9 +424,29 @@ public DblclickOptions setPosition(Position position) { return this; } /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Controls whether Playwright scrolls the element into view before performing the action. Defaults to {@code "auto"}, + * which scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to {@code + * "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This + * is useful to assert that an element is reachable by the user without additional scrolling. + */ + public DblclickOptions setScroll(ScrollMode scroll) { + this.scroll = scroll; + return this; + } + /** + * Defaults to 1. Sends {@code n} interpolated {@code mousemove} events to represent travel between Playwright's current + * cursor position and the provided destination. When set to 1, emits a single {@code mousemove} event at the destination + * location. + */ + public DblclickOptions setSteps(int steps) { + this.steps = steps; + return this; + } + /** + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public DblclickOptions setTimeout(double timeout) { this.timeout = timeout; @@ -386,19 +467,18 @@ class FillOptions { * Whether to bypass the actionability checks. Defaults to * {@code false}. */ - public Boolean force; + public @Nullable Boolean force; /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ - public Boolean noWaitAfter; + public @Nullable Boolean noWaitAfter; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ - public Double timeout; + public @Nullable Double timeout; /** * Whether to bypass the actionability checks. Defaults to @@ -409,18 +489,17 @@ public FillOptions setForce(boolean force) { return this; } /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ public FillOptions setNoWaitAfter(boolean noWaitAfter) { this.noWaitAfter = noWaitAfter; return this; } /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public FillOptions setTimeout(double timeout) { this.timeout = timeout; @@ -432,29 +511,42 @@ class HoverOptions { * Whether to bypass the actionability checks. Defaults to * {@code false}. */ - public Boolean force; + public @Nullable Boolean force; /** * Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current - * modifiers back. If not specified, currently pressed modifiers are used. + * modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows + * and Linux and to "Meta" on macOS. */ - public List modifiers; + public @Nullable List modifiers; + /** + * @deprecated This option has no effect. + */ + public @Nullable Boolean noWaitAfter; /** * A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the * element. */ - public Position position; + public @Nullable Position position; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Controls whether Playwright scrolls the element into view before performing the action. Defaults to {@code "auto"}, + * which scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to {@code + * "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This + * is useful to assert that an element is reachable by the user without additional scrolling. */ - public Double timeout; + public @Nullable ScrollMode scroll; + /** + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. + */ + public @Nullable Double timeout; /** * When set, this method only performs the actionability * checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without * performing it. */ - public Boolean trial; + public @Nullable Boolean trial; /** * Whether to bypass the actionability checks. Defaults to @@ -466,12 +558,20 @@ public HoverOptions setForce(boolean force) { } /** * Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current - * modifiers back. If not specified, currently pressed modifiers are used. + * modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows + * and Linux and to "Meta" on macOS. */ public HoverOptions setModifiers(List modifiers) { this.modifiers = modifiers; return this; } + /** + * @deprecated This option has no effect. + */ + public HoverOptions setNoWaitAfter(boolean noWaitAfter) { + this.noWaitAfter = noWaitAfter; + return this; + } /** * A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the * element. @@ -488,9 +588,20 @@ public HoverOptions setPosition(Position position) { return this; } /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Controls whether Playwright scrolls the element into view before performing the action. Defaults to {@code "auto"}, + * which scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to {@code + * "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This + * is useful to assert that an element is reachable by the user without additional scrolling. + */ + public HoverOptions setScroll(ScrollMode scroll) { + this.scroll = scroll; + return this; + } + /** + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public HoverOptions setTimeout(double timeout) { this.timeout = timeout; @@ -508,16 +619,12 @@ public HoverOptions setTrial(boolean trial) { } class InputValueOptions { /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * @deprecated This option is ignored. The value is returned immediately. */ - public Double timeout; + public @Nullable Double timeout; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * @deprecated This option is ignored. The value is returned immediately. */ public InputValueOptions setTimeout(double timeout) { this.timeout = timeout; @@ -528,19 +635,18 @@ class PressOptions { /** * Time to wait between {@code keydown} and {@code keyup} in milliseconds. Defaults to 0. */ - public Double delay; + public @Nullable Double delay; /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option will default to {@code true} in the future. */ - public Boolean noWaitAfter; + public @Nullable Boolean noWaitAfter; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ - public Double timeout; + public @Nullable Double timeout; /** * Time to wait between {@code keydown} and {@code keyup} in milliseconds. Defaults to 0. @@ -550,18 +656,17 @@ public PressOptions setDelay(double delay) { return this; } /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option will default to {@code true} in the future. */ public PressOptions setNoWaitAfter(boolean noWaitAfter) { this.noWaitAfter = noWaitAfter; return this; } /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public PressOptions setTimeout(double timeout) { this.timeout = timeout; @@ -570,8 +675,8 @@ public PressOptions setTimeout(double timeout) { } class ScreenshotOptions { /** - * When set to {@code "disabled"}, stops CSS animations, CSS transitions and Web Animations. Animations get different treatment - * depending on their duration: + * When set to {@code "disabled"}, stops CSS animations, CSS transitions and Web Animations. Animations get different + * treatment depending on their duration: *
        *
      • finite animations are fast-forwarded to completion, so they'll fire {@code transitionend} event.
      • *
      • infinite animations are canceled to initial state, and then played over after the screenshot.
      • @@ -579,54 +684,71 @@ class ScreenshotOptions { * *

        Defaults to {@code "allow"} that leaves animations untouched. */ - public ScreenshotAnimations animations; + public @Nullable ScreenshotAnimations animations; /** - * When set to {@code "hide"}, screenshot will hide text caret. When set to {@code "initial"}, text caret behavior will not be changed. - * Defaults to {@code "hide"}. + * When set to {@code "hide"}, screenshot will hide text caret. When set to {@code "initial"}, text caret behavior will not + * be changed. Defaults to {@code "hide"}. */ - public ScreenshotCaret caret; + public @Nullable ScreenshotCaret caret; /** * Specify locators that should be masked when the screenshot is taken. Masked elements will be overlaid with a pink box - * {@code #FF00FF} that completely covers its bounding box. + * {@code #FF00FF} (customized by {@code maskColor}) that completely covers its bounding box. The mask is also applied to + * invisible elements, see Matching only + * visible elements to disable that. + */ + public @Nullable List mask; + /** + * Specify the color of the overlay box for masked elements, in CSS color format. Default color is pink {@code + * #FF00FF}. */ - public List mask; + public @Nullable String maskColor; /** - * Hides default white background and allows capturing screenshots with transparency. Not applicable to {@code jpeg} images. - * Defaults to {@code false}. + * Hides default white background and allows capturing screenshots with transparency. Not applicable to {@code jpeg} + * images. Defaults to {@code false}. */ - public Boolean omitBackground; + public @Nullable Boolean omitBackground; /** - * The file path to save the image to. The screenshot type will be inferred from file extension. If {@code path} is a relative - * path, then it is resolved relative to the current working directory. If no path is provided, the image won't be saved to - * the disk. + * The file path to save the image to. The screenshot type will be inferred from file extension. If {@code path} is a + * relative path, then it is resolved relative to the current working directory. If no path is provided, the image won't be + * saved to the disk. */ - public Path path; + public @Nullable Path path; /** - * The quality of the image, between 0-100. Not applicable to {@code png} images. + * The quality of the image, between 0-100. Not applicable to {@code png} images. For {@code jpeg} the default is {@code + * 80}. For {@code webp}, a quality of {@code 100} (the default) produces a lossless image, while lower values use lossy + * compression. */ - public Integer quality; + public @Nullable Integer quality; /** - * When set to {@code "css"}, screenshot will have a single pixel per each css pixel on the page. For high-dpi devices, this will - * keep screenshots small. Using {@code "device"} option will produce a single pixel per each device pixel, so screenhots of - * high-dpi devices will be twice as large or even larger. + * When set to {@code "css"}, screenshot will have a single pixel per each css pixel on the page. For high-dpi devices, + * this will keep screenshots small. Using {@code "device"} option will produce a single pixel per each device pixel, so + * screenshots of high-dpi devices will be twice as large or even larger. * *

        Defaults to {@code "device"}. */ - public ScreenshotScale scale; + public @Nullable ScreenshotScale scale; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Text of the stylesheet to apply while making the screenshot. This is where you can hide dynamic elements, make elements + * invisible or change their properties to help you creating repeatable screenshots. This stylesheet pierces the Shadow DOM + * and applies to the inner frames. */ - public Double timeout; + public @Nullable String style; + /** + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. + */ + public @Nullable Double timeout; /** * Specify screenshot type, defaults to {@code png}. */ - public ScreenshotType type; + public @Nullable ScreenshotType type; /** - * When set to {@code "disabled"}, stops CSS animations, CSS transitions and Web Animations. Animations get different treatment - * depending on their duration: + * When set to {@code "disabled"}, stops CSS animations, CSS transitions and Web Animations. Animations get different + * treatment depending on their duration: *

          *
        • finite animations are fast-forwarded to completion, so they'll fire {@code transitionend} event.
        • *
        • infinite animations are canceled to initial state, and then played over after the screenshot.
        • @@ -639,8 +761,8 @@ public ScreenshotOptions setAnimations(ScreenshotAnimations animations) { return this; } /** - * When set to {@code "hide"}, screenshot will hide text caret. When set to {@code "initial"}, text caret behavior will not be changed. - * Defaults to {@code "hide"}. + * When set to {@code "hide"}, screenshot will hide text caret. When set to {@code "initial"}, text caret behavior will not + * be changed. Defaults to {@code "hide"}. */ public ScreenshotOptions setCaret(ScreenshotCaret caret) { this.caret = caret; @@ -648,40 +770,53 @@ public ScreenshotOptions setCaret(ScreenshotCaret caret) { } /** * Specify locators that should be masked when the screenshot is taken. Masked elements will be overlaid with a pink box - * {@code #FF00FF} that completely covers its bounding box. + * {@code #FF00FF} (customized by {@code maskColor}) that completely covers its bounding box. The mask is also applied to + * invisible elements, see Matching only + * visible elements to disable that. */ public ScreenshotOptions setMask(List mask) { this.mask = mask; return this; } /** - * Hides default white background and allows capturing screenshots with transparency. Not applicable to {@code jpeg} images. - * Defaults to {@code false}. + * Specify the color of the overlay box for masked elements, in CSS color format. Default color is pink {@code + * #FF00FF}. + */ + public ScreenshotOptions setMaskColor(String maskColor) { + this.maskColor = maskColor; + return this; + } + /** + * Hides default white background and allows capturing screenshots with transparency. Not applicable to {@code jpeg} + * images. Defaults to {@code false}. */ public ScreenshotOptions setOmitBackground(boolean omitBackground) { this.omitBackground = omitBackground; return this; } /** - * The file path to save the image to. The screenshot type will be inferred from file extension. If {@code path} is a relative - * path, then it is resolved relative to the current working directory. If no path is provided, the image won't be saved to - * the disk. + * The file path to save the image to. The screenshot type will be inferred from file extension. If {@code path} is a + * relative path, then it is resolved relative to the current working directory. If no path is provided, the image won't be + * saved to the disk. */ public ScreenshotOptions setPath(Path path) { this.path = path; return this; } /** - * The quality of the image, between 0-100. Not applicable to {@code png} images. + * The quality of the image, between 0-100. Not applicable to {@code png} images. For {@code jpeg} the default is {@code + * 80}. For {@code webp}, a quality of {@code 100} (the default) produces a lossless image, while lower values use lossy + * compression. */ public ScreenshotOptions setQuality(int quality) { this.quality = quality; return this; } /** - * When set to {@code "css"}, screenshot will have a single pixel per each css pixel on the page. For high-dpi devices, this will - * keep screenshots small. Using {@code "device"} option will produce a single pixel per each device pixel, so screenhots of - * high-dpi devices will be twice as large or even larger. + * When set to {@code "css"}, screenshot will have a single pixel per each css pixel on the page. For high-dpi devices, + * this will keep screenshots small. Using {@code "device"} option will produce a single pixel per each device pixel, so + * screenshots of high-dpi devices will be twice as large or even larger. * *

          Defaults to {@code "device"}. */ @@ -690,9 +825,19 @@ public ScreenshotOptions setScale(ScreenshotScale scale) { return this; } /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Text of the stylesheet to apply while making the screenshot. This is where you can hide dynamic elements, make elements + * invisible or change their properties to help you creating repeatable screenshots. This stylesheet pierces the Shadow DOM + * and applies to the inner frames. + */ + public ScreenshotOptions setStyle(String style) { + this.style = style; + return this; + } + /** + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public ScreenshotOptions setTimeout(double timeout) { this.timeout = timeout; @@ -708,16 +853,18 @@ public ScreenshotOptions setType(ScreenshotType type) { } class ScrollIntoViewIfNeededOptions { /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ - public Double timeout; + public @Nullable Double timeout; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public ScrollIntoViewIfNeededOptions setTimeout(double timeout) { this.timeout = timeout; @@ -729,19 +876,18 @@ class SelectOptionOptions { * Whether to bypass the actionability checks. Defaults to * {@code false}. */ - public Boolean force; + public @Nullable Boolean force; /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ - public Boolean noWaitAfter; + public @Nullable Boolean noWaitAfter; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ - public Double timeout; + public @Nullable Double timeout; /** * Whether to bypass the actionability checks. Defaults to @@ -752,18 +898,17 @@ public SelectOptionOptions setForce(boolean force) { return this; } /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ public SelectOptionOptions setNoWaitAfter(boolean noWaitAfter) { this.noWaitAfter = noWaitAfter; return this; } /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public SelectOptionOptions setTimeout(double timeout) { this.timeout = timeout; @@ -775,13 +920,14 @@ class SelectTextOptions { * Whether to bypass the actionability checks. Defaults to * {@code false}. */ - public Boolean force; + public @Nullable Boolean force; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ - public Double timeout; + public @Nullable Double timeout; /** * Whether to bypass the actionability checks. Defaults to @@ -792,9 +938,10 @@ public SelectTextOptions setForce(boolean force) { return this; } /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public SelectTextOptions setTimeout(double timeout) { this.timeout = timeout; @@ -806,30 +953,36 @@ class SetCheckedOptions { * Whether to bypass the actionability checks. Defaults to * {@code false}. */ - public Boolean force; + public @Nullable Boolean force; /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ - public Boolean noWaitAfter; + public @Nullable Boolean noWaitAfter; /** * A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the * element. */ - public Position position; + public @Nullable Position position; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Controls whether Playwright scrolls the element into view before performing the action. Defaults to {@code "auto"}, + * which scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to {@code + * "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This + * is useful to assert that an element is reachable by the user without additional scrolling. */ - public Double timeout; + public @Nullable ScrollMode scroll; + /** + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. + */ + public @Nullable Double timeout; /** * When set, this method only performs the actionability * checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without * performing it. */ - public Boolean trial; + public @Nullable Boolean trial; /** * Whether to bypass the actionability checks. Defaults to @@ -840,9 +993,7 @@ public SetCheckedOptions setForce(boolean force) { return this; } /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ public SetCheckedOptions setNoWaitAfter(boolean noWaitAfter) { this.noWaitAfter = noWaitAfter; @@ -864,9 +1015,20 @@ public SetCheckedOptions setPosition(Position position) { return this; } /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Controls whether Playwright scrolls the element into view before performing the action. Defaults to {@code "auto"}, + * which scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to {@code + * "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This + * is useful to assert that an element is reachable by the user without additional scrolling. + */ + public SetCheckedOptions setScroll(ScrollMode scroll) { + this.scroll = scroll; + return this; + } + /** + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public SetCheckedOptions setTimeout(double timeout) { this.timeout = timeout; @@ -884,31 +1046,29 @@ public SetCheckedOptions setTrial(boolean trial) { } class SetInputFilesOptions { /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ - public Boolean noWaitAfter; + public @Nullable Boolean noWaitAfter; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ - public Double timeout; + public @Nullable Double timeout; /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ public SetInputFilesOptions setNoWaitAfter(boolean noWaitAfter) { this.noWaitAfter = noWaitAfter; return this; } /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public SetInputFilesOptions setTimeout(double timeout) { this.timeout = timeout; @@ -920,35 +1080,42 @@ class TapOptions { * Whether to bypass the actionability checks. Defaults to * {@code false}. */ - public Boolean force; + public @Nullable Boolean force; /** * Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current - * modifiers back. If not specified, currently pressed modifiers are used. + * modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows + * and Linux and to "Meta" on macOS. */ - public List modifiers; + public @Nullable List modifiers; /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ - public Boolean noWaitAfter; + public @Nullable Boolean noWaitAfter; /** * A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the * element. */ - public Position position; + public @Nullable Position position; + /** + * Controls whether Playwright scrolls the element into view before performing the action. Defaults to {@code "auto"}, + * which scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to {@code + * "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This + * is useful to assert that an element is reachable by the user without additional scrolling. + */ + public @Nullable ScrollMode scroll; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ - public Double timeout; + public @Nullable Double timeout; /** * When set, this method only performs the actionability * checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without * performing it. */ - public Boolean trial; + public @Nullable Boolean trial; /** * Whether to bypass the actionability checks. Defaults to @@ -960,16 +1127,15 @@ public TapOptions setForce(boolean force) { } /** * Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current - * modifiers back. If not specified, currently pressed modifiers are used. + * modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows + * and Linux and to "Meta" on macOS. */ public TapOptions setModifiers(List modifiers) { this.modifiers = modifiers; return this; } /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ public TapOptions setNoWaitAfter(boolean noWaitAfter) { this.noWaitAfter = noWaitAfter; @@ -991,9 +1157,20 @@ public TapOptions setPosition(Position position) { return this; } /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Controls whether Playwright scrolls the element into view before performing the action. Defaults to {@code "auto"}, + * which scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to {@code + * "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This + * is useful to assert that an element is reachable by the user without additional scrolling. + */ + public TapOptions setScroll(ScrollMode scroll) { + this.scroll = scroll; + return this; + } + /** + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public TapOptions setTimeout(double timeout) { this.timeout = timeout; @@ -1013,19 +1190,18 @@ class TypeOptions { /** * Time to wait between key presses in milliseconds. Defaults to 0. */ - public Double delay; + public @Nullable Double delay; /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ - public Boolean noWaitAfter; + public @Nullable Boolean noWaitAfter; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ - public Double timeout; + public @Nullable Double timeout; /** * Time to wait between key presses in milliseconds. Defaults to 0. @@ -1035,18 +1211,17 @@ public TypeOptions setDelay(double delay) { return this; } /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ public TypeOptions setNoWaitAfter(boolean noWaitAfter) { this.noWaitAfter = noWaitAfter; return this; } /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public TypeOptions setTimeout(double timeout) { this.timeout = timeout; @@ -1058,30 +1233,36 @@ class UncheckOptions { * Whether to bypass the actionability checks. Defaults to * {@code false}. */ - public Boolean force; + public @Nullable Boolean force; /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ - public Boolean noWaitAfter; + public @Nullable Boolean noWaitAfter; /** * A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the * element. */ - public Position position; + public @Nullable Position position; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Controls whether Playwright scrolls the element into view before performing the action. Defaults to {@code "auto"}, + * which scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to {@code + * "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This + * is useful to assert that an element is reachable by the user without additional scrolling. */ - public Double timeout; + public @Nullable ScrollMode scroll; + /** + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. + */ + public @Nullable Double timeout; /** * When set, this method only performs the actionability * checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without * performing it. */ - public Boolean trial; + public @Nullable Boolean trial; /** * Whether to bypass the actionability checks. Defaults to @@ -1092,9 +1273,7 @@ public UncheckOptions setForce(boolean force) { return this; } /** - * Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can - * opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to - * inaccessible pages. Defaults to {@code false}. + * @deprecated This option has no effect. */ public UncheckOptions setNoWaitAfter(boolean noWaitAfter) { this.noWaitAfter = noWaitAfter; @@ -1116,9 +1295,20 @@ public UncheckOptions setPosition(Position position) { return this; } /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Controls whether Playwright scrolls the element into view before performing the action. Defaults to {@code "auto"}, + * which scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to {@code + * "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This + * is useful to assert that an element is reachable by the user without additional scrolling. + */ + public UncheckOptions setScroll(ScrollMode scroll) { + this.scroll = scroll; + return this; + } + /** + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public UncheckOptions setTimeout(double timeout) { this.timeout = timeout; @@ -1136,16 +1326,18 @@ public UncheckOptions setTrial(boolean trial) { } class WaitForElementStateOptions { /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ - public Double timeout; + public @Nullable Double timeout; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public WaitForElementStateOptions setTimeout(double timeout) { this.timeout = timeout; @@ -1158,34 +1350,35 @@ class WaitForSelectorOptions { *

            *
          • {@code "attached"} - wait for element to be present in DOM.
          • *
          • {@code "detached"} - wait for element to not be present in DOM.
          • - *
          • {@code "visible"} - wait for element to have non-empty bounding box and no {@code visibility:hidden}. Note that element without any - * content or with {@code display:none} has an empty bounding box and is not considered visible.
          • - *
          • {@code "hidden"} - wait for element to be either detached from DOM, or have an empty bounding box or {@code visibility:hidden}. This - * is opposite to the {@code "visible"} option.
          • + *
          • {@code "visible"} - wait for element to have non-empty bounding box and no {@code visibility:hidden}. Note that element + * without any content or with {@code display:none} has an empty bounding box and is not considered visible.
          • + *
          • {@code "hidden"} - wait for element to be either detached from DOM, or have an empty bounding box or {@code + * visibility:hidden}. This is opposite to the {@code "visible"} option.
          • *
          */ - public WaitForSelectorState state; + public @Nullable WaitForSelectorState state; /** * When true, the call requires selector to resolve to a single element. If given selector resolves to more than one * element, the call throws an exception. */ - public Boolean strict; + public @Nullable Boolean strict; /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ - public Double timeout; + public @Nullable Double timeout; /** * Defaults to {@code "visible"}. Can be either: *
            *
          • {@code "attached"} - wait for element to be present in DOM.
          • *
          • {@code "detached"} - wait for element to not be present in DOM.
          • - *
          • {@code "visible"} - wait for element to have non-empty bounding box and no {@code visibility:hidden}. Note that element without any - * content or with {@code display:none} has an empty bounding box and is not considered visible.
          • - *
          • {@code "hidden"} - wait for element to be either detached from DOM, or have an empty bounding box or {@code visibility:hidden}. This - * is opposite to the {@code "visible"} option.
          • + *
          • {@code "visible"} - wait for element to have non-empty bounding box and no {@code visibility:hidden}. Note that element + * without any content or with {@code display:none} has an empty bounding box and is not considered visible.
          • + *
          • {@code "hidden"} - wait for element to be either detached from DOM, or have an empty bounding box or {@code + * visibility:hidden}. This is opposite to the {@code "visible"} option.
          • *
          */ public WaitForSelectorOptions setState(WaitForSelectorState state) { @@ -1201,9 +1394,10 @@ public WaitForSelectorOptions setStrict(boolean strict) { return this; } /** - * Maximum time in milliseconds, defaults to 30 seconds, pass {@code 0} to disable timeout. The default value can be changed by - * using the {@link BrowserContext#setDefaultTimeout BrowserContext.setDefaultTimeout()} or {@link Page#setDefaultTimeout - * Page.setDefaultTimeout()} methods. + * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default + * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout + * BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()} + * methods. */ public WaitForSelectorOptions setTimeout(double timeout) { this.timeout = timeout; @@ -1223,29 +1417,34 @@ public WaitForSelectorOptions setTimeout(double timeout) { * *

          Assuming the page is static, it is safe to use bounding box coordinates to perform input. For example, the following * snippet should click the center of the element. + * + *

          Usage *

          {@code
              * BoundingBox box = elementHandle.boundingBox();
              * page.mouse().click(box.x + box.width / 2, box.y + box.height / 2);
              * }
          + * + * @since v1.8 */ - BoundingBox boundingBox(); + @Nullable BoundingBox boundingBox(); /** * This method checks the element by performing the following steps: *
            *
          1. Ensure that element is a checkbox or a radio input. If not, this method throws. If the element is already checked, this * method returns immediately.
          2. - *
          3. Wait for actionability checks on the element, unless - * {@code force} option is set.
          4. + *
          5. Wait for actionability checks on the element, unless {@code + * force} option is set.
          6. *
          7. Scroll the element into view if needed.
          8. - *
          9. Use {@link Page#mouse Page.mouse()} to click in the center of the element.
          10. - *
          11. Wait for initiated navigations to either succeed or fail, unless {@code noWaitAfter} option is set.
          12. + *
          13. Use {@link com.microsoft.playwright.Page#mouse Page.mouse()} to click in the center of the element.
          14. *
          15. Ensure that the element is now checked. If not, this method throws.
          16. *
          * *

          If the element is detached from the DOM at any moment during the action, this method throws. * - *

          When all steps combined have not finished during the specified {@code timeout}, this method throws a {@code TimeoutError}. Passing - * zero timeout disables this. + *

          When all steps combined have not finished during the specified {@code timeout}, this method throws a {@code + * TimeoutError}. Passing zero timeout disables this. + * + * @since v1.8 */ default void check() { check(null); @@ -1255,34 +1454,38 @@ default void check() { *

            *
          1. Ensure that element is a checkbox or a radio input. If not, this method throws. If the element is already checked, this * method returns immediately.
          2. - *
          3. Wait for actionability checks on the element, unless - * {@code force} option is set.
          4. + *
          5. Wait for actionability checks on the element, unless {@code + * force} option is set.
          6. *
          7. Scroll the element into view if needed.
          8. - *
          9. Use {@link Page#mouse Page.mouse()} to click in the center of the element.
          10. - *
          11. Wait for initiated navigations to either succeed or fail, unless {@code noWaitAfter} option is set.
          12. + *
          13. Use {@link com.microsoft.playwright.Page#mouse Page.mouse()} to click in the center of the element.
          14. *
          15. Ensure that the element is now checked. If not, this method throws.
          16. *
          * *

          If the element is detached from the DOM at any moment during the action, this method throws. * - *

          When all steps combined have not finished during the specified {@code timeout}, this method throws a {@code TimeoutError}. Passing - * zero timeout disables this. + *

          When all steps combined have not finished during the specified {@code timeout}, this method throws a {@code + * TimeoutError}. Passing zero timeout disables this. + * + * @since v1.8 */ - void check(CheckOptions options); + void check(@Nullable CheckOptions options); /** * This method clicks the element by performing the following steps: *

            - *
          1. Wait for actionability checks on the element, unless - * {@code force} option is set.
          2. + *
          3. Wait for actionability checks on the element, unless {@code + * force} option is set.
          4. *
          5. Scroll the element into view if needed.
          6. - *
          7. Use {@link Page#mouse Page.mouse()} to click in the center of the element, or the specified {@code position}.
          8. + *
          9. Use {@link com.microsoft.playwright.Page#mouse Page.mouse()} to click in the center of the element, or the specified + * {@code position}.
          10. *
          11. Wait for initiated navigations to either succeed or fail, unless {@code noWaitAfter} option is set.
          12. *
          * *

          If the element is detached from the DOM at any moment during the action, this method throws. * - *

          When all steps combined have not finished during the specified {@code timeout}, this method throws a {@code TimeoutError}. Passing - * zero timeout disables this. + *

          When all steps combined have not finished during the specified {@code timeout}, this method throws a {@code + * TimeoutError}. Passing zero timeout disables this. + * + * @since v1.8 */ default void click() { click(null); @@ -1290,40 +1493,46 @@ default void click() { /** * This method clicks the element by performing the following steps: *

            - *
          1. Wait for actionability checks on the element, unless - * {@code force} option is set.
          2. + *
          3. Wait for actionability checks on the element, unless {@code + * force} option is set.
          4. *
          5. Scroll the element into view if needed.
          6. - *
          7. Use {@link Page#mouse Page.mouse()} to click in the center of the element, or the specified {@code position}.
          8. + *
          9. Use {@link com.microsoft.playwright.Page#mouse Page.mouse()} to click in the center of the element, or the specified + * {@code position}.
          10. *
          11. Wait for initiated navigations to either succeed or fail, unless {@code noWaitAfter} option is set.
          12. *
          * *

          If the element is detached from the DOM at any moment during the action, this method throws. * - *

          When all steps combined have not finished during the specified {@code timeout}, this method throws a {@code TimeoutError}. Passing - * zero timeout disables this. + *

          When all steps combined have not finished during the specified {@code timeout}, this method throws a {@code + * TimeoutError}. Passing zero timeout disables this. + * + * @since v1.8 */ - void click(ClickOptions options); + void click(@Nullable ClickOptions options); /** * Returns the content frame for element handles referencing iframe nodes, or {@code null} otherwise + * + * @since v1.8 */ - Frame contentFrame(); + @Nullable Frame contentFrame(); /** * This method double clicks the element by performing the following steps: *

            - *
          1. Wait for actionability checks on the element, unless - * {@code force} option is set.
          2. + *
          3. Wait for actionability checks on the element, unless {@code + * force} option is set.
          4. *
          5. Scroll the element into view if needed.
          6. - *
          7. Use {@link Page#mouse Page.mouse()} to double click in the center of the element, or the specified {@code position}.
          8. - *
          9. Wait for initiated navigations to either succeed or fail, unless {@code noWaitAfter} option is set. Note that if the first - * click of the {@code dblclick()} triggers a navigation event, this method will throw.
          10. + *
          11. Use {@link com.microsoft.playwright.Page#mouse Page.mouse()} to double click in the center of the element, or the + * specified {@code position}.
          12. *
          * *

          If the element is detached from the DOM at any moment during the action, this method throws. * - *

          When all steps combined have not finished during the specified {@code timeout}, this method throws a {@code TimeoutError}. Passing - * zero timeout disables this. + *

          When all steps combined have not finished during the specified {@code timeout}, this method throws a {@code + * TimeoutError}. Passing zero timeout disables this. * *

          NOTE: {@code elementHandle.dblclick()} dispatches two {@code click} events and a single {@code dblclick} event. + * + * @since v1.8 */ default void dblclick() { dblclick(null); @@ -1331,42 +1540,50 @@ default void dblclick() { /** * This method double clicks the element by performing the following steps: *

            - *
          1. Wait for actionability checks on the element, unless - * {@code force} option is set.
          2. + *
          3. Wait for actionability checks on the element, unless {@code + * force} option is set.
          4. *
          5. Scroll the element into view if needed.
          6. - *
          7. Use {@link Page#mouse Page.mouse()} to double click in the center of the element, or the specified {@code position}.
          8. - *
          9. Wait for initiated navigations to either succeed or fail, unless {@code noWaitAfter} option is set. Note that if the first - * click of the {@code dblclick()} triggers a navigation event, this method will throw.
          10. + *
          11. Use {@link com.microsoft.playwright.Page#mouse Page.mouse()} to double click in the center of the element, or the + * specified {@code position}.
          12. *
          * *

          If the element is detached from the DOM at any moment during the action, this method throws. * - *

          When all steps combined have not finished during the specified {@code timeout}, this method throws a {@code TimeoutError}. Passing - * zero timeout disables this. + *

          When all steps combined have not finished during the specified {@code timeout}, this method throws a {@code + * TimeoutError}. Passing zero timeout disables this. * *

          NOTE: {@code elementHandle.dblclick()} dispatches two {@code click} events and a single {@code dblclick} event. + * + * @since v1.8 */ - void dblclick(DblclickOptions options); + void dblclick(@Nullable DblclickOptions options); /** * The snippet below dispatches the {@code click} event on the element. Regardless of the visibility state of the element, * {@code click} is dispatched. This is equivalent to calling element.click(). + * + *

          Usage *

          {@code
              * elementHandle.dispatchEvent("click");
              * }
          * - *

          Under the hood, it creates an instance of an event based on the given {@code type}, initializes it with {@code eventInit} properties - * and dispatches it on the element. Events are {@code composed}, {@code cancelable} and bubble by default. + *

          Under the hood, it creates an instance of an event based on the given {@code type}, initializes it with {@code + * eventInit} properties and dispatches it on the element. Events are {@code composed}, {@code cancelable} and bubble by + * default. * *

          Since {@code eventInit} is event-specific, please refer to the events documentation for the lists of initial properties: *

          * *

          You can also specify {@code JSHandle} as the property value if you want live objects to be passed into the event: @@ -1379,6 +1596,7 @@ default void dblclick() { * }

      * * @param type DOM event type: {@code "click"}, {@code "dragstart"}, etc. + * @since v1.8 */ default void dispatchEvent(String type) { dispatchEvent(type, null); @@ -1387,22 +1605,29 @@ default void dispatchEvent(String type) { * The snippet below dispatches the {@code click} event on the element. Regardless of the visibility state of the element, * {@code click} is dispatched. This is equivalent to calling element.click(). + * + *

      Usage *

      {@code
          * elementHandle.dispatchEvent("click");
          * }
      * - *

      Under the hood, it creates an instance of an event based on the given {@code type}, initializes it with {@code eventInit} properties - * and dispatches it on the element. Events are {@code composed}, {@code cancelable} and bubble by default. + *

      Under the hood, it creates an instance of an event based on the given {@code type}, initializes it with {@code + * eventInit} properties and dispatches it on the element. Events are {@code composed}, {@code cancelable} and bubble by + * default. * *

      Since {@code eventInit} is event-specific, please refer to the events documentation for the lists of initial properties: *

      * *

      You can also specify {@code JSHandle} as the property value if you want live objects to be passed into the event: @@ -1416,166 +1641,174 @@ default void dispatchEvent(String type) { * * @param type DOM event type: {@code "click"}, {@code "dragstart"}, etc. * @param eventInit Optional event-specific initialization properties. + * @since v1.8 */ - void dispatchEvent(String type, Object eventInit); + void dispatchEvent(String type, @Nullable Object eventInit); /** * Returns the return value of {@code expression}. * - *

      The method finds an element matching the specified selector in the {@code ElementHandle}s subtree and passes it as a first - * argument to {@code expression}. See Working with selectors for more - * details. If no elements match the selector, the method throws an error. + *

      The method finds an element matching the specified selector in the {@code ElementHandle}s subtree and passes it as a + * first argument to {@code expression}. If no elements match the selector, the method throws an error. * *

      If {@code expression} returns a Promise, then {@link - * ElementHandle#evalOnSelector ElementHandle.evalOnSelector()} would wait for the promise to resolve and return its value. + * com.microsoft.playwright.ElementHandle#evalOnSelector ElementHandle.evalOnSelector()} would wait for the promise to + * resolve and return its value. * - *

      Examples: + *

      Usage *

      {@code
          * ElementHandle tweetHandle = page.querySelector(".tweet");
          * assertEquals("100", tweetHandle.evalOnSelector(".like", "node => node.innerText"));
          * assertEquals("10", tweetHandle.evalOnSelector(".retweets", "node => node.innerText"));
          * }
      * - * @param selector A selector to query for. See working with selectors for more - * details. - * @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted - * as a function. Otherwise, evaluated as an expression. + * @param selector A selector to query for. + * @param expression JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the function is + * automatically invoked. + * @since v1.9 */ - default Object evalOnSelector(String selector, String expression) { + default @Nullable Object evalOnSelector(String selector, String expression) { return evalOnSelector(selector, expression, null); } /** * Returns the return value of {@code expression}. * - *

      The method finds an element matching the specified selector in the {@code ElementHandle}s subtree and passes it as a first - * argument to {@code expression}. See Working with selectors for more - * details. If no elements match the selector, the method throws an error. + *

      The method finds an element matching the specified selector in the {@code ElementHandle}s subtree and passes it as a + * first argument to {@code expression}. If no elements match the selector, the method throws an error. * *

      If {@code expression} returns a Promise, then {@link - * ElementHandle#evalOnSelector ElementHandle.evalOnSelector()} would wait for the promise to resolve and return its value. + * com.microsoft.playwright.ElementHandle#evalOnSelector ElementHandle.evalOnSelector()} would wait for the promise to + * resolve and return its value. * - *

      Examples: + *

      Usage *

      {@code
          * ElementHandle tweetHandle = page.querySelector(".tweet");
          * assertEquals("100", tweetHandle.evalOnSelector(".like", "node => node.innerText"));
          * assertEquals("10", tweetHandle.evalOnSelector(".retweets", "node => node.innerText"));
          * }
      * - * @param selector A selector to query for. See working with selectors for more - * details. - * @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted - * as a function. Otherwise, evaluated as an expression. + * @param selector A selector to query for. + * @param expression JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the function is + * automatically invoked. * @param arg Optional argument to pass to {@code expression}. + * @since v1.9 */ - Object evalOnSelector(String selector, String expression, Object arg); + @Nullable Object evalOnSelector(String selector, String expression, @Nullable Object arg); /** * Returns the return value of {@code expression}. * - *

      The method finds all elements matching the specified selector in the {@code ElementHandle}'s subtree and passes an array of - * matched elements as a first argument to {@code expression}. See Working - * with selectors for more details. + *

      The method finds all elements matching the specified selector in the {@code ElementHandle}'s subtree and passes an array + * of matched elements as a first argument to {@code expression}. * *

      If {@code expression} returns a Promise, then {@link - * ElementHandle#evalOnSelectorAll ElementHandle.evalOnSelectorAll()} would wait for the promise to resolve and return its - * value. + * com.microsoft.playwright.ElementHandle#evalOnSelectorAll ElementHandle.evalOnSelectorAll()} would wait for the promise + * to resolve and return its value. * - *

      Examples: + *

      Usage *

      {@code
          * ElementHandle feedHandle = page.querySelector(".feed");
          * assertEquals(Arrays.asList("Hello!", "Hi!"), feedHandle.evalOnSelectorAll(".tweet", "nodes => nodes.map(n => n.innerText)"));
          * }
      * - * @param selector A selector to query for. See working with selectors for more - * details. - * @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted - * as a function. Otherwise, evaluated as an expression. + * @param selector A selector to query for. + * @param expression JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the function is + * automatically invoked. + * @since v1.9 */ - default Object evalOnSelectorAll(String selector, String expression) { + default @Nullable Object evalOnSelectorAll(String selector, String expression) { return evalOnSelectorAll(selector, expression, null); } /** * Returns the return value of {@code expression}. * - *

      The method finds all elements matching the specified selector in the {@code ElementHandle}'s subtree and passes an array of - * matched elements as a first argument to {@code expression}. See Working - * with selectors for more details. + *

      The method finds all elements matching the specified selector in the {@code ElementHandle}'s subtree and passes an array + * of matched elements as a first argument to {@code expression}. * *

      If {@code expression} returns a Promise, then {@link - * ElementHandle#evalOnSelectorAll ElementHandle.evalOnSelectorAll()} would wait for the promise to resolve and return its - * value. + * com.microsoft.playwright.ElementHandle#evalOnSelectorAll ElementHandle.evalOnSelectorAll()} would wait for the promise + * to resolve and return its value. * - *

      Examples: + *

      Usage *

      {@code
          * ElementHandle feedHandle = page.querySelector(".feed");
          * assertEquals(Arrays.asList("Hello!", "Hi!"), feedHandle.evalOnSelectorAll(".tweet", "nodes => nodes.map(n => n.innerText)"));
          * }
      * - * @param selector A selector to query for. See working with selectors for more - * details. - * @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted - * as a function. Otherwise, evaluated as an expression. + * @param selector A selector to query for. + * @param expression JavaScript expression to be evaluated in the browser context. If the expression evaluates to a function, the function is + * automatically invoked. * @param arg Optional argument to pass to {@code expression}. + * @since v1.9 */ - Object evalOnSelectorAll(String selector, String expression, Object arg); + @Nullable Object evalOnSelectorAll(String selector, String expression, @Nullable Object arg); /** * This method waits for actionability checks, focuses the - * element, fills it and triggers an {@code input} event after filling. Note that you can pass an empty string to clear the input - * field. + * element, fills it and triggers an {@code input} event after filling. Note that you can pass an empty string to clear the + * input field. * - *

      If the target element is not an {@code }, {@code of everything' + + '

      This is a label
      ' + + '' + + '', + target: '#t2', + accessibleText: 'This is the value of everything', + }, + + { + html: + '
      This span' + + ' is of everything
      ' + + '
      This is a label
      ' + + '' + + '', + target: '#t2', + accessibleText: 'This not a span is the value of everything', + }, + + { + html: + '' + + '', + target: '#target', + accessibleText: 'Chosen', + }, + + { + html: + '' + + '' + + '', + target: '#target', + // accessibleText: '', + // Chrome and axe-core disagree, we follow Chrome and spec. + accessibleText: 'Chosen', + }, + + { + html: + '', + target: '#target', + accessibleText: '', + }, + + { + html: + '' + + '', + target: '#target', + // accessibleText: '', + // Chrome and axe-core disagree, we follow Chrome and spec. + accessibleText: 'Chosen', + }, + + { + html: '', + target: 'a', + accessibleText: 'Hello', + }, + + { + html: 'Hello', + target: 'a', + accessibleText: 'Hello', + }, + + { + html: '', + target: 'button', + accessibleText: 'Hello', + }, + + { + html: 'Hello', + target: 'summary', + // accessibleText: 'Hello', + // Chrome and axe-core disagree, we follow Chrome and spec. + accessibleText: '', + }, + + { + html: '', + target: 'a', + accessibleText: 'Hello', + }, + + { + html: 'Hello', + target: 'a', + accessibleText: 'Hello', + }, + + { + html: '', + target: 'button', + accessibleText: 'Hello', + }, + + { + html: 'Hello', + target: 'summary', + // accessibleText: 'Hello', + // Chrome and axe-core disagree, we follow Chrome and spec. + accessibleText: '', + }, + + { + html: 'HelloWorld', + target: 'a', + accessibleText: 'HelloWorld', + }, + + { + html: 'Hello
      World
      ', + target: 'a', + accessibleText: 'Hello World', + }, + + { + html: + '', + target: 'a', + accessibleText: '', + }, + + { + html: '', + target: 'input', + accessibleText: '', + }, + + { + html: + '', + target: 'button', + accessibleText: 'Hello World', + }, + + { + html: + '
      This is of everything
      ' + + '
      ', + target: '#t1', + accessibleText: 'ARIA Label', + }, + + { + html: '
      ', + target: 'input', + accessibleText: 'I will be king', + }, + + { + html: + '
      ' + + '
      ', + target: 'input', + accessibleText: 'you will be queen', + }, + + { + html: '
      ', + target: 'input', + accessibleText: 'Fallback content heroes', + }, + + { + html: + '
      Hello
      ' + + '
      Not part of a11yName
      Fail
      ', + target: 'figure', + accessibleText: 'Hello', + }, + + { + html: + '
      Not part of a11yName
      Fail
      ', + target: 'figure', + accessibleText: 'Hello', + }, + + { + html: + '
      Not part of a11yName
      Hello
      ', + target: 'figure', + accessibleText: 'Hello', + }, + + { + html: + '
      Not part of a11yName
      ', + target: 'figure', + // accessibleText: 'Hello', + // Chrome and axe-core disagree, we follow Chrome and spec. + accessibleText: '', + }, + + { + html: '
      Hello
      ', + target: 'figure', + // accessibleText: 'Hello', + // Chrome and axe-core disagree, we follow Chrome and spec. + accessibleText: '', + }, + + { + html: '
      ', + target: 'figure', + // accessibleText: 'Hello', + // Chrome and axe-core disagree, we follow Chrome and spec. + accessibleText: '', + }, + + { + html: + '
      Hello
      World
      ' + + '', + target: 'img', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'img', + accessibleText: 'Hello World', + }, + + { + html: 'Hello World', + target: 'img', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'img', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello', + }, + + { + html: '', + target: 'input', + accessibleText: 'Submit', + }, + + { + html: '', + target: 'input', + accessibleText: 'Reset', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello', + }, + + { + html: '', + target: 'input', + // accessibleText: 'Hello', + // Chrome and axe-core disagree. We follow Chrome and spec. + accessibleText: 'Reset', + }, + + { + html: '', + target: 'input', + // accessibleText: 'Hello', + // Chrome and axe-core disagree. We follow Chrome and spec. + accessibleText: 'Submit', + }, + + { + html: + '
      Hello
      World
      ' + + '
      ', + target: 'table', + accessibleText: 'Hello World', + }, + + { + html: '
      ', + target: 'table', + accessibleText: 'Hello World', + }, + + { + html: + '
      Hello World
      Stuff
      ', + target: 'table', + accessibleText: 'Hello World', + }, + + { + html: '
      ', + target: 'table', + accessibleText: 'Hello World', + }, + + { + html: '
      ', + target: 'table', + accessibleText: 'Hello World', + }, + + { + html: '
      ', + target: 'table', + accessibleText: 'Hello World', + }, + + { + html: + '
      Hello
      World
      ' + + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '
      Hello
      World
      ' + + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '
      Hello
      World
      ' + + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '
      Hello
      World
      ' + + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '
      Hello
      World
      ' + + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '
      Hello
      World
      ' + + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '
      Hello
      World
      ' + + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '' + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '' + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '' + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '' + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '' + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '' + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: + '' + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: '', + }, + + { + html: '', + target: 'input', + accessibleText: '', + }, + + { + html: '', + target: 'input', + accessibleText: '', + }, + + { + html: '', + target: 'input', + accessibleText: '', + }, + + { + html: '', + target: 'input', + accessibleText: '', + }, + + { + html: '', + target: 'input', + accessibleText: '', + }, + + { + html: '', + target: 'input', + accessibleText: '', + }, + + { + html: + '
      Hello
      World
      ' + + '', + target: 'textarea', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'textarea', + accessibleText: 'Hello World', + }, + + { + html: + '', + target: 'textarea', + accessibleText: 'Hello World', + }, + + { + html: + '' + '', + target: 'textarea', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'textarea', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'textarea', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'textarea', + accessibleText: '', + }, + + { + html: + '
      Hello
      World
      ' + + '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'input', + accessibleText: 'Submit', + }, + + { + html: + '
      Hello
      World
      ' + + '', + target: 'a', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'a', + accessibleText: 'Hello World', + }, + + { + html: 'Hello World', + target: 'a', + // axe-core does not need href to be present, but spec and Chrome do. + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'a', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'a', + accessibleText: '', + }, + + { + html: + '' + + '' + + '' + + '' + + '' + + '
      ' + + 'Descriptive Link Text' + + '
      ' + + '
      ', + target: 'a', + accessibleText: 'Descriptive Link Text', + }, + + { + html: + '
      Hello
      World
      ' + + '', + target: 'button', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'button', + accessibleText: 'Hello World', + }, + + { + html: + '', + target: 'button', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'button', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'button', + accessibleText: '', + }, + + { + html: '
      Hello
      World
      ', + target: 'cite', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'cite', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'cite', + accessibleText: 'Hello World', + }, + + { + html: '', + target: 'cite', + accessibleText: '', + }, +]; diff --git a/playwright/src/test/assets/axe-core/implicit-role.js b/playwright/src/test/assets/axe-core/implicit-role.js new file mode 100644 index 000000000..2ba324c48 --- /dev/null +++ b/playwright/src/test/assets/axe-core/implicit-role.js @@ -0,0 +1,530 @@ +module.exports = [ + { + html: '', + target: '#target', + role: 'button', + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '', + target: '#target', + role: null, + }, + + { + html: 'link', + target: '#target', + role: 'link', + }, + + { + html: 'link', + target: '#target', + role: null, + }, + + { + html: 'link', + target: '#target', + role: 'link', + }, + + { + html: 'link', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: 'contentinfo', + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: 'form', + }, + + { + html: '
      foo
      ', + target: '#target', + role: 'form', + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: 'banner', + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: 'value', + target: '#target', + role: 'img', + }, + + { + html: '', + target: '#target', + role: 'img', + }, + + { + html: '', + target: '#target', + role: 'presentation', + }, + + { + html: '', + target: '#target', + role: 'img', + }, + + { + html: '', + target: '#target', + role: 'img', + }, + + { + html: '', + target: '#target', + role: 'button', + }, + + { + html: '', + target: '#target', + role: 'button', + }, + + { + html: '', + target: '#target', + role: 'button', + }, + + { + html: '', + target: '#target', + role: 'button', + }, + + { + html: '', + target: '#target', + role: 'checkbox', + }, + + { + html: '', + target: '#target', + role: 'textbox', + }, + + { + html: '', + target: '#target', + role: 'textbox', + }, + + { + html: '', + target: '#target', + role: 'textbox', + }, + + { + html: '', + target: '#target', + role: 'textbox', + }, + + { + html: '', + target: '#target', + role: 'textbox', + }, + + { + html: '', + target: '#target', + role: 'textbox', + }, + + { + html: '', + target: '#target', + role: 'textbox', + }, + + { + html: '', + target: '#target', + role: 'textbox', + }, + + { + html: '', + target: '#target', + role: 'combobox', + }, + + { + html: '
      ', + target: '#target', + role: 'textbox', + }, + + { + html: '', + target: '#target', + role: 'textbox', + }, + + { + html: '', + target: '#target', + role: 'spinbutton', + }, + + { + html: '', + target: '#target', + role: 'radio', + }, + + { + html: '', + target: '#target', + role: 'slider', + }, + + { + html: '', + target: '#target', + role: 'searchbox', + }, + + { + html: '', + target: '#target', + role: 'combobox', + }, + + { + html: '', + target: '#target', + role: 'textbox', + }, + + { + html: '
      ', + target: '#target', + role: 'region', + }, + + { + html: '
      foo
      ', + target: '#target', + role: 'region', + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '
      ', + target: '#target', + role: null, + }, + + { + html: '', + target: '#target', + role: 'listbox', + }, + + { + html: '', + target: '#target', + role: 'listbox', + }, + + { + html: '', + target: '#target', + role: 'combobox', + }, + + { + html: '', + target: '#target', + role: 'combobox', + }, + + // ---------- Table related cases ---------- + { + html: '
      ', + target: '#target', + role: 'cell', + }, + + { + html: '
      ', + target: '#target', + role: 'gridcell', + }, + + { + html: '
      ', + target: '#target', + role: 'gridcell', + }, + + { + html: '
      ', + target: '#target', + role: 'rowheader', + }, + + { + html: '
      ', + target: '#target', + role: 'columnheader', + }, + // All TH in thead row -> columnheader + { + html: '
      AB
      12
      ', + target: '#target', + role: 'columnheader', + }, + + { + html: '
      AB
      12
      ', + target: '#target', + role: 'columnheader', + }, + // TH with TD sibling in same row -> rowheader + { + html: '
      AB
      12
      ', + target: '#target', + role: 'rowheader', + }, + // TH in tbody with TD sibling -> rowheader + { + html: '
      AB
      12
      34
      ', + target: '#target', + role: 'rowheader', + }, + // TH in tbody, second row, with TD sibling -> rowheader + { + html: '
      AB
      12
      34
      ', + target: '#target', + role: 'rowheader', + }, + // TH with TD above and below in same column -> rowheader + { + html: '
      AB
      56
      12
      34
      ', + target: '#target', + role: 'rowheader', + }, + // TH only cell in row -> no role + { + html: '
      Only
      ', + target: '#target', + role: null, + }, + // TH only cell in row, but table has multiple rows -> columnheader + { + html: '
      Header
      Data
      ', + target: '#target', + role: 'columnheader', + }, + // TH surrounded by other TH -> columnheader + { + html: '
      ABC
      ', + target: '#target', + role: 'columnheader', + }, + // Row with first cell as TD -> rowheader + { + html: '
      ABC
      ', + target: '#target', + role: 'rowheader', + }, + // Row with last cell as TD -> rowheader + { + html: '
      ABC
      ', + target: '#target', + role: 'rowheader', + }, + // scope="col" -> columnheader + { + html: '
      AB
      ', + target: '#target', + role: 'columnheader', + }, + // scope="row" -> rowheader + { + html: '
      AB
      ', + target: '#target', + role: 'rowheader', + }, + // scope="colgroup" -> columnheader + { + html: '
      AB
      ', + target: '#target', + role: 'columnheader', + }, + // scope="rowgroup" -> rowheader + { + html: '
      AB
      ', + target: '#target', + role: 'rowheader', + }, +]; diff --git a/playwright/src/test/assets/background-color.html b/playwright/src/test/assets/background-color.html new file mode 100644 index 000000000..58add145a --- /dev/null +++ b/playwright/src/test/assets/background-color.html @@ -0,0 +1,10 @@ + + + + + \ No newline at end of file diff --git a/playwright/src/test/assets/beforeunload.html b/playwright/src/test/assets/beforeunload.html new file mode 100644 index 000000000..332ac464e --- /dev/null +++ b/playwright/src/test/assets/beforeunload.html @@ -0,0 +1,10 @@ +
      beforeunload demo.
      + + diff --git a/playwright/src/test/assets/blob-1.42.zip b/playwright/src/test/assets/blob-1.42.zip new file mode 100644 index 000000000..da16671cc Binary files /dev/null and b/playwright/src/test/assets/blob-1.42.zip differ diff --git a/playwright/src/test/assets/blob-1.52.zip b/playwright/src/test/assets/blob-1.52.zip new file mode 100644 index 000000000..5b1d5cf4a Binary files /dev/null and b/playwright/src/test/assets/blob-1.52.zip differ diff --git a/playwright/src/test/assets/button-overlay-oopif.html b/playwright/src/test/assets/button-overlay-oopif.html new file mode 100644 index 000000000..7e1f136fc --- /dev/null +++ b/playwright/src/test/assets/button-overlay-oopif.html @@ -0,0 +1,39 @@ + + diff --git a/playwright/src/test/assets/cached/bfcached.html b/playwright/src/test/assets/cached/bfcached.html new file mode 100644 index 000000000..8c12b001c --- /dev/null +++ b/playwright/src/test/assets/cached/bfcached.html @@ -0,0 +1,11 @@ + + +
      BFCached
      + diff --git a/playwright/src/test/assets/cached/one-style.css b/playwright/src/test/assets/cached/one-style.css new file mode 100644 index 000000000..04e7110b4 --- /dev/null +++ b/playwright/src/test/assets/cached/one-style.css @@ -0,0 +1,3 @@ +body { + background-color: pink; +} diff --git a/playwright/src/test/assets/cached/one-style.html b/playwright/src/test/assets/cached/one-style.html new file mode 100644 index 000000000..4760f2b9f --- /dev/null +++ b/playwright/src/test/assets/cached/one-style.html @@ -0,0 +1,2 @@ + +
      hello, world!
      diff --git a/playwright/src/test/assets/callback.js b/playwright/src/test/assets/callback.js new file mode 100644 index 000000000..1393adeac --- /dev/null +++ b/playwright/src/test/assets/callback.js @@ -0,0 +1,5 @@ +function callme(cb) { + return cb(); +} + +module.exports = callme; diff --git a/playwright/src/test/assets/checkerboard.html b/playwright/src/test/assets/checkerboard.html new file mode 100644 index 000000000..dd21fcc53 --- /dev/null +++ b/playwright/src/test/assets/checkerboard.html @@ -0,0 +1,43 @@ + + + + +
      +
      +
      +
      +
      +
      + + \ No newline at end of file diff --git a/playwright/src/test/assets/chromium-linux.zip b/playwright/src/test/assets/chromium-linux.zip new file mode 100644 index 000000000..9c00ec080 Binary files /dev/null and b/playwright/src/test/assets/chromium-linux.zip differ diff --git a/playwright/src/test/assets/client-certificates/README.md b/playwright/src/test/assets/client-certificates/README.md new file mode 100644 index 000000000..2c73bd92f --- /dev/null +++ b/playwright/src/test/assets/client-certificates/README.md @@ -0,0 +1,7 @@ +# Client Certificate test-certificates + +Regenerate all certificates by running: + +``` +bash generate.sh +``` diff --git a/playwright/src/test/assets/client-certificates/client/localhost/localhost.csr b/playwright/src/test/assets/client-certificates/client/localhost/localhost.csr new file mode 100644 index 000000000..cbf60ba43 --- /dev/null +++ b/playwright/src/test/assets/client-certificates/client/localhost/localhost.csr @@ -0,0 +1,27 @@ +-----BEGIN CERTIFICATE REQUEST----- +MIIEizCCAnMCAQAwFDESMBAGA1UEAwwJbG9jYWxob3N0MIICIjANBgkqhkiG9w0B +AQEFAAOCAg8AMIICCgKCAgEAuxTIfOTWJzsLSYT/RXu6eUYe95oFA0gMM6pdQAws +U08ufU8S68UzBIAb6zdwDqM6LD5FqLrwaTsUW73dKefb003EgA19L3sZTHSwnSv9 +g9+rnKw/8EA+1thFo7h3EfdWkO/nuxnPfEnHu5oxMk/mCu+hdjfgh01mxc00PIO/ +wioxZtuhzKNIUu+qQAj70Dwbkzy3Zb1QAnj+02AUYnrVTYhusmP4pjrfYgAWU1x4 +WN+XTSI27LnQHE8t8OxuICFwqEEPcJg4pCFNQgmO0gcRDbd4U7JgQ0xMXZ9na9k0 +f1GOgtjKsz5IIDrAwLnrIOEXiIYlNaQ/v28BrlWytaOHGFKmDxAbGXHz1WuftmR1 +vYQivC5fkXU3+QKWoGPZaLIhA7/ZOMSVgoo+Rv+mS6Mze/6LphatUMcI1oYX4ZBY +FrsVsAeAO/FPZDcwVct0bdPCRRFBQpgl6DxMyItHMexNHwURi4YHwhYiBBe+Njc1 +tTh6dniA11MUVC5WmKME7CxgXxHVXE4MYcf/w1x4sOnxHneb1bCa8jOPELRc6byR +8mk23fbBP42EPkrgpCtLhbHgskLKobLFav43xaIiYFn744U7rbINI+5RfJ8BH5Kw +CB5RlAsymPxwDNcPXyyyeHEEUAQmtnJPrGPSGMN/QODgCWRXEvY556NGx0D5riu7 +MXkCAwEAAaAyMDAGCSqGSIb3DQEJDjEjMCEwHwYDVR0RBBgwFoIJbG9jYWxob3N0 +ggkxMjcuMC4wLjEwDQYJKoZIhvcNAQELBQADggIBAEYqpx28FFRHqXfyumTkkFb/ +hrlUD9qKUYSdjpsPLFRUYiLofNlYhCtEFEuHyLkNHqLO5Z6E7yOpm/HvdXY0eBQy +tK0verggKXy8MnpLVtsFOf4DgenTwFRG3NbNk2/KynwiAwJ0iwOdDfAmwrzYFLeR +uXysPE0lGJu277akuo/PDg3QEY44iDJgI4rqtY25sR8J23M9Roa5qN4bdaXl6l10 +UJhdugTG90gRFmmUVLLRa21A3j4m7pvWHu7zYJN7ylS/NQ6ZEnpNno7Ie6MLzrm6 +h8MOSoxtmrXi0e3aYf7PC3u3YLAjyUzHicgMdXk8SjtUXi6l3U5hU+6WBeOKKmwa +vi+FUpRfnutkWpinNqikmMw0Sqy+bpXwbwgm2oD6driiMneBCT37gW/IyUPWVxzg +dVgeQIt3i8SMwnGUrzfVo/gqjq4qFBpzS3h9jPPrMYQN2LQdmyo13R9UH26cLGE1 +cgVmqUKa11kX8353wfA36JuW5yGv2yaK4V1kwFISznMvk5AGdOHONdZOrN4sLIIY +7Npqp5AO1KdoYcNVptCA4n6mN/30fTmA/W1ajsKcfIn5RlmvdgpooKoEgaU/X9RL +d2ydIpijWbQqm+nF9skpO4jIFPfuQj6mMXCPWtsvbpHCoo0iMHHWfVFcpvsXGYN2 +6ji5z3opVapp1m5uTmcA +-----END CERTIFICATE REQUEST----- diff --git a/playwright/src/test/assets/client-certificates/client/localhost/localhost.ext b/playwright/src/test/assets/client-certificates/client/localhost/localhost.ext new file mode 100644 index 000000000..d4d022726 --- /dev/null +++ b/playwright/src/test/assets/client-certificates/client/localhost/localhost.ext @@ -0,0 +1 @@ +subjectAltName=DNS:localhost,DNS:127.0.0.1 diff --git a/playwright/src/test/assets/client-certificates/client/localhost/localhost.key b/playwright/src/test/assets/client-certificates/client/localhost/localhost.key new file mode 100644 index 000000000..7f6adba53 --- /dev/null +++ b/playwright/src/test/assets/client-certificates/client/localhost/localhost.key @@ -0,0 +1,52 @@ +-----BEGIN PRIVATE KEY----- +MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC7FMh85NYnOwtJ +hP9Fe7p5Rh73mgUDSAwzql1ADCxTTy59TxLrxTMEgBvrN3AOozosPkWouvBpOxRb +vd0p59vTTcSADX0vexlMdLCdK/2D36ucrD/wQD7W2EWjuHcR91aQ7+e7Gc98Sce7 +mjEyT+YK76F2N+CHTWbFzTQ8g7/CKjFm26HMo0hS76pACPvQPBuTPLdlvVACeP7T +YBRietVNiG6yY/imOt9iABZTXHhY35dNIjbsudAcTy3w7G4gIXCoQQ9wmDikIU1C +CY7SBxENt3hTsmBDTExdn2dr2TR/UY6C2MqzPkggOsDAuesg4ReIhiU1pD+/bwGu +VbK1o4cYUqYPEBsZcfPVa5+2ZHW9hCK8Ll+RdTf5ApagY9losiEDv9k4xJWCij5G +/6ZLozN7/oumFq1QxwjWhhfhkFgWuxWwB4A78U9kNzBVy3Rt08JFEUFCmCXoPEzI +i0cx7E0fBRGLhgfCFiIEF742NzW1OHp2eIDXUxRULlaYowTsLGBfEdVcTgxhx//D +XHiw6fEed5vVsJryM48QtFzpvJHyaTbd9sE/jYQ+SuCkK0uFseCyQsqhssVq/jfF +oiJgWfvjhTutsg0j7lF8nwEfkrAIHlGUCzKY/HAM1w9fLLJ4cQRQBCa2ck+sY9IY +w39A4OAJZFcS9jnno0bHQPmuK7sxeQIDAQABAoICAA5XaYcpg8E+JX9dUrRg58qk +NXuFsxytSUIsrTlbtYotZ8LzbN/mHiMaLwm5Fj4JBUye+XgV3Jg0jzr5MxsjSxbH +v2iRoCcjqKzTxTZHSQfy/ZTlH4GrayXNLol+eqJF87zopzsQn3dHsKgRCfRxa5Er +DZWicvPsWxSOxpJdBzY7Rc48yAqH+eNhvAtspOExumtvHCAQgzGtVNufYfCque9X +piTGxSj5GmbI2u1JCXDGszKWjN9Y3ztMVplBhq+v4JMFacmX4b+zTdjiIrC3GfeT +OQYxhm+iSbhjn+oEnKGl/ubI98EF5UGTP3OGzR+YIdW1cuTJ0pk6SUa0Cx8hihmR +rnUgxbXjR/sB383ES4kYVT+tm/a8PIvPd1gu4j28sNRXGgVZ8GU76Y2ZITm3eoDr +7PzVWsTe+vbxBXenlcmzO9rj91yK0eDBaJnwAIPxHGFxTkQkx3T2nnWStkHrvT6h +15fHITgKWE+K2FMCIJQj5gIT3qGnZxZDLIgmyowVV9ZXuI2XchehD+L7nVsMhsby +yIITglz1miYgy7zVL0oolIXuE0eQ4xAZlu1D5wjAQy/VzyB7OYY6bTErC0EmXjNS +3QAYsI+Kn7YgjNJJNuJ5cC2S8nHNJ2uTJ54KWeA5s1Ry8B5kJrMGZxCT6Uk3POcG +Ry5BxOczToKIgXeqm4IBAoIBAQDcvNBNXANexHn4r3yXgmL9IH4QXHAJ3h7tO6Ng +zZh4K5VmoxSJ82CWQkJrs827F1kE2T9Mq6YPvXrh5VlKZjR+II2ZG7KqT00SULDy +kSgG8OU/2+DWhyoQ6nt1RhXKDz0s4SjHwkeKwBFexTHf5ed+TILPfnPJIUX89gxV +4EKL+EsqOsT6CMS7gruUuaA29VGVDneBw9KxKD9IdNXDrbot0DhidIYW1QkCed9g +tnb2QvJrQmTkupUDI+HdWqOfpcBHwf9FIEI1q6cJtpVYSuaZfZX7hbvSHsTt9rwt +b6gkiuPBy6qoXP1LWHc093tSzXEk1CWy0F4cCPi4r7UWqmWtAoIBAQDY95LGRUTn +RKRSl2C5uZnsME5G/6XkqVcGhP5TOnT3/li/NLESZDaF+4iEhEh4M1oWVqShq4ps +S98baYebriZDMmBm8L1YM63N+fhiI3q1+TF26f7zk6XPFQr88WIli58JmrK02EXG +4XG/GBtzqfsnueBnwBGz5iE8phXqWyPs1/3qGyK+BHnUqnr3BAZpg8aw2PEjMzoC +ChfLMzSJZRGDNp7sslkMJ9H9CXoMZsG5YJkQp7aSBD1SI5rJ2q7JC3PmOR913CgU +0DDhxyJhD77aTEwrZOByaHq8F8KxZ8cl+YRl/tnWu7Gwa2pfjnC9DCk1ARCuDcSg +OW7JTtsd3zx9AoIBAH17uM7BaAkPmGcPG7zlmnBbcE7MvcReSSaDqLT3K53k6OGY +A60Idff1YtznMiUReMGQ3rMvQQ/hn2Gbh88Lmvu4dcZ8QG0g96dZx72dVyva9ff/ +fyl1XSyQn+5jES/0ycohlZU5lIID/dvqLhgiEh9yT0q1kAzepXLQTOLkwe/gDprL +Hf8lzPDruMcrXzDe9KnPt5BFShj70D3YbUz4DcbNf8A4jaGdKaoGrj3EfIwyMq1W +6RQ+HUfTtiqnxCyVhWFFn2Aknn70Pdj/upaevciz4/dAZy1j4H+GrCMIPoXHjwI0 +Tae4dSXH/LxXk/vWXmOZVnT4jwdQ8lPLTx67b2ECggEAK5t20IrTknflXwQ12J5J +JYN/+B0hxpeSeij4xNmW8NEaHTQF8uBZZQxtH9VGi4ImtR6s8CF+LM4DBYtsSgny +fsb9QTNZmwSoBiIbnf3rh++R1YiqSWJ/jON51eTeCRXK3S9Og7KEM7jUF8hMnC6p +4A4n4DJmXHYAcCQhe3zd95hh3E+f5/kWU3wAQu14LHTj1l+D98MwAYDtz1V3VbYO +kwTDZGdkJmFKf0UMVrnAbfXQTdyngSmA+aVWUwO05Yt7u+X3QMUC+UvuxzIy4rc7 +cLytAnu/8L63DF7qLqXhDOzdg3J5bgNDb2Xnd1U1q4lqLtEL/S+fOWTRs3w55gMc +MQKCAQA0tO3yakIOlizE7qlJye2n2Y/q0nSx1iFlKqEe1ja0O7/t+UzfklBiaDhA +NAqYOiUsDsL/vf76KQ0uE/v0No/36SKvBuQxozdNEGlZHf7CnsrIg1w9llrJgkYA +1FoSHgHCbC84+dUoonjYg9vx3Lsszw5O1bmwqTBaGSSglIr3f+a3zxtQUquxNEPS +advAKAdvXsNECj2cMkv3mxSokGQtd/s/rpvxJ8zi5nq5ig80Gfe/6GJpwJnC+sLr ++tn38FNfk5pKXk8jBXjyLtMNDb2iJbiTa1iX1P76Ae2jtexSd2gELNu7oWbotb/O +DjCwHSmcSUmAmx7IXfoyRQuKLeRw +-----END PRIVATE KEY----- diff --git a/playwright/src/test/assets/client-certificates/client/localhost/localhost.pem b/playwright/src/test/assets/client-certificates/client/localhost/localhost.pem new file mode 100644 index 000000000..5c1a67505 --- /dev/null +++ b/playwright/src/test/assets/client-certificates/client/localhost/localhost.pem @@ -0,0 +1,30 @@ +-----BEGIN CERTIFICATE----- +MIIFKDCCAxCgAwIBAgIBATANBgkqhkiG9w0BAQsFADA2MRIwEAYDVQQDDAlsb2Nh +bGhvc3QxIDAeBgNVBAoMF0NsaWVudCBDZXJ0aWZpY2F0ZSBEZW1vMB4XDTI1MDcy +MTE1NTYxOVoXDTM1MDcxOTE1NTYxOVowFDESMBAGA1UEAwwJbG9jYWxob3N0MIIC +IjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAuxTIfOTWJzsLSYT/RXu6eUYe +95oFA0gMM6pdQAwsU08ufU8S68UzBIAb6zdwDqM6LD5FqLrwaTsUW73dKefb003E +gA19L3sZTHSwnSv9g9+rnKw/8EA+1thFo7h3EfdWkO/nuxnPfEnHu5oxMk/mCu+h +djfgh01mxc00PIO/wioxZtuhzKNIUu+qQAj70Dwbkzy3Zb1QAnj+02AUYnrVTYhu +smP4pjrfYgAWU1x4WN+XTSI27LnQHE8t8OxuICFwqEEPcJg4pCFNQgmO0gcRDbd4 +U7JgQ0xMXZ9na9k0f1GOgtjKsz5IIDrAwLnrIOEXiIYlNaQ/v28BrlWytaOHGFKm +DxAbGXHz1WuftmR1vYQivC5fkXU3+QKWoGPZaLIhA7/ZOMSVgoo+Rv+mS6Mze/6L +phatUMcI1oYX4ZBYFrsVsAeAO/FPZDcwVct0bdPCRRFBQpgl6DxMyItHMexNHwUR +i4YHwhYiBBe+Njc1tTh6dniA11MUVC5WmKME7CxgXxHVXE4MYcf/w1x4sOnxHneb +1bCa8jOPELRc6byR8mk23fbBP42EPkrgpCtLhbHgskLKobLFav43xaIiYFn744U7 +rbINI+5RfJ8BH5KwCB5RlAsymPxwDNcPXyyyeHEEUAQmtnJPrGPSGMN/QODgCWRX +EvY556NGx0D5riu7MXkCAwEAAaNjMGEwHwYDVR0RBBgwFoIJbG9jYWxob3N0ggkx +MjcuMC4wLjEwHQYDVR0OBBYEFIE6kbIR0PlzaJuZg52JqXuFFQHBMB8GA1UdIwQY +MBaAFPHaEfjJoIftSkHTb8mwme27LtifMA0GCSqGSIb3DQEBCwUAA4ICAQB7E57H +19qUD4DjLxJGAVpDphD8mZg9aR7bUd6laXZ12VQnn3+OrF+6JjJ2TIr8ssRkkzc6 +rMhRqob+DxeB94JqlFQDmwP37wJXnuTtuGj71NHQal15b5ZB28fFdwWgUlYECWyg +sYeMK5HMnNDziniRnjPoKU6f8urmUW2G8N2SOufnRar/StY/8u24IFh/vDTVJKWB +a22pVk/PIx6JcErfMx0OJdoIUZd/C9DT/a7t+Pt+t3EPVNM2fcjs9aMcg6tlU6Tp +YwHMzkFQYmcrp2QEhwy23z2E+wnLbeHTULDsHVOLudUGDcSgkW48bPNTOtZTysQ+ +P4mJf+Ju2HC/EwuVrOa14uuay9c+hC1Q1gsGbLZB8NE6jOX5QYN2a7iiUEdCdufo +wWIXEC+2dJiEji3ehwJp0q4jK15X0IOIfxLH4PholORH659DdCfpm7YAjoaPE9nr +28MMd9Lj6zWmfyeb5p0IUDpkreL2huxjXHJkmSm4dcxDxLqsP6KSPlhrPvjAVUqw +5M/jUarDAHaPLNlwqcqWODb891FIyRmc6YHtSRGujMyfJ8LRS2f9rHeyM3m2jMHf +8EahOgyQ8nvSs/a42VS97IHkGl6qufK7ZUq/VMhQRb+KbaIDN5TLtNwEQ1I40Bm9 +UOoSX/uP1PstOZvf9gnYto8sf75B+PxO692uYw== +-----END CERTIFICATE----- diff --git a/playwright/src/test/assets/client-certificates/client/self-signed/cert.pem b/playwright/src/test/assets/client-certificates/client/self-signed/cert.pem new file mode 100644 index 000000000..d14ac95b2 --- /dev/null +++ b/playwright/src/test/assets/client-certificates/client/self-signed/cert.pem @@ -0,0 +1,28 @@ +-----BEGIN CERTIFICATE----- +MIIEyzCCArOgAwIBAgIUUo60oaPj20QM6oeGSn+2CT5j7GYwDQYJKoZIhvcNAQEL +BQAwDjEMMAoGA1UEAwwDQm9iMB4XDTI1MDcyMTE1NTYyMFoXDTM1MDcxOTE1NTYy +MFowDjEMMAoGA1UEAwwDQm9iMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKC +AgEAzQMXYOZz3ILrbF9qpDng2pw2wJf1UFopehwaYyu7riWJ9+ADrhSnCSFBM3Sc +MBc/8dIR6etWwci8QwJ/MtvIU0yx4llq+53G+19Bc1teC6q/b4QCRDIcTGxOZoR+ +jfYZVjPODEyJ5y5MZIo34ZP4bu+JnpT4W7+uojm3jOoyNPqXMcc70uAhfSKG+Jfr +wZKteA4T5VKFytVcWgh4v03z8zTYeW3kD4lCsongBz6yu2dn3D6XMROnxiPwi+IR +QqX1pwnJ0UA3CTeOHEw1jA3koxWIIg44PWaPaCj9Udrhf4ew00XLPWVZP8T5rVf8 +yUfecWQCR7FueJFqoLhPMMFi17rYmGZUvw3/YkXBjay4Q9e+G2WS3Xk8u+I1sCuV +BJNBRv9DqtMC9D/N9NI8GkLrXwZmk82SXG+cQ0TSkNUHYI/03YKoqsn5H8PsG7Tc ++Y2Ca6TaCWims7lvOg7U0E6lu2h5NGcdWHFPJ9qfe+xho/yfYYwGqEKanGAu1kd5 +SbIaX6/YiM5/Pp/96MeRNrB9kLzDnZTNuGtdCawVFgbkWmfX2Z6/a0d6SvZGDzBx +xTVZRB0my01E1FP53MS8YRH98HUjGEwNRVq2e1W+aXldKppgZ85GZD3l2YTeuI0i +PJCDUzQiaWzFtWc8s13YQ1HLCOyOXF7QqMyNCiLGb4xQ56kCAwEAAaMhMB8wHQYD +VR0OBBYEFMqdCDxkZm8HxNI4MLLveAVTdH7UMA0GCSqGSIb3DQEBCwUAA4ICAQAB +MKd3WEJ8zI51FuyeTcMq6L1zk2vmKTFg6T7HZJhNZoD1AYvvsKJ8mrqeSwhxqjlE +0H2FGLY+Z8Fw3+TE1QuvTuz3gwRI+yzBEyqi/fEGCGrhOVcWaXGgLCtWG+BA4Su8 +HenK97/n3OnXUnBozRPZMH02IaLrOiEGbpaabXKCCabpm5U1oGq437e3SeAeIL7U +WxuHhHBx0yo9j7ACaCL6mz8xpk8NaRZpPy22MTlrPKwbOK2eYf3Jy5fHa/f6edTs +KqZewI7t4oe/OqKdjyTgGYkjTE3Xcmo2T/fmcAeEP3HJX267kCzBi5J3McwonWxD +N8zz9qKSf5YGQy140eEOTjjESwlPz6zfrTW92YdCIr63k9UCDL2HGQTRSxB6g4BQ +loVzKS9/BKhulGqvSGvEoj6D+qG/PgFlBtJoE71X+vSIxvdbnOVmOi/l+NGNuP1Z +nwnDtZWp4BKshhSKvqeOI+EyNMQ4FL20S4w8T+LR873jKrbd2MEuAsJiygWh+/ZJ +haHTEhFxvH/a4i8gb/SGZlFB6oyPJ+XM5kZo4fcp7PnzxhYrIaEpPq+AR/3657hm +AajXpS5lTCkNJc85QeHHj/0geDsOvfK4XUj2lgaJ0gXpgsoxnSCSq6Xox6ZqAVON +0ra1KkGBTQH+5DxJ2Gp1UBaucrLYZTfXuJ8fPYeeNQ== +-----END CERTIFICATE----- diff --git a/playwright/src/test/assets/client-certificates/client/self-signed/csr.pem b/playwright/src/test/assets/client-certificates/client/self-signed/csr.pem new file mode 100644 index 000000000..283dd45a6 --- /dev/null +++ b/playwright/src/test/assets/client-certificates/client/self-signed/csr.pem @@ -0,0 +1,26 @@ +-----BEGIN CERTIFICATE REQUEST----- +MIIEUzCCAjsCAQAwDjEMMAoGA1UEAwwDQm9iMIICIjANBgkqhkiG9w0BAQEFAAOC +Ag8AMIICCgKCAgEAzQMXYOZz3ILrbF9qpDng2pw2wJf1UFopehwaYyu7riWJ9+AD +rhSnCSFBM3ScMBc/8dIR6etWwci8QwJ/MtvIU0yx4llq+53G+19Bc1teC6q/b4QC +RDIcTGxOZoR+jfYZVjPODEyJ5y5MZIo34ZP4bu+JnpT4W7+uojm3jOoyNPqXMcc7 +0uAhfSKG+JfrwZKteA4T5VKFytVcWgh4v03z8zTYeW3kD4lCsongBz6yu2dn3D6X +MROnxiPwi+IRQqX1pwnJ0UA3CTeOHEw1jA3koxWIIg44PWaPaCj9Udrhf4ew00XL +PWVZP8T5rVf8yUfecWQCR7FueJFqoLhPMMFi17rYmGZUvw3/YkXBjay4Q9e+G2WS +3Xk8u+I1sCuVBJNBRv9DqtMC9D/N9NI8GkLrXwZmk82SXG+cQ0TSkNUHYI/03YKo +qsn5H8PsG7Tc+Y2Ca6TaCWims7lvOg7U0E6lu2h5NGcdWHFPJ9qfe+xho/yfYYwG +qEKanGAu1kd5SbIaX6/YiM5/Pp/96MeRNrB9kLzDnZTNuGtdCawVFgbkWmfX2Z6/ +a0d6SvZGDzBxxTVZRB0my01E1FP53MS8YRH98HUjGEwNRVq2e1W+aXldKppgZ85G +ZD3l2YTeuI0iPJCDUzQiaWzFtWc8s13YQ1HLCOyOXF7QqMyNCiLGb4xQ56kCAwEA +AaAAMA0GCSqGSIb3DQEBCwUAA4ICAQAn/ZI7IkBUEfhZHefwtF+QHCyxSEKvqwHq +fSqKVdarBPz8Ik8m3icj8R/DcS3y5jgzx3x8bXQoDpgsAQgeb825NRv2wAQAGoH1 +8vh204lTyjqzrgtK7eQeQDc7fjeigIkxQsAK9zk4BaFUWp0wEC0RLVAgvlQTl7vu +n1jSSrhK8tvGy62/cIxZfwD0bAMHlW4m1A4fUuSGWQX2KldgA8tnmT6wx0If/nKb +VB68AMbyMHUeb32v9wEvx2nHlwMjqNFeg7vYyJXOfBdDILUl+OTBoQY1X+jSx5iM +txTzmA8Hcgx0Fq+BnbQuZCLqFpNWEfenAtQtaAFuJwMiKCf6kgbqkDVShJkmt+vC +j3dcsVMZDsdMk4qRpiJhaTQOYmsMGCj4uoDpFGjwPoUwlDkjYgHAAsm9uCkshc+m +WZO7I6Z3Tbi3XskJvAMc3dTWjtc6nApEtr/mn8LcETfOp7RRSfjllj6ijWUrVwUy +BpzU9C/zLTkhFX0DVDCIV+jEefF8JPfzSKLgXyRbInTz1/6/sKXtswXW0NjzqLMI +C9ggMBhOiDv9KJn3G/mY4CqIfo9KMzF+++4t+wdXTir8DWNlMUAn1vlBwxZAgKCM +GonVExBU0VIGCpyTRLkesEHnPMgybP6gLzP3++54x288OS5JwuPPtkDcsBHUjTq8 +HxTJvUul/Q== +-----END CERTIFICATE REQUEST----- diff --git a/playwright/src/test/assets/client-certificates/client/self-signed/key.pem b/playwright/src/test/assets/client-certificates/client/self-signed/key.pem new file mode 100644 index 000000000..c3ddd1a91 --- /dev/null +++ b/playwright/src/test/assets/client-certificates/client/self-signed/key.pem @@ -0,0 +1,52 @@ +-----BEGIN PRIVATE KEY----- +MIIJQwIBADANBgkqhkiG9w0BAQEFAASCCS0wggkpAgEAAoICAQDNAxdg5nPcguts +X2qkOeDanDbAl/VQWil6HBpjK7uuJYn34AOuFKcJIUEzdJwwFz/x0hHp61bByLxD +An8y28hTTLHiWWr7ncb7X0FzW14Lqr9vhAJEMhxMbE5mhH6N9hlWM84MTInnLkxk +ijfhk/hu74melPhbv66iObeM6jI0+pcxxzvS4CF9Iob4l+vBkq14DhPlUoXK1Vxa +CHi/TfPzNNh5beQPiUKyieAHPrK7Z2fcPpcxE6fGI/CL4hFCpfWnCcnRQDcJN44c +TDWMDeSjFYgiDjg9Zo9oKP1R2uF/h7DTRcs9ZVk/xPmtV/zJR95xZAJHsW54kWqg +uE8wwWLXutiYZlS/Df9iRcGNrLhD174bZZLdeTy74jWwK5UEk0FG/0Oq0wL0P830 +0jwaQutfBmaTzZJcb5xDRNKQ1Qdgj/Tdgqiqyfkfw+wbtNz5jYJrpNoJaKazuW86 +DtTQTqW7aHk0Zx1YcU8n2p977GGj/J9hjAaoQpqcYC7WR3lJshpfr9iIzn8+n/3o +x5E2sH2QvMOdlM24a10JrBUWBuRaZ9fZnr9rR3pK9kYPMHHFNVlEHSbLTUTUU/nc +xLxhEf3wdSMYTA1FWrZ7Vb5peV0qmmBnzkZkPeXZhN64jSI8kINTNCJpbMW1Zzyz +XdhDUcsI7I5cXtCozI0KIsZvjFDnqQIDAQABAoICAAN6aFLBqijNNFEM/95MKJVQ +5eln0pbDxtUeZbC1yNv8IU56J5nUGh7gqG5m7bDvrgssXxcuwdStEwuYft+2JJyM +Li7qyTK+YyY34CCExfBQ++k4jkDJsFr4Ee7xk8OVD6o7nATvpf3M9mkUwryyIdqA ++B7fhGSrGHuCWuu6O/KT502GBazu1kadF7jfO/XXZxfEtl/zQdeWfdf9sY2+VPOU ++5C41XARijcE+Y7p6IafKx8MlUxU+ulUygOXiOcucV/dfcXt7tkaTxAKF3T6Nd0x +8/Ku9tOM2kVAP8b8HYwIOW7mLdvrbKOVNA61sdFY5axbD+JXP2pufiZ+pgJL36FF +SDQIW5M3aH7CSa1i3i4MP49jWomhTNwseVrXsDuGCKVqgIR5LZwpS4VOHLAILkCh +cIEDnoMS9YPuQdENIIxKyZGGHaeJ+LRb4w+szvtmu55Kp+N7AubPfoypPrx7a8LN +8/0/w731DS6nTICYXXzzGoB3cefb3nsBNaH1+edffPTZOYlFZ9ElFjIs/xvWCSy4 +qYwQ1cW4DslIiVD62wm8Df2yr/5J6znfU01RXQ4GWfmDNFBdYsQO/8JEy6UZEvCy +tFZ1gseD9K69O4XZSEKRKIvv8+1Y/CwD0ppIOYCIycTKn87GXFmsjbuj8tghmHp4 +TUi3EUvrw8mQMi5QBa5BAoIBAQD8JzdNy4ietoT8UUWqBT+ZSURPWeQN1esbncYU +b9viBIznnjjFFr5JdYa5k3rxM+bTRq47NRt+r0HOvyJWUFJcI6tbgmGtW+rmM2kB +hq6ekTJleLz+/cjNSjWD14avNORPz/ozZMlcz52NEl31pdniuDbueeNgyh+CkJtH +BS8s8mMVZ+3NtafZ1ilGn/RP+n21C1J8Kcxd/1srtfcpybzAQiSYul2DlKVPGvqO +XpLyt42/cyc7a3MyXtms2XhJ62fDK24Qptp6KJNTzqdtY+KP/iOW0SUgxf+JpC87 +W2NJW7tqyyaebn7KO1lGs9y03KzwaLZvy2RaBfjQnxS8uXzpAoIBAQDQI8QHNtr5 +nHYSzLZJMhJkP641wQWo4ODfkWxtEMqTyOXrVw3L8HMdA03Nmf9jnCv5awYYA3j0 +PmSL3PdM36d3VsAyyxMBN4HrH2Z94oTnoKmDfXjB3prhPYgO6aosSvE8rw1N055o +757p9vAA5w9apBBLNdcm3cjUm2ZKeocL4wnFjOW63CtcFEouE4R7C32rauEu9Bdg +dAXciBmOrHtihJUQrpMfyfN2fVSLbO4SoFy7ZHq5YKFk4MzNIp/cENwRIqdcLvOz +o++RSbwptRtkd/HZCFSh/4gEPRLe/k5gGErS9ZqpeSMfV++IdBMqC0Sx3UpyXuue +FOhIvnLpJlzBAoIBAGjcDh2mBLyr/oXHbocUA6zFUUkGgtZWHZ2wcQ1Sr0hAyDAS +Fl2v5ZY677oA4OGpydYW0KICpdp7G4zU43ytjnKOytYVVHV5gigVPRfLYJbEnwaf +vUj1VSo6MCMR4ArAnimqvcvdn/eex1BBUR20yPWF0iI+QhagN5ZeeJSCTWoNqrLe +M4CWiKUIcMXUAw+3hctiV/0WjMySQuHcnFqecIYre3igF/9+M3jAKW5HWijhuGrj +gm8tcgyCcVd2YJWs9cuuJel62eRvN0Vk7S+KmE91SmuPsjb84BXnV1UB3jpFkZ0J +upesL8H+CFRku+Xi13Bqu2OmW6csUJrBbShGovECggEBAKGk9SupJXyvT1+gTn0f +/vqOHiyvAEc8hkf6t5sobDtDzZPs4tEcpznEBBuF2rqwYdJtlKj3oWsGPa4FaKXy +GCvtWozX+6V5R1Oj6kQftJnyw1NUEYF28Q+2asEyJTAK77jyNkHX9HGIjwEi/xek +Wt9JBUJzyOjtW3gKS/HRoKnRpBghKZTqQl5bf5SzIbMxpGKJOeLuPG1zDc5MgJS2 +TYigcOgovCf2/jZqdUtmyKn8kqgSC+GGMzGWCFfT6RTOnypLoHBOIoPD8F0ER7aY +aXKoWFH2T0wUmLy59brrA1FL7GhTx86QPn+sGmH9y5hecfY0ZwnVv+TgVdmQ1stN +OMECggEBAOXDX319Dmo0ydAPYyngK4/slOetGaJmz8looU8a2R2+Ko/VMTZDmJhf +P0vS74g3U7sukRjmYzUY1mPj27CDURvk1ENam9KPOQ59ws/TaHaJ7tobjUXVQ93/ +OREkrlCuqbEqJJzQ01mCWIbmDnGvJwD87rW6YwmI9Rs+kjZxNLj+IW4CqpY36q9A +HwaUZLXc2q0W1CqLmFYF5HotvSFIAYHWuClEmM2NI9+0VItarBz6AwCnVXwKbJLC +irXlllX+63uloTDR5W1ymy2hTUrhE1jgh9DR4106QSVDiEWqme/BAWmUoyuN/zms +v3/WVVAXEcIowL3T4jzJ0RLdf1qE8Bc= +-----END PRIVATE KEY----- diff --git a/playwright/src/test/assets/client-certificates/client/trusted/cert-legacy.pfx b/playwright/src/test/assets/client-certificates/client/trusted/cert-legacy.pfx new file mode 100644 index 000000000..9f06aa35c Binary files /dev/null and b/playwright/src/test/assets/client-certificates/client/trusted/cert-legacy.pfx differ diff --git a/playwright/src/test/assets/client-certificates/client/trusted/cert.pem b/playwright/src/test/assets/client-certificates/client/trusted/cert.pem new file mode 100644 index 000000000..3430d063c --- /dev/null +++ b/playwright/src/test/assets/client-certificates/client/trusted/cert.pem @@ -0,0 +1,29 @@ +-----BEGIN CERTIFICATE----- +MIIFAzCCAuugAwIBAgIBATANBgkqhkiG9w0BAQsFADA2MRIwEAYDVQQDDAlsb2Nh +bGhvc3QxIDAeBgNVBAoMF0NsaWVudCBDZXJ0aWZpY2F0ZSBEZW1vMB4XDTI1MDcy +MTE1NTYxOFoXDTM1MDcxOTE1NTYxOFowEDEOMAwGA1UEAwwFQWxpY2UwggIiMA0G +CSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC4ggn74iAHLgOWOiOvB2CPe+Hr7W6S +TYJLZOoqPdh7mv7QGm8cYxfD+26p13aEaW4/qn45losWdEPPy2ZiVIF+kcOP0R4A +qsB0w9UHT4WSzCWtDqs8ywDMJ6tHge0++8S1bTpdutn/m8DPnKtkD9RQUzLFmGDO ++mB08Xu+egTzJvURbHXRJ27E+CXUXLEHbAJd8EKjJiQYXhcj4lzUXOUg+xkpPAGe +1dgQ6BDkv3xq/81S9NTIT5YriHEm6egi9AFJLZbbZtCpRQm1MDMq7zfD7oL6ECLG +rJ/aaxLEM49gMdw2SscYHotVxX2OMAKgN/ytB18L/mIQ4pOWp3HJQ+nks9Zu1V8c +g7Pz5pWwjqoncbyUaBi3vGsitAot3cyLXbN9hH8zQB8QqGyNLvqQnCJOBlYxOPA8 +M8NQGDThWKspcix0LhkmnYsWWt3+KEGEpFRcJCEthm/DAd1GImP7/dg1/btT/zOs +IIkIoCyBwznuR4M4XoNTbIBsiTnO/6PjOdTrjLVX7vMueTjdbCgK3VeOuwetbZ7a +Z/hvMJCjJ4wuM3l2ZyfEQlP4gJLJS3Fw2PRsySZJl9JyEzwTqYVosDF5SF8uw0HI +cFaliZCqBbgYfOiQzjIX/GiHZdor1ZrhAbO/MpSxuxGzxF7Em4n+4p816NnC9S2J +bHRetkM9P1adHwIDAQABo0IwQDAdBgNVHQ4EFgQUXhGloOgfXb0tY7HZZGil/d11 +bcwwHwYDVR0jBBgwFoAU8doR+Mmgh+1KQdNvybCZ7bsu2J8wDQYJKoZIhvcNAQEL +BQADggIBADNVu8YodDjB0474ztGSjV8WO0x984WQpGG6VPIt9xnnswNM8aOZVMNC +AS12BjgviutSBUbL40xYNlytnqP0KtlgZSNpPVTGMAOoGttbgV7w46+hyBgV4hYs +PsYrxMU1/4hTW/aGnNXpWJ4VwOESknSqUudzfy1mNVaEuPoL97SCvPrlKPU6El1a +Wmove/QTKsbsjWaahqE59uClQ6CBcWbxpN5CLyIVM4c/UrsoXdwRewgXl19YFRzR +l6LXBPid4UPQqdE6XIxgsNpoTDwAyxSRMPydlulJD5sSTaXHB7h63DsT9mEydjR3 +jPjhNZL5ADtDes3/UhfpXDbb8MudXdbdsHNswEl5ewAOdRXAuoaJuQ2TOnhz+cO0 +oaq9X3YaWjl8SwdvZrLIHLG3jEAQYEXDR+dEtT6vs7HmReMrYhGGoCEVrjSZAaeO +9bQoSe0m8xbuSV19e5A+LZv3bcPcVOe91x/wnjVb98KRQcSQXCBE3yT5Oav/OLKZ +TrdRkKe1yyPMHJiicn3pffdXuG6mIJC8HgYhvJEX/wkWf1BiyRd44dD1cgI1Ttt1 +pQoapJCmjA0XHtr15o4TW6hmnrmOOYTOVCCug8h1bWscBedMgdR5Qm+umbUiuC3N +N6mxD49Sc40NCeDboX87rDiObhOXAAFsiE9o39z/tPToVa3TsJsA +-----END CERTIFICATE----- diff --git a/playwright/src/test/assets/client-certificates/client/trusted/cert.pfx b/playwright/src/test/assets/client-certificates/client/trusted/cert.pfx new file mode 100644 index 000000000..391dea7b8 Binary files /dev/null and b/playwright/src/test/assets/client-certificates/client/trusted/cert.pfx differ diff --git a/playwright/src/test/assets/client-certificates/client/trusted/csr.pem b/playwright/src/test/assets/client-certificates/client/trusted/csr.pem new file mode 100644 index 000000000..fc930ea7c --- /dev/null +++ b/playwright/src/test/assets/client-certificates/client/trusted/csr.pem @@ -0,0 +1,26 @@ +-----BEGIN CERTIFICATE REQUEST----- +MIIEVTCCAj0CAQAwEDEOMAwGA1UEAwwFQWxpY2UwggIiMA0GCSqGSIb3DQEBAQUA +A4ICDwAwggIKAoICAQC4ggn74iAHLgOWOiOvB2CPe+Hr7W6STYJLZOoqPdh7mv7Q +Gm8cYxfD+26p13aEaW4/qn45losWdEPPy2ZiVIF+kcOP0R4AqsB0w9UHT4WSzCWt +Dqs8ywDMJ6tHge0++8S1bTpdutn/m8DPnKtkD9RQUzLFmGDO+mB08Xu+egTzJvUR +bHXRJ27E+CXUXLEHbAJd8EKjJiQYXhcj4lzUXOUg+xkpPAGe1dgQ6BDkv3xq/81S +9NTIT5YriHEm6egi9AFJLZbbZtCpRQm1MDMq7zfD7oL6ECLGrJ/aaxLEM49gMdw2 +SscYHotVxX2OMAKgN/ytB18L/mIQ4pOWp3HJQ+nks9Zu1V8cg7Pz5pWwjqoncbyU +aBi3vGsitAot3cyLXbN9hH8zQB8QqGyNLvqQnCJOBlYxOPA8M8NQGDThWKspcix0 +LhkmnYsWWt3+KEGEpFRcJCEthm/DAd1GImP7/dg1/btT/zOsIIkIoCyBwznuR4M4 +XoNTbIBsiTnO/6PjOdTrjLVX7vMueTjdbCgK3VeOuwetbZ7aZ/hvMJCjJ4wuM3l2 +ZyfEQlP4gJLJS3Fw2PRsySZJl9JyEzwTqYVosDF5SF8uw0HIcFaliZCqBbgYfOiQ +zjIX/GiHZdor1ZrhAbO/MpSxuxGzxF7Em4n+4p816NnC9S2JbHRetkM9P1adHwID +AQABoAAwDQYJKoZIhvcNAQELBQADggIBACpScaAoLAs9DuTcI5Y4dbHf7LwF4Zxx +UgPNzE1HB1Pr6NaHRiOWrlCtDEB5UwHrr0oZuRTqSEGg3Pe5Z2QtPG/sdFgfm4BP +29o6qo0CXiEVBwU7/K0/lL2/0a7uSbD0Tkw9d6Bgik7/Z5rzXZIi2vtUcrOtHskP +C+Z9w3vH9a+RnUeo52mCnRi4SaiSEnD5jvhmgaI9iF+k5pYBiMrKRj5W/F1QCkf4 +7OuSK97xN0eG/I4Oxgzi/qt51ySCYZbqoh7dIpwi/a4UsK8kdzDDI1M3J7bU07cO +CJRfr0EETqCQw/gAKoag3tRFNvWQB6Z9G3Ev5jeaCLpcc32NlpN5xH3VW8A0Zb81 +dn5BXkPSxjwJaD0a3cLFkfgrasoe7ZMmHrVpQDw+9USuGCYXMPzNZLEeTFbrRkUn +sqi30e28E1H69zVWj+OKzCWEH/azVlfaoVbwM+njUJDe5V09KvFtI7aZYmvLxbUX +4ifoRUVoKedyKnueVmoIG57lF2VzeEhX5YjCngxIg+YuE99HkMQAZSlS6uJcVM92 +tsC/+pYECBk8ukenbxmKXROl3u4p2M1iCSL/8EOVROuyjnuzCXJZOpNptdpX4ZgL +kHP1erq7/U8ZU8HviUsfMoisagx8dA8uj/4fk0jfNxOJqlZL9eJhpgBfYHqmAz3h +m+PQVw96eeoK +-----END CERTIFICATE REQUEST----- diff --git a/playwright/src/test/assets/client-certificates/client/trusted/key.pem b/playwright/src/test/assets/client-certificates/client/trusted/key.pem new file mode 100644 index 000000000..a11cdc8a7 --- /dev/null +++ b/playwright/src/test/assets/client-certificates/client/trusted/key.pem @@ -0,0 +1,52 @@ +-----BEGIN PRIVATE KEY----- +MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQC4ggn74iAHLgOW +OiOvB2CPe+Hr7W6STYJLZOoqPdh7mv7QGm8cYxfD+26p13aEaW4/qn45losWdEPP +y2ZiVIF+kcOP0R4AqsB0w9UHT4WSzCWtDqs8ywDMJ6tHge0++8S1bTpdutn/m8DP +nKtkD9RQUzLFmGDO+mB08Xu+egTzJvURbHXRJ27E+CXUXLEHbAJd8EKjJiQYXhcj +4lzUXOUg+xkpPAGe1dgQ6BDkv3xq/81S9NTIT5YriHEm6egi9AFJLZbbZtCpRQm1 +MDMq7zfD7oL6ECLGrJ/aaxLEM49gMdw2SscYHotVxX2OMAKgN/ytB18L/mIQ4pOW +p3HJQ+nks9Zu1V8cg7Pz5pWwjqoncbyUaBi3vGsitAot3cyLXbN9hH8zQB8QqGyN +LvqQnCJOBlYxOPA8M8NQGDThWKspcix0LhkmnYsWWt3+KEGEpFRcJCEthm/DAd1G +ImP7/dg1/btT/zOsIIkIoCyBwznuR4M4XoNTbIBsiTnO/6PjOdTrjLVX7vMueTjd +bCgK3VeOuwetbZ7aZ/hvMJCjJ4wuM3l2ZyfEQlP4gJLJS3Fw2PRsySZJl9JyEzwT +qYVosDF5SF8uw0HIcFaliZCqBbgYfOiQzjIX/GiHZdor1ZrhAbO/MpSxuxGzxF7E +m4n+4p816NnC9S2JbHRetkM9P1adHwIDAQABAoICACBW8qcKoHCBuTE4qY6BLYSY +wyWWLT5JhZ/vZTfYNTydEzKon3cLS1wXkvMECAr3a9KO8KbpYyGhaU1fqmdrxnLH +2842ahrV0vvkY09vucrcK3Jk0tDKCC7AeT4EYPAcMwNVzNgm6xTpWOdK36OfPqiB +nLGTnsxIiGWW+giN3JY96tCOASySy9CMah0JziGt5dBPT27HPaZjv4yTnY+/ZI3e +VS+sC+CqPL/h3SwrAATFJ1j1/uHJSVoCBUs7zmtp91u7OOjl4Yb5ydTPSPiqi0y1 +XpG0CFRoZ3BiOhzXqLbEpoOBodnxaJy1C+fDNIKerZQqaZdxlAC/pfzPBpuvYqxe +RRPV85+AXZ5nosSoqjPprKDfDrLfwnEAJIXtZjDQvJ1mA49Tbtx30rzk3u36BU7v +4JXBTcCiaxhPw4MlPzCYKXXL8B02m8vC/RYZO29YHytERbAAMd4uUfGU0lOKWi6W +CEHXYTjbqSDuytpuxT9InLVxEC+u+h9CxAi3FpawLmu5ELW5qA5yMHRoyYOCKUDO +EsjV/qDSo6T1kkYZ0qj4Ya9DeVWgMRekn9TWZmzeYMzDnZtAp1OscmcETFH28xo0 +iuxQiStWEZaGdxD5njF+0GHtlECxMmPx03IH9bCxt6GU1aFCdfvhzqtovze4OCI2 +SJOxeJRAoom/LcCBQgCBAoIBAQDZygQguNUxwkaEpwsUhAstwse9SwY2fisNQTbU +Lj1rbvCDlOADrthIBsb9jpsUyqow9UbeB+mq13xrFz7BfmQ0Bf2+3P8mV0IxwmvE +mg8Wbi8pkYoet4yzSc2f8yHCvAsejFFWNU7/7JB0gpeRxXJTjdgoTiLEop5cus8r +SmBzCphzOMM8iUV/ByOgIAEOU3bo2GuSRbEEJ0kA1bd/l12uT7tApT+0umo/OPRR +yYEIexuIa7fean7ZHf31GbQdJm9vgoi+ar0mZg9yHSiqlOnghWVheEeNVGH+XgFt +4qQkbTW8Ie0Am88uT+3fbxIZHbJ4GkPnKwc+klN5p2efxmlfAoIBAQDY4TOoj2zf +Uvu8E1KboCiGjfHvvm3UhYVVUVqoctHQihSOQSThmKCGv025K4iSvxfC77XfuJv8 +ZC14TT176VvSZVrV4vZDod572/co5WyEGqaVfqwqjBmCWAODT+IgmIZrDfDRLIkC +4cQObd8DkzzdP8msqp731UlrEZvOkh9XW4rwBmFXeBqgDKDgM7Zge4Clu6lWABxT +BnGv00OjqRGd6IH1+tDTm0w0qNkXzZ3UDAuwVEHBjMJnPr7t9LEi5e3AluspjoF9 +Ie/KtQQ6D6guYtdRZismg3CGlnGwcf/yjS1YEVTqyybY52M9N3aHDVlPesn1BWO7 +UKQgHbPQq6RBAoIBAQCQv+n6bZ6VEdCYvgVpP1HGulzS/RhGA5lNl/h/EbSUwQlu +CvbQu9bYGFkNkUiVixWOsJbHX274s3voGW0GYaDryseZoXyb2QcP126VHufEOrtx +319zhv8m8niORKQ9r4mcZhpxN8En6+0e4uUmZ5rS2cW/FB+bnZGvhCHJXge4rmQg +wKtSgtID2ZTeCidphCPWInFsqJE8d3fX7DOnw8zp2+hS0QIEdpnDJ3GLImh2YIwu +IZn1Y8anO33c95Z0gWUzMgj8tii9arv9Vk//ADZpmX+GRtEXp+vxij1c8XOzGjrK +ram969DJsSoihMn8k3ZYyOw0qq6H8e01QARpdw/1AoIBAE/9Bxt1And/WJ7uFXqW +YDv4IDIG7uUB9cIYxjH4Xw/lzV0GA788ln/8EINp3e4Zkn7wAAkqQkWdAPQssK+B +yr7XaOAX3DHngnH2F7s6moJCfgwG8yKiF0pugaUtkj3pYzIaqyXKoiGw+KlFtonQ +BROo0g3fw8+uF2zoyqkuVWbXuW97Ou2Su2cqIS9vgyUkh7cYdoTkd43bg5SQe5Lh +6UBvH3eEcP6KeVm2qJLR4BLz+l+nQ7VJ3+1KRArpQ2eWm9B7GPJzv6hSGumNR6jO +W334MGeyIdoLgjXxSK8F7JsdnIqtob8S/BnlhUFvskRvFPBuXgwDV9wfCtlZexdM +JsECggEAJy5r3YTLiNFqXiwIyZ+GFQYlyhYAH75tP6yaF5Sr6FaDDaGTQxtMgp+V +UAOZIOHQAWpjQtgnjJAYLyDgkhVWJqQILBC3V1GHj6Kr+3avyV4cGuqP7wxsS2kt +vUY9emtg0dil/8l6IL3DzjXhRI8+00FZSvcueQYVgv+fv1zPx3T/RuUp8x4E0lq1 +YmlLjgi1EznRu1YW1IczsGwBQDpghKnf2E0tUn9wUr1Kb8k0uOVdzUZETvJjWYeD ++GwoR5lW/BhSIwE4zeK66RY18n7GOIS7y7Yvn4onr3j3geqIKAEjQrlBkQlPkhfd +21eLmxOuln98Q3na7ftpAWQdyjcE6Q== +-----END PRIVATE KEY----- diff --git a/playwright/src/test/assets/client-certificates/generate.sh b/playwright/src/test/assets/client-certificates/generate.sh new file mode 100755 index 000000000..98f858f4f --- /dev/null +++ b/playwright/src/test/assets/client-certificates/generate.sh @@ -0,0 +1,86 @@ +# Client Certificate test-certificates + +cd "$(dirname "$0")" + +## Server + +openssl req \ + -x509 \ + -newkey rsa:4096 \ + -keyout server/server_key.pem \ + -out server/server_cert.pem \ + -nodes \ + -days 3650 \ + -subj "/CN=localhost/O=Client\ Certificate\ Demo" \ + -addext "subjectAltName=DNS:localhost,DNS:local.playwright" + +## Trusted client-certificate (server signed/valid) + +mkdir -p client/trusted +# generate server-signed (valid) certificate +openssl req \ + -newkey rsa:4096 \ + -keyout client/trusted/key.pem \ + -out client/trusted/csr.pem \ + -nodes \ + -days 3650 \ + -subj "/CN=Alice" + +# sign with server_cert.pem +openssl x509 \ + -req \ + -in client/trusted/csr.pem \ + -CA server/server_cert.pem \ + -CAkey server/server_key.pem \ + -out client/trusted/cert.pem \ + -set_serial 01 \ + -days 3650 +# create pfx +openssl pkcs12 -export -out client/trusted/cert.pfx -inkey client/trusted/key.pem -in client/trusted/cert.pem -passout pass:secure + +## Trusted certificate for localhost (server signed/valid) + +mkdir -p client/localhost + +# generate server-signed (valid) certificate +openssl req \ + -newkey rsa:4096 \ + -keyout client/localhost/localhost.key \ + -out client/localhost/localhost.csr \ + -nodes \ + -days 3650 \ + -subj "/CN=localhost" \ + -addext "subjectAltName=DNS:localhost,DNS:127.0.0.1" + +# put extensions +echo "subjectAltName=DNS:localhost,DNS:127.0.0.1" > client/localhost/localhost.ext + +# sign with server_cert.pem +openssl x509 \ + -req \ + -in client/localhost/localhost.csr \ + -CA server/server_cert.pem \ + -CAkey server/server_key.pem \ + -set_serial 01 \ + -out client/localhost/localhost.pem \ + -days 3650 \ + -extfile client/localhost/localhost.ext + +## Self-signed certificate (invalid) + +mkdir -p client/self-signed +openssl req \ + -newkey rsa:4096 \ + -keyout client/self-signed/key.pem \ + -out client/self-signed/csr.pem \ + -nodes \ + -days 3650 \ + -subj "/CN=Bob" + +# sign with self-signed/key.pem +openssl x509 \ + -req \ + -in client/self-signed/csr.pem \ + -signkey client/self-signed/key.pem \ + -out client/self-signed/cert.pem \ + -days 3650 diff --git a/playwright/src/test/assets/client-certificates/server/server_cert.pem b/playwright/src/test/assets/client-certificates/server/server_cert.pem new file mode 100644 index 000000000..18ee3d805 --- /dev/null +++ b/playwright/src/test/assets/client-certificates/server/server_cert.pem @@ -0,0 +1,32 @@ +-----BEGIN CERTIFICATE----- +MIIFdTCCA12gAwIBAgIUFhAlW/DnHoHOFg2CXKBAvwYN4BIwDQYJKoZIhvcNAQEL +BQAwNjESMBAGA1UEAwwJbG9jYWxob3N0MSAwHgYDVQQKDBdDbGllbnQgQ2VydGlm +aWNhdGUgRGVtbzAeFw0yNTA3MjExNTU2MThaFw0zNTA3MTkxNTU2MThaMDYxEjAQ +BgNVBAMMCWxvY2FsaG9zdDEgMB4GA1UECgwXQ2xpZW50IENlcnRpZmljYXRlIERl +bW8wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDYDbBlM8ILtq2xKLFU +ZwU4n7+0VHsO0skCfyNwpSZndbArjJUd/ZgFyCy5RK5Cg23KtXSMgkU6QlXOWvIr +WJ/1wAkH9tuef/JDo9NJ00jBeua7HjdudNAsz6WwXSZC+a6DhA7nVHNwuyqq1SyH +g5tuSP294EwfbEhXhaDyfXyBa4PaEmyjD2+O1NHSZ1AuUhblcUelKkZbykMvwCb7 +gJVXxlm/SN0K4vOVq80dBknr785562hDFGoXFX9hd2uPCQKbWGdMca+MmRWwNM2B +CuxVoUl/Ooqmr7AdZ62lhpcqCd+todWC5GzrxwZjcIwt5P7MDvd+Ktmc8ePcZhp3 +L3ddlxXNgfi+c9OnZaz1QVgEn1YlDAmHvQtj9H+v2mmawyyRycjmhIpV/eaXaJvW +A2wq+O2OERl056IjjzcXHrD6DOk7IjlTwQ87AMU4mNrCzW1LLd428OxQdGv2I4/b +nq+0snOJOrTk65upybJYMGKUuTRqfEQgv5d/923VUISC69uTq+0zVFxG3pyMJR2D +O+6xinBkp0Gk+ft9L4aaBAYXyUmi+PRSfdTfUk3yQkYefC55QTDDRK2rb7JiQqzr +xhJ2vBar0TqXShQKKlMaOWHd+1U2ZjuyzboDDPeACoAmUVY2IHs+P8Dem0fwuKNd +TF4jZkVQIWWLfTzzghOelmy9mwIDAQABo3sweTAdBgNVHQ4EFgQU8doR+Mmgh+1K +QdNvybCZ7bsu2J8wHwYDVR0jBBgwFoAU8doR+Mmgh+1KQdNvybCZ7bsu2J8wDwYD +VR0TAQH/BAUwAwEB/zAmBgNVHREEHzAdgglsb2NhbGhvc3SCEGxvY2FsLnBsYXl3 +cmlnaHQwDQYJKoZIhvcNAQELBQADggIBAH1/6Sp4dW96yvwi9ptgVRYfRSRWfYYy +2nU6kJ1DPOW7hTPf2wLf6Z2KqiJXn8tECHfM4pnPSgDhtZHDDHAu9l7Diqzk/NIl +AblRs++4vSKdnCx1uh3EFLjIMmHa/cRUzfuR+oGfri3v7jgTBV6UJJQ0pMqIDk/P +VEOWWukllru40M8Rwy4F6LmpwIWMtNDxmhtXSbQJ6TZn+isNSoaWgHjQmayrVyXZ +OcNYuR8M/ECvnufuIOW53+hhwG1X0jEoBdXqqXbTKcGjA+yLHp008AAB5DNQblYm +FJ4N0v6eYLhOO0u3n0b/ZsqUkZx2h38tlZoAdJNqy+d4TE3WbGRNgNJrTjAOzpPL +cQ5RNr3dDsUDFPnCoK3LUf9BWerARoDt+bbrM/VqvWH/0uqaU0/vo8IchSyQ9wGv +SwrWLJU32HQUJ2VQP/m4ADf3X2Ozj+e8bBf7XPPD8KDyL4aR0KuYzrsOnhFlBkHD +PtNjc7SgiE7AZe1WOEmhBQcr+vI6S8qFTurTntCBkvrFgYBAIIhK2XwFN5sFtByr +GCB67NQMp37g2qFNYi8EmKQvPLpAcC3Je5PvHFSj2y9Z14FclGoxjU50SlH9/A5I +iHGcIVjCv9NhNDFAwakF/sTnrpT/FIS7tm9GwoJGWCdYg4pl72WYCW6hJBG+XY7G +t3jt9TP8623D +-----END CERTIFICATE----- diff --git a/playwright/src/test/assets/client-certificates/server/server_key.pem b/playwright/src/test/assets/client-certificates/server/server_key.pem new file mode 100644 index 000000000..3a762bde7 --- /dev/null +++ b/playwright/src/test/assets/client-certificates/server/server_key.pem @@ -0,0 +1,52 @@ +-----BEGIN PRIVATE KEY----- +MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQDYDbBlM8ILtq2x +KLFUZwU4n7+0VHsO0skCfyNwpSZndbArjJUd/ZgFyCy5RK5Cg23KtXSMgkU6QlXO +WvIrWJ/1wAkH9tuef/JDo9NJ00jBeua7HjdudNAsz6WwXSZC+a6DhA7nVHNwuyqq +1SyHg5tuSP294EwfbEhXhaDyfXyBa4PaEmyjD2+O1NHSZ1AuUhblcUelKkZbykMv +wCb7gJVXxlm/SN0K4vOVq80dBknr785562hDFGoXFX9hd2uPCQKbWGdMca+MmRWw +NM2BCuxVoUl/Ooqmr7AdZ62lhpcqCd+todWC5GzrxwZjcIwt5P7MDvd+Ktmc8ePc +Zhp3L3ddlxXNgfi+c9OnZaz1QVgEn1YlDAmHvQtj9H+v2mmawyyRycjmhIpV/eaX +aJvWA2wq+O2OERl056IjjzcXHrD6DOk7IjlTwQ87AMU4mNrCzW1LLd428OxQdGv2 +I4/bnq+0snOJOrTk65upybJYMGKUuTRqfEQgv5d/923VUISC69uTq+0zVFxG3pyM +JR2DO+6xinBkp0Gk+ft9L4aaBAYXyUmi+PRSfdTfUk3yQkYefC55QTDDRK2rb7Ji +QqzrxhJ2vBar0TqXShQKKlMaOWHd+1U2ZjuyzboDDPeACoAmUVY2IHs+P8Dem0fw +uKNdTF4jZkVQIWWLfTzzghOelmy9mwIDAQABAoICADF+KUt1qN0QEwgDX2QLWYnY +Jo1D0RDbPorg3xh97KdEsX+4a6x8HGguq/ghAJ5iBzOpj7JkYUFwUsG72cAORE6C +mE8HwNW1T6UpEUzXJtKTuelhiac3AT1SsA0PuaUcF1svVE6v7OYFKkgKH3JHtsJz +3BS0HhwQrR3HkdAa6PuoyoKZN+O+tHqOzCYb3qVNzsruwU/XuFhspCl7JjL1CMEb +whFsup400UIXIhylBSgUPkN1puO++HKjTRPhzHTuxncZsEg1vtZBd1NvNSh7fRo8 +oV6Q5ZQ7qOeDiabihxxtOJ1I9mVOuJjmddMvxBz7WVcbkpyHamRmkSE7DpMA/6G4 +I6MI7pF1jEkPjvZRVfC9irpd+uFtlmCgjTloFUtGIS9wPmEzbtHsAPWvWQAgbv/A +BDw9SumA/cPEjjhD0jAdPczTxLZk86yr9UZou5WLmuCZJD3zozdZ/7HM5OvhGf7z +vXqpIwxulU8uOxB7qVh2FTkArP1CxMPNASsaTzSIVmT4+G2NBaakHT3lCS+47XK/ +DJXc97w38cN/4WCxf5vRbeytS+ruDVWU0Ez0mqzYEo0xyWNcyjlWJfmamgI9Vfml +wdhdYq/CQrrXi5VoYkTKfJl+Bp1HC+rvLjTWLH8tiWty+DHxmkwTedjPulukrBGp +Uw9zMan3IxXsX8BanP2RAoIBAQDw4QNiFKYnCKhawyqgDrbtWtQjUPWP3DkSPSfE +iWEkIwvH2tJpmmkvt+bSzXLLWv0tO2oTn88zmtIanptGbijjPZqhHuB1f6Di+h3A +ZEFye586WlhCqZCw5RDCXw0Wj5ZQREHazO3txSOHvJxtbwW1Sqf6clGJs6Sq/Mk0 +pw9Cl5jtLELPL3dwQrtRjVpfK1WWh14E5XSFjHRXvWGMWdje1EN+Lf5V27a7W7SD +elYqhn5NOKU237UB7cnXsvTndf8zsyx4BmBNO2BirU2B/MikK/LMR3BbJkp3rhMI +eLkgKsN8kf7L4ZABcX1iUr0WxDfrPLxUsuvzb1FAgMpLIsSpAoIBAQDlnblRmqDz +qsZdZJE2E6PQ7ELCz3b4g6ftMVOyYhptFZqDfku7T1MEdedeHr66pfh1BXgDSYwg +hnGx8tPmaAZ+ZxghczhADLw1mUXiZ36xIlWVRaVatCCUquVent0PPytUlkPvy37Z +qIXBAmQNIUorZMVJzeN45073KmZFZfAUXqSx8N0ObBh34oVDx7xgVSQvQyEssR8e +VsvWWxKY6zrkFeFtonb6A5EDS8R9rmCdGqH0FCGQRo0pP4bT2iXxp40KLeJdZdmy +nHOEHWtif7/hbaR6w7DLzmWbY5VHKzIFfVkoeoOuQPxYs2ds1mz3ywYKbXXNDcwD +VMk6mtkqKxajAoIBAArgLfXstr/GbUuDylXltC6tTiy2CBBRwiXnqvb9uOwXxP1m +DOAFv8AOzpYv/oHd/tZe+2AddA6BbAEVri8U5DW2X1fs+/dyJsJ4xoUcQbQ4jqzk +zV1dKJJEFWihQAcHvqKrIkoNvKRipUMIqgtq2tgfocv2A2ZzPPkXZsJA1LiN/bKf +r/iIzRy9dpWtCyqG21trizwvW/53o/0eKNxcZiVRciatTvFzdSGqd1EEYgWTgvpb +l2IN4a9PnDBn/RTCSB5+dYCJ0SlLiAOMjZZT4n8/GLxOcW08Ilqa+nMEeF9Sbvcd +5GIyMf1OsXmSAMWZYGj3mg088thP61w9NGUGEdkCggEBAMpwSFa98XFi+wiUBcKb +hi5IXoPKzaVEzeS9PIFlJM9P4K5VxwcZZKPmH1pH2PhOI8NoUurzCOwUHGE7Kb9V +r4P5+LhlEQ7HK5hFzetSO8yH7NRyVtqlPKRWF2tYvKUYmGc3JCZiTzAu99228ebx +lqazbY0oTIjnxiL76rb8rLIIz0NijEKO4vOvbrbXfimgZwqUMMdqUXk6JPSTzs2r +dnxpHhq+xg6e3lb9kfsMpnlcZbT/mqfMy9+19nUJO7LWee6jjZOynEBw1xd/qJFq ++A0T0ZO6vECzc7mQDqh0WOGmJdkeSsJy4QiDA4hddCzzfhvrbZSfuWKmedOFejlH +S+kCggEAXxTOwID/U/8d6DnLLQzX1d9S5VPiKS+Jminvl6LzmGBojn0K1+nQXLNT +c+EIURlHNuK3aR6dR/iSXiffjHzVAeu0FOSg3wTONowmyTB8LQamIt5Gx5vR3ptq +4hhv2SSgagpJfSiBKzt3D1/Ls+GPIiRhEMNh6RTTvEK90neNNE5SLfPHFsBzAVmA +VdlaM/mpudP5KCB4LQAGSjzEWYZpJuhBdoNd5guxb3044FcLA7quVQcANWKnXZxh +7iHegXE37s7suS8tVscfNAXKccBBGsigba+knnhRQ0M9hlKZLlAAFD+qMHpkTYxJ +dvQgA6dBjtYg5cQMHNbnfT3j3WzyQg== +-----END PRIVATE KEY----- diff --git a/playwright/src/test/assets/codicon.css b/playwright/src/test/assets/codicon.css new file mode 100644 index 000000000..41360ce21 --- /dev/null +++ b/playwright/src/test/assets/codicon.css @@ -0,0 +1,596 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +@font-face { + font-family: "codicon"; + src: url("codicon.ttf") format("truetype"); +} + +.codicon { + font: normal normal normal 16px/1 codicon; + flex: none; + display: inline-block; + text-decoration: none; + text-rendering: auto; + text-align: center; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.codicon-add:before { content: '\ea60'; } +.codicon-plus:before { content: '\ea60'; } +.codicon-gist-new:before { content: '\ea60'; } +.codicon-repo-create:before { content: '\ea60'; } +.codicon-lightbulb:before { content: '\ea61'; } +.codicon-light-bulb:before { content: '\ea61'; } +.codicon-repo:before { content: '\ea62'; } +.codicon-repo-delete:before { content: '\ea62'; } +.codicon-gist-fork:before { content: '\ea63'; } +.codicon-repo-forked:before { content: '\ea63'; } +.codicon-git-pull-request:before { content: '\ea64'; } +.codicon-git-pull-request-abandoned:before { content: '\ea64'; } +.codicon-record-keys:before { content: '\ea65'; } +.codicon-keyboard:before { content: '\ea65'; } +.codicon-tag:before { content: '\ea66'; } +.codicon-git-pull-request-label:before { content: '\ea66'; } +.codicon-tag-add:before { content: '\ea66'; } +.codicon-tag-remove:before { content: '\ea66'; } +.codicon-person:before { content: '\ea67'; } +.codicon-person-follow:before { content: '\ea67'; } +.codicon-person-outline:before { content: '\ea67'; } +.codicon-person-filled:before { content: '\ea67'; } +.codicon-git-branch:before { content: '\ea68'; } +.codicon-git-branch-create:before { content: '\ea68'; } +.codicon-git-branch-delete:before { content: '\ea68'; } +.codicon-source-control:before { content: '\ea68'; } +.codicon-mirror:before { content: '\ea69'; } +.codicon-mirror-public:before { content: '\ea69'; } +.codicon-star:before { content: '\ea6a'; } +.codicon-star-add:before { content: '\ea6a'; } +.codicon-star-delete:before { content: '\ea6a'; } +.codicon-star-empty:before { content: '\ea6a'; } +.codicon-comment:before { content: '\ea6b'; } +.codicon-comment-add:before { content: '\ea6b'; } +.codicon-alert:before { content: '\ea6c'; } +.codicon-warning:before { content: '\ea6c'; } +.codicon-search:before { content: '\ea6d'; } +.codicon-search-save:before { content: '\ea6d'; } +.codicon-log-out:before { content: '\ea6e'; } +.codicon-sign-out:before { content: '\ea6e'; } +.codicon-log-in:before { content: '\ea6f'; } +.codicon-sign-in:before { content: '\ea6f'; } +.codicon-eye:before { content: '\ea70'; } +.codicon-eye-unwatch:before { content: '\ea70'; } +.codicon-eye-watch:before { content: '\ea70'; } +.codicon-circle-filled:before { content: '\ea71'; } +.codicon-primitive-dot:before { content: '\ea71'; } +.codicon-close-dirty:before { content: '\ea71'; } +.codicon-debug-breakpoint:before { content: '\ea71'; } +.codicon-debug-breakpoint-disabled:before { content: '\ea71'; } +.codicon-debug-hint:before { content: '\ea71'; } +.codicon-terminal-decoration-success:before { content: '\ea71'; } +.codicon-primitive-square:before { content: '\ea72'; } +.codicon-edit:before { content: '\ea73'; } +.codicon-pencil:before { content: '\ea73'; } +.codicon-info:before { content: '\ea74'; } +.codicon-issue-opened:before { content: '\ea74'; } +.codicon-gist-private:before { content: '\ea75'; } +.codicon-git-fork-private:before { content: '\ea75'; } +.codicon-lock:before { content: '\ea75'; } +.codicon-mirror-private:before { content: '\ea75'; } +.codicon-close:before { content: '\ea76'; } +.codicon-remove-close:before { content: '\ea76'; } +.codicon-x:before { content: '\ea76'; } +.codicon-repo-sync:before { content: '\ea77'; } +.codicon-sync:before { content: '\ea77'; } +.codicon-clone:before { content: '\ea78'; } +.codicon-desktop-download:before { content: '\ea78'; } +.codicon-beaker:before { content: '\ea79'; } +.codicon-microscope:before { content: '\ea79'; } +.codicon-vm:before { content: '\ea7a'; } +.codicon-device-desktop:before { content: '\ea7a'; } +.codicon-file:before { content: '\ea7b'; } +.codicon-file-text:before { content: '\ea7b'; } +.codicon-more:before { content: '\ea7c'; } +.codicon-ellipsis:before { content: '\ea7c'; } +.codicon-kebab-horizontal:before { content: '\ea7c'; } +.codicon-mail-reply:before { content: '\ea7d'; } +.codicon-reply:before { content: '\ea7d'; } +.codicon-organization:before { content: '\ea7e'; } +.codicon-organization-filled:before { content: '\ea7e'; } +.codicon-organization-outline:before { content: '\ea7e'; } +.codicon-new-file:before { content: '\ea7f'; } +.codicon-file-add:before { content: '\ea7f'; } +.codicon-new-folder:before { content: '\ea80'; } +.codicon-file-directory-create:before { content: '\ea80'; } +.codicon-trash:before { content: '\ea81'; } +.codicon-trashcan:before { content: '\ea81'; } +.codicon-history:before { content: '\ea82'; } +.codicon-clock:before { content: '\ea82'; } +.codicon-folder:before { content: '\ea83'; } +.codicon-file-directory:before { content: '\ea83'; } +.codicon-symbol-folder:before { content: '\ea83'; } +.codicon-logo-github:before { content: '\ea84'; } +.codicon-mark-github:before { content: '\ea84'; } +.codicon-github:before { content: '\ea84'; } +.codicon-terminal:before { content: '\ea85'; } +.codicon-console:before { content: '\ea85'; } +.codicon-repl:before { content: '\ea85'; } +.codicon-zap:before { content: '\ea86'; } +.codicon-symbol-event:before { content: '\ea86'; } +.codicon-error:before { content: '\ea87'; } +.codicon-stop:before { content: '\ea87'; } +.codicon-variable:before { content: '\ea88'; } +.codicon-symbol-variable:before { content: '\ea88'; } +.codicon-array:before { content: '\ea8a'; } +.codicon-symbol-array:before { content: '\ea8a'; } +.codicon-symbol-module:before { content: '\ea8b'; } +.codicon-symbol-package:before { content: '\ea8b'; } +.codicon-symbol-namespace:before { content: '\ea8b'; } +.codicon-symbol-object:before { content: '\ea8b'; } +.codicon-symbol-method:before { content: '\ea8c'; } +.codicon-symbol-function:before { content: '\ea8c'; } +.codicon-symbol-constructor:before { content: '\ea8c'; } +.codicon-symbol-boolean:before { content: '\ea8f'; } +.codicon-symbol-null:before { content: '\ea8f'; } +.codicon-symbol-numeric:before { content: '\ea90'; } +.codicon-symbol-number:before { content: '\ea90'; } +.codicon-symbol-structure:before { content: '\ea91'; } +.codicon-symbol-struct:before { content: '\ea91'; } +.codicon-symbol-parameter:before { content: '\ea92'; } +.codicon-symbol-type-parameter:before { content: '\ea92'; } +.codicon-symbol-key:before { content: '\ea93'; } +.codicon-symbol-text:before { content: '\ea93'; } +.codicon-symbol-reference:before { content: '\ea94'; } +.codicon-go-to-file:before { content: '\ea94'; } +.codicon-symbol-enum:before { content: '\ea95'; } +.codicon-symbol-value:before { content: '\ea95'; } +.codicon-symbol-ruler:before { content: '\ea96'; } +.codicon-symbol-unit:before { content: '\ea96'; } +.codicon-activate-breakpoints:before { content: '\ea97'; } +.codicon-archive:before { content: '\ea98'; } +.codicon-arrow-both:before { content: '\ea99'; } +.codicon-arrow-down:before { content: '\ea9a'; } +.codicon-arrow-left:before { content: '\ea9b'; } +.codicon-arrow-right:before { content: '\ea9c'; } +.codicon-arrow-small-down:before { content: '\ea9d'; } +.codicon-arrow-small-left:before { content: '\ea9e'; } +.codicon-arrow-small-right:before { content: '\ea9f'; } +.codicon-arrow-small-up:before { content: '\eaa0'; } +.codicon-arrow-up:before { content: '\eaa1'; } +.codicon-bell:before { content: '\eaa2'; } +.codicon-bold:before { content: '\eaa3'; } +.codicon-book:before { content: '\eaa4'; } +.codicon-bookmark:before { content: '\eaa5'; } +.codicon-debug-breakpoint-conditional-unverified:before { content: '\eaa6'; } +.codicon-debug-breakpoint-conditional:before { content: '\eaa7'; } +.codicon-debug-breakpoint-conditional-disabled:before { content: '\eaa7'; } +.codicon-debug-breakpoint-data-unverified:before { content: '\eaa8'; } +.codicon-debug-breakpoint-data:before { content: '\eaa9'; } +.codicon-debug-breakpoint-data-disabled:before { content: '\eaa9'; } +.codicon-debug-breakpoint-log-unverified:before { content: '\eaaa'; } +.codicon-debug-breakpoint-log:before { content: '\eaab'; } +.codicon-debug-breakpoint-log-disabled:before { content: '\eaab'; } +.codicon-briefcase:before { content: '\eaac'; } +.codicon-broadcast:before { content: '\eaad'; } +.codicon-browser:before { content: '\eaae'; } +.codicon-bug:before { content: '\eaaf'; } +.codicon-calendar:before { content: '\eab0'; } +.codicon-case-sensitive:before { content: '\eab1'; } +.codicon-check:before { content: '\eab2'; } +.codicon-checklist:before { content: '\eab3'; } +.codicon-chevron-down:before { content: '\eab4'; } +.codicon-chevron-left:before { content: '\eab5'; } +.codicon-chevron-right:before { content: '\eab6'; } +.codicon-chevron-up:before { content: '\eab7'; } +.codicon-chrome-close:before { content: '\eab8'; } +.codicon-chrome-maximize:before { content: '\eab9'; } +.codicon-chrome-minimize:before { content: '\eaba'; } +.codicon-chrome-restore:before { content: '\eabb'; } +.codicon-circle-outline:before { content: '\eabc'; } +.codicon-circle:before { content: '\eabc'; } +.codicon-debug-breakpoint-unverified:before { content: '\eabc'; } +.codicon-terminal-decoration-incomplete:before { content: '\eabc'; } +.codicon-circle-slash:before { content: '\eabd'; } +.codicon-circuit-board:before { content: '\eabe'; } +.codicon-clear-all:before { content: '\eabf'; } +.codicon-clippy:before { content: '\eac0'; } +.codicon-close-all:before { content: '\eac1'; } +.codicon-cloud-download:before { content: '\eac2'; } +.codicon-cloud-upload:before { content: '\eac3'; } +.codicon-code:before { content: '\eac4'; } +.codicon-collapse-all:before { content: '\eac5'; } +.codicon-color-mode:before { content: '\eac6'; } +.codicon-comment-discussion:before { content: '\eac7'; } +.codicon-credit-card:before { content: '\eac9'; } +.codicon-dash:before { content: '\eacc'; } +.codicon-dashboard:before { content: '\eacd'; } +.codicon-database:before { content: '\eace'; } +.codicon-debug-continue:before { content: '\eacf'; } +.codicon-debug-disconnect:before { content: '\ead0'; } +.codicon-debug-pause:before { content: '\ead1'; } +.codicon-debug-restart:before { content: '\ead2'; } +.codicon-debug-start:before { content: '\ead3'; } +.codicon-debug-step-into:before { content: '\ead4'; } +.codicon-debug-step-out:before { content: '\ead5'; } +.codicon-debug-step-over:before { content: '\ead6'; } +.codicon-debug-stop:before { content: '\ead7'; } +.codicon-debug:before { content: '\ead8'; } +.codicon-device-camera-video:before { content: '\ead9'; } +.codicon-device-camera:before { content: '\eada'; } +.codicon-device-mobile:before { content: '\eadb'; } +.codicon-diff-added:before { content: '\eadc'; } +.codicon-diff-ignored:before { content: '\eadd'; } +.codicon-diff-modified:before { content: '\eade'; } +.codicon-diff-removed:before { content: '\eadf'; } +.codicon-diff-renamed:before { content: '\eae0'; } +.codicon-diff:before { content: '\eae1'; } +.codicon-diff-sidebyside:before { content: '\eae1'; } +.codicon-discard:before { content: '\eae2'; } +.codicon-editor-layout:before { content: '\eae3'; } +.codicon-empty-window:before { content: '\eae4'; } +.codicon-exclude:before { content: '\eae5'; } +.codicon-extensions:before { content: '\eae6'; } +.codicon-eye-closed:before { content: '\eae7'; } +.codicon-file-binary:before { content: '\eae8'; } +.codicon-file-code:before { content: '\eae9'; } +.codicon-file-media:before { content: '\eaea'; } +.codicon-file-pdf:before { content: '\eaeb'; } +.codicon-file-submodule:before { content: '\eaec'; } +.codicon-file-symlink-directory:before { content: '\eaed'; } +.codicon-file-symlink-file:before { content: '\eaee'; } +.codicon-file-zip:before { content: '\eaef'; } +.codicon-files:before { content: '\eaf0'; } +.codicon-filter:before { content: '\eaf1'; } +.codicon-flame:before { content: '\eaf2'; } +.codicon-fold-down:before { content: '\eaf3'; } +.codicon-fold-up:before { content: '\eaf4'; } +.codicon-fold:before { content: '\eaf5'; } +.codicon-folder-active:before { content: '\eaf6'; } +.codicon-folder-opened:before { content: '\eaf7'; } +.codicon-gear:before { content: '\eaf8'; } +.codicon-gift:before { content: '\eaf9'; } +.codicon-gist-secret:before { content: '\eafa'; } +.codicon-gist:before { content: '\eafb'; } +.codicon-git-commit:before { content: '\eafc'; } +.codicon-git-compare:before { content: '\eafd'; } +.codicon-compare-changes:before { content: '\eafd'; } +.codicon-git-merge:before { content: '\eafe'; } +.codicon-github-action:before { content: '\eaff'; } +.codicon-github-alt:before { content: '\eb00'; } +.codicon-globe:before { content: '\eb01'; } +.codicon-grabber:before { content: '\eb02'; } +.codicon-graph:before { content: '\eb03'; } +.codicon-gripper:before { content: '\eb04'; } +.codicon-heart:before { content: '\eb05'; } +.codicon-home:before { content: '\eb06'; } +.codicon-horizontal-rule:before { content: '\eb07'; } +.codicon-hubot:before { content: '\eb08'; } +.codicon-inbox:before { content: '\eb09'; } +.codicon-issue-reopened:before { content: '\eb0b'; } +.codicon-issues:before { content: '\eb0c'; } +.codicon-italic:before { content: '\eb0d'; } +.codicon-jersey:before { content: '\eb0e'; } +.codicon-json:before { content: '\eb0f'; } +.codicon-kebab-vertical:before { content: '\eb10'; } +.codicon-key:before { content: '\eb11'; } +.codicon-law:before { content: '\eb12'; } +.codicon-lightbulb-autofix:before { content: '\eb13'; } +.codicon-link-external:before { content: '\eb14'; } +.codicon-link:before { content: '\eb15'; } +.codicon-list-ordered:before { content: '\eb16'; } +.codicon-list-unordered:before { content: '\eb17'; } +.codicon-live-share:before { content: '\eb18'; } +.codicon-loading:before { content: '\eb19'; } +.codicon-location:before { content: '\eb1a'; } +.codicon-mail-read:before { content: '\eb1b'; } +.codicon-mail:before { content: '\eb1c'; } +.codicon-markdown:before { content: '\eb1d'; } +.codicon-megaphone:before { content: '\eb1e'; } +.codicon-mention:before { content: '\eb1f'; } +.codicon-milestone:before { content: '\eb20'; } +.codicon-git-pull-request-milestone:before { content: '\eb20'; } +.codicon-mortar-board:before { content: '\eb21'; } +.codicon-move:before { content: '\eb22'; } +.codicon-multiple-windows:before { content: '\eb23'; } +.codicon-mute:before { content: '\eb24'; } +.codicon-no-newline:before { content: '\eb25'; } +.codicon-note:before { content: '\eb26'; } +.codicon-octoface:before { content: '\eb27'; } +.codicon-open-preview:before { content: '\eb28'; } +.codicon-package:before { content: '\eb29'; } +.codicon-paintcan:before { content: '\eb2a'; } +.codicon-pin:before { content: '\eb2b'; } +.codicon-play:before { content: '\eb2c'; } +.codicon-run:before { content: '\eb2c'; } +.codicon-plug:before { content: '\eb2d'; } +.codicon-preserve-case:before { content: '\eb2e'; } +.codicon-preview:before { content: '\eb2f'; } +.codicon-project:before { content: '\eb30'; } +.codicon-pulse:before { content: '\eb31'; } +.codicon-question:before { content: '\eb32'; } +.codicon-quote:before { content: '\eb33'; } +.codicon-radio-tower:before { content: '\eb34'; } +.codicon-reactions:before { content: '\eb35'; } +.codicon-references:before { content: '\eb36'; } +.codicon-refresh:before { content: '\eb37'; } +.codicon-regex:before { content: '\eb38'; } +.codicon-remote-explorer:before { content: '\eb39'; } +.codicon-remote:before { content: '\eb3a'; } +.codicon-remove:before { content: '\eb3b'; } +.codicon-replace-all:before { content: '\eb3c'; } +.codicon-replace:before { content: '\eb3d'; } +.codicon-repo-clone:before { content: '\eb3e'; } +.codicon-repo-force-push:before { content: '\eb3f'; } +.codicon-repo-pull:before { content: '\eb40'; } +.codicon-repo-push:before { content: '\eb41'; } +.codicon-report:before { content: '\eb42'; } +.codicon-request-changes:before { content: '\eb43'; } +.codicon-rocket:before { content: '\eb44'; } +.codicon-root-folder-opened:before { content: '\eb45'; } +.codicon-root-folder:before { content: '\eb46'; } +.codicon-rss:before { content: '\eb47'; } +.codicon-ruby:before { content: '\eb48'; } +.codicon-save-all:before { content: '\eb49'; } +.codicon-save-as:before { content: '\eb4a'; } +.codicon-save:before { content: '\eb4b'; } +.codicon-screen-full:before { content: '\eb4c'; } +.codicon-screen-normal:before { content: '\eb4d'; } +.codicon-search-stop:before { content: '\eb4e'; } +.codicon-server:before { content: '\eb50'; } +.codicon-settings-gear:before { content: '\eb51'; } +.codicon-settings:before { content: '\eb52'; } +.codicon-shield:before { content: '\eb53'; } +.codicon-smiley:before { content: '\eb54'; } +.codicon-sort-precedence:before { content: '\eb55'; } +.codicon-split-horizontal:before { content: '\eb56'; } +.codicon-split-vertical:before { content: '\eb57'; } +.codicon-squirrel:before { content: '\eb58'; } +.codicon-star-full:before { content: '\eb59'; } +.codicon-star-half:before { content: '\eb5a'; } +.codicon-symbol-class:before { content: '\eb5b'; } +.codicon-symbol-color:before { content: '\eb5c'; } +.codicon-symbol-constant:before { content: '\eb5d'; } +.codicon-symbol-enum-member:before { content: '\eb5e'; } +.codicon-symbol-field:before { content: '\eb5f'; } +.codicon-symbol-file:before { content: '\eb60'; } +.codicon-symbol-interface:before { content: '\eb61'; } +.codicon-symbol-keyword:before { content: '\eb62'; } +.codicon-symbol-misc:before { content: '\eb63'; } +.codicon-symbol-operator:before { content: '\eb64'; } +.codicon-symbol-property:before { content: '\eb65'; } +.codicon-wrench:before { content: '\eb65'; } +.codicon-wrench-subaction:before { content: '\eb65'; } +.codicon-symbol-snippet:before { content: '\eb66'; } +.codicon-tasklist:before { content: '\eb67'; } +.codicon-telescope:before { content: '\eb68'; } +.codicon-text-size:before { content: '\eb69'; } +.codicon-three-bars:before { content: '\eb6a'; } +.codicon-thumbsdown:before { content: '\eb6b'; } +.codicon-thumbsup:before { content: '\eb6c'; } +.codicon-tools:before { content: '\eb6d'; } +.codicon-triangle-down:before { content: '\eb6e'; } +.codicon-triangle-left:before { content: '\eb6f'; } +.codicon-triangle-right:before { content: '\eb70'; } +.codicon-triangle-up:before { content: '\eb71'; } +.codicon-twitter:before { content: '\eb72'; } +.codicon-unfold:before { content: '\eb73'; } +.codicon-unlock:before { content: '\eb74'; } +.codicon-unmute:before { content: '\eb75'; } +.codicon-unverified:before { content: '\eb76'; } +.codicon-verified:before { content: '\eb77'; } +.codicon-versions:before { content: '\eb78'; } +.codicon-vm-active:before { content: '\eb79'; } +.codicon-vm-outline:before { content: '\eb7a'; } +.codicon-vm-running:before { content: '\eb7b'; } +.codicon-watch:before { content: '\eb7c'; } +.codicon-whitespace:before { content: '\eb7d'; } +.codicon-whole-word:before { content: '\eb7e'; } +.codicon-window:before { content: '\eb7f'; } +.codicon-word-wrap:before { content: '\eb80'; } +.codicon-zoom-in:before { content: '\eb81'; } +.codicon-zoom-out:before { content: '\eb82'; } +.codicon-list-filter:before { content: '\eb83'; } +.codicon-list-flat:before { content: '\eb84'; } +.codicon-list-selection:before { content: '\eb85'; } +.codicon-selection:before { content: '\eb85'; } +.codicon-list-tree:before { content: '\eb86'; } +.codicon-debug-breakpoint-function-unverified:before { content: '\eb87'; } +.codicon-debug-breakpoint-function:before { content: '\eb88'; } +.codicon-debug-breakpoint-function-disabled:before { content: '\eb88'; } +.codicon-debug-stackframe-active:before { content: '\eb89'; } +.codicon-circle-small-filled:before { content: '\eb8a'; } +.codicon-debug-stackframe-dot:before { content: '\eb8a'; } +.codicon-terminal-decoration-mark:before { content: '\eb8a'; } +.codicon-debug-stackframe:before { content: '\eb8b'; } +.codicon-debug-stackframe-focused:before { content: '\eb8b'; } +.codicon-debug-breakpoint-unsupported:before { content: '\eb8c'; } +.codicon-symbol-string:before { content: '\eb8d'; } +.codicon-debug-reverse-continue:before { content: '\eb8e'; } +.codicon-debug-step-back:before { content: '\eb8f'; } +.codicon-debug-restart-frame:before { content: '\eb90'; } +.codicon-debug-alt:before { content: '\eb91'; } +.codicon-call-incoming:before { content: '\eb92'; } +.codicon-call-outgoing:before { content: '\eb93'; } +.codicon-menu:before { content: '\eb94'; } +.codicon-expand-all:before { content: '\eb95'; } +.codicon-feedback:before { content: '\eb96'; } +.codicon-git-pull-request-reviewer:before { content: '\eb96'; } +.codicon-group-by-ref-type:before { content: '\eb97'; } +.codicon-ungroup-by-ref-type:before { content: '\eb98'; } +.codicon-account:before { content: '\eb99'; } +.codicon-git-pull-request-assignee:before { content: '\eb99'; } +.codicon-bell-dot:before { content: '\eb9a'; } +.codicon-debug-console:before { content: '\eb9b'; } +.codicon-library:before { content: '\eb9c'; } +.codicon-output:before { content: '\eb9d'; } +.codicon-run-all:before { content: '\eb9e'; } +.codicon-sync-ignored:before { content: '\eb9f'; } +.codicon-pinned:before { content: '\eba0'; } +.codicon-github-inverted:before { content: '\eba1'; } +.codicon-server-process:before { content: '\eba2'; } +.codicon-server-environment:before { content: '\eba3'; } +.codicon-pass:before { content: '\eba4'; } +.codicon-issue-closed:before { content: '\eba4'; } +.codicon-stop-circle:before { content: '\eba5'; } +.codicon-play-circle:before { content: '\eba6'; } +.codicon-record:before { content: '\eba7'; } +.codicon-debug-alt-small:before { content: '\eba8'; } +.codicon-vm-connect:before { content: '\eba9'; } +.codicon-cloud:before { content: '\ebaa'; } +.codicon-merge:before { content: '\ebab'; } +.codicon-export:before { content: '\ebac'; } +.codicon-graph-left:before { content: '\ebad'; } +.codicon-magnet:before { content: '\ebae'; } +.codicon-notebook:before { content: '\ebaf'; } +.codicon-redo:before { content: '\ebb0'; } +.codicon-check-all:before { content: '\ebb1'; } +.codicon-pinned-dirty:before { content: '\ebb2'; } +.codicon-pass-filled:before { content: '\ebb3'; } +.codicon-circle-large-filled:before { content: '\ebb4'; } +.codicon-circle-large:before { content: '\ebb5'; } +.codicon-circle-large-outline:before { content: '\ebb5'; } +.codicon-combine:before { content: '\ebb6'; } +.codicon-gather:before { content: '\ebb6'; } +.codicon-table:before { content: '\ebb7'; } +.codicon-variable-group:before { content: '\ebb8'; } +.codicon-type-hierarchy:before { content: '\ebb9'; } +.codicon-type-hierarchy-sub:before { content: '\ebba'; } +.codicon-type-hierarchy-super:before { content: '\ebbb'; } +.codicon-git-pull-request-create:before { content: '\ebbc'; } +.codicon-run-above:before { content: '\ebbd'; } +.codicon-run-below:before { content: '\ebbe'; } +.codicon-notebook-template:before { content: '\ebbf'; } +.codicon-debug-rerun:before { content: '\ebc0'; } +.codicon-workspace-trusted:before { content: '\ebc1'; } +.codicon-workspace-untrusted:before { content: '\ebc2'; } +.codicon-workspace-unknown:before { content: '\ebc3'; } +.codicon-terminal-cmd:before { content: '\ebc4'; } +.codicon-terminal-debian:before { content: '\ebc5'; } +.codicon-terminal-linux:before { content: '\ebc6'; } +.codicon-terminal-powershell:before { content: '\ebc7'; } +.codicon-terminal-tmux:before { content: '\ebc8'; } +.codicon-terminal-ubuntu:before { content: '\ebc9'; } +.codicon-terminal-bash:before { content: '\ebca'; } +.codicon-arrow-swap:before { content: '\ebcb'; } +.codicon-copy:before { content: '\ebcc'; } +.codicon-person-add:before { content: '\ebcd'; } +.codicon-filter-filled:before { content: '\ebce'; } +.codicon-wand:before { content: '\ebcf'; } +.codicon-debug-line-by-line:before { content: '\ebd0'; } +.codicon-inspect:before { content: '\ebd1'; } +.codicon-layers:before { content: '\ebd2'; } +.codicon-layers-dot:before { content: '\ebd3'; } +.codicon-layers-active:before { content: '\ebd4'; } +.codicon-compass:before { content: '\ebd5'; } +.codicon-compass-dot:before { content: '\ebd6'; } +.codicon-compass-active:before { content: '\ebd7'; } +.codicon-azure:before { content: '\ebd8'; } +.codicon-issue-draft:before { content: '\ebd9'; } +.codicon-git-pull-request-closed:before { content: '\ebda'; } +.codicon-git-pull-request-draft:before { content: '\ebdb'; } +.codicon-debug-all:before { content: '\ebdc'; } +.codicon-debug-coverage:before { content: '\ebdd'; } +.codicon-run-errors:before { content: '\ebde'; } +.codicon-folder-library:before { content: '\ebdf'; } +.codicon-debug-continue-small:before { content: '\ebe0'; } +.codicon-beaker-stop:before { content: '\ebe1'; } +.codicon-graph-line:before { content: '\ebe2'; } +.codicon-graph-scatter:before { content: '\ebe3'; } +.codicon-pie-chart:before { content: '\ebe4'; } +.codicon-bracket:before { content: '\eb0f'; } +.codicon-bracket-dot:before { content: '\ebe5'; } +.codicon-bracket-error:before { content: '\ebe6'; } +.codicon-lock-small:before { content: '\ebe7'; } +.codicon-azure-devops:before { content: '\ebe8'; } +.codicon-verified-filled:before { content: '\ebe9'; } +.codicon-newline:before { content: '\ebea'; } +.codicon-layout:before { content: '\ebeb'; } +.codicon-layout-activitybar-left:before { content: '\ebec'; } +.codicon-layout-activitybar-right:before { content: '\ebed'; } +.codicon-layout-panel-left:before { content: '\ebee'; } +.codicon-layout-panel-center:before { content: '\ebef'; } +.codicon-layout-panel-justify:before { content: '\ebf0'; } +.codicon-layout-panel-right:before { content: '\ebf1'; } +.codicon-layout-panel:before { content: '\ebf2'; } +.codicon-layout-sidebar-left:before { content: '\ebf3'; } +.codicon-layout-sidebar-right:before { content: '\ebf4'; } +.codicon-layout-statusbar:before { content: '\ebf5'; } +.codicon-layout-menubar:before { content: '\ebf6'; } +.codicon-layout-centered:before { content: '\ebf7'; } +.codicon-target:before { content: '\ebf8'; } +.codicon-indent:before { content: '\ebf9'; } +.codicon-record-small:before { content: '\ebfa'; } +.codicon-error-small:before { content: '\ebfb'; } +.codicon-terminal-decoration-error:before { content: '\ebfb'; } +.codicon-arrow-circle-down:before { content: '\ebfc'; } +.codicon-arrow-circle-left:before { content: '\ebfd'; } +.codicon-arrow-circle-right:before { content: '\ebfe'; } +.codicon-arrow-circle-up:before { content: '\ebff'; } +.codicon-layout-sidebar-right-off:before { content: '\ec00'; } +.codicon-layout-panel-off:before { content: '\ec01'; } +.codicon-layout-sidebar-left-off:before { content: '\ec02'; } +.codicon-blank:before { content: '\ec03'; } +.codicon-heart-filled:before { content: '\ec04'; } +.codicon-map:before { content: '\ec05'; } +.codicon-map-horizontal:before { content: '\ec05'; } +.codicon-fold-horizontal:before { content: '\ec05'; } +.codicon-map-filled:before { content: '\ec06'; } +.codicon-map-horizontal-filled:before { content: '\ec06'; } +.codicon-fold-horizontal-filled:before { content: '\ec06'; } +.codicon-circle-small:before { content: '\ec07'; } +.codicon-bell-slash:before { content: '\ec08'; } +.codicon-bell-slash-dot:before { content: '\ec09'; } +.codicon-comment-unresolved:before { content: '\ec0a'; } +.codicon-git-pull-request-go-to-changes:before { content: '\ec0b'; } +.codicon-git-pull-request-new-changes:before { content: '\ec0c'; } +.codicon-search-fuzzy:before { content: '\ec0d'; } +.codicon-comment-draft:before { content: '\ec0e'; } +.codicon-send:before { content: '\ec0f'; } +.codicon-sparkle:before { content: '\ec10'; } +.codicon-insert:before { content: '\ec11'; } +.codicon-mic:before { content: '\ec12'; } +.codicon-thumbsdown-filled:before { content: '\ec13'; } +.codicon-thumbsup-filled:before { content: '\ec14'; } +.codicon-coffee:before { content: '\ec15'; } +.codicon-snake:before { content: '\ec16'; } +.codicon-game:before { content: '\ec17'; } +.codicon-vr:before { content: '\ec18'; } +.codicon-chip:before { content: '\ec19'; } +.codicon-piano:before { content: '\ec1a'; } +.codicon-music:before { content: '\ec1b'; } +.codicon-mic-filled:before { content: '\ec1c'; } +.codicon-repo-fetch:before { content: '\ec1d'; } +.codicon-copilot:before { content: '\ec1e'; } +.codicon-lightbulb-sparkle:before { content: '\ec1f'; } +.codicon-robot:before { content: '\ec20'; } +.codicon-sparkle-filled:before { content: '\ec21'; } +.codicon-diff-single:before { content: '\ec22'; } +.codicon-diff-multiple:before { content: '\ec23'; } +.codicon-surround-with:before { content: '\ec24'; } +.codicon-share:before { content: '\ec25'; } +.codicon-git-stash:before { content: '\ec26'; } +.codicon-git-stash-apply:before { content: '\ec27'; } +.codicon-git-stash-pop:before { content: '\ec28'; } +.codicon-vscode:before { content: '\ec29'; } +.codicon-vscode-insiders:before { content: '\ec2a'; } +.codicon-code-oss:before { content: '\ec2b'; } +.codicon-run-coverage:before { content: '\ec2c'; } +.codicon-run-all-coverage:before { content: '\ec2d'; } +.codicon-coverage:before { content: '\ec2e'; } +.codicon-github-project:before { content: '\ec2f'; } +.codicon-map-vertical:before { content: '\ec30'; } +.codicon-fold-vertical:before { content: '\ec30'; } +.codicon-map-vertical-filled:before { content: '\ec31'; } +.codicon-fold-vertical-filled:before { content: '\ec31'; } +.codicon-go-to-search:before { content: '\ec32'; } +.codicon-percentage:before { content: '\ec33'; } +.codicon-sort-percentage:before { content: '\ec33'; } +.codicon-attach:before { content: '\ec34'; } +.codicon-git-fetch:before { content: '\f101'; } diff --git a/playwright/src/test/assets/codicon.ttf b/playwright/src/test/assets/codicon.ttf new file mode 100644 index 000000000..27ee4c68c Binary files /dev/null and b/playwright/src/test/assets/codicon.ttf differ diff --git a/playwright/src/test/assets/consolelog.html b/playwright/src/test/assets/consolelog.html new file mode 100644 index 000000000..9ef271812 --- /dev/null +++ b/playwright/src/test/assets/consolelog.html @@ -0,0 +1,11 @@ + + + + console.log test + + + + + diff --git a/playwright/src/test/assets/counter.html b/playwright/src/test/assets/counter.html new file mode 100644 index 000000000..1e9028957 --- /dev/null +++ b/playwright/src/test/assets/counter.html @@ -0,0 +1,10 @@ + + +

      count: 0

      + diff --git a/playwright/src/test/assets/csp.html b/playwright/src/test/assets/csp.html new file mode 100644 index 000000000..378187491 --- /dev/null +++ b/playwright/src/test/assets/csp.html @@ -0,0 +1,2 @@ + +"; \ No newline at end of file diff --git a/playwright/src/test/assets/css-transition.html b/playwright/src/test/assets/css-transition.html new file mode 100644 index 000000000..449c1548d --- /dev/null +++ b/playwright/src/test/assets/css-transition.html @@ -0,0 +1,21 @@ + + +
      + diff --git a/playwright/src/test/assets/csscoverage/Dosis-Regular.ttf b/playwright/src/test/assets/csscoverage/Dosis-Regular.ttf new file mode 100644 index 000000000..4b208624e Binary files /dev/null and b/playwright/src/test/assets/csscoverage/Dosis-Regular.ttf differ diff --git a/playwright/src/test/assets/csscoverage/OFL.txt b/playwright/src/test/assets/csscoverage/OFL.txt new file mode 100644 index 000000000..a9b3c8b34 --- /dev/null +++ b/playwright/src/test/assets/csscoverage/OFL.txt @@ -0,0 +1,95 @@ +Copyright (c) 2011, Edgar Tolentino and Pablo Impallari (www.impallari.com|impallari@gmail.com), +Copyright (c) 2011, Igino Marini. (www.ikern.com|mail@iginomarini.com), +with Reserved Font Names "Dosis". + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/playwright/src/test/assets/csscoverage/involved.html b/playwright/src/test/assets/csscoverage/involved.html new file mode 100644 index 000000000..bcd9845b9 --- /dev/null +++ b/playwright/src/test/assets/csscoverage/involved.html @@ -0,0 +1,26 @@ + +
      woof!
      +fancy text + diff --git a/playwright/src/test/assets/csscoverage/media.html b/playwright/src/test/assets/csscoverage/media.html new file mode 100644 index 000000000..bfb89f8f7 --- /dev/null +++ b/playwright/src/test/assets/csscoverage/media.html @@ -0,0 +1,4 @@ + +
      hello, world
      + diff --git a/playwright/src/test/assets/csscoverage/multiple.html b/playwright/src/test/assets/csscoverage/multiple.html new file mode 100644 index 000000000..0fd97e962 --- /dev/null +++ b/playwright/src/test/assets/csscoverage/multiple.html @@ -0,0 +1,8 @@ + + + diff --git a/playwright/src/test/assets/csscoverage/simple.html b/playwright/src/test/assets/csscoverage/simple.html new file mode 100644 index 000000000..3beae2182 --- /dev/null +++ b/playwright/src/test/assets/csscoverage/simple.html @@ -0,0 +1,6 @@ + +
      hello, world
      + diff --git a/playwright/src/test/assets/csscoverage/sourceurl.html b/playwright/src/test/assets/csscoverage/sourceurl.html new file mode 100644 index 000000000..df4e9c276 --- /dev/null +++ b/playwright/src/test/assets/csscoverage/sourceurl.html @@ -0,0 +1,7 @@ + + diff --git a/playwright/src/test/assets/csscoverage/stylesheet1.css b/playwright/src/test/assets/csscoverage/stylesheet1.css new file mode 100644 index 000000000..60f1eab97 --- /dev/null +++ b/playwright/src/test/assets/csscoverage/stylesheet1.css @@ -0,0 +1,3 @@ +body { + color: red; +} diff --git a/playwright/src/test/assets/csscoverage/stylesheet2.css b/playwright/src/test/assets/csscoverage/stylesheet2.css new file mode 100644 index 000000000..a87defb09 --- /dev/null +++ b/playwright/src/test/assets/csscoverage/stylesheet2.css @@ -0,0 +1,4 @@ +html { + margin: 0; + padding: 0; +} diff --git a/playwright/src/test/assets/csscoverage/unused.html b/playwright/src/test/assets/csscoverage/unused.html new file mode 100644 index 000000000..5b8186a3b --- /dev/null +++ b/playwright/src/test/assets/csscoverage/unused.html @@ -0,0 +1,7 @@ + + diff --git a/playwright/src/test/assets/deep-shadow.html b/playwright/src/test/assets/deep-shadow.html new file mode 100644 index 000000000..891b0730f --- /dev/null +++ b/playwright/src/test/assets/deep-shadow.html @@ -0,0 +1,36 @@ + diff --git a/playwright/src/test/assets/device-motion.html b/playwright/src/test/assets/device-motion.html new file mode 100644 index 000000000..78a2eb77a --- /dev/null +++ b/playwright/src/test/assets/device-motion.html @@ -0,0 +1,28 @@ + + + + + Device motion test + + + + + + + diff --git a/playwright/src/test/assets/device-orientation.html b/playwright/src/test/assets/device-orientation.html new file mode 100644 index 000000000..46be1f3f7 --- /dev/null +++ b/playwright/src/test/assets/device-orientation.html @@ -0,0 +1,29 @@ + + + + + Device orientation test + + + + + + + diff --git a/playwright/src/test/assets/digits/0.png b/playwright/src/test/assets/digits/0.png new file mode 100644 index 000000000..ac3c4768e Binary files /dev/null and b/playwright/src/test/assets/digits/0.png differ diff --git a/playwright/src/test/assets/digits/1.png b/playwright/src/test/assets/digits/1.png new file mode 100644 index 000000000..676822272 Binary files /dev/null and b/playwright/src/test/assets/digits/1.png differ diff --git a/playwright/src/test/assets/digits/2.png b/playwright/src/test/assets/digits/2.png new file mode 100644 index 000000000..b1daa4735 Binary files /dev/null and b/playwright/src/test/assets/digits/2.png differ diff --git a/playwright/src/test/assets/digits/3.png b/playwright/src/test/assets/digits/3.png new file mode 100644 index 000000000..6eca99b21 Binary files /dev/null and b/playwright/src/test/assets/digits/3.png differ diff --git a/playwright/src/test/assets/digits/4.png b/playwright/src/test/assets/digits/4.png new file mode 100644 index 000000000..a721071e2 Binary files /dev/null and b/playwright/src/test/assets/digits/4.png differ diff --git a/playwright/src/test/assets/digits/5.png b/playwright/src/test/assets/digits/5.png new file mode 100644 index 000000000..15cb19932 Binary files /dev/null and b/playwright/src/test/assets/digits/5.png differ diff --git a/playwright/src/test/assets/digits/6.png b/playwright/src/test/assets/digits/6.png new file mode 100644 index 000000000..639f38439 Binary files /dev/null and b/playwright/src/test/assets/digits/6.png differ diff --git a/playwright/src/test/assets/digits/7.png b/playwright/src/test/assets/digits/7.png new file mode 100644 index 000000000..5c1150b00 Binary files /dev/null and b/playwright/src/test/assets/digits/7.png differ diff --git a/playwright/src/test/assets/digits/8.png b/playwright/src/test/assets/digits/8.png new file mode 100644 index 000000000..abb8b48b0 Binary files /dev/null and b/playwright/src/test/assets/digits/8.png differ diff --git a/playwright/src/test/assets/digits/9.png b/playwright/src/test/assets/digits/9.png new file mode 100644 index 000000000..6a40a21c6 Binary files /dev/null and b/playwright/src/test/assets/digits/9.png differ diff --git a/playwright/src/test/assets/dom.html b/playwright/src/test/assets/dom.html new file mode 100644 index 000000000..25572912e --- /dev/null +++ b/playwright/src/test/assets/dom.html @@ -0,0 +1,5 @@ +
      Text, +more text
      + + + diff --git a/playwright/src/test/assets/download-blob.html b/playwright/src/test/assets/download-blob.html new file mode 100644 index 000000000..3c4a3d813 --- /dev/null +++ b/playwright/src/test/assets/download-blob.html @@ -0,0 +1,29 @@ + + + + Blob Download Example + + + + Download + + diff --git a/playwright/src/test/assets/drag-n-drop.html b/playwright/src/test/assets/drag-n-drop.html new file mode 100644 index 000000000..f40b1bfc5 --- /dev/null +++ b/playwright/src/test/assets/drag-n-drop.html @@ -0,0 +1,57 @@ + + + + + +
      +

      + Select this element, drag it to the Drop Zone and then release the selection to move the element.

      +
      +
      Drop Zone
      + diff --git a/playwright/src/test/assets/dummy_bad_browser_executable.js b/playwright/src/test/assets/dummy_bad_browser_executable.js new file mode 100755 index 000000000..92f1453c5 --- /dev/null +++ b/playwright/src/test/assets/dummy_bad_browser_executable.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +process.exit(1); diff --git a/playwright/src/test/assets/dynamic-oopif.html b/playwright/src/test/assets/dynamic-oopif.html new file mode 100644 index 000000000..e2f168bdb --- /dev/null +++ b/playwright/src/test/assets/dynamic-oopif.html @@ -0,0 +1,31 @@ + + diff --git a/playwright/src/test/assets/empty-standard-mode.html b/playwright/src/test/assets/empty-standard-mode.html new file mode 100644 index 000000000..0e76edd65 --- /dev/null +++ b/playwright/src/test/assets/empty-standard-mode.html @@ -0,0 +1 @@ + diff --git a/playwright/src/test/assets/empty.html b/playwright/src/test/assets/empty.html new file mode 100644 index 000000000..e69de29bb diff --git a/playwright/src/test/assets/empty.pdf b/playwright/src/test/assets/empty.pdf new file mode 100644 index 000000000..ed845a637 Binary files /dev/null and b/playwright/src/test/assets/empty.pdf differ diff --git a/playwright/src/test/assets/error.html b/playwright/src/test/assets/error.html new file mode 100644 index 000000000..0851c4df8 --- /dev/null +++ b/playwright/src/test/assets/error.html @@ -0,0 +1,17 @@ + diff --git a/playwright/src/test/assets/es6/es6import.js b/playwright/src/test/assets/es6/es6import.js new file mode 100644 index 000000000..9a0a1095d --- /dev/null +++ b/playwright/src/test/assets/es6/es6import.js @@ -0,0 +1,2 @@ +import num from './es6module.js'; +window.__es6injected = num; \ No newline at end of file diff --git a/playwright/src/test/assets/es6/es6module.js b/playwright/src/test/assets/es6/es6module.js new file mode 100644 index 000000000..a4012bff0 --- /dev/null +++ b/playwright/src/test/assets/es6/es6module.js @@ -0,0 +1 @@ +export default 42; \ No newline at end of file diff --git a/playwright/src/test/assets/es6/es6pathimport.js b/playwright/src/test/assets/es6/es6pathimport.js new file mode 100644 index 000000000..99919621a --- /dev/null +++ b/playwright/src/test/assets/es6/es6pathimport.js @@ -0,0 +1,2 @@ +import num from './es6/es6module.js'; +window.__es6injected = num; \ No newline at end of file diff --git a/playwright/src/test/assets/evals/fill-form-submit.html b/playwright/src/test/assets/evals/fill-form-submit.html new file mode 100644 index 000000000..a115d6e94 --- /dev/null +++ b/playwright/src/test/assets/evals/fill-form-submit.html @@ -0,0 +1,369 @@ + + + + + + Order Confirmation + + + +
      + +
      + + + + diff --git a/playwright/src/test/assets/evals/fill-form.html b/playwright/src/test/assets/evals/fill-form.html new file mode 100644 index 000000000..02de222e1 --- /dev/null +++ b/playwright/src/test/assets/evals/fill-form.html @@ -0,0 +1,186 @@ + + + + Order Form + + + +
      +

      Product Order Form

      +
      + +
      + + +
      + +
      + + +
      + +
      + + +
      + +
      + + +
      + +
      + + +
      + +
      + + +
      + +
      + + +
      + +
      + + +
      + + +
      +
      + + + diff --git a/playwright/src/test/assets/example.mp3 b/playwright/src/test/assets/example.mp3 new file mode 100644 index 000000000..f7d3831e5 Binary files /dev/null and b/playwright/src/test/assets/example.mp3 differ diff --git a/playwright/src/test/resources/simple-extension/content-script.js b/playwright/src/test/assets/extension-mv3-simple/content-script.js similarity index 100% rename from playwright/src/test/resources/simple-extension/content-script.js rename to playwright/src/test/assets/extension-mv3-simple/content-script.js diff --git a/playwright/src/test/resources/simple-extension/index.js b/playwright/src/test/assets/extension-mv3-simple/index.js similarity index 63% rename from playwright/src/test/resources/simple-extension/index.js rename to playwright/src/test/assets/extension-mv3-simple/index.js index a0bb3f4ea..1523a8364 100644 --- a/playwright/src/test/resources/simple-extension/index.js +++ b/playwright/src/test/assets/extension-mv3-simple/index.js @@ -1,2 +1,2 @@ // Mock script for background extension -window.MAGIC = 42; +globalThis.MAGIC = 42; diff --git a/playwright/src/test/resources/simple-extension/manifest.json b/playwright/src/test/assets/extension-mv3-simple/manifest.json similarity index 80% rename from playwright/src/test/resources/simple-extension/manifest.json rename to playwright/src/test/assets/extension-mv3-simple/manifest.json index da2cd082e..39b77fc21 100644 --- a/playwright/src/test/resources/simple-extension/manifest.json +++ b/playwright/src/test/assets/extension-mv3-simple/manifest.json @@ -2,7 +2,7 @@ "name": "Simple extension", "version": "0.1", "background": { - "scripts": ["index.js"] + "service_worker": "index.js" }, "content_scripts": [{ "matches": [""], @@ -10,5 +10,5 @@ "js": ["content-script.js"] }], "permissions": ["background", "activeTab"], - "manifest_version": 2 + "manifest_version": 3 } diff --git a/playwright/src/test/assets/extension-mv3-sw-lifecycle/background.js b/playwright/src/test/assets/extension-mv3-sw-lifecycle/background.js new file mode 100644 index 000000000..4914caade --- /dev/null +++ b/playwright/src/test/assets/extension-mv3-sw-lifecycle/background.js @@ -0,0 +1,2 @@ +// Each time the service worker starts (or restarts), this runs fresh. +globalThis.startTime = Date.now(); diff --git a/playwright/src/test/assets/extension-mv3-sw-lifecycle/manifest.json b/playwright/src/test/assets/extension-mv3-sw-lifecycle/manifest.json new file mode 100644 index 000000000..ad6a4ed64 --- /dev/null +++ b/playwright/src/test/assets/extension-mv3-sw-lifecycle/manifest.json @@ -0,0 +1,8 @@ +{ + "name": "SW Lifecycle Test Extension", + "version": "0.1", + "background": { + "service_worker": "background.js" + }, + "manifest_version": 3 +} diff --git a/playwright/src/test/assets/extension-mv3-with-logging/background.js b/playwright/src/test/assets/extension-mv3-with-logging/background.js new file mode 100644 index 000000000..3780fa3f2 --- /dev/null +++ b/playwright/src/test/assets/extension-mv3-with-logging/background.js @@ -0,0 +1,5 @@ +console.log("Service worker script loaded"); + +chrome.runtime.onInstalled.addListener(() => { + console.log("Extension installed"); +}); \ No newline at end of file diff --git a/playwright/src/test/assets/extension-mv3-with-logging/content.js b/playwright/src/test/assets/extension-mv3-with-logging/content.js new file mode 100644 index 000000000..e718206c2 --- /dev/null +++ b/playwright/src/test/assets/extension-mv3-with-logging/content.js @@ -0,0 +1 @@ +console.log("Test console log from a third-party execution context"); diff --git a/playwright/src/test/assets/extension-mv3-with-logging/manifest.json b/playwright/src/test/assets/extension-mv3-with-logging/manifest.json new file mode 100644 index 000000000..429dc7798 --- /dev/null +++ b/playwright/src/test/assets/extension-mv3-with-logging/manifest.json @@ -0,0 +1,17 @@ +{ + "manifest_version": 3, + "name": "Console Log Extension", + "version": "1.0", + "background": { + "service_worker": "background.js" + }, + "permissions": [ + "tabs" + ], + "content_scripts": [ + { + "matches": [""], + "js": ["content.js"] + } + ] + } \ No newline at end of file diff --git a/playwright/src/test/assets/file to upload.txt b/playwright/src/test/assets/file to upload.txt new file mode 100644 index 000000000..b4ad11848 --- /dev/null +++ b/playwright/src/test/assets/file to upload.txt @@ -0,0 +1 @@ +contents of the file \ No newline at end of file diff --git a/playwright/src/test/assets/file-to-upload-2.txt b/playwright/src/test/assets/file-to-upload-2.txt new file mode 100644 index 000000000..b4ad11848 --- /dev/null +++ b/playwright/src/test/assets/file-to-upload-2.txt @@ -0,0 +1 @@ +contents of the file \ No newline at end of file diff --git a/playwright/src/test/assets/file-to-upload.txt b/playwright/src/test/assets/file-to-upload.txt new file mode 100644 index 000000000..b4ad11848 --- /dev/null +++ b/playwright/src/test/assets/file-to-upload.txt @@ -0,0 +1 @@ +contents of the file \ No newline at end of file diff --git a/playwright/src/test/assets/formatted-number.html b/playwright/src/test/assets/formatted-number.html new file mode 100644 index 000000000..75e63207d --- /dev/null +++ b/playwright/src/test/assets/formatted-number.html @@ -0,0 +1,4 @@ + diff --git a/playwright/src/test/assets/frames/child-redirect.html b/playwright/src/test/assets/frames/child-redirect.html new file mode 100644 index 000000000..d4806e7f6 --- /dev/null +++ b/playwright/src/test/assets/frames/child-redirect.html @@ -0,0 +1 @@ + diff --git a/playwright/src/test/assets/frames/frame.html b/playwright/src/test/assets/frames/frame.html new file mode 100644 index 000000000..3d3b94343 --- /dev/null +++ b/playwright/src/test/assets/frames/frame.html @@ -0,0 +1,19 @@ + + + + + +
      Hi, I'm frame
      diff --git a/playwright/src/test/assets/frames/frameset.html b/playwright/src/test/assets/frames/frameset.html new file mode 100644 index 000000000..4d56f8883 --- /dev/null +++ b/playwright/src/test/assets/frames/frameset.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/playwright/src/test/assets/frames/lazy-frame.html b/playwright/src/test/assets/frames/lazy-frame.html new file mode 100644 index 000000000..f5e0e0914 --- /dev/null +++ b/playwright/src/test/assets/frames/lazy-frame.html @@ -0,0 +1,6 @@ +
      One
      +
      Two
      +
      Three
      +
      Four
      +
      Five
      + diff --git a/playwright/src/test/assets/frames/nested-frames.html b/playwright/src/test/assets/frames/nested-frames.html new file mode 100644 index 000000000..d858d3285 --- /dev/null +++ b/playwright/src/test/assets/frames/nested-frames.html @@ -0,0 +1,30 @@ + + + + diff --git a/playwright/src/test/assets/frames/one-frame.html b/playwright/src/test/assets/frames/one-frame.html new file mode 100644 index 000000000..e941d795a --- /dev/null +++ b/playwright/src/test/assets/frames/one-frame.html @@ -0,0 +1 @@ + diff --git a/playwright/src/test/assets/frames/redirect-my-parent.html b/playwright/src/test/assets/frames/redirect-my-parent.html new file mode 100644 index 000000000..3beb0aac1 --- /dev/null +++ b/playwright/src/test/assets/frames/redirect-my-parent.html @@ -0,0 +1,3 @@ + diff --git a/playwright/src/test/assets/frames/script.js b/playwright/src/test/assets/frames/script.js new file mode 100644 index 000000000..be22256d1 --- /dev/null +++ b/playwright/src/test/assets/frames/script.js @@ -0,0 +1 @@ +console.log('Cheers!'); diff --git a/playwright/src/test/assets/frames/style.css b/playwright/src/test/assets/frames/style.css new file mode 100644 index 000000000..5b5436e87 --- /dev/null +++ b/playwright/src/test/assets/frames/style.css @@ -0,0 +1,3 @@ +div { + color: blue; +} diff --git a/playwright/src/test/assets/frames/two-frames.html b/playwright/src/test/assets/frames/two-frames.html new file mode 100644 index 000000000..00324f084 --- /dev/null +++ b/playwright/src/test/assets/frames/two-frames.html @@ -0,0 +1,16 @@ + + + diff --git a/playwright/src/test/assets/geolocation.html b/playwright/src/test/assets/geolocation.html new file mode 100644 index 000000000..3d44c3f7f --- /dev/null +++ b/playwright/src/test/assets/geolocation.html @@ -0,0 +1,7 @@ + diff --git a/playwright/src/test/assets/global-var.html b/playwright/src/test/assets/global-var.html new file mode 100644 index 000000000..b6be97503 --- /dev/null +++ b/playwright/src/test/assets/global-var.html @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/playwright/src/test/assets/grid-iframe-in-shadow.html b/playwright/src/test/assets/grid-iframe-in-shadow.html new file mode 100644 index 000000000..4649b2722 --- /dev/null +++ b/playwright/src/test/assets/grid-iframe-in-shadow.html @@ -0,0 +1,16 @@ + + diff --git a/playwright/src/test/assets/grid.html b/playwright/src/test/assets/grid.html new file mode 100644 index 000000000..8345f429b --- /dev/null +++ b/playwright/src/test/assets/grid.html @@ -0,0 +1,66 @@ + + + diff --git a/playwright/src/test/assets/har-fulfill.har b/playwright/src/test/assets/har-fulfill.har new file mode 100644 index 000000000..5b679098c --- /dev/null +++ b/playwright/src/test/assets/har-fulfill.har @@ -0,0 +1,366 @@ +{ + "log": { + "version": "1.2", + "creator": { + "name": "Playwright", + "version": "1.23.0-next" + }, + "browser": { + "name": "chromium", + "version": "103.0.5060.33" + }, + "pages": [ + { + "startedDateTime": "2022-06-10T04:27:32.125Z", + "id": "page@b17b177f1c2e66459db3dcbe44636ffd", + "title": "Hey", + "pageTimings": { + "onContentLoad": 70, + "onLoad": 70 + } + } + ], + "entries": [ + { + "_frameref": "frame@c7467fc0f1f86f09fc3b0d727a3862ea", + "_monotonicTime": 270572145.898, + "startedDateTime": "2022-06-10T04:27:32.146Z", + "time": 8.286, + "request": { + "method": "GET", + "url": "http://no.playwright/", + "httpVersion": "HTTP/1.1", + "cookies": [], + "headers": [ + { + "name": "Accept", + "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" + }, + { + "name": "Upgrade-Insecure-Requests", + "value": "1" + }, + { + "name": "User-Agent", + "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.33 Safari/537.36" + } + ], + "queryString": [], + "headersSize": 326, + "bodySize": 0 + }, + "response": { + "status": 200, + "statusText": "OK", + "httpVersion": "HTTP/1.1", + "cookies": [], + "headers": [ + { + "name": "content-length", + "value": "111" + }, + { + "name": "content-type", + "value": "text/html" + } + ], + "content": { + "size": 111, + "mimeType": "text/html", + "compression": 0, + "text": "Hey
      hello
      " + }, + "headersSize": 65, + "bodySize": 170, + "redirectURL": "", + "_transferSize": 170 + }, + "cache": { + "beforeRequest": null, + "afterRequest": null + }, + "timings": { + "dns": -1, + "connect": -1, + "ssl": -1, + "send": 0, + "wait": 8.286, + "receive": -1 + }, + "pageref": "page@b17b177f1c2e66459db3dcbe44636ffd", + "_securityDetails": {} + }, + { + "_frameref": "frame@c7467fc0f1f86f09fc3b0d727a3862ea", + "_monotonicTime": 270572174.683, + "startedDateTime": "2022-06-10T04:27:32.172Z", + "time": 7.132, + "request": { + "method": "POST", + "url": "http://no.playwright/style.css", + "httpVersion": "HTTP/1.1", + "cookies": [], + "headers": [ + { + "name": "Accept", + "value": "text/css,*/*;q=0.1" + }, + { + "name": "Referer", + "value": "http://no.playwright/" + }, + { + "name": "User-Agent", + "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.33 Safari/537.36" + } + ], + "queryString": [], + "headersSize": 220, + "bodySize": 0 + }, + "response": { + "status": 200, + "statusText": "OK", + "httpVersion": "HTTP/1.1", + "cookies": [], + "headers": [ + { + "name": "content-length", + "value": "24" + }, + { + "name": "content-type", + "value": "text/css" + } + ], + "content": { + "size": 24, + "mimeType": "text/css", + "compression": 0, + "text": "body { background:cyan }" + }, + "headersSize": 63, + "bodySize": 81, + "redirectURL": "", + "_transferSize": 81 + }, + "cache": { + "beforeRequest": null, + "afterRequest": null + }, + "timings": { + "dns": -1, + "connect": -1, + "ssl": -1, + "send": 0, + "wait": 8.132, + "receive": -1 + }, + "pageref": "page@b17b177f1c2e66459db3dcbe44636ffd", + "_securityDetails": {} + }, + { + "_frameref": "frame@c7467fc0f1f86f09fc3b0d727a3862ea", + "_monotonicTime": 270572174.683, + "startedDateTime": "2022-06-10T04:27:32.174Z", + "time": 8.132, + "request": { + "method": "GET", + "url": "http://no.playwright/style.css", + "httpVersion": "HTTP/1.1", + "cookies": [], + "headers": [ + { + "name": "Accept", + "value": "text/css,*/*;q=0.1" + }, + { + "name": "Referer", + "value": "http://no.playwright/" + }, + { + "name": "User-Agent", + "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.33 Safari/537.36" + } + ], + "queryString": [], + "headersSize": 220, + "bodySize": 0 + }, + "response": { + "status": 200, + "statusText": "OK", + "httpVersion": "HTTP/1.1", + "cookies": [], + "headers": [ + { + "name": "content-length", + "value": "24" + }, + { + "name": "content-type", + "value": "text/css" + } + ], + "content": { + "size": 24, + "mimeType": "text/css", + "compression": 0, + "text": "body { background: red }" + }, + "headersSize": 63, + "bodySize": 81, + "redirectURL": "", + "_transferSize": 81 + }, + "cache": { + "beforeRequest": null, + "afterRequest": null + }, + "timings": { + "dns": -1, + "connect": -1, + "ssl": -1, + "send": 0, + "wait": 8.132, + "receive": -1 + }, + "pageref": "page@b17b177f1c2e66459db3dcbe44636ffd", + "_securityDetails": {} + }, + { + "_frameref": "frame@c7467fc0f1f86f09fc3b0d727a3862ea", + "_monotonicTime": 270572175.042, + "startedDateTime": "2022-06-10T04:27:32.175Z", + "time": 15.997, + "request": { + "method": "GET", + "url": "http://no.playwright/script.js", + "httpVersion": "HTTP/1.1", + "cookies": [], + "headers": [ + { + "name": "Accept", + "value": "*/*" + }, + { + "name": "Referer", + "value": "http://no.playwright/" + }, + { + "name": "User-Agent", + "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.33 Safari/537.36" + } + ], + "queryString": [], + "headersSize": 205, + "bodySize": 0 + }, + "response": { + "status": 301, + "statusText": "Moved Permanently", + "httpVersion": "HTTP/1.1", + "cookies": [], + "headers": [ + { + "name": "location", + "value": "http://no.playwright/script2.js" + } + ], + "content": { + "size": -1, + "mimeType": "x-unknown", + "compression": 0 + }, + "headersSize": 77, + "bodySize": 0, + "redirectURL": "http://no.playwright/script2.js", + "_transferSize": 77 + }, + "cache": { + "beforeRequest": null, + "afterRequest": null + }, + "timings": { + "dns": -1, + "connect": -1, + "ssl": -1, + "send": 0, + "wait": 7.673, + "receive": 8.324 + }, + "pageref": "page@b17b177f1c2e66459db3dcbe44636ffd", + "_securityDetails": {} + }, + { + "_frameref": "frame@c7467fc0f1f86f09fc3b0d727a3862ea", + "_monotonicTime": 270572181.822, + "startedDateTime": "2022-06-10T04:27:32.182Z", + "time": 6.735, + "request": { + "method": "GET", + "url": "http://no.playwright/script2.js", + "httpVersion": "HTTP/1.1", + "cookies": [], + "headers": [ + { + "name": "Accept", + "value": "*/*" + }, + { + "name": "Referer", + "value": "http://no.playwright/" + }, + { + "name": "User-Agent", + "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.33 Safari/537.36" + } + ], + "queryString": [], + "headersSize": 206, + "bodySize": 0 + }, + "response": { + "status": 200, + "statusText": "OK", + "httpVersion": "HTTP/1.1", + "cookies": [], + "headers": [ + { + "name": "content-length", + "value": "18" + }, + { + "name": "content-type", + "value": "text/javascript" + } + ], + "content": { + "size": 18, + "mimeType": "text/javascript", + "compression": 0, + "text": "window.value='foo'" + }, + "headersSize": 70, + "bodySize": 82, + "redirectURL": "", + "_transferSize": 82 + }, + "cache": { + "beforeRequest": null, + "afterRequest": null + }, + "timings": { + "dns": -1, + "connect": -1, + "ssl": -1, + "send": 0, + "wait": 6.735, + "receive": -1 + }, + "pageref": "page@b17b177f1c2e66459db3dcbe44636ffd", + "_securityDetails": {} + } + ] + } +} \ No newline at end of file diff --git a/playwright/src/test/assets/har-redirect.har b/playwright/src/test/assets/har-redirect.har new file mode 100644 index 000000000..5b50e7bff --- /dev/null +++ b/playwright/src/test/assets/har-redirect.har @@ -0,0 +1,620 @@ +{ + "log": { + "version": "1.2", + "creator": { + "name": "Playwright", + "version": "1.23.0-next" + }, + "browser": { + "name": "chromium", + "version": "103.0.5060.42" + }, + "pages": [ + { + "startedDateTime": "2022-06-16T21:41:23.901Z", + "id": "page@8f314969edc000996eb5c2ab22f0e6b3", + "title": "Microsoft", + "pageTimings": { + "onContentLoad": 8363, + "onLoad": 8896 + } + } + ], + "entries": [ + { + "_frameref": "frame@3767e074ecde4cb8372abba2f6f9bb4f", + "_monotonicTime": 110928357.437, + "startedDateTime": "2022-06-16T21:41:23.951Z", + "time": 93.99, + "request": { + "method": "GET", + "url": "https://theverge.com/", + "httpVersion": "HTTP/2.0", + "cookies": [], + "headers": [ + { + "name": ":authority", + "value": "theverge.com" + }, + { + "name": ":method", + "value": "GET" + }, + { + "name": ":path", + "value": "/" + }, + { + "name": ":scheme", + "value": "https" + }, + { + "name": "accept", + "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" + }, + { + "name": "accept-encoding", + "value": "gzip, deflate, br" + }, + { + "name": "accept-language", + "value": "en-US,en;q=0.9" + }, + { + "name": "sec-ch-ua", + "value": "\"Chromium\";v=\"103\", \".Not/A)Brand\";v=\"99\"" + }, + { + "name": "sec-ch-ua-mobile", + "value": "?0" + }, + { + "name": "sec-ch-ua-platform", + "value": "\"Linux\"" + }, + { + "name": "sec-fetch-dest", + "value": "document" + }, + { + "name": "sec-fetch-mode", + "value": "navigate" + }, + { + "name": "sec-fetch-site", + "value": "none" + }, + { + "name": "sec-fetch-user", + "value": "?1" + }, + { + "name": "upgrade-insecure-requests", + "value": "1" + }, + { + "name": "user-agent", + "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.42 Safari/537.36" + } + ], + "queryString": [], + "headersSize": 644, + "bodySize": 0 + }, + "response": { + "status": 301, + "statusText": "", + "httpVersion": "HTTP/2.0", + "cookies": [ + { + "name": "vmidv1", + "value": "9faf31ab-1415-4b90-b367-24b670205f41", + "expires": "2027-06-15T21:41:24.000Z", + "domain": "theverge.com", + "path": "/", + "sameSite": "Lax", + "secure": true + } + ], + "headers": [ + { + "name": "accept-ranges", + "value": "bytes" + }, + { + "name": "content-length", + "value": "0" + }, + { + "name": "date", + "value": "Thu, 16 Jun 2022 21:41:24 GMT" + }, + { + "name": "location", + "value": "http://www.theverge.com/" + }, + { + "name": "retry-after", + "value": "0" + }, + { + "name": "server", + "value": "Varnish" + }, + { + "name": "set-cookie", + "value": "vmidv1=9faf31ab-1415-4b90-b367-24b670205f41;Expires=Tue, 15 Jun 2027 21:41:24 GMT;Domain=theverge.com;Path=/;SameSite=Lax;Secure" + }, + { + "name": "via", + "value": "1.1 varnish" + }, + { + "name": "x-cache", + "value": "HIT" + }, + { + "name": "x-cache-hits", + "value": "0" + }, + { + "name": "x-served-by", + "value": "cache-pao17442-PAO" + }, + { + "name": "x-timer", + "value": "S1655415684.005867,VS0,VE0" + } + ], + "content": { + "size": -1, + "mimeType": "x-unknown", + "compression": 0 + }, + "headersSize": 425, + "bodySize": 0, + "redirectURL": "http://www.theverge.com/", + "_transferSize": 425 + }, + "cache": { + "beforeRequest": null, + "afterRequest": null + }, + "timings": { + "dns": 0, + "connect": 34.151, + "ssl": 28.074, + "send": 0, + "wait": 27.549, + "receive": 4.216 + }, + "pageref": "page@8f314969edc000996eb5c2ab22f0e6b3", + "serverIPAddress": "151.101.65.52", + "_serverPort": 443, + "_securityDetails": { + "protocol": "TLS 1.2", + "subjectName": "*.americanninjawarriornation.com", + "issuer": "GlobalSign Atlas R3 DV TLS CA 2022 Q1", + "validFrom": 1644853133, + "validTo": 1679153932 + } + }, + { + "_frameref": "frame@3767e074ecde4cb8372abba2f6f9bb4f", + "_monotonicTime": 110928427.603, + "startedDateTime": "2022-06-16T21:41:24.022Z", + "time": 44.39499999999999, + "request": { + "method": "GET", + "url": "http://www.theverge.com/", + "httpVersion": "HTTP/1.1", + "cookies": [], + "headers": [ + { + "name": "Accept", + "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" + }, + { + "name": "Accept-Encoding", + "value": "gzip, deflate" + }, + { + "name": "Accept-Language", + "value": "en-US,en;q=0.9" + }, + { + "name": "Connection", + "value": "keep-alive" + }, + { + "name": "Host", + "value": "www.theverge.com" + }, + { + "name": "Upgrade-Insecure-Requests", + "value": "1" + }, + { + "name": "User-Agent", + "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.42 Safari/537.36" + } + ], + "queryString": [], + "headersSize": 423, + "bodySize": 0 + }, + "response": { + "status": 301, + "statusText": "Moved Permanently", + "httpVersion": "HTTP/1.1", + "cookies": [ + { + "name": "_chorus_geoip_continent", + "value": "NA" + }, + { + "name": "vmidv1", + "value": "4e0c1265-10f8-4cb1-a5de-1c3cf70b531c", + "expires": "2027-06-15T21:41:24.000Z", + "domain": "www.theverge.com", + "path": "/", + "sameSite": "Lax", + "secure": true + } + ], + "headers": [ + { + "name": "Accept-Ranges", + "value": "bytes" + }, + { + "name": "Age", + "value": "2615" + }, + { + "name": "Connection", + "value": "keep-alive" + }, + { + "name": "Content-Length", + "value": "0" + }, + { + "name": "Content-Type", + "value": "text/html" + }, + { + "name": "Date", + "value": "Thu, 16 Jun 2022 21:41:24 GMT" + }, + { + "name": "Location", + "value": "https://www.theverge.com/" + }, + { + "name": "Server", + "value": "nginx" + }, + { + "name": "Set-Cookie", + "value": "_chorus_geoip_continent=NA; expires=Fri, 17 Jun 2022 21:41:24 GMT; path=/;" + }, + { + "name": "Set-Cookie", + "value": "vmidv1=4e0c1265-10f8-4cb1-a5de-1c3cf70b531c;Expires=Tue, 15 Jun 2027 21:41:24 GMT;Domain=www.theverge.com;Path=/;SameSite=Lax;Secure" + }, + { + "name": "Vary", + "value": "X-Forwarded-Proto, Cookie, X-Chorus-Unison-Testing, X-Chorus-Require-Privacy-Consent, X-Chorus-Restrict-In-Privacy-Consent-Region, Accept-Encoding" + }, + { + "name": "Via", + "value": "1.1 varnish" + }, + { + "name": "X-Cache", + "value": "HIT" + }, + { + "name": "X-Cache-Hits", + "value": "2" + }, + { + "name": "X-Served-By", + "value": "cache-pao17450-PAO" + }, + { + "name": "X-Timer", + "value": "S1655415684.035748,VS0,VE0" + } + ], + "content": { + "size": -1, + "mimeType": "text/html", + "compression": 0 + }, + "headersSize": 731, + "bodySize": 0, + "redirectURL": "https://www.theverge.com/", + "_transferSize": 731 + }, + "cache": { + "beforeRequest": null, + "afterRequest": null + }, + "timings": { + "dns": 2.742, + "connect": 10.03, + "ssl": 14.123, + "send": 0, + "wait": 15.023, + "receive": 2.477 + }, + "pageref": "page@8f314969edc000996eb5c2ab22f0e6b3", + "serverIPAddress": "151.101.189.52", + "_serverPort": 80, + "_securityDetails": {} + }, + { + "_frameref": "frame@3767e074ecde4cb8372abba2f6f9bb4f", + "_monotonicTime": 110928455.901, + "startedDateTime": "2022-06-16T21:41:24.050Z", + "time": 50.29199999999999, + "request": { + "method": "GET", + "url": "https://www.theverge.com/", + "httpVersion": "HTTP/2.0", + "cookies": [ + { + "name": "vmidv1", + "value": "9faf31ab-1415-4b90-b367-24b670205f41" + }, + { + "name": "_chorus_geoip_continent", + "value": "NA" + } + ], + "headers": [ + { + "name": ":authority", + "value": "www.theverge.com" + }, + { + "name": ":method", + "value": "GET" + }, + { + "name": ":path", + "value": "/" + }, + { + "name": ":scheme", + "value": "https" + }, + { + "name": "accept", + "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" + }, + { + "name": "accept-encoding", + "value": "gzip, deflate, br" + }, + { + "name": "accept-language", + "value": "en-US,en;q=0.9" + }, + { + "name": "cookie", + "value": "vmidv1=9faf31ab-1415-4b90-b367-24b670205f41; _chorus_geoip_continent=NA" + }, + { + "name": "sec-ch-ua", + "value": "\"Chromium\";v=\"103\", \".Not/A)Brand\";v=\"99\"" + }, + { + "name": "sec-ch-ua-mobile", + "value": "?0" + }, + { + "name": "sec-ch-ua-platform", + "value": "\"Linux\"" + }, + { + "name": "sec-fetch-dest", + "value": "document" + }, + { + "name": "sec-fetch-mode", + "value": "navigate" + }, + { + "name": "sec-fetch-site", + "value": "none" + }, + { + "name": "sec-fetch-user", + "value": "?1" + }, + { + "name": "upgrade-insecure-requests", + "value": "1" + }, + { + "name": "user-agent", + "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.42 Safari/537.36" + } + ], + "queryString": [], + "headersSize": 729, + "bodySize": 0 + }, + "response": { + "status": 200, + "statusText": "", + "httpVersion": "HTTP/2.0", + "cookies": [ + { + "name": "_chorus_geoip_continent", + "value": "NA" + }, + { + "name": "vmidv1", + "value": "40d8fd14-5ac3-4757-9e9c-efb106e82d3a", + "expires": "2027-06-15T21:41:24.000Z", + "domain": "www.theverge.com", + "path": "/", + "sameSite": "Lax", + "secure": true + } + ], + "headers": [ + { + "name": "accept-ranges", + "value": "bytes" + }, + { + "name": "age", + "value": "263" + }, + { + "name": "cache-control", + "value": "max-age=0, public, must-revalidate" + }, + { + "name": "content-encoding", + "value": "br" + }, + { + "name": "content-length", + "value": "14" + }, + { + "name": "content-security-policy", + "value": "default-src https: data: 'unsafe-inline' 'unsafe-eval'; child-src https: data: blob:; connect-src https: data: blob: ; font-src https: data:; img-src https: data: blob:; media-src https: data: blob:; object-src https:; script-src https: data: blob: 'unsafe-inline' 'unsafe-eval'; style-src https: 'unsafe-inline'; block-all-mixed-content; upgrade-insecure-requests" + }, + { + "name": "content-type", + "value": "text/html; charset=utf-8" + }, + { + "name": "date", + "value": "Thu, 16 Jun 2022 21:41:24 GMT" + }, + { + "name": "etag", + "value": "W/\"d498ef668223d015000070a66a181e85\"" + }, + { + "name": "link", + "value": "; rel=preload; as=fetch; crossorigin" + }, + { + "name": "referrer-policy", + "value": "strict-origin-when-cross-origin" + }, + { + "name": "server", + "value": "nginx" + }, + { + "name": "set-cookie", + "value": "_chorus_geoip_continent=NA; expires=Fri, 17 Jun 2022 21:41:24 GMT; path=/;" + }, + { + "name": "set-cookie", + "value": "vmidv1=40d8fd14-5ac3-4757-9e9c-efb106e82d3a;Expires=Tue, 15 Jun 2027 21:41:24 GMT;Domain=www.theverge.com;Path=/;SameSite=Lax;Secure" + }, + { + "name": "strict-transport-security", + "value": "max-age=31556952; preload" + }, + { + "name": "vary", + "value": "Accept-Encoding, X-Chorus-Unison-Testing, X-Chorus-Require-Privacy-Consent, X-Chorus-Restrict-In-Privacy-Consent-Region, Origin, X-Forwarded-Proto, Cookie, X-Chorus-Unison-Testing, X-Chorus-Require-Privacy-Consent, X-Chorus-Restrict-In-Privacy-Consent-Region" + }, + { + "name": "via", + "value": "1.1 varnish" + }, + { + "name": "x-cache", + "value": "HIT" + }, + { + "name": "x-cache-hits", + "value": "1" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-download-options", + "value": "noopen" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-permitted-cross-domain-policies", + "value": "none" + }, + { + "name": "x-request-id", + "value": "97363ad70e272e63641c0bb784fa06a01b848dfd" + }, + { + "name": "x-runtime", + "value": "0.257911" + }, + { + "name": "x-served-by", + "value": "cache-pao17436-PAO" + }, + { + "name": "x-timer", + "value": "S1655415684.075077,VS0,VE1" + }, + { + "name": "x-xss-protection", + "value": "1; mode=block" + } + ], + "content": { + "size": 14, + "mimeType": "text/html", + "compression": 0, + "text": "

      hello

      " + }, + "headersSize": 1742, + "bodySize": 48716, + "redirectURL": "", + "_transferSize": 48716 + }, + "cache": { + "beforeRequest": null, + "afterRequest": null + }, + "timings": { + "dns": 0.016, + "connect": 24.487, + "ssl": 17.406, + "send": 0, + "wait": 8.383, + "receive": -1 + }, + "pageref": "page@8f314969edc000996eb5c2ab22f0e6b3", + "serverIPAddress": "151.101.189.52", + "_serverPort": 443, + "_securityDetails": { + "protocol": "TLS 1.2", + "subjectName": "*.americanninjawarriornation.com", + "issuer": "GlobalSign Atlas R3 DV TLS CA 2022 Q1", + "validFrom": 1644853133, + "validTo": 1679153932 + } + } + ] + } +} \ No newline at end of file diff --git a/playwright/src/test/assets/har-sha1-main-response.txt b/playwright/src/test/assets/har-sha1-main-response.txt new file mode 100644 index 000000000..dbe9dba55 --- /dev/null +++ b/playwright/src/test/assets/har-sha1-main-response.txt @@ -0,0 +1 @@ +Hello, world \ No newline at end of file diff --git a/playwright/src/test/assets/har-sha1.har b/playwright/src/test/assets/har-sha1.har new file mode 100644 index 000000000..d918acd02 --- /dev/null +++ b/playwright/src/test/assets/har-sha1.har @@ -0,0 +1,95 @@ +{ + "log": { + "version": "1.2", + "creator": { + "name": "Playwright", + "version": "1.23.0-next" + }, + "browser": { + "name": "chromium", + "version": "103.0.5060.33" + }, + "pages": [ + { + "startedDateTime": "2022-06-10T04:27:32.125Z", + "id": "page@b17b177f1c2e66459db3dcbe44636ffd", + "title": "Hey", + "pageTimings": { + "onContentLoad": 70, + "onLoad": 70 + } + } + ], + "entries": [ + { + "_frameref": "frame@c7467fc0f1f86f09fc3b0d727a3862ea", + "_monotonicTime": 270572145.898, + "startedDateTime": "2022-06-10T04:27:32.146Z", + "time": 8.286, + "request": { + "method": "GET", + "url": "http://no.playwright/", + "httpVersion": "HTTP/1.1", + "cookies": [], + "headers": [ + { + "name": "Accept", + "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" + }, + { + "name": "Upgrade-Insecure-Requests", + "value": "1" + }, + { + "name": "User-Agent", + "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.33 Safari/537.36" + } + ], + "queryString": [], + "headersSize": 326, + "bodySize": 0 + }, + "response": { + "status": 200, + "statusText": "OK", + "httpVersion": "HTTP/1.1", + "cookies": [], + "headers": [ + { + "name": "content-length", + "value": "12" + }, + { + "name": "content-type", + "value": "text/html" + } + ], + "content": { + "size": 12, + "mimeType": "text/html", + "compression": 0, + "_file": "har-sha1-main-response.txt" + }, + "headersSize": 64, + "bodySize": 71, + "redirectURL": "", + "_transferSize": 71 + }, + "cache": { + "beforeRequest": null, + "afterRequest": null + }, + "timings": { + "dns": -1, + "connect": -1, + "ssl": -1, + "send": 0, + "wait": 8.286, + "receive": -1 + }, + "pageref": "page@b17b177f1c2e66459db3dcbe44636ffd", + "_securityDetails": {} + } + ] + } +} \ No newline at end of file diff --git a/playwright/src/test/assets/har.html b/playwright/src/test/assets/har.html new file mode 100644 index 000000000..054bb0eb1 --- /dev/null +++ b/playwright/src/test/assets/har.html @@ -0,0 +1,3 @@ +HAR Page + +
      hello, world!
      diff --git a/playwright/src/test/assets/headings.html b/playwright/src/test/assets/headings.html new file mode 100644 index 000000000..d1f1ad620 --- /dev/null +++ b/playwright/src/test/assets/headings.html @@ -0,0 +1,15 @@ + + + + + Headings + + + +

      Title

      +

      Subtitle

      +

      Subsubtitle

      +

      Subtitle

      + + + \ No newline at end of file diff --git a/playwright/src/test/assets/highdpi.html b/playwright/src/test/assets/highdpi.html new file mode 100644 index 000000000..7de3a6d5f --- /dev/null +++ b/playwright/src/test/assets/highdpi.html @@ -0,0 +1,7 @@ + diff --git a/playwright/src/test/assets/historyapi.html b/playwright/src/test/assets/historyapi.html new file mode 100644 index 000000000..bacaf9e9a --- /dev/null +++ b/playwright/src/test/assets/historyapi.html @@ -0,0 +1,5 @@ + diff --git a/playwright/src/test/assets/injectedfile.js b/playwright/src/test/assets/injectedfile.js new file mode 100644 index 000000000..784d1776b --- /dev/null +++ b/playwright/src/test/assets/injectedfile.js @@ -0,0 +1,3 @@ +window.__injected = 42; +window.injected = 123; +window.__injectedError = new Error('hi'); \ No newline at end of file diff --git a/playwright/src/test/assets/injectedstyle.css b/playwright/src/test/assets/injectedstyle.css new file mode 100644 index 000000000..aa1634c25 --- /dev/null +++ b/playwright/src/test/assets/injectedstyle.css @@ -0,0 +1,3 @@ +body { + background-color: red; +} diff --git a/playwright/src/test/assets/input/animating-button.html b/playwright/src/test/assets/input/animating-button.html new file mode 100644 index 000000000..2946f2e89 --- /dev/null +++ b/playwright/src/test/assets/input/animating-button.html @@ -0,0 +1,42 @@ + + diff --git a/playwright/src/test/assets/input/background-fixed.html b/playwright/src/test/assets/input/background-fixed.html new file mode 100644 index 000000000..5093939a5 --- /dev/null +++ b/playwright/src/test/assets/input/background-fixed.html @@ -0,0 +1,16 @@ + + + + + +
      tall
      + + diff --git a/playwright/src/test/assets/input/button.html b/playwright/src/test/assets/input/button.html new file mode 100644 index 000000000..bfce25ee0 --- /dev/null +++ b/playwright/src/test/assets/input/button.html @@ -0,0 +1,32 @@ + + + + Button test + + + + + + + \ No newline at end of file diff --git a/playwright/src/test/assets/input/checkbox.html b/playwright/src/test/assets/input/checkbox.html new file mode 100644 index 000000000..ca56762e2 --- /dev/null +++ b/playwright/src/test/assets/input/checkbox.html @@ -0,0 +1,42 @@ + + + + Selection Test + + + + + + + diff --git a/playwright/src/test/assets/input/drag-n-drop-manual.html b/playwright/src/test/assets/input/drag-n-drop-manual.html new file mode 100644 index 000000000..ee67aeb4d --- /dev/null +++ b/playwright/src/test/assets/input/drag-n-drop-manual.html @@ -0,0 +1,44 @@ + + +
      +
      + Drop here +
      +
      + Drag me +
      +
      + + diff --git a/playwright/src/test/assets/input/fileupload-multi.html b/playwright/src/test/assets/input/fileupload-multi.html new file mode 100644 index 000000000..05dd5a223 --- /dev/null +++ b/playwright/src/test/assets/input/fileupload-multi.html @@ -0,0 +1,12 @@ + + + + File upload test + + +
      + + +
      + + diff --git a/playwright/src/test/assets/input/fileupload.html b/playwright/src/test/assets/input/fileupload.html new file mode 100644 index 000000000..6486e5c28 --- /dev/null +++ b/playwright/src/test/assets/input/fileupload.html @@ -0,0 +1,12 @@ + + + + File upload test + + +
      + + +
      + + \ No newline at end of file diff --git a/playwright/src/test/assets/input/folderupload.html b/playwright/src/test/assets/input/folderupload.html new file mode 100644 index 000000000..16c7e2c3e --- /dev/null +++ b/playwright/src/test/assets/input/folderupload.html @@ -0,0 +1,12 @@ + + + + Folder upload test + + +
      + + +
      + + \ No newline at end of file diff --git a/playwright/src/test/assets/input/handle-locator.html b/playwright/src/test/assets/input/handle-locator.html new file mode 100644 index 000000000..5b164d5c7 --- /dev/null +++ b/playwright/src/test/assets/input/handle-locator.html @@ -0,0 +1,91 @@ + + + + Interstitial test + + + +
      +
      A place on the side to hover
      +
      +
      This interstitial covers the button
      + +
      + + + diff --git a/playwright/src/test/assets/input/keyboard.html b/playwright/src/test/assets/input/keyboard.html new file mode 100644 index 000000000..049ed439b --- /dev/null +++ b/playwright/src/test/assets/input/keyboard.html @@ -0,0 +1,51 @@ + + + + Keyboard test + + + + + + \ No newline at end of file diff --git a/playwright/src/test/assets/input/mouse-helper.js b/playwright/src/test/assets/input/mouse-helper.js new file mode 100644 index 000000000..3c4d57033 --- /dev/null +++ b/playwright/src/test/assets/input/mouse-helper.js @@ -0,0 +1,62 @@ +// This injects a box into the page that moves with the mouse; +// Useful for debugging +(function(){ + const box = document.createElement('div'); + box.classList.add('mouse-helper'); + const styleElement = document.createElement('style'); + styleElement.innerHTML = ` + .mouse-helper { + pointer-events: none; + position: absolute; + top: 0; + left: 0; + width: 20px; + height: 20px; + background: rgba(0,0,0,.4); + border: 1px solid white; + border-radius: 10px; + margin-left: -10px; + margin-top: -10px; + transition: background .2s, border-radius .2s, border-color .2s; + } + .mouse-helper.button-1 { + transition: none; + background: rgba(0,0,0,0.9); + } + .mouse-helper.button-2 { + transition: none; + border-color: rgba(0,0,255,0.9); + } + .mouse-helper.button-3 { + transition: none; + border-radius: 4px; + } + .mouse-helper.button-4 { + transition: none; + border-color: rgba(255,0,0,0.9); + } + .mouse-helper.button-5 { + transition: none; + border-color: rgba(0,255,0,0.9); + } + `; + document.head.appendChild(styleElement); + document.body.appendChild(box); + document.addEventListener('mousemove', event => { + box.style.left = event.pageX + 'px'; + box.style.top = event.pageY + 'px'; + updateButtons(event.buttons); + }, true); + document.addEventListener('mousedown', event => { + updateButtons(event.buttons); + box.classList.add('button-' + event.which); + }, true); + document.addEventListener('mouseup', event => { + updateButtons(event.buttons); + box.classList.remove('button-' + event.which); + }, true); + function updateButtons(buttons) { + for (let i = 0; i < 5; i++) + box.classList.toggle('button-' + i, buttons & (1 << i)); + } +})(); diff --git a/playwright/src/test/assets/input/rotatedButton.html b/playwright/src/test/assets/input/rotatedButton.html new file mode 100644 index 000000000..1bce66cf5 --- /dev/null +++ b/playwright/src/test/assets/input/rotatedButton.html @@ -0,0 +1,21 @@ + + + + Rotated button test + + + + + + + + diff --git a/playwright/src/test/assets/input/scrollable.html b/playwright/src/test/assets/input/scrollable.html new file mode 100644 index 000000000..885d3739d --- /dev/null +++ b/playwright/src/test/assets/input/scrollable.html @@ -0,0 +1,23 @@ + + + + Scrollable test + + + + + + \ No newline at end of file diff --git a/playwright/src/test/assets/input/scrollable2.html b/playwright/src/test/assets/input/scrollable2.html new file mode 100644 index 000000000..885d3739d --- /dev/null +++ b/playwright/src/test/assets/input/scrollable2.html @@ -0,0 +1,23 @@ + + + + Scrollable test + + + + + + \ No newline at end of file diff --git a/playwright/src/test/assets/input/select.html b/playwright/src/test/assets/input/select.html new file mode 100644 index 000000000..42784c28f --- /dev/null +++ b/playwright/src/test/assets/input/select.html @@ -0,0 +1,70 @@ + + + + Selection Test + + + + + + diff --git a/playwright/src/test/assets/input/textarea.html b/playwright/src/test/assets/input/textarea.html new file mode 100644 index 000000000..11da79882 --- /dev/null +++ b/playwright/src/test/assets/input/textarea.html @@ -0,0 +1,20 @@ + + + + Textarea test + + + + +
      +
      Plain div
      + + + + \ No newline at end of file diff --git a/playwright/src/test/assets/input/touches.html b/playwright/src/test/assets/input/touches.html new file mode 100644 index 000000000..4392cfacb --- /dev/null +++ b/playwright/src/test/assets/input/touches.html @@ -0,0 +1,35 @@ + + + + Touch test + + + + + + + \ No newline at end of file diff --git a/playwright/src/test/assets/jscoverage/eval.html b/playwright/src/test/assets/jscoverage/eval.html new file mode 100644 index 000000000..838ae2876 --- /dev/null +++ b/playwright/src/test/assets/jscoverage/eval.html @@ -0,0 +1 @@ + diff --git a/playwright/src/test/assets/jscoverage/involved.html b/playwright/src/test/assets/jscoverage/involved.html new file mode 100644 index 000000000..889c86bed --- /dev/null +++ b/playwright/src/test/assets/jscoverage/involved.html @@ -0,0 +1,15 @@ + diff --git a/playwright/src/test/assets/jscoverage/multiple.html b/playwright/src/test/assets/jscoverage/multiple.html new file mode 100644 index 000000000..bdef59885 --- /dev/null +++ b/playwright/src/test/assets/jscoverage/multiple.html @@ -0,0 +1,2 @@ + + diff --git a/playwright/src/test/assets/jscoverage/ranges.html b/playwright/src/test/assets/jscoverage/ranges.html new file mode 100644 index 000000000..a537a7da6 --- /dev/null +++ b/playwright/src/test/assets/jscoverage/ranges.html @@ -0,0 +1,2 @@ + diff --git a/playwright/src/test/assets/jscoverage/script1.js b/playwright/src/test/assets/jscoverage/script1.js new file mode 100644 index 000000000..3bd241b50 --- /dev/null +++ b/playwright/src/test/assets/jscoverage/script1.js @@ -0,0 +1 @@ +console.log(3); diff --git a/playwright/src/test/assets/jscoverage/script2.js b/playwright/src/test/assets/jscoverage/script2.js new file mode 100644 index 000000000..3bd241b50 --- /dev/null +++ b/playwright/src/test/assets/jscoverage/script2.js @@ -0,0 +1 @@ +console.log(3); diff --git a/playwright/src/test/assets/jscoverage/simple.html b/playwright/src/test/assets/jscoverage/simple.html new file mode 100644 index 000000000..49eeeea6a --- /dev/null +++ b/playwright/src/test/assets/jscoverage/simple.html @@ -0,0 +1,2 @@ + diff --git a/playwright/src/test/assets/jscoverage/sourceurl.html b/playwright/src/test/assets/jscoverage/sourceurl.html new file mode 100644 index 000000000..e47775032 --- /dev/null +++ b/playwright/src/test/assets/jscoverage/sourceurl.html @@ -0,0 +1,4 @@ + diff --git a/playwright/src/test/assets/jscoverage/unused.html b/playwright/src/test/assets/jscoverage/unused.html new file mode 100644 index 000000000..59c4a5a70 --- /dev/null +++ b/playwright/src/test/assets/jscoverage/unused.html @@ -0,0 +1 @@ + diff --git a/playwright/src/test/assets/load-event/load-event.html b/playwright/src/test/assets/load-event/load-event.html new file mode 100644 index 000000000..edd5ae226 --- /dev/null +++ b/playwright/src/test/assets/load-event/load-event.html @@ -0,0 +1,23 @@ + + + + + + Load Event Test + + + + + + + \ No newline at end of file diff --git a/playwright/src/test/assets/load-event/module.js b/playwright/src/test/assets/load-event/module.js new file mode 100644 index 000000000..0418190a3 --- /dev/null +++ b/playwright/src/test/assets/load-event/module.js @@ -0,0 +1,3 @@ +import {foo} from '/slow.js'; +console.log('foo is', foo); +window.results.push('module'); diff --git a/playwright/src/test/assets/media-query-prefers-color-scheme.svg b/playwright/src/test/assets/media-query-prefers-color-scheme.svg new file mode 100644 index 000000000..7b7f1a494 --- /dev/null +++ b/playwright/src/test/assets/media-query-prefers-color-scheme.svg @@ -0,0 +1,8 @@ + + + + diff --git a/playwright/src/test/assets/mobile.html b/playwright/src/test/assets/mobile.html new file mode 100644 index 000000000..8e94b2fe2 --- /dev/null +++ b/playwright/src/test/assets/mobile.html @@ -0,0 +1 @@ + diff --git a/playwright/src/test/assets/modernizr/README.md b/playwright/src/test/assets/modernizr/README.md new file mode 100644 index 000000000..2a986d23d --- /dev/null +++ b/playwright/src/test/assets/modernizr/README.md @@ -0,0 +1,18 @@ +# Playwright Modernizr tests + +## Rolling Modernizr + +- [modernizr.com](modernizr.com) isn't getting updated anymore, see [here](https://github.com/Modernizr/Modernizr/issues/2490) and [here](https://github.com/Modernizr/Modernizr/commit/db96bdaff995a1d4abccb0dc69c77db7b47ad614). It only contains version 3.6. +- This is why we build it from source ourselves, using `roll.sh` (they recommend it). + +## Updating expectations + +1. Serve `tests/assets/modernizr/index.html` from a remote (localhost results will be different) https origin (e.g. https://pages.github.com). +1. Navigate to `https://your-domain.com/tests/assets/modernizr/index.html` + +Do this with: + +- Safari Technology Preview +- Apple iPhone + +Make sure to change the updated file's name. diff --git a/playwright/src/test/assets/modernizr/index.html b/playwright/src/test/assets/modernizr/index.html new file mode 100644 index 000000000..9a345c195 --- /dev/null +++ b/playwright/src/test/assets/modernizr/index.html @@ -0,0 +1,26 @@ + + + diff --git a/playwright/src/test/assets/modernizr/mobile-safari-26.json b/playwright/src/test/assets/modernizr/mobile-safari-26.json new file mode 100644 index 000000000..57aaebc27 --- /dev/null +++ b/playwright/src/test/assets/modernizr/mobile-safari-26.json @@ -0,0 +1,410 @@ +{ + "input": { + "autocomplete": true, + "autofocus": true, + "list": true, + "placeholder": true, + "max": true, + "min": true, + "multiple": true, + "pattern": true, + "required": true, + "step": true + }, + "adownload": true, + "aping": true, + "areaping": true, + "ambientlight": false, + "applicationcache": false, + "audio": { + "ogg": "probably", + "mp3": "probably", + "opus": "probably", + "wav": "probably", + "m4a": "maybe" + }, + "audioloop": true, + "webaudio": true, + "batteryapi": false, + "battery-api": false, + "lowbattery": false, + "blobconstructor": true, + "blob-constructor": true, + "broadcastchannel": true, + "canvas": true, + "canvasblending": true, + "todataurljpeg": true, + "todataurlpng": true, + "todataurlwebp": false, + "canvaswinding": true, + "canvastext": true, + "clipboard": { + "read": true, + "readtext": true, + "write": true, + "writetext": true + }, + "contenteditable": true, + "contextmenu": false, + "cors": true, + "crypto": true, + "getrandomvalues": true, + "cssall": true, + "cssanimations": true, + "appearance": true, + "aspectratio": true, + "backdropfilter": true, + "backgroundblendmode": true, + "backgroundcliptext": true, + "bgpositionshorthand": true, + "bgpositionxy": true, + "bgrepeatround": true, + "bgrepeatspace": true, + "backgroundsize": true, + "bgsizecover": true, + "borderimage": true, + "borderradius": true, + "boxdecorationbreak": true, + "boxshadow": true, + "boxsizing": true, + "csscalc": true, + "checked": true, + "csschunit": true, + "csscolumns": { + "width": true, + "span": true, + "fill": true, + "gap": true, + "rule": true, + "rulecolor": true, + "rulestyle": true, + "rulewidth": true, + "breakbefore": true, + "breakafter": true, + "breakinside": true + }, + "cssgridlegacy": false, + "cssgrid": true, + "cubicbezierrange": true, + "customproperties": true, + "displayrunin": false, + "display-runin": false, + "displaytable": true, + "display-table": true, + "ellipsis": true, + "cssescape": true, + "cssexunit": true, + "supports": true, + "cssfilters": true, + "flexbox": true, + "flexboxlegacy": true, + "flexboxtweener": false, + "flexgap": true, + "flexwrap": true, + "focusvisible": true, + "focuswithin": true, + "fontdisplay": true, + "fontface": true, + "generatedcontent": true, + "cssgradients": true, + "hairline": true, + "hsla": true, + "cssinvalid": true, + "lastchild": true, + "cssmask": true, + "mediaqueries": true, + "multiplebgs": true, + "nthchild": true, + "objectfit": true, + "object-fit": true, + "opacity": true, + "overflowscrolling": true, + "csspointerevents": true, + "csspositionsticky": true, + "csspseudoanimations": true, + "csstransitions": true, + "csspseudotransitions": true, + "cssreflections": true, + "regions": false, + "cssremunit": true, + "cssresize": true, + "rgba": true, + "cssscrollbar": false, + "scrollsnappoints": true, + "shapes": true, + "siblinggeneral": true, + "subpixelfont": true, + "target": true, + "textalignlast": true, + "textdecoration": { + "line": true, + "style": true, + "color": true, + "skip": true, + "skipink": true + }, + "textshadow": true, + "csstransforms": true, + "csstransforms3d": true, + "csstransformslevel2": true, + "preserve3d": true, + "userselect": true, + "cssvalid": true, + "variablefonts": true, + "cssvhunit": true, + "cssvmaxunit": false, + "cssvminunit": true, + "cssvwunit": true, + "willchange": true, + "wrapflow": false, + "customelements": true, + "customprotocolhandler": false, + "dart": false, + "dataview": true, + "classlist": true, + "createelementattrs": false, + "createelement-attrs": false, + "dataset": true, + "documentfragment": true, + "hidden": true, + "intersectionobserver": true, + "microdata": false, + "mutationobserver": true, + "passiveeventlisteners": true, + "shadowroot": true, + "shadowrootlegacy": false, + "bdi": true, + "details": true, + "outputelem": true, + "picture": true, + "progressbar": true, + "meter": true, + "ruby": true, + "template": true, + "time": false, + "texttrackapi": true, + "track": true, + "unknownelements": true, + "emoji": true, + "es5array": true, + "es5date": true, + "es5function": true, + "es5object": true, + "strictmode": true, + "es5string": true, + "json": true, + "es5syntax": true, + "es5undefined": true, + "es5": true, + "es6array": true, + "arrow": true, + "es6class": true, + "es6collections": true, + "generators": true, + "es6math": true, + "es6number": true, + "es6object": true, + "promises": true, + "restparameters": true, + "spreadarray": true, + "stringtemplate": true, + "es6string": true, + "es6symbol": true, + "es7array": true, + "restdestructuringarray": true, + "restdestructuringobject": true, + "spreadobject": true, + "es8object": true, + "customevent": true, + "devicemotion": true, + "deviceorientation": true, + "eventlistener": true, + "forcetouch": false, + "hashchange": true, + "oninput": true, + "pointerevents": true, + "proximity": false, + "filereader": true, + "filesystem": false, + "flash": false, + "fullscreen": false, + "gamepads": true, + "geolocation": true, + "hiddenscroll": true, + "history": true, + "htmlimports": false, + "ie8compat": false, + "sandbox": true, + "seamless": false, + "srcdoc": true, + "imgcrossorigin": true, + "lazyloading": true, + "sizes": true, + "srcset": true, + "capture": true, + "fileinput": true, + "fileinputdirectory": true, + "inputformaction": true, + "input-formaction": true, + "formattribute": true, + "inputformenctype": true, + "input-formenctype": true, + "inputformmethod": true, + "inputformnovalidate": true, + "input-formnovalidate": true, + "inputformtarget": true, + "input-formtarget": true, + "inputtypes": { + "search": true, + "tel": true, + "url": true, + "email": true, + "datetime": false, + "date": true, + "month": true, + "week": true, + "time": true, + "datetime-local": true, + "number": true, + "range": true, + "color": true + }, + "formvalidation": true, + "localizednumber": false, + "inputsearchevent": false, + "placeholder": true, + "requestautocomplete": false, + "intl": true, + "ligatures": true, + "olreversed": true, + "mathml": true, + "mediasource": false, + "hovermq": false, + "pointermq": true, + "messagechannel": true, + "beacon": true, + "effectivetype": false, + "lowbandwidth": false, + "eventsource": true, + "fetch": true, + "xhrresponsetypearraybuffer": true, + "xhrresponsetypeblob": true, + "xhrresponsetypedocument": true, + "xhrresponsetypejson": true, + "xhrresponsetypetext": true, + "xhrresponsetype": true, + "xhr2": true, + "notification": false, + "pagevisibility": true, + "performance": true, + "pointerlock": false, + "postmessage": { + "structuredclones": true + }, + "proxy": true, + "queryselector": true, + "prefetch": false, + "requestanimationframe": true, + "raf": true, + "scriptasync": true, + "scriptdefer": true, + "scrolltooptions": true, + "serviceworker": true, + "speechrecognition": true, + "speechsynthesis": true, + "cookies": true, + "localstorage": true, + "quotamanagement": false, + "sessionstorage": true, + "userdata": false, + "websqldatabase": true, + "stylescoped": false, + "svg": true, + "svgasimg": true, + "svgclippaths": true, + "svgfilters": true, + "svgforeignobject": true, + "inlinesvg": true, + "smil": true, + "textareamaxlength": true, + "textencoder": true, + "textdecoder": true, + "typedarrays": true, + "unicoderange": true, + "bloburls": true, + "urlparser": true, + "urlsearchparams": true, + "vibrate": false, + "video": { + "ogg": "", + "h264": "probably", + "h265": "", + "webm": "probably", + "vp9": "probably", + "hls": "probably", + "av1": "" + }, + "videocrossorigin": true, + "videoloop": true, + "videopreload": true, + "vml": false, + "webintents": false, + "webanimations": true, + "publickeycredential": true, + "webgl": true, + "webglextensions": { + "ANGLE_instanced_arrays": true, + "EXT_blend_minmax": true, + "EXT_clip_control": true, + "EXT_color_buffer_half_float": true, + "EXT_depth_clamp": true, + "EXT_frag_depth": true, + "EXT_polygon_offset_clamp": true, + "EXT_shader_texture_lod": true, + "EXT_texture_filter_anisotropic": true, + "EXT_texture_mirror_clamp_to_edge": true, + "EXT_sRGB": true, + "KHR_parallel_shader_compile": true, + "OES_element_index_uint": true, + "OES_fbo_render_mipmap": true, + "OES_standard_derivatives": true, + "OES_texture_float": true, + "OES_texture_half_float": true, + "OES_texture_half_float_linear": true, + "OES_vertex_array_object": true, + "WEBGL_blend_func_extended": true, + "WEBGL_color_buffer_float": true, + "WEBGL_compressed_texture_astc": true, + "WEBGL_compressed_texture_etc": true, + "WEBGL_compressed_texture_etc1": true, + "WEBGL_compressed_texture_pvrtc": true, + "WEBKIT_WEBGL_compressed_texture_pvrtc": true, + "WEBGL_debug_renderer_info": true, + "WEBGL_debug_shaders": true, + "WEBGL_depth_texture": true, + "WEBGL_draw_buffers": true, + "WEBGL_lose_context": true, + "WEBGL_multi_draw": true, + "WEBGL_polygon_mode": true + }, + "peerconnection": true, + "datachannel": true, + "getusermedia": true, + "mediastream": true, + "websockets": true, + "websocketsbinary": true, + "atobbtoa": true, + "atob-btoa": true, + "framed": false, + "matchmedia": true, + "pushmanager": false, + "resizeobserver": true, + "workertypeoption": true, + "sharedworkers": true, + "webworkers": true, + "transferables": true, + "xdomainrequest": false, + "devicemotion2": true, + "deviceorientation2": true, + "deviceorientation3": true +} \ No newline at end of file diff --git a/playwright/src/test/assets/modernizr/modernizr.js b/playwright/src/test/assets/modernizr/modernizr.js new file mode 100644 index 000000000..b8f4e2e65 --- /dev/null +++ b/playwright/src/test/assets/modernizr/modernizr.js @@ -0,0 +1,4147 @@ +(()=>{var j=(e,A)=>()=>(A||e((A={exports:{}}).exports,A),A.exports);var Y=j((exports,module)=>{(function(scriptGlobalObject,window,document,undefined){var tests=[],ModernizrProto={_version:"4.0.0-alpha",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,A){var t=this;setTimeout(function(){A(t[e])},0)},addTest:function(e,A,t){tests.push({name:e,fn:A,options:t})},addAsyncTest:function(e){tests.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=ModernizrProto,Modernizr=new Modernizr;var classes=[];function is(e,A){return typeof e===A}function testRunner(){var e,A,t,r,n,o,a;for(var l in tests)if(tests.hasOwnProperty(l)){if(e=[],A=tests[l],A.name&&(e.push(A.name.toLowerCase()),A.options&&A.options.aliases&&A.options.aliases.length))for(t=0;t0&&(A+=" "+t+e.join(" "+t)),isSVG?docElement.className.baseVal=A:docElement.className=A)}var hasOwnProp;(function(){var e={}.hasOwnProperty;!is(e,"undefined")&&!is(e.call,"undefined")?hasOwnProp=function(A,t){return e.call(A,t)}:hasOwnProp=function(A,t){return t in A&&is(A.constructor.prototype[t],"undefined")}})(),ModernizrProto._l={},ModernizrProto.on=function(e,A){this._l[e]||(this._l[e]=[]),this._l[e].push(A),Modernizr.hasOwnProperty(e)&&setTimeout(function(){Modernizr._trigger(e,Modernizr[e])},0)},ModernizrProto._trigger=function(e,A){if(this._l[e]){var t=this._l[e];setTimeout(function(){var r,n;for(r=0;r"u")return undefined;if(!e)return!1;if(e=e.replace(/^@/,""),r=e.replace(/-/g,"_").toUpperCase()+"_RULE",r in t)return"@"+e;for(var n=0;n",a="hidden"in d,u=d.childNodes.length==1||function(){A.createElement("a");var c=A.createDocumentFragment();return typeof c.cloneNode>"u"||typeof c.createDocumentFragment>"u"||typeof c.createElement>"u"}()}catch{a=!0,u=!0}})();function m(d,c){var p=d.createElement("p"),w=d.getElementsByTagName("head")[0]||d.documentElement;return p.innerHTML="x",w.insertBefore(p.lastChild,w.firstChild)}function g(){var d=h.elements;return typeof d=="string"?d.split(" "):d}function P(d,c){var p=h.elements;typeof p!="string"&&(p=p.join(" ")),typeof d!="string"&&(d=d.join(" ")),h.elements=p+" "+d,z(c)}function M(d){var c=f[d[l]];return c||(c={},s++,d[l]=s,f[s]=c),c}function b(d,c,p){if(c||(c=A),u)return c.createElement(d);p||(p=M(c));var w;return p.cache[d]?w=p.cache[d].cloneNode():o.test(d)?w=(p.cache[d]=p.createElem(d)).cloneNode():w=p.createElem(d),w.canHaveChildren&&!n.test(d)&&!w.tagUrn?p.frag.appendChild(w):w}function k(d,c){if(d||(d=A),u)return d.createDocumentFragment();c=c||M(d);for(var p=c.frag.cloneNode(),w=0,v=g(),E=v.length;w"u"||typeof A.parentWindow>"u"||typeof d.applyElement>"u"||typeof d.removeNode>"u"||typeof e.attachEvent>"u")}();function F(d){for(var c,p=d.getElementsByTagName("*"),w=p.length,v=RegExp("^(?:"+g().join("|")+")$","i"),E=[];w--;)c=p[w],v.test(c.nodeName)&&E.push(c.applyElement(W(c)));return E}function W(d){for(var c,p=d.attributes,w=p.length,v=d.ownerDocument.createElement(T+":"+d.nodeName);w--;)c=p[w],c.specified&&v.setAttribute(c.nodeName,c.nodeValue);return v.style.cssText=d.style.cssText,v}function G(d){for(var c,p=d.split("{"),w=p.length,v=RegExp("(^|[\\s,>+~])("+g().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),E="$1"+T+"\\:$2";w--;)c=p[w]=p[w].split("}"),c[c.length-1]=c[c.length-1].replace(v,E),p[w]=c.join("}");return p.join("{")}function Z(d){for(var c=d.length;c--;)d[c].removeNode()}function S(d){var c,p,w=M(d),v=d.namespaces,E=d.parentWindow;if(!V||d.printShived)return d;typeof v[T]>"u"&&v.add(T);function I(){clearTimeout(w._removeSheetTimer),c&&c.removeNode(!0),c=null}return E.attachEvent("onbeforeprint",function(){I();for(var Q,x,D,R=d.styleSheets,B=[],y=R.length,C=Array(y);y--;)C[y]=R[y];for(;D=C.pop();)if(!D.disabled&&U.test(D.media)){try{Q=D.imports,x=Q.length}catch{x=0}for(y=0;y7));Modernizr.addTest("csscalc",function(){var e="width:",A="calc(10px);",t=createElement("a");return t.style.cssText=e+prefixes.join(A+e),!!t.style.length});Modernizr.addTest("checked",function(){return testStyles("#modernizr {position:absolute} #modernizr input {margin-left:10px} #modernizr :checked {margin-left:20px;display:block}",function(e){var A=createElement("input");return A.setAttribute("type","checkbox"),A.setAttribute("checked","checked"),e.appendChild(A),A.offsetLeft===20})});Modernizr.addTest("csschunit",function(){var e=modElem.elem.style,A;try{e.fontSize="3ch",A=e.fontSize.indexOf("ch")!==-1}catch{A=!1}return A});(function(){Modernizr.addTest("csscolumns",function(){var n=!1,o=testAllProps("columnCount");try{n=!!o,n&&(n=new Boolean(n))}catch{}return n});for(var e=["Width","Span","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","BreakBefore","BreakAfter","BreakInside"],A,t,r=0;r9)});Modernizr.addTest("flexbox",testAllProps("flexBasis","1px",!0));Modernizr.addTest("flexboxlegacy",testAllProps("boxDirection","reverse",!0));Modernizr.addTest("flexboxtweener",testAllProps("flexAlign","end",!0));Modernizr.addTest("flexgap",function(){var e=createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(createElement("div")),e.appendChild(createElement("div")),docElement.appendChild(e);var A=e.scrollHeight===1;return e.parentNode.removeChild(e),A});Modernizr.addTest("flexwrap",testAllProps("flexWrap","wrap",!0));Modernizr.addTest("focusvisible",function(){try{document.querySelector(":focus-visible")}catch{return!1}return!0});Modernizr.addTest("focuswithin",function(){try{document.querySelector(":focus-within")}catch{return!1}return!0});Modernizr.addTest("fontDisplay",testProp("font-display"));var unsupportedUserAgent=function(){var e=navigator.userAgent,A=e.match(/w(eb)?osbrowser/gi),t=e.match(/windows phone/gi)&&e.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9;return A||t}();unsupportedUserAgent?Modernizr.addTest("fontface",!1):testStyles('@font-face {font-family:"font";src:url("https://")}',function(e,A){var t=document.getElementById("smodernizr"),r=t.sheet||t.styleSheet,n=r?r.cssRules&&r.cssRules[0]?r.cssRules[0].cssText:r.cssText||"":"",o=/src/i.test(n)&&n.indexOf(A.split(" ")[0])===0;Modernizr.addTest("fontface",o)});testStyles('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(e){Modernizr.addTest("generatedcontent",e.offsetHeight>=6)});Modernizr.addTest("cssgradients",function(){for(var e="background-image:",A="gradient(linear,left top,right bottom,from(#9f9),to(white));",t="",r,n=0,o=prefixes.length-1;n-1});Modernizr.addTest("hairline",function(){return testStyles("#modernizr {border:.5px solid transparent}",function(e){return e.offsetHeight===1})});Modernizr.addTest("hsla",function(){var e=createElement("a").style;return e.cssText="background-color:hsla(120,40%,100%,.5)",contains(e.backgroundColor,"rgba")||contains(e.backgroundColor,"hsla")});Modernizr.addAsyncTest(function(){var e=300;setTimeout(A,e);function A(){if(!document.body&&!document.getElementsByTagName("body")[0]){setTimeout(A,e);return}function t(){try{var o=createElement("div"),a=createElement("span"),l=o.style,s=0,f=0,u=!1,m=document.body.firstElementChild||document.body.firstChild;return o.lang="en",o.appendChild(a),a.innerHTML="Bacon ipsum dolor sit amet jerky velit in culpa hamburger et. Laborum dolor proident, enim dolore duis commodo et strip steak. Salami anim et, veniam consectetur dolore qui tenderloin jowl velit sirloin. Et ad culpa, fatback cillum jowl ball tip ham hock nulla short ribs pariatur aute. Pig pancetta ham bresaola, ut boudin nostrud commodo flank esse cow tongue culpa. Pork belly bresaola enim pig, ea consectetur nisi. Fugiat officia turkey, ea cow jowl pariatur ullamco proident do laborum velit sausage. Magna biltong sint tri-tip commodo sed bacon, esse proident aliquip. Ullamco ham sint fugiat, velit in enim sed mollit nulla cow ut adipisicing nostrud consectetur. Proident dolore beef ribs, laborum nostrud meatball ea laboris rump cupidatat labore culpa. Shankle minim beef, velit sint cupidatat fugiat tenderloin pig et ball tip. Ut cow fatback salami, bacon ball tip et in shank strip steak bresaola. In ut pork belly sed mollit tri-tip magna culpa veniam, short ribs qui in andouille ham consequat. Dolore bacon t-bone, velit short ribs enim strip steak nulla. Voluptate labore ut, biltong swine irure jerky. Cupidatat excepteur aliquip salami dolore. Ball tip strip steak in pork dolor. Ad in esse biltong. Dolore tenderloin exercitation ad pork loin t-bone, dolore in chicken ball tip qui pig. Ut culpa tongue, sint ribeye dolore ex shank voluptate hamburger. Jowl et tempor, boudin pork chop labore ham hock drumstick consectetur tri-tip elit swine meatball chicken ground round. Proident shankle mollit dolore. Shoulder ut duis t-bone quis reprehenderit. Meatloaf dolore minim strip steak, laboris ea aute bacon beef ribs elit shank in veniam drumstick qui. Ex laboris meatball cow tongue pork belly. Ea ball tip reprehenderit pig, sed fatback boudin dolore flank aliquip laboris eu quis. Beef ribs duis beef, cow corned beef adipisicing commodo nisi deserunt exercitation. Cillum dolor t-bone spare ribs, ham hock est sirloin. Brisket irure meatloaf in, boudin pork belly sirloin ball tip. Sirloin sint irure nisi nostrud aliqua. Nostrud nulla aute, enim officia culpa ham hock. Aliqua reprehenderit dolore sunt nostrud sausage, ea boudin pork loin ut t-bone ham tempor. Tri-tip et pancetta drumstick laborum. Ham hock magna do nostrud in proident. Ex ground round fatback, venison non ribeye in.",document.body.insertBefore(o,m),l.cssText="position:absolute;top:0;left:0;width:5em;text-align:justify;text-justify:newspaper;",s=a.offsetHeight,f=a.offsetWidth,l.cssText="position:absolute;top:0;left:0;width:5em;text-align:justify;text-justify:newspaper;"+prefixes.join("hyphens:auto; "),u=a.offsetHeight!==s||a.offsetWidth!==f,document.body.removeChild(o),o.removeChild(a),u}catch{return!1}}function r(o,a){try{var l=createElement("div"),s=createElement("span"),f=l.style,u=0,m=!1,g=!1,P=!1,M=document.body.firstElementChild||document.body.firstChild;return f.cssText="position:absolute;top:0;left:0;overflow:visible;width:1.25em;",l.appendChild(s),document.body.insertBefore(l,M),s.innerHTML="mm",u=s.offsetHeight,s.innerHTML="m"+o+"m",g=s.offsetHeight>u,a?(s.innerHTML="m
      m",u=s.offsetWidth,s.innerHTML="m"+o+"m",P=s.offsetWidth>u):P=!0,g===!0&&P===!0&&(m=!0),document.body.removeChild(l),l.removeChild(s),m}catch{return!1}}function n(o){try{var a=createElement("input"),l=createElement("div"),s="lebowski",f=!1,u,m=document.body.firstElementChild||document.body.firstChild;a.style.cssText="position:fixed;top:0;",l.style.cssText="position:fixed;top:0;",l.innerHTML=s+o+s,document.body.insertBefore(l,m),document.body.insertBefore(a,l),a.setSelectionRange?(a.focus(),a.setSelectionRange(0,0)):a.createTextRange&&(u=a.createTextRange(),u.collapse(!0),u.moveEnd("character",0),u.moveStart("character",0),u.select());try{window.find?f=window.find(s+s):(u=window.self.document.body.createTextRange(),f=u.findText(s+s))}catch{f=!1}return document.body.removeChild(l),document.body.removeChild(a),f}catch{return!1}}addTest("csshyphens",function(){if(!testAllProps("hyphens","auto",!0))return!1;try{return t()}catch{return!1}}),addTest("softhyphens",function(){try{return r("­",!0)&&r("​",!1)}catch{return!1}}),addTest("softhyphensfind",function(){try{return n("­")&&n("​")}catch{return!1}})}});Modernizr.addTest("cssinvalid",function(){return testStyles("#modernizr input{height:0;border:0;padding:0;margin:0;width:10px} #modernizr input:invalid{width:50px}",function(e){var A=createElement("input");return A.required=!0,e.appendChild(A),A.clientWidth>10})});testStyles("#modernizr div {width:100px} #modernizr :last-child{width:200px;display:block}",function(e){Modernizr.addTest("lastchild",e.lastChild.offsetWidth>e.firstChild.offsetWidth)},2);Modernizr.addTest("cssmask",testAllProps("maskRepeat","repeat-x",!0));Modernizr.addTest("mediaqueries",mq("only all"));Modernizr.addTest("multiplebgs",function(){var e=createElement("a").style;return e.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(e.background)});testStyles("#modernizr div {width:1px} #modernizr div:nth-child(2n) {width:2px;}",function(e){var A=e.getElementsByTagName("div"),t=A[0].offsetWidth===A[2].offsetWidth&&A[1].offsetWidth===A[3].offsetWidth&&A[0].offsetWidth!==A[1].offsetWidth;Modernizr.addTest("nthchild",t)},4);Modernizr.addTest("objectfit",!!prefixed("objectFit"),{aliases:["object-fit"]});Modernizr.addTest("opacity",function(){var e=createElement("a").style;return e.cssText=prefixes.join("opacity:.55;"),/^0.55$/.test(e.opacity)});Modernizr.addTest("overflowscrolling",testAllProps("overflowScrolling","touch",!0));Modernizr.addTest("csspointerevents",function(){var e=createElement("a").style;return e.cssText="pointer-events:auto",e.pointerEvents==="auto"});Modernizr.addTest("csspositionsticky",function(){var e="position:",A="sticky",t=createElement("a"),r=t.style;return r.cssText=e+prefixes.join(A+";"+e).slice(0,-e.length),r.position.indexOf(A)!==-1});Modernizr.addTest("csspseudoanimations",function(){var e=!1;if(!Modernizr.cssanimations)return e;var A=["@",prefixes.join("keyframes csspseudoanimations { from { font-size: 10px; } }@").replace(/\@$/,""),'#modernizr:before { content:" "; font-size:5px;',prefixes.join("animation:csspseudoanimations 1ms infinite;"),"}"].join("");return testStyles(A,function(t){e=computedStyle(t,":before","font-size")==="10px"}),e});Modernizr.addTest("csstransitions",testAllProps("transition","all",!0));Modernizr.addTest("csspseudotransitions",function(){var e=!1;if(!Modernizr.csstransitions)return e;var A='#modernizr:before { content:" "; font-size:5px;'+prefixes.join("transition:0s 100s;")+"}#modernizr.trigger:before { font-size:10px; }";return testStyles(A,function(t){computedStyle(t,":before","font-size"),t.className+="trigger",e=computedStyle(t,":before","font-size")==="5px"}),e});Modernizr.addTest("cssreflections",testAllProps("boxReflect","above",!0));Modernizr.addTest("regions",function(){if(isSVG)return!1;var e=prefixed("flowFrom"),A=prefixed("flowInto"),t=!1;if(!e||!A)return t;var r=createElement("iframe"),n=createElement("div"),o=createElement("div"),a=createElement("div"),l="modernizr_flow_for_regions_check";o.innerText="M",n.style.cssText="top: 150px; left: 150px; padding: 0px;",a.style.cssText="width: 50px; height: 50px; padding: 42px;",a.style[e]=l,n.appendChild(o),n.appendChild(a),docElement.appendChild(n);var s,f,u=o.getBoundingClientRect();return o.style[A]=l,s=o.getBoundingClientRect(),f=parseInt(s.left-u.left,10),docElement.removeChild(n),f===42?t=!0:(docElement.appendChild(r),u=r.getBoundingClientRect(),r.style[A]=l,s=r.getBoundingClientRect(),u.height>0&&u.height!==s.height&&s.height===0&&(t=!0)),o=a=n=r=undefined,t});Modernizr.addTest("cssremunit",function(){var e=createElement("a").style;try{e.fontSize="3rem"}catch{}return/rem/.test(e.fontSize)});Modernizr.addTest("cssresize",testAllProps("resize","both",!0));Modernizr.addTest("rgba",function(){var e=createElement("a").style;return e.cssText="background-color:rgba(150,255,150,.5)",(""+e.backgroundColor).indexOf("rgba")>-1});testStyles("#modernizr{overflow: scroll; width: 40px; height: 40px; }#"+prefixes.join("scrollbar{width:10px} #modernizr::").split("#").slice(1).join("#")+"scrollbar{width:10px}",function(e){Modernizr.addTest("cssscrollbar","scrollWidth"in e&&e.scrollWidth===30)});Modernizr.addTest("scrollsnappoints",testAllProps("scrollSnapType"));Modernizr.addTest("shapes",testAllProps("shapeOutside","content-box",!0));Modernizr.addTest("siblinggeneral",function(){return testStyles("#modernizr div {width:100px} #modernizr div ~ div {width:200px;display:block}",function(e){return e.lastChild.offsetWidth===200},2)});testStyles("#modernizr{position: absolute; top: -10em; visibility:hidden; font: normal 10px arial;}#subpixel{float: left; font-size: 33.3333%;}",function(e){var A=e.firstChild;A.innerHTML="This is a text written in Arial",Modernizr.addTest("subpixelfont",computedStyle(A,null,"width")!=="44px")},1,["subpixel"]);Modernizr.addTest("target",function(){var e=window.document;if(!("querySelectorAll"in e))return!1;try{return e.querySelectorAll(":target"),!0}catch{return!1}});Modernizr.addTest("textalignlast",testAllProps("textAlignLast"));(function(){Modernizr.addTest("textdecoration",function(){var n=!1,o=testAllProps("textDecoration");try{n=!!o,n&&(n=new Boolean(n))}catch{}return n});for(var e=["Line","Style","Color","Skip","SkipInk"],A,t,r=0;r10})});Modernizr.addTest("variablefonts",testAllProps("fontVariationSettings"));testStyles("#modernizr { height: 50vh; max-height: 10px; }",function(e){var A=parseInt(computedStyle(e,null,"height"),10);Modernizr.addTest("cssvhunit",A===10)});function roundedEquals(e,A){return e-1===A||e===A||e+1===A}testStyles("#modernizr1{width: 50vmax}#modernizr2{width:50px;height:50px;overflow:scroll}#modernizr3{position:fixed;top:0;left:0;bottom:0;right:0}",function(e){var A=e.childNodes[2],t=e.childNodes[1],r=e.childNodes[0],n=parseInt((t.offsetWidth-t.clientWidth)/2,10),o=r.clientWidth/100,a=r.clientHeight/100,l=parseInt(Math.max(o,a)*50,10),s=parseInt(computedStyle(A,null,"width"),10);Modernizr.addTest("cssvmaxunit",roundedEquals(l,s)||roundedEquals(l,s-n))},3);testStyles("#modernizr1{width: 50vm;width:50vmin}#modernizr2{width:50px;height:50px;overflow:scroll}#modernizr3{position:fixed;top:0;left:0;bottom:0;right:0}",function(e){var A=e.childNodes[2],t=e.childNodes[1],r=e.childNodes[0],n=parseInt((t.offsetWidth-t.clientWidth)/2,10),o=r.clientWidth/100,a=r.clientHeight/100,l=parseInt(Math.min(o,a)*50,10),s=parseInt(computedStyle(A,null,"width"),10);Modernizr.addTest("cssvminunit",roundedEquals(l,s)||roundedEquals(l,s-n))},3);testStyles("#modernizr { width: 50vw; }",function(e){var A=parseInt(window.innerWidth/2,10),t=parseInt(computedStyle(e,null,"width"),10);Modernizr.addTest("cssvwunit",roundedEquals(t,A))});Modernizr.addTest("willchange","willChange"in docElement.style);Modernizr.addTest("wrapflow",function(){var e=prefixed("wrapFlow");if(!e||isSVG)return!1;var A=e.replace(/([A-Z])/g,function(a,l){return"-"+l.toLowerCase()}).replace(/^ms-/,"-ms-"),t=createElement("div"),r=createElement("div"),n=createElement("span");r.style.cssText="position: absolute; left: 50px; width: 100px; height: 20px;"+A+":end;",n.innerText="X",t.appendChild(r),t.appendChild(n),docElement.appendChild(t);var o=n.offsetLeft;return docElement.removeChild(t),r=n=t=undefined,o===150});Modernizr.addTest("customelements","customElements"in window);Modernizr.addTest("customprotocolhandler",function(){if(!navigator.registerProtocolHandler)return!1;try{navigator.registerProtocolHandler("thisShouldFail")}catch(e){return e instanceof TypeError}return!1});Modernizr.addTest("dart",!!prefixed("startDart",navigator));Modernizr.addTest("dataview",typeof DataView<"u"&&"getFloat64"in DataView.prototype);Modernizr.addTest("classlist","classList"in docElement);Modernizr.addTest("createelementattrs",function(){try{return createElement('').getAttribute("name")==="test"}catch{return!1}},{aliases:["createelement-attrs"]});Modernizr.addTest("dataset",function(){var e=createElement("div");return e.setAttribute("data-a-b","c"),!!(e.dataset&&e.dataset.aB==="c")});Modernizr.addTest("documentfragment",function(){return"createDocumentFragment"in document&&"appendChild"in docElement});Modernizr.addTest("hidden","hidden"in createElement("a"));Modernizr.addTest("intersectionobserver","IntersectionObserver"in window);Modernizr.addTest("microdata","getItems"in document);Modernizr.addTest("mutationobserver",!!window.MutationObserver||!!window.WebKitMutationObserver);Modernizr.addTest("passiveeventlisteners",function(){var e=!1;try{var A=Object.defineProperty({},"passive",{get:function(){e=!0}}),t=function(){};window.addEventListener("testPassiveEventSupport",t,A),window.removeEventListener("testPassiveEventSupport",t,A)}catch{}return e});Modernizr.addTest("shadowroot","attachShadow"in createElement("div"));Modernizr.addTest("shadowrootlegacy","createShadowRoot"in createElement("div"));Modernizr.addTest("bdi",function(){var e=createElement("div"),A=createElement("bdi");A.innerHTML="إ",e.appendChild(A),docElement.appendChild(e);var t=computedStyle(A,null,"direction")==="rtl";return docElement.removeChild(e),t});Modernizr.addTest("details",function(){var e=createElement("details"),A;return"open"in e?(testStyles("#modernizr details{display:block}",function(t){t.appendChild(e),e.innerHTML="ab",A=e.offsetHeight,e.open=!0,A=A!==e.offsetHeight}),A):!1});Modernizr.addTest("outputelem","value"in createElement("output"));Modernizr.addTest("picture","HTMLPictureElement"in window);Modernizr.addTest("progressbar",createElement("progress").max!==undefined),Modernizr.addTest("meter",createElement("meter").max!==undefined);Modernizr.addTest("ruby",function(){var e=createElement("ruby"),A=createElement("rt"),t=createElement("rp");if(e.appendChild(t),e.appendChild(A),docElement.appendChild(e),computedStyle(t,null,"display")==="none"||computedStyle(e,null,"display")==="ruby"&&computedStyle(A,null,"display")==="ruby-text"||computedStyle(t,null,"fontSize")==="6pt"&&computedStyle(A,null,"fontSize")==="6pt")return r(),!0;return r(),!1;function r(){docElement.removeChild(e),e=null,A=null,t=null}});Modernizr.addTest("template","content"in createElement("template"));Modernizr.addTest("time","valueAsDate"in createElement("time"));Modernizr.addTest("texttrackapi",typeof createElement("video").addTextTrack=="function"),Modernizr.addTest("track","kind"in createElement("track"));Modernizr.addTest("unknownelements",function(){var e=createElement("a");return e.innerHTML="",e.childNodes.length===1});Modernizr.addTest("emoji",function(){if(!Modernizr.canvastext)return!1;var e=createElement("canvas"),A=e.getContext("2d"),t=A.webkitBackingStorePixelRatio||A.mozBackingStorePixelRatio||A.msBackingStorePixelRatio||A.oBackingStorePixelRatio||A.backingStorePixelRatio||1,r=12*t;return A.fillStyle="#f00",A.textBaseline="top",A.font="32px Arial",A.fillText("\u{1F428}",0,0),A.getImageData(r,r,1,1).data[0]!==0});Modernizr.addTest("es5array",function(){return!!(Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray)});Modernizr.addTest("es5date",function(){var e="2013-04-12T06:06:37.307Z",A=!1;try{A=!!Date.parse(e)}catch{}return!!(Date.now&&Date.prototype&&Date.prototype.toISOString&&Date.prototype.toJSON&&A)});Modernizr.addTest("es5function",function(){return!!(Function.prototype&&Function.prototype.bind)});Modernizr.addTest("es5object",function(){return!!(Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions)});Modernizr.addTest("strictmode",function(){"use strict";return!this}());Modernizr.addTest("es5string",function(){return!!(String.prototype&&String.prototype.trim)});Modernizr.addTest("json","JSON"in window&&"parse"in JSON&&"stringify"in JSON);Modernizr.addTest("es5syntax",function(){var value,obj,stringAccess,getter,setter,reservedWords,zeroWidthChars;try{return stringAccess=eval('"foobar"[3] === "b"'),getter=eval("({ get x(){ return 1 } }).x === 1"),eval("({ set x(v){ value = v; } }).x = 1"),setter=value===1,eval("obj = ({ if: 1 })"),reservedWords=obj.if===1,zeroWidthChars=eval("_\u200C\u200D = true"),stringAccess&&getter&&setter&&reservedWords&&zeroWidthChars}catch(e){return!1}});Modernizr.addTest("es5undefined",function(){var e,A;try{A=window.undefined,window.undefined=12345,e=typeof window.undefined>"u",window.undefined=A}catch{return!1}return e});Modernizr.addTest("es5",function(){return!!(Modernizr.es5array&&Modernizr.es5date&&Modernizr.es5function&&Modernizr.es5object&&Modernizr.strictmode&&Modernizr.es5string&&Modernizr.json&&Modernizr.es5syntax&&Modernizr.es5undefined)});Modernizr.addTest("es6array",!!(Array.prototype&&Array.prototype.copyWithin&&Array.prototype.fill&&Array.prototype.find&&Array.prototype.findIndex&&Array.prototype.keys&&Array.prototype.entries&&Array.prototype.values&&Array.from&&Array.of));Modernizr.addTest("arrow",function(){try{eval("()=>{}")}catch(e){return!1}return!0});Modernizr.addTest("es6class",function(){try{eval("class A{}")}catch(e){return!1}return!0});Modernizr.addTest("es6collections",!!(window.Map&&window.Set&&window.WeakMap&&window.WeakSet));Modernizr.addTest("generators",function(){try{new Function("function* test() {}")()}catch{return!1}return!0});Modernizr.addTest("es6math",!!(Math&&Math.clz32&&Math.cbrt&&Math.imul&&Math.sign&&Math.log10&&Math.log2&&Math.log1p&&Math.expm1&&Math.cosh&&Math.sinh&&Math.tanh&&Math.acosh&&Math.asinh&&Math.atanh&&Math.hypot&&Math.trunc&&Math.fround));Modernizr.addTest("es6number",!!(Number.isFinite&&Number.isInteger&&Number.isSafeInteger&&Number.isNaN&&Number.parseInt&&Number.parseFloat&&Number.isInteger(Number.MAX_SAFE_INTEGER)&&Number.isInteger(Number.MIN_SAFE_INTEGER)&&Number.isFinite(Number.EPSILON)));Modernizr.addTest("es6object",!!(Object.assign&&Object.is&&Object.setPrototypeOf));Modernizr.addTest("promises",function(){return"Promise"in window&&"resolve"in window.Promise&&"reject"in window.Promise&&"all"in window.Promise&&"race"in window.Promise&&function(){var e;return new window.Promise(function(A){e=A}),typeof e=="function"}()});Modernizr.addTest("restparameters",function(){try{eval("function f(...rest) {}")}catch(e){return!1}return!0});Modernizr.addTest("spreadarray",function(){try{eval("(function f(){})(...[1])")}catch(e){return!1}return!0});Modernizr.addTest("stringtemplate",function(){try{return eval("(function(){var a=1; return `-${a}-`;})()")==="-1-"}catch(e){return!1}});Modernizr.addTest("es6string",!!(String.fromCodePoint&&String.raw&&String.prototype.codePointAt&&String.prototype.repeat&&String.prototype.startsWith&&String.prototype.endsWith&&String.prototype.includes));Modernizr.addTest("es6symbol",!!(typeof Symbol=="function"&&Symbol.for&&Symbol.hasInstance&&Symbol.isConcatSpreadable&&Symbol.iterator&&Symbol.keyFor&&Symbol.match&&Symbol.prototype&&Symbol.replace&&Symbol.search&&Symbol.species&&Symbol.split&&Symbol.toPrimitive&&Symbol.toStringTag&&Symbol.unscopables));Modernizr.addTest("es7array",!!(Array.prototype&&Array.prototype.includes));Modernizr.addTest("restdestructuringarray",function(){try{eval("var [...rest]=[1]")}catch(e){return!1}return!0}),Modernizr.addTest("restdestructuringobject",function(){try{eval("var {...rest}={a:1}")}catch(e){return!1}return!0});Modernizr.addTest("spreadobject",function(){try{eval("var a={...{b:1}}")}catch(e){return!1}return!0});Modernizr.addTest("es8object",!!(Object.entries&&Object.values));Modernizr.addTest("customevent","CustomEvent"in window&&typeof window.CustomEvent=="function");Modernizr.addTest("devicemotion","DeviceMotionEvent"in window),Modernizr.addTest("deviceorientation","DeviceOrientationEvent"in window);Modernizr.addTest("eventlistener","addEventListener"in window);Modernizr.addTest("forcetouch",function(){return hasEvent(prefixed("mouseforcewillbegin",window,!1),window)?MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN&&MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN:!1});Modernizr.addTest("hashchange",function(){return hasEvent("hashchange",window)===!1?!1:document.documentMode===undefined||document.documentMode>7});Modernizr.addTest("oninput",function(){var e=createElement("input"),A;if(e.setAttribute("oninput","return"),e.style.cssText="position:fixed;top:0;",hasEvent("oninput",docElement)||typeof e.oninput=="function")return!0;try{var t=document.createEvent("KeyboardEvent");A=!1;var r=function(n){A=!0,n.preventDefault(),n.stopPropagation()};t.initKeyEvent("keypress",!0,!0,window,!1,!1,!1,!1,0,"e".charCodeAt(0)),docElement.appendChild(e),e.addEventListener("input",r,!1),e.focus(),e.dispatchEvent(t),e.removeEventListener("input",r,!1),docElement.removeChild(e)}catch{A=!1}return A});var domPrefixesAll=[""].concat(domPrefixes);ModernizrProto._domPrefixesAll=domPrefixesAll;Modernizr.addTest("pointerevents",function(){for(var e=0,A=domPrefixesAll.length;e"u"?!1:(t.drawImage(e,0,0),t.getImageData(0,0,1,1).data[3]===0)})},e.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACGFjVEwAAAABAAAAAcMq2TYAAAANSURBVAiZY2BgYPgPAAEEAQB9ssjfAAAAGmZjVEwAAAAAAAAAAQAAAAEAAAAAAAAAAAD6A+gBAbNU+2sAAAARZmRBVAAAAAEImWNgYGBgAAAABQAB6MzFdgAAAABJRU5ErkJggg=="});Modernizr.addAsyncTest(function(){var e=new Image;e.onload=e.onerror=function(){addTest("avif",e.width===1)},e.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAAEcbWV0YQAAAAAAAABIaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGNhdmlmIC0gaHR0cHM6Ly9naXRodWIuY29tL2xpbmstdS9jYXZpZgAAAAAeaWxvYwAAAAAEQAABAAEAAAAAAUQAAQAAABcAAAAqaWluZgEAAAAAAAABAAAAGmluZmUCAAAAAAEAAGF2MDFJbWFnZQAAAAAOcGl0bQAAAAAAAQAAAHJpcHJwAAAAUmlwY28AAAAQcGFzcAAAAAEAAAABAAAAFGlzcGUAAAAAAAAAAQAAAAEAAAAQcGl4aQAAAAADCAgIAAAAFmF2MUOBAAwACggYAAYICGgIIAAAABhpcG1hAAAAAAAAAAEAAQUBAoMDhAAAAB9tZGF0CggYAAYICGgIIBoFHiAAAEQiBACwDoA="});Modernizr.addTest("imgcrossorigin","crossOrigin"in createElement("img"));Modernizr.addAsyncTest(function(){var e=new Image;e.onerror=function(){addTest("exiforientation",!1,{aliases:["exif-orientation"]})},e.onload=function(){addTest("exiforientation",e.width!==2,{aliases:["exif-orientation"]})},e.src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QAiRXhpZgAASUkqAAgAAAABABIBAwABAAAABgASAAAAAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAABAAIDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+/iiiigD/2Q=="});Modernizr.addAsyncTest(function(){var e=new Image;e.onload=e.onerror=function(){addTest("jpeg2000",e.width===1)},e.src="data:image/jp2;base64,/0//UQAyAAAAAAABAAAAAgAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAEBwEBBwEBBwEBBwEB/1IADAAAAAEAAAQEAAH/XAAEQED/ZAAlAAFDcmVhdGVkIGJ5IE9wZW5KUEVHIHZlcnNpb24gMi4wLjD/kAAKAAAAAABYAAH/UwAJAQAABAQAAf9dAAUBQED/UwAJAgAABAQAAf9dAAUCQED/UwAJAwAABAQAAf9dAAUDQED/k8+kEAGvz6QQAa/PpBABr994EAk//9k="});Modernizr.addAsyncTest(function(){var e=new Image;e.onload=e.onerror=function(){addTest("jpegxr",e.width===1,{aliases:["jpeg-xr"]})},e.src="data:image/vnd.ms-photo;base64,SUm8AQgAAAAFAAG8AQAQAAAASgAAAIC8BAABAAAAAQAAAIG8BAABAAAAAQAAAMC8BAABAAAAWgAAAMG8BAABAAAAHwAAAAAAAAAkw91vA07+S7GFPXd2jckNV01QSE9UTwAZAYBxAAAAABP/gAAEb/8AAQAAAQAAAA=="});Modernizr.addTest("lazyloading","loading"in HTMLImageElement.prototype);Modernizr.addAsyncTest(function(){var e,A,t,r=createElement("img"),n="sizes"in r;!n&&"srcset"in r?(A="data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==",e="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",t=function(){addTest("sizes",r.width===2)},r.onload=t,r.onerror=t,r.setAttribute("sizes","9px"),r.srcset=e+" 1w,"+A+" 8w",r.src=e):addTest("sizes",n)});Modernizr.addTest("srcset","srcset"in createElement("img"));Modernizr.addAsyncTest(function(){var e=new Image;e.onerror=function(){addTest("webpalpha",!1,{aliases:["webp-alpha"]})},e.onload=function(){addTest("webpalpha",e.width===1,{aliases:["webp-alpha"]})},e.src="data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="});Modernizr.addAsyncTest(function(){var e=new Image;e.onerror=function(){addTest("webpanimation",!1,{aliases:["webp-animation"]})},e.onload=function(){addTest("webpanimation",e.width===1,{aliases:["webp-animation"]})},e.src="data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"});Modernizr.addAsyncTest(function(){var e=new Image;e.onerror=function(){addTest("webplossless",!1,{aliases:["webp-lossless"]})},e.onload=function(){addTest("webplossless",e.width===1,{aliases:["webp-lossless"]})},e.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="});Modernizr.addAsyncTest(function(){var e=[{uri:"data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA=",name:"webp"},{uri:"data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==",name:"webp.alpha"},{uri:"data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA",name:"webp.animation"},{uri:"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",name:"webp.lossless"}],A=e.shift();function t(r,n,o){var a=new Image;function l(s){var f=s&&s.type==="load"?a.width===1:!1,u=r==="webp";addTest(r,u&&f?new Boolean(f):f),o&&o(s)}a.onerror=l,a.onload=l,a.src=n}t(A.name,A.uri,function(r){if(r&&r.type==="load")for(var n=0;n',testStyles("#modernizr form{position:absolute;top:-99999em}",function(r){r.appendChild(e),t=e.getElementsByTagName("input")[0],t.addEventListener("invalid",function(n){A=!0,n.preventDefault(),n.stopPropagation()},!1),Modernizr.formvalidationmessage=!!t.validationMessage,e.getElementsByTagName("button")[0].click()}),A});Modernizr.addTest("localizednumber",function(){if(!Modernizr.inputtypes.number||!Modernizr.formvalidation)return!1;var e=getBody(),A=createElement("div"),t=e.firstElementChild||e.firstChild,r;e.insertBefore(A,t),A.innerHTML='';var n=A.childNodes[0];e.appendChild(A),n.focus();try{document.execCommand("SelectAll",!1),document.execCommand("InsertText",!1,"1,1")}catch{}return r=n.type==="number"&&n.valueAsNumber===1.1&&n.checkValidity(),e.removeChild(A),e.fake&&e.parentNode&&e.parentNode.removeChild(e),r});Modernizr.addTest("inputsearchevent",hasEvent("search"));Modernizr.addTest("placeholder","placeholder"in createElement("input")&&"placeholder"in createElement("textarea"));Modernizr.addTest("requestautocomplete",!!prefixed("requestAutocomplete",createElement("form")));Modernizr.addTest("intl",!!prefixed("Intl",window));Modernizr.addTest("ligatures",testAllProps("fontFeatureSettings",'"liga" 1'));Modernizr.addTest("olreversed","reversed"in createElement("ol"));Modernizr.addTest("mathml",function(){var e;return testStyles("#modernizr{position:absolute;display:inline-block}",function(A){A.innerHTML+="xxyy",e=A.offsetHeight>A.offsetWidth}),e});Modernizr.addTest("mediasource","MediaSource"in window);Modernizr.addTest("hovermq",mq("(hover)"));Modernizr.addTest("pointermq",mq("(pointer:coarse),(pointer:fine),(pointer:none)"));Modernizr.addTest("messagechannel","MessageChannel"in window);Modernizr.addTest("beacon","sendBeacon"in navigator);Modernizr.addTest("effectiveType",function(){var e=navigator.connection||{effectiveType:0};return e.effectiveType!==0});Modernizr.addTest("lowbandwidth",function(){var e=navigator.connection||{type:0,effectiveType:0};return e.type===3||e.type===4||/^[23]g$/.test(e.effectiveType)});Modernizr.addTest("eventsource","EventSource"in window);Modernizr.addTest("fetch","fetch"in window);var testXhrType=function(e){if(typeof XMLHttpRequest>"u")return!1;var A=new XMLHttpRequest;A.open("get","/",!0);try{A.responseType=e}catch{return!1}return"response"in A&&A.responseType===e};Modernizr.addTest("xhrresponsetypearraybuffer",testXhrType("arraybuffer"));Modernizr.addTest("xhrresponsetypeblob",testXhrType("blob"));Modernizr.addTest("xhrresponsetypedocument",testXhrType("document"));Modernizr.addTest("xhrresponsetypejson",testXhrType("json"));Modernizr.addTest("xhrresponsetypetext",testXhrType("text"));Modernizr.addTest("xhrresponsetype",function(){if(typeof XMLHttpRequest>"u")return!1;var e=new XMLHttpRequest;return e.open("get","/",!0),"response"in e}());Modernizr.addTest("xhr2","XMLHttpRequest"in window&&"withCredentials"in new XMLHttpRequest);Modernizr.addTest("notification",function(){if(!window.Notification||!window.Notification.requestPermission)return!1;if(window.Notification.permission==="granted")return!0;try{new window.Notification("")}catch(e){if(e.name==="TypeError")return!1}return!0});Modernizr.addTest("pagevisibility",!!prefixed("hidden",document,!1));Modernizr.addTest("performance",!!prefixed("performance",window));Modernizr.addTest("pointerlock",!!prefixed("exitPointerLock",document));var bool=!0;try{window.postMessage({toString:function(){bool=!1}},"*")}catch(e){}Modernizr.addTest("postmessage",new Boolean("postMessage"in window)),Modernizr.addTest("postmessage.structuredclones",bool);Modernizr.addTest("proxy","Proxy"in window);Modernizr.addTest("queryselector","querySelector"in document&&"querySelectorAll"in document);Modernizr.addTest("prefetch",function(){if(document.documentMode===11)return!0;var e=createElement("link").relList;return!e||!e.supports?!1:e.supports("prefetch")});Modernizr.addTest("requestanimationframe",!!prefixed("requestAnimationFrame",window),{aliases:["raf"]});Modernizr.addTest("scriptasync","async"in createElement("script"));Modernizr.addTest("scriptdefer","defer"in createElement("script"));Modernizr.addTest("scrolltooptions",function(){var e=getBody(),A=window.pageYOffset,t=e.clientHeight<=window.innerHeight;if(t){var r=createElement("div");r.style.height=window.innerHeight-e.clientHeight+1+"px",r.style.display="block",e.appendChild(r)}window.scrollTo({top:1});var n=window.pageYOffset!==0;return t&&e.removeChild(r),window.scrollTo(0,A),n});Modernizr.addTest("serviceworker","serviceWorker"in navigator);Modernizr.addTest("speechrecognition",function(){try{return!!prefixed("SpeechRecognition",window)}catch{return!1}});Modernizr.addTest("speechsynthesis",function(){try{return"SpeechSynthesisUtterance"in window}catch{return!1}});Modernizr.addTest("cookies",function(){try{document.cookie="cookietest=1";var e=document.cookie.indexOf("cookietest=")!==-1;return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch{return!1}});Modernizr.addAsyncTest(function(){var e;try{e=prefixed("indexedDB",window)}catch{}if(e){var A="modernizr-"+Math.random(),t;try{t=e.open(A)}catch{addTest("indexeddb",!1);return}t.onerror=function(r){t.error&&(t.error.name==="InvalidStateError"||t.error.name==="UnknownError")?(addTest("indexeddb",!1),r.preventDefault()):(addTest("indexeddb",!0),detectDeleteDatabase(e,A))},t.onsuccess=function(){addTest("indexeddb",!0),detectDeleteDatabase(e,A)}}else addTest("indexeddb",!1)});function detectDeleteDatabase(e,A){var t=e.deleteDatabase(A);t.onsuccess=function(){addTest("indexeddb.deletedatabase",!0)},t.onerror=function(){addTest("indexeddb.deletedatabase",!1)}}Modernizr.addAsyncTest(function(){var e,A="detect-blob-support",t=!1,r,n,o;try{e=prefixed("indexedDB",window)}catch{}if(!(Modernizr.indexeddb&&Modernizr.indexeddb.deletedatabase))return!1;try{e.deleteDatabase(A).onsuccess=function(){r=e.open(A,1),r.onupgradeneeded=function(){r.result.createObjectStore("store")},r.onsuccess=function(){n=r.result;try{o=n.transaction("store","readwrite").objectStore("store").put(new Blob,"key"),o.onsuccess=function(){t=!0},o.onerror=function(){t=!1}}catch{t=!1}finally{addTest("indexeddbblob",t),n.close(),e.deleteDatabase(A)}}}}catch{addTest("indexeddbblob",!1)}});Modernizr.addAsyncTest(function(){Modernizr.on("indexeddb",function(e){e&&addTest("indexeddb2","getAll"in IDBIndex.prototype)})});Modernizr.addTest("localstorage",function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}});Modernizr.addTest("quotamanagement",function(){var e=prefixed("temporaryStorage",navigator),A=prefixed("persistentStorage",navigator);return!!(e&&A)});Modernizr.addTest("sessionstorage",function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch{return!1}});Modernizr.addTest("userdata",!!createElement("div").addBehavior);Modernizr.addTest("websqldatabase","openDatabase"in window);Modernizr.addTest("stylescoped","scoped"in createElement("style"));Modernizr.addTest("svg",!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);Modernizr.addTest("svgasimg",document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"));var toStringFn={}.toString;Modernizr.addTest("svgclippaths",function(){return!!document.createElementNS&&/SVGClipPath/.test(toStringFn.call(document.createElementNS("http://www.w3.org/2000/svg","clipPath")))});Modernizr.addTest("svgfilters",function(){var e=!1;try{e="SVGFEColorMatrixElement"in window&&SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE===2}catch{}return e});Modernizr.addTest("svgforeignobject",function(){return!!document.createElementNS&&/SVGForeignObject/.test(toStringFn.call(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")))});Modernizr.addTest("inlinesvg",function(){var e=createElement("div");return e.innerHTML="",(typeof SVGRect<"u"&&e.firstChild&&e.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"});Modernizr.addTest("smil",function(){return!!document.createElementNS&&/SVGAnimate/.test(toStringFn.call(document.createElementNS("http://www.w3.org/2000/svg","animate")))});Modernizr.addTest("textareamaxlength","maxLength"in createElement("textarea"));Modernizr.addTest("textencoder",!!(window.TextEncoder&&window.TextEncoder.prototype.encode)),Modernizr.addTest("textdecoder",!!(window.TextDecoder&&window.TextDecoder.prototype.decode));Modernizr.addTest("typedarrays","ArrayBuffer"in window);Modernizr.addTest("unicoderange",function(){return testStyles('@font-face{font-family:"unicodeRange";src:local("Arial");unicode-range:U+0020,U+002E}#modernizr span{font-size:20px;display:inline-block;font-family:"unicodeRange",monospace}#modernizr .mono{font-family:monospace}',function(e){for(var A=[".",".","m","m"],t=0;t 1 due to Webkit [bug #45761](https://bugs.webkit.org/show_bug.cgi?id=45761)"], + "notes": [{ + "name": "Comprehensive Compat Chart", + "href": "https://muddledramblings.com/table-of-css3-border-radius-compliance/" + }] +} +!*/ +/*! +{ + "name": "CSS Custom Properties", + "property": "customproperties", + "caniuse": "css-variables", + "tags": ["css"], + "builderAliases": ["css_customproperties"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/--*" + }, { + "name": "W3C Spec", + "href": "https://drafts.csswg.org/css-variables/" + }] +} +!*/ +/*! +{ + "name": "CSS Display run-in", + "property": "display-runin", + "authors": ["alanhogan"], + "tags": ["css"], + "builderAliases": ["css_displayrunin"], + "notes": [{ + "name": "CSS Tricks Article", + "href": "https://web.archive.org/web/20111204150927/http://css-tricks.com:80/596-run-in/" + }, { + "name": "Related Github Issue", + "href": "https://github.com/Modernizr/Modernizr/issues/198" + }] +} +!*/ +/*! +{ + "name": "CSS Display table", + "property": "displaytable", + "caniuse": "css-table", + "authors": ["scottjehl"], + "tags": ["css"], + "builderAliases": ["css_displaytable"], + "notes": [{ + "name": "Detects for all additional table display values", + "href": "https://pastebin.com/Gk9PeVaQ" + }] +} +!*/ +/*! +{ + "name": "CSS text-overflow ellipsis", + "property": "ellipsis", + "caniuse": "text-overflow", + "tags": ["css"] +} +!*/ +/*! +{ + "name": "CSS.escape()", + "property": "cssescape", + "polyfills": ["css-escape"], + "tags": ["css", "cssom"] +} +!*/ +/*! +{ + "name": "CSS Font ex Units", + "authors": ["Ron Waldon (@jokeyrhyme)"], + "property": "cssexunit", + "caniuse": "mdn-css_types_length_ex", + "tags": ["css"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/css3-values/#font-relative-lengths" + }] +} +!*/ +/*! +{ + "name": "CSS Supports", + "property": "supports", + "caniuse": "css-featurequeries", + "tags": ["css"], + "builderAliases": ["css_supports"], + "notes": [{ + "name": "W3C Spec (The @supports rule)", + "href": "https://dev.w3.org/csswg/css3-conditional/#at-supports" + }, { + "name": "Related Github Issue", + "href": "https://github.com/Modernizr/Modernizr/issues/648" + }, { + "name": "W3C Spec (The CSSSupportsRule interface)", + "href": "https://dev.w3.org/csswg/css3-conditional/#the-csssupportsrule-interface" + }] +} +!*/ +/*! +{ + "name": "CSS Filters", + "property": "cssfilters", + "caniuse": "css-filters", + "polyfills": ["polyfilter"], + "tags": ["css"], + "builderAliases": ["css_filters"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/filter" + }] +} +!*/ +/*! +{ + "name": "Flexbox", + "property": "flexbox", + "caniuse": "flexbox", + "tags": ["css"], + "notes": [{ + "name": "The _new_ flexbox", + "href": "https://www.w3.org/TR/css-flexbox-1/" + }], + "warnings": [ + "A `true` result for this detect does not imply that the `flex-wrap` property is supported; see the `flexwrap` detect." + ] +} +!*/ +/*! +{ + "name": "Flexbox (legacy)", + "property": "flexboxlegacy", + "tags": ["css"], + "polyfills": ["flexie"], + "notes": [{ + "name": "The _old_ flexbox", + "href": "https://www.w3.org/TR/2009/WD-css3-flexbox-20090723/" + }] +} +!*/ +/*! +{ + "name": "Flexbox (tweener)", + "property": "flexboxtweener", + "tags": ["css"], + "polyfills": ["flexie"], + "notes": [{ + "name": "The _inbetween_ flexbox", + "href": "https://www.w3.org/TR/2011/WD-css3-flexbox-20111129/" + }], + "warnings": ["This represents an old syntax, not the latest standard syntax."] +} +!*/ +/*! +{ + "name": "Flex Gap", + "property": "flexgap", + "caniuse": "flexbox-gap", + "tags": ["css", "flexbox"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/css-align-3/#gaps" + }], + "authors": ["Chris Smith (@chris13524)"] +} +!*/ +/*! +{ + "name": "Flex Line Wrapping", + "property": "flexwrap", + "tags": ["css", "flexbox"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/css-flexbox-1/" + }], + "warnings": [ + "Does not imply a modern implementation – see documentation." + ] +} +!*/ +/*! +{ + "name": "CSS :focus-visible pseudo-selector", + "caniuse": "css-focus-visible", + "property": "focusvisible", + "authors": ["@esaborit4code"], + "tags": ["css"] +} +!*/ +/*! +{ + "name": "CSS :focus-within pseudo-selector", + "caniuse": "css-focus-within", + "property": "focuswithin", + "tags": ["css"] +} +!*/ +/*! +{ + "name": "Font Display", + "property": "fontdisplay", + "authors": ["Patrick Kettner"], + "caniuse": "css-font-rendering-controls", + "notes": [{ + "name": "W3C Spec", + "href": "https://drafts.csswg.org/css-fonts-4/#font-display-desc" + }, { + "name": "`font-display` for the masses", + "href": "https://css-tricks.com/font-display-masses/" + }] +} +!*/ +/*! +{ + "name": "@font-face", + "property": "fontface", + "authors": ["Diego Perini", "Mat Marquis"], + "tags": ["css"], + "knownBugs": [ + "False Positive: WebOS https://github.com/Modernizr/Modernizr/issues/342", + "False Positive: WP7 https://github.com/Modernizr/Modernizr/issues/538" + ], + "notes": [{ + "name": "@font-face detection routine by Diego Perini", + "href": "http://javascript.nwbox.com/CSSSupport/" + }, { + "name": "Filament Group @font-face compatibility research", + "href": "https://docs.google.com/presentation/d/1n4NyG4uPRjAA8zn_pSQ_Ket0RhcWC6QlZ6LMjKeECo0/edit#slide=id.p" + }, { + "name": "Filament Grunticon/@font-face device testing results", + "href": "https://docs.google.com/spreadsheet/ccc?key=0Ag5_yGvxpINRdHFYeUJPNnZMWUZKR2ItMEpRTXZPdUE#gid=0" + }, { + "name": "CSS fonts on Android", + "href": "https://stackoverflow.com/questions/3200069/css-fonts-on-android" + }, { + "name": "@font-face and Android", + "href": "http://archivist.incutio.com/viewlist/css-discuss/115960" + }] +} +!*/ +/*! +{ + "name": "CSS Generated Content", + "property": "generatedcontent", + "tags": ["css"], + "warnings": ["Android may not return correct height for anything below 7px in old versions #738"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/css3-selectors/#gen-content" + }, { + "name": "MDN Docs on :before", + "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/::before" + }, { + "name": "MDN Docs on :after", + "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/::after" + }] +} +!*/ +/*! +{ + "name": "CSS Gradients", + "caniuse": "css-gradients", + "property": "cssgradients", + "tags": ["css"], + "knownBugs": ["False-positives on webOS (https://github.com/Modernizr/Modernizr/issues/202)"], + "notes": [{ + "name": "Webkit Gradient Syntax", + "href": "https://webkit.org/blog/175/introducing-css-gradients/" + }, { + "name": "Linear Gradient Syntax", + "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient" + }, { + "name": "W3C Spec", + "href": "https://drafts.csswg.org/css-images-3/#gradients" + }] +} +!*/ +/*! { + "name": "CSS Hairline", + "property": "hairline", + "tags": ["css"], + "authors": ["strarsis"], + "notes": [{ + "name": "Blog post about CSS retina hairlines", + "href": "http://dieulot.net/css-retina-hairline" + }, { + "name": "Derived from", + "href": "https://gist.github.com/dieulot/520a49463f6058fbc8d1" + }] +} +!*/ +/*! +{ + "name": "CSS HSLA Colors", + "caniuse": "css3-colors", + "property": "hsla", + "tags": ["css"] +} +!*/ +/*! +{ + "name": "CSS Hyphens", + "caniuse": "css-hyphens", + "property": ["csshyphens", "softhyphens", "softhyphensfind"], + "tags": ["css"], + "builderAliases": ["css_hyphens"], + "async": true, + "authors": ["David Newton"], + "warnings": [ + "These tests currently require document.body to be present", + "If loading Hyphenator.js via yepnope, be cautious of issue 158: https://github.com/mnater/hyphenator/issues/158", + "This is very large – only include it if you absolutely need it" + ], + "notes": [{ + "name": "The Current State of Hyphenation on the Web.", + "href": "https://davidnewton.ca/the-current-state-of-hyphenation-on-the-web" + }, { + "name": "Hyphenation Test Page", + "href": "https://web.archive.org/web/20150319125549/http://davidnewton.ca/demos/hyphenation/test.html" + }, { + "name": "Hyphenation is Language Specific", + "href": "https://code.google.com/p/hyphenator/source/diff?spec=svn975&r=975&format=side&path=/trunk/Hyphenator.js#sc_svn975_313" + }, { + "name": "Related Modernizr Issue", + "href": "https://github.com/Modernizr/Modernizr/issues/312" + }] +} +!*/ +/*! +{ + "name": "CSS :invalid pseudo-class", + "property": "cssinvalid", + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/:invalid" + }] +} +!*/ +/*! +{ + "name": "CSS :last-child pseudo-selector", + "caniuse": "css-sel3", + "property": "lastchild", + "tags": ["css"], + "builderAliases": ["css_lastchild"], + "notes": [{ + "name": "Related Github Issue", + "href": "https://github.com/Modernizr/Modernizr/pull/304" + }] +} +!*/ +/*! +{ + "name": "CSS Mask", + "caniuse": "css-masks", + "property": "cssmask", + "tags": ["css"], + "builderAliases": ["css_mask"], + "notes": [{ + "name": "Webkit blog on CSS Masks", + "href": "https://webkit.org/blog/181/css-masks/" + }, { + "name": "Safari Docs", + "href": "https://developer.apple.com/library/archive/documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Masks/Masks.html" + }, { + "name": "CSS SVG mask", + "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/mask" + }, { + "name": "Combine with clippaths for awesomeness", + "href": "https://web.archive.org/web/20150508193041/http://generic.cx:80/for/webkit/test.html" + }] +} +!*/ +/*! +{ + "name": "CSS Media Queries", + "caniuse": "css-mediaqueries", + "property": "mediaqueries", + "tags": ["css"], + "builderAliases": ["css_mediaqueries"] +} +!*/ +/*! +{ + "name": "CSS Multiple Backgrounds", + "caniuse": "multibackgrounds", + "property": "multiplebgs", + "tags": ["css"] +} +!*/ +/*! +{ + "name": "CSS :nth-child pseudo-selector", + "caniuse": "css-sel3", + "property": "nthchild", + "tags": ["css"], + "notes": [{ + "name": "Related Github Issue", + "href": "https://github.com/Modernizr/Modernizr/pull/685" + }, { + "name": "Sitepoint :nth-child documentation", + "href": "https://www.sitepoint.com/atoz-css-screencast-nth-child/" + }], + "authors": ["@emilchristensen"], + "knownBugs": ["Known false negative in Safari 3.1 and Safari 3.2.2"] +} +!*/ +/*! +{ + "name": "CSS Object Fit", + "caniuse": "object-fit", + "property": "objectfit", + "tags": ["css"], + "builderAliases": ["css_objectfit"], + "notes": [{ + "name": "Opera Article on Object Fit", + "href": "https://dev.opera.com/articles/css3-object-fit-object-position/" + }] +} +!*/ +/*! +{ + "name": "CSS Opacity", + "caniuse": "css-opacity", + "property": "opacity", + "tags": ["css"] +} +!*/ +/*! +{ + "name": "CSS Overflow Scrolling", + "property": "overflowscrolling", + "tags": ["css"], + "builderAliases": ["css_overflow_scrolling"], + "notes": [{ + "name": "Article on iOS overflow scrolling", + "href": "https://css-tricks.com/snippets/css/momentum-scrolling-on-ios-overflow-elements/" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-overflow-scrolling" + }] +} +!*/ +/*! +{ + "name": "CSS Pointer Events", + "caniuse": "pointer-events", + "property": "csspointerevents", + "authors": ["ausi"], + "tags": ["css"], + "builderAliases": ["css_pointerevents"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events" + }, { + "name": "Test Project Page", + "href": "https://ausi.github.com/Feature-detection-technique-for-pointer-events/" + }, { + "name": "Test Project Wiki", + "href": "https://github.com/ausi/Feature-detection-technique-for-pointer-events/wiki" + }, { + "name": "Related Github Issue", + "href": "https://github.com/Modernizr/Modernizr/issues/80" + }] +} +!*/ +/*! +{ + "name": "CSS position: sticky", + "property": "csspositionsticky", + "tags": ["css"], + "builderAliases": ["css_positionsticky"], + "notes": [{ + "name": "Chrome bug report", + "href": "https://bugs.chromium.org/p/chromium/issues/detail?id=322972" + }], + "warnings": ["using position:sticky on anything but top aligned elements is buggy in Chrome < 37 and iOS <=7+"] +} +!*/ +/*! +{ + "name": "CSS Generated Content Animations", + "property": "csspseudoanimations", + "tags": ["css"] +} +!*/ +/*! +{ + "name": "CSS Transitions", + "property": "csstransitions", + "caniuse": "css-transitions", + "tags": ["css"] +} +!*/ +/*! +{ + "name": "CSS Generated Content Transitions", + "property": "csspseudotransitions", + "tags": ["css"] +} +!*/ +/*! +{ + "name": "CSS Reflections", + "caniuse": "css-reflections", + "property": "cssreflections", + "tags": ["css"] +} +!*/ +/*! +{ + "name": "CSS Regions", + "caniuse": "css-regions", + "authors": ["Mihai Balan"], + "property": "regions", + "tags": ["css"], + "builderAliases": ["css_regions"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/css3-regions/" + }] +} +!*/ +/*! +{ + "name": "CSS Font rem Units", + "caniuse": "rem", + "authors": ["nsfmc"], + "property": "cssremunit", + "tags": ["css"], + "builderAliases": ["css_remunit"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/css3-values/#relative0" + }, { + "name": "Font Size with rem by Jonathan Snook", + "href": "https://snook.ca/archives/html_and_css/font-size-with-rem" + }] +} +!*/ +/*! +{ + "name": "CSS UI Resize", + "property": "cssresize", + "caniuse": "css-resize", + "tags": ["css"], + "builderAliases": ["css_resize"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/css3-ui/#resize" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en/CSS/resize" + }] +} +!*/ +/*! +{ + "name": "CSS rgba", + "caniuse": "css3-colors", + "property": "rgba", + "tags": ["css"], + "notes": [{ + "name": "CSSTricks Tutorial", + "href": "https://css-tricks.com/rgba-browser-support/" + }] +} +!*/ +/*! +{ + "name": "CSS Stylable Scrollbars", + "property": "cssscrollbar", + "tags": ["css"], + "builderAliases": ["css_scrollbars"] +} +!*/ +/*! +{ + "name": "Scroll Snap Points", + "property": "scrollsnappoints", + "caniuse": "css-snappoints", + "notes": [{ + "name": "Setting native-like scrolling offsets in CSS with Scrolling Snap Points", + "href": "http://generatedcontent.org/post/66817675443/setting-native-like-scrolling-offsets-in-css-with" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Scroll_Snap_Points" + }], + "polyfills": ["scrollsnap"] +} +!*/ +/*! +{ + "name": "CSS Shapes", + "property": "shapes", + "tags": ["css"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/css-shapes" + }, { + "name": "Examples from Adobe", + "href": "https://web.archive.org/web/20171230010236/http://webplatform.adobe.com:80/shapes" + }, { + "name": "Examples from CSS-Tricks", + "href": "https://css-tricks.com/examples/ShapesOfCSS/" + }] +} +!*/ +/*! +{ + "name": "CSS general sibling selector", + "caniuse": "css-sel3", + "property": "siblinggeneral", + "tags": ["css"], + "notes": [{ + "name": "Related Github Issue", + "href": "https://github.com/Modernizr/Modernizr/pull/889" + }] +} +!*/ +/*! +{ + "name": "CSS Subpixel Fonts", + "property": "subpixelfont", + "tags": ["css"], + "builderAliases": ["css_subpixelfont"], + "authors": ["@derSchepp", "@gerritvanaaken", "@rodneyrehm", "@yatil", "@ryanseddon"], + "notes": [{ + "name": "Origin Test", + "href": "https://github.com/gerritvanaaken/subpixeldetect" + }] +} +!*/ +/*! +{ + "name": "CSS :target pseudo-class", + "caniuse": "css-sel3", + "property": "target", + "tags": ["css"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/:target" + }], + "authors": ["@zachleat"], + "warnings": ["Opera Mini supports :target but doesn't update the hash for anchor links."] +} +!*/ +/*! +{ + "name": "CSS text-align-last", + "property": "textalignlast", + "caniuse": "css-text-align-last", + "tags": ["css"], + "warnings": ["IE does not support the 'start' or 'end' values."], + "notes": [{ + "name": "Quirksmode", + "href": "https://www.quirksmode.org/css/text/textalignlast.html" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/text-align-last" + }] +} +!*/ +/*! +{ + "name": "CSS textDecoration", + "property": "textdecoration", + "caniuse": "text-decoration", + "tags": ["css"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/css-text-decor-3/#line-decoration" + }] +} +!*/ +/*! +{ + "name": "CSS textshadow", + "property": "textshadow", + "caniuse": "css-textshadow", + "tags": ["css"], + "knownBugs": ["FF3.0 will false positive on this test"] +} +!*/ +/*! +{ + "name": "CSS Transforms", + "property": "csstransforms", + "caniuse": "transforms2d", + "tags": ["css"] +} +!*/ +/*! +{ + "name": "CSS Transforms 3D", + "property": "csstransforms3d", + "caniuse": "transforms3d", + "tags": ["css"], + "knownBugs": [ + "Chrome may occasionally fail this test on some systems; more info: https://bugs.chromium.org/p/chromium/issues/detail?id=129004, however, the issue has since been closed (marked as fixed)." + ] +} +!*/ +/*! +{ + "name": "CSS Transforms Level 2", + "property": "csstransformslevel2", + "authors": ["rupl"], + "tags": ["css"], + "notes": [{ + "name": "CSSWG Draft Spec", + "href": "https://drafts.csswg.org/css-transforms-2/" + }] +} +!*/ +/*! +{ + "name": "CSS Transform Style preserve-3d", + "property": "preserve3d", + "authors": ["denyskoch", "aFarkas"], + "tags": ["css"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/transform-style" + }, { + "name": "Related Github Issue", + "href": "https://github.com/Modernizr/Modernizr/issues/1748" + }] +} +!*/ +/*! +{ + "name": "CSS user-select", + "property": "userselect", + "caniuse": "user-select-none", + "authors": ["ryan seddon"], + "tags": ["css"], + "builderAliases": ["css_userselect"], + "notes": [{ + "name": "Related Modernizr Issue", + "href": "https://github.com/Modernizr/Modernizr/issues/250" + }] +} +!*/ +/*! +{ + "name": "CSS :valid pseudo-class", + "property": "cssvalid", + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/:valid" + }] +} +!*/ +/*! +{ + "name": "Variable Open Type Fonts", + "property": "variablefonts", + "authors": ["Patrick Kettner"], + "tags": ["css"], + "notes": [{ + "name": "Variable fonts on the web", + "href": "https://webkit.org/blog/7051/variable-fonts-on-the-web/" + }, { + "name": "Variable fonts for responsive design", + "href": "https://alistapart.com/blog/post/variable-fonts-for-responsive-design" + }] +} +!*/ +/*! +{ + "name": "CSS vh unit", + "property": "cssvhunit", + "caniuse": "viewport-units", + "tags": ["css"], + "builderAliases": ["css_vhunit"], + "notes": [{ + "name": "Related Modernizr Issue", + "href": "https://github.com/Modernizr/Modernizr/issues/572" + }, { + "name": "Similar JSFiddle", + "href": "https://jsfiddle.net/FWeinb/etnYC/" + }] +} +!*/ +/*! +{ + "name": "CSS vmax unit", + "property": "cssvmaxunit", + "caniuse": "viewport-units", + "tags": ["css"], + "builderAliases": ["css_vmaxunit"], + "notes": [{ + "name": "Related Modernizr Issue", + "href": "https://github.com/Modernizr/Modernizr/issues/572" + }, { + "name": "JSFiddle Example", + "href": "https://jsfiddle.net/glsee/JDsWQ/4/" + }] +} +!*/ +/*! +{ + "name": "CSS vmin unit", + "property": "cssvminunit", + "caniuse": "viewport-units", + "tags": ["css"], + "builderAliases": ["css_vminunit"], + "notes": [{ + "name": "Related Modernizr Issue", + "href": "https://github.com/Modernizr/Modernizr/issues/572" + }, { + "name": "JSFiddle Example", + "href": "https://jsfiddle.net/glsee/JRmdq/8/" + }] +} +!*/ +/*! +{ + "name": "CSS vw unit", + "property": "cssvwunit", + "caniuse": "viewport-units", + "tags": ["css"], + "builderAliases": ["css_vwunit"], + "notes": [{ + "name": "Related Modernizr Issue", + "href": "https://github.com/Modernizr/Modernizr/issues/572" + }, { + "name": "JSFiddle Example", + "href": "https://jsfiddle.net/FWeinb/etnYC/" + }] +} +!*/ +/*! +{ + "name": "will-change", + "property": "willchange", + "caniuse": "will-change", + "notes": [{ + "name": "W3C Spec", + "href": "https://drafts.csswg.org/css-will-change/" + }] +} +!*/ +/*! +{ + "name": "CSS wrap-flow", + "property": "wrapflow", + "tags": ["css"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/css3-exclusions" + }, { + "name": "Example by Louie Rootfield", + "href": "https://webdesign.tutsplus.com/tutorials/css-exclusions--cms-28087" + }] +} +!*/ +/*! +{ + "name": "Custom Elements API", + "property": "customelements", + "caniuse": "custom-elementsv1", + "tags": ["customelements"], + "polyfills": ["customelements"], + "notes": [{ + "name": "Specs for Custom Elements", + "href": "https://www.w3.org/TR/custom-elements/" + }] +} +!*/ +/*! +{ + "name": "Custom protocol handler", + "property": "customprotocolhandler", + "authors": ["Ben Schwarz"], + "builderAliases": ["custom_protocol_handler"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/dev/system-state.html#custom-handlers" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/navigator.registerProtocolHandler" + }] +} +!*/ +/*! +{ + "name": "Dart", + "property": "dart", + "authors": ["Theodoor van Donge"], + "notes": [{ + "name": "Language website", + "href": "https://www.dartlang.org/" + }] +} +!*/ +/*! +{ + "name": "DataView", + "property": "dataview", + "authors": ["Addy Osmani"], + "builderAliases": ["dataview_api"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en/JavaScript_typed_arrays/DataView" + }], + "polyfills": ["jdataview"] +} +!*/ +/*! +{ + "name": "classList", + "caniuse": "classlist", + "property": "classlist", + "tags": ["dom"], + "builderAliases": ["dataview_api"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en/DOM/element.classList" + }] +} +!*/ +/*! +{ + "name": "createElement with Attributes", + "property": ["createelementattrs", "createelement-attrs"], + "tags": ["dom"], + "builderAliases": ["dom_createElement_attrs"], + "authors": ["James A. Rosen"], + "notes": [{ + "name": "Related Github Issue", + "href": "https://github.com/Modernizr/Modernizr/issues/258" + }] +} +!*/ +/*! +{ + "name": "dataset API", + "caniuse": "dataset", + "property": "dataset", + "tags": ["dom"], + "builderAliases": ["dom_dataset"], + "authors": ["@phiggins42"] +} +!*/ +/*! +{ + "name": "Document Fragment", + "property": "documentfragment", + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-B63ED1A3" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment" + }, { + "name": "QuirksMode Compatibility Tables", + "href": "https://www.quirksmode.org/m/w3c_core.html#t112" + }], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "knownBugs": ["false-positive on Blackberry 9500, see QuirksMode note"], + "tags": ["dom"] +} +!*/ +/*! +{ + "name": "[hidden] Attribute", + "property": "hidden", + "tags": ["dom"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/dev/interaction.html#the-hidden-attribute" + }, { + "name": "original implementation of detect code", + "href": "https://github.com/aFarkas/html5shiv/blob/bf4fcc4/src/html5shiv.js#L38" + }], + "polyfills": ["html5shiv"], + "authors": ["Ron Waldon (@jokeyrhyme)"] +} +!*/ +/*! +{ + "name": "Intersection Observer", + "property": "intersectionobserver", + "caniuse": "intersectionobserver", + "tags": ["dom"], + "notes": [{ + "name": "W3C Spec", + "href": "https://w3c.github.io/IntersectionObserver/" + }, { + "name": "IntersectionObserver polyfill", + "href": "https://github.com/w3c/IntersectionObserver/tree/master/polyfill" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en/docs/Web/API/Intersection_Observer_API" + }] +} +!*/ +/*! +{ + "name": "microdata", + "property": "microdata", + "tags": ["dom"], + "builderAliases": ["dom_microdata"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/microdata/" + }] +} +!*/ +/*! +{ + "name": "DOM4 MutationObserver", + "property": "mutationobserver", + "caniuse": "mutationobserver", + "tags": ["dom"], + "authors": ["Karel Sedláček (@ksdlck)"], + "polyfills": ["mutationobservers"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver" + }] +} +!*/ +/*! +{ + "property": "passiveeventlisteners", + "caniuse": "passive-event-listener", + "tags": ["dom"], + "authors": ["Rick Byers"], + "name": "Passive event listeners", + "notes": [{ + "name": "WHATWG Spec", + "href": "https://dom.spec.whatwg.org/#dom-addeventlisteneroptions-passive" + }, { + "name": "WICG explainer", + "href": "https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md" + }] +} +!*/ +/*! +{ + "name": "Shadow DOM API", + "property": "shadowroot", + "caniuse": "shadowdomv1", + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot" + }], + "authors": ["Kevin Coyle (@kevin-coyle-unipro)", "Pascal Lim (@pascalim)"], + "tags": ["dom"] +} +!*/ +/*! +{ + "name": "Shadow DOM API (Legacy)", + "property": "shadowrootlegacy", + "caniuse": "shadowdom", + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/Element/createShadowRoot" + }], + "authors": ["Kevin Coyle (@kevin-coyle-unipro)", "Pascal Lim (@pascalim)"], + "tags": ["dom"] +} +!*/ +/*! +{ + "name": "bdi Element", + "property": "bdi", + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdi" + }] +} +!*/ +/*! +{ + "name": "details Element", + "caniuse": "details", + "property": "details", + "tags": ["elem"], + "builderAliases": ["elem_details"], + "authors": ["@mathias"], + "notes": [{ + "name": "Mathias' Original", + "href": "https://mathiasbynens.be/notes/html5-details-jquery#comment-35" + }] +} +!*/ +/*! +{ + "name": "output Element", + "property": "outputelem", + "tags": ["elem"], + "builderAliases": ["elem_output"], + "notes": [{ + "name": "WhatWG Spec", + "href": "https://html.spec.whatwg.org/multipage/form-elements.html#the-output-element" + }] +} +!*/ +/*! +{ + "name": "picture Element", + "property": "picture", + "tags": ["elem"], + "authors": ["Scott Jehl", "Mat Marquis"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/embedded-content.html#embedded-content" + }, { + "name": "Relevant spec issue", + "href": "https://github.com/ResponsiveImagesCG/picture-element/issues/87" + }] +} +!*/ +/*! +{ + "name": "progress Element", + "caniuse": "progress", + "property": ["progressbar", "meter"], + "tags": ["elem"], + "builderAliases": ["elem_progress_meter"], + "authors": ["Stefan Wallin"] +} +!*/ +/*! +{ + "name": "ruby, rp, rt Elements", + "caniuse": "ruby", + "property": "ruby", + "tags": ["elem"], + "builderAliases": ["elem_ruby"], + "authors": ["Cătălin Mariș"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-ruby-element" + }] +} +!*/ +/*! +{ + "name": "Template Tag", + "property": "template", + "caniuse": "template", + "tags": ["elem"], + "notes": [{ + "name": "HTML5Rocks Article", + "href": "https://www.html5rocks.com/en/tutorials/webcomponents/template/" + }, { + "name": "W3C Spec", + "href": "https://web.archive.org/web/20171130222649/http://www.w3.org/TR/html5/scripting-1.html" + }] +} +!*/ +/*! +{ + "name": "time Element", + "property": "time", + "tags": ["elem"], + "builderAliases": ["elem_time"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-time-element" + }] +} +!*/ +/*! +{ + "name": "Track element and Timed Text Track", + "property": ["texttrackapi", "track"], + "tags": ["elem"], + "builderAliases": ["elem_track"], + "authors": ["Addy Osmani"], + "notes": [{ + "name": "W3C Spec (Track Element)", + "href": "https://web.archive.org/web/20121119095019/http://www.w3.org/TR/html5/the-track-element.html#the-track-element" + }, { + "name": "W3C Spec (Track API)", + "href": "https://web.archive.org/web/20121119094620/http://www.w3.org/TR/html5/media-elements.html#text-track-api" + }], + "warnings": ["While IE10 has implemented the track element, IE10 does not expose the underlying APIs to create timed text tracks by JS (really sad)"] +} +!*/ +/*! +{ + "name": "Unknown Elements", + "property": "unknownelements", + "tags": ["elem"], + "notes": [{ + "name": "The Story of the HTML5 Shiv", + "href": "https://www.paulirish.com/2011/the-history-of-the-html5-shiv/" + }, { + "name": "original implementation of detect code", + "href": "https://github.com/aFarkas/html5shiv/blob/bf4fcc4/src/html5shiv.js#L36" + }], + "polyfills": ["html5shiv"], + "authors": ["Ron Waldon (@jokeyrhyme)"] +} +!*/ +/*! +{ + "name": "Emoji", + "property": "emoji" +} +!*/ +/*! +{ + "name": "ES5 Array", + "property": "es5array", + "notes": [{ + "name": "ECMAScript 5.1 Language Specification", + "href": "https://www.ecma-international.org/ecma-262/5.1/" + }], + "polyfills": ["es5shim"], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "tags": ["es5"] +} +!*/ +/*! +{ + "name": "ES5 Date", + "property": "es5date", + "notes": [{ + "name": "ECMAScript 5.1 Language Specification", + "href": "https://www.ecma-international.org/ecma-262/5.1/" + }], + "polyfills": ["es5shim"], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "tags": ["es5"] +} +!*/ +/*! +{ + "name": "ES5 Function", + "property": "es5function", + "notes": [{ + "name": "ECMAScript 5.1 Language Specification", + "href": "https://www.ecma-international.org/ecma-262/5.1/" + }], + "polyfills": ["es5shim"], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "tags": ["es5"] +} +!*/ +/*! +{ + "name": "ES5 Object", + "property": "es5object", + "notes": [{ + "name": "ECMAScript 5.1 Language Specification", + "href": "https://www.ecma-international.org/ecma-262/5.1/" + }], + "polyfills": ["es5shim", "es5sham"], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "tags": ["es5"] +} +!*/ +/*! +{ + "name": "ES5 Strict Mode", + "property": "strictmode", + "caniuse": "use-strict", + "notes": [{ + "name": "ECMAScript 5.1 Language Specification", + "href": "https://www.ecma-international.org/ecma-262/5.1/" + }], + "authors": ["@kangax"], + "tags": ["es5"], + "builderAliases": ["es5_strictmode"] +} +!*/ +/*! +{ + "name": "ES5 String", + "property": "es5string", + "notes": [{ + "name": "ECMAScript 5.1 Language Specification", + "href": "https://www.ecma-international.org/ecma-262/5.1/" + }], + "polyfills": ["es5shim"], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "tags": ["es5"] +} +!*/ +/*! +{ + "name": "JSON", + "property": "json", + "caniuse": "json", + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Glossary/JSON" + }], + "polyfills": ["json2"] +} +!*/ +/*! +{ + "name": "ES5 Syntax", + "property": "es5syntax", + "notes": [{ + "name": "ECMAScript 5.1 Language Specification", + "href": "https://www.ecma-international.org/ecma-262/5.1/" + }, { + "name": "original implementation of detect code", + "href": "https://kangax.github.io/compat-table/es5/" + }], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "warnings": ["This detect uses `eval()`, so CSP may be a problem."], + "tags": ["es5"] +} +!*/ +/*! +{ + "name": "ES5 Immutable Undefined", + "property": "es5undefined", + "notes": [{ + "name": "ECMAScript 5.1 Language Specification", + "href": "https://www.ecma-international.org/ecma-262/5.1/" + }, { + "name": "original implementation of detect code", + "href": "https://kangax.github.io/compat-table/es5/" + }], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "tags": ["es5"] +} +!*/ +/*! +{ + "name": "ES5", + "property": "es5", + "caniuse": "es5", + "notes": [{ + "name": "ECMAScript 5.1 Language Specification", + "href": "https://www.ecma-international.org/ecma-262/5.1/" + }], + "polyfills": ["es5shim", "es5sham"], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "tags": ["es5"] +} +!*/ +/*! +{ + "name": "ES6 Array", + "property": "es6array", + "notes": [{ + "name": "ECMAScript 6 specification", + "href": "https://www.ecma-international.org/ecma-262/6.0/index.html" + }, { + "name": "Last ECMAScript specification", + "href": "https://www.ecma-international.org/ecma-262/index.html" + }], + "polyfills": ["es6shim"], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "tags": ["es6"] +} +!*/ +/*! +{ + "name": "ES6 Arrow Functions", + "property": "arrow", + "authors": ["Vincent Riemer"], + "tags": ["es6"] +} +!*/ +/*! +{ + "name": "ES6 Class", + "property": "es6class", + "notes": [{ + "name": "ECMAScript 6 language specification", + "href": "https://www.ecma-international.org/ecma-262/6.0/#sec-class-definitions" + }], + "caniuse": "es6-class", + "authors": ["dabretin"], + "tags": ["es6"], + "builderAliases": ["class"] +} +!*/ +/*! +{ + "name": "ES6 Collections", + "property": "es6collections", + "notes": [{ + "name": "ECMAScript 6 specification", + "href": "https://www.ecma-international.org/ecma-262/6.0/index.html" + }, { + "name": "Last ECMAScript specification", + "href": "https://www.ecma-international.org/ecma-262/index.html" + }], + "polyfills": ["es6shim", "weakmap"], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "tags": ["es6"] +} +!*/ +/*! +{ + "name": "ES6 Generators", + "property": "generators", + "authors": ["Michael Kachanovskyi"], + "tags": ["es6"] +} +!*/ +/*! +{ + "name": "ES6 Math", + "property": "es6math", + "notes": [{ + "name": "ECMAScript 6 specification", + "href": "https://www.ecma-international.org/ecma-262/6.0/index.html" + }, { + "name": "Last ECMAScript specification", + "href": "https://www.ecma-international.org/ecma-262/index.html" + }], + "polyfills": ["es6shim"], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "tags": ["es6"] +} +!*/ +/*! +{ + "name": "ES6 Number", + "property": "es6number", + "notes": [{ + "name": "ECMAScript 6 specification", + "href": "https://www.ecma-international.org/ecma-262/6.0/index.html" + }, { + "name": "Last ECMAScript specification", + "href": "https://www.ecma-international.org/ecma-262/index.html" + }], + "polyfills": ["es6shim"], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "tags": ["es6"] +} +!*/ +/*! +{ + "name": "ES6 Object", + "property": "es6object", + "notes": [{ + "name": "ECMAScript 6 specification", + "href": "https://www.ecma-international.org/ecma-262/6.0/index.html" + }, { + "name": "Last ECMAScript specification", + "href": "https://www.ecma-international.org/ecma-262/index.html" + }], + "polyfills": ["es6shim"], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "tags": ["es6"] +} +!*/ +/*! +{ + "name": "ES6 Promises", + "property": "promises", + "caniuse": "promises", + "polyfills": ["es6promises"], + "authors": ["Krister Kari", "Jake Archibald"], + "tags": ["es6"], + "notes": [{ + "name": "The ES6 promises spec", + "href": "https://github.com/domenic/promises-unwrapping" + }, { + "name": "Chromium dashboard - ES6 Promises", + "href": "https://www.chromestatus.com/features/5681726336532480" + }, { + "name": "JavaScript Promises: an Introduction", + "href": "https://developers.google.com/web/fundamentals/primers/promises/" + }] +} +!*/ +/*! +{ + "name": "ES6 Rest parameters", + "property": "restparameters", + "notes": [{ + "name": "ECMAScript 6 language specification", + "href": "https://www.ecma-international.org/ecma-262/6.0/#sec-function-definitions" + }], + "caniuse": "rest", + "authors": ["dabretin"], + "tags": ["es6"] +} +!*/ +/*! +{ + "name": "ES6 Spread array", + "property": "spreadarray", + "notes": [{ + "name": "ECMAScript Specification", + "href": "https://tc39.es/ecma262/#sec-array-initializer" + }, + { + "name": "Article", + "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax" + }], + "caniuse": "mdn-javascript_operators_spread_spread_in_arrays", + "authors": ["dabretin"], + "warnings": ["not for object literals (implemented in ES7)"], + "tags": ["es6"] +} +!*/ +/*! +{ + "name": "ES6 Template Strings", + "property": "stringtemplate", + "caniuse": "template-literals", + "builderAliases": ["templatestrings"], + "notes": [{ + "name": "ECMAScript 6 draft specification", + "href": "https://tc39wiki.calculist.org/es6/template-strings/" + }], + "authors": ["dabretin"], + "tags": ["es6"] +} +!*/ +/*! +{ + "name": "ES6 String", + "property": "es6string", + "notes": [{ + "name": "ECMAScript 6 Specification", + "href": "https://www.ecma-international.org/ecma-262/6.0/index.html" + }, { + "name": "Last ECMAScript Specification", + "href": "https://www.ecma-international.org/ecma-262/index.html" + }], + "polyfills": ["es6shim"], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "tags": ["es6"] +} +!*/ +/*! +{ + "name": "ES6 Symbol", + "property": "es6symbol", + "caniuse": "mdn-javascript_builtins_symbol", + "notes": [{ + "name": "Official ECMAScript 6 specification", + "href": "https://www.ecma-international.org/ecma-262/6.0/#sec-symbol-constructor" + },{ + "name": "MDN web docs", + "href": "https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Symbol" + }], + "polyfills": ["es6symbol"], + "authors": ["buhichan (@buhichan)"], + "tags": ["es6","symbol"] +} +!*/ +/*! +{ + "name": "ES7 Array", + "property": "es7array", + "notes": [{ + "name": "ECMAScript array Specification", + "href": "https://tc39.es/ecma262/#sec-array.prototype.includes" + }], + "authors": ["dabretin"], + "tags": ["es7"] +} +!*/ +/*! +{ + "name": "ES7 Rest destructuring", + "property": ["restdestructuringarray", "restdestructuringobject"], + "caniuse" : "destructuring%20assignment", + "notes": [{ + "name": "ECMAScript Destructuring Assignment Specification", + "href": "https://tc39.es/ecma262/#sec-destructuring-assignment" + }], + "authors": ["dabretin"], + "tags": ["es7"] +} +!*/ +/*! +{ + "name": "ES7 Spread object", + "property": "spreadobject", + "notes": [{ + "name": "ECMAScript array Specification", + "href": "http://www.ecma-international.org/ecma-262/#sec-object-initializer" + }], + "authors": ["dabretin"], + "tags": ["es7"] +} +!*/ +/*! +{ + "name": "ES8 Object", + "property": "es8object", + "notes": [{ + "name": "ECMAScript specification: Object.entries", + "href": "https://www.ecma-international.org/ecma-262/#sec-object.entries" + }, { + "name": "ECMAScript specification: Object.values", + "href": "https://www.ecma-international.org/ecma-262/#sec-object.values" + }], + "caniuse": "object-entries,object-values", + "authors": ["dabretin"], + "tags": ["es8"] +} +!*/ +/*! +{ + "name": "CustomEvent", + "property": "customevent", + "tags": ["customevent"], + "authors": ["Alberto Elias"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/DOM-Level-3-Events/#interface-CustomEvent" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en/docs/Web/API/CustomEvent" + }], + "polyfills": ["eventlistener"] +} +!*/ +/*! +{ + "name": "Orientation and Motion Events", + "property": ["devicemotion", "deviceorientation"], + "caniuse": "deviceorientation", + "notes": [{ + "name": "W3C Editor's Draft Spec", + "href": "https://w3c.github.io/deviceorientation/" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/Detecting_device_orientation" + }], + "authors": ["Shi Chuan"], + "tags": ["event"], + "builderAliases": ["event_deviceorientation_motion"] +} +!*/ +/*! +{ + "name": "Event Listener", + "property": "eventlistener", + "caniuse": "addeventlistener", + "authors": ["Andrew Betts (@triblondon)"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Registration-interfaces" + }], + "polyfills": ["eventlistener"] +} +!*/ +/*! +{ + "name": "Force Touch Events", + "property": "forcetouch", + "authors": ["Kraig Walker"], + "notes": [{ + "name": "Responding to Force Touch Events from JavaScript", + "href": "https://developer.apple.com/library/archive/documentation/AppleApplications/Conceptual/SafariJSProgTopics/RespondingtoForceTouchEventsfromJavaScript.html" + }] +} +!*/ +/*! +{ + "name": "Hashchange event", + "property": "hashchange", + "caniuse": "hashchange", + "tags": ["history"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onhashchange" + }], + "polyfills": [ + "jquery-hashchange", + "moo-historymanager", + "jquery-ajaxy", + "hasher", + "shistory" + ] +} +!*/ +/*! +{ + "name": "onInput Event", + "property": "oninput", + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers.oninput" + }, { + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/input.html#common-input-element-attributes" + }, { + "name": "Related Github Issue", + "href": "https://github.com/Modernizr/Modernizr/issues/210" + }], + "authors": ["Patrick Kettner"], + "tags": ["event"] +} +!*/ +/*! +{ + "name": "DOM Pointer Events API", + "property": "pointerevents", + "caniuse": "pointer", + "tags": ["input"], + "authors": ["Stu Cox"], + "notes": [{ + "name": "W3C Spec (Pointer Events)", + "href": "https://www.w3.org/TR/pointerevents/" + }, { + "name": "W3C Spec (Pointer Events Level 2)", + "href": "https://www.w3.org/TR/pointerevents2/" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent" + }], + "warnings": ["This property name now refers to W3C DOM PointerEvents: https://github.com/Modernizr/Modernizr/issues/548#issuecomment-12812099"], + "polyfills": ["pep"] +} +!*/ +/*! +{ + "name": "Proximity API", + "property": "proximity", + "authors": ["Cătălin Mariș"], + "tags": ["events", "proximity"], + "caniuse": "proximity", + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/Proximity_Events" + }, { + "name": "W3C Spec", + "href": "https://www.w3.org/TR/proximity/" + }] +} +!*/ +/*! +{ + "name": "File API", + "property": "filereader", + "caniuse": "fileapi", + "notes": [{ + "name": "W3C Working Draft Spec", + "href": "https://www.w3.org/TR/FileAPI/" + }], + "tags": ["file"], + "builderAliases": ["file_api"], + "knownBugs": ["Will fail in Safari 5 due to its lack of support for the standards defined FileReader object"] +} +!*/ +/*! +{ + "name": "Filesystem API", + "property": "filesystem", + "caniuse": "filesystem", + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/file-system-api/" + }], + "authors": ["Eric Bidelman (@ebidel)"], + "tags": ["file"], + "builderAliases": ["file_filesystem"], + "knownBugs": ["The API will be present in Chrome incognito, but will throw an exception. See crbug.com/93417"] +} +!*/ +/*! +{ + "name": "Flash", + "property": "flash", + "tags": ["flash"], + "polyfills": ["shumway"] +} +!*/ +/*! +{ + "name": "Fullscreen API", + "property": "fullscreen", + "caniuse": "fullscreen", + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en/API/Fullscreen" + }], + "polyfills": ["screenfulljs"], + "builderAliases": ["fullscreen_api"] +} +!*/ +/*! +{ + "name": "GamePad API", + "property": "gamepads", + "caniuse": "gamepad", + "authors": ["Eric Bidelman"], + "tags": ["media"], + "warnings": ["In new browsers it may return false in non-HTTPS connections"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/gamepad/" + }, { + "name": "HTML5 Rocks Tutorial", + "href": "https://www.html5rocks.com/en/tutorials/doodles/gamepad/#toc-featuredetect" + }] +} +!*/ +/*! +{ + "name": "Geolocation API", + "property": "geolocation", + "caniuse": "geolocation", + "tags": ["media"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/WebAPI/Using_geolocation" + }], + "polyfills": [ + "joshuabell-polyfill", + "webshims", + "geo-location-javascript", + "geolocation-api-polyfill" + ] +} +!*/ +/*! +{ + "name": "Hidden Scrollbar", + "property": "hiddenscroll", + "authors": ["Oleg Korsunsky"], + "tags": ["overlay"], + "notes": [{ + "name": "Overlay Scrollbar description", + "href": "https://developer.apple.com/library/mac/releasenotes/MacOSX/WhatsNewInOSX/Articles/MacOSX10_7.html#//apple_ref/doc/uid/TP40010355-SW39" + }, { + "name": "Video example of overlay scrollbars", + "href": "https://gfycat.com/FoolishMeaslyAtlanticsharpnosepuffer" + }] +} +!*/ +/*! +{ + "name": "History API", + "property": "history", + "caniuse": "history", + "tags": ["history"], + "authors": ["Hay Kranen", "Alexander Farkas"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/html51/browsers.html#the-history-interface" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/window.history" + }], + "polyfills": ["historyjs", "html5historyapi"] +} +!*/ +/*! +{ + "name": "HTML Imports", + "property": "htmlimports", + "tags": ["html", "import"], + "polyfills": ["polymer-htmlimports"], + "notes": [{ + "name": "W3C Spec", + "href": "https://w3c.github.io/webcomponents/spec/imports/" + }, { + "name": "HTML Imports - #include for the web", + "href": "https://www.html5rocks.com/en/tutorials/webcomponents/imports/" + }] +} +!*/ +/*! +{ + "name": "IE8 compat mode", + "property": "ie8compat", + "authors": ["Erich Ocean"] +} +!*/ +/*! +{ + "name": "iframe[sandbox] Attribute", + "property": "sandbox", + "caniuse": "iframe-sandbox", + "tags": ["iframe"], + "builderAliases": ["iframe_sandbox"], + "notes": [ + { + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/embedded-content.html#attr-iframe-sandbox" + }], + "knownBugs": ["False-positive on Firefox < 29"] +} +!*/ +/*! +{ + "name": "iframe[seamless] Attribute", + "property": "seamless", + "tags": ["iframe"], + "builderAliases": ["iframe_seamless"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/embedded-content.html#attr-iframe-seamless" + }] +} +!*/ +/*! +{ + "name": "iframe[srcdoc] Attribute", + "property": "srcdoc", + "caniuse": "iframe-srcdoc", + "tags": ["iframe"], + "builderAliases": ["iframe_srcdoc"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/embedded-content.html#attr-iframe-srcdoc" + }] +} +!*/ +/*! +{ + "name": "Animated PNG", + "async": true, + "property": "apng", + "caniuse": "apng", + "tags": ["image"], + "builderAliases": ["img_apng"], + "notes": [{ + "name": "Wikipedia Article", + "href": "https://en.wikipedia.org/wiki/APNG" + }] +} +!*/ +/*! +{ + "name": "AVIF", + "async": true, + "property": "avif", + "caniuse": "avif", + "tags": ["image"], + "authors": ["Markel Ferro (@MarkelFe)"], + "polyfills": ["avifjs"], + "notes": [{ + "name": "Avif Spec", + "href": "https://aomediacodec.github.io/av1-avif/" + }] +} +!*/ +/*! +{ + "name": "Image crossOrigin", + "property": "imgcrossorigin", + "tags": ["image"], + "notes": [{ + "name": "Cross Domain Images and the Tainted Canvas", + "href": "https://blog.codepen.io/2013/10/08/cross-domain-images-tainted-canvas/" + }] +} +!*/ +/*! +{ + "name": "EXIF Orientation", + "property": "exiforientation", + "tags": ["image"], + "builderAliases": ["exif_orientation"], + "async": true, + "authors": ["Paul Sayre"], + "notes": [{ + "name": "Article by Dave Perrett", + "href": "https://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto/" + }, { + "name": "Article by Calvin Hass", + "href": "https://www.impulseadventure.com/photo/exif-orientation.html" + }] +} +!*/ +/*! +{ + "name": "JPEG 2000", + "async": true, + "aliases": ["jpeg-2000", "jpg2"], + "property": "jpeg2000", + "caniuse": "jpeg2000", + "tags": ["image"], + "authors": ["@eric_wvgg"], + "notes": [{ + "name": "Wikipedia Article", + "href": "https://en.wikipedia.org/wiki/JPEG_2000" + }] +} +!*/ +/*! +{ + "name": "JPEG XR (extended range)", + "async": true, + "aliases": ["jpeg-xr"], + "property": "jpegxr", + "tags": ["image"], + "notes": [{ + "name": "Wikipedia Article", + "href": "https://en.wikipedia.org/wiki/JPEG_XR" + }] +} +!*/ +/*! +{ + "name": "image and iframe native lazy loading", + "property": "lazyloading", + "caniuse": "loading-lazy-attr", + "tags": ["image", "lazy", "loading"], + "notes": [{ + "name": "Native image lazy-loading for the web", + "href": "https://addyosmani.com/blog/lazy-loading/" + }] +} +!*/ +/*! +{ + "name": "sizes attribute", + "async": true, + "property": "sizes", + "tags": ["image"], + "authors": ["Mat Marquis"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element" + }, { + "name": "Srcset and sizes", + "href": "https://ericportis.com/posts/2014/srcset-sizes/" + }] +} +!*/ +/*! +{ + "name": "srcset attribute", + "property": "srcset", + "caniuse": "srcset", + "tags": ["image"], + "notes": [{ + "name": "Smashing Magazine Article", + "href": "https://www.smashingmagazine.com/2013/08/webkit-implements-srcset-and-why-its-a-good-thing/" + }, { + "name": "Generate multi-resolution images for srcset with Grunt", + "href": "https://addyosmani.com/blog/generate-multi-resolution-images-for-srcset-with-grunt/" + }] +} +!*/ +/*! +{ + "name": "Webp Alpha", + "async": true, + "property": "webpalpha", + "aliases": ["webp-alpha"], + "tags": ["image"], + "authors": ["Krister Kari", "Rich Bradshaw", "Ryan Seddon", "Paul Irish"], + "notes": [{ + "name": "WebP Info", + "href": "https://developers.google.com/speed/webp/" + }, { + "name": "Article about WebP support", + "href": "https://optimus.keycdn.com/support/webp-support/" + }, { + "name": "Chromium WebP announcement", + "href": "https://blog.chromium.org/2011/11/lossless-and-transparency-encoding-in.html?m=1" + }] +} +!*/ +/*! +{ + "name": "Webp Animation", + "async": true, + "property": "webpanimation", + "aliases": ["webp-animation"], + "tags": ["image"], + "authors": ["Krister Kari", "Rich Bradshaw", "Ryan Seddon", "Paul Irish"], + "notes": [{ + "name": "WebP Info", + "href": "https://developers.google.com/speed/webp/" + }, { + "name": "Chromium blog - Chrome 32 Beta: Animated WebP images and faster Chrome for Android touch input", + "href": "https://blog.chromium.org/2013/11/chrome-32-beta-animated-webp-images-and.html" + }] +} +!*/ +/*! +{ + "name": "Webp Lossless", + "async": true, + "property": ["webplossless", "webp-lossless"], + "tags": ["image"], + "authors": ["@amandeep", "Rich Bradshaw", "Ryan Seddon", "Paul Irish"], + "notes": [{ + "name": "Webp Info", + "href": "https://developers.google.com/speed/webp/" + }, { + "name": "Webp Lossless Spec", + "href": "https://developers.google.com/speed/webp/docs/webp_lossless_bitstream_specification" + }] +} +!*/ +/*! +{ + "name": "Webp", + "async": true, + "property": "webp", + "caniuse": "webp", + "tags": ["image"], + "builderAliases": ["img_webp"], + "authors": ["Krister Kari", "@amandeep", "Rich Bradshaw", "Ryan Seddon", "Paul Irish"], + "notes": [{ + "name": "Webp Info", + "href": "https://developers.google.com/speed/webp/" + }, { + "name": "Chromium blog - Chrome 32 Beta: Animated WebP images and faster Chrome for Android touch input", + "href": "https://blog.chromium.org/2013/11/chrome-32-beta-animated-webp-images-and.html" + }, { + "name": "Webp Lossless Spec", + "href": "https://developers.google.com/speed/webp/docs/webp_lossless_bitstream_specification" + }, { + "name": "Article about WebP support", + "href": "https://optimus.keycdn.com/support/webp-support/" + }, { + "name": "Chromium WebP announcement", + "href": "https://blog.chromium.org/2011/11/lossless-and-transparency-encoding-in.html?m=1" + }] +} +!*/ +/*! +{ + "name": "input[capture] Attribute", + "property": "capture", + "tags": ["video", "image", "audio", "media", "attribute"], + "notes": [{ + "name": "W3C Draft Spec", + "href": "https://www.w3.org/TR/html-media-capture/" + }] +} +!*/ +/*! +{ + "name": "input[file] Attribute", + "property": "fileinput", + "caniuse": "forms", + "tags": ["file", "forms", "input"], + "builderAliases": ["forms_fileinput"] +} +!*/ +/*! +{ + "name": "input[directory] Attribute", + "property": "directory", + "authors": ["silverwind"], + "tags": ["file", "input", "attribute"] +} +!*/ +/*! +{ + "name": "input formaction", + "property": "inputformaction", + "aliases": ["input-formaction"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formaction" + }, { + "name": "Wufoo demo", + "href": "https://www.wufoo.com/html5/formaction-attribute/" + }], + "polyfills": ["webshims"] +} +!*/ +/*! +{ + "name": "input[form] Attribute", + "property": "formattribute", + "tags": ["attribute", "forms", "input"], + "builderAliases": ["forms_formattribute"] +} +!*/ +/*! +{ + "name": "input formenctype", + "property": "inputformenctype", + "aliases": ["input-formenctype"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formenctype" + }, { + "name": "Wufoo demo", + "href": "https://www.wufoo.com/html5/formenctype-attribute/" + }], + "polyfills": ["html5formshim"] +} +!*/ +/*! +{ + "name": "input formmethod", + "property": "inputformmethod", + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formmethod" + }, { + "name": "Wufoo demo", + "href": "https://www.wufoo.com/html5/formmethod-attribute/" + }], + "polyfills": ["webshims"] +} +!*/ +/*! +{ + "name": "input formnovalidate", + "property": "inputformnovalidate", + "aliases": ["input-formnovalidate"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formnovalidate" + }, { + "name": "Wufoo demo", + "href": "https://www.wufoo.com/html5/formnovalidate-attribute/" + }], + "polyfills": ["html5formshim"] +} +!*/ +/*! +{ + "name": "input formtarget", + "property": "inputformtarget", + "aliases": ["input-formtarget"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formtarget" + }, { + "name": "Wufoo demo", + "href": "https://www.wufoo.com/html5/formtarget-attribute/" + }], + "polyfills": ["html5formshim"] +} +!*/ +/*! +{ + "name": "Input attributes", + "property": "input", + "tags": ["forms"], + "authors": ["Mike Taylor"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/input.html#input-type-attr-summary" + }], + "knownBugs": ["Some blackberry devices report false positive for input.multiple"] +} +!*/ +/*! +{ + "name": "Form input types", + "property": "inputtypes", + "caniuse": "forms", + "tags": ["forms"], + "authors": ["Mike Taylor"], + "polyfills": [ + "jquerytools", + "webshims", + "h5f", + "webforms2", + "nwxforms", + "fdslider", + "html5slider", + "galleryhtml5forms", + "jscolor", + "html5formshim", + "selectedoptionsjs", + "formvalidationjs" + ] +} +!*/ +/*! +{ + "name": "Form Validation", + "property": "formvalidation", + "tags": ["forms", "validation", "attribute"], + "builderAliases": ["forms_validation"] +} +!*/ +/*! +{ + "name": "input[type=\"number\"] Localization", + "property": "localizednumber", + "tags": ["forms", "localization", "attribute"], + "authors": ["Peter Janes"], + "notes": [{ + "name": "Webkit Bug Tracker Listing", + "href": "https://bugs.webkit.org/show_bug.cgi?id=42484" + }, { + "name": "Based on This", + "href": "https://trac.webkit.org/browser/trunk/LayoutTests/fast/forms/script-tests/input-number-keyoperation.js?rev=80096#L9" + }], + "knownBugs": ["Only ever returns true if the browser/OS is configured to use comma as a decimal separator. This is probably fine for most use cases."] +} +!*/ +/*! +{ + "name": "input[search] search event", + "property": "inputsearchevent", + "tags": ["input","search"], + "authors": ["Calvin Webster"], + "notes": [{ + "name": "Wufoo demo", + "href": "https://www.wufoo.com/html5/search-type/" + }, { + "name": "CSS Tricks", + "href": "https://css-tricks.com/webkit-html5-search-inputs/" + }] +} +!*/ +/*! +{ + "name": "placeholder attribute", + "property": "placeholder", + "tags": ["forms", "attribute"], + "builderAliases": ["forms_placeholder"] +} +!*/ +/*! +{ + "name": "form#requestAutocomplete()", + "property": "requestautocomplete", + "tags": ["form", "forms", "requestAutocomplete", "payments"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://wiki.whatwg.org/wiki/RequestAutocomplete" + }] +} +!*/ +/*! +{ + "name": "Internationalization API", + "property": "intl", + "caniuse": "internationalization", + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl" + }, { + "name": "ECMAScript spec", + "href": "https://www.ecma-international.org/ecma-402/1.0/" + }] +} + !*/ +/*! +{ + "name": "Font Ligatures", + "property": "ligatures", + "caniuse": "font-feature", + "notes": [{ + "name": "Cross-browser Web Fonts", + "href": "https://www.sitepoint.com/cross-browser-web-fonts-part-3/" + }] +} +!*/ +/*! +{ + "name": "Reverse Ordered Lists", + "property": "olreversed", + "notes": [{ + "name": "Impressive Webs article", + "href": "https://www.impressivewebs.com/reverse-ordered-lists-html5/" + }], + "builderAliases": ["lists_reversed"] +} +!*/ +/*! +{ + "name": "MathML", + "property": "mathml", + "caniuse": "mathml", + "authors": ["Addy Osmani", "Davide P. Cervone", "David Carlisle"], + "knownBugs": ["Firefox < 4 will likely return a false, however it does support MathML inside XHTML documents"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/Math/" + }], + "polyfills": ["mathjax"] +} +!*/ +/*! +{ + "name": "Media Source Extensions API", + "caniuse": "mediasource", + "property": "mediasource", + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API" + }], + "builderAliases": ["media_source_extension_api"] +} +!*/ +/*! +{ + "name": "Hover Media Query", + "property": "hovermq", + "tags": ["mediaquery"] +} +!*/ +/*! +{ + "name": "Pointer Media Query", + "property": "pointermq", + "tags": ["mediaquery"] +} +!*/ +/*! +{ + "name": "Message Channel", + "property": "messagechannel", + "authors": ["Raju Konga (@kongaraju)"], + "caniuse": "channel-messaging", + "tags": ["performance", "messagechannel"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/2011/WD-webmessaging-20110317/#message-channels" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/Channel_Messaging_API/Using_channel_messaging" + }] +} +!*/ +/*! +{ + "name": "Beacon API", + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/navigator.sendBeacon" + }, { + "name": "W3C Spec", + "href": "https://w3c.github.io/beacon/" + }], + "property": "beacon", + "caniuse": "beacon", + "tags": ["beacon", "network"], + "authors": ["Cătălin Mariș"] +} +!*/ +/*! +{ + "name": "Connection Effective Type", + "notes": [{ + "name": "MDN documentation", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/effectiveType" + }], + "property": "connectioneffectivetype", + "builderAliases": ["network_connection"], + "tags": ["network"] +} +!*/ +/*! +{ + "name": "Low Bandwidth Connection", + "property": "lowbandwidth", + "tags": ["network"], + "builderAliases": ["network_connection"] +} +!*/ +/*! +{ + "name": "Server Sent Events", + "property": "eventsource", + "tags": ["network"], + "builderAliases": ["network_eventsource"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events" + }] +} +!*/ +/*! +{ + "name": "Fetch API", + "property": "fetch", + "tags": ["network"], + "caniuse": "fetch", + "notes": [{ + "name": "WHATWG Spec", + "href": "https://fetch.spec.whatwg.org/" + }], + "polyfills": ["fetch"] +} +!*/ +/*! +{ + "name": "XHR responseType='arraybuffer'", + "property": "xhrresponsetypearraybuffer", + "tags": ["network"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://xhr.spec.whatwg.org/#the-responsetype-attribute" + }] +} +!*/ +/*! +{ + "name": "XHR responseType='blob'", + "property": "xhrresponsetypeblob", + "tags": ["network"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://xhr.spec.whatwg.org/#the-responsetype-attribute" + }] +} +!*/ +/*! +{ + "name": "XHR responseType='document'", + "property": "xhrresponsetypedocument", + "tags": ["network"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://xhr.spec.whatwg.org/#the-responsetype-attribute" + }] +} +!*/ +/*! +{ + "name": "XHR responseType='json'", + "property": "xhrresponsetypejson", + "tags": ["network"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://xhr.spec.whatwg.org/#the-responsetype-attribute" + }, { + "name": "Explanation of xhr.responseType='json'", + "href": "https://mathiasbynens.be/notes/xhr-responsetype-json" + }] +} +!*/ +/*! +{ + "name": "XHR responseType='text'", + "property": "xhrresponsetypetext", + "tags": ["network"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://xhr.spec.whatwg.org/#the-responsetype-attribute" + }] +} +!*/ +/*! +{ + "name": "XHR responseType", + "property": "xhrresponsetype", + "tags": ["network"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://xhr.spec.whatwg.org/#the-responsetype-attribute" + }] +} +!*/ +/*! +{ + "name": "XML HTTP Request Level 2 XHR2", + "property": "xhr2", + "caniuse": "xhr2", + "tags": ["network"], + "builderAliases": ["network_xhr2"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/XMLHttpRequest2/" + }, { + "name": "Details on Related Github Issue", + "href": "https://github.com/Modernizr/Modernizr/issues/385" + }] +} +!*/ +/*! +{ + "name": "Notification", + "property": "notification", + "caniuse": "notifications", + "authors": ["Theodoor van Donge", "Hendrik Beskow"], + "notes": [{ + "name": "HTML5 Rocks Tutorial", + "href": "https://www.html5rocks.com/en/tutorials/notifications/quick/" + }, { + "name": "W3C Spec", + "href": "https://www.w3.org/TR/notifications/" + }, { + "name": "Changes in Chrome to Notifications API due to Service Worker Push Notifications", + "href": "https://developers.google.com/web/updates/2015/05/Notifying-you-of-notificiation-changes" + }], + "knownBugs": ["Possibility of false-positive on Chrome for Android if permissions we're granted for a website prior to Chrome 44."], + "polyfills": ["desktop-notify", "html5-notifications"] +} +!*/ +/*! +{ + "name": "Page Visibility API", + "property": "pagevisibility", + "caniuse": "pagevisibility", + "tags": ["performance"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/DOM/Using_the_Page_Visibility_API" + }, { + "name": "W3C Spec", + "href": "https://www.w3.org/TR/2011/WD-page-visibility-20110602/" + }, { + "name": "HTML5 Rocks Tutorial", + "href": "https://www.html5rocks.com/en/tutorials/pagevisibility/intro/" + }], + "polyfills": ["visibilityjs", "visiblyjs", "jquery-visibility"] +} +!*/ +/*! +{ + "name": "Navigation Timing API", + "property": "performance", + "caniuse": "nav-timing", + "tags": ["performance"], + "authors": ["Scott Murphy (@uxder)"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/navigation-timing/" + }, { + "name": "HTML5 Rocks Tutorial", + "href": "https://www.html5rocks.com/en/tutorials/webperformance/basics/" + }], + "polyfills": ["perfnow"] +} +!*/ +/*! +{ + "name": "Pointer Lock API", + "property": "pointerlock", + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/API/Pointer_Lock_API" + }], + "builderAliases": ["pointerlock_api"] +} +!*/ +/*! +{ + "name": "postMessage", + "property": "postmessage", + "caniuse": "x-doc-messaging", + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/webmessaging/#crossDocumentMessages" + }], + "polyfills": ["easyxdm", "postmessage-jquery"], + "knownBugs": [ + "structuredclones - Android 2&3 can not send a structured clone of dates, filelists or regexps.", + "Some old WebKit versions have bugs." + ], + "warnings": ["To be safe you should stick with object, array, number and pixeldata."] +} +!*/ +/*! +{ + "name": "Proxy Object", + "property": "proxy", + "caniuse": "proxy", + "authors": ["Brock Beaudry"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy" + }], + "polyfills": [ + "harmony-reflect" + ] +} +!*/ +/*! +{ + "name": "QuerySelector", + "property": "queryselector", + "caniuse": "queryselector", + "tags": ["queryselector"], + "authors": ["Andrew Betts (@triblondon)"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/selectors-api/#queryselectorall" + }], + "polyfills": ["css-selector-engine"] +} +!*/ +/*! +{ + "name": "rel=prefetch", + "property": "prefetch", + "caniuse": "link-rel-prefetch", + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/resource-hints/#prefetch" + }, { + "name": "Related Github Issue", + "href": "https://github.com/Modernizr/Modernizr/issues/2536" + }] +} +!*/ +/*! +{ + "name": "requestAnimationFrame", + "property": "requestanimationframe", + "aliases": ["raf"], + "caniuse": "requestanimationframe", + "tags": ["animation"], + "authors": ["Addy Osmani"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/animation-timing/" + }], + "polyfills": ["raf"] +} +!*/ +/*! +{ + "name": "script[async]", + "property": "scriptasync", + "caniuse": "script-async", + "tags": ["script"], + "builderAliases": ["script_async"], + "authors": ["Theodoor van Donge"] +} +!*/ +/*! +{ + "name": "script[defer]", + "property": "scriptdefer", + "caniuse": "script-defer", + "tags": ["script"], + "builderAliases": ["script_defer"], + "authors": ["Theodoor van Donge"], + "warnings": ["Browser implementation of the `defer` attribute vary: https://stackoverflow.com/questions/3952009/defer-attribute-chrome#answer-3982619"], + "knownBugs": ["False positive in Opera 12"] +} +!*/ +/*! +{ + "name": "scrollToOptions dictionary", + "property": "scrolltooptions", + "caniuse": "mdn-api_scrolltooptions", + "notes": [{ + "name": "MDN docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo" + }], + "authors": ["Oliver Tušla (@asmarcz)", "Chris Smith (@chris13524)"] +} +!*/ +/*! +{ + "name": "ServiceWorker API", + "property": "serviceworker", + "caniuse": "serviceworkers", + "notes": [{ + "name": "ServiceWorkers Explained", + "href": "https://github.com/slightlyoff/ServiceWorker/blob/master/explainer.md" + }] +} +!*/ +/*! +{ + "property": "speechrecognition", + "caniuse": "speech-recognition", + "tags": ["input", "speech"], + "authors": ["Cătălin Mariș"], + "name": "Speech Recognition API", + "notes": [{ + "name": "W3C Spec", + "href": "https://w3c.github.io/speech-api/speechapi.html#speechreco-section" + }, { + "name": "Introduction to the Web Speech API", + "href": "https://developers.google.com/web/updates/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API" + }] +} +!*/ +/*! +{ + "property": "speechsynthesis", + "caniuse": "speech-synthesis", + "tags": ["input", "speech"], + "authors": ["Cătălin Mariș"], + "name": "Speech Synthesis API", + "notes": [{ + "name": "W3C Spec", + "href": "https://w3c.github.io/speech-api/speechapi.html#tts-section" + }] +} +!*/ +/*! +{ + "name": "Cookies", + "property": "cookies", + "tags": ["storage"], + "authors": ["tauren"] +} +!*/ +/*! +{ + "name": "IndexedDB", + "property": "indexeddb", + "caniuse": "indexeddb", + "tags": ["storage"], + "polyfills": ["indexeddb"], + "async": true +} +!*/ +/*! +{ + "name": "IndexedDB Blob", + "property": "indexeddbblob", + "tags": ["storage"] +} +!*/ +/*! +{ + "name": "IndexedDB 2.0", + "property": "indexeddb2", + "tags": ["storage"], + "caniuse": "indexeddb2", + "authors": ["Tan Zhen Yong (@Xenonym)"], + "polyfills": ["indexeddb"], + "async": true +} +!*/ +/*! +{ + "name": "Local Storage", + "property": "localstorage", + "caniuse": "namevalue-storage", + "tags": ["storage"], + "polyfills": [ + "joshuabell-polyfill", + "cupcake", + "storagepolyfill", + "amplifyjs", + "yui-cacheoffline" + ] +} +!*/ +/*! +{ + "name": "Quota Storage Management API", + "property": "quotamanagement", + "tags": ["storage"], + "builderAliases": ["quota_management_api"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/quota-api/" + }] +} +!*/ +/*! +{ + "name": "Session Storage", + "property": "sessionstorage", + "tags": ["storage"], + "polyfills": ["joshuabell-polyfill", "cupcake", "storagepolyfill"] +} +!*/ +/*! +{ + "name": "IE User Data API", + "property": "userdata", + "tags": ["storage"], + "authors": ["@stereobooster"], + "notes": [{ + "name": "MSDN Documentation", + "href": "https://msdn.microsoft.com/en-us/library/ms531424.aspx" + }] +} +!*/ +/*! +{ + "name": "Web SQL Database", + "property": "websqldatabase", + "caniuse": "sql-storage", + "tags": ["storage"] +} +!*/ +/*! +{ + "name": "style[scoped]", + "property": "stylescoped", + "caniuse": "style-scoped", + "tags": ["dom"], + "builderAliases": ["style_scoped"], + "authors": ["Cătălin Mariș"], + "notes": [{ + "name": "WHATWG Spec", + "href": "https://html.spec.whatwg.org/multipage/semantics.html#attr-style-scoped" + }], + "polyfills": ["scoped-styles"] +} +!*/ +/*! +{ + "name": "SVG", + "property": "svg", + "caniuse": "svg", + "tags": ["svg"], + "authors": ["Erik Dahlstrom"], + "polyfills": [ + "svgweb", + "raphael", + "canvg", + "svg-boilerplate", + "sie", + "fabricjs" + ] +} +!*/ +/*! +{ + "name": "SVG as an tag source", + "property": "svgasimg", + "caniuse": "svg-img", + "tags": ["svg"], + "aliases": ["svgincss"], + "authors": ["Chris Coyier"], + "notes": [{ + "name": "HTML5 Spec", + "href": "https://www.w3.org/TR/html5/embedded-content-0.html#the-img-element" + }] +} +!*/ +/*! +{ + "name": "SVG clip paths", + "property": "svgclippaths", + "tags": ["svg"], + "notes": [{ + "name": "Demo", + "href": "http://srufaculty.sru.edu/david.dailey/svg/newstuff/clipPath4.svg" + }] +} +!*/ +/*! +{ + "name": "SVG filters", + "property": "svgfilters", + "caniuse": "svg-filters", + "tags": ["svg"], + "builderAliases": ["svg_filters"], + "authors": ["Erik Dahlstrom"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/SVG11/filters.html" + }] +} +!*/ +/*! +{ + "name": "SVG foreignObject", + "property": "svgforeignobject", + "tags": ["svg"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/SVG11/extend.html" + }] +} +!*/ +/*! +{ + "name": "Inline SVG", + "property": "inlinesvg", + "caniuse": "svg-html5", + "tags": ["svg"], + "notes": [{ + "name": "Test page", + "href": "https://paulirish.com/demo/inline-svg" + }, { + "name": "Test page and results", + "href": "https://codepen.io/eltonmesquita/full/GgXbvo/" + }], + "polyfills": ["inline-svg-polyfill"], + "knownBugs": ["False negative on some Chromia browsers."] +} +!*/ +/*! +{ + "name": "SVG SMIL animation", + "property": "smil", + "caniuse": "svg-smil", + "tags": ["svg"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/AudioVideo/" + }] +} +!*/ +/*! +{ + "name": "textarea maxlength", + "property": "textareamaxlength", + "aliases": ["textarea-maxlength"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea" + }], + "polyfills": ["maxlength"] +} +!*/ +/*! +{ + "name": "Text Encoding/Decoding", + "property": ["textencoder", "textdecoder"], + "caniuse" : "textencoder", + "notes": [{ + "name": "MDN TextEncoder Doc", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder" + }, { + "name": "MDN TextDecoder Doc", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder" + }], + "authors": ["dabretin"] +} +!*/ +/*! +{ + "name": "Typed arrays", + "property": "typedarrays", + "caniuse": "typedarrays", + "tags": ["js"], + "authors": ["Stanley Stuart (@fivetanley)"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays" + }, { + "name": "Kronos spec", + "href": "http://www.ecma-international.org/ecma-262/6.0/#sec-typedarray-objects" + }], + "polyfills": ["joshuabell-polyfill"] +} +!*/ +/*! +{ + "name": "Unicode Range", + "property": "unicoderange", + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/2013/CR-css-fonts-3-20131003/#descdef-unicode-range" + }, { + "name": "24 Way article", + "href": "https://24ways.org/2011/creating-custom-font-stacks-with-unicode-range" + }] +} +!*/ +/*! +{ + "name": "Blob URLs", + "property": "bloburls", + "caniuse": "bloburls", + "notes": [{ + "name": "W3C Working Draft Spec", + "href": "https://www.w3.org/TR/FileAPI/#creating-revoking" + }], + "tags": ["file", "url"], + "authors": ["Ron Waldon (@jokeyrhyme)"] +} +!*/ +/*! +{ + "name": "Data URI", + "property": "datauri", + "caniuse": "datauri", + "tags": ["url"], + "builderAliases": ["url_data_uri"], + "async": true, + "notes": [{ + "name": "Wikipedia article", + "href": "https://en.wikipedia.org/wiki/Data_URI_scheme" + }], + "warnings": ["Support in Internet Explorer 8 is limited to images and linked resources like CSS files, not HTML files"] +} +!*/ +/*! +{ + "name": "URL parser", + "property": "urlparser", + "notes": [{ + "name": "WHATWG Spec", + "href": "https://url.spec.whatwg.org/" + }], + "polyfills": ["urlparser"], + "authors": ["Ron Waldon (@jokeyrhyme)"], + "tags": ["url"] +} +!*/ +/*! +{ + "property": "urlsearchparams", + "caniuse": "urlsearchparams", + "tags": ["querystring", "url"], + "authors": ["Cătălin Mariș"], + "name": "URLSearchParams API", + "notes": [{ + "name": "WHATWG Spec", + "href": "https://url.spec.whatwg.org/#interface-urlsearchparams" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams" + }] +} +!*/ +/*! +{ + "name": "Vibration API", + "property": "vibrate", + "caniuse": "vibration", + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en/DOM/window.navigator.mozVibrate" + }, { + "name": "W3C Spec", + "href": "https://www.w3.org/TR/vibration/" + }] +} +!*/ +/*! +{ + "name": "HTML5 Video", + "property": "video", + "caniuse": "video", + "tags": ["html5", "video", "media"], + "knownBugs": ["Without QuickTime, `Modernizr.video.h264` will be `undefined`; https://github.com/Modernizr/Modernizr/issues/546"], + "polyfills": [ + "html5media", + "mediaelementjs", + "videojs", + "leanbackplayer", + "videoforeverybody" + ] +} +!*/ +/*! +{ + "name": "Video Autoplay", + "property": "videoautoplay", + "tags": ["video"], + "async": true, + "warnings": ["This test is very large – only include it if you absolutely need it"], + "knownBugs": ["crashes with an alert on iOS7 when added to homescreen"] +} +!*/ +/*! +{ + "name": "Video crossOrigin", + "property": "videocrossorigin", + "caniuse": "cors", + "authors": ["Florian Mailliet"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes" + }] +} +!*/ +/*! +{ + "name": "Video Loop Attribute", + "property": "videoloop", + "tags": ["video", "media"] +} +!*/ +/*! +{ + "name": "Video Preload Attribute", + "property": "videopreload", + "tags": ["video", "media"] +} +!*/ +/*! +{ + "name": "VML", + "property": "vml", + "tags": ["vml"], + "authors": ["Craig Andrews (@candrews)"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/NOTE-VML" + }, { + "name": "MSDN Documentation", + "href": "https://docs.microsoft.com/en-us/windows/desktop/VML/msdn-online-vml-introduction" + }] +} +!*/ +/*! +{ + "name": "Web Intents", + "property": "webintents", + "authors": ["Eric Bidelman"], + "notes": [{ + "name": "Web Intents project site", + "href": "http://www.webintents.org/" + }], + "builderAliases": ["web_intents"] +} +!*/ +/*! +{ + "name": "Web Animation API", + "property": "webanimations", + "caniuse": "web-animation", + "tags": ["webanimations"], + "polyfills": ["webanimationsjs"], + "notes": [{ + "name": "Introducing Web Animations", + "href": "https://birtles.wordpress.com/2013/06/26/introducing-web-animations/" + }] +} +!*/ +/*! +{ + "name": "PublicKeyCredential", + "notes": [ + { + "name": "MDN Documentation", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential" + }, + { + "name": "Google Developers solution", + "href": "https://developers.google.com/web/updates/2018/03/webauthn-credential-management#the_solution" + } + ], + "property": "publickeycredential", + "tags": ["webauthn", "web authentication"], + "authors": ["Eric Delia"] +} +!*/ +/*! +{ + "name": "WebGL", + "property": "webgl", + "caniuse": "webgl", + "tags": ["webgl", "graphics"], + "polyfills": ["jebgl", "cwebgl", "iewebgl"] +} +!*/ +/*! +{ + "name": "WebGL Extensions", + "property": "webglextensions", + "tags": ["webgl", "graphics"], + "builderAliases": ["webgl_extensions"], + "async": true, + "authors": ["Ilmari Heikkinen"], + "notes": [{ + "name": "Kronos extensions registry", + "href": "https://www.khronos.org/registry/webgl/extensions/" + }] +} +!*/ +/*! +{ + "name": "RTC Peer Connection", + "property": "peerconnection", + "caniuse": "rtcpeerconnection", + "tags": ["webrtc"], + "authors": ["Ankur Oberoi"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/webrtc/" + }] +} +!*/ +/*! +{ + "name": "RTC Data Channel", + "property": "datachannel", + "notes": [{ + "name": "HTML5 Rocks Tutorial", + "href": "https://www.html5rocks.com/en/tutorials/webrtc/datachannels/" + }] +} +!*/ +/*! +{ + "name": "getUserMedia", + "property": "getusermedia", + "caniuse": "stream", + "tags": ["webrtc"], + "authors": ["Eric Bidelman", "Masataka Yakura"], + "notes": [{ + "name": "W3C Spec", + "href": "https://w3c.github.io/mediacapture-main/#dom-mediadevices-getusermedia" + }] +} +!*/ +/*! +{ + "name": "MediaStream Recording API", + "property": "mediarecorder", + "caniuse": "mediarecorder", + "tags": ["mediarecorder", "media"], + "authors": ["Onkar Dahale"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/MediaStream_Recording_API" + }] +} +!*/ +/*! +{ + "name": "WebSockets Support", + "property": "websockets", + "authors": ["Phread (@fearphage)", "Mike Sherov (@mikesherov)", "Burak Yigit Kaya (@BYK)"], + "caniuse": "websockets", + "tags": ["html5"], + "knownBugs": ["This test will reject any old version of WebSockets even if it is not prefixed such as in Safari 5.1"], + "notes": [{ + "name": "CLOSING State and Spec", + "href": "https://www.w3.org/TR/websockets/#the-websocket-interface" + }], + "polyfills": [ + "sockjs", + "socketio", + "websocketjs", + "atmosphere", + "graceful-websocket", + "portal", + "datachannel" + ] +} +!*/ +/*! +{ + "name": "Binary WebSockets", + "property": "websocketsbinary", + "tags": ["websockets"], + "builderAliases": ["websockets_binary"] +} +!*/ +/*! +{ + "name": "Base 64 encoding/decoding", + "property": "atobbtoa", + "builderAliases": ["atob-btoa"], + "caniuse": "atob-btoa", + "tags": ["atob", "base64", "WindowBase64", "btoa"], + "authors": ["Christian Ulbrich"], + "notes": [{ + "name": "WindowBase64", + "href": "https://www.w3.org/TR/html5/webappapis.html#windowbase64" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/atob" + }], + "polyfills": ["base64js"] +} +!*/ +/*! +{ + "name": "Framed window", + "property": "framed", + "tags": ["window"], + "builderAliases": ["window_framed"] +} +!*/ +/*! +{ + "name": "matchMedia", + "property": "matchmedia", + "caniuse": "matchmedia", + "tags": ["matchmedia"], + "authors": ["Alberto Elias"], + "notes": [{ + "name": "W3C Spec", + "href": "https://drafts.csswg.org/cssom-view/#the-mediaquerylist-interface" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/Window.matchMedia" + }], + "polyfills": ["matchmediajs"] +} +!*/ +/*! +{ + "name": "PushManager", + "property": "pushmanager", + "caniuse": "mdn-api_pushmanager", + "authors": ["Dawid Kulpa (@dawidkulpa)"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/PushManager" + }] +} +!*/ +/*! +{ + "name": "ResizeObserver", + "property": "resizeobserver", + "caniuse": "resizeobserver", + "tags": ["ResizeObserver"], + "authors": ["Christian Andersson"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/resize-observer/" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver" + }, { + "name": "Web.dev Article", + "href": "https://web.dev/resize-observer/" + }, { + "name": "Digital Ocean tutorial", + "href": "https://www.digitalocean.com/community/tutorials/js-resize-observer" + }] +} +!*/ +/*! +{ + "name": "worker type option test", + "property": "workertypeoption", + "caniuse":"mdn-api_worker_worker_ecmascript_modules", + "tags": ["web worker type options", "web worker"], + "builderAliases": ["worker_type_options"], + "authors": ["Debadutta Panda"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/Worker/Worker" + }] +} +!*/ +/*! +{ + "name": "Workers from Blob URIs", + "property": "blobworkers", + "tags": ["performance", "workers"], + "builderAliases": ["workers_blobworkers"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/workers/" + }], + "warnings": ["This test may output garbage to console."], + "authors": ["Jussi Kalliokoski"], + "async": true +} +!*/ +/*! +{ + "name": "Workers from Data URIs", + "property": "dataworkers", + "tags": ["performance", "workers"], + "builderAliases": ["workers_dataworkers"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/workers/" + }], + "warnings": ["This test may output garbage to console."], + "authors": ["Jussi Kalliokoski"], + "async": true +} +!*/ +/*! +{ + "name": "Shared Workers", + "property": "sharedworkers", + "caniuse": "sharedworkers", + "tags": ["performance", "workers"], + "builderAliases": ["workers_sharedworkers"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/workers/" + }] +} +!*/ +/*! +{ + "name": "Web Workers", + "property": "webworkers", + "caniuse": "webworkers", + "tags": ["performance", "workers"], + "notes": [{ + "name": "W3C Spec", + "href": "https://www.w3.org/TR/workers/" + }, { + "name": "HTML5 Rocks Tutorial", + "href": "https://www.html5rocks.com/en/tutorials/workers/basics/" + }, { + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers" + }], + "polyfills": ["fakeworker", "html5shims"] +} +!*/ +/*! +{ + "name": "Transferables Objects", + "property": "transferables", + "tags": ["performance", "workers"], + "builderAliases": ["transferables"], + "notes": [{ + "name": "Transferable Objects: Lightning Fast!", + "href": "https://developers.google.com/web/updates/2011/12/Transferable-Objects-Lightning-Fast" + }], + "async": true +} +!*/ +/*! +{ + "name": "XDomainRequest", + "property": "xdomainrequest", + "tags": ["cors", "xdomainrequest", "ie9", "ie8"], + "authors": ["Ivan Pan (@hypotenuse)"], + "notes": [{ + "name": "MDN Docs", + "href": "https://developer.mozilla.org/en-US/docs/Web/API/XDomainRequest" + }] +} +!*/ diff --git a/playwright/src/test/assets/modernizr/roll.sh b/playwright/src/test/assets/modernizr/roll.sh new file mode 100644 index 000000000..8e6dd5c65 --- /dev/null +++ b/playwright/src/test/assets/modernizr/roll.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +MODERNIZR_VERSION="44fa7b07c367a1814e8699e3a2f15c53fbe32df7" + +cd "$(dirname "$0")" + +rm -rf Modernizr +git clone https://github.com/Modernizr/Modernizr +cd Modernizr +git checkout $MODERNIZR_VERSION +npm ci + +# Modernizr minifier is not working, hence we minify with ESBuild. +./bin/modernizr --config lib/config-all.json +npx esbuild --bundle modernizr.js --minify --outfile=../modernizr.js + +cd .. +rm -rf Modernizr diff --git a/playwright/src/test/assets/modernizr/safari-26.json b/playwright/src/test/assets/modernizr/safari-26.json new file mode 100644 index 000000000..4bbfa95d1 --- /dev/null +++ b/playwright/src/test/assets/modernizr/safari-26.json @@ -0,0 +1,416 @@ +{ + "input": { + "autocomplete": true, + "autofocus": true, + "list": true, + "placeholder": true, + "max": true, + "min": true, + "multiple": true, + "pattern": true, + "required": true, + "step": true + }, + "adownload": true, + "aping": true, + "areaping": true, + "ambientlight": false, + "applicationcache": false, + "audio": { + "ogg": "probably", + "mp3": "probably", + "opus": "probably", + "wav": "probably", + "m4a": "maybe" + }, + "audioloop": true, + "webaudio": true, + "batteryapi": false, + "battery-api": false, + "lowbattery": false, + "blobconstructor": true, + "blob-constructor": true, + "broadcastchannel": true, + "canvas": true, + "canvasblending": true, + "todataurljpeg": true, + "todataurlpng": true, + "todataurlwebp": false, + "canvaswinding": true, + "canvastext": true, + "clipboard": { + "read": true, + "readtext": true, + "write": true, + "writetext": true + }, + "contenteditable": true, + "contextmenu": false, + "cors": true, + "crypto": true, + "getrandomvalues": true, + "cssall": true, + "cssanimations": true, + "appearance": true, + "aspectratio": true, + "backdropfilter": true, + "backgroundblendmode": true, + "backgroundcliptext": true, + "bgpositionshorthand": true, + "bgpositionxy": true, + "bgrepeatround": true, + "bgrepeatspace": true, + "backgroundsize": true, + "bgsizecover": true, + "borderimage": true, + "borderradius": true, + "boxdecorationbreak": true, + "boxshadow": true, + "boxsizing": true, + "csscalc": true, + "checked": true, + "csschunit": true, + "csscolumns": { + "width": true, + "span": true, + "fill": true, + "gap": true, + "rule": true, + "rulecolor": true, + "rulestyle": true, + "rulewidth": true, + "breakbefore": true, + "breakafter": true, + "breakinside": true + }, + "cssgridlegacy": false, + "cssgrid": true, + "cubicbezierrange": true, + "customproperties": true, + "displayrunin": false, + "display-runin": false, + "displaytable": true, + "display-table": true, + "ellipsis": true, + "cssescape": true, + "cssexunit": true, + "supports": true, + "cssfilters": true, + "flexbox": true, + "flexboxlegacy": true, + "flexboxtweener": false, + "flexgap": true, + "flexwrap": true, + "focusvisible": true, + "focuswithin": true, + "fontdisplay": true, + "fontface": true, + "generatedcontent": true, + "cssgradients": true, + "hairline": true, + "hsla": true, + "cssinvalid": true, + "lastchild": true, + "cssmask": true, + "mediaqueries": true, + "multiplebgs": true, + "nthchild": true, + "objectfit": true, + "object-fit": true, + "opacity": true, + "overflowscrolling": false, + "csspointerevents": true, + "csspositionsticky": true, + "csspseudoanimations": true, + "csstransitions": true, + "csspseudotransitions": true, + "cssreflections": true, + "regions": false, + "cssremunit": true, + "cssresize": true, + "rgba": true, + "cssscrollbar": true, + "scrollsnappoints": true, + "shapes": true, + "siblinggeneral": true, + "subpixelfont": true, + "target": true, + "textalignlast": true, + "textdecoration": { + "line": true, + "style": true, + "color": true, + "skip": true, + "skipink": true + }, + "textshadow": true, + "csstransforms": true, + "csstransforms3d": true, + "csstransformslevel2": true, + "preserve3d": true, + "userselect": true, + "cssvalid": true, + "variablefonts": true, + "cssvhunit": true, + "cssvmaxunit": true, + "cssvminunit": true, + "cssvwunit": true, + "willchange": true, + "wrapflow": false, + "customelements": true, + "customprotocolhandler": false, + "dart": false, + "dataview": true, + "classlist": true, + "createelementattrs": false, + "createelement-attrs": false, + "dataset": true, + "documentfragment": true, + "hidden": true, + "intersectionobserver": true, + "microdata": false, + "mutationobserver": true, + "passiveeventlisteners": true, + "shadowroot": true, + "shadowrootlegacy": false, + "bdi": true, + "details": true, + "outputelem": true, + "picture": true, + "progressbar": true, + "meter": true, + "ruby": true, + "template": true, + "time": false, + "texttrackapi": true, + "track": true, + "unknownelements": true, + "emoji": true, + "es5array": true, + "es5date": true, + "es5function": true, + "es5object": true, + "strictmode": true, + "es5string": true, + "json": true, + "es5syntax": true, + "es5undefined": true, + "es5": true, + "es6array": true, + "arrow": true, + "es6class": true, + "es6collections": true, + "generators": true, + "es6math": true, + "es6number": true, + "es6object": true, + "promises": true, + "restparameters": true, + "spreadarray": true, + "stringtemplate": true, + "es6string": true, + "es6symbol": true, + "es7array": true, + "restdestructuringarray": true, + "restdestructuringobject": true, + "spreadobject": true, + "es8object": true, + "customevent": true, + "devicemotion": true, + "deviceorientation": true, + "eventlistener": true, + "forcetouch": false, + "hashchange": true, + "oninput": true, + "pointerevents": true, + "proximity": false, + "filereader": true, + "filesystem": false, + "flash": false, + "fullscreen": true, + "gamepads": true, + "geolocation": true, + "hiddenscroll": true, + "history": true, + "htmlimports": false, + "ie8compat": false, + "sandbox": true, + "seamless": false, + "srcdoc": true, + "imgcrossorigin": true, + "lazyloading": true, + "sizes": true, + "srcset": true, + "capture": false, + "fileinput": true, + "fileinputdirectory": true, + "inputformaction": true, + "input-formaction": true, + "formattribute": true, + "inputformenctype": true, + "input-formenctype": true, + "inputformmethod": true, + "inputformnovalidate": true, + "input-formnovalidate": true, + "inputformtarget": true, + "input-formtarget": true, + "inputtypes": { + "search": true, + "tel": true, + "url": true, + "email": true, + "datetime": false, + "date": true, + "month": false, + "week": false, + "time": true, + "datetime-local": true, + "number": true, + "range": true, + "color": true + }, + "formvalidation": true, + "localizednumber": false, + "inputsearchevent": false, + "placeholder": true, + "requestautocomplete": false, + "intl": true, + "ligatures": true, + "olreversed": true, + "mathml": true, + "mediasource": true, + "hovermq": true, + "pointermq": true, + "messagechannel": true, + "beacon": true, + "effectivetype": false, + "lowbandwidth": false, + "eventsource": true, + "fetch": true, + "xhrresponsetypearraybuffer": true, + "xhrresponsetypeblob": true, + "xhrresponsetypedocument": true, + "xhrresponsetypejson": true, + "xhrresponsetypetext": true, + "xhrresponsetype": true, + "xhr2": true, + "notification": true, + "pagevisibility": true, + "performance": true, + "pointerlock": true, + "postmessage": { + "structuredclones": true + }, + "proxy": true, + "queryselector": true, + "prefetch": false, + "requestanimationframe": true, + "raf": true, + "scriptasync": true, + "scriptdefer": true, + "scrolltooptions": false, + "serviceworker": true, + "speechrecognition": true, + "speechsynthesis": true, + "cookies": true, + "localstorage": true, + "quotamanagement": false, + "sessionstorage": true, + "userdata": false, + "websqldatabase": true, + "stylescoped": false, + "svg": true, + "svgasimg": true, + "svgclippaths": true, + "svgfilters": true, + "svgforeignobject": true, + "inlinesvg": true, + "smil": true, + "textareamaxlength": true, + "textencoder": true, + "textdecoder": true, + "typedarrays": true, + "unicoderange": true, + "bloburls": true, + "urlparser": true, + "urlsearchparams": true, + "vibrate": false, + "video": { + "ogg": "", + "h264": "probably", + "h265": "", + "webm": "probably", + "vp9": "probably", + "hls": "probably", + "av1": "probably" + }, + "videocrossorigin": true, + "videoloop": true, + "videopreload": true, + "vml": false, + "webintents": false, + "webanimations": true, + "publickeycredential": true, + "webgl": true, + "webglextensions": { + "ANGLE_instanced_arrays": true, + "EXT_blend_minmax": true, + "EXT_clip_control": true, + "EXT_color_buffer_half_float": true, + "EXT_depth_clamp": true, + "EXT_float_blend": true, + "EXT_frag_depth": true, + "EXT_polygon_offset_clamp": true, + "EXT_shader_texture_lod": true, + "EXT_texture_compression_bptc": true, + "EXT_texture_compression_rgtc": true, + "EXT_texture_filter_anisotropic": true, + "EXT_texture_mirror_clamp_to_edge": true, + "EXT_sRGB": true, + "KHR_parallel_shader_compile": true, + "OES_element_index_uint": true, + "OES_fbo_render_mipmap": true, + "OES_standard_derivatives": true, + "OES_texture_float": true, + "OES_texture_float_linear": true, + "OES_texture_half_float": true, + "OES_texture_half_float_linear": true, + "OES_vertex_array_object": true, + "WEBGL_blend_func_extended": true, + "WEBGL_color_buffer_float": true, + "WEBGL_compressed_texture_astc": true, + "WEBGL_compressed_texture_etc": true, + "WEBGL_compressed_texture_etc1": true, + "WEBGL_compressed_texture_pvrtc": true, + "WEBKIT_WEBGL_compressed_texture_pvrtc": true, + "WEBGL_compressed_texture_s3tc": true, + "WEBGL_compressed_texture_s3tc_srgb": true, + "WEBGL_debug_renderer_info": true, + "WEBGL_debug_shaders": true, + "WEBGL_depth_texture": true, + "WEBGL_draw_buffers": true, + "WEBGL_lose_context": true, + "WEBGL_multi_draw": true, + "WEBGL_polygon_mode": true + }, + "peerconnection": true, + "datachannel": true, + "getusermedia": true, + "mediastream": true, + "websockets": true, + "websocketsbinary": true, + "atobbtoa": true, + "atob-btoa": true, + "framed": false, + "matchmedia": true, + "pushmanager": true, + "resizeobserver": true, + "workertypeoption": true, + "sharedworkers": true, + "webworkers": true, + "transferables": true, + "xdomainrequest": false, + "devicemotion2": true, + "deviceorientation2": false, + "deviceorientation3": true +} \ No newline at end of file diff --git a/playwright/src/test/assets/movie.mp4 b/playwright/src/test/assets/movie.mp4 new file mode 100644 index 000000000..0a4dd5b40 Binary files /dev/null and b/playwright/src/test/assets/movie.mp4 differ diff --git a/playwright/src/test/assets/movie.ogv b/playwright/src/test/assets/movie.ogv new file mode 100644 index 000000000..870212587 Binary files /dev/null and b/playwright/src/test/assets/movie.ogv differ diff --git a/playwright/src/test/assets/movie.webm b/playwright/src/test/assets/movie.webm new file mode 100644 index 000000000..8f0195222 Binary files /dev/null and b/playwright/src/test/assets/movie.webm differ diff --git a/playwright/src/test/assets/mui.html b/playwright/src/test/assets/mui.html new file mode 100644 index 000000000..2eed5cc5e --- /dev/null +++ b/playwright/src/test/assets/mui.html @@ -0,0 +1,13 @@ + + + + + + +
      + + diff --git a/playwright/src/test/assets/multi-value-rdn/README.md b/playwright/src/test/assets/multi-value-rdn/README.md new file mode 100644 index 000000000..c73d626a7 --- /dev/null +++ b/playwright/src/test/assets/multi-value-rdn/README.md @@ -0,0 +1,10 @@ +# Certificate with repeated CN attributes + +Self-signed certificate whose subject and issuer DNs contain two CN attributes. +Generated with: + +```bash +openssl req -x509 -newkey rsa:2048 -nodes -days 3650 \ + -keyout key.pem -out cert.pem \ + -subj "/CN=localhost/CN=secondary-name" -addext "subjectAltName=DNS:localhost" +``` diff --git a/playwright/src/test/assets/multi-value-rdn/cert.pem b/playwright/src/test/assets/multi-value-rdn/cert.pem new file mode 100644 index 000000000..74d1c9c43 --- /dev/null +++ b/playwright/src/test/assets/multi-value-rdn/cert.pem @@ -0,0 +1,20 @@ +-----BEGIN CERTIFICATE----- +MIIDUTCCAjmgAwIBAgIUDcubmCnYBUu3B/b8eigmpZhoDR0wDQYJKoZIhvcNAQEL +BQAwLTESMBAGA1UEAwwJbG9jYWxob3N0MRcwFQYDVQQDDA5zZWNvbmRhcnktbmFt +ZTAeFw0yNjA3MTYxMzMwMTJaFw0zNjA3MTMxMzMwMTJaMC0xEjAQBgNVBAMMCWxv +Y2FsaG9zdDEXMBUGA1UEAwwOc2Vjb25kYXJ5LW5hbWUwggEiMA0GCSqGSIb3DQEB +AQUAA4IBDwAwggEKAoIBAQDGzWBbkSIKCJvaAcDowynqdO6UHLcArwv/HAUsVOg9 +PcIwaWOAjiBSgfljebKN/gaHyEnQrQEfkEXxrq71ig+wCtGdrt5cyLC2FR49HnE5 +Q1GqTfnCnZCwdNo2OZ6J9Q2VGUoeO05r60C2YNNDKroq/axJdLd2M9EUKLTfXp9/ +Trybp17VUods9gRIn4vlgbujdIybRwIicLH6cwN9KgNYRBn3rNoDVUK3igoUA5p2 +YF/4LhoREnOC5MFA9Hf8tluJZFn0HWaxJ/VuKL0HbCEWgyQgy1QZ6R7ut5fY/RZ+ +/kNayIxaSiXPv8lVpQJ15h/B7tprKNhJkxrBoZVjNJjrAgMBAAGjaTBnMB0GA1Ud +DgQWBBTLhZ6Gu2woML7sZ6tWgVooZzZx0zAfBgNVHSMEGDAWgBTLhZ6Gu2woML7s +Z6tWgVooZzZx0zAPBgNVHRMBAf8EBTADAQH/MBQGA1UdEQQNMAuCCWxvY2FsaG9z +dDANBgkqhkiG9w0BAQsFAAOCAQEAkPvFLdEyck2ivwtnSbwGYTuu3CXTQrB5X0pa +lu5BCYYorrY/mmGtprQzKPhl8ESG1YDlGV05swF2+XPzb9jDvduYKLSyi+mJAf2J +RgQxwH4GlhHl0KNhG7IN8kspM7txGUifFklRppriSkeviGs9urazt489JYKmMBn/ +kFihqGBcFk8FjHrdaLdInw2SZLbtE+bVDRux1C8+W/sO6M4Wg1sU0wo1RbwVgSKu +FRXeftlxpt/B20ygc2RNlaj4kxfKvwbeiQ0oYKUaQENpkReuF8mSA8vhAx/SkX/X +madb4L11oP0Y3bDTbQLBJGUV2zTkk0DtZ3zOeo+y442fyOWq5w== +-----END CERTIFICATE----- diff --git a/playwright/src/test/assets/multi-value-rdn/key.pem b/playwright/src/test/assets/multi-value-rdn/key.pem new file mode 100644 index 000000000..7cee6dfab --- /dev/null +++ b/playwright/src/test/assets/multi-value-rdn/key.pem @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDGzWBbkSIKCJva +AcDowynqdO6UHLcArwv/HAUsVOg9PcIwaWOAjiBSgfljebKN/gaHyEnQrQEfkEXx +rq71ig+wCtGdrt5cyLC2FR49HnE5Q1GqTfnCnZCwdNo2OZ6J9Q2VGUoeO05r60C2 +YNNDKroq/axJdLd2M9EUKLTfXp9/Trybp17VUods9gRIn4vlgbujdIybRwIicLH6 +cwN9KgNYRBn3rNoDVUK3igoUA5p2YF/4LhoREnOC5MFA9Hf8tluJZFn0HWaxJ/Vu +KL0HbCEWgyQgy1QZ6R7ut5fY/RZ+/kNayIxaSiXPv8lVpQJ15h/B7tprKNhJkxrB +oZVjNJjrAgMBAAECggEAC0c/fjJfof4XCWksDohz6k8z8ccnQqyrm491Y6x1eHP2 +flScRoDJqKSjB1eyH4gXysA8H9CQzb+bmDh2yItKlIwolC+FgfIIxGuySXlepwcA +rQ67aqURvlECyCzAp8b1PE4w/EIVEt5Hz5Dyq07TPPkjOw+aEOSjqecdS8bMeaZe +J1Bwzavu6oZJ3oRnkqYmzarvqcudjXvAV4Ov70j2iGMyYNLPpoBGOJ5oo1IgIBGg +6Cf6M5zBkre7AELm1koUcNHhSwE3OoMyrIlgntC7ohbZQZoWsI3Z98eWwpB/l1vK +eKV8ugkh6m6OdWplRWCMXG4gijcHhZEh/tOoh5zrIQKBgQD5Si3zw7vBwpbfIm/O +pBamU334TSRwCOAAVUxFfYAsHTjQyhV4ssegFWONdTzixDXYOHnOwIekXDHqrWJq +3c84o+qa/aljVXFC7Uf9sxlhDrW18zJHXG8IRHeWuYRn1NofFxo61g0UsIoyCQgb +RCrHkvlZg1L07ZX6hbRa6UHnowKBgQDMJ0tqX1fvxdSVU3lE9qlde+j+A9J4IpBu +N/JQLZijxbwwQGAgXRcEwg4p4EXcUCJ52ujfyuYqfPO33jcWimPZktQTLeomoV1h +aVOEPTuVj0Y+6cCwkaX7SVVzIo1T7LJn/KBQuSDXCfg/2zhUIyWsZMT2n242OAB2 +B3vNDF6+GQKBgAnMcKH0P50OGQAMSnjE2l8PSRRJc/UzZBqfP7A7jp4tR95tEwr7 +e/0+2frlcM85ByTIk4Ec8Df1p8ChsAyjS1Hen4oYDmBpK1qGGR5Pu9+kxF+yf3du +mq6ogkraX+n04930+oL1hu4ZQlVVJYxs0YGmtUZfcxNNg2elecFZCc4hAoGAOYhV +W3vVB1BEEXT9tu6gWiUCSxt+o7Zx523Czs+atYSS/TIXJOe3BfM+FJUMewLmRFrp +x6+hX5XpBQcNlT+Y1gbn1yPYWdyduUb6b0jmUsaWsEIluFzDXuaSuyiglWcd++oY +r8cMNy2rFSvNWwCwrD2VuD7Dy2nKz3habjWvOXkCgYEAmQ1XlZXwMGyl4VKpGsmn +ohTJG3SmVqc/TykKNa++pc4oVS905cDOSAKnsz/azvTrBVFjTHk1nQ+DQFlTzJj9 +cl28MfT9ppfyhDzPAUnINjWRfdKP99uGC9jqNPG95bwPuqsx5RKW3G81mkbNhIUB +K21AMRQ9UftQb0bSsvZz1E0= +-----END PRIVATE KEY----- diff --git a/playwright/src/test/assets/network-tab/font.woff2 b/playwright/src/test/assets/network-tab/font.woff2 new file mode 100644 index 000000000..ceba03549 Binary files /dev/null and b/playwright/src/test/assets/network-tab/font.woff2 differ diff --git a/playwright/src/test/assets/network-tab/image.png b/playwright/src/test/assets/network-tab/image.png new file mode 100644 index 000000000..3942859cc Binary files /dev/null and b/playwright/src/test/assets/network-tab/image.png differ diff --git a/playwright/src/test/assets/network-tab/network.html b/playwright/src/test/assets/network-tab/network.html new file mode 100644 index 000000000..3bcd58dba --- /dev/null +++ b/playwright/src/test/assets/network-tab/network.html @@ -0,0 +1,52 @@ + + + + + + + + + + +

      Network Tab Test

      + + + diff --git a/playwright/src/test/assets/network-tab/script.js b/playwright/src/test/assets/network-tab/script.js new file mode 100644 index 000000000..e69de29bb diff --git a/playwright/src/test/assets/network-tab/style.css b/playwright/src/test/assets/network-tab/style.css new file mode 100644 index 000000000..e69de29bb diff --git a/playwright/src/test/assets/networkidle-frame.html b/playwright/src/test/assets/networkidle-frame.html new file mode 100644 index 000000000..3bf7ad4fe --- /dev/null +++ b/playwright/src/test/assets/networkidle-frame.html @@ -0,0 +1 @@ + diff --git a/playwright/src/test/assets/networkidle.html b/playwright/src/test/assets/networkidle.html new file mode 100644 index 000000000..ab10c9796 --- /dev/null +++ b/playwright/src/test/assets/networkidle.html @@ -0,0 +1 @@ + diff --git a/playwright/src/test/assets/networkidle.js b/playwright/src/test/assets/networkidle.js new file mode 100644 index 000000000..9d8998458 --- /dev/null +++ b/playwright/src/test/assets/networkidle.js @@ -0,0 +1,12 @@ +async function main() { + window.ws = new WebSocket('ws://localhost:' + window.location.port + '/ws'); + window.ws.addEventListener('message', message => {}); + + fetch('fetch-request-a.js'); + window.top.fetchSecond = () => { + // Do not return the promise here. + fetch('fetch-request-b.js'); + }; +} + +main(); diff --git a/playwright/src/test/assets/offscreenbuttons.html b/playwright/src/test/assets/offscreenbuttons.html new file mode 100644 index 000000000..b7f381dec --- /dev/null +++ b/playwright/src/test/assets/offscreenbuttons.html @@ -0,0 +1,55 @@ + +
      + + + + + + + + + + + +
      + diff --git a/playwright/src/test/assets/one-style.css b/playwright/src/test/assets/one-style.css new file mode 100644 index 000000000..7b26410d8 --- /dev/null +++ b/playwright/src/test/assets/one-style.css @@ -0,0 +1,3 @@ +body { + background-color: pink; +} diff --git a/playwright/src/test/assets/one-style.html b/playwright/src/test/assets/one-style.html new file mode 100644 index 000000000..b3a6eeeeb --- /dev/null +++ b/playwright/src/test/assets/one-style.html @@ -0,0 +1,3 @@ + + +
      hello, world!
      diff --git a/playwright/src/test/assets/overflow-large.html b/playwright/src/test/assets/overflow-large.html new file mode 100644 index 000000000..3d76f830d --- /dev/null +++ b/playwright/src/test/assets/overflow-large.html @@ -0,0 +1,22 @@ + + + + + diff --git a/playwright/src/test/assets/overflow.html b/playwright/src/test/assets/overflow.html new file mode 100644 index 000000000..9e22894b0 --- /dev/null +++ b/playwright/src/test/assets/overflow.html @@ -0,0 +1,22 @@ + + + + + diff --git a/playwright/src/test/assets/player.html b/playwright/src/test/assets/player.html new file mode 100644 index 000000000..866f5fe12 --- /dev/null +++ b/playwright/src/test/assets/player.html @@ -0,0 +1,60 @@ + + + + diff --git a/playwright/src/test/assets/playground.html b/playwright/src/test/assets/playground.html new file mode 100644 index 000000000..828cfb1c7 --- /dev/null +++ b/playwright/src/test/assets/playground.html @@ -0,0 +1,15 @@ + + + + Playground + + + + +
      First div
      +
      + Second div + Inner span +
      + + \ No newline at end of file diff --git a/playwright/src/test/assets/popup/popup.html b/playwright/src/test/assets/popup/popup.html new file mode 100644 index 000000000..76a33e88b --- /dev/null +++ b/playwright/src/test/assets/popup/popup.html @@ -0,0 +1,12 @@ + + + + Popup + + + + I am a popup + + diff --git a/playwright/src/test/assets/popup/window-open.html b/playwright/src/test/assets/popup/window-open.html new file mode 100644 index 000000000..d138be1d2 --- /dev/null +++ b/playwright/src/test/assets/popup/window-open.html @@ -0,0 +1,11 @@ + + + + Popup test + + + + + diff --git a/playwright/src/test/assets/pptr.png b/playwright/src/test/assets/pptr.png new file mode 100644 index 000000000..65d87c68e Binary files /dev/null and b/playwright/src/test/assets/pptr.png differ diff --git a/playwright/src/test/assets/prefetch.html b/playwright/src/test/assets/prefetch.html new file mode 100644 index 000000000..ba8f55be9 --- /dev/null +++ b/playwright/src/test/assets/prefetch.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/playwright/src/test/assets/prefetch.js b/playwright/src/test/assets/prefetch.js new file mode 100644 index 000000000..03d8677e9 --- /dev/null +++ b/playwright/src/test/assets/prefetch.js @@ -0,0 +1 @@ +// Scripts will be pre-fetched \ No newline at end of file diff --git a/playwright/src/test/assets/preload.html b/playwright/src/test/assets/preload.html new file mode 100644 index 000000000..dc10ff6d6 --- /dev/null +++ b/playwright/src/test/assets/preload.html @@ -0,0 +1,5 @@ + + +
      hello, world!
      diff --git a/playwright/src/test/assets/react.html b/playwright/src/test/assets/react.html new file mode 100644 index 000000000..0377b489d --- /dev/null +++ b/playwright/src/test/assets/react.html @@ -0,0 +1,33 @@ + + + + + +
      + + diff --git a/playwright/src/test/assets/react/material-ui@5.2.2.production.min.js b/playwright/src/test/assets/react/material-ui@5.2.2.production.min.js new file mode 100644 index 000000000..690be7afa --- /dev/null +++ b/playwright/src/test/assets/react/material-ui@5.2.2.production.min.js @@ -0,0 +1,209 @@ +/** @license MUI v5.2.2 + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).MaterialUI={},e.React,e.ReactDOM)}(this,(function(e,t,o){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}})),t.default=e,Object.freeze(t)}var a=r(t),i=n(t),l=n(o),s=r(o);var c={black:"#000",white:"#fff"};var d={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var u={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};var p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var m={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"};var f={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};var h={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var g={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var b={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"};var v={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"};var y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var x={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"};var w={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"};var S={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"};var C={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"};var k={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var R={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"};var M={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"};var T={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var $={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},P=Object.freeze({__proto__:null,common:c,red:d,pink:u,purple:p,deepPurple:m,indigo:f,blue:h,lightBlue:g,cyan:b,teal:v,green:y,lightGreen:x,lime:w,yellow:S,amber:C,orange:k,deepOrange:R,brown:M,grey:T,blueGrey:$}),I="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};I.setTimeout,I.clearTimeout;var L=I.performance||{};function E(){return(E=Object.assign||function(e){for(var t=1;t=0||(n[o]=e[o]);return n}function A(e,t){return e(t={exports:{}},t.exports),t.exports}function O(e){var t=Object.create(null);return function(o){return void 0===t[o]&&(t[o]=e(o)),t[o]}}L.now||L.mozNow||L.msNow||L.oNow||L.webkitNow,function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(A((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t2||me(ae)>3?"":" "}function ve(e,t){for(;--t&&ce()&&!(ae<48||ae>102||ae>57&&ae<65||ae>70&&ae<97););return pe(e,ue()+(t<6&&32==de()&&32==ce()))}function ye(e){for(;ce();)switch(ae){case e:return ne;case 34:case 39:return ye(34===e||39===e?e:ae);case 40:41===e&&ye(e);break;case 92:ce()}return ne}function xe(e,t){for(;ce()&&e+ae!==57&&(e+ae!==84||47!==de()););return"/*"+pe(t,ne-1)+"*"+_(47===e?e:ce())}function we(e){for(;!me(de());)ce();return pe(e,ne)}function Se(e){return he(Ce("",null,null,null,[""],e=fe(e),0,[0],e))}function Ce(e,t,o,r,n,a,i,l,s){for(var c=0,d=0,u=i,p=0,m=0,f=0,h=1,g=1,b=1,v=0,y="",x=n,w=a,S=r,C=y;g;)switch(f=v,v=ce()){case 34:case 39:case 91:case 40:C+=ge(v);break;case 9:case 10:case 13:case 32:C+=be(f);break;case 92:C+=ve(ue()-1,7);continue;case 47:switch(de()){case 42:case 47:ee(Re(xe(ce(),ue()),t,o),s);break;default:C+="/"}break;case 123*h:l[c++]=J(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+d:m>0&&J(C)-u&&ee(m>32?Me(C+";",r,o,u-1):Me(K(C," ","")+";",r,o,u-2),s);break;case 59:C+=";";default:if(ee(S=ke(C,t,o,c,d,n,l,y,x=[],w=[],u),a),123===v)if(0===d)Ce(C,t,S,S,x,a,u,l,w);else switch(p){case 100:case 109:case 115:Ce(e,S,S,r&&ee(ke(e,S,S,0,0,n,l,y,n,x=[],u),w),n,w,u,l,r?x:w);break;default:Ce(C,S,S,S,[""],w,u,l,w)}}c=d=m=0,h=b=1,y=C="",u=i;break;case 58:u=1+J(C),m=f;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==(ae=ne>0?Y(ie,--ne):0,oe--,10===ae&&(oe=1,te--),ae))continue;switch(C+=_(v),v*h){case 38:b=d>0?1:(C+="\f",-1);break;case 44:l[c++]=(J(C)-1)*b,b=1;break;case 64:45===de()&&(C+=ge(ce())),p=de(),d=J(y=C+=we(ue())),v++;break;case 45:45===f&&2==J(C)&&(h=0)}}return a}function ke(e,t,o,r,n,a,i,l,s,c,d){for(var u=n-1,p=0===n?a:[""],m=Q(p),f=0,h=0,g=0;f0?p[b]+" "+v:K(v,/&\f/g,p[b])))&&(s[g++]=y);return le(e,t,o,0===n?U:l,s,c,d)}function Re(e,t,o){return le(e,t,o,H,_(ae),Z(e,2,-2),0)}function Me(e,t,o,r){return le(e,t,o,j,Z(e,0,r),Z(e,r+1,-1),r)}function Te(e,t){switch(function(e,t){return(((t<<2^Y(e,0))<<2^Y(e,1))<<2^Y(e,2))<<2^Y(e,3)}(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+W+e+D+e+e;case 6828:case 4268:return V+e+D+e+e;case 6165:return V+e+D+"flex-"+e+e;case 5187:return V+e+K(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+"-ms-flex-$1$2")+e;case 5443:return V+e+D+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return V+e+D+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+D+K(e,"shrink","negative")+e;case 5292:return V+e+D+K(e,"basis","preferred-size")+e;case 6060:return V+"box-"+K(e,"-grow","")+V+e+D+K(e,"grow","positive")+e;case 4554:return V+K(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+"-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(J(e)-1-t>6)switch(Y(e,t+1)){case 109:if(45!==Y(e,t+4))break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+W+(108==Y(e,t+3)?"$3":"$2-$3"))+e;case 115:return~X(e,"stretch")?Te(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Y(e,t+1))break;case 6444:switch(Y(e,J(e)-3-(~X(e,"!important")&&10))){case 107:return K(e,":",":"+V)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(45===Y(e,14)?"inline-":"")+"box$3$1"+V+"$2$3$1"+"-ms-$2box$3")+e}break;case 5936:switch(Y(e,t+11)){case 114:return V+e+D+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+D+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+D+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+D+e+e}return e}function $e(e,t){for(var o="",r=Q(e),n=0;n=4;++r,n-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),o=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&o)+(59797*(o>>>16)<<16);switch(n){case 3:o^=(255&e.charCodeAt(r+2))<<16;case 2:o^=(255&e.charCodeAt(r+1))<<8;case 1:o=1540483477*(65535&(o^=255&e.charCodeAt(r)))+(59797*(o>>>16)<<16)}return(((o=1540483477*(65535&(o^=o>>>13))+(59797*(o>>>16)<<16))^o>>>15)>>>0).toString(36)}(n)+s,styles:n,next:Et}},Ot="undefined"!=typeof document,zt=t.createContext("undefined"!=typeof HTMLElement?We({key:"css"}):null),Bt=zt.Provider,Ft=function(e){return t.forwardRef((function(o,r){var n=t.useContext(zt);return e(o,n,r)}))};Ot||(Ft=function(e){return function(o){var r=t.useContext(zt);return null===r?(r=We({key:"css"}),t.createElement(zt.Provider,{value:r},e(o,r))):e(o,r)}});var Dt=t.createContext({}),Wt=Ft((function(e,o){var r=e.styles,n=At([r],void 0,t.useContext(Dt));if(!Ot){for(var a,i=n.name,l=n.styles,s=n.next;void 0!==s;)i+=" "+s.name,l+=s.styles,s=s.next;var c=!0===o.compat,d=o.insert("",{name:i,styles:l},o.sheet,c);return c?null:t.createElement("style",((a={})["data-emotion"]=o.key+"-global "+i,a.dangerouslySetInnerHTML={__html:d},a.nonce=o.sheet.nonce,a))}var u=t.useRef();return t.useLayoutEffect((function(){var e=o.key+"-global",t=new F({key:e,nonce:o.sheet.nonce,container:o.sheet.container,speedy:o.sheet.isSpeedy}),r=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return o.sheet.tags.length&&(t.before=o.sheet.tags[0]),null!==a&&(r=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),u.current=[t,r],function(){t.flush()}}),[o]),t.useLayoutEffect((function(){var e=u.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Ct(o,n.next,!0),t.tags.length){var r=t.tags[t.tags.length-1].nextElementSibling;t.before=r,t.flush()}o.insert("",n,t,!1)}}),[o,n.name]),null}));function Vt(){for(var e=arguments.length,t=new Array(e),o=0;o96?Ut:jt},_t=function(e,t,o){var r;if(t){var n=t.shouldForwardProp;r=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!=typeof r&&o&&(r=e.__emotion_forwardProp),r},qt="undefined"!=typeof document,Kt=function(){return null},Xt=function e(o,r){var n,a,i=o.__emotion_real===o,l=i&&o.__emotion_base||o;void 0!==r&&(n=r.label,a=r.target);var s=_t(o,r,i),c=s||Gt(l),d=!c("as");return function(){var u=arguments,p=i&&void 0!==o.__emotion_styles?o.__emotion_styles.slice(0):[];if(void 0!==n&&p.push("label:"+n+";"),null==u[0]||void 0===u[0].raw)p.push.apply(p,u);else{p.push(u[0][0]);for(var m=u.length,f=1;f{return t(null==(r=e)||0===Object.keys(r).length?o:e);var r}:t})}function lo(e,t){return Yt(e,t)}function so(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function co(e,t,o={clone:!0}){const r=o.clone?E({},e):e;return so(e)&&so(t)&&Object.keys(t).forEach((n=>{"__proto__"!==n&&(so(t[n])&&n in e&&so(e[n])?r[n]=co(e[n],t[n],o):r[n]=t[n])})),r}function uo(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;enull==t?e:function(...o){e.apply(this,o),t.apply(this,o)}),(()=>{}))}function fo(e,t=166){let o;function r(...r){clearTimeout(o),o=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(o)},r}function ho(e,t){return i.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function go(e){return e&&e.ownerDocument||document}function bo(e){return go(e).defaultView||window}function vo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var yo="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;let xo=0;function wo(e){const[t,o]=i.useState(e),r=e||t;return i.useEffect((()=>{null==t&&(xo+=1,o(`mui-${xo}`))}),[t]),r}function So({controlled:e,default:t,name:o,state:r="value"}){const{current:n}=i.useRef(void 0!==e),[a,l]=i.useState(t);return[n?e:a,i.useCallback((e=>{n||l(e)}),[])]}function Co(e){const t=i.useRef(e);return yo((()=>{t.current=e})),i.useCallback(((...e)=>(0,t.current)(...e)),[])}function ko(e,t){return i.useMemo((()=>null==e&&null==t?null:o=>{vo(e,o),vo(t,o)}),[e,t])}let Ro,Mo=!0,To=!1;const $o={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Po(e){e.metaKey||e.altKey||e.ctrlKey||(Mo=!0)}function Io(){Mo=!1}function Lo(){"hidden"===this.visibilityState&&To&&(Mo=!0)}function Eo(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Mo||function(e){const{type:t,tagName:o}=e;return!("INPUT"!==o||!$o[t]||e.readOnly)||"TEXTAREA"===o&&!e.readOnly||!!e.isContentEditable}(t)}function No(){const e=i.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Po,!0),t.addEventListener("mousedown",Io,!0),t.addEventListener("pointerdown",Io,!0),t.addEventListener("touchstart",Io,!0),t.addEventListener("visibilitychange",Lo,!0))}),[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Eo(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(To=!0,window.clearTimeout(Ro),Ro=window.setTimeout((()=>{To=!1}),100),t.current=!1,!0)},ref:e}}function Ao(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Oo;function zo(){if(Oo)return Oo;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Oo="reverse",e.scrollLeft>0?Oo="default":(e.scrollLeft=1,0===e.scrollLeft&&(Oo="negative")),document.body.removeChild(e),Oo}function Bo(e,t){const o=e.scrollLeft;if("rtl"!==t)return o;switch(zo()){case"negative":return e.scrollWidth-e.clientWidth+o;case"reverse":return e.scrollWidth-e.clientWidth-o;default:return o}}var Fo=e=>{const t=i.useRef({});return i.useEffect((()=>{t.current=e})),t.current};var Do={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Wo(e,t){return t?co(e,t,{clone:!1}):e}const Vo={xs:0,sm:600,md:900,lg:1200,xl:1536},Ho={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vo[e]}px)`};function Uo(e,t,o){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Ho;return t.reduce(((r,n,a)=>(r[e.up(e.keys[a])]=o(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Ho;return Object.keys(t).reduce(((r,n)=>{if(-1!==Object.keys(e.values||Vo).indexOf(n)){r[e.up(n)]=o(t[n],n)}else{const e=n;r[e]=t[e]}return r}),{})}return o(t)}function jo({values:e,breakpoints:t,base:o}){const r=o||function(e,t){if("object"!=typeof e)return{};const o={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r{null!=e[t]&&(o[t]=!0)})),o}(e,t),n=Object.keys(r);if(0===n.length)return e;let a;return n.reduce(((t,o,r)=>(Array.isArray(e)?(t[o]=null!=e[r]?e[r]:e[a],a=r):(t[o]=null!=e[o]?e[o]:e[a]||e,a=o),t)),{})}function Go(e,t){return t&&"string"==typeof t?t.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e):null}function _o(e,t,o,r=o){let n;return n="function"==typeof e?e(o):Array.isArray(e)?e[o]||r:Go(e,o)||r,t&&(n=t(n)),n}function qo(e){const{prop:t,cssProperty:o=e.prop,themeKey:r,transform:n}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=Go(e.theme,r)||{};return Uo(e,a,(e=>{let r=_o(i,n,e);return e===r&&"string"==typeof e&&(r=_o(i,n,`${t}${"default"===e?"":po(e)}`,e)),!1===o?r:{[o]:r}}))};return a.propTypes={},a.filterProps=[t],a}function Ko(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((o=>{e[o]=t})),e)),{}),o=e=>Object.keys(e).reduce(((o,r)=>t[r]?Wo(o,t[r](e)):o),{});return o.propTypes={},o.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),o}const Xo={m:"margin",p:"padding"},Yo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Zo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Jo=function(e){const t={};return o=>(void 0===t[o]&&(t[o]=e(o)),t[o])}((e=>{if(e.length>2){if(!Zo[e])return[e];e=Zo[e]}const[t,o]=e.split(""),r=Xo[t],n=Yo[o]||"";return Array.isArray(n)?n.map((e=>r+e)):[r+n]})),Qo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function er(e,t,o,r){const n=Go(e,t)||o;return"number"==typeof n?e=>"string"==typeof e?e:n*e:Array.isArray(n)?e=>"string"==typeof e?e:n[e]:"function"==typeof n?n:()=>{}}function tr(e){return er(e,"spacing",8)}function or(e,t){if("string"==typeof t||null==t)return t;const o=e(Math.abs(t));return t>=0?o:"number"==typeof o?-o:`-${o}`}function rr(e,t,o,r){if(-1===t.indexOf(o))return null;const n=function(e,t){return o=>e.reduce(((e,r)=>(e[r]=or(t,o),e)),{})}(Jo(o),r);return Uo(e,e[o],n)}function nr(e){return function(e,t){const o=tr(e.theme);return Object.keys(e).map((r=>rr(e,t,r,o))).reduce(Wo,{})}(e,Qo)}function ar(e){return"number"!=typeof e?e:`${e}px solid`}nr.propTypes={},nr.filterProps=Qo;const ir=qo({prop:"border",themeKey:"borders",transform:ar}),lr=qo({prop:"borderTop",themeKey:"borders",transform:ar}),sr=qo({prop:"borderRight",themeKey:"borders",transform:ar}),cr=qo({prop:"borderBottom",themeKey:"borders",transform:ar}),dr=qo({prop:"borderLeft",themeKey:"borders",transform:ar}),ur=qo({prop:"borderColor",themeKey:"palette"}),pr=qo({prop:"borderTopColor",themeKey:"palette"}),mr=qo({prop:"borderRightColor",themeKey:"palette"}),fr=qo({prop:"borderBottomColor",themeKey:"palette"}),hr=qo({prop:"borderLeftColor",themeKey:"palette"}),gr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=er(e.theme,"shape.borderRadius",4),o=e=>({borderRadius:or(t,e)});return Uo(e,e.borderRadius,o)}return null};gr.propTypes={},gr.filterProps=["borderRadius"];var br=Ko(ir,lr,sr,cr,dr,ur,pr,mr,fr,hr,gr);var vr=Ko(qo({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),qo({prop:"display"}),qo({prop:"overflow"}),qo({prop:"textOverflow"}),qo({prop:"visibility"}),qo({prop:"whiteSpace"}));var yr=Ko(qo({prop:"flexBasis"}),qo({prop:"flexDirection"}),qo({prop:"flexWrap"}),qo({prop:"justifyContent"}),qo({prop:"alignItems"}),qo({prop:"alignContent"}),qo({prop:"order"}),qo({prop:"flex"}),qo({prop:"flexGrow"}),qo({prop:"flexShrink"}),qo({prop:"alignSelf"}),qo({prop:"justifyItems"}),qo({prop:"justifySelf"}));const xr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=er(e.theme,"spacing",8),o=e=>({gap:or(t,e)});return Uo(e,e.gap,o)}return null};xr.propTypes={},xr.filterProps=["gap"];const wr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=er(e.theme,"spacing",8),o=e=>({columnGap:or(t,e)});return Uo(e,e.columnGap,o)}return null};wr.propTypes={},wr.filterProps=["columnGap"];const Sr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=er(e.theme,"spacing",8),o=e=>({rowGap:or(t,e)});return Uo(e,e.rowGap,o)}return null};Sr.propTypes={},Sr.filterProps=["rowGap"];var Cr=Ko(xr,wr,Sr,qo({prop:"gridColumn"}),qo({prop:"gridRow"}),qo({prop:"gridAutoFlow"}),qo({prop:"gridAutoColumns"}),qo({prop:"gridAutoRows"}),qo({prop:"gridTemplateColumns"}),qo({prop:"gridTemplateRows"}),qo({prop:"gridTemplateAreas"}),qo({prop:"gridArea"}));var kr=Ko(qo({prop:"color",themeKey:"palette"}),qo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),qo({prop:"backgroundColor",themeKey:"palette"}));var Rr=Ko(qo({prop:"position"}),qo({prop:"zIndex",themeKey:"zIndex"}),qo({prop:"top"}),qo({prop:"right"}),qo({prop:"bottom"}),qo({prop:"left"}));var Mr=qo({prop:"boxShadow",themeKey:"shadows"});function Tr(e){return e<=1&&0!==e?100*e+"%":e}const $r=qo({prop:"width",transform:Tr}),Pr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var o,r,n;return{maxWidth:(null==(o=e.theme)||null==(r=o.breakpoints)||null==(n=r.values)?void 0:n[t])||Vo[t]||Tr(t)}};return Uo(e,e.maxWidth,t)}return null};Pr.filterProps=["maxWidth"];const Ir=qo({prop:"minWidth",transform:Tr}),Lr=qo({prop:"height",transform:Tr}),Er=qo({prop:"maxHeight",transform:Tr}),Nr=qo({prop:"minHeight",transform:Tr});qo({prop:"size",cssProperty:"width",transform:Tr}),qo({prop:"size",cssProperty:"height",transform:Tr});var Ar=Ko($r,Pr,Ir,Lr,Er,Nr,qo({prop:"boxSizing"}));const Or=qo({prop:"fontFamily",themeKey:"typography"}),zr=qo({prop:"fontSize",themeKey:"typography"}),Br=qo({prop:"fontStyle",themeKey:"typography"}),Fr=qo({prop:"fontWeight",themeKey:"typography"}),Dr=qo({prop:"letterSpacing"}),Wr=qo({prop:"lineHeight"}),Vr=qo({prop:"textAlign"});var Hr=Ko(qo({prop:"typography",cssProperty:!1,themeKey:"typography"}),Or,zr,Br,Fr,Dr,Wr,Vr);const Ur={borders:br.filterProps,display:vr.filterProps,flexbox:yr.filterProps,grid:Cr.filterProps,positions:Rr.filterProps,palette:kr.filterProps,shadows:Mr.filterProps,sizing:Ar.filterProps,spacing:nr.filterProps,typography:Hr.filterProps},jr={borders:br,display:vr,flexbox:yr,grid:Cr,positions:Rr,palette:kr,shadows:Mr,sizing:Ar,spacing:nr,typography:Hr},Gr=Object.keys(Ur).reduce(((e,t)=>(Ur[t].forEach((o=>{e[o]=jr[t]})),e)),{});function _r(e,t,o){const r={[e]:t,theme:o},n=Gr[e];return n?n(r):{[e]:t}}function qr(e){const{sx:t,theme:o={}}=e||{};if(!t)return null;function r(e){let t=e;if("function"==typeof e)t=e(o);else if("object"!=typeof e)return e;const r=function(e={}){var t;return(null==e||null==(t=e.keys)?void 0:t.reduce(((t,o)=>(t[e.up(o)]={},t)),{}))||{}}(o.breakpoints),n=Object.keys(r);let a=r;return Object.keys(t).forEach((e=>{const r=(n=t[e],i=o,"function"==typeof n?n(i):n);var n,i;if(null!=r)if("object"==typeof r)if(Gr[e])a=Wo(a,_r(e,r,o));else{const t=Uo({theme:o},r,(t=>({[e]:t})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),o=new Set(t);return e.every((e=>o.size===Object.keys(e).length))}(t,r)?a=Wo(a,t):a[e]=qr({sx:r,theme:o})}else a=Wo(a,_r(e,r,o))})),function(e,t){return e.reduce(((e,t)=>{const o=e[t];return(!o||0===Object.keys(o).length)&&delete e[t],e}),t)}(n,a)}return Array.isArray(t)?t.map(r):r(t)}qr.filterProps=["sx"];const Kr=["sx"];function Xr(e){const{sx:t}=e,o=N(e,Kr),{systemProps:r,otherProps:n}=(e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((o=>{Gr[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]})),t})(o);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const o=t(...e);return so(o)?E({},r,o):r}:E({},r,t),E({},n,{sx:a})}function Yr(e){var t,o,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t(0===e.length?[1]:e).map((e=>{const o=t(e);return"number"==typeof o?`${o}px`:o})).join(" ");return o.mui=!0,o}const on=["breakpoints","palette","spacing","shape"];function rn(e={},...t){const{breakpoints:o={},palette:r={},spacing:n,shape:a={}}=e,i=N(e,on),l=Qr(o),s=tn(n);let c=co({breakpoints:l,direction:"ltr",components:{},palette:E({mode:"light"},r),spacing:s,shape:E({},en,a)},i);return c=t.reduce(((e,t)=>co(e,t)),c),c}var nn=i.createContext(null);function an(){return i.useContext(nn)}var ln="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function sn(e){const{children:t,theme:o}=e,r=an(),n=i.useMemo((()=>{const e=null===r?o:function(e,t){if("function"==typeof t)return t(e);return E({},e,t)}(r,o);return null!=e&&(e[ln]=null!==r),e}),[o,r]);return ro(nn.Provider,{value:n,children:t})}function cn(e=null){const t=an();return t&&(o=t,0!==Object.keys(o).length)?t:e;var o}const dn=rn();function un(e=dn){return cn(e)}const pn=["className","component"];const mn=["variant"];function fn(e){return 0===e.length}function hn(e){const{variant:t}=e,o=N(e,mn);let r=t||"";return Object.keys(o).sort().forEach((t=>{r+="color"===t?fn(r)?e[t]:po(e[t]):`${fn(r)?t:po(t)}${po(e[t].toString())}`})),r}const gn=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],bn=["theme"],vn=["theme"];function yn(e){return 0===Object.keys(e).length}function xn(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const wn=rn();function Sn(e){const{theme:t,name:o,props:r}=e;if(!(t&&t.components&&t.components[o]&&t.components[o].defaultProps))return r;const n=E({},r),a=t.components[o].defaultProps;let i;for(i in a)void 0===n[i]&&(n[i]=a[i]);return n}function Cn({props:e,name:t,defaultTheme:o}){return Sn({theme:un(o),name:t,props:e})}function kn(e,t=0,o=1){return Math.min(Math.max(t,e),o)}function Rn(e){e=e.substr(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let o=e.match(t);return o&&1===o[0].length&&(o=o.map((e=>e+e))),o?`rgb${4===o.length?"a":""}(${o.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Mn(e){if(e.type)return e;if("#"===e.charAt(0))return Mn(Rn(e));const t=e.indexOf("("),o=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(o))throw new Error(uo(9,e));let r,n=e.substring(t+1,e.length-1);if("color"===o){if(n=n.split(" "),r=n.shift(),4===n.length&&"/"===n[3].charAt(0)&&(n[3]=n[3].substr(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(uo(10,r))}else n=n.split(",");return n=n.map((e=>parseFloat(e))),{type:o,values:n,colorSpace:r}}function Tn(e){const{type:t,colorSpace:o}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${o} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function $n(e){e=Mn(e);const{values:t}=e,o=t[0],r=t[1]/100,n=t[2]/100,a=r*Math.min(n,1-n),i=(e,t=(e+o/30)%12)=>n-a*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Tn({type:l,values:s})}function Pn(e){let t="hsl"===(e=Mn(e)).type?Mn($n(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function In(e,t){const o=Pn(e),r=Pn(t);return(Math.max(o,r)+.05)/(Math.min(o,r)+.05)}function Ln(e,t){return e=Mn(e),t=kn(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Tn(e)}function En(e,t){if(e=Mn(e),t=kn(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let o=0;o<3;o+=1)e.values[o]*=1-t;return Tn(e)}function Nn(e,t){if(e=Mn(e),t=kn(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let o=0;o<3;o+=1)e.values[o]+=(255-e.values[o])*t;else if(-1!==e.type.indexOf("color"))for(let o=0;o<3;o+=1)e.values[o]+=(1-e.values[o])*t;return Tn(e)}function An(e,t=.15){return Pn(e)>.5?En(e,t):Nn(e,t)}function On(e){const t=un();return ro(Dt.Provider,{value:"object"==typeof t?t:{},children:e.children})}const zn=["defaultProps","mixins","overrides","palette","props","styleOverrides"],Bn=["type","mode"];function Fn(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Dn(e={}){const{ignoreAccents:t=!0,ignoreCase:o=!0,limit:r,matchFrom:n="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let c=i?l.trim():l;o&&(c=c.toLowerCase()),t&&(c=Fn(c));const d=e.filter((e=>{let r=(a||s)(e);return o&&(r=r.toLowerCase()),t&&(r=Fn(r)),"start"===n?0===r.indexOf(c):r.indexOf(c)>-1}));return"number"==typeof r?d.slice(0,r):d}}function Wn(e,t){for(let o=0;o{var t;return null!=(t=e.label)?t:e}),isOptionEqualToValue:x=((e,t)=>e===t),groupBy:w,handleHomeEndKeys:S=!e.freeSolo,id:C,includeInputInList:k=!1,inputValue:R,multiple:M=!1,onChange:T,onClose:$,onHighlightChange:P,onInputChange:I,onOpen:L,open:N,openOnFocus:A=!1,options:O,selectOnFocus:z=!e.freeSolo,value:B}=e,F=wo(C);let D=y;D=e=>{const t=y(e);return"string"!=typeof t?String(t):t};const W=i.useRef(!1),V=i.useRef(!0),H=i.useRef(null),U=i.useRef(null),[j,G]=i.useState(null),[_,q]=i.useState(-1),K=o?0:-1,X=i.useRef(K),[Y,Z]=So({controlled:B,default:d,name:c}),[J,Q]=So({controlled:R,default:"",name:c,state:"inputValue"}),[ee,te]=i.useState(!1),oe=i.useCallback(((e,t)=>{if(!(M?Y.length{const e=Y!==re.current;re.current=Y,ee&&!e||b&&!e||oe(null,Y)}),[Y,oe,ee,re,b]);const[ne,ae]=So({controlled:N,default:!1,name:c,state:"open"}),[ie,le]=i.useState(!0),se=!M&&null!=Y&&J===D(Y),ce=ne,de=ce?h(O.filter((e=>!g||!(M?Y:[Y]).some((t=>null!==t&&x(e,t))))),{inputValue:se&&ie?"":J,getOptionLabel:D}):[],ue=ne&&de.length>0,pe=Co((e=>{-1===e?H.current.focus():j.querySelector(`[data-tag-index="${e}"]`).focus()}));i.useEffect((()=>{M&&_>Y.length-1&&(q(-1),pe(-1))}),[Y,M,_,pe]);const me=Co((({event:e,index:t,reason:o="auto"})=>{if(X.current=t,-1===t?H.current.removeAttribute("aria-activedescendant"):H.current.setAttribute("aria-activedescendant",`${F}-option-${t}`),P&&P(e,-1===t?null:de[t],o),!U.current)return;const r=U.current.querySelector('[role="option"].Mui-focused');r&&(r.classList.remove("Mui-focused"),r.classList.remove("Mui-focusVisible"));const n=U.current.parentElement.querySelector('[role="listbox"]');if(!n)return;if(-1===t)return void(n.scrollTop=0);const a=U.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add("Mui-focused"),"keyboard"===o&&a.classList.add("Mui-focusVisible"),n.scrollHeight>n.clientHeight&&"mouse"!==o)){const e=a,t=n.clientHeight+n.scrollTop,o=e.offsetTop+e.offsetHeight;o>t?n.scrollTop=o-n.clientHeight:e.offsetTop-e.offsetHeight*(w?1.3:0){if(!ce)return;const a=function(e,t){if(!U.current||-1===e)return-1;let o=e;for(;;){if("next"===t&&o===de.length||"previous"===t&&-1===o)return-1;const e=U.current.querySelector(`[data-option-index="${o}"]`),r=!m&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||r))return o;o+="next"===t?1:-1}}((()=>{const e=de.length-1;if("reset"===o)return K;if("start"===o)return 0;if("end"===o)return e;const t=X.current+o;return t<0?-1===t&&k?-1:f&&-1!==X.current||Math.abs(o)>1?0:e:t>e?t===e+1&&k?-1:f||Math.abs(o)>1?e:0:t})(),r);if(me({index:a,reason:n,event:e}),t&&"reset"!==o)if(-1===a)H.current.value=J;else{const e=D(de[a]);H.current.value=e;0===e.toLowerCase().indexOf(J.toLowerCase())&&J.length>0&&H.current.setSelectionRange(J.length,e.length)}})),he=i.useCallback((()=>{if(!ce)return;const e=M?Y[0]:Y;if(0!==de.length&&null!=e){if(U.current)if(null==e)X.current>=de.length-1?me({index:de.length-1}):me({index:X.current});else{const t=de[X.current];if(M&&t&&-1!==Wn(Y,(e=>x(t,e))))return;const o=Wn(de,(t=>x(t,e)));-1===o?fe({diff:"reset"}):me({index:o})}}else fe({diff:"reset"})}),[de.length,!M&&Y,g,fe,me,ce,J,M]),ge=Co((e=>{vo(U,e),e&&he()}));i.useEffect((()=>{he()}),[he]);const be=e=>{ne||(ae(!0),le(!0),L&&L(e))},ve=(e,t)=>{ne&&(ae(!1),$&&$(e,t))},ye=(e,t,o,r)=>{Y!==t&&(T&&T(e,t,o,r),Z(t))},xe=i.useRef(!1),we=(e,t,o="selectOption",r="options")=>{let a=o,i=t;if(M){i=Array.isArray(Y)?Y.slice():[];const e=Wn(i,(e=>x(t,e)));-1===e?i.push(t):"freeSolo"!==r&&(i.splice(e,1),a="removeOption")}oe(e,i),ye(e,i,a,{option:t}),p||e.ctrlKey||e.metaKey||ve(e,a),(!0===n||"touch"===n&&xe.current||"mouse"===n&&!xe.current)&&H.current.blur()};const Se=(e,t)=>{if(!M)return;ve(e,"toggleInput");let o=_;-1===_?""===J&&"previous"===t&&(o=Y.length-1):(o+="next"===t?1:-1,o<0&&(o=0),o===Y.length&&(o=-1)),o=function(e,t){if(-1===e)return-1;let o=e;for(;;){if("next"===t&&o===Y.length||"previous"===t&&-1===o)return-1;const e=j.querySelector(`[data-tag-index="${o}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return o;o+="next"===t?1:-1}}(o,t),q(o),pe(o)},Ce=e=>{W.current=!0,Q(""),I&&I(e,"","clear"),ye(e,M?[]:null,"clear")},ke=e=>o=>{if(e.onKeyDown&&e.onKeyDown(o),!o.defaultMuiPrevented&&(-1!==_&&-1===["ArrowLeft","ArrowRight"].indexOf(o.key)&&(q(-1),pe(-1)),229!==o.which))switch(o.key){case"Home":ce&&S&&(o.preventDefault(),fe({diff:"start",direction:"next",reason:"keyboard",event:o}));break;case"End":ce&&S&&(o.preventDefault(),fe({diff:"end",direction:"previous",reason:"keyboard",event:o}));break;case"PageUp":o.preventDefault(),fe({diff:-5,direction:"previous",reason:"keyboard",event:o}),be(o);break;case"PageDown":o.preventDefault(),fe({diff:5,direction:"next",reason:"keyboard",event:o}),be(o);break;case"ArrowDown":o.preventDefault(),fe({diff:1,direction:"next",reason:"keyboard",event:o}),be(o);break;case"ArrowUp":o.preventDefault(),fe({diff:-1,direction:"previous",reason:"keyboard",event:o}),be(o);break;case"ArrowLeft":Se(o,"previous");break;case"ArrowRight":Se(o,"next");break;case"Enter":if(-1!==X.current&&ce){const e=de[X.current],r=!!v&&v(e);if(o.preventDefault(),r)return;we(o,e,"selectOption"),t&&H.current.setSelectionRange(H.current.value.length,H.current.value.length)}else b&&""!==J&&!1===se&&(M&&o.preventDefault(),we(o,J,"createOption","freeSolo"));break;case"Escape":ce?(o.preventDefault(),o.stopPropagation(),ve(o,"escape")):s&&(""!==J||M&&Y.length>0)&&(o.preventDefault(),o.stopPropagation(),Ce(o));break;case"Backspace":if(M&&""===J&&Y.length>0){const e=-1===_?Y.length-1:_,t=Y.slice();t.splice(e,1),ye(o,t,"removeOption",{option:Y[e]})}}},Re=e=>{te(!0),A&&!W.current&&be(e)},Me=e=>{null!==U.current&&U.current.parentElement.contains(document.activeElement)?H.current.focus():(te(!1),V.current=!0,W.current=!1,r&&-1!==X.current&&ce?we(e,de[X.current],"blur"):r&&b&&""!==J?we(e,J,"blur","freeSolo"):l&&oe(e,Y),ve(e,"blur"))},Te=e=>{const t=e.target.value;J!==t&&(Q(t),le(!1),I&&I(e,t,"input")),""===t?u||M||ye(e,null,"clear"):be(e)},$e=e=>{me({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Pe=()=>{xe.current=!0},Ie=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));we(e,de[t],"selectOption"),xe.current=!1},Le=e=>t=>{const o=Y.slice();o.splice(e,1),ye(t,o,"removeOption",{option:Y[e]})},Ee=e=>{ne?ve(e,"toggleInput"):be(e)},Ne=e=>{e.target.getAttribute("id")!==F&&e.preventDefault()},Ae=()=>{H.current.focus(),z&&V.current&&H.current.selectionEnd-H.current.selectionStart==0&&H.current.select(),V.current=!1},Oe=e=>{""!==J&&ne||Ee(e)};let ze=b&&J.length>0;ze=ze||(M?Y.length>0:null!==Y);let Be=de;return w&&(Be=de.reduce(((e,t,o)=>{const r=w(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:o,index:o,group:r,options:[t]}),e}),[])),a&&ee&&Me(),{getRootProps:(e={})=>E({"aria-owns":ue?`${F}-listbox`:null,role:"combobox","aria-expanded":ue},e,{onKeyDown:ke(e),onMouseDown:Ne,onClick:Ae}),getInputLabelProps:()=>({id:`${F}-label`,htmlFor:F}),getInputProps:()=>({id:F,value:J,onBlur:Me,onFocus:Re,onChange:Te,onMouseDown:Oe,"aria-activedescendant":ce?"":null,"aria-autocomplete":t?"both":"list","aria-controls":ue?`${F}-listbox`:null,autoComplete:"off",ref:H,autoCapitalize:"none",spellCheck:"false"}),getClearProps:()=>({tabIndex:-1,onClick:Ce}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:Ee}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,onDelete:Le(e)}),getListboxProps:()=>({role:"listbox",id:`${F}-listbox`,"aria-labelledby":`${F}-label`,ref:ge,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const o=(M?Y:[Y]).some((e=>null!=e&&x(t,e))),r=!!v&&v(t);return{key:D(t),tabIndex:-1,role:"option",id:`${F}-option-${e}`,onMouseOver:$e,onClick:Ie,onTouchStart:Pe,"data-option-index":e,"aria-disabled":r,"aria-selected":o}},id:F,inputValue:J,value:Y,dirty:ze,popupOpen:ce,focused:ee||-1!==_,anchorEl:j,setAnchorEl:G,focusedTag:_,groupedOptions:Be}}function Un(e,t,o){const r={};return Object.keys(e).forEach((n=>{r[n]=e[n].reduce(((e,r)=>(r&&(o&&o[r]&&e.push(o[r]),e.push(t(r))),e)),[]).join(" ")})),r}function jn(e){return"string"==typeof e}const Gn=e=>e;var _n=(()=>{let e=Gn;return{configure(t){e=t},generate:t=>e(t),reset(){e=Gn}}})();const qn={active:"Mui-active",checked:"Mui-checked",completed:"Mui-completed",disabled:"Mui-disabled",error:"Mui-error",expanded:"Mui-expanded",focused:"Mui-focused",focusVisible:"Mui-focusVisible",required:"Mui-required",selected:"Mui-selected"};function Kn(e,t){return qn[t]||`${_n.generate(e)}-${t}`}function Xn(e,t){const o={};return t.forEach((t=>{o[t]=Kn(e,t)})),o}function Yn(e){return Kn("MuiBackdrop",e)}var Zn=Xn("MuiBackdrop",["root","invisible"]);const Jn=["classes","className","invisible","component","components","componentsProps","theme"];var Qn=i.forwardRef((function(e,t){const{classes:o,className:r,invisible:n=!1,component:a="div",components:i={},componentsProps:l={},theme:s}=e,c=N(e,Jn),d=E({},e,{classes:o,invisible:n}),u=(e=>{const{classes:t,invisible:o}=e;return Un({root:["root",o&&"invisible"]},Yn,t)})(d),p=i.Root||a,m=l.root||{};return ro(p,E({"aria-hidden":!0},m,!jn(p)&&{as:a,ownerState:E({},d,m.ownerState),theme:s},{ref:t},c,{className:Zr(u.root,m.className,r)}))}));function ea(e){return Kn("MuiBadge",e)}var ta=Xn("MuiBadge",["root","badge","dot","standard","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular","invisible"]);const oa=["anchorOrigin","classes","badgeContent","component","children","className","components","componentsProps","invisible","max","overlap","showZero","variant","theme"];var ra=i.forwardRef((function(e,t){const{anchorOrigin:o={vertical:"top",horizontal:"right"},classes:r,badgeContent:n,component:a="span",children:i,className:l,components:s={},componentsProps:c={},invisible:d,max:u=99,overlap:p="rectangular",showZero:m=!1,variant:f="standard",theme:h}=e,g=N(e,oa),b=Fo({anchorOrigin:o,badgeContent:n,max:u,overlap:p,variant:f});let v=d;null==d&&(0===n&&!m||null==n&&"dot"!==f)&&(v=!0);const{anchorOrigin:y=o,badgeContent:x,max:w=u,overlap:S=p,variant:C=f}=v?b:e,k=E({},e,{anchorOrigin:y,badgeContent:x,classes:r,invisible:v,max:w,overlap:S,variant:C});let R="";"dot"!==C&&(R=x>w?`${w}+`:x);const M=(e=>{const{variant:t,anchorOrigin:o,overlap:r,invisible:n,classes:a}=e;return Un({root:["root"],badge:["badge",t,`anchorOrigin${po(o.vertical)}${po(o.horizontal)}${po(r)}`,n&&"invisible"]},ea,a)})(k),T=s.Root||a,$=c.root||{},P=s.Badge||"span",I=c.badge||{};return no(T,E({},$,!jn(T)&&{as:a,ownerState:E({},k,$.ownerState),theme:h},{ref:t},g,{className:Zr(M.root,$.className,l),children:[i,ro(P,E({},I,!jn(P)&&{ownerState:E({},k,I.ownerState),theme:h},{className:Zr(M.badge,I.className),children:R}))]}))}));function na(e){return Kn("ButtonUnstyled",e)}var aa=Xn("ButtonUnstyled",["root","active","disabled","focusVisible"]);function ia(e,t=[]){if(void 0===e)return{};const o={};return Object.keys(e).filter((o=>o.match(/^on[A-Z]/)&&"function"==typeof e[o]&&!t.includes(o))).forEach((t=>{o[t]=e[t]})),o}function la(e){var t;const{component:o,components:r={},disabled:n=!1,href:a,ref:l,tabIndex:s=0,to:c,type:d}=e,u=i.useRef(),[p,m]=i.useState(!1),{isFocusVisibleRef:f,onFocus:h,onBlur:g,ref:b}=No(),[v,y]=i.useState(!1);n&&v&&y(!1),i.useEffect((()=>{f.current=v}),[v,f]);const x=e=>t=>{var o;v&&t.preventDefault(),null==(o=e.onMouseLeave)||o.call(e,t)},w=e=>t=>{var o;g(t),!1===f.current&&y(!1),null==(o=e.onBlur)||o.call(e,t)},S=e=>t=>{var o,r;(u.current||(u.current=t.currentTarget),h(t),!0===f.current)&&(y(!0),null==(r=e.onFocusVisible)||r.call(e,t));null==(o=e.onFocus)||o.call(e,t)},C=null!=(t=null!=o?o:r.Root)?t:"button",k=()=>{const e=u.current;return"button"!==C&&!("A"===(null==e?void 0:e.tagName)&&null!=e&&e.href)},R=e=>t=>{var o;t.target!==t.currentTarget||n||m(!0),null==(o=e.onMouseDown)||o.call(e,t)},M=e=>t=>{var o;t.target===t.currentTarget&&m(!1),null==(o=e.onMouseUp)||o.call(e,t)},T=e=>t=>{var o,r;(t.target===t.currentTarget&&k()&&" "===t.key&&t.preventDefault(),t.target!==t.currentTarget||" "!==t.key||n||m(!0),null==(o=e.onKeyDown)||o.call(e,t),t.target===t.currentTarget&&k()&&"Enter"===t.key&&!n)&&(t.preventDefault(),null==(r=e.onClick)||r.call(e,t))},$=e=>t=>{var o,r;(t.target===t.currentTarget&&m(!1),null==(o=e.onKeyUp)||o.call(e,t),t.target===t.currentTarget&&k()&&" "===t.key&&!t.defaultPrevented)&&(null==(r=e.onClick)||r.call(e,t))},P=ko(b,u),I=ko(l,P),[L,N]=i.useState(""),A=e=>{var t;N(null!=(t=null==e?void 0:e.tagName)?t:""),vo(I,e)},O={};"BUTTON"===L?(O.type=null!=d?d:"button",O.disabled=n):""!==L&&(a||c||(O.role="button"),n&&(O["aria-disabled"]=n));return{getRootProps:t=>{const o=E({},ia(e),t),r=E({},o,{onBlur:w(o),onFocus:S(o),onKeyDown:T(o),onKeyUp:$(o),onMouseDown:R(o),onMouseLeave:x(o),onMouseUp:M(o)});return delete r.onFocusVisible,E({tabIndex:n?-1:s,type:d,ref:A},O,r)},focusVisible:v,setFocusVisible:y,disabled:n,active:p}}function sa(e,t,o){return jn(e)?t:E({},t,{ownerState:E({},t.ownerState,o)})}const ca=["className","component","components","componentsProps","children","disabled","action","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseLeave"];var da=i.forwardRef((function(e,t){var o;const{className:r,component:n,components:a={},componentsProps:l={},children:s,action:c}=e,d=N(e,ca),u=i.useRef(),p=ko(u,t),{active:m,focusVisible:f,setFocusVisible:h,getRootProps:g}=la(E({},e,{ref:p}));i.useImperativeHandle(c,(()=>({focusVisible:()=>{h(!0),u.current.focus()}})),[h]);const b=E({},e,{active:m,focusVisible:f}),v=null!=(o=null!=n?n:a.Root)?o:"button",y=sa(v,E({},d,l.root),b),x=(e=>{const{active:t,disabled:o,focusVisible:r}=e;return Un({root:["root",o&&"disabled",r&&"focusVisible",t&&"active"]},na,{})})(b);return ro(v,E({},g(),y,{className:Zr(x.root,r,y.className),children:s}))}));var ua=i.createContext(void 0);var pa=Xn("MuiFormControl",["root","disabled"]);const ma=["defaultValue","children","className","component","components","componentsProps","disabled","error","focused","onChange","required","value"];var fa=i.forwardRef((function(e,t){var o;const{defaultValue:r,children:n,className:a,component:l,components:s={},componentsProps:c={},disabled:d=!1,error:u=!1,focused:p,onChange:m,required:f=!1,value:h}=e,g=N(e,ma),[b,v]=So({controlled:h,default:r,name:"FormControl",state:"value"}),y=function(e){return null!=e&&!(Array.isArray(e)&&0===e.length)&&""!==e}(b),[x,w]=i.useState(!1);d&&x&&w(!1);const S=void 0===p||d?x:p,C=E({},e,{disabled:d,error:u,filled:y,focused:S,required:f});const k={disabled:d,error:u,filled:y,focused:S,onBlur:()=>{w(!1)},onChange:e=>{v(e.target.value),null==m||m(e)},onFocus:()=>{w(!0)},registerEffect:()=>{},required:f,value:null!=b?b:""},R=null!=(o=null!=l?l:s.Root)?o:"div",M=sa(R,E({},g,c.root),C);return ro(ua.Provider,{value:k,children:ro(R,E({ref:t},M,{className:Zr(pa.root,a,null==M?void 0:M.className,d&&pa.disabled),children:n}))})}));function ha(){return i.useContext(ua)}var ga=Xn("MuiInput",["root","formControl","focused","disabled","error","multiline","input","inputMultiline","inputTypeSearch","adornedStart","adornedEnd"]);function ba(e,t){const{defaultValue:o,disabled:r=!1,error:n=!1,onBlur:a,onChange:l,onFocus:s,required:c=!1,value:d}=e,u=ha();let p,m,f,h;var g,b,v;u?(p=u.value,f=null!=(g=u.disabled)&&g,m=null!=(b=u.required)&&b,h=null!=(v=u.error)&&v):(p=d,f=r,m=c,h=n);const{current:y}=i.useRef(null!=p),x=i.useCallback((e=>{}),[]),w=i.useRef(null),S=ko(t,x),C=ko(w,S),[k,R]=i.useState(!1);i.useEffect((()=>{!u&&f&&k&&(R(!1),null==a||a())}),[u,f,k,a]);const M=e=>t=>{var o,r;null!=u&&u.disabled?t.stopPropagation():(null==(o=e.onFocus)||o.call(e,t),u&&u.onFocus?null==u||null==(r=u.onFocus)||r.call(u):R(!0))},T=e=>(t,...o)=>{var r,n;if(!y){if(null==(t.target||w.current))throw new Error(uo(17))}null==u||null==(r=u.onChange)||r.call(u,t),null==(n=e.onChange)||n.call(e,t,...o)};return{disabled:f,error:h,focused:k,formControlContext:u,getInputProps:e=>{const t=E({},{onBlur:a,onChange:l,onFocus:s},ia(e)),r=E({},e,t,{onBlur:(n=t,e=>{var t;null==(t=n.onBlur)||t.call(n,e),u&&u.onBlur?u.onBlur():R(!1)}),onChange:T(t),onFocus:M(t)});var n;return E({},r,{"aria-invalid":h||void 0,defaultValue:o,ref:C,value:p,required:m,disabled:f})},getRootProps:t=>{const o=E({},ia(e,["onBlur","onChange","onFocus"]),ia(t));return E({},t,o,{onClick:(r=o,e=>{var t;w.current&&e.currentTarget===e.target&&w.current.focus(),null==(t=r.onClick)||t.call(r,e)})});var r},required:m,value:p}}const va=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoFocus","className","component","components","componentsProps","defaultValue","disabled","endAdornment","error","id","maxRows","minRows","multiline","name","onClick","onChange","onKeyDown","onKeyUp","onFocus","onBlur","placeholder","readOnly","required","rows","type","startAdornment","value"];var ya=i.forwardRef((function(e,t){var o,r,n,a,i;const{"aria-describedby":l,"aria-label":s,"aria-labelledby":c,autoComplete:d,autoFocus:u,className:p,component:m,components:f={},componentsProps:h={},defaultValue:g,disabled:b,endAdornment:v,error:y,id:x,maxRows:w,minRows:S,multiline:C=!1,name:k,onClick:R,onChange:M,onKeyDown:T,onKeyUp:$,onFocus:P,onBlur:I,placeholder:L,readOnly:A,required:O,rows:z,type:B="text",startAdornment:F,value:D}=e,W=N(e,va),{getRootProps:V,getInputProps:H,focused:U,formControlContext:j,error:G,disabled:_}=ba({disabled:b,defaultValue:g,error:y,onBlur:I,onClick:R,onChange:M,onFocus:P,required:O,value:D},null==(o=h.input)?void 0:o.ref),q=E({},e,{disabled:_,error:G,focused:U,formControlContext:j,multiline:C,type:B}),K=Zr(_&&ga.disabled,G&&ga.error,U&&ga.focused,Boolean(j)&&ga.formControl,C&&ga.multiline,Boolean(F)&&ga.adornedStart,Boolean(v)&&ga.adornedEnd),X=Zr(_&&ga.disabled,C&&ga.multiline),Y={"aria-describedby":l,"aria-label":s,"aria-labelledby":c,autoComplete:d,autoFocus:u,id:x,onKeyDown:T,onKeyUp:$,name:k,placeholder:L,readOnly:A,type:B},Z=null!=(r=null!=m?m:f.Root)?r:"div",J=sa(Z,E({},V(E({},W,h.root)),{className:Zr(ga.root,K,p,null==(n=h.root)?void 0:n.className)}),q);let Q=null!=(a=f.Input)?a:"input",ee=sa(Q,E({},H(E({},h.input,Y)),{className:Zr(ga.input,X,null==(i=h.input)?void 0:i.className)}),q);if(C){var te,oe;const e=jn(null!=(te=f.Textarea)?te:"textarea");ee=E(z?{type:void 0,minRows:e?void 0:z,maxRows:e?void 0:z}:{type:void 0,maxRows:e?void 0:w,minRows:e?void 0:S},ee),Q=null!=(oe=f.Textarea)?oe:"textarea"}return no(Z,E({},J,{ref:t,children:[F,ro(Q,E({},ee)),v]}))}));var xa=i.forwardRef((function(e,t){const{children:o,container:r,disablePortal:n=!1}=e,[a,s]=i.useState(null),c=ko(i.isValidElement(o)?o.ref:null,t);return yo((()=>{n||s(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,n]),yo((()=>{if(a&&!n)return vo(t,a),()=>{vo(t,null)}}),[t,a,n]),n?i.isValidElement(o)?i.cloneElement(o,{ref:c}):o:a?l.createPortal(o,a):a}));function wa(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Sa(e){return parseInt(bo(e).getComputedStyle(e).paddingRight,10)||0}function Ca(e,t,o,r=[],n){const a=[t,o,...r],i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(e=>{-1===a.indexOf(e)&&-1===i.indexOf(e.tagName)&&wa(e,n)}))}function ka(e,t){let o=-1;return e.some(((e,r)=>!!t(e)&&(o=r,!0))),o}function Ra(e,t){const o=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=go(e);return t.body===e?bo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ao(go(r));o.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Sa(r)+e}px`;const t=go(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{o.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Sa(t)+e}px`}))}const e=r.parentElement,t=bo(r),n="HTML"===(null==e?void 0:e.nodeName)&&"scroll"===t.getComputedStyle(e).overflowY?e:r;o.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden"}return()=>{o.forEach((({value:e,el:t,property:o})=>{e?t.style.setProperty(o,e):t.style.removeProperty(o)}))}}class Ma{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let o=this.modals.indexOf(e);if(-1!==o)return o;o=this.modals.length,this.modals.push(e),e.modalRef&&wa(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ca(t,e.mount,e.modalRef,r,!0);const n=ka(this.containers,(e=>e.container===t));return-1!==n?(this.containers[n].modals.push(e),o):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),o)}mount(e,t){const o=ka(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[o];r.restore||(r.restore=Ra(r,t))}remove(e){const t=this.modals.indexOf(e);if(-1===t)return t;const o=ka(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[o];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&wa(e.modalRef,!0),Ca(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(o,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&wa(e.modalRef,!1)}return t}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const Ta=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $a(e){const t=[],o=[];return Array.from(e.querySelectorAll(Ta)).forEach(((e,r)=>{const n=function(e){const t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==n&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let o=t(`[name="${e.name}"]:checked`);return o||(o=t(`[name="${e.name}"]`)),o!==e}(e))}(e)&&(0===n?t.push(e):o.push({documentOrder:r,tabIndex:n,node:e}))})),o.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Pa(){return!0}function Ia(e){const{children:t,disableAutoFocus:o=!1,disableEnforceFocus:r=!1,disableRestoreFocus:n=!1,getTabbable:a=$a,isEnabled:l=Pa,open:s}=e,c=i.useRef(),d=i.useRef(null),u=i.useRef(null),p=i.useRef(null),m=i.useRef(null),f=i.useRef(!1),h=i.useRef(null),g=ko(t.ref,h),b=i.useRef(null);i.useEffect((()=>{s&&h.current&&(f.current=!o)}),[o,s]),i.useEffect((()=>{if(!s||!h.current)return;const e=go(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex",-1),f.current&&h.current.focus()),()=>{n||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}}),[s]),i.useEffect((()=>{if(!s||!h.current)return;const e=go(h.current),t=t=>{const{current:o}=h;if(null!==o)if(e.hasFocus()&&!r&&l()&&!c.current){if(!o.contains(e.activeElement)){if(t&&m.current!==t.target||e.activeElement!==m.current)m.current=null;else if(null!==m.current)return;if(!f.current)return;let r=[];if(e.activeElement!==d.current&&e.activeElement!==u.current||(r=a(h.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];e?o.focus():t.focus()}else o.focus()}}else c.current=!1},o=t=>{b.current=t,!r&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(c.current=!0,u.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",o,!0);const n=setInterval((()=>{"BODY"===e.activeElement.tagName&&t()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",t),e.removeEventListener("keydown",o,!0)}}),[o,r,n,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0};return no(i.Fragment,{children:[ro("div",{tabIndex:0,onFocus:v,ref:d,"data-test":"sentinelStart"}),i.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0,m.current=e.target;const o=t.props.onFocus;o&&o(e)}}),ro("div",{tabIndex:0,onFocus:v,ref:u,"data-test":"sentinelEnd"})]})}function La(e){return Kn("MuiModal",e)}var Ea=Xn("MuiModal",["root","hidden"]);const Na=["BackdropComponent","BackdropProps","children","classes","className","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","theme","onTransitionEnter","onTransitionExited"];const Aa=new Ma;var Oa=i.forwardRef((function(e,t){const{BackdropComponent:o,BackdropProps:r,children:n,classes:a,className:l,closeAfterTransition:s=!1,component:c="div",components:d={},componentsProps:u={},container:p,disableAutoFocus:m=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:b=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:x=!1,manager:w=Aa,onBackdropClick:S,onClose:C,onKeyDown:k,open:R,theme:M,onTransitionEnter:T,onTransitionExited:$}=e,P=N(e,Na),[I,L]=i.useState(!0),A=i.useRef({}),O=i.useRef(null),z=i.useRef(null),B=ko(z,t),F=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),D=()=>(A.current.modalRef=z.current,A.current.mountNode=O.current,A.current),W=()=>{w.mount(D(),{disableScrollLock:v}),z.current.scrollTop=0},V=Co((()=>{const e=function(e){return"function"==typeof e?e():e}(p)||go(O.current).body;w.add(D(),e),z.current&&W()})),H=i.useCallback((()=>w.isTopModal(D())),[w]),U=Co((e=>{O.current=e,e&&(R&&H()?W():wa(z.current,!0))})),j=i.useCallback((()=>{w.remove(D())}),[w]);i.useEffect((()=>()=>{j()}),[j]),i.useEffect((()=>{R?V():F&&s||j()}),[R,j,F,s,V]);const G=E({},e,{classes:a,closeAfterTransition:s,disableAutoFocus:m,disableEnforceFocus:f,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:b,disableScrollLock:v,exited:I,hideBackdrop:y,keepMounted:x}),_=(e=>{const{open:t,exited:o,classes:r}=e;return Un({root:["root",!t&&o&&"hidden"]},La,r)})(G);if(!x&&!R&&(!F||I))return null;const q=()=>{L(!1),T&&T()},K=()=>{L(!0),$&&$(),s&&j()},X={};void 0===n.props.tabIndex&&(X.tabIndex="-1"),F&&(X.onEnter=mo(q,n.props.onEnter),X.onExited=mo(K,n.props.onExited));const Y=d.Root||c,Z=u.root||{};return ro(xa,{ref:U,container:p,disablePortal:g,children:no(Y,E({role:"presentation"},Z,!jn(Y)&&{as:c,ownerState:E({},G,Z.ownerState),theme:M},P,{ref:B,onKeyDown:e=>{k&&k(e),"Escape"===e.key&&H()&&(h||(e.stopPropagation(),C&&C(e,"escapeKeyDown")))},className:Zr(_.root,Z.className,l),children:[!y&&o?ro(o,E({open:R,onClick:e=>{e.target===e.currentTarget&&(S&&S(e),C&&C(e,"backdropClick"))}},r)):null,ro(Ia,{disableEnforceFocus:f,disableAutoFocus:m,disableRestoreFocus:b,isEnabled:H,open:R,children:i.cloneElement(n,X)})]}))})}));function za(e){const{children:t,defer:o=!1,fallback:r=null}=e,[n,a]=i.useState(!1);return yo((()=>{o||a(!0)}),[o]),i.useEffect((()=>{o&&a(!0)}),[o]),ro(i.Fragment,{children:n?t:r})}var Ba="top",Fa="bottom",Da="right",Wa="left",Va="auto",Ha=[Ba,Fa,Da,Wa],Ua="start",ja="end",Ga="viewport",_a="popper",qa=Ha.reduce((function(e,t){return e.concat([t+"-"+Ua,t+"-"+ja])}),[]),Ka=[].concat(Ha,[Va]).reduce((function(e,t){return e.concat([t,t+"-"+Ua,t+"-"+ja])}),[]),Xa=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ya(e){return e?(e.nodeName||"").toLowerCase():null}function Za(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ja(e){return e instanceof Za(e).Element||e instanceof Element}function Qa(e){return e instanceof Za(e).HTMLElement||e instanceof HTMLElement}function ei(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Za(e).ShadowRoot||e instanceof ShadowRoot)}var ti={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},r=t.attributes[e]||{},n=t.elements[e];Qa(n)&&Ya(n)&&(Object.assign(n.style,o),Object.keys(r).forEach((function(e){var t=r[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],n=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});Qa(r)&&Ya(r)&&(Object.assign(r.style,a),Object.keys(n).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function oi(e){return e.split("-")[0]}function ri(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function ni(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&ei(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ai(e){return Za(e).getComputedStyle(e)}function ii(e){return["table","td","th"].indexOf(Ya(e))>=0}function li(e){return((Ja(e)?e.ownerDocument:e.document)||window.document).documentElement}function si(e){return"html"===Ya(e)?e:e.assignedSlot||e.parentNode||(ei(e)?e.host:null)||li(e)}function ci(e){return Qa(e)&&"fixed"!==ai(e).position?e.offsetParent:null}function di(e){for(var t=Za(e),o=ci(e);o&&ii(o)&&"static"===ai(o).position;)o=ci(o);return o&&("html"===Ya(o)||"body"===Ya(o)&&"static"===ai(o).position)?t:o||function(e){for(var t=navigator.userAgent.toLowerCase().includes("firefox"),o=si(e);Qa(o)&&["html","body"].indexOf(Ya(o))<0;){var r=ai(o);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||["transform","perspective"].includes(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return o;o=o.parentNode}return null}(e)||t}function ui(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var pi=Math.max,mi=Math.min,fi=Math.round;function hi(e,t,o){return pi(e,mi(t,o))}function gi(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function bi(e,t){return t.reduce((function(t,o){return t[o]=e,t}),{})}var vi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yi(e){var t,o=e.popper,r=e.popperRect,n=e.placement,a=e.offsets,i=e.position,l=e.gpuAcceleration,s=e.adaptive,c=e.roundOffsets,d=!0===c?function(e){var t=e.x,o=e.y,r=window.devicePixelRatio||1;return{x:fi(fi(t*r)/r)||0,y:fi(fi(o*r)/r)||0}}(a):"function"==typeof c?c(a):a,u=d.x,p=void 0===u?0:u,m=d.y,f=void 0===m?0:m,h=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),b=Wa,v=Ba,y=window;if(s){var x=di(o),w="clientHeight",S="clientWidth";x===Za(o)&&"static"!==ai(x=li(o)).position&&(w="scrollHeight",S="scrollWidth"),n===Ba&&(v=Fa,f-=x[w]-r.height,f*=l?1:-1),n===Wa&&(b=Da,p-=x[S]-r.width,p*=l?1:-1)}var C,k=Object.assign({position:i},s&&vi);return l?Object.assign({},k,((C={})[v]=g?"0":"",C[b]=h?"0":"",C.transform=(y.devicePixelRatio||1)<2?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",C)):Object.assign({},k,((t={})[v]=g?f+"px":"",t[b]=h?p+"px":"",t.transform="",t))}var xi={passive:!0};var wi={left:"right",right:"left",bottom:"top",top:"bottom"};function Si(e){return e.replace(/left|right|bottom|top/g,(function(e){return wi[e]}))}var Ci={start:"end",end:"start"};function ki(e){return e.replace(/start|end/g,(function(e){return Ci[e]}))}function Ri(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Mi(e){var t=Za(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ti(e){return Ri(li(e)).left+Mi(e).scrollLeft}function $i(e){var t=ai(e),o=t.overflow,r=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+r)}function Pi(e){return["html","body","#document"].indexOf(Ya(e))>=0?e.ownerDocument.body:Qa(e)&&$i(e)?e:Pi(si(e))}function Ii(e,t){var o;void 0===t&&(t=[]);var r=Pi(e),n=r===(null==(o=e.ownerDocument)?void 0:o.body),a=Za(r),i=n?[a].concat(a.visualViewport||[],$i(r)?r:[]):r,l=t.concat(i);return n?l:l.concat(Ii(si(i)))}function Li(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ei(e,t){return t===Ga?Li(function(e){var t=Za(e),o=li(e),r=t.visualViewport,n=o.clientWidth,a=o.clientHeight,i=0,l=0;return r&&(n=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,l=r.offsetTop)),{width:n,height:a,x:i+Ti(e),y:l}}(e)):Qa(t)?function(e){var t=Ri(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Li(function(e){var t,o=li(e),r=Mi(e),n=null==(t=e.ownerDocument)?void 0:t.body,a=pi(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),i=pi(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-r.scrollLeft+Ti(e),s=-r.scrollTop;return"rtl"===ai(n||o).direction&&(l+=pi(o.clientWidth,n?n.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(li(e)))}function Ni(e,t,o){var r="clippingParents"===t?function(e){var t=Ii(si(e)),o=["absolute","fixed"].indexOf(ai(e).position)>=0&&Qa(e)?di(e):e;return Ja(o)?t.filter((function(e){return Ja(e)&&ni(e,o)&&"body"!==Ya(e)})):[]}(e):[].concat(t),n=[].concat(r,[o]),a=n[0],i=n.reduce((function(t,o){var r=Ei(e,o);return t.top=pi(r.top,t.top),t.right=mi(r.right,t.right),t.bottom=mi(r.bottom,t.bottom),t.left=pi(r.left,t.left),t}),Ei(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Ai(e){return e.split("-")[1]}function Oi(e){var t,o=e.reference,r=e.element,n=e.placement,a=n?oi(n):null,i=n?Ai(n):null,l=o.x+o.width/2-r.width/2,s=o.y+o.height/2-r.height/2;switch(a){case Ba:t={x:l,y:o.y-r.height};break;case Fa:t={x:l,y:o.y+o.height};break;case Da:t={x:o.x+o.width,y:s};break;case Wa:t={x:o.x-r.width,y:s};break;default:t={x:o.x,y:o.y}}var c=a?ui(a):null;if(null!=c){var d="y"===c?"height":"width";switch(i){case Ua:t[c]=t[c]-(o[d]/2-r[d]/2);break;case ja:t[c]=t[c]+(o[d]/2-r[d]/2)}}return t}function zi(e,t){void 0===t&&(t={});var o=t,r=o.placement,n=void 0===r?e.placement:r,a=o.boundary,i=void 0===a?"clippingParents":a,l=o.rootBoundary,s=void 0===l?Ga:l,c=o.elementContext,d=void 0===c?_a:c,u=o.altBoundary,p=void 0!==u&&u,m=o.padding,f=void 0===m?0:m,h=gi("number"!=typeof f?f:bi(f,Ha)),g=d===_a?"reference":_a,b=e.elements.reference,v=e.rects.popper,y=e.elements[p?g:d],x=Ni(Ja(y)?y:y.contextElement||li(e.elements.popper),i,s),w=Ri(b),S=Oi({reference:w,element:v,strategy:"absolute",placement:n}),C=Li(Object.assign({},v,S)),k=d===_a?C:w,R={top:x.top-k.top+h.top,bottom:k.bottom-x.bottom+h.bottom,left:x.left-k.left+h.left,right:k.right-x.right+h.right},M=e.modifiersData.offset;if(d===_a&&M){var T=M[n];Object.keys(R).forEach((function(e){var t=[Da,Fa].indexOf(e)>=0?1:-1,o=[Ba,Fa].indexOf(e)>=0?"y":"x";R[e]+=T[o]*t}))}return R}function Bi(e,t){void 0===t&&(t={});var o=t,r=o.placement,n=o.boundary,a=o.rootBoundary,i=o.padding,l=o.flipVariations,s=o.allowedAutoPlacements,c=void 0===s?Ka:s,d=Ai(r),u=d?l?qa:qa.filter((function(e){return Ai(e)===d})):Ha,p=u.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=u);var m=p.reduce((function(t,o){return t[o]=zi(e,{placement:o,boundary:n,rootBoundary:a,padding:i})[oi(o)],t}),{});return Object.keys(m).sort((function(e,t){return m[e]-m[t]}))}function Fi(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function Di(e){return[Ba,Da,Fa,Wa].some((function(t){return e[t]>=0}))}function Wi(e,t,o){void 0===o&&(o=!1);var r,n,a=li(t),i=Ri(e),l=Qa(t),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(l||!l&&!o)&&(("body"!==Ya(t)||$i(a))&&(s=(r=t)!==Za(r)&&Qa(r)?{scrollLeft:(n=r).scrollLeft,scrollTop:n.scrollTop}:Mi(r)),Qa(t)?((c=Ri(t)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Ti(a))),{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function Vi(e){var t=new Map,o=new Set,r=[];function n(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var r=t.get(e);r&&n(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||n(e)})),r}var Hi={placement:"bottom",modifiers:[],strategy:"absolute"};function Ui(){for(var e=arguments.length,t=new Array(e),o=0;o=0?-1:1,a="function"==typeof o?o(Object.assign({},t,{placement:e})):o,i=a[0],l=a[1];return i=i||0,l=(l||0)*n,[Wa,Da].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(o,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var n=o.mainAxis,a=void 0===n||n,i=o.altAxis,l=void 0===i||i,s=o.fallbackPlacements,c=o.padding,d=o.boundary,u=o.rootBoundary,p=o.altBoundary,m=o.flipVariations,f=void 0===m||m,h=o.allowedAutoPlacements,g=t.options.placement,b=oi(g),v=s||(b===g||!f?[Si(g)]:function(e){if(oi(e)===Va)return[];var t=Si(e);return[ki(e),t,ki(t)]}(g)),y=[g].concat(v).reduce((function(e,o){return e.concat(oi(o)===Va?Bi(t,{placement:o,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:h}):o)}),[]),x=t.rects.reference,w=t.rects.popper,S=new Map,C=!0,k=y[0],R=0;R=0,I=P?"width":"height",L=zi(t,{placement:M,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),E=P?$?Da:Wa:$?Fa:Ba;x[I]>w[I]&&(E=Si(E));var N=Si(E),A=[];if(a&&A.push(L[T]<=0),l&&A.push(L[E]<=0,L[N]<=0),A.every((function(e){return e}))){k=M,C=!1;break}S.set(M,A)}if(C)for(var O=function(e){var t=y.find((function(t){var o=S.get(t);if(o)return o.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},z=f?3:1;z>0;z--){if("break"===O(z))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name,n=o.mainAxis,a=void 0===n||n,i=o.altAxis,l=void 0!==i&&i,s=o.boundary,c=o.rootBoundary,d=o.altBoundary,u=o.padding,p=o.tether,m=void 0===p||p,f=o.tetherOffset,h=void 0===f?0:f,g=zi(t,{boundary:s,rootBoundary:c,padding:u,altBoundary:d}),b=oi(t.placement),v=Ai(t.placement),y=!v,x=ui(b),w="x"===x?"y":"x",S=t.modifiersData.popperOffsets,C=t.rects.reference,k=t.rects.popper,R="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,M={x:0,y:0};if(S){if(a||l){var T="y"===x?Ba:Wa,$="y"===x?Fa:Da,P="y"===x?"height":"width",I=S[x],L=S[x]+g[T],E=S[x]-g[$],N=m?-k[P]/2:0,A=v===Ua?C[P]:k[P],O=v===Ua?-k[P]:-C[P],z=t.elements.arrow,B=m&&z?ri(z):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},D=F[T],W=F[$],V=hi(0,C[P],B[P]),H=y?C[P]/2-N-V-D-R:A-V-D-R,U=y?-C[P]/2+N+V+W+R:O+V+W+R,j=t.elements.arrow&&di(t.elements.arrow),G=j?"y"===x?j.clientTop||0:j.clientLeft||0:0,_=t.modifiersData.offset?t.modifiersData.offset[t.placement][x]:0,q=S[x]+H-_-G,K=S[x]+U-_;if(a){var X=hi(m?mi(L,q):L,I,m?pi(E,K):E);S[x]=X,M[x]=X-I}if(l){var Y="x"===x?Ba:Wa,Z="x"===x?Fa:Da,J=S[w],Q=J+g[Y],ee=J-g[Z],te=hi(m?mi(Q,q):Q,J,m?pi(ee,K):ee);S[w]=te,M[w]=te-J}}t.modifiersData[r]=M}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o=e.state,r=e.name,n=o.elements.arrow,a=o.modifiersData.popperOffsets,i=oi(o.placement),l=ui(i),s=[Wa,Da].indexOf(i)>=0?"height":"width";if(n&&a){var c=o.modifiersData[r+"#persistent"].padding,d=ri(n),u="y"===l?Ba:Wa,p="y"===l?Fa:Da,m=o.rects.reference[s]+o.rects.reference[l]-a[l]-o.rects.popper[s],f=a[l]-o.rects.reference[l],h=di(n),g=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,b=m/2-f/2,v=c[u],y=g-d[s]-c[p],x=g/2-d[s]/2+b,w=hi(v,x,y),S=l;o.modifiersData[r]=((t={})[S]=w,t.centerOffset=w-x,t)}},effect:function(e){var t=e.state,o=e.options,r=e.name,n=o.element,a=void 0===n?"[data-popper-arrow]":n,i=o.padding,l=void 0===i?0:i;null!=a&&("string"!=typeof a||(a=t.elements.popper.querySelector(a)))&&ni(t.elements.popper,a)&&(l="function"==typeof l?l(Object.assign({},t.rects,{placement:t.placement})):l,t.elements.arrow=a,t.modifiersData[r+"#persistent"]={padding:gi("number"!=typeof l?l:bi(l,Ha))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,r=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,i=zi(t,{elementContext:"reference"}),l=zi(t,{altBoundary:!0}),s=Fi(i,r),c=Fi(l,n,a),d=Di(s),u=Di(c);t.modifiersData[o]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}]});const _i=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","TransitionProps"],qi=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function Ki(e){return"function"==typeof e?e():e}const Xi={},Yi=i.forwardRef((function(e,t){const{anchorEl:o,children:r,direction:n,disablePortal:a,modifiers:l,open:s,placement:c,popperOptions:d,popperRef:u,TransitionProps:p}=e,m=N(e,_i),f=i.useRef(null),h=ko(f,t),g=i.useRef(null),b=ko(g,u),v=i.useRef(b);yo((()=>{v.current=b}),[b]),i.useImperativeHandle(u,(()=>g.current),[]);const y=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,n),[x,w]=i.useState(y);i.useEffect((()=>{g.current&&g.current.forceUpdate()})),yo((()=>{if(!o||!s)return;Ki(o);let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{w(e.placement)}}];null!=l&&(e=e.concat(l)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=Gi(Ki(o),f.current,E({placement:y},d,{modifiers:e}));return v.current(t),()=>{t.destroy(),v.current(null)}}),[o,a,l,s,d,y]);const S={placement:x};return null!==p&&(S.TransitionProps=p),ro("div",E({ref:h,role:"tooltip"},m,{children:"function"==typeof r?r(S):r}))}));var Zi=i.forwardRef((function(e,t){const{anchorEl:o,children:r,container:n,direction:a="ltr",disablePortal:l=!1,keepMounted:s=!1,modifiers:c,open:d,placement:u="bottom",popperOptions:p=Xi,popperRef:m,style:f,transition:h=!1}=e,g=N(e,qi),[b,v]=i.useState(!0);if(!s&&!d&&(!h||b))return null;const y=n||(o?go(Ki(o)).body:void 0);return ro(xa,{disablePortal:l,container:y,children:ro(Yi,E({anchorEl:o,direction:a,disablePortal:l,modifiers:c,ref:t,open:h?!b:d,placement:u,popperOptions:p,popperRef:m},g,{style:E({position:"fixed",top:0,left:0,display:d||!s||h&&!b?null:"none"},f),TransitionProps:h?{in:d,onEnter:()=>{v(!1)},onExited:()=>{v(!0)}}:null,children:r}))})}));function Ji(e){return Kn("MuiSlider",e)}var Qi=Xn("MuiSlider",["root","active","focusVisible","disabled","dragging","marked","vertical","trackInverted","trackFalse","rail","track","mark","markActive","markLabel","markLabelActive","thumb","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel"]);function el(e){const{children:t,className:o,value:r,theme:n}=e,a=(e=>{const{open:t}=e;return{offset:Zr(t&&Qi.valueLabelOpen),circle:Qi.valueLabelCircle,label:Qi.valueLabelLabel}})(e);return i.cloneElement(t,{className:Zr(t.props.className)},no(i.Fragment,{children:[t.props.children,ro("span",{className:Zr(a.offset,o),theme:n,"aria-hidden":!0,children:ro("span",{className:a.circle,children:ro("span",{className:a.label,children:r})})})]}))}const tl=["aria-label","aria-labelledby","aria-valuetext","className","component","classes","defaultValue","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","tabIndex","track","value","valueLabelDisplay","valueLabelFormat","isRtl","components","componentsProps"];function ol(e,t){return e-t}function rl(e,t,o){return null==e?t:Math.min(Math.max(t,e),o)}function nl(e,t){const{index:o}=e.reduce(((e,o,r)=>{const n=Math.abs(t-o);return null===e||n({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},ul=e=>e;let pl;function ml(){return void 0===pl&&(pl="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),pl}const fl=({children:e})=>e;var hl=i.forwardRef((function(e,t){const{"aria-label":o,"aria-labelledby":r,"aria-valuetext":n,className:a,component:l="span",classes:s,defaultValue:c,disableSwap:d=!1,disabled:u=!1,getAriaLabel:p,getAriaValueText:m,marks:f=!1,max:h=100,min:g=0,name:b,onChange:v,onChangeCommitted:y,onMouseDown:x,orientation:w="horizontal",scale:S=ul,step:C=1,tabIndex:k,track:R="normal",value:M,valueLabelDisplay:T="off",valueLabelFormat:$=ul,isRtl:P=!1,components:I={},componentsProps:L={}}=e,A=N(e,tl),O=i.useRef(),[z,B]=i.useState(-1),[F,D]=i.useState(-1),[W,V]=i.useState(!1),H=i.useRef(0),[U,j]=So({controlled:M,default:null!=c?c:g,name:"Slider"}),G=v&&((e,t,o)=>{const r=e.nativeEvent||e,n=new r.constructor(r.type,r);Object.defineProperty(n,"target",{writable:!0,value:{value:t,name:b}}),v(n,t,o)}),_=Array.isArray(U);let q=_?U.slice().sort(ol):[U];q=q.map((e=>rl(e,g,h)));const K=!0===f&&null!==C?[...Array(Math.floor((h-g)/C)+1)].map(((e,t)=>({value:g+C*t}))):f||[],{isFocusVisibleRef:X,onBlur:Y,onFocus:Z,ref:J}=No(),[Q,ee]=i.useState(-1),te=i.useRef(),oe=ko(J,te),re=ko(t,oe),ne=e=>{const t=Number(e.currentTarget.getAttribute("data-index"));Z(e),!0===X.current&&ee(t),D(t)},ae=e=>{Y(e),!1===X.current&&ee(-1),D(-1)},ie=Co((e=>{const t=Number(e.currentTarget.getAttribute("data-index"));D(t)})),le=Co((()=>{D(-1)}));yo((()=>{u&&te.current.contains(document.activeElement)&&document.activeElement.blur()}),[u]),u&&-1!==z&&B(-1),u&&-1!==Q&&ee(-1);const se=e=>{const t=Number(e.currentTarget.getAttribute("data-index")),o=q[t],r=K.map((e=>e.value)),n=r.indexOf(o);let a=e.target.valueAsNumber;if(K&&null==C&&(a=ae.value)),o=e.indexOf(q[t]);a=a{const{current:r}=te,{width:n,height:a,bottom:i,left:l}=r.getBoundingClientRect();let s,c;if(s=0===de.indexOf("vertical")?(i-e.y)/a:(e.x-l)/n,-1!==de.indexOf("-reverse")&&(s=1-s),c=function(e,t,o){return(o-t)*e+t}(s,g,h),C)c=ll(c,C,g);else{const e=K.map((e=>e.value));c=e[nl(e,c)]}c=rl(c,g,h);let u=0;if(_){u=t?ce.current:nl(o,c),d&&(c=rl(c,o[u-1]||-1/0,o[u+1]||1/0));const e=c;c=sl({values:o,newValue:c,index:u}),d&&t||(u=c.indexOf(e),ce.current=u)}return{newValue:c,activeIndex:u}},pe=Co((e=>{const t=al(e,O);if(!t)return;if(H.current+=1,"mousemove"===e.type&&0===e.buttons)return void me(e);const{newValue:o,activeIndex:r}=ue({finger:t,move:!0,values:q});cl({sliderRef:te,activeIndex:r,setActive:B}),j(o),!W&&H.current>2&&V(!0),G&&G(e,o,r)})),me=Co((e=>{const t=al(e,O);if(V(!1),!t)return;const{newValue:o}=ue({finger:t,values:q});B(-1),"touchend"===e.type&&D(-1),y&&y(e,o),O.current=void 0,he()})),fe=Co((e=>{ml()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(O.current=t.identifier);const o=al(e,O),{newValue:r,activeIndex:n}=ue({finger:o,values:q});cl({sliderRef:te,activeIndex:n,setActive:B}),j(r),G&&G(e,r,n),H.current=0;const a=go(te.current);a.addEventListener("touchmove",pe),a.addEventListener("touchend",me)})),he=i.useCallback((()=>{const e=go(te.current);e.removeEventListener("mousemove",pe),e.removeEventListener("mouseup",me),e.removeEventListener("touchmove",pe),e.removeEventListener("touchend",me)}),[me,pe]);i.useEffect((()=>{const{current:e}=te;return e.addEventListener("touchstart",fe,{passive:ml()}),()=>{e.removeEventListener("touchstart",fe,{passive:ml()}),he()}}),[he,fe]),i.useEffect((()=>{u&&he()}),[u,he]);const ge=Co((e=>{if(x&&x(e),0!==e.button)return;e.preventDefault();const t=al(e,O),{newValue:o,activeIndex:r}=ue({finger:t,values:q});cl({sliderRef:te,activeIndex:r,setActive:B}),j(o),G&&G(e,o,r),H.current=0;const n=go(te.current);n.addEventListener("mousemove",pe),n.addEventListener("mouseup",me)})),be=il(_?q[0]:g,g,h),ve=il(q[q.length-1],g,h)-be,ye=E({},dl[de].offset(be),dl[de].leap(ve)),xe=I.Root||l,we=L.root||{},Se=I.Rail||"span",Ce=L.rail||{},ke=I.Track||"span",Re=L.track||{},Me=I.Thumb||"span",Te=L.thumb||{},$e=I.ValueLabel||el,Pe=L.valueLabel||{},Ie=I.Mark||"span",Le=L.mark||{},Ee=I.MarkLabel||"span",Ne=L.markLabel||{},Ae=E({},e,{classes:s,disabled:u,dragging:W,isRtl:P,marked:K.length>0&&K.some((e=>e.label)),max:h,min:g,orientation:w,scale:S,step:C,track:R,valueLabelDisplay:T,valueLabelFormat:$}),Oe=(e=>{const{disabled:t,dragging:o,marked:r,orientation:n,track:a,classes:i}=e;return Un({root:["root",t&&"disabled",o&&"dragging",r&&"marked","vertical"===n&&"vertical","inverted"===a&&"trackInverted",!1===a&&"trackFalse"],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled"],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},Ji,i)})(Ae);return no(xe,E({ref:re,onMouseDown:ge},we,!jn(xe)&&{as:l,ownerState:E({},Ae,we.ownerState)},A,{className:Zr(Oe.root,we.className,a),children:[ro(Se,E({},Ce,!jn(Se)&&{ownerState:E({},Ae,Ce.ownerState)},{className:Zr(Oe.rail,Ce.className)})),ro(ke,E({},Re,!jn(ke)&&{ownerState:E({},Ae,Re.ownerState)},{className:Zr(Oe.track,Re.className),style:E({},ye,Re.style)})),K.map(((e,t)=>{const o=il(e.value,g,h),r=dl[de].offset(o);let n;return n=!1===R?-1!==q.indexOf(e.value):"normal"===R&&(_?e.value>=q[0]&&e.value<=q[q.length-1]:e.value<=q[0])||"inverted"===R&&(_?e.value<=q[0]||e.value>=q[q.length-1]:e.value>=q[0]),no(i.Fragment,{children:[ro(Ie,E({"data-index":t},Le,!jn(Ie)&&{ownerState:E({},Ae,Le.ownerState),markActive:n},{style:E({},r,Le.style),className:Zr(Oe.mark,Le.className,n&&Oe.markActive)})),null!=e.label?ro(Ee,E({"aria-hidden":!0,"data-index":t},Ne,!jn(Ee)&&{ownerState:E({},Ae,Ne.ownerState)},{markLabelActive:n,style:E({},r,Ne.style),className:Zr(Oe.markLabel,Ne.className,n&&Oe.markLabelActive),children:e.label})):null]},e.value)})),q.map(((t,a)=>{const l=il(t,g,h),s=dl[de].offset(l),c="off"===T?fl:$e;return ro(i.Fragment,{children:ro(c,E({valueLabelFormat:$,valueLabelDisplay:T,value:"function"==typeof $?$(S(t),a):$,index:a,open:F===a||z===a||"on"===T,disabled:u},Pe,{className:Zr(Oe.valueLabel,Pe.className)},!jn($e)&&{ownerState:E({},Ae,Pe.ownerState)},{children:ro(Me,E({"data-index":a,onMouseOver:ie,onMouseLeave:le},Te,{className:Zr(Oe.thumb,Te.className,z===a&&Oe.active,Q===a&&Oe.focusVisible)},!jn(Me)&&{ownerState:E({},Ae,Te.ownerState)},{style:E({},s,{pointerEvents:d&&z!==a?"none":void 0},Te.style),children:ro("input",{tabIndex:k,"data-index":a,"aria-label":p?p(a):o,"aria-labelledby":r,"aria-orientation":w,"aria-valuemax":S(h),"aria-valuemin":S(g),"aria-valuenow":S(t),"aria-valuetext":m?m(S(t),a):n,onFocus:ne,onBlur:ae,name:b,type:"range",min:e.min,max:e.max,step:e.step,disabled:u,value:q[a],onChange:se,style:E({},Do,{direction:P?"rtl":"ltr",width:"100%",height:"100%"})})}))}))},a)}))]}))}));function gl(e){const{checked:t,defaultChecked:o,disabled:r,onBlur:n,onChange:a,onFocus:l,onFocusVisible:s,readOnly:c,required:d}=e,[u,p]=So({controlled:t,default:Boolean(o),name:"Switch",state:"checked"}),{isFocusVisibleRef:m,onBlur:f,onFocus:h,ref:g}=No(),[b,v]=i.useState(!1);r&&b&&v(!1),i.useEffect((()=>{m.current=b}),[b,m]);const y=i.useRef(null),x=ko(g,y);return{checked:u,disabled:Boolean(r),focusVisible:b,getInputProps:(e={})=>E({checked:t,defaultChecked:o,disabled:r,readOnly:c,required:d,type:"checkbox"},e,{onChange:t=>((e,t)=>{e.nativeEvent.defaultPrevented||(p(e.target.checked),null==a||a(e),null==t||t(e))})(t,e.onChange),onFocus:t=>((e,t)=>{y.current||(y.current=e.currentTarget),h(e),!0===m.current&&(v(!0),null==s||s(e)),null==l||l(e),null==t||t(e)})(t,e.onFocus),onBlur:t=>((e,t)=>{f(e),!1===m.current&&v(!1),null==n||n(e),null==t||t(e)})(t,e.onBlur),ref:x}),readOnly:Boolean(c)}}var bl=Xn("MuiSwitch",["root","input","track","thumb","checked","disabled","focusVisible","readOnly"]);const vl=["checked","className","component","components","componentsProps","defaultChecked","disabled","onBlur","onChange","onFocus","onFocusVisible","readOnly","required"];var yl=i.forwardRef((function(e,t){var o,r,n,a,i,l,s;const{checked:c,className:d,component:u,components:p={},componentsProps:m={},defaultChecked:f,disabled:h,onBlur:g,onChange:b,onFocus:v,onFocusVisible:y,readOnly:x}=e,w=N(e,vl),S={checked:c,defaultChecked:f,disabled:h,onBlur:g,onChange:b,onFocus:v,onFocusVisible:y,readOnly:x},{getInputProps:C,checked:k,disabled:R,focusVisible:M,readOnly:T}=gl(S),$=E({},e,{checked:k,disabled:R,focusVisible:M,readOnly:T}),P=null!=(o=null!=u?u:p.Root)?o:"span",I=sa(P,E({},w,m.root),$),L=null!=(r=p.Thumb)?r:"span",A=sa(L,null!=(n=m.thumb)?n:{},$),O=null!=(a=p.Input)?a:"input",z=sa(O,null!=(i=m.input)?i:{},$),B=null===p.Track?()=>null:null!=(l=p.Track)?l:"span",F=sa(B,null!=(s=m.track)?s:{},$),D=Zr(k&&bl.checked,R&&bl.disabled,M&&bl.focusVisible,T&&bl.readOnly);return no(P,E({ref:t},I,{className:Zr(bl.root,D,d,null==I?void 0:I.className),children:[ro(B,E({},F,{className:Zr(bl.track,null==F?void 0:F.className)})),ro(L,E({},A,{className:Zr(bl.thumb,null==A?void 0:A.className)})),ro(O,E({},C(z),{className:Zr(bl.input,null==z?void 0:z.className)}))]}))}));const xl=["onChange","maxRows","minRows","style","value"];function wl(e,t){return parseInt(e[t],10)||0}const Sl={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};var Cl=i.forwardRef((function(e,t){const{onChange:o,maxRows:r,minRows:n=1,style:a,value:l}=e,s=N(e,xl),{current:c}=i.useRef(null!=l),d=i.useRef(null),u=ko(t,d),p=i.useRef(null),m=i.useRef(0),[f,h]=i.useState({}),g=i.useCallback((()=>{const t=d.current,o=bo(t).getComputedStyle(t);if("0px"===o.width)return;const a=p.current;a.style.width=o.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=o["box-sizing"],l=wl(o,"padding-bottom")+wl(o,"padding-top"),s=wl(o,"border-bottom-width")+wl(o,"border-top-width"),c=a.scrollHeight;a.value="x";const u=a.scrollHeight;let f=c;n&&(f=Math.max(Number(n)*u,f)),r&&(f=Math.min(Number(r)*u,f)),f=Math.max(f,u);const g=f+("border-box"===i?l+s:0),b=Math.abs(f-c)<=1;h((e=>m.current<20&&(g>0&&Math.abs((e.outerHeightStyle||0)-g)>1||e.overflow!==b)?(m.current+=1,{overflow:b,outerHeightStyle:g}):e))}),[r,n,e.placeholder]);i.useEffect((()=>{const e=fo((()=>{m.current=0,g()})),t=bo(d.current);let o;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(d.current)),()=>{e.clear(),t.removeEventListener("resize",e),o&&o.disconnect()}}),[g]),yo((()=>{g()})),i.useEffect((()=>{m.current=0}),[l]);return no(i.Fragment,{children:[ro("textarea",E({value:l,onChange:e=>{m.current=0,c||g(),o&&o(e)},ref:u,rows:n,style:E({height:f.outerHeightStyle,overflow:f.overflow?"hidden":null},a)},s)),ro("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:E({},Sl,a,{padding:0})})]})}));function kl(e){return Kn("TabsUnstyled",e)}var Rl=Xn("TabsUnstyled",["root","horizontal","vertical"]);var Ml=e=>{const{value:t,defaultValue:o,onChange:r,orientation:n,direction:a,selectionFollowsFocus:l}=e,[s,c]=So({controlled:t,default:o,name:"Tabs",state:"value"}),d=wo(),u=i.useCallback(((e,t)=>{c(t),r&&r(e,t)}),[r,c]);return{getRootProps:()=>({}),tabsContextValue:i.useMemo((()=>({idPrefix:d,value:s,onSelected:u,orientation:n,direction:a,selectionFollowsFocus:l})),[d,s,u,n,a,l])}};const Tl=i.createContext(null);function $l(){return i.useContext(Tl)}function Pl(e,t){const{idPrefix:o}=e;return null===o?null:`${e.idPrefix}-P-${t}`}function Il(e,t){const{idPrefix:o}=e;return null===o?null:`${e.idPrefix}-T-${t}`}var Ll=Tl;const El=["children","className","value","defaultValue","orientation","direction","component","components","componentsProps","onChange","selectionFollowsFocus"];var Nl=i.forwardRef(((e,t)=>{var o,r;const{children:n,className:a,orientation:i="horizontal",direction:l="ltr",component:s,components:c={},componentsProps:d={}}=e,u=N(e,El),{tabsContextValue:p,getRootProps:m}=Ml(e),f=E({},e,{orientation:i,direction:l}),h=(e=>{const{orientation:t}=e;return Un({root:["root",t]},kl,{})})(f),g=null!=(o=null!=s?s:c.Root)?o:"div",b=sa(g,E({},u,d.root),f);return ro(g,E({},m(),b,{ref:t,className:Zr(h.root,null==(r=d.root)?void 0:r.className,a),children:ro(Ll.Provider,{value:p,children:n})}))}));function Al(e){return Kn("TabUnstyled",e)}var Ol=Xn("TabUnstyled",["root","selected","disabled"]);const zl=["getRootProps"];var Bl=e=>{const{value:t,onChange:o,onClick:r,onFocus:n}=e,a=la(e),{getRootProps:i}=a,l=N(a,zl),s=$l();if(null===s)throw new Error("No TabContext provided");const c=null!=t?t:0,d=s.value===c,u=s.selectionFollowsFocus,p={role:"tab","aria-controls":Pl(s,c),id:Il(s,c),"aria-selected":d,disabled:l.disabled},m=e=>{u&&!d&&(o&&o(e,c),s.onSelected(e,c)),n&&n(e)},f=e=>{d||(o&&o(e,c),s.onSelected(e,c)),r&&r(e)};return E({getRootProps:e=>{const t=i(E({onClick:f,onFocus:m},e));return E({},t,p)}},l,{selected:d})};const Fl=["action","children","value","className","disabled","onChange","onClick","onFocus","component","components","componentsProps"];var Dl=i.forwardRef((function(e,t){var o,r;const{action:n,children:a,className:l,disabled:s=!1,component:c,components:d={},componentsProps:u={}}=e,p=N(e,Fl),m=i.useRef(),f=ko(m,t),{active:h,focusVisible:g,setFocusVisible:b,selected:v,getRootProps:y}=Bl(E({},e,{ref:f}));i.useImperativeHandle(n,(()=>({focusVisible:()=>{b(!0),m.current.focus()}})),[b]);const x=E({},e,{active:h,focusVisible:g,disabled:s,selected:v}),w=(e=>{const{selected:t,disabled:o}=e;return Un({root:["root",t&&"selected",o&&"disabled"]},Al,{})})(x),S=null!=(o=null!=c?c:d.Root)?o:"button",C=sa(S,E({},p,u.root),x);return ro(S,E({},y(),C,{className:Zr(w.root,null==(r=u.root)?void 0:r.className,l),ref:t,children:a}))}));function Wl(e){return Kn("TabsListUnstyled",e)}var Vl=Xn("TabsListUnstyled",["root","horizontal","vertical"]);const Hl=(e,t)=>e?e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild:null,Ul=(e,t)=>e?e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild:null,jl=(e,t,o)=>{let r=!1,n=o(e,t);for(;e&&n;){if(n===e.firstChild){if(r)return;r=!0}const t=n.disabled||"true"===n.getAttribute("aria-disabled");if(n.hasAttribute("tabindex")&&!t)return void n.focus();n=o(e,n)}};var Gl=e=>{const{"aria-label":t,"aria-labelledby":o,children:r,ref:n}=e,a=i.createRef(),l=ko(a,n),s=$l();if(null===s)throw new Error("No TabContext provided");const{value:c,orientation:d="horizontal",direction:u="ltr"}=s,p="rtl"===u,m=e=>t=>{var o;(e=>{const t=a.current,o=go(t).activeElement;if("tab"!==(null==o?void 0:o.getAttribute("role")))return;let r="horizontal"===d?"ArrowLeft":"ArrowUp",n="horizontal"===d?"ArrowRight":"ArrowDown";switch("horizontal"===d&&p&&(r="ArrowRight",n="ArrowLeft"),e.key){case r:e.preventDefault(),jl(t,o,Ul);break;case n:e.preventDefault(),jl(t,o,Hl);break;case"Home":e.preventDefault(),jl(t,null,Hl);break;case"End":e.preventDefault(),jl(t,null,Ul)}})(t),null==(o=e.onKeyDown)||o.call(e,t)},f=i.useCallback((()=>{const e=new Map;let t=0;return i.Children.map(r,(o=>{if(!i.isValidElement(o))return null;const r=void 0===o.props.value?t:o.props.value;return e.set(r,t),t+=1,i.cloneElement(o,E({value:r},1===t&&!1===c&&!o.props.tabIndex||c===r?{tabIndex:0}:{tabIndex:-1}))}))}),[r,c]);return{isRtl:p,orientation:d,value:c,processChildren:f,getRootProps:r=>{const n=E({},ia(e),r),a=E({},n,{onKeyDown:m(n)});return E({"aria-label":t,"aria-labelledby":o,"aria-orientation":"vertical"===d?"vertical":null,role:"tablist",ref:l},a)}}};const _l=["className","children","component","components","componentsProps"];var ql=i.forwardRef(((e,t)=>{var o,r;const{className:n,component:a,components:i={},componentsProps:l={}}=e,s=N(e,_l),{isRtl:c,orientation:d,getRootProps:u,processChildren:p}=Gl(E({},e,{ref:t})),m=E({},e,{isRtl:c,orientation:d}),f=(e=>{const{orientation:t}=e;return Un({root:["root",t]},Wl,{})})(m),h=null!=(o=null!=a?a:i.Root)?o:"div",g=sa(h,E({},s,l.root),m),b=p();return ro(h,E({},u(),g,{className:Zr(n,null==(r=l.root)?void 0:r.className,f.root),children:b}))}));function Kl(e){return Kn("TabPanelUnstyled",e)}var Xl=Xn("TabPanelUnstyled",["root","hidden"]);var Yl=e=>{const{value:t}=e,o=$l();if(null===o)throw new Error("No TabContext provided");const r=t!==o.value,n=Pl(o,t),a=Il(o,t);return{hidden:r,getRootProps:()=>({"aria-labelledby":a,hidden:r,id:n})}};const Zl=["children","className","value","components","componentsProps","component"];var Jl=i.forwardRef((function(e,t){var o,r;const{children:n,className:a,components:i={},componentsProps:l={},component:s}=e,c=N(e,Zl),{hidden:d,getRootProps:u}=Yl(e),p=E({},e,{hidden:d}),m=(e=>{const{hidden:t}=e;return Un({root:["root",t&&"hidden"]},Kl,{})})(p),f=null!=(o=null!=s?s:i.Root)?o:"div",h=sa(f,E({},c,l.root),p);return ro(f,E({},u(),{ref:t,role:"tabpanel"},h,{className:Zr(m.root,null==(r=l.root)?void 0:r.className,a),children:!d&&n}))}));const Ql=["mode","contrastThreshold","tonalOffset"],es={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:c.white,default:c.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},ts={text:{primary:c.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:c.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function os(e,t,o,r){const n=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(o)?e[t]=e[o]:"light"===t?e.light=Nn(e.main,n):"dark"===t&&(e.dark=En(e.main,a)))}function rs(e){const{mode:t="light",contrastThreshold:o=3,tonalOffset:r=.2}=e,n=N(e,Ql),a=e.primary||function(e="light"){return"dark"===e?{main:h[200],light:h[50],dark:h[400]}:{main:h[700],light:h[400],dark:h[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:d[500],light:d[300],dark:d[700]}:{main:d[700],light:d[400],dark:d[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:g[400],light:g[300],dark:g[700]}:{main:g[700],light:g[500],dark:g[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(t),m=e.warning||function(e="light"){return"dark"===e?{main:k[400],light:k[300],dark:k[700]}:{main:"#ed6c02",light:k[500],dark:k[900]}}(t);function f(e){return In(e,ts.text.primary)>=o?ts.text.primary:es.text.primary}const b=({color:e,name:t,mainShade:o=500,lightShade:n=300,darkShade:a=700})=>{if(!(e=E({},e)).main&&e[o]&&(e.main=e[o]),!e.hasOwnProperty("main"))throw new Error(uo(11,t?` (${t})`:"",o));if("string"!=typeof e.main)throw new Error(uo(12,t?` (${t})`:"",JSON.stringify(e.main)));return os(e,"light",n,r),os(e,"dark",a,r),e.contrastText||(e.contrastText=f(e.main)),e},v={dark:ts,light:es};return co(E({common:c,mode:t,primary:b({color:a,name:"primary"}),secondary:b({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:l,name:"error"}),warning:b({color:m,name:"warning"}),info:b({color:s,name:"info"}),success:b({color:u,name:"success"}),grey:T,contrastThreshold:o,getContrastText:f,augmentColor:b,tonalOffset:r},v[t]),n)}const ns=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const as={textTransform:"uppercase"},is='"Roboto", "Helvetica", "Arial", sans-serif';function ls(e,t){const o="function"==typeof t?t(e):t,{fontFamily:r=is,fontSize:n=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=o,p=N(o,ns),m=n/14,f=u||(e=>e/c*m+"rem"),h=(e,t,o,n,a)=>{return E({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:o},r===is?{letterSpacing:(i=n/t,Math.round(1e5*i)/1e5)+"em"}:{},a,d);var i},g={h1:h(a,96,1.167,-1.5),h2:h(a,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(l,14,1.75,.4,as),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,as)};return co(E({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:n,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function ss(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var cs=["none",ss(0,2,1,-1,0,1,1,0,0,1,3,0),ss(0,3,1,-2,0,2,2,0,0,1,5,0),ss(0,3,3,-2,0,3,4,0,0,1,8,0),ss(0,2,4,-1,0,4,5,0,0,1,10,0),ss(0,3,5,-1,0,5,8,0,0,1,14,0),ss(0,3,5,-1,0,6,10,0,0,1,18,0),ss(0,4,5,-2,0,7,10,1,0,2,16,1),ss(0,5,5,-3,0,8,10,1,0,3,14,2),ss(0,5,6,-3,0,9,12,1,0,3,16,2),ss(0,6,6,-3,0,10,14,1,0,4,18,3),ss(0,6,7,-4,0,11,15,1,0,4,20,3),ss(0,7,8,-4,0,12,17,2,0,5,22,4),ss(0,7,8,-4,0,13,19,2,0,5,24,4),ss(0,7,9,-4,0,14,21,2,0,5,26,4),ss(0,8,9,-5,0,15,22,2,0,6,28,5),ss(0,8,10,-5,0,16,24,2,0,6,30,5),ss(0,8,11,-5,0,17,26,2,0,6,32,5),ss(0,9,11,-5,0,18,28,2,0,7,34,6),ss(0,9,12,-6,0,19,29,2,0,7,36,6),ss(0,10,13,-6,0,20,31,3,0,8,38,7),ss(0,10,13,-6,0,21,33,3,0,8,40,7),ss(0,10,14,-6,0,22,35,3,0,8,42,7),ss(0,11,14,-7,0,23,36,3,0,9,44,8),ss(0,11,15,-7,0,24,38,3,0,9,46,8)];const ds=["duration","easing","delay"],us={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ps={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ms(e){return`${Math.round(e)}ms`}function fs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function hs(e){const t=E({},us,e.easing),o=E({},ps,e.duration);return E({getAutoHeightDuration:fs,create:(e=["all"],r={})=>{const{duration:n=o.standard,easing:a=t.easeInOut,delay:i=0}=r;return N(r,ds),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof n?n:ms(n)} ${a} ${"string"==typeof i?i:ms(i)}`)).join(",")}},e,{easing:t,duration:o})}var gs={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const bs=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function vs(e={},...t){const{mixins:o={},palette:r={},transitions:n={},typography:a={}}=e,i=N(e,bs),l=rs(r),s=rn(e);let c=co(s,{mixins:(d=s.breakpoints,s.spacing,u=o,E({toolbar:{minHeight:56,[`${d.up("xs")} and (orientation: landscape)`]:{minHeight:48},[d.up("sm")]:{minHeight:64}}},u)),palette:l,shadows:cs.slice(),typography:ls(l,a),transitions:hs(n),zIndex:E({},gs)});var d,u;return c=co(c,i),c=t.reduce(((e,t)=>co(e,t)),c),c}let ys=!1;function xs(e){return String(parseFloat(e)).length===String(e).length}function ws(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Ss(e){return parseFloat(e)}function Cs({lineHeight:e,pixels:t,htmlFontSize:o}){return t/(e*o)}var ks=vs();function Rs(){return un(ks)}function Ms({props:e,name:t}){return Cn({props:e,name:t,defaultTheme:ks})}const Ts=e=>xn(e)&&"classes"!==e,$s=xn;var Ps=function(e={}){const{defaultTheme:t=wn,rootShouldForwardProp:o=xn,slotShouldForwardProp:r=xn}=e;return(e,n={})=>{const{name:a,slot:i,skipVariantsResolver:l,skipSx:s,overridesResolver:c}=n,d=N(n,gn),u=void 0!==l?l:i&&"Root"!==i||!1,p=s||!1;let m=xn;"Root"===i?m=o:i&&(m=r);const f=lo(e,E({shouldForwardProp:m,label:undefined},d));return(e,...o)=>{const r=o?o.map((e=>"function"==typeof e&&e.__emotion_real!==e?o=>{let{theme:r}=o,n=N(o,bn);return e(E({theme:yn(r)?t:r},n))}:e)):[];let n=e;a&&c&&r.push((e=>{const o=yn(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(a,o);return r?c(e,r):null})),a&&!u&&r.push((e=>{const o=yn(e.theme)?t:e.theme;return((e,t,o,r)=>{var n,a;const{ownerState:i={}}=e,l=[],s=null==o||null==(n=o.components)||null==(a=n[r])?void 0:a.variants;return s&&s.forEach((o=>{let r=!0;Object.keys(o.props).forEach((t=>{i[t]!==o.props[t]&&e[t]!==o.props[t]&&(r=!1)})),r&&l.push(t[hn(o.props)])})),l})(e,((e,t)=>{let o=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(o=t.components[e].variants);const r={};return o.forEach((e=>{const t=hn(e.props);r[t]=e.style})),r})(a,o),o,a)})),p||r.push((e=>qr(E({},e,{theme:yn(e.theme)?t:e.theme}))));const i=r.length-o.length;if(Array.isArray(e)&&i>0){const t=new Array(i).fill("");n=[...e,...t],n.raw=[...e.raw,...t]}else"function"==typeof e&&(n=o=>{let{theme:r}=o,n=N(o,vn);return e(E({theme:yn(r)?t:r},n))});return f(n,...r)}}}({defaultTheme:ks,rootShouldForwardProp:Ts});function Is(e){return Kn("MuiSvgIcon",e)}var Ls=Xn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Es=["children","className","color","component","fontSize","htmlColor","titleAccess","viewBox"],Ns=Ps("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"inherit"!==o.color&&t[`color${po(o.color)}`],t[`fontSize${po(o.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var o,r;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter}),fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(35)}[t.fontSize],color:null!=(o=null==(r=e.palette[t.color])?void 0:r.main)?o:{action:e.palette.action.active,disabled:e.palette.action.disabled,inherit:void 0}[t.color]}})),As=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiSvgIcon"}),{children:r,className:n,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,titleAccess:c,viewBox:d="0 0 24 24"}=o,u=N(o,Es),p=E({},o,{color:a,component:i,fontSize:l,viewBox:d}),m=(e=>{const{color:t,fontSize:o,classes:r}=e;return Un({root:["root","inherit"!==t&&`color${po(t)}`,`fontSize${po(o)}`]},Is,r)})(p);return no(Ns,E({as:i,className:Zr(m.root,n),ownerState:p,focusable:"false",viewBox:d,color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},u,{children:[r,c?ro("title",{children:c}):null]}))}));As.muiName="SvgIcon";var Os=As;function zs(e,t){const o=(o,r)=>ro(Os,E({"data-testid":`${t}Icon`,ref:r},o,{children:e}));return o.muiName=Os.muiName,i.memo(i.forwardRef(o))}function Bs(e,t){return(Bs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bs(e,t)}var Ds=!1,Ws=a.default.createContext(null),Vs="unmounted",Hs="exited",Us="entering",js="entered",Gs="exiting",_s=function(e){function t(t,o){var r;r=e.call(this,t,o)||this;var n,a=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(n=Hs,r.appearStatus=Us):n=js:n=t.unmountOnExit||t.mountOnEnter?Vs:Hs,r.state={status:n},r.nextCallback=null,r}Fs(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Vs?{status:Hs}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==Us&&o!==js&&(t=Us):o!==Us&&o!==js||(t=Gs)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,o,r=this.props.timeout;return e=t=o=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,o=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:o}},o.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Us?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===Hs&&this.setState({status:Vs})},o.performEnter=function(e){var t=this,o=this.props.enter,r=this.context?this.context.isMounting:e,n=this.props.nodeRef?[r]:[s.default.findDOMNode(this),r],a=n[0],i=n[1],l=this.getTimeouts(),c=r?l.appear:l.enter;!e&&!o||Ds?this.safeSetState({status:js},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:Us},(function(){t.props.onEntering(a,i),t.onTransitionEnd(c,(function(){t.safeSetState({status:js},(function(){t.props.onEntered(a,i)}))}))})))},o.performExit=function(){var e=this,t=this.props.exit,o=this.getTimeouts(),r=this.props.nodeRef?void 0:s.default.findDOMNode(this);t&&!Ds?(this.props.onExit(r),this.safeSetState({status:Gs},(function(){e.props.onExiting(r),e.onTransitionEnd(o.exit,(function(){e.safeSetState({status:Hs},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Hs},(function(){e.props.onExited(r)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,o=!0;return this.nextCallback=function(r){o&&(o=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var o=this.props.nodeRef?this.props.nodeRef.current:s.default.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(o&&!r){if(this.props.addEndListener){var n=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],a=n[0],i=n[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===Vs)return null;var t=this.props,o=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=N(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a.default.createElement(Ws.Provider,{value:null},"function"==typeof o?o(e,r):a.default.cloneElement(a.default.Children.only(o),r))},t}(a.default.Component);function qs(){}_s.contextType=Ws,_s.propTypes={},_s.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qs,onEntering:qs,onEntered:qs,onExit:qs,onExiting:qs,onExited:qs},_s.UNMOUNTED=Vs,_s.EXITED=Hs,_s.ENTERING=Us,_s.ENTERED=js,_s.EXITING=Gs;var Ks=_s;function Xs(e,o){var r=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return o&&t.isValidElement(e)?o(e):e}(e)})),r}function Ys(e,t,o){return null!=o[t]?o[t]:e.props[t]}function Zs(e,o,r){var n=Xs(e.children),a=function(e,t){function o(o){return o in t?t[o]:e[o]}e=e||{},t=t||{};var r,n=Object.create(null),a=[];for(var i in e)i in t?a.length&&(n[i]=a,a=[]):a.push(i);var l={};for(var s in t){if(n[s])for(r=0;re.scrollTop;function oc(e,t){var o,r;const{timeout:n,easing:a,style:i={}}=e;return{duration:null!=(o=i.transitionDuration)?o:"number"==typeof n?n:n[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}function rc(e){return Kn("MuiCollapse",e)}var nc=Xn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const ac=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],ic=Ps("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],"entered"===o.state&&t.entered,"exited"===o.state&&!o.in&&"0px"===o.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>E({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&E({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),lc=Ps("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>E({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),sc=Ps("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>E({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),cc=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiCollapse"}),{addEndListener:r,children:n,className:a,collapsedSize:l="0px",component:s,easing:c,in:d,onEnter:u,onEntered:p,onEntering:m,onExit:f,onExited:h,onExiting:g,orientation:b="vertical",style:v,timeout:y=ps.standard,TransitionComponent:x=Ks}=o,w=N(o,ac),S=E({},o,{orientation:b,collapsedSize:l}),C=(e=>{const{orientation:t,classes:o}=e;return Un({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},rc,o)})(S),k=Rs(),R=i.useRef(),M=i.useRef(null),T=i.useRef(),$="number"==typeof l?`${l}px`:l,P="horizontal"===b,I=P?"width":"height";i.useEffect((()=>()=>{clearTimeout(R.current)}),[]);const L=i.useRef(null),A=ko(t,L),O=e=>t=>{if(e){const o=L.current;void 0===t?e(o):e(o,t)}},z=()=>M.current?M.current[P?"clientWidth":"clientHeight"]:0,B=O(((e,t)=>{M.current&&P&&(M.current.style.position="absolute"),e.style[I]=$,u&&u(e,t)})),F=O(((e,t)=>{const o=z();M.current&&P&&(M.current.style.position="");const{duration:r,easing:n}=oc({style:v,timeout:y,easing:c},{mode:"enter"});if("auto"===y){const t=k.transitions.getAutoHeightDuration(o);e.style.transitionDuration=`${t}ms`,T.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[I]=`${o}px`,e.style.transitionTimingFunction=n,m&&m(e,t)})),D=O(((e,t)=>{e.style[I]="auto",p&&p(e,t)})),W=O((e=>{e.style[I]=`${z()}px`,f&&f(e)})),V=O(h),H=O((e=>{const t=z(),{duration:o,easing:r}=oc({style:v,timeout:y,easing:c},{mode:"exit"});if("auto"===y){const o=k.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${o}ms`,T.current=o}else e.style.transitionDuration="string"==typeof o?o:`${o}ms`;e.style[I]=$,e.style.transitionTimingFunction=r,g&&g(e)}));return ro(x,E({in:d,onEnter:B,onEntered:D,onEntering:F,onExit:W,onExited:V,onExiting:H,addEndListener:e=>{"auto"===y&&(R.current=setTimeout(e,T.current||0)),r&&r(L.current,e)},nodeRef:L,timeout:"auto"===y?null:y},w,{children:(e,t)=>ro(ic,E({as:s,className:Zr(C.root,a,{entered:C.entered,exited:!d&&"0px"===$&&C.hidden}[e]),style:E({[P?"minWidth":"minHeight"]:$},v),ownerState:E({},S,{state:e}),ref:A},t,{children:ro(lc,{ownerState:E({},S,{state:e}),className:C.wrapper,ref:M,children:ro(sc,{ownerState:E({},S,{state:e}),className:C.wrapperInner,children:n})})}))}))}));cc.muiSupportAuto=!0;var dc=cc;function uc(e){return Kn("MuiPaper",e)}var pc=Xn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const mc=["className","component","elevation","square","variant"],fc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},hc=Ps("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],!o.square&&t.rounded,"elevation"===o.variant&&t[`elevation${o.elevation}`]]}})((({theme:e,ownerState:t})=>E({backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${e.palette.divider}`},"elevation"===t.variant&&E({boxShadow:e.shadows[t.elevation]},"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ln("#fff",fc(t.elevation))}, ${Ln("#fff",fc(t.elevation))})`}))));var gc=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiPaper"}),{className:r,component:n="div",elevation:a=1,square:i=!1,variant:l="elevation"}=o,s=N(o,mc),c=E({},o,{component:n,elevation:a,square:i,variant:l}),d=(e=>{const{square:t,elevation:o,variant:r,classes:n}=e;return Un({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${o}`]},uc,n)})(c);return ro(hc,E({as:n,ownerState:c,className:Zr(d.root,r),ref:t},s))}));var bc=i.createContext({});function vc(e){return Kn("MuiAccordion",e)}var yc=Xn("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]);const xc=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],wc=Ps(gc,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${yc.region}`]:t.region},t.root,!o.square&&t.rounded,!o.disableGutters&&t.gutters]}})((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${yc.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${yc.disabled}`]:{backgroundColor:e.palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>E({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${yc.expanded}`]:{margin:"16px 0"}})));var Sc=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiAccordion"}),{children:r,className:n,defaultExpanded:a=!1,disabled:l=!1,disableGutters:s=!1,expanded:c,onChange:d,square:u=!1,TransitionComponent:p=dc,TransitionProps:m}=o,f=N(o,xc),[h,g]=So({controlled:c,default:a,name:"Accordion",state:"expanded"}),b=i.useCallback((e=>{g(!h),d&&d(e,!h)}),[h,d,g]),[v,...y]=i.Children.toArray(r),x=i.useMemo((()=>({expanded:h,disabled:l,disableGutters:s,toggle:b})),[h,l,s,b]),w=E({},o,{square:u,disabled:l,disableGutters:s,expanded:h}),S=(e=>{const{classes:t,square:o,expanded:r,disabled:n,disableGutters:a}=e;return Un({root:["root",!o&&"rounded",r&&"expanded",n&&"disabled",!a&&"gutters"],region:["region"]},vc,t)})(w);return no(wc,E({className:Zr(S.root,n),ref:t,ownerState:w,square:u},f,{children:[ro(bc.Provider,{value:x,children:v}),ro(p,E({in:h,timeout:"auto"},m,{children:ro("div",{"aria-labelledby":v.props.id,id:v.props["aria-controls"],role:"region",className:S.region,children:y})}))]}))}));function Cc(e){return Kn("MuiAccordionActions",e)}var kc=Xn("MuiAccordionActions",["root","spacing"]);const Rc=["className","disableSpacing"],Mc=Ps("div",{name:"MuiAccordionActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableSpacing&&t.spacing]}})((({ownerState:e})=>E({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})));var Tc=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiAccordionActions"}),{className:r,disableSpacing:n=!1}=o,a=N(o,Rc),i=E({},o,{disableSpacing:n}),l=(e=>{const{classes:t,disableSpacing:o}=e;return Un({root:["root",!o&&"spacing"]},Cc,t)})(i);return ro(Mc,E({className:Zr(l.root,r),ref:t,ownerState:i},a))}));function $c(e){return Kn("MuiAccordionDetails",e)}var Pc=Xn("MuiAccordionDetails",["root"]);const Ic=["className"],Lc=Ps("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)})));var Ec=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiAccordionDetails"}),{className:r}=o,n=N(o,Ic),a=o,i=(e=>{const{classes:t}=e;return Un({root:["root"]},$c,t)})(a);return ro(Lc,E({className:Zr(i.root,r),ref:t,ownerState:a},n))}));var Nc=Xn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Ac=["center","classes","className"];let Oc,zc,Bc,Fc,Dc=e=>e;const Wc=Ht(Oc||(Oc=Dc` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),Vc=Ht(zc||(zc=Dc` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),Hc=Ht(Bc||(Bc=Dc` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),Uc=Ps("span",{name:"MuiTouchRipple",slot:"Root",skipSx:!0})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),jc=Ps((function(e){const{className:t,classes:o,pulsate:r=!1,rippleX:n,rippleY:a,rippleSize:l,in:s,onExited:c,timeout:d}=e,[u,p]=i.useState(!1),m=Zr(t,o.ripple,o.rippleVisible,r&&o.ripplePulsate),f={width:l,height:l,top:-l/2+a,left:-l/2+n},h=Zr(o.child,u&&o.childLeaving,r&&o.childPulsate);return s||u||p(!0),i.useEffect((()=>{if(!s&&null!=c){const e=setTimeout(c,d);return()=>{clearTimeout(e)}}}),[c,s,d]),ro("span",{className:m,style:f,children:ro("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Fc||(Fc=Dc` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),Nc.rippleVisible,Wc,550,(({theme:e})=>e.transitions.easing.easeInOut),Nc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Nc.child,Nc.childLeaving,Vc,550,(({theme:e})=>e.transitions.easing.easeInOut),Nc.childPulsate,Hc,(({theme:e})=>e.transitions.easing.easeInOut));var Gc=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:n={},className:a}=o,l=N(o,Ac),[s,c]=i.useState([]),d=i.useRef(0),u=i.useRef(null);i.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const p=i.useRef(!1),m=i.useRef(null),f=i.useRef(null),h=i.useRef(null);i.useEffect((()=>()=>{clearTimeout(m.current)}),[]);const g=i.useCallback((e=>{const{pulsate:t,rippleX:o,rippleY:r,rippleSize:a,cb:i}=e;c((e=>[...e,ro(jc,{classes:{ripple:Zr(n.ripple,Nc.ripple),rippleVisible:Zr(n.rippleVisible,Nc.rippleVisible),ripplePulsate:Zr(n.ripplePulsate,Nc.ripplePulsate),child:Zr(n.child,Nc.child),childLeaving:Zr(n.childLeaving,Nc.childLeaving),childPulsate:Zr(n.childPulsate,Nc.childPulsate)},timeout:550,pulsate:t,rippleX:o,rippleY:r,rippleSize:a},d.current)])),d.current+=1,u.current=i}),[n]),b=i.useCallback(((e={},t={},o)=>{const{pulsate:n=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e.type&&p.current)return void(p.current=!1);"touchstart"===e.type&&(p.current=!0);const l=i?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,u;if(a||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),d=Math.round(s.height/2);else{const{clientX:t,clientY:o}=e.touches?e.touches[0]:e;c=Math.round(t-s.left),d=Math.round(o-s.top)}if(a)u=Math.sqrt((2*s.width**2+s.height**2)/3),u%2==0&&(u+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-d),d)+2;u=Math.sqrt(e**2+t**2)}e.touches?null===f.current&&(f.current=()=>{g({pulsate:n,rippleX:c,rippleY:d,rippleSize:u,cb:o})},m.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):g({pulsate:n,rippleX:c,rippleY:d,rippleSize:u,cb:o})}),[r,g]),v=i.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=i.useCallback(((e,t)=>{if(clearTimeout(m.current),"touchend"===e.type&&f.current)return f.current(),f.current=null,void(m.current=setTimeout((()=>{y(e,t)})));f.current=null,c((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return i.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),ro(Uc,E({className:Zr(n.root,Nc.root,a),ref:h},l,{children:ro(ec,{component:null,exit:!0,children:s})}))}));function _c(e){return Kn("MuiButtonBase",e)}var qc=Xn("MuiButtonBase",["root","disabled","focusVisible"]);const Kc=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","type"],Xc=Ps("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${qc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});var Yc=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:n=!1,children:a,className:l,component:s="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:u=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:f,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:w,onMouseDown:S,onMouseLeave:C,onMouseUp:k,onTouchEnd:R,onTouchMove:M,onTouchStart:T,tabIndex:$=0,TouchRippleProps:P,type:I}=o,L=N(o,Kc),A=i.useRef(null),O=i.useRef(null),{isFocusVisibleRef:z,onFocus:B,onBlur:F,ref:D}=No(),[W,V]=i.useState(!1);function H(e,t,o=u){return Co((r=>{t&&t(r);return!o&&O.current&&O.current[e](r),!0}))}c&&W&&V(!1),i.useImperativeHandle(r,(()=>({focusVisible:()=>{V(!0),A.current.focus()}})),[]),i.useEffect((()=>{W&&p&&!d&&O.current.pulsate()}),[d,p,W]);const U=H("start",S),j=H("stop",g),G=H("stop",b),_=H("stop",k),q=H("stop",(e=>{W&&e.preventDefault(),C&&C(e)})),K=H("start",T),X=H("stop",R),Y=H("stop",M),Z=H("stop",(e=>{F(e),!1===z.current&&V(!1),f&&f(e)}),!1),J=Co((e=>{A.current||(A.current=e.currentTarget),B(e),!0===z.current&&(V(!0),y&&y(e)),v&&v(e)})),Q=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ee=i.useRef(!1),te=Co((e=>{p&&!ee.current&&W&&O.current&&" "===e.key&&(ee.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&Q()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&Q()&&"Enter"===e.key&&!c&&(e.preventDefault(),h&&h(e))})),oe=Co((e=>{p&&" "===e.key&&O.current&&W&&!e.defaultPrevented&&(ee.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),w&&w(e),h&&e.target===e.currentTarget&&Q()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let re=s;"button"===re&&(L.href||L.to)&&(re=m);const ne={};"button"===re?(ne.type=void 0===I?"button":I,ne.disabled=c):(L.href||L.to||(ne.role="button"),c&&(ne["aria-disabled"]=c));const ae=ko(D,A),ie=ko(t,ae),[le,se]=i.useState(!1);i.useEffect((()=>{se(!0)}),[]);const ce=le&&!d&&!c,de=E({},o,{centerRipple:n,component:s,disabled:c,disableRipple:d,disableTouchRipple:u,focusRipple:p,tabIndex:$,focusVisible:W}),ue=(e=>{const{disabled:t,focusVisible:o,focusVisibleClassName:r,classes:n}=e,a=Un({root:["root",t&&"disabled",o&&"focusVisible"]},_c,n);return o&&r&&(a.root+=` ${r}`),a})(de);return no(Xc,E({as:re,className:Zr(ue.root,l),ownerState:de,onBlur:Z,onClick:h,onContextMenu:j,onFocus:J,onKeyDown:te,onKeyUp:oe,onMouseDown:U,onMouseLeave:q,onMouseUp:_,onDragLeave:G,onTouchEnd:X,onTouchMove:Y,onTouchStart:K,ref:ie,tabIndex:c?-1:$,type:I},ne,L,{children:[a,ce?ro(Gc,E({ref:O,center:n},P)):null]}))}));function Zc(e){return Kn("MuiAccordionSummary",e)}var Jc=Xn("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);const Qc=["children","className","expandIcon","focusVisibleClassName","onClick"],ed=Ps(Yc,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const o={duration:e.transitions.duration.shortest};return E({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],o),[`&.${Jc.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${Jc.disabled}`]:{opacity:e.palette.action.disabledOpacity},[`&:hover:not(.${Jc.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${Jc.expanded}`]:{minHeight:64}})})),td=Ps("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>E({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Jc.expanded}`]:{margin:"20px 0"}}))),od=Ps("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((({theme:e})=>({display:"flex",color:e.palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Jc.expanded}`]:{transform:"rotate(180deg)"}})));var rd=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiAccordionSummary"}),{children:r,className:n,expandIcon:a,focusVisibleClassName:l,onClick:s}=o,c=N(o,Qc),{disabled:d=!1,disableGutters:u,expanded:p,toggle:m}=i.useContext(bc),f=E({},o,{expanded:p,disabled:d,disableGutters:u}),h=(e=>{const{classes:t,expanded:o,disabled:r,disableGutters:n}=e;return Un({root:["root",o&&"expanded",r&&"disabled",!n&&"gutters"],focusVisible:["focusVisible"],content:["content",o&&"expanded",!n&&"contentGutters"],expandIconWrapper:["expandIconWrapper",o&&"expanded"]},Zc,t)})(f);return no(ed,E({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":p,className:Zr(h.root,n),focusVisibleClassName:Zr(h.focusVisible,l),onClick:e=>{m&&m(e),s&&s(e)},ref:t,ownerState:f},c,{children:[ro(td,{className:h.content,ownerState:f,children:r}),a&&ro(od,{className:h.expandIconWrapper,ownerState:f,children:a})]}))}));function nd(e){return Kn("MuiAlert",e)}var ad=Xn("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function id(e){return Kn("MuiIconButton",e)}var ld=Xn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const sd=["edge","children","className","color","disabled","disableFocusRipple","size"],cd=Ps(Yc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"default"!==o.color&&t[`color${po(o.color)}`],o.edge&&t[`edge${po(o.edge)}`],t[`size${po(o.size)}`]]}})((({theme:e,ownerState:t})=>E({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:Ln(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>E({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&E({color:e.palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:Ln(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${ld.disabled}`]:{backgroundColor:"transparent",color:e.palette.action.disabled}})));var dd,ud=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiIconButton"}),{edge:r=!1,children:n,className:a,color:i="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=o,d=N(o,sd),u=E({},o,{edge:r,color:i,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:o,color:r,edge:n,size:a}=e;return Un({root:["root",o&&"disabled","default"!==r&&`color${po(r)}`,n&&`edge${po(n)}`,`size${po(a)}`]},id,t)})(u);return ro(cd,E({className:Zr(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:u},d,{children:n}))})),pd=zs(ro("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),md=zs(ro("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),fd=zs(ro("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),hd=zs(ro("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),gd=zs(ro("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const bd=["action","children","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"],vd=Ps(gc,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`${o.variant}${po(o.color||o.severity)}`]]}})((({theme:e,ownerState:t})=>{const o="light"===e.palette.mode?En:Nn,r="light"===e.palette.mode?Nn:En,n=t.color||t.severity;return E({},e.typography.body2,{borderRadius:e.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"},n&&"standard"===t.variant&&{color:o(e.palette[n].light,.6),backgroundColor:r(e.palette[n].light,.9),[`& .${ad.icon}`]:{color:"dark"===e.palette.mode?e.palette[n].main:e.palette[n].light}},n&&"outlined"===t.variant&&{color:o(e.palette[n].light,.6),border:`1px solid ${e.palette[n].light}`,[`& .${ad.icon}`]:{color:"dark"===e.palette.mode?e.palette[n].main:e.palette[n].light}},n&&"filled"===t.variant&&{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:"dark"===e.palette.mode?e.palette[n].dark:e.palette[n].main})})),yd=Ps("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),xd=Ps("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),wd=Ps("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Sd={success:ro(pd,{fontSize:"inherit"}),warning:ro(md,{fontSize:"inherit"}),error:ro(fd,{fontSize:"inherit"}),info:ro(hd,{fontSize:"inherit"})};var Cd=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiAlert"}),{action:r,children:n,className:a,closeText:i="Close",color:l,icon:s,iconMapping:c=Sd,onClose:d,role:u="alert",severity:p="success",variant:m="standard"}=o,f=N(o,bd),h=E({},o,{color:l,severity:p,variant:m}),g=(e=>{const{variant:t,color:o,severity:r,classes:n}=e;return Un({root:["root",`${t}${po(o||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]},nd,n)})(h);return no(vd,E({role:u,square:!0,elevation:0,ownerState:h,className:Zr(g.root,a),ref:t},f,{children:[!1!==s?ro(yd,{ownerState:h,className:g.icon,children:s||c[p]||Sd[p]}):null,ro(xd,{ownerState:h,className:g.message,children:n}),null!=r?ro(wd,{className:g.action,children:r}):null,null==r&&d?ro(wd,{ownerState:h,className:g.action,children:ro(ud,{size:"small","aria-label":i,title:i,color:"inherit",onClick:d,children:dd||(dd=ro(gd,{fontSize:"small"}))})}):null]}))}));function kd(e){return Kn("MuiTypography",e)}var Rd=Xn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Md=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Td=Ps("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.variant&&t[o.variant],"inherit"!==o.align&&t[`align${po(o.align)}`],o.noWrap&&t.noWrap,o.gutterBottom&&t.gutterBottom,o.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>E({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),$d={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Pd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Id=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiTypography"}),r=(e=>Pd[e]||e)(o.color),n=Xr(E({},o,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=$d}=n,m=N(n,Md),f=E({},n,{align:a,color:r,className:i,component:l,gutterBottom:s,noWrap:c,paragraph:d,variant:u,variantMapping:p}),h=l||(d?"p":p[u]||$d[u])||"span",g=(e=>{const{align:t,gutterBottom:o,noWrap:r,paragraph:n,variant:a,classes:i}=e;return Un({root:["root",a,"inherit"!==e.align&&`align${po(t)}`,o&&"gutterBottom",r&&"noWrap",n&&"paragraph"]},kd,i)})(f);return ro(Td,E({as:h,ref:t,ownerState:f,className:Zr(g.root,i)},m))}));function Ld(e){return Kn("MuiAlertTitle",e)}var Ed=Xn("MuiAlertTitle",["root"]);const Nd=["className"],Ad=Ps(Id,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})));var Od=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiAlertTitle"}),{className:r}=o,n=N(o,Nd),a=o,i=(e=>{const{classes:t}=e;return Un({root:["root"]},Ld,t)})(a);return ro(Ad,E({gutterBottom:!0,component:"div",ownerState:a,ref:t,className:Zr(i.root,r)},n))}));function zd(e){return Kn("MuiAppBar",e)}var Bd=Xn("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const Fd=["className","color","enableColorOnDark","position"],Dd=Ps(gc,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`position${po(o.position)}`],t[`color${po(o.color)}`]]}})((({theme:e,ownerState:t})=>{const o="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return E({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:e.zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:e.zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:e.zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},"default"===t.color&&{backgroundColor:o,color:e.palette.getContrastText(o)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&E({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"}))}));var Wd=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiAppBar"}),{className:r,color:n="primary",enableColorOnDark:a=!1,position:i="fixed"}=o,l=N(o,Fd),s=E({},o,{color:n,position:i,enableColorOnDark:a}),c=(e=>{const{color:t,position:o,classes:r}=e;return Un({root:["root",`color${po(t)}`,`position${po(o)}`]},zd,r)})(s);return ro(Dd,E({square:!0,component:"header",ownerState:s,elevation:4,className:Zr(c.root,r,"fixed"===i&&"mui-fixed"),ref:t},l))}));var Vd=i.forwardRef((function(e,t){const o=cn();return ro(Zi,E({direction:null==o?void 0:o.direction},e,{ref:t}))}));function Hd(e){return Kn("MuiListSubheader",e)}var Ud=Xn("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const jd=["className","color","component","disableGutters","disableSticky","inset"],Gd=Ps("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"default"!==o.color&&t[`color${po(o.color)}`],!o.disableGutters&&t.gutters,o.inset&&t.inset,!o.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>E({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:e.palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:e.palette.background.paper})));var _d=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiListSubheader"}),{className:r,color:n="default",component:a="li",disableGutters:i=!1,disableSticky:l=!1,inset:s=!1}=o,c=N(o,jd),d=E({},o,{color:n,component:a,disableGutters:i,disableSticky:l,inset:s}),u=(e=>{const{classes:t,color:o,disableGutters:r,inset:n,disableSticky:a}=e;return Un({root:["root","default"!==o&&`color${po(o)}`,!r&&"gutters",n&&"inset",!a&&"sticky"]},Hd,t)})(d);return ro(Gd,E({as:a,className:Zr(u.root,r),ref:t,ownerState:d},c))})),qd=zs(ro("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Kd(e){return Kn("MuiChip",e)}var Xd=Xn("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","focusVisible"]);const Yd=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],Zd=Ps("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{color:r,clickable:n,onDelete:a,size:i,variant:l}=o;return[{[`& .${Xd.avatar}`]:t.avatar},{[`& .${Xd.avatar}`]:t[`avatar${po(i)}`]},{[`& .${Xd.avatar}`]:t[`avatarColor${po(r)}`]},{[`& .${Xd.icon}`]:t.icon},{[`& .${Xd.icon}`]:t[`icon${po(i)}`]},{[`& .${Xd.icon}`]:t[`iconColor${po(r)}`]},{[`& .${Xd.deleteIcon}`]:t.deleteIcon},{[`& .${Xd.deleteIcon}`]:t[`deleteIcon${po(i)}`]},{[`& .${Xd.deleteIcon}`]:t[`deleteIconColor${po(r)}`]},{[`& .${Xd.deleteIcon}`]:t[`deleteIconOutlinedColor${po(r)}`]},t.root,t[`size${po(i)}`],t[`color${po(r)}`],n&&t.clickable,n&&"default"!==r&&t[`clickableColor${po(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${po(r)}`],t[l],"outlined"===l&&t[`outlined${po(r)}`]]}})((({theme:e,ownerState:t})=>{const o=Ln(e.palette.text.primary,.26);return E({fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.text.primary,backgroundColor:e.palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Xd.disabled}`]:{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Xd.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},[`& .${Xd.avatarColorPrimary}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},[`& .${Xd.avatarColorSecondary}`]:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},[`& .${Xd.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Xd.icon}`]:E({color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},"default"!==t.color&&{color:"inherit"}),[`& .${Xd.deleteIcon}`]:E({WebkitTapHighlightColor:"transparent",color:o,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:Ln(o,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:Ln(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:e.palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.onDelete&&{[`&.${Xd.focusVisible}`]:{backgroundColor:Ln(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${Xd.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})}),(({theme:e,ownerState:t})=>E({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:Ln(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Xd.focusVisible}`]:{backgroundColor:Ln(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:e.shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${Xd.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})),(({theme:e,ownerState:t})=>E({},"outlined"===t.variant&&{backgroundColor:"transparent",border:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Xd.clickable}:hover`]:{backgroundColor:e.palette.action.hover},[`&.${Xd.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`& .${Xd.avatar}`]:{marginLeft:4},[`& .${Xd.avatarSmall}`]:{marginLeft:2},[`& .${Xd.icon}`]:{marginLeft:4},[`& .${Xd.iconSmall}`]:{marginLeft:2},[`& .${Xd.deleteIcon}`]:{marginRight:5},[`& .${Xd.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${Ln(e.palette[t.color].main,.7)}`,[`&.${Xd.clickable}:hover`]:{backgroundColor:Ln(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Xd.focusVisible}`]:{backgroundColor:Ln(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Xd.deleteIcon}`]:{color:Ln(e.palette[t.color].main,.7),"&:hover, &:active":{color:e.palette[t.color].main}}}))),Jd=Ps("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:o}=e,{size:r}=o;return[t.label,t[`label${po(r)}`]]}})((({ownerState:e})=>E({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.size&&{paddingLeft:8,paddingRight:8})));function Qd(e){return"Backspace"===e.key||"Delete"===e.key}var eu=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiChip"}),{avatar:r,className:n,clickable:a,color:l="default",component:s,deleteIcon:c,disabled:d=!1,icon:u,label:p,onClick:m,onDelete:f,onKeyDown:h,onKeyUp:g,size:b="medium",variant:v="filled"}=o,y=N(o,Yd),x=i.useRef(null),w=ko(x,t),S=e=>{e.stopPropagation(),f&&f(e)},C=!(!1===a||!m)||a,k="small"===b,R=C||f?Yc:s||"div",M=E({},o,{component:R,disabled:d,size:b,color:l,onDelete:!!f,clickable:C,variant:v}),T=(e=>{const{classes:t,disabled:o,size:r,color:n,onDelete:a,clickable:i,variant:l}=e;return Un({root:["root",l,o&&"disabled",`size${po(r)}`,`color${po(n)}`,i&&"clickable",i&&`clickableColor${po(n)}`,a&&"deletable",a&&`deletableColor${po(n)}`,`${l}${po(n)}`],label:["label",`label${po(r)}`],avatar:["avatar",`avatar${po(r)}`,`avatarColor${po(n)}`],icon:["icon",`icon${po(r)}`,`iconColor${po(n)}`],deleteIcon:["deleteIcon",`deleteIcon${po(r)}`,`deleteIconColor${po(n)}`,`deleteIconOutlinedColor${po(n)}`]},Kd,t)})(M),$=R===Yc?E({component:s||"div",focusVisibleClassName:T.focusVisible},f&&{disableRipple:!0}):{};let P=null;if(f){const e=Zr("default"!==l&&("outlined"===v?T[`deleteIconOutlinedColor${po(l)}`]:T[`deleteIconColor${po(l)}`]),k&&T.deleteIconSmall);P=c&&i.isValidElement(c)?i.cloneElement(c,{className:Zr(c.props.className,T.deleteIcon,e),onClick:S}):ro(qd,{className:Zr(T.deleteIcon,e),onClick:S})}let I=null;r&&i.isValidElement(r)&&(I=i.cloneElement(r,{className:Zr(T.avatar,r.props.className)}));let L=null;return u&&i.isValidElement(u)&&(L=i.cloneElement(u,{className:Zr(T.icon,u.props.className)})),no(Zd,E({as:R,className:Zr(T.root,n),disabled:!(!C||!d)||void 0,onClick:m,onKeyDown:e=>{e.currentTarget===e.target&&Qd(e)&&e.preventDefault(),h&&h(e)},onKeyUp:e=>{e.currentTarget===e.target&&(f&&Qd(e)?f(e):"Escape"===e.key&&x.current&&x.current.blur()),g&&g(e)},ref:w,ownerState:M},$,y,{children:[I||L,ro(Jd,{className:Zr(T.label),ownerState:M,children:p}),P]}))}));function tu(e){return Kn("MuiInput",e)}var ou=Xn("MuiInput",["root","formControl","focused","disabled","colorSecondary","underline","error","sizeSmall","multiline","fullWidth","input","inputSizeSmall","inputMultiline","inputTypeSearch"]);function ru(e){return Kn("MuiInputBase",e)}var nu=Xn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function au(e){return Kn("MuiOutlinedInput",e)}var iu=Xn("MuiOutlinedInput",["root","colorSecondary","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","notchedOutline","input","inputSizeSmall","inputMultiline","inputAdornedStart","inputAdornedEnd"]);function lu(e){return Kn("MuiFilledInput",e)}var su=Xn("MuiFilledInput",["root","colorSecondary","underline","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","hiddenLabel","input","inputSizeSmall","inputHiddenLabel","inputMultiline","inputAdornedStart","inputAdornedEnd"]),cu=zs(ro("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function du(e){return Kn("MuiAutocomplete",e)}var uu,pu,mu=Xn("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);const fu=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"],hu=Ps("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{fullWidth:r,hasClearIcon:n,hasPopupIcon:a,inputFocused:i,size:l}=o;return[{[`& .${mu.tag}`]:t.tag},{[`& .${mu.tag}`]:t[`tagSize${po(l)}`]},{[`& .${mu.inputRoot}`]:t.inputRoot},{[`& .${mu.input}`]:t.input},{[`& .${mu.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,n&&t.hasClearIcon]}})((({ownerState:e})=>E({[`&.${mu.focused} .${mu.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${mu.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${mu.tag}`]:E({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${mu.inputRoot}`]:{flexWrap:"wrap",[`.${mu.hasPopupIcon}&, .${mu.hasClearIcon}&`]:{paddingRight:30},[`.${mu.hasPopupIcon}.${mu.hasClearIcon}&`]:{paddingRight:56},[`& .${mu.input}`]:{width:0,minWidth:30}},[`& .${ou.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ou.root}.${nu.sizeSmall}`]:{[`& .${ou.input}`]:{padding:"2px 4px 3px 0"}},[`& .${iu.root}`]:{padding:9,[`.${mu.hasPopupIcon}&, .${mu.hasClearIcon}&`]:{paddingRight:39},[`.${mu.hasPopupIcon}.${mu.hasClearIcon}&`]:{paddingRight:65},[`& .${mu.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${mu.endAdornment}`]:{right:9}},[`& .${iu.root}.${nu.sizeSmall}`]:{padding:6,[`& .${mu.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${su.root}`]:{paddingTop:19,paddingLeft:8,[`.${mu.hasPopupIcon}&, .${mu.hasClearIcon}&`]:{paddingRight:39},[`.${mu.hasPopupIcon}.${mu.hasClearIcon}&`]:{paddingRight:65},[`& .${su.input}`]:{padding:"7px 4px"},[`& .${mu.endAdornment}`]:{right:9}},[`& .${su.root}.${nu.sizeSmall}`]:{paddingBottom:1,[`& .${su.input}`]:{padding:"2.5px 4px"}},[`& .${nu.hiddenLabel}`]:{paddingTop:8},[`& .${mu.input}`]:E({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})}))),gu=Ps("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),bu=Ps(ud,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),vu=Ps(ud,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>E({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})((({ownerState:e})=>E({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"}))),yu=Ps(Vd,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${mu.option}`]:t.option},t.popper,o.disablePortal&&t.popperDisablePortal]}})((({theme:e,ownerState:t})=>E({zIndex:e.zIndex.modal},t.disablePortal&&{position:"absolute"}))),xu=Ps(gc,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>E({},e.typography.body1,{overflow:"auto"}))),wu=Ps("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:e.palette.text.secondary,padding:"14px 16px"}))),Su=Ps("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:e.palette.text.secondary,padding:"14px 16px"}))),Cu=Ps("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",[`& .${mu.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${mu.focused}`]:{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`&.${mu.focusVisible}`]:{backgroundColor:e.palette.action.focus},'&[aria-selected="true"]':{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${mu.focused}`]:{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.palette.action.selected}},[`&.${mu.focusVisible}`]:{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),ku=Ps(_d,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:e.palette.background.paper,top:-8}))),Ru=Ps("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${mu.option}`]:{paddingLeft:24}});var Mu=i.forwardRef((function(e,t){var o;const r=Ms({props:e,name:"MuiAutocomplete"}),{autoComplete:n=!1,autoHighlight:a=!1,autoSelect:l=!1,blurOnSelect:s=!1,ChipProps:c,className:d,clearIcon:u=uu||(uu=ro(gd,{fontSize:"small"})),clearOnBlur:p=!r.freeSolo,clearOnEscape:m=!1,clearText:f="Clear",closeText:h="Close",componentsProps:g={},defaultValue:b=(r.multiple?[]:null),disableClearable:v=!1,disableCloseOnSelect:y=!1,disabled:x=!1,disabledItemsFocusable:w=!1,disableListWrap:S=!1,disablePortal:C=!1,filterSelectedOptions:k=!1,forcePopupIcon:R="auto",freeSolo:M=!1,fullWidth:T=!1,getLimitTagsText:$=(e=>`+${e}`),getOptionLabel:P=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:I,handleHomeEndKeys:L=!r.freeSolo,includeInputInList:A=!1,limitTags:O=-1,ListboxComponent:z="ul",ListboxProps:B,loading:F=!1,loadingText:D="Loading…",multiple:W=!1,noOptionsText:V="No options",openOnFocus:H=!1,openText:U="Open",PaperComponent:j=gc,PopperComponent:G=Vd,popupIcon:_=pu||(pu=ro(cu,{})),renderGroup:q,renderInput:K,renderOption:X,renderTags:Y,selectOnFocus:Z=!r.freeSolo,size:J="medium"}=r,Q=N(r,fu),{getRootProps:ee,getInputProps:te,getInputLabelProps:oe,getPopupIndicatorProps:re,getClearProps:ne,getTagProps:ae,getListboxProps:ie,getOptionProps:le,value:se,dirty:ce,id:de,popupOpen:ue,focused:pe,focusedTag:me,anchorEl:fe,setAnchorEl:he,inputValue:ge,groupedOptions:be}=Hn(E({},r,{componentName:"Autocomplete"})),ve=!v&&!x&&ce,ye=(!M||!0===R)&&!1!==R,xe=E({},r,{disablePortal:C,focused:pe,fullWidth:T,hasClearIcon:ve,hasPopupIcon:ye,inputFocused:-1===me,popupOpen:ue,size:J}),we=(e=>{const{classes:t,disablePortal:o,focused:r,fullWidth:n,hasClearIcon:a,hasPopupIcon:i,inputFocused:l,popupOpen:s,size:c}=e;return Un({root:["root",r&&"focused",n&&"fullWidth",a&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${po(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",s&&"popupIndicatorOpen"],popper:["popper",o&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},du,t)})(xe);let Se;if(W&&se.length>0){const e=e=>E({className:Zr(we.tag),disabled:x},ae(e));Se=Y?Y(se,e):se.map(((t,o)=>ro(eu,E({label:P(t),size:J},e({index:o}),c))))}if(O>-1&&Array.isArray(Se)){const e=Se.length-O;!pe&&e>0&&(Se=Se.splice(0,O),Se.push(ro("span",{className:we.tag,children:$(e)},Se.length)))}const Ce=q||(e=>no("li",{children:[ro(ku,{className:we.groupLabel,ownerState:xe,component:"div",children:e.group}),ro(Ru,{className:we.groupUl,ownerState:xe,children:e.children})]},e.key)),ke=X||((e,t)=>ro("li",E({},e,{children:P(t)}))),Re=(e,t)=>{const o=le({option:e,index:t});return ke(E({},o,{className:we.option}),e,{selected:o["aria-selected"],inputValue:ge})};return no(i.Fragment,{children:[ro(hu,E({ref:t,className:Zr(we.root,d),ownerState:xe},ee(Q),{children:K({id:de,disabled:x,fullWidth:!0,size:"small"===J?"small":void 0,InputLabelProps:oe(),InputProps:{ref:he,className:we.inputRoot,startAdornment:Se,endAdornment:no(gu,{className:we.endAdornment,ownerState:xe,children:[ve?ro(bu,E({},ne(),{"aria-label":f,title:f,ownerState:xe},g.clearIndicator,{className:Zr(we.clearIndicator,null==(o=g.clearIndicator)?void 0:o.className),children:u})):null,ye?ro(vu,E({},re(),{disabled:x,"aria-label":ue?h:U,title:ue?h:U,className:Zr(we.popupIndicator),ownerState:xe,children:_})):null]})},inputProps:E({className:Zr(we.input),disabled:x},te())})})),ue&&fe?ro(yu,{as:G,className:Zr(we.popper),disablePortal:C,style:{width:fe?fe.clientWidth:null},ownerState:xe,role:"presentation",anchorEl:fe,open:!0,children:no(xu,{as:j,className:we.paper,ownerState:xe,children:[F&&0===be.length?ro(wu,{className:we.loading,ownerState:xe,children:D}):null,0!==be.length||M||F?null:ro(Su,{className:we.noOptions,ownerState:xe,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:V}),be.length>0?ro(Cu,E({as:z,className:we.listbox,ownerState:xe},ie(),B,{children:be.map(((e,t)=>I?Ce({key:e.key,group:e.group,children:e.options.map(((t,o)=>Re(t,e.index+o)))}):Re(e,t)))})):null]})}):null]})})),Tu=zs(ro("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function $u(e){return Kn("MuiAvatar",e)}var Pu=Xn("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Iu=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Lu=Ps("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],o.colorDefault&&t.colorDefault]}})((({theme:e,ownerState:t})=>E({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===t.variant&&{borderRadius:e.shape.borderRadius},"square"===t.variant&&{borderRadius:0},t.colorDefault&&{color:e.palette.background.default,backgroundColor:"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600]}))),Eu=Ps("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Nu=Ps(Tu,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});var Au=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiAvatar"}),{alt:r,children:n,className:a,component:l="div",imgProps:s,sizes:c,src:d,srcSet:u,variant:p="circular"}=o,m=N(o,Iu);let f=null;const h=function({crossOrigin:e,referrerPolicy:t,src:o,srcSet:r}){const[n,a]=i.useState(!1);return i.useEffect((()=>{if(!o&&!r)return;a(!1);let n=!0;const i=new Image;return i.onload=()=>{n&&a("loaded")},i.onerror=()=>{n&&a("error")},i.crossOrigin=e,i.referrerPolicy=t,i.src=o,r&&(i.srcset=r),()=>{n=!1}}),[e,t,o,r]),n}(E({},s,{src:d,srcSet:u})),g=d||u,b=g&&"error"!==h,v=E({},o,{colorDefault:!b,component:l,variant:p}),y=(e=>{const{classes:t,variant:o,colorDefault:r}=e;return Un({root:["root",o,r&&"colorDefault"],img:["img"],fallback:["fallback"]},$u,t)})(v);return f=b?ro(Eu,E({alt:r,src:d,srcSet:u,sizes:c,ownerState:v,className:y.img},s)):null!=n?n:g&&r?r[0]:ro(Nu,{className:y.fallback}),ro(Lu,E({as:l,ownerState:v,className:Zr(y.root,a),ref:t},m,{children:f}))}));function Ou(e){return Kn("MuiAvatarGroup",e)}var zu=Xn("MuiAvatarGroup",["root","avatar"]);const Bu=["children","className","max","spacing","variant"],Fu={small:-16,medium:null},Du=Ps("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>E({[`& .${zu.avatar}`]:t.avatar},t.root)})((({theme:e})=>({[`& .${Pu.root}`]:{border:`2px solid ${e.palette.background.default}`,boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}))),Wu=Ps(Au,{name:"MuiAvatarGroup",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})((({theme:e})=>({border:`2px solid ${e.palette.background.default}`,boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}})));var Vu=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiAvatarGroup"}),{children:r,className:n,max:a=5,spacing:l="medium",variant:s="circular"}=o,c=N(o,Bu),d=a<2?2:a,u=E({},o,{max:a,spacing:l,variant:s}),p=(e=>{const{classes:t}=e;return Un({root:["root"],avatar:["avatar"]},Ou,t)})(u),m=i.Children.toArray(r).filter((e=>i.isValidElement(e))),f=m.length>d?m.length-d+1:0,h=l&&void 0!==Fu[l]?Fu[l]:-l;return no(Du,E({ownerState:u,className:Zr(p.root,n),ref:t},c,{children:[f?no(Wu,{ownerState:u,className:p.avatar,style:{marginLeft:h},variant:s,children:["+",f]}):null,m.slice(0,m.length-f).reverse().map((e=>i.cloneElement(e,{className:Zr(e.props.className,p.avatar),style:E({marginLeft:h},e.props.style),variant:e.props.variant||s})))]}))}));const Hu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Uu={entering:{opacity:1},entered:{opacity:1}},ju={enter:ps.enteringScreen,exit:ps.leavingScreen};var Gu=i.forwardRef((function(e,t){const{addEndListener:o,appear:r=!0,children:n,easing:a,in:l,onEnter:s,onEntered:c,onEntering:d,onExit:u,onExited:p,onExiting:m,style:f,timeout:h=ju,TransitionComponent:g=Ks}=e,b=N(e,Hu),v=Rs(),y=i.useRef(null),x=ko(n.ref,t),w=ko(y,x),S=e=>t=>{if(e){const o=y.current;void 0===t?e(o):e(o,t)}},C=S(d),k=S(((e,t)=>{tc(e);const o=oc({style:f,timeout:h,easing:a},{mode:"enter"});e.style.webkitTransition=v.transitions.create("opacity",o),e.style.transition=v.transitions.create("opacity",o),s&&s(e,t)})),R=S(c),M=S(m),T=S((e=>{const t=oc({style:f,timeout:h,easing:a},{mode:"exit"});e.style.webkitTransition=v.transitions.create("opacity",t),e.style.transition=v.transitions.create("opacity",t),u&&u(e)})),$=S(p);return ro(g,E({appear:r,in:l,nodeRef:y,onEnter:k,onEntered:R,onEntering:C,onExit:T,onExited:$,onExiting:M,addEndListener:e=>{o&&o(y.current,e)},timeout:h},b,{children:(e,t)=>i.cloneElement(n,E({style:E({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Uu[e],f,n.props.style),ref:w},t))}))}));const _u=["children","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],qu=Zn,Ku=Ps("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.invisible&&t.invisible]}})((({ownerState:e})=>E({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})));var Xu=i.forwardRef((function(e,t){var o;const r=Ms({props:e,name:"MuiBackdrop"}),{children:n,components:a={},componentsProps:i={},className:l,invisible:s=!1,open:c,transitionDuration:d,TransitionComponent:u=Gu}=r,p=N(r,_u),m=(e=>{const{classes:t}=e;return t})(E({},r,{invisible:s}));return ro(u,E({in:c,timeout:d},p,{children:ro(Qn,{className:l,invisible:s,components:E({Root:Ku},a),componentsProps:{root:E({},i.root,(!a.Root||!jn(a.Root))&&{ownerState:E({},null==(o=i.root)?void 0:o.ownerState)})},classes:m,ref:t,children:n})}))}));const Yu=["components","componentsProps","color","invisible","badgeContent","showZero","variant"],Zu=E({},ta,Xn("MuiBadge",["colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning"])),Ju=Ps("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Qu=Ps("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.badge,t[o.variant],t[`anchorOrigin${po(o.anchorOrigin.vertical)}${po(o.anchorOrigin.horizontal)}${po(o.overlap)}`],"default"!==o.color&&t[`color${po(o.color)}`],o.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>E({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Zu.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Zu.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Zu.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Zu.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Zu.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Zu.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Zu.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Zu.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})));var ep=i.forwardRef((function(e,t){var o,r;const n=Ms({props:e,name:"MuiBadge"}),{components:a={},componentsProps:i={},color:l="default",invisible:s,badgeContent:c,showZero:d=!1,variant:u="standard"}=n,p=N(n,Yu),m=Fo({color:l});let f=s;null==s&&(0===c&&!d||null==c&&"dot"!==u)&&(f=!0);const{color:h=l}=f?m:n,g=(e=>{const{color:t,classes:o={}}=e;return E({},o,{badge:Zr(o.badge,"default"!==t&&[ea(`color${po(t)}`),o[`color${po(t)}`]])})})(E({},n,{invisible:f,color:h}));return ro(ra,E({invisible:s,badgeContent:c,showZero:d,variant:u},p,{components:E({Root:Ju,Badge:Qu},a),componentsProps:{root:E({},i.root,(!a.Root||!jn(a.Root))&&{ownerState:E({},null==(o=i.root)?void 0:o.ownerState,{color:h})}),badge:E({},i.badge,(!a.Thumb||!jn(a.Thumb))&&{ownerState:E({},null==(r=i.badge)?void 0:r.ownerState,{color:h})})},classes:g,ref:t}))}));function tp(e){return Kn("MuiBottomNavigation",e)}var op=Xn("MuiBottomNavigation",["root"]);const rp=["children","className","component","onChange","showLabels","value"],np=Ps("div",{name:"MuiBottomNavigation",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",justifyContent:"center",height:56,backgroundColor:e.palette.background.paper})));var ap=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiBottomNavigation"}),{children:r,className:n,component:a="div",onChange:l,showLabels:s=!1,value:c}=o,d=N(o,rp),u=E({},o,{component:a,showLabels:s}),p=(e=>{const{classes:t}=e;return Un({root:["root"]},tp,t)})(u);return ro(np,E({as:a,className:Zr(p.root,n),ref:t,ownerState:u},d,{children:i.Children.map(r,((e,t)=>{if(!i.isValidElement(e))return null;const o=void 0===e.props.value?t:e.props.value;return i.cloneElement(e,{selected:o===c,showLabel:void 0!==e.props.showLabel?e.props.showLabel:s,value:o,onChange:l})}))}))}));function ip(e){return Kn("MuiBottomNavigationAction",e)}var lp=Xn("MuiBottomNavigationAction",["root","iconOnly","selected","label"]);const sp=["className","icon","label","onChange","onClick","selected","showLabel","value"],cp=Ps(Yc,{name:"MuiBottomNavigationAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.showLabel&&!o.selected&&t.iconOnly]}})((({theme:e,ownerState:t})=>E({transition:e.transitions.create(["color","padding-top"],{duration:e.transitions.duration.short}),padding:"6px 12px 8px",minWidth:80,maxWidth:168,color:e.palette.text.secondary,flexDirection:"column",flex:"1"},!t.showLabel&&!t.selected&&{paddingTop:16},{[`&.${lp.selected}`]:{paddingTop:6,color:e.palette.primary.main}}))),dp=Ps("span",{name:"MuiBottomNavigationAction",slot:"Label",overridesResolver:(e,t)=>t.label})((({theme:e,ownerState:t})=>E({fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s"},!t.showLabel&&!t.selected&&{opacity:0,transitionDelay:"0s"},{[`&.${lp.selected}`]:{fontSize:e.typography.pxToRem(14)}})));var up=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiBottomNavigationAction"}),{className:r,icon:n,label:a,onChange:i,onClick:l,value:s}=o,c=N(o,sp),d=o,u=(e=>{const{classes:t,showLabel:o,selected:r}=e;return Un({root:["root",!o&&!r&&"iconOnly",r&&"selected"],label:["label",!o&&!r&&"iconOnly",r&&"selected"]},ip,t)})(d);return no(cp,E({ref:t,className:Zr(u.root,r),focusRipple:!0,onClick:e=>{i&&i(e,s),l&&l(e)},ownerState:d},c,{children:[n,ro(dp,{className:u.label,ownerState:d,children:a})]}))}));var pp=function(e={}){const{defaultTheme:t,defaultClassName:o="MuiBox-root",generateClassName:r}=e,n=lo("div")(qr);return i.forwardRef((function(e,a){const i=un(t),l=Xr(e),{className:s,component:c="div"}=l,d=N(l,pn);return ro(n,E({as:c,ref:a,className:Zr(s,r?r(o):o),theme:i},d))}))}({defaultTheme:vs(),defaultClassName:"MuiBox-root",generateClassName:_n.generate}),mp=zs(ro("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");const fp=Ps(Yc,{skipSx:!0})((({theme:e})=>E({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},"light"===e.palette.mode?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":E({},"light"===e.palette.mode?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":E({boxShadow:e.shadows[0]},"light"===e.palette.mode?{backgroundColor:An(e.palette.grey[200],.12)}:{backgroundColor:An(e.palette.grey[600],.12)})}))),hp=Ps(mp)({width:24,height:16});function gp(e){return ro("li",{children:ro(fp,E({focusRipple:!0},e,{ownerState:e,children:ro(hp,{ownerState:e})}))})}function bp(e){return Kn("MuiBreadcrumbs",e)}var vp=Xn("MuiBreadcrumbs",["root","ol","li","separator"]);const yp=["children","className","component","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],xp=Ps(Id,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${vp.li}`]:t.li},t.root]})({}),wp=Ps("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),Sp=Ps("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function Cp(e,t,o,r){return e.reduce(((n,a,i)=>(i{const{classes:t}=e;return Un({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},bp,t)})(h),b=i.useRef(null),v=i.Children.toArray(r).filter((e=>i.isValidElement(e))).map(((e,t)=>ro("li",{className:g.li,children:e},`child-${t}`)));return ro(xp,E({ref:t,component:a,color:"text.secondary",className:Zr(g.root,n),ownerState:h},p,{children:ro(wp,{className:g.ol,ref:b,ownerState:h,children:Cp(m||d&&v.length<=d?v:(e=>c+s>=e.length?e:[...e.slice(0,c),ro(gp,{"aria-label":l,onClick:()=>{f(!0);const e=b.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis"),...e.slice(e.length-s,e.length)])(v),g.separator,u,h)})}))}));function Rp(e){return Kn("MuiButton",e)}var Mp=Xn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","contained","containedInherit","containedPrimary","containedSecondary","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Tp=i.createContext({});const $p=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Pp=e=>E({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Ip=Ps(Yc,{shouldForwardProp:e=>Ts(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`${o.variant}${po(o.color)}`],t[`size${po(o.size)}`],t[`${o.variant}Size${po(o.size)}`],"inherit"===o.color&&t.colorInherit,o.disableElevation&&t.disableElevation,o.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>E({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":E({textDecoration:"none",backgroundColor:Ln(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:Ln(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${e.palette[t.color].main}`,backgroundColor:Ln(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.palette[t.color].dark,"@media (hover: none)":{backgroundColor:e.palette[t.color].main}}),"&:active":E({},"contained"===t.variant&&{boxShadow:e.shadows[8]}),[`&.${Mp.focusVisible}`]:E({},"contained"===t.variant&&{boxShadow:e.shadows[6]}),[`&.${Mp.disabled}`]:E({color:e.palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${e.palette.action.disabledBackground}`},"outlined"===t.variant&&"secondary"===t.color&&{border:`1px solid ${e.palette.action.disabled}`},"contained"===t.variant&&{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"outlined"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${Ln(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].contrastText,backgroundColor:e.palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Mp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Mp.disabled}`]:{boxShadow:"none"}})),Lp=Ps("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.startIcon,t[`iconSize${po(o.size)}`]]}})((({ownerState:e})=>E({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Pp(e)))),Ep=Ps("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.endIcon,t[`iconSize${po(o.size)}`]]}})((({ownerState:e})=>E({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Pp(e))));var Np=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiButton"}),{className:r,color:n,disabled:a,disableElevation:l,disableFocusRipple:s,disableRipple:c,fullWidth:d,size:u,variant:p}=i.useContext(Tp),{children:m,className:f,color:h,component:g="button",disabled:b,disableElevation:v,disableFocusRipple:y,disableRipple:x,endIcon:w,focusVisibleClassName:S,fullWidth:C,size:k,startIcon:R,type:M,variant:T}=o,$=N(o,$p),P=b||a||!1,I=y||s||!1,L=x||c||!1,A=E({},o,{color:h||n||"primary",component:g,disabled:P,disableElevation:v||l||!1,disableFocusRipple:I,fullWidth:C||d||!1,size:k||u||"medium",type:M,variant:T||p||"text"}),O=(e=>{const{color:t,disableElevation:o,fullWidth:r,size:n,variant:a,classes:i}=e;return E({},i,Un({root:["root",a,`${a}${po(t)}`,`size${po(n)}`,`${a}Size${po(n)}`,"inherit"===t&&"colorInherit",o&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${po(n)}`],endIcon:["endIcon",`iconSize${po(n)}`]},Rp,i))})(A),z=R&&ro(Lp,{className:O.startIcon,ownerState:A,children:R}),B=w&&ro(Ep,{className:O.endIcon,ownerState:A,children:w});return no(Ip,E({ownerState:A,className:Zr(f,r),component:g,disabled:P,disableRipple:L,focusRipple:!I,focusVisibleClassName:Zr(O.focusVisible,S),ref:t,type:M},$,{classes:O,children:[z,m,B]}))}));function Ap(e){return Kn("MuiButtonGroup",e)}var Op=Xn("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary"]);const zp=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],Bp=Ps("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${Op.grouped}`]:t.grouped},{[`& .${Op.grouped}`]:t[`grouped${po(o.orientation)}`]},{[`& .${Op.grouped}`]:t[`grouped${po(o.variant)}`]},{[`& .${Op.grouped}`]:t[`grouped${po(o.variant)}${po(o.orientation)}`]},{[`& .${Op.grouped}`]:t[`grouped${po(o.variant)}${po(o.color)}`]},t.root,t[o.variant],!0===o.disableElevation&&t.disableElevation,o.fullWidth&&t.fullWidth,"vertical"===o.orientation&&t.vertical]}})((({theme:e,ownerState:t})=>E({display:"inline-flex",borderRadius:e.shape.borderRadius},"contained"===t.variant&&{boxShadow:e.shadows[2]},t.disableElevation&&{boxShadow:"none"},t.fullWidth&&{width:"100%"},"vertical"===t.orientation&&{flexDirection:"column"},{[`& .${Op.grouped}`]:E({minWidth:40,"&:not(:first-of-type)":E({},"horizontal"===t.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===t.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===t.variant&&"horizontal"===t.orientation&&{marginLeft:-1},"outlined"===t.variant&&"vertical"===t.orientation&&{marginTop:-1}),"&:not(:last-of-type)":E({},"horizontal"===t.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===t.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===t.variant&&"horizontal"===t.orientation&&{borderRight:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"text"===t.variant&&"vertical"===t.orientation&&{borderBottom:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"text"===t.variant&&"inherit"!==t.color&&{borderColor:Ln(e.palette[t.color].main,.5)},"outlined"===t.variant&&"horizontal"===t.orientation&&{borderRightColor:"transparent"},"outlined"===t.variant&&"vertical"===t.orientation&&{borderBottomColor:"transparent"},"contained"===t.variant&&"horizontal"===t.orientation&&{borderRight:`1px solid ${e.palette.grey[400]}`,[`&.${Op.disabled}`]:{borderRight:`1px solid ${e.palette.action.disabled}`}},"contained"===t.variant&&"vertical"===t.orientation&&{borderBottom:`1px solid ${e.palette.grey[400]}`,[`&.${Op.disabled}`]:{borderBottom:`1px solid ${e.palette.action.disabled}`}},"contained"===t.variant&&"inherit"!==t.color&&{borderColor:e.palette[t.color].dark},{"&:hover":E({},"outlined"===t.variant&&"horizontal"===t.orientation&&{borderRightColor:"currentColor"},"outlined"===t.variant&&"vertical"===t.orientation&&{borderBottomColor:"currentColor"})}),"&:hover":E({},"contained"===t.variant&&{boxShadow:"none"})},"contained"===t.variant&&{boxShadow:"none"})})));var Fp=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiButtonGroup"}),{children:r,className:n,color:a="primary",component:l="div",disabled:s=!1,disableElevation:c=!1,disableFocusRipple:d=!1,disableRipple:u=!1,fullWidth:p=!1,orientation:m="horizontal",size:f="medium",variant:h="outlined"}=o,g=N(o,zp),b=E({},o,{color:a,component:l,disabled:s,disableElevation:c,disableFocusRipple:d,disableRipple:u,fullWidth:p,orientation:m,size:f,variant:h}),v=(e=>{const{classes:t,color:o,disabled:r,disableElevation:n,fullWidth:a,orientation:i,variant:l}=e;return Un({root:["root",l,"vertical"===i&&"vertical",a&&"fullWidth",n&&"disableElevation"],grouped:["grouped",`grouped${po(i)}`,`grouped${po(l)}`,`grouped${po(l)}${po(i)}`,`grouped${po(l)}${po(o)}`,r&&"disabled"]},Ap,t)})(b),y=i.useMemo((()=>({className:v.grouped,color:a,disabled:s,disableElevation:c,disableFocusRipple:d,disableRipple:u,fullWidth:p,size:f,variant:h})),[a,s,c,d,u,p,f,h,v.grouped]);return ro(Bp,E({as:l,role:"group",className:Zr(v.root,n),ref:t,ownerState:b},g,{children:ro(Tp.Provider,{value:y,children:r})}))}));function Dp(e){return Kn("MuiCard",e)}var Wp=Xn("MuiCard",["root"]);const Vp=["className","raised"],Hp=Ps(gc,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"})));var Up=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiCard"}),{className:r,raised:n=!1}=o,a=N(o,Vp),i=E({},o,{raised:n}),l=(e=>{const{classes:t}=e;return Un({root:["root"]},Dp,t)})(i);return ro(Hp,E({className:Zr(l.root,r),elevation:n?8:void 0,ref:t,ownerState:i},a))}));function jp(e){return Kn("MuiCardActionArea",e)}var Gp=Xn("MuiCardActionArea",["root","focusVisible","focusHighlight"]);const _p=["children","className","focusVisibleClassName"],qp=Ps(Yc,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"block",textAlign:"inherit",width:"100%",[`&:hover .${Gp.focusHighlight}`]:{opacity:e.palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${Gp.focusVisible} .${Gp.focusHighlight}`]:{opacity:e.palette.action.focusOpacity}}))),Kp=Ps("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})((({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})})));var Xp=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiCardActionArea"}),{children:r,className:n,focusVisibleClassName:a}=o,i=N(o,_p),l=o,s=(e=>{const{classes:t}=e;return Un({root:["root"],focusHighlight:["focusHighlight"]},jp,t)})(l);return no(qp,E({className:Zr(s.root,n),focusVisibleClassName:Zr(a,s.focusVisible),ref:t,ownerState:l},i,{children:[r,ro(Kp,{className:s.focusHighlight,ownerState:l})]}))}));function Yp(e){return Kn("MuiCardActions",e)}var Zp=Xn("MuiCardActions",["root","spacing"]);const Jp=["disableSpacing","className"],Qp=Ps("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableSpacing&&t.spacing]}})((({ownerState:e})=>E({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})));var em=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiCardActions"}),{disableSpacing:r=!1,className:n}=o,a=N(o,Jp),i=E({},o,{disableSpacing:r}),l=(e=>{const{classes:t,disableSpacing:o}=e;return Un({root:["root",!o&&"spacing"]},Yp,t)})(i);return ro(Qp,E({className:Zr(l.root,n),ownerState:i,ref:t},a))}));function tm(e){return Kn("MuiCardContent",e)}var om=Xn("MuiCardContent",["root"]);const rm=["className","component"],nm=Ps("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}})));var am=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiCardContent"}),{className:r,component:n="div"}=o,a=N(o,rm),i=E({},o,{component:n}),l=(e=>{const{classes:t}=e;return Un({root:["root"]},tm,t)})(i);return ro(nm,E({as:n,className:Zr(l.root,r),ownerState:i,ref:t},a))}));function im(e){return Kn("MuiCardHeader",e)}var lm=Xn("MuiCardHeader",["root","avatar","action","content","title","subheader"]);const sm=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],cm=Ps("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>E({[`& .${lm.title}`]:t.title,[`& .${lm.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),dm=Ps("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),um=Ps("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),pm=Ps("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"});var mm=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiCardHeader"}),{action:r,avatar:n,className:a,component:i="div",disableTypography:l=!1,subheader:s,subheaderTypographyProps:c,title:d,titleTypographyProps:u}=o,p=N(o,sm),m=E({},o,{component:i,disableTypography:l}),f=(e=>{const{classes:t}=e;return Un({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},im,t)})(m);let h=d;null==h||h.type===Id||l||(h=ro(Id,E({variant:n?"body2":"h5",className:f.title,component:"span",display:"block"},u,{children:h})));let g=s;return null==g||g.type===Id||l||(g=ro(Id,E({variant:n?"body2":"body1",className:f.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:g}))),no(cm,E({className:Zr(f.root,a),as:i,ref:t,ownerState:m},p,{children:[n&&ro(dm,{className:f.avatar,ownerState:m,children:n}),no(pm,{className:f.content,ownerState:m,children:[h,g]}),r&&ro(um,{className:f.action,ownerState:m,children:r})]}))}));function fm(e){return Kn("MuiCardMedia",e)}var hm=Xn("MuiCardMedia",["root","media","img"]);const gm=["children","className","component","image","src","style"],bm=Ps("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{isMediaComponent:r,isImageComponent:n}=o;return[t.root,r&&t.media,n&&t.img]}})((({ownerState:e})=>E({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"}))),vm=["video","audio","picture","iframe","img"],ym=["picture","img"];var xm=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiCardMedia"}),{children:r,className:n,component:a="div",image:i,src:l,style:s}=o,c=N(o,gm),d=-1!==vm.indexOf(a),u=!d&&i?E({backgroundImage:`url("${i}")`},s):s,p=E({},o,{component:a,isMediaComponent:d,isImageComponent:-1!==ym.indexOf(a)}),m=(e=>{const{classes:t,isMediaComponent:o,isImageComponent:r}=e;return Un({root:["root",o&&"media",r&&"img"]},fm,t)})(p);return ro(bm,E({className:Zr(m.root,n),as:a,role:!d&&i?"img":void 0,ref:t,style:u,ownerState:p,src:d?i||l:void 0},c,{children:r}))}));var wm=i.createContext();function Sm(){return i.useContext(wm)}function Cm(e){return Kn("PrivateSwitchBase",e)}Xn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const km=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Rm=Ps(Yc,{skipSx:!0})((({ownerState:e})=>E({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Mm=Ps("input",{skipSx:!0})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var Tm=i.forwardRef((function(e,t){const{autoFocus:o,checked:r,checkedIcon:n,className:a,defaultChecked:i,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:d,id:u,inputProps:p,inputRef:m,name:f,onBlur:h,onChange:g,onFocus:b,readOnly:v,required:y,tabIndex:x,type:w,value:S}=e,C=N(e,km),[k,R]=So({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),M=Sm();let T=l;M&&void 0===T&&(T=M.disabled);const $="checkbox"===w||"radio"===w,P=E({},e,{checked:k,disabled:T,disableFocusRipple:s,edge:c}),I=(e=>{const{classes:t,checked:o,disabled:r,edge:n}=e;return Un({root:["root",o&&"checked",r&&"disabled",n&&`edge${po(n)}`],input:["input"]},Cm,t)})(P);return no(Rm,E({component:"span",className:Zr(I.root,a),centerRipple:!0,focusRipple:!s,disabled:T,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),M&&M.onFocus&&M.onFocus(e)},onBlur:e=>{h&&h(e),M&&M.onBlur&&M.onBlur(e)},ownerState:P,ref:t},C,{children:[ro(Mm,E({autoFocus:o,checked:r,defaultChecked:i,className:I.input,disabled:T,id:$&&u,name:f,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;R(t),g&&g(e,t)},readOnly:v,ref:m,required:y,ownerState:P,tabIndex:x,type:w},"checkbox"===w&&void 0===S?{}:{value:S},p)),k?n:d]}))})),$m=zs(ro("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Pm=zs(ro("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Im=zs(ro("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Lm(e){return Kn("MuiCheckbox",e)}var Em=Xn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);const Nm=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],Am=Ps(Tm,{shouldForwardProp:e=>Ts(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.indeterminate&&t.indeterminate,"default"!==o.color&&t[`color${po(o.color)}`]]}})((({theme:e,ownerState:t})=>E({color:e.palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:Ln("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Em.checked}, &.${Em.indeterminate}`]:{color:e.palette[t.color].main},[`&.${Em.disabled}`]:{color:e.palette.action.disabled}}))),Om=ro(Pm,{}),zm=ro($m,{}),Bm=ro(Im,{});var Fm=i.forwardRef((function(e,t){var o,r;const n=Ms({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Om,color:l="primary",icon:s=zm,indeterminate:c=!1,indeterminateIcon:d=Bm,inputProps:u,size:p="medium"}=n,m=N(n,Nm),f=c?d:s,h=c?d:a,g=E({},n,{color:l,indeterminate:c,size:p}),b=(e=>{const{classes:t,indeterminate:o,color:r}=e;return E({},t,Un({root:["root",o&&"indeterminate",`color${po(r)}`]},Lm,t))})(g);return ro(Am,E({type:"checkbox",inputProps:E({"data-indeterminate":c},u),icon:i.cloneElement(f,{fontSize:null!=(o=f.props.fontSize)?o:p}),checkedIcon:i.cloneElement(h,{fontSize:null!=(r=h.props.fontSize)?r:p}),ownerState:g,ref:t},m,{classes:b}))}));function Dm(e){return Kn("MuiCircularProgress",e)}var Wm=Xn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Vm=["className","color","disableShrink","size","style","thickness","value","variant"];let Hm,Um,jm,Gm,_m=e=>e;const qm=44,Km=Ht(Hm||(Hm=_m` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),Xm=Ht(Um||(Um=_m` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),Ym=Ps("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`color${po(o.color)}`]]}})((({ownerState:e,theme:t})=>E({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:t.palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&Vt(jm||(jm=_m` + animation: ${0} 1.4s linear infinite; + `),Km))),Zm=Ps("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Jm=Ps("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.circle,t[`circle${po(o.variant)}`],o.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>E({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&Vt(Gm||(Gm=_m` + animation: ${0} 1.4s ease-in-out infinite; + `),Xm)));var Qm=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiCircularProgress"}),{className:r,color:n="primary",disableShrink:a=!1,size:i=40,style:l,thickness:s=3.6,value:c=0,variant:d="indeterminate"}=o,u=N(o,Vm),p=E({},o,{color:n,disableShrink:a,size:i,thickness:s,value:c,variant:d}),m=(e=>{const{classes:t,variant:o,color:r,disableShrink:n}=e;return Un({root:["root",o,`color${po(r)}`],svg:["svg"],circle:["circle",`circle${po(o)}`,n&&"circleDisableShrink"]},Dm,t)})(p),f={},h={},g={};if("determinate"===d){const e=2*Math.PI*((qm-s)/2);f.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),f.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,h.transform="rotate(-90deg)"}return ro(Ym,E({className:Zr(m.root,r),style:E({width:i,height:i},h,l),ownerState:p,ref:t,role:"progressbar"},g,u,{children:ro(Zm,{className:m.svg,ownerState:p,viewBox:"22 22 44 44",children:ro(Jm,{className:m.circle,style:f,ownerState:p,cx:qm,cy:qm,r:(qm-s)/2,fill:"none",strokeWidth:s})})}))}));function ef(e){return e.substring(2).toLowerCase()}function tf(e){const{children:t,disableReactTree:o=!1,mouseEvent:r="onClick",onClickAway:n,touchEvent:a="onTouchEnd"}=e,l=i.useRef(!1),s=i.useRef(null),c=i.useRef(!1),d=i.useRef(!1);i.useEffect((()=>(setTimeout((()=>{c.current=!0}),0),()=>{c.current=!1})),[]);const u=ko(t.ref,s),p=Co((e=>{const t=d.current;d.current=!1;const r=go(s.current);if(!c.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!r.documentElement.contains(e.target)||s.current.contains(e.target),a||!o&&t||n(e)})),m=e=>o=>{d.current=!0;const r=t.props[e];r&&r(o)},f={ref:u};return!1!==a&&(f[a]=m(a)),i.useEffect((()=>{if(!1!==a){const e=ef(a),t=go(s.current),o=()=>{l.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",o),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",o)}}}),[p,a]),!1!==r&&(f[r]=m(r)),i.useEffect((()=>{if(!1!==r){const e=ef(r),t=go(s.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,r]),ro(i.Fragment,{children:i.cloneElement(t,f)})}function of(e){return Kn("MuiContainer",e)}var rf=Xn("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]);const nf=["className","component","disableGutters","fixed","maxWidth"],af=Ps("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`maxWidth${po(String(o.maxWidth))}`],o.fixed&&t.fixed,o.disableGutters&&t.disableGutters]}})((({theme:e,ownerState:t})=>E({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),(({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce(((t,o)=>{const r=e.breakpoints.values[o];return 0!==r&&(t[e.breakpoints.up(o)]={maxWidth:`${r}${e.breakpoints.unit}`}),t}),{})),(({theme:e,ownerState:t})=>E({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}})));var lf=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiContainer"}),{className:r,component:n="div",disableGutters:a=!1,fixed:i=!1,maxWidth:l="lg"}=o,s=N(o,nf),c=E({},o,{component:n,disableGutters:a,fixed:i,maxWidth:l}),d=(e=>{const{classes:t,fixed:o,disableGutters:r,maxWidth:n}=e;return Un({root:["root",n&&`maxWidth${po(String(n))}`,o&&"fixed",r&&"disableGutters"]},of,t)})(c);return ro(af,E({as:n,ownerState:c,className:Zr(d.root,r),ref:t},s))}));function sf(e){return ro(io,E({},e,{defaultTheme:ks}))}const cf=(e,t)=>E({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&{colorScheme:e.palette.mode}),df=e=>E({color:e.palette.text.primary},e.typography.body1,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}});const uf={track:"#2b2b2b",thumb:"#6b6b6b",active:"#959595"};const pf=["BackdropComponent","closeAfterTransition","children","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted"],mf=Ea,ff=Ps("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.open&&o.exited&&t.hidden]}})((({theme:e,ownerState:t})=>E({position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),hf=Ps(Xu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1});var gf=i.forwardRef((function(e,t){var o;const r=Ms({name:"MuiModal",props:e}),{BackdropComponent:n=hf,closeAfterTransition:a=!1,children:l,components:s={},componentsProps:c={},disableAutoFocus:d=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:p=!1,disablePortal:m=!1,disableRestoreFocus:f=!1,disableScrollLock:h=!1,hideBackdrop:g=!1,keepMounted:b=!1}=r,v=N(r,pf),[y,x]=i.useState(!0),w={closeAfterTransition:a,disableAutoFocus:d,disableEnforceFocus:u,disableEscapeKeyDown:p,disablePortal:m,disableRestoreFocus:f,disableScrollLock:h,hideBackdrop:g,keepMounted:b},S=(e=>e.classes)(E({},r,w,{exited:y}));return ro(Oa,E({components:E({Root:ff},s),componentsProps:{root:E({},c.root,(!s.Root||!jn(s.Root))&&{ownerState:E({},null==(o=c.root)?void 0:o.ownerState)})},BackdropComponent:n,onTransitionEnter:()=>x(!1),onTransitionExited:()=>x(!0),ref:t},v,{classes:S},w,{children:l}))}));function bf(e){return Kn("MuiDialog",e)}var vf=Xn("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var yf=t.createContext({});const xf=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],wf=Ps(Xu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Sf=Ps(gf,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Cf=Ps("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.container,t[`scroll${po(o.scroll)}`]]}})((({ownerState:e})=>E({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),kf=Ps(gc,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.paper,t[`scrollPaper${po(o.scroll)}`],t[`paperWidth${po(String(o.maxWidth))}`],o.fullWidth&&t.paperFullWidth,o.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>E({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${vf.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${vf.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${vf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),Rf={enter:ps.enteringScreen,exit:ps.leavingScreen};var Mf=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiDialog"}),{"aria-describedby":r,"aria-labelledby":n,BackdropComponent:a,BackdropProps:l,children:s,className:c,disableEscapeKeyDown:d=!1,fullScreen:u=!1,fullWidth:p=!1,maxWidth:m="sm",onBackdropClick:f,onClose:h,open:g,PaperComponent:b=gc,PaperProps:v={},scroll:y="paper",TransitionComponent:x=Gu,transitionDuration:w=Rf,TransitionProps:S}=o,C=N(o,xf),k=E({},o,{disableEscapeKeyDown:d,fullScreen:u,fullWidth:p,maxWidth:m,scroll:y}),R=(e=>{const{classes:t,scroll:o,maxWidth:r,fullWidth:n,fullScreen:a}=e;return Un({root:["root"],container:["container",`scroll${po(o)}`],paper:["paper",`paperScroll${po(o)}`,`paperWidth${po(String(r))}`,n&&"paperFullWidth",a&&"paperFullScreen"]},bf,t)})(k),M=i.useRef(),T=wo(n),$=i.useMemo((()=>({titleId:T})),[T]);return ro(Sf,E({className:Zr(R.root,c),BackdropProps:E({transitionDuration:w,as:a},l),closeAfterTransition:!0,BackdropComponent:wf,disableEscapeKeyDown:d,onClose:h,open:g,ref:t,onClick:e=>{M.current&&(M.current=null,f&&f(e),h&&h(e,"backdropClick"))},ownerState:k},C,{children:ro(x,E({appear:!0,in:g,timeout:w,role:"presentation"},S,{children:ro(Cf,{className:Zr(R.container),onMouseDown:e=>{M.current=e.target===e.currentTarget},ownerState:k,children:ro(kf,E({as:b,elevation:24,role:"dialog","aria-describedby":r,"aria-labelledby":T},v,{className:Zr(R.paper,v.className),ownerState:k,children:ro(yf.Provider,{value:$,children:s})}))})}))}))}));function Tf(e){return Kn("MuiDialogActions",e)}var $f=Xn("MuiDialogActions",["root","spacing"]);const Pf=["className","disableSpacing"],If=Ps("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableSpacing&&t.spacing]}})((({ownerState:e})=>E({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})));var Lf=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:n=!1}=o,a=N(o,Pf),i=E({},o,{disableSpacing:n}),l=(e=>{const{classes:t,disableSpacing:o}=e;return Un({root:["root",!o&&"spacing"]},Tf,t)})(i);return ro(If,E({className:Zr(l.root,r),ownerState:i,ref:t},a))}));function Ef(e){return Kn("MuiDialogContent",e)}var Nf=Xn("MuiDialogContent",["root","dividers"]);function Af(e){return Kn("MuiDialogTitle",e)}var Of=Xn("MuiDialogTitle",["root"]);const zf=["className","dividers"],Bf=Ps("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>E({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}:{[`.${Of.root} + &`]:{paddingTop:0}})));var Ff=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiDialogContent"}),{className:r,dividers:n=!1}=o,a=N(o,zf),i=E({},o,{dividers:n}),l=(e=>{const{classes:t,dividers:o}=e;return Un({root:["root",o&&"dividers"]},Ef,t)})(i);return ro(Bf,E({className:Zr(l.root,r),ownerState:i,ref:t},a))}));function Df(e){return Kn("MuiDialogContentText",e)}var Wf=Xn("MuiDialogContentText",["root"]);const Vf=["children"],Hf=Ps(Id,{shouldForwardProp:e=>Ts(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({});var Uf=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiDialogContentText"}),r=N(o,Vf),n=(e=>{const{classes:t}=e;return E({},t,Un({root:["root"]},Df,t))})(r);return ro(Hf,E({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:r},o,{classes:n}))}));const jf=["className","id"],Gf=Ps(Id,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"});var _f=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiDialogTitle"}),{className:r,id:n}=o,a=N(o,jf),l=o,s=(e=>{const{classes:t}=e;return Un({root:["root"]},Af,t)})(l),{titleId:c=n}=i.useContext(yf);return ro(Gf,E({component:"h2",className:Zr(s.root,r),ownerState:l,ref:t,variant:"h6",id:c},a))}));function qf(e){return Kn("MuiDivider",e)}var Kf=Xn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Xf=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Yf=Ps("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.absolute&&t.absolute,t[o.variant],o.light&&t.light,"vertical"===o.orientation&&t.vertical,o.flexItem&&t.flexItem,o.children&&t.withChildren,o.children&&"vertical"===o.orientation&&t.withChildrenVertical,"right"===o.textAlign&&"vertical"!==o.orientation&&t.textAlignRight,"left"===o.textAlign&&"vertical"!==o.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>E({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:e.palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:Ln(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({theme:e,ownerState:t})=>E({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${e.palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>E({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${e.palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>E({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Zf=Ps("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.wrapper,"vertical"===o.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>E({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})));var Jf=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiDivider"}),{absolute:r=!1,children:n,className:a,component:i=(n?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:d=("hr"!==i?"separator":void 0),textAlign:u="center",variant:p="fullWidth"}=o,m=N(o,Xf),f=E({},o,{absolute:r,component:i,flexItem:l,light:s,orientation:c,role:d,textAlign:u,variant:p}),h=(e=>{const{absolute:t,children:o,classes:r,flexItem:n,light:a,orientation:i,textAlign:l,variant:s}=e;return Un({root:["root",t&&"absolute",s,a&&"light","vertical"===i&&"vertical",n&&"flexItem",o&&"withChildren",o&&"vertical"===i&&"withChildrenVertical","right"===l&&"vertical"!==i&&"textAlignRight","left"===l&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},qf,r)})(f);return ro(Yf,E({as:i,className:Zr(h.root,a),role:d,ref:t,ownerState:f},m,{children:n?ro(Zf,{className:h.wrapper,ownerState:f,children:n}):null}))}));const Qf=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function eh(e,t,o){var r;const n=function(e,t,o){const r=t.getBoundingClientRect(),n=o&&o.getBoundingClientRect(),a=bo(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const e=a.getComputedStyle(t);i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let l=0,s=0;if(i&&"none"!==i&&"string"==typeof i){const e=i.split("(")[1].split(")")[0].split(",");l=parseInt(e[4],10),s=parseInt(e[5],10)}return"left"===e?n?`translateX(${n.right+l-r.left}px)`:`translateX(${a.innerWidth+l-r.left}px)`:"right"===e?n?`translateX(-${r.right-n.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:"up"===e?n?`translateY(${n.bottom+s-r.top}px)`:`translateY(${a.innerHeight+s-r.top}px)`:n?`translateY(-${r.top-n.top+r.height-s}px)`:`translateY(-${r.top+r.height-s}px)`}(e,t,"function"==typeof(r=o)?r():r);n&&(t.style.webkitTransform=n,t.style.transform=n)}const th={enter:us.easeOut,exit:us.sharp},oh={enter:ps.enteringScreen,exit:ps.leavingScreen};var rh=i.forwardRef((function(e,t){const{addEndListener:o,appear:r=!0,children:n,container:a,direction:l="down",easing:s=th,in:c,onEnter:d,onEntered:u,onEntering:p,onExit:m,onExited:f,onExiting:h,style:g,timeout:b=oh,TransitionComponent:v=Ks}=e,y=N(e,Qf),x=Rs(),w=i.useRef(null),S=ko(n.ref,w),C=ko(S,t),k=e=>t=>{e&&(void 0===t?e(w.current):e(w.current,t))},R=k(((e,t)=>{eh(l,e,a),tc(e),d&&d(e,t)})),M=k(((e,t)=>{const o=oc({timeout:b,style:g,easing:s},{mode:"enter"});e.style.webkitTransition=x.transitions.create("-webkit-transform",E({},o)),e.style.transition=x.transitions.create("transform",E({},o)),e.style.webkitTransform="none",e.style.transform="none",p&&p(e,t)})),T=k(u),$=k(h),P=k((e=>{const t=oc({timeout:b,style:g,easing:s},{mode:"exit"});e.style.webkitTransition=x.transitions.create("-webkit-transform",t),e.style.transition=x.transitions.create("transform",t),eh(l,e,a),m&&m(e)})),I=k((e=>{e.style.webkitTransition="",e.style.transition="",f&&f(e)})),L=i.useCallback((()=>{w.current&&eh(l,w.current,a)}),[l,a]);return i.useEffect((()=>{if(c||"down"===l||"right"===l)return;const e=fo((()=>{w.current&&eh(l,w.current,a)})),t=bo(w.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,c,a]),i.useEffect((()=>{c||L()}),[c,L]),ro(v,E({nodeRef:w,onEnter:R,onEntered:T,onEntering:M,onExit:P,onExited:I,onExiting:$,addEndListener:e=>{o&&o(w.current,e)},appear:r,in:c,timeout:b},y,{children:(e,t)=>i.cloneElement(n,E({ref:C,style:E({visibility:"exited"!==e||c?void 0:"hidden"},g,n.props.style)},t))}))}));function nh(e){return Kn("MuiDrawer",e)}var ah=Xn("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const ih=["BackdropProps"],lh=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],sh=(e,t)=>{const{ownerState:o}=e;return[t.root,("permanent"===o.variant||"persistent"===o.variant)&&t.docked,t.modal]},ch=Ps(gf,{name:"MuiDrawer",slot:"Root",overridesResolver:sh})((({theme:e})=>({zIndex:e.zIndex.drawer}))),dh=Ps("div",{shouldForwardProp:Ts,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:sh})({flex:"0 0 auto"}),uh=Ps(gc,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.paper,t[`paperAnchor${po(o.anchor)}`],"temporary"!==o.variant&&t[`paperAnchorDocked${po(o.anchor)}`]]}})((({theme:e,ownerState:t})=>E({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===t.anchor&&{left:0},"top"===t.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===t.anchor&&{right:0},"bottom"===t.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===t.anchor&&"temporary"!==t.variant&&{borderRight:`1px solid ${e.palette.divider}`},"top"===t.anchor&&"temporary"!==t.variant&&{borderBottom:`1px solid ${e.palette.divider}`},"right"===t.anchor&&"temporary"!==t.variant&&{borderLeft:`1px solid ${e.palette.divider}`},"bottom"===t.anchor&&"temporary"!==t.variant&&{borderTop:`1px solid ${e.palette.divider}`}))),ph={left:"right",right:"left",top:"down",bottom:"up"};function mh(e){return-1!==["left","right"].indexOf(e)}function fh(e,t){return"rtl"===e.direction&&mh(t)?ph[t]:t}const hh={enter:ps.enteringScreen,exit:ps.leavingScreen};var gh=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiDrawer"}),{anchor:r="left",BackdropProps:n,children:a,className:l,elevation:s=16,hideBackdrop:c=!1,ModalProps:{BackdropProps:d}={},onClose:u,open:p=!1,PaperProps:m={},SlideProps:f,TransitionComponent:h=rh,transitionDuration:g=hh,variant:b="temporary"}=o,v=N(o.ModalProps,ih),y=N(o,lh),x=Rs(),w=i.useRef(!1);i.useEffect((()=>{w.current=!0}),[]);const S=fh(x,r),C=E({},o,{anchor:r,elevation:s,open:p,variant:b},y),k=(e=>{const{classes:t,anchor:o,variant:r}=e;return Un({root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${po(o)}`,"temporary"!==r&&`paperAnchorDocked${po(o)}`]},nh,t)})(C),R=ro(uh,E({elevation:"temporary"===b?s:0,square:!0},m,{className:Zr(k.paper,m.className),ownerState:C,children:a}));if("permanent"===b)return ro(dh,E({className:Zr(k.root,k.docked,l),ownerState:C,ref:t},y,{children:R}));const M=ro(h,E({in:p,direction:ph[S],timeout:g,appear:w.current},f,{children:R}));return"persistent"===b?ro(dh,E({className:Zr(k.root,k.docked,l),ownerState:C,ref:t},y,{children:M})):ro(ch,E({BackdropProps:E({},n,d,{transitionDuration:g}),className:Zr(k.root,k.modal,l),open:p,ownerState:C,onClose:u,hideBackdrop:c,ref:t},y,v,{children:M}))}));function bh(e){return Kn("MuiFab",e)}var vh=Xn("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge"]);const yh=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],xh=Ps(Yc,{name:"MuiFab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`size${po(o.size)}`],"inherit"===o.color&&t.colorInherit,"primary"===o.color&&t.primary,"secondary"===o.color&&t.secondary]}})((({theme:e,ownerState:t})=>E({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},textDecoration:"none"},[`&.${vh.focusVisible}`]:{boxShadow:e.shadows[6]},[`&.${vh.disabled}`]:{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},"small"===t.size&&{width:40,height:40},"medium"===t.size&&{width:48,height:48},"extended"===t.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===t.variant&&"small"===t.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===t.variant&&"medium"===t.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===t.color&&{color:"inherit"})),(({theme:e,ownerState:t})=>E({},"primary"===t.color&&{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},"secondary"===t.color&&{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}})));var wh=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiFab"}),{children:r,className:n,color:a="default",component:i="button",disabled:l=!1,disableFocusRipple:s=!1,focusVisibleClassName:c,size:d="large",variant:u="circular"}=o,p=N(o,yh),m=E({},o,{color:a,component:i,disabled:l,disableFocusRipple:s,size:d,variant:u}),f=(e=>{const{color:t,variant:o,classes:r,size:n}=e;return Un({root:["root",o,`size${po(n)}`,"inherit"===t&&"colorInherit","primary"===t&&"primary","secondary"===t&&"secondary"]},bh,r)})(m);return ro(xh,E({className:Zr(f.root,n),component:i,disabled:l,focusRipple:!s,focusVisibleClassName:Zr(f.focusVisible,c),ownerState:m,ref:t},p,{children:r}))}));function Sh({props:e,states:t,muiFormControl:o}){return t.reduce(((t,r)=>(t[r]=e[r],o&&void 0===e[r]&&(t[r]=o[r]),t)),{})}function Ch(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function kh(e,t=!1){return e&&(Ch(e.value)&&""!==e.value||t&&Ch(e.defaultValue)&&""!==e.defaultValue)}const Rh=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],Mh=(e,t)=>{const{ownerState:o}=e;return[t.root,o.formControl&&t.formControl,o.startAdornment&&t.adornedStart,o.endAdornment&&t.adornedEnd,o.error&&t.error,"small"===o.size&&t.sizeSmall,o.multiline&&t.multiline,o.color&&t[`color${po(o.color)}`],o.fullWidth&&t.fullWidth,o.hiddenLabel&&t.hiddenLabel]},Th=(e,t)=>{const{ownerState:o}=e;return[t.input,"small"===o.size&&t.inputSizeSmall,o.multiline&&t.inputMultiline,"search"===o.type&&t.inputTypeSearch,o.startAdornment&&t.inputAdornedStart,o.endAdornment&&t.inputAdornedEnd,o.hiddenLabel&&t.inputHiddenLabel]},$h=Ps("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Mh})((({theme:e,ownerState:t})=>E({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${nu.disabled}`]:{color:e.palette.text.disabled,cursor:"default"}},t.multiline&&E({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Ph=Ps("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Th})((({theme:e,ownerState:t})=>{const o="light"===e.palette.mode,r={color:"currentColor",opacity:o?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},a={opacity:o?.42:.5};return E({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${nu.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${nu.disabled}`]:{opacity:1,WebkitTextFillColor:e.palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Ih=ro(sf,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}});var Lh=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:n,autoFocus:a,className:l,components:s={},componentsProps:c={},defaultValue:d,disabled:u,endAdornment:p,fullWidth:m=!1,id:f,inputComponent:h="input",inputProps:g={},inputRef:b,maxRows:v,minRows:y,multiline:x=!1,name:w,onBlur:S,onChange:C,onClick:k,onFocus:R,onKeyDown:M,onKeyUp:T,placeholder:$,readOnly:P,renderSuffix:I,rows:L,startAdornment:A,type:O="text",value:z}=o,B=N(o,Rh),F=null!=g.value?g.value:z,{current:D}=i.useRef(null!=F),W=i.useRef(),V=i.useCallback((e=>{}),[]),H=ko(g.ref,V),U=ko(b,H),j=ko(W,U),[G,_]=i.useState(!1),q=Sm(),K=Sh({props:o,muiFormControl:q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=q?q.focused:G,i.useEffect((()=>{!q&&u&&G&&(_(!1),S&&S())}),[q,u,G,S]);const X=q&&q.onFilled,Y=q&&q.onEmpty,Z=i.useCallback((e=>{kh(e)?X&&X():Y&&Y()}),[X,Y]);yo((()=>{D&&Z({value:F})}),[F,Z,D]);i.useEffect((()=>{Z(W.current)}),[]);let J=h,Q=g;x&&"input"===J&&(Q=E(L?{type:void 0,minRows:L,maxRows:L}:{type:void 0,maxRows:v,minRows:y},Q),J=Cl);i.useEffect((()=>{q&&q.setAdornedStart(Boolean(A))}),[q,A]);const ee=E({},o,{color:K.color||"primary",disabled:K.disabled,endAdornment:p,error:K.error,focused:K.focused,formControl:q,fullWidth:m,hiddenLabel:K.hiddenLabel,multiline:x,size:K.size,startAdornment:A,type:O}),te=(e=>{const{classes:t,color:o,disabled:r,error:n,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:d,size:u,startAdornment:p,type:m}=e;return Un({root:["root",`color${po(o)}`,r&&"disabled",n&&"error",s&&"fullWidth",i&&"focused",l&&"formControl","small"===u&&"sizeSmall",d&&"multiline",p&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",d&&"inputMultiline","small"===u&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd"]},ru,t)})(ee),oe=s.Root||$h,re=c.root||{},ne=s.Input||Ph;return Q=E({},Q,c.input),no(i.Fragment,{children:[Ih,no(oe,E({},re,!jn(oe)&&{ownerState:E({},ee,re.ownerState)},{ref:t,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),k&&k(e)}},B,{className:Zr(te.root,re.className,l),children:[A,ro(wm.Provider,{value:null,children:ro(ne,E({ownerState:ee,"aria-invalid":K.error,"aria-describedby":r,autoComplete:n,autoFocus:a,defaultValue:d,disabled:K.disabled,id:f,onAnimationStart:e=>{Z("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:w,placeholder:$,readOnly:P,required:K.required,rows:L,value:F,onKeyDown:M,onKeyUp:T,type:O},Q,!jn(ne)&&{as:J,ownerState:E({},ee,Q.ownerState)},{ref:j,className:Zr(te.input,Q.className),onBlur:e=>{S&&S(e),g.onBlur&&g.onBlur(e),q&&q.onBlur?q.onBlur(e):_(!1)},onChange:(e,...t)=>{if(!D){const t=e.target||W.current;if(null==t)throw new Error(uo(1));Z({value:t.value})}g.onChange&&g.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),g.onFocus&&g.onFocus(e),q&&q.onFocus?q.onFocus(e):_(!0))}}))}),p,I?I(E({},K,{startAdornment:A})):null]}))]})}));const Eh=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],Nh=Ps($h,{shouldForwardProp:e=>Ts(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...Mh(e,t),!o.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{const o="light"===e.palette.mode,r=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return E({position:"relative",backgroundColor:n,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:n}},[`&.${su.focused}`]:{backgroundColor:n},[`&.${su.disabled}`]:{backgroundColor:o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${e.palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${su.focused}:after`]:{transform:"scaleX(1)"},[`&.${su.error}:after`]:{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${su.disabled}):before`]:{borderBottom:`1px solid ${e.palette.text.primary}`},[`&.${su.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&E({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),Ah=Ps(Ph,{name:"MuiFilledInput",slot:"Input",overridesResolver:Th})((({theme:e,ownerState:t})=>E({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),Oh=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiFilledInput"}),{components:r={},componentsProps:n,fullWidth:a=!1,inputComponent:i="input",multiline:l=!1,type:s="text"}=o,c=N(o,Eh),d=E({},o,{fullWidth:a,inputComponent:i,multiline:l,type:s}),u=(e=>{const{classes:t,disableUnderline:o}=e;return E({},t,Un({root:["root",!o&&"underline"],input:["input"]},lu,t))})(o),p={root:{ownerState:d},input:{ownerState:d}},m=n?co(n,p):p;return ro(Lh,E({components:E({Root:Nh,Input:Ah},r),componentsProps:m,fullWidth:a,inputComponent:i,multiline:l,ref:t,type:s},c,{classes:u}))}));Oh.muiName="Input";var zh=Oh;function Bh(e){return Kn("MuiFormControl",e)}var Fh=Xn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Dh=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Wh=Ps("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>E({},t.root,t[`margin${po(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>E({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})));var Vh=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiFormControl"}),{children:r,className:n,color:a="primary",component:l="div",disabled:s=!1,error:c=!1,focused:d,fullWidth:u=!1,hiddenLabel:p=!1,margin:m="none",required:f=!1,size:h="medium",variant:g="outlined"}=o,b=N(o,Dh),v=E({},o,{color:a,component:l,disabled:s,error:c,fullWidth:u,hiddenLabel:p,margin:m,required:f,size:h,variant:g}),y=(e=>{const{classes:t,margin:o,fullWidth:r}=e;return Un({root:["root","none"!==o&&`margin${po(o)}`,r&&"fullWidth"]},Bh,t)})(v),[x,w]=i.useState((()=>{let e=!1;return r&&i.Children.forEach(r,(t=>{if(!ho(t,["Input","Select"]))return;const o=ho(t,["Select"])?t.props.input:t;o&&o.props.startAdornment&&(e=!0)})),e})),[S,C]=i.useState((()=>{let e=!1;return r&&i.Children.forEach(r,(t=>{ho(t,["Input","Select"])&&kh(t.props,!0)&&(e=!0)})),e})),[k,R]=i.useState(!1);s&&k&&R(!1);const M=void 0===d||s?k:d;const T=i.useCallback((()=>{C(!0)}),[]),$={adornedStart:x,setAdornedStart:w,color:a,disabled:s,error:c,filled:S,focused:M,fullWidth:u,hiddenLabel:p,size:h,onBlur:()=>{R(!1)},onEmpty:i.useCallback((()=>{C(!1)}),[]),onFilled:T,onFocus:()=>{R(!0)},registerEffect:undefined,required:f,variant:g};return ro(wm.Provider,{value:$,children:ro(Wh,E({as:l,ownerState:v,className:Zr(y.root,n),ref:t},b,{children:r}))})}));function Hh(e){return Kn("MuiFormControlLabel",e)}var Uh=Xn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label"]);const jh=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","value"],Gh=Ps("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${Uh.label}`]:t.label},t.root,t[`labelPlacement${po(o.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>E({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Uh.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Uh.label}`]:{[`&.${Uh.disabled}`]:{color:e.palette.text.disabled}}})));var _h=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiFormControlLabel"}),{className:r,componentsProps:n={},control:a,disabled:l,disableTypography:s,label:c,labelPlacement:d="end"}=o,u=N(o,jh),p=Sm();let m=l;void 0===m&&void 0!==a.props.disabled&&(m=a.props.disabled),void 0===m&&p&&(m=p.disabled);const f={disabled:m};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===a.props[e]&&void 0!==o[e]&&(f[e]=o[e])}));const h=E({},o,{disabled:m,label:c,labelPlacement:d}),g=(e=>{const{classes:t,disabled:o,labelPlacement:r}=e;return Un({root:["root",o&&"disabled",`labelPlacement${po(r)}`],label:["label",o&&"disabled"]},Hh,t)})(h);return no(Gh,E({className:Zr(g.root,r),ownerState:h,ref:t},u,{children:[i.cloneElement(a,f),c.type===Id||s?c:ro(Id,E({component:"span",className:g.label},n.typography,{children:c}))]}))}));function qh(e){return Kn("MuiFormGroup",e)}var Kh=Xn("MuiFormGroup",["root","row"]);const Xh=["className","row"],Yh=Ps("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.row&&t.row]}})((({ownerState:e})=>E({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})));var Zh=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiFormGroup"}),{className:r,row:n=!1}=o,a=N(o,Xh),i=E({},o,{row:n}),l=(e=>{const{classes:t,row:o}=e;return Un({root:["root",o&&"row"]},qh,t)})(i);return ro(Yh,E({className:Zr(l.root,r),ownerState:i,ref:t},a))}));function Jh(e){return Kn("MuiFormHelperText",e)}var Qh=Xn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);const eg=["children","className","component","disabled","error","filled","focused","margin","required","variant"],tg=Ps("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.size&&t[`size${po(o.size)}`],o.contained&&t.contained,o.filled&&t.filled]}})((({theme:e,ownerState:t})=>E({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Qh.disabled}`]:{color:e.palette.text.disabled},[`&.${Qh.error}`]:{color:e.palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})));var og=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiFormHelperText"}),{children:r,className:n,component:a="p"}=o,i=N(o,eg),l=Sh({props:o,muiFormControl:Sm(),states:["variant","size","disabled","error","filled","focused","required"]}),s=E({},o,{component:a,contained:"filled"===l.variant||"outlined"===l.variant,variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),c=(e=>{const{classes:t,contained:o,size:r,disabled:n,error:a,filled:i,focused:l,required:s}=e;return Un({root:["root",n&&"disabled",a&&"error",r&&`size${po(r)}`,o&&"contained",l&&"focused",i&&"filled",s&&"required"]},Jh,t)})(s);return ro(tg,E({as:a,ownerState:s,className:Zr(c.root,n),ref:t},i,{children:" "===r?ro("span",{className:"notranslate",dangerouslySetInnerHTML:{__html:"​"}}):r}))}));function rg(e){return Kn("MuiFormLabel",e)}var ng=Xn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);const ag=["children","className","color","component","disabled","error","filled","focused","required"],ig=Ps("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>E({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>E({color:e.palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${ng.focused}`]:{color:e.palette[t.color].main},[`&.${ng.disabled}`]:{color:e.palette.text.disabled},[`&.${ng.error}`]:{color:e.palette.error.main}}))),lg=Ps("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${ng.error}`]:{color:e.palette.error.main}})));var sg=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiFormLabel"}),{children:r,className:n,component:a="label"}=o,i=N(o,ag),l=Sh({props:o,muiFormControl:Sm(),states:["color","required","focused","disabled","error","filled"]}),s=E({},o,{color:l.color||"primary",component:a,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),c=(e=>{const{classes:t,color:o,focused:r,disabled:n,error:a,filled:i,required:l}=e;return Un({root:["root",`color${po(o)}`,n&&"disabled",a&&"error",i&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]},rg,t)})(s);return no(ig,E({as:a,ownerState:s,className:Zr(c.root,n),ref:t},i,{children:[r,l.required&&no(lg,{ownerState:s,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}));var cg=i.createContext();function dg(e){return Kn("MuiGrid",e)}const ug=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var pg=Xn("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...ug.map((e=>`grid-xs-${e}`)),...ug.map((e=>`grid-sm-${e}`)),...ug.map((e=>`grid-md-${e}`)),...ug.map((e=>`grid-lg-${e}`)),...ug.map((e=>`grid-xl-${e}`))]);const mg=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function fg(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}const hg=Ps("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{container:o,direction:r,item:n,lg:a,md:i,sm:l,spacing:s,wrap:c,xl:d,xs:u,zeroMinWidth:p}=e.ownerState;return[t.root,o&&t.container,n&&t.item,p&&t.zeroMinWidth,o&&0!==s&&t[`spacing-xs-${String(s)}`],"row"!==r&&t[`direction-xs-${String(r)}`],"wrap"!==c&&t[`wrap-xs-${String(c)}`],!1!==u&&t[`grid-xs-${String(u)}`],!1!==l&&t[`grid-sm-${String(l)}`],!1!==i&&t[`grid-md-${String(i)}`],!1!==a&&t[`grid-lg-${String(a)}`],!1!==d&&t[`grid-xl-${String(d)}`]]}})((({ownerState:e})=>E({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"nowrap"===e.wrap&&{flexWrap:"nowrap"},"reverse"===e.wrap&&{flexWrap:"wrap-reverse"})),(function({theme:e,ownerState:t}){return Uo({theme:e},jo({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${pg.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:o,rowSpacing:r}=t;let n={};if(o&&0!==r){const t=jo({values:r,breakpoints:e.breakpoints.values});n=Uo({theme:e},t,(t=>{const o=e.spacing(t);return"0px"!==o?{marginTop:`-${fg(o)}`,[`& > .${pg.item}`]:{paddingTop:fg(o)}}:{}}))}return n}),(function({theme:e,ownerState:t}){const{container:o,columnSpacing:r}=t;let n={};if(o&&0!==r){const t=jo({values:r,breakpoints:e.breakpoints.values});n=Uo({theme:e},t,(t=>{const o=e.spacing(t);return"0px"!==o?{width:`calc(100% + ${fg(o)})`,marginLeft:`-${fg(o)}`,[`& > .${pg.item}`]:{paddingLeft:fg(o)}}:{}}))}return n}),(({theme:e,ownerState:t})=>e.breakpoints.keys.reduce(((o,r)=>(function(e,t,o,r){const n=r[o];if(!n)return;let a={};if(!0===n)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const e=jo({values:r.columns,breakpoints:t.breakpoints.values}),i="object"==typeof e?e[o]:e,l=Math.round(n/i*1e8)/1e6+"%";let s={};if(r.container&&r.item&&0!==r.columnSpacing){const e=t.spacing(r.columnSpacing);if("0px"!==e){const t=`calc(${l} + ${fg(e)})`;s={flexBasis:t,maxWidth:t}}}a=E({flexBasis:l,flexGrow:0,maxWidth:l},s)}0===t.breakpoints.values[o]?Object.assign(e,a):e[t.breakpoints.up(o)]=a}(o,e,r,t),o)),{})));var gg=i.forwardRef((function(e,t){const o=Xr(Ms({props:e,name:"MuiGrid"})),{className:r,columns:n,columnSpacing:a,component:l="div",container:s=!1,direction:c="row",item:d=!1,lg:u=!1,md:p=!1,rowSpacing:m,sm:f=!1,spacing:h=0,wrap:g="wrap",xl:b=!1,xs:v=!1,zeroMinWidth:y=!1}=o,x=N(o,mg),w=m||h,S=a||h,C=i.useContext(cg),k=n||C||12,R=E({},o,{columns:k,container:s,direction:c,item:d,lg:u,md:p,sm:f,rowSpacing:w,columnSpacing:S,wrap:g,xl:b,xs:v,zeroMinWidth:y}),M=(e=>{const{classes:t,container:o,direction:r,item:n,lg:a,md:i,sm:l,spacing:s,wrap:c,xl:d,xs:u,zeroMinWidth:p}=e;return Un({root:["root",o&&"container",n&&"item",p&&"zeroMinWidth",o&&0!==s&&`spacing-xs-${String(s)}`,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==c&&`wrap-xs-${String(c)}`,!1!==u&&`grid-xs-${String(u)}`,!1!==l&&`grid-sm-${String(l)}`,!1!==i&&`grid-md-${String(i)}`,!1!==a&&`grid-lg-${String(a)}`,!1!==d&&`grid-xl-${String(d)}`]},dg,t)})(R);return T=ro(hg,E({ownerState:R,className:Zr(M.root,r),as:l,ref:t},x)),12!==k?ro(cg.Provider,{value:k,children:T}):T;var T}));const bg=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function vg(e){return`scale(${e}, ${e**2})`}const yg={entering:{opacity:1,transform:vg(1)},entered:{opacity:1,transform:"none"}},xg=i.forwardRef((function(e,t){const{addEndListener:o,appear:r=!0,children:n,easing:a,in:l,onEnter:s,onEntered:c,onEntering:d,onExit:u,onExited:p,onExiting:m,style:f,timeout:h="auto",TransitionComponent:g=Ks}=e,b=N(e,bg),v=i.useRef(),y=i.useRef(),x=Rs(),w=i.useRef(null),S=ko(n.ref,t),C=ko(w,S),k=e=>t=>{if(e){const o=w.current;void 0===t?e(o):e(o,t)}},R=k(d),M=k(((e,t)=>{tc(e);const{duration:o,delay:r,easing:n}=oc({style:f,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=o,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:r}),x.transitions.create("transform",{duration:.666*i,delay:r,easing:n})].join(","),s&&s(e,t)})),T=k(c),$=k(m),P=k((e=>{const{duration:t,delay:o,easing:r}=oc({style:f,timeout:h,easing:a},{mode:"exit"});let n;"auto"===h?(n=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=n):n=t,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o||.333*n,easing:r})].join(","),e.style.opacity="0",e.style.transform=vg(.75),u&&u(e)})),I=k(p);return i.useEffect((()=>()=>{clearTimeout(v.current)}),[]),ro(g,E({appear:r,in:l,nodeRef:w,onEnter:M,onEntered:T,onEntering:R,onExit:P,onExited:I,onExiting:$,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,y.current||0)),o&&o(w.current,e)},timeout:"auto"===h?null:h},b,{children:(e,t)=>i.cloneElement(n,E({style:E({opacity:0,transform:vg(.75),visibility:"exited"!==e||l?void 0:"hidden"},yg[e],f,n.props.style),ref:C},t))}))}));xg.muiSupportAuto=!0;var wg=xg;function Sg(e,t={}){const o=cn(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:n=!1,matchMedia:a=(r?window.matchMedia:null),noSsr:l=!1,ssrMatchMedia:s=null}=Sn({name:"MuiUseMediaQuery",props:t,theme:o});let c="function"==typeof e?e(o):e;c=c.replace(/^@media( ?)/m,"");const[d,u]=i.useState((()=>l&&r?a(c).matches:s?s(c).matches:n));return yo((()=>{let e=!0;if(!r)return;const t=a(c),o=()=>{e&&u(t.matches)};return o(),t.addListener(o),()=>{e=!1,t.removeListener(o)}}),[c,a,r]),d}const Cg=["initialWidth","width"],kg=["xs","sm","md","lg","xl"],Rg=(e,t,o=!0)=>o?kg.indexOf(e)<=kg.indexOf(t):kg.indexOf(e)o?kg.indexOf(t)<=kg.indexOf(e):kg.indexOf(t)t=>{const{withTheme:o=!1,noSSR:r=!1,initialWidth:n}=e;function a(e){const a=Rs(),l=e.theme||a,s=Sn({theme:l,name:"MuiWithWidth",props:e}),{initialWidth:c,width:d}=s,u=N(s,Cg),[p,m]=i.useState(!1);yo((()=>{m(!0)}),[]);const f=l.breakpoints.keys.slice().reverse().reduce(((e,t)=>{const o=Sg(l.breakpoints.up(t));return!e&&o?t:e}),null),h=E({width:d||(p||r?f:void 0)||c||n},o?{theme:l}:{},u);return void 0===h.width?null:ro(t,E({},h))}return xt(a,t),a};function $g(e){const{children:t,only:o,width:r}=e,n=Rs();let a=!0;if(o)if(Array.isArray(o))for(let e=0;e{const o={display:"none"};return E({},t.breakpoints.map((({breakpoint:t,dir:r})=>"only"===r?{[e.breakpoints.only(t)]:o}:"up"===r?{[e.breakpoints.up(t)]:o}:{[e.breakpoints.down(t)]:o})).reduce(((e,t)=>(Object.keys(t).forEach((o=>{e[o]=t[o]})),e)),{}))}));function Ng(e){const{children:t,className:o,only:r}=e,n=N(e,Lg),a=Rs(),i=[];for(let e=0;e{i.push({breakpoint:e,dir:"only"})}))}const l=E({},e,{breakpoints:i}),s=(e=>{const{classes:t,breakpoints:o}=e;return Un({root:["root",...o.map((({breakpoint:e,dir:t})=>"only"===t?`${t}${po(e)}`:`${e}${po(t)}`))]},Ig,t)})(l);return ro(Eg,{className:Zr(s.root,o),ownerState:l,children:t})}const Ag=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function Og(e){return Kn("MuiIcon",e)}var zg=Xn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Bg=["baseClassName","className","color","component","fontSize"],Fg=Ps("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"inherit"!==o.color&&t[`color${po(o.color)}`],t[`fontSize${po(o.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:e.palette.primary.main,secondary:e.palette.secondary.main,info:e.palette.info.main,success:e.palette.success.main,warning:e.palette.warning.main,action:e.palette.action.active,error:e.palette.error.main,disabled:e.palette.action.disabled,inherit:void 0}[t.color]}))),Dg=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:n,color:a="inherit",component:i="span",fontSize:l="medium"}=o,s=N(o,Bg),c=E({},o,{baseClassName:r,color:a,component:i,fontSize:l}),d=(e=>{const{color:t,fontSize:o,classes:r}=e;return Un({root:["root","inherit"!==t&&`color${po(t)}`,`fontSize${po(o)}`]},Og,r)})(c);return ro(Fg,E({as:i,className:Zr(r,"notranslate",d.root,n),ownerState:c,"aria-hidden":!0,ref:t},s))}));Dg.muiName="Icon";var Wg=Dg;function Vg(e){return Kn("MuiImageList",e)}var Hg=Xn("MuiImageList",["root","masonry","quilted","standard","woven"]);var Ug=i.createContext({});const jg=["children","className","cols","component","rowHeight","gap","style","variant"],Gg=Ps("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant]]}})((({ownerState:e})=>E({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"},"masonry"===e.variant&&{display:"block"})));var _g=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiImageList"}),{children:r,className:n,cols:a=2,component:l="ul",rowHeight:s="auto",gap:c=4,style:d,variant:u="standard"}=o,p=N(o,jg),m=i.useMemo((()=>({rowHeight:s,gap:c,variant:u})),[s,c,u]);i.useEffect((()=>{}),[]);const f=E("masonry"===u?{columnCount:a,columnGap:c}:{gridTemplateColumns:`repeat(${a}, 1fr)`,gap:c},d),h=E({},o,{component:l,gap:c,rowHeight:s,variant:u}),g=(e=>{const{classes:t,variant:o}=e;return Un({root:["root",o]},Vg,t)})(h);return ro(Gg,E({as:l,className:Zr(g.root,g[u],n),ref:t,style:f,ownerState:h},p,{children:ro(Ug.Provider,{value:m,children:r})}))}));function qg(e){return Kn("MuiImageListItem",e)}var Kg=Xn("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]);const Xg=["children","className","cols","component","rows","style"],Yg=Ps("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${Kg.img}`]:t.img},t.root,t[o.variant]]}})((({ownerState:e})=>E({display:"inline-block",position:"relative",lineHeight:0},"standard"===e.variant&&{display:"flex",flexDirection:"column"},"woven"===e.variant&&{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}},{[`& .${Kg.img}`]:E({objectFit:"cover",width:"100%",height:"100%"},"standard"===e.variant&&{height:"auto",flexGrow:1})})));var Zg=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiImageListItem"}),{children:r,className:n,cols:a=1,component:l="li",rows:s=1,style:c}=o,d=N(o,Xg),{rowHeight:u="auto",gap:p,variant:m}=i.useContext(Ug);let f="auto";"woven"===m?f=void 0:"auto"!==u&&(f=u*s+p*(s-1));const h=E({},o,{cols:a,component:l,gap:p,rowHeight:u,rows:s,variant:m}),g=(e=>{const{classes:t,variant:o}=e;return Un({root:["root",o],img:["img"]},qg,t)})(h);return ro(Yg,E({as:l,className:Zr(g.root,g[m],n),ref:t,style:E({height:f,gridColumnEnd:"masonry"!==m?`span ${a}`:void 0,gridRowEnd:"masonry"!==m?`span ${s}`:void 0,marginBottom:"masonry"===m?p:void 0},c),ownerState:h},d,{children:i.Children.map(r,(e=>i.isValidElement(e)?"img"===e.type||ho(e,["Image"])?i.cloneElement(e,{className:Zr(g.img,e.props.className)}):e:null))}))}));function Jg(e){return Kn("MuiImageListItemBar",e)}var Qg=Xn("MuiImageListItemBar",["root","positionBottom","positionTop","positionBelow","titleWrap","titleWrapBottom","titleWrapTop","titleWrapBelow","titleWrapActionPosLeft","titleWrapActionPosRight","title","subtitle","actionIcon","actionIconActionPosLeft","actionIconActionPosRight"]);const eb=["actionIcon","actionPosition","className","subtitle","title","position"],tb=Ps("div",{name:"MuiImageListItemBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`position${po(o.position)}`]]}})((({theme:e,ownerState:t})=>E({position:"absolute",left:0,right:0,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:e.typography.fontFamily},"bottom"===t.position&&{bottom:0},"top"===t.position&&{top:0},"below"===t.position&&{position:"relative",background:"transparent",alignItems:"normal"}))),ob=Ps("div",{name:"MuiImageListItemBar",slot:"TitleWrap",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.titleWrap,t[`titleWrap${po(o.position)}`],o.actionIcon&&t[`titleWrapActionPos${po(o.actionPosition)}`]]}})((({theme:e,ownerState:t})=>E({flexGrow:1,padding:"12px 16px",color:e.palette.common.white,overflow:"hidden"},"below"===t.position&&{padding:"6px 0 12px",color:"inherit"},t.actionIcon&&"left"===t.actionPosition&&{paddingLeft:0},t.actionIcon&&"right"===t.actionPosition&&{paddingRight:0}))),rb=Ps("div",{name:"MuiImageListItemBar",slot:"Title",overridesResolver:(e,t)=>t.title})((({theme:e})=>({fontSize:e.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),nb=Ps("div",{name:"MuiImageListItemBar",slot:"Subtitle",overridesResolver:(e,t)=>t.subtitle})((({theme:e})=>({fontSize:e.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),ab=Ps("div",{name:"MuiImageListItemBar",slot:"ActionIcon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.actionIcon,t[`actionIconActionPos${po(o.actionPosition)}`]]}})((({ownerState:e})=>E({},"left"===e.actionPosition&&{order:-1})));var ib=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiImageListItemBar"}),{actionIcon:r,actionPosition:n="right",className:a,subtitle:i,title:l,position:s="bottom"}=o,c=N(o,eb),d=E({},o,{position:s,actionPosition:n}),u=(e=>{const{classes:t,position:o,actionIcon:r,actionPosition:n}=e;return Un({root:["root",`position${po(o)}`],titleWrap:["titleWrap",`titleWrap${po(o)}`,r&&`titleWrapActionPos${po(n)}`],title:["title"],subtitle:["subtitle"],actionIcon:["actionIcon",`actionIconActionPos${po(n)}`]},Jg,t)})(d);return no(tb,E({ownerState:d,className:Zr(u.root,a),ref:t},c,{children:[no(ob,{ownerState:d,className:u.titleWrap,children:[ro(rb,{className:u.title,children:l}),i?ro(nb,{className:u.subtitle,children:i}):null]}),r?ro(ab,{ownerState:d,className:u.actionIcon,children:r}):null]}))}));const lb=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],sb=Ps($h,{shouldForwardProp:e=>Ts(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...Mh(e,t),!o.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{const o="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return E({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${e.palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ou.focused}:after`]:{transform:"scaleX(1)"},[`&.${ou.error}:after`]:{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ou.disabled}):before`]:{borderBottom:`2px solid ${e.palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${o}`}},[`&.${ou.disabled}:before`]:{borderBottomStyle:"dotted"}})})),cb=Ps(Ph,{name:"MuiInput",slot:"Input",overridesResolver:Th})({}),db=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiInput"}),{disableUnderline:r,components:n={},componentsProps:a,fullWidth:i=!1,inputComponent:l="input",multiline:s=!1,type:c="text"}=o,d=N(o,lb),u=(e=>{const{classes:t,disableUnderline:o}=e;return E({},t,Un({root:["root",!o&&"underline"],input:["input"]},tu,t))})(o),p={root:{ownerState:{disableUnderline:r}}},m=a?co(a,p):p;return ro(Lh,E({components:E({Root:sb,Input:cb},n),componentsProps:m,fullWidth:i,inputComponent:l,multiline:s,ref:t,type:c},d,{classes:u}))}));db.muiName="Input";var ub=db;function pb(e){return Kn("MuiInputAdornment",e)}var mb=Xn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const fb=["children","className","component","disablePointerEvents","disableTypography","position","variant"],hb=Ps("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`position${po(o.position)}`],!0===o.disablePointerEvents&&t.disablePointerEvents,t[o.variant]]}})((({theme:e,ownerState:t})=>E({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:e.palette.action.active},"filled"===t.variant&&{[`&.${mb.positionStart}&:not(.${mb.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})));var gb=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiInputAdornment"}),{children:r,className:n,component:a="div",disablePointerEvents:l=!1,disableTypography:s=!1,position:c,variant:d}=o,u=N(o,fb),p=Sm()||{};let m=d;d&&p.variant,p&&!m&&(m=p.variant);const f=E({},o,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:l,position:c,variant:m}),h=(e=>{const{classes:t,disablePointerEvents:o,hiddenLabel:r,position:n,size:a,variant:i}=e;return Un({root:["root",o&&"disablePointerEvents",n&&`position${po(n)}`,i,r&&"hiddenLabel",a&&`size${po(a)}`]},pb,t)})(f);return ro(wm.Provider,{value:null,children:ro(hb,E({as:a,ownerState:f,className:Zr(h.root,n),ref:t},u,{children:"string"!=typeof r||s?no(i.Fragment,{children:["start"===c?ro("span",{className:"notranslate",dangerouslySetInnerHTML:{__html:"​"}}):null,r]}):ro(Id,{color:"text.secondary",children:r})}))})}));function bb(e){return Kn("MuiInputLabel",e)}var vb=Xn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const yb=["disableAnimation","margin","shrink","variant"],xb=Ps(sg,{shouldForwardProp:e=>Ts(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${ng.asterisk}`]:t.asterisk},t.root,o.formControl&&t.formControl,"small"===o.size&&t.sizeSmall,o.shrink&&t.shrink,!o.disableAnimation&&t.animated,t[o.variant]]}})((({theme:e,ownerState:t})=>E({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&E({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&E({transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&E({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))));var wb=i.forwardRef((function(e,t){const o=Ms({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:n}=o,a=N(o,yb),i=Sm();let l=n;void 0===l&&i&&(l=i.filled||i.focused||i.adornedStart);const s=Sh({props:o,muiFormControl:i,states:["size","variant","required"]}),c=E({},o,{disableAnimation:r,formControl:i,shrink:l,size:s.size,variant:s.variant,required:s.required}),d=(e=>{const{classes:t,formControl:o,size:r,shrink:n,disableAnimation:a,variant:i,required:l}=e;return E({},t,Un({root:["root",o&&"formControl",!a&&"animated",n&&"shrink","small"===r&&"sizeSmall",i],asterisk:[l&&"asterisk"]},bb,t))})(c);return ro(xb,E({"data-shrink":l,ownerState:c,ref:t},a,{classes:d}))}));function Sb(e){return Kn("MuiLinearProgress",e)}var Cb=Xn("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const kb=["className","color","value","valueBuffer","variant"];let Rb,Mb,Tb,$b,Pb,Ib,Lb=e=>e;const Eb=Ht(Rb||(Rb=Lb` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`)),Nb=Ht(Mb||(Mb=Lb` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`)),Ab=Ht(Tb||(Tb=Lb` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`)),Ob=(e,t)=>"inherit"===t?"currentColor":"light"===e.palette.mode?Nn(e.palette[t].main,.62):En(e.palette[t].main,.5),zb=Ps("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`color${po(o.color)}`],t[o.variant]]}})((({ownerState:e,theme:t})=>E({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:Ob(t,e.color)},"inherit"===e.color&&"buffer"!==e.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===e.variant&&{backgroundColor:"transparent"},"query"===e.variant&&{transform:"rotate(180deg)"}))),Bb=Ps("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.dashed,t[`dashedColor${po(o.color)}`]]}})((({ownerState:e,theme:t})=>{const o=Ob(t,e.color);return E({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===e.color&&{opacity:.3},{backgroundImage:`radial-gradient(${o} 0%, ${o} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),Vt($b||($b=Lb` + animation: ${0} 3s infinite linear; + `),Ab)),Fb=Ps("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.bar,t[`barColor${po(o.color)}`],("indeterminate"===o.variant||"query"===o.variant)&&t.bar1Indeterminate,"determinate"===o.variant&&t.bar1Determinate,"buffer"===o.variant&&t.bar1Buffer]}})((({ownerState:e,theme:t})=>E({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===e.color?"currentColor":t.palette[e.color].main},"determinate"===e.variant&&{transition:"transform .4s linear"},"buffer"===e.variant&&{zIndex:1,transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&Vt(Pb||(Pb=Lb` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `),Eb))),Db=Ps("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.bar,t[`barColor${po(o.color)}`],("indeterminate"===o.variant||"query"===o.variant)&&t.bar2Indeterminate,"buffer"===o.variant&&t.bar2Buffer]}})((({ownerState:e,theme:t})=>E({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==e.variant&&{backgroundColor:"inherit"===e.color?"currentColor":t.palette[e.color].main},"inherit"===e.color&&{opacity:.3},"buffer"===e.variant&&{backgroundColor:Ob(t,e.color),transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&Vt(Ib||(Ib=Lb` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `),Nb)));var Wb=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiLinearProgress"}),{className:r,color:n="primary",value:a,valueBuffer:i,variant:l="indeterminate"}=o,s=N(o,kb),c=E({},o,{color:n,variant:l}),d=(e=>{const{classes:t,variant:o,color:r}=e;return Un({root:["root",`color${po(r)}`,o],dashed:["dashed",`dashedColor${po(r)}`],bar1:["bar",`barColor${po(r)}`,("indeterminate"===o||"query"===o)&&"bar1Indeterminate","determinate"===o&&"bar1Determinate","buffer"===o&&"bar1Buffer"],bar2:["bar","buffer"!==o&&`barColor${po(r)}`,"buffer"===o&&`color${po(r)}`,("indeterminate"===o||"query"===o)&&"bar2Indeterminate","buffer"===o&&"bar2Buffer"]},Sb,t)})(c),u=Rs(),p={},m={bar1:{},bar2:{}};if(("determinate"===l||"buffer"===l)&&void 0!==a){p["aria-valuenow"]=Math.round(a),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let e=a-100;"rtl"===u.direction&&(e=-e),m.bar1.transform=`translateX(${e}%)`}if("buffer"===l&&void 0!==i){let e=(i||0)-100;"rtl"===u.direction&&(e=-e),m.bar2.transform=`translateX(${e}%)`}return no(zb,E({className:Zr(d.root,r),ownerState:c,role:"progressbar"},p,{ref:t},s,{children:["buffer"===l?ro(Bb,{className:d.dashed,ownerState:c}):null,ro(Fb,{className:d.bar1,ownerState:c,style:m.bar1}),"determinate"===l?null:ro(Db,{className:d.bar2,ownerState:c,style:m.bar2})]}))}));function Vb(e){return Kn("MuiLink",e)}var Hb=Xn("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Ub=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"],jb={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Gb=Ps(Id,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`underline${po(o.underline)}`],"button"===o.component&&t.button]}})((({theme:e,ownerState:t})=>{const o=Go(e,`palette.${(e=>jb[e]||e)(t.color)}`)||t.color;return E({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&{textDecoration:"underline",textDecorationColor:"inherit"!==o?Ln(o,.4):void 0,"&:hover":{textDecorationColor:"inherit"}},"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Hb.focusVisible}`]:{outline:"auto"}})}));var _b=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiLink"}),{className:r,color:n="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:c,underline:d="always",variant:u="inherit"}=o,p=N(o,Ub),{isFocusVisibleRef:m,onBlur:f,onFocus:h,ref:g}=No(),[b,v]=i.useState(!1),y=ko(t,g),x=E({},o,{color:n,component:a,focusVisible:b,underline:d,variant:u}),w=(e=>{const{classes:t,component:o,focusVisible:r,underline:n}=e;return Un({root:["root",`underline${po(n)}`,"button"===o&&"button",r&&"focusVisible"]},Vb,t)})(x);return ro(Gb,E({className:Zr(w.root,r),classes:c,color:n,component:a,onBlur:e=>{f(e),!1===m.current&&v(!1),l&&l(e)},onFocus:e=>{h(e),!0===m.current&&v(!0),s&&s(e)},ref:y,ownerState:x,variant:u},p))}));var qb=i.createContext({});function Kb(e){return Kn("MuiList",e)}var Xb=Xn("MuiList",["root","padding","dense","subheader"]);const Yb=["children","className","component","dense","disablePadding","subheader"],Zb=Ps("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disablePadding&&t.padding,o.dense&&t.dense,o.subheader&&t.subheader]}})((({ownerState:e})=>E({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Jb=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiList"}),{children:r,className:n,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:c}=o,d=N(o,Yb),u=i.useMemo((()=>({dense:l})),[l]),p=E({},o,{component:a,dense:l,disablePadding:s}),m=(e=>{const{classes:t,disablePadding:o,dense:r,subheader:n}=e;return Un({root:["root",!o&&"padding",r&&"dense",n&&"subheader"]},Kb,t)})(p);return ro(qb.Provider,{value:u,children:no(Zb,E({as:a,className:Zr(m.root,n),ref:t,ownerState:p},d,{children:[c,r]}))})}));function Qb(e){return Kn("MuiListItem",e)}var ev=Xn("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function tv(e){return Kn("MuiListItemButton",e)}var ov=Xn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const rv=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected"],nv=Ps(Yc,{shouldForwardProp:e=>Ts(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,"flex-start"===o.alignItems&&t.alignItemsFlexStart,o.divider&&t.divider,!o.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>E({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ov.selected}`]:{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ov.focusVisible}`]:{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ov.selected}:hover`]:{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ov.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${ov.disabled}`]:{opacity:e.palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})));var av=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:n=!1,component:a="div",children:l,dense:s=!1,disableGutters:c=!1,divider:d=!1,focusVisibleClassName:u,selected:p=!1}=o,m=N(o,rv),f=i.useContext(qb),h={dense:s||f.dense||!1,alignItems:r,disableGutters:c},g=i.useRef(null);yo((()=>{n&&g.current&&g.current.focus()}),[n]);const b=E({},o,{alignItems:r,dense:h.dense,disableGutters:c,divider:d,selected:p}),v=(e=>{const{alignItems:t,classes:o,dense:r,disabled:n,disableGutters:a,divider:i,selected:l}=e;return E({},o,Un({root:["root",r&&"dense",!a&&"gutters",i&&"divider",n&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},tv,o))})(b),y=ko(g,t);return ro(qb.Provider,{value:h,children:ro(nv,E({ref:y,component:a,focusVisibleClassName:Zr(v.focusVisible,u),ownerState:b},m,{classes:v,children:l}))})}));function iv(e){return Kn("MuiListItemSecondaryAction",e)}var lv=Xn("MuiListItemSecondaryAction",["root","disableGutters"]);const sv=["className"],cv=Ps("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.disableGutters&&t.disableGutters]}})((({ownerState:e})=>E({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),dv=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=o,n=N(o,sv),a=E({},o,{disableGutters:i.useContext(qb).disableGutters}),l=(e=>{const{disableGutters:t,classes:o}=e;return Un({root:["root",t&&"disableGutters"]},iv,o)})(a);return ro(cv,E({className:Zr(l.root,r),ownerState:a,ref:t},n))}));dv.muiName="ListItemSecondaryAction";var uv=dv;const pv=["className"],mv=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],fv=Ps("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,"flex-start"===o.alignItems&&t.alignItemsFlexStart,o.divider&&t.divider,!o.disableGutters&&t.gutters,!o.disablePadding&&t.padding,o.button&&t.button,o.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>E({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&E({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${ov.root}`]:{paddingRight:48}},{[`&.${ev.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${ev.selected}`]:{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ev.focusVisible}`]:{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ev.disabled}`]:{opacity:e.palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ev.selected}:hover`]:{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),hv=Ps("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"});var gv=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:n=!1,button:a=!1,children:l,className:s,component:c,components:d={},componentsProps:u={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:f=!1,disabled:h=!1,disableGutters:g=!1,disablePadding:b=!1,divider:v=!1,focusVisibleClassName:y,secondaryAction:x,selected:w=!1}=o,S=N(o.ContainerProps,pv),C=N(o,mv),k=i.useContext(qb),R={dense:f||k.dense||!1,alignItems:r,disableGutters:g},M=i.useRef(null);yo((()=>{n&&M.current&&M.current.focus()}),[n]);const T=i.Children.toArray(l),$=T.length&&ho(T[T.length-1],["ListItemSecondaryAction"]),P=E({},o,{alignItems:r,autoFocus:n,button:a,dense:R.dense,disabled:h,disableGutters:g,disablePadding:b,divider:v,hasSecondaryAction:$,selected:w}),I=(e=>{const{alignItems:t,button:o,classes:r,dense:n,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:c,selected:d}=e;return Un({root:["root",n&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",o&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},Qb,r)})(P),L=ko(M,t),A=d.Root||fv,O=u.root||{},z=E({className:Zr(I.root,O.className,s),disabled:h},C);let B=c||"li";return a&&(z.component=c||"div",z.focusVisibleClassName=Zr(ev.focusVisible,y),B=Yc),$?(B=z.component||c?B:"div","li"===p&&("li"===B?B="div":"li"===z.component&&(z.component="div")),ro(qb.Provider,{value:R,children:no(hv,E({as:p,className:Zr(I.container,m),ref:L,ownerState:P},S,{children:[ro(A,E({},O,!jn(A)&&{as:B,ownerState:E({},P,O.ownerState)},z,{children:T})),T.pop()]}))})):ro(qb.Provider,{value:R,children:no(A,E({},O,{as:B,ref:L,ownerState:P},!jn(A)&&{ownerState:E({},P,O.ownerState)},z,{children:[T,x&&ro(uv,{children:x})]}))})}));function bv(e){return Kn("MuiListItemAvatar",e)}var vv=Xn("MuiListItemAvatar",["root","alignItemsFlexStart"]);const yv=["className"],xv=Ps("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"flex-start"===o.alignItems&&t.alignItemsFlexStart]}})((({ownerState:e})=>E({minWidth:56,flexShrink:0},"flex-start"===e.alignItems&&{marginTop:8})));var wv=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiListItemAvatar"}),{className:r}=o,n=N(o,yv),a=E({},o,{alignItems:i.useContext(qb).alignItems}),l=(e=>{const{alignItems:t,classes:o}=e;return Un({root:["root","flex-start"===t&&"alignItemsFlexStart"]},bv,o)})(a);return ro(xv,E({className:Zr(l.root,r),ownerState:a,ref:t},n))}));function Sv(e){return Kn("MuiListItemIcon",e)}var Cv=Xn("MuiListItemIcon",["root","alignItemsFlexStart"]);const kv=["className"],Rv=Ps("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"flex-start"===o.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>E({minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Mv=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiListItemIcon"}),{className:r}=o,n=N(o,kv),a=E({},o,{alignItems:i.useContext(qb).alignItems}),l=(e=>{const{alignItems:t,classes:o}=e;return Un({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Sv,o)})(a);return ro(Rv,E({className:Zr(l.root,r),ownerState:a,ref:t},n))}));function Tv(e){return Kn("MuiListItemText",e)}var $v=Xn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Pv=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Iv=Ps("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${$v.primary}`]:t.primary},{[`& .${$v.secondary}`]:t.secondary},t.root,o.inset&&t.inset,o.primary&&o.secondary&&t.multiline,o.dense&&t.dense]}})((({ownerState:e})=>E({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})));var Lv=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiListItemText"}),{children:r,className:n,disableTypography:a=!1,inset:l=!1,primary:s,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:u}=o,p=N(o,Pv),{dense:m}=i.useContext(qb);let f=null!=s?s:r,h=d;const g=E({},o,{disableTypography:a,inset:l,primary:!!f,secondary:!!h,dense:m}),b=(e=>{const{classes:t,inset:o,primary:r,secondary:n,dense:a}=e;return Un({root:["root",o&&"inset",a&&"dense",r&&n&&"multiline"],primary:["primary"],secondary:["secondary"]},Tv,t)})(g);return null==f||f.type===Id||a||(f=ro(Id,E({variant:m?"body2":"body1",className:b.primary,component:"span",display:"block"},c,{children:f}))),null==h||h.type===Id||a||(h=ro(Id,E({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},u,{children:h}))),no(Iv,E({className:Zr(b.root,n),ownerState:g,ref:t},p,{children:[f,h]}))}));const Ev=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Nv(e,t,o){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o?null:e.firstChild}function Av(e,t,o){return e===t?o?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o?null:e.lastChild}function Ov(e,t){if(void 0===t)return!0;let o=e.innerText;return void 0===o&&(o=e.textContent),o=o.trim().toLowerCase(),0!==o.length&&(t.repeating?o[0]===t.keys[0]:0===o.indexOf(t.keys.join("")))}function zv(e,t,o,r,n,a){let i=!1,l=n(e,t,!!t&&o);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Ov(l,a)&&!t)return l.focus(),!0;l=n(e,l,o)}return!1}var Bv=i.forwardRef((function(e,t){const{actions:o,autoFocus:r=!1,autoFocusItem:n=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:d,variant:u="selectedMenu"}=e,p=N(e,Ev),m=i.useRef(null),f=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yo((()=>{r&&m.current.focus()}),[r]),i.useImperativeHandle(o,(()=>({adjustStyleForScrollbar:(e,t)=>{const o=!m.current.style.width;if(e.clientHeight{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===g)&&(g=t))}));const b=i.Children.map(a,((e,t)=>{if(t===g){const t={};return n&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),i.cloneElement(e,t)}return e}));return ro(Jb,E({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=m.current,o=e.key,r=go(t).activeElement;if("ArrowDown"===o)e.preventDefault(),zv(t,r,c,s,Nv);else if("ArrowUp"===o)e.preventDefault(),zv(t,r,c,s,Av);else if("Home"===o)e.preventDefault(),zv(t,null,c,s,Nv);else if("End"===o)e.preventDefault(),zv(t,null,c,s,Av);else if(1===o.length){const n=f.current,a=o.toLowerCase(),i=performance.now();n.keys.length>0&&(i-n.lastTime>500?(n.keys=[],n.repeating=!0,n.previousKeyMatched=!0):n.repeating&&a!==n.keys[0]&&(n.repeating=!1)),n.lastTime=i,n.keys.push(a);const l=r&&!n.repeating&&Ov(r,n);n.previousKeyMatched&&(l||zv(t,r,!1,s,Nv,n))?e.preventDefault():n.previousKeyMatched=!1}d&&d(e)},tabIndex:r?0:-1},p,{children:b}))}));function Fv(e){return Kn("MuiPopover",e)}var Dv=Xn("MuiPopover",["root","paper"]);const Wv=["onEntering"],Vv=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function Hv(e,t){let o=0;return"number"==typeof t?o=t:"center"===t?o=e.height/2:"bottom"===t&&(o=e.height),o}function Uv(e,t){let o=0;return"number"==typeof t?o=t:"center"===t?o=e.width/2:"right"===t&&(o=e.width),o}function jv(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Gv(e){return"function"==typeof e?e():e}const _v=Ps(gf,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qv=Ps(gc,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var Kv=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiPopover"}),{action:r,anchorEl:n,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:s="anchorEl",children:c,className:d,container:u,elevation:p=8,marginThreshold:m=16,open:f,PaperProps:h={},transformOrigin:g={vertical:"top",horizontal:"left"},TransitionComponent:b=wg,transitionDuration:v="auto",TransitionProps:{onEntering:y}={}}=o,x=N(o.TransitionProps,Wv),w=N(o,Vv),S=i.useRef(),C=ko(S,h.ref),k=E({},o,{anchorOrigin:a,anchorReference:s,elevation:p,marginThreshold:m,PaperProps:h,transformOrigin:g,TransitionComponent:b,transitionDuration:v,TransitionProps:x}),R=(e=>{const{classes:t}=e;return Un({root:["root"],paper:["paper"]},Fv,t)})(k),M=i.useCallback((()=>{if("anchorPosition"===s)return l;const e=Gv(n),t=(e&&1===e.nodeType?e:go(S.current).body).getBoundingClientRect();return{top:t.top+Hv(t,a.vertical),left:t.left+Uv(t,a.horizontal)}}),[n,a.horizontal,a.vertical,l,s]),T=i.useCallback((e=>({vertical:Hv(e,g.vertical),horizontal:Uv(e,g.horizontal)})),[g.horizontal,g.vertical]),$=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},o=T(t);if("none"===s)return{top:null,left:null,transformOrigin:jv(o)};const r=M();let a=r.top-o.vertical,i=r.left-o.horizontal;const l=a+t.height,c=i+t.width,d=bo(Gv(n)),u=d.innerHeight-m,p=d.innerWidth-m;if(au){const e=l-u;a-=e,o.vertical+=e}if(ip){const e=c-p;i-=e,o.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(i)}px`,transformOrigin:jv(o)}}),[n,s,M,T,m]),P=i.useCallback((()=>{const e=S.current;if(!e)return;const t=$(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[$]);i.useEffect((()=>{f&&P()})),i.useImperativeHandle(r,(()=>f?{updatePosition:()=>{P()}}:null),[f,P]),i.useEffect((()=>{if(!f)return;const e=fo((()=>{P()})),t=bo(n);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[n,f,P]);let I=v;"auto"!==v||b.muiSupportAuto||(I=void 0);const L=u||(n?go(Gv(n)).body:void 0);return ro(_v,E({BackdropProps:{invisible:!0},className:Zr(R.root,d),container:L,open:f,ref:t,ownerState:k},w,{children:ro(b,E({appear:!0,in:f,onEntering:(e,t)=>{y&&y(e,t),P()},timeout:I},x,{children:ro(qv,E({elevation:p},h,{ref:C,className:Zr(R.paper,h.className),children:c}))}))}))}));function Xv(e){return Kn("MuiMenu",e)}var Yv=Xn("MuiMenu",["root","paper","list"]);const Zv=["onEntering"],Jv=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Qv={vertical:"top",horizontal:"right"},ey={vertical:"top",horizontal:"left"},ty=Ps(Kv,{shouldForwardProp:e=>Ts(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oy=Ps(gc,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ry=Ps(Bv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var ny=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:n,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:s,open:c,PaperProps:d={},PopoverClasses:u,transitionDuration:p="auto",TransitionProps:{onEntering:m}={},variant:f="selectedMenu"}=o,h=N(o.TransitionProps,Zv),g=N(o,Jv),b=Rs(),v="rtl"===b.direction,y=E({},o,{autoFocus:r,disableAutoFocusItem:a,MenuListProps:l,onEntering:m,PaperProps:d,transitionDuration:p,TransitionProps:h,variant:f}),x=(e=>{const{classes:t}=e;return Un({root:["root"],paper:["paper"],list:["list"]},Xv,t)})(y),w=r&&!a&&c,S=i.useRef(null);let C=-1;return i.Children.map(n,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===f&&e.props.selected||-1===C)&&(C=t))})),ro(ty,E({classes:u,onClose:s,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?Qv:ey,PaperProps:E({component:oy},d,{classes:E({},d.classes,{root:x.paper})}),className:x.root,open:c,ref:t,transitionDuration:p,TransitionProps:E({onEntering:(e,t)=>{S.current&&S.current.adjustStyleForScrollbar(e,b),m&&m(e,t)}},h),ownerState:y},g,{children:ro(ry,E({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),s&&s(e,"tabKeyDown"))},actions:S,autoFocus:r&&(-1===C||a),autoFocusItem:w,variant:f},l,{className:Zr(x.list,l.className),children:n}))}))}));function ay(e){return Kn("MuiMenuItem",e)}var iy=Xn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const ly=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],sy=Ps(Yc,{shouldForwardProp:e=>Ts(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.divider&&t.divider,!o.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>E({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${iy.selected}`]:{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${iy.focusVisible}`]:{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${iy.selected}:hover`]:{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${iy.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${iy.disabled}`]:{opacity:e.palette.action.disabledOpacity},[`& + .${Kf.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Kf.inset}`]:{marginLeft:52},[`& .${$v.root}`]:{marginTop:0,marginBottom:0},[`& .${$v.inset}`]:{paddingLeft:36},[`& .${Cv.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&E({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Cv.root} svg`]:{fontSize:"1.25rem"}}))));var cy=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:n="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:u}=o,p=N(o,ly),m=i.useContext(qb),f={dense:a||m.dense||!1,disableGutters:s},h=i.useRef(null);yo((()=>{r&&h.current&&h.current.focus()}),[r]);const g=E({},o,{dense:f.dense,divider:l,disableGutters:s}),b=(e=>{const{disabled:t,dense:o,divider:r,disableGutters:n,selected:a,classes:i}=e;return E({},i,Un({root:["root",o&&"dense",t&&"disabled",!n&&"gutters",r&&"divider",a&&"selected"]},ay,i))})(o),v=ko(h,t);let y;return o.disabled||(y=void 0!==u?u:-1),ro(qb.Provider,{value:f,children:ro(sy,E({ref:v,role:d,tabIndex:y,component:n,focusVisibleClassName:Zr(b.focusVisible,c)},p,{ownerState:g,classes:b}))})}));function dy(e){return Kn("MuiMobileStepper",e)}var uy=Xn("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);const py=["activeStep","backButton","className","LinearProgressProps","nextButton","position","steps","variant"],my=Ps(gc,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`position${po(o.position)}`]]}})((({theme:e,ownerState:t})=>E({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:e.palette.background.default,padding:8},"bottom"===t.position&&{position:"fixed",bottom:0,left:0,right:0,zIndex:e.zIndex.mobileStepper},"top"===t.position&&{position:"fixed",top:0,left:0,right:0,zIndex:e.zIndex.mobileStepper}))),fy=Ps("div",{name:"MuiMobileStepper",slot:"Dots",overridesResolver:(e,t)=>t.dots})((({ownerState:e})=>E({},"dots"===e.variant&&{display:"flex",flexDirection:"row"}))),hy=Ps("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>$s(e)&&"dotActive"!==e,overridesResolver:(e,t)=>{const{dotActive:o}=e;return[t.dot,o&&t.dotActive]}})((({theme:e,ownerState:t,dotActive:o})=>E({},"dots"===t.variant&&E({transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),backgroundColor:e.palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"},o&&{backgroundColor:e.palette.primary.main})))),gy=Ps(Wb,{name:"MuiMobileStepper",slot:"Progress",overridesResolver:(e,t)=>t.progress})((({ownerState:e})=>E({},"progress"===e.variant&&{width:"50%"})));var by=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiMobileStepper"}),{activeStep:r=0,backButton:n,className:a,LinearProgressProps:l,nextButton:s,position:c="bottom",steps:d,variant:u="dots"}=o,p=N(o,py),m=E({},o,{activeStep:r,position:c,variant:u}),f=(e=>{const{classes:t,position:o}=e;return Un({root:["root",`position${po(o)}`],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]},dy,t)})(m);return no(my,E({square:!0,elevation:0,className:Zr(f.root,a),ref:t,ownerState:m},p,{children:[n,"text"===u&&no(i.Fragment,{children:[r+1," / ",d]}),"dots"===u&&ro(fy,{ownerState:m,className:f.dots,children:[...new Array(d)].map(((e,t)=>ro(hy,{className:Zr(f.dot,t===r&&f.dotActive),ownerState:m,dotActive:t===r},t)))}),"progress"===u&&ro(gy,E({ownerState:m,className:f.progress,variant:"determinate",value:Math.ceil(r/(d-1)*100)},l)),s]}))}));function vy(e){return Kn("MuiNativeSelect",e)}var yy=Xn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);const xy=["className","disabled","IconComponent","inputRef","variant"],wy=({ownerState:e,theme:t})=>E({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},[`&.${yy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:t.shape.borderRadius,"&:focus":{borderRadius:t.shape.borderRadius},"&&&":{paddingRight:32}}),Sy=Ps("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ts,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],{[`&.${yy.multiple}`]:t.multiple}]}})(wy),Cy=({ownerState:e,theme:t})=>E({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:t.palette.action.active,[`&.${yy.disabled}`]:{color:t.palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),ky=Ps("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${po(o.variant)}`],o.open&&t.iconOpen]}})(Cy);var Ry=i.forwardRef((function(e,t){const{className:o,disabled:r,IconComponent:n,inputRef:a,variant:l="standard"}=e,s=N(e,xy),c=E({},e,{disabled:r,variant:l}),d=(e=>{const{classes:t,variant:o,disabled:r,multiple:n,open:a}=e;return Un({select:["select",o,r&&"disabled",n&&"multiple"],icon:["icon",`icon${po(o)}`,a&&"iconOpen",r&&"disabled"]},vy,t)})(c);return no(i.Fragment,{children:[ro(Sy,E({ownerState:c,className:Zr(d.select,o),disabled:r,ref:a||t},s)),e.multiple?null:ro(ky,{as:n,ownerState:c,className:d.icon})]})}));const My=["className","children","classes","IconComponent","input","inputProps","variant"],Ty=["root"],$y=ro(ub,{}),Py=i.forwardRef((function(e,t){const o=Ms({name:"MuiNativeSelect",props:e}),{className:r,children:n,classes:a={},IconComponent:l=cu,input:s=$y,inputProps:c}=o,d=N(o,My),u=Sh({props:o,muiFormControl:Sm(),states:["variant"]}),p=(e=>{const{classes:t}=e;return Un({root:["root"]},vy,t)})(E({},o,{classes:a})),m=N(a,Ty);return i.cloneElement(s,E({inputComponent:Ry,inputProps:E({children:n,classes:m,IconComponent:l,variant:u.variant,type:void 0},c,s?s.props.inputProps:{}),ref:t},d,{className:Zr(p.root,s.props.className,r)}))}));Py.muiName="Select";var Iy=Py;const Ly=["children","classes","className","label","notched"],Ey=Ps("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ny=Ps("legend",{skipSx:!0})((({ownerState:e,theme:t})=>E({float:"unset"},void 0===e.label&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},void 0!==e.label&&E({display:"block",width:"auto",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const Ay=["components","fullWidth","inputComponent","label","multiline","notched","type"],Oy=Ps($h,{shouldForwardProp:e=>Ts(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Mh})((({theme:e,ownerState:t})=>{const o="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return E({position:"relative",borderRadius:e.shape.borderRadius,[`&:hover .${iu.notchedOutline}`]:{borderColor:e.palette.text.primary},"@media (hover: none)":{[`&:hover .${iu.notchedOutline}`]:{borderColor:o}},[`&.${iu.focused} .${iu.notchedOutline}`]:{borderColor:e.palette[t.color].main,borderWidth:2},[`&.${iu.error} .${iu.notchedOutline}`]:{borderColor:e.palette.error.main},[`&.${iu.disabled} .${iu.notchedOutline}`]:{borderColor:e.palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&E({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),zy=Ps((function(e){const{className:t,label:o,notched:r}=e,n=N(e,Ly),a=E({},e,{notched:r,label:o});return ro(Ey,E({"aria-hidden":!0,className:t,ownerState:a},n,{children:ro(Ny,{ownerState:a,children:ro("span",o?{children:o}:{className:"notranslate",dangerouslySetInnerHTML:{__html:"​"}})})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>({borderColor:"light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}))),By=Ps(Ph,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Th})((({theme:e,ownerState:t})=>E({padding:"16.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),Fy=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:n=!1,inputComponent:a="input",label:i,multiline:l=!1,notched:s,type:c="text"}=o,d=N(o,Ay),u=(e=>{const{classes:t}=e;return E({},t,Un({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},au,t))})(o);return ro(Lh,E({components:E({Root:Oy,Input:By},r),renderSuffix:e=>ro(zy,{className:u.notchedOutline,label:i,notched:void 0!==s?s:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:n,inputComponent:a,multiline:l,ref:t,type:c},d,{classes:E({},u,{notchedOutline:null})}))}));Fy.muiName="Input";var Dy=Fy;function Wy(e){return Kn("MuiPagination",e)}var Vy=Xn("MuiPagination",["root","ul","outlined","text"]);const Hy=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function Uy(e={}){const{boundaryCount:t=1,componentName:o="usePagination",count:r=1,defaultPage:n=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:l=!1,onChange:s,page:c,showFirstButton:d=!1,showLastButton:u=!1,siblingCount:p=1}=e,m=N(e,Hy),[f,h]=So({controlled:c,default:n,name:o,state:"page"}),g=(e,t)=>{c||h(t),s&&s(e,t)},b=(e,t)=>{const o=t-e+1;return Array.from({length:o},((t,o)=>e+o))},v=b(1,Math.min(t,r)),y=b(Math.max(r-t+1,t+1),r),x=Math.max(Math.min(f-p,r-t-2*p-1),t+2),w=Math.min(Math.max(f+p,t+2*p+2),y.length>0?y[0]-2:r-1),S=[...d?["first"]:[],...l?[]:["previous"],...v,...x>t+2?["start-ellipsis"]:t+1t?[r-t]:[],...y,...i?[]:["next"],...u?["last"]:[]],C=e=>{switch(e){case"first":return 1;case"previous":return f-1;case"next":return f+1;case"last":return r;default:return null}};return E({items:S.map((e=>"number"==typeof e?{onClick:t=>{g(t,e)},type:"page",page:e,selected:e===f,disabled:a,"aria-current":e===f?"true":void 0}:{onClick:t=>{g(t,C(e))},type:e,page:C(e),selected:!1,disabled:a||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?f>=r:f<=1)}))},m)}function jy(e){return Kn("MuiPaginationItem",e)}var Gy=Xn("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),_y=zs(ro("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),qy=zs(ro("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Ky=zs(ro("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),Xy=zs(ro("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");const Yy=["className","color","component","components","disabled","page","selected","shape","size","type","variant"],Zy=(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`size${po(o.size)}`],"text"===o.variant&&t[`text${po(o.color)}`],"outlined"===o.variant&&t[`outlined${po(o.color)}`],"rounded"===o.shape&&t.rounded,"page"===o.type&&t.page,("start-ellipsis"===o.type||"end-ellipsis"===o.type)&&t.ellipsis,("previous"===o.type||"next"===o.type)&&t.previousNext,("first"===o.type||"last"===o.type)&&t.firstLast]},Jy=Ps("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:Zy})((({theme:e,ownerState:t})=>E({},e.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:e.palette.text.primary,height:"auto",[`&.${Gy.disabled}`]:{opacity:e.palette.action.disabledOpacity}},"small"===t.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===t.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}))),Qy=Ps(Yc,{name:"MuiPaginationItem",slot:"Root",overridesResolver:Zy})((({theme:e,ownerState:t})=>E({},e.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:e.palette.text.primary,[`&.${Gy.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${Gy.disabled}`]:{opacity:e.palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gy.selected}`]:{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:Ln(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.palette.action.selected}},[`&.${Gy.focusVisible}`]:{backgroundColor:Ln(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Gy.disabled}`]:{opacity:1,color:e.palette.action.disabled,backgroundColor:e.palette.action.selected}}},"small"===t.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===t.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)},"rounded"===t.shape&&{borderRadius:e.shape.borderRadius})),(({theme:e,ownerState:t})=>E({},"text"===t.variant&&{[`&.${Gy.selected}`]:E({},"standard"!==t.color&&{color:e.palette[t.color].contrastText,backgroundColor:e.palette[t.color].main,"&:hover":{backgroundColor:e.palette[t.color].dark,"@media (hover: none)":{backgroundColor:e.palette[t.color].main}},[`&.${Gy.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}},{[`&.${Gy.disabled}`]:{color:e.palette.action.disabled}})},"outlined"===t.variant&&{border:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${Gy.selected}`]:E({},"standard"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${Ln(e.palette[t.color].main,.5)}`,backgroundColor:Ln(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:Ln(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gy.focusVisible}`]:{backgroundColor:Ln(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Gy.disabled}`]:{borderColor:e.palette.action.disabledBackground,color:e.palette.action.disabled}})}))),ex=Ps("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})((({theme:e,ownerState:t})=>E({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},"small"===t.size&&{fontSize:e.typography.pxToRem(18)},"large"===t.size&&{fontSize:e.typography.pxToRem(22)})));var tx=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiPaginationItem"}),{className:r,color:n="standard",component:a,components:i={first:_y,last:qy,next:Xy,previous:Ky},disabled:l=!1,page:s,selected:c=!1,shape:d="circular",size:u="medium",type:p="page",variant:m="text"}=o,f=N(o,Yy),h=E({},o,{color:n,disabled:l,selected:c,shape:d,size:u,type:p,variant:m}),g=Rs(),b=(e=>{const{classes:t,color:o,disabled:r,selected:n,size:a,shape:i,type:l,variant:s}=e;return Un({root:["root",`size${po(a)}`,s,i,"standard"!==o&&`${s}${po(o)}`,r&&"disabled",n&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]},jy,t)})(h),v=("rtl"===g.direction?{previous:i.next||Xy,next:i.previous||Ky,last:i.first||_y,first:i.last||qy}:{previous:i.previous||Ky,next:i.next||Xy,first:i.first||_y,last:i.last||qy})[p];return"start-ellipsis"===p||"end-ellipsis"===p?ro(Jy,{ref:t,ownerState:h,className:Zr(b.root,r),children:"…"}):no(Qy,E({ref:t,ownerState:h,component:a,disabled:l,className:Zr(b.root,r)},f,{children:["page"===p&&s,v?ro(ex,{as:v,ownerState:h,className:b.icon}):null]}))}));const ox=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],rx=Ps("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant]]}})({}),nx=Ps("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function ax(e,t,o){return"page"===e?`${o?"":"Go to "}page ${t}`:`Go to ${e} page`}var ix=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiPagination"}),{boundaryCount:r=1,className:n,color:a="standard",count:i=1,defaultPage:l=1,disabled:s=!1,getItemAriaLabel:c=ax,hideNextButton:d=!1,hidePrevButton:u=!1,renderItem:p=(e=>ro(tx,E({},e))),shape:m="circular",showFirstButton:f=!1,showLastButton:h=!1,siblingCount:g=1,size:b="medium",variant:v="text"}=o,y=N(o,ox),{items:x}=Uy(E({},o,{componentName:"Pagination"})),w=E({},o,{boundaryCount:r,color:a,count:i,defaultPage:l,disabled:s,getItemAriaLabel:c,hideNextButton:d,hidePrevButton:u,renderItem:p,shape:m,showFirstButton:f,showLastButton:h,siblingCount:g,size:b,variant:v}),S=(e=>{const{classes:t,variant:o}=e;return Un({root:["root",o],ul:["ul"]},Wy,t)})(w);return ro(rx,E({"aria-label":"pagination navigation",className:Zr(S.root,n),ownerState:w,ref:t},y,{children:ro(nx,{className:S.ul,ownerState:w,children:x.map(((e,t)=>ro("li",{children:p(E({},e,{color:a,"aria-label":c(e.type,e.page,e.selected),shape:m,size:b,variant:v}))},t)))})}))})),lx=zs(ro("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),sx=zs(ro("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const cx=Ps("span")({position:"relative",display:"flex"}),dx=Ps(lx,{skipSx:!0})({transform:"scale(1)"}),ux=Ps(sx,{skipSx:!0})((({theme:e,ownerState:t})=>E({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));function px(e){const{checked:t=!1,classes:o={},fontSize:r}=e,n=E({},e,{checked:t});return no(cx,{className:o.root,ownerState:n,children:[ro(dx,{fontSize:r,className:o.background,ownerState:n}),ro(ux,{fontSize:r,className:o.dot,ownerState:n})]})}var mx=i.createContext(void 0);function fx(){return i.useContext(mx)}function hx(e){return Kn("MuiRadio",e)}var gx=Xn("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);const bx=["checked","checkedIcon","color","icon","name","onChange","size"],vx=Ps(Tm,{shouldForwardProp:e=>Ts(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`color${po(o.color)}`]]}})((({theme:e,ownerState:t})=>E({color:e.palette.text.secondary,"&:hover":{backgroundColor:Ln("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${gx.checked}`]:{color:e.palette[t.color].main}},{[`&.${gx.disabled}`]:{color:e.palette.action.disabled}})));const yx=ro(px,{checked:!0}),xx=ro(px,{});var wx=i.forwardRef((function(e,t){var o,r;const n=Ms({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:l=yx,color:s="primary",icon:c=xx,name:d,onChange:u,size:p="medium"}=n,m=N(n,bx),f=E({},n,{color:s,size:p}),h=(e=>{const{classes:t,color:o}=e;return E({},t,Un({root:["root",`color${po(o)}`]},hx,t))})(f),g=fx();let b=a;const v=mo(u,g&&g.onChange);let y=d;return g&&(void 0===b&&(b=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(g.value,n.value)),void 0===y&&(y=g.name)),ro(vx,E({type:"radio",icon:i.cloneElement(c,{fontSize:null!=(o=xx.props.fontSize)?o:p}),checkedIcon:i.cloneElement(l,{fontSize:null!=(r=yx.props.fontSize)?r:p}),ownerState:f,classes:h,name:y,checked:b,onChange:v,ref:t},m))}));const Sx=["actions","children","defaultValue","name","onChange","value"];var Cx=i.forwardRef((function(e,t){const{actions:o,children:r,defaultValue:n,name:a,onChange:l,value:s}=e,c=N(e,Sx),d=i.useRef(null),[u,p]=So({controlled:s,default:n,name:"RadioGroup"});i.useImperativeHandle(o,(()=>({focus:()=>{let e=d.current.querySelector("input:not(:disabled):checked");e||(e=d.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const m=ko(t,d),f=wo(a);return ro(mx.Provider,{value:{name:f,onChange:e=>{p(e.target.value),l&&l(e,e.target.value)},value:u},children:ro(Zh,E({role:"radiogroup",ref:m},c,{children:r}))})})),kx=zs(ro("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),Rx=zs(ro("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function Mx(e){return Kn("MuiRating",e)}var Tx=Xn("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);const $x=["value"],Px=["className","defaultValue","disabled","emptyIcon","emptyLabelText","getLabelText","highlightSelectedOnly","icon","IconContainerComponent","max","name","onChange","onChangeActive","onMouseLeave","onMouseMove","precision","readOnly","size","value"];function Ix(e,t){if(null==e)return e;const o=Math.round(e/t)*t;return Number(o.toFixed(function(e){const t=e.toString().split(".")[1];return t?t.length:0}(t)))}const Lx=Ps("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${Tx.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${po(o.size)}`],o.readOnly&&t.readOnly]}})((({theme:e,ownerState:t})=>E({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",WebkitTapHighlightColor:"transparent",[`&.${Tx.disabled}`]:{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Tx.focusVisible} .${Tx.iconActive}`]:{outline:"1px solid #999"},[`& .${Tx.visuallyHidden}`]:Do},"small"===t.size&&{fontSize:e.typography.pxToRem(18)},"large"===t.size&&{fontSize:e.typography.pxToRem(30)},t.readOnly&&{pointerEvents:"none"}))),Ex=Ps("label",{name:"MuiRating",slot:"Label",overridesResolver:(e,t)=>t.label})((({ownerState:e})=>E({cursor:"inherit"},e.emptyValueFocused&&{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"}))),Nx=Ps("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.iconEmpty&&t.iconEmpty,o.iconFilled&&t.iconFilled,o.iconHover&&t.iconHover,o.iconFocus&&t.iconFocus,o.iconActive&&t.iconActive]}})((({theme:e,ownerState:t})=>E({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none"},t.iconActive&&{transform:"scale(1.2)"},t.iconEmpty&&{color:e.palette.action.disabled}))),Ax=Ps("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>$s(e)&&"iconActive"!==e,overridesResolver:(e,t)=>{const{iconActive:o}=e;return[t.decimal,o&&t.iconActive]}})((({iconActive:e})=>E({position:"relative"},e&&{transform:"scale(1.2)"})));function Ox(e){const t=N(e,$x);return ro("span",E({},t))}function zx(e){const{classes:t,disabled:o,emptyIcon:r,focus:n,getLabelText:a,highlightSelectedOnly:l,hover:s,icon:c,IconContainerComponent:d,isActive:u,itemValue:p,labelProps:m,name:f,onBlur:h,onChange:g,onClick:b,onFocus:v,readOnly:y,ownerState:x,ratingValue:w,ratingValueRounded:S}=e,C=l?p===w:p<=w,k=p<=s,R=p<=n,M=p===S,T=wo(),$=ro(Nx,{as:d,value:p,className:Zr(t.icon,C?t.iconFilled:t.iconEmpty,k&&t.iconHover,R&&t.iconFocus,u&&t.iconActive),ownerState:E({},x,{iconEmpty:!C,iconFilled:C,iconHover:k,iconFocus:R,iconActive:u}),children:r&&!C?r:c});return y?ro("span",E({},m,{children:$})):no(i.Fragment,{children:[no(Ex,E({ownerState:E({},x,{emptyValueFocused:void 0}),htmlFor:T},m,{children:[$,ro("span",{className:t.visuallyHidden,children:a(p)})]})),ro("input",{className:t.visuallyHidden,onFocus:v,onBlur:h,onChange:g,onClick:b,disabled:o,value:p,id:T,type:"radio",name:f,checked:M})]})}const Bx=ro(kx,{fontSize:"inherit"}),Fx=ro(Rx,{fontSize:"inherit"});function Dx(e){return`${e} Star${1!==e?"s":""}`}var Wx=i.forwardRef((function(e,t){const o=Ms({name:"MuiRating",props:e}),{className:r,defaultValue:n=null,disabled:a=!1,emptyIcon:l=Fx,emptyLabelText:s="Empty",getLabelText:c=Dx,highlightSelectedOnly:d=!1,icon:u=Bx,IconContainerComponent:p=Ox,max:m=5,name:f,onChange:h,onChangeActive:g,onMouseLeave:b,onMouseMove:v,precision:y=1,readOnly:x=!1,size:w="medium",value:S}=o,C=N(o,Px),k=wo(f),[R,M]=So({controlled:S,default:n,name:"Rating"}),T=Ix(R,y),$=Rs(),[{hover:P,focus:I},L]=i.useState({hover:-1,focus:-1});let A=T;-1!==P&&(A=P),-1!==I&&(A=I);const{isFocusVisibleRef:O,onBlur:z,onFocus:B,ref:F}=No(),[D,W]=i.useState(!1),V=i.useRef(),H=ko(F,V),U=ko(H,t),j=e=>{let t=""===e.target.value?null:parseFloat(e.target.value);-1!==P&&(t=P),M(t),h&&h(e,t)},G=e=>{0===e.clientX&&0===e.clientY||(L({hover:-1,focus:-1}),M(null),h&&parseFloat(e.target.value)===T&&h(e,null))},_=e=>{B(e),!0===O.current&&W(!0);const t=parseFloat(e.target.value);L((e=>({hover:e.hover,focus:t})))},q=e=>{if(-1!==P)return;z(e),!1===O.current&&W(!1);L((e=>({hover:e.hover,focus:-1})))},[K,X]=i.useState(!1),Y=E({},o,{defaultValue:n,disabled:a,emptyIcon:l,emptyLabelText:s,emptyValueFocused:K,focusVisible:D,getLabelText:c,icon:u,IconContainerComponent:p,max:m,precision:y,readOnly:x,size:w}),Z=(e=>{const{classes:t,size:o,readOnly:r,disabled:n,emptyValueFocused:a,focusVisible:i}=e;return Un({root:["root",`size${po(o)}`,n&&"disabled",i&&"focusVisible",r&&"readyOnly"],label:["label","pristine"],labelEmptyValue:[a&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]},Mx,t)})(Y);return no(Lx,E({ref:U,onMouseMove:e=>{v&&v(e);const t=V.current,{right:o,left:r}=t.getBoundingClientRect(),{width:n}=t.firstChild.getBoundingClientRect();let a;a="rtl"===$.direction?(o-e.clientX)/(n*m):(e.clientX-r)/(n*m);let i=Ix(m*a+y/2,y);i=function(e,t,o){return eo?o:e}(i,y,m),L((e=>e.hover===i&&e.focus===i?e:{hover:i,focus:i})),W(!1),g&&P!==i&&g(e,i)},onMouseLeave:e=>{b&&b(e);L({hover:-1,focus:-1}),g&&-1!==P&&g(e,-1)},className:Zr(Z.root,r),ownerState:Y,role:x?"img":null,"aria-label":x?c(A):null},C,{children:[Array.from(new Array(m)).map(((e,t)=>{const o=t+1,r={classes:Z,disabled:a,emptyIcon:l,focus:I,getLabelText:c,highlightSelectedOnly:d,hover:P,icon:u,IconContainerComponent:p,name:k,onBlur:q,onChange:j,onClick:G,onFocus:_,ratingValue:A,ratingValueRounded:T,readOnly:x,ownerState:Y},n=o===Math.ceil(A)&&(-1!==P||-1!==I);if(y<1){const e=Array.from(new Array(1/y));return ro(Ax,{className:Zr(Z.decimal,n&&Z.iconActive),ownerState:Y,iconActive:n,children:e.map(((t,n)=>{const a=Ix(o-1+(n+1)*y,y);return ro(zx,E({},r,{isActive:!1,itemValue:a,labelProps:{style:e.length-1===n?{}:{width:a===A?(n+1)*y*100+"%":"0%",overflow:"hidden",position:"absolute"}}}),a)}))},o)}return ro(zx,E({},r,{isActive:n,itemValue:o}),o)})),!x&&!a&&no(Ex,{className:Zr(Z.label,Z.labelEmptyValue),ownerState:Y,children:[ro("input",{className:Z.visuallyHidden,value:"",id:`${k}-empty`,type:"radio",name:k,checked:null==T,onFocus:()=>X(!0),onBlur:()=>X(!1),onChange:j}),ro("span",{className:Z.visuallyHidden,children:s})]})]}))}));function Vx(e){return Kn("MuiScopedCssBaseline",e)}var Hx=Xn("MuiScopedCssBaseline",["root"]);const Ux=["className","component","enableColorScheme"],jx=Ps("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>E({},cf(e,t.enableColorScheme),df(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}})));var Gx=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiScopedCssBaseline"}),{className:r,component:n="div"}=o,a=N(o,Ux),i=E({},o,{component:n}),l=(e=>{const{classes:t}=e;return Un({root:["root"]},Vx,t)})(i);return ro(jx,E({as:n,className:Zr(l.root,r),ref:t,ownerState:i},a))}));function _x(e){return Kn("MuiSelect",e)}var qx=Xn("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);const Kx=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Xx=Ps("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${qx.select}`]:t.select},{[`&.${qx.select}`]:t[o.variant]},{[`&.${qx.multiple}`]:t.multiple}]}})(wy,{[`&.${qx.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Yx=Ps("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${po(o.variant)}`],o.open&&t.iconOpen]}})(Cy),Zx=Ps("input",{shouldForwardProp:e=>$s(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Jx(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Qx(e){return null==e||"string"==typeof e&&!e.trim()}var ew,tw,ow=i.forwardRef((function(e,t){const{"aria-describedby":o,"aria-label":r,autoFocus:n,autoWidth:a,children:l,className:s,defaultValue:c,disabled:d,displayEmpty:u,IconComponent:p,inputRef:m,labelId:f,MenuProps:h={},multiple:g,name:b,onBlur:v,onChange:y,onClose:x,onFocus:w,onOpen:S,open:C,readOnly:k,renderValue:R,SelectDisplayProps:M={},tabIndex:T,value:$,variant:P="standard"}=e,I=N(e,Kx),[L,A]=So({controlled:$,default:c,name:"Select"}),O=i.useRef(null),z=i.useRef(null),[B,F]=i.useState(null),{current:D}=i.useRef(null!=C),[W,V]=i.useState(),[H,U]=i.useState(!1),j=ko(t,m),G=i.useCallback((e=>{z.current=e,e&&F(e)}),[]);i.useImperativeHandle(j,(()=>({focus:()=>{z.current.focus()},node:O.current,value:L})),[L]),i.useEffect((()=>{n&&z.current.focus()}),[n]),i.useEffect((()=>{const e=go(z.current).getElementById(f);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[f]);const _=(e,t)=>{e?S&&S(t):x&&x(t),D||(V(a?null:B.clientWidth),U(e))},q=i.Children.toArray(l),K=e=>t=>{let o;if(t.currentTarget.hasAttribute("tabindex")){if(g){o=Array.isArray(L)?L.slice():[];const t=L.indexOf(e.props.value);-1===t?o.push(e.props.value):o.splice(t,1)}else o=e.props.value;if(e.props.onClick&&e.props.onClick(t),L!==o&&(A(o),y)){const r=t.nativeEvent||t,n=new r.constructor(r.type,r);Object.defineProperty(n,"target",{writable:!0,value:{value:o,name:b}}),y(n,e)}g||_(!1,t)}},X=null!==B&&(D?C:H);let Y,Z;delete I["aria-invalid"];const J=[];let Q=!1;(kh({value:L})||u)&&(R?Y=R(L):Q=!0);const ee=q.map((e=>{if(!i.isValidElement(e))return null;let t;if(g){if(!Array.isArray(L))throw new Error(uo(2));t=L.some((t=>Jx(t,e.props.value))),t&&Q&&J.push(e.props.children)}else t=Jx(L,e.props.value),t&&Q&&(Z=e.props.children);return i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));Q&&(Y=g?J.reduce(((e,t)=>[e,", ",t])):Z);let te,oe=W;!a&&D&&B&&(oe=B.clientWidth),te=void 0!==T?T:d?null:0;const re=M.id||(b?`mui-component-select-${b}`:void 0),ne=E({},e,{variant:P,value:L,open:X}),ae=(e=>{const{classes:t,variant:o,disabled:r,multiple:n,open:a}=e;return Un({select:["select",o,r&&"disabled",n&&"multiple"],icon:["icon",`icon${po(o)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},_x,t)})(ne);return no(i.Fragment,{children:[ro(Xx,E({ref:G,tabIndex:te,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[f,re].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),_(!0,e))}},onMouseDown:d||k?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),_(!0,e))},onBlur:e=>{!X&&v&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:b}}),v(e))},onFocus:w},M,{ownerState:ne,className:Zr(ae.select,s,M.className),id:re,children:Qx(Y)?ro("span",{className:"notranslate",dangerouslySetInnerHTML:{__html:"​"}}):Y})),ro(Zx,E({value:Array.isArray(L)?L.join(","):L,name:b,ref:O,"aria-hidden":!0,onChange:e=>{const t=q.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const o=q[t];A(o.props.value),y&&y(e,o)},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:n,ownerState:ne},I)),ro(Yx,{as:p,className:ae.icon,ownerState:ne}),ro(ny,E({id:`menu-${b||""}`,anchorEl:B,open:X,onClose:e=>{_(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},h,{MenuListProps:E({"aria-labelledby":f,role:"listbox",disableListWrap:!0},h.MenuListProps),PaperProps:E({},h.PaperProps,{style:E({minWidth:oe},null!=h.PaperProps?h.PaperProps.style:null)}),children:ee}))]})}));const rw=["autoWidth","children","classes","className","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],nw=i.forwardRef((function(e,t){const o=Ms({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:n,classes:a={},className:l,displayEmpty:s=!1,IconComponent:c=cu,id:d,input:u,inputProps:p,label:m,labelId:f,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:w,SelectDisplayProps:S,variant:C="outlined"}=o,k=N(o,rw),R=b?Ry:ow,M=Sh({props:o,muiFormControl:Sm(),states:["variant"]}).variant||C,T=u||{standard:ew||(ew=ro(ub,{})),outlined:ro(Dy,{label:m}),filled:tw||(tw=ro(zh,{}))}[M],$=(e=>{const{classes:t}=e;return t})(E({},o,{classes:a})),P=ko(t,T.ref);return i.cloneElement(T,E({inputComponent:R,inputProps:E({children:n,IconComponent:c,variant:M,type:void 0,multiple:g},b?{id:d}:{autoWidth:r,displayEmpty:s,labelId:f,MenuProps:h,onClose:v,onOpen:y,open:x,renderValue:w,SelectDisplayProps:E({id:d},S)},p,{classes:p?co($,p.classes):$},u?u.props.inputProps:{})},g&&b&&"outlined"===M?{notched:!0}:{},{ref:P,className:Zr(T.props.className,l)},k))}));nw.muiName="Select";var aw=nw;function iw(e){return Kn("MuiSkeleton",e)}var lw=Xn("MuiSkeleton",["root","text","rectangular","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const sw=["animation","className","component","height","style","variant","width"];let cw,dw,uw,pw,mw=e=>e;const fw=Ht(cw||(cw=mw` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`)),hw=Ht(dw||(dw=mw` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`)),gw=Ps("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],!1!==o.animation&&t[o.animation],o.hasChildren&&t.withChildren,o.hasChildren&&!o.width&&t.fitContent,o.hasChildren&&!o.height&&t.heightAuto]}})((({theme:e,ownerState:t})=>{const o=ws(e.shape.borderRadius)||"px",r=Ss(e.shape.borderRadius);return E({display:"block",backgroundColor:Ln(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===t.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${o}/${Math.round(r/.6*10)/10}${o}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===t.variant&&{borderRadius:"50%"},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})}),(({ownerState:e})=>"pulse"===e.animation&&Vt(uw||(uw=mw` + animation: ${0} 1.5s ease-in-out 0.5s infinite; + `),fw)),(({ownerState:e,theme:t})=>"wave"===e.animation&&Vt(pw||(pw=mw` + position: relative; + overflow: hidden; + + /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ + -webkit-mask-image: -webkit-radial-gradient(white, black); + + &::after { + animation: ${0} 1.6s linear 0.5s infinite; + background: linear-gradient(90deg, transparent, ${0}, transparent); + content: ''; + position: absolute; + transform: translateX(-100%); /* Avoid flash during server-side hydration */ + bottom: 0; + left: 0; + right: 0; + top: 0; + } + `),hw,t.palette.action.hover)));var bw=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:n,component:a="span",height:i,style:l,variant:s="text",width:c}=o,d=N(o,sw),u=E({},o,{animation:r,component:a,variant:s,hasChildren:Boolean(d.children)}),p=(e=>{const{classes:t,variant:o,animation:r,hasChildren:n,width:a,height:i}=e;return Un({root:["root",o,r,n&&"withChildren",n&&!a&&"fitContent",n&&!i&&"heightAuto"]},iw,t)})(u);return ro(gw,E({as:a,ref:t,className:Zr(p.root,n),ownerState:u},d,{style:E({width:c,height:i},l)}))}));const vw=["components","componentsProps","color","size"],yw=E({},Qi,Xn("MuiSlider",["colorPrimary","colorSecondary","thumbColorPrimary","thumbColorSecondary","sizeSmall","thumbSizeSmall"])),xw=Ps("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,r=!0===o.marksProp&&null!==o.step?[...Array(Math.floor((o.max-o.min)/o.step)+1)].map(((e,t)=>({value:o.min+o.step*t}))):o.marksProp||[],n=r.length>0&&r.some((e=>e.label));return[t.root,t[`color${po(o.color)}`],"medium"!==o.size&&t[`size${po(o.size)}`],n&&t.marked,"vertical"===o.orientation&&t.vertical,"inverted"===o.track&&t.trackInverted,!1===o.track&&t.trackFalse]}})((({theme:e,ownerState:t})=>E({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette[t.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&E({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===t.size&&{height:2},t.marked&&{marginBottom:20}),"vertical"===t.orientation&&E({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===t.size&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${yw.disabled}`]:{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},[`&.${yw.dragging}`]:{[`& .${yw.thumb}, & .${yw.track}`]:{transition:"none"}}}))),ww=Ps("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})((({ownerState:e})=>E({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===e.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===e.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1}))),Sw=Ps("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e,ownerState:t})=>{const o="light"===e.palette.mode?Nn(e.palette[t.color].main,.62):En(e.palette[t.color].main,.5);return E({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{border:"none"},"horizontal"===t.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===t.track&&{display:"none"},"inverted"===t.track&&{backgroundColor:o,borderColor:o})})),Cw=Ps("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.thumb,t[`thumbColor${po(o.color)}`],"medium"!==o.size&&t[`thumbSize${po(o.size)}`]]}})((({theme:e,ownerState:t})=>E({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{width:12,height:12},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":E({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:e.shadows[2]},"small"===t.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${yw.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${Ln(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${yw.active}`]:{boxShadow:`0px 0px 0px 14px ${Ln(e.palette[t.color].main,.16)}`},[`&.${yw.disabled}`]:{"&:hover":{boxShadow:"none"}}}))),kw=Ps(el,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e,ownerState:t})=>E({[`&.${yw.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-10,transformOrigin:"bottom center",transform:"translateY(-100%) scale(0)",position:"absolute",backgroundColor:e.palette.grey[600],borderRadius:2,color:e.palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"small"===t.size&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"},{"&:before":{position:"absolute",content:'""',width:8,height:8,bottom:0,left:"50%",transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit"}}))),Rw=Ps("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>$s(e)&&"markActive"!==e,overridesResolver:(e,t)=>t.mark})((({theme:e,ownerState:t,markActive:o})=>E({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},o&&{backgroundColor:e.palette.background.paper,opacity:.8}))),Mw=Ps("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>$s(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e,ownerState:t,markLabelActive:o})=>E({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===t.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},o&&{color:e.palette.text.primary})));xw.propTypes={children:Qt.node,ownerState:Qt.shape({"aria-label":Qt.string,"aria-labelledby":Qt.string,"aria-valuetext":Qt.string,classes:Qt.object,color:Qt.oneOf(["primary","secondary"]),defaultValue:Qt.oneOfType([Qt.arrayOf(Qt.number),Qt.number]),disabled:Qt.bool,getAriaLabel:Qt.func,getAriaValueText:Qt.func,isRtl:Qt.bool,marks:Qt.oneOfType([Qt.arrayOf(Qt.shape({label:Qt.node,value:Qt.number.isRequired})),Qt.bool]),max:Qt.number,min:Qt.number,name:Qt.string,onChange:Qt.func,onChangeCommitted:Qt.func,orientation:Qt.oneOf(["horizontal","vertical"]),scale:Qt.func,step:Qt.number,track:Qt.oneOf(["inverted","normal",!1]),value:Qt.oneOfType([Qt.arrayOf(Qt.number),Qt.number]),valueLabelDisplay:Qt.oneOf(["auto","off","on"]),valueLabelFormat:Qt.oneOfType([Qt.func,Qt.string])})};const Tw=e=>!e||!jn(e);var $w=i.forwardRef((function(e,t){var o,r,n,a;const i=Ms({props:e,name:"MuiSlider"}),l="rtl"===Rs().direction,{components:s={},componentsProps:c={},color:d="primary",size:u="medium"}=i,p=N(i,vw),m=(e=>{const{color:t,size:o,classes:r={}}=e;return E({},r,{root:Zr(r.root,Ji(`color${po(t)}`),r[`color${po(t)}`],o&&[Ji(`size${po(o)}`),r[`size${po(o)}`]]),thumb:Zr(r.thumb,Ji(`thumbColor${po(t)}`),r[`thumbColor${po(t)}`],o&&[Ji(`thumbSize${po(o)}`),r[`thumbSize${po(o)}`]])})})(E({},i,{color:d,size:u}));return ro(hl,E({},p,{isRtl:l,components:E({Root:xw,Rail:ww,Track:Sw,Thumb:Cw,ValueLabel:kw,Mark:Rw,MarkLabel:Mw},s),componentsProps:E({},c,{root:E({},c.root,Tw(s.Root)&&{ownerState:E({},null==(o=c.root)?void 0:o.ownerState,{color:d,size:u})}),thumb:E({},c.thumb,Tw(s.Thumb)&&{ownerState:E({},null==(r=c.thumb)?void 0:r.ownerState,{color:d,size:u})}),track:E({},c.track,Tw(s.Track)&&{ownerState:E({},null==(n=c.track)?void 0:n.ownerState,{color:d,size:u})}),valueLabel:E({},c.valueLabel,Tw(s.ValueLabel)&&{ownerState:E({},null==(a=c.valueLabel)?void 0:a.ownerState,{color:d,size:u})})}),classes:m,ref:t}))}));function Pw(e){return Kn("MuiSnackbarContent",e)}var Iw=Xn("MuiSnackbarContent",["root","message","action"]);const Lw=["action","className","message","role"],Ew=Ps(gc,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>{const t="light"===e.palette.mode?.8:.98,o=An(e.palette.background.default,t);return E({},e.typography.body2,{color:e.palette.getContrastText(o),backgroundColor:o,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),Nw=Ps("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),Aw=Ps("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8});var Ow=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiSnackbarContent"}),{action:r,className:n,message:a,role:i="alert"}=o,l=N(o,Lw),s=o,c=(e=>{const{classes:t}=e;return Un({root:["root"],action:["action"],message:["message"]},Pw,t)})(s);return no(Ew,E({role:i,square:!0,elevation:6,className:Zr(c.root,n),ownerState:s,ref:t},l,{children:[ro(Nw,{className:c.message,ownerState:s,children:a}),r?ro(Aw,{className:c.action,ownerState:s,children:r}):null]}))}));function zw(e){return Kn("MuiSnackbar",e)}var Bw=Xn("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Fw=["onEnter","onExited"],Dw=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],Ww=Ps("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`anchorOrigin${po(o.anchorOrigin.vertical)}${po(o.anchorOrigin.horizontal)}`]]}})((({theme:e,ownerState:t})=>{const o=E({},!t.isRtl&&{left:"50%",right:"auto",transform:"translateX(-50%)"},t.isRtl&&{right:"50%",left:"auto",transform:"translateX(50%)"});return E({zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:E({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&o,"left"===t.anchorOrigin.horizontal&&E({},!t.isRtl&&{left:24,right:"auto"},t.isRtl&&{right:24,left:"auto"}),"right"===t.anchorOrigin.horizontal&&E({},!t.isRtl&&{right:24,left:"auto"},t.isRtl&&{left:24,right:"auto"}))})}));var Vw=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiSnackbar"}),{action:r,anchorOrigin:{vertical:n,horizontal:a}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:s,className:c,ClickAwayListenerProps:d,ContentProps:u,disableWindowBlurListener:p=!1,message:m,onBlur:f,onClose:h,onFocus:g,onMouseEnter:b,onMouseLeave:v,open:y,resumeHideDuration:x,TransitionComponent:w=wg,transitionDuration:S={enter:ps.enteringScreen,exit:ps.leavingScreen},TransitionProps:{onEnter:C,onExited:k}={}}=o,R=N(o.TransitionProps,Fw),M=N(o,Dw),T=E({},o,{anchorOrigin:{vertical:n,horizontal:a},isRtl:"rtl"===Rs().direction}),$=(e=>{const{classes:t,anchorOrigin:o}=e;return Un({root:["root",`anchorOrigin${po(o.vertical)}${po(o.horizontal)}`]},zw,t)})(T),P=i.useRef(),[I,L]=i.useState(!0),A=Co(((...e)=>{h&&h(...e)})),O=Co((e=>{h&&null!=e&&(clearTimeout(P.current),P.current=setTimeout((()=>{A(null,"timeout")}),e))}));i.useEffect((()=>(y&&O(l),()=>{clearTimeout(P.current)})),[y,l,O]);const z=()=>{clearTimeout(P.current)},B=i.useCallback((()=>{null!=l&&O(null!=x?x:.5*l)}),[l,x,O]);return i.useEffect((()=>{if(!p&&y)return window.addEventListener("focus",B),window.addEventListener("blur",z),()=>{window.removeEventListener("focus",B),window.removeEventListener("blur",z)}}),[p,B,y]),i.useEffect((()=>{if(y)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||h&&h(e,"escapeKeyDown")}}),[I,y,h]),!y&&I?null:ro(tf,E({onClickAway:e=>{h&&h(e,"clickaway")}},d,{children:ro(Ww,E({className:Zr($.root,c),onBlur:e=>{f&&f(e),B()},onFocus:e=>{g&&g(e),z()},onMouseEnter:e=>{b&&b(e),z()},onMouseLeave:e=>{v&&v(e),B()},ownerState:T,ref:t},M,{children:ro(w,E({appear:!0,in:y,timeout:S,direction:"top"===n?"down":"up",onEnter:(e,t)=>{L(!1),C&&C(e,t)},onExited:e=>{L(!0),k&&k(e)}},R,{children:s||ro(Ow,E({message:m,action:r},u))}))}))}))}));const Hw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Uw={entering:{transform:"none"},entered:{transform:"none"}},jw={enter:ps.enteringScreen,exit:ps.leavingScreen};var Gw=i.forwardRef((function(e,t){const{addEndListener:o,appear:r=!0,children:n,easing:a,in:l,onEnter:s,onEntered:c,onEntering:d,onExit:u,onExited:p,onExiting:m,style:f,timeout:h=jw,TransitionComponent:g=Ks}=e,b=N(e,Hw),v=Rs(),y=i.useRef(null),x=ko(n.ref,t),w=ko(y,x),S=e=>t=>{if(e){const o=y.current;void 0===t?e(o):e(o,t)}},C=S(d),k=S(((e,t)=>{tc(e);const o=oc({style:f,timeout:h,easing:a},{mode:"enter"});e.style.webkitTransition=v.transitions.create("transform",o),e.style.transition=v.transitions.create("transform",o),s&&s(e,t)})),R=S(c),M=S(m),T=S((e=>{const t=oc({style:f,timeout:h,easing:a},{mode:"exit"});e.style.webkitTransition=v.transitions.create("transform",t),e.style.transition=v.transitions.create("transform",t),u&&u(e)})),$=S(p);return ro(g,E({appear:r,in:l,nodeRef:y,onEnter:k,onEntered:R,onEntering:C,onExit:T,onExited:$,onExiting:M,addEndListener:e=>{o&&o(y.current,e)},timeout:h},b,{children:(e,t)=>i.cloneElement(n,E({style:E({transform:"scale(0)",visibility:"exited"!==e||l?void 0:"hidden"},Uw[e],f,n.props.style),ref:w},t))}))}));function _w(e){return Kn("MuiSpeedDial",e)}var qw=Xn("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);const Kw=["ref"],Xw=["ariaLabel","FabProps","children","className","direction","hidden","icon","onBlur","onClose","onFocus","onKeyDown","onMouseEnter","onMouseLeave","onOpen","open","openIcon","TransitionComponent","transitionDuration","TransitionProps"],Yw=["ref"];function Zw(e){return"up"===e||"down"===e?"vertical":"right"===e||"left"===e?"horizontal":void 0}const Jw=Ps("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`direction${po(o.direction)}`]]}})((({theme:e,ownerState:t})=>E({zIndex:e.zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none"},"up"===t.direction&&{flexDirection:"column-reverse",[`& .${qw.actions}`]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:48}},"down"===t.direction&&{flexDirection:"column",[`& .${qw.actions}`]:{flexDirection:"column",marginTop:-32,paddingTop:48}},"left"===t.direction&&{flexDirection:"row-reverse",[`& .${qw.actions}`]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:48}},"right"===t.direction&&{flexDirection:"row",[`& .${qw.actions}`]:{flexDirection:"row",marginLeft:-32,paddingLeft:48}}))),Qw=Ps(wh,{name:"MuiSpeedDial",slot:"Fab",overridesResolver:(e,t)=>t.fab})((()=>({pointerEvents:"auto"}))),eS=Ps("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.actions,!o.open&&t.actionsClosed]}})((({ownerState:e})=>E({display:"flex",pointerEvents:"auto"},!e.open&&{transition:"top 0s linear 0.2s",pointerEvents:"none"})));var tS=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiSpeedDial"}),{ariaLabel:r,FabProps:{ref:n}={},children:a,className:l,direction:s="up",hidden:c=!1,icon:d,onBlur:u,onClose:p,onFocus:m,onKeyDown:f,onMouseEnter:h,onMouseLeave:g,onOpen:b,open:v,TransitionComponent:y=Gw,transitionDuration:x={enter:ps.enteringScreen,exit:ps.leavingScreen},TransitionProps:w}=o,S=N(o.FabProps,Kw),C=N(o,Xw),[k,R]=So({controlled:v,default:!1,name:"SpeedDial",state:"open"}),M=E({},o,{open:k,direction:s}),T=(e=>{const{classes:t,open:o,direction:r}=e;return Un({root:["root",`direction${po(r)}`],fab:["fab"],actions:["actions",!o&&"actionsClosed"]},_w,t)})(M),$=i.useRef();i.useEffect((()=>()=>{clearTimeout($.current)}),[]);const P=i.useRef(0),I=i.useRef(),L=i.useRef([]);L.current=[L.current[0]];const A=ko(n,i.useCallback((e=>{L.current[0]=e}),[])),O=(e,t)=>o=>{L.current[e+1]=o,t&&t(o)};i.useEffect((()=>{k||(P.current=0,I.current=void 0)}),[k]);const z=e=>{"mouseleave"===e.type&&g&&g(e),"blur"===e.type&&u&&u(e),clearTimeout($.current),"blur"===e.type?$.current=setTimeout((()=>{R(!1),p&&p(e,"blur")})):(R(!1),p&&p(e,"mouseLeave"))},B=e=>{"mouseenter"===e.type&&h&&h(e),"focus"===e.type&&m&&m(e),clearTimeout($.current),k||($.current=setTimeout((()=>{if(R(!0),b){b(e,{focus:"focus",mouseenter:"mouseEnter"}[e.type])}})))},F=r.replace(/^[^a-z]+|[^\w:.-]+/gi,""),D=i.Children.toArray(a).filter((e=>i.isValidElement(e))),W=D.map(((e,t)=>{const o=e.props,{FabProps:{ref:r}={},tooltipPlacement:n}=o,a=N(o.FabProps,Yw),l=n||("vertical"===Zw(s)?"left":"top");return i.cloneElement(e,{FabProps:E({},a,{ref:O(t,r)}),delay:30*(k?t:D.length-t),open:k,tooltipPlacement:l,id:`${F}-action-${t}`})}));return no(Jw,E({className:Zr(T.root,l),ref:t,role:"presentation",onKeyDown:e=>{f&&f(e);const t=e.key.replace("Arrow","").toLowerCase(),{current:o=t}=I;if("Escape"===e.key)return R(!1),L.current[0].focus(),void(p&&p(e,"escapeKeyDown"));if(Zw(t)===Zw(o)&&void 0!==Zw(t)){e.preventDefault();const r=t===o?1:-1,n=function(e,t,o){return eo?o:e}(P.current+r,0,L.current.length-1);L.current[n].focus(),P.current=n,I.current=o}},onBlur:z,onFocus:B,onMouseEnter:B,onMouseLeave:z,ownerState:M},C,{children:[ro(y,E({in:!c,timeout:x,unmountOnExit:!0},w,{children:ro(Qw,E({color:"primary","aria-label":r,"aria-haspopup":"true","aria-expanded":k,"aria-controls":`${F}-actions`},S,{onClick:e=>{S.onClick&&S.onClick(e),clearTimeout($.current),k?(R(!1),p&&p(e,"toggle")):(R(!0),b&&b(e,"toggle"))},className:Zr(T.fab,S.className),ref:A,ownerState:M,children:i.isValidElement(d)&&ho(d,["SpeedDialIcon"])?i.cloneElement(d,{open:k}):d}))})),ro(eS,{id:`${F}-actions`,role:"menu","aria-orientation":Zw(s),className:Zr(T.actions,!k&&T.actionsClosed),ownerState:M,children:W})]}))}));function oS(e){return Kn("MuiTooltip",e)}var rS=Xn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const nS=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"];const aS=Ps(Vd,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.popper,!o.disableInteractive&&t.popperInteractive,o.arrow&&t.popperArrow,!o.open&&t.popperClose]}})((({theme:e,ownerState:t,open:o})=>E({zIndex:e.zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!o&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${rS.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${rS.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${rS.arrow}`]:E({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${rS.arrow}`]:E({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),iS=Ps("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.tooltip,o.touch&&t.touch,o.arrow&&t.tooltipArrow,t[`tooltipPlacement${po(o.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return E({backgroundColor:Ln(e.palette.grey[700],.92),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(o=16/14,Math.round(1e5*o)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${rS.popper}[data-popper-placement*="left"] &`]:E({transformOrigin:"right center"},t.isRtl?E({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):E({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${rS.popper}[data-popper-placement*="right"] &`]:E({transformOrigin:"left center"},t.isRtl?E({marginRight:"14px"},t.touch&&{marginRight:"24px"}):E({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${rS.popper}[data-popper-placement*="top"] &`]:E({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${rS.popper}[data-popper-placement*="bottom"] &`]:E({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var o})),lS=Ps("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:Ln(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let sS=!1,cS=null;function dS(e,t){return o=>{t&&t(o),e(o)}}var uS=i.forwardRef((function(e,t){var o,r,n,a,l,s;const c=Ms({props:e,name:"MuiTooltip"}),{arrow:d=!1,children:u,components:p={},componentsProps:m={},describeChild:f=!1,disableFocusListener:h=!1,disableHoverListener:g=!1,disableInteractive:b=!1,disableTouchListener:v=!1,enterDelay:y=100,enterNextDelay:x=0,enterTouchDelay:w=700,followCursor:S=!1,id:C,leaveDelay:k=0,leaveTouchDelay:R=1500,onClose:M,onOpen:T,open:$,placement:P="bottom",PopperComponent:I,PopperProps:L={},title:A,TransitionComponent:O=wg,TransitionProps:z}=c,B=N(c,nS),F=Rs(),D="rtl"===F.direction,[W,V]=i.useState(),[H,U]=i.useState(null),j=i.useRef(!1),G=b||S,_=i.useRef(),q=i.useRef(),K=i.useRef(),X=i.useRef(),[Y,Z]=So({controlled:$,default:!1,name:"Tooltip",state:"open"});let J=Y;const Q=wo(C),ee=i.useRef(),te=i.useCallback((()=>{void 0!==ee.current&&(document.body.style.WebkitUserSelect=ee.current,ee.current=void 0),clearTimeout(X.current)}),[]);i.useEffect((()=>()=>{clearTimeout(_.current),clearTimeout(q.current),clearTimeout(K.current),te()}),[te]);const oe=e=>{clearTimeout(cS),sS=!0,Z(!0),T&&!J&&T(e)},re=Co((e=>{clearTimeout(cS),cS=setTimeout((()=>{sS=!1}),800+k),Z(!1),M&&J&&M(e),clearTimeout(_.current),_.current=setTimeout((()=>{j.current=!1}),F.transitions.duration.shortest)})),ne=e=>{j.current&&"touchstart"!==e.type||(W&&W.removeAttribute("title"),clearTimeout(q.current),clearTimeout(K.current),y||sS&&x?q.current=setTimeout((()=>{oe(e)}),sS?x:y):oe(e))},ae=e=>{clearTimeout(q.current),clearTimeout(K.current),K.current=setTimeout((()=>{re(e)}),k)},{isFocusVisibleRef:ie,onBlur:le,onFocus:se,ref:ce}=No(),[,de]=i.useState(!1),ue=e=>{le(e),!1===ie.current&&(de(!1),ae(e))},pe=e=>{W||V(e.currentTarget),se(e),!0===ie.current&&(de(!0),ne(e))},me=e=>{j.current=!0;const t=u.props;t.onTouchStart&&t.onTouchStart(e)},fe=ne,he=ae,ge=e=>{me(e),clearTimeout(K.current),clearTimeout(_.current),te(),ee.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",X.current=setTimeout((()=>{document.body.style.WebkitUserSelect=ee.current,ne(e)}),w)},be=e=>{u.props.onTouchEnd&&u.props.onTouchEnd(e),te(),clearTimeout(K.current),K.current=setTimeout((()=>{re(e)}),R)};i.useEffect((()=>{if(J)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||re(e)}}),[re,J]);const ve=ko(V,t),ye=ko(ce,ve),xe=ko(u.ref,ye);""===A&&(J=!1);const we=i.useRef({x:0,y:0}),Se=i.useRef(),Ce={},ke="string"==typeof A;f?(Ce.title=J||!ke||g?null:A,Ce["aria-describedby"]=J?Q:null):(Ce["aria-label"]=ke?A:null,Ce["aria-labelledby"]=J&&!ke?Q:null);const Re=E({},Ce,B,u.props,{className:Zr(B.className,u.props.className),onTouchStart:me,ref:xe},S?{onMouseMove:e=>{const t=u.props;t.onMouseMove&&t.onMouseMove(e),we.current={x:e.clientX,y:e.clientY},Se.current&&Se.current.update()}}:{}),Me={};v||(Re.onTouchStart=ge,Re.onTouchEnd=be),g||(Re.onMouseOver=dS(fe,Re.onMouseOver),Re.onMouseLeave=dS(he,Re.onMouseLeave),G||(Me.onMouseOver=fe,Me.onMouseLeave=he)),h||(Re.onFocus=dS(pe,Re.onFocus),Re.onBlur=dS(ue,Re.onBlur),G||(Me.onFocus=pe,Me.onBlur=ue));const Te=i.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(H),options:{element:H,padding:4}}];return null!=(e=L.popperOptions)&&e.modifiers&&(t=t.concat(L.popperOptions.modifiers)),E({},L.popperOptions,{modifiers:t})}),[H,L]),$e=E({},c,{isRtl:D,arrow:d,disableInteractive:G,placement:P,PopperComponentProp:I,touch:j.current}),Pe=(e=>{const{classes:t,disableInteractive:o,arrow:r,touch:n,placement:a}=e;return Un({popper:["popper",!o&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",n&&"touch",`tooltipPlacement${po(a.split("-")[0])}`],arrow:["arrow"]},oS,t)})($e),Ie=null!=(o=p.Popper)?o:aS,Le=null!=(r=null!=(n=p.Transition)?n:O)?r:wg,Ee=null!=(a=p.Tooltip)?a:iS,Ne=null!=(l=p.Arrow)?l:lS,Ae=sa(Ie,E({},L,m.popper),$e),Oe=sa(Le,E({},z,m.transition),$e),ze=sa(Ee,E({},m.tooltip),$e),Be=sa(Ne,E({},m.arrow),$e);return no(i.Fragment,{children:[i.cloneElement(u,Re),ro(Ie,E({as:null!=I?I:Vd,placement:P,anchorEl:S?{getBoundingClientRect:()=>({top:we.current.y,left:we.current.x,right:we.current.x,bottom:we.current.y,width:0,height:0})}:W,popperRef:Se,open:!!W&&J,id:Q,transition:!0},Me,Ae,{className:Zr(Pe.popper,null==L?void 0:L.className,null==(s=m.popper)?void 0:s.className),popperOptions:Te,children:({TransitionProps:e})=>{var t,o;return ro(Le,E({timeout:F.transitions.duration.shorter},e,Oe,{children:no(Ee,E({},ze,{className:Zr(Pe.tooltip,null==(t=m.tooltip)?void 0:t.className),children:[A,d?ro(Ne,E({},Be,{className:Zr(Pe.arrow,null==(o=m.arrow)?void 0:o.className),ref:U})):null]}))}))}}))]})}));function pS(e){return Kn("MuiSpeedDialAction",e)}var mS=Xn("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]);const fS=["className","delay","FabProps","icon","id","open","TooltipClasses","tooltipOpen","tooltipPlacement","tooltipTitle"],hS=Ps(wh,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.fab,!o.open&&t.fabClosed]}})((({theme:e,ownerState:t})=>E({margin:8,color:e.palette.text.secondary,backgroundColor:e.palette.background.paper,"&:hover":{backgroundColor:An(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,opacity:1},!t.open&&{opacity:0,transform:"scale(0)"}))),gS=Ps("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.staticTooltip,!o.open&&t.staticTooltipClosed,t[`tooltipPlacement${po(o.tooltipPlacement)}`]]}})((({theme:e,ownerState:t})=>({position:"relative",display:"flex",alignItems:"center",[`& .${mS.staticTooltipLabel}`]:E({transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},!t.open&&{opacity:0,transform:"scale(0.5)"},"left"===t.tooltipPlacement&&{transformOrigin:"100% 50%",right:"100%",marginRight:8},"right"===t.tooltipPlacement&&{transformOrigin:"0% 50%",left:"100%",marginLeft:8})}))),bS=Ps("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel",overridesResolver:(e,t)=>t.staticTooltipLabel})((({theme:e})=>E({position:"absolute"},e.typography.body1,{backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,boxShadow:e.shadows[1],color:e.palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"})));var vS=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiSpeedDialAction"}),{className:r,delay:n=0,FabProps:a={},icon:l,id:s,open:c,TooltipClasses:d,tooltipOpen:u=!1,tooltipPlacement:p="left",tooltipTitle:m}=o,f=N(o,fS),h=E({},o,{tooltipPlacement:p}),g=(e=>{const{open:t,tooltipPlacement:o,classes:r}=e;return Un({fab:["fab",!t&&"fabClosed"],staticTooltip:["staticTooltip",`tooltipPlacement${po(o)}`,!t&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]},pS,r)})(h),[b,v]=i.useState(u),y={transitionDelay:`${n}ms`},x=ro(hS,E({size:"small",className:Zr(g.fab,r),tabIndex:-1,role:"menuitem",ownerState:h},a,{style:E({},y,a.style),children:l}));return u?no(gS,E({id:s,ref:t,className:g.staticTooltip,ownerState:h},f,{children:[ro(bS,{style:y,id:`${s}-label`,className:g.staticTooltipLabel,ownerState:h,children:m}),i.cloneElement(x,{"aria-labelledby":`${s}-label`})]})):(!c&&b&&v(!1),ro(uS,E({id:s,ref:t,title:m,placement:p,onClose:()=>{v(!1)},onOpen:()=>{v(!0)},open:c&&b,classes:d},f,{children:x})))})),yS=zs(ro("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function xS(e){return Kn("MuiSpeedDialIcon",e)}var wS=Xn("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]);const SS=["className","icon","open","openIcon"],CS=Ps("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${wS.icon}`]:t.icon},{[`& .${wS.icon}`]:o.open&&t.iconOpen},{[`& .${wS.icon}`]:o.open&&o.openIcon&&t.iconWithOpenIconOpen},{[`& .${wS.openIcon}`]:t.openIcon},{[`& .${wS.openIcon}`]:o.open&&t.openIconOpen},t.root]}})((({theme:e,ownerState:t})=>({height:24,[`& .${wS.icon}`]:E({transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short})},t.open&&E({transform:"rotate(45deg)"},t.openIcon&&{opacity:0})),[`& .${wS.openIcon}`]:E({position:"absolute",transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},t.open&&{transform:"rotate(0deg)",opacity:1})}))),kS=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiSpeedDialIcon"}),{className:r,icon:n,openIcon:a}=o,l=N(o,SS),s=o,c=(e=>{const{classes:t,open:o,openIcon:r}=e;return Un({root:["root"],icon:["icon",o&&"iconOpen",r&&o&&"iconWithOpenIconOpen"],openIcon:["openIcon",o&&"openIconOpen"]},xS,t)})(s);function d(e,t){return i.isValidElement(e)?i.cloneElement(e,{className:t}):e}return no(CS,E({className:Zr(c.root,r),ref:t,ownerState:s},l,{children:[a?d(a,c.openIcon):null,n?d(n,c.icon):ro(yS,{className:c.icon})]}))}));kS.muiName="SpeedDialIcon";var RS=kS;const MS=["component","direction","spacing","divider","children"];function TS(e,t){const o=i.Children.toArray(e).filter(Boolean);return o.reduce(((e,r,n)=>(e.push(r),n[t.root]})((({ownerState:e,theme:t})=>{let o=E({display:"flex"},Uo({theme:t},jo({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=tr(t),n=Object.keys(t.breakpoints.values).reduce(((t,o)=>(null==e.spacing[o]&&null==e.direction[o]||(t[o]=!0),t)),{}),a=jo({values:e.direction,base:n});o=co(o,Uo({theme:t},jo({values:e.spacing,base:n}),((t,o)=>{return{"& > :not(style) + :not(style)":{margin:0,[`margin${n=o?a[o]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[n]}`]:or(r,t)}};var n})))}return o}));var PS=i.forwardRef((function(e,t){const o=Xr(Ms({props:e,name:"MuiStack"})),{component:r="div",direction:n="column",spacing:a=0,divider:i,children:l}=o,s=N(o,MS);return ro($S,E({as:r,ownerState:{direction:n,spacing:a},ref:t},s,{children:i?TS(l,i):l}))}));var IS=i.createContext({});var LS=i.createContext({});function ES(e){return Kn("MuiStep",e)}var NS=Xn("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const AS=["active","children","className","completed","disabled","expanded","index","last"],OS=Ps("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})((({ownerState:e})=>E({},"horizontal"===e.orientation&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})));var zS=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiStep"}),{active:r,children:n,className:a,completed:l,disabled:s,expanded:c=!1,index:d,last:u}=o,p=N(o,AS),{activeStep:m,connector:f,alternativeLabel:h,orientation:g,nonLinear:b}=i.useContext(IS);let[v=!1,y=!1,x=!1]=[r,l,s];m===d?v=void 0===r||r:!b&&m>d?y=void 0===l||l:!b&&m({index:d,last:u,expanded:c,icon:d+1,active:v,completed:y,disabled:x})),[d,u,c,v,y,x]),S=E({},o,{active:v,orientation:g,alternativeLabel:h,completed:y,disabled:x,expanded:c}),C=(e=>{const{classes:t,orientation:o,alternativeLabel:r,completed:n}=e;return Un({root:["root",o,r&&"alternativeLabel",n&&"completed"]},ES,t)})(S),k=no(OS,E({className:Zr(C.root,a),ref:t,ownerState:S},p,{children:[f&&h&&0!==d?f:null,n]}));return ro(LS.Provider,{value:w,children:f&&!h&&0!==d?no(i.Fragment,{children:[f,k]}):k})})),BS=zs(ro("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),FS=zs(ro("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function DS(e){return Kn("MuiStepIcon",e)}var WS,VS=Xn("MuiStepIcon",["root","active","completed","error","text"]);const HS=["active","className","completed","error","icon"],US=Ps(Os,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:e.palette.text.disabled,[`&.${VS.completed}`]:{color:e.palette.primary.main},[`&.${VS.active}`]:{color:e.palette.primary.main},[`&.${VS.error}`]:{color:e.palette.error.main}}))),jS=Ps("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})((({theme:e})=>({fill:e.palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})));var GS=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiStepIcon"}),{active:r=!1,className:n,completed:a=!1,error:i=!1,icon:l}=o,s=N(o,HS),c=E({},o,{active:r,completed:a,error:i}),d=(e=>{const{classes:t,active:o,completed:r,error:n}=e;return Un({root:["root",o&&"active",r&&"completed",n&&"error"],text:["text"]},DS,t)})(c);if("number"==typeof l||"string"==typeof l){const e=Zr(n,d.root);return i?ro(US,E({as:FS,className:e,ref:t,ownerState:c},s)):a?ro(US,E({as:BS,className:e,ref:t,ownerState:c},s)):no(US,E({className:e,ref:t,ownerState:c},s,{children:[WS||(WS=ro("circle",{cx:"12",cy:"12",r:"12"})),ro(jS,{className:d.text,x:"12",y:"16",textAnchor:"middle",ownerState:c,children:l})]}))}return l}));function _S(e){return Kn("MuiStepLabel",e)}var qS=Xn("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]);const KS=["children","className","componentsProps","error","icon","optional","StepIconComponent","StepIconProps"],XS=Ps("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})((({ownerState:e})=>E({display:"flex",alignItems:"center",[`&.${qS.alternativeLabel}`]:{flexDirection:"column"},[`&.${qS.disabled}`]:{cursor:"default"}},"vertical"===e.orientation&&{textAlign:"left",padding:"8px 0"}))),YS=Ps("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})((({theme:e})=>E({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${qS.active}`]:{color:e.palette.text.primary,fontWeight:500},[`&.${qS.completed}`]:{color:e.palette.text.primary,fontWeight:500},[`&.${qS.alternativeLabel}`]:{textAlign:"center",marginTop:16},[`&.${qS.error}`]:{color:e.palette.error.main}}))),ZS=Ps("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})((()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${qS.alternativeLabel}`]:{paddingRight:0}}))),JS=Ps("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((({theme:e})=>({width:"100%",color:e.palette.text.secondary}))),QS=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiStepLabel"}),{children:r,className:n,componentsProps:a={},error:l=!1,icon:s,optional:c,StepIconComponent:d,StepIconProps:u}=o,p=N(o,KS),{alternativeLabel:m,orientation:f}=i.useContext(IS),{active:h,disabled:g,completed:b,icon:v}=i.useContext(LS),y=s||v;let x=d;y&&!x&&(x=GS);const w=E({},o,{active:h,alternativeLabel:m,completed:b,disabled:g,error:l,orientation:f}),S=(e=>{const{classes:t,orientation:o,active:r,completed:n,error:a,disabled:i,alternativeLabel:l}=e;return Un({root:["root",o,a&&"error",i&&"disabled",l&&"alternativeLabel"],label:["label",r&&"active",n&&"completed",a&&"error",i&&"disabled",l&&"alternativeLabel"],iconContainer:["iconContainer",l&&"alternativeLabel"],labelContainer:["labelContainer"]},_S,t)})(w);return no(XS,E({className:Zr(S.root,n),ref:t,ownerState:w},p,{children:[y||x?ro(ZS,{className:S.iconContainer,ownerState:w,children:ro(x,E({completed:b,active:h,error:l,icon:y},u))}):null,no(JS,{className:S.labelContainer,ownerState:w,children:[r?ro(YS,E({className:S.label,ownerState:w},a.label,{children:r})):null,c]})]}))}));QS.muiName="StepLabel";var eC=QS;function tC(e){return Kn("MuiStepButton",e)}var oC=Xn("MuiStepButton",["root","horizontal","vertical","touchRipple"]);const rC=["children","className","icon","optional"],nC=Ps(Yc,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${oC.touchRipple}`]:t.touchRipple},t.root,t[o.orientation]]}})((({ownerState:e})=>E({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},"vertical"===e.orientation&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${oC.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})));var aC=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiStepButton"}),{children:r,className:n,icon:a,optional:l}=o,s=N(o,rC),{disabled:c}=i.useContext(LS),{orientation:d}=i.useContext(IS),u=E({},o,{orientation:d}),p=(e=>{const{classes:t,orientation:o}=e;return Un({root:["root",o],touchRipple:["touchRipple"]},tC,t)})(u),m={icon:a,optional:l},f=ho(r,["StepLabel"])?i.cloneElement(r,m):ro(eC,E({},m,{children:r}));return ro(nC,E({focusRipple:!0,disabled:c,TouchRippleProps:{className:p.touchRipple},className:Zr(p.root,n),ref:t,ownerState:u},s,{children:f}))}));function iC(e){return Kn("MuiStepConnector",e)}var lC=Xn("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const sC=["className"],cC=Ps("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})((({ownerState:e})=>E({flex:"1 1 auto"},"vertical"===e.orientation&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}))),dC=Ps("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${po(o.orientation)}`]]}})((({ownerState:e,theme:t})=>E({display:"block",borderColor:"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]},"horizontal"===e.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===e.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})));var uC=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiStepConnector"}),{className:r}=o,n=N(o,sC),{alternativeLabel:a,orientation:l="horizontal"}=i.useContext(IS),{active:s,disabled:c,completed:d}=i.useContext(LS),u=E({},o,{alternativeLabel:a,orientation:l,active:s,completed:d,disabled:c}),p=(e=>{const{classes:t,orientation:o,alternativeLabel:r,active:n,completed:a,disabled:i}=e;return Un({root:["root",o,r&&"alternativeLabel",n&&"active",a&&"completed",i&&"disabled"],line:["line",`line${po(o)}`]},iC,t)})(u);return ro(cC,E({className:Zr(p.root,r),ref:t,ownerState:u},n,{children:ro(dC,{className:p.line,ownerState:u})}))}));function pC(e){return Kn("MuiStepContent",e)}var mC=Xn("MuiStepContent",["root","last","transition"]);const fC=["children","className","TransitionComponent","transitionDuration","TransitionProps"],hC=Ps("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.last&&t.last]}})((({ownerState:e,theme:t})=>E({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:`1px solid ${"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}`},e.last&&{borderLeft:"none"}))),gC=Ps(dc,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({});var bC=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiStepContent"}),{children:r,className:n,TransitionComponent:a=dc,transitionDuration:l="auto",TransitionProps:s}=o,c=N(o,fC);i.useContext(IS);const{active:d,last:u,expanded:p}=i.useContext(LS),m=E({},o,{last:u}),f=(e=>{const{classes:t,last:o}=e;return Un({root:["root",o&&"last"],transition:["transition"]},pC,t)})(m);let h=l;return"auto"!==l||a.muiSupportAuto||(h=void 0),ro(hC,E({className:Zr(f.root,n),ref:t,ownerState:m},c,{children:ro(gC,E({as:a,in:d||p,className:f.transition,ownerState:m,timeout:h,unmountOnExit:!0},s,{children:r}))}))}));function vC(e){return Kn("MuiStepper",e)}var yC=Xn("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const xC=["activeStep","alternativeLabel","children","className","connector","nonLinear","orientation"],wC=Ps("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel]}})((({ownerState:e})=>E({display:"flex"},"horizontal"===e.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===e.orientation&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"}))),SC=ro(uC,{});var CC=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiStepper"}),{activeStep:r=0,alternativeLabel:n=!1,children:a,className:l,connector:s=SC,nonLinear:c=!1,orientation:d="horizontal"}=o,u=N(o,xC),p=E({},o,{alternativeLabel:n,orientation:d}),m=(e=>{const{orientation:t,alternativeLabel:o,classes:r}=e;return Un({root:["root",t,o&&"alternativeLabel"]},vC,r)})(p),f=i.Children.toArray(a).filter(Boolean),h=f.map(((e,t)=>i.cloneElement(e,E({index:t,last:t+1===f.length},e.props)))),g=i.useMemo((()=>({activeStep:r,alternativeLabel:n,connector:s,nonLinear:c,orientation:d})),[r,n,s,c,d]);return ro(IS.Provider,{value:g,children:ro(wC,E({ownerState:p,className:Zr(m.root,l),ref:t},u,{children:h}))})}));const kC=["anchor","classes","className","width","style"],RC=Ps("div",{skipSx:!0})((({theme:e,ownerState:t})=>E({position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1},"left"===t.anchor&&{right:"auto"},"right"===t.anchor&&{left:"auto",right:0},"top"===t.anchor&&{bottom:"auto",right:0},"bottom"===t.anchor&&{top:"auto",bottom:0,right:0})));var MC=i.forwardRef((function(e,t){const{anchor:o,classes:r={},className:n,width:a,style:i}=e,l=N(e,kC),s=e;return ro(RC,E({className:Zr("PrivateSwipeArea-root",r.root,r[`anchor${po(o)}`],n),ref:t,style:E({[mh(o)?"width":"height"]:a},i),ownerState:s},l))}));const TC=["BackdropProps"],$C=["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"];let PC=null;function IC(e,t,o){return"right"===e?o.body.offsetWidth-t[0].pageX:t[0].pageX}function LC(e,t,o){return"bottom"===e?o.innerHeight-t[0].clientY:t[0].clientY}function EC(e,t){return e?t.clientWidth:t.clientHeight}function NC(e,t,o,r){return Math.min(Math.max(o?t-e:r+t-e,0),r)}const AC="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),OC={enter:ps.enteringScreen,exit:ps.leavingScreen};var zC=i.forwardRef((function(e,t){const o=Cn({name:"MuiSwipeableDrawer",props:e}),r=Rs(),{anchor:n="left",disableBackdropTransition:a=!1,disableDiscovery:l=!1,disableSwipeToOpen:s=AC,hideBackdrop:c,hysteresis:d=.52,minFlingVelocity:u=450,ModalProps:{BackdropProps:p}={},onClose:m,onOpen:f,open:h,PaperProps:g={},SwipeAreaProps:b,swipeAreaWidth:v=20,transitionDuration:y=OC,variant:x="temporary"}=o,w=N(o.ModalProps,TC),S=N(o,$C),[C,k]=i.useState(!1),R=i.useRef({isSwiping:null}),M=i.useRef(),T=i.useRef(),$=i.useRef(),P=i.useRef(!1),I=i.useRef();yo((()=>{I.current=null}),[h]);const L=i.useCallback(((e,t={})=>{const{mode:o=null,changeTransition:i=!0}=t,l=fh(r,n),s=-1!==["right","bottom"].indexOf(l)?1:-1,d=mh(n),u=d?`translate(${s*e}px, 0)`:`translate(0, ${s*e}px)`,p=$.current.style;p.webkitTransform=u,p.transform=u;let m="";if(o&&(m=r.transitions.create("all",oc({easing:void 0,style:void 0,timeout:y},{mode:o}))),i&&(p.webkitTransition=m,p.transition=m),!a&&!c){const t=T.current.style;t.opacity=1-e/EC(d,$.current),i&&(t.webkitTransition=m,t.transition=m)}}),[n,a,c,r,y]),A=Co((e=>{if(!P.current)return;if(PC=null,P.current=!1,k(!1),!R.current.isSwiping)return void(R.current.isSwiping=null);R.current.isSwiping=null;const t=fh(r,n),o=mh(n);let a;a=o?IC(t,e.changedTouches,go(e.currentTarget)):LC(t,e.changedTouches,bo(e.currentTarget));const i=o?R.current.startX:R.current.startY,l=EC(o,$.current),s=NC(a,i,h,l),c=s/l;Math.abs(R.current.velocity)>u&&(I.current=1e3*Math.abs((l-s)/R.current.velocity)),h?R.current.velocity>u||c>d?m():L(0,{mode:"exit"}):R.current.velocity<-u||1-c>d?f():L(EC(o,$.current),{mode:"enter"})})),O=Co((e=>{if(!$.current||!P.current)return;if(null!==PC&&PC!==R.current)return;const t=fh(r,n),o=mh(n),a=IC(t,e.touches,go(e.currentTarget)),i=LC(t,e.touches,bo(e.currentTarget));if(h&&$.current.contains(e.target)&&null===PC){if(function({domTreeShapes:e,start:t,current:o,anchor:r}){const n={x:"scrollLeft",y:"scrollTop"},a={x:"scrollWidth",y:"scrollHeight"},i={x:"clientWidth",y:"clientHeight"};return e.some((e=>{let l=o>=t;"top"!==r&&"left"!==r||(l=!l);const s="left"===r||"right"===r?"x":"y",c=Math.round(e[n[s]]),d=c>0,u=c+e[i[s]]0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&o.push(e),e=e.parentElement}return o}(e.target,$.current),start:o?R.current.startX:R.current.startY,current:o?a:i,anchor:n}))return void(PC=!0);PC=R.current}if(null==R.current.isSwiping){const t=Math.abs(a-R.current.startX),r=Math.abs(i-R.current.startY),n=o?t>r&&t>3:r>t&&r>3;if(n&&e.cancelable&&e.preventDefault(),!0===n||(o?r>3:t>3)){if(R.current.isSwiping=n,!n)return void A(e);R.current.startX=a,R.current.startY=i,l||h||(o?R.current.startX-=20:R.current.startY-=20)}}if(!R.current.isSwiping)return;const s=EC(o,$.current);let c=o?R.current.startX:R.current.startY;h&&!R.current.paperHit&&(c=Math.min(c,s));const d=NC(o?a:i,c,h,s);if(h)if(R.current.paperHit)0===d&&(R.current.startX=a,R.current.startY=i);else{if(!(o?a{if(e.defaultPrevented)return;if(e.defaultMuiPrevented)return;if(h&&(c||!T.current.contains(e.target))&&!$.current.contains(e.target))return;const t=fh(r,n),o=mh(n),a=IC(t,e.touches,go(e.currentTarget)),i=LC(t,e.touches,bo(e.currentTarget));if(!h){if(s||e.target!==M.current)return;if(o){if(a>v)return}else if(i>v)return}e.defaultMuiPrevented=!0,PC=null,R.current.startX=a,R.current.startY=i,k(!0),!h&&$.current&&L(EC(o,$.current)+(l?15:-20),{changeTransition:!1}),R.current.velocity=0,R.current.lastTime=null,R.current.lastTranslate=null,R.current.paperHit=!1,P.current=!0}));return i.useEffect((()=>{if("temporary"===x){const e=go($.current);return e.addEventListener("touchstart",z),e.addEventListener("touchmove",O,{passive:!h}),e.addEventListener("touchend",A),()=>{e.removeEventListener("touchstart",z),e.removeEventListener("touchmove",O,{passive:!h}),e.removeEventListener("touchend",A)}}}),[x,h,z,O,A]),i.useEffect((()=>()=>{PC===R.current&&(PC=null)}),[]),i.useEffect((()=>{h||k(!1)}),[h]),no(i.Fragment,{children:[ro(gh,E({open:!("temporary"!==x||!C)||h,variant:x,ModalProps:E({BackdropProps:E({},p,{ref:T})},w),hideBackdrop:c,PaperProps:E({},g,{style:E({pointerEvents:"temporary"!==x||h?"":"none"},g.style),ref:$}),anchor:n,transitionDuration:I.current||y,onClose:m,ref:t},S)),!s&&"temporary"===x&&ro(za,{children:ro(MC,E({anchor:n,ref:M,width:v},b))})]})}));function BC(e){return Kn("MuiSwitch",e)}var FC=Xn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);const DC=["className","color","edge","size","sx"],WC=Ps("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.edge&&t[`edge${po(o.edge)}`],t[`size${po(o.size)}`]]}})((({ownerState:e})=>E({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===e.edge&&{marginLeft:-8},"end"===e.edge&&{marginRight:-8},"small"===e.size&&{width:40,height:24,padding:7,[`& .${FC.thumb}`]:{width:16,height:16},[`& .${FC.switchBase}`]:{padding:4,[`&.${FC.checked}`]:{transform:"translateX(16px)"}}}))),VC=Ps(Tm,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.switchBase,{[`& .${FC.input}`]:t.input},"default"!==o.color&&t[`color${po(o.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${FC.checked}`]:{transform:"translateX(20px)"},[`&.${FC.disabled}`]:{color:"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]},[`&.${FC.checked} + .${FC.track}`]:{opacity:.5},[`&.${FC.disabled} + .${FC.track}`]:{opacity:"light"===e.palette.mode?.12:.2},[`& .${FC.input}`]:{left:"-100%",width:"300%"}})),(({theme:e,ownerState:t})=>E({"&:hover":{backgroundColor:Ln(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${FC.checked}`]:{color:e.palette[t.color].main,"&:hover":{backgroundColor:Ln(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${FC.disabled}`]:{color:"light"===e.palette.mode?Nn(e.palette[t.color].main,.62):En(e.palette[t.color].main,.55)}},[`&.${FC.checked} + .${FC.track}`]:{backgroundColor:e.palette[t.color].main}}))),HC=Ps("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.mode?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.mode?.38:.3}))),UC=Ps("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})));var jC=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiSwitch"}),{className:r,color:n="primary",edge:a=!1,size:i="medium",sx:l}=o,s=N(o,DC),c=E({},o,{color:n,edge:a,size:i}),d=(e=>{const{classes:t,edge:o,size:r,color:n,checked:a,disabled:i}=e;return E({},t,Un({root:["root",o&&`edge${po(o)}`,`size${po(r)}`],switchBase:["switchBase",`color${po(n)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},BC,t))})(c),u=ro(UC,{className:d.thumb,ownerState:c});return no(WC,{className:Zr(d.root,r),sx:l,ownerState:c,children:[ro(VC,E({type:"checkbox",icon:u,checkedIcon:u,ref:t,ownerState:c},s,{classes:E({},d,{root:d.switchBase})})),ro(HC,{className:d.track,ownerState:c})]})}));function GC(e){return Kn("MuiTab",e)}var _C=Xn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);const qC=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],KC=Ps(Yc,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.label&&o.icon&&t.labelIcon,t[`textColor${po(o.textColor)}`],o.fullWidth&&t.fullWidth,o.wrapped&&t.wrapped]}})((({theme:e,ownerState:t})=>E({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${_C.iconWrapper}`]:E({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${_C.selected}`]:{opacity:1},[`&.${_C.disabled}`]:{opacity:e.palette.action.disabledOpacity}},"primary"===t.textColor&&{color:e.palette.text.secondary,[`&.${_C.selected}`]:{color:e.palette.primary.main},[`&.${_C.disabled}`]:{color:e.palette.text.disabled}},"secondary"===t.textColor&&{color:e.palette.text.secondary,[`&.${_C.selected}`]:{color:e.palette.secondary.main},[`&.${_C.disabled}`]:{color:e.palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})));var XC=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiTab"}),{className:r,disabled:n=!1,disableFocusRipple:a=!1,fullWidth:l,icon:s,iconPosition:c="top",indicator:d,label:u,onChange:p,onClick:m,onFocus:f,selected:h,selectionFollowsFocus:g,textColor:b="inherit",value:v,wrapped:y=!1}=o,x=N(o,qC),w=E({},o,{disabled:n,disableFocusRipple:a,selected:h,icon:!!s,iconPosition:c,label:!!u,fullWidth:l,textColor:b,wrapped:y}),S=(e=>{const{classes:t,textColor:o,fullWidth:r,wrapped:n,icon:a,label:i,selected:l,disabled:s}=e;return Un({root:["root",a&&i&&"labelIcon",`textColor${po(o)}`,r&&"fullWidth",n&&"wrapped",l&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]},GC,t)})(w),C=s&&u&&i.isValidElement(s)?i.cloneElement(s,{className:Zr(S.iconWrapper,s.props.className)}):s;return no(KC,E({focusRipple:!a,className:Zr(S.root,r),ref:t,role:"tab","aria-selected":h,disabled:n,onClick:e=>{!h&&p&&p(e,v),m&&m(e)},onFocus:e=>{g&&!h&&p&&p(e,v),f&&f(e)},ownerState:w,tabIndex:h?0:-1},x,{children:[no(i.Fragment,"top"===c||"start"===c?{children:[C,u]}:{children:[u,C]}),d]}))}));var YC=i.createContext();function ZC(e){return Kn("MuiTable",e)}var JC=Xn("MuiTable",["root","stickyHeader"]);const QC=["className","component","padding","size","stickyHeader"],ek=Ps("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>E({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":E({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),tk="table";var ok=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiTable"}),{className:r,component:n=tk,padding:a="normal",size:l="medium",stickyHeader:s=!1}=o,c=N(o,QC),d=E({},o,{component:n,padding:a,size:l,stickyHeader:s}),u=(e=>{const{classes:t,stickyHeader:o}=e;return Un({root:["root",o&&"stickyHeader"]},ZC,t)})(d),p=i.useMemo((()=>({padding:a,size:l,stickyHeader:s})),[a,l,s]);return ro(YC.Provider,{value:p,children:ro(ek,E({as:n,role:n===tk?null:"table",ref:t,className:Zr(u.root,r),ownerState:d},c))})}));var rk=i.createContext();function nk(e){return Kn("MuiTableBody",e)}var ak=Xn("MuiTableBody",["root"]);const ik=["className","component"],lk=Ps("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),sk={variant:"body"},ck="tbody";var dk=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiTableBody"}),{className:r,component:n=ck}=o,a=N(o,ik),i=E({},o,{component:n}),l=(e=>{const{classes:t}=e;return Un({root:["root"]},nk,t)})(i);return ro(rk.Provider,{value:sk,children:ro(lk,E({className:Zr(l.root,r),as:n,ref:t,role:n===ck?null:"rowgroup",ownerState:i},a))})}));function uk(e){return Kn("MuiTableCell",e)}var pk=Xn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const mk=["align","className","component","padding","scope","size","sortDirection","variant"],fk=Ps("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`size${po(o.size)}`],"normal"!==o.padding&&t[`padding${po(o.padding)}`],"inherit"!==o.align&&t[`align${po(o.align)}`],o.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>E({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:`1px solid\n ${"light"===e.palette.mode?Nn(Ln(e.palette.divider,1),.88):En(Ln(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:e.palette.text.primary},"footer"===t.variant&&{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${pk.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:e.palette.background.default})));var hk=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiTableCell"}),{align:r="inherit",className:n,component:a,padding:l,scope:s,size:c,sortDirection:d,variant:u}=o,p=N(o,mk),m=i.useContext(YC),f=i.useContext(rk),h=f&&"head"===f.variant;let g;g=a||(h?"th":"td");let b=s;!b&&h&&(b="col");const v=u||f&&f.variant,y=E({},o,{align:r,component:g,padding:l||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:d,stickyHeader:"head"===v&&m&&m.stickyHeader,variant:v}),x=(e=>{const{classes:t,variant:o,align:r,padding:n,size:a,stickyHeader:i}=e;return Un({root:["root",o,i&&"stickyHeader","inherit"!==r&&`align${po(r)}`,"normal"!==n&&`padding${po(n)}`,`size${po(a)}`]},uk,t)})(y);let w=null;return d&&(w="asc"===d?"ascending":"descending"),ro(fk,E({as:g,ref:t,className:Zr(x.root,n),"aria-sort":w,scope:b,ownerState:y},p))}));function gk(e){return Kn("MuiTableContainer",e)}var bk=Xn("MuiTableContainer",["root"]);const vk=["className","component"],yk=Ps("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var xk=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiTableContainer"}),{className:r,component:n="div"}=o,a=N(o,vk),i=E({},o,{component:n}),l=(e=>{const{classes:t}=e;return Un({root:["root"]},gk,t)})(i);return ro(yk,E({ref:t,as:n,className:Zr(l.root,r),ownerState:i},a))}));function wk(e){return Kn("MuiTableFooter",e)}var Sk=Xn("MuiTableFooter",["root"]);const Ck=["className","component"],kk=Ps("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),Rk={variant:"footer"},Mk="tfoot";var Tk=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiTableFooter"}),{className:r,component:n=Mk}=o,a=N(o,Ck),i=E({},o,{component:n}),l=(e=>{const{classes:t}=e;return Un({root:["root"]},wk,t)})(i);return ro(rk.Provider,{value:Rk,children:ro(kk,E({as:n,className:Zr(l.root,r),ref:t,role:n===Mk?null:"rowgroup",ownerState:i},a))})}));function $k(e){return Kn("MuiTableHead",e)}var Pk=Xn("MuiTableHead",["root"]);const Ik=["className","component"],Lk=Ps("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Ek={variant:"head"},Nk="thead";var Ak=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiTableHead"}),{className:r,component:n=Nk}=o,a=N(o,Ik),i=E({},o,{component:n}),l=(e=>{const{classes:t}=e;return Un({root:["root"]},$k,t)})(i);return ro(rk.Provider,{value:Ek,children:ro(Lk,E({as:n,className:Zr(l.root,r),ref:t,role:n===Nk?null:"rowgroup",ownerState:i},a))})}));function Ok(e){return Kn("MuiToolbar",e)}var zk=Xn("MuiToolbar",["root","gutters","regular","dense"]);const Bk=["className","component","disableGutters","variant"],Fk=Ps("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableGutters&&t.gutters,t[o.variant]]}})((({theme:e,ownerState:t})=>E({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar));var Dk,Wk,Vk,Hk,Uk,jk,Gk,_k,qk=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiToolbar"}),{className:r,component:n="div",disableGutters:a=!1,variant:i="regular"}=o,l=N(o,Bk),s=E({},o,{component:n,disableGutters:a,variant:i}),c=(e=>{const{classes:t,disableGutters:o,variant:r}=e;return Un({root:["root",!o&&"gutters",r]},Ok,t)})(s);return ro(Fk,E({as:n,className:Zr(c.root,r),ref:t,ownerState:s},l))})),Kk=zs(ro("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Xk=zs(ro("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");const Yk=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"];var Zk=i.forwardRef((function(e,t){const{backIconButtonProps:o,count:r,getItemAriaLabel:n,nextIconButtonProps:a,onPageChange:i,page:l,rowsPerPage:s,showFirstButton:c,showLastButton:d}=e,u=N(e,Yk),p=Rs();return no("div",E({ref:t},u,{children:[c&&ro(ud,{onClick:e=>{i(e,0)},disabled:0===l,"aria-label":n("first",l),title:n("first",l),children:"rtl"===p.direction?Dk||(Dk=ro(qy,{})):Wk||(Wk=ro(_y,{}))}),ro(ud,E({onClick:e=>{i(e,l-1)},disabled:0===l,color:"inherit","aria-label":n("previous",l),title:n("previous",l)},o,{children:"rtl"===p.direction?Vk||(Vk=ro(Xk,{})):Hk||(Hk=ro(Kk,{}))})),ro(ud,E({onClick:e=>{i(e,l+1)},disabled:-1!==r&&l>=Math.ceil(r/s)-1,color:"inherit","aria-label":n("next",l),title:n("next",l)},a,{children:"rtl"===p.direction?Uk||(Uk=ro(Kk,{})):jk||(jk=ro(Xk,{}))})),d&&ro(ud,{onClick:e=>{i(e,Math.max(0,Math.ceil(r/s)-1))},disabled:l>=Math.ceil(r/s)-1,"aria-label":n("last",l),title:n("last",l),children:"rtl"===p.direction?Gk||(Gk=ro(_y,{})):_k||(_k=ro(qy,{}))})]}))}));function Jk(e){return Kn("MuiTablePagination",e)}var Qk,eR=Xn("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);const tR=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],oR=Ps(hk,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({overflow:"auto",color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),rR=Ps(qk,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>E({[`& .${eR.actions}`]:t.actions},t.toolbar)})((({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${eR.actions}`]:{flexShrink:0,marginLeft:20}}))),nR=Ps("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),aR=Ps("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((({theme:e})=>E({},e.typography.body2,{flexShrink:0}))),iR=Ps(aw,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>E({[`& .${eR.selectIcon}`]:t.selectIcon,[`& .${eR.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${eR.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),lR=Ps(cy,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),sR=Ps("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((({theme:e})=>E({},e.typography.body2,{flexShrink:0})));function cR({from:e,to:t,count:o}){return`${e}–${t} of ${-1!==o?o:`more than ${t}`}`}function dR(e){return`Go to ${e} page`}var uR=i.forwardRef((function(e,o){const r=Ms({props:e,name:"MuiTablePagination"}),{ActionsComponent:n=Zk,backIconButtonProps:a,className:i,colSpan:l,component:s=hk,count:c,getItemAriaLabel:d=dR,labelDisplayedRows:u=cR,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:m,onPageChange:f,onRowsPerPageChange:h,page:g,rowsPerPage:b,rowsPerPageOptions:v=[10,25,50,100],SelectProps:y={},showFirstButton:x=!1,showLastButton:w=!1}=r,S=N(r,tR),C=r,k=(e=>{const{classes:t}=e;return Un({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Jk,t)})(C),R=y.native?"option":lR;let M;s!==hk&&"td"!==s||(M=l||1e3);const T=wo(y.id),$=wo(y.labelId);return ro(oR,E({colSpan:M,ref:o,as:s,ownerState:C,className:Zr(k.root,i)},S,{children:no(rR,{className:k.toolbar,children:[ro(nR,{className:k.spacer}),v.length>1&&ro(aR,{className:k.selectLabel,id:$,children:p}),v.length>1&&ro(iR,E({variant:"standard",input:Qk||(Qk=ro(Lh,{})),value:b,onChange:h,id:T,labelId:$},y,{classes:E({},y.classes,{root:Zr(k.input,k.selectRoot,(y.classes||{}).root),select:Zr(k.select,(y.classes||{}).select),icon:Zr(k.selectIcon,(y.classes||{}).icon)}),children:v.map((e=>t.createElement(R,E({},!jn(R)&&{ownerState:C},{className:k.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)))})),ro(sR,{className:k.displayedRows,children:u({from:0===c?0:g*b+1,to:-1===c?(g+1)*b:-1===b?c:Math.min(c,(g+1)*b),count:-1===c?-1:c,page:g})}),ro(n,{className:k.actions,backIconButtonProps:a,count:c,nextIconButtonProps:m,onPageChange:f,page:g,rowsPerPage:b,showFirstButton:x,showLastButton:w,getItemAriaLabel:d})]})}))}));function pR(e){return Kn("MuiTableRow",e)}var mR=Xn("MuiTableRow",["root","selected","hover","head","footer"]);const fR=["className","component","hover","selected"],hR=Ps("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.head&&t.head,o.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${mR.hover}:hover`]:{backgroundColor:e.palette.action.hover},[`&.${mR.selected}`]:{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:Ln(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),gR="tr";var bR=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiTableRow"}),{className:r,component:n=gR,hover:a=!1,selected:l=!1}=o,s=N(o,fR),c=i.useContext(rk),d=E({},o,{component:n,hover:a,selected:l,head:c&&"head"===c.variant,footer:c&&"footer"===c.variant}),u=(e=>{const{classes:t,selected:o,hover:r,head:n,footer:a}=e;return Un({root:["root",o&&"selected",r&&"hover",n&&"head",a&&"footer"]},pR,t)})(d);return ro(hR,E({as:n,ref:t,className:Zr(u.root,r),role:n===gR?null:"row",ownerState:d},s))})),vR=zs(ro("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function yR(e){return Kn("MuiTableSortLabel",e)}var xR=Xn("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]);const wR=["active","children","className","direction","hideSortIcon","IconComponent"],SR=Ps(Yc,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.active&&t.active]}})((({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,[`& .${xR.icon}`]:{opacity:.5}},[`&.${xR.active}`]:{color:e.palette.text.primary,[`& .${xR.icon}`]:{opacity:1,color:e.palette.text.secondary}}}))),CR=Ps("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,t[`iconDirection${po(o.direction)}`]]}})((({theme:e,ownerState:t})=>E({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},"desc"===t.direction&&{transform:"rotate(0deg)"},"asc"===t.direction&&{transform:"rotate(180deg)"})));var kR=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiTableSortLabel"}),{active:r=!1,children:n,className:a,direction:i="asc",hideSortIcon:l=!1,IconComponent:s=vR}=o,c=N(o,wR),d=E({},o,{active:r,direction:i,hideSortIcon:l,IconComponent:s}),u=(e=>{const{classes:t,direction:o,active:r}=e;return Un({root:["root",r&&"active"],icon:["icon",`iconDirection${po(o)}`]},yR,t)})(d);return no(SR,E({className:Zr(u.root,a),component:"span",disableRipple:!0,ownerState:d,ref:t},c,{children:[n,l&&!r?null:ro(CR,{as:s,className:Zr(u.icon),ownerState:d})]}))}));function RR(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const MR=["onChange"],TR={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function $R(e){return Kn("MuiTabScrollButton",e)}var PR,IR,LR=Xn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);const ER=["className","direction","orientation","disabled"],NR=Ps(Yc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.orientation&&t[o.orientation]]}})((({ownerState:e})=>E({width:40,flexShrink:0,opacity:.8,[`&.${LR.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})));var AR=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiTabScrollButton"}),{className:r,direction:n}=o,a=N(o,ER),i=E({isRtl:"rtl"===Rs().direction},o),l=(e=>{const{classes:t,orientation:o,disabled:r}=e;return Un({root:["root",o,r&&"disabled"]},$R,t)})(i);return ro(NR,E({component:"div",className:Zr(l.root,r),ref:t,role:null,ownerState:i,tabIndex:null},a,{children:"left"===n?PR||(PR=ro(Kk,{fontSize:"small"})):IR||(IR=ro(Xk,{fontSize:"small"}))}))}));function OR(e){return Kn("MuiTabs",e)}var zR=Xn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);const BR=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],FR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,DR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,WR=(e,t,o)=>{let r=!1,n=o(e,t);for(;n;){if(n===e.firstChild){if(r)return;r=!0}const t=n.disabled||"true"===n.getAttribute("aria-disabled");if(n.hasAttribute("tabindex")&&!t)return void n.focus();n=o(e,n)}},VR=Ps("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${zR.scrollButtons}`]:t.scrollButtons},{[`& .${zR.scrollButtons}`]:o.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,o.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>E({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${zR.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),HR=Ps("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.scroller,o.fixed&&t.fixed,o.hideScrollbar&&t.hideScrollbar,o.scrollableX&&t.scrollableX,o.scrollableY&&t.scrollableY]}})((({ownerState:e})=>E({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),UR=Ps("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.flexContainer,o.vertical&&t.flexContainerVertical,o.centered&&t.centered]}})((({ownerState:e})=>E({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),jR=Ps("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>E({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:t.palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:t.palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),GR=Ps((function(e){const{onChange:t}=e,o=N(e,MR),r=i.useRef(),n=i.useRef(null),a=()=>{r.current=n.current.offsetHeight-n.current.clientHeight};return i.useEffect((()=>{const e=fo((()=>{const e=r.current;a(),e!==r.current&&t(r.current)})),o=bo(n.current);return o.addEventListener("resize",e),()=>{e.clear(),o.removeEventListener("resize",e)}}),[t]),i.useEffect((()=>{a(),t(r.current)}),[t]),ro("div",E({style:TR,ref:n},o))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),_R={};var qR=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiTabs"}),r=Rs(),n="rtl"===r.direction,{"aria-label":a,"aria-labelledby":l,action:s,centered:c=!1,children:d,className:u,component:p="div",allowScrollButtonsMobile:m=!1,indicatorColor:f="primary",onChange:h,orientation:g="horizontal",ScrollButtonComponent:b=AR,scrollButtons:v="auto",selectionFollowsFocus:y,TabIndicatorProps:x={},TabScrollButtonProps:w={},textColor:S="primary",value:C,variant:k="standard",visibleScrollbar:R=!1}=o,M=N(o,BR),T="scrollable"===k,$="vertical"===g,P=$?"scrollTop":"scrollLeft",I=$?"top":"left",L=$?"bottom":"right",A=$?"clientHeight":"clientWidth",O=$?"height":"width",z=E({},o,{component:p,allowScrollButtonsMobile:m,indicatorColor:f,orientation:g,vertical:$,scrollButtons:v,textColor:S,variant:k,visibleScrollbar:R,fixed:!T,hideScrollbar:T&&!R,scrollableX:T&&!$,scrollableY:T&&$,centered:c&&!T,scrollButtonsHideMobile:!m}),B=(e=>{const{vertical:t,fixed:o,hideScrollbar:r,scrollableX:n,scrollableY:a,centered:i,scrollButtonsHideMobile:l,classes:s}=e;return Un({root:["root",t&&"vertical"],scroller:["scroller",o&&"fixed",r&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},OR,s)})(z),[F,D]=i.useState(!1),[W,V]=i.useState(_R),[H,U]=i.useState({start:!1,end:!1}),[j,G]=i.useState({overflow:"hidden",scrollbarWidth:0}),_=new Map,q=i.useRef(null),K=i.useRef(null),X=()=>{const e=q.current;let t,o;if(e){const o=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:Bo(e,r.direction),scrollWidth:e.scrollWidth,top:o.top,bottom:o.bottom,left:o.left,right:o.right}}if(e&&!1!==C){const e=K.current.children;if(e.length>0){const t=e[_.get(C)];o=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:o}},Y=Co((()=>{const{tabsMeta:e,tabMeta:t}=X();let o,r=0;if($)o="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(o=n?"right":"left",t&&e){const a=n?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(n?-1:1)*(t[o]-e[o]+a)}const a={[o]:r,[O]:t?t[O]:0};if(isNaN(W[o])||isNaN(W[O]))V(a);else{const e=Math.abs(W[o]-a[o]),t=Math.abs(W[O]-a[O]);(e>=1||t>=1)&&V(a)}})),Z=(e,{animation:t=!0}={})=>{t?function(e,t,o,r={},n=(()=>{})){const{ease:a=RR,duration:i=300}=r;let l=null;const s=t[e];let c=!1;const d=()=>{c=!0},u=r=>{if(c)return void n(new Error("Animation cancelled"));null===l&&(l=r);const d=Math.min(1,(r-l)/i);t[e]=a(d)*(o-s)+s,d>=1?requestAnimationFrame((()=>{n(null)})):requestAnimationFrame(u)};s===o?n(new Error("Element already at target position")):requestAnimationFrame(u)}(P,q.current,e,{duration:r.transitions.duration.standard}):q.current[P]=e},J=e=>{let t=q.current[P];$?t+=e:(t+=e*(n?-1:1),t*=n&&"reverse"===zo()?-1:1),Z(t)},Q=()=>{const e=q.current[A];let t=0;const o=Array.from(K.current.children);for(let r=0;re)break;t+=n[A]}return t},ee=()=>{J(-1*Q())},te=()=>{J(Q())},oe=i.useCallback((e=>{G({overflow:null,scrollbarWidth:e})}),[]),re=Co((e=>{const{tabsMeta:t,tabMeta:o}=X();if(o&&t)if(o[I]t[L]){const r=t[P]+(o[L]-t[L]);Z(r,{animation:e})}})),ne=Co((()=>{if(T&&!1!==v){const{scrollTop:e,scrollHeight:t,clientHeight:o,scrollWidth:a,clientWidth:i}=q.current;let l,s;if($)l=e>1,s=e1,s=n?e>1:e{const e=fo((()=>{Y(),ne()})),t=bo(q.current);let o;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),Array.from(K.current.children).forEach((e=>{o.observe(e)}))),()=>{e.clear(),t.removeEventListener("resize",e),o&&o.disconnect()}}),[Y,ne]);const ae=i.useMemo((()=>fo((()=>{ne()}))),[ne]);i.useEffect((()=>()=>{ae.clear()}),[ae]),i.useEffect((()=>{D(!0)}),[]),i.useEffect((()=>{Y(),ne()})),i.useEffect((()=>{re(_R!==W)}),[re,W]),i.useImperativeHandle(s,(()=>({updateIndicator:Y,updateScrollButtons:ne})),[Y,ne]);const ie=ro(jR,E({},x,{className:Zr(B.indicator,x.className),ownerState:z,style:E({},W,x.style)}));let le=0;const se=i.Children.map(d,(e=>{if(!i.isValidElement(e))return null;const t=void 0===e.props.value?le:e.props.value;_.set(t,le);const o=t===C;return le+=1,i.cloneElement(e,E({fullWidth:"fullWidth"===k,indicator:o&&!F&&ie,selected:o,selectionFollowsFocus:y,onChange:h,textColor:S,value:t},1!==le||!1!==C||e.props.tabIndex?{}:{tabIndex:0}))})),ce=(()=>{const e={};e.scrollbarSizeListener=T?ro(GR,{onChange:oe,className:Zr(B.scrollableX,B.hideScrollbar)}):null;const t=H.start||H.end,o=T&&("auto"===v&&t||!0===v);return e.scrollButtonStart=o?ro(b,E({orientation:g,direction:n?"right":"left",onClick:ee,disabled:!H.start},w,{className:Zr(B.scrollButtons,w.className)})):null,e.scrollButtonEnd=o?ro(b,E({orientation:g,direction:n?"left":"right",onClick:te,disabled:!H.end},w,{className:Zr(B.scrollButtons,w.className)})):null,e})();return no(VR,E({className:Zr(B.root,u),ownerState:z,ref:t,as:p},M,{children:[ce.scrollButtonStart,ce.scrollbarSizeListener,no(HR,{className:B.scroller,ownerState:z,style:{overflow:j.overflow,[$?"margin"+(n?"Left":"Right"):"marginBottom"]:R?void 0:-j.scrollbarWidth},ref:q,onScroll:ae,children:[ro(UR,{"aria-label":a,"aria-labelledby":l,"aria-orientation":"vertical"===g?"vertical":null,className:B.flexContainer,ownerState:z,onKeyDown:e=>{const t=K.current,o=go(t).activeElement;if("tab"!==o.getAttribute("role"))return;let r="horizontal"===g?"ArrowLeft":"ArrowUp",a="horizontal"===g?"ArrowRight":"ArrowDown";switch("horizontal"===g&&n&&(r="ArrowRight",a="ArrowLeft"),e.key){case r:e.preventDefault(),WR(t,o,DR);break;case a:e.preventDefault(),WR(t,o,FR);break;case"Home":e.preventDefault(),WR(t,null,FR);break;case"End":e.preventDefault(),WR(t,null,DR)}},ref:K,role:"tablist",children:se}),F&&ie]}),ce.scrollButtonEnd]}))}));function KR(e){return Kn("MuiTextField",e)}var XR=Xn("MuiTextField",["root"]);const YR=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],ZR={standard:ub,filled:zh,outlined:Dy},JR=Ps(Vh,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({});var QR=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:n=!1,children:a,className:l,color:s="primary",defaultValue:c,disabled:d=!1,error:u=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:f,id:h,InputLabelProps:g,inputProps:b,InputProps:v,inputRef:y,label:x,maxRows:w,minRows:S,multiline:C=!1,name:k,onBlur:R,onChange:M,onFocus:T,placeholder:$,required:P=!1,rows:I,select:L=!1,SelectProps:A,type:O,value:z,variant:B="outlined"}=o,F=N(o,YR),D=E({},o,{autoFocus:n,color:s,disabled:d,error:u,fullWidth:m,multiline:C,required:P,select:L,variant:B}),W=(e=>{const{classes:t}=e;return Un({root:["root"]},KR,t)})(D),V={};if("outlined"===B&&(g&&void 0!==g.shrink&&(V.notched=g.shrink),x)){var H;const e=null!=(H=null==g?void 0:g.required)?H:P;V.label=no(i.Fragment,{children:[x,e&&" *"]})}L&&(A&&A.native||(V.id=void 0),V["aria-describedby"]=void 0);const U=wo(h),j=f&&U?`${U}-helper-text`:void 0,G=x&&U?`${U}-label`:void 0,_=ro(ZR[B],E({"aria-describedby":j,autoComplete:r,autoFocus:n,defaultValue:c,fullWidth:m,multiline:C,name:k,rows:I,maxRows:w,minRows:S,type:O,value:z,id:U,inputRef:y,onBlur:R,onChange:M,onFocus:T,placeholder:$,inputProps:b},V,v));return no(JR,E({className:Zr(W.root,l),disabled:d,error:u,fullWidth:m,ref:t,required:P,color:s,variant:B,ownerState:D},F,{children:[x&&ro(wb,E({htmlFor:U,id:G},g,{children:x})),L?ro(aw,E({"aria-describedby":j,id:U,labelId:G,value:z,input:_},A,{children:a})):_,f&&ro(og,E({id:j},p,{children:f}))]}))}));function eM(e){return Kn("MuiToggleButton",e)}var tM=Xn("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]);const oM=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],rM=Ps(Yc,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`size${po(o.size)}`]]}})((({theme:e,ownerState:t})=>{const o="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return E({},e.typography.button,{borderRadius:e.shape.borderRadius,padding:11,border:`1px solid ${e.palette.divider}`,color:e.palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${tM.disabled}`]:{color:e.palette.action.disabled,border:`1px solid ${e.palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:Ln(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tM.selected}`]:{color:o,backgroundColor:Ln(o,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:Ln(o,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:Ln(o,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})}));var nM=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiToggleButton"}),{children:r,className:n,color:a="standard",disabled:i=!1,disableFocusRipple:l=!1,fullWidth:s=!1,onChange:c,onClick:d,selected:u,size:p="medium",value:m}=o,f=N(o,oM),h=E({},o,{color:a,disabled:i,disableFocusRipple:l,fullWidth:s,size:p}),g=(e=>{const{classes:t,fullWidth:o,selected:r,disabled:n,size:a,color:i}=e;return Un({root:["root",r&&"selected",n&&"disabled",o&&"fullWidth",`size${po(a)}`,i]},eM,t)})(h);return ro(rM,E({className:Zr(g.root,n),disabled:i,focusRipple:!l,ref:t,onClick:e=>{d&&(d(e,m),e.defaultPrevented)||c&&c(e,m)},onChange:c,value:m,ownerState:h,"aria-pressed":u},f,{children:r}))}));function aM(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}function iM(e){return Kn("MuiToggleButtonGroup",e)}var lM=Xn("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]);const sM=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],cM=Ps("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${lM.grouped}`]:t.grouped},{[`& .${lM.grouped}`]:t[`grouped${po(o.orientation)}`]},t.root,"vertical"===o.orientation&&t.vertical,o.fullWidth&&t.fullWidth]}})((({ownerState:e,theme:t})=>E({display:"inline-flex",borderRadius:t.shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${lM.grouped}`]:E({},"horizontal"===e.orientation?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},[`&.${lM.selected} + .${lM.grouped}.${lM.selected}`]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`&.${lM.selected} + .${lM.grouped}.${lM.selected}`]:{borderTop:0,marginTop:0}})})));var dM=i.forwardRef((function(e,t){const o=Ms({props:e,name:"MuiToggleButtonGroup"}),{children:r,className:n,color:a="standard",disabled:l=!1,exclusive:s=!1,fullWidth:c=!1,onChange:d,orientation:u="horizontal",size:p="medium",value:m}=o,f=N(o,sM),h=E({},o,{disabled:l,fullWidth:c,orientation:u,size:p}),g=(e=>{const{classes:t,orientation:o,fullWidth:r,disabled:n}=e;return Un({root:["root","vertical"===o&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${po(o)}`,n&&"disabled"]},iM,t)})(h),b=(e,t)=>{if(!d)return;const o=m&&m.indexOf(t);let r;m&&o>=0?(r=m.slice(),r.splice(o,1)):r=m?m.concat(t):[t],d(e,r)},v=(e,t)=>{d&&d(e,m===t?null:t)};return ro(cM,E({role:"group",className:Zr(g.root,n),ref:t,ownerState:h},f,{children:i.Children.map(r,(e=>i.isValidElement(e)?i.cloneElement(e,{className:Zr(g.grouped,e.props.className),onChange:s?v:b,selected:void 0===e.props.selected?aM(e.props.value,m):e.props.selected,size:e.props.size||p,fullWidth:c,color:e.props.color||a,disabled:e.props.disabled||l}):null))}))}));const uM=["getTrigger","target"];function pM(e,t){const{disableHysteresis:o=!1,threshold:r=100,target:n}=t,a=e.current;return n&&(e.current=void 0!==n.pageYOffset?n.pageYOffset:n.scrollTop),!(!o&&void 0!==a&&e.currentr}const mM="undefined"!=typeof window?window:null;e.Accordion=Sc,e.AccordionActions=Tc,e.AccordionDetails=Ec,e.AccordionSummary=rd,e.Alert=Cd,e.AlertTitle=Od,e.AppBar=Wd,e.Autocomplete=Mu,e.Avatar=Au,e.AvatarGroup=Vu,e.Backdrop=Xu,e.BackdropUnstyled=Qn,e.Badge=ep,e.BadgeUnstyled=ra,e.BottomNavigation=ap,e.BottomNavigationAction=up,e.Box=pp,e.Breadcrumbs=kp,e.Button=Np,e.ButtonBase=Yc,e.ButtonGroup=Fp,e.ButtonUnstyled=da,e.Card=Up,e.CardActionArea=Xp,e.CardActions=em,e.CardContent=am,e.CardHeader=mm,e.CardMedia=xm,e.Checkbox=Fm,e.Chip=eu,e.CircularProgress=Qm,e.ClickAwayListener=tf,e.Collapse=dc,e.Container=lf,e.CssBaseline=function(e){const t=Ms({props:e,name:"MuiCssBaseline"}),{children:o,enableColorScheme:r=!1}=t;return no(i.Fragment,{children:[ro(sf,{styles:e=>((e,t=!1)=>{var o,r;let n={html:cf(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:E({margin:0},df(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})};const a=null==(o=e.components)||null==(r=o.MuiCssBaseline)?void 0:r.styleOverrides;return a&&(n=[n,a]),n})(e,r)}),o]})},e.Dialog=Mf,e.DialogActions=Lf,e.DialogContent=Ff,e.DialogContentText=Uf,e.DialogTitle=_f,e.Divider=Jf,e.Drawer=gh,e.Fab=wh,e.Fade=Gu,e.FilledInput=zh,e.FormControl=Vh,e.FormControlLabel=_h,e.FormControlUnstyled=fa,e.FormControlUnstyledContext=ua,e.FormGroup=Zh,e.FormHelperText=og,e.FormLabel=sg,e.FormLabelRoot=ig,e.GlobalStyles=sf,e.Grid=gg,e.Grow=wg,e.Hidden=function(e){const{implementation:t="js",lgDown:o=!1,lgUp:r=!1,mdDown:n=!1,mdUp:a=!1,smDown:i=!1,smUp:l=!1,xlDown:s=!1,xlUp:c=!1,xsDown:d=!1,xsUp:u=!1}=e,p=N(e,Ag);return ro("js"===t?Pg:Ng,E({lgDown:o,lgUp:r,mdDown:n,mdUp:a,smDown:i,smUp:l,xlDown:s,xlUp:c,xsDown:d,xsUp:u},p))},e.Icon=Wg,e.IconButton=ud,e.ImageList=_g,e.ImageListItem=Zg,e.ImageListItemBar=ib,e.Input=ub,e.InputAdornment=gb,e.InputBase=Lh,e.InputLabel=wb,e.InputUnstyled=ya,e.LinearProgress=Wb,e.Link=_b,e.List=Jb,e.ListItem=gv,e.ListItemAvatar=wv,e.ListItemButton=av,e.ListItemIcon=Mv,e.ListItemSecondaryAction=uv,e.ListItemText=Lv,e.ListSubheader=_d,e.Menu=ny,e.MenuItem=cy,e.MenuList=Bv,e.MobileStepper=by,e.Modal=gf,e.ModalManager=Ma,e.ModalUnstyled=Oa,e.NativeSelect=Iy,e.NoSsr=za,e.OutlinedInput=Dy,e.Pagination=ix,e.PaginationItem=tx,e.Paper=gc,e.Popover=Kv,e.Popper=Vd,e.PopperUnstyled=Zi,e.Portal=xa,e.Radio=wx,e.RadioGroup=Cx,e.Rating=Wx,e.ScopedCssBaseline=Gx,e.Select=aw,e.Skeleton=bw,e.Slide=rh,e.Slider=$w,e.SliderMark=Rw,e.SliderMarkLabel=Mw,e.SliderRail=ww,e.SliderRoot=xw,e.SliderThumb=Cw,e.SliderTrack=Sw,e.SliderUnstyled=hl,e.SliderValueLabel=kw,e.SliderValueLabelUnstyled=el,e.Snackbar=Vw,e.SnackbarContent=Ow,e.SpeedDial=tS,e.SpeedDialAction=vS,e.SpeedDialIcon=RS,e.Stack=PS,e.Step=zS,e.StepButton=aC,e.StepConnector=uC,e.StepContent=bC,e.StepIcon=GS,e.StepLabel=eC,e.Stepper=CC,e.StyledEngineProvider=function(e){const{injectFirst:t,children:o}=e;return t?ro(Bt,{value:ao,children:o}):o},e.SvgIcon=Os,e.SwipeableDrawer=zC,e.Switch=jC,e.SwitchUnstyled=yl,e.Tab=XC,e.TabPanelUnstyled=Jl,e.TabScrollButton=AR,e.TabUnstyled=Dl,e.Table=ok,e.TableBody=dk,e.TableCell=hk,e.TableContainer=xk,e.TableFooter=Tk,e.TableHead=Ak,e.TablePagination=uR,e.TableRow=bR,e.TableSortLabel=kR,e.Tabs=qR,e.TabsContext=Ll,e.TabsListUnstyled=ql,e.TabsUnstyled=Nl,e.TextField=QR,e.TextareaAutosize=Cl,e.ThemeProvider=function(e){const{children:t,theme:o}=e;return ro(sn,{theme:o,children:ro(On,{children:t})})},e.ToggleButton=nM,e.ToggleButtonGroup=dM,e.Toolbar=qk,e.Tooltip=uS,e.Typography=Id,e.Unstable_TrapFocus=Ia,e.Zoom=Gw,e.accordionActionsClasses=kc,e.accordionClasses=yc,e.accordionDetailsClasses=Pc,e.accordionSummaryClasses=Jc,e.adaptV4Theme=function(e){const{defaultProps:t={},mixins:o={},overrides:r={},palette:n={},props:a={},styleOverrides:i={}}=e,l=E({},N(e,zn),{components:{}});Object.keys(t).forEach((e=>{const o=l.components[e]||{};o.defaultProps=t[e],l.components[e]=o})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.defaultProps=a[e],l.components[e]=t})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=i[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=tn(e.spacing);const s=Qr(e.breakpoints||{}),c=l.spacing;l.mixins=E({gutters:(e={})=>E({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:E({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},o);const{type:d,mode:u}=n,p=N(n,Bn),m=u||d||"light";return l.palette=E({text:{hint:"dark"===m?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:m,type:m},p),l},e.alertClasses=ad,e.alertTitleClasses=Ed,e.alpha=Ln,e.appBarClasses=Bd,e.appendOwnerState=sa,e.autocompleteClasses=mu,e.avatarClasses=Pu,e.avatarGroupClasses=zu,e.backdropClasses=qu,e.backdropUnstyledClasses=Zn,e.badgeClasses=Zu,e.badgeUnstyledClasses=ta,e.bottomNavigationActionClasses=lp,e.bottomNavigationClasses=op,e.breadcrumbsClasses=vp,e.buttonBaseClasses=qc,e.buttonClasses=Mp,e.buttonGroupClasses=Op,e.buttonUnstyledClasses=aa,e.capitalize=po,e.cardActionAreaClasses=Gp,e.cardActionsClasses=Zp,e.cardClasses=Wp,e.cardContentClasses=om,e.cardHeaderClasses=lm,e.cardMediaClasses=hm,e.checkboxClasses=Em,e.chipClasses=Xd,e.circularProgressClasses=Wm,e.collapseClasses=nc,e.colors=P,e.containerClasses=rf,e.createChainedFunction=mo,e.createFilterOptions=Dn,e.createMuiTheme=function(...e){return vs(...e)},e.createStyles=function(e){return ys||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join("\n")),ys=!0),e},e.createSvgIcon=zs,e.createTheme=vs,e.css=Vt,e.darkScrollbar=function(e=uf){return{scrollbarColor:`${e.thumb} ${e.track}`,"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:e.track},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:e.thumb,minHeight:24,border:`3px solid ${e.track}`},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:e.active},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:e.active},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:e.active},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:e.track}}},e.darken=En,e.debounce=fo,e.decomposeColor=Mn,e.deprecatedPropType=function(e,t){return()=>null},e.dialogActionsClasses=$f,e.dialogClasses=vf,e.dialogContentClasses=Nf,e.dialogContentTextClasses=Wf,e.dialogTitleClasses=Of,e.dividerClasses=Kf,e.drawerClasses=ah,e.duration=ps,e.easing=us,e.emphasize=An,e.experimentalStyled=Ps,e.experimental_sx=function(e){return({theme:t})=>qr({sx:e,theme:t})},e.extractEventHandlers=ia,e.fabClasses=vh,e.filledInputClasses=su,e.formControlClasses=Fh,e.formControlLabelClasses=Uh,e.formControlUnstyledClasses=pa,e.formGroupClasses=Kh,e.formHelperTextClasses=Qh,e.formLabelClasses=ng,e.generateUtilityClass=Kn,e.generateUtilityClasses=Xn,e.getAccordionActionsUtilityClass=Cc,e.getAccordionDetailsUtilityClass=$c,e.getAccordionSummaryUtilityClass=Zc,e.getAccordionUtilityClass=vc,e.getAlertTitleUtilityClass=Ld,e.getAlertUtilityClass=nd,e.getAppBarUtilityClass=zd,e.getAutocompleteUtilityClass=du,e.getAvatarGroupUtilityClass=Ou,e.getAvatarUtilityClass=$u,e.getBackdropUtilityClass=Yn,e.getBadgeUtilityClass=ea,e.getBottomNavigationActionUtilityClass=ip,e.getBottomNavigationUtilityClass=tp,e.getBreadcrumbsUtilityClass=bp,e.getButtonBaseUtilityClass=_c,e.getButtonGroupUtilityClass=Ap,e.getButtonUnstyledUtilityClass=na,e.getButtonUtilityClass=Rp,e.getCardActionAreaUtilityClass=jp,e.getCardActionsUtilityClass=Yp,e.getCardContentUtilityClass=tm,e.getCardHeaderUtilityClass=im,e.getCardMediaUtilityClass=fm,e.getCardUtilityClass=Dp,e.getCheckboxUtilityClass=Lm,e.getChipUtilityClass=Kd,e.getCircularProgressUtilityClass=Dm,e.getCollapseUtilityClass=rc,e.getContainerUtilityClass=of,e.getContrastRatio=In,e.getDialogActionsUtilityClass=Tf,e.getDialogContentTextUtilityClass=Df,e.getDialogContentUtilityClass=Ef,e.getDialogTitleUtilityClass=Af,e.getDialogUtilityClass=bf,e.getDividerUtilityClass=qf,e.getDrawerUtilityClass=nh,e.getFabUtilityClass=bh,e.getFilledInputUtilityClass=lu,e.getFormControlLabelUtilityClasses=Hh,e.getFormControlUnstyledUtilityClasses=function(e){return Kn("MuiFormControl",e)},e.getFormControlUtilityClasses=Bh,e.getFormGroupUtilityClass=qh,e.getFormHelperTextUtilityClasses=Jh,e.getFormLabelUtilityClasses=rg,e.getGridUtilityClass=dg,e.getIconButtonUtilityClass=id,e.getIconUtilityClass=Og,e.getImageListItemBarUtilityClass=Jg,e.getImageListItemUtilityClass=qg,e.getImageListUtilityClass=Vg,e.getInputAdornmentUtilityClass=pb,e.getInputBaseUtilityClass=ru,e.getInputLabelUtilityClasses=bb,e.getInputUnstyledUtilityClass=function(e){return Kn("MuiInput",e)},e.getInputUtilityClass=tu,e.getLinearProgressUtilityClass=Sb,e.getLinkUtilityClass=Vb,e.getListItemAvatarUtilityClass=bv,e.getListItemButtonUtilityClass=tv,e.getListItemIconUtilityClass=Sv,e.getListItemSecondaryActionClassesUtilityClass=iv,e.getListItemTextUtilityClass=Tv,e.getListItemUtilityClass=Qb,e.getListSubheaderUtilityClass=Hd,e.getListUtilityClass=Kb,e.getLuminance=Pn,e.getMenuItemUtilityClass=ay,e.getMenuUtilityClass=Xv,e.getMobileStepperUtilityClass=dy,e.getModalUtilityClass=La,e.getNativeSelectUtilityClasses=vy,e.getOutlinedInputUtilityClass=au,e.getPaginationItemUtilityClass=jy,e.getPaginationUtilityClass=Wy,e.getPanelId=Pl,e.getPaperUtilityClass=uc,e.getPopoverUtilityClass=Fv,e.getRadioUtilityClass=hx,e.getRatingUtilityClass=Mx,e.getScopedCssBaselineUtilityClass=Vx,e.getSelectUtilityClasses=_x,e.getSkeletonUtilityClass=iw,e.getSliderUtilityClass=Ji,e.getSnackbarContentUtilityClass=Pw,e.getSnackbarUtilityClass=zw,e.getSpeedDialActionUtilityClass=pS,e.getSpeedDialIconUtilityClass=xS,e.getSpeedDialUtilityClass=_w,e.getStepButtonUtilityClass=tC,e.getStepConnectorUtilityClass=iC,e.getStepContentUtilityClass=pC,e.getStepIconUtilityClass=DS,e.getStepLabelUtilityClass=_S,e.getStepUtilityClass=ES,e.getStepperUtilityClass=vC,e.getSvgIconUtilityClass=Is,e.getSwitchUnstyledUtilityClass=function(e){return Kn("MuiSwitch",e)},e.getSwitchUtilityClass=BC,e.getTabId=Il,e.getTabPanelUnstyledUtilityClass=Kl,e.getTabScrollButtonUtilityClass=$R,e.getTabUnstyledUtilityClass=Al,e.getTabUtilityClass=GC,e.getTableBodyUtilityClass=nk,e.getTableCellUtilityClass=uk,e.getTableContainerUtilityClass=gk,e.getTableFooterUtilityClass=wk,e.getTableHeadUtilityClass=$k,e.getTablePaginationUtilityClass=Jk,e.getTableRowUtilityClass=pR,e.getTableSortLabelUtilityClass=yR,e.getTableUtilityClass=ZC,e.getTabsListUnstyledUtilityClass=Wl,e.getTabsUnstyledUtilityClass=kl,e.getTabsUtilityClass=OR,e.getTextFieldUtilityClass=KR,e.getToggleButtonGroupUtilityClass=iM,e.getToggleButtonUtilityClass=eM,e.getToolbarUtilityClass=Ok,e.getTooltipUtilityClass=oS,e.getTouchRippleUtilityClass=function(e){return Kn("MuiTouchRipple",e)},e.getTypographyUtilityClass=kd,e.gridClasses=pg,e.hexToRgb=Rn,e.hslToRgb=$n,e.iconButtonClasses=ld,e.iconClasses=zg,e.imageListClasses=Hg,e.imageListItemBarClasses=Qg,e.imageListItemClasses=Kg,e.inputAdornmentClasses=mb,e.inputBaseClasses=nu,e.inputClasses=ou,e.inputLabelClasses=vb,e.inputUnstyledClasses=ga,e.isHostComponent=jn,e.isMuiElement=ho,e.keyframes=Ht,e.lighten=Nn,e.linearProgressClasses=Cb,e.linkClasses=Hb,e.listClasses=Xb,e.listItemAvatarClasses=vv,e.listItemButtonClasses=ov,e.listItemClasses=ev,e.listItemIconClasses=Cv,e.listItemSecondaryActionClasses=lv,e.listItemTextClasses=$v,e.listSubheaderClasses=Ud,e.makeStyles=function(){throw new Error(uo(14))},e.menuClasses=Yv,e.menuItemClasses=iy,e.mobileStepperClasses=uy,e.modalClasses=mf,e.modalUnstyledClasses=Ea,e.nativeSelectClasses=yy,e.outlinedInputClasses=iu,e.ownerDocument=go,e.ownerWindow=bo,e.paginationClasses=Vy,e.paginationItemClasses=Gy,e.paperClasses=pc,e.popoverClasses=Dv,e.radioClasses=gx,e.ratingClasses=Tx,e.recomposeColor=Tn,e.requirePropFactory=function(e,t){return()=>null},e.responsiveFontSizes=function(e,t={}){const{breakpoints:o=["sm","md","lg"],disableAlign:r=!1,factor:n=2,variants:a=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,i=E({},e);i.typography=E({},i.typography);const l=i.typography,s=(c=l.htmlFontSize,(e,t)=>{const o=ws(e);if(o===t)return e;let r=Ss(e);"px"!==o&&("em"===o||"rem"===o)&&(r=Ss(e)*Ss(c));let n=r;if("px"!==t)if("em"===t)n=r/Ss(c);else{if("rem"!==t)return e;n=r/Ss(c)}return parseFloat(n.toFixed(5))+t});var c;const d=o.map((e=>i.breakpoints.values[e]));return a.forEach((e=>{const t=l[e],o=parseFloat(s(t.fontSize,"rem"));if(o<=1)return;const a=o,i=1+(a-1)/n;let{lineHeight:c}=t;if(!xs(c)&&!r)throw new Error(uo(6));xs(c)||(c=parseFloat(s(c,"rem"))/parseFloat(o));let u=null;r||(u=e=>function({size:e,grid:t}){const o=e-e%t,r=o+t;return e-o{let n=t+l*o;null!==a&&(n=a(n)),i[`@media (min-width:${o}px)`]={[e]:`${Math.round(1e4*n)/1e4}${r}`}})),i}({cssProperty:"fontSize",min:i,max:a,unit:"rem",breakpoints:d,transform:u}))})),i},e.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Mn(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`},e.scopedCssBaselineClasses=Hx,e.selectClasses=qx,e.setRef=vo,e.skeletonClasses=lw,e.sliderClasses=yw,e.sliderUnstyledClasses=Qi,e.snackbarClasses=Bw,e.snackbarContentClasses=Iw,e.speedDialActionClasses=mS,e.speedDialClasses=qw,e.speedDialIconClasses=wS,e.stepButtonClasses=oC,e.stepClasses=NS,e.stepConnectorClasses=lC,e.stepContentClasses=mC,e.stepIconClasses=VS,e.stepLabelClasses=qS,e.stepperClasses=yC,e.styled=Ps,e.svgIconClasses=Ls,e.switchClasses=FC,e.switchUnstyledClasses=bl,e.tabClasses=_C,e.tabPanelUnstyledClasses=Xl,e.tabScrollButtonClasses=LR,e.tabUnstyledClasses=Ol,e.tableBodyClasses=ak,e.tableCellClasses=pk,e.tableClasses=JC,e.tableContainerClasses=bk,e.tableFooterClasses=Sk,e.tableHeadClasses=Pk,e.tablePaginationClasses=eR,e.tableRowClasses=mR,e.tableSortLabelClasses=xR,e.tabsClasses=zR,e.tabsListUnstyledClasses=Vl,e.tabsUnstyledClasses=Rl,e.textFieldClasses=XR,e.toggleButtonClasses=tM,e.toggleButtonGroupClasses=lM,e.toolbarClasses=zk,e.tooltipClasses=rS,e.touchRippleClasses=Nc,e.typographyClasses=Rd,e.unstable_ClassNameGenerator=_n,e.unstable_composeClasses=Un,e.unstable_createMuiStrictModeTheme=function(e,...t){return vs(co({unstable_strictMode:!0},e),...t)},e.unstable_getUnit=ws,e.unstable_toUnitless=Ss,e.unstable_useEnhancedEffect=yo,e.unstable_useId=wo,e.unsupportedProp=function(e,t,o,r,n){return null},e.useAutocomplete=Hn,e.useButton=la,e.useControlled=So,e.useEventCallback=Co,e.useForkRef=ko,e.useFormControl=Sm,e.useFormControlUnstyled=ha,e.useInput=ba,e.useIsFocusVisible=No,e.useMediaQuery=Sg,e.usePagination=Uy,e.useRadioGroup=fx,e.useScrollTrigger=function(e={}){const{getTrigger:t=pM,target:o=mM}=e,r=N(e,uM),n=i.useRef(),[a,l]=i.useState((()=>t(n,r)));return i.useEffect((()=>{const e=()=>{l(t(n,E({target:o},r)))};return e(),o.addEventListener("scroll",e),()=>{o.removeEventListener("scroll",e)}}),[o,t,JSON.stringify(r)]),a},e.useSwitch=gl,e.useTab=Bl,e.useTabContext=$l,e.useTabPanel=Yl,e.useTabs=Ml,e.useTabsList=Gl,e.useTheme=Rs,e.useThemeProps=Ms,e.withStyles=function(){throw new Error(uo(15))},e.withTheme=function(){throw new Error(uo(16))},Object.defineProperty(e,"__esModule",{value:!0})})); diff --git a/playwright/src/test/assets/react/react-dom@16.13.1.production.min.js b/playwright/src/test/assets/react/react-dom@16.13.1.production.min.js new file mode 100644 index 000000000..8ddde060c --- /dev/null +++ b/playwright/src/test/assets/react/react-dom@16.13.1.production.min.js @@ -0,0 +1,239 @@ +/** @license React v16.13.1 + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/* + Modernizr 3.0.0pre (Custom Build) | MIT +*/ +'use strict';(function(I,ea){"object"===typeof exports&&"undefined"!==typeof module?ea(exports,require("react")):"function"===typeof define&&define.amd?define(["exports","react"],ea):(I=I||self,ea(I.ReactDOM={},I.React))})(this,function(I,ea){function k(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;cb}return!1}function L(a, +b,c,d,e,f){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f}function xd(a,b,c,d){var e=E.hasOwnProperty(b)?E[b]:null;var f=null!==e?0===e.type:d?!1:!(2=c.length))throw Error(k(93));c=c[0]}b=c}null==b&&(b="");c=b}a._wrapperState={initialValue:va(c)}}function Lf(a,b){var c=va(b.value),d=va(b.defaultValue);null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d)}function Mf(a,b){b=a.textContent;b===a._wrapperState.initialValue&&""!== +b&&null!==b&&(a.value=b)}function Nf(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Hd(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Nf(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}function nc(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}function oc(a){if(Id[a])return Id[a]; +if(!ib[a])return a;var b=ib[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Of)return Id[a]=b[c];return a}function Jd(a){var b=Pf.get(a);void 0===b&&(b=new Map,Pf.set(a,b));return b}function Na(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.effectTag&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function Qf(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function Rf(a){if(Na(a)!== +a)throw Error(k(188));}function vi(a){var b=a.alternate;if(!b){b=Na(a);if(null===b)throw Error(k(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return Rf(e),a;if(f===d)return Rf(e),b;f=f.sibling}throw Error(k(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h= +f.child;h;){if(h===c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(k(189));}}if(c.alternate!==d)throw Error(k(190));}if(3!==c.tag)throw Error(k(188));return c.stateNode.current===c?a:b}function Sf(a){a=vi(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null}function jb(a,b){if(null== +b)throw Error(k(30));if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}function Kd(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}function pc(a){null!==a&&(Ab=jb(Ab,a));a=Ab;Ab=null;if(a){Kd(a,wi);if(Ab)throw Error(k(95));if(hc)throw a=pd,hc=!1,pd=null,a;}}function Ld(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode: +a}function Tf(a){if(!wa)return!1;a="on"+a;var b=a in document;b||(b=document.createElement("div"),b.setAttribute(a,"return;"),b="function"===typeof b[a]);return b}function Uf(a){a.topLevelType=null;a.nativeEvent=null;a.targetInst=null;a.ancestors.length=0;10>qc.length&&qc.push(a)}function Vf(a,b,c,d){if(qc.length){var e=qc.pop();e.topLevelType=a;e.eventSystemFlags=d;e.nativeEvent=b;e.targetInst=c;return e}return{topLevelType:a,eventSystemFlags:d,nativeEvent:b,targetInst:c,ancestors:[]}}function Wf(a){var b= +a.targetInst,c=b;do{if(!c){a.ancestors.push(c);break}var d=c;if(3===d.tag)d=d.stateNode.containerInfo;else{for(;d.return;)d=d.return;d=3!==d.tag?null:d.stateNode.containerInfo}if(!d)break;b=c.tag;5!==b&&6!==b||a.ancestors.push(c);c=Bb(d)}while(c);for(c=0;c=b)return{node:c, +offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=hg(c)}}function jg(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?jg(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function kg(){for(var a=window,b=Wd();b instanceof a.HTMLIFrameElement;){try{var c="string"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Wd(a.document)}return b} +function Xd(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}function lg(a,b){switch(a){case "button":case "input":case "select":case "textarea":return!!b.autoFocus}return!1}function Yd(a,b){return"textarea"===a||"option"===a||"noscript"===a||"string"===typeof b.children||"number"===typeof b.children||"object"===typeof b.dangerouslySetInnerHTML&& +null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}function kb(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break}return a}function mg(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if(c===ng||c===Zd||c===$d){if(0===b)return a;b--}else c===og&&b++}a=a.previousSibling}return null}function Bb(a){var b=a[Aa];if(b)return b;for(var c=a.parentNode;c;){if(b=c[Lb]||c[Aa]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=mg(a);null!== +a;){if(c=a[Aa])return c;a=mg(a)}return b}a=c;c=a.parentNode}return null}function Hb(a){a=a[Aa]||a[Lb];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function Pa(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(k(33));}function ae(a){return a[vc]||null}function pa(a){do a=a.return;while(a&&5!==a.tag);return a?a:null}function pg(a,b){var c=a.stateNode;if(!c)return null;var d=td(c);if(!d)return null;c=d[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(d= +!d.disabled)||(a=a.type,d=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!d;break a;default:a=!1}if(a)return null;if(c&&"function"!==typeof c)throw Error(k(231,b,typeof c));return c}function qg(a,b,c){if(b=pg(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=jb(c._dispatchListeners,b),c._dispatchInstances=jb(c._dispatchInstances,a)}function Ji(a){if(a&&a.dispatchConfig.phasedRegistrationNames){for(var b=a._targetInst,c=[];b;)c.push(b),b=pa(b);for(b=c.length;0this.eventPool.length&&this.eventPool.push(a)}function sg(a){a.eventPool=[];a.getPooled=Li;a.release=Mi}function tg(a,b){switch(a){case "keyup":return-1!==Ni.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "blur":return!0;default:return!1}}function ug(a){a=a.detail;return"object"===typeof a&&"data"in +a?a.data:null}function Oi(a,b){switch(a){case "compositionend":return ug(b);case "keypress":if(32!==b.which)return null;vg=!0;return wg;case "textInput":return a=b.data,a===wg&&vg?null:a;default:return null}}function Pi(a,b){if(mb)return"compositionend"===a||!de&&tg(a,b)?(a=rg(),wc=ce=Ba=null,mb=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1ob||(a.current=ie[ob],ie[ob]=null,ob--)}function y(a,b,c){ob++; +ie[ob]=a.current;a.current=b}function pb(a,b){var c=a.type.contextTypes;if(!c)return Ca;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function N(a){a=a.childContextTypes;return null!==a&&void 0!==a}function Fg(a,b,c){if(B.current!==Ca)throw Error(k(168));y(B,b);y(G,c)} +function Gg(a,b,c){var d=a.stateNode;a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(k(108,na(b)||"Unknown",e));return M({},c,{},d)}function Bc(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Ca;Ra=B.current;y(B,a);y(G,G.current);return!0}function Hg(a,b,c){var d=a.stateNode;if(!d)throw Error(k(169));c?(a=Gg(a,b,Ra),d.__reactInternalMemoizedMergedChildContext=a,q(G),q(B),y(B,a)):q(G);y(G,c)}function Cc(){switch(aj()){case Dc:return 99; +case Ig:return 98;case Jg:return 97;case Kg:return 96;case Lg:return 95;default:throw Error(k(332));}}function Mg(a){switch(a){case 99:return Dc;case 98:return Ig;case 97:return Jg;case 96:return Kg;case 95:return Lg;default:throw Error(k(332));}}function Da(a,b){a=Mg(a);return bj(a,b)}function Ng(a,b,c){a=Mg(a);return je(a,b,c)}function Og(a){null===qa?(qa=[a],Ec=je(Dc,Pg)):qa.push(a);return Qg}function ha(){if(null!==Ec){var a=Ec;Ec=null;Rg(a)}Pg()}function Pg(){if(!ke&&null!==qa){ke=!0;var a=0; +try{var b=qa;Da(99,function(){for(;a=b&&(ia=!0),a.firstContext=null)}function W(a,b){if(Gc!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)Gc=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===qb){if(null=== +Hc)throw Error(k(308));qb=b;Hc.dependencies={expirationTime:0,firstContext:b,responders:null}}else qb=qb.next=b}return a._currentValue}function ne(a){a.updateQueue={baseState:a.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function oe(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,baseQueue:a.baseQueue,shared:a.shared,effects:a.effects})}function Ea(a,b){a={expirationTime:a,suspenseConfig:b,tag:Tg,payload:null,callback:null,next:null};return a.next= +a}function Fa(a,b){a=a.updateQueue;if(null!==a){a=a.shared;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}}function Ug(a,b){var c=a.alternate;null!==c&&oe(c,a);a=a.updateQueue;c=a.baseQueue;null===c?(a.baseQueue=b.next=b,b.next=b):(b.next=c.next,c.next=b)}function Qb(a,b,c,d){var e=a.updateQueue;Ga=!1;var f=e.baseQueue,g=e.shared.pending;if(null!==g){if(null!==f){var h=f.next;f.next=g.next;g.next=h}f=g;e.shared.pending=null;h=a.alternate;null!==h&&(h=h.updateQueue,null!==h&& +(h.baseQueue=g))}if(null!==f){h=f.next;var m=e.baseState,n=0,k=null,ba=null,l=null;if(null!==h){var p=h;do{g=p.expirationTime;if(gn&&(n=g)}else{null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null});Vg(g,p.suspenseConfig);a:{var q=a,r=p;g=b;t=c;switch(r.tag){case 1:q= +r.payload;if("function"===typeof q){m=q.call(t,m,g);break a}m=q;break a;case 3:q.effectTag=q.effectTag&-4097|64;case Tg:q=r.payload;g="function"===typeof q?q.call(t,m,g):q;if(null===g||void 0===g)break a;m=M({},m,g);break a;case Jc:Ga=!0}}null!==p.callback&&(a.effectTag|=32,g=e.effects,null===g?e.effects=[p]:g.push(p))}p=p.next;if(null===p||p===h)if(g=e.shared.pending,null===g)break;else p=f.next=g.next,g.next=h,e.baseQueue=f=g,e.shared.pending=null}while(1)}null===l?k=m:l.next=ba;e.baseState=k;e.baseQueue= +l;Kc(n);a.expirationTime=n;a.memoizedState=m}}function Wg(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;br?(C=l,l=null):C=l.sibling;var O=p(e,l,h[r],m);if(null===O){null===l&&(l=C);break}a&&l&&null===O.alternate&&b(e,l);g=f(O,g,r);null===k?n=O:k.sibling=O;k=O;l=C}if(r===h.length)return c(e,l),n;if(null===l){for(;rC?(O=r,r=null):O=r.sibling;var q=p(e,r,v.value,n);if(null===q){null===r&&(r=O);break}a&&r&&null===q.alternate&&b(e,r);g=f(q,g,C);null===l?m=q:l.sibling=q;l=q;r=O}if(v.done)return c(e,r),m; +if(null===r){for(;!v.done;C++,v=h.next())v=ba(e,v.value,n),null!==v&&(g=f(v,g,C),null===l?m=v:l.sibling=v,l=v);return m}for(r=d(e,r);!v.done;C++,v=h.next())v=t(r,e,C,v.value,n),null!==v&&(a&&null!==v.alternate&&r.delete(null===v.key?C:v.key),g=f(v,g,C),null===l?m=v:l.sibling=v,l=v);a&&r.forEach(function(a){return b(e,a)});return m}return function(a,d,f,h){var m="object"===typeof f&&null!==f&&f.type===Ma&&null===f.key;m&&(f=f.props.children);var n="object"===typeof f&&null!==f;if(n)switch(f.$$typeof){case Pc:a:{n= +f.key;for(m=d;null!==m;){if(m.key===n){switch(m.tag){case 7:if(f.type===Ma){c(a,m.sibling);d=e(m,f.props.children);d.return=a;a=d;break a}break;default:if(m.elementType===f.type){c(a,m.sibling);d=e(m,f.props);d.ref=Rb(a,m,f);d.return=a;a=d;break a}}c(a,m);break}else b(a,m);m=m.sibling}f.type===Ma?(d=Ha(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=Oc(f.type,f.key,f.props,null,a.mode,h),h.ref=Rb(a,d,f),h.return=a,a=h)}return g(a);case gb:a:{for(m=f.key;null!==d;){if(d.key===m)if(4===d.tag&&d.stateNode.containerInfo=== +f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=re(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"===typeof f||"number"===typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):(c(a,d),d=qe(f,a.mode,h),d.return=a,a=d),g(a);if(Qc(f))return q(a,d,f,h);if(zb(f))return w(a,d,f,h);n&&Nc(a,f);if("undefined"===typeof f&&!m)switch(a.tag){case 1:case 0:throw a= +a.type,Error(k(152,a.displayName||a.name||"Component"));}return c(a,d)}}function Ta(a){if(a===Sb)throw Error(k(174));return a}function se(a,b){y(Tb,b);y(Ub,a);y(ja,Sb);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Hd(null,"");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=Hd(b,a)}q(ja);y(ja,b)}function tb(a){q(ja);q(Ub);q(Tb)}function bh(a){Ta(Tb.current);var b=Ta(ja.current);var c=Hd(b,a.type);b!==c&&(y(Ub,a),y(ja,c))}function te(a){Ub.current=== +a&&(q(ja),q(Ub))}function Rc(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||c.data===$d||c.data===Zd))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.effectTag&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}function ue(a,b){return{responder:a,props:b}} +function S(){throw Error(k(321));}function ve(a,b){if(null===b)return!1;for(var c=0;cf))throw Error(k(301));f+=1;J=K=null;b.updateQueue=null;Sc.current=fj;a=c(d,e)}while(b.expirationTime===Ia)}Sc.current=Tc;b=null!==K&&null!==K.next; +Ia=0;J=K=z=null;Uc=!1;if(b)throw Error(k(300));return a}function ub(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===J?z.memoizedState=J=a:J=J.next=a;return J}function vb(){if(null===K){var a=z.alternate;a=null!==a?a.memoizedState:null}else a=K.next;var b=null===J?z.memoizedState:J.next;if(null!==b)J=b,K=a;else{if(null===a)throw Error(k(310));K=a;a={memoizedState:K.memoizedState,baseState:K.baseState,baseQueue:K.baseQueue,queue:K.queue,next:null};null===J?z.memoizedState= +J=a:J=J.next=a}return J}function Ua(a,b){return"function"===typeof b?b(a):b}function Vc(a,b,c){b=vb();c=b.queue;if(null===c)throw Error(k(311));c.lastRenderedReducer=a;var d=K,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){e=e.next;d=d.baseState;var h=g=f=null,m=e;do{var n=m.expirationTime;if(nz.expirationTime&&(z.expirationTime=n,Kc(n))}else null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:m.suspenseConfig,action:m.action,eagerReducer:m.eagerReducer,eagerState:m.eagerState,next:null}),Vg(n,m.suspenseConfig),d=m.eagerReducer===a?m.eagerState:a(d,m.action);m=m.next}while(null!==m&&m!==e);null===h?f=d:h.next=g;Qa(d,b.memoizedState)||(ia=!0);b.memoizedState=d;b.baseState=f;b.baseQueue=h;c.lastRenderedState=d}return[b.memoizedState, +c.dispatch]}function Wc(a,b,c){b=vb();c=b.queue;if(null===c)throw Error(k(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);Qa(f,b.memoizedState)||(ia=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]}function xe(a){var b=ub();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={pending:null,dispatch:null,lastRenderedReducer:Ua, +lastRenderedState:a};a=a.dispatch=ch.bind(null,z,a);return[b.memoizedState,a]}function ye(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=z.updateQueue;null===b?(b={lastEffect:null},z.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}function dh(a){return vb().memoizedState}function ze(a,b,c,d){var e=ub();z.effectTag|=a;e.memoizedState=ye(1|b,c,void 0,void 0===d?null:d)}function Ae(a,b,c,d){var e=vb(); +d=void 0===d?null:d;var f=void 0;if(null!==K){var g=K.memoizedState;f=g.destroy;if(null!==d&&ve(d,g.deps)){ye(b,c,f,d);return}}z.effectTag|=a;e.memoizedState=ye(1|b,c,f,d)}function eh(a,b){return ze(516,4,a,b)}function Xc(a,b){return Ae(516,4,a,b)}function fh(a,b){return Ae(4,2,a,b)}function gh(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function hh(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null; +return Ae(4,2,gh.bind(null,b,a),c)}function Be(a,b){}function ih(a,b){ub().memoizedState=[a,void 0===b?null:b];return a}function Yc(a,b){var c=vb();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&ve(b,d[1]))return d[0];c.memoizedState=[a,b];return a}function jh(a,b){var c=vb();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&ve(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function Ce(a,b,c){var d=Cc();Da(98>d?98:d,function(){a(!0)});Da(97\x3c/script>",a=a.removeChild(a.firstChild)):"string"===typeof d.is?a=g.createElement(e,{is:d.is}):(a=g.createElement(e),"select"===e&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,e);a[Aa]=b;a[vc]=d;jj(a,b,!1,!1);b.stateNode=a;g=Vd(e,d);switch(e){case "iframe":case "object":case "embed":w("load",a);h=d;break;case "video":case "audio":for(h=0;hd.tailExpiration&& +1a?c:a;return 2>=a&&b!==a?0:a}function V(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=Og(Te.bind(null,a));else{var b=fd(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime=0,a.callbackPriority=90);else{var d=ka(); +1073741823===b?d=99:1===b||2===b?d=95:(d=10*(1073741821-b)-10*(1073741821-d),d=0>=d?99:250>=d?98:5250>=d?97:95);if(null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==Qg&&Rg(c)}a.callbackExpirationTime=b;a.callbackPriority=d;b=1073741823===b?Og(Te.bind(null,a)):Ng(d,Lh.bind(null,a),{timeout:10*(1073741821-b)-Y()});a.callbackNode=b}}}function Lh(a,b){dd=0;if(b)return b=ka(),Ue(a,b),V(a),null;var c=fd(a);if(0!==c){b=a.callbackNode;if((p&(ca|ma))!==H)throw Error(k(327)); +xb();a===U&&c===P||$a(a,c);if(null!==t){var d=p;p|=ca;var e=Mh();do try{rj();break}catch(h){Nh(a,h)}while(1);le();p=d;gd.current=e;if(F===hd)throw b=id,$a(a,c),Ya(a,c),V(a),b;if(null===t)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=F,U=null,d){case Xa:case hd:throw Error(k(345));case Oh:Ue(a,2=c){a.lastPingedTime= +c;$a(a,c);break}}f=fd(a);if(0!==f&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=We(ab.bind(null,a),e);break}ab(a);break;case bd:Ya(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Ve(e));if(jd&&(e=a.lastPingedTime,0===e||e>=c)){a.lastPingedTime=c;$a(a,c);break}e=fd(a);if(0!==e&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}1073741823!==Yb?d=10*(1073741821-Yb)-Y():1073741823===ta?d=0:(d=10*(1073741821-ta)-5E3,e=Y(),c=10*(1073741821-c)-e,d=e-d,0>d&&(d=0),d= +(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*sj(d/1960))-d,c=d?d=0:(e=g.busyDelayMs|0,f=Y()-(10*(1073741821-f)-(g.timeoutMs|0||5E3)),d=f<=e?0:e+d-f);if(10 component higher in the tree to provide a loading indicator or placeholder to display."+ +Bd(g))}F!==Xe&&(F=Oh);h=Le(h,g);k=f;do{switch(k.tag){case 3:m=h;k.effectTag|=4096;k.expirationTime=b;var A=Ih(k,m,b);Ug(k,A);break a;case 1:m=h;var u=k.type,B=k.stateNode;if(0===(k.effectTag&64)&&("function"===typeof u.getDerivedStateFromError||null!==B&&"function"===typeof B.componentDidCatch&&(null===La||!La.has(B)))){k.effectTag|=4096;k.expirationTime=b;var H=Jh(k,m,b);Ug(k,H);break a}}k=k.return}while(null!==k)}t=Sh(t)}catch(cj){b=cj;continue}break}while(1)}function Mh(a){a=gd.current;gd.current= +Tc;return null===a?Tc:a}function Vg(a,b){aXb&&(Xb=a)}function tj(){for(;null!==t;)t=Th(t)}function rj(){for(;null!==t&&!yj();)t=Th(t)}function Th(a){var b=zj(a.alternate,a,P);a.memoizedProps=a.pendingProps;null===b&&(b=Sh(a));Uh.current=null;return b}function Sh(a){t=a;do{var b=t.alternate;a=t.return;if(0===(t.effectTag&2048)){b=hj(b,t,P);if(1===P||1!==t.childExpirationTime){for(var c=0,d=t.child;null!==d;){var e=d.expirationTime, +f=d.childExpirationTime;e>c&&(c=e);f>c&&(c=f);d=d.sibling}t.childExpirationTime=c}if(null!==b)return b;null!==a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=t.firstEffect),a.lastEffect=t.lastEffect),1a?b:a}function ab(a){var b=Cc();Da(99,Aj.bind(null,a,b));return null}function Aj(a,b){do xb();while(null!==Zb);if((p&(ca|ma))!==H)throw Error(k(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;a.finishedWork=null;a.finishedExpirationTime=0;if(c===a.current)throw Error(k(177));a.callbackNode=null;a.callbackExpirationTime= +0;a.callbackPriority=90;a.nextKnownPendingLevel=0;var e=Ve(c);a.firstPendingTime=e;d<=a.lastSuspendedTime?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime=d-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpiredTime=0);a===U&&(t=U=null,P=0);1h&&(n=h,h=g,g=n),n=ig(x,g),q=ig(x,h),n&&q&&(1!==u.rangeCount||u.anchorNode!==n.node||u.anchorOffset!==n.offset||u.focusNode!==q.node||u.focusOffset!==q.offset)&&(A=A.createRange(), +A.setStart(n.node,n.offset),u.removeAllRanges(),g>h?(u.addRange(A),u.extend(q.node,q.offset)):(A.setEnd(q.node,q.offset),u.addRange(A))))));A=[];for(u=x;u=u.parentNode;)1===u.nodeType&&A.push({element:u,left:u.scrollLeft,top:u.scrollTop});"function"===typeof x.focus&&x.focus();for(x=0;x=b&&a<=b}function Ya(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime; +cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&&(a.lastExpiredTime=0)}function yh(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function Ue(a,b){var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b} +function md(a,b,c,d){var e=b.current,f=ka(),g=Vb.suspense;f=Va(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(Na(c)!==c||1!==c.tag)throw Error(k(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(N(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(k(171));}if(1===c.tag){var m=c.type;if(N(m)){c=Gg(c,m,h);break a}}c=h}else c=Ca;null===b.context?b.context=c:b.pendingContext=c;b=Ea(f,g);b.payload={element:a};d=void 0=== +d?null:d;null!==d&&(b.callback=d);Fa(e,b);Ja(e,f);return f}function cf(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function Wh(a,b){a=a.memoizedState;null!==a&&null!==a.dehydrated&&a.retryTime